From 47ff2e2ec8316b1c7dcbdfbe4f2549e378871dfd Mon Sep 17 00:00:00 2001 From: Nick Parsons Date: Mon, 6 Jun 2016 14:07:40 -0600 Subject: [PATCH] Initial Commit --- .gitignore | 43 + README.md | 9 + api/.gitignore | 0 api/config.js | 44 + api/index.js | 90 + api/lib/cors/index.js | 42 + api/lib/stream_utils/index.js | 130 + api/package.json | 38 + api/processes.json | 8 + api/routes/active.js | 53 + api/routes/comments.js | 173 + api/routes/contributions.js | 36 + api/routes/explore.js | 50 + api/routes/followers.js | 127 + api/routes/following-activity.js | 96 + api/routes/incoming-activity.js | 103 + api/routes/index.js | 27 + api/routes/likes.js | 251 + api/routes/locations.js | 50 + api/routes/searches.js | 81 + api/routes/stats.js | 121 + api/routes/trending.js | 49 + api/routes/uploads.js | 383 + api/routes/users.js | 313 + app/.babelrc | 13 + app/.gitignore | 38 + app/LICENSE | 23 + app/app.js | 56 + app/bin/www | 90 + app/config.js | 32 + app/docs/ast/source/App.js.json | 8550 +++++++ app/docs/ast/source/actions/Activity.js.json | 2158 ++ app/docs/ast/source/actions/App.js.json | 1409 ++ app/docs/ast/source/actions/Comments.js.json | 4556 ++++ .../ast/source/actions/Contributions.js.json | 2290 ++ app/docs/ast/source/actions/Explore.js.json | 1951 ++ app/docs/ast/source/actions/Header.js.json | 1435 ++ app/docs/ast/source/actions/Like.js.json | 6876 ++++++ app/docs/ast/source/actions/Location.js.json | 2097 ++ app/docs/ast/source/actions/Photo.js.json | 2344 ++ app/docs/ast/source/actions/Photos.js.json | 8782 +++++++ app/docs/ast/source/actions/Profile.js.json | 6730 +++++ app/docs/ast/source/actions/Search.js.json | 8277 +++++++ app/docs/ast/source/actions/Stats.js.json | 7101 ++++++ app/docs/ast/source/actions/Trending.js.json | 1918 ++ app/docs/ast/source/actions/User.js.json | 4191 ++++ app/docs/ast/source/actions/index.js.json | 1008 + .../source/components/Activity/Actor.js.json | 1861 ++ .../components/Activity/Commented.js.json | 1351 + .../components/Activity/Following.js.json | 4668 ++++ .../source/components/Activity/Liked.js.json | 3859 +++ .../source/components/Activity/index.js.json | 1833 ++ .../source/components/Avatar/index.js.json | 3690 +++ .../components/BackButton/index.js.json | 3612 +++ .../source/components/Comment/index.js.json | 3212 +++ .../source/components/Header/index.js.json | 4885 ++++ .../components/LikeButton/index.js.json | 4757 ++++ .../ast/source/components/Nav/index.js.json | 8887 +++++++ .../components/PhotoList/PhotoFooter.js.json | 6097 +++++ .../components/PhotoList/PhotoItem.js.json | 3001 +++ .../source/components/PhotoList/index.js.json | 2520 ++ .../ast/source/components/Tabs/index.js.json | 4535 ++++ .../source/components/TimeAgo/index.js.json | 3580 +++ app/docs/ast/source/components/index.js.json | 742 + app/docs/ast/source/main.js.json | 4093 +++ app/docs/ast/source/reducers/Activity.js.json | 4110 +++ app/docs/ast/source/reducers/App.js.json | 1289 + app/docs/ast/source/reducers/Comments.js.json | 4399 ++++ .../ast/source/reducers/Contributions.js.json | 1172 + app/docs/ast/source/reducers/Explore.js.json | 1172 + app/docs/ast/source/reducers/Header.js.json | 2563 ++ app/docs/ast/source/reducers/Likes.js.json | 3756 +++ app/docs/ast/source/reducers/Location.js.json | 1172 + .../ast/source/reducers/Pagination.js.json | 3310 +++ app/docs/ast/source/reducers/Photo.js.json | 5294 ++++ app/docs/ast/source/reducers/Photos.js.json | 4794 ++++ app/docs/ast/source/reducers/Profile.js.json | 5679 +++++ app/docs/ast/source/reducers/Search.js.json | 10478 ++++++++ app/docs/ast/source/reducers/Stats.js.json | 7068 ++++++ app/docs/ast/source/reducers/Tokens.js.json | 2523 ++ app/docs/ast/source/reducers/Trending.js.json | 1172 + app/docs/ast/source/reducers/User.js.json | 3605 +++ app/docs/ast/source/reducers/index.js.json | 1140 + .../Contributions/Contributions.js.json | 2939 +++ .../source/routes/Contributions/index.js.json | 1589 ++ .../ast/source/routes/Explore/Explore.js.json | 4302 ++++ .../ast/source/routes/Explore/index.js.json | 888 + .../FollowingActivity.js.json | 5677 +++++ .../routes/FollowingActivity/index.js.json | 1589 ++ app/docs/ast/source/routes/Home/Home.js.json | 8614 +++++++ app/docs/ast/source/routes/Home/index.js.json | 706 + .../routes/Home/routes/Photo/Photo.js.json | 6643 +++++ .../Photo/components/PhotoComments.js.json | 6747 +++++ .../Photo/components/PhotoMetadata.js.json | 4758 ++++ .../routes/Home/routes/Photo/index.js.json | 1296 + .../ast/source/routes/Landing/Landing.js.json | 2506 ++ .../ast/source/routes/Landing/index.js.json | 444 + .../source/routes/Location/Location.js.json | 6775 +++++ .../ast/source/routes/Location/index.js.json | 1209 + .../Notifications/Notifications.js.json | 4789 ++++ .../source/routes/Notifications/index.js.json | 888 + .../ast/source/routes/Profile/Profile.js.json | 10726 ++++++++ .../Profile/contributions/index.js.json | 2067 ++ .../ast/source/routes/Profile/index.js.json | 1376 ++ .../routes/Profile/navigation/index.js.json | 5440 ++++ .../ast/source/routes/Search/Search.js.json | 10654 ++++++++ .../Search/components/Filters/index.js.json | 20625 ++++++++++++++++ .../routes/Search/components/index.js.json | 84 + .../ast/source/routes/Search/index.js.json | 888 + .../SearchResults/SearchResults.js.json | 3570 +++ .../source/routes/SearchResults/index.js.json | 1589 ++ .../ast/source/routes/Stats/Stats.js.json | 11431 +++++++++ .../ast/source/routes/Stats/index.js.json | 1589 ++ .../source/routes/Trending/Trending.js.json | 2827 +++ .../ast/source/routes/Trending/index.js.json | 1376 ++ .../ast/source/routes/Upload/Upload.js.json | 11879 +++++++++ .../ast/source/routes/Upload/index.js.json | 444 + app/docs/ast/source/utils/analytics.js.json | 3830 +++ app/docs/badge.svg | 17 + .../components/Activity/Actor.js~Actor.html | 297 + .../Activity/Commented.js~Commented.html | 297 + .../Activity/Commented.js~Following.html | 293 + .../Activity/Following.js~Following.html | 297 + .../components/Activity/Liked.js~Liked.html | 297 + .../components/Activity/index.js~Item.html | 297 + .../components/Avatar/index.js~Avatar.html | 297 + .../BackButton/index.js~BackButton.html | 297 + .../components/Comment/index.js~Comment.html | 295 + .../components/Header/index.js~Header.html | 297 + .../LikeButton/index.js~LikeButton.html | 297 + .../modules/components/Nav/index.js~Nav.html | 297 + .../PhotoList/PhotoFooter.js~PhotoFooter.html | 297 + .../PhotoList/PhotoItem.js~PhotoItem.html | 297 + .../PhotoList/index.js~PhotoList.html | 297 + .../modules/components/Tabs/index.js~Tab.html | 297 + .../components/Tabs/index.js~Tabs.html | 297 + .../components/TimeAgo/index.js~TimeAgo.html | 506 + .../PhotoComments.js~PhotoPage.html | 298 + .../PhotoMetadata.js~PhotoMetadata.html | 298 + .../contributions/index.js~Contributions.html | 298 + .../components/Filters/index.js~Filters.html | 297 + app/docs/coverage.json | 272 + app/docs/css/prettify-tomorrow.css | 132 + app/docs/css/style.css | 944 + app/docs/dump.json | 9579 +++++++ app/docs/file/modules/App.js.html | 326 + .../file/modules/actions/Activity.js.html | 208 + app/docs/file/modules/actions/App.js.html | 206 + .../file/modules/actions/Comments.js.html | 259 + .../modules/actions/Contributions.js.html | 208 + app/docs/file/modules/actions/Explore.js.html | 205 + app/docs/file/modules/actions/Header.js.html | 216 + app/docs/file/modules/actions/Like.js.html | 300 + .../file/modules/actions/Location.js.html | 207 + app/docs/file/modules/actions/Photo.js.html | 215 + app/docs/file/modules/actions/Photos.js.html | 362 + app/docs/file/modules/actions/Profile.js.html | 296 + app/docs/file/modules/actions/Search.js.html | 369 + app/docs/file/modules/actions/Stats.js.html | 321 + .../file/modules/actions/Trending.js.html | 205 + app/docs/file/modules/actions/User.js.html | 261 + app/docs/file/modules/actions/index.js.html | 177 + .../modules/components/Activity/Actor.js.html | 196 + .../components/Activity/Commented.js.html | 196 + .../components/Activity/Following.js.html | 255 + .../modules/components/Activity/Liked.js.html | 222 + .../modules/components/Activity/index.js.html | 202 + .../modules/components/Avatar/index.js.html | 206 + .../components/BackButton/index.js.html | 202 + .../modules/components/Comment/index.js.html | 193 + .../modules/components/Header/index.js.html | 247 + .../components/LikeButton/index.js.html | 215 + .../file/modules/components/Nav/index.js.html | 257 + .../components/PhotoList/PhotoFooter.js.html | 203 + .../components/PhotoList/PhotoItem.js.html | 196 + .../components/PhotoList/index.js.html | 196 + .../modules/components/Tabs/index.js.html | 255 + .../modules/components/TimeAgo/index.js.html | 217 + .../file/modules/components/index.js.html | 172 + app/docs/file/modules/main.js.html | 261 + .../file/modules/reducers/Activity.js.html | 216 + app/docs/file/modules/reducers/App.js.html | 193 + .../file/modules/reducers/Comments.js.html | 225 + .../modules/reducers/Contributions.js.html | 191 + .../file/modules/reducers/Explore.js.html | 191 + app/docs/file/modules/reducers/Header.js.html | 209 + app/docs/file/modules/reducers/Likes.js.html | 217 + .../file/modules/reducers/Location.js.html | 191 + .../file/modules/reducers/Pagination.js.html | 207 + app/docs/file/modules/reducers/Photo.js.html | 233 + app/docs/file/modules/reducers/Photos.js.html | 226 + .../file/modules/reducers/Profile.js.html | 233 + app/docs/file/modules/reducers/Search.js.html | 276 + app/docs/file/modules/reducers/Stats.js.html | 247 + app/docs/file/modules/reducers/Tokens.js.html | 203 + .../file/modules/reducers/Trending.js.html | 191 + app/docs/file/modules/reducers/User.js.html | 214 + app/docs/file/modules/reducers/index.js.html | 179 + .../Contributions/Contributions.js.html | 218 + .../routes/Contributions/index.js.html | 206 + .../modules/routes/Explore/Explore.js.html | 240 + .../file/modules/routes/Explore/index.js.html | 187 + .../FollowingActivity.js.html | 281 + .../routes/FollowingActivity/index.js.html | 205 + .../file/modules/routes/Home/Home.js.html | 339 + .../file/modules/routes/Home/index.js.html | 186 + .../routes/Home/routes/Photo/Photo.js.html | 274 + .../Photo/components/PhotoComments.js.html | 227 + .../Photo/components/PhotoMetadata.js.html | 199 + .../routes/Home/routes/Photo/index.js.html | 198 + .../modules/routes/Landing/Landing.js.html | 221 + .../file/modules/routes/Landing/index.js.html | 174 + .../modules/routes/Location/Location.js.html | 295 + .../modules/routes/Location/index.js.html | 196 + .../Notifications/Notifications.js.html | 271 + .../routes/Notifications/index.js.html | 189 + .../modules/routes/Profile/Profile.js.html | 315 + .../Profile/contributions/index.js.html | 195 + .../file/modules/routes/Profile/index.js.html | 205 + .../routes/Profile/navigation/index.js.html | 233 + .../file/modules/routes/Search/Search.js.html | 347 + .../Search/components/Filters/index.js.html | 297 + .../routes/Search/components/index.js.html | 163 + .../file/modules/routes/Search/index.js.html | 187 + .../SearchResults/SearchResults.js.html | 226 + .../routes/SearchResults/index.js.html | 205 + .../file/modules/routes/Stats/Stats.js.html | 301 + .../file/modules/routes/Stats/index.js.html | 205 + .../modules/routes/Trending/Trending.js.html | 216 + .../modules/routes/Trending/index.js.html | 205 + .../file/modules/routes/Upload/Upload.js.html | 324 + .../file/modules/routes/Upload/index.js.html | 174 + app/docs/file/modules/utils/analytics.js.html | 262 + app/docs/function/index.html | 4949 ++++ app/docs/identifiers.html | 3050 +++ app/docs/image/badge.svg | 17 + app/docs/image/github.png | Bin 0 -> 4268 bytes app/docs/image/search.png | Bin 0 -> 12704 bytes app/docs/index.html | 159 + app/docs/package.json | 61 + app/docs/script/inherited-summary.js | 28 + app/docs/script/inner-link.js | 31 + app/docs/script/manual.js | 13 + app/docs/script/patch-for-local.js | 8 + .../script/prettify/Apache-License-2.0.txt | 202 + app/docs/script/prettify/prettify.js | 28 + app/docs/script/pretty-print.js | 25 + app/docs/script/search.js | 117 + app/docs/script/search_index.js | 1640 ++ app/docs/script/test-summary.js | 54 + app/docs/source.html | 933 + app/docs/variable/index.html | 2590 ++ app/esdoc.json | 7 + app/modules/App.js | 209 + app/modules/actions/App.js | 46 + app/modules/actions/Comments.js | 96 + app/modules/actions/Contributions.js | 46 + app/modules/actions/Explore.js | 43 + app/modules/actions/FollowingActivity.js | 45 + app/modules/actions/Header.js | 54 + app/modules/actions/IncomingActivity.js | 46 + app/modules/actions/Like.js | 138 + app/modules/actions/Location.js | 45 + app/modules/actions/Photo.js | 53 + app/modules/actions/Photos.js | 245 + app/modules/actions/Profile.js | 143 + app/modules/actions/Search.js | 210 + app/modules/actions/Stats.js | 159 + app/modules/actions/Stream.js | 46 + app/modules/actions/Trending.js | 43 + app/modules/actions/User.js | 95 + app/modules/actions/index.js | 17 + app/modules/components/Activity/Actor.js | 36 + app/modules/components/Activity/Commented.js | 44 + app/modules/components/Activity/Following.js | 93 + app/modules/components/Activity/Liked.js | 60 + app/modules/components/Activity/index.js | 40 + app/modules/components/Avatar/index.js | 44 + app/modules/components/BackButton/index.js | 40 + app/modules/components/Comment/index.js | 34 + app/modules/components/Header/index.js | 133 + app/modules/components/LikeButton/index.js | 52 + app/modules/components/Nav/index.js | 119 + .../components/PhotoList/PhotoFooter.js | 48 + app/modules/components/PhotoList/PhotoItem.js | 72 + app/modules/components/PhotoList/index.js | 34 + app/modules/components/Tabs/index.js | 93 + app/modules/components/Tabs/styles.css | 36 + app/modules/components/TimeAgo/index.js | 55 + app/modules/components/index.js | 10 + app/modules/main.js | 99 + app/modules/reducers/App.js | 31 + app/modules/reducers/Comments.js | 58 + app/modules/reducers/Contributions.js | 29 + app/modules/reducers/Explore.js | 29 + app/modules/reducers/FollowingActivity.js | 54 + app/modules/reducers/Header.js | 47 + app/modules/reducers/IncomingActivity.js | 55 + app/modules/reducers/Likes.js | 55 + app/modules/reducers/Location.js | 29 + app/modules/reducers/Navigation.js | 7 + app/modules/reducers/Onboarding.js | 16 + app/modules/reducers/Pagination.js | 45 + app/modules/reducers/Photo.js | 72 + app/modules/reducers/Photos.js | 82 + app/modules/reducers/Profile.js | 79 + app/modules/reducers/Search.js | 118 + app/modules/reducers/Stats.js | 85 + app/modules/reducers/Stream.js | 17 + app/modules/reducers/Tokens.js | 42 + app/modules/reducers/Trending.js | 29 + app/modules/reducers/User.js | 52 + app/modules/reducers/index.js | 21 + .../routes/Contributions/Contributions.js | 74 + app/modules/routes/Contributions/index.js | 44 + app/modules/routes/Explore/Explore.js | 78 + app/modules/routes/Explore/index.js | 25 + .../FollowingActivity/FollowingActivity.js | 129 + app/modules/routes/FollowingActivity/index.js | 43 + app/modules/routes/Home/Home.js | 202 + app/modules/routes/Home/index.js | 24 + app/modules/routes/Home/routes/Photo/Photo.js | 113 + .../routes/Photo/components/PhotoComments.js | 65 + .../routes/Photo/components/PhotoMetadata.js | 37 + app/modules/routes/Home/routes/Photo/index.js | 76 + app/modules/routes/Landing/Landing.js | 58 + app/modules/routes/Landing/index.js | 12 + app/modules/routes/Location/Location.js | 139 + app/modules/routes/Location/index.js | 34 + .../routes/Notifications/Notifications.js | 136 + app/modules/routes/Notifications/index.js | 27 + app/modules/routes/Profile/Profile.js | 175 + .../routes/Profile/contributions/index.js | 33 + app/modules/routes/Profile/index.js | 43 + .../routes/Profile/navigation/index.js | 62 + app/modules/routes/Search/Search.js | 185 + .../routes/Search/components/Filters/index.js | 134 + app/modules/routes/Search/components/index.js | 1 + app/modules/routes/Search/index.js | 25 + .../routes/SearchResults/SearchResults.js | 63 + app/modules/routes/SearchResults/index.js | 43 + app/modules/routes/Stats/Stats.js | 139 + app/modules/routes/Stats/index.js | 43 + app/modules/routes/Trending/Trending.js | 54 + app/modules/routes/Trending/index.js | 43 + app/modules/routes/Upload/Upload.js | 162 + app/modules/routes/Upload/index.js | 12 + app/modules/style.css | 1381 ++ app/modules/utils/analytics.js | 100 + app/package.json | 89 + app/processes.json | 8 + app/public/css/styles.css | 1187 + app/public/css/styles.min.css | 1 + app/public/favicon.ico | Bin 0 -> 1150 bytes app/public/img/Background.png | Bin 0 -> 347397 bytes app/public/img/add.svg | 14 + app/public/img/bell.svg | 14 + app/public/img/bg.png | Bin 0 -> 114529 bytes app/public/img/landing.png | Bin 0 -> 2030633 bytes app/public/img/logo.png | Bin 0 -> 1912 bytes app/public/img/logo.svg | 17 + app/public/img/logo@2x.png | Bin 0 -> 5382 bytes app/public/img/map.svg | 14 + app/public/img/nav_icon.svg | 16 + app/public/img/point.png | Bin 0 -> 469 bytes app/public/img/point.svg | 16 + app/public/img/search.svg | 16 + app/routes/index.js | 15 + app/views/app.ejs | 11 + app/views/error.ejs | 3 + app/views/index.ejs | 36 + app/webpack.config.js | 111 + db/cabin.sql | 152 + env.sh | 21 + install.md | 18 + keen.md | 68 + www/app.js | 63 + www/bin/www | 90 + www/config.js | 11 + www/package.json | 21 + www/processes.json | 8 + www/public/css/animate.css | 11 + www/public/css/core.css | 1 + www/public/css/demo.css | 155 + www/public/css/kube.css | 2142 ++ www/public/css/style.css | 413 + www/public/favicon.ico | Bin 0 -> 1150 bytes www/public/img/Logo.svg | 17 + www/public/img/algolialogo.svg | 21 + www/public/img/body-bg-angle.svg | 16 + www/public/img/bonus.png | Bin 0 -> 7639 bytes www/public/img/bonus.svg | 42 + www/public/img/digitaloceanlogo.svg | 30 + www/public/img/end-bg.png | Bin 0 -> 835625 bytes www/public/img/footer-bg.svg | 15 + www/public/img/frame.png | Bin 0 -> 42460 bytes www/public/img/github.svg | 16 + www/public/img/gplus.svg | 16 + www/public/img/hero-diagonal.png | Bin 0 -> 5276 bytes www/public/img/hero-radial.svg | 20 + www/public/img/hero-react-redux.svg | 69 + www/public/img/hero_bg.svg | 35 + www/public/img/hero_cabin.png | Bin 0 -> 710673 bytes www/public/img/imgix-small.svg | 21 + www/public/img/imgix_small_logo.png | Bin 0 -> 1873 bytes www/public/img/imgix_small_logo.svg | 21 + www/public/img/imgixlogo.png | Bin 0 -> 4453 bytes www/public/img/imgixlogo.svg | 26 + www/public/img/imgixlogosmall.png | Bin 0 -> 744 bytes www/public/img/keenlogo.svg | 24 + www/public/img/label-bg.svg | 18 + www/public/img/li-bg.svg | 16 + www/public/img/mapboxlogo.svg | 29 + www/public/img/partners-bg.svg | 19 + www/public/img/partners-flare.png | Bin 0 -> 24741 bytes www/public/img/phone.png | Bin 0 -> 42460 bytes www/public/img/reactlogo.svg | 23 + www/public/img/reduxlogo.svg | 18 + www/public/img/sketchapp.png | Bin 0 -> 55633 bytes www/public/img/streamlogo.svg | 16 + www/public/img/topic-art-2.png | Bin 0 -> 65956 bytes www/public/img/topic-art-3.png | Bin 0 -> 90150 bytes www/public/img/topics-art-1.png | Bin 0 -> 177661 bytes www/public/img/topo.jpg | Bin 0 -> 404278 bytes www/public/img/twitter.svg | 16 + www/public/img/twittercta.svg | 18 + www/public/img/wrap-bg.jpg | Bin 0 -> 504266 bytes www/public/js/cabin.js | 61 + www/public/js/power.js | 13 + www/public/js/scotchPanels.js | 651 + www/routes/index.js | 38 + www/views/demo.ejs | 133 + www/views/error.ejs | 3 + www/views/index.ejs | 301 + 434 files changed, 425202 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 api/.gitignore create mode 100644 api/config.js create mode 100644 api/index.js create mode 100644 api/lib/cors/index.js create mode 100644 api/lib/stream_utils/index.js create mode 100644 api/package.json create mode 100644 api/processes.json create mode 100644 api/routes/active.js create mode 100644 api/routes/comments.js create mode 100644 api/routes/contributions.js create mode 100644 api/routes/explore.js create mode 100644 api/routes/followers.js create mode 100644 api/routes/following-activity.js create mode 100644 api/routes/incoming-activity.js create mode 100644 api/routes/index.js create mode 100644 api/routes/likes.js create mode 100644 api/routes/locations.js create mode 100644 api/routes/searches.js create mode 100644 api/routes/stats.js create mode 100644 api/routes/trending.js create mode 100644 api/routes/uploads.js create mode 100644 api/routes/users.js create mode 100644 app/.babelrc create mode 100644 app/.gitignore create mode 100644 app/LICENSE create mode 100644 app/app.js create mode 100755 app/bin/www create mode 100644 app/config.js create mode 100644 app/docs/ast/source/App.js.json create mode 100644 app/docs/ast/source/actions/Activity.js.json create mode 100644 app/docs/ast/source/actions/App.js.json create mode 100644 app/docs/ast/source/actions/Comments.js.json create mode 100644 app/docs/ast/source/actions/Contributions.js.json create mode 100644 app/docs/ast/source/actions/Explore.js.json create mode 100644 app/docs/ast/source/actions/Header.js.json create mode 100644 app/docs/ast/source/actions/Like.js.json create mode 100644 app/docs/ast/source/actions/Location.js.json create mode 100644 app/docs/ast/source/actions/Photo.js.json create mode 100644 app/docs/ast/source/actions/Photos.js.json create mode 100644 app/docs/ast/source/actions/Profile.js.json create mode 100644 app/docs/ast/source/actions/Search.js.json create mode 100644 app/docs/ast/source/actions/Stats.js.json create mode 100644 app/docs/ast/source/actions/Trending.js.json create mode 100644 app/docs/ast/source/actions/User.js.json create mode 100644 app/docs/ast/source/actions/index.js.json create mode 100644 app/docs/ast/source/components/Activity/Actor.js.json create mode 100644 app/docs/ast/source/components/Activity/Commented.js.json create mode 100644 app/docs/ast/source/components/Activity/Following.js.json create mode 100644 app/docs/ast/source/components/Activity/Liked.js.json create mode 100644 app/docs/ast/source/components/Activity/index.js.json create mode 100644 app/docs/ast/source/components/Avatar/index.js.json create mode 100644 app/docs/ast/source/components/BackButton/index.js.json create mode 100644 app/docs/ast/source/components/Comment/index.js.json create mode 100644 app/docs/ast/source/components/Header/index.js.json create mode 100644 app/docs/ast/source/components/LikeButton/index.js.json create mode 100644 app/docs/ast/source/components/Nav/index.js.json create mode 100644 app/docs/ast/source/components/PhotoList/PhotoFooter.js.json create mode 100644 app/docs/ast/source/components/PhotoList/PhotoItem.js.json create mode 100644 app/docs/ast/source/components/PhotoList/index.js.json create mode 100644 app/docs/ast/source/components/Tabs/index.js.json create mode 100644 app/docs/ast/source/components/TimeAgo/index.js.json create mode 100644 app/docs/ast/source/components/index.js.json create mode 100644 app/docs/ast/source/main.js.json create mode 100644 app/docs/ast/source/reducers/Activity.js.json create mode 100644 app/docs/ast/source/reducers/App.js.json create mode 100644 app/docs/ast/source/reducers/Comments.js.json create mode 100644 app/docs/ast/source/reducers/Contributions.js.json create mode 100644 app/docs/ast/source/reducers/Explore.js.json create mode 100644 app/docs/ast/source/reducers/Header.js.json create mode 100644 app/docs/ast/source/reducers/Likes.js.json create mode 100644 app/docs/ast/source/reducers/Location.js.json create mode 100644 app/docs/ast/source/reducers/Pagination.js.json create mode 100644 app/docs/ast/source/reducers/Photo.js.json create mode 100644 app/docs/ast/source/reducers/Photos.js.json create mode 100644 app/docs/ast/source/reducers/Profile.js.json create mode 100644 app/docs/ast/source/reducers/Search.js.json create mode 100644 app/docs/ast/source/reducers/Stats.js.json create mode 100644 app/docs/ast/source/reducers/Tokens.js.json create mode 100644 app/docs/ast/source/reducers/Trending.js.json create mode 100644 app/docs/ast/source/reducers/User.js.json create mode 100644 app/docs/ast/source/reducers/index.js.json create mode 100644 app/docs/ast/source/routes/Contributions/Contributions.js.json create mode 100644 app/docs/ast/source/routes/Contributions/index.js.json create mode 100644 app/docs/ast/source/routes/Explore/Explore.js.json create mode 100644 app/docs/ast/source/routes/Explore/index.js.json create mode 100644 app/docs/ast/source/routes/FollowingActivity/FollowingActivity.js.json create mode 100644 app/docs/ast/source/routes/FollowingActivity/index.js.json create mode 100644 app/docs/ast/source/routes/Home/Home.js.json create mode 100644 app/docs/ast/source/routes/Home/index.js.json create mode 100644 app/docs/ast/source/routes/Home/routes/Photo/Photo.js.json create mode 100644 app/docs/ast/source/routes/Home/routes/Photo/components/PhotoComments.js.json create mode 100644 app/docs/ast/source/routes/Home/routes/Photo/components/PhotoMetadata.js.json create mode 100644 app/docs/ast/source/routes/Home/routes/Photo/index.js.json create mode 100644 app/docs/ast/source/routes/Landing/Landing.js.json create mode 100644 app/docs/ast/source/routes/Landing/index.js.json create mode 100644 app/docs/ast/source/routes/Location/Location.js.json create mode 100644 app/docs/ast/source/routes/Location/index.js.json create mode 100644 app/docs/ast/source/routes/Notifications/Notifications.js.json create mode 100644 app/docs/ast/source/routes/Notifications/index.js.json create mode 100644 app/docs/ast/source/routes/Profile/Profile.js.json create mode 100644 app/docs/ast/source/routes/Profile/contributions/index.js.json create mode 100644 app/docs/ast/source/routes/Profile/index.js.json create mode 100644 app/docs/ast/source/routes/Profile/navigation/index.js.json create mode 100644 app/docs/ast/source/routes/Search/Search.js.json create mode 100644 app/docs/ast/source/routes/Search/components/Filters/index.js.json create mode 100644 app/docs/ast/source/routes/Search/components/index.js.json create mode 100644 app/docs/ast/source/routes/Search/index.js.json create mode 100644 app/docs/ast/source/routes/SearchResults/SearchResults.js.json create mode 100644 app/docs/ast/source/routes/SearchResults/index.js.json create mode 100644 app/docs/ast/source/routes/Stats/Stats.js.json create mode 100644 app/docs/ast/source/routes/Stats/index.js.json create mode 100644 app/docs/ast/source/routes/Trending/Trending.js.json create mode 100644 app/docs/ast/source/routes/Trending/index.js.json create mode 100644 app/docs/ast/source/routes/Upload/Upload.js.json create mode 100644 app/docs/ast/source/routes/Upload/index.js.json create mode 100644 app/docs/ast/source/utils/analytics.js.json create mode 100644 app/docs/badge.svg create mode 100644 app/docs/class/modules/components/Activity/Actor.js~Actor.html create mode 100644 app/docs/class/modules/components/Activity/Commented.js~Commented.html create mode 100644 app/docs/class/modules/components/Activity/Commented.js~Following.html create mode 100644 app/docs/class/modules/components/Activity/Following.js~Following.html create mode 100644 app/docs/class/modules/components/Activity/Liked.js~Liked.html create mode 100644 app/docs/class/modules/components/Activity/index.js~Item.html create mode 100644 app/docs/class/modules/components/Avatar/index.js~Avatar.html create mode 100644 app/docs/class/modules/components/BackButton/index.js~BackButton.html create mode 100644 app/docs/class/modules/components/Comment/index.js~Comment.html create mode 100644 app/docs/class/modules/components/Header/index.js~Header.html create mode 100644 app/docs/class/modules/components/LikeButton/index.js~LikeButton.html create mode 100644 app/docs/class/modules/components/Nav/index.js~Nav.html create mode 100644 app/docs/class/modules/components/PhotoList/PhotoFooter.js~PhotoFooter.html create mode 100644 app/docs/class/modules/components/PhotoList/PhotoItem.js~PhotoItem.html create mode 100644 app/docs/class/modules/components/PhotoList/index.js~PhotoList.html create mode 100644 app/docs/class/modules/components/Tabs/index.js~Tab.html create mode 100644 app/docs/class/modules/components/Tabs/index.js~Tabs.html create mode 100644 app/docs/class/modules/components/TimeAgo/index.js~TimeAgo.html create mode 100644 app/docs/class/modules/routes/Home/routes/Photo/components/PhotoComments.js~PhotoPage.html create mode 100644 app/docs/class/modules/routes/Home/routes/Photo/components/PhotoMetadata.js~PhotoMetadata.html create mode 100644 app/docs/class/modules/routes/Profile/contributions/index.js~Contributions.html create mode 100644 app/docs/class/modules/routes/Search/components/Filters/index.js~Filters.html create mode 100644 app/docs/coverage.json create mode 100644 app/docs/css/prettify-tomorrow.css create mode 100644 app/docs/css/style.css create mode 100644 app/docs/dump.json create mode 100644 app/docs/file/modules/App.js.html create mode 100644 app/docs/file/modules/actions/Activity.js.html create mode 100644 app/docs/file/modules/actions/App.js.html create mode 100644 app/docs/file/modules/actions/Comments.js.html create mode 100644 app/docs/file/modules/actions/Contributions.js.html create mode 100644 app/docs/file/modules/actions/Explore.js.html create mode 100644 app/docs/file/modules/actions/Header.js.html create mode 100644 app/docs/file/modules/actions/Like.js.html create mode 100644 app/docs/file/modules/actions/Location.js.html create mode 100644 app/docs/file/modules/actions/Photo.js.html create mode 100644 app/docs/file/modules/actions/Photos.js.html create mode 100644 app/docs/file/modules/actions/Profile.js.html create mode 100644 app/docs/file/modules/actions/Search.js.html create mode 100644 app/docs/file/modules/actions/Stats.js.html create mode 100644 app/docs/file/modules/actions/Trending.js.html create mode 100644 app/docs/file/modules/actions/User.js.html create mode 100644 app/docs/file/modules/actions/index.js.html create mode 100644 app/docs/file/modules/components/Activity/Actor.js.html create mode 100644 app/docs/file/modules/components/Activity/Commented.js.html create mode 100644 app/docs/file/modules/components/Activity/Following.js.html create mode 100644 app/docs/file/modules/components/Activity/Liked.js.html create mode 100644 app/docs/file/modules/components/Activity/index.js.html create mode 100644 app/docs/file/modules/components/Avatar/index.js.html create mode 100644 app/docs/file/modules/components/BackButton/index.js.html create mode 100644 app/docs/file/modules/components/Comment/index.js.html create mode 100644 app/docs/file/modules/components/Header/index.js.html create mode 100644 app/docs/file/modules/components/LikeButton/index.js.html create mode 100644 app/docs/file/modules/components/Nav/index.js.html create mode 100644 app/docs/file/modules/components/PhotoList/PhotoFooter.js.html create mode 100644 app/docs/file/modules/components/PhotoList/PhotoItem.js.html create mode 100644 app/docs/file/modules/components/PhotoList/index.js.html create mode 100644 app/docs/file/modules/components/Tabs/index.js.html create mode 100644 app/docs/file/modules/components/TimeAgo/index.js.html create mode 100644 app/docs/file/modules/components/index.js.html create mode 100644 app/docs/file/modules/main.js.html create mode 100644 app/docs/file/modules/reducers/Activity.js.html create mode 100644 app/docs/file/modules/reducers/App.js.html create mode 100644 app/docs/file/modules/reducers/Comments.js.html create mode 100644 app/docs/file/modules/reducers/Contributions.js.html create mode 100644 app/docs/file/modules/reducers/Explore.js.html create mode 100644 app/docs/file/modules/reducers/Header.js.html create mode 100644 app/docs/file/modules/reducers/Likes.js.html create mode 100644 app/docs/file/modules/reducers/Location.js.html create mode 100644 app/docs/file/modules/reducers/Pagination.js.html create mode 100644 app/docs/file/modules/reducers/Photo.js.html create mode 100644 app/docs/file/modules/reducers/Photos.js.html create mode 100644 app/docs/file/modules/reducers/Profile.js.html create mode 100644 app/docs/file/modules/reducers/Search.js.html create mode 100644 app/docs/file/modules/reducers/Stats.js.html create mode 100644 app/docs/file/modules/reducers/Tokens.js.html create mode 100644 app/docs/file/modules/reducers/Trending.js.html create mode 100644 app/docs/file/modules/reducers/User.js.html create mode 100644 app/docs/file/modules/reducers/index.js.html create mode 100644 app/docs/file/modules/routes/Contributions/Contributions.js.html create mode 100644 app/docs/file/modules/routes/Contributions/index.js.html create mode 100644 app/docs/file/modules/routes/Explore/Explore.js.html create mode 100644 app/docs/file/modules/routes/Explore/index.js.html create mode 100644 app/docs/file/modules/routes/FollowingActivity/FollowingActivity.js.html create mode 100644 app/docs/file/modules/routes/FollowingActivity/index.js.html create mode 100644 app/docs/file/modules/routes/Home/Home.js.html create mode 100644 app/docs/file/modules/routes/Home/index.js.html create mode 100644 app/docs/file/modules/routes/Home/routes/Photo/Photo.js.html create mode 100644 app/docs/file/modules/routes/Home/routes/Photo/components/PhotoComments.js.html create mode 100644 app/docs/file/modules/routes/Home/routes/Photo/components/PhotoMetadata.js.html create mode 100644 app/docs/file/modules/routes/Home/routes/Photo/index.js.html create mode 100644 app/docs/file/modules/routes/Landing/Landing.js.html create mode 100644 app/docs/file/modules/routes/Landing/index.js.html create mode 100644 app/docs/file/modules/routes/Location/Location.js.html create mode 100644 app/docs/file/modules/routes/Location/index.js.html create mode 100644 app/docs/file/modules/routes/Notifications/Notifications.js.html create mode 100644 app/docs/file/modules/routes/Notifications/index.js.html create mode 100644 app/docs/file/modules/routes/Profile/Profile.js.html create mode 100644 app/docs/file/modules/routes/Profile/contributions/index.js.html create mode 100644 app/docs/file/modules/routes/Profile/index.js.html create mode 100644 app/docs/file/modules/routes/Profile/navigation/index.js.html create mode 100644 app/docs/file/modules/routes/Search/Search.js.html create mode 100644 app/docs/file/modules/routes/Search/components/Filters/index.js.html create mode 100644 app/docs/file/modules/routes/Search/components/index.js.html create mode 100644 app/docs/file/modules/routes/Search/index.js.html create mode 100644 app/docs/file/modules/routes/SearchResults/SearchResults.js.html create mode 100644 app/docs/file/modules/routes/SearchResults/index.js.html create mode 100644 app/docs/file/modules/routes/Stats/Stats.js.html create mode 100644 app/docs/file/modules/routes/Stats/index.js.html create mode 100644 app/docs/file/modules/routes/Trending/Trending.js.html create mode 100644 app/docs/file/modules/routes/Trending/index.js.html create mode 100644 app/docs/file/modules/routes/Upload/Upload.js.html create mode 100644 app/docs/file/modules/routes/Upload/index.js.html create mode 100644 app/docs/file/modules/utils/analytics.js.html create mode 100644 app/docs/function/index.html create mode 100644 app/docs/identifiers.html create mode 100644 app/docs/image/badge.svg create mode 100644 app/docs/image/github.png create mode 100644 app/docs/image/search.png create mode 100644 app/docs/index.html create mode 100644 app/docs/package.json create mode 100644 app/docs/script/inherited-summary.js create mode 100644 app/docs/script/inner-link.js create mode 100644 app/docs/script/manual.js create mode 100644 app/docs/script/patch-for-local.js create mode 100644 app/docs/script/prettify/Apache-License-2.0.txt create mode 100644 app/docs/script/prettify/prettify.js create mode 100644 app/docs/script/pretty-print.js create mode 100644 app/docs/script/search.js create mode 100644 app/docs/script/search_index.js create mode 100644 app/docs/script/test-summary.js create mode 100644 app/docs/source.html create mode 100644 app/docs/variable/index.html create mode 100644 app/esdoc.json create mode 100644 app/modules/App.js create mode 100644 app/modules/actions/App.js create mode 100644 app/modules/actions/Comments.js create mode 100644 app/modules/actions/Contributions.js create mode 100644 app/modules/actions/Explore.js create mode 100644 app/modules/actions/FollowingActivity.js create mode 100644 app/modules/actions/Header.js create mode 100644 app/modules/actions/IncomingActivity.js create mode 100644 app/modules/actions/Like.js create mode 100644 app/modules/actions/Location.js create mode 100644 app/modules/actions/Photo.js create mode 100644 app/modules/actions/Photos.js create mode 100644 app/modules/actions/Profile.js create mode 100644 app/modules/actions/Search.js create mode 100644 app/modules/actions/Stats.js create mode 100644 app/modules/actions/Stream.js create mode 100644 app/modules/actions/Trending.js create mode 100644 app/modules/actions/User.js create mode 100644 app/modules/actions/index.js create mode 100644 app/modules/components/Activity/Actor.js create mode 100644 app/modules/components/Activity/Commented.js create mode 100644 app/modules/components/Activity/Following.js create mode 100644 app/modules/components/Activity/Liked.js create mode 100644 app/modules/components/Activity/index.js create mode 100644 app/modules/components/Avatar/index.js create mode 100644 app/modules/components/BackButton/index.js create mode 100644 app/modules/components/Comment/index.js create mode 100644 app/modules/components/Header/index.js create mode 100644 app/modules/components/LikeButton/index.js create mode 100644 app/modules/components/Nav/index.js create mode 100644 app/modules/components/PhotoList/PhotoFooter.js create mode 100644 app/modules/components/PhotoList/PhotoItem.js create mode 100644 app/modules/components/PhotoList/index.js create mode 100644 app/modules/components/Tabs/index.js create mode 100644 app/modules/components/Tabs/styles.css create mode 100644 app/modules/components/TimeAgo/index.js create mode 100644 app/modules/components/index.js create mode 100644 app/modules/main.js create mode 100644 app/modules/reducers/App.js create mode 100644 app/modules/reducers/Comments.js create mode 100644 app/modules/reducers/Contributions.js create mode 100644 app/modules/reducers/Explore.js create mode 100644 app/modules/reducers/FollowingActivity.js create mode 100644 app/modules/reducers/Header.js create mode 100644 app/modules/reducers/IncomingActivity.js create mode 100644 app/modules/reducers/Likes.js create mode 100644 app/modules/reducers/Location.js create mode 100644 app/modules/reducers/Navigation.js create mode 100644 app/modules/reducers/Onboarding.js create mode 100644 app/modules/reducers/Pagination.js create mode 100644 app/modules/reducers/Photo.js create mode 100644 app/modules/reducers/Photos.js create mode 100644 app/modules/reducers/Profile.js create mode 100644 app/modules/reducers/Search.js create mode 100644 app/modules/reducers/Stats.js create mode 100644 app/modules/reducers/Stream.js create mode 100644 app/modules/reducers/Tokens.js create mode 100644 app/modules/reducers/Trending.js create mode 100644 app/modules/reducers/User.js create mode 100644 app/modules/reducers/index.js create mode 100644 app/modules/routes/Contributions/Contributions.js create mode 100644 app/modules/routes/Contributions/index.js create mode 100644 app/modules/routes/Explore/Explore.js create mode 100644 app/modules/routes/Explore/index.js create mode 100644 app/modules/routes/FollowingActivity/FollowingActivity.js create mode 100644 app/modules/routes/FollowingActivity/index.js create mode 100644 app/modules/routes/Home/Home.js create mode 100644 app/modules/routes/Home/index.js create mode 100644 app/modules/routes/Home/routes/Photo/Photo.js create mode 100644 app/modules/routes/Home/routes/Photo/components/PhotoComments.js create mode 100644 app/modules/routes/Home/routes/Photo/components/PhotoMetadata.js create mode 100644 app/modules/routes/Home/routes/Photo/index.js create mode 100644 app/modules/routes/Landing/Landing.js create mode 100644 app/modules/routes/Landing/index.js create mode 100644 app/modules/routes/Location/Location.js create mode 100644 app/modules/routes/Location/index.js create mode 100644 app/modules/routes/Notifications/Notifications.js create mode 100644 app/modules/routes/Notifications/index.js create mode 100644 app/modules/routes/Profile/Profile.js create mode 100644 app/modules/routes/Profile/contributions/index.js create mode 100644 app/modules/routes/Profile/index.js create mode 100644 app/modules/routes/Profile/navigation/index.js create mode 100644 app/modules/routes/Search/Search.js create mode 100644 app/modules/routes/Search/components/Filters/index.js create mode 100644 app/modules/routes/Search/components/index.js create mode 100644 app/modules/routes/Search/index.js create mode 100644 app/modules/routes/SearchResults/SearchResults.js create mode 100644 app/modules/routes/SearchResults/index.js create mode 100644 app/modules/routes/Stats/Stats.js create mode 100644 app/modules/routes/Stats/index.js create mode 100644 app/modules/routes/Trending/Trending.js create mode 100644 app/modules/routes/Trending/index.js create mode 100644 app/modules/routes/Upload/Upload.js create mode 100644 app/modules/routes/Upload/index.js create mode 100644 app/modules/style.css create mode 100644 app/modules/utils/analytics.js create mode 100644 app/package.json create mode 100644 app/processes.json create mode 100644 app/public/css/styles.css create mode 100644 app/public/css/styles.min.css create mode 100644 app/public/favicon.ico create mode 100644 app/public/img/Background.png create mode 100644 app/public/img/add.svg create mode 100644 app/public/img/bell.svg create mode 100644 app/public/img/bg.png create mode 100644 app/public/img/landing.png create mode 100644 app/public/img/logo.png create mode 100644 app/public/img/logo.svg create mode 100644 app/public/img/logo@2x.png create mode 100644 app/public/img/map.svg create mode 100644 app/public/img/nav_icon.svg create mode 100644 app/public/img/point.png create mode 100644 app/public/img/point.svg create mode 100644 app/public/img/search.svg create mode 100644 app/routes/index.js create mode 100644 app/views/app.ejs create mode 100644 app/views/error.ejs create mode 100644 app/views/index.ejs create mode 100644 app/webpack.config.js create mode 100644 db/cabin.sql create mode 100644 env.sh create mode 100644 install.md create mode 100644 keen.md create mode 100644 www/app.js create mode 100755 www/bin/www create mode 100644 www/config.js create mode 100644 www/package.json create mode 100644 www/processes.json create mode 100644 www/public/css/animate.css create mode 100644 www/public/css/core.css create mode 100644 www/public/css/demo.css create mode 100644 www/public/css/kube.css create mode 100644 www/public/css/style.css create mode 100644 www/public/favicon.ico create mode 100644 www/public/img/Logo.svg create mode 100644 www/public/img/algolialogo.svg create mode 100644 www/public/img/body-bg-angle.svg create mode 100644 www/public/img/bonus.png create mode 100644 www/public/img/bonus.svg create mode 100644 www/public/img/digitaloceanlogo.svg create mode 100644 www/public/img/end-bg.png create mode 100644 www/public/img/footer-bg.svg create mode 100644 www/public/img/frame.png create mode 100644 www/public/img/github.svg create mode 100644 www/public/img/gplus.svg create mode 100644 www/public/img/hero-diagonal.png create mode 100644 www/public/img/hero-radial.svg create mode 100644 www/public/img/hero-react-redux.svg create mode 100644 www/public/img/hero_bg.svg create mode 100644 www/public/img/hero_cabin.png create mode 100644 www/public/img/imgix-small.svg create mode 100644 www/public/img/imgix_small_logo.png create mode 100644 www/public/img/imgix_small_logo.svg create mode 100644 www/public/img/imgixlogo.png create mode 100644 www/public/img/imgixlogo.svg create mode 100644 www/public/img/imgixlogosmall.png create mode 100644 www/public/img/keenlogo.svg create mode 100644 www/public/img/label-bg.svg create mode 100644 www/public/img/li-bg.svg create mode 100644 www/public/img/mapboxlogo.svg create mode 100644 www/public/img/partners-bg.svg create mode 100644 www/public/img/partners-flare.png create mode 100644 www/public/img/phone.png create mode 100644 www/public/img/reactlogo.svg create mode 100644 www/public/img/reduxlogo.svg create mode 100644 www/public/img/sketchapp.png create mode 100644 www/public/img/streamlogo.svg create mode 100644 www/public/img/topic-art-2.png create mode 100644 www/public/img/topic-art-3.png create mode 100644 www/public/img/topics-art-1.png create mode 100644 www/public/img/topo.jpg create mode 100644 www/public/img/twitter.svg create mode 100644 www/public/img/twittercta.svg create mode 100644 www/public/img/wrap-bg.jpg create mode 100644 www/public/js/cabin.js create mode 100755 www/public/js/power.js create mode 100755 www/public/js/scotchPanels.js create mode 100644 www/routes/index.js create mode 100644 www/views/demo.ejs create mode 100644 www/views/error.ejs create mode 100644 www/views/index.ejs diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..70864b4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,43 @@ +# Logs +logs +*.log +npm-debug.log* +# Runtime data +pids +*.pid +*.seed + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage + +# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (http://nodejs.org/api/addons.html) +build/Release + +# Dependency directory +node_modules + +# Optional npm cache directory +.npm + +# Optional REPL history +.node_repl_history + +# OS +.DS_Store + +env + +app/public/js/bundle.js +app/public/js/app.js + +# idea +.idea/ diff --git a/README.md b/README.md new file mode 100644 index 0000000..3cfa3bc --- /dev/null +++ b/README.md @@ -0,0 +1,9 @@ +# 7 Step - React/Redux tutorial series + +This example application created by [getstream.io](https://getstream.io/?ref=github_stream_react_example) teaches you how to to build an Instagram style application with activity streams and newsfeeds. + +Visit [cabin.getstream.io](http://cabin.getstream.io/) for an overview of all 7 tutorials and a live demo. If you enjoy this tutorial please star this repo. + +

+ Examples of what you can build +

diff --git a/api/.gitignore b/api/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/api/config.js b/api/config.js new file mode 100644 index 0000000..51310b6 --- /dev/null +++ b/api/config.js @@ -0,0 +1,44 @@ +'use strict'; + +/** + * Config + */ +module.exports = { + name: 'GetStream.io - React Example App', + version: '1.0.0', + env: process.env.NODE_ENV || 'DEVELOPMENT', + port: process.env.PORT || 8000, + jwt: { + secret: process.env.JWT_SECRET, + }, + db: { + name: 'cabin', + username: process.env.DB_USERNAME, + password: process.env.DB_PASSWORD, + host: process.env.DB_HOST, + port: process.env.DB_PORT, + }, + mapbox: { + accessToken: process.env.MAPBOX_ACCESS_TOKEN, + }, + s3: { + key: process.env.S3_KEY, + secret: process.env.S3_SECRET, + bucket: process.env.S3_BUCKET, + }, + stream: { + appId: process.env.STREAM_APP_ID, + key: process.env.STREAM_KEY, + secret: process.env.STREAM_SECRET, + }, + algolia: { + appId: process.env.ALGOLIA_APP_ID, + searchOnlyKey: process.env.ALGOLIA_SEARCH_ONLY_KEY, + apiKey: process.env.ALGOLIA_API_KEY, + }, + keen: { + projectId: process.env.KEEN_PROJECT_ID, + writeKey: process.env.KEEN_WRITE_KEY, + readKey: process.env.KEEN_READ_KEY, + }, +}; diff --git a/api/index.js b/api/index.js new file mode 100644 index 0000000..c38706e --- /dev/null +++ b/api/index.js @@ -0,0 +1,90 @@ +'use strict'; + +/** + * Env Configuration + */ +require('dotenv').config({ path: 'env' }); + +/** + * Module Dependencies + */ +var config = require('./config'), + bunyan = require('bunyan'), + winston = require('winston'), + bunyanWinston = require('bunyan-winston-adapter'), + mysql = require('mysql'), + jwt = require('restify-jwt'); + +/** + * Global Dependencies + */ +global.__base = __dirname + '/'; +global.config = require('./config.js'); +global.restify = require('restify'); + +/** + * Logging + */ +global.log = new winston.Logger({ + transports: [ + new winston.transports.Console({ + level: 'info', + timestamp: function() { + return new Date().toString(); + }, + json: true + }) + ] +}); + +/** + * Initialize Server + */ +global.server = restify.createServer({ + name : config.name, + version : config.version, + log : bunyanWinston.createAdapter(log), +}); + +/** + * Middleware + */ +server.use(restify.bodyParser()); +server.use(restify.acceptParser(server.acceptable)); +server.use(restify.authorizationParser()); +server.use(restify.queryParser({ mapParams: true })); +server.pre(require('./lib/cors')()); +server.use(restify.fullResponse()); +server.use(jwt({ secret: config.jwt.secret }).unless({ + path: ['/users'] +})); + +/** + * Initialize MySQL Connection + */ +global.db = mysql.createConnection({ + host : config.db.host, + user : config.db.username, + password : config.db.password, + database : config.db.name, + timezone: 'UTC' +}); +db.connect(); + +db.query(` + SET sql_mode = "STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" +`) + +/** + * Boot + */ +server.listen(config.port, function () { + require('./routes'); + log.info( + '%s v%s ready to accept connections on port listening on port %s in %s environment', + server.name, + config.version, + config.port, + config.env + ); +}); diff --git a/api/lib/cors/index.js b/api/lib/cors/index.js new file mode 100644 index 0000000..42d330f --- /dev/null +++ b/api/lib/cors/index.js @@ -0,0 +1,42 @@ +'use strict'; + +function cors(options) { + + const defaultAllowHeaders = ['Authorization', 'Content-Type']; + const defaultAllowMethods = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD"]; + + const opts = Object.assign({}, { + allowHeaders: defaultAllowHeaders, + allowMethods: defaultAllowMethods, + allowOrigins: null, + allowCreds: true, + }, options || {}); + + const setHeader = (req, res, methods) => { + const origin = req.headers.origin; + const requestMethod = req.headers['access-control-request-method']; + const requestHeaders = req.headers['access-control-request-headers']; + + res.once('header', () => { + if (opts.allowCreds) res.header('Access-Control-Allow-Credentials', 'true'); + + if (opts.allowOrigins) { + res.header('Access-Control-Allow-Origin', + (Array.isArray(opts.allowOrigins)) ? opts.allowOrigins.join(', ') : opts.allowOrigins); + } else { + res.header('Access-Control-Allow-Origin', origin); + } + + res.header('Access-Control-Allow-Methods', opts.allowMethods.join(', ')); + res.header('Access-Control-Allow-Headers', opts.allowHeaders.map(h => h.toUpperCase()).join(', ')); + }); + }; + + return (req, res, next) => { + setHeader(req, res); + if (req.method == 'OPTIONS') return res.send(200); + return next(); + }; +}; + +module.exports = cors; diff --git a/api/lib/stream_utils/index.js b/api/lib/stream_utils/index.js new file mode 100644 index 0000000..8f8543d --- /dev/null +++ b/api/lib/stream_utils/index.js @@ -0,0 +1,130 @@ +'use strict'; +var async = require('async'); + +function referencesFromActivities(activitiesOrNotifications) { + /* + Returns the references from a list of activities + */ + var references = {} + activitiesOrNotifications.forEach(function(item) { + var activities = (item.activities) ? item.activities : [ + item + ]; + activities.forEach(function(activity) { + Object.keys(activity).forEach(function(key) { + if (activity[key] && activity[key].indexOf && activity[key].indexOf(':') != -1) { + var parts = activity[key].split(':'); + var reference = parts[0]; + var referenceId = parts[1]; + if (!(reference in references)) { + references[reference] = {}; + } + references[reference][ + referenceId + ] = 1; + } + }); + }); + }); + return references; +}; + +function loadReferencedObjects(references, userId, callback) { + // TODO: subqueries are inneficient. Handle do i like and do i follow + // in 2 separate queries + var queries = []; + if (references.upload) { + let sql = ` + SELECT + uploads.id AS id, + users.id AS user_id, + users.first_name AS first_name, + users.last_name AS last_name, + MD5(users.email) AS email_md5, + uploads.id AS upload_id, + uploads.filename AS filename, + uploads.hashtags AS hashtags, + uploads.caption AS caption, + uploads.location AS location, + IF((SELECT 1 AS liked FROM likes WHERE user_id = ? AND upload_id = uploads.id), true, false) AS liked + FROM uploads + LEFT JOIN users ON (uploads.user_id = users.id) + WHERE uploads.id IN (?) + `; + queries.push({ + 'name': 'upload', + 'sql': sql + }); + } + if (references.user) { + // do the same thing for users + let sql = ` + SELECT + users.id AS id, + users.id AS user_id, + users.first_name AS first_name, + users.last_name AS last_name, + MD5(users.email) AS email_md5, + IF( + ( + SELECT + 1 AS following + FROM followers AS f + WHERE f.follower_id = users.id + AND f.user_id = ? + ), + true, + false + ) AS following + FROM users + WHERE users.id IN (?) + `; + queries.push({ + 'name': 'user', + 'sql': sql + }); + } + var referencedObject = {}; + // run all the queries + async.eachSeries(queries, function iteratee(query, cb) { + db.query(query.sql, [userId, Object.keys(references[query.name])], function(err, results) { + if (err) { + cb(err); + } + referencedObject[query.name] = {}; + results.forEach(function(result) { + referencedObject[query.name][result.id] = result; + }); + cb(); + }); + }, function done() { + callback(referencedObject); + }); +} + +function enrichActivities(activitiesOrNotifications, refencedObjects) { + /* + * Enriches the activities by replacing references with the actual objects + */ + activitiesOrNotifications.forEach(function(item) { + var activities = (item.activities) ? item.activities : [item]; + activities.forEach(function(activity) { + Object.keys(activity).forEach(function(key) { + if (activity[key] && activity[key].indexOf && activity[key].indexOf(':') != -1) { + var parts = activity[key].split(':'); + var reference = parts[0]; + var referenceId = parts[1]; + if (reference in refencedObjects && refencedObjects[reference][referenceId]) { + activity[key] = refencedObjects[reference][referenceId]; + } + } + }); + }); + }); +}; + +module.exports = { + 'referencesFromActivities': referencesFromActivities, + 'loadReferencedObjects': loadReferencedObjects, + 'enrichActivities': enrichActivities +}; diff --git a/api/package.json b/api/package.json new file mode 100644 index 0000000..6ab89d6 --- /dev/null +++ b/api/package.json @@ -0,0 +1,38 @@ +{ + "name": "api", + "version": "1.0.0", + "main": "index.js", + "dependencies": { + "algoliasearch": "^3.14.1", + "async": "^2.0.0-rc.5", + "bunyan": "^1.8.1", + "bunyan-winston-adapter": "^0.2.0", + "dotenv": "^2.0.0", + "fb": "^1.1.0", + "getstream": "^3.2.0", + "jsonwebtoken": "^7.0.0", + "keen.io": "^0.1.3", + "knox": "^0.9.2", + "mapbox-geocoding": "^0.1.4", + "mysql": "^2.10.2", + "node-uuid": "^1.4.7", + "restify": "^4.0.4", + "restify-jwt": "^0.4.0", + "winston": "^2.2.0" + }, + "devDependencies": { + "chai": "^3.5.0", + "chance": "^1.0.3", + "mocha": "^2.5.2", + "supertest": "^1.2.0" + }, + "scripts": { + "test": "mocha" + }, + "author": "", + "license": "ISC", + "directories": { + "test": "test" + }, + "description": "" +} diff --git a/api/processes.json b/api/processes.json new file mode 100644 index 0000000..8005662 --- /dev/null +++ b/api/processes.json @@ -0,0 +1,8 @@ +{ + "apps" : [{ + "name" : "api", + "script" : "node index.js", + "watch" : "../", + "log_date_format" : "YYYY-MM-DD HH:mm Z", + }] +} diff --git a/api/routes/active.js b/api/routes/active.js new file mode 100644 index 0000000..57c1171 --- /dev/null +++ b/api/routes/active.js @@ -0,0 +1,53 @@ +'use strict'; + +server.get('/active', function(req, res, next) { + + // extract query params + var params = req.params || {}; + + var sql = ` + SELECT + users.id AS id, + users.first_name AS first_name, + users.last_name AS last_name, + MD5(users.email) AS email_md5, + users.created_at AS created_at, + users.modified_at AS modified_at, + COUNT(uploads.user_id) as posts, + + (SELECT id FROM followers WHERE followers.user_id = ? AND followers.follower_id = users.id) AS following + + FROM users + LEFT JOIN + uploads + ON uploads.user_id = users.id + + WHERE users.id != ? + + GROUP BY uploads.user_id, users.id + HAVING posts > 0 AND following IS NULL + ORDER BY posts DESC + LIMIT 3 + `; + + db.query(sql, [params.user_id, params.user_id], function(err, result) { + + // catch all errors + if (err) { + + // use global logger to log to console + log.error(err); + + // return error message to client + return next(new restify.InternalError(err.message)); + + } + + // send response to client + res.send(200, result); + return next(); + + }); + + +}); diff --git a/api/routes/comments.js b/api/routes/comments.js new file mode 100644 index 0000000..f45a4f8 --- /dev/null +++ b/api/routes/comments.js @@ -0,0 +1,173 @@ +'use strict'; + +/** + * Module Dependencies + */ +var async = require('async'), + stream = require('getstream'), + jwt = require('restify-jwt'), + config = require('../config'); + +/** + * Get all comments (optionally for a specific upload id) + * URL: /comments + * Method: GET + * Auth Required: Yes + * @param {string} upload_id This optional query param specifies an upload id to query by + * @returns {array} Returns a 200 status code with an array of comment objects + */ +server.get('/comments', function(req, res, next) { + + // extract query params + var params = req.params || {}; + + // build base sql statement + var sql = ` + SELECT + comments.*, + users.id AS user_id, + users.first_name AS first_name, + users.last_name AS last_name, + MD5(users.email) AS email_md5 + FROM comments + LEFT JOIN users ON comments.user_id = users.id + `; + + // if upload id exists, inject into sql query + if (params.upload_id) { + sql += ' WHERE upload_id=?'; + } + + // order by created timestamp + sql += ' ORDER BY comments.created_at DESC '; + + // execute query + db.query(sql, [params.upload_id], function(err, result) { + + // catch all errors + if (err) { + + // use global logger to log to console + log.error(err); + + // return error message to client + return next(new restify.InternalError(err.message)); + + } + + // send result to client + res.send(200, result); + return next(); + + }); + +}); + + /** + * Create a comment for a specific upload + * URL: /comments + * Method: POST + * Auth Required: Yes + * @param {string} user_id This required param specifies a user id to associate the comment with + * @param {string} upload_id This required param specifies an upload id to comment on + * @returns {object} Returns 201 status code with an object of the returned database result + */ +server.post('/comments', function(req, res, next) { + + // extract params from body + var data = req.body || {}; + + // async waterfall (see: https://github.com/caolan/async) + async.waterfall([ + + // insert comment into database + function(cb) { + + data['created_at'] = new Date(); + + // execute query with data as sanitized values + db.query('INSERT INTO comments SET ?', data, function(err, comment) { + + if (err) { + cb(err); + } + // use object assign to merge the object id + comment = Object.assign({ id: comment.insertId }, data); + + cb(null, comment); + + }); + + }, + + // get upload associated with comment + function(comment, cb) { + + // execute query using upload id from previous sql query + db.query('SELECT user_id FROM uploads WHERE id = ?', [comment.upload_id], function(err, upload) { + + if (err) { + cb(err); + } + + // use object assign to merge objects from previous queries + var result = Object.assign({ author_id: upload[0].user_id }, comment, upload); + + cb(null, result); + + }); + + }, + + // submit to stream + function(result, cb) { + + // instantiate a new client (server side) + var streamClient = stream.connect(config.stream.key, config.stream.secret); + + // instantiate a feed using feed class 'user' and the user id from the database + var userFeed = streamClient.feed('user', data.user_id); + + // build activity object for stream feed + var activity = { + actor: `user:${data.user_id}`, + verb: 'comment', + object: `upload:${data.upload_id}`, + foreign_id: `comment:${result.id}`, + time: result.created_at, + comment: data.comment, + to: [`notification:${result.author_id}`], + }; + + // add activity to the feed + userFeed.addActivity(activity) + .then(function(response) { + cb(null, result); + }) + .catch(function(err) { + cb(err); + }); + + } + + // final cb callback + ], function(err, result) { + + // catch all errors + if (err) { + + // use global logger to log to console + log.error(err); + + // return error message to client + return next(new restify.InternalError(err)); + + } + + // send response to client + res.send(201, result); + return next(); + + }); + +}); diff --git a/api/routes/contributions.js b/api/routes/contributions.js new file mode 100644 index 0000000..7f62e28 --- /dev/null +++ b/api/routes/contributions.js @@ -0,0 +1,36 @@ +'use strict'; + +/** + * Get contributions for a specific user + * URL: /contributions + * Method: GET + * Auth Required: Yes + * @param {string} user_id This optional query param specifies an user id to query by + * @returns {array} Returns a 200 status code with an array of upload (aka contribution) objects + */ +server.get('/contributions', function(req, res, next) { + + // extract query params + var params = req.params || {}; + + // execute query + db.query('SELECT * FROM uploads WHERE user_id = ? ORDER BY created_at DESC', [params.user_id], function(err, result) { + + // catch all errors + if (err) { + + // use global logger to log to console + log.error(err); + + // return error message to client + return next(new restify.InternalError(err.message)); + + } + + // send response to client + res.send(200, result) + return next(); + + }); + +}); diff --git a/api/routes/explore.js b/api/routes/explore.js new file mode 100644 index 0000000..7bf7985 --- /dev/null +++ b/api/routes/explore.js @@ -0,0 +1,50 @@ +'use strict'; + + /** + * Get images for explore page for a specific user + * URL: /explore + * Method: GET + * Auth Required: Yes + * @param {string} user_id This optional query param specifies an user id to query by + * @returns {array} Returns a 200 status code with an array of upload (aka explore) objects + */ +server.get('/explore', function(req, res, next) { + + // extract query params + var params = req.params || {}; + + // build sql query + var sql = ` + SELECT + uploads.*, + COUNT(likes.id) AS likeTotal + FROM uploads + LEFT JOIN likes + ON likes.upload_id = uploads.id + WHERE uploads.user_id != ? + GROUP BY uploads.id + ORDER BY COUNT(likes.id) ASC + LIMIT 15 + `; + + // execute query + db.query(sql, [params.user_id], function(err, result) { + + // catch all errors + if (err) { + + // use global logger to log to console + log.error(err); + + // return error message to client + return next(new restify.InternalError(err.message)); + + } + + // send response to client + res.send(200, result) + return next(); + + }); + +}) diff --git a/api/routes/followers.js b/api/routes/followers.js new file mode 100644 index 0000000..50c8bfd --- /dev/null +++ b/api/routes/followers.js @@ -0,0 +1,127 @@ +'use strict'; + +/** + * Module Dependencies + */ +var stream = require('getstream'); + +/** + * Deletes a following connection + * URL: /followers + * Method: POST + * Auth Required: Yes + * @param {string} user_id This required param specifies the user id to associate by + * @param {string} follower_id This required param specifies the follower id to associate by + * @returns {object} Returns a 201 status code with the object created + */ +server.post('/followers', function(req, res, next) { + + // extract params from body + var data = req.body || {}; + data['created_at'] = new Date(); + + // execute query using data from body + db.query('INSERT INTO followers SET ?', data, function(err, result) { + + // catch all errors + if (err) { + + // use global logger to log to console + log.error(err); + + // return error message to client + return next(new restify.InternalError(err.message)); + + } + + // instantiate a new client (server side) + var streamClient = stream.connect(config.stream.key, config.stream.secret); + + // instantiate a feed using feed class 'user' and the user id from the database + var userFeed = streamClient.feed('user', data.user_id); + + // build activity object for stream feed + var activity = { + actor: `user:${data.user_id}`, + verb: 'follow', + object: `user:${data.follower_id}`, + foreign_id: `follow:${result.insertId}`, + time: data['created_at'], + to: [`notification:${data.follower_id}`] + }; + + // instantiate a feed using feed class 'timeline_flat' and the user id from the database + var timeline = streamClient.feed('timeline_flat', data.user_id); + timeline.follow('user_posts', data.follower_id); + + // instantiate a feed using feed class 'timeline_aggregated' and the user id from the database + var timelineAggregated = streamClient.feed('timeline_aggregated', data.user_id); + timelineAggregated.follow('user', data.follower_id); + + // add activity to the feed + userFeed.addActivity(activity) + .then(function(response) { + //log.info(response); + }) + .catch(function(reason) { + log.error(reason); + return next(new restify.InternalError(reason.error)); + }); + + // send response to client + res.send(201, Object.assign({ id: result.insertId }, data)); + return next(); + + }); + +}); + +/** + * Deletes a following connection + * URL: /followers + * Method: DELETE + * Auth Required: Yes + * @param {string} user_id This required param specifies the user id to filter by + * @param {string} follower_id This required param specifies the follower id to filter by + * @returns {string} Returns a 204 status code + */ +server.del('/followers', function(req, res, next) { + + // extract query params + var params = req.params || {}; + + // build sql query + var sql = 'DELETE FROM followers WHERE user_id = ? AND follower_id = ?'; + + // execute sql + db.query(sql, [params.user_id, params.follower_id], function(err, result) { + + // instantiate a new client (server side) + var streamClient = stream.connect(config.stream.key, config.stream.secret); + + // instantiate a feed using feed class 'user' and the user id from the database + var flatFeed = streamClient.feed('timeline_flat', params.user_id); + var aggregatedFeed = streamClient.feed('timeline_aggregated', params.user_id); + + // stop following user + flatFeed.unfollow('user_posts', params.follower_id); + aggregatedFeed.unfollow('user', params.follower_id); + + // catch all errors + if (err) { + + // use global logger to log to console + log.error(err); + + // return error message to client + return next(new restify.InternalError(err.message)); + + } + + // send response to client + res.send(204); + return next(); + + }); + +}); diff --git a/api/routes/following-activity.js b/api/routes/following-activity.js new file mode 100644 index 0000000..b195cd6 --- /dev/null +++ b/api/routes/following-activity.js @@ -0,0 +1,96 @@ +'use strict'; + +/** + * Module Dependencies + */ + var async = require('async'), + stream = require('getstream'), + streamUtils = require('./../lib/stream_utils'); + +/** + * Get following activity for a specific user + * URL: /following-activity + * Method: GET + * Auth Required: Yes + * @param {string} user_id This required param specifies the user id to filter by + * @returns {object} Returns a 200 status code with an array of search objects + */ +server.get('/following-activity', function(req, res, next) { + + // extract query params + var params = req.params || {}; + + // async waterfall (see: https://github.com/caolan/async) + async.waterfall([ + + // connect to stream + function(cb) { + + // instantiate a new client (server side) + var streamClient = stream.connect(config.stream.key, config.stream.secret); + + // instantiate a feed using feed class 'user' and user id from params + var user = streamClient.feed('timeline_aggregated', params.user_id); + + cb(null, user); + + }, + + // get and loop through activities + function(user, cb) { + + // empty array to hold activities + var arr = []; + + // get activities from stream + user.get({ limit: 100 }) + .then(function(stream) { + + // length of activity results + var ln = stream.results.length; + + // if length is empty, return + if (!ln) { + res.send(204); + return next(); + } + + /* + * Activities stored in Stream reference user ids and upload ids + * We need the full object, not just the reference for the template + * The steps below query the DB to translate user:2 into + * Something like {'username': 'Nick', 'img':...} + */ + + var references = streamUtils.referencesFromActivities(stream.results); + streamUtils.loadReferencedObjects(references, params.user_id, function(referencedObjects){ + streamUtils.enrichActivities(stream.results, referencedObjects); + // return the enriched activities + cb(null, stream.results); + }); + }).catch(function(error) { + cb(error); + }); + + }, + + // final cb function + ], function(err, result) { + + // catch all errors + if (err) { + + // use global logger to log to console + log.error(err); + + // return error message to client + return next(new restify.InternalError(err.message)); + + } + + // send response to client + res.send(200, result); + return next(); + }); + +}); diff --git a/api/routes/incoming-activity.js b/api/routes/incoming-activity.js new file mode 100644 index 0000000..ddab859 --- /dev/null +++ b/api/routes/incoming-activity.js @@ -0,0 +1,103 @@ +'use strict'; + +/** + * Module Dependencies + */ +var async = require('async'), + stream = require('getstream'), + streamUtils = require('./../lib/stream_utils'); + + + + +/** + * Get incoming activity for a specific user + * URL: /incoming-activity + * Method: GET + * Auth Required: Yes + * @param {string} user_id This required param specifies the user id to filter by + * @returns {object} Returns a 200 status code with an array of search objects + */ +server.get('/incoming-activity', function(req, res, next) { + + // extract query params + var params = req.params || {}; + + // async waterfall (see: https://github.com/caolan/async) + async.waterfall([ + + // connect to stream + function(cb) { + + // instantiate a new client (server side) + var streamClient = stream.connect(config.stream.key, config.stream.secret); + + // instantiate a feed using feed class 'notification' and user id from params + var notificationFeed = streamClient.feed('notification', params.user_id); + + cb(null, notificationFeed); + + }, + + // get and loop through activities + function(notificationFeed, cb) { + + // empty array to hold activities + var arr = []; + + // get activities from stream + notificationFeed.get({ limit: 100 }) + .then(function(stream) { + + // length of activity results + var ln = stream.results.length; + + // if length is empty, return + if (!ln) { + res.send(204); + return next(); + } + + /* + * Activities stored in Stream reference user ids and upload ids + * We need the full object, not just the reference for the template + * The steps below query the DB to translate user:2 into + * Something like {'username': 'Nick', 'img':...} + */ + + var references = streamUtils.referencesFromActivities(stream.results); + streamUtils.loadReferencedObjects(references, params.user_id, function(referencedObjects){ + streamUtils.enrichActivities(stream.results, referencedObjects); + // return the enriched activities + cb(null, stream.results); + }) + + + + }) + .catch(function(error) { + cb(error); + }); + + }, + + // final cb function + ], function(err, result) { + + // catch all errors + if (err) { + + // use global logger to log to console + log.error(err); + + // return error message to client + return next(new restify.InternalError(err.message)); + + } + + // send response to client + res.send(200, result); + return next(); + }); + +}); diff --git a/api/routes/index.js b/api/routes/index.js new file mode 100644 index 0000000..47ee32e --- /dev/null +++ b/api/routes/index.js @@ -0,0 +1,27 @@ +'use strict'; + +/** + * Catch All + */ +server.opts(/\.*/, function (req, res, next) { + res.send(200); + next(); +}); + +/** + * Routes + */ +require('./active'); +require('./comments'); +require('./followers'); +require('./likes'); +require('./searches'); +require('./uploads'); +require('./users'); +require('./explore'); +require('./trending'); +require('./locations'); +require('./contributions'); +require('./stats'); +require('./following-activity'); +require('./incoming-activity'); diff --git a/api/routes/likes.js b/api/routes/likes.js new file mode 100644 index 0000000..20d45cf --- /dev/null +++ b/api/routes/likes.js @@ -0,0 +1,251 @@ +'use strict'; + +/** + * Module Dependencies + */ +var async = require('async'), + stream = require('getstream'); + +/** + * Get all likes (optionally for a specific user and/or upload) + * URL: /likes + * Method: GET + * Auth Required: Yes + * @param {string} user_id This required param specifies the user id to filter by + * @param {string} upload_id This required param specifies the upload id to filter by + * @returns {object} Returns a 200 status code with an array of like objects + */ +server.get('/likes', function(req, res, next) { + + // extract query params + var params = req.params || {}; + + // empty array to hold onto our params for sql query + var bindings = []; + + // base sql query + var userSql = ''; + + // if a user id was passed in, get all of the likes for that user + if (params.user_id) { + userSql += `,IF((SELECT 1 AS liked FROM likes WHERE user_id = ? AND upload_id = ?), true, false) AS liked`; + bindings.push(params.user_id) + bindings.push(params.upload_id) + } + + // create like count sql + var sql = ` + SELECT + COUNT(*) AS likes + ${userSql} + FROM likes + `; + + // if upload id was passed, append query and push upload id into bindings array + if (params.upload_id) { + sql += ' WHERE upload_id = ? '; + bindings.push(params.upload_id) + } + + db.query(sql, bindings, function(err, result) { + if (err) { + log.error(err); + return next(new restify.InternalError(err.message)); + } + res.send(200, result[0]); + return next(); + }); + +}); + + /** + * Create a likes for a specific upload + * URL: /likes + * Method: POST + * Auth Required: Yes + * @param {string} user_id This required param specifies the user id to associate with + * @param {string} upload_id This required param specifies the upload id to associate with + * @returns {object} Returns a 201 status code with the created object + */ +server.post('/likes', function(req, res, next) { + + // extract params from body + var data = req.body || {}; + data['created_at'] = new Date(); + + // async waterfall (see: https://github.com/caolan/async) + async.waterfall([ + + // insert like into database + function(cb) { + + // execute query and use data passed in via body + db.query('INSERT INTO likes SET ?', data, function(err, like) { + + if (err) { + log.error(err); + return next(new restify.InternalError(err.message)); + } + + // use object assign to merge row id + like = Object.assign({ id: like.insertId }, data); + + cb(null, like); + + }); + + }, + + // get user id from upload + function(like, cb) { + db.query('SELECT * FROM uploads WHERE id = ?', [like.upload_id], function(err, upload) { + if (err) { + cb(err); + } + cb(null, like, upload); + }); + }, + // send back in response + function(like, upload, cb) { + db.query('SELECT COUNT(*) AS total FROM likes WHERE upload_id = ?', [ like.upload_id ], function(err, count) { + if (err) { + cb(err); + } + var result = Object.assign({ id: like.id }, { user_id: upload.user_id }, { likes: count[0].total }, data); + cb(null, result); + }); + + }, + + function(result, cb) { + db.query('SELECT user_id FROM uploads WHERE id = ?', [ result.upload_id ], function(err, row) { + if (err) { + return cb(err); + } + cb(null, Object.assign(result, { to: row[0].user_id })) + }); + }, + + // last cb function + function(result, cb) { + + // instantiate a new client (server side) + var streamClient = stream.connect(config.stream.key, config.stream.secret); + + // instantiate a feed using feed class 'user' and the user id from the database + var userFeed = streamClient.feed('user', data.user_id); + + // build activity object for stream feed + var activity = { + actor: `user:${data.user_id}`, + verb: 'like', + object: `upload:${data.upload_id}`, + foreign_id: `like:${result.id}`, + time: data['created_at'], + to: [`notification:${result.to}`], + }; + + // add activity to the feed + userFeed.addActivity(activity) + .then(function(response) { + cb(null, result); + }) + .catch(function(err) { + cb(err); + }); + + } + + // final cb callback + ], function(err, result) { + + // catch all errors + if (err) { + + // use global logger to log to console + log.error(err); + + // return error message to client + return next(new restify.InternalError(err)); + + } + + // send response to client + res.send(201, result); + return next(); + + }); + +}); + +/** + * Delete a like for a specific upload + * URL: /likes + * Method: DELETE + * Auth Required: Yes + * @param {string} user_id This required param specifies the user id to filter by + * @param {string} upload_id This required param specifies the upload id to filter by + * @returns {object} Returns a 201 status code + */ +server.del('/likes', function(req, res, next) { + + // extract query params + var params = req.params || {}; + + // async waterfall (see: https://github.com/caolan/async) + async.waterfall([ + + // delete like form database + function(cb) { + + // execute query + db.query('DELETE FROM likes WHERE user_id = ? AND upload_id = ?', [ params.user_id, params.upload_id ], function(err, like) { + + if (err) { + cb(err); + } + + cb(null, like); + + }); + }, + + // get like count for response + function(like, cb) { + + // execute query + db.query('SELECT COUNT(*) AS likes FROM likes WHERE upload_id = ?', [ params.upload_id ], function(err, count) { + + if (err) { + cb(err); + } + + var result = Object.assign(like, count); + + cb(null, result); + + }); + + } + +// last cb callback +], function(err, result) { + + // catch all errors + if (err) { + + // use global logger to log to console + log.error(err); + + // return error message to client + return next(new restify.InternalError(err)); + + } + + // send response to client + res.send(200, result[0]); + return next(); + + }); + +}); diff --git a/api/routes/locations.js b/api/routes/locations.js new file mode 100644 index 0000000..51e072d --- /dev/null +++ b/api/routes/locations.js @@ -0,0 +1,50 @@ +'use strict'; + +/** + * Get uploads based on location + * URL: /locations + * Method: GET + * Auth Required: Yes + * @param {string} location This required param specifies the location to filter by + * @returns {object} Returns a 200 status code with an array of search objects + */ +server.get('/locations', function(req, res, next) { + + // extract query params + var params = req.params || {}; + + // if params don't exist, respond with empty object + if (!params.q) { + res.send(200, []); + return next(); + } + + // build sql query + var sql = ` + SELECT * + FROM uploads + WHERE location LIKE ? + ORDER BY created_at DESC + `; + + // build query + db.query(sql, [params.q], function(err, result) { + + // catch all errors + if (err) { + + // use global logger to log to console + log.error(err); + + // return error message to client + return next(new restify.InternalError(err.message)); + + } + + // send response to client + res.send(200, result) + return next(); + + }); + +}) diff --git a/api/routes/searches.js b/api/routes/searches.js new file mode 100644 index 0000000..41e8c98 --- /dev/null +++ b/api/routes/searches.js @@ -0,0 +1,81 @@ +'use strict'; + +/** + * Get all searches performed by a user (aka search history) + * URL: /searches + * Method: GET + * Auth Required: Yes + * @param {string} user_id This required param specifies the user id to filter by + * @returns {object} Returns a 200 status code with an array of search objects + */ +server.get('/searches', function(req, res, next) { + + // extract query params + var params = req.params || {}; + + // build sql query + var sql = ` + SELECT + search, + created_at + FROM searches + WHERE searches.user_id = ? + GROUP BY searches.search + ORDER BY created_at DESC + LIMIT 10 + `; + + // execute query + db.query(sql, [ params.user_id ], function(err, results) { + + // catch all errors + if (err) { + + // use global logger to log to console + log.error(err); + + // return error message to client + return next(new restify.InternalError(err.message)); + + } + + // send response to client + res.send(200, results); + return next(); + + }); + +}); + +/** + * Create a search record for history lookup + * URL: /searches + * Method: POST + * Auth Required: Yes + * @param {string} user_id This required param specifies the user id to associate search with + * @param {string} search This required param specifies the search value + * @returns {object} Returns a 200 status code with an array of search objects + */ +server.post('/searches', function(req, res, next) { + + // extract params from body + var data = req.body || {}; + + // execute query using data from body + db.query('INSERT INTO searches SET ?', data, function(err, result) { + + if (err) { + log.error(err); + return next(new restify.InternalError(err.message)); + } + + // user object.assign to inject new record id + result = Object.assign({ id: result.insertId }, data); + + // send response to client + res.send(201, result); + return next(); + + }); + +}); diff --git a/api/routes/stats.js b/api/routes/stats.js new file mode 100644 index 0000000..9aabc96 --- /dev/null +++ b/api/routes/stats.js @@ -0,0 +1,121 @@ +/** + * Module Dependencies + */ +var async = require('async'), + Keen = require('keen.io'); +/** + * Upload an image + * URL: /uploads + * Method: GET + * Auth Required: Yes + * @param {string} user_id This required param specifies the user id to filter by + * @returns {object} Returns a 201 status code with the upload object + */ +server.get('/stats/:user_id', function(req, res, next) { + + // extract query params + var params = req.params || {}; + + // async waterfall (see: https://github.com/caolan/async) + async.waterfall([ + + // keen query + function(cb) { + + // configure instance of keenClient + var keenClient = Keen.configure({ + projectId: config.keen.projectId, + writeKey: config.keen.writeKey, + readKey: config.keen.readKey, + masterKey: config.keen.masterKey, + }); + + // build query + var keenQuery = new Keen.Query("count", { + event_collection: 'views', + timeframe: 'this_30_days', + group_by: "postId", + filters: [{ + property_name: 'postAuthorId', + operator: 'eq', + property_value: 1, + }] + }); + + // run query + keenClient.run(keenQuery, function(err, res) { + + if (err) { + cb(err); + } + + function compareItems(a, b) { + return (a['result'] - b['result']) * -1; + } + + var sortedItems = res.result; + sortedItems.sort(compareItems); + + var topItems = sortedItems.slice(0, 5); + var postIds = []; + var postViewCounts = {}; + + // loop through top items + topItems.forEach(function(value) { + postIds.push(value['postId']) + postViewCounts[value['postId']] = value['result'] + }); + + cb(null, postIds, postViewCounts); + + }); + + }, + + // database query + function(postIds, postViewCounts, cb) { + + // run query + db.query('SELECT * FROM uploads WHERE id IN (?)', [postIds], function(err, uploads) { + + if (err) { + log.error(err); + return next(new restify.InternalError(err.message)); + } + + uploads.forEach(function(upload) { + upload.viewCount = postViewCounts[upload.id] + }); + + function compareUploads(a, b) { + return (a['viewCount'] - b['viewCount']) * -1; + } + + uploads.sort(compareUploads); + + cb(null, uploads); + + }); + + } + + ], function(err, result) { + + // catch all errors + if (err) { + + // use global logger to log to console + log.error(err); + + // return error message to client + return next(new restify.InternalError(err)); + + } + + // send response to client + res.send(200, { 'mostViewed': result }); + return next(); + + }); + +}); diff --git a/api/routes/trending.js b/api/routes/trending.js new file mode 100644 index 0000000..2a91c17 --- /dev/null +++ b/api/routes/trending.js @@ -0,0 +1,49 @@ +'use strict'; + +/** + * Get trending uploads based on like count + * URL: /trending + * Method: GET + * Auth Required: Yes + * @param {string} user_id This required param specifies the user id to filter by + * @returns {object} Returns a 200 status code with an array of upload objects + */ +server.get('/trending', function(req, res, next) { + + // extract params + var params = req.params || {}; + + // build sql query + var sql = ` + SELECT + uploads.*, + COUNT(likes.id) AS likeTotal + FROM uploads + LEFT JOIN likes + ON likes.upload_id = uploads.id + WHERE uploads.user_id != ? + GROUP BY uploads.id + ORDER BY COUNT(likes.id) DESC + `; + + // execute query + db.query(sql, [params.user_id], function(err, result) { + + // catch all errors + if (err) { + + // use global logger to log to console + log.error(err); + + // return error message to client + return next(new restify.InternalError(err.message)); + + } + + // send response to client + res.send(200, result) + return next(); + + }); + +}); diff --git a/api/routes/uploads.js b/api/routes/uploads.js new file mode 100644 index 0000000..9040bfb --- /dev/null +++ b/api/routes/uploads.js @@ -0,0 +1,383 @@ +'use strict'; + +/** + * Module Dependencies + */ +var knox = require('knox'), + uuid = require('node-uuid'), + geo = require('mapbox-geocoding'), + async = require('async'), + stream = require('getstream'), + streamUtils = require('../lib/stream_utils'), + algoliaSearch = require('algoliasearch'); + +/** + * Get uploads based on query + * URL: /uploads + * Method: GET + * Auth Required: Yes + * @param {string} user_id This required param specifies the user id to filter by + * @param {string} type This optional param specifies the type to filter by + * @param {string} query This optional param specifies the query to filter by + * @returns {object} Returns a 200 status code with an array of upload objects + */ +server.get('/uploads', function(req, res, next) { + + // extract query params + var params = req.params || {}; + + // default sql + var sql = ''; + + // if the params type and query are defined, build query for 'type' + if (params.type && params.query) { + + // check type and build query + switch (params.type) { + case 'hashtags': + sql = ` + SELECT * + FROM uploads + WHERE hashtags LIKE '%${params.query.substring(1)}%' + `; + break; + case 'location': + sql = ` + SELECT * + FROM uploads + WHERE location LIKE '%${params.query}%' + `; + break; + case 'user': + const userName = params.query.split(' ') + sql = ` + SELECT * + FROM uploads + LEFT JOIN users + ON uploads.user_id = users.id + WHERE users.first_name = ${db.escape(userName[0])} + AND CONCAT(SUBSTR(users.last_name, 1, 1), '.') = ${db.escape(userName[1])} + `; + break; + } + + // execute sql query + db.query(sql, function(err, result) { + + // catch all errors + if (err) { + + // use global logger to log to console + log.error(err); + + // return error message to client + return next(new restify.InternalError(err.message)); + + } + + // send response to client + res.send(200, result); + return next(); + + }); + + // otherwise default to normal query + } else { + + // async waterfall (see: https://github.com/caolan/async) + async.waterfall([ + + // connect to stream + function(cb) { + + // instantiate a new client (server side) + var streamClient = stream.connect(config.stream.key, config.stream.secret); + + // instantiate a feed using feed class 'timeline_flat' and user id from params + var timelineFlatFeed = streamClient.feed('timeline_flat', params.user_id); + + cb(null, timelineFlatFeed); + + }, + + // get and loop through activities + function(timelineFlatFeed, cb) { + + // build query params for stream (id_lt is preferred) + var uploadGetParams = { limit: 5, } + if (params.last_id) uploadGetParams.id_lt = params.last_id + + // get activities from stream + timelineFlatFeed.get(uploadGetParams) + .then(function(stream) { + + // length of activity results + var ln = stream.results.length; + + // exit if length is zero + if (!ln) { + res.send(204); + return next(); + } + + // enrich the activities + var references = streamUtils.referencesFromActivities(stream.results); + streamUtils.loadReferencedObjects(references, params.user_id, function(referencedObjects) { + streamUtils.enrichActivities(stream.results, referencedObjects); + cb(null, stream.results); + }); + + }) + .catch(function(error) { + cb(error); + }); + + } + + // final cb callback + ], function(err, result) { + + // catch all errors + if (err) { + + // use global logger to log to console + log.error(err); + + // return error message to client + return next(new restify.InternalError(err)); + + } + + // send response to client + res.send(200, result); + return next(); + + }); + + } + +}); + +/** + * Get uploads based on query + * URL: /uploads + * Method: GET + * Auth Required: Yes + * @param {string} user_id This required param specifies the user id to filter by + * @param {string} id This required param specifies the upload id to filter by + * @returns {object} Returns a 200 status code with the upload object + */ +server.get('/upload', function(req, res, next) { + + // extract query params + var params = req.params || {}; + + // build sql statement + var sql = ` + SELECT + uploads.*, + users.id AS user_id, + MD5(users.email) AS email_md5, + users.first_name AS first_name, + users.last_name AS last_name, + users.fb_uid AS fb_uid, + IF((SELECT 1 AS liked FROM likes WHERE user_id = ? AND upload_id = uploads.id), true, false) AS liked + FROM uploads + LEFT JOIN users + ON users.id = uploads.user_id + WHERE uploads.id = ? + ORDER BY uploads.created_at DESC + `; + + // execute sql query + db.query(sql, [params.user_id, params.id], function(err, result) { + + // catch all errors + if (err) { + + // use global logger to log to console + log.error(err); + + // return error message to client + return next(new restify.InternalError(err.message)); + + } + + // send response to client + res.send(200, result[0]); + return next(); + + }); + +}); + +/** + * Upload an image + * URL: /uploads + * Method: POST + * Auth Required: Yes + * @param {string} user_id This required param specifies the user id to associate the upload with + * @param {string} caption Caption to associate with the uploaded image + * @param {string} hashtags Hashtags to associate with the uploaded image + * @param {string} location Location to associate with the uploaded image + * @param {object} file This required param specifies the image to upload + * @returns {object} Returns a 201 status code with the upload object + */ +server.post('/uploads', function(req, res, next) { + + // extract params from body and file from uploaded files + var data = req.body || {}, + file = req.files || {}; + + // generate unique filename using uuid and assign to object + data.filename = uuid.v4(); + data['created_at'] = new Date(); + + // async waterfall (see: https://github.com/caolan/async) + async.waterfall([ + + // upload file to amazon s3 + function(cb) { + + // initialize knox client + var knoxClient = knox.createClient({ + key: config.s3.key, + secret: config.s3.secret, + bucket: config.s3.bucket + }); + + // send put via knox + knoxClient.putFile(file.image.path, 'uploads/' + data.filename, { + 'Content-Type': file.image.type, + 'x-amz-acl': 'public-read' + }, function(err, result) { + + if (err || result.statusCode != 200) { + cb(err); + } + + cb(null); + + }); + + }, + + // use mapbox to get latitude and longitude + function(cb) { + + // initialize mapbox client + geo.setAccessToken(config.mapbox.accessToken); + + // get location data + geo.geocode('mapbox.places', data.location, function (err, location) { + + if (err) { + cb(err); + } + + // if the location was found + if (location.features.length) { + + // extract coorindates + var coords = location.features[0].geometry.coordinates; + if (coords.length) { + + // assign to latitude and longitude in data object + data.longitude = coords[0]; + data.latitude = coords[1]; + + } + + } + + cb(null) + + }); + + }, + + // insert record into database + function(cb) { + + // run query using node mysql, passing the data object as params + db.query('INSERT INTO uploads SET ?', data, function(err, result) { + + if (err) { + cb(err); + } + + // use object assign to merge the object id + result = Object.assign({}, { id: result.insertId }, data); + + cb(null, result); + + }); + + }, + + // submit to algolia for indexing + function(result, cb) { + + // initialize algolia + var algolia = algoliaSearch(config.algolia.appId, config.algolia.apiKey); + + // initialize algoia index + var index = algolia.initIndex('cabin'); + + // add returned database object for indexing + index.addObject(result); + + cb(null, result); + + }, + + // submit to stream + function(result, cb) { + + // instantiate a new client (server side) + var streamClient = stream.connect(config.stream.key, config.stream.secret); + + // build activity object for stream feed + var activity = { + actor: `user:${data.user_id}`, + verb: 'add', + object: `upload:${result.id}`, + foreign_id: `upload:${result.id}`, + time: data['created_at'] + }; + + // instantiate a feed using feed class 'user_posts' and the user id from the database + var userFeed = streamClient.feed('user_posts', data.user_id); + + // add activity to the feed + userFeed.addActivity(activity) + .then(function(response) { + cb(null, result); + }) + .catch(function(err) { + cb(err); + }); + + } + + // final cb function + ], function(err, result) { + + // catch all errors + if (err) { + + // use global logger to log to console + log.error(err); + + // return error message to client + return next(new restify.InternalError(err)); + + } + + // respond to client with result from database + res.send(201, result); + return next(); + + }); + +}); diff --git a/api/routes/users.js b/api/routes/users.js new file mode 100644 index 0000000..9baaf2f --- /dev/null +++ b/api/routes/users.js @@ -0,0 +1,313 @@ +'use strict'; + +/** + * Module Dependencies + */ +var stream = require('getstream'), + jwt = require('jsonwebtoken'), + async = require('async'), + FB = require('fb'), + algoliaSearch = require('algoliasearch'); + +/** + * Get user by id + * URL: /users/:id + * Method: GET + * Auth Required: Yes + * @param {string} user_id This required param specifies the user id to filter by + * @returns {object} Returns a 200 status code with the user object + */ +server.get('/users/:id', function(req, res, next) { + + // extract params + var params = req.params || {}; + + // empty array to hold bindings + var bindings = []; + + // base sql query + var sql = ''; + + // if a user id exists + if (params.user_id) { + + // build sql query + sql = ` + SELECT + users.id AS id, + users.fb_uid AS fb_uid, + users.first_name AS first_name, + users.last_name AS last_name, + MD5(users.email) AS email_md5, + users.created_at AS created_at, + users.modified_at AS modified_at, + IF( + (SELECT + 1 AS following + FROM followers + WHERE user_id = ? + AND follower_id = users.id + ), + true, false + ) AS following, + IF( + (SELECT + 1 AS following + FROM followers + WHERE follower_id = ? + AND user_id = users.id + ), + true, false + ) AS follower, + (SELECT COUNT(id) FROM followers WHERE user_id = users.id) AS following_count, + (SELECT COUNT(id) FROM followers WHERE follower_id = ?) AS follower_count + FROM users + + WHERE id = ? + OR fb_uid = ? + OR email = ? + `; + + // push query params into bindings array + bindings = [params.user_id, params.user_id, params.id, params.id, params.id, params.id]; + + // select user based off of provided fb_uid or email + } else { + + // build sql + sql = ` + SELECT + users.id AS id, + users.fb_uid AS fb_uid, + users.first_name AS first_name, + users.last_name AS last_name, + MD5(users.email) AS email_md5, + users.created_at AS created_at, + users.modified_at AS modified_at + FROM users + WHERE id = ? + OR fb_uid = ? + OR email = ? + `; + + // push query params into bindings array + bindings = [params.id, params.id, params.id]; + + } + + // execute query + db.query(sql, bindings, function(err, result) { + + // catch all errors + if (err) { + + // use global logger to log to console + log.error(err); + + // return error message to client + return next(new restify.InternalError(err.message)); + + } + + // use object.assign to merge stream tokens + result = Object.assign({}, result[0]); + + // send response to client + res.send(200, result); + return next(); + + }); + +}); + +/** + * Create user or return the user object if they already exist + * URL: /users + * Method: POST + * Auth Required: Yes + * @param {string} fb_uid A unique Facebook user id to associate with the user (aka app specific fb uid) + * @param {string} first_name The users first name + * @param {string} last_name The users last name + * @param {string} email A unique email address to associate with the user + * @returns {object} Returns a 201 or 200 status code with the user object + */ +server.post('/users', function(req, res, next) { + + // extract data from body + var data = req.body || {}; + var fbUserId = data.fb_user_id; + var accessToken = data.token; + var options = { + appId : '1714548178824131', + xfbml : true, + version : 'v2.6', + status : true, + cookie : true, + }; + var fb = new FB.Facebook(options); + fb.setAccessToken(accessToken); + + async.waterfall([ + + function (cb) { + // query the userdata from FB + fb.api('/me', 'get', { fields: 'id,name,email' }, function(facebookUserData) { + cb(null, facebookUserData); + }); + }, + + function(facebookUserData, cb) { + + // build the data we're going to insert + var data = {}; + data.email = facebookUserData.email; + data.fb_uid = facebookUserData.id; + data.first_name = facebookUserData.name.split(' ')[0]; + data.last_name = facebookUserData.name.split(' ')[1]; + + // try select first + db.query('SELECT * FROM users WHERE email=' + db.escape(data.email), function(err, result) { + + if (err) { + log.error(err); + return next(new restify.InternalError(err.message)); + } + + // instantiate a new client (server side) + var streamClient = stream.connect(config.stream.key, config.stream.secret); + + // generate jwt + var jwtToken = jwt.sign({ + request: { + email: data.email + } + }, config.jwt.secret); + + // if user exists, return result + if (result.length) { + + var userId = result[0].id; + + // get tokens from stream client + var tokens = { + timeline: { + flat: streamClient.getReadOnlyToken('timeline_flat', userId), + aggregated: streamClient.getReadOnlyToken('timeline_aggregrated', userId), + }, + notification : streamClient.getReadOnlyToken('notification', userId), + }; + + // user object.assign to insert tokens from stream and jwt + result = Object.assign({}, result[0], { tokens: tokens }, { jwt: jwtToken }); + + // send response to client + res.send(200, result); + return next(); + + } + + // execute query + db.query('INSERT INTO users SET ?', data, function(err, result) { + + if (err) { + log.error(err); + return next(new restify.InternalError(err.message)); + } + + // user object.assign to insert new row id and tokens from stream + result = Object.assign({}, { id: result.insertId }, data, tokens); + + // initialize algolia + var algolia = algoliaSearch(config.algolia.appId, config.algolia.apiKey); + + // initialize algoia index + var index = algolia.initIndex('cabin'); + + // add returned database object for indexing + index.addObject(result); + + // use object.assign insert jwt + result = Object.assign({}, result, { jwt: jwtToken }); + + var userId = result.id; + + // auto follow user id 1 (a.k.a stream cabin) + db.query('INSERT INTO followers SET user_id=?, follower_id=?', [userId, 1], function(err, result) { + + // instantiate a new client (server side) + var streamClient = stream.connect(config.stream.key, config.stream.secret); + + // instantiate a feed using feed class 'user' and the user id from the database + var userFeed = streamClient.feed('user', userId); + + // build activity object for stream feed + var activity = { + actor: `user:${userId}`, + verb: 'follow', + object: `user:${1}`, + foreign_id: `follow:${userId}`, + time: data['created_at'], + to: [`notification:${1}`] + }; + + // instantiate a feed using feed class 'timeline_flat' and the user id from the database + var timeline = streamClient.feed('timeline_flat', userId); + timeline.follow('user_posts', 1); + + // instantiate a feed using feed class 'timeline_aggregated' and the user id from the database + var timelineAggregated = streamClient.feed('timeline_aggregated', userId); + timelineAggregated.follow('user', 1); + + // add activity to the feed + userFeed.addActivity(activity) + .then(function(response) { + + // send response to client + res.send(201, result); + return next(); + + }) + .catch(function(reason) { + log.error(reason); + return next(new restify.InternalError(reason.error)); + }); + + }); + + }); + + }); + }]); +}); + +/** + * Delete an existing user + * URL: /users + * Method: DELETE + * Auth Required: Yes + * @param {string} user_id A unique database user id to to delete + * @returns {object} Returns a 204 status code + */ +server.del('/users/:user_id', function(req, res, next) { + + var params = req.params || {}; + + db.query('DELETE FROM users WHERE id = ?', [params.user_id], function(err, result) { + + // catch all errors + if (err) { + + // use global logger to log to console + log.error(err); + + // return error message to client + return next(new restify.InternalError(err.message)); + + } + + res.send(204); + return next(); + + }); + +}); diff --git a/app/.babelrc b/app/.babelrc new file mode 100644 index 0000000..54c0c0e --- /dev/null +++ b/app/.babelrc @@ -0,0 +1,13 @@ +{ + "presets": [ + "es2015", + "stage-0", + "react" + ], + "plugins": [ + "transform-runtime", + "transform-decorators-legacy", + "transform-es2015-block-scoping", + "transform-es2015-constants" + ] +} diff --git a/app/.gitignore b/app/.gitignore new file mode 100644 index 0000000..5dcff25 --- /dev/null +++ b/app/.gitignore @@ -0,0 +1,38 @@ +# Logs +logs +*.log +npm-debug.log* + +# Runtime data +pids +*.pid +*.seed + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage + +# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (http://nodejs.org/api/addons.html) +build/Release + +# Dependency directory +node_modules + +# Optional npm cache directory +.npm + +# Optional REPL history +.node_repl_history + +# OS +.DS_Store + +env diff --git a/app/LICENSE b/app/LICENSE new file mode 100644 index 0000000..d8c3eb8 --- /dev/null +++ b/app/LICENSE @@ -0,0 +1,23 @@ +Copyright (c) 2016, Stream +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/app/app.js b/app/app.js new file mode 100644 index 0000000..a082a4c --- /dev/null +++ b/app/app.js @@ -0,0 +1,56 @@ +/** + * Module Dependencies + */ +var express = require('express'), + path = require('path'), + favicon = require('serve-favicon'), + logger = require('morgan'), + cookieParser = require('cookie-parser'), + bodyParser = require('body-parser'), + routes = require('./routes/index'); + +var app = express(); + +/** + * Middleware + */ +app.set('views', path.join(__dirname, 'views')); +app.set('view engine', 'ejs'); + +app.use(favicon(path.join(__dirname, 'public', 'favicon.ico'))); +app.use(logger('dev')); +app.use(bodyParser.json()); +app.use(bodyParser.urlencoded({ extended: false })); +app.use(cookieParser()); +app.use(express.static(path.join(__dirname, 'public'))); + +app.use('/', routes); + +app.use(function(req, res, next) { + var err = new Error('Not Found'); + err.status = 404; + next(err); +}); + +/** + * Logging + */ +if (app.get('env') === 'development') { + app.use(function(err, req, res, next) { + res.status(err.status || 500); + res.render('error', { + message: err.message, + error: err + }); + }); +} + +app.use(function(err, req, res, next) { + res.status(err.status || 500); + res.render('error', { + message: err.message, + error: {} + }); +}); + +module.exports = app; diff --git a/app/bin/www b/app/bin/www new file mode 100755 index 0000000..60df057 --- /dev/null +++ b/app/bin/www @@ -0,0 +1,90 @@ +#!/usr/bin/env node + +/** + * Module dependencies. + */ + +var app = require('../app'); +var debug = require('debug')('react:server'); +var http = require('http'); + +/** + * Get port from environment and store in Express. + */ + +var port = normalizePort(process.env.PORT || '3000'); +app.set('port', port); + +/** + * Create HTTP server. + */ + +var server = http.createServer(app); + +/** + * Listen on provided port, on all network interfaces. + */ + +server.listen(port); +server.on('error', onError); +server.on('listening', onListening); + +/** + * Normalize a port into a number, string, or false. + */ + +function normalizePort(val) { + var port = parseInt(val, 10); + + if (isNaN(port)) { + // named pipe + return val; + } + + if (port >= 0) { + // port number + return port; + } + + return false; +} + +/** + * Event listener for HTTP server "error" event. + */ + +function onError(error) { + if (error.syscall !== 'listen') { + throw error; + } + + var bind = typeof port === 'string' + ? 'Pipe ' + port + : 'Port ' + port; + + // handle specific listen errors with friendly messages + switch (error.code) { + case 'EACCES': + console.error(bind + ' requires elevated privileges'); + process.exit(1); + break; + case 'EADDRINUSE': + console.error(bind + ' is already in use'); + process.exit(1); + break; + default: + throw error; + } +} + +/** + * Event listener for HTTP server "listening" event. + */ + +function onListening() { + var addr = server.address(); + var bind = typeof addr === 'string' + ? 'pipe ' + addr + : 'port ' + addr.port; + debug('Listening on ' + bind); +} diff --git a/app/config.js b/app/config.js new file mode 100644 index 0000000..5b5c4a1 --- /dev/null +++ b/app/config.js @@ -0,0 +1,32 @@ +'use strict'; + +/** + * Config + */ +module.exports = { + name: 'GetStream.io - React Example App', + version: '1.0.0', + env: process.env.NODE_ENV || 'DEVELOPMENT', + mapbox: { + accessToken: process.env.MAPBOX_ACCESS_TOKEN, + }, + stream: { + appId: process.env.STREAM_APP_ID, + key: process.env.STREAM_KEY, + }, + api: { + baseUrl: process.env.API_URL, + }, + imgix: { + baseUrl: process.env.IMGIX_BASE_URL, + }, + algolia: { + appId: process.env.ALGOLIA_APP_ID, + searchOnlyKey: process.env.ALGOLIA_SEARCH_ONLY_KEY, + }, + keen: { + projectId: process.env.KEEN_PROJECT_ID, + writeKey: process.env.KEEN_WRITE_KEY, + readKey: process.env.KEEN_READ_KEY, + } +}; diff --git a/app/docs/ast/source/App.js.json b/app/docs/ast/source/App.js.json new file mode 100644 index 0000000..9bfb3a1 --- /dev/null +++ b/app/docs/ast/source/App.js.json @@ -0,0 +1,8550 @@ +{ + "type": "Program", + "start": 0, + "end": 3672, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 165, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + }, + { + "type": "ImportSpecifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "imported": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + }, + "local": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 33, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 33 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ImportDeclaration", + "start": 41, + "end": 78, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 37 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 50, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "imported": { + "type": "Identifier", + "start": 50, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "name": "connect" + }, + "local": { + "type": "Identifier", + "start": 50, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "name": "connect" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 65, + "end": 78, + "loc": { + "start": { + "line": 2, + "column": 24 + }, + "end": { + "line": 2, + "column": 37 + } + }, + "value": "react-redux", + "rawValue": "react-redux", + "raw": "'react-redux'" + } + }, + { + "type": "ImportDeclaration", + "start": 79, + "end": 124, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 45 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 88, + "end": 102, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 23 + } + }, + "imported": { + "type": "Identifier", + "start": 88, + "end": 102, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 23 + } + }, + "name": "browserHistory" + }, + "local": { + "type": "Identifier", + "start": 88, + "end": 102, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 23 + } + }, + "name": "browserHistory" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 110, + "end": 124, + "loc": { + "start": { + "line": 3, + "column": 31 + }, + "end": { + "line": 3, + "column": 45 + } + }, + "value": "react-router", + "rawValue": "react-router", + "raw": "'react-router'" + } + }, + { + "type": "VariableDeclaration", + "start": 126, + "end": 176, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 50 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 132, + "end": 176, + "loc": { + "start": { + "line": 5, + "column": 6 + }, + "end": { + "line": 5, + "column": 50 + } + }, + "id": { + "type": "Identifier", + "start": 132, + "end": 136, + "loc": { + "start": { + "line": 5, + "column": 6 + }, + "end": { + "line": 5, + "column": 10 + } + }, + "name": "Home" + }, + "init": { + "type": "MemberExpression", + "start": 139, + "end": 176, + "loc": { + "start": { + "line": 5, + "column": 13 + }, + "end": { + "line": 5, + "column": 50 + } + }, + "object": { + "type": "CallExpression", + "start": 139, + "end": 168, + "loc": { + "start": { + "line": 5, + "column": 13 + }, + "end": { + "line": 5, + "column": 42 + } + }, + "callee": { + "type": "Identifier", + "start": 139, + "end": 146, + "loc": { + "start": { + "line": 5, + "column": 13 + }, + "end": { + "line": 5, + "column": 20 + } + }, + "name": "require" + }, + "arguments": [ + { + "type": "Literal", + "start": 147, + "end": 167, + "loc": { + "start": { + "line": 5, + "column": 21 + }, + "end": { + "line": 5, + "column": 41 + } + }, + "value": "./routes/Home/Home", + "rawValue": "./routes/Home/Home", + "raw": "'./routes/Home/Home'" + } + ] + }, + "property": { + "type": "Identifier", + "start": 169, + "end": 176, + "loc": { + "start": { + "line": 5, + "column": 43 + }, + "end": { + "line": 5, + "column": 50 + } + }, + "name": "default" + }, + "computed": false + } + } + ], + "kind": "const" + }, + { + "type": "ImportDeclaration", + "start": 178, + "end": 308, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 12, + "column": 16 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 191, + "end": 208, + "loc": { + "start": { + "line": 8, + "column": 4 + }, + "end": { + "line": 8, + "column": 21 + } + }, + "imported": { + "type": "Identifier", + "start": 191, + "end": 194, + "loc": { + "start": { + "line": 8, + "column": 4 + }, + "end": { + "line": 8, + "column": 7 + } + }, + "name": "App" + }, + "local": { + "type": "Identifier", + "start": 198, + "end": 208, + "loc": { + "start": { + "line": 8, + "column": 11 + }, + "end": { + "line": 8, + "column": 21 + } + }, + "name": "AppActions" + } + }, + { + "type": "ImportSpecifier", + "start": 214, + "end": 233, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 9, + "column": 23 + } + }, + "imported": { + "type": "Identifier", + "start": 214, + "end": 218, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 9, + "column": 8 + } + }, + "name": "User" + }, + "local": { + "type": "Identifier", + "start": 222, + "end": 233, + "loc": { + "start": { + "line": 9, + "column": 12 + }, + "end": { + "line": 9, + "column": 23 + } + }, + "name": "UserActions" + } + }, + { + "type": "ImportSpecifier", + "start": 239, + "end": 261, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 10, + "column": 26 + } + }, + "imported": { + "type": "Identifier", + "start": 239, + "end": 245, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 10, + "column": 10 + } + }, + "name": "Photos" + }, + "local": { + "type": "Identifier", + "start": 249, + "end": 261, + "loc": { + "start": { + "line": 10, + "column": 14 + }, + "end": { + "line": 10, + "column": 26 + } + }, + "name": "PhotoActions" + } + }, + { + "type": "ImportSpecifier", + "start": 267, + "end": 290, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 27 + } + }, + "imported": { + "type": "Identifier", + "start": 267, + "end": 273, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 10 + } + }, + "name": "Header" + }, + "local": { + "type": "Identifier", + "start": 277, + "end": 290, + "loc": { + "start": { + "line": 11, + "column": 14 + }, + "end": { + "line": 11, + "column": 27 + } + }, + "name": "HeaderActions" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 299, + "end": 308, + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 12, + "column": 16 + } + }, + "value": "actions", + "rawValue": "actions", + "raw": "'actions'" + } + }, + { + "type": "ImportDeclaration", + "start": 310, + "end": 350, + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 16, + "column": 19 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 323, + "end": 329, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 10 + } + }, + "imported": { + "type": "Identifier", + "start": 323, + "end": 329, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 10 + } + }, + "name": "Header" + }, + "local": { + "type": "Identifier", + "start": 323, + "end": 329, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 10 + } + }, + "name": "Header" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 338, + "end": 350, + "loc": { + "start": { + "line": 16, + "column": 7 + }, + "end": { + "line": 16, + "column": 19 + } + }, + "value": "components", + "rawValue": "components", + "raw": "'components'" + } + }, + { + "type": "ClassDeclaration", + "start": 449, + "end": 800, + "loc": { + "start": { + "line": 23, + "column": 0 + }, + "end": { + "line": 39, + "column": 1 + } + }, + "decorators": [ + { + "type": "Decorator", + "start": 352, + "end": 416, + "loc": { + "start": { + "line": 18, + "column": 0 + }, + "end": { + "line": 18, + "column": 64 + } + }, + "expression": { + "type": "CallExpression", + "start": 353, + "end": 416, + "loc": { + "start": { + "line": 18, + "column": 1 + }, + "end": { + "line": 18, + "column": 64 + } + }, + "callee": { + "type": "Identifier", + "start": 353, + "end": 360, + "loc": { + "start": { + "line": 18, + "column": 1 + }, + "end": { + "line": 18, + "column": 8 + } + }, + "name": "connect" + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 361, + "end": 415, + "loc": { + "start": { + "line": 18, + "column": 9 + }, + "end": { + "line": 18, + "column": 63 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 361, + "end": 366, + "loc": { + "start": { + "line": 18, + "column": 9 + }, + "end": { + "line": 18, + "column": 14 + } + }, + "name": "state" + } + ], + "body": { + "type": "ObjectExpression", + "start": 371, + "end": 414, + "loc": { + "start": { + "line": 18, + "column": 19 + }, + "end": { + "line": 18, + "column": 62 + } + }, + "properties": [ + { + "type": "Property", + "start": 373, + "end": 393, + "loc": { + "start": { + "line": 18, + "column": 21 + }, + "end": { + "line": 18, + "column": 41 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 373, + "end": 379, + "loc": { + "start": { + "line": 18, + "column": 21 + }, + "end": { + "line": 18, + "column": 27 + } + }, + "name": "header" + }, + "value": { + "type": "MemberExpression", + "start": 381, + "end": 393, + "loc": { + "start": { + "line": 18, + "column": 29 + }, + "end": { + "line": 18, + "column": 41 + } + }, + "object": { + "type": "Identifier", + "start": 381, + "end": 386, + "loc": { + "start": { + "line": 18, + "column": 29 + }, + "end": { + "line": 18, + "column": 34 + } + }, + "name": "state" + }, + "property": { + "type": "Identifier", + "start": 387, + "end": 393, + "loc": { + "start": { + "line": 18, + "column": 35 + }, + "end": { + "line": 18, + "column": 41 + } + }, + "name": "Header" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 395, + "end": 411, + "loc": { + "start": { + "line": 18, + "column": 43 + }, + "end": { + "line": 18, + "column": 59 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 395, + "end": 399, + "loc": { + "start": { + "line": 18, + "column": 43 + }, + "end": { + "line": 18, + "column": 47 + } + }, + "name": "user" + }, + "value": { + "type": "MemberExpression", + "start": 401, + "end": 411, + "loc": { + "start": { + "line": 18, + "column": 49 + }, + "end": { + "line": 18, + "column": 59 + } + }, + "object": { + "type": "Identifier", + "start": 401, + "end": 406, + "loc": { + "start": { + "line": 18, + "column": 49 + }, + "end": { + "line": 18, + "column": 54 + } + }, + "name": "state" + }, + "property": { + "type": "Identifier", + "start": 407, + "end": 411, + "loc": { + "start": { + "line": 18, + "column": 55 + }, + "end": { + "line": 18, + "column": 59 + } + }, + "name": "User" + }, + "computed": false + }, + "kind": "init" + } + ], + "parenthesizedExpression": true + } + } + ], + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * AppHeader component\n ", + "start": 418, + "end": 448, + "loc": { + "start": { + "line": 20, + "column": 0 + }, + "end": { + "line": 22, + "column": 3 + } + }, + "range": [ + 418, + 448 + ] + } + ] + } + ], + "id": { + "type": "Identifier", + "start": 455, + "end": 464, + "loc": { + "start": { + "line": 23, + "column": 6 + }, + "end": { + "line": 23, + "column": 15 + } + }, + "name": "AppHeader", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 473, + "end": 482, + "loc": { + "start": { + "line": 23, + "column": 24 + }, + "end": { + "line": 23, + "column": 33 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 483, + "end": 800, + "loc": { + "start": { + "line": 23, + "column": 34 + }, + "end": { + "line": 39, + "column": 1 + } + }, + "body": [ + { + "type": "MethodDefinition", + "start": 542, + "end": 798, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 38, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 542, + "end": 548, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 548, + "end": 798, + "loc": { + "start": { + "line": 28, + "column": 10 + }, + "end": { + "line": 38, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 551, + "end": 798, + "loc": { + "start": { + "line": 28, + "column": 13 + }, + "end": { + "line": 38, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 561, + "end": 597, + "loc": { + "start": { + "line": 29, + "column": 8 + }, + "end": { + "line": 29, + "column": 44 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 567, + "end": 597, + "loc": { + "start": { + "line": 29, + "column": 14 + }, + "end": { + "line": 29, + "column": 44 + } + }, + "id": { + "type": "ObjectPattern", + "start": 567, + "end": 584, + "loc": { + "start": { + "line": 29, + "column": 14 + }, + "end": { + "line": 29, + "column": 31 + } + }, + "properties": [ + { + "type": "Property", + "start": 569, + "end": 575, + "loc": { + "start": { + "line": 29, + "column": 16 + }, + "end": { + "line": 29, + "column": 22 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 569, + "end": 575, + "loc": { + "start": { + "line": 29, + "column": 16 + }, + "end": { + "line": 29, + "column": 22 + } + }, + "name": "header" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 569, + "end": 575, + "loc": { + "start": { + "line": 29, + "column": 16 + }, + "end": { + "line": 29, + "column": 22 + } + }, + "name": "header" + } + }, + { + "type": "Property", + "start": 577, + "end": 581, + "loc": { + "start": { + "line": 29, + "column": 24 + }, + "end": { + "line": 29, + "column": 28 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 577, + "end": 581, + "loc": { + "start": { + "line": 29, + "column": 24 + }, + "end": { + "line": 29, + "column": 28 + } + }, + "name": "user" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 577, + "end": 581, + "loc": { + "start": { + "line": 29, + "column": 24 + }, + "end": { + "line": 29, + "column": 28 + } + }, + "name": "user" + } + } + ] + }, + "init": { + "type": "MemberExpression", + "start": 587, + "end": 597, + "loc": { + "start": { + "line": 29, + "column": 34 + }, + "end": { + "line": 29, + "column": 44 + } + }, + "object": { + "type": "ThisExpression", + "start": 587, + "end": 591, + "loc": { + "start": { + "line": 29, + "column": 34 + }, + "end": { + "line": 29, + "column": 38 + } + } + }, + "property": { + "type": "Identifier", + "start": 592, + "end": 597, + "loc": { + "start": { + "line": 29, + "column": 39 + }, + "end": { + "line": 29, + "column": 44 + } + }, + "name": "props" + }, + "computed": false + } + } + ], + "kind": "const" + }, + { + "type": "ReturnStatement", + "start": 607, + "end": 792, + "loc": { + "start": { + "line": 31, + "column": 8 + }, + "end": { + "line": 37, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 628, + "end": 782, + "loc": { + "start": { + "line": 32, + "column": 12 + }, + "end": { + "line": 36, + "column": 35 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 628, + "end": 782, + "loc": { + "start": { + "line": 32, + "column": 12 + }, + "end": { + "line": 36, + "column": 35 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 652, + "end": 670, + "loc": { + "start": { + "line": 33, + "column": 16 + }, + "end": { + "line": 33, + "column": 34 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 652, + "end": 656, + "loc": { + "start": { + "line": 33, + "column": 16 + }, + "end": { + "line": 33, + "column": 20 + } + }, + "name": "left" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 657, + "end": 670, + "loc": { + "start": { + "line": 33, + "column": 21 + }, + "end": { + "line": 33, + "column": 34 + } + }, + "expression": { + "type": "MemberExpression", + "start": 658, + "end": 669, + "loc": { + "start": { + "line": 33, + "column": 22 + }, + "end": { + "line": 33, + "column": 33 + } + }, + "object": { + "type": "Identifier", + "start": 658, + "end": 664, + "loc": { + "start": { + "line": 33, + "column": 22 + }, + "end": { + "line": 33, + "column": 28 + } + }, + "name": "header" + }, + "property": { + "type": "Identifier", + "start": 665, + "end": 669, + "loc": { + "start": { + "line": 33, + "column": 29 + }, + "end": { + "line": 33, + "column": 33 + } + }, + "name": "left" + }, + "computed": false + } + } + }, + { + "type": "JSXAttribute", + "start": 687, + "end": 709, + "loc": { + "start": { + "line": 34, + "column": 16 + }, + "end": { + "line": 34, + "column": 38 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 687, + "end": 693, + "loc": { + "start": { + "line": 34, + "column": 16 + }, + "end": { + "line": 34, + "column": 22 + } + }, + "name": "middle" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 694, + "end": 709, + "loc": { + "start": { + "line": 34, + "column": 23 + }, + "end": { + "line": 34, + "column": 38 + } + }, + "expression": { + "type": "MemberExpression", + "start": 695, + "end": 708, + "loc": { + "start": { + "line": 34, + "column": 24 + }, + "end": { + "line": 34, + "column": 37 + } + }, + "object": { + "type": "Identifier", + "start": 695, + "end": 701, + "loc": { + "start": { + "line": 34, + "column": 24 + }, + "end": { + "line": 34, + "column": 30 + } + }, + "name": "header" + }, + "property": { + "type": "Identifier", + "start": 702, + "end": 708, + "loc": { + "start": { + "line": 34, + "column": 31 + }, + "end": { + "line": 34, + "column": 37 + } + }, + "name": "middle" + }, + "computed": false + } + } + }, + { + "type": "JSXAttribute", + "start": 726, + "end": 746, + "loc": { + "start": { + "line": 35, + "column": 16 + }, + "end": { + "line": 35, + "column": 36 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 726, + "end": 731, + "loc": { + "start": { + "line": 35, + "column": 16 + }, + "end": { + "line": 35, + "column": 21 + } + }, + "name": "right" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 732, + "end": 746, + "loc": { + "start": { + "line": 35, + "column": 22 + }, + "end": { + "line": 35, + "column": 36 + } + }, + "expression": { + "type": "MemberExpression", + "start": 733, + "end": 745, + "loc": { + "start": { + "line": 35, + "column": 23 + }, + "end": { + "line": 35, + "column": 35 + } + }, + "object": { + "type": "Identifier", + "start": 733, + "end": 739, + "loc": { + "start": { + "line": 35, + "column": 23 + }, + "end": { + "line": 35, + "column": 29 + } + }, + "name": "header" + }, + "property": { + "type": "Identifier", + "start": 740, + "end": 745, + "loc": { + "start": { + "line": 35, + "column": 30 + }, + "end": { + "line": 35, + "column": 35 + } + }, + "name": "right" + }, + "computed": false + } + } + }, + { + "type": "JSXAttribute", + "start": 763, + "end": 779, + "loc": { + "start": { + "line": 36, + "column": 16 + }, + "end": { + "line": 36, + "column": 32 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 763, + "end": 769, + "loc": { + "start": { + "line": 36, + "column": 16 + }, + "end": { + "line": 36, + "column": 22 + } + }, + "name": "userID" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 770, + "end": 779, + "loc": { + "start": { + "line": 36, + "column": 23 + }, + "end": { + "line": 36, + "column": 32 + } + }, + "expression": { + "type": "MemberExpression", + "start": 771, + "end": 778, + "loc": { + "start": { + "line": 36, + "column": 24 + }, + "end": { + "line": 36, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 771, + "end": 775, + "loc": { + "start": { + "line": 36, + "column": 24 + }, + "end": { + "line": 36, + "column": 28 + } + }, + "name": "user" + }, + "property": { + "type": "Identifier", + "start": 776, + "end": 778, + "loc": { + "start": { + "line": 36, + "column": 29 + }, + "end": { + "line": 36, + "column": 31 + } + }, + "name": "id" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 629, + "end": 635, + "loc": { + "start": { + "line": 32, + "column": 13 + }, + "end": { + "line": 32, + "column": 19 + } + }, + "name": "Header" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [], + "parenthesizedExpression": true + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 489, + "end": 537, + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 27, + "column": 7 + } + }, + "range": [ + 489, + 537 + ] + } + ] + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * AppHeader component\n ", + "start": 418, + "end": 448, + "loc": { + "start": { + "line": 20, + "column": 0 + }, + "end": { + "line": 22, + "column": 3 + } + }, + "range": [ + 418, + 448 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * handleRouteChange\n * @param dispatch\n * @param route\n * @param location\n ", + "start": 802, + "end": 884, + "loc": { + "start": { + "line": 41, + "column": 0 + }, + "end": { + "line": 46, + "column": 3 + } + }, + "range": [ + 802, + 884 + ] + } + ] + }, + { + "type": "FunctionDeclaration", + "start": 885, + "end": 1713, + "loc": { + "start": { + "line": 47, + "column": 0 + }, + "end": { + "line": 75, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 894, + "end": 911, + "loc": { + "start": { + "line": 47, + "column": 9 + }, + "end": { + "line": 47, + "column": 26 + } + }, + "name": "handleRouteChange", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 912, + "end": 920, + "loc": { + "start": { + "line": 47, + "column": 27 + }, + "end": { + "line": 47, + "column": 35 + } + }, + "name": "dispatch" + }, + { + "type": "Identifier", + "start": 922, + "end": 927, + "loc": { + "start": { + "line": 47, + "column": 37 + }, + "end": { + "line": 47, + "column": 42 + } + }, + "name": "route" + }, + { + "type": "Identifier", + "start": 929, + "end": 937, + "loc": { + "start": { + "line": 47, + "column": 44 + }, + "end": { + "line": 47, + "column": 52 + } + }, + "name": "location" + } + ], + "body": { + "type": "BlockStatement", + "start": 939, + "end": 1713, + "loc": { + "start": { + "line": 47, + "column": 54 + }, + "end": { + "line": 75, + "column": 1 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 945, + "end": 1711, + "loc": { + "start": { + "line": 48, + "column": 4 + }, + "end": { + "line": 74, + "column": 5 + } + }, + "test": { + "type": "Identifier", + "start": 949, + "end": 954, + "loc": { + "start": { + "line": 48, + "column": 8 + }, + "end": { + "line": 48, + "column": 13 + } + }, + "name": "route" + }, + "consequent": { + "type": "BlockStatement", + "start": 956, + "end": 1711, + "loc": { + "start": { + "line": 48, + "column": 15 + }, + "end": { + "line": 74, + "column": 5 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 967, + "end": 1202, + "loc": { + "start": { + "line": 50, + "column": 8 + }, + "end": { + "line": 56, + "column": 9 + } + }, + "test": { + "type": "MemberExpression", + "start": 971, + "end": 990, + "loc": { + "start": { + "line": 50, + "column": 12 + }, + "end": { + "line": 50, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 971, + "end": 976, + "loc": { + "start": { + "line": 50, + "column": 12 + }, + "end": { + "line": 50, + "column": 17 + } + }, + "name": "route" + }, + "property": { + "type": "Identifier", + "start": 977, + "end": 990, + "loc": { + "start": { + "line": 50, + "column": 18 + }, + "end": { + "line": 50, + "column": 31 + } + }, + "name": "getHeaderLeft" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 992, + "end": 1138, + "loc": { + "start": { + "line": 50, + "column": 33 + }, + "end": { + "line": 54, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1006, + "end": 1128, + "loc": { + "start": { + "line": 51, + "column": 12 + }, + "end": { + "line": 53, + "column": 14 + } + }, + "expression": { + "type": "CallExpression", + "start": 1006, + "end": 1128, + "loc": { + "start": { + "line": 51, + "column": 12 + }, + "end": { + "line": 53, + "column": 14 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1006, + "end": 1025, + "loc": { + "start": { + "line": 51, + "column": 12 + }, + "end": { + "line": 51, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 1006, + "end": 1011, + "loc": { + "start": { + "line": 51, + "column": 12 + }, + "end": { + "line": 51, + "column": 17 + } + }, + "name": "route" + }, + "property": { + "type": "Identifier", + "start": 1012, + "end": 1025, + "loc": { + "start": { + "line": 51, + "column": 18 + }, + "end": { + "line": 51, + "column": 31 + } + }, + "name": "getHeaderLeft" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 1026, + "end": 1034, + "loc": { + "start": { + "line": 51, + "column": 32 + }, + "end": { + "line": 51, + "column": 40 + } + }, + "name": "location" + }, + { + "type": "ArrowFunctionExpression", + "start": 1036, + "end": 1127, + "loc": { + "start": { + "line": 51, + "column": 42 + }, + "end": { + "line": 53, + "column": 13 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1037, + "end": 1040, + "loc": { + "start": { + "line": 51, + "column": 43 + }, + "end": { + "line": 51, + "column": 46 + } + }, + "name": "err" + }, + { + "type": "Identifier", + "start": 1042, + "end": 1051, + "loc": { + "start": { + "line": 51, + "column": 48 + }, + "end": { + "line": 51, + "column": 57 + } + }, + "name": "component" + } + ], + "body": { + "type": "BlockStatement", + "start": 1056, + "end": 1127, + "loc": { + "start": { + "line": 51, + "column": 62 + }, + "end": { + "line": 53, + "column": 13 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1074, + "end": 1113, + "loc": { + "start": { + "line": 52, + "column": 16 + }, + "end": { + "line": 52, + "column": 55 + } + }, + "expression": { + "type": "CallExpression", + "start": 1074, + "end": 1113, + "loc": { + "start": { + "line": 52, + "column": 16 + }, + "end": { + "line": 52, + "column": 55 + } + }, + "callee": { + "type": "Identifier", + "start": 1074, + "end": 1082, + "loc": { + "start": { + "line": 52, + "column": 16 + }, + "end": { + "line": 52, + "column": 24 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1083, + "end": 1112, + "loc": { + "start": { + "line": 52, + "column": 25 + }, + "end": { + "line": 52, + "column": 54 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1083, + "end": 1101, + "loc": { + "start": { + "line": 52, + "column": 25 + }, + "end": { + "line": 52, + "column": 43 + } + }, + "object": { + "type": "Identifier", + "start": 1083, + "end": 1096, + "loc": { + "start": { + "line": 52, + "column": 25 + }, + "end": { + "line": 52, + "column": 38 + } + }, + "name": "HeaderActions" + }, + "property": { + "type": "Identifier", + "start": 1097, + "end": 1101, + "loc": { + "start": { + "line": 52, + "column": 39 + }, + "end": { + "line": 52, + "column": 43 + } + }, + "name": "left" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 1102, + "end": 1111, + "loc": { + "start": { + "line": 52, + "column": 44 + }, + "end": { + "line": 52, + "column": 53 + } + }, + "name": "component" + } + ] + } + ] + } + } + ] + } + } + ] + } + } + ] + }, + "alternate": { + "type": "BlockStatement", + "start": 1144, + "end": 1202, + "loc": { + "start": { + "line": 54, + "column": 15 + }, + "end": { + "line": 56, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1158, + "end": 1192, + "loc": { + "start": { + "line": 55, + "column": 12 + }, + "end": { + "line": 55, + "column": 46 + } + }, + "expression": { + "type": "CallExpression", + "start": 1158, + "end": 1192, + "loc": { + "start": { + "line": 55, + "column": 12 + }, + "end": { + "line": 55, + "column": 46 + } + }, + "callee": { + "type": "Identifier", + "start": 1158, + "end": 1166, + "loc": { + "start": { + "line": 55, + "column": 12 + }, + "end": { + "line": 55, + "column": 20 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1167, + "end": 1191, + "loc": { + "start": { + "line": 55, + "column": 21 + }, + "end": { + "line": 55, + "column": 45 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1167, + "end": 1185, + "loc": { + "start": { + "line": 55, + "column": 21 + }, + "end": { + "line": 55, + "column": 39 + } + }, + "object": { + "type": "Identifier", + "start": 1167, + "end": 1180, + "loc": { + "start": { + "line": 55, + "column": 21 + }, + "end": { + "line": 55, + "column": 34 + } + }, + "name": "HeaderActions" + }, + "property": { + "type": "Identifier", + "start": 1181, + "end": 1185, + "loc": { + "start": { + "line": 55, + "column": 35 + }, + "end": { + "line": 55, + "column": 39 + } + }, + "name": "left" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 1186, + "end": 1190, + "loc": { + "start": { + "line": 55, + "column": 40 + }, + "end": { + "line": 55, + "column": 44 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + } + ] + } + ] + } + } + ] + } + }, + { + "type": "IfStatement", + "start": 1212, + "end": 1455, + "loc": { + "start": { + "line": 58, + "column": 8 + }, + "end": { + "line": 64, + "column": 9 + } + }, + "test": { + "type": "MemberExpression", + "start": 1216, + "end": 1237, + "loc": { + "start": { + "line": 58, + "column": 12 + }, + "end": { + "line": 58, + "column": 33 + } + }, + "object": { + "type": "Identifier", + "start": 1216, + "end": 1221, + "loc": { + "start": { + "line": 58, + "column": 12 + }, + "end": { + "line": 58, + "column": 17 + } + }, + "name": "route" + }, + "property": { + "type": "Identifier", + "start": 1222, + "end": 1237, + "loc": { + "start": { + "line": 58, + "column": 18 + }, + "end": { + "line": 58, + "column": 33 + } + }, + "name": "getHeaderMiddle" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 1239, + "end": 1389, + "loc": { + "start": { + "line": 58, + "column": 35 + }, + "end": { + "line": 62, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1253, + "end": 1379, + "loc": { + "start": { + "line": 59, + "column": 12 + }, + "end": { + "line": 61, + "column": 14 + } + }, + "expression": { + "type": "CallExpression", + "start": 1253, + "end": 1379, + "loc": { + "start": { + "line": 59, + "column": 12 + }, + "end": { + "line": 61, + "column": 14 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1253, + "end": 1274, + "loc": { + "start": { + "line": 59, + "column": 12 + }, + "end": { + "line": 59, + "column": 33 + } + }, + "object": { + "type": "Identifier", + "start": 1253, + "end": 1258, + "loc": { + "start": { + "line": 59, + "column": 12 + }, + "end": { + "line": 59, + "column": 17 + } + }, + "name": "route" + }, + "property": { + "type": "Identifier", + "start": 1259, + "end": 1274, + "loc": { + "start": { + "line": 59, + "column": 18 + }, + "end": { + "line": 59, + "column": 33 + } + }, + "name": "getHeaderMiddle" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 1275, + "end": 1283, + "loc": { + "start": { + "line": 59, + "column": 34 + }, + "end": { + "line": 59, + "column": 42 + } + }, + "name": "location" + }, + { + "type": "ArrowFunctionExpression", + "start": 1285, + "end": 1378, + "loc": { + "start": { + "line": 59, + "column": 44 + }, + "end": { + "line": 61, + "column": 13 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1286, + "end": 1289, + "loc": { + "start": { + "line": 59, + "column": 45 + }, + "end": { + "line": 59, + "column": 48 + } + }, + "name": "err" + }, + { + "type": "Identifier", + "start": 1291, + "end": 1300, + "loc": { + "start": { + "line": 59, + "column": 50 + }, + "end": { + "line": 59, + "column": 59 + } + }, + "name": "component" + } + ], + "body": { + "type": "BlockStatement", + "start": 1305, + "end": 1378, + "loc": { + "start": { + "line": 59, + "column": 64 + }, + "end": { + "line": 61, + "column": 13 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1323, + "end": 1364, + "loc": { + "start": { + "line": 60, + "column": 16 + }, + "end": { + "line": 60, + "column": 57 + } + }, + "expression": { + "type": "CallExpression", + "start": 1323, + "end": 1364, + "loc": { + "start": { + "line": 60, + "column": 16 + }, + "end": { + "line": 60, + "column": 57 + } + }, + "callee": { + "type": "Identifier", + "start": 1323, + "end": 1331, + "loc": { + "start": { + "line": 60, + "column": 16 + }, + "end": { + "line": 60, + "column": 24 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1332, + "end": 1363, + "loc": { + "start": { + "line": 60, + "column": 25 + }, + "end": { + "line": 60, + "column": 56 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1332, + "end": 1352, + "loc": { + "start": { + "line": 60, + "column": 25 + }, + "end": { + "line": 60, + "column": 45 + } + }, + "object": { + "type": "Identifier", + "start": 1332, + "end": 1345, + "loc": { + "start": { + "line": 60, + "column": 25 + }, + "end": { + "line": 60, + "column": 38 + } + }, + "name": "HeaderActions" + }, + "property": { + "type": "Identifier", + "start": 1346, + "end": 1352, + "loc": { + "start": { + "line": 60, + "column": 39 + }, + "end": { + "line": 60, + "column": 45 + } + }, + "name": "middle" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 1353, + "end": 1362, + "loc": { + "start": { + "line": 60, + "column": 46 + }, + "end": { + "line": 60, + "column": 55 + } + }, + "name": "component" + } + ] + } + ] + } + } + ] + } + } + ] + } + } + ] + }, + "alternate": { + "type": "BlockStatement", + "start": 1395, + "end": 1455, + "loc": { + "start": { + "line": 62, + "column": 15 + }, + "end": { + "line": 64, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1409, + "end": 1445, + "loc": { + "start": { + "line": 63, + "column": 12 + }, + "end": { + "line": 63, + "column": 48 + } + }, + "expression": { + "type": "CallExpression", + "start": 1409, + "end": 1445, + "loc": { + "start": { + "line": 63, + "column": 12 + }, + "end": { + "line": 63, + "column": 48 + } + }, + "callee": { + "type": "Identifier", + "start": 1409, + "end": 1417, + "loc": { + "start": { + "line": 63, + "column": 12 + }, + "end": { + "line": 63, + "column": 20 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1418, + "end": 1444, + "loc": { + "start": { + "line": 63, + "column": 21 + }, + "end": { + "line": 63, + "column": 47 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1418, + "end": 1438, + "loc": { + "start": { + "line": 63, + "column": 21 + }, + "end": { + "line": 63, + "column": 41 + } + }, + "object": { + "type": "Identifier", + "start": 1418, + "end": 1431, + "loc": { + "start": { + "line": 63, + "column": 21 + }, + "end": { + "line": 63, + "column": 34 + } + }, + "name": "HeaderActions" + }, + "property": { + "type": "Identifier", + "start": 1432, + "end": 1438, + "loc": { + "start": { + "line": 63, + "column": 35 + }, + "end": { + "line": 63, + "column": 41 + } + }, + "name": "middle" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 1439, + "end": 1443, + "loc": { + "start": { + "line": 63, + "column": 42 + }, + "end": { + "line": 63, + "column": 46 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + } + ] + } + ] + } + } + ] + } + }, + { + "type": "IfStatement", + "start": 1465, + "end": 1704, + "loc": { + "start": { + "line": 66, + "column": 8 + }, + "end": { + "line": 72, + "column": 9 + } + }, + "test": { + "type": "MemberExpression", + "start": 1469, + "end": 1489, + "loc": { + "start": { + "line": 66, + "column": 12 + }, + "end": { + "line": 66, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 1469, + "end": 1474, + "loc": { + "start": { + "line": 66, + "column": 12 + }, + "end": { + "line": 66, + "column": 17 + } + }, + "name": "route" + }, + "property": { + "type": "Identifier", + "start": 1475, + "end": 1489, + "loc": { + "start": { + "line": 66, + "column": 18 + }, + "end": { + "line": 66, + "column": 32 + } + }, + "name": "getHeaderRight" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 1491, + "end": 1639, + "loc": { + "start": { + "line": 66, + "column": 34 + }, + "end": { + "line": 70, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1505, + "end": 1629, + "loc": { + "start": { + "line": 67, + "column": 12 + }, + "end": { + "line": 69, + "column": 14 + } + }, + "expression": { + "type": "CallExpression", + "start": 1505, + "end": 1629, + "loc": { + "start": { + "line": 67, + "column": 12 + }, + "end": { + "line": 69, + "column": 14 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1505, + "end": 1525, + "loc": { + "start": { + "line": 67, + "column": 12 + }, + "end": { + "line": 67, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 1505, + "end": 1510, + "loc": { + "start": { + "line": 67, + "column": 12 + }, + "end": { + "line": 67, + "column": 17 + } + }, + "name": "route" + }, + "property": { + "type": "Identifier", + "start": 1511, + "end": 1525, + "loc": { + "start": { + "line": 67, + "column": 18 + }, + "end": { + "line": 67, + "column": 32 + } + }, + "name": "getHeaderRight" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 1526, + "end": 1534, + "loc": { + "start": { + "line": 67, + "column": 33 + }, + "end": { + "line": 67, + "column": 41 + } + }, + "name": "location" + }, + { + "type": "ArrowFunctionExpression", + "start": 1536, + "end": 1628, + "loc": { + "start": { + "line": 67, + "column": 43 + }, + "end": { + "line": 69, + "column": 13 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1537, + "end": 1540, + "loc": { + "start": { + "line": 67, + "column": 44 + }, + "end": { + "line": 67, + "column": 47 + } + }, + "name": "err" + }, + { + "type": "Identifier", + "start": 1542, + "end": 1551, + "loc": { + "start": { + "line": 67, + "column": 49 + }, + "end": { + "line": 67, + "column": 58 + } + }, + "name": "component" + } + ], + "body": { + "type": "BlockStatement", + "start": 1556, + "end": 1628, + "loc": { + "start": { + "line": 67, + "column": 63 + }, + "end": { + "line": 69, + "column": 13 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1574, + "end": 1614, + "loc": { + "start": { + "line": 68, + "column": 16 + }, + "end": { + "line": 68, + "column": 56 + } + }, + "expression": { + "type": "CallExpression", + "start": 1574, + "end": 1614, + "loc": { + "start": { + "line": 68, + "column": 16 + }, + "end": { + "line": 68, + "column": 56 + } + }, + "callee": { + "type": "Identifier", + "start": 1574, + "end": 1582, + "loc": { + "start": { + "line": 68, + "column": 16 + }, + "end": { + "line": 68, + "column": 24 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1583, + "end": 1613, + "loc": { + "start": { + "line": 68, + "column": 25 + }, + "end": { + "line": 68, + "column": 55 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1583, + "end": 1602, + "loc": { + "start": { + "line": 68, + "column": 25 + }, + "end": { + "line": 68, + "column": 44 + } + }, + "object": { + "type": "Identifier", + "start": 1583, + "end": 1596, + "loc": { + "start": { + "line": 68, + "column": 25 + }, + "end": { + "line": 68, + "column": 38 + } + }, + "name": "HeaderActions" + }, + "property": { + "type": "Identifier", + "start": 1597, + "end": 1602, + "loc": { + "start": { + "line": 68, + "column": 39 + }, + "end": { + "line": 68, + "column": 44 + } + }, + "name": "right" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 1603, + "end": 1612, + "loc": { + "start": { + "line": 68, + "column": 45 + }, + "end": { + "line": 68, + "column": 54 + } + }, + "name": "component" + } + ] + } + ] + } + } + ] + } + } + ] + } + } + ] + }, + "alternate": { + "type": "BlockStatement", + "start": 1645, + "end": 1704, + "loc": { + "start": { + "line": 70, + "column": 15 + }, + "end": { + "line": 72, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1659, + "end": 1694, + "loc": { + "start": { + "line": 71, + "column": 12 + }, + "end": { + "line": 71, + "column": 47 + } + }, + "expression": { + "type": "CallExpression", + "start": 1659, + "end": 1694, + "loc": { + "start": { + "line": 71, + "column": 12 + }, + "end": { + "line": 71, + "column": 47 + } + }, + "callee": { + "type": "Identifier", + "start": 1659, + "end": 1667, + "loc": { + "start": { + "line": 71, + "column": 12 + }, + "end": { + "line": 71, + "column": 20 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1668, + "end": 1693, + "loc": { + "start": { + "line": 71, + "column": 21 + }, + "end": { + "line": 71, + "column": 46 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1668, + "end": 1687, + "loc": { + "start": { + "line": 71, + "column": 21 + }, + "end": { + "line": 71, + "column": 40 + } + }, + "object": { + "type": "Identifier", + "start": 1668, + "end": 1681, + "loc": { + "start": { + "line": 71, + "column": 21 + }, + "end": { + "line": 71, + "column": 34 + } + }, + "name": "HeaderActions" + }, + "property": { + "type": "Identifier", + "start": 1682, + "end": 1687, + "loc": { + "start": { + "line": 71, + "column": 35 + }, + "end": { + "line": 71, + "column": 40 + } + }, + "name": "right" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 1688, + "end": 1692, + "loc": { + "start": { + "line": 71, + "column": 41 + }, + "end": { + "line": 71, + "column": 45 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + } + ] + } + ] + } + } + ] + } + } + ] + }, + "alternate": null + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * handleRouteChange\n * @param dispatch\n * @param route\n * @param location\n ", + "start": 802, + "end": 884, + "loc": { + "start": { + "line": 41, + "column": 0 + }, + "end": { + "line": 46, + "column": 3 + } + }, + "range": [ + 802, + 884 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * App component\n * Bootstraps application\n ", + "start": 1715, + "end": 1765, + "loc": { + "start": { + "line": 77, + "column": 0 + }, + "end": { + "line": 80, + "column": 3 + } + }, + "range": [ + 1715, + 1765 + ] + } + ] + }, + { + "type": "ClassDeclaration", + "start": 1766, + "end": 3572, + "loc": { + "start": { + "line": 81, + "column": 0 + }, + "end": { + "line": 159, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 1772, + "end": 1775, + "loc": { + "start": { + "line": 81, + "column": 6 + }, + "end": { + "line": 81, + "column": 9 + } + }, + "name": "App", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 1784, + "end": 1793, + "loc": { + "start": { + "line": 81, + "column": 18 + }, + "end": { + "line": 81, + "column": 27 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 1794, + "end": 3572, + "loc": { + "start": { + "line": 81, + "column": 28 + }, + "end": { + "line": 159, + "column": 1 + } + }, + "body": [ + { + "type": "MethodDefinition", + "start": 1886, + "end": 2401, + "loc": { + "start": { + "line": 88, + "column": 4 + }, + "end": { + "line": 105, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 1886, + "end": 1904, + "loc": { + "start": { + "line": 88, + "column": 4 + }, + "end": { + "line": 88, + "column": 22 + } + }, + "name": "componentDidUpdate", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 1904, + "end": 2401, + "loc": { + "start": { + "line": 88, + "column": 22 + }, + "end": { + "line": 105, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1905, + "end": 1913, + "loc": { + "start": { + "line": 88, + "column": 23 + }, + "end": { + "line": 88, + "column": 31 + } + }, + "name": "oldProps" + } + ], + "body": { + "type": "BlockStatement", + "start": 1915, + "end": 2401, + "loc": { + "start": { + "line": 88, + "column": 33 + }, + "end": { + "line": 105, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1926, + "end": 2080, + "loc": { + "start": { + "line": 90, + "column": 8 + }, + "end": { + "line": 94, + "column": 9 + } + }, + "expression": { + "type": "CallExpression", + "start": 1926, + "end": 2080, + "loc": { + "start": { + "line": 90, + "column": 8 + }, + "end": { + "line": 94, + "column": 9 + } + }, + "callee": { + "type": "Identifier", + "start": 1926, + "end": 1943, + "loc": { + "start": { + "line": 90, + "column": 8 + }, + "end": { + "line": 90, + "column": 25 + } + }, + "name": "handleRouteChange" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 1957, + "end": 1976, + "loc": { + "start": { + "line": 91, + "column": 12 + }, + "end": { + "line": 91, + "column": 31 + } + }, + "object": { + "type": "MemberExpression", + "start": 1957, + "end": 1967, + "loc": { + "start": { + "line": 91, + "column": 12 + }, + "end": { + "line": 91, + "column": 22 + } + }, + "object": { + "type": "ThisExpression", + "start": 1957, + "end": 1961, + "loc": { + "start": { + "line": 91, + "column": 12 + }, + "end": { + "line": 91, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 1962, + "end": 1967, + "loc": { + "start": { + "line": 91, + "column": 17 + }, + "end": { + "line": 91, + "column": 22 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1968, + "end": 1976, + "loc": { + "start": { + "line": 91, + "column": 23 + }, + "end": { + "line": 91, + "column": 31 + } + }, + "name": "dispatch" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 1990, + "end": 2037, + "loc": { + "start": { + "line": 92, + "column": 12 + }, + "end": { + "line": 92, + "column": 59 + } + }, + "object": { + "type": "MemberExpression", + "start": 1990, + "end": 2007, + "loc": { + "start": { + "line": 92, + "column": 12 + }, + "end": { + "line": 92, + "column": 29 + } + }, + "object": { + "type": "MemberExpression", + "start": 1990, + "end": 2000, + "loc": { + "start": { + "line": 92, + "column": 12 + }, + "end": { + "line": 92, + "column": 22 + } + }, + "object": { + "type": "ThisExpression", + "start": 1990, + "end": 1994, + "loc": { + "start": { + "line": 92, + "column": 12 + }, + "end": { + "line": 92, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 1995, + "end": 2000, + "loc": { + "start": { + "line": 92, + "column": 17 + }, + "end": { + "line": 92, + "column": 22 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2001, + "end": 2007, + "loc": { + "start": { + "line": 92, + "column": 23 + }, + "end": { + "line": 92, + "column": 29 + } + }, + "name": "routes" + }, + "computed": false + }, + "property": { + "type": "BinaryExpression", + "start": 2008, + "end": 2036, + "loc": { + "start": { + "line": 92, + "column": 30 + }, + "end": { + "line": 92, + "column": 58 + } + }, + "left": { + "type": "MemberExpression", + "start": 2008, + "end": 2032, + "loc": { + "start": { + "line": 92, + "column": 30 + }, + "end": { + "line": 92, + "column": 54 + } + }, + "object": { + "type": "MemberExpression", + "start": 2008, + "end": 2025, + "loc": { + "start": { + "line": 92, + "column": 30 + }, + "end": { + "line": 92, + "column": 47 + } + }, + "object": { + "type": "MemberExpression", + "start": 2008, + "end": 2018, + "loc": { + "start": { + "line": 92, + "column": 30 + }, + "end": { + "line": 92, + "column": 40 + } + }, + "object": { + "type": "ThisExpression", + "start": 2008, + "end": 2012, + "loc": { + "start": { + "line": 92, + "column": 30 + }, + "end": { + "line": 92, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "start": 2013, + "end": 2018, + "loc": { + "start": { + "line": 92, + "column": 35 + }, + "end": { + "line": 92, + "column": 40 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2019, + "end": 2025, + "loc": { + "start": { + "line": 92, + "column": 41 + }, + "end": { + "line": 92, + "column": 47 + } + }, + "name": "routes" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2026, + "end": 2032, + "loc": { + "start": { + "line": 92, + "column": 48 + }, + "end": { + "line": 92, + "column": 54 + } + }, + "name": "length" + }, + "computed": false + }, + "operator": "-", + "right": { + "type": "Literal", + "start": 2035, + "end": 2036, + "loc": { + "start": { + "line": 92, + "column": 57 + }, + "end": { + "line": 92, + "column": 58 + } + }, + "value": 1, + "rawValue": 1, + "raw": "1" + } + }, + "computed": true + }, + { + "type": "MemberExpression", + "start": 2051, + "end": 2070, + "loc": { + "start": { + "line": 93, + "column": 12 + }, + "end": { + "line": 93, + "column": 31 + } + }, + "object": { + "type": "MemberExpression", + "start": 2051, + "end": 2061, + "loc": { + "start": { + "line": 93, + "column": 12 + }, + "end": { + "line": 93, + "column": 22 + } + }, + "object": { + "type": "ThisExpression", + "start": 2051, + "end": 2055, + "loc": { + "start": { + "line": 93, + "column": 12 + }, + "end": { + "line": 93, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 2056, + "end": 2061, + "loc": { + "start": { + "line": 93, + "column": 17 + }, + "end": { + "line": 93, + "column": 22 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2062, + "end": 2070, + "loc": { + "start": { + "line": 93, + "column": 23 + }, + "end": { + "line": 93, + "column": 31 + } + }, + "name": "location" + }, + "computed": false + } + ] + } + }, + { + "type": "IfStatement", + "start": 2090, + "end": 2219, + "loc": { + "start": { + "line": 96, + "column": 8 + }, + "end": { + "line": 98, + "column": 9 + } + }, + "test": { + "type": "LogicalExpression", + "start": 2094, + "end": 2155, + "loc": { + "start": { + "line": 96, + "column": 12 + }, + "end": { + "line": 96, + "column": 73 + } + }, + "left": { + "type": "BinaryExpression", + "start": 2094, + "end": 2132, + "loc": { + "start": { + "line": 96, + "column": 12 + }, + "end": { + "line": 96, + "column": 50 + } + }, + "left": { + "type": "MemberExpression", + "start": 2094, + "end": 2110, + "loc": { + "start": { + "line": 96, + "column": 12 + }, + "end": { + "line": 96, + "column": 28 + } + }, + "object": { + "type": "MemberExpression", + "start": 2094, + "end": 2107, + "loc": { + "start": { + "line": 96, + "column": 12 + }, + "end": { + "line": 96, + "column": 25 + } + }, + "object": { + "type": "Identifier", + "start": 2094, + "end": 2102, + "loc": { + "start": { + "line": 96, + "column": 12 + }, + "end": { + "line": 96, + "column": 20 + } + }, + "name": "oldProps" + }, + "property": { + "type": "Identifier", + "start": 2103, + "end": 2107, + "loc": { + "start": { + "line": 96, + "column": 21 + }, + "end": { + "line": 96, + "column": 25 + } + }, + "name": "user" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2108, + "end": 2110, + "loc": { + "start": { + "line": 96, + "column": 26 + }, + "end": { + "line": 96, + "column": 28 + } + }, + "name": "id" + }, + "computed": false + }, + "operator": "!=", + "right": { + "type": "MemberExpression", + "start": 2114, + "end": 2132, + "loc": { + "start": { + "line": 96, + "column": 32 + }, + "end": { + "line": 96, + "column": 50 + } + }, + "object": { + "type": "MemberExpression", + "start": 2114, + "end": 2129, + "loc": { + "start": { + "line": 96, + "column": 32 + }, + "end": { + "line": 96, + "column": 47 + } + }, + "object": { + "type": "MemberExpression", + "start": 2114, + "end": 2124, + "loc": { + "start": { + "line": 96, + "column": 32 + }, + "end": { + "line": 96, + "column": 42 + } + }, + "object": { + "type": "ThisExpression", + "start": 2114, + "end": 2118, + "loc": { + "start": { + "line": 96, + "column": 32 + }, + "end": { + "line": 96, + "column": 36 + } + } + }, + "property": { + "type": "Identifier", + "start": 2119, + "end": 2124, + "loc": { + "start": { + "line": 96, + "column": 37 + }, + "end": { + "line": 96, + "column": 42 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2125, + "end": 2129, + "loc": { + "start": { + "line": 96, + "column": 43 + }, + "end": { + "line": 96, + "column": 47 + } + }, + "name": "user" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2130, + "end": 2132, + "loc": { + "start": { + "line": 96, + "column": 48 + }, + "end": { + "line": 96, + "column": 50 + } + }, + "name": "id" + }, + "computed": false + } + }, + "operator": "&&", + "right": { + "type": "UnaryExpression", + "start": 2136, + "end": 2155, + "loc": { + "start": { + "line": 96, + "column": 54 + }, + "end": { + "line": 96, + "column": 73 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 2137, + "end": 2155, + "loc": { + "start": { + "line": 96, + "column": 55 + }, + "end": { + "line": 96, + "column": 73 + } + }, + "object": { + "type": "MemberExpression", + "start": 2137, + "end": 2152, + "loc": { + "start": { + "line": 96, + "column": 55 + }, + "end": { + "line": 96, + "column": 70 + } + }, + "object": { + "type": "MemberExpression", + "start": 2137, + "end": 2147, + "loc": { + "start": { + "line": 96, + "column": 55 + }, + "end": { + "line": 96, + "column": 65 + } + }, + "object": { + "type": "ThisExpression", + "start": 2137, + "end": 2141, + "loc": { + "start": { + "line": 96, + "column": 55 + }, + "end": { + "line": 96, + "column": 59 + } + } + }, + "property": { + "type": "Identifier", + "start": 2142, + "end": 2147, + "loc": { + "start": { + "line": 96, + "column": 60 + }, + "end": { + "line": 96, + "column": 65 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2148, + "end": 2152, + "loc": { + "start": { + "line": 96, + "column": 66 + }, + "end": { + "line": 96, + "column": 70 + } + }, + "name": "user" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2153, + "end": 2155, + "loc": { + "start": { + "line": 96, + "column": 71 + }, + "end": { + "line": 96, + "column": 73 + } + }, + "name": "id" + }, + "computed": false + } + } + }, + "consequent": { + "type": "BlockStatement", + "start": 2157, + "end": 2219, + "loc": { + "start": { + "line": 96, + "column": 75 + }, + "end": { + "line": 98, + "column": 9 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 2171, + "end": 2209, + "loc": { + "start": { + "line": 97, + "column": 12 + }, + "end": { + "line": 97, + "column": 50 + } + }, + "argument": { + "type": "CallExpression", + "start": 2178, + "end": 2209, + "loc": { + "start": { + "line": 97, + "column": 19 + }, + "end": { + "line": 97, + "column": 50 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2178, + "end": 2197, + "loc": { + "start": { + "line": 97, + "column": 19 + }, + "end": { + "line": 97, + "column": 38 + } + }, + "object": { + "type": "Identifier", + "start": 2178, + "end": 2192, + "loc": { + "start": { + "line": 97, + "column": 19 + }, + "end": { + "line": 97, + "column": 33 + } + }, + "name": "browserHistory" + }, + "property": { + "type": "Identifier", + "start": 2193, + "end": 2197, + "loc": { + "start": { + "line": 97, + "column": 34 + }, + "end": { + "line": 97, + "column": 38 + } + }, + "name": "push" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 2198, + "end": 2208, + "loc": { + "start": { + "line": 97, + "column": 39 + }, + "end": { + "line": 97, + "column": 49 + } + }, + "value": "/landing", + "rawValue": "/landing", + "raw": "'/landing'" + } + ] + } + } + ], + "trailingComments": null + }, + "alternate": null, + "trailingComments": [ + { + "type": "CommentLine", + "value": " user is logged in", + "start": 2229, + "end": 2249, + "loc": { + "start": { + "line": 100, + "column": 8 + }, + "end": { + "line": 100, + "column": 28 + } + }, + "range": [ + 2229, + 2249 + ] + } + ] + }, + { + "type": "IfStatement", + "start": 2258, + "end": 2386, + "loc": { + "start": { + "line": 101, + "column": 8 + }, + "end": { + "line": 103, + "column": 9 + } + }, + "test": { + "type": "LogicalExpression", + "start": 2262, + "end": 2322, + "loc": { + "start": { + "line": 101, + "column": 12 + }, + "end": { + "line": 101, + "column": 72 + } + }, + "left": { + "type": "BinaryExpression", + "start": 2262, + "end": 2300, + "loc": { + "start": { + "line": 101, + "column": 12 + }, + "end": { + "line": 101, + "column": 50 + } + }, + "left": { + "type": "MemberExpression", + "start": 2262, + "end": 2278, + "loc": { + "start": { + "line": 101, + "column": 12 + }, + "end": { + "line": 101, + "column": 28 + } + }, + "object": { + "type": "MemberExpression", + "start": 2262, + "end": 2275, + "loc": { + "start": { + "line": 101, + "column": 12 + }, + "end": { + "line": 101, + "column": 25 + } + }, + "object": { + "type": "Identifier", + "start": 2262, + "end": 2270, + "loc": { + "start": { + "line": 101, + "column": 12 + }, + "end": { + "line": 101, + "column": 20 + } + }, + "name": "oldProps", + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 2271, + "end": 2275, + "loc": { + "start": { + "line": 101, + "column": 21 + }, + "end": { + "line": 101, + "column": 25 + } + }, + "name": "user" + }, + "computed": false, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 2276, + "end": 2278, + "loc": { + "start": { + "line": 101, + "column": 26 + }, + "end": { + "line": 101, + "column": 28 + } + }, + "name": "id" + }, + "computed": false, + "leadingComments": null + }, + "operator": "!=", + "right": { + "type": "MemberExpression", + "start": 2282, + "end": 2300, + "loc": { + "start": { + "line": 101, + "column": 32 + }, + "end": { + "line": 101, + "column": 50 + } + }, + "object": { + "type": "MemberExpression", + "start": 2282, + "end": 2297, + "loc": { + "start": { + "line": 101, + "column": 32 + }, + "end": { + "line": 101, + "column": 47 + } + }, + "object": { + "type": "MemberExpression", + "start": 2282, + "end": 2292, + "loc": { + "start": { + "line": 101, + "column": 32 + }, + "end": { + "line": 101, + "column": 42 + } + }, + "object": { + "type": "ThisExpression", + "start": 2282, + "end": 2286, + "loc": { + "start": { + "line": 101, + "column": 32 + }, + "end": { + "line": 101, + "column": 36 + } + } + }, + "property": { + "type": "Identifier", + "start": 2287, + "end": 2292, + "loc": { + "start": { + "line": 101, + "column": 37 + }, + "end": { + "line": 101, + "column": 42 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2293, + "end": 2297, + "loc": { + "start": { + "line": 101, + "column": 43 + }, + "end": { + "line": 101, + "column": 47 + } + }, + "name": "user" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2298, + "end": 2300, + "loc": { + "start": { + "line": 101, + "column": 48 + }, + "end": { + "line": 101, + "column": 50 + } + }, + "name": "id" + }, + "computed": false + }, + "leadingComments": null + }, + "operator": "&&", + "right": { + "type": "MemberExpression", + "start": 2304, + "end": 2322, + "loc": { + "start": { + "line": 101, + "column": 54 + }, + "end": { + "line": 101, + "column": 72 + } + }, + "object": { + "type": "MemberExpression", + "start": 2304, + "end": 2319, + "loc": { + "start": { + "line": 101, + "column": 54 + }, + "end": { + "line": 101, + "column": 69 + } + }, + "object": { + "type": "MemberExpression", + "start": 2304, + "end": 2314, + "loc": { + "start": { + "line": 101, + "column": 54 + }, + "end": { + "line": 101, + "column": 64 + } + }, + "object": { + "type": "ThisExpression", + "start": 2304, + "end": 2308, + "loc": { + "start": { + "line": 101, + "column": 54 + }, + "end": { + "line": 101, + "column": 58 + } + } + }, + "property": { + "type": "Identifier", + "start": 2309, + "end": 2314, + "loc": { + "start": { + "line": 101, + "column": 59 + }, + "end": { + "line": 101, + "column": 64 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2315, + "end": 2319, + "loc": { + "start": { + "line": 101, + "column": 65 + }, + "end": { + "line": 101, + "column": 69 + } + }, + "name": "user" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2320, + "end": 2322, + "loc": { + "start": { + "line": 101, + "column": 70 + }, + "end": { + "line": 101, + "column": 72 + } + }, + "name": "id" + }, + "computed": false + }, + "leadingComments": null + }, + "consequent": { + "type": "BlockStatement", + "start": 2324, + "end": 2386, + "loc": { + "start": { + "line": 101, + "column": 74 + }, + "end": { + "line": 103, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 2338, + "end": 2376, + "loc": { + "start": { + "line": 102, + "column": 12 + }, + "end": { + "line": 102, + "column": 50 + } + }, + "expression": { + "type": "CallExpression", + "start": 2338, + "end": 2376, + "loc": { + "start": { + "line": 102, + "column": 12 + }, + "end": { + "line": 102, + "column": 50 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2338, + "end": 2357, + "loc": { + "start": { + "line": 102, + "column": 12 + }, + "end": { + "line": 102, + "column": 31 + } + }, + "object": { + "type": "MemberExpression", + "start": 2338, + "end": 2348, + "loc": { + "start": { + "line": 102, + "column": 12 + }, + "end": { + "line": 102, + "column": 22 + } + }, + "object": { + "type": "ThisExpression", + "start": 2338, + "end": 2342, + "loc": { + "start": { + "line": 102, + "column": 12 + }, + "end": { + "line": 102, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 2343, + "end": 2348, + "loc": { + "start": { + "line": 102, + "column": 17 + }, + "end": { + "line": 102, + "column": 22 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2349, + "end": 2357, + "loc": { + "start": { + "line": 102, + "column": 23 + }, + "end": { + "line": 102, + "column": 31 + } + }, + "name": "dispatch" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 2358, + "end": 2375, + "loc": { + "start": { + "line": 102, + "column": 32 + }, + "end": { + "line": 102, + "column": 49 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2358, + "end": 2373, + "loc": { + "start": { + "line": 102, + "column": 32 + }, + "end": { + "line": 102, + "column": 47 + } + }, + "object": { + "type": "Identifier", + "start": 2358, + "end": 2368, + "loc": { + "start": { + "line": 102, + "column": 32 + }, + "end": { + "line": 102, + "column": 42 + } + }, + "name": "AppActions" + }, + "property": { + "type": "Identifier", + "start": 2369, + "end": 2373, + "loc": { + "start": { + "line": 102, + "column": 43 + }, + "end": { + "line": 102, + "column": 47 + } + }, + "name": "init" + }, + "computed": false + }, + "arguments": [] + } + ] + } + } + ] + }, + "alternate": null, + "leadingComments": [ + { + "type": "CommentLine", + "value": " user is logged in", + "start": 2229, + "end": 2249, + "loc": { + "start": { + "line": 100, + "column": 8 + }, + "end": { + "line": 100, + "column": 28 + } + }, + "range": [ + 2229, + 2249 + ] + } + ] + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * componentDidUpdate\n * @param oldProps\n * @returns {*}\n ", + "start": 1801, + "end": 1881, + "loc": { + "start": { + "line": 83, + "column": 4 + }, + "end": { + "line": 87, + "column": 7 + } + }, + "range": [ + 1801, + 1881 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * componentDidMount\n ", + "start": 2407, + "end": 2443, + "loc": { + "start": { + "line": 107, + "column": 4 + }, + "end": { + "line": 109, + "column": 7 + } + }, + "range": [ + 2407, + 2443 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 2448, + "end": 3016, + "loc": { + "start": { + "line": 110, + "column": 4 + }, + "end": { + "line": 132, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 2448, + "end": 2465, + "loc": { + "start": { + "line": 110, + "column": 4 + }, + "end": { + "line": 110, + "column": 21 + } + }, + "name": "componentDidMount", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 2465, + "end": 3016, + "loc": { + "start": { + "line": 110, + "column": 21 + }, + "end": { + "line": 132, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 2468, + "end": 3016, + "loc": { + "start": { + "line": 110, + "column": 24 + }, + "end": { + "line": 132, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 2479, + "end": 2510, + "loc": { + "start": { + "line": 112, + "column": 8 + }, + "end": { + "line": 112, + "column": 39 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 2485, + "end": 2510, + "loc": { + "start": { + "line": 112, + "column": 14 + }, + "end": { + "line": 112, + "column": 39 + } + }, + "id": { + "type": "ObjectPattern", + "start": 2485, + "end": 2497, + "loc": { + "start": { + "line": 112, + "column": 14 + }, + "end": { + "line": 112, + "column": 26 + } + }, + "properties": [ + { + "type": "Property", + "start": 2487, + "end": 2495, + "loc": { + "start": { + "line": 112, + "column": 16 + }, + "end": { + "line": 112, + "column": 24 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 2487, + "end": 2495, + "loc": { + "start": { + "line": 112, + "column": 16 + }, + "end": { + "line": 112, + "column": 24 + } + }, + "name": "dispatch" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 2487, + "end": 2495, + "loc": { + "start": { + "line": 112, + "column": 16 + }, + "end": { + "line": 112, + "column": 24 + } + }, + "name": "dispatch" + } + } + ] + }, + "init": { + "type": "MemberExpression", + "start": 2500, + "end": 2510, + "loc": { + "start": { + "line": 112, + "column": 29 + }, + "end": { + "line": 112, + "column": 39 + } + }, + "object": { + "type": "ThisExpression", + "start": 2500, + "end": 2504, + "loc": { + "start": { + "line": 112, + "column": 29 + }, + "end": { + "line": 112, + "column": 33 + } + } + }, + "property": { + "type": "Identifier", + "start": 2505, + "end": 2510, + "loc": { + "start": { + "line": 112, + "column": 34 + }, + "end": { + "line": 112, + "column": 39 + } + }, + "name": "props" + }, + "computed": false + } + } + ], + "kind": "const" + }, + { + "type": "ExpressionStatement", + "start": 2520, + "end": 3009, + "loc": { + "start": { + "line": 114, + "column": 8 + }, + "end": { + "line": 130, + "column": 10 + } + }, + "expression": { + "type": "CallExpression", + "start": 2520, + "end": 3009, + "loc": { + "start": { + "line": 114, + "column": 8 + }, + "end": { + "line": 130, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2520, + "end": 2537, + "loc": { + "start": { + "line": 114, + "column": 8 + }, + "end": { + "line": 114, + "column": 25 + } + }, + "object": { + "type": "Identifier", + "start": 2520, + "end": 2522, + "loc": { + "start": { + "line": 114, + "column": 8 + }, + "end": { + "line": 114, + "column": 10 + } + }, + "name": "FB" + }, + "property": { + "type": "Identifier", + "start": 2523, + "end": 2537, + "loc": { + "start": { + "line": 114, + "column": 11 + }, + "end": { + "line": 114, + "column": 25 + } + }, + "name": "getLoginStatus" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 2538, + "end": 3008, + "loc": { + "start": { + "line": 114, + "column": 26 + }, + "end": { + "line": 130, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2538, + "end": 2541, + "loc": { + "start": { + "line": 114, + "column": 26 + }, + "end": { + "line": 114, + "column": 29 + } + }, + "name": "res" + } + ], + "body": { + "type": "BlockStatement", + "start": 2545, + "end": 3008, + "loc": { + "start": { + "line": 114, + "column": 33 + }, + "end": { + "line": 130, + "column": 9 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 2560, + "end": 2828, + "loc": { + "start": { + "line": 116, + "column": 12 + }, + "end": { + "line": 122, + "column": 13 + } + }, + "test": { + "type": "BinaryExpression", + "start": 2564, + "end": 2590, + "loc": { + "start": { + "line": 116, + "column": 16 + }, + "end": { + "line": 116, + "column": 42 + } + }, + "left": { + "type": "MemberExpression", + "start": 2564, + "end": 2574, + "loc": { + "start": { + "line": 116, + "column": 16 + }, + "end": { + "line": 116, + "column": 26 + } + }, + "object": { + "type": "Identifier", + "start": 2564, + "end": 2567, + "loc": { + "start": { + "line": 116, + "column": 16 + }, + "end": { + "line": 116, + "column": 19 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 2568, + "end": 2574, + "loc": { + "start": { + "line": 116, + "column": 20 + }, + "end": { + "line": 116, + "column": 26 + } + }, + "name": "status" + }, + "computed": false + }, + "operator": "!==", + "right": { + "type": "Literal", + "start": 2579, + "end": 2590, + "loc": { + "start": { + "line": 116, + "column": 31 + }, + "end": { + "line": 116, + "column": 42 + } + }, + "value": "connected", + "rawValue": "connected", + "raw": "'connected'" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 2592, + "end": 2828, + "loc": { + "start": { + "line": 116, + "column": 44 + }, + "end": { + "line": 122, + "column": 13 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 2610, + "end": 2732, + "loc": { + "start": { + "line": 117, + "column": 16 + }, + "end": { + "line": 119, + "column": 17 + } + }, + "test": { + "type": "BinaryExpression", + "start": 2614, + "end": 2656, + "loc": { + "start": { + "line": 117, + "column": 20 + }, + "end": { + "line": 117, + "column": 62 + } + }, + "left": { + "type": "MemberExpression", + "start": 2614, + "end": 2642, + "loc": { + "start": { + "line": 117, + "column": 20 + }, + "end": { + "line": 117, + "column": 48 + } + }, + "object": { + "type": "MemberExpression", + "start": 2614, + "end": 2633, + "loc": { + "start": { + "line": 117, + "column": 20 + }, + "end": { + "line": 117, + "column": 39 + } + }, + "object": { + "type": "MemberExpression", + "start": 2614, + "end": 2624, + "loc": { + "start": { + "line": 117, + "column": 20 + }, + "end": { + "line": 117, + "column": 30 + } + }, + "object": { + "type": "ThisExpression", + "start": 2614, + "end": 2618, + "loc": { + "start": { + "line": 117, + "column": 20 + }, + "end": { + "line": 117, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "start": 2619, + "end": 2624, + "loc": { + "start": { + "line": 117, + "column": 25 + }, + "end": { + "line": 117, + "column": 30 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2625, + "end": 2633, + "loc": { + "start": { + "line": 117, + "column": 31 + }, + "end": { + "line": 117, + "column": 39 + } + }, + "name": "location" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2634, + "end": 2642, + "loc": { + "start": { + "line": 117, + "column": 40 + }, + "end": { + "line": 117, + "column": 48 + } + }, + "name": "pathname" + }, + "computed": false + }, + "operator": "!=", + "right": { + "type": "Literal", + "start": 2646, + "end": 2656, + "loc": { + "start": { + "line": 117, + "column": 52 + }, + "end": { + "line": 117, + "column": 62 + } + }, + "value": "/landing", + "rawValue": "/landing", + "raw": "'/landing'" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 2658, + "end": 2732, + "loc": { + "start": { + "line": 117, + "column": 64 + }, + "end": { + "line": 119, + "column": 17 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 2680, + "end": 2714, + "loc": { + "start": { + "line": 118, + "column": 20 + }, + "end": { + "line": 118, + "column": 54 + } + }, + "expression": { + "type": "CallExpression", + "start": 2680, + "end": 2714, + "loc": { + "start": { + "line": 118, + "column": 20 + }, + "end": { + "line": 118, + "column": 54 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2680, + "end": 2702, + "loc": { + "start": { + "line": 118, + "column": 20 + }, + "end": { + "line": 118, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 2680, + "end": 2694, + "loc": { + "start": { + "line": 118, + "column": 20 + }, + "end": { + "line": 118, + "column": 34 + } + }, + "name": "browserHistory" + }, + "property": { + "type": "Identifier", + "start": 2695, + "end": 2702, + "loc": { + "start": { + "line": 118, + "column": 35 + }, + "end": { + "line": 118, + "column": 42 + } + }, + "name": "replace" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 2703, + "end": 2713, + "loc": { + "start": { + "line": 118, + "column": 43 + }, + "end": { + "line": 118, + "column": 53 + } + }, + "value": "/landing", + "rawValue": "/landing", + "raw": "'/landing'" + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ExpressionStatement", + "start": 2749, + "end": 2791, + "loc": { + "start": { + "line": 120, + "column": 16 + }, + "end": { + "line": 120, + "column": 58 + } + }, + "expression": { + "type": "CallExpression", + "start": 2749, + "end": 2791, + "loc": { + "start": { + "line": 120, + "column": 16 + }, + "end": { + "line": 120, + "column": 58 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2749, + "end": 2768, + "loc": { + "start": { + "line": 120, + "column": 16 + }, + "end": { + "line": 120, + "column": 35 + } + }, + "object": { + "type": "MemberExpression", + "start": 2749, + "end": 2759, + "loc": { + "start": { + "line": 120, + "column": 16 + }, + "end": { + "line": 120, + "column": 26 + } + }, + "object": { + "type": "ThisExpression", + "start": 2749, + "end": 2753, + "loc": { + "start": { + "line": 120, + "column": 16 + }, + "end": { + "line": 120, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "start": 2754, + "end": 2759, + "loc": { + "start": { + "line": 120, + "column": 21 + }, + "end": { + "line": 120, + "column": 26 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2760, + "end": 2768, + "loc": { + "start": { + "line": 120, + "column": 27 + }, + "end": { + "line": 120, + "column": 35 + } + }, + "name": "dispatch" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 2769, + "end": 2790, + "loc": { + "start": { + "line": 120, + "column": 36 + }, + "end": { + "line": 120, + "column": 57 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2769, + "end": 2788, + "loc": { + "start": { + "line": 120, + "column": 36 + }, + "end": { + "line": 120, + "column": 55 + } + }, + "object": { + "type": "Identifier", + "start": 2769, + "end": 2779, + "loc": { + "start": { + "line": 120, + "column": 36 + }, + "end": { + "line": 120, + "column": 46 + } + }, + "name": "AppActions" + }, + "property": { + "type": "Identifier", + "start": 2780, + "end": 2788, + "loc": { + "start": { + "line": 120, + "column": 47 + }, + "end": { + "line": 120, + "column": 55 + } + }, + "name": "initDone" + }, + "computed": false + }, + "arguments": [] + } + ] + } + }, + { + "type": "ReturnStatement", + "start": 2808, + "end": 2814, + "loc": { + "start": { + "line": 121, + "column": 16 + }, + "end": { + "line": 121, + "column": 22 + } + }, + "argument": null + } + ] + }, + "alternate": null + }, + { + "type": "ExpressionStatement", + "start": 2842, + "end": 2876, + "loc": { + "start": { + "line": 124, + "column": 12 + }, + "end": { + "line": 124, + "column": 46 + } + }, + "expression": { + "type": "CallExpression", + "start": 2842, + "end": 2876, + "loc": { + "start": { + "line": 124, + "column": 12 + }, + "end": { + "line": 124, + "column": 46 + } + }, + "callee": { + "type": "Identifier", + "start": 2842, + "end": 2850, + "loc": { + "start": { + "line": 124, + "column": 12 + }, + "end": { + "line": 124, + "column": 20 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 2851, + "end": 2875, + "loc": { + "start": { + "line": 124, + "column": 21 + }, + "end": { + "line": 124, + "column": 45 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2851, + "end": 2870, + "loc": { + "start": { + "line": 124, + "column": 21 + }, + "end": { + "line": 124, + "column": 40 + } + }, + "object": { + "type": "Identifier", + "start": 2851, + "end": 2862, + "loc": { + "start": { + "line": 124, + "column": 21 + }, + "end": { + "line": 124, + "column": 32 + } + }, + "name": "UserActions" + }, + "property": { + "type": "Identifier", + "start": 2863, + "end": 2870, + "loc": { + "start": { + "line": 124, + "column": 33 + }, + "end": { + "line": 124, + "column": 40 + } + }, + "name": "fbLogin" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 2871, + "end": 2874, + "loc": { + "start": { + "line": 124, + "column": 41 + }, + "end": { + "line": 124, + "column": 44 + } + }, + "name": "res" + } + ] + } + ] + } + }, + { + "type": "IfStatement", + "start": 2890, + "end": 2997, + "loc": { + "start": { + "line": 126, + "column": 12 + }, + "end": { + "line": 128, + "column": 13 + } + }, + "test": { + "type": "BinaryExpression", + "start": 2894, + "end": 2936, + "loc": { + "start": { + "line": 126, + "column": 16 + }, + "end": { + "line": 126, + "column": 58 + } + }, + "left": { + "type": "MemberExpression", + "start": 2894, + "end": 2922, + "loc": { + "start": { + "line": 126, + "column": 16 + }, + "end": { + "line": 126, + "column": 44 + } + }, + "object": { + "type": "MemberExpression", + "start": 2894, + "end": 2913, + "loc": { + "start": { + "line": 126, + "column": 16 + }, + "end": { + "line": 126, + "column": 35 + } + }, + "object": { + "type": "MemberExpression", + "start": 2894, + "end": 2904, + "loc": { + "start": { + "line": 126, + "column": 16 + }, + "end": { + "line": 126, + "column": 26 + } + }, + "object": { + "type": "ThisExpression", + "start": 2894, + "end": 2898, + "loc": { + "start": { + "line": 126, + "column": 16 + }, + "end": { + "line": 126, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "start": 2899, + "end": 2904, + "loc": { + "start": { + "line": 126, + "column": 21 + }, + "end": { + "line": 126, + "column": 26 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2905, + "end": 2913, + "loc": { + "start": { + "line": 126, + "column": 27 + }, + "end": { + "line": 126, + "column": 35 + } + }, + "name": "location" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2914, + "end": 2922, + "loc": { + "start": { + "line": 126, + "column": 36 + }, + "end": { + "line": 126, + "column": 44 + } + }, + "name": "pathname" + }, + "computed": false + }, + "operator": "==", + "right": { + "type": "Literal", + "start": 2926, + "end": 2936, + "loc": { + "start": { + "line": 126, + "column": 48 + }, + "end": { + "line": 126, + "column": 58 + } + }, + "value": "/landing", + "rawValue": "/landing", + "raw": "'/landing'" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 2938, + "end": 2997, + "loc": { + "start": { + "line": 126, + "column": 60 + }, + "end": { + "line": 128, + "column": 13 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 2956, + "end": 2983, + "loc": { + "start": { + "line": 127, + "column": 16 + }, + "end": { + "line": 127, + "column": 43 + } + }, + "expression": { + "type": "CallExpression", + "start": 2956, + "end": 2983, + "loc": { + "start": { + "line": 127, + "column": 16 + }, + "end": { + "line": 127, + "column": 43 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2956, + "end": 2978, + "loc": { + "start": { + "line": 127, + "column": 16 + }, + "end": { + "line": 127, + "column": 38 + } + }, + "object": { + "type": "Identifier", + "start": 2956, + "end": 2970, + "loc": { + "start": { + "line": 127, + "column": 16 + }, + "end": { + "line": 127, + "column": 30 + } + }, + "name": "browserHistory" + }, + "property": { + "type": "Identifier", + "start": 2971, + "end": 2978, + "loc": { + "start": { + "line": 127, + "column": 31 + }, + "end": { + "line": 127, + "column": 38 + } + }, + "name": "replace" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 2979, + "end": 2982, + "loc": { + "start": { + "line": 127, + "column": 39 + }, + "end": { + "line": 127, + "column": 42 + } + }, + "value": "/", + "rawValue": "/", + "raw": "'/'" + } + ] + } + } + ] + }, + "alternate": null + } + ] + } + } + ] + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * componentDidMount\n ", + "start": 2407, + "end": 2443, + "loc": { + "start": { + "line": 107, + "column": 4 + }, + "end": { + "line": 109, + "column": 7 + } + }, + "range": [ + 2407, + 2443 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 3022, + "end": 3070, + "loc": { + "start": { + "line": 134, + "column": 4 + }, + "end": { + "line": 137, + "column": 7 + } + }, + "range": [ + 3022, + 3070 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 3075, + "end": 3569, + "loc": { + "start": { + "line": 138, + "column": 4 + }, + "end": { + "line": 157, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 3075, + "end": 3081, + "loc": { + "start": { + "line": 138, + "column": 4 + }, + "end": { + "line": 138, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 3081, + "end": 3569, + "loc": { + "start": { + "line": 138, + "column": 10 + }, + "end": { + "line": 157, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 3084, + "end": 3569, + "loc": { + "start": { + "line": 138, + "column": 13 + }, + "end": { + "line": 157, + "column": 5 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 3095, + "end": 3166, + "loc": { + "start": { + "line": 140, + "column": 8 + }, + "end": { + "line": 140, + "column": 79 + } + }, + "test": { + "type": "MemberExpression", + "start": 3099, + "end": 3117, + "loc": { + "start": { + "line": 140, + "column": 12 + }, + "end": { + "line": 140, + "column": 30 + } + }, + "object": { + "type": "MemberExpression", + "start": 3099, + "end": 3109, + "loc": { + "start": { + "line": 140, + "column": 12 + }, + "end": { + "line": 140, + "column": 22 + } + }, + "object": { + "type": "ThisExpression", + "start": 3099, + "end": 3103, + "loc": { + "start": { + "line": 140, + "column": 12 + }, + "end": { + "line": 140, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 3104, + "end": 3109, + "loc": { + "start": { + "line": 140, + "column": 17 + }, + "end": { + "line": 140, + "column": 22 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3110, + "end": 3117, + "loc": { + "start": { + "line": 140, + "column": 23 + }, + "end": { + "line": 140, + "column": 30 + } + }, + "name": "loading" + }, + "computed": false + }, + "consequent": { + "type": "ReturnStatement", + "start": 3119, + "end": 3166, + "loc": { + "start": { + "line": 140, + "column": 32 + }, + "end": { + "line": 140, + "column": 79 + } + }, + "argument": { + "type": "JSXElement", + "start": 3126, + "end": 3166, + "loc": { + "start": { + "line": 140, + "column": 39 + }, + "end": { + "line": 140, + "column": 79 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3126, + "end": 3150, + "loc": { + "start": { + "line": 140, + "column": 39 + }, + "end": { + "line": 140, + "column": 63 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3131, + "end": 3149, + "loc": { + "start": { + "line": 140, + "column": 44 + }, + "end": { + "line": 140, + "column": 62 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3131, + "end": 3140, + "loc": { + "start": { + "line": 140, + "column": 44 + }, + "end": { + "line": 140, + "column": 53 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 3141, + "end": 3149, + "loc": { + "start": { + "line": 140, + "column": 54 + }, + "end": { + "line": 140, + "column": 62 + } + }, + "value": "loader", + "rawValue": null, + "raw": "\"loader\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3127, + "end": 3130, + "loc": { + "start": { + "line": 140, + "column": 40 + }, + "end": { + "line": 140, + "column": 43 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3160, + "end": 3166, + "loc": { + "start": { + "line": 140, + "column": 73 + }, + "end": { + "line": 140, + "column": 79 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3162, + "end": 3165, + "loc": { + "start": { + "line": 140, + "column": 75 + }, + "end": { + "line": 140, + "column": 78 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 3150, + "end": 3160, + "loc": { + "start": { + "line": 140, + "column": 63 + }, + "end": { + "line": 140, + "column": 73 + } + }, + "value": "Loading...", + "rawValue": null, + "raw": "Loading..." + } + ] + } + }, + "alternate": null + }, + { + "type": "IfStatement", + "start": 3176, + "end": 3379, + "loc": { + "start": { + "line": 142, + "column": 8 + }, + "end": { + "line": 148, + "column": 9 + } + }, + "test": { + "type": "BinaryExpression", + "start": 3180, + "end": 3222, + "loc": { + "start": { + "line": 142, + "column": 12 + }, + "end": { + "line": 142, + "column": 54 + } + }, + "left": { + "type": "MemberExpression", + "start": 3180, + "end": 3208, + "loc": { + "start": { + "line": 142, + "column": 12 + }, + "end": { + "line": 142, + "column": 40 + } + }, + "object": { + "type": "MemberExpression", + "start": 3180, + "end": 3199, + "loc": { + "start": { + "line": 142, + "column": 12 + }, + "end": { + "line": 142, + "column": 31 + } + }, + "object": { + "type": "MemberExpression", + "start": 3180, + "end": 3190, + "loc": { + "start": { + "line": 142, + "column": 12 + }, + "end": { + "line": 142, + "column": 22 + } + }, + "object": { + "type": "ThisExpression", + "start": 3180, + "end": 3184, + "loc": { + "start": { + "line": 142, + "column": 12 + }, + "end": { + "line": 142, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 3185, + "end": 3190, + "loc": { + "start": { + "line": 142, + "column": 17 + }, + "end": { + "line": 142, + "column": 22 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3191, + "end": 3199, + "loc": { + "start": { + "line": 142, + "column": 23 + }, + "end": { + "line": 142, + "column": 31 + } + }, + "name": "location" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3200, + "end": 3208, + "loc": { + "start": { + "line": 142, + "column": 32 + }, + "end": { + "line": 142, + "column": 40 + } + }, + "name": "pathname" + }, + "computed": false + }, + "operator": "==", + "right": { + "type": "Literal", + "start": 3212, + "end": 3222, + "loc": { + "start": { + "line": 142, + "column": 44 + }, + "end": { + "line": 142, + "column": 54 + } + }, + "value": "/landing", + "rawValue": "/landing", + "raw": "'/landing'" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 3224, + "end": 3379, + "loc": { + "start": { + "line": 142, + "column": 56 + }, + "end": { + "line": 148, + "column": 9 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 3238, + "end": 3369, + "loc": { + "start": { + "line": 143, + "column": 12 + }, + "end": { + "line": 147, + "column": 13 + } + }, + "argument": { + "type": "JSXElement", + "start": 3263, + "end": 3355, + "loc": { + "start": { + "line": 144, + "column": 16 + }, + "end": { + "line": 146, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3263, + "end": 3278, + "loc": { + "start": { + "line": 144, + "column": 16 + }, + "end": { + "line": 144, + "column": 31 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3268, + "end": 3277, + "loc": { + "start": { + "line": 144, + "column": 21 + }, + "end": { + "line": 144, + "column": 30 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3268, + "end": 3270, + "loc": { + "start": { + "line": 144, + "column": 21 + }, + "end": { + "line": 144, + "column": 23 + } + }, + "name": "id" + }, + "value": { + "type": "Literal", + "start": 3271, + "end": 3277, + "loc": { + "start": { + "line": 144, + "column": 24 + }, + "end": { + "line": 144, + "column": 30 + } + }, + "value": "root", + "rawValue": null, + "raw": "\"root\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3264, + "end": 3267, + "loc": { + "start": { + "line": 144, + "column": 17 + }, + "end": { + "line": 144, + "column": 20 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3349, + "end": 3355, + "loc": { + "start": { + "line": 146, + "column": 16 + }, + "end": { + "line": 146, + "column": 22 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3351, + "end": 3354, + "loc": { + "start": { + "line": 146, + "column": 18 + }, + "end": { + "line": 146, + "column": 21 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 3278, + "end": 3299, + "loc": { + "start": { + "line": 144, + "column": 31 + }, + "end": { + "line": 145, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 3299, + "end": 3332, + "loc": { + "start": { + "line": 145, + "column": 20 + }, + "end": { + "line": 145, + "column": 53 + } + }, + "expression": { + "type": "LogicalExpression", + "start": 3300, + "end": 3331, + "loc": { + "start": { + "line": 145, + "column": 21 + }, + "end": { + "line": 145, + "column": 52 + } + }, + "left": { + "type": "MemberExpression", + "start": 3300, + "end": 3319, + "loc": { + "start": { + "line": 145, + "column": 21 + }, + "end": { + "line": 145, + "column": 40 + } + }, + "object": { + "type": "MemberExpression", + "start": 3300, + "end": 3310, + "loc": { + "start": { + "line": 145, + "column": 21 + }, + "end": { + "line": 145, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 3300, + "end": 3304, + "loc": { + "start": { + "line": 145, + "column": 21 + }, + "end": { + "line": 145, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "start": 3305, + "end": 3310, + "loc": { + "start": { + "line": 145, + "column": 26 + }, + "end": { + "line": 145, + "column": 31 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3311, + "end": 3319, + "loc": { + "start": { + "line": 145, + "column": 32 + }, + "end": { + "line": 145, + "column": 40 + } + }, + "name": "children" + }, + "computed": false + }, + "operator": "||", + "right": { + "type": "JSXElement", + "start": 3323, + "end": 3331, + "loc": { + "start": { + "line": 145, + "column": 44 + }, + "end": { + "line": 145, + "column": 52 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3323, + "end": 3331, + "loc": { + "start": { + "line": 145, + "column": 44 + }, + "end": { + "line": 145, + "column": 52 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 3324, + "end": 3328, + "loc": { + "start": { + "line": 145, + "column": 45 + }, + "end": { + "line": 145, + "column": 49 + } + }, + "name": "Home" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + } + }, + { + "type": "Literal", + "start": 3332, + "end": 3349, + "loc": { + "start": { + "line": 145, + "column": 53 + }, + "end": { + "line": 146, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 3389, + "end": 3562, + "loc": { + "start": { + "line": 150, + "column": 8 + }, + "end": { + "line": 155, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 3410, + "end": 3552, + "loc": { + "start": { + "line": 151, + "column": 12 + }, + "end": { + "line": 154, + "column": 18 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3410, + "end": 3425, + "loc": { + "start": { + "line": 151, + "column": 12 + }, + "end": { + "line": 151, + "column": 27 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3415, + "end": 3424, + "loc": { + "start": { + "line": 151, + "column": 17 + }, + "end": { + "line": 151, + "column": 26 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3415, + "end": 3417, + "loc": { + "start": { + "line": 151, + "column": 17 + }, + "end": { + "line": 151, + "column": 19 + } + }, + "name": "id" + }, + "value": { + "type": "Literal", + "start": 3418, + "end": 3424, + "loc": { + "start": { + "line": 151, + "column": 20 + }, + "end": { + "line": 151, + "column": 26 + } + }, + "value": "root", + "rawValue": null, + "raw": "\"root\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3411, + "end": 3414, + "loc": { + "start": { + "line": 151, + "column": 13 + }, + "end": { + "line": 151, + "column": 16 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3546, + "end": 3552, + "loc": { + "start": { + "line": 154, + "column": 12 + }, + "end": { + "line": 154, + "column": 18 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3548, + "end": 3551, + "loc": { + "start": { + "line": 154, + "column": 14 + }, + "end": { + "line": 154, + "column": 17 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 3425, + "end": 3442, + "loc": { + "start": { + "line": 151, + "column": 27 + }, + "end": { + "line": 152, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 3442, + "end": 3455, + "loc": { + "start": { + "line": 152, + "column": 16 + }, + "end": { + "line": 152, + "column": 29 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3442, + "end": 3455, + "loc": { + "start": { + "line": 152, + "column": 16 + }, + "end": { + "line": 152, + "column": 29 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 3443, + "end": 3452, + "loc": { + "start": { + "line": 152, + "column": 17 + }, + "end": { + "line": 152, + "column": 26 + } + }, + "name": "AppHeader" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 3455, + "end": 3472, + "loc": { + "start": { + "line": 152, + "column": 29 + }, + "end": { + "line": 153, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 3472, + "end": 3533, + "loc": { + "start": { + "line": 153, + "column": 16 + }, + "end": { + "line": 153, + "column": 77 + } + }, + "expression": { + "type": "LogicalExpression", + "start": 3473, + "end": 3532, + "loc": { + "start": { + "line": 153, + "column": 17 + }, + "end": { + "line": 153, + "column": 76 + } + }, + "left": { + "type": "MemberExpression", + "start": 3473, + "end": 3492, + "loc": { + "start": { + "line": 153, + "column": 17 + }, + "end": { + "line": 153, + "column": 36 + } + }, + "object": { + "type": "MemberExpression", + "start": 3473, + "end": 3483, + "loc": { + "start": { + "line": 153, + "column": 17 + }, + "end": { + "line": 153, + "column": 27 + } + }, + "object": { + "type": "ThisExpression", + "start": 3473, + "end": 3477, + "loc": { + "start": { + "line": 153, + "column": 17 + }, + "end": { + "line": 153, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "start": 3478, + "end": 3483, + "loc": { + "start": { + "line": 153, + "column": 22 + }, + "end": { + "line": 153, + "column": 27 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3484, + "end": 3492, + "loc": { + "start": { + "line": 153, + "column": 28 + }, + "end": { + "line": 153, + "column": 36 + } + }, + "name": "children" + }, + "computed": false + }, + "operator": "||", + "right": { + "type": "JSXElement", + "start": 3496, + "end": 3532, + "loc": { + "start": { + "line": 153, + "column": 40 + }, + "end": { + "line": 153, + "column": 76 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3496, + "end": 3532, + "loc": { + "start": { + "line": 153, + "column": 40 + }, + "end": { + "line": 153, + "column": 76 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3502, + "end": 3529, + "loc": { + "start": { + "line": 153, + "column": 46 + }, + "end": { + "line": 153, + "column": 73 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3502, + "end": 3508, + "loc": { + "start": { + "line": 153, + "column": 46 + }, + "end": { + "line": 153, + "column": 52 + } + }, + "name": "userID" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 3509, + "end": 3529, + "loc": { + "start": { + "line": 153, + "column": 53 + }, + "end": { + "line": 153, + "column": 73 + } + }, + "expression": { + "type": "MemberExpression", + "start": 3510, + "end": 3528, + "loc": { + "start": { + "line": 153, + "column": 54 + }, + "end": { + "line": 153, + "column": 72 + } + }, + "object": { + "type": "MemberExpression", + "start": 3510, + "end": 3525, + "loc": { + "start": { + "line": 153, + "column": 54 + }, + "end": { + "line": 153, + "column": 69 + } + }, + "object": { + "type": "MemberExpression", + "start": 3510, + "end": 3520, + "loc": { + "start": { + "line": 153, + "column": 54 + }, + "end": { + "line": 153, + "column": 64 + } + }, + "object": { + "type": "ThisExpression", + "start": 3510, + "end": 3514, + "loc": { + "start": { + "line": 153, + "column": 54 + }, + "end": { + "line": 153, + "column": 58 + } + } + }, + "property": { + "type": "Identifier", + "start": 3515, + "end": 3520, + "loc": { + "start": { + "line": 153, + "column": 59 + }, + "end": { + "line": 153, + "column": 64 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3521, + "end": 3525, + "loc": { + "start": { + "line": 153, + "column": 65 + }, + "end": { + "line": 153, + "column": 69 + } + }, + "name": "user" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3526, + "end": 3528, + "loc": { + "start": { + "line": 153, + "column": 70 + }, + "end": { + "line": 153, + "column": 72 + } + }, + "name": "id" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3497, + "end": 3501, + "loc": { + "start": { + "line": 153, + "column": 41 + }, + "end": { + "line": 153, + "column": 45 + } + }, + "name": "Home" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + } + }, + { + "type": "Literal", + "start": 3533, + "end": 3546, + "loc": { + "start": { + "line": 153, + "column": 77 + }, + "end": { + "line": 154, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 3022, + "end": 3070, + "loc": { + "start": { + "line": 134, + "column": 4 + }, + "end": { + "line": 137, + "column": 7 + } + }, + "range": [ + 3022, + 3070 + ] + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * App component\n * Bootstraps application\n ", + "start": 1715, + "end": 1765, + "loc": { + "start": { + "line": 77, + "column": 0 + }, + "end": { + "line": 80, + "column": 3 + } + }, + "range": [ + 1715, + 1765 + ] + } + ] + }, + { + "type": "ExportDefaultDeclaration", + "start": 3574, + "end": 3671, + "loc": { + "start": { + "line": 161, + "column": 0 + }, + "end": { + "line": 164, + "column": 8 + } + }, + "declaration": { + "type": "CallExpression", + "start": 3589, + "end": 3671, + "loc": { + "start": { + "line": 161, + "column": 15 + }, + "end": { + "line": 164, + "column": 8 + } + }, + "callee": { + "type": "CallExpression", + "start": 3589, + "end": 3666, + "loc": { + "start": { + "line": 161, + "column": 15 + }, + "end": { + "line": 164, + "column": 3 + } + }, + "callee": { + "type": "Identifier", + "start": 3589, + "end": 3596, + "loc": { + "start": { + "line": 161, + "column": 15 + }, + "end": { + "line": 161, + "column": 22 + } + }, + "name": "connect" + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 3597, + "end": 3665, + "loc": { + "start": { + "line": 161, + "column": 23 + }, + "end": { + "line": 164, + "column": 2 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 3597, + "end": 3602, + "loc": { + "start": { + "line": 161, + "column": 23 + }, + "end": { + "line": 161, + "column": 28 + } + }, + "name": "state" + } + ], + "body": { + "type": "ObjectExpression", + "start": 3607, + "end": 3664, + "loc": { + "start": { + "line": 161, + "column": 33 + }, + "end": { + "line": 164, + "column": 1 + } + }, + "properties": [ + { + "type": "Property", + "start": 3613, + "end": 3629, + "loc": { + "start": { + "line": 162, + "column": 4 + }, + "end": { + "line": 162, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3613, + "end": 3617, + "loc": { + "start": { + "line": 162, + "column": 4 + }, + "end": { + "line": 162, + "column": 8 + } + }, + "name": "user" + }, + "value": { + "type": "MemberExpression", + "start": 3619, + "end": 3629, + "loc": { + "start": { + "line": 162, + "column": 10 + }, + "end": { + "line": 162, + "column": 20 + } + }, + "object": { + "type": "Identifier", + "start": 3619, + "end": 3624, + "loc": { + "start": { + "line": 162, + "column": 10 + }, + "end": { + "line": 162, + "column": 15 + } + }, + "name": "state" + }, + "property": { + "type": "Identifier", + "start": 3625, + "end": 3629, + "loc": { + "start": { + "line": 162, + "column": 16 + }, + "end": { + "line": 162, + "column": 20 + } + }, + "name": "User" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 3635, + "end": 3661, + "loc": { + "start": { + "line": 163, + "column": 4 + }, + "end": { + "line": 163, + "column": 30 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3635, + "end": 3642, + "loc": { + "start": { + "line": 163, + "column": 4 + }, + "end": { + "line": 163, + "column": 11 + } + }, + "name": "loading" + }, + "value": { + "type": "MemberExpression", + "start": 3644, + "end": 3661, + "loc": { + "start": { + "line": 163, + "column": 13 + }, + "end": { + "line": 163, + "column": 30 + } + }, + "object": { + "type": "MemberExpression", + "start": 3644, + "end": 3653, + "loc": { + "start": { + "line": 163, + "column": 13 + }, + "end": { + "line": 163, + "column": 22 + } + }, + "object": { + "type": "Identifier", + "start": 3644, + "end": 3649, + "loc": { + "start": { + "line": 163, + "column": 13 + }, + "end": { + "line": 163, + "column": 18 + } + }, + "name": "state" + }, + "property": { + "type": "Identifier", + "start": 3650, + "end": 3653, + "loc": { + "start": { + "line": 163, + "column": 19 + }, + "end": { + "line": 163, + "column": 22 + } + }, + "name": "App" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3654, + "end": 3661, + "loc": { + "start": { + "line": 163, + "column": 23 + }, + "end": { + "line": 163, + "column": 30 + } + }, + "name": "loading" + }, + "computed": false + }, + "kind": "init" + } + ], + "parenthesizedExpression": true + } + } + ] + }, + "arguments": [ + { + "type": "Identifier", + "start": 3667, + "end": 3670, + "loc": { + "start": { + "line": 164, + "column": 4 + }, + "end": { + "line": 164, + "column": 7 + } + }, + "name": "App" + } + ], + "leadingComments": [], + "trailingComments": [] + } + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/actions/Activity.js.json b/app/docs/ast/source/actions/Activity.js.json new file mode 100644 index 0000000..ea17230 --- /dev/null +++ b/app/docs/ast/source/actions/Activity.js.json @@ -0,0 +1,2158 @@ +{ + "type": "Program", + "start": 0, + "end": 1009, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 47, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 30, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 30 + } + }, + "specifiers": [ + { + "type": "ImportNamespaceSpecifier", + "start": 7, + "end": 17, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 17 + } + }, + "local": { + "type": "Identifier", + "start": 12, + "end": 17, + "loc": { + "start": { + "line": 1, + "column": 12 + }, + "end": { + "line": 1, + "column": 17 + } + }, + "name": "axios" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 23, + "end": 30, + "loc": { + "start": { + "line": 1, + "column": 23 + }, + "end": { + "line": 1, + "column": 30 + } + }, + "value": "axios", + "rawValue": "axios", + "raw": "'axios'" + } + }, + { + "type": "ImportDeclaration", + "start": 31, + "end": 58, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 27 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 38, + "end": 44, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "local": { + "type": "Identifier", + "start": 38, + "end": 44, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "name": "config" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 50, + "end": 58, + "loc": { + "start": { + "line": 2, + "column": 19 + }, + "end": { + "line": 2, + "column": 27 + } + }, + "value": "config", + "rawValue": "config", + "raw": "'config'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * LOAD\n * @type {string}\n ", + "start": 60, + "end": 93, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + }, + "range": [ + 60, + 93 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 94, + "end": 129, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 35 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 101, + "end": 129, + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 35 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 107, + "end": 129, + "loc": { + "start": { + "line": 8, + "column": 13 + }, + "end": { + "line": 8, + "column": 35 + } + }, + "id": { + "type": "Identifier", + "start": 107, + "end": 111, + "loc": { + "start": { + "line": 8, + "column": 13 + }, + "end": { + "line": 8, + "column": 17 + } + }, + "name": "LOAD", + "leadingComments": null + }, + "init": { + "type": "Literal", + "start": 114, + "end": 129, + "loc": { + "start": { + "line": 8, + "column": 20 + }, + "end": { + "line": 8, + "column": 35 + } + }, + "value": "ACTIVITY_LOAD", + "rawValue": "ACTIVITY_LOAD", + "raw": "'ACTIVITY_LOAD'", + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * LOAD\n * @type {string}\n ", + "start": 60, + "end": 93, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + }, + "range": [ + 60, + 93 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _loadRequest\n * @private\n ", + "start": 131, + "end": 166, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + }, + "range": [ + 131, + 166 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * LOAD\n * @type {string}\n ", + "start": 60, + "end": 93, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + }, + "range": [ + 60, + 93 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _loadRequest\n * @private\n ", + "start": 131, + "end": 166, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + }, + "range": [ + 131, + 166 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 167, + "end": 218, + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 14, + "column": 51 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 174, + "end": 218, + "loc": { + "start": { + "line": 14, + "column": 7 + }, + "end": { + "line": 14, + "column": 51 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 180, + "end": 218, + "loc": { + "start": { + "line": 14, + "column": 13 + }, + "end": { + "line": 14, + "column": 51 + } + }, + "id": { + "type": "Identifier", + "start": 180, + "end": 192, + "loc": { + "start": { + "line": 14, + "column": 13 + }, + "end": { + "line": 14, + "column": 25 + } + }, + "name": "_loadRequest", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 195, + "end": 218, + "loc": { + "start": { + "line": 14, + "column": 28 + }, + "end": { + "line": 14, + "column": 51 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [], + "body": { + "type": "ObjectExpression", + "start": 202, + "end": 217, + "loc": { + "start": { + "line": 14, + "column": 35 + }, + "end": { + "line": 14, + "column": 50 + } + }, + "properties": [ + { + "type": "Property", + "start": 204, + "end": 214, + "loc": { + "start": { + "line": 14, + "column": 37 + }, + "end": { + "line": 14, + "column": 47 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 204, + "end": 208, + "loc": { + "start": { + "line": 14, + "column": 37 + }, + "end": { + "line": 14, + "column": 41 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 210, + "end": 214, + "loc": { + "start": { + "line": 14, + "column": 43 + }, + "end": { + "line": 14, + "column": 47 + } + }, + "name": "LOAD" + }, + "kind": "init" + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _loadRequest\n * @private\n ", + "start": 131, + "end": 166, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + }, + "range": [ + 131, + 166 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _loadResponse\n * @param response\n * @private\n ", + "start": 220, + "end": 275, + "loc": { + "start": { + "line": 16, + "column": 0 + }, + "end": { + "line": 20, + "column": 3 + } + }, + "range": [ + 220, + 275 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _loadRequest\n * @private\n ", + "start": 131, + "end": 166, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + }, + "range": [ + 131, + 166 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _loadResponse\n * @param response\n * @private\n ", + "start": 220, + "end": 275, + "loc": { + "start": { + "line": 16, + "column": 0 + }, + "end": { + "line": 20, + "column": 3 + } + }, + "range": [ + 220, + 275 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 276, + "end": 346, + "loc": { + "start": { + "line": 21, + "column": 0 + }, + "end": { + "line": 21, + "column": 70 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 283, + "end": 346, + "loc": { + "start": { + "line": 21, + "column": 7 + }, + "end": { + "line": 21, + "column": 70 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 289, + "end": 346, + "loc": { + "start": { + "line": 21, + "column": 13 + }, + "end": { + "line": 21, + "column": 70 + } + }, + "id": { + "type": "Identifier", + "start": 289, + "end": 302, + "loc": { + "start": { + "line": 21, + "column": 13 + }, + "end": { + "line": 21, + "column": 26 + } + }, + "name": "_loadResponse", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 305, + "end": 346, + "loc": { + "start": { + "line": 21, + "column": 29 + }, + "end": { + "line": 21, + "column": 70 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 306, + "end": 314, + "loc": { + "start": { + "line": 21, + "column": 30 + }, + "end": { + "line": 21, + "column": 38 + } + }, + "name": "response" + } + ], + "body": { + "type": "ObjectExpression", + "start": 320, + "end": 345, + "loc": { + "start": { + "line": 21, + "column": 44 + }, + "end": { + "line": 21, + "column": 69 + } + }, + "properties": [ + { + "type": "Property", + "start": 322, + "end": 332, + "loc": { + "start": { + "line": 21, + "column": 46 + }, + "end": { + "line": 21, + "column": 56 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 322, + "end": 326, + "loc": { + "start": { + "line": 21, + "column": 46 + }, + "end": { + "line": 21, + "column": 50 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 328, + "end": 332, + "loc": { + "start": { + "line": 21, + "column": 52 + }, + "end": { + "line": 21, + "column": 56 + } + }, + "name": "LOAD" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 334, + "end": 342, + "loc": { + "start": { + "line": 21, + "column": 58 + }, + "end": { + "line": 21, + "column": 66 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 334, + "end": 342, + "loc": { + "start": { + "line": 21, + "column": 58 + }, + "end": { + "line": 21, + "column": 66 + } + }, + "name": "response" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 334, + "end": 342, + "loc": { + "start": { + "line": 21, + "column": 58 + }, + "end": { + "line": 21, + "column": 66 + } + }, + "name": "response" + } + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _loadResponse\n * @param response\n * @private\n ", + "start": 220, + "end": 275, + "loc": { + "start": { + "line": 16, + "column": 0 + }, + "end": { + "line": 20, + "column": 3 + } + }, + "range": [ + 220, + 275 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * load\n * Get notifications from API for user\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @returns {Function}\n ", + "start": 349, + "end": 501, + "loc": { + "start": { + "line": 24, + "column": 0 + }, + "end": { + "line": 30, + "column": 3 + } + }, + "range": [ + 349, + 501 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _loadResponse\n * @param response\n * @private\n ", + "start": 220, + "end": 275, + "loc": { + "start": { + "line": 16, + "column": 0 + }, + "end": { + "line": 20, + "column": 3 + } + }, + "range": [ + 220, + 275 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * load\n * Get notifications from API for user\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @returns {Function}\n ", + "start": 349, + "end": 501, + "loc": { + "start": { + "line": 24, + "column": 0 + }, + "end": { + "line": 30, + "column": 3 + } + }, + "range": [ + 349, + 501 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 502, + "end": 1008, + "loc": { + "start": { + "line": 31, + "column": 0 + }, + "end": { + "line": 46, + "column": 1 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 509, + "end": 1008, + "loc": { + "start": { + "line": 31, + "column": 7 + }, + "end": { + "line": 46, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 518, + "end": 522, + "loc": { + "start": { + "line": 31, + "column": 16 + }, + "end": { + "line": 31, + "column": 20 + } + }, + "name": "load", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 525, + "end": 1008, + "loc": { + "start": { + "line": 31, + "column": 23 + }, + "end": { + "line": 46, + "column": 1 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 531, + "end": 1006, + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 45, + "column": 5 + } + }, + "argument": { + "type": "ArrowFunctionExpression", + "start": 538, + "end": 1006, + "loc": { + "start": { + "line": 32, + "column": 11 + }, + "end": { + "line": 45, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 539, + "end": 547, + "loc": { + "start": { + "line": 32, + "column": 12 + }, + "end": { + "line": 32, + "column": 20 + } + }, + "name": "dispatch" + }, + { + "type": "Identifier", + "start": 549, + "end": 557, + "loc": { + "start": { + "line": 32, + "column": 22 + }, + "end": { + "line": 32, + "column": 30 + } + }, + "name": "getState" + } + ], + "body": { + "type": "BlockStatement", + "start": 562, + "end": 1006, + "loc": { + "start": { + "line": 32, + "column": 35 + }, + "end": { + "line": 45, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 572, + "end": 1000, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 44, + "column": 11 + } + }, + "argument": { + "type": "NewExpression", + "start": 579, + "end": 1000, + "loc": { + "start": { + "line": 33, + "column": 15 + }, + "end": { + "line": 44, + "column": 11 + } + }, + "callee": { + "type": "Identifier", + "start": 583, + "end": 590, + "loc": { + "start": { + "line": 33, + "column": 19 + }, + "end": { + "line": 33, + "column": 26 + } + }, + "name": "Promise" + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 592, + "end": 998, + "loc": { + "start": { + "line": 33, + "column": 28 + }, + "end": { + "line": 44, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 592, + "end": 599, + "loc": { + "start": { + "line": 33, + "column": 28 + }, + "end": { + "line": 33, + "column": 35 + } + }, + "name": "resolve" + } + ], + "body": { + "type": "BlockStatement", + "start": 603, + "end": 998, + "loc": { + "start": { + "line": 33, + "column": 39 + }, + "end": { + "line": 44, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 617, + "end": 641, + "loc": { + "start": { + "line": 34, + "column": 12 + }, + "end": { + "line": 34, + "column": 36 + } + }, + "expression": { + "type": "CallExpression", + "start": 617, + "end": 641, + "loc": { + "start": { + "line": 34, + "column": 12 + }, + "end": { + "line": 34, + "column": 36 + } + }, + "callee": { + "type": "Identifier", + "start": 617, + "end": 625, + "loc": { + "start": { + "line": 34, + "column": 12 + }, + "end": { + "line": 34, + "column": 20 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 626, + "end": 640, + "loc": { + "start": { + "line": 34, + "column": 21 + }, + "end": { + "line": 34, + "column": 35 + } + }, + "callee": { + "type": "Identifier", + "start": 626, + "end": 638, + "loc": { + "start": { + "line": 34, + "column": 21 + }, + "end": { + "line": 34, + "column": 33 + } + }, + "name": "_loadRequest" + }, + "arguments": [] + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 654, + "end": 988, + "loc": { + "start": { + "line": 35, + "column": 12 + }, + "end": { + "line": 43, + "column": 14 + } + }, + "expression": { + "type": "CallExpression", + "start": 654, + "end": 988, + "loc": { + "start": { + "line": 35, + "column": 12 + }, + "end": { + "line": 43, + "column": 14 + } + }, + "callee": { + "type": "MemberExpression", + "start": 654, + "end": 888, + "loc": { + "start": { + "line": 35, + "column": 12 + }, + "end": { + "line": 40, + "column": 17 + } + }, + "object": { + "type": "CallExpression", + "start": 654, + "end": 870, + "loc": { + "start": { + "line": 35, + "column": 12 + }, + "end": { + "line": 39, + "column": 14 + } + }, + "callee": { + "type": "MemberExpression", + "start": 654, + "end": 663, + "loc": { + "start": { + "line": 35, + "column": 12 + }, + "end": { + "line": 35, + "column": 21 + } + }, + "object": { + "type": "Identifier", + "start": 654, + "end": 659, + "loc": { + "start": { + "line": 35, + "column": 12 + }, + "end": { + "line": 35, + "column": 17 + } + }, + "name": "axios" + }, + "property": { + "type": "Identifier", + "start": 660, + "end": 663, + "loc": { + "start": { + "line": 35, + "column": 18 + }, + "end": { + "line": 35, + "column": 21 + } + }, + "name": "get" + }, + "computed": false + }, + "arguments": [ + { + "type": "TemplateLiteral", + "start": 664, + "end": 731, + "loc": { + "start": { + "line": 35, + "column": 22 + }, + "end": { + "line": 35, + "column": 89 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 667, + "end": 685, + "loc": { + "start": { + "line": 35, + "column": 25 + }, + "end": { + "line": 35, + "column": 43 + } + }, + "object": { + "type": "MemberExpression", + "start": 667, + "end": 677, + "loc": { + "start": { + "line": 35, + "column": 25 + }, + "end": { + "line": 35, + "column": 35 + } + }, + "object": { + "type": "Identifier", + "start": 667, + "end": 673, + "loc": { + "start": { + "line": 35, + "column": 25 + }, + "end": { + "line": 35, + "column": 31 + } + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 674, + "end": 677, + "loc": { + "start": { + "line": 35, + "column": 32 + }, + "end": { + "line": 35, + "column": 35 + } + }, + "name": "api" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 678, + "end": 685, + "loc": { + "start": { + "line": 35, + "column": 36 + }, + "end": { + "line": 35, + "column": 43 + } + }, + "name": "baseUrl" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 711, + "end": 729, + "loc": { + "start": { + "line": 35, + "column": 69 + }, + "end": { + "line": 35, + "column": 87 + } + }, + "object": { + "type": "MemberExpression", + "start": 711, + "end": 726, + "loc": { + "start": { + "line": 35, + "column": 69 + }, + "end": { + "line": 35, + "column": 84 + } + }, + "object": { + "type": "CallExpression", + "start": 711, + "end": 721, + "loc": { + "start": { + "line": 35, + "column": 69 + }, + "end": { + "line": 35, + "column": 79 + } + }, + "callee": { + "type": "Identifier", + "start": 711, + "end": 719, + "loc": { + "start": { + "line": 35, + "column": 69 + }, + "end": { + "line": 35, + "column": 77 + } + }, + "name": "getState" + }, + "arguments": [] + }, + "property": { + "type": "Identifier", + "start": 722, + "end": 726, + "loc": { + "start": { + "line": 35, + "column": 80 + }, + "end": { + "line": 35, + "column": 84 + } + }, + "name": "User" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 727, + "end": 729, + "loc": { + "start": { + "line": 35, + "column": 85 + }, + "end": { + "line": 35, + "column": 87 + } + }, + "name": "id" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 665, + "end": 665, + "loc": { + "start": { + "line": 35, + "column": 23 + }, + "end": { + "line": 35, + "column": 23 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 686, + "end": 709, + "loc": { + "start": { + "line": 35, + "column": 44 + }, + "end": { + "line": 35, + "column": 67 + } + }, + "value": { + "raw": "/notifications?user_id=", + "cooked": "/notifications?user_id=" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 730, + "end": 730, + "loc": { + "start": { + "line": 35, + "column": 88 + }, + "end": { + "line": 35, + "column": 88 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + }, + { + "type": "ObjectExpression", + "start": 733, + "end": 869, + "loc": { + "start": { + "line": 35, + "column": 91 + }, + "end": { + "line": 39, + "column": 13 + } + }, + "properties": [ + { + "type": "Property", + "start": 751, + "end": 854, + "loc": { + "start": { + "line": 36, + "column": 16 + }, + "end": { + "line": 38, + "column": 17 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 751, + "end": 758, + "loc": { + "start": { + "line": 36, + "column": 16 + }, + "end": { + "line": 36, + "column": 23 + } + }, + "name": "headers" + }, + "value": { + "type": "ObjectExpression", + "start": 760, + "end": 854, + "loc": { + "start": { + "line": 36, + "column": 25 + }, + "end": { + "line": 38, + "column": 17 + } + }, + "properties": [ + { + "type": "Property", + "start": 782, + "end": 836, + "loc": { + "start": { + "line": 37, + "column": 20 + }, + "end": { + "line": 37, + "column": 74 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 782, + "end": 795, + "loc": { + "start": { + "line": 37, + "column": 20 + }, + "end": { + "line": 37, + "column": 33 + } + }, + "name": "Authorization" + }, + "value": { + "type": "TemplateLiteral", + "start": 797, + "end": 836, + "loc": { + "start": { + "line": 37, + "column": 35 + }, + "end": { + "line": 37, + "column": 74 + } + }, + "expressions": [ + { + "type": "CallExpression", + "start": 807, + "end": 834, + "loc": { + "start": { + "line": 37, + "column": 45 + }, + "end": { + "line": 37, + "column": 72 + } + }, + "callee": { + "type": "MemberExpression", + "start": 807, + "end": 827, + "loc": { + "start": { + "line": 37, + "column": 45 + }, + "end": { + "line": 37, + "column": 65 + } + }, + "object": { + "type": "Identifier", + "start": 807, + "end": 819, + "loc": { + "start": { + "line": 37, + "column": 45 + }, + "end": { + "line": 37, + "column": 57 + } + }, + "name": "localStorage" + }, + "property": { + "type": "Identifier", + "start": 820, + "end": 827, + "loc": { + "start": { + "line": 37, + "column": 58 + }, + "end": { + "line": 37, + "column": 65 + } + }, + "name": "getItem" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 828, + "end": 833, + "loc": { + "start": { + "line": 37, + "column": 66 + }, + "end": { + "line": 37, + "column": 71 + } + }, + "value": "jwt", + "rawValue": "jwt", + "raw": "'jwt'" + } + ] + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 798, + "end": 805, + "loc": { + "start": { + "line": 37, + "column": 36 + }, + "end": { + "line": 37, + "column": 43 + } + }, + "value": { + "raw": "Bearer ", + "cooked": "Bearer " + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 835, + "end": 835, + "loc": { + "start": { + "line": 37, + "column": 73 + }, + "end": { + "line": 37, + "column": 73 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + }, + "kind": "init" + } + ] + }, + "kind": "init" + } + ] + } + ] + }, + "property": { + "type": "Identifier", + "start": 884, + "end": 888, + "loc": { + "start": { + "line": 40, + "column": 13 + }, + "end": { + "line": 40, + "column": 17 + } + }, + "name": "then" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 889, + "end": 987, + "loc": { + "start": { + "line": 40, + "column": 18 + }, + "end": { + "line": 43, + "column": 13 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 889, + "end": 892, + "loc": { + "start": { + "line": 40, + "column": 18 + }, + "end": { + "line": 40, + "column": 21 + } + }, + "name": "res" + } + ], + "body": { + "type": "BlockStatement", + "start": 896, + "end": 987, + "loc": { + "start": { + "line": 40, + "column": 25 + }, + "end": { + "line": 43, + "column": 13 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 914, + "end": 947, + "loc": { + "start": { + "line": 41, + "column": 16 + }, + "end": { + "line": 41, + "column": 49 + } + }, + "expression": { + "type": "CallExpression", + "start": 914, + "end": 947, + "loc": { + "start": { + "line": 41, + "column": 16 + }, + "end": { + "line": 41, + "column": 49 + } + }, + "callee": { + "type": "Identifier", + "start": 914, + "end": 922, + "loc": { + "start": { + "line": 41, + "column": 16 + }, + "end": { + "line": 41, + "column": 24 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 923, + "end": 946, + "loc": { + "start": { + "line": 41, + "column": 25 + }, + "end": { + "line": 41, + "column": 48 + } + }, + "callee": { + "type": "Identifier", + "start": 923, + "end": 936, + "loc": { + "start": { + "line": 41, + "column": 25 + }, + "end": { + "line": 41, + "column": 38 + } + }, + "name": "_loadResponse" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 937, + "end": 945, + "loc": { + "start": { + "line": 41, + "column": 39 + }, + "end": { + "line": 41, + "column": 47 + } + }, + "object": { + "type": "Identifier", + "start": 937, + "end": 940, + "loc": { + "start": { + "line": 41, + "column": 39 + }, + "end": { + "line": 41, + "column": 42 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 941, + "end": 945, + "loc": { + "start": { + "line": 41, + "column": 43 + }, + "end": { + "line": 41, + "column": 47 + } + }, + "name": "data" + }, + "computed": false + } + ] + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 964, + "end": 973, + "loc": { + "start": { + "line": 42, + "column": 16 + }, + "end": { + "line": 42, + "column": 25 + } + }, + "expression": { + "type": "CallExpression", + "start": 964, + "end": 973, + "loc": { + "start": { + "line": 42, + "column": 16 + }, + "end": { + "line": 42, + "column": 25 + } + }, + "callee": { + "type": "Identifier", + "start": 964, + "end": 971, + "loc": { + "start": { + "line": 42, + "column": 16 + }, + "end": { + "line": 42, + "column": 23 + } + }, + "name": "resolve" + }, + "arguments": [] + } + } + ] + } + } + ] + } + } + ] + }, + "parenthesizedExpression": true + } + ] + } + } + ] + } + } + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * load\n * Get notifications from API for user\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @returns {Function}\n ", + "start": 349, + "end": 501, + "loc": { + "start": { + "line": 24, + "column": 0 + }, + "end": { + "line": 30, + "column": 3 + } + }, + "range": [ + 349, + 501 + ] + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * load\n * Get notifications from API for user\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @returns {Function}\n ", + "start": 349, + "end": 501, + "loc": { + "start": { + "line": 24, + "column": 0 + }, + "end": { + "line": 30, + "column": 3 + } + }, + "range": [ + 349, + 501 + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/actions/App.js.json b/app/docs/ast/source/actions/App.js.json new file mode 100644 index 0000000..19af4a7 --- /dev/null +++ b/app/docs/ast/source/actions/App.js.json @@ -0,0 +1,1409 @@ +{ + "type": "Program", + "start": 0, + "end": 736, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 45, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 81, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 4, + "column": 11 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 13, + "end": 35, + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 26 + } + }, + "imported": { + "type": "Identifier", + "start": 13, + "end": 19, + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 10 + } + }, + "name": "Photos" + }, + "local": { + "type": "Identifier", + "start": 23, + "end": 35, + "loc": { + "start": { + "line": 2, + "column": 14 + }, + "end": { + "line": 2, + "column": 26 + } + }, + "name": "PhotoActions" + } + }, + { + "type": "ImportSpecifier", + "start": 41, + "end": 68, + "loc": { + "start": { + "line": 3, + "column": 4 + }, + "end": { + "line": 3, + "column": 31 + } + }, + "imported": { + "type": "Identifier", + "start": 41, + "end": 49, + "loc": { + "start": { + "line": 3, + "column": 4 + }, + "end": { + "line": 3, + "column": 12 + } + }, + "name": "Activity" + }, + "local": { + "type": "Identifier", + "start": 53, + "end": 68, + "loc": { + "start": { + "line": 3, + "column": 16 + }, + "end": { + "line": 3, + "column": 31 + } + }, + "name": "ActivityActions" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 77, + "end": 81, + "loc": { + "start": { + "line": 4, + "column": 7 + }, + "end": { + "line": 4, + "column": 11 + } + }, + "value": "./", + "rawValue": "./", + "raw": "'./'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * INIT\n * @type {string}\n ", + "start": 83, + "end": 116, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + }, + "range": [ + 83, + 116 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 117, + "end": 147, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 10, + "column": 30 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 124, + "end": 147, + "loc": { + "start": { + "line": 10, + "column": 7 + }, + "end": { + "line": 10, + "column": 30 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 130, + "end": 147, + "loc": { + "start": { + "line": 10, + "column": 13 + }, + "end": { + "line": 10, + "column": 30 + } + }, + "id": { + "type": "Identifier", + "start": 130, + "end": 134, + "loc": { + "start": { + "line": 10, + "column": 13 + }, + "end": { + "line": 10, + "column": 17 + } + }, + "name": "INIT", + "leadingComments": null + }, + "init": { + "type": "Literal", + "start": 137, + "end": 147, + "loc": { + "start": { + "line": 10, + "column": 20 + }, + "end": { + "line": 10, + "column": 30 + } + }, + "value": "APP_INIT", + "rawValue": "APP_INIT", + "raw": "'APP_INIT'", + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * INIT\n * @type {string}\n ", + "start": 83, + "end": 116, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + }, + "range": [ + 83, + 116 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * init\n * loads photos and activities\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @returns {Function}\n ", + "start": 149, + "end": 293, + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 18, + "column": 3 + } + }, + "range": [ + 149, + 293 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * INIT\n * @type {string}\n ", + "start": 83, + "end": 116, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + }, + "range": [ + 83, + 116 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * init\n * loads photos and activities\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @returns {Function}\n ", + "start": 149, + "end": 293, + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 18, + "column": 3 + } + }, + "range": [ + 149, + 293 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 294, + "end": 530, + "loc": { + "start": { + "line": 19, + "column": 0 + }, + "end": { + "line": 28, + "column": 1 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 301, + "end": 530, + "loc": { + "start": { + "line": 19, + "column": 7 + }, + "end": { + "line": 28, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 310, + "end": 314, + "loc": { + "start": { + "line": 19, + "column": 16 + }, + "end": { + "line": 19, + "column": 20 + } + }, + "name": "init", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 317, + "end": 530, + "loc": { + "start": { + "line": 19, + "column": 23 + }, + "end": { + "line": 28, + "column": 1 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 323, + "end": 528, + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 27, + "column": 5 + } + }, + "argument": { + "type": "ArrowFunctionExpression", + "start": 330, + "end": 528, + "loc": { + "start": { + "line": 20, + "column": 11 + }, + "end": { + "line": 27, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 330, + "end": 338, + "loc": { + "start": { + "line": 20, + "column": 11 + }, + "end": { + "line": 20, + "column": 19 + } + }, + "name": "dispatch" + } + ], + "body": { + "type": "BlockStatement", + "start": 342, + "end": 528, + "loc": { + "start": { + "line": 20, + "column": 23 + }, + "end": { + "line": 27, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 352, + "end": 522, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 26, + "column": 10 + } + }, + "expression": { + "type": "CallExpression", + "start": 352, + "end": 522, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 26, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 352, + "end": 470, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 24, + "column": 15 + } + }, + "object": { + "type": "CallExpression", + "start": 352, + "end": 465, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 24, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 352, + "end": 363, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 19 + } + }, + "object": { + "type": "Identifier", + "start": 352, + "end": 359, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 15 + } + }, + "name": "Promise" + }, + "property": { + "type": "Identifier", + "start": 360, + "end": 363, + "loc": { + "start": { + "line": 21, + "column": 16 + }, + "end": { + "line": 21, + "column": 19 + } + }, + "name": "all" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrayExpression", + "start": 364, + "end": 464, + "loc": { + "start": { + "line": 21, + "column": 20 + }, + "end": { + "line": 24, + "column": 9 + } + }, + "elements": [ + { + "type": "CallExpression", + "start": 378, + "end": 407, + "loc": { + "start": { + "line": 22, + "column": 12 + }, + "end": { + "line": 22, + "column": 41 + } + }, + "callee": { + "type": "Identifier", + "start": 378, + "end": 386, + "loc": { + "start": { + "line": 22, + "column": 12 + }, + "end": { + "line": 22, + "column": 20 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 387, + "end": 406, + "loc": { + "start": { + "line": 22, + "column": 21 + }, + "end": { + "line": 22, + "column": 40 + } + }, + "callee": { + "type": "MemberExpression", + "start": 387, + "end": 404, + "loc": { + "start": { + "line": 22, + "column": 21 + }, + "end": { + "line": 22, + "column": 38 + } + }, + "object": { + "type": "Identifier", + "start": 387, + "end": 399, + "loc": { + "start": { + "line": 22, + "column": 21 + }, + "end": { + "line": 22, + "column": 33 + } + }, + "name": "PhotoActions" + }, + "property": { + "type": "Identifier", + "start": 400, + "end": 404, + "loc": { + "start": { + "line": 22, + "column": 34 + }, + "end": { + "line": 22, + "column": 38 + } + }, + "name": "load" + }, + "computed": false + }, + "arguments": [] + } + ] + }, + { + "type": "CallExpression", + "start": 421, + "end": 453, + "loc": { + "start": { + "line": 23, + "column": 12 + }, + "end": { + "line": 23, + "column": 44 + } + }, + "callee": { + "type": "Identifier", + "start": 421, + "end": 429, + "loc": { + "start": { + "line": 23, + "column": 12 + }, + "end": { + "line": 23, + "column": 20 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 430, + "end": 452, + "loc": { + "start": { + "line": 23, + "column": 21 + }, + "end": { + "line": 23, + "column": 43 + } + }, + "callee": { + "type": "MemberExpression", + "start": 430, + "end": 450, + "loc": { + "start": { + "line": 23, + "column": 21 + }, + "end": { + "line": 23, + "column": 41 + } + }, + "object": { + "type": "Identifier", + "start": 430, + "end": 445, + "loc": { + "start": { + "line": 23, + "column": 21 + }, + "end": { + "line": 23, + "column": 36 + } + }, + "name": "ActivityActions" + }, + "property": { + "type": "Identifier", + "start": 446, + "end": 450, + "loc": { + "start": { + "line": 23, + "column": 37 + }, + "end": { + "line": 23, + "column": 41 + } + }, + "name": "load" + }, + "computed": false + }, + "arguments": [] + } + ] + } + ] + } + ] + }, + "property": { + "type": "Identifier", + "start": 466, + "end": 470, + "loc": { + "start": { + "line": 24, + "column": 11 + }, + "end": { + "line": 24, + "column": 15 + } + }, + "name": "then" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 471, + "end": 521, + "loc": { + "start": { + "line": 24, + "column": 16 + }, + "end": { + "line": 26, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 477, + "end": 521, + "loc": { + "start": { + "line": 24, + "column": 22 + }, + "end": { + "line": 26, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 491, + "end": 511, + "loc": { + "start": { + "line": 25, + "column": 12 + }, + "end": { + "line": 25, + "column": 32 + } + }, + "expression": { + "type": "CallExpression", + "start": 491, + "end": 511, + "loc": { + "start": { + "line": 25, + "column": 12 + }, + "end": { + "line": 25, + "column": 32 + } + }, + "callee": { + "type": "Identifier", + "start": 491, + "end": 499, + "loc": { + "start": { + "line": 25, + "column": 12 + }, + "end": { + "line": 25, + "column": 20 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 500, + "end": 510, + "loc": { + "start": { + "line": 25, + "column": 21 + }, + "end": { + "line": 25, + "column": 31 + } + }, + "callee": { + "type": "Identifier", + "start": 500, + "end": 508, + "loc": { + "start": { + "line": 25, + "column": 21 + }, + "end": { + "line": 25, + "column": 29 + } + }, + "name": "initDone" + }, + "arguments": [] + } + ] + } + } + ] + } + } + ] + } + } + ] + } + } + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * init\n * loads photos and activities\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @returns {Function}\n ", + "start": 149, + "end": 293, + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 18, + "column": 3 + } + }, + "range": [ + 149, + 293 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * INIT_DONE\n * @type {string}\n ", + "start": 532, + "end": 570, + "loc": { + "start": { + "line": 30, + "column": 0 + }, + "end": { + "line": 33, + "column": 3 + } + }, + "range": [ + 532, + 570 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * init\n * loads photos and activities\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @returns {Function}\n ", + "start": 149, + "end": 293, + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 18, + "column": 3 + } + }, + "range": [ + 149, + 293 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * INIT_DONE\n * @type {string}\n ", + "start": 532, + "end": 570, + "loc": { + "start": { + "line": 30, + "column": 0 + }, + "end": { + "line": 33, + "column": 3 + } + }, + "range": [ + 532, + 570 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 571, + "end": 611, + "loc": { + "start": { + "line": 34, + "column": 0 + }, + "end": { + "line": 34, + "column": 40 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 578, + "end": 611, + "loc": { + "start": { + "line": 34, + "column": 7 + }, + "end": { + "line": 34, + "column": 40 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 584, + "end": 611, + "loc": { + "start": { + "line": 34, + "column": 13 + }, + "end": { + "line": 34, + "column": 40 + } + }, + "id": { + "type": "Identifier", + "start": 584, + "end": 593, + "loc": { + "start": { + "line": 34, + "column": 13 + }, + "end": { + "line": 34, + "column": 22 + } + }, + "name": "INIT_DONE", + "leadingComments": null + }, + "init": { + "type": "Literal", + "start": 596, + "end": 611, + "loc": { + "start": { + "line": 34, + "column": 25 + }, + "end": { + "line": 34, + "column": 40 + } + }, + "value": "APP_INIT_DONE", + "rawValue": "APP_INIT_DONE", + "raw": "'APP_INIT_DONE'", + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * INIT_DONE\n * @type {string}\n ", + "start": 532, + "end": 570, + "loc": { + "start": { + "line": 30, + "column": 0 + }, + "end": { + "line": 33, + "column": 3 + } + }, + "range": [ + 532, + 570 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * initDone\n * @returns {{type: string}}\n ", + "start": 613, + "end": 661, + "loc": { + "start": { + "line": 36, + "column": 0 + }, + "end": { + "line": 39, + "column": 3 + } + }, + "range": [ + 613, + 661 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * INIT_DONE\n * @type {string}\n ", + "start": 532, + "end": 570, + "loc": { + "start": { + "line": 30, + "column": 0 + }, + "end": { + "line": 33, + "column": 3 + } + }, + "range": [ + 532, + 570 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * initDone\n * @returns {{type: string}}\n ", + "start": 613, + "end": 661, + "loc": { + "start": { + "line": 36, + "column": 0 + }, + "end": { + "line": 39, + "column": 3 + } + }, + "range": [ + 613, + 661 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 662, + "end": 735, + "loc": { + "start": { + "line": 40, + "column": 0 + }, + "end": { + "line": 44, + "column": 1 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 669, + "end": 735, + "loc": { + "start": { + "line": 40, + "column": 7 + }, + "end": { + "line": 44, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 678, + "end": 686, + "loc": { + "start": { + "line": 40, + "column": 16 + }, + "end": { + "line": 40, + "column": 24 + } + }, + "name": "initDone", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 689, + "end": 735, + "loc": { + "start": { + "line": 40, + "column": 27 + }, + "end": { + "line": 44, + "column": 1 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 695, + "end": 733, + "loc": { + "start": { + "line": 41, + "column": 4 + }, + "end": { + "line": 43, + "column": 5 + } + }, + "argument": { + "type": "ObjectExpression", + "start": 702, + "end": 733, + "loc": { + "start": { + "line": 41, + "column": 11 + }, + "end": { + "line": 43, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 712, + "end": 727, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 23 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 712, + "end": 716, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 12 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 718, + "end": 727, + "loc": { + "start": { + "line": 42, + "column": 14 + }, + "end": { + "line": 42, + "column": 23 + } + }, + "name": "INIT_DONE" + }, + "kind": "init" + } + ] + } + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * initDone\n * @returns {{type: string}}\n ", + "start": 613, + "end": 661, + "loc": { + "start": { + "line": 36, + "column": 0 + }, + "end": { + "line": 39, + "column": 3 + } + }, + "range": [ + 613, + 661 + ] + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * initDone\n * @returns {{type: string}}\n ", + "start": 613, + "end": 661, + "loc": { + "start": { + "line": 36, + "column": 0 + }, + "end": { + "line": 39, + "column": 3 + } + }, + "range": [ + 613, + 661 + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/actions/Comments.js.json b/app/docs/ast/source/actions/Comments.js.json new file mode 100644 index 0000000..197ce09 --- /dev/null +++ b/app/docs/ast/source/actions/Comments.js.json @@ -0,0 +1,4556 @@ +{ + "type": "Program", + "start": 0, + "end": 2221, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 98, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 30, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 30 + } + }, + "specifiers": [ + { + "type": "ImportNamespaceSpecifier", + "start": 7, + "end": 17, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 17 + } + }, + "local": { + "type": "Identifier", + "start": 12, + "end": 17, + "loc": { + "start": { + "line": 1, + "column": 12 + }, + "end": { + "line": 1, + "column": 17 + } + }, + "name": "axios" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 23, + "end": 30, + "loc": { + "start": { + "line": 1, + "column": 23 + }, + "end": { + "line": 1, + "column": 30 + } + }, + "value": "axios", + "rawValue": "axios", + "raw": "'axios'" + } + }, + { + "type": "ImportDeclaration", + "start": 31, + "end": 58, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 27 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 38, + "end": 44, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "local": { + "type": "Identifier", + "start": 38, + "end": 44, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "name": "config" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 50, + "end": 58, + "loc": { + "start": { + "line": 2, + "column": 19 + }, + "end": { + "line": 2, + "column": 27 + } + }, + "value": "config", + "rawValue": "config", + "raw": "'config'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * ADD_COMMENT\n * @type {string}\n ", + "start": 60, + "end": 100, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + }, + "range": [ + 60, + 100 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 101, + "end": 148, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 47 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 108, + "end": 148, + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 47 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 114, + "end": 148, + "loc": { + "start": { + "line": 8, + "column": 13 + }, + "end": { + "line": 8, + "column": 47 + } + }, + "id": { + "type": "Identifier", + "start": 114, + "end": 125, + "loc": { + "start": { + "line": 8, + "column": 13 + }, + "end": { + "line": 8, + "column": 24 + } + }, + "name": "ADD_COMMENT", + "leadingComments": null + }, + "init": { + "type": "Literal", + "start": 128, + "end": 148, + "loc": { + "start": { + "line": 8, + "column": 27 + }, + "end": { + "line": 8, + "column": 47 + } + }, + "value": "PHOTOS_ADD_COMMENT", + "rawValue": "PHOTOS_ADD_COMMENT", + "raw": "'PHOTOS_ADD_COMMENT'", + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * ADD_COMMENT\n * @type {string}\n ", + "start": 60, + "end": 100, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + }, + "range": [ + 60, + 100 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _addCommentRequest\n * @param id\n * @private\n ", + "start": 150, + "end": 204, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + }, + "range": [ + 150, + 204 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * ADD_COMMENT\n * @type {string}\n ", + "start": 60, + "end": 100, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + }, + "range": [ + 60, + 100 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _addCommentRequest\n * @param id\n * @private\n ", + "start": 150, + "end": 204, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + }, + "range": [ + 150, + 204 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 205, + "end": 275, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 15, + "column": 70 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 212, + "end": 275, + "loc": { + "start": { + "line": 15, + "column": 7 + }, + "end": { + "line": 15, + "column": 70 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 218, + "end": 275, + "loc": { + "start": { + "line": 15, + "column": 13 + }, + "end": { + "line": 15, + "column": 70 + } + }, + "id": { + "type": "Identifier", + "start": 218, + "end": 236, + "loc": { + "start": { + "line": 15, + "column": 13 + }, + "end": { + "line": 15, + "column": 31 + } + }, + "name": "_addCommentRequest", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 239, + "end": 275, + "loc": { + "start": { + "line": 15, + "column": 34 + }, + "end": { + "line": 15, + "column": 70 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 240, + "end": 242, + "loc": { + "start": { + "line": 15, + "column": 35 + }, + "end": { + "line": 15, + "column": 37 + } + }, + "name": "id" + } + ], + "body": { + "type": "ObjectExpression", + "start": 248, + "end": 274, + "loc": { + "start": { + "line": 15, + "column": 43 + }, + "end": { + "line": 15, + "column": 69 + } + }, + "properties": [ + { + "type": "Property", + "start": 250, + "end": 267, + "loc": { + "start": { + "line": 15, + "column": 45 + }, + "end": { + "line": 15, + "column": 62 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 250, + "end": 254, + "loc": { + "start": { + "line": 15, + "column": 45 + }, + "end": { + "line": 15, + "column": 49 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 256, + "end": 267, + "loc": { + "start": { + "line": 15, + "column": 51 + }, + "end": { + "line": 15, + "column": 62 + } + }, + "name": "ADD_COMMENT" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 269, + "end": 271, + "loc": { + "start": { + "line": 15, + "column": 64 + }, + "end": { + "line": 15, + "column": 66 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 269, + "end": 271, + "loc": { + "start": { + "line": 15, + "column": 64 + }, + "end": { + "line": 15, + "column": 66 + } + }, + "name": "id" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 269, + "end": 271, + "loc": { + "start": { + "line": 15, + "column": 64 + }, + "end": { + "line": 15, + "column": 66 + } + }, + "name": "id" + } + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _addCommentRequest\n * @param id\n * @private\n ", + "start": 150, + "end": 204, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + }, + "range": [ + 150, + 204 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _addCommentResponse\n * @param id\n * @param comment\n * @param user\n * @private\n ", + "start": 277, + "end": 365, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 23, + "column": 3 + } + }, + "range": [ + 277, + 365 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _addCommentRequest\n * @param id\n * @private\n ", + "start": 150, + "end": 204, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + }, + "range": [ + 150, + 204 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _addCommentResponse\n * @param id\n * @param comment\n * @param user\n * @private\n ", + "start": 277, + "end": 365, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 23, + "column": 3 + } + }, + "range": [ + 277, + 365 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 366, + "end": 466, + "loc": { + "start": { + "line": 24, + "column": 0 + }, + "end": { + "line": 24, + "column": 100 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 373, + "end": 466, + "loc": { + "start": { + "line": 24, + "column": 7 + }, + "end": { + "line": 24, + "column": 100 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 379, + "end": 466, + "loc": { + "start": { + "line": 24, + "column": 13 + }, + "end": { + "line": 24, + "column": 100 + } + }, + "id": { + "type": "Identifier", + "start": 379, + "end": 398, + "loc": { + "start": { + "line": 24, + "column": 13 + }, + "end": { + "line": 24, + "column": 32 + } + }, + "name": "_addCommentResponse", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 401, + "end": 466, + "loc": { + "start": { + "line": 24, + "column": 35 + }, + "end": { + "line": 24, + "column": 100 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 402, + "end": 404, + "loc": { + "start": { + "line": 24, + "column": 36 + }, + "end": { + "line": 24, + "column": 38 + } + }, + "name": "id" + }, + { + "type": "Identifier", + "start": 406, + "end": 413, + "loc": { + "start": { + "line": 24, + "column": 40 + }, + "end": { + "line": 24, + "column": 47 + } + }, + "name": "comment" + }, + { + "type": "Identifier", + "start": 415, + "end": 419, + "loc": { + "start": { + "line": 24, + "column": 49 + }, + "end": { + "line": 24, + "column": 53 + } + }, + "name": "user" + } + ], + "body": { + "type": "ObjectExpression", + "start": 425, + "end": 465, + "loc": { + "start": { + "line": 24, + "column": 59 + }, + "end": { + "line": 24, + "column": 99 + } + }, + "properties": [ + { + "type": "Property", + "start": 427, + "end": 444, + "loc": { + "start": { + "line": 24, + "column": 61 + }, + "end": { + "line": 24, + "column": 78 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 427, + "end": 431, + "loc": { + "start": { + "line": 24, + "column": 61 + }, + "end": { + "line": 24, + "column": 65 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 433, + "end": 444, + "loc": { + "start": { + "line": 24, + "column": 67 + }, + "end": { + "line": 24, + "column": 78 + } + }, + "name": "ADD_COMMENT" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 446, + "end": 448, + "loc": { + "start": { + "line": 24, + "column": 80 + }, + "end": { + "line": 24, + "column": 82 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 446, + "end": 448, + "loc": { + "start": { + "line": 24, + "column": 80 + }, + "end": { + "line": 24, + "column": 82 + } + }, + "name": "id" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 446, + "end": 448, + "loc": { + "start": { + "line": 24, + "column": 80 + }, + "end": { + "line": 24, + "column": 82 + } + }, + "name": "id" + } + }, + { + "type": "Property", + "start": 450, + "end": 457, + "loc": { + "start": { + "line": 24, + "column": 84 + }, + "end": { + "line": 24, + "column": 91 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 450, + "end": 457, + "loc": { + "start": { + "line": 24, + "column": 84 + }, + "end": { + "line": 24, + "column": 91 + } + }, + "name": "comment" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 450, + "end": 457, + "loc": { + "start": { + "line": 24, + "column": 84 + }, + "end": { + "line": 24, + "column": 91 + } + }, + "name": "comment" + } + }, + { + "type": "Property", + "start": 459, + "end": 463, + "loc": { + "start": { + "line": 24, + "column": 93 + }, + "end": { + "line": 24, + "column": 97 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 459, + "end": 463, + "loc": { + "start": { + "line": 24, + "column": 93 + }, + "end": { + "line": 24, + "column": 97 + } + }, + "name": "user" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 459, + "end": 463, + "loc": { + "start": { + "line": 24, + "column": 93 + }, + "end": { + "line": 24, + "column": 97 + } + }, + "name": "user" + } + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _addCommentResponse\n * @param id\n * @param comment\n * @param user\n * @private\n ", + "start": 277, + "end": 365, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 23, + "column": 3 + } + }, + "range": [ + 277, + 365 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * addComment\n * Posts comment data to API\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param id\n * @param text\n * @returns {Function}\n ", + "start": 468, + "end": 644, + "loc": { + "start": { + "line": 26, + "column": 0 + }, + "end": { + "line": 34, + "column": 3 + } + }, + "range": [ + 468, + 644 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _addCommentResponse\n * @param id\n * @param comment\n * @param user\n * @private\n ", + "start": 277, + "end": 365, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 23, + "column": 3 + } + }, + "range": [ + 277, + 365 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * addComment\n * Posts comment data to API\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param id\n * @param text\n * @returns {Function}\n ", + "start": 468, + "end": 644, + "loc": { + "start": { + "line": 26, + "column": 0 + }, + "end": { + "line": 34, + "column": 3 + } + }, + "range": [ + 468, + 644 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 645, + "end": 1216, + "loc": { + "start": { + "line": 35, + "column": 0 + }, + "end": { + "line": 54, + "column": 1 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 652, + "end": 1216, + "loc": { + "start": { + "line": 35, + "column": 7 + }, + "end": { + "line": 54, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 661, + "end": 671, + "loc": { + "start": { + "line": 35, + "column": 16 + }, + "end": { + "line": 35, + "column": 26 + } + }, + "name": "addComment", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 672, + "end": 674, + "loc": { + "start": { + "line": 35, + "column": 27 + }, + "end": { + "line": 35, + "column": 29 + } + }, + "name": "id" + }, + { + "type": "Identifier", + "start": 676, + "end": 680, + "loc": { + "start": { + "line": 35, + "column": 31 + }, + "end": { + "line": 35, + "column": 35 + } + }, + "name": "text" + } + ], + "body": { + "type": "BlockStatement", + "start": 682, + "end": 1216, + "loc": { + "start": { + "line": 35, + "column": 37 + }, + "end": { + "line": 54, + "column": 1 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 688, + "end": 1214, + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 53, + "column": 5 + } + }, + "argument": { + "type": "ArrowFunctionExpression", + "start": 695, + "end": 1214, + "loc": { + "start": { + "line": 36, + "column": 11 + }, + "end": { + "line": 53, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 696, + "end": 704, + "loc": { + "start": { + "line": 36, + "column": 12 + }, + "end": { + "line": 36, + "column": 20 + } + }, + "name": "dispatch" + }, + { + "type": "Identifier", + "start": 706, + "end": 714, + "loc": { + "start": { + "line": 36, + "column": 22 + }, + "end": { + "line": 36, + "column": 30 + } + }, + "name": "getState" + } + ], + "body": { + "type": "BlockStatement", + "start": 719, + "end": 1214, + "loc": { + "start": { + "line": 36, + "column": 35 + }, + "end": { + "line": 53, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 729, + "end": 757, + "loc": { + "start": { + "line": 37, + "column": 8 + }, + "end": { + "line": 37, + "column": 36 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 735, + "end": 757, + "loc": { + "start": { + "line": 37, + "column": 14 + }, + "end": { + "line": 37, + "column": 36 + } + }, + "id": { + "type": "Identifier", + "start": 735, + "end": 739, + "loc": { + "start": { + "line": 37, + "column": 14 + }, + "end": { + "line": 37, + "column": 18 + } + }, + "name": "user" + }, + "init": { + "type": "MemberExpression", + "start": 742, + "end": 757, + "loc": { + "start": { + "line": 37, + "column": 21 + }, + "end": { + "line": 37, + "column": 36 + } + }, + "object": { + "type": "CallExpression", + "start": 742, + "end": 752, + "loc": { + "start": { + "line": 37, + "column": 21 + }, + "end": { + "line": 37, + "column": 31 + } + }, + "callee": { + "type": "Identifier", + "start": 742, + "end": 750, + "loc": { + "start": { + "line": 37, + "column": 21 + }, + "end": { + "line": 37, + "column": 29 + } + }, + "name": "getState" + }, + "arguments": [] + }, + "property": { + "type": "Identifier", + "start": 753, + "end": 757, + "loc": { + "start": { + "line": 37, + "column": 32 + }, + "end": { + "line": 37, + "column": 36 + } + }, + "name": "User" + }, + "computed": false + } + } + ], + "kind": "const" + }, + { + "type": "ExpressionStatement", + "start": 766, + "end": 798, + "loc": { + "start": { + "line": 38, + "column": 8 + }, + "end": { + "line": 38, + "column": 40 + } + }, + "expression": { + "type": "CallExpression", + "start": 766, + "end": 798, + "loc": { + "start": { + "line": 38, + "column": 8 + }, + "end": { + "line": 38, + "column": 40 + } + }, + "callee": { + "type": "Identifier", + "start": 766, + "end": 774, + "loc": { + "start": { + "line": 38, + "column": 8 + }, + "end": { + "line": 38, + "column": 16 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 775, + "end": 797, + "loc": { + "start": { + "line": 38, + "column": 17 + }, + "end": { + "line": 38, + "column": 39 + } + }, + "callee": { + "type": "Identifier", + "start": 775, + "end": 793, + "loc": { + "start": { + "line": 38, + "column": 17 + }, + "end": { + "line": 38, + "column": 35 + } + }, + "name": "_addCommentRequest" + }, + "arguments": [ + { + "type": "Identifier", + "start": 794, + "end": 796, + "loc": { + "start": { + "line": 38, + "column": 36 + }, + "end": { + "line": 38, + "column": 38 + } + }, + "name": "id" + } + ] + } + ] + } + }, + { + "type": "VariableDeclaration", + "start": 807, + "end": 915, + "loc": { + "start": { + "line": 39, + "column": 8 + }, + "end": { + "line": 43, + "column": 9 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 813, + "end": 915, + "loc": { + "start": { + "line": 39, + "column": 14 + }, + "end": { + "line": 43, + "column": 9 + } + }, + "id": { + "type": "Identifier", + "start": 813, + "end": 817, + "loc": { + "start": { + "line": 39, + "column": 14 + }, + "end": { + "line": 39, + "column": 18 + } + }, + "name": "data" + }, + "init": { + "type": "ObjectExpression", + "start": 820, + "end": 915, + "loc": { + "start": { + "line": 39, + "column": 21 + }, + "end": { + "line": 43, + "column": 9 + } + }, + "properties": [ + { + "type": "Property", + "start": 834, + "end": 850, + "loc": { + "start": { + "line": 40, + "column": 12 + }, + "end": { + "line": 40, + "column": 28 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 834, + "end": 841, + "loc": { + "start": { + "line": 40, + "column": 12 + }, + "end": { + "line": 40, + "column": 19 + } + }, + "name": "user_id" + }, + "value": { + "type": "MemberExpression", + "start": 843, + "end": 850, + "loc": { + "start": { + "line": 40, + "column": 21 + }, + "end": { + "line": 40, + "column": 28 + } + }, + "object": { + "type": "Identifier", + "start": 843, + "end": 847, + "loc": { + "start": { + "line": 40, + "column": 21 + }, + "end": { + "line": 40, + "column": 25 + } + }, + "name": "user" + }, + "property": { + "type": "Identifier", + "start": 848, + "end": 850, + "loc": { + "start": { + "line": 40, + "column": 26 + }, + "end": { + "line": 40, + "column": 28 + } + }, + "name": "id" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 864, + "end": 877, + "loc": { + "start": { + "line": 41, + "column": 12 + }, + "end": { + "line": 41, + "column": 25 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 864, + "end": 873, + "loc": { + "start": { + "line": 41, + "column": 12 + }, + "end": { + "line": 41, + "column": 21 + } + }, + "name": "upload_id" + }, + "value": { + "type": "Identifier", + "start": 875, + "end": 877, + "loc": { + "start": { + "line": 41, + "column": 23 + }, + "end": { + "line": 41, + "column": 25 + } + }, + "name": "id" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 891, + "end": 904, + "loc": { + "start": { + "line": 42, + "column": 12 + }, + "end": { + "line": 42, + "column": 25 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 891, + "end": 898, + "loc": { + "start": { + "line": 42, + "column": 12 + }, + "end": { + "line": 42, + "column": 19 + } + }, + "name": "comment" + }, + "value": { + "type": "Identifier", + "start": 900, + "end": 904, + "loc": { + "start": { + "line": 42, + "column": 21 + }, + "end": { + "line": 42, + "column": 25 + } + }, + "name": "text" + }, + "kind": "init" + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "ExpressionStatement", + "start": 924, + "end": 1208, + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 52, + "column": 10 + } + }, + "expression": { + "type": "CallExpression", + "start": 924, + "end": 1208, + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 52, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 924, + "end": 1126, + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 50, + "column": 13 + } + }, + "object": { + "type": "CallExpression", + "start": 924, + "end": 1112, + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 49, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 924, + "end": 933, + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 44, + "column": 17 + } + }, + "object": { + "type": "Identifier", + "start": 924, + "end": 929, + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 44, + "column": 13 + } + }, + "name": "axios" + }, + "property": { + "type": "Identifier", + "start": 930, + "end": 933, + "loc": { + "start": { + "line": 44, + "column": 14 + }, + "end": { + "line": 44, + "column": 17 + } + }, + "name": "get" + }, + "computed": false + }, + "arguments": [ + { + "type": "TemplateLiteral", + "start": 934, + "end": 966, + "loc": { + "start": { + "line": 44, + "column": 18 + }, + "end": { + "line": 44, + "column": 50 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 937, + "end": 955, + "loc": { + "start": { + "line": 44, + "column": 21 + }, + "end": { + "line": 44, + "column": 39 + } + }, + "object": { + "type": "MemberExpression", + "start": 937, + "end": 947, + "loc": { + "start": { + "line": 44, + "column": 21 + }, + "end": { + "line": 44, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 937, + "end": 943, + "loc": { + "start": { + "line": 44, + "column": 21 + }, + "end": { + "line": 44, + "column": 27 + } + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 944, + "end": 947, + "loc": { + "start": { + "line": 44, + "column": 28 + }, + "end": { + "line": 44, + "column": 31 + } + }, + "name": "api" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 948, + "end": 955, + "loc": { + "start": { + "line": 44, + "column": 32 + }, + "end": { + "line": 44, + "column": 39 + } + }, + "name": "baseUrl" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 935, + "end": 935, + "loc": { + "start": { + "line": 44, + "column": 19 + }, + "end": { + "line": 44, + "column": 19 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 956, + "end": 965, + "loc": { + "start": { + "line": 44, + "column": 40 + }, + "end": { + "line": 44, + "column": 49 + } + }, + "value": { + "raw": "/comments", + "cooked": "/comments" + }, + "tail": true + } + ] + }, + { + "type": "ObjectExpression", + "start": 968, + "end": 1111, + "loc": { + "start": { + "line": 44, + "column": 52 + }, + "end": { + "line": 49, + "column": 9 + } + }, + "properties": [ + { + "type": "Property", + "start": 982, + "end": 1077, + "loc": { + "start": { + "line": 45, + "column": 12 + }, + "end": { + "line": 47, + "column": 13 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 982, + "end": 989, + "loc": { + "start": { + "line": 45, + "column": 12 + }, + "end": { + "line": 45, + "column": 19 + } + }, + "name": "headers" + }, + "value": { + "type": "ObjectExpression", + "start": 991, + "end": 1077, + "loc": { + "start": { + "line": 45, + "column": 21 + }, + "end": { + "line": 47, + "column": 13 + } + }, + "properties": [ + { + "type": "Property", + "start": 1009, + "end": 1063, + "loc": { + "start": { + "line": 46, + "column": 16 + }, + "end": { + "line": 46, + "column": 70 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1009, + "end": 1022, + "loc": { + "start": { + "line": 46, + "column": 16 + }, + "end": { + "line": 46, + "column": 29 + } + }, + "name": "Authorization" + }, + "value": { + "type": "TemplateLiteral", + "start": 1024, + "end": 1063, + "loc": { + "start": { + "line": 46, + "column": 31 + }, + "end": { + "line": 46, + "column": 70 + } + }, + "expressions": [ + { + "type": "CallExpression", + "start": 1034, + "end": 1061, + "loc": { + "start": { + "line": 46, + "column": 41 + }, + "end": { + "line": 46, + "column": 68 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1034, + "end": 1054, + "loc": { + "start": { + "line": 46, + "column": 41 + }, + "end": { + "line": 46, + "column": 61 + } + }, + "object": { + "type": "Identifier", + "start": 1034, + "end": 1046, + "loc": { + "start": { + "line": 46, + "column": 41 + }, + "end": { + "line": 46, + "column": 53 + } + }, + "name": "localStorage" + }, + "property": { + "type": "Identifier", + "start": 1047, + "end": 1054, + "loc": { + "start": { + "line": 46, + "column": 54 + }, + "end": { + "line": 46, + "column": 61 + } + }, + "name": "getItem" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 1055, + "end": 1060, + "loc": { + "start": { + "line": 46, + "column": 62 + }, + "end": { + "line": 46, + "column": 67 + } + }, + "value": "jwt", + "rawValue": "jwt", + "raw": "'jwt'" + } + ] + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 1025, + "end": 1032, + "loc": { + "start": { + "line": 46, + "column": 32 + }, + "end": { + "line": 46, + "column": 39 + } + }, + "value": { + "raw": "Bearer ", + "cooked": "Bearer " + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 1062, + "end": 1062, + "loc": { + "start": { + "line": 46, + "column": 69 + }, + "end": { + "line": 46, + "column": 69 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + }, + "kind": "init" + } + ] + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1091, + "end": 1101, + "loc": { + "start": { + "line": 48, + "column": 12 + }, + "end": { + "line": 48, + "column": 22 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1091, + "end": 1095, + "loc": { + "start": { + "line": 48, + "column": 12 + }, + "end": { + "line": 48, + "column": 16 + } + }, + "name": "data" + }, + "value": { + "type": "Identifier", + "start": 1097, + "end": 1101, + "loc": { + "start": { + "line": 48, + "column": 18 + }, + "end": { + "line": 48, + "column": 22 + } + }, + "name": "data" + }, + "kind": "init" + } + ] + } + ] + }, + "property": { + "type": "Identifier", + "start": 1122, + "end": 1126, + "loc": { + "start": { + "line": 50, + "column": 9 + }, + "end": { + "line": 50, + "column": 13 + } + }, + "name": "then" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 1127, + "end": 1207, + "loc": { + "start": { + "line": 50, + "column": 14 + }, + "end": { + "line": 52, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1127, + "end": 1130, + "loc": { + "start": { + "line": 50, + "column": 14 + }, + "end": { + "line": 50, + "column": 17 + } + }, + "name": "res" + } + ], + "body": { + "type": "BlockStatement", + "start": 1134, + "end": 1207, + "loc": { + "start": { + "line": 50, + "column": 21 + }, + "end": { + "line": 52, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1148, + "end": 1197, + "loc": { + "start": { + "line": 51, + "column": 12 + }, + "end": { + "line": 51, + "column": 61 + } + }, + "expression": { + "type": "CallExpression", + "start": 1148, + "end": 1197, + "loc": { + "start": { + "line": 51, + "column": 12 + }, + "end": { + "line": 51, + "column": 61 + } + }, + "callee": { + "type": "Identifier", + "start": 1148, + "end": 1156, + "loc": { + "start": { + "line": 51, + "column": 12 + }, + "end": { + "line": 51, + "column": 20 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1157, + "end": 1196, + "loc": { + "start": { + "line": 51, + "column": 21 + }, + "end": { + "line": 51, + "column": 60 + } + }, + "callee": { + "type": "Identifier", + "start": 1157, + "end": 1176, + "loc": { + "start": { + "line": 51, + "column": 21 + }, + "end": { + "line": 51, + "column": 40 + } + }, + "name": "_addCommentResponse" + }, + "arguments": [ + { + "type": "Identifier", + "start": 1177, + "end": 1179, + "loc": { + "start": { + "line": 51, + "column": 41 + }, + "end": { + "line": 51, + "column": 43 + } + }, + "name": "id" + }, + { + "type": "MemberExpression", + "start": 1181, + "end": 1189, + "loc": { + "start": { + "line": 51, + "column": 45 + }, + "end": { + "line": 51, + "column": 53 + } + }, + "object": { + "type": "Identifier", + "start": 1181, + "end": 1184, + "loc": { + "start": { + "line": 51, + "column": 45 + }, + "end": { + "line": 51, + "column": 48 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 1185, + "end": 1189, + "loc": { + "start": { + "line": 51, + "column": 49 + }, + "end": { + "line": 51, + "column": 53 + } + }, + "name": "data" + }, + "computed": false + }, + { + "type": "Identifier", + "start": 1191, + "end": 1195, + "loc": { + "start": { + "line": 51, + "column": 55 + }, + "end": { + "line": 51, + "column": 59 + } + }, + "name": "user" + } + ] + } + ] + } + } + ] + } + } + ] + } + } + ] + } + } + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * addComment\n * Posts comment data to API\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param id\n * @param text\n * @returns {Function}\n ", + "start": 468, + "end": 644, + "loc": { + "start": { + "line": 26, + "column": 0 + }, + "end": { + "line": 34, + "column": 3 + } + }, + "range": [ + 468, + 644 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * LOAD_COMMENTS\n * @type {string}\n ", + "start": 1218, + "end": 1260, + "loc": { + "start": { + "line": 56, + "column": 0 + }, + "end": { + "line": 59, + "column": 3 + } + }, + "range": [ + 1218, + 1260 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * addComment\n * Posts comment data to API\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param id\n * @param text\n * @returns {Function}\n ", + "start": 468, + "end": 644, + "loc": { + "start": { + "line": 26, + "column": 0 + }, + "end": { + "line": 34, + "column": 3 + } + }, + "range": [ + 468, + 644 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * LOAD_COMMENTS\n * @type {string}\n ", + "start": 1218, + "end": 1260, + "loc": { + "start": { + "line": 56, + "column": 0 + }, + "end": { + "line": 59, + "column": 3 + } + }, + "range": [ + 1218, + 1260 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 1261, + "end": 1311, + "loc": { + "start": { + "line": 60, + "column": 0 + }, + "end": { + "line": 60, + "column": 50 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 1268, + "end": 1311, + "loc": { + "start": { + "line": 60, + "column": 7 + }, + "end": { + "line": 60, + "column": 50 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1274, + "end": 1311, + "loc": { + "start": { + "line": 60, + "column": 13 + }, + "end": { + "line": 60, + "column": 50 + } + }, + "id": { + "type": "Identifier", + "start": 1274, + "end": 1287, + "loc": { + "start": { + "line": 60, + "column": 13 + }, + "end": { + "line": 60, + "column": 26 + } + }, + "name": "LOAD_COMMENTS", + "leadingComments": null + }, + "init": { + "type": "Literal", + "start": 1290, + "end": 1311, + "loc": { + "start": { + "line": 60, + "column": 29 + }, + "end": { + "line": 60, + "column": 50 + } + }, + "value": "PHOTOS_LOAD_COMMENT", + "rawValue": "PHOTOS_LOAD_COMMENT", + "raw": "'PHOTOS_LOAD_COMMENT'", + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * LOAD_COMMENTS\n * @type {string}\n ", + "start": 1218, + "end": 1260, + "loc": { + "start": { + "line": 56, + "column": 0 + }, + "end": { + "line": 59, + "column": 3 + } + }, + "range": [ + 1218, + 1260 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _loadCommentsRequest\n * @param postID\n * @private\n ", + "start": 1313, + "end": 1373, + "loc": { + "start": { + "line": 62, + "column": 0 + }, + "end": { + "line": 66, + "column": 3 + } + }, + "range": [ + 1313, + 1373 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * LOAD_COMMENTS\n * @type {string}\n ", + "start": 1218, + "end": 1260, + "loc": { + "start": { + "line": 56, + "column": 0 + }, + "end": { + "line": 59, + "column": 3 + } + }, + "range": [ + 1218, + 1260 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _loadCommentsRequest\n * @param postID\n * @private\n ", + "start": 1313, + "end": 1373, + "loc": { + "start": { + "line": 62, + "column": 0 + }, + "end": { + "line": 66, + "column": 3 + } + }, + "range": [ + 1313, + 1373 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 1374, + "end": 1456, + "loc": { + "start": { + "line": 67, + "column": 0 + }, + "end": { + "line": 67, + "column": 82 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 1381, + "end": 1456, + "loc": { + "start": { + "line": 67, + "column": 7 + }, + "end": { + "line": 67, + "column": 82 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1387, + "end": 1456, + "loc": { + "start": { + "line": 67, + "column": 13 + }, + "end": { + "line": 67, + "column": 82 + } + }, + "id": { + "type": "Identifier", + "start": 1387, + "end": 1407, + "loc": { + "start": { + "line": 67, + "column": 13 + }, + "end": { + "line": 67, + "column": 33 + } + }, + "name": "_loadCommentsRequest", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 1410, + "end": 1456, + "loc": { + "start": { + "line": 67, + "column": 36 + }, + "end": { + "line": 67, + "column": 82 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1411, + "end": 1417, + "loc": { + "start": { + "line": 67, + "column": 37 + }, + "end": { + "line": 67, + "column": 43 + } + }, + "name": "postID" + } + ], + "body": { + "type": "ObjectExpression", + "start": 1423, + "end": 1455, + "loc": { + "start": { + "line": 67, + "column": 49 + }, + "end": { + "line": 67, + "column": 81 + } + }, + "properties": [ + { + "type": "Property", + "start": 1425, + "end": 1444, + "loc": { + "start": { + "line": 67, + "column": 51 + }, + "end": { + "line": 67, + "column": 70 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1425, + "end": 1429, + "loc": { + "start": { + "line": 67, + "column": 51 + }, + "end": { + "line": 67, + "column": 55 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 1431, + "end": 1444, + "loc": { + "start": { + "line": 67, + "column": 57 + }, + "end": { + "line": 67, + "column": 70 + } + }, + "name": "LOAD_COMMENTS" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1446, + "end": 1452, + "loc": { + "start": { + "line": 67, + "column": 72 + }, + "end": { + "line": 67, + "column": 78 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 1446, + "end": 1452, + "loc": { + "start": { + "line": 67, + "column": 72 + }, + "end": { + "line": 67, + "column": 78 + } + }, + "name": "postID" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 1446, + "end": 1452, + "loc": { + "start": { + "line": 67, + "column": 72 + }, + "end": { + "line": 67, + "column": 78 + } + }, + "name": "postID" + } + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _loadCommentsRequest\n * @param postID\n * @private\n ", + "start": 1313, + "end": 1373, + "loc": { + "start": { + "line": 62, + "column": 0 + }, + "end": { + "line": 66, + "column": 3 + } + }, + "range": [ + 1313, + 1373 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _loadCommentsResponse\n * @param postID\n * @param comments\n * @private\n ", + "start": 1458, + "end": 1538, + "loc": { + "start": { + "line": 69, + "column": 0 + }, + "end": { + "line": 74, + "column": 3 + } + }, + "range": [ + 1458, + 1538 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _loadCommentsRequest\n * @param postID\n * @private\n ", + "start": 1313, + "end": 1373, + "loc": { + "start": { + "line": 62, + "column": 0 + }, + "end": { + "line": 66, + "column": 3 + } + }, + "range": [ + 1313, + 1373 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _loadCommentsResponse\n * @param postID\n * @param comments\n * @private\n ", + "start": 1458, + "end": 1538, + "loc": { + "start": { + "line": 69, + "column": 0 + }, + "end": { + "line": 74, + "column": 3 + } + }, + "range": [ + 1458, + 1538 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 1539, + "end": 1642, + "loc": { + "start": { + "line": 75, + "column": 0 + }, + "end": { + "line": 75, + "column": 103 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 1546, + "end": 1642, + "loc": { + "start": { + "line": 75, + "column": 7 + }, + "end": { + "line": 75, + "column": 103 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1552, + "end": 1642, + "loc": { + "start": { + "line": 75, + "column": 13 + }, + "end": { + "line": 75, + "column": 103 + } + }, + "id": { + "type": "Identifier", + "start": 1552, + "end": 1573, + "loc": { + "start": { + "line": 75, + "column": 13 + }, + "end": { + "line": 75, + "column": 34 + } + }, + "name": "_loadCommentsResponse", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 1576, + "end": 1642, + "loc": { + "start": { + "line": 75, + "column": 37 + }, + "end": { + "line": 75, + "column": 103 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1577, + "end": 1583, + "loc": { + "start": { + "line": 75, + "column": 38 + }, + "end": { + "line": 75, + "column": 44 + } + }, + "name": "postID" + }, + { + "type": "Identifier", + "start": 1585, + "end": 1593, + "loc": { + "start": { + "line": 75, + "column": 46 + }, + "end": { + "line": 75, + "column": 54 + } + }, + "name": "comments" + } + ], + "body": { + "type": "ObjectExpression", + "start": 1599, + "end": 1641, + "loc": { + "start": { + "line": 75, + "column": 60 + }, + "end": { + "line": 75, + "column": 102 + } + }, + "properties": [ + { + "type": "Property", + "start": 1601, + "end": 1620, + "loc": { + "start": { + "line": 75, + "column": 62 + }, + "end": { + "line": 75, + "column": 81 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1601, + "end": 1605, + "loc": { + "start": { + "line": 75, + "column": 62 + }, + "end": { + "line": 75, + "column": 66 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 1607, + "end": 1620, + "loc": { + "start": { + "line": 75, + "column": 68 + }, + "end": { + "line": 75, + "column": 81 + } + }, + "name": "LOAD_COMMENTS" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1622, + "end": 1628, + "loc": { + "start": { + "line": 75, + "column": 83 + }, + "end": { + "line": 75, + "column": 89 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 1622, + "end": 1628, + "loc": { + "start": { + "line": 75, + "column": 83 + }, + "end": { + "line": 75, + "column": 89 + } + }, + "name": "postID" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 1622, + "end": 1628, + "loc": { + "start": { + "line": 75, + "column": 83 + }, + "end": { + "line": 75, + "column": 89 + } + }, + "name": "postID" + } + }, + { + "type": "Property", + "start": 1630, + "end": 1638, + "loc": { + "start": { + "line": 75, + "column": 91 + }, + "end": { + "line": 75, + "column": 99 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 1630, + "end": 1638, + "loc": { + "start": { + "line": 75, + "column": 91 + }, + "end": { + "line": 75, + "column": 99 + } + }, + "name": "comments" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 1630, + "end": 1638, + "loc": { + "start": { + "line": 75, + "column": 91 + }, + "end": { + "line": 75, + "column": 99 + } + }, + "name": "comments" + } + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _loadCommentsResponse\n * @param postID\n * @param comments\n * @private\n ", + "start": 1458, + "end": 1538, + "loc": { + "start": { + "line": 69, + "column": 0 + }, + "end": { + "line": 74, + "column": 3 + } + }, + "range": [ + 1458, + 1538 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * load\n * Gets comments from API based on upload id\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param postID\n * @returns {Function}\n ", + "start": 1644, + "end": 1819, + "loc": { + "start": { + "line": 77, + "column": 0 + }, + "end": { + "line": 84, + "column": 3 + } + }, + "range": [ + 1644, + 1819 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _loadCommentsResponse\n * @param postID\n * @param comments\n * @private\n ", + "start": 1458, + "end": 1538, + "loc": { + "start": { + "line": 69, + "column": 0 + }, + "end": { + "line": 74, + "column": 3 + } + }, + "range": [ + 1458, + 1538 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * load\n * Gets comments from API based on upload id\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param postID\n * @returns {Function}\n ", + "start": 1644, + "end": 1819, + "loc": { + "start": { + "line": 77, + "column": 0 + }, + "end": { + "line": 84, + "column": 3 + } + }, + "range": [ + 1644, + 1819 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 1820, + "end": 2220, + "loc": { + "start": { + "line": 85, + "column": 0 + }, + "end": { + "line": 97, + "column": 1 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 1827, + "end": 2220, + "loc": { + "start": { + "line": 85, + "column": 7 + }, + "end": { + "line": 97, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 1836, + "end": 1840, + "loc": { + "start": { + "line": 85, + "column": 16 + }, + "end": { + "line": 85, + "column": 20 + } + }, + "name": "load", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1841, + "end": 1847, + "loc": { + "start": { + "line": 85, + "column": 21 + }, + "end": { + "line": 85, + "column": 27 + } + }, + "name": "postID" + } + ], + "body": { + "type": "BlockStatement", + "start": 1849, + "end": 2220, + "loc": { + "start": { + "line": 85, + "column": 29 + }, + "end": { + "line": 97, + "column": 1 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 1855, + "end": 2218, + "loc": { + "start": { + "line": 86, + "column": 4 + }, + "end": { + "line": 96, + "column": 5 + } + }, + "argument": { + "type": "ArrowFunctionExpression", + "start": 1862, + "end": 2218, + "loc": { + "start": { + "line": 86, + "column": 11 + }, + "end": { + "line": 96, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1862, + "end": 1870, + "loc": { + "start": { + "line": 86, + "column": 11 + }, + "end": { + "line": 86, + "column": 19 + } + }, + "name": "dispatch" + } + ], + "body": { + "type": "BlockStatement", + "start": 1874, + "end": 2218, + "loc": { + "start": { + "line": 86, + "column": 23 + }, + "end": { + "line": 96, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1884, + "end": 1922, + "loc": { + "start": { + "line": 87, + "column": 8 + }, + "end": { + "line": 87, + "column": 46 + } + }, + "expression": { + "type": "CallExpression", + "start": 1884, + "end": 1922, + "loc": { + "start": { + "line": 87, + "column": 8 + }, + "end": { + "line": 87, + "column": 46 + } + }, + "callee": { + "type": "Identifier", + "start": 1884, + "end": 1892, + "loc": { + "start": { + "line": 87, + "column": 8 + }, + "end": { + "line": 87, + "column": 16 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1893, + "end": 1921, + "loc": { + "start": { + "line": 87, + "column": 17 + }, + "end": { + "line": 87, + "column": 45 + } + }, + "callee": { + "type": "Identifier", + "start": 1893, + "end": 1913, + "loc": { + "start": { + "line": 87, + "column": 17 + }, + "end": { + "line": 87, + "column": 37 + } + }, + "name": "_loadCommentsRequest" + }, + "arguments": [ + { + "type": "Identifier", + "start": 1914, + "end": 1920, + "loc": { + "start": { + "line": 87, + "column": 38 + }, + "end": { + "line": 87, + "column": 44 + } + }, + "name": "postID" + } + ] + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 1931, + "end": 2212, + "loc": { + "start": { + "line": 88, + "column": 8 + }, + "end": { + "line": 95, + "column": 10 + } + }, + "expression": { + "type": "CallExpression", + "start": 1931, + "end": 2212, + "loc": { + "start": { + "line": 88, + "column": 8 + }, + "end": { + "line": 95, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1931, + "end": 2130, + "loc": { + "start": { + "line": 88, + "column": 8 + }, + "end": { + "line": 93, + "column": 13 + } + }, + "object": { + "type": "CallExpression", + "start": 1931, + "end": 2116, + "loc": { + "start": { + "line": 88, + "column": 8 + }, + "end": { + "line": 92, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1931, + "end": 1940, + "loc": { + "start": { + "line": 88, + "column": 8 + }, + "end": { + "line": 88, + "column": 17 + } + }, + "object": { + "type": "Identifier", + "start": 1931, + "end": 1936, + "loc": { + "start": { + "line": 88, + "column": 8 + }, + "end": { + "line": 88, + "column": 13 + } + }, + "name": "axios" + }, + "property": { + "type": "Identifier", + "start": 1937, + "end": 1940, + "loc": { + "start": { + "line": 88, + "column": 14 + }, + "end": { + "line": 88, + "column": 17 + } + }, + "name": "get" + }, + "computed": false + }, + "arguments": [ + { + "type": "TemplateLiteral", + "start": 1941, + "end": 1993, + "loc": { + "start": { + "line": 88, + "column": 18 + }, + "end": { + "line": 88, + "column": 70 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 1944, + "end": 1962, + "loc": { + "start": { + "line": 88, + "column": 21 + }, + "end": { + "line": 88, + "column": 39 + } + }, + "object": { + "type": "MemberExpression", + "start": 1944, + "end": 1954, + "loc": { + "start": { + "line": 88, + "column": 21 + }, + "end": { + "line": 88, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 1944, + "end": 1950, + "loc": { + "start": { + "line": 88, + "column": 21 + }, + "end": { + "line": 88, + "column": 27 + } + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 1951, + "end": 1954, + "loc": { + "start": { + "line": 88, + "column": 28 + }, + "end": { + "line": 88, + "column": 31 + } + }, + "name": "api" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1955, + "end": 1962, + "loc": { + "start": { + "line": 88, + "column": 32 + }, + "end": { + "line": 88, + "column": 39 + } + }, + "name": "baseUrl" + }, + "computed": false + }, + { + "type": "Identifier", + "start": 1985, + "end": 1991, + "loc": { + "start": { + "line": 88, + "column": 62 + }, + "end": { + "line": 88, + "column": 68 + } + }, + "name": "postID" + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 1942, + "end": 1942, + "loc": { + "start": { + "line": 88, + "column": 19 + }, + "end": { + "line": 88, + "column": 19 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 1963, + "end": 1983, + "loc": { + "start": { + "line": 88, + "column": 40 + }, + "end": { + "line": 88, + "column": 60 + } + }, + "value": { + "raw": "/comments?upload_id=", + "cooked": "/comments?upload_id=" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 1992, + "end": 1992, + "loc": { + "start": { + "line": 88, + "column": 69 + }, + "end": { + "line": 88, + "column": 69 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + }, + { + "type": "ObjectExpression", + "start": 1995, + "end": 2115, + "loc": { + "start": { + "line": 88, + "column": 72 + }, + "end": { + "line": 92, + "column": 9 + } + }, + "properties": [ + { + "type": "Property", + "start": 2009, + "end": 2104, + "loc": { + "start": { + "line": 89, + "column": 12 + }, + "end": { + "line": 91, + "column": 13 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2009, + "end": 2016, + "loc": { + "start": { + "line": 89, + "column": 12 + }, + "end": { + "line": 89, + "column": 19 + } + }, + "name": "headers" + }, + "value": { + "type": "ObjectExpression", + "start": 2018, + "end": 2104, + "loc": { + "start": { + "line": 89, + "column": 21 + }, + "end": { + "line": 91, + "column": 13 + } + }, + "properties": [ + { + "type": "Property", + "start": 2036, + "end": 2090, + "loc": { + "start": { + "line": 90, + "column": 16 + }, + "end": { + "line": 90, + "column": 70 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2036, + "end": 2049, + "loc": { + "start": { + "line": 90, + "column": 16 + }, + "end": { + "line": 90, + "column": 29 + } + }, + "name": "Authorization" + }, + "value": { + "type": "TemplateLiteral", + "start": 2051, + "end": 2090, + "loc": { + "start": { + "line": 90, + "column": 31 + }, + "end": { + "line": 90, + "column": 70 + } + }, + "expressions": [ + { + "type": "CallExpression", + "start": 2061, + "end": 2088, + "loc": { + "start": { + "line": 90, + "column": 41 + }, + "end": { + "line": 90, + "column": 68 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2061, + "end": 2081, + "loc": { + "start": { + "line": 90, + "column": 41 + }, + "end": { + "line": 90, + "column": 61 + } + }, + "object": { + "type": "Identifier", + "start": 2061, + "end": 2073, + "loc": { + "start": { + "line": 90, + "column": 41 + }, + "end": { + "line": 90, + "column": 53 + } + }, + "name": "localStorage" + }, + "property": { + "type": "Identifier", + "start": 2074, + "end": 2081, + "loc": { + "start": { + "line": 90, + "column": 54 + }, + "end": { + "line": 90, + "column": 61 + } + }, + "name": "getItem" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 2082, + "end": 2087, + "loc": { + "start": { + "line": 90, + "column": 62 + }, + "end": { + "line": 90, + "column": 67 + } + }, + "value": "jwt", + "rawValue": "jwt", + "raw": "'jwt'" + } + ] + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 2052, + "end": 2059, + "loc": { + "start": { + "line": 90, + "column": 32 + }, + "end": { + "line": 90, + "column": 39 + } + }, + "value": { + "raw": "Bearer ", + "cooked": "Bearer " + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 2089, + "end": 2089, + "loc": { + "start": { + "line": 90, + "column": 69 + }, + "end": { + "line": 90, + "column": 69 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + }, + "kind": "init" + } + ] + }, + "kind": "init" + } + ] + } + ] + }, + "property": { + "type": "Identifier", + "start": 2126, + "end": 2130, + "loc": { + "start": { + "line": 93, + "column": 9 + }, + "end": { + "line": 93, + "column": 13 + } + }, + "name": "then" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 2131, + "end": 2211, + "loc": { + "start": { + "line": 93, + "column": 14 + }, + "end": { + "line": 95, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2131, + "end": 2134, + "loc": { + "start": { + "line": 93, + "column": 14 + }, + "end": { + "line": 93, + "column": 17 + } + }, + "name": "res" + } + ], + "body": { + "type": "BlockStatement", + "start": 2138, + "end": 2211, + "loc": { + "start": { + "line": 93, + "column": 21 + }, + "end": { + "line": 95, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 2152, + "end": 2201, + "loc": { + "start": { + "line": 94, + "column": 12 + }, + "end": { + "line": 94, + "column": 61 + } + }, + "expression": { + "type": "CallExpression", + "start": 2152, + "end": 2201, + "loc": { + "start": { + "line": 94, + "column": 12 + }, + "end": { + "line": 94, + "column": 61 + } + }, + "callee": { + "type": "Identifier", + "start": 2152, + "end": 2160, + "loc": { + "start": { + "line": 94, + "column": 12 + }, + "end": { + "line": 94, + "column": 20 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 2161, + "end": 2200, + "loc": { + "start": { + "line": 94, + "column": 21 + }, + "end": { + "line": 94, + "column": 60 + } + }, + "callee": { + "type": "Identifier", + "start": 2161, + "end": 2182, + "loc": { + "start": { + "line": 94, + "column": 21 + }, + "end": { + "line": 94, + "column": 42 + } + }, + "name": "_loadCommentsResponse" + }, + "arguments": [ + { + "type": "Identifier", + "start": 2183, + "end": 2189, + "loc": { + "start": { + "line": 94, + "column": 43 + }, + "end": { + "line": 94, + "column": 49 + } + }, + "name": "postID" + }, + { + "type": "MemberExpression", + "start": 2191, + "end": 2199, + "loc": { + "start": { + "line": 94, + "column": 51 + }, + "end": { + "line": 94, + "column": 59 + } + }, + "object": { + "type": "Identifier", + "start": 2191, + "end": 2194, + "loc": { + "start": { + "line": 94, + "column": 51 + }, + "end": { + "line": 94, + "column": 54 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 2195, + "end": 2199, + "loc": { + "start": { + "line": 94, + "column": 55 + }, + "end": { + "line": 94, + "column": 59 + } + }, + "name": "data" + }, + "computed": false + } + ] + } + ] + } + } + ] + } + } + ] + } + } + ] + } + } + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * load\n * Gets comments from API based on upload id\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param postID\n * @returns {Function}\n ", + "start": 1644, + "end": 1819, + "loc": { + "start": { + "line": 77, + "column": 0 + }, + "end": { + "line": 84, + "column": 3 + } + }, + "range": [ + 1644, + 1819 + ] + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * load\n * Gets comments from API based on upload id\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param postID\n * @returns {Function}\n ", + "start": 1644, + "end": 1819, + "loc": { + "start": { + "line": 77, + "column": 0 + }, + "end": { + "line": 84, + "column": 3 + } + }, + "range": [ + 1644, + 1819 + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/actions/Contributions.js.json b/app/docs/ast/source/actions/Contributions.js.json new file mode 100644 index 0000000..fdc92c3 --- /dev/null +++ b/app/docs/ast/source/actions/Contributions.js.json @@ -0,0 +1,2290 @@ +{ + "type": "Program", + "start": 0, + "end": 1045, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 47, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 30, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 30 + } + }, + "specifiers": [ + { + "type": "ImportNamespaceSpecifier", + "start": 7, + "end": 17, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 17 + } + }, + "local": { + "type": "Identifier", + "start": 12, + "end": 17, + "loc": { + "start": { + "line": 1, + "column": 12 + }, + "end": { + "line": 1, + "column": 17 + } + }, + "name": "axios" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 23, + "end": 30, + "loc": { + "start": { + "line": 1, + "column": 23 + }, + "end": { + "line": 1, + "column": 30 + } + }, + "value": "axios", + "rawValue": "axios", + "raw": "'axios'" + } + }, + { + "type": "ImportDeclaration", + "start": 31, + "end": 58, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 27 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 38, + "end": 44, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "local": { + "type": "Identifier", + "start": 38, + "end": 44, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "name": "config" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 50, + "end": 58, + "loc": { + "start": { + "line": 2, + "column": 19 + }, + "end": { + "line": 2, + "column": 27 + } + }, + "value": "config", + "rawValue": "config", + "raw": "'config'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * LOAD\n * @type {string}\n ", + "start": 60, + "end": 93, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + }, + "range": [ + 60, + 93 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 94, + "end": 134, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 40 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 101, + "end": 134, + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 40 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 107, + "end": 134, + "loc": { + "start": { + "line": 8, + "column": 13 + }, + "end": { + "line": 8, + "column": 40 + } + }, + "id": { + "type": "Identifier", + "start": 107, + "end": 111, + "loc": { + "start": { + "line": 8, + "column": 13 + }, + "end": { + "line": 8, + "column": 17 + } + }, + "name": "LOAD", + "leadingComments": null + }, + "init": { + "type": "Literal", + "start": 114, + "end": 134, + "loc": { + "start": { + "line": 8, + "column": 20 + }, + "end": { + "line": 8, + "column": 40 + } + }, + "value": "CONTRIBUTIONS_LOAD", + "rawValue": "CONTRIBUTIONS_LOAD", + "raw": "'CONTRIBUTIONS_LOAD'", + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * LOAD\n * @type {string}\n ", + "start": 60, + "end": 93, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + }, + "range": [ + 60, + 93 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _loadRequest\n * @param userID\n * @private\n ", + "start": 136, + "end": 188, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + }, + "range": [ + 136, + 188 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * LOAD\n * @type {string}\n ", + "start": 60, + "end": 93, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + }, + "range": [ + 60, + 93 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _loadRequest\n * @param userID\n * @private\n ", + "start": 136, + "end": 188, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + }, + "range": [ + 136, + 188 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 189, + "end": 254, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 15, + "column": 65 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 196, + "end": 254, + "loc": { + "start": { + "line": 15, + "column": 7 + }, + "end": { + "line": 15, + "column": 65 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 202, + "end": 254, + "loc": { + "start": { + "line": 15, + "column": 13 + }, + "end": { + "line": 15, + "column": 65 + } + }, + "id": { + "type": "Identifier", + "start": 202, + "end": 214, + "loc": { + "start": { + "line": 15, + "column": 13 + }, + "end": { + "line": 15, + "column": 25 + } + }, + "name": "_loadRequest", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 217, + "end": 254, + "loc": { + "start": { + "line": 15, + "column": 28 + }, + "end": { + "line": 15, + "column": 65 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 218, + "end": 224, + "loc": { + "start": { + "line": 15, + "column": 29 + }, + "end": { + "line": 15, + "column": 35 + } + }, + "name": "userID" + } + ], + "body": { + "type": "ObjectExpression", + "start": 230, + "end": 253, + "loc": { + "start": { + "line": 15, + "column": 41 + }, + "end": { + "line": 15, + "column": 64 + } + }, + "properties": [ + { + "type": "Property", + "start": 232, + "end": 242, + "loc": { + "start": { + "line": 15, + "column": 43 + }, + "end": { + "line": 15, + "column": 53 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 232, + "end": 236, + "loc": { + "start": { + "line": 15, + "column": 43 + }, + "end": { + "line": 15, + "column": 47 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 238, + "end": 242, + "loc": { + "start": { + "line": 15, + "column": 49 + }, + "end": { + "line": 15, + "column": 53 + } + }, + "name": "LOAD" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 244, + "end": 250, + "loc": { + "start": { + "line": 15, + "column": 55 + }, + "end": { + "line": 15, + "column": 61 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 244, + "end": 250, + "loc": { + "start": { + "line": 15, + "column": 55 + }, + "end": { + "line": 15, + "column": 61 + } + }, + "name": "userID" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 244, + "end": 250, + "loc": { + "start": { + "line": 15, + "column": 55 + }, + "end": { + "line": 15, + "column": 61 + } + }, + "name": "userID" + } + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _loadRequest\n * @param userID\n * @private\n ", + "start": 136, + "end": 188, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + }, + "range": [ + 136, + 188 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _loadResponse\n * @param userID\n * @param response\n * @private\n ", + "start": 256, + "end": 328, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 22, + "column": 3 + } + }, + "range": [ + 256, + 328 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _loadRequest\n * @param userID\n * @private\n ", + "start": 136, + "end": 188, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + }, + "range": [ + 136, + 188 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _loadResponse\n * @param userID\n * @param response\n * @private\n ", + "start": 256, + "end": 328, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 22, + "column": 3 + } + }, + "range": [ + 256, + 328 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 329, + "end": 415, + "loc": { + "start": { + "line": 23, + "column": 0 + }, + "end": { + "line": 23, + "column": 86 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 336, + "end": 415, + "loc": { + "start": { + "line": 23, + "column": 7 + }, + "end": { + "line": 23, + "column": 86 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 342, + "end": 415, + "loc": { + "start": { + "line": 23, + "column": 13 + }, + "end": { + "line": 23, + "column": 86 + } + }, + "id": { + "type": "Identifier", + "start": 342, + "end": 355, + "loc": { + "start": { + "line": 23, + "column": 13 + }, + "end": { + "line": 23, + "column": 26 + } + }, + "name": "_loadResponse", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 358, + "end": 415, + "loc": { + "start": { + "line": 23, + "column": 29 + }, + "end": { + "line": 23, + "column": 86 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 359, + "end": 365, + "loc": { + "start": { + "line": 23, + "column": 30 + }, + "end": { + "line": 23, + "column": 36 + } + }, + "name": "userID" + }, + { + "type": "Identifier", + "start": 367, + "end": 375, + "loc": { + "start": { + "line": 23, + "column": 38 + }, + "end": { + "line": 23, + "column": 46 + } + }, + "name": "response" + } + ], + "body": { + "type": "ObjectExpression", + "start": 381, + "end": 414, + "loc": { + "start": { + "line": 23, + "column": 52 + }, + "end": { + "line": 23, + "column": 85 + } + }, + "properties": [ + { + "type": "Property", + "start": 383, + "end": 393, + "loc": { + "start": { + "line": 23, + "column": 54 + }, + "end": { + "line": 23, + "column": 64 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 383, + "end": 387, + "loc": { + "start": { + "line": 23, + "column": 54 + }, + "end": { + "line": 23, + "column": 58 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 389, + "end": 393, + "loc": { + "start": { + "line": 23, + "column": 60 + }, + "end": { + "line": 23, + "column": 64 + } + }, + "name": "LOAD" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 395, + "end": 401, + "loc": { + "start": { + "line": 23, + "column": 66 + }, + "end": { + "line": 23, + "column": 72 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 395, + "end": 401, + "loc": { + "start": { + "line": 23, + "column": 66 + }, + "end": { + "line": 23, + "column": 72 + } + }, + "name": "userID" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 395, + "end": 401, + "loc": { + "start": { + "line": 23, + "column": 66 + }, + "end": { + "line": 23, + "column": 72 + } + }, + "name": "userID" + } + }, + { + "type": "Property", + "start": 403, + "end": 411, + "loc": { + "start": { + "line": 23, + "column": 74 + }, + "end": { + "line": 23, + "column": 82 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 403, + "end": 411, + "loc": { + "start": { + "line": 23, + "column": 74 + }, + "end": { + "line": 23, + "column": 82 + } + }, + "name": "response" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 403, + "end": 411, + "loc": { + "start": { + "line": 23, + "column": 74 + }, + "end": { + "line": 23, + "column": 82 + } + }, + "name": "response" + } + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _loadResponse\n * @param userID\n * @param response\n * @private\n ", + "start": 256, + "end": 328, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 22, + "column": 3 + } + }, + "range": [ + 256, + 328 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * load\n * Get contributions from API by user id\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param userID user id\n * @returns {Function}\n ", + "start": 417, + "end": 596, + "loc": { + "start": { + "line": 25, + "column": 0 + }, + "end": { + "line": 32, + "column": 3 + } + }, + "range": [ + 417, + 596 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _loadResponse\n * @param userID\n * @param response\n * @private\n ", + "start": 256, + "end": 328, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 22, + "column": 3 + } + }, + "range": [ + 256, + 328 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * load\n * Get contributions from API by user id\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param userID user id\n * @returns {Function}\n ", + "start": 417, + "end": 596, + "loc": { + "start": { + "line": 25, + "column": 0 + }, + "end": { + "line": 32, + "column": 3 + } + }, + "range": [ + 417, + 596 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 597, + "end": 1044, + "loc": { + "start": { + "line": 33, + "column": 0 + }, + "end": { + "line": 46, + "column": 1 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 604, + "end": 1044, + "loc": { + "start": { + "line": 33, + "column": 7 + }, + "end": { + "line": 46, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 613, + "end": 617, + "loc": { + "start": { + "line": 33, + "column": 16 + }, + "end": { + "line": 33, + "column": 20 + } + }, + "name": "load", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 618, + "end": 624, + "loc": { + "start": { + "line": 33, + "column": 21 + }, + "end": { + "line": 33, + "column": 27 + } + }, + "name": "userID" + } + ], + "body": { + "type": "BlockStatement", + "start": 626, + "end": 1044, + "loc": { + "start": { + "line": 33, + "column": 29 + }, + "end": { + "line": 46, + "column": 1 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 632, + "end": 1042, + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 45, + "column": 5 + } + }, + "argument": { + "type": "ArrowFunctionExpression", + "start": 639, + "end": 1042, + "loc": { + "start": { + "line": 34, + "column": 11 + }, + "end": { + "line": 45, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 640, + "end": 648, + "loc": { + "start": { + "line": 34, + "column": 12 + }, + "end": { + "line": 34, + "column": 20 + } + }, + "name": "dispatch" + }, + { + "type": "Identifier", + "start": 650, + "end": 658, + "loc": { + "start": { + "line": 34, + "column": 22 + }, + "end": { + "line": 34, + "column": 30 + } + }, + "name": "getState" + } + ], + "body": { + "type": "BlockStatement", + "start": 663, + "end": 1042, + "loc": { + "start": { + "line": 34, + "column": 35 + }, + "end": { + "line": 45, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 673, + "end": 703, + "loc": { + "start": { + "line": 35, + "column": 8 + }, + "end": { + "line": 35, + "column": 38 + } + }, + "expression": { + "type": "CallExpression", + "start": 673, + "end": 703, + "loc": { + "start": { + "line": 35, + "column": 8 + }, + "end": { + "line": 35, + "column": 38 + } + }, + "callee": { + "type": "Identifier", + "start": 673, + "end": 681, + "loc": { + "start": { + "line": 35, + "column": 8 + }, + "end": { + "line": 35, + "column": 16 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 682, + "end": 702, + "loc": { + "start": { + "line": 35, + "column": 17 + }, + "end": { + "line": 35, + "column": 37 + } + }, + "callee": { + "type": "Identifier", + "start": 682, + "end": 694, + "loc": { + "start": { + "line": 35, + "column": 17 + }, + "end": { + "line": 35, + "column": 29 + } + }, + "name": "_loadRequest" + }, + "arguments": [ + { + "type": "Identifier", + "start": 695, + "end": 701, + "loc": { + "start": { + "line": 35, + "column": 30 + }, + "end": { + "line": 35, + "column": 36 + } + }, + "name": "userID" + } + ] + } + ] + } + }, + { + "type": "VariableDeclaration", + "start": 712, + "end": 740, + "loc": { + "start": { + "line": 36, + "column": 8 + }, + "end": { + "line": 36, + "column": 36 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 718, + "end": 740, + "loc": { + "start": { + "line": 36, + "column": 14 + }, + "end": { + "line": 36, + "column": 36 + } + }, + "id": { + "type": "Identifier", + "start": 718, + "end": 722, + "loc": { + "start": { + "line": 36, + "column": 14 + }, + "end": { + "line": 36, + "column": 18 + } + }, + "name": "user" + }, + "init": { + "type": "MemberExpression", + "start": 725, + "end": 740, + "loc": { + "start": { + "line": 36, + "column": 21 + }, + "end": { + "line": 36, + "column": 36 + } + }, + "object": { + "type": "CallExpression", + "start": 725, + "end": 735, + "loc": { + "start": { + "line": 36, + "column": 21 + }, + "end": { + "line": 36, + "column": 31 + } + }, + "callee": { + "type": "Identifier", + "start": 725, + "end": 733, + "loc": { + "start": { + "line": 36, + "column": 21 + }, + "end": { + "line": 36, + "column": 29 + } + }, + "name": "getState" + }, + "arguments": [] + }, + "property": { + "type": "Identifier", + "start": 736, + "end": 740, + "loc": { + "start": { + "line": 36, + "column": 32 + }, + "end": { + "line": 36, + "column": 36 + } + }, + "name": "User" + }, + "computed": false + } + } + ], + "kind": "const" + }, + { + "type": "ExpressionStatement", + "start": 749, + "end": 1036, + "loc": { + "start": { + "line": 37, + "column": 8 + }, + "end": { + "line": 44, + "column": 10 + } + }, + "expression": { + "type": "CallExpression", + "start": 749, + "end": 1036, + "loc": { + "start": { + "line": 37, + "column": 8 + }, + "end": { + "line": 44, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 749, + "end": 962, + "loc": { + "start": { + "line": 37, + "column": 8 + }, + "end": { + "line": 42, + "column": 13 + } + }, + "object": { + "type": "CallExpression", + "start": 749, + "end": 948, + "loc": { + "start": { + "line": 37, + "column": 8 + }, + "end": { + "line": 41, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 749, + "end": 758, + "loc": { + "start": { + "line": 37, + "column": 8 + }, + "end": { + "line": 37, + "column": 17 + } + }, + "object": { + "type": "Identifier", + "start": 749, + "end": 754, + "loc": { + "start": { + "line": 37, + "column": 8 + }, + "end": { + "line": 37, + "column": 13 + } + }, + "name": "axios" + }, + "property": { + "type": "Identifier", + "start": 755, + "end": 758, + "loc": { + "start": { + "line": 37, + "column": 14 + }, + "end": { + "line": 37, + "column": 17 + } + }, + "name": "get" + }, + "computed": false + }, + "arguments": [ + { + "type": "TemplateLiteral", + "start": 759, + "end": 825, + "loc": { + "start": { + "line": 37, + "column": 18 + }, + "end": { + "line": 37, + "column": 84 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 762, + "end": 780, + "loc": { + "start": { + "line": 37, + "column": 21 + }, + "end": { + "line": 37, + "column": 39 + } + }, + "object": { + "type": "MemberExpression", + "start": 762, + "end": 772, + "loc": { + "start": { + "line": 37, + "column": 21 + }, + "end": { + "line": 37, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 762, + "end": 768, + "loc": { + "start": { + "line": 37, + "column": 21 + }, + "end": { + "line": 37, + "column": 27 + } + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 769, + "end": 772, + "loc": { + "start": { + "line": 37, + "column": 28 + }, + "end": { + "line": 37, + "column": 31 + } + }, + "name": "api" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 773, + "end": 780, + "loc": { + "start": { + "line": 37, + "column": 32 + }, + "end": { + "line": 37, + "column": 39 + } + }, + "name": "baseUrl" + }, + "computed": false + }, + { + "type": "LogicalExpression", + "start": 806, + "end": 823, + "loc": { + "start": { + "line": 37, + "column": 65 + }, + "end": { + "line": 37, + "column": 82 + } + }, + "left": { + "type": "Identifier", + "start": 806, + "end": 812, + "loc": { + "start": { + "line": 37, + "column": 65 + }, + "end": { + "line": 37, + "column": 71 + } + }, + "name": "userID" + }, + "operator": "||", + "right": { + "type": "MemberExpression", + "start": 816, + "end": 823, + "loc": { + "start": { + "line": 37, + "column": 75 + }, + "end": { + "line": 37, + "column": 82 + } + }, + "object": { + "type": "Identifier", + "start": 816, + "end": 820, + "loc": { + "start": { + "line": 37, + "column": 75 + }, + "end": { + "line": 37, + "column": 79 + } + }, + "name": "user" + }, + "property": { + "type": "Identifier", + "start": 821, + "end": 823, + "loc": { + "start": { + "line": 37, + "column": 80 + }, + "end": { + "line": 37, + "column": 82 + } + }, + "name": "id" + }, + "computed": false + } + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 760, + "end": 760, + "loc": { + "start": { + "line": 37, + "column": 19 + }, + "end": { + "line": 37, + "column": 19 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 781, + "end": 804, + "loc": { + "start": { + "line": 37, + "column": 40 + }, + "end": { + "line": 37, + "column": 63 + } + }, + "value": { + "raw": "/contributions?user_id=", + "cooked": "/contributions?user_id=" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 824, + "end": 824, + "loc": { + "start": { + "line": 37, + "column": 83 + }, + "end": { + "line": 37, + "column": 83 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + }, + { + "type": "ObjectExpression", + "start": 827, + "end": 947, + "loc": { + "start": { + "line": 37, + "column": 86 + }, + "end": { + "line": 41, + "column": 9 + } + }, + "properties": [ + { + "type": "Property", + "start": 841, + "end": 936, + "loc": { + "start": { + "line": 38, + "column": 12 + }, + "end": { + "line": 40, + "column": 13 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 841, + "end": 848, + "loc": { + "start": { + "line": 38, + "column": 12 + }, + "end": { + "line": 38, + "column": 19 + } + }, + "name": "headers" + }, + "value": { + "type": "ObjectExpression", + "start": 850, + "end": 936, + "loc": { + "start": { + "line": 38, + "column": 21 + }, + "end": { + "line": 40, + "column": 13 + } + }, + "properties": [ + { + "type": "Property", + "start": 868, + "end": 922, + "loc": { + "start": { + "line": 39, + "column": 16 + }, + "end": { + "line": 39, + "column": 70 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 868, + "end": 881, + "loc": { + "start": { + "line": 39, + "column": 16 + }, + "end": { + "line": 39, + "column": 29 + } + }, + "name": "Authorization" + }, + "value": { + "type": "TemplateLiteral", + "start": 883, + "end": 922, + "loc": { + "start": { + "line": 39, + "column": 31 + }, + "end": { + "line": 39, + "column": 70 + } + }, + "expressions": [ + { + "type": "CallExpression", + "start": 893, + "end": 920, + "loc": { + "start": { + "line": 39, + "column": 41 + }, + "end": { + "line": 39, + "column": 68 + } + }, + "callee": { + "type": "MemberExpression", + "start": 893, + "end": 913, + "loc": { + "start": { + "line": 39, + "column": 41 + }, + "end": { + "line": 39, + "column": 61 + } + }, + "object": { + "type": "Identifier", + "start": 893, + "end": 905, + "loc": { + "start": { + "line": 39, + "column": 41 + }, + "end": { + "line": 39, + "column": 53 + } + }, + "name": "localStorage" + }, + "property": { + "type": "Identifier", + "start": 906, + "end": 913, + "loc": { + "start": { + "line": 39, + "column": 54 + }, + "end": { + "line": 39, + "column": 61 + } + }, + "name": "getItem" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 914, + "end": 919, + "loc": { + "start": { + "line": 39, + "column": 62 + }, + "end": { + "line": 39, + "column": 67 + } + }, + "value": "jwt", + "rawValue": "jwt", + "raw": "'jwt'" + } + ] + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 884, + "end": 891, + "loc": { + "start": { + "line": 39, + "column": 32 + }, + "end": { + "line": 39, + "column": 39 + } + }, + "value": { + "raw": "Bearer ", + "cooked": "Bearer " + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 921, + "end": 921, + "loc": { + "start": { + "line": 39, + "column": 69 + }, + "end": { + "line": 39, + "column": 69 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + }, + "kind": "init" + } + ] + }, + "kind": "init" + } + ] + } + ] + }, + "property": { + "type": "Identifier", + "start": 958, + "end": 962, + "loc": { + "start": { + "line": 42, + "column": 9 + }, + "end": { + "line": 42, + "column": 13 + } + }, + "name": "then" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 963, + "end": 1035, + "loc": { + "start": { + "line": 42, + "column": 14 + }, + "end": { + "line": 44, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 963, + "end": 966, + "loc": { + "start": { + "line": 42, + "column": 14 + }, + "end": { + "line": 42, + "column": 17 + } + }, + "name": "res" + } + ], + "body": { + "type": "BlockStatement", + "start": 970, + "end": 1035, + "loc": { + "start": { + "line": 42, + "column": 21 + }, + "end": { + "line": 44, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 984, + "end": 1025, + "loc": { + "start": { + "line": 43, + "column": 12 + }, + "end": { + "line": 43, + "column": 53 + } + }, + "expression": { + "type": "CallExpression", + "start": 984, + "end": 1025, + "loc": { + "start": { + "line": 43, + "column": 12 + }, + "end": { + "line": 43, + "column": 53 + } + }, + "callee": { + "type": "Identifier", + "start": 984, + "end": 992, + "loc": { + "start": { + "line": 43, + "column": 12 + }, + "end": { + "line": 43, + "column": 20 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 993, + "end": 1024, + "loc": { + "start": { + "line": 43, + "column": 21 + }, + "end": { + "line": 43, + "column": 52 + } + }, + "callee": { + "type": "Identifier", + "start": 993, + "end": 1006, + "loc": { + "start": { + "line": 43, + "column": 21 + }, + "end": { + "line": 43, + "column": 34 + } + }, + "name": "_loadResponse" + }, + "arguments": [ + { + "type": "Identifier", + "start": 1007, + "end": 1013, + "loc": { + "start": { + "line": 43, + "column": 35 + }, + "end": { + "line": 43, + "column": 41 + } + }, + "name": "userID" + }, + { + "type": "MemberExpression", + "start": 1015, + "end": 1023, + "loc": { + "start": { + "line": 43, + "column": 43 + }, + "end": { + "line": 43, + "column": 51 + } + }, + "object": { + "type": "Identifier", + "start": 1015, + "end": 1018, + "loc": { + "start": { + "line": 43, + "column": 43 + }, + "end": { + "line": 43, + "column": 46 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 1019, + "end": 1023, + "loc": { + "start": { + "line": 43, + "column": 47 + }, + "end": { + "line": 43, + "column": 51 + } + }, + "name": "data" + }, + "computed": false + } + ] + } + ] + } + } + ] + } + } + ] + } + } + ] + } + } + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * load\n * Get contributions from API by user id\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param userID user id\n * @returns {Function}\n ", + "start": 417, + "end": 596, + "loc": { + "start": { + "line": 25, + "column": 0 + }, + "end": { + "line": 32, + "column": 3 + } + }, + "range": [ + 417, + 596 + ] + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * load\n * Get contributions from API by user id\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param userID user id\n * @returns {Function}\n ", + "start": 417, + "end": 596, + "loc": { + "start": { + "line": 25, + "column": 0 + }, + "end": { + "line": 32, + "column": 3 + } + }, + "range": [ + 417, + 596 + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/actions/Explore.js.json b/app/docs/ast/source/actions/Explore.js.json new file mode 100644 index 0000000..b7c6992 --- /dev/null +++ b/app/docs/ast/source/actions/Explore.js.json @@ -0,0 +1,1951 @@ +{ + "type": "Program", + "start": 0, + "end": 901, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 44, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 30, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 30 + } + }, + "specifiers": [ + { + "type": "ImportNamespaceSpecifier", + "start": 7, + "end": 17, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 17 + } + }, + "local": { + "type": "Identifier", + "start": 12, + "end": 17, + "loc": { + "start": { + "line": 1, + "column": 12 + }, + "end": { + "line": 1, + "column": 17 + } + }, + "name": "axios" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 23, + "end": 30, + "loc": { + "start": { + "line": 1, + "column": 23 + }, + "end": { + "line": 1, + "column": 30 + } + }, + "value": "axios", + "rawValue": "axios", + "raw": "'axios'" + } + }, + { + "type": "ImportDeclaration", + "start": 31, + "end": 58, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 27 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 38, + "end": 44, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "local": { + "type": "Identifier", + "start": 38, + "end": 44, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "name": "config" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 50, + "end": 58, + "loc": { + "start": { + "line": 2, + "column": 19 + }, + "end": { + "line": 2, + "column": 27 + } + }, + "value": "config", + "rawValue": "config", + "raw": "'config'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * LOAD\n * @type {string}\n ", + "start": 60, + "end": 93, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + }, + "range": [ + 60, + 93 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 94, + "end": 128, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 34 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 101, + "end": 128, + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 34 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 107, + "end": 128, + "loc": { + "start": { + "line": 8, + "column": 13 + }, + "end": { + "line": 8, + "column": 34 + } + }, + "id": { + "type": "Identifier", + "start": 107, + "end": 111, + "loc": { + "start": { + "line": 8, + "column": 13 + }, + "end": { + "line": 8, + "column": 17 + } + }, + "name": "LOAD", + "leadingComments": null + }, + "init": { + "type": "Literal", + "start": 114, + "end": 128, + "loc": { + "start": { + "line": 8, + "column": 20 + }, + "end": { + "line": 8, + "column": 34 + } + }, + "value": "EXPLORE_LOAD", + "rawValue": "EXPLORE_LOAD", + "raw": "'EXPLORE_LOAD'", + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * LOAD\n * @type {string}\n ", + "start": 60, + "end": 93, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + }, + "range": [ + 60, + 93 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _loadRequest\n * @private\n ", + "start": 130, + "end": 165, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + }, + "range": [ + 130, + 165 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * LOAD\n * @type {string}\n ", + "start": 60, + "end": 93, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + }, + "range": [ + 60, + 93 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _loadRequest\n * @private\n ", + "start": 130, + "end": 165, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + }, + "range": [ + 130, + 165 + ] + } + ] + }, + { + "type": "VariableDeclaration", + "start": 166, + "end": 210, + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 14, + "column": 44 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 172, + "end": 210, + "loc": { + "start": { + "line": 14, + "column": 6 + }, + "end": { + "line": 14, + "column": 44 + } + }, + "id": { + "type": "Identifier", + "start": 172, + "end": 184, + "loc": { + "start": { + "line": 14, + "column": 6 + }, + "end": { + "line": 14, + "column": 18 + } + }, + "name": "_loadRequest", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 187, + "end": 210, + "loc": { + "start": { + "line": 14, + "column": 21 + }, + "end": { + "line": 14, + "column": 44 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [], + "body": { + "type": "ObjectExpression", + "start": 194, + "end": 209, + "loc": { + "start": { + "line": 14, + "column": 28 + }, + "end": { + "line": 14, + "column": 43 + } + }, + "properties": [ + { + "type": "Property", + "start": 196, + "end": 206, + "loc": { + "start": { + "line": 14, + "column": 30 + }, + "end": { + "line": 14, + "column": 40 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 196, + "end": 200, + "loc": { + "start": { + "line": 14, + "column": 30 + }, + "end": { + "line": 14, + "column": 34 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 202, + "end": 206, + "loc": { + "start": { + "line": 14, + "column": 36 + }, + "end": { + "line": 14, + "column": 40 + } + }, + "name": "LOAD" + }, + "kind": "init" + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _loadRequest\n * @private\n ", + "start": 130, + "end": 165, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + }, + "range": [ + 130, + 165 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _loadResponse\n * @param response\n * @private\n ", + "start": 212, + "end": 267, + "loc": { + "start": { + "line": 16, + "column": 0 + }, + "end": { + "line": 20, + "column": 3 + } + }, + "range": [ + 212, + 267 + ] + } + ] + }, + { + "type": "VariableDeclaration", + "start": 268, + "end": 329, + "loc": { + "start": { + "line": 21, + "column": 0 + }, + "end": { + "line": 21, + "column": 61 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 274, + "end": 329, + "loc": { + "start": { + "line": 21, + "column": 6 + }, + "end": { + "line": 21, + "column": 61 + } + }, + "id": { + "type": "Identifier", + "start": 274, + "end": 287, + "loc": { + "start": { + "line": 21, + "column": 6 + }, + "end": { + "line": 21, + "column": 19 + } + }, + "name": "_loadResponse", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 290, + "end": 329, + "loc": { + "start": { + "line": 21, + "column": 22 + }, + "end": { + "line": 21, + "column": 61 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 291, + "end": 299, + "loc": { + "start": { + "line": 21, + "column": 23 + }, + "end": { + "line": 21, + "column": 31 + } + }, + "name": "response" + } + ], + "body": { + "type": "ObjectExpression", + "start": 305, + "end": 328, + "loc": { + "start": { + "line": 21, + "column": 37 + }, + "end": { + "line": 21, + "column": 60 + } + }, + "properties": [ + { + "type": "Property", + "start": 307, + "end": 317, + "loc": { + "start": { + "line": 21, + "column": 39 + }, + "end": { + "line": 21, + "column": 49 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 307, + "end": 311, + "loc": { + "start": { + "line": 21, + "column": 39 + }, + "end": { + "line": 21, + "column": 43 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 313, + "end": 317, + "loc": { + "start": { + "line": 21, + "column": 45 + }, + "end": { + "line": 21, + "column": 49 + } + }, + "name": "LOAD" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 319, + "end": 327, + "loc": { + "start": { + "line": 21, + "column": 51 + }, + "end": { + "line": 21, + "column": 59 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 319, + "end": 327, + "loc": { + "start": { + "line": 21, + "column": 51 + }, + "end": { + "line": 21, + "column": 59 + } + }, + "name": "response" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 319, + "end": 327, + "loc": { + "start": { + "line": 21, + "column": 51 + }, + "end": { + "line": 21, + "column": 59 + } + }, + "name": "response" + } + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _loadResponse\n * @param response\n * @private\n ", + "start": 212, + "end": 267, + "loc": { + "start": { + "line": 16, + "column": 0 + }, + "end": { + "line": 20, + "column": 3 + } + }, + "range": [ + 212, + 267 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * load\n * Gets explore data from API for user\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @returns {Function}\n ", + "start": 331, + "end": 483, + "loc": { + "start": { + "line": 23, + "column": 0 + }, + "end": { + "line": 29, + "column": 3 + } + }, + "range": [ + 331, + 483 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 484, + "end": 900, + "loc": { + "start": { + "line": 30, + "column": 0 + }, + "end": { + "line": 43, + "column": 1 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 491, + "end": 900, + "loc": { + "start": { + "line": 30, + "column": 7 + }, + "end": { + "line": 43, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 500, + "end": 504, + "loc": { + "start": { + "line": 30, + "column": 16 + }, + "end": { + "line": 30, + "column": 20 + } + }, + "name": "load", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 507, + "end": 900, + "loc": { + "start": { + "line": 30, + "column": 23 + }, + "end": { + "line": 43, + "column": 1 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 513, + "end": 898, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 42, + "column": 5 + } + }, + "argument": { + "type": "ArrowFunctionExpression", + "start": 520, + "end": 898, + "loc": { + "start": { + "line": 31, + "column": 11 + }, + "end": { + "line": 42, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 521, + "end": 529, + "loc": { + "start": { + "line": 31, + "column": 12 + }, + "end": { + "line": 31, + "column": 20 + } + }, + "name": "dispatch" + }, + { + "type": "Identifier", + "start": 531, + "end": 539, + "loc": { + "start": { + "line": 31, + "column": 22 + }, + "end": { + "line": 31, + "column": 30 + } + }, + "name": "getState" + } + ], + "body": { + "type": "BlockStatement", + "start": 544, + "end": 898, + "loc": { + "start": { + "line": 31, + "column": 35 + }, + "end": { + "line": 42, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 554, + "end": 578, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 32 + } + }, + "expression": { + "type": "CallExpression", + "start": 554, + "end": 578, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 32 + } + }, + "callee": { + "type": "Identifier", + "start": 554, + "end": 562, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 16 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 563, + "end": 577, + "loc": { + "start": { + "line": 32, + "column": 17 + }, + "end": { + "line": 32, + "column": 31 + } + }, + "callee": { + "type": "Identifier", + "start": 563, + "end": 575, + "loc": { + "start": { + "line": 32, + "column": 17 + }, + "end": { + "line": 32, + "column": 29 + } + }, + "name": "_loadRequest" + }, + "arguments": [] + } + ] + } + }, + { + "type": "VariableDeclaration", + "start": 587, + "end": 615, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 36 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 593, + "end": 615, + "loc": { + "start": { + "line": 33, + "column": 14 + }, + "end": { + "line": 33, + "column": 36 + } + }, + "id": { + "type": "Identifier", + "start": 593, + "end": 597, + "loc": { + "start": { + "line": 33, + "column": 14 + }, + "end": { + "line": 33, + "column": 18 + } + }, + "name": "user" + }, + "init": { + "type": "MemberExpression", + "start": 600, + "end": 615, + "loc": { + "start": { + "line": 33, + "column": 21 + }, + "end": { + "line": 33, + "column": 36 + } + }, + "object": { + "type": "CallExpression", + "start": 600, + "end": 610, + "loc": { + "start": { + "line": 33, + "column": 21 + }, + "end": { + "line": 33, + "column": 31 + } + }, + "callee": { + "type": "Identifier", + "start": 600, + "end": 608, + "loc": { + "start": { + "line": 33, + "column": 21 + }, + "end": { + "line": 33, + "column": 29 + } + }, + "name": "getState" + }, + "arguments": [] + }, + "property": { + "type": "Identifier", + "start": 611, + "end": 615, + "loc": { + "start": { + "line": 33, + "column": 32 + }, + "end": { + "line": 33, + "column": 36 + } + }, + "name": "User" + }, + "computed": false + } + } + ], + "kind": "const" + }, + { + "type": "ExpressionStatement", + "start": 624, + "end": 892, + "loc": { + "start": { + "line": 34, + "column": 8 + }, + "end": { + "line": 41, + "column": 10 + } + }, + "expression": { + "type": "CallExpression", + "start": 624, + "end": 892, + "loc": { + "start": { + "line": 34, + "column": 8 + }, + "end": { + "line": 41, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 624, + "end": 821, + "loc": { + "start": { + "line": 34, + "column": 8 + }, + "end": { + "line": 39, + "column": 13 + } + }, + "object": { + "type": "CallExpression", + "start": 624, + "end": 807, + "loc": { + "start": { + "line": 34, + "column": 8 + }, + "end": { + "line": 38, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 624, + "end": 633, + "loc": { + "start": { + "line": 34, + "column": 8 + }, + "end": { + "line": 34, + "column": 17 + } + }, + "object": { + "type": "Identifier", + "start": 624, + "end": 629, + "loc": { + "start": { + "line": 34, + "column": 8 + }, + "end": { + "line": 34, + "column": 13 + } + }, + "name": "axios" + }, + "property": { + "type": "Identifier", + "start": 630, + "end": 633, + "loc": { + "start": { + "line": 34, + "column": 14 + }, + "end": { + "line": 34, + "column": 17 + } + }, + "name": "get" + }, + "computed": false + }, + "arguments": [ + { + "type": "TemplateLiteral", + "start": 634, + "end": 684, + "loc": { + "start": { + "line": 34, + "column": 18 + }, + "end": { + "line": 34, + "column": 68 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 637, + "end": 655, + "loc": { + "start": { + "line": 34, + "column": 21 + }, + "end": { + "line": 34, + "column": 39 + } + }, + "object": { + "type": "MemberExpression", + "start": 637, + "end": 647, + "loc": { + "start": { + "line": 34, + "column": 21 + }, + "end": { + "line": 34, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 637, + "end": 643, + "loc": { + "start": { + "line": 34, + "column": 21 + }, + "end": { + "line": 34, + "column": 27 + } + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 644, + "end": 647, + "loc": { + "start": { + "line": 34, + "column": 28 + }, + "end": { + "line": 34, + "column": 31 + } + }, + "name": "api" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 648, + "end": 655, + "loc": { + "start": { + "line": 34, + "column": 32 + }, + "end": { + "line": 34, + "column": 39 + } + }, + "name": "baseUrl" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 675, + "end": 682, + "loc": { + "start": { + "line": 34, + "column": 59 + }, + "end": { + "line": 34, + "column": 66 + } + }, + "object": { + "type": "Identifier", + "start": 675, + "end": 679, + "loc": { + "start": { + "line": 34, + "column": 59 + }, + "end": { + "line": 34, + "column": 63 + } + }, + "name": "user" + }, + "property": { + "type": "Identifier", + "start": 680, + "end": 682, + "loc": { + "start": { + "line": 34, + "column": 64 + }, + "end": { + "line": 34, + "column": 66 + } + }, + "name": "id" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 635, + "end": 635, + "loc": { + "start": { + "line": 34, + "column": 19 + }, + "end": { + "line": 34, + "column": 19 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 656, + "end": 673, + "loc": { + "start": { + "line": 34, + "column": 40 + }, + "end": { + "line": 34, + "column": 57 + } + }, + "value": { + "raw": "/explore?user_id=", + "cooked": "/explore?user_id=" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 683, + "end": 683, + "loc": { + "start": { + "line": 34, + "column": 67 + }, + "end": { + "line": 34, + "column": 67 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + }, + { + "type": "ObjectExpression", + "start": 686, + "end": 806, + "loc": { + "start": { + "line": 34, + "column": 70 + }, + "end": { + "line": 38, + "column": 9 + } + }, + "properties": [ + { + "type": "Property", + "start": 700, + "end": 795, + "loc": { + "start": { + "line": 35, + "column": 12 + }, + "end": { + "line": 37, + "column": 13 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 700, + "end": 707, + "loc": { + "start": { + "line": 35, + "column": 12 + }, + "end": { + "line": 35, + "column": 19 + } + }, + "name": "headers" + }, + "value": { + "type": "ObjectExpression", + "start": 709, + "end": 795, + "loc": { + "start": { + "line": 35, + "column": 21 + }, + "end": { + "line": 37, + "column": 13 + } + }, + "properties": [ + { + "type": "Property", + "start": 727, + "end": 781, + "loc": { + "start": { + "line": 36, + "column": 16 + }, + "end": { + "line": 36, + "column": 70 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 727, + "end": 740, + "loc": { + "start": { + "line": 36, + "column": 16 + }, + "end": { + "line": 36, + "column": 29 + } + }, + "name": "Authorization" + }, + "value": { + "type": "TemplateLiteral", + "start": 742, + "end": 781, + "loc": { + "start": { + "line": 36, + "column": 31 + }, + "end": { + "line": 36, + "column": 70 + } + }, + "expressions": [ + { + "type": "CallExpression", + "start": 752, + "end": 779, + "loc": { + "start": { + "line": 36, + "column": 41 + }, + "end": { + "line": 36, + "column": 68 + } + }, + "callee": { + "type": "MemberExpression", + "start": 752, + "end": 772, + "loc": { + "start": { + "line": 36, + "column": 41 + }, + "end": { + "line": 36, + "column": 61 + } + }, + "object": { + "type": "Identifier", + "start": 752, + "end": 764, + "loc": { + "start": { + "line": 36, + "column": 41 + }, + "end": { + "line": 36, + "column": 53 + } + }, + "name": "localStorage" + }, + "property": { + "type": "Identifier", + "start": 765, + "end": 772, + "loc": { + "start": { + "line": 36, + "column": 54 + }, + "end": { + "line": 36, + "column": 61 + } + }, + "name": "getItem" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 773, + "end": 778, + "loc": { + "start": { + "line": 36, + "column": 62 + }, + "end": { + "line": 36, + "column": 67 + } + }, + "value": "jwt", + "rawValue": "jwt", + "raw": "'jwt'" + } + ] + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 743, + "end": 750, + "loc": { + "start": { + "line": 36, + "column": 32 + }, + "end": { + "line": 36, + "column": 39 + } + }, + "value": { + "raw": "Bearer ", + "cooked": "Bearer " + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 780, + "end": 780, + "loc": { + "start": { + "line": 36, + "column": 69 + }, + "end": { + "line": 36, + "column": 69 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + }, + "kind": "init" + } + ] + }, + "kind": "init" + } + ] + } + ] + }, + "property": { + "type": "Identifier", + "start": 817, + "end": 821, + "loc": { + "start": { + "line": 39, + "column": 9 + }, + "end": { + "line": 39, + "column": 13 + } + }, + "name": "then" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 822, + "end": 891, + "loc": { + "start": { + "line": 39, + "column": 14 + }, + "end": { + "line": 41, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 822, + "end": 825, + "loc": { + "start": { + "line": 39, + "column": 14 + }, + "end": { + "line": 39, + "column": 17 + } + }, + "name": "res" + } + ], + "body": { + "type": "BlockStatement", + "start": 829, + "end": 891, + "loc": { + "start": { + "line": 39, + "column": 21 + }, + "end": { + "line": 41, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 843, + "end": 881, + "loc": { + "start": { + "line": 40, + "column": 12 + }, + "end": { + "line": 40, + "column": 50 + } + }, + "expression": { + "type": "CallExpression", + "start": 843, + "end": 881, + "loc": { + "start": { + "line": 40, + "column": 12 + }, + "end": { + "line": 40, + "column": 50 + } + }, + "callee": { + "type": "Identifier", + "start": 843, + "end": 851, + "loc": { + "start": { + "line": 40, + "column": 12 + }, + "end": { + "line": 40, + "column": 20 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 852, + "end": 880, + "loc": { + "start": { + "line": 40, + "column": 21 + }, + "end": { + "line": 40, + "column": 49 + } + }, + "callee": { + "type": "Identifier", + "start": 852, + "end": 865, + "loc": { + "start": { + "line": 40, + "column": 21 + }, + "end": { + "line": 40, + "column": 34 + } + }, + "name": "_loadResponse" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 866, + "end": 879, + "loc": { + "start": { + "line": 40, + "column": 35 + }, + "end": { + "line": 40, + "column": 48 + } + }, + "object": { + "type": "Identifier", + "start": 866, + "end": 874, + "loc": { + "start": { + "line": 40, + "column": 35 + }, + "end": { + "line": 40, + "column": 43 + } + }, + "name": "response" + }, + "property": { + "type": "Identifier", + "start": 875, + "end": 879, + "loc": { + "start": { + "line": 40, + "column": 44 + }, + "end": { + "line": 40, + "column": 48 + } + }, + "name": "data" + }, + "computed": false + } + ] + } + ] + } + } + ] + } + } + ] + } + } + ] + } + } + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * load\n * Gets explore data from API for user\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @returns {Function}\n ", + "start": 331, + "end": 483, + "loc": { + "start": { + "line": 23, + "column": 0 + }, + "end": { + "line": 29, + "column": 3 + } + }, + "range": [ + 331, + 483 + ] + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * load\n * Gets explore data from API for user\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @returns {Function}\n ", + "start": 331, + "end": 483, + "loc": { + "start": { + "line": 23, + "column": 0 + }, + "end": { + "line": 29, + "column": 3 + } + }, + "range": [ + 331, + 483 + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/actions/Header.js.json b/app/docs/ast/source/actions/Header.js.json new file mode 100644 index 0000000..b41cf23 --- /dev/null +++ b/app/docs/ast/source/actions/Header.js.json @@ -0,0 +1,1435 @@ +{ + "type": "Program", + "start": 0, + "end": 747, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 55, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ExportNamedDeclaration", + "start": 34, + "end": 67, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 33 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 41, + "end": 67, + "loc": { + "start": { + "line": 5, + "column": 7 + }, + "end": { + "line": 5, + "column": 33 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 47, + "end": 67, + "loc": { + "start": { + "line": 5, + "column": 13 + }, + "end": { + "line": 5, + "column": 33 + } + }, + "id": { + "type": "Identifier", + "start": 47, + "end": 51, + "loc": { + "start": { + "line": 5, + "column": 13 + }, + "end": { + "line": 5, + "column": 17 + } + }, + "name": "LEFT", + "leadingComments": null + }, + "init": { + "type": "Literal", + "start": 54, + "end": 67, + "loc": { + "start": { + "line": 5, + "column": 20 + }, + "end": { + "line": 5, + "column": 33 + } + }, + "value": "HEADER_LEFT", + "rawValue": "HEADER_LEFT", + "raw": "'HEADER_LEFT'", + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * LEFT\n * @type {string}\n ", + "start": 0, + "end": 33, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 4, + "column": 3 + } + }, + "range": [ + 0, + 33 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * left\n * @param component\n * @returns {{type: string, component: *}}\n ", + "start": 69, + "end": 147, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + }, + "range": [ + 69, + 147 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * LEFT\n * @type {string}\n ", + "start": 0, + "end": 33, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 4, + "column": 3 + } + }, + "range": [ + 0, + 33 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * left\n * @param component\n * @returns {{type: string, component: *}}\n ", + "start": 69, + "end": 147, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + }, + "range": [ + 69, + 147 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 148, + "end": 241, + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 17, + "column": 1 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 155, + "end": 241, + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 17, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 164, + "end": 168, + "loc": { + "start": { + "line": 12, + "column": 16 + }, + "end": { + "line": 12, + "column": 20 + } + }, + "name": "left", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 169, + "end": 178, + "loc": { + "start": { + "line": 12, + "column": 21 + }, + "end": { + "line": 12, + "column": 30 + } + }, + "name": "component" + } + ], + "body": { + "type": "BlockStatement", + "start": 180, + "end": 241, + "loc": { + "start": { + "line": 12, + "column": 32 + }, + "end": { + "line": 17, + "column": 1 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 186, + "end": 239, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 16, + "column": 5 + } + }, + "argument": { + "type": "ObjectExpression", + "start": 193, + "end": 239, + "loc": { + "start": { + "line": 13, + "column": 11 + }, + "end": { + "line": 16, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 203, + "end": 213, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 18 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 203, + "end": 207, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 12 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 209, + "end": 213, + "loc": { + "start": { + "line": 14, + "column": 14 + }, + "end": { + "line": 14, + "column": 18 + } + }, + "name": "LEFT" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 223, + "end": 232, + "loc": { + "start": { + "line": 15, + "column": 8 + }, + "end": { + "line": 15, + "column": 17 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 223, + "end": 232, + "loc": { + "start": { + "line": 15, + "column": 8 + }, + "end": { + "line": 15, + "column": 17 + } + }, + "name": "component" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 223, + "end": 232, + "loc": { + "start": { + "line": 15, + "column": 8 + }, + "end": { + "line": 15, + "column": 17 + } + }, + "name": "component" + } + } + ] + } + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * left\n * @param component\n * @returns {{type: string, component: *}}\n ", + "start": 69, + "end": 147, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + }, + "range": [ + 69, + 147 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * MIDDLE\n * @type {string}\n ", + "start": 243, + "end": 278, + "loc": { + "start": { + "line": 19, + "column": 0 + }, + "end": { + "line": 22, + "column": 3 + } + }, + "range": [ + 243, + 278 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * left\n * @param component\n * @returns {{type: string, component: *}}\n ", + "start": 69, + "end": 147, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + }, + "range": [ + 69, + 147 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * MIDDLE\n * @type {string}\n ", + "start": 243, + "end": 278, + "loc": { + "start": { + "line": 19, + "column": 0 + }, + "end": { + "line": 22, + "column": 3 + } + }, + "range": [ + 243, + 278 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 279, + "end": 316, + "loc": { + "start": { + "line": 23, + "column": 0 + }, + "end": { + "line": 23, + "column": 37 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 286, + "end": 316, + "loc": { + "start": { + "line": 23, + "column": 7 + }, + "end": { + "line": 23, + "column": 37 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 292, + "end": 316, + "loc": { + "start": { + "line": 23, + "column": 13 + }, + "end": { + "line": 23, + "column": 37 + } + }, + "id": { + "type": "Identifier", + "start": 292, + "end": 298, + "loc": { + "start": { + "line": 23, + "column": 13 + }, + "end": { + "line": 23, + "column": 19 + } + }, + "name": "MIDDLE", + "leadingComments": null + }, + "init": { + "type": "Literal", + "start": 301, + "end": 316, + "loc": { + "start": { + "line": 23, + "column": 22 + }, + "end": { + "line": 23, + "column": 37 + } + }, + "value": "HEADER_MIDDLE", + "rawValue": "HEADER_MIDDLE", + "raw": "'HEADER_MIDDLE'", + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * MIDDLE\n * @type {string}\n ", + "start": 243, + "end": 278, + "loc": { + "start": { + "line": 19, + "column": 0 + }, + "end": { + "line": 22, + "column": 3 + } + }, + "range": [ + 243, + 278 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * middle\n * @param component\n * @returns {{type: string, component: *}}\n ", + "start": 319, + "end": 399, + "loc": { + "start": { + "line": 26, + "column": 0 + }, + "end": { + "line": 30, + "column": 3 + } + }, + "range": [ + 319, + 399 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * MIDDLE\n * @type {string}\n ", + "start": 243, + "end": 278, + "loc": { + "start": { + "line": 19, + "column": 0 + }, + "end": { + "line": 22, + "column": 3 + } + }, + "range": [ + 243, + 278 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * middle\n * @param component\n * @returns {{type: string, component: *}}\n ", + "start": 319, + "end": 399, + "loc": { + "start": { + "line": 26, + "column": 0 + }, + "end": { + "line": 30, + "column": 3 + } + }, + "range": [ + 319, + 399 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 400, + "end": 497, + "loc": { + "start": { + "line": 31, + "column": 0 + }, + "end": { + "line": 36, + "column": 1 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 407, + "end": 497, + "loc": { + "start": { + "line": 31, + "column": 7 + }, + "end": { + "line": 36, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 416, + "end": 422, + "loc": { + "start": { + "line": 31, + "column": 16 + }, + "end": { + "line": 31, + "column": 22 + } + }, + "name": "middle", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 423, + "end": 432, + "loc": { + "start": { + "line": 31, + "column": 23 + }, + "end": { + "line": 31, + "column": 32 + } + }, + "name": "component" + } + ], + "body": { + "type": "BlockStatement", + "start": 434, + "end": 497, + "loc": { + "start": { + "line": 31, + "column": 34 + }, + "end": { + "line": 36, + "column": 1 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 440, + "end": 495, + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 35, + "column": 5 + } + }, + "argument": { + "type": "ObjectExpression", + "start": 447, + "end": 495, + "loc": { + "start": { + "line": 32, + "column": 11 + }, + "end": { + "line": 35, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 457, + "end": 469, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 457, + "end": 461, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 12 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 463, + "end": 469, + "loc": { + "start": { + "line": 33, + "column": 14 + }, + "end": { + "line": 33, + "column": 20 + } + }, + "name": "MIDDLE" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 479, + "end": 488, + "loc": { + "start": { + "line": 34, + "column": 8 + }, + "end": { + "line": 34, + "column": 17 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 479, + "end": 488, + "loc": { + "start": { + "line": 34, + "column": 8 + }, + "end": { + "line": 34, + "column": 17 + } + }, + "name": "component" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 479, + "end": 488, + "loc": { + "start": { + "line": 34, + "column": 8 + }, + "end": { + "line": 34, + "column": 17 + } + }, + "name": "component" + } + } + ] + } + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * middle\n * @param component\n * @returns {{type: string, component: *}}\n ", + "start": 319, + "end": 399, + "loc": { + "start": { + "line": 26, + "column": 0 + }, + "end": { + "line": 30, + "column": 3 + } + }, + "range": [ + 319, + 399 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * RIGHT\n * @type {string}\n ", + "start": 499, + "end": 533, + "loc": { + "start": { + "line": 38, + "column": 0 + }, + "end": { + "line": 41, + "column": 3 + } + }, + "range": [ + 499, + 533 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * middle\n * @param component\n * @returns {{type: string, component: *}}\n ", + "start": 319, + "end": 399, + "loc": { + "start": { + "line": 26, + "column": 0 + }, + "end": { + "line": 30, + "column": 3 + } + }, + "range": [ + 319, + 399 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * RIGHT\n * @type {string}\n ", + "start": 499, + "end": 533, + "loc": { + "start": { + "line": 38, + "column": 0 + }, + "end": { + "line": 41, + "column": 3 + } + }, + "range": [ + 499, + 533 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 534, + "end": 569, + "loc": { + "start": { + "line": 42, + "column": 0 + }, + "end": { + "line": 42, + "column": 35 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 541, + "end": 569, + "loc": { + "start": { + "line": 42, + "column": 7 + }, + "end": { + "line": 42, + "column": 35 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 547, + "end": 569, + "loc": { + "start": { + "line": 42, + "column": 13 + }, + "end": { + "line": 42, + "column": 35 + } + }, + "id": { + "type": "Identifier", + "start": 547, + "end": 552, + "loc": { + "start": { + "line": 42, + "column": 13 + }, + "end": { + "line": 42, + "column": 18 + } + }, + "name": "RIGHT", + "leadingComments": null + }, + "init": { + "type": "Literal", + "start": 555, + "end": 569, + "loc": { + "start": { + "line": 42, + "column": 21 + }, + "end": { + "line": 42, + "column": 35 + } + }, + "value": "HEADER_RIGHT", + "rawValue": "HEADER_RIGHT", + "raw": "'HEADER_RIGHT'", + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * RIGHT\n * @type {string}\n ", + "start": 499, + "end": 533, + "loc": { + "start": { + "line": 38, + "column": 0 + }, + "end": { + "line": 41, + "column": 3 + } + }, + "range": [ + 499, + 533 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * right\n * @param component\n * @returns {{type: string, component: *}}\n ", + "start": 571, + "end": 650, + "loc": { + "start": { + "line": 44, + "column": 0 + }, + "end": { + "line": 48, + "column": 3 + } + }, + "range": [ + 571, + 650 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * RIGHT\n * @type {string}\n ", + "start": 499, + "end": 533, + "loc": { + "start": { + "line": 38, + "column": 0 + }, + "end": { + "line": 41, + "column": 3 + } + }, + "range": [ + 499, + 533 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * right\n * @param component\n * @returns {{type: string, component: *}}\n ", + "start": 571, + "end": 650, + "loc": { + "start": { + "line": 44, + "column": 0 + }, + "end": { + "line": 48, + "column": 3 + } + }, + "range": [ + 571, + 650 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 651, + "end": 746, + "loc": { + "start": { + "line": 49, + "column": 0 + }, + "end": { + "line": 54, + "column": 1 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 658, + "end": 746, + "loc": { + "start": { + "line": 49, + "column": 7 + }, + "end": { + "line": 54, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 667, + "end": 672, + "loc": { + "start": { + "line": 49, + "column": 16 + }, + "end": { + "line": 49, + "column": 21 + } + }, + "name": "right", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 673, + "end": 682, + "loc": { + "start": { + "line": 49, + "column": 22 + }, + "end": { + "line": 49, + "column": 31 + } + }, + "name": "component" + } + ], + "body": { + "type": "BlockStatement", + "start": 684, + "end": 746, + "loc": { + "start": { + "line": 49, + "column": 33 + }, + "end": { + "line": 54, + "column": 1 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 690, + "end": 744, + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 53, + "column": 5 + } + }, + "argument": { + "type": "ObjectExpression", + "start": 697, + "end": 744, + "loc": { + "start": { + "line": 50, + "column": 11 + }, + "end": { + "line": 53, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 707, + "end": 718, + "loc": { + "start": { + "line": 51, + "column": 8 + }, + "end": { + "line": 51, + "column": 19 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 707, + "end": 711, + "loc": { + "start": { + "line": 51, + "column": 8 + }, + "end": { + "line": 51, + "column": 12 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 713, + "end": 718, + "loc": { + "start": { + "line": 51, + "column": 14 + }, + "end": { + "line": 51, + "column": 19 + } + }, + "name": "RIGHT" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 728, + "end": 737, + "loc": { + "start": { + "line": 52, + "column": 8 + }, + "end": { + "line": 52, + "column": 17 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 728, + "end": 737, + "loc": { + "start": { + "line": 52, + "column": 8 + }, + "end": { + "line": 52, + "column": 17 + } + }, + "name": "component" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 728, + "end": 737, + "loc": { + "start": { + "line": 52, + "column": 8 + }, + "end": { + "line": 52, + "column": 17 + } + }, + "name": "component" + } + } + ] + } + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * right\n * @param component\n * @returns {{type: string, component: *}}\n ", + "start": 571, + "end": 650, + "loc": { + "start": { + "line": 44, + "column": 0 + }, + "end": { + "line": 48, + "column": 3 + } + }, + "range": [ + 571, + 650 + ] + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * right\n * @param component\n * @returns {{type: string, component: *}}\n ", + "start": 571, + "end": 650, + "loc": { + "start": { + "line": 44, + "column": 0 + }, + "end": { + "line": 48, + "column": 3 + } + }, + "range": [ + 571, + 650 + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/actions/Like.js.json b/app/docs/ast/source/actions/Like.js.json new file mode 100644 index 0000000..100ffa1 --- /dev/null +++ b/app/docs/ast/source/actions/Like.js.json @@ -0,0 +1,6876 @@ +{ + "type": "Program", + "start": 0, + "end": 3228, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 139, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 30, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 30 + } + }, + "specifiers": [ + { + "type": "ImportNamespaceSpecifier", + "start": 7, + "end": 17, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 17 + } + }, + "local": { + "type": "Identifier", + "start": 12, + "end": 17, + "loc": { + "start": { + "line": 1, + "column": 12 + }, + "end": { + "line": 1, + "column": 17 + } + }, + "name": "axios" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 23, + "end": 30, + "loc": { + "start": { + "line": 1, + "column": 23 + }, + "end": { + "line": 1, + "column": 30 + } + }, + "value": "axios", + "rawValue": "axios", + "raw": "'axios'" + } + }, + { + "type": "ImportDeclaration", + "start": 31, + "end": 58, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 27 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 38, + "end": 44, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "local": { + "type": "Identifier", + "start": 38, + "end": 44, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "name": "config" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 50, + "end": 58, + "loc": { + "start": { + "line": 2, + "column": 19 + }, + "end": { + "line": 2, + "column": 27 + } + }, + "value": "config", + "rawValue": "config", + "raw": "'config'" + } + }, + { + "type": "ImportDeclaration", + "start": 59, + "end": 101, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 42 + } + }, + "specifiers": [ + { + "type": "ImportNamespaceSpecifier", + "start": 66, + "end": 82, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 23 + } + }, + "local": { + "type": "Identifier", + "start": 71, + "end": 82, + "loc": { + "start": { + "line": 3, + "column": 12 + }, + "end": { + "line": 3, + "column": 23 + } + }, + "name": "querystring" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 88, + "end": 101, + "loc": { + "start": { + "line": 3, + "column": 29 + }, + "end": { + "line": 3, + "column": 42 + } + }, + "value": "querystring", + "rawValue": "querystring", + "raw": "'querystring'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * LOAD\n * @type {string}\n ", + "start": 103, + "end": 136, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + }, + "range": [ + 103, + 136 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 137, + "end": 168, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 31 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 144, + "end": 168, + "loc": { + "start": { + "line": 9, + "column": 7 + }, + "end": { + "line": 9, + "column": 31 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 150, + "end": 168, + "loc": { + "start": { + "line": 9, + "column": 13 + }, + "end": { + "line": 9, + "column": 31 + } + }, + "id": { + "type": "Identifier", + "start": 150, + "end": 154, + "loc": { + "start": { + "line": 9, + "column": 13 + }, + "end": { + "line": 9, + "column": 17 + } + }, + "name": "LOAD", + "leadingComments": null + }, + "init": { + "type": "Literal", + "start": 157, + "end": 168, + "loc": { + "start": { + "line": 9, + "column": 20 + }, + "end": { + "line": 9, + "column": 31 + } + }, + "value": "LIKE_LOAD", + "rawValue": "LIKE_LOAD", + "raw": "'LIKE_LOAD'", + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * LOAD\n * @type {string}\n ", + "start": 103, + "end": 136, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + }, + "range": [ + 103, + 136 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _loadRequest\n * @param postID\n * @private\n ", + "start": 170, + "end": 222, + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 15, + "column": 3 + } + }, + "range": [ + 170, + 222 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * LOAD\n * @type {string}\n ", + "start": 103, + "end": 136, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + }, + "range": [ + 103, + 136 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _loadRequest\n * @param postID\n * @private\n ", + "start": 170, + "end": 222, + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 15, + "column": 3 + } + }, + "range": [ + 170, + 222 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 223, + "end": 288, + "loc": { + "start": { + "line": 16, + "column": 0 + }, + "end": { + "line": 16, + "column": 65 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 230, + "end": 288, + "loc": { + "start": { + "line": 16, + "column": 7 + }, + "end": { + "line": 16, + "column": 65 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 236, + "end": 288, + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 16, + "column": 65 + } + }, + "id": { + "type": "Identifier", + "start": 236, + "end": 248, + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 16, + "column": 25 + } + }, + "name": "_loadRequest", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 251, + "end": 288, + "loc": { + "start": { + "line": 16, + "column": 28 + }, + "end": { + "line": 16, + "column": 65 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 252, + "end": 258, + "loc": { + "start": { + "line": 16, + "column": 29 + }, + "end": { + "line": 16, + "column": 35 + } + }, + "name": "postID" + } + ], + "body": { + "type": "ObjectExpression", + "start": 264, + "end": 287, + "loc": { + "start": { + "line": 16, + "column": 41 + }, + "end": { + "line": 16, + "column": 64 + } + }, + "properties": [ + { + "type": "Property", + "start": 266, + "end": 276, + "loc": { + "start": { + "line": 16, + "column": 43 + }, + "end": { + "line": 16, + "column": 53 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 266, + "end": 270, + "loc": { + "start": { + "line": 16, + "column": 43 + }, + "end": { + "line": 16, + "column": 47 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 272, + "end": 276, + "loc": { + "start": { + "line": 16, + "column": 49 + }, + "end": { + "line": 16, + "column": 53 + } + }, + "name": "LOAD" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 278, + "end": 284, + "loc": { + "start": { + "line": 16, + "column": 55 + }, + "end": { + "line": 16, + "column": 61 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 278, + "end": 284, + "loc": { + "start": { + "line": 16, + "column": 55 + }, + "end": { + "line": 16, + "column": 61 + } + }, + "name": "postID" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 278, + "end": 284, + "loc": { + "start": { + "line": 16, + "column": 55 + }, + "end": { + "line": 16, + "column": 61 + } + }, + "name": "postID" + } + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _loadRequest\n * @param postID\n * @private\n ", + "start": 170, + "end": 222, + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 15, + "column": 3 + } + }, + "range": [ + 170, + 222 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _loadResponse\n * @param postID\n * @param response\n * @private\n ", + "start": 290, + "end": 362, + "loc": { + "start": { + "line": 18, + "column": 0 + }, + "end": { + "line": 23, + "column": 3 + } + }, + "range": [ + 290, + 362 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _loadRequest\n * @param postID\n * @private\n ", + "start": 170, + "end": 222, + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 15, + "column": 3 + } + }, + "range": [ + 170, + 222 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _loadResponse\n * @param postID\n * @param response\n * @private\n ", + "start": 290, + "end": 362, + "loc": { + "start": { + "line": 18, + "column": 0 + }, + "end": { + "line": 23, + "column": 3 + } + }, + "range": [ + 290, + 362 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 363, + "end": 449, + "loc": { + "start": { + "line": 24, + "column": 0 + }, + "end": { + "line": 24, + "column": 86 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 370, + "end": 449, + "loc": { + "start": { + "line": 24, + "column": 7 + }, + "end": { + "line": 24, + "column": 86 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 376, + "end": 449, + "loc": { + "start": { + "line": 24, + "column": 13 + }, + "end": { + "line": 24, + "column": 86 + } + }, + "id": { + "type": "Identifier", + "start": 376, + "end": 389, + "loc": { + "start": { + "line": 24, + "column": 13 + }, + "end": { + "line": 24, + "column": 26 + } + }, + "name": "_loadResponse", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 392, + "end": 449, + "loc": { + "start": { + "line": 24, + "column": 29 + }, + "end": { + "line": 24, + "column": 86 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 393, + "end": 399, + "loc": { + "start": { + "line": 24, + "column": 30 + }, + "end": { + "line": 24, + "column": 36 + } + }, + "name": "postID" + }, + { + "type": "Identifier", + "start": 401, + "end": 409, + "loc": { + "start": { + "line": 24, + "column": 38 + }, + "end": { + "line": 24, + "column": 46 + } + }, + "name": "response" + } + ], + "body": { + "type": "ObjectExpression", + "start": 415, + "end": 448, + "loc": { + "start": { + "line": 24, + "column": 52 + }, + "end": { + "line": 24, + "column": 85 + } + }, + "properties": [ + { + "type": "Property", + "start": 417, + "end": 427, + "loc": { + "start": { + "line": 24, + "column": 54 + }, + "end": { + "line": 24, + "column": 64 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 417, + "end": 421, + "loc": { + "start": { + "line": 24, + "column": 54 + }, + "end": { + "line": 24, + "column": 58 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 423, + "end": 427, + "loc": { + "start": { + "line": 24, + "column": 60 + }, + "end": { + "line": 24, + "column": 64 + } + }, + "name": "LOAD" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 429, + "end": 435, + "loc": { + "start": { + "line": 24, + "column": 66 + }, + "end": { + "line": 24, + "column": 72 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 429, + "end": 435, + "loc": { + "start": { + "line": 24, + "column": 66 + }, + "end": { + "line": 24, + "column": 72 + } + }, + "name": "postID" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 429, + "end": 435, + "loc": { + "start": { + "line": 24, + "column": 66 + }, + "end": { + "line": 24, + "column": 72 + } + }, + "name": "postID" + } + }, + { + "type": "Property", + "start": 437, + "end": 445, + "loc": { + "start": { + "line": 24, + "column": 74 + }, + "end": { + "line": 24, + "column": 82 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 437, + "end": 445, + "loc": { + "start": { + "line": 24, + "column": 74 + }, + "end": { + "line": 24, + "column": 82 + } + }, + "name": "response" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 437, + "end": 445, + "loc": { + "start": { + "line": 24, + "column": 74 + }, + "end": { + "line": 24, + "column": 82 + } + }, + "name": "response" + } + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _loadResponse\n * @param postID\n * @param response\n * @private\n ", + "start": 290, + "end": 362, + "loc": { + "start": { + "line": 18, + "column": 0 + }, + "end": { + "line": 23, + "column": 3 + } + }, + "range": [ + 290, + 362 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * load\n * Gets number of 'likes' from API for user and post\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param postID post id\n * @param userID user id\n * @returns {Function}\n ", + "start": 451, + "end": 667, + "loc": { + "start": { + "line": 26, + "column": 0 + }, + "end": { + "line": 34, + "column": 3 + } + }, + "range": [ + 451, + 667 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _loadResponse\n * @param postID\n * @param response\n * @private\n ", + "start": 290, + "end": 362, + "loc": { + "start": { + "line": 18, + "column": 0 + }, + "end": { + "line": 23, + "column": 3 + } + }, + "range": [ + 290, + 362 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * load\n * Gets number of 'likes' from API for user and post\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param postID post id\n * @param userID user id\n * @returns {Function}\n ", + "start": 451, + "end": 667, + "loc": { + "start": { + "line": 26, + "column": 0 + }, + "end": { + "line": 34, + "column": 3 + } + }, + "range": [ + 451, + 667 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 668, + "end": 1125, + "loc": { + "start": { + "line": 35, + "column": 0 + }, + "end": { + "line": 48, + "column": 1 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 675, + "end": 1125, + "loc": { + "start": { + "line": 35, + "column": 7 + }, + "end": { + "line": 48, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 684, + "end": 688, + "loc": { + "start": { + "line": 35, + "column": 16 + }, + "end": { + "line": 35, + "column": 20 + } + }, + "name": "load", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 689, + "end": 695, + "loc": { + "start": { + "line": 35, + "column": 21 + }, + "end": { + "line": 35, + "column": 27 + } + }, + "name": "postID" + }, + { + "type": "Identifier", + "start": 697, + "end": 703, + "loc": { + "start": { + "line": 35, + "column": 29 + }, + "end": { + "line": 35, + "column": 35 + } + }, + "name": "userID" + } + ], + "body": { + "type": "BlockStatement", + "start": 705, + "end": 1125, + "loc": { + "start": { + "line": 35, + "column": 37 + }, + "end": { + "line": 48, + "column": 1 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 711, + "end": 1123, + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 47, + "column": 5 + } + }, + "argument": { + "type": "ArrowFunctionExpression", + "start": 718, + "end": 1123, + "loc": { + "start": { + "line": 36, + "column": 11 + }, + "end": { + "line": 47, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 719, + "end": 727, + "loc": { + "start": { + "line": 36, + "column": 12 + }, + "end": { + "line": 36, + "column": 20 + } + }, + "name": "dispatch" + }, + { + "type": "Identifier", + "start": 729, + "end": 737, + "loc": { + "start": { + "line": 36, + "column": 22 + }, + "end": { + "line": 36, + "column": 30 + } + }, + "name": "getState" + } + ], + "body": { + "type": "BlockStatement", + "start": 742, + "end": 1123, + "loc": { + "start": { + "line": 36, + "column": 35 + }, + "end": { + "line": 47, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 752, + "end": 782, + "loc": { + "start": { + "line": 37, + "column": 8 + }, + "end": { + "line": 37, + "column": 38 + } + }, + "expression": { + "type": "CallExpression", + "start": 752, + "end": 782, + "loc": { + "start": { + "line": 37, + "column": 8 + }, + "end": { + "line": 37, + "column": 38 + } + }, + "callee": { + "type": "Identifier", + "start": 752, + "end": 760, + "loc": { + "start": { + "line": 37, + "column": 8 + }, + "end": { + "line": 37, + "column": 16 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 761, + "end": 781, + "loc": { + "start": { + "line": 37, + "column": 17 + }, + "end": { + "line": 37, + "column": 37 + } + }, + "callee": { + "type": "Identifier", + "start": 761, + "end": 773, + "loc": { + "start": { + "line": 37, + "column": 17 + }, + "end": { + "line": 37, + "column": 29 + } + }, + "name": "_loadRequest" + }, + "arguments": [ + { + "type": "Identifier", + "start": 774, + "end": 780, + "loc": { + "start": { + "line": 37, + "column": 30 + }, + "end": { + "line": 37, + "column": 36 + } + }, + "name": "postID" + } + ] + } + ] + } + }, + { + "type": "VariableDeclaration", + "start": 791, + "end": 819, + "loc": { + "start": { + "line": 38, + "column": 8 + }, + "end": { + "line": 38, + "column": 36 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 797, + "end": 819, + "loc": { + "start": { + "line": 38, + "column": 14 + }, + "end": { + "line": 38, + "column": 36 + } + }, + "id": { + "type": "Identifier", + "start": 797, + "end": 801, + "loc": { + "start": { + "line": 38, + "column": 14 + }, + "end": { + "line": 38, + "column": 18 + } + }, + "name": "user" + }, + "init": { + "type": "MemberExpression", + "start": 804, + "end": 819, + "loc": { + "start": { + "line": 38, + "column": 21 + }, + "end": { + "line": 38, + "column": 36 + } + }, + "object": { + "type": "CallExpression", + "start": 804, + "end": 814, + "loc": { + "start": { + "line": 38, + "column": 21 + }, + "end": { + "line": 38, + "column": 31 + } + }, + "callee": { + "type": "Identifier", + "start": 804, + "end": 812, + "loc": { + "start": { + "line": 38, + "column": 21 + }, + "end": { + "line": 38, + "column": 29 + } + }, + "name": "getState" + }, + "arguments": [] + }, + "property": { + "type": "Identifier", + "start": 815, + "end": 819, + "loc": { + "start": { + "line": 38, + "column": 32 + }, + "end": { + "line": 38, + "column": 36 + } + }, + "name": "User" + }, + "computed": false + } + } + ], + "kind": "const" + }, + { + "type": "ExpressionStatement", + "start": 828, + "end": 1117, + "loc": { + "start": { + "line": 39, + "column": 8 + }, + "end": { + "line": 46, + "column": 10 + } + }, + "expression": { + "type": "CallExpression", + "start": 828, + "end": 1117, + "loc": { + "start": { + "line": 39, + "column": 8 + }, + "end": { + "line": 46, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 828, + "end": 1043, + "loc": { + "start": { + "line": 39, + "column": 8 + }, + "end": { + "line": 44, + "column": 13 + } + }, + "object": { + "type": "CallExpression", + "start": 828, + "end": 1029, + "loc": { + "start": { + "line": 39, + "column": 8 + }, + "end": { + "line": 43, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 828, + "end": 837, + "loc": { + "start": { + "line": 39, + "column": 8 + }, + "end": { + "line": 39, + "column": 17 + } + }, + "object": { + "type": "Identifier", + "start": 828, + "end": 833, + "loc": { + "start": { + "line": 39, + "column": 8 + }, + "end": { + "line": 39, + "column": 13 + } + }, + "name": "axios" + }, + "property": { + "type": "Identifier", + "start": 834, + "end": 837, + "loc": { + "start": { + "line": 39, + "column": 14 + }, + "end": { + "line": 39, + "column": 17 + } + }, + "name": "get" + }, + "computed": false + }, + "arguments": [ + { + "type": "TemplateLiteral", + "start": 838, + "end": 906, + "loc": { + "start": { + "line": 39, + "column": 18 + }, + "end": { + "line": 39, + "column": 86 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 841, + "end": 859, + "loc": { + "start": { + "line": 39, + "column": 21 + }, + "end": { + "line": 39, + "column": 39 + } + }, + "object": { + "type": "MemberExpression", + "start": 841, + "end": 851, + "loc": { + "start": { + "line": 39, + "column": 21 + }, + "end": { + "line": 39, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 841, + "end": 847, + "loc": { + "start": { + "line": 39, + "column": 21 + }, + "end": { + "line": 39, + "column": 27 + } + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 848, + "end": 851, + "loc": { + "start": { + "line": 39, + "column": 28 + }, + "end": { + "line": 39, + "column": 31 + } + }, + "name": "api" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 852, + "end": 859, + "loc": { + "start": { + "line": 39, + "column": 32 + }, + "end": { + "line": 39, + "column": 39 + } + }, + "name": "baseUrl" + }, + "computed": false + }, + { + "type": "Identifier", + "start": 879, + "end": 885, + "loc": { + "start": { + "line": 39, + "column": 59 + }, + "end": { + "line": 39, + "column": 65 + } + }, + "name": "postID" + }, + { + "type": "MemberExpression", + "start": 897, + "end": 904, + "loc": { + "start": { + "line": 39, + "column": 77 + }, + "end": { + "line": 39, + "column": 84 + } + }, + "object": { + "type": "Identifier", + "start": 897, + "end": 901, + "loc": { + "start": { + "line": 39, + "column": 77 + }, + "end": { + "line": 39, + "column": 81 + } + }, + "name": "user" + }, + "property": { + "type": "Identifier", + "start": 902, + "end": 904, + "loc": { + "start": { + "line": 39, + "column": 82 + }, + "end": { + "line": 39, + "column": 84 + } + }, + "name": "id" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 839, + "end": 839, + "loc": { + "start": { + "line": 39, + "column": 19 + }, + "end": { + "line": 39, + "column": 19 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 860, + "end": 877, + "loc": { + "start": { + "line": 39, + "column": 40 + }, + "end": { + "line": 39, + "column": 57 + } + }, + "value": { + "raw": "/likes?upload_id=", + "cooked": "/likes?upload_id=" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 886, + "end": 895, + "loc": { + "start": { + "line": 39, + "column": 66 + }, + "end": { + "line": 39, + "column": 75 + } + }, + "value": { + "raw": "&user_id=", + "cooked": "&user_id=" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 905, + "end": 905, + "loc": { + "start": { + "line": 39, + "column": 85 + }, + "end": { + "line": 39, + "column": 85 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + }, + { + "type": "ObjectExpression", + "start": 908, + "end": 1028, + "loc": { + "start": { + "line": 39, + "column": 88 + }, + "end": { + "line": 43, + "column": 9 + } + }, + "properties": [ + { + "type": "Property", + "start": 922, + "end": 1017, + "loc": { + "start": { + "line": 40, + "column": 12 + }, + "end": { + "line": 42, + "column": 13 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 922, + "end": 929, + "loc": { + "start": { + "line": 40, + "column": 12 + }, + "end": { + "line": 40, + "column": 19 + } + }, + "name": "headers" + }, + "value": { + "type": "ObjectExpression", + "start": 931, + "end": 1017, + "loc": { + "start": { + "line": 40, + "column": 21 + }, + "end": { + "line": 42, + "column": 13 + } + }, + "properties": [ + { + "type": "Property", + "start": 949, + "end": 1003, + "loc": { + "start": { + "line": 41, + "column": 16 + }, + "end": { + "line": 41, + "column": 70 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 949, + "end": 962, + "loc": { + "start": { + "line": 41, + "column": 16 + }, + "end": { + "line": 41, + "column": 29 + } + }, + "name": "Authorization" + }, + "value": { + "type": "TemplateLiteral", + "start": 964, + "end": 1003, + "loc": { + "start": { + "line": 41, + "column": 31 + }, + "end": { + "line": 41, + "column": 70 + } + }, + "expressions": [ + { + "type": "CallExpression", + "start": 974, + "end": 1001, + "loc": { + "start": { + "line": 41, + "column": 41 + }, + "end": { + "line": 41, + "column": 68 + } + }, + "callee": { + "type": "MemberExpression", + "start": 974, + "end": 994, + "loc": { + "start": { + "line": 41, + "column": 41 + }, + "end": { + "line": 41, + "column": 61 + } + }, + "object": { + "type": "Identifier", + "start": 974, + "end": 986, + "loc": { + "start": { + "line": 41, + "column": 41 + }, + "end": { + "line": 41, + "column": 53 + } + }, + "name": "localStorage" + }, + "property": { + "type": "Identifier", + "start": 987, + "end": 994, + "loc": { + "start": { + "line": 41, + "column": 54 + }, + "end": { + "line": 41, + "column": 61 + } + }, + "name": "getItem" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 995, + "end": 1000, + "loc": { + "start": { + "line": 41, + "column": 62 + }, + "end": { + "line": 41, + "column": 67 + } + }, + "value": "jwt", + "rawValue": "jwt", + "raw": "'jwt'" + } + ] + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 965, + "end": 972, + "loc": { + "start": { + "line": 41, + "column": 32 + }, + "end": { + "line": 41, + "column": 39 + } + }, + "value": { + "raw": "Bearer ", + "cooked": "Bearer " + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 1002, + "end": 1002, + "loc": { + "start": { + "line": 41, + "column": 69 + }, + "end": { + "line": 41, + "column": 69 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + }, + "kind": "init" + } + ] + }, + "kind": "init" + } + ] + } + ] + }, + "property": { + "type": "Identifier", + "start": 1039, + "end": 1043, + "loc": { + "start": { + "line": 44, + "column": 9 + }, + "end": { + "line": 44, + "column": 13 + } + }, + "name": "then" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 1044, + "end": 1116, + "loc": { + "start": { + "line": 44, + "column": 14 + }, + "end": { + "line": 46, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1044, + "end": 1047, + "loc": { + "start": { + "line": 44, + "column": 14 + }, + "end": { + "line": 44, + "column": 17 + } + }, + "name": "res" + } + ], + "body": { + "type": "BlockStatement", + "start": 1051, + "end": 1116, + "loc": { + "start": { + "line": 44, + "column": 21 + }, + "end": { + "line": 46, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1065, + "end": 1106, + "loc": { + "start": { + "line": 45, + "column": 12 + }, + "end": { + "line": 45, + "column": 53 + } + }, + "expression": { + "type": "CallExpression", + "start": 1065, + "end": 1106, + "loc": { + "start": { + "line": 45, + "column": 12 + }, + "end": { + "line": 45, + "column": 53 + } + }, + "callee": { + "type": "Identifier", + "start": 1065, + "end": 1073, + "loc": { + "start": { + "line": 45, + "column": 12 + }, + "end": { + "line": 45, + "column": 20 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1074, + "end": 1105, + "loc": { + "start": { + "line": 45, + "column": 21 + }, + "end": { + "line": 45, + "column": 52 + } + }, + "callee": { + "type": "Identifier", + "start": 1074, + "end": 1087, + "loc": { + "start": { + "line": 45, + "column": 21 + }, + "end": { + "line": 45, + "column": 34 + } + }, + "name": "_loadResponse" + }, + "arguments": [ + { + "type": "Identifier", + "start": 1088, + "end": 1094, + "loc": { + "start": { + "line": 45, + "column": 35 + }, + "end": { + "line": 45, + "column": 41 + } + }, + "name": "postID" + }, + { + "type": "MemberExpression", + "start": 1096, + "end": 1104, + "loc": { + "start": { + "line": 45, + "column": 43 + }, + "end": { + "line": 45, + "column": 51 + } + }, + "object": { + "type": "Identifier", + "start": 1096, + "end": 1099, + "loc": { + "start": { + "line": 45, + "column": 43 + }, + "end": { + "line": 45, + "column": 46 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 1100, + "end": 1104, + "loc": { + "start": { + "line": 45, + "column": 47 + }, + "end": { + "line": 45, + "column": 51 + } + }, + "name": "data" + }, + "computed": false + } + ] + } + ] + } + } + ] + } + } + ] + } + } + ] + } + } + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * load\n * Gets number of 'likes' from API for user and post\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param postID post id\n * @param userID user id\n * @returns {Function}\n ", + "start": 451, + "end": 667, + "loc": { + "start": { + "line": 26, + "column": 0 + }, + "end": { + "line": 34, + "column": 3 + } + }, + "range": [ + 451, + 667 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * ADD_LIKE\n * @type {string}\n ", + "start": 1127, + "end": 1164, + "loc": { + "start": { + "line": 50, + "column": 0 + }, + "end": { + "line": 53, + "column": 3 + } + }, + "range": [ + 1127, + 1164 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * load\n * Gets number of 'likes' from API for user and post\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param postID post id\n * @param userID user id\n * @returns {Function}\n ", + "start": 451, + "end": 667, + "loc": { + "start": { + "line": 26, + "column": 0 + }, + "end": { + "line": 34, + "column": 3 + } + }, + "range": [ + 451, + 667 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * ADD_LIKE\n * @type {string}\n ", + "start": 1127, + "end": 1164, + "loc": { + "start": { + "line": 50, + "column": 0 + }, + "end": { + "line": 53, + "column": 3 + } + }, + "range": [ + 1127, + 1164 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 1165, + "end": 1199, + "loc": { + "start": { + "line": 54, + "column": 0 + }, + "end": { + "line": 54, + "column": 34 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 1172, + "end": 1199, + "loc": { + "start": { + "line": 54, + "column": 7 + }, + "end": { + "line": 54, + "column": 34 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1178, + "end": 1199, + "loc": { + "start": { + "line": 54, + "column": 13 + }, + "end": { + "line": 54, + "column": 34 + } + }, + "id": { + "type": "Identifier", + "start": 1178, + "end": 1186, + "loc": { + "start": { + "line": 54, + "column": 13 + }, + "end": { + "line": 54, + "column": 21 + } + }, + "name": "ADD_LIKE", + "leadingComments": null + }, + "init": { + "type": "Literal", + "start": 1189, + "end": 1199, + "loc": { + "start": { + "line": 54, + "column": 24 + }, + "end": { + "line": 54, + "column": 34 + } + }, + "value": "ADD_LIKE", + "rawValue": "ADD_LIKE", + "raw": "'ADD_LIKE'", + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * ADD_LIKE\n * @type {string}\n ", + "start": 1127, + "end": 1164, + "loc": { + "start": { + "line": 50, + "column": 0 + }, + "end": { + "line": 53, + "column": 3 + } + }, + "range": [ + 1127, + 1164 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _hnadleAddLikeRequest\n * @param postID\n * @private\n ", + "start": 1201, + "end": 1262, + "loc": { + "start": { + "line": 56, + "column": 0 + }, + "end": { + "line": 60, + "column": 3 + } + }, + "range": [ + 1201, + 1262 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * ADD_LIKE\n * @type {string}\n ", + "start": 1127, + "end": 1164, + "loc": { + "start": { + "line": 50, + "column": 0 + }, + "end": { + "line": 53, + "column": 3 + } + }, + "range": [ + 1127, + 1164 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _hnadleAddLikeRequest\n * @param postID\n * @private\n ", + "start": 1201, + "end": 1262, + "loc": { + "start": { + "line": 56, + "column": 0 + }, + "end": { + "line": 60, + "column": 3 + } + }, + "range": [ + 1201, + 1262 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 1263, + "end": 1340, + "loc": { + "start": { + "line": 61, + "column": 0 + }, + "end": { + "line": 61, + "column": 77 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 1270, + "end": 1340, + "loc": { + "start": { + "line": 61, + "column": 7 + }, + "end": { + "line": 61, + "column": 77 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1276, + "end": 1340, + "loc": { + "start": { + "line": 61, + "column": 13 + }, + "end": { + "line": 61, + "column": 77 + } + }, + "id": { + "type": "Identifier", + "start": 1276, + "end": 1297, + "loc": { + "start": { + "line": 61, + "column": 13 + }, + "end": { + "line": 61, + "column": 34 + } + }, + "name": "_handleAddLikeRequest", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 1300, + "end": 1340, + "loc": { + "start": { + "line": 61, + "column": 37 + }, + "end": { + "line": 61, + "column": 77 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1301, + "end": 1307, + "loc": { + "start": { + "line": 61, + "column": 38 + }, + "end": { + "line": 61, + "column": 44 + } + }, + "name": "postID" + } + ], + "body": { + "type": "ObjectExpression", + "start": 1313, + "end": 1339, + "loc": { + "start": { + "line": 61, + "column": 50 + }, + "end": { + "line": 61, + "column": 76 + } + }, + "properties": [ + { + "type": "Property", + "start": 1315, + "end": 1329, + "loc": { + "start": { + "line": 61, + "column": 52 + }, + "end": { + "line": 61, + "column": 66 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1315, + "end": 1319, + "loc": { + "start": { + "line": 61, + "column": 52 + }, + "end": { + "line": 61, + "column": 56 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 1321, + "end": 1329, + "loc": { + "start": { + "line": 61, + "column": 58 + }, + "end": { + "line": 61, + "column": 66 + } + }, + "name": "ADD_LIKE" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1331, + "end": 1337, + "loc": { + "start": { + "line": 61, + "column": 68 + }, + "end": { + "line": 61, + "column": 74 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 1331, + "end": 1337, + "loc": { + "start": { + "line": 61, + "column": 68 + }, + "end": { + "line": 61, + "column": 74 + } + }, + "name": "postID" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 1331, + "end": 1337, + "loc": { + "start": { + "line": 61, + "column": 68 + }, + "end": { + "line": 61, + "column": 74 + } + }, + "name": "postID" + } + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _hnadleAddLikeRequest\n * @param postID\n * @private\n ", + "start": 1201, + "end": 1262, + "loc": { + "start": { + "line": 56, + "column": 0 + }, + "end": { + "line": 60, + "column": 3 + } + }, + "range": [ + 1201, + 1262 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _handleAddLikeResponse\n * @param postID\n * @param response\n * @private\n ", + "start": 1342, + "end": 1423, + "loc": { + "start": { + "line": 63, + "column": 0 + }, + "end": { + "line": 68, + "column": 3 + } + }, + "range": [ + 1342, + 1423 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _hnadleAddLikeRequest\n * @param postID\n * @private\n ", + "start": 1201, + "end": 1262, + "loc": { + "start": { + "line": 56, + "column": 0 + }, + "end": { + "line": 60, + "column": 3 + } + }, + "range": [ + 1201, + 1262 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _handleAddLikeResponse\n * @param postID\n * @param response\n * @private\n ", + "start": 1342, + "end": 1423, + "loc": { + "start": { + "line": 63, + "column": 0 + }, + "end": { + "line": 68, + "column": 3 + } + }, + "range": [ + 1342, + 1423 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 1424, + "end": 1523, + "loc": { + "start": { + "line": 69, + "column": 0 + }, + "end": { + "line": 69, + "column": 99 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 1431, + "end": 1523, + "loc": { + "start": { + "line": 69, + "column": 7 + }, + "end": { + "line": 69, + "column": 99 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1437, + "end": 1523, + "loc": { + "start": { + "line": 69, + "column": 13 + }, + "end": { + "line": 69, + "column": 99 + } + }, + "id": { + "type": "Identifier", + "start": 1437, + "end": 1459, + "loc": { + "start": { + "line": 69, + "column": 13 + }, + "end": { + "line": 69, + "column": 35 + } + }, + "name": "_handleAddLikeResponse", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 1462, + "end": 1523, + "loc": { + "start": { + "line": 69, + "column": 38 + }, + "end": { + "line": 69, + "column": 99 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1463, + "end": 1469, + "loc": { + "start": { + "line": 69, + "column": 39 + }, + "end": { + "line": 69, + "column": 45 + } + }, + "name": "postID" + }, + { + "type": "Identifier", + "start": 1471, + "end": 1479, + "loc": { + "start": { + "line": 69, + "column": 47 + }, + "end": { + "line": 69, + "column": 55 + } + }, + "name": "response" + } + ], + "body": { + "type": "ObjectExpression", + "start": 1485, + "end": 1522, + "loc": { + "start": { + "line": 69, + "column": 61 + }, + "end": { + "line": 69, + "column": 98 + } + }, + "properties": [ + { + "type": "Property", + "start": 1487, + "end": 1501, + "loc": { + "start": { + "line": 69, + "column": 63 + }, + "end": { + "line": 69, + "column": 77 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1487, + "end": 1491, + "loc": { + "start": { + "line": 69, + "column": 63 + }, + "end": { + "line": 69, + "column": 67 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 1493, + "end": 1501, + "loc": { + "start": { + "line": 69, + "column": 69 + }, + "end": { + "line": 69, + "column": 77 + } + }, + "name": "ADD_LIKE" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1503, + "end": 1509, + "loc": { + "start": { + "line": 69, + "column": 79 + }, + "end": { + "line": 69, + "column": 85 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 1503, + "end": 1509, + "loc": { + "start": { + "line": 69, + "column": 79 + }, + "end": { + "line": 69, + "column": 85 + } + }, + "name": "postID" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 1503, + "end": 1509, + "loc": { + "start": { + "line": 69, + "column": 79 + }, + "end": { + "line": 69, + "column": 85 + } + }, + "name": "postID" + } + }, + { + "type": "Property", + "start": 1511, + "end": 1519, + "loc": { + "start": { + "line": 69, + "column": 87 + }, + "end": { + "line": 69, + "column": 95 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 1511, + "end": 1519, + "loc": { + "start": { + "line": 69, + "column": 87 + }, + "end": { + "line": 69, + "column": 95 + } + }, + "name": "response" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 1511, + "end": 1519, + "loc": { + "start": { + "line": 69, + "column": 87 + }, + "end": { + "line": 69, + "column": 95 + } + }, + "name": "response" + } + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _handleAddLikeResponse\n * @param postID\n * @param response\n * @private\n ", + "start": 1342, + "end": 1423, + "loc": { + "start": { + "line": 63, + "column": 0 + }, + "end": { + "line": 68, + "column": 3 + } + }, + "range": [ + 1342, + 1423 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * like\n * Posts a 'like' to the API for a user and post\n * @param postID post id\n * @returns {Function}\n ", + "start": 1525, + "end": 1637, + "loc": { + "start": { + "line": 71, + "column": 0 + }, + "end": { + "line": 76, + "column": 3 + } + }, + "range": [ + 1525, + 1637 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _handleAddLikeResponse\n * @param postID\n * @param response\n * @private\n ", + "start": 1342, + "end": 1423, + "loc": { + "start": { + "line": 63, + "column": 0 + }, + "end": { + "line": 68, + "column": 3 + } + }, + "range": [ + 1342, + 1423 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * like\n * Posts a 'like' to the API for a user and post\n * @param postID post id\n * @returns {Function}\n ", + "start": 1525, + "end": 1637, + "loc": { + "start": { + "line": 71, + "column": 0 + }, + "end": { + "line": 76, + "column": 3 + } + }, + "range": [ + 1525, + 1637 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 1638, + "end": 2141, + "loc": { + "start": { + "line": 77, + "column": 0 + }, + "end": { + "line": 93, + "column": 1 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 1645, + "end": 2141, + "loc": { + "start": { + "line": 77, + "column": 7 + }, + "end": { + "line": 93, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 1654, + "end": 1658, + "loc": { + "start": { + "line": 77, + "column": 16 + }, + "end": { + "line": 77, + "column": 20 + } + }, + "name": "like", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1659, + "end": 1665, + "loc": { + "start": { + "line": 77, + "column": 21 + }, + "end": { + "line": 77, + "column": 27 + } + }, + "name": "postID" + } + ], + "body": { + "type": "BlockStatement", + "start": 1667, + "end": 2141, + "loc": { + "start": { + "line": 77, + "column": 29 + }, + "end": { + "line": 93, + "column": 1 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 1673, + "end": 2139, + "loc": { + "start": { + "line": 78, + "column": 4 + }, + "end": { + "line": 92, + "column": 5 + } + }, + "argument": { + "type": "ArrowFunctionExpression", + "start": 1680, + "end": 2139, + "loc": { + "start": { + "line": 78, + "column": 11 + }, + "end": { + "line": 92, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1681, + "end": 1689, + "loc": { + "start": { + "line": 78, + "column": 12 + }, + "end": { + "line": 78, + "column": 20 + } + }, + "name": "dispatch" + }, + { + "type": "Identifier", + "start": 1691, + "end": 1699, + "loc": { + "start": { + "line": 78, + "column": 22 + }, + "end": { + "line": 78, + "column": 30 + } + }, + "name": "getState" + } + ], + "body": { + "type": "BlockStatement", + "start": 1704, + "end": 2139, + "loc": { + "start": { + "line": 78, + "column": 35 + }, + "end": { + "line": 92, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1714, + "end": 1753, + "loc": { + "start": { + "line": 79, + "column": 8 + }, + "end": { + "line": 79, + "column": 47 + } + }, + "expression": { + "type": "CallExpression", + "start": 1714, + "end": 1753, + "loc": { + "start": { + "line": 79, + "column": 8 + }, + "end": { + "line": 79, + "column": 47 + } + }, + "callee": { + "type": "Identifier", + "start": 1714, + "end": 1722, + "loc": { + "start": { + "line": 79, + "column": 8 + }, + "end": { + "line": 79, + "column": 16 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1723, + "end": 1752, + "loc": { + "start": { + "line": 79, + "column": 17 + }, + "end": { + "line": 79, + "column": 46 + } + }, + "callee": { + "type": "Identifier", + "start": 1723, + "end": 1744, + "loc": { + "start": { + "line": 79, + "column": 17 + }, + "end": { + "line": 79, + "column": 38 + } + }, + "name": "_handleAddLikeRequest" + }, + "arguments": [ + { + "type": "Identifier", + "start": 1745, + "end": 1751, + "loc": { + "start": { + "line": 79, + "column": 39 + }, + "end": { + "line": 79, + "column": 45 + } + }, + "name": "postID" + } + ] + } + ] + } + }, + { + "type": "VariableDeclaration", + "start": 1762, + "end": 1858, + "loc": { + "start": { + "line": 80, + "column": 8 + }, + "end": { + "line": 83, + "column": 9 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1768, + "end": 1858, + "loc": { + "start": { + "line": 80, + "column": 14 + }, + "end": { + "line": 83, + "column": 9 + } + }, + "id": { + "type": "Identifier", + "start": 1768, + "end": 1772, + "loc": { + "start": { + "line": 80, + "column": 14 + }, + "end": { + "line": 80, + "column": 18 + } + }, + "name": "data" + }, + "init": { + "type": "ObjectExpression", + "start": 1775, + "end": 1858, + "loc": { + "start": { + "line": 80, + "column": 21 + }, + "end": { + "line": 83, + "column": 9 + } + }, + "properties": [ + { + "type": "Property", + "start": 1789, + "end": 1816, + "loc": { + "start": { + "line": 81, + "column": 12 + }, + "end": { + "line": 81, + "column": 39 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1789, + "end": 1796, + "loc": { + "start": { + "line": 81, + "column": 12 + }, + "end": { + "line": 81, + "column": 19 + } + }, + "name": "user_id" + }, + "value": { + "type": "MemberExpression", + "start": 1798, + "end": 1816, + "loc": { + "start": { + "line": 81, + "column": 21 + }, + "end": { + "line": 81, + "column": 39 + } + }, + "object": { + "type": "MemberExpression", + "start": 1798, + "end": 1813, + "loc": { + "start": { + "line": 81, + "column": 21 + }, + "end": { + "line": 81, + "column": 36 + } + }, + "object": { + "type": "CallExpression", + "start": 1798, + "end": 1808, + "loc": { + "start": { + "line": 81, + "column": 21 + }, + "end": { + "line": 81, + "column": 31 + } + }, + "callee": { + "type": "Identifier", + "start": 1798, + "end": 1806, + "loc": { + "start": { + "line": 81, + "column": 21 + }, + "end": { + "line": 81, + "column": 29 + } + }, + "name": "getState" + }, + "arguments": [] + }, + "property": { + "type": "Identifier", + "start": 1809, + "end": 1813, + "loc": { + "start": { + "line": 81, + "column": 32 + }, + "end": { + "line": 81, + "column": 36 + } + }, + "name": "User" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1814, + "end": 1816, + "loc": { + "start": { + "line": 81, + "column": 37 + }, + "end": { + "line": 81, + "column": 39 + } + }, + "name": "id" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1830, + "end": 1847, + "loc": { + "start": { + "line": 82, + "column": 12 + }, + "end": { + "line": 82, + "column": 29 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1830, + "end": 1839, + "loc": { + "start": { + "line": 82, + "column": 12 + }, + "end": { + "line": 82, + "column": 21 + } + }, + "name": "upload_id" + }, + "value": { + "type": "Identifier", + "start": 1841, + "end": 1847, + "loc": { + "start": { + "line": 82, + "column": 23 + }, + "end": { + "line": 82, + "column": 29 + } + }, + "name": "postID" + }, + "kind": "init" + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "ExpressionStatement", + "start": 1867, + "end": 2133, + "loc": { + "start": { + "line": 84, + "column": 8 + }, + "end": { + "line": 91, + "column": 10 + } + }, + "expression": { + "type": "CallExpression", + "start": 1867, + "end": 2133, + "loc": { + "start": { + "line": 84, + "column": 8 + }, + "end": { + "line": 91, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1867, + "end": 2050, + "loc": { + "start": { + "line": 84, + "column": 8 + }, + "end": { + "line": 89, + "column": 13 + } + }, + "object": { + "type": "CallExpression", + "start": 1867, + "end": 2036, + "loc": { + "start": { + "line": 84, + "column": 8 + }, + "end": { + "line": 88, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1867, + "end": 1877, + "loc": { + "start": { + "line": 84, + "column": 8 + }, + "end": { + "line": 84, + "column": 18 + } + }, + "object": { + "type": "Identifier", + "start": 1867, + "end": 1872, + "loc": { + "start": { + "line": 84, + "column": 8 + }, + "end": { + "line": 84, + "column": 13 + } + }, + "name": "axios" + }, + "property": { + "type": "Identifier", + "start": 1873, + "end": 1877, + "loc": { + "start": { + "line": 84, + "column": 14 + }, + "end": { + "line": 84, + "column": 18 + } + }, + "name": "post" + }, + "computed": false + }, + "arguments": [ + { + "type": "TemplateLiteral", + "start": 1878, + "end": 1907, + "loc": { + "start": { + "line": 84, + "column": 19 + }, + "end": { + "line": 84, + "column": 48 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 1881, + "end": 1899, + "loc": { + "start": { + "line": 84, + "column": 22 + }, + "end": { + "line": 84, + "column": 40 + } + }, + "object": { + "type": "MemberExpression", + "start": 1881, + "end": 1891, + "loc": { + "start": { + "line": 84, + "column": 22 + }, + "end": { + "line": 84, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 1881, + "end": 1887, + "loc": { + "start": { + "line": 84, + "column": 22 + }, + "end": { + "line": 84, + "column": 28 + } + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 1888, + "end": 1891, + "loc": { + "start": { + "line": 84, + "column": 29 + }, + "end": { + "line": 84, + "column": 32 + } + }, + "name": "api" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1892, + "end": 1899, + "loc": { + "start": { + "line": 84, + "column": 33 + }, + "end": { + "line": 84, + "column": 40 + } + }, + "name": "baseUrl" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 1879, + "end": 1879, + "loc": { + "start": { + "line": 84, + "column": 20 + }, + "end": { + "line": 84, + "column": 20 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 1900, + "end": 1906, + "loc": { + "start": { + "line": 84, + "column": 41 + }, + "end": { + "line": 84, + "column": 47 + } + }, + "value": { + "raw": "/likes", + "cooked": "/likes" + }, + "tail": true + } + ] + }, + { + "type": "Identifier", + "start": 1909, + "end": 1913, + "loc": { + "start": { + "line": 84, + "column": 50 + }, + "end": { + "line": 84, + "column": 54 + } + }, + "name": "data" + }, + { + "type": "ObjectExpression", + "start": 1915, + "end": 2035, + "loc": { + "start": { + "line": 84, + "column": 56 + }, + "end": { + "line": 88, + "column": 9 + } + }, + "properties": [ + { + "type": "Property", + "start": 1929, + "end": 2024, + "loc": { + "start": { + "line": 85, + "column": 12 + }, + "end": { + "line": 87, + "column": 13 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1929, + "end": 1936, + "loc": { + "start": { + "line": 85, + "column": 12 + }, + "end": { + "line": 85, + "column": 19 + } + }, + "name": "headers" + }, + "value": { + "type": "ObjectExpression", + "start": 1938, + "end": 2024, + "loc": { + "start": { + "line": 85, + "column": 21 + }, + "end": { + "line": 87, + "column": 13 + } + }, + "properties": [ + { + "type": "Property", + "start": 1956, + "end": 2010, + "loc": { + "start": { + "line": 86, + "column": 16 + }, + "end": { + "line": 86, + "column": 70 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1956, + "end": 1969, + "loc": { + "start": { + "line": 86, + "column": 16 + }, + "end": { + "line": 86, + "column": 29 + } + }, + "name": "Authorization" + }, + "value": { + "type": "TemplateLiteral", + "start": 1971, + "end": 2010, + "loc": { + "start": { + "line": 86, + "column": 31 + }, + "end": { + "line": 86, + "column": 70 + } + }, + "expressions": [ + { + "type": "CallExpression", + "start": 1981, + "end": 2008, + "loc": { + "start": { + "line": 86, + "column": 41 + }, + "end": { + "line": 86, + "column": 68 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1981, + "end": 2001, + "loc": { + "start": { + "line": 86, + "column": 41 + }, + "end": { + "line": 86, + "column": 61 + } + }, + "object": { + "type": "Identifier", + "start": 1981, + "end": 1993, + "loc": { + "start": { + "line": 86, + "column": 41 + }, + "end": { + "line": 86, + "column": 53 + } + }, + "name": "localStorage" + }, + "property": { + "type": "Identifier", + "start": 1994, + "end": 2001, + "loc": { + "start": { + "line": 86, + "column": 54 + }, + "end": { + "line": 86, + "column": 61 + } + }, + "name": "getItem" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 2002, + "end": 2007, + "loc": { + "start": { + "line": 86, + "column": 62 + }, + "end": { + "line": 86, + "column": 67 + } + }, + "value": "jwt", + "rawValue": "jwt", + "raw": "'jwt'" + } + ] + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 1972, + "end": 1979, + "loc": { + "start": { + "line": 86, + "column": 32 + }, + "end": { + "line": 86, + "column": 39 + } + }, + "value": { + "raw": "Bearer ", + "cooked": "Bearer " + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 2009, + "end": 2009, + "loc": { + "start": { + "line": 86, + "column": 69 + }, + "end": { + "line": 86, + "column": 69 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + }, + "kind": "init" + } + ] + }, + "kind": "init" + } + ] + } + ] + }, + "property": { + "type": "Identifier", + "start": 2046, + "end": 2050, + "loc": { + "start": { + "line": 89, + "column": 9 + }, + "end": { + "line": 89, + "column": 13 + } + }, + "name": "then" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 2051, + "end": 2132, + "loc": { + "start": { + "line": 89, + "column": 14 + }, + "end": { + "line": 91, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2051, + "end": 2054, + "loc": { + "start": { + "line": 89, + "column": 14 + }, + "end": { + "line": 89, + "column": 17 + } + }, + "name": "res" + } + ], + "body": { + "type": "BlockStatement", + "start": 2058, + "end": 2132, + "loc": { + "start": { + "line": 89, + "column": 21 + }, + "end": { + "line": 91, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 2072, + "end": 2122, + "loc": { + "start": { + "line": 90, + "column": 12 + }, + "end": { + "line": 90, + "column": 62 + } + }, + "expression": { + "type": "CallExpression", + "start": 2072, + "end": 2122, + "loc": { + "start": { + "line": 90, + "column": 12 + }, + "end": { + "line": 90, + "column": 62 + } + }, + "callee": { + "type": "Identifier", + "start": 2072, + "end": 2080, + "loc": { + "start": { + "line": 90, + "column": 12 + }, + "end": { + "line": 90, + "column": 20 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 2081, + "end": 2121, + "loc": { + "start": { + "line": 90, + "column": 21 + }, + "end": { + "line": 90, + "column": 61 + } + }, + "callee": { + "type": "Identifier", + "start": 2081, + "end": 2103, + "loc": { + "start": { + "line": 90, + "column": 21 + }, + "end": { + "line": 90, + "column": 43 + } + }, + "name": "_handleAddLikeResponse" + }, + "arguments": [ + { + "type": "Identifier", + "start": 2104, + "end": 2110, + "loc": { + "start": { + "line": 90, + "column": 44 + }, + "end": { + "line": 90, + "column": 50 + } + }, + "name": "postID" + }, + { + "type": "MemberExpression", + "start": 2112, + "end": 2120, + "loc": { + "start": { + "line": 90, + "column": 52 + }, + "end": { + "line": 90, + "column": 60 + } + }, + "object": { + "type": "Identifier", + "start": 2112, + "end": 2115, + "loc": { + "start": { + "line": 90, + "column": 52 + }, + "end": { + "line": 90, + "column": 55 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 2116, + "end": 2120, + "loc": { + "start": { + "line": 90, + "column": 56 + }, + "end": { + "line": 90, + "column": 60 + } + }, + "name": "data" + }, + "computed": false + } + ] + } + ] + } + } + ] + } + } + ] + } + } + ] + } + } + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * like\n * Posts a 'like' to the API for a user and post\n * @param postID post id\n * @returns {Function}\n ", + "start": 1525, + "end": 1637, + "loc": { + "start": { + "line": 71, + "column": 0 + }, + "end": { + "line": 76, + "column": 3 + } + }, + "range": [ + 1525, + 1637 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * DELETE_LIKE\n * @type {string}\n ", + "start": 2143, + "end": 2183, + "loc": { + "start": { + "line": 95, + "column": 0 + }, + "end": { + "line": 98, + "column": 3 + } + }, + "range": [ + 2143, + 2183 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * like\n * Posts a 'like' to the API for a user and post\n * @param postID post id\n * @returns {Function}\n ", + "start": 1525, + "end": 1637, + "loc": { + "start": { + "line": 71, + "column": 0 + }, + "end": { + "line": 76, + "column": 3 + } + }, + "range": [ + 1525, + 1637 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * DELETE_LIKE\n * @type {string}\n ", + "start": 2143, + "end": 2183, + "loc": { + "start": { + "line": 95, + "column": 0 + }, + "end": { + "line": 98, + "column": 3 + } + }, + "range": [ + 2143, + 2183 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 2184, + "end": 2224, + "loc": { + "start": { + "line": 99, + "column": 0 + }, + "end": { + "line": 99, + "column": 40 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 2191, + "end": 2224, + "loc": { + "start": { + "line": 99, + "column": 7 + }, + "end": { + "line": 99, + "column": 40 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 2197, + "end": 2224, + "loc": { + "start": { + "line": 99, + "column": 13 + }, + "end": { + "line": 99, + "column": 40 + } + }, + "id": { + "type": "Identifier", + "start": 2197, + "end": 2208, + "loc": { + "start": { + "line": 99, + "column": 13 + }, + "end": { + "line": 99, + "column": 24 + } + }, + "name": "DELETE_LIKE", + "leadingComments": null + }, + "init": { + "type": "Literal", + "start": 2211, + "end": 2224, + "loc": { + "start": { + "line": 99, + "column": 27 + }, + "end": { + "line": 99, + "column": 40 + } + }, + "value": "DELETE_LIKE", + "rawValue": "DELETE_LIKE", + "raw": "'DELETE_LIKE'", + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * DELETE_LIKE\n * @type {string}\n ", + "start": 2143, + "end": 2183, + "loc": { + "start": { + "line": 95, + "column": 0 + }, + "end": { + "line": 98, + "column": 3 + } + }, + "range": [ + 2143, + 2183 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _handleDeleteLikeRequest\n * @param postID\n * @private\n ", + "start": 2226, + "end": 2290, + "loc": { + "start": { + "line": 101, + "column": 0 + }, + "end": { + "line": 105, + "column": 3 + } + }, + "range": [ + 2226, + 2290 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * DELETE_LIKE\n * @type {string}\n ", + "start": 2143, + "end": 2183, + "loc": { + "start": { + "line": 95, + "column": 0 + }, + "end": { + "line": 98, + "column": 3 + } + }, + "range": [ + 2143, + 2183 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _handleDeleteLikeRequest\n * @param postID\n * @private\n ", + "start": 2226, + "end": 2290, + "loc": { + "start": { + "line": 101, + "column": 0 + }, + "end": { + "line": 105, + "column": 3 + } + }, + "range": [ + 2226, + 2290 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 2291, + "end": 2374, + "loc": { + "start": { + "line": 106, + "column": 0 + }, + "end": { + "line": 106, + "column": 83 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 2298, + "end": 2374, + "loc": { + "start": { + "line": 106, + "column": 7 + }, + "end": { + "line": 106, + "column": 83 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 2304, + "end": 2374, + "loc": { + "start": { + "line": 106, + "column": 13 + }, + "end": { + "line": 106, + "column": 83 + } + }, + "id": { + "type": "Identifier", + "start": 2304, + "end": 2328, + "loc": { + "start": { + "line": 106, + "column": 13 + }, + "end": { + "line": 106, + "column": 37 + } + }, + "name": "_handleDeleteLikeRequest", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 2331, + "end": 2374, + "loc": { + "start": { + "line": 106, + "column": 40 + }, + "end": { + "line": 106, + "column": 83 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2332, + "end": 2338, + "loc": { + "start": { + "line": 106, + "column": 41 + }, + "end": { + "line": 106, + "column": 47 + } + }, + "name": "postID" + } + ], + "body": { + "type": "ObjectExpression", + "start": 2344, + "end": 2373, + "loc": { + "start": { + "line": 106, + "column": 53 + }, + "end": { + "line": 106, + "column": 82 + } + }, + "properties": [ + { + "type": "Property", + "start": 2346, + "end": 2363, + "loc": { + "start": { + "line": 106, + "column": 55 + }, + "end": { + "line": 106, + "column": 72 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2346, + "end": 2350, + "loc": { + "start": { + "line": 106, + "column": 55 + }, + "end": { + "line": 106, + "column": 59 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 2352, + "end": 2363, + "loc": { + "start": { + "line": 106, + "column": 61 + }, + "end": { + "line": 106, + "column": 72 + } + }, + "name": "DELETE_LIKE" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 2365, + "end": 2371, + "loc": { + "start": { + "line": 106, + "column": 74 + }, + "end": { + "line": 106, + "column": 80 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 2365, + "end": 2371, + "loc": { + "start": { + "line": 106, + "column": 74 + }, + "end": { + "line": 106, + "column": 80 + } + }, + "name": "postID" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 2365, + "end": 2371, + "loc": { + "start": { + "line": 106, + "column": 74 + }, + "end": { + "line": 106, + "column": 80 + } + }, + "name": "postID" + } + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _handleDeleteLikeRequest\n * @param postID\n * @private\n ", + "start": 2226, + "end": 2290, + "loc": { + "start": { + "line": 101, + "column": 0 + }, + "end": { + "line": 105, + "column": 3 + } + }, + "range": [ + 2226, + 2290 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _handleDeleteLikeResponse\n * @param postID\n * @param response\n * @private\n ", + "start": 2376, + "end": 2460, + "loc": { + "start": { + "line": 108, + "column": 0 + }, + "end": { + "line": 113, + "column": 3 + } + }, + "range": [ + 2376, + 2460 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _handleDeleteLikeRequest\n * @param postID\n * @private\n ", + "start": 2226, + "end": 2290, + "loc": { + "start": { + "line": 101, + "column": 0 + }, + "end": { + "line": 105, + "column": 3 + } + }, + "range": [ + 2226, + 2290 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _handleDeleteLikeResponse\n * @param postID\n * @param response\n * @private\n ", + "start": 2376, + "end": 2460, + "loc": { + "start": { + "line": 108, + "column": 0 + }, + "end": { + "line": 113, + "column": 3 + } + }, + "range": [ + 2376, + 2460 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 2461, + "end": 2566, + "loc": { + "start": { + "line": 114, + "column": 0 + }, + "end": { + "line": 114, + "column": 105 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 2468, + "end": 2566, + "loc": { + "start": { + "line": 114, + "column": 7 + }, + "end": { + "line": 114, + "column": 105 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 2474, + "end": 2566, + "loc": { + "start": { + "line": 114, + "column": 13 + }, + "end": { + "line": 114, + "column": 105 + } + }, + "id": { + "type": "Identifier", + "start": 2474, + "end": 2499, + "loc": { + "start": { + "line": 114, + "column": 13 + }, + "end": { + "line": 114, + "column": 38 + } + }, + "name": "_handleDeleteLikeResponse", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 2502, + "end": 2566, + "loc": { + "start": { + "line": 114, + "column": 41 + }, + "end": { + "line": 114, + "column": 105 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2503, + "end": 2509, + "loc": { + "start": { + "line": 114, + "column": 42 + }, + "end": { + "line": 114, + "column": 48 + } + }, + "name": "postID" + }, + { + "type": "Identifier", + "start": 2511, + "end": 2519, + "loc": { + "start": { + "line": 114, + "column": 50 + }, + "end": { + "line": 114, + "column": 58 + } + }, + "name": "response" + } + ], + "body": { + "type": "ObjectExpression", + "start": 2525, + "end": 2565, + "loc": { + "start": { + "line": 114, + "column": 64 + }, + "end": { + "line": 114, + "column": 104 + } + }, + "properties": [ + { + "type": "Property", + "start": 2527, + "end": 2544, + "loc": { + "start": { + "line": 114, + "column": 66 + }, + "end": { + "line": 114, + "column": 83 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2527, + "end": 2531, + "loc": { + "start": { + "line": 114, + "column": 66 + }, + "end": { + "line": 114, + "column": 70 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 2533, + "end": 2544, + "loc": { + "start": { + "line": 114, + "column": 72 + }, + "end": { + "line": 114, + "column": 83 + } + }, + "name": "DELETE_LIKE" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 2546, + "end": 2552, + "loc": { + "start": { + "line": 114, + "column": 85 + }, + "end": { + "line": 114, + "column": 91 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 2546, + "end": 2552, + "loc": { + "start": { + "line": 114, + "column": 85 + }, + "end": { + "line": 114, + "column": 91 + } + }, + "name": "postID" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 2546, + "end": 2552, + "loc": { + "start": { + "line": 114, + "column": 85 + }, + "end": { + "line": 114, + "column": 91 + } + }, + "name": "postID" + } + }, + { + "type": "Property", + "start": 2554, + "end": 2562, + "loc": { + "start": { + "line": 114, + "column": 93 + }, + "end": { + "line": 114, + "column": 101 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 2554, + "end": 2562, + "loc": { + "start": { + "line": 114, + "column": 93 + }, + "end": { + "line": 114, + "column": 101 + } + }, + "name": "response" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 2554, + "end": 2562, + "loc": { + "start": { + "line": 114, + "column": 93 + }, + "end": { + "line": 114, + "column": 101 + } + }, + "name": "response" + } + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _handleDeleteLikeResponse\n * @param postID\n * @param response\n * @private\n ", + "start": 2376, + "end": 2460, + "loc": { + "start": { + "line": 108, + "column": 0 + }, + "end": { + "line": 113, + "column": 3 + } + }, + "range": [ + 2376, + 2460 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * deleteLike\n * Removes like (unlikes) for a user and a post\n * @param postID post id\n * @returns {Function}\n ", + "start": 2568, + "end": 2685, + "loc": { + "start": { + "line": 116, + "column": 0 + }, + "end": { + "line": 121, + "column": 3 + } + }, + "range": [ + 2568, + 2685 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _handleDeleteLikeResponse\n * @param postID\n * @param response\n * @private\n ", + "start": 2376, + "end": 2460, + "loc": { + "start": { + "line": 108, + "column": 0 + }, + "end": { + "line": 113, + "column": 3 + } + }, + "range": [ + 2376, + 2460 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * deleteLike\n * Removes like (unlikes) for a user and a post\n * @param postID post id\n * @returns {Function}\n ", + "start": 2568, + "end": 2685, + "loc": { + "start": { + "line": 116, + "column": 0 + }, + "end": { + "line": 121, + "column": 3 + } + }, + "range": [ + 2568, + 2685 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 2686, + "end": 3227, + "loc": { + "start": { + "line": 122, + "column": 0 + }, + "end": { + "line": 138, + "column": 1 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 2693, + "end": 3227, + "loc": { + "start": { + "line": 122, + "column": 7 + }, + "end": { + "line": 138, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 2702, + "end": 2712, + "loc": { + "start": { + "line": 122, + "column": 16 + }, + "end": { + "line": 122, + "column": 26 + } + }, + "name": "deleteLike", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2713, + "end": 2719, + "loc": { + "start": { + "line": 122, + "column": 27 + }, + "end": { + "line": 122, + "column": 33 + } + }, + "name": "postID" + } + ], + "body": { + "type": "BlockStatement", + "start": 2721, + "end": 3227, + "loc": { + "start": { + "line": 122, + "column": 35 + }, + "end": { + "line": 138, + "column": 1 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 2727, + "end": 3225, + "loc": { + "start": { + "line": 123, + "column": 4 + }, + "end": { + "line": 137, + "column": 5 + } + }, + "argument": { + "type": "ArrowFunctionExpression", + "start": 2734, + "end": 3225, + "loc": { + "start": { + "line": 123, + "column": 11 + }, + "end": { + "line": 137, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2735, + "end": 2743, + "loc": { + "start": { + "line": 123, + "column": 12 + }, + "end": { + "line": 123, + "column": 20 + } + }, + "name": "dispatch" + }, + { + "type": "Identifier", + "start": 2745, + "end": 2753, + "loc": { + "start": { + "line": 123, + "column": 22 + }, + "end": { + "line": 123, + "column": 30 + } + }, + "name": "getState" + } + ], + "body": { + "type": "BlockStatement", + "start": 2758, + "end": 3225, + "loc": { + "start": { + "line": 123, + "column": 35 + }, + "end": { + "line": 137, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 2768, + "end": 2810, + "loc": { + "start": { + "line": 124, + "column": 8 + }, + "end": { + "line": 124, + "column": 50 + } + }, + "expression": { + "type": "CallExpression", + "start": 2768, + "end": 2810, + "loc": { + "start": { + "line": 124, + "column": 8 + }, + "end": { + "line": 124, + "column": 50 + } + }, + "callee": { + "type": "Identifier", + "start": 2768, + "end": 2776, + "loc": { + "start": { + "line": 124, + "column": 8 + }, + "end": { + "line": 124, + "column": 16 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 2777, + "end": 2809, + "loc": { + "start": { + "line": 124, + "column": 17 + }, + "end": { + "line": 124, + "column": 49 + } + }, + "callee": { + "type": "Identifier", + "start": 2777, + "end": 2801, + "loc": { + "start": { + "line": 124, + "column": 17 + }, + "end": { + "line": 124, + "column": 41 + } + }, + "name": "_handleDeleteLikeRequest" + }, + "arguments": [ + { + "type": "Identifier", + "start": 2802, + "end": 2808, + "loc": { + "start": { + "line": 124, + "column": 42 + }, + "end": { + "line": 124, + "column": 48 + } + }, + "name": "postID" + } + ] + } + ] + } + }, + { + "type": "VariableDeclaration", + "start": 2819, + "end": 2915, + "loc": { + "start": { + "line": 125, + "column": 8 + }, + "end": { + "line": 128, + "column": 9 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 2825, + "end": 2915, + "loc": { + "start": { + "line": 125, + "column": 14 + }, + "end": { + "line": 128, + "column": 9 + } + }, + "id": { + "type": "Identifier", + "start": 2825, + "end": 2829, + "loc": { + "start": { + "line": 125, + "column": 14 + }, + "end": { + "line": 125, + "column": 18 + } + }, + "name": "data" + }, + "init": { + "type": "ObjectExpression", + "start": 2832, + "end": 2915, + "loc": { + "start": { + "line": 125, + "column": 21 + }, + "end": { + "line": 128, + "column": 9 + } + }, + "properties": [ + { + "type": "Property", + "start": 2846, + "end": 2873, + "loc": { + "start": { + "line": 126, + "column": 12 + }, + "end": { + "line": 126, + "column": 39 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2846, + "end": 2853, + "loc": { + "start": { + "line": 126, + "column": 12 + }, + "end": { + "line": 126, + "column": 19 + } + }, + "name": "user_id" + }, + "value": { + "type": "MemberExpression", + "start": 2855, + "end": 2873, + "loc": { + "start": { + "line": 126, + "column": 21 + }, + "end": { + "line": 126, + "column": 39 + } + }, + "object": { + "type": "MemberExpression", + "start": 2855, + "end": 2870, + "loc": { + "start": { + "line": 126, + "column": 21 + }, + "end": { + "line": 126, + "column": 36 + } + }, + "object": { + "type": "CallExpression", + "start": 2855, + "end": 2865, + "loc": { + "start": { + "line": 126, + "column": 21 + }, + "end": { + "line": 126, + "column": 31 + } + }, + "callee": { + "type": "Identifier", + "start": 2855, + "end": 2863, + "loc": { + "start": { + "line": 126, + "column": 21 + }, + "end": { + "line": 126, + "column": 29 + } + }, + "name": "getState" + }, + "arguments": [] + }, + "property": { + "type": "Identifier", + "start": 2866, + "end": 2870, + "loc": { + "start": { + "line": 126, + "column": 32 + }, + "end": { + "line": 126, + "column": 36 + } + }, + "name": "User" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2871, + "end": 2873, + "loc": { + "start": { + "line": 126, + "column": 37 + }, + "end": { + "line": 126, + "column": 39 + } + }, + "name": "id" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 2887, + "end": 2904, + "loc": { + "start": { + "line": 127, + "column": 12 + }, + "end": { + "line": 127, + "column": 29 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2887, + "end": 2896, + "loc": { + "start": { + "line": 127, + "column": 12 + }, + "end": { + "line": 127, + "column": 21 + } + }, + "name": "upload_id" + }, + "value": { + "type": "Identifier", + "start": 2898, + "end": 2904, + "loc": { + "start": { + "line": 127, + "column": 23 + }, + "end": { + "line": 127, + "column": 29 + } + }, + "name": "postID" + }, + "kind": "init" + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "ExpressionStatement", + "start": 2924, + "end": 3219, + "loc": { + "start": { + "line": 129, + "column": 8 + }, + "end": { + "line": 136, + "column": 10 + } + }, + "expression": { + "type": "CallExpression", + "start": 2924, + "end": 3219, + "loc": { + "start": { + "line": 129, + "column": 8 + }, + "end": { + "line": 136, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2924, + "end": 3133, + "loc": { + "start": { + "line": 129, + "column": 8 + }, + "end": { + "line": 134, + "column": 13 + } + }, + "object": { + "type": "CallExpression", + "start": 2924, + "end": 3119, + "loc": { + "start": { + "line": 129, + "column": 8 + }, + "end": { + "line": 133, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2924, + "end": 2936, + "loc": { + "start": { + "line": 129, + "column": 8 + }, + "end": { + "line": 129, + "column": 20 + } + }, + "object": { + "type": "Identifier", + "start": 2924, + "end": 2929, + "loc": { + "start": { + "line": 129, + "column": 8 + }, + "end": { + "line": 129, + "column": 13 + } + }, + "name": "axios" + }, + "property": { + "type": "Identifier", + "start": 2930, + "end": 2936, + "loc": { + "start": { + "line": 129, + "column": 14 + }, + "end": { + "line": 129, + "column": 20 + } + }, + "name": "delete" + }, + "computed": false + }, + "arguments": [ + { + "type": "BinaryExpression", + "start": 2937, + "end": 2997, + "loc": { + "start": { + "line": 129, + "column": 21 + }, + "end": { + "line": 129, + "column": 81 + } + }, + "left": { + "type": "TemplateLiteral", + "start": 2937, + "end": 2967, + "loc": { + "start": { + "line": 129, + "column": 21 + }, + "end": { + "line": 129, + "column": 51 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 2940, + "end": 2958, + "loc": { + "start": { + "line": 129, + "column": 24 + }, + "end": { + "line": 129, + "column": 42 + } + }, + "object": { + "type": "MemberExpression", + "start": 2940, + "end": 2950, + "loc": { + "start": { + "line": 129, + "column": 24 + }, + "end": { + "line": 129, + "column": 34 + } + }, + "object": { + "type": "Identifier", + "start": 2940, + "end": 2946, + "loc": { + "start": { + "line": 129, + "column": 24 + }, + "end": { + "line": 129, + "column": 30 + } + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 2947, + "end": 2950, + "loc": { + "start": { + "line": 129, + "column": 31 + }, + "end": { + "line": 129, + "column": 34 + } + }, + "name": "api" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2951, + "end": 2958, + "loc": { + "start": { + "line": 129, + "column": 35 + }, + "end": { + "line": 129, + "column": 42 + } + }, + "name": "baseUrl" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 2938, + "end": 2938, + "loc": { + "start": { + "line": 129, + "column": 22 + }, + "end": { + "line": 129, + "column": 22 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 2959, + "end": 2966, + "loc": { + "start": { + "line": 129, + "column": 43 + }, + "end": { + "line": 129, + "column": 50 + } + }, + "value": { + "raw": "/likes?", + "cooked": "/likes?" + }, + "tail": true + } + ] + }, + "operator": "+", + "right": { + "type": "CallExpression", + "start": 2970, + "end": 2997, + "loc": { + "start": { + "line": 129, + "column": 54 + }, + "end": { + "line": 129, + "column": 81 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2970, + "end": 2991, + "loc": { + "start": { + "line": 129, + "column": 54 + }, + "end": { + "line": 129, + "column": 75 + } + }, + "object": { + "type": "Identifier", + "start": 2970, + "end": 2981, + "loc": { + "start": { + "line": 129, + "column": 54 + }, + "end": { + "line": 129, + "column": 65 + } + }, + "name": "querystring" + }, + "property": { + "type": "Identifier", + "start": 2982, + "end": 2991, + "loc": { + "start": { + "line": 129, + "column": 66 + }, + "end": { + "line": 129, + "column": 75 + } + }, + "name": "stringify" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 2992, + "end": 2996, + "loc": { + "start": { + "line": 129, + "column": 76 + }, + "end": { + "line": 129, + "column": 80 + } + }, + "name": "data" + } + ] + } + }, + { + "type": "ObjectExpression", + "start": 2999, + "end": 3118, + "loc": { + "start": { + "line": 129, + "column": 83 + }, + "end": { + "line": 133, + "column": 9 + } + }, + "properties": [ + { + "type": "Property", + "start": 3013, + "end": 3108, + "loc": { + "start": { + "line": 130, + "column": 12 + }, + "end": { + "line": 132, + "column": 13 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3013, + "end": 3020, + "loc": { + "start": { + "line": 130, + "column": 12 + }, + "end": { + "line": 130, + "column": 19 + } + }, + "name": "headers" + }, + "value": { + "type": "ObjectExpression", + "start": 3022, + "end": 3108, + "loc": { + "start": { + "line": 130, + "column": 21 + }, + "end": { + "line": 132, + "column": 13 + } + }, + "properties": [ + { + "type": "Property", + "start": 3040, + "end": 3094, + "loc": { + "start": { + "line": 131, + "column": 16 + }, + "end": { + "line": 131, + "column": 70 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3040, + "end": 3053, + "loc": { + "start": { + "line": 131, + "column": 16 + }, + "end": { + "line": 131, + "column": 29 + } + }, + "name": "Authorization" + }, + "value": { + "type": "TemplateLiteral", + "start": 3055, + "end": 3094, + "loc": { + "start": { + "line": 131, + "column": 31 + }, + "end": { + "line": 131, + "column": 70 + } + }, + "expressions": [ + { + "type": "CallExpression", + "start": 3065, + "end": 3092, + "loc": { + "start": { + "line": 131, + "column": 41 + }, + "end": { + "line": 131, + "column": 68 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3065, + "end": 3085, + "loc": { + "start": { + "line": 131, + "column": 41 + }, + "end": { + "line": 131, + "column": 61 + } + }, + "object": { + "type": "Identifier", + "start": 3065, + "end": 3077, + "loc": { + "start": { + "line": 131, + "column": 41 + }, + "end": { + "line": 131, + "column": 53 + } + }, + "name": "localStorage" + }, + "property": { + "type": "Identifier", + "start": 3078, + "end": 3085, + "loc": { + "start": { + "line": 131, + "column": 54 + }, + "end": { + "line": 131, + "column": 61 + } + }, + "name": "getItem" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 3086, + "end": 3091, + "loc": { + "start": { + "line": 131, + "column": 62 + }, + "end": { + "line": 131, + "column": 67 + } + }, + "value": "jwt", + "rawValue": "jwt", + "raw": "'jwt'" + } + ] + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 3056, + "end": 3063, + "loc": { + "start": { + "line": 131, + "column": 32 + }, + "end": { + "line": 131, + "column": 39 + } + }, + "value": { + "raw": "Bearer ", + "cooked": "Bearer " + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 3093, + "end": 3093, + "loc": { + "start": { + "line": 131, + "column": 69 + }, + "end": { + "line": 131, + "column": 69 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + }, + "kind": "init" + } + ] + }, + "kind": "init" + } + ] + } + ] + }, + "property": { + "type": "Identifier", + "start": 3129, + "end": 3133, + "loc": { + "start": { + "line": 134, + "column": 9 + }, + "end": { + "line": 134, + "column": 13 + } + }, + "name": "then" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 3134, + "end": 3218, + "loc": { + "start": { + "line": 134, + "column": 14 + }, + "end": { + "line": 136, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 3134, + "end": 3137, + "loc": { + "start": { + "line": 134, + "column": 14 + }, + "end": { + "line": 134, + "column": 17 + } + }, + "name": "res" + } + ], + "body": { + "type": "BlockStatement", + "start": 3141, + "end": 3218, + "loc": { + "start": { + "line": 134, + "column": 21 + }, + "end": { + "line": 136, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 3155, + "end": 3208, + "loc": { + "start": { + "line": 135, + "column": 12 + }, + "end": { + "line": 135, + "column": 65 + } + }, + "expression": { + "type": "CallExpression", + "start": 3155, + "end": 3208, + "loc": { + "start": { + "line": 135, + "column": 12 + }, + "end": { + "line": 135, + "column": 65 + } + }, + "callee": { + "type": "Identifier", + "start": 3155, + "end": 3163, + "loc": { + "start": { + "line": 135, + "column": 12 + }, + "end": { + "line": 135, + "column": 20 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 3164, + "end": 3207, + "loc": { + "start": { + "line": 135, + "column": 21 + }, + "end": { + "line": 135, + "column": 64 + } + }, + "callee": { + "type": "Identifier", + "start": 3164, + "end": 3189, + "loc": { + "start": { + "line": 135, + "column": 21 + }, + "end": { + "line": 135, + "column": 46 + } + }, + "name": "_handleDeleteLikeResponse" + }, + "arguments": [ + { + "type": "Identifier", + "start": 3190, + "end": 3196, + "loc": { + "start": { + "line": 135, + "column": 47 + }, + "end": { + "line": 135, + "column": 53 + } + }, + "name": "postID" + }, + { + "type": "MemberExpression", + "start": 3198, + "end": 3206, + "loc": { + "start": { + "line": 135, + "column": 55 + }, + "end": { + "line": 135, + "column": 63 + } + }, + "object": { + "type": "Identifier", + "start": 3198, + "end": 3201, + "loc": { + "start": { + "line": 135, + "column": 55 + }, + "end": { + "line": 135, + "column": 58 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 3202, + "end": 3206, + "loc": { + "start": { + "line": 135, + "column": 59 + }, + "end": { + "line": 135, + "column": 63 + } + }, + "name": "data" + }, + "computed": false + } + ] + } + ] + } + } + ] + } + } + ] + } + } + ] + } + } + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * deleteLike\n * Removes like (unlikes) for a user and a post\n * @param postID post id\n * @returns {Function}\n ", + "start": 2568, + "end": 2685, + "loc": { + "start": { + "line": 116, + "column": 0 + }, + "end": { + "line": 121, + "column": 3 + } + }, + "range": [ + 2568, + 2685 + ] + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * deleteLike\n * Removes like (unlikes) for a user and a post\n * @param postID post id\n * @returns {Function}\n ", + "start": 2568, + "end": 2685, + "loc": { + "start": { + "line": 116, + "column": 0 + }, + "end": { + "line": 121, + "column": 3 + } + }, + "range": [ + 2568, + 2685 + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/actions/Location.js.json b/app/docs/ast/source/actions/Location.js.json new file mode 100644 index 0000000..cc731a4 --- /dev/null +++ b/app/docs/ast/source/actions/Location.js.json @@ -0,0 +1,2097 @@ +{ + "type": "Program", + "start": 0, + "end": 988, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 46, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 30, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 30 + } + }, + "specifiers": [ + { + "type": "ImportNamespaceSpecifier", + "start": 7, + "end": 17, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 17 + } + }, + "local": { + "type": "Identifier", + "start": 12, + "end": 17, + "loc": { + "start": { + "line": 1, + "column": 12 + }, + "end": { + "line": 1, + "column": 17 + } + }, + "name": "axios" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 23, + "end": 30, + "loc": { + "start": { + "line": 1, + "column": 23 + }, + "end": { + "line": 1, + "column": 30 + } + }, + "value": "axios", + "rawValue": "axios", + "raw": "'axios'" + } + }, + { + "type": "ImportDeclaration", + "start": 31, + "end": 58, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 27 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 38, + "end": 44, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "local": { + "type": "Identifier", + "start": 38, + "end": 44, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "name": "config" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 50, + "end": 58, + "loc": { + "start": { + "line": 2, + "column": 19 + }, + "end": { + "line": 2, + "column": 27 + } + }, + "value": "config", + "rawValue": "config", + "raw": "'config'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * LOAD\n * @type {string}\n ", + "start": 60, + "end": 93, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + }, + "range": [ + 60, + 93 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 94, + "end": 129, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 35 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 101, + "end": 129, + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 35 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 107, + "end": 129, + "loc": { + "start": { + "line": 8, + "column": 13 + }, + "end": { + "line": 8, + "column": 35 + } + }, + "id": { + "type": "Identifier", + "start": 107, + "end": 111, + "loc": { + "start": { + "line": 8, + "column": 13 + }, + "end": { + "line": 8, + "column": 17 + } + }, + "name": "LOAD", + "leadingComments": null + }, + "init": { + "type": "Literal", + "start": 114, + "end": 129, + "loc": { + "start": { + "line": 8, + "column": 20 + }, + "end": { + "line": 8, + "column": 35 + } + }, + "value": "LOCATION_LOAD", + "rawValue": "LOCATION_LOAD", + "raw": "'LOCATION_LOAD'", + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * LOAD\n * @type {string}\n ", + "start": 60, + "end": 93, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + }, + "range": [ + 60, + 93 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _loadRequest\n * @param location\n * @private\n ", + "start": 131, + "end": 185, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + }, + "range": [ + 131, + 185 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * LOAD\n * @type {string}\n ", + "start": 60, + "end": 93, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + }, + "range": [ + 60, + 93 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _loadRequest\n * @param location\n * @private\n ", + "start": 131, + "end": 185, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + }, + "range": [ + 131, + 185 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 186, + "end": 255, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 15, + "column": 69 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 193, + "end": 255, + "loc": { + "start": { + "line": 15, + "column": 7 + }, + "end": { + "line": 15, + "column": 69 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 199, + "end": 255, + "loc": { + "start": { + "line": 15, + "column": 13 + }, + "end": { + "line": 15, + "column": 69 + } + }, + "id": { + "type": "Identifier", + "start": 199, + "end": 211, + "loc": { + "start": { + "line": 15, + "column": 13 + }, + "end": { + "line": 15, + "column": 25 + } + }, + "name": "_loadRequest", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 214, + "end": 255, + "loc": { + "start": { + "line": 15, + "column": 28 + }, + "end": { + "line": 15, + "column": 69 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 215, + "end": 223, + "loc": { + "start": { + "line": 15, + "column": 29 + }, + "end": { + "line": 15, + "column": 37 + } + }, + "name": "location" + } + ], + "body": { + "type": "ObjectExpression", + "start": 229, + "end": 254, + "loc": { + "start": { + "line": 15, + "column": 43 + }, + "end": { + "line": 15, + "column": 68 + } + }, + "properties": [ + { + "type": "Property", + "start": 231, + "end": 241, + "loc": { + "start": { + "line": 15, + "column": 45 + }, + "end": { + "line": 15, + "column": 55 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 231, + "end": 235, + "loc": { + "start": { + "line": 15, + "column": 45 + }, + "end": { + "line": 15, + "column": 49 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 237, + "end": 241, + "loc": { + "start": { + "line": 15, + "column": 51 + }, + "end": { + "line": 15, + "column": 55 + } + }, + "name": "LOAD" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 243, + "end": 251, + "loc": { + "start": { + "line": 15, + "column": 57 + }, + "end": { + "line": 15, + "column": 65 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 243, + "end": 251, + "loc": { + "start": { + "line": 15, + "column": 57 + }, + "end": { + "line": 15, + "column": 65 + } + }, + "name": "location" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 243, + "end": 251, + "loc": { + "start": { + "line": 15, + "column": 57 + }, + "end": { + "line": 15, + "column": 65 + } + }, + "name": "location" + } + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _loadRequest\n * @param location\n * @private\n ", + "start": 131, + "end": 185, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + }, + "range": [ + 131, + 185 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _loadResponse\n * @param location\n * @param response\n * @private\n ", + "start": 257, + "end": 331, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 22, + "column": 3 + } + }, + "range": [ + 257, + 331 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _loadRequest\n * @param location\n * @private\n ", + "start": 131, + "end": 185, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + }, + "range": [ + 131, + 185 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _loadResponse\n * @param location\n * @param response\n * @private\n ", + "start": 257, + "end": 331, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 22, + "column": 3 + } + }, + "range": [ + 257, + 331 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 332, + "end": 422, + "loc": { + "start": { + "line": 23, + "column": 0 + }, + "end": { + "line": 23, + "column": 90 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 339, + "end": 422, + "loc": { + "start": { + "line": 23, + "column": 7 + }, + "end": { + "line": 23, + "column": 90 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 345, + "end": 422, + "loc": { + "start": { + "line": 23, + "column": 13 + }, + "end": { + "line": 23, + "column": 90 + } + }, + "id": { + "type": "Identifier", + "start": 345, + "end": 358, + "loc": { + "start": { + "line": 23, + "column": 13 + }, + "end": { + "line": 23, + "column": 26 + } + }, + "name": "_loadResponse", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 361, + "end": 422, + "loc": { + "start": { + "line": 23, + "column": 29 + }, + "end": { + "line": 23, + "column": 90 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 362, + "end": 370, + "loc": { + "start": { + "line": 23, + "column": 30 + }, + "end": { + "line": 23, + "column": 38 + } + }, + "name": "location" + }, + { + "type": "Identifier", + "start": 372, + "end": 380, + "loc": { + "start": { + "line": 23, + "column": 40 + }, + "end": { + "line": 23, + "column": 48 + } + }, + "name": "response" + } + ], + "body": { + "type": "ObjectExpression", + "start": 386, + "end": 421, + "loc": { + "start": { + "line": 23, + "column": 54 + }, + "end": { + "line": 23, + "column": 89 + } + }, + "properties": [ + { + "type": "Property", + "start": 388, + "end": 398, + "loc": { + "start": { + "line": 23, + "column": 56 + }, + "end": { + "line": 23, + "column": 66 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 388, + "end": 392, + "loc": { + "start": { + "line": 23, + "column": 56 + }, + "end": { + "line": 23, + "column": 60 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 394, + "end": 398, + "loc": { + "start": { + "line": 23, + "column": 62 + }, + "end": { + "line": 23, + "column": 66 + } + }, + "name": "LOAD" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 400, + "end": 408, + "loc": { + "start": { + "line": 23, + "column": 68 + }, + "end": { + "line": 23, + "column": 76 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 400, + "end": 408, + "loc": { + "start": { + "line": 23, + "column": 68 + }, + "end": { + "line": 23, + "column": 76 + } + }, + "name": "location" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 400, + "end": 408, + "loc": { + "start": { + "line": 23, + "column": 68 + }, + "end": { + "line": 23, + "column": 76 + } + }, + "name": "location" + } + }, + { + "type": "Property", + "start": 410, + "end": 418, + "loc": { + "start": { + "line": 23, + "column": 78 + }, + "end": { + "line": 23, + "column": 86 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 410, + "end": 418, + "loc": { + "start": { + "line": 23, + "column": 78 + }, + "end": { + "line": 23, + "column": 86 + } + }, + "name": "response" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 410, + "end": 418, + "loc": { + "start": { + "line": 23, + "column": 78 + }, + "end": { + "line": 23, + "column": 86 + } + }, + "name": "response" + } + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _loadResponse\n * @param location\n * @param response\n * @private\n ", + "start": 257, + "end": 331, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 22, + "column": 3 + } + }, + "range": [ + 257, + 331 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * load\n * Gets data from API for a given location\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param location\n * @returns {Function}\n ", + "start": 424, + "end": 599, + "loc": { + "start": { + "line": 25, + "column": 0 + }, + "end": { + "line": 32, + "column": 3 + } + }, + "range": [ + 424, + 599 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _loadResponse\n * @param location\n * @param response\n * @private\n ", + "start": 257, + "end": 331, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 22, + "column": 3 + } + }, + "range": [ + 257, + 331 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * load\n * Gets data from API for a given location\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param location\n * @returns {Function}\n ", + "start": 424, + "end": 599, + "loc": { + "start": { + "line": 25, + "column": 0 + }, + "end": { + "line": 32, + "column": 3 + } + }, + "range": [ + 424, + 599 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 600, + "end": 987, + "loc": { + "start": { + "line": 33, + "column": 0 + }, + "end": { + "line": 45, + "column": 1 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 607, + "end": 987, + "loc": { + "start": { + "line": 33, + "column": 7 + }, + "end": { + "line": 45, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 616, + "end": 620, + "loc": { + "start": { + "line": 33, + "column": 16 + }, + "end": { + "line": 33, + "column": 20 + } + }, + "name": "load", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 621, + "end": 629, + "loc": { + "start": { + "line": 33, + "column": 21 + }, + "end": { + "line": 33, + "column": 29 + } + }, + "name": "location" + } + ], + "body": { + "type": "BlockStatement", + "start": 631, + "end": 987, + "loc": { + "start": { + "line": 33, + "column": 31 + }, + "end": { + "line": 45, + "column": 1 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 637, + "end": 985, + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 44, + "column": 5 + } + }, + "argument": { + "type": "ArrowFunctionExpression", + "start": 644, + "end": 985, + "loc": { + "start": { + "line": 34, + "column": 11 + }, + "end": { + "line": 44, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 645, + "end": 653, + "loc": { + "start": { + "line": 34, + "column": 12 + }, + "end": { + "line": 34, + "column": 20 + } + }, + "name": "dispatch" + } + ], + "body": { + "type": "BlockStatement", + "start": 658, + "end": 985, + "loc": { + "start": { + "line": 34, + "column": 25 + }, + "end": { + "line": 44, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 668, + "end": 700, + "loc": { + "start": { + "line": 35, + "column": 8 + }, + "end": { + "line": 35, + "column": 40 + } + }, + "expression": { + "type": "CallExpression", + "start": 668, + "end": 700, + "loc": { + "start": { + "line": 35, + "column": 8 + }, + "end": { + "line": 35, + "column": 40 + } + }, + "callee": { + "type": "Identifier", + "start": 668, + "end": 676, + "loc": { + "start": { + "line": 35, + "column": 8 + }, + "end": { + "line": 35, + "column": 16 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 677, + "end": 699, + "loc": { + "start": { + "line": 35, + "column": 17 + }, + "end": { + "line": 35, + "column": 39 + } + }, + "callee": { + "type": "Identifier", + "start": 677, + "end": 689, + "loc": { + "start": { + "line": 35, + "column": 17 + }, + "end": { + "line": 35, + "column": 29 + } + }, + "name": "_loadRequest" + }, + "arguments": [ + { + "type": "Identifier", + "start": 690, + "end": 698, + "loc": { + "start": { + "line": 35, + "column": 30 + }, + "end": { + "line": 35, + "column": 38 + } + }, + "name": "location" + } + ] + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 709, + "end": 979, + "loc": { + "start": { + "line": 36, + "column": 8 + }, + "end": { + "line": 43, + "column": 10 + } + }, + "expression": { + "type": "CallExpression", + "start": 709, + "end": 979, + "loc": { + "start": { + "line": 36, + "column": 8 + }, + "end": { + "line": 43, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 709, + "end": 903, + "loc": { + "start": { + "line": 36, + "column": 8 + }, + "end": { + "line": 41, + "column": 13 + } + }, + "object": { + "type": "CallExpression", + "start": 709, + "end": 889, + "loc": { + "start": { + "line": 36, + "column": 8 + }, + "end": { + "line": 40, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 709, + "end": 718, + "loc": { + "start": { + "line": 36, + "column": 8 + }, + "end": { + "line": 36, + "column": 17 + } + }, + "object": { + "type": "Identifier", + "start": 709, + "end": 714, + "loc": { + "start": { + "line": 36, + "column": 8 + }, + "end": { + "line": 36, + "column": 13 + } + }, + "name": "axios" + }, + "property": { + "type": "Identifier", + "start": 715, + "end": 718, + "loc": { + "start": { + "line": 36, + "column": 14 + }, + "end": { + "line": 36, + "column": 17 + } + }, + "name": "get" + }, + "computed": false + }, + "arguments": [ + { + "type": "TemplateLiteral", + "start": 719, + "end": 766, + "loc": { + "start": { + "line": 36, + "column": 18 + }, + "end": { + "line": 36, + "column": 65 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 722, + "end": 740, + "loc": { + "start": { + "line": 36, + "column": 21 + }, + "end": { + "line": 36, + "column": 39 + } + }, + "object": { + "type": "MemberExpression", + "start": 722, + "end": 732, + "loc": { + "start": { + "line": 36, + "column": 21 + }, + "end": { + "line": 36, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 722, + "end": 728, + "loc": { + "start": { + "line": 36, + "column": 21 + }, + "end": { + "line": 36, + "column": 27 + } + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 729, + "end": 732, + "loc": { + "start": { + "line": 36, + "column": 28 + }, + "end": { + "line": 36, + "column": 31 + } + }, + "name": "api" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 733, + "end": 740, + "loc": { + "start": { + "line": 36, + "column": 32 + }, + "end": { + "line": 36, + "column": 39 + } + }, + "name": "baseUrl" + }, + "computed": false + }, + { + "type": "Identifier", + "start": 756, + "end": 764, + "loc": { + "start": { + "line": 36, + "column": 55 + }, + "end": { + "line": 36, + "column": 63 + } + }, + "name": "location" + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 720, + "end": 720, + "loc": { + "start": { + "line": 36, + "column": 19 + }, + "end": { + "line": 36, + "column": 19 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 741, + "end": 754, + "loc": { + "start": { + "line": 36, + "column": 40 + }, + "end": { + "line": 36, + "column": 53 + } + }, + "value": { + "raw": "/locations?q=", + "cooked": "/locations?q=" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 765, + "end": 765, + "loc": { + "start": { + "line": 36, + "column": 64 + }, + "end": { + "line": 36, + "column": 64 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + }, + { + "type": "ObjectExpression", + "start": 768, + "end": 888, + "loc": { + "start": { + "line": 36, + "column": 67 + }, + "end": { + "line": 40, + "column": 9 + } + }, + "properties": [ + { + "type": "Property", + "start": 782, + "end": 877, + "loc": { + "start": { + "line": 37, + "column": 12 + }, + "end": { + "line": 39, + "column": 13 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 782, + "end": 789, + "loc": { + "start": { + "line": 37, + "column": 12 + }, + "end": { + "line": 37, + "column": 19 + } + }, + "name": "headers" + }, + "value": { + "type": "ObjectExpression", + "start": 791, + "end": 877, + "loc": { + "start": { + "line": 37, + "column": 21 + }, + "end": { + "line": 39, + "column": 13 + } + }, + "properties": [ + { + "type": "Property", + "start": 809, + "end": 863, + "loc": { + "start": { + "line": 38, + "column": 16 + }, + "end": { + "line": 38, + "column": 70 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 809, + "end": 822, + "loc": { + "start": { + "line": 38, + "column": 16 + }, + "end": { + "line": 38, + "column": 29 + } + }, + "name": "Authorization" + }, + "value": { + "type": "TemplateLiteral", + "start": 824, + "end": 863, + "loc": { + "start": { + "line": 38, + "column": 31 + }, + "end": { + "line": 38, + "column": 70 + } + }, + "expressions": [ + { + "type": "CallExpression", + "start": 834, + "end": 861, + "loc": { + "start": { + "line": 38, + "column": 41 + }, + "end": { + "line": 38, + "column": 68 + } + }, + "callee": { + "type": "MemberExpression", + "start": 834, + "end": 854, + "loc": { + "start": { + "line": 38, + "column": 41 + }, + "end": { + "line": 38, + "column": 61 + } + }, + "object": { + "type": "Identifier", + "start": 834, + "end": 846, + "loc": { + "start": { + "line": 38, + "column": 41 + }, + "end": { + "line": 38, + "column": 53 + } + }, + "name": "localStorage" + }, + "property": { + "type": "Identifier", + "start": 847, + "end": 854, + "loc": { + "start": { + "line": 38, + "column": 54 + }, + "end": { + "line": 38, + "column": 61 + } + }, + "name": "getItem" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 855, + "end": 860, + "loc": { + "start": { + "line": 38, + "column": 62 + }, + "end": { + "line": 38, + "column": 67 + } + }, + "value": "jwt", + "rawValue": "jwt", + "raw": "'jwt'" + } + ] + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 825, + "end": 832, + "loc": { + "start": { + "line": 38, + "column": 32 + }, + "end": { + "line": 38, + "column": 39 + } + }, + "value": { + "raw": "Bearer ", + "cooked": "Bearer " + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 862, + "end": 862, + "loc": { + "start": { + "line": 38, + "column": 69 + }, + "end": { + "line": 38, + "column": 69 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + }, + "kind": "init" + } + ] + }, + "kind": "init" + } + ] + } + ] + }, + "property": { + "type": "Identifier", + "start": 899, + "end": 903, + "loc": { + "start": { + "line": 41, + "column": 9 + }, + "end": { + "line": 41, + "column": 13 + } + }, + "name": "then" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 904, + "end": 978, + "loc": { + "start": { + "line": 41, + "column": 14 + }, + "end": { + "line": 43, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 904, + "end": 907, + "loc": { + "start": { + "line": 41, + "column": 14 + }, + "end": { + "line": 41, + "column": 17 + } + }, + "name": "res" + } + ], + "body": { + "type": "BlockStatement", + "start": 911, + "end": 978, + "loc": { + "start": { + "line": 41, + "column": 21 + }, + "end": { + "line": 43, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 925, + "end": 968, + "loc": { + "start": { + "line": 42, + "column": 12 + }, + "end": { + "line": 42, + "column": 55 + } + }, + "expression": { + "type": "CallExpression", + "start": 925, + "end": 968, + "loc": { + "start": { + "line": 42, + "column": 12 + }, + "end": { + "line": 42, + "column": 55 + } + }, + "callee": { + "type": "Identifier", + "start": 925, + "end": 933, + "loc": { + "start": { + "line": 42, + "column": 12 + }, + "end": { + "line": 42, + "column": 20 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 934, + "end": 967, + "loc": { + "start": { + "line": 42, + "column": 21 + }, + "end": { + "line": 42, + "column": 54 + } + }, + "callee": { + "type": "Identifier", + "start": 934, + "end": 947, + "loc": { + "start": { + "line": 42, + "column": 21 + }, + "end": { + "line": 42, + "column": 34 + } + }, + "name": "_loadResponse" + }, + "arguments": [ + { + "type": "Identifier", + "start": 948, + "end": 956, + "loc": { + "start": { + "line": 42, + "column": 35 + }, + "end": { + "line": 42, + "column": 43 + } + }, + "name": "location" + }, + { + "type": "MemberExpression", + "start": 958, + "end": 966, + "loc": { + "start": { + "line": 42, + "column": 45 + }, + "end": { + "line": 42, + "column": 53 + } + }, + "object": { + "type": "Identifier", + "start": 958, + "end": 961, + "loc": { + "start": { + "line": 42, + "column": 45 + }, + "end": { + "line": 42, + "column": 48 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 962, + "end": 966, + "loc": { + "start": { + "line": 42, + "column": 49 + }, + "end": { + "line": 42, + "column": 53 + } + }, + "name": "data" + }, + "computed": false + } + ] + } + ] + } + } + ] + } + } + ] + } + } + ] + } + } + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * load\n * Gets data from API for a given location\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param location\n * @returns {Function}\n ", + "start": 424, + "end": 599, + "loc": { + "start": { + "line": 25, + "column": 0 + }, + "end": { + "line": 32, + "column": 3 + } + }, + "range": [ + 424, + 599 + ] + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * load\n * Gets data from API for a given location\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param location\n * @returns {Function}\n ", + "start": 424, + "end": 599, + "loc": { + "start": { + "line": 25, + "column": 0 + }, + "end": { + "line": 32, + "column": 3 + } + }, + "range": [ + 424, + 599 + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/actions/Photo.js.json b/app/docs/ast/source/actions/Photo.js.json new file mode 100644 index 0000000..aa8fd58 --- /dev/null +++ b/app/docs/ast/source/actions/Photo.js.json @@ -0,0 +1,2344 @@ +{ + "type": "Program", + "start": 0, + "end": 1181, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 54, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 30, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 30 + } + }, + "specifiers": [ + { + "type": "ImportNamespaceSpecifier", + "start": 7, + "end": 17, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 17 + } + }, + "local": { + "type": "Identifier", + "start": 12, + "end": 17, + "loc": { + "start": { + "line": 1, + "column": 12 + }, + "end": { + "line": 1, + "column": 17 + } + }, + "name": "axios" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 23, + "end": 30, + "loc": { + "start": { + "line": 1, + "column": 23 + }, + "end": { + "line": 1, + "column": 30 + } + }, + "value": "axios", + "rawValue": "axios", + "raw": "'axios'" + } + }, + { + "type": "ImportDeclaration", + "start": 31, + "end": 58, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 27 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 38, + "end": 44, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "local": { + "type": "Identifier", + "start": 38, + "end": 44, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "name": "config" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 50, + "end": 58, + "loc": { + "start": { + "line": 2, + "column": 19 + }, + "end": { + "line": 2, + "column": 27 + } + }, + "value": "config", + "rawValue": "config", + "raw": "'config'" + } + }, + { + "type": "ImportDeclaration", + "start": 60, + "end": 142, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 7, + "column": 16 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 73, + "end": 92, + "loc": { + "start": { + "line": 5, + "column": 4 + }, + "end": { + "line": 5, + "column": 23 + } + }, + "imported": { + "type": "Identifier", + "start": 73, + "end": 77, + "loc": { + "start": { + "line": 5, + "column": 4 + }, + "end": { + "line": 5, + "column": 8 + } + }, + "name": "Like" + }, + "local": { + "type": "Identifier", + "start": 81, + "end": 92, + "loc": { + "start": { + "line": 5, + "column": 12 + }, + "end": { + "line": 5, + "column": 23 + } + }, + "name": "LikeActions" + } + }, + { + "type": "ImportSpecifier", + "start": 98, + "end": 124, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 6, + "column": 30 + } + }, + "imported": { + "type": "Identifier", + "start": 98, + "end": 106, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 6, + "column": 12 + } + }, + "name": "Comments" + }, + "local": { + "type": "Identifier", + "start": 110, + "end": 124, + "loc": { + "start": { + "line": 6, + "column": 16 + }, + "end": { + "line": 6, + "column": 30 + } + }, + "name": "CommentActions" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 133, + "end": 142, + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 16 + } + }, + "value": "actions", + "rawValue": "actions", + "raw": "'actions'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * LOAD\n * @type {string}\n ", + "start": 144, + "end": 177, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + }, + "range": [ + 144, + 177 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 178, + "end": 210, + "loc": { + "start": { + "line": 13, + "column": 0 + }, + "end": { + "line": 13, + "column": 32 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 185, + "end": 210, + "loc": { + "start": { + "line": 13, + "column": 7 + }, + "end": { + "line": 13, + "column": 32 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 191, + "end": 210, + "loc": { + "start": { + "line": 13, + "column": 13 + }, + "end": { + "line": 13, + "column": 32 + } + }, + "id": { + "type": "Identifier", + "start": 191, + "end": 195, + "loc": { + "start": { + "line": 13, + "column": 13 + }, + "end": { + "line": 13, + "column": 17 + } + }, + "name": "LOAD", + "leadingComments": null + }, + "init": { + "type": "Literal", + "start": 198, + "end": 210, + "loc": { + "start": { + "line": 13, + "column": 20 + }, + "end": { + "line": 13, + "column": 32 + } + }, + "value": "PHOTO_LOAD", + "rawValue": "PHOTO_LOAD", + "raw": "'PHOTO_LOAD'", + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * LOAD\n * @type {string}\n ", + "start": 144, + "end": 177, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + }, + "range": [ + 144, + 177 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _loadRequest\n * @private\n ", + "start": 212, + "end": 247, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 18, + "column": 3 + } + }, + "range": [ + 212, + 247 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * LOAD\n * @type {string}\n ", + "start": 144, + "end": 177, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + }, + "range": [ + 144, + 177 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _loadRequest\n * @private\n ", + "start": 212, + "end": 247, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 18, + "column": 3 + } + }, + "range": [ + 212, + 247 + ] + } + ] + }, + { + "type": "VariableDeclaration", + "start": 248, + "end": 292, + "loc": { + "start": { + "line": 19, + "column": 0 + }, + "end": { + "line": 19, + "column": 44 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 254, + "end": 292, + "loc": { + "start": { + "line": 19, + "column": 6 + }, + "end": { + "line": 19, + "column": 44 + } + }, + "id": { + "type": "Identifier", + "start": 254, + "end": 266, + "loc": { + "start": { + "line": 19, + "column": 6 + }, + "end": { + "line": 19, + "column": 18 + } + }, + "name": "_loadRequest", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 269, + "end": 292, + "loc": { + "start": { + "line": 19, + "column": 21 + }, + "end": { + "line": 19, + "column": 44 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [], + "body": { + "type": "ObjectExpression", + "start": 276, + "end": 291, + "loc": { + "start": { + "line": 19, + "column": 28 + }, + "end": { + "line": 19, + "column": 43 + } + }, + "properties": [ + { + "type": "Property", + "start": 278, + "end": 288, + "loc": { + "start": { + "line": 19, + "column": 30 + }, + "end": { + "line": 19, + "column": 40 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 278, + "end": 282, + "loc": { + "start": { + "line": 19, + "column": 30 + }, + "end": { + "line": 19, + "column": 34 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 284, + "end": 288, + "loc": { + "start": { + "line": 19, + "column": 36 + }, + "end": { + "line": 19, + "column": 40 + } + }, + "name": "LOAD" + }, + "kind": "init" + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _loadRequest\n * @private\n ", + "start": 212, + "end": 247, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 18, + "column": 3 + } + }, + "range": [ + 212, + 247 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _loadResponse\n * @param response\n * @private\n ", + "start": 294, + "end": 349, + "loc": { + "start": { + "line": 21, + "column": 0 + }, + "end": { + "line": 25, + "column": 3 + } + }, + "range": [ + 294, + 349 + ] + } + ] + }, + { + "type": "VariableDeclaration", + "start": 350, + "end": 413, + "loc": { + "start": { + "line": 26, + "column": 0 + }, + "end": { + "line": 26, + "column": 63 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 356, + "end": 413, + "loc": { + "start": { + "line": 26, + "column": 6 + }, + "end": { + "line": 26, + "column": 63 + } + }, + "id": { + "type": "Identifier", + "start": 356, + "end": 369, + "loc": { + "start": { + "line": 26, + "column": 6 + }, + "end": { + "line": 26, + "column": 19 + } + }, + "name": "_loadResponse", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 372, + "end": 413, + "loc": { + "start": { + "line": 26, + "column": 22 + }, + "end": { + "line": 26, + "column": 63 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 373, + "end": 381, + "loc": { + "start": { + "line": 26, + "column": 23 + }, + "end": { + "line": 26, + "column": 31 + } + }, + "name": "response" + } + ], + "body": { + "type": "ObjectExpression", + "start": 387, + "end": 412, + "loc": { + "start": { + "line": 26, + "column": 37 + }, + "end": { + "line": 26, + "column": 62 + } + }, + "properties": [ + { + "type": "Property", + "start": 389, + "end": 399, + "loc": { + "start": { + "line": 26, + "column": 39 + }, + "end": { + "line": 26, + "column": 49 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 389, + "end": 393, + "loc": { + "start": { + "line": 26, + "column": 39 + }, + "end": { + "line": 26, + "column": 43 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 395, + "end": 399, + "loc": { + "start": { + "line": 26, + "column": 45 + }, + "end": { + "line": 26, + "column": 49 + } + }, + "name": "LOAD" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 401, + "end": 409, + "loc": { + "start": { + "line": 26, + "column": 51 + }, + "end": { + "line": 26, + "column": 59 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 401, + "end": 409, + "loc": { + "start": { + "line": 26, + "column": 51 + }, + "end": { + "line": 26, + "column": 59 + } + }, + "name": "response" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 401, + "end": 409, + "loc": { + "start": { + "line": 26, + "column": 51 + }, + "end": { + "line": 26, + "column": 59 + } + }, + "name": "response" + } + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _loadResponse\n * @param response\n * @private\n ", + "start": 294, + "end": 349, + "loc": { + "start": { + "line": 21, + "column": 0 + }, + "end": { + "line": 25, + "column": 3 + } + }, + "range": [ + 294, + 349 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * load\n * Gets single photo upload from API based on upload id\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param id upload id\n * @returns {Function}\n ", + "start": 415, + "end": 607, + "loc": { + "start": { + "line": 28, + "column": 0 + }, + "end": { + "line": 35, + "column": 3 + } + }, + "range": [ + 415, + 607 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 608, + "end": 1180, + "loc": { + "start": { + "line": 36, + "column": 0 + }, + "end": { + "line": 53, + "column": 1 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 615, + "end": 1180, + "loc": { + "start": { + "line": 36, + "column": 7 + }, + "end": { + "line": 53, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 624, + "end": 628, + "loc": { + "start": { + "line": 36, + "column": 16 + }, + "end": { + "line": 36, + "column": 20 + } + }, + "name": "load", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 629, + "end": 631, + "loc": { + "start": { + "line": 36, + "column": 21 + }, + "end": { + "line": 36, + "column": 23 + } + }, + "name": "id" + } + ], + "body": { + "type": "BlockStatement", + "start": 633, + "end": 1180, + "loc": { + "start": { + "line": 36, + "column": 25 + }, + "end": { + "line": 53, + "column": 1 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 639, + "end": 1178, + "loc": { + "start": { + "line": 37, + "column": 4 + }, + "end": { + "line": 52, + "column": 5 + } + }, + "argument": { + "type": "ArrowFunctionExpression", + "start": 646, + "end": 1178, + "loc": { + "start": { + "line": 37, + "column": 11 + }, + "end": { + "line": 52, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 646, + "end": 654, + "loc": { + "start": { + "line": 37, + "column": 11 + }, + "end": { + "line": 37, + "column": 19 + } + }, + "name": "dispatch" + } + ], + "body": { + "type": "BlockStatement", + "start": 658, + "end": 1178, + "loc": { + "start": { + "line": 37, + "column": 23 + }, + "end": { + "line": 52, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 668, + "end": 1172, + "loc": { + "start": { + "line": 38, + "column": 8 + }, + "end": { + "line": 51, + "column": 10 + } + }, + "argument": { + "type": "NewExpression", + "start": 675, + "end": 1172, + "loc": { + "start": { + "line": 38, + "column": 15 + }, + "end": { + "line": 51, + "column": 10 + } + }, + "callee": { + "type": "Identifier", + "start": 679, + "end": 686, + "loc": { + "start": { + "line": 38, + "column": 19 + }, + "end": { + "line": 38, + "column": 26 + } + }, + "name": "Promise" + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 687, + "end": 1171, + "loc": { + "start": { + "line": 38, + "column": 27 + }, + "end": { + "line": 51, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 688, + "end": 695, + "loc": { + "start": { + "line": 38, + "column": 28 + }, + "end": { + "line": 38, + "column": 35 + } + }, + "name": "resolve" + } + ], + "body": { + "type": "BlockStatement", + "start": 700, + "end": 1171, + "loc": { + "start": { + "line": 38, + "column": 40 + }, + "end": { + "line": 51, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 714, + "end": 738, + "loc": { + "start": { + "line": 39, + "column": 12 + }, + "end": { + "line": 39, + "column": 36 + } + }, + "expression": { + "type": "CallExpression", + "start": 714, + "end": 738, + "loc": { + "start": { + "line": 39, + "column": 12 + }, + "end": { + "line": 39, + "column": 36 + } + }, + "callee": { + "type": "Identifier", + "start": 714, + "end": 722, + "loc": { + "start": { + "line": 39, + "column": 12 + }, + "end": { + "line": 39, + "column": 20 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 723, + "end": 737, + "loc": { + "start": { + "line": 39, + "column": 21 + }, + "end": { + "line": 39, + "column": 35 + } + }, + "callee": { + "type": "Identifier", + "start": 723, + "end": 735, + "loc": { + "start": { + "line": 39, + "column": 21 + }, + "end": { + "line": 39, + "column": 33 + } + }, + "name": "_loadRequest" + }, + "arguments": [] + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 751, + "end": 1161, + "loc": { + "start": { + "line": 40, + "column": 12 + }, + "end": { + "line": 50, + "column": 14 + } + }, + "expression": { + "type": "CallExpression", + "start": 751, + "end": 1161, + "loc": { + "start": { + "line": 40, + "column": 12 + }, + "end": { + "line": 50, + "column": 14 + } + }, + "callee": { + "type": "MemberExpression", + "start": 751, + "end": 957, + "loc": { + "start": { + "line": 40, + "column": 12 + }, + "end": { + "line": 45, + "column": 17 + } + }, + "object": { + "type": "CallExpression", + "start": 751, + "end": 939, + "loc": { + "start": { + "line": 40, + "column": 12 + }, + "end": { + "line": 44, + "column": 14 + } + }, + "callee": { + "type": "MemberExpression", + "start": 751, + "end": 760, + "loc": { + "start": { + "line": 40, + "column": 12 + }, + "end": { + "line": 40, + "column": 21 + } + }, + "object": { + "type": "Identifier", + "start": 751, + "end": 756, + "loc": { + "start": { + "line": 40, + "column": 12 + }, + "end": { + "line": 40, + "column": 17 + } + }, + "name": "axios" + }, + "property": { + "type": "Identifier", + "start": 757, + "end": 760, + "loc": { + "start": { + "line": 40, + "column": 18 + }, + "end": { + "line": 40, + "column": 21 + } + }, + "name": "get" + }, + "computed": false + }, + "arguments": [ + { + "type": "TemplateLiteral", + "start": 761, + "end": 800, + "loc": { + "start": { + "line": 40, + "column": 22 + }, + "end": { + "line": 40, + "column": 61 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 764, + "end": 782, + "loc": { + "start": { + "line": 40, + "column": 25 + }, + "end": { + "line": 40, + "column": 43 + } + }, + "object": { + "type": "MemberExpression", + "start": 764, + "end": 774, + "loc": { + "start": { + "line": 40, + "column": 25 + }, + "end": { + "line": 40, + "column": 35 + } + }, + "object": { + "type": "Identifier", + "start": 764, + "end": 770, + "loc": { + "start": { + "line": 40, + "column": 25 + }, + "end": { + "line": 40, + "column": 31 + } + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 771, + "end": 774, + "loc": { + "start": { + "line": 40, + "column": 32 + }, + "end": { + "line": 40, + "column": 35 + } + }, + "name": "api" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 775, + "end": 782, + "loc": { + "start": { + "line": 40, + "column": 36 + }, + "end": { + "line": 40, + "column": 43 + } + }, + "name": "baseUrl" + }, + "computed": false + }, + { + "type": "Identifier", + "start": 796, + "end": 798, + "loc": { + "start": { + "line": 40, + "column": 57 + }, + "end": { + "line": 40, + "column": 59 + } + }, + "name": "id" + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 762, + "end": 762, + "loc": { + "start": { + "line": 40, + "column": 23 + }, + "end": { + "line": 40, + "column": 23 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 783, + "end": 794, + "loc": { + "start": { + "line": 40, + "column": 44 + }, + "end": { + "line": 40, + "column": 55 + } + }, + "value": { + "raw": "/upload?id=", + "cooked": "/upload?id=" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 799, + "end": 799, + "loc": { + "start": { + "line": 40, + "column": 60 + }, + "end": { + "line": 40, + "column": 60 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + }, + { + "type": "ObjectExpression", + "start": 802, + "end": 938, + "loc": { + "start": { + "line": 40, + "column": 63 + }, + "end": { + "line": 44, + "column": 13 + } + }, + "properties": [ + { + "type": "Property", + "start": 820, + "end": 923, + "loc": { + "start": { + "line": 41, + "column": 16 + }, + "end": { + "line": 43, + "column": 17 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 820, + "end": 827, + "loc": { + "start": { + "line": 41, + "column": 16 + }, + "end": { + "line": 41, + "column": 23 + } + }, + "name": "headers" + }, + "value": { + "type": "ObjectExpression", + "start": 829, + "end": 923, + "loc": { + "start": { + "line": 41, + "column": 25 + }, + "end": { + "line": 43, + "column": 17 + } + }, + "properties": [ + { + "type": "Property", + "start": 851, + "end": 905, + "loc": { + "start": { + "line": 42, + "column": 20 + }, + "end": { + "line": 42, + "column": 74 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 851, + "end": 864, + "loc": { + "start": { + "line": 42, + "column": 20 + }, + "end": { + "line": 42, + "column": 33 + } + }, + "name": "Authorization" + }, + "value": { + "type": "TemplateLiteral", + "start": 866, + "end": 905, + "loc": { + "start": { + "line": 42, + "column": 35 + }, + "end": { + "line": 42, + "column": 74 + } + }, + "expressions": [ + { + "type": "CallExpression", + "start": 876, + "end": 903, + "loc": { + "start": { + "line": 42, + "column": 45 + }, + "end": { + "line": 42, + "column": 72 + } + }, + "callee": { + "type": "MemberExpression", + "start": 876, + "end": 896, + "loc": { + "start": { + "line": 42, + "column": 45 + }, + "end": { + "line": 42, + "column": 65 + } + }, + "object": { + "type": "Identifier", + "start": 876, + "end": 888, + "loc": { + "start": { + "line": 42, + "column": 45 + }, + "end": { + "line": 42, + "column": 57 + } + }, + "name": "localStorage" + }, + "property": { + "type": "Identifier", + "start": 889, + "end": 896, + "loc": { + "start": { + "line": 42, + "column": 58 + }, + "end": { + "line": 42, + "column": 65 + } + }, + "name": "getItem" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 897, + "end": 902, + "loc": { + "start": { + "line": 42, + "column": 66 + }, + "end": { + "line": 42, + "column": 71 + } + }, + "value": "jwt", + "rawValue": "jwt", + "raw": "'jwt'" + } + ] + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 867, + "end": 874, + "loc": { + "start": { + "line": 42, + "column": 36 + }, + "end": { + "line": 42, + "column": 43 + } + }, + "value": { + "raw": "Bearer ", + "cooked": "Bearer " + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 904, + "end": 904, + "loc": { + "start": { + "line": 42, + "column": 73 + }, + "end": { + "line": 42, + "column": 73 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + }, + "kind": "init" + } + ] + }, + "kind": "init" + } + ] + } + ] + }, + "property": { + "type": "Identifier", + "start": 953, + "end": 957, + "loc": { + "start": { + "line": 45, + "column": 13 + }, + "end": { + "line": 45, + "column": 17 + } + }, + "name": "then" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 958, + "end": 1160, + "loc": { + "start": { + "line": 45, + "column": 18 + }, + "end": { + "line": 50, + "column": 13 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 958, + "end": 961, + "loc": { + "start": { + "line": 45, + "column": 18 + }, + "end": { + "line": 45, + "column": 21 + } + }, + "name": "res" + } + ], + "body": { + "type": "BlockStatement", + "start": 965, + "end": 1160, + "loc": { + "start": { + "line": 45, + "column": 25 + }, + "end": { + "line": 50, + "column": 13 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 983, + "end": 1016, + "loc": { + "start": { + "line": 46, + "column": 16 + }, + "end": { + "line": 46, + "column": 49 + } + }, + "expression": { + "type": "CallExpression", + "start": 983, + "end": 1016, + "loc": { + "start": { + "line": 46, + "column": 16 + }, + "end": { + "line": 46, + "column": 49 + } + }, + "callee": { + "type": "Identifier", + "start": 983, + "end": 991, + "loc": { + "start": { + "line": 46, + "column": 16 + }, + "end": { + "line": 46, + "column": 24 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 992, + "end": 1015, + "loc": { + "start": { + "line": 46, + "column": 25 + }, + "end": { + "line": 46, + "column": 48 + } + }, + "callee": { + "type": "Identifier", + "start": 992, + "end": 1005, + "loc": { + "start": { + "line": 46, + "column": 25 + }, + "end": { + "line": 46, + "column": 38 + } + }, + "name": "_loadResponse" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 1006, + "end": 1014, + "loc": { + "start": { + "line": 46, + "column": 39 + }, + "end": { + "line": 46, + "column": 47 + } + }, + "object": { + "type": "Identifier", + "start": 1006, + "end": 1009, + "loc": { + "start": { + "line": 46, + "column": 39 + }, + "end": { + "line": 46, + "column": 42 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 1010, + "end": 1014, + "loc": { + "start": { + "line": 46, + "column": 43 + }, + "end": { + "line": 46, + "column": 47 + } + }, + "name": "data" + }, + "computed": false + } + ] + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 1033, + "end": 1066, + "loc": { + "start": { + "line": 47, + "column": 16 + }, + "end": { + "line": 47, + "column": 49 + } + }, + "expression": { + "type": "CallExpression", + "start": 1033, + "end": 1066, + "loc": { + "start": { + "line": 47, + "column": 16 + }, + "end": { + "line": 47, + "column": 49 + } + }, + "callee": { + "type": "Identifier", + "start": 1033, + "end": 1041, + "loc": { + "start": { + "line": 47, + "column": 16 + }, + "end": { + "line": 47, + "column": 24 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1042, + "end": 1065, + "loc": { + "start": { + "line": 47, + "column": 25 + }, + "end": { + "line": 47, + "column": 48 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1042, + "end": 1061, + "loc": { + "start": { + "line": 47, + "column": 25 + }, + "end": { + "line": 47, + "column": 44 + } + }, + "object": { + "type": "Identifier", + "start": 1042, + "end": 1056, + "loc": { + "start": { + "line": 47, + "column": 25 + }, + "end": { + "line": 47, + "column": 39 + } + }, + "name": "CommentActions" + }, + "property": { + "type": "Identifier", + "start": 1057, + "end": 1061, + "loc": { + "start": { + "line": 47, + "column": 40 + }, + "end": { + "line": 47, + "column": 44 + } + }, + "name": "load" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 1062, + "end": 1064, + "loc": { + "start": { + "line": 47, + "column": 45 + }, + "end": { + "line": 47, + "column": 47 + } + }, + "name": "id" + } + ] + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 1083, + "end": 1113, + "loc": { + "start": { + "line": 48, + "column": 16 + }, + "end": { + "line": 48, + "column": 46 + } + }, + "expression": { + "type": "CallExpression", + "start": 1083, + "end": 1113, + "loc": { + "start": { + "line": 48, + "column": 16 + }, + "end": { + "line": 48, + "column": 46 + } + }, + "callee": { + "type": "Identifier", + "start": 1083, + "end": 1091, + "loc": { + "start": { + "line": 48, + "column": 16 + }, + "end": { + "line": 48, + "column": 24 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1092, + "end": 1112, + "loc": { + "start": { + "line": 48, + "column": 25 + }, + "end": { + "line": 48, + "column": 45 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1092, + "end": 1108, + "loc": { + "start": { + "line": 48, + "column": 25 + }, + "end": { + "line": 48, + "column": 41 + } + }, + "object": { + "type": "Identifier", + "start": 1092, + "end": 1103, + "loc": { + "start": { + "line": 48, + "column": 25 + }, + "end": { + "line": 48, + "column": 36 + } + }, + "name": "LikeActions" + }, + "property": { + "type": "Identifier", + "start": 1104, + "end": 1108, + "loc": { + "start": { + "line": 48, + "column": 37 + }, + "end": { + "line": 48, + "column": 41 + } + }, + "name": "load" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 1109, + "end": 1111, + "loc": { + "start": { + "line": 48, + "column": 42 + }, + "end": { + "line": 48, + "column": 44 + } + }, + "name": "id" + } + ] + } + ] + } + }, + { + "type": "ReturnStatement", + "start": 1130, + "end": 1146, + "loc": { + "start": { + "line": 49, + "column": 16 + }, + "end": { + "line": 49, + "column": 32 + } + }, + "argument": { + "type": "CallExpression", + "start": 1137, + "end": 1146, + "loc": { + "start": { + "line": 49, + "column": 23 + }, + "end": { + "line": 49, + "column": 32 + } + }, + "callee": { + "type": "Identifier", + "start": 1137, + "end": 1144, + "loc": { + "start": { + "line": 49, + "column": 23 + }, + "end": { + "line": 49, + "column": 30 + } + }, + "name": "resolve" + }, + "arguments": [] + } + } + ] + } + } + ] + } + } + ] + } + } + ] + } + } + ] + } + } + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * load\n * Gets single photo upload from API based on upload id\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param id upload id\n * @returns {Function}\n ", + "start": 415, + "end": 607, + "loc": { + "start": { + "line": 28, + "column": 0 + }, + "end": { + "line": 35, + "column": 3 + } + }, + "range": [ + 415, + 607 + ] + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * load\n * Gets single photo upload from API based on upload id\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param id upload id\n * @returns {Function}\n ", + "start": 415, + "end": 607, + "loc": { + "start": { + "line": 28, + "column": 0 + }, + "end": { + "line": 35, + "column": 3 + } + }, + "range": [ + 415, + 607 + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/actions/Photos.js.json b/app/docs/ast/source/actions/Photos.js.json new file mode 100644 index 0000000..aff2034 --- /dev/null +++ b/app/docs/ast/source/actions/Photos.js.json @@ -0,0 +1,8782 @@ +{ + "type": "Program", + "start": 0, + "end": 4322, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 201, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 30, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 30 + } + }, + "specifiers": [ + { + "type": "ImportNamespaceSpecifier", + "start": 7, + "end": 17, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 17 + } + }, + "local": { + "type": "Identifier", + "start": 12, + "end": 17, + "loc": { + "start": { + "line": 1, + "column": 12 + }, + "end": { + "line": 1, + "column": 17 + } + }, + "name": "axios" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 23, + "end": 30, + "loc": { + "start": { + "line": 1, + "column": 23 + }, + "end": { + "line": 1, + "column": 30 + } + }, + "value": "axios", + "rawValue": "axios", + "raw": "'axios'" + } + }, + { + "type": "ImportDeclaration", + "start": 31, + "end": 58, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 27 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 38, + "end": 44, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "local": { + "type": "Identifier", + "start": 38, + "end": 44, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "name": "config" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 50, + "end": 58, + "loc": { + "start": { + "line": 2, + "column": 19 + }, + "end": { + "line": 2, + "column": 27 + } + }, + "value": "config", + "rawValue": "config", + "raw": "'config'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * ADD\n * @type {string}\n ", + "start": 60, + "end": 92, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + }, + "range": [ + 60, + 92 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 93, + "end": 123, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 30 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 100, + "end": 123, + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 30 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 106, + "end": 123, + "loc": { + "start": { + "line": 8, + "column": 13 + }, + "end": { + "line": 8, + "column": 30 + } + }, + "id": { + "type": "Identifier", + "start": 106, + "end": 109, + "loc": { + "start": { + "line": 8, + "column": 13 + }, + "end": { + "line": 8, + "column": 16 + } + }, + "name": "ADD", + "leadingComments": null + }, + "init": { + "type": "Literal", + "start": 112, + "end": 123, + "loc": { + "start": { + "line": 8, + "column": 19 + }, + "end": { + "line": 8, + "column": 30 + } + }, + "value": "PHOTO_ADD", + "rawValue": "PHOTO_ADD", + "raw": "'PHOTO_ADD'", + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * ADD\n * @type {string}\n ", + "start": 60, + "end": 92, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + }, + "range": [ + 60, + 92 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * add\n * @param response\n * @returns {{type: string, response: *}}\n ", + "start": 125, + "end": 200, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + }, + "range": [ + 125, + 200 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * ADD\n * @type {string}\n ", + "start": 60, + "end": 92, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + }, + "range": [ + 60, + 92 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * add\n * @param response\n * @returns {{type: string, response: *}}\n ", + "start": 125, + "end": 200, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + }, + "range": [ + 125, + 200 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 201, + "end": 290, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 20, + "column": 1 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 208, + "end": 290, + "loc": { + "start": { + "line": 15, + "column": 7 + }, + "end": { + "line": 20, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 217, + "end": 220, + "loc": { + "start": { + "line": 15, + "column": 16 + }, + "end": { + "line": 15, + "column": 19 + } + }, + "name": "add", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 221, + "end": 229, + "loc": { + "start": { + "line": 15, + "column": 20 + }, + "end": { + "line": 15, + "column": 28 + } + }, + "name": "response" + } + ], + "body": { + "type": "BlockStatement", + "start": 231, + "end": 290, + "loc": { + "start": { + "line": 15, + "column": 30 + }, + "end": { + "line": 20, + "column": 1 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 237, + "end": 288, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 19, + "column": 5 + } + }, + "argument": { + "type": "ObjectExpression", + "start": 244, + "end": 288, + "loc": { + "start": { + "line": 16, + "column": 11 + }, + "end": { + "line": 19, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 254, + "end": 263, + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 17, + "column": 17 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 254, + "end": 258, + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 17, + "column": 12 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 260, + "end": 263, + "loc": { + "start": { + "line": 17, + "column": 14 + }, + "end": { + "line": 17, + "column": 17 + } + }, + "name": "ADD" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 273, + "end": 281, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 16 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 273, + "end": 281, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 16 + } + }, + "name": "response" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 273, + "end": 281, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 16 + } + }, + "name": "response" + } + } + ] + } + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * add\n * @param response\n * @returns {{type: string, response: *}}\n ", + "start": 125, + "end": 200, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + }, + "range": [ + 125, + 200 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * LOAD\n * @type {string}\n ", + "start": 292, + "end": 325, + "loc": { + "start": { + "line": 22, + "column": 0 + }, + "end": { + "line": 25, + "column": 3 + } + }, + "range": [ + 292, + 325 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * add\n * @param response\n * @returns {{type: string, response: *}}\n ", + "start": 125, + "end": 200, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + }, + "range": [ + 125, + 200 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * LOAD\n * @type {string}\n ", + "start": 292, + "end": 325, + "loc": { + "start": { + "line": 22, + "column": 0 + }, + "end": { + "line": 25, + "column": 3 + } + }, + "range": [ + 292, + 325 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 326, + "end": 359, + "loc": { + "start": { + "line": 26, + "column": 0 + }, + "end": { + "line": 26, + "column": 33 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 333, + "end": 359, + "loc": { + "start": { + "line": 26, + "column": 7 + }, + "end": { + "line": 26, + "column": 33 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 339, + "end": 359, + "loc": { + "start": { + "line": 26, + "column": 13 + }, + "end": { + "line": 26, + "column": 33 + } + }, + "id": { + "type": "Identifier", + "start": 339, + "end": 343, + "loc": { + "start": { + "line": 26, + "column": 13 + }, + "end": { + "line": 26, + "column": 17 + } + }, + "name": "LOAD", + "leadingComments": null + }, + "init": { + "type": "Literal", + "start": 346, + "end": 359, + "loc": { + "start": { + "line": 26, + "column": 20 + }, + "end": { + "line": 26, + "column": 33 + } + }, + "value": "PHOTOS_LOAD", + "rawValue": "PHOTOS_LOAD", + "raw": "'PHOTOS_LOAD'", + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * LOAD\n * @type {string}\n ", + "start": 292, + "end": 325, + "loc": { + "start": { + "line": 22, + "column": 0 + }, + "end": { + "line": 25, + "column": 3 + } + }, + "range": [ + 292, + 325 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _loadRequest\n * @private\n ", + "start": 361, + "end": 396, + "loc": { + "start": { + "line": 28, + "column": 0 + }, + "end": { + "line": 31, + "column": 3 + } + }, + "range": [ + 361, + 396 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * LOAD\n * @type {string}\n ", + "start": 292, + "end": 325, + "loc": { + "start": { + "line": 22, + "column": 0 + }, + "end": { + "line": 25, + "column": 3 + } + }, + "range": [ + 292, + 325 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _loadRequest\n * @private\n ", + "start": 361, + "end": 396, + "loc": { + "start": { + "line": 28, + "column": 0 + }, + "end": { + "line": 31, + "column": 3 + } + }, + "range": [ + 361, + 396 + ] + } + ] + }, + { + "type": "VariableDeclaration", + "start": 397, + "end": 441, + "loc": { + "start": { + "line": 32, + "column": 0 + }, + "end": { + "line": 32, + "column": 44 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 403, + "end": 441, + "loc": { + "start": { + "line": 32, + "column": 6 + }, + "end": { + "line": 32, + "column": 44 + } + }, + "id": { + "type": "Identifier", + "start": 403, + "end": 415, + "loc": { + "start": { + "line": 32, + "column": 6 + }, + "end": { + "line": 32, + "column": 18 + } + }, + "name": "_loadRequest", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 418, + "end": 441, + "loc": { + "start": { + "line": 32, + "column": 21 + }, + "end": { + "line": 32, + "column": 44 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [], + "body": { + "type": "ObjectExpression", + "start": 425, + "end": 440, + "loc": { + "start": { + "line": 32, + "column": 28 + }, + "end": { + "line": 32, + "column": 43 + } + }, + "properties": [ + { + "type": "Property", + "start": 427, + "end": 437, + "loc": { + "start": { + "line": 32, + "column": 30 + }, + "end": { + "line": 32, + "column": 40 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 427, + "end": 431, + "loc": { + "start": { + "line": 32, + "column": 30 + }, + "end": { + "line": 32, + "column": 34 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 433, + "end": 437, + "loc": { + "start": { + "line": 32, + "column": 36 + }, + "end": { + "line": 32, + "column": 40 + } + }, + "name": "LOAD" + }, + "kind": "init" + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _loadRequest\n * @private\n ", + "start": 361, + "end": 396, + "loc": { + "start": { + "line": 28, + "column": 0 + }, + "end": { + "line": 31, + "column": 3 + } + }, + "range": [ + 361, + 396 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _loadResponse\n * @param response\n * @private\n ", + "start": 443, + "end": 498, + "loc": { + "start": { + "line": 34, + "column": 0 + }, + "end": { + "line": 38, + "column": 3 + } + }, + "range": [ + 443, + 498 + ] + } + ] + }, + { + "type": "VariableDeclaration", + "start": 499, + "end": 562, + "loc": { + "start": { + "line": 39, + "column": 0 + }, + "end": { + "line": 39, + "column": 63 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 505, + "end": 562, + "loc": { + "start": { + "line": 39, + "column": 6 + }, + "end": { + "line": 39, + "column": 63 + } + }, + "id": { + "type": "Identifier", + "start": 505, + "end": 518, + "loc": { + "start": { + "line": 39, + "column": 6 + }, + "end": { + "line": 39, + "column": 19 + } + }, + "name": "_loadResponse", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 521, + "end": 562, + "loc": { + "start": { + "line": 39, + "column": 22 + }, + "end": { + "line": 39, + "column": 63 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 522, + "end": 530, + "loc": { + "start": { + "line": 39, + "column": 23 + }, + "end": { + "line": 39, + "column": 31 + } + }, + "name": "response" + } + ], + "body": { + "type": "ObjectExpression", + "start": 536, + "end": 561, + "loc": { + "start": { + "line": 39, + "column": 37 + }, + "end": { + "line": 39, + "column": 62 + } + }, + "properties": [ + { + "type": "Property", + "start": 538, + "end": 548, + "loc": { + "start": { + "line": 39, + "column": 39 + }, + "end": { + "line": 39, + "column": 49 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 538, + "end": 542, + "loc": { + "start": { + "line": 39, + "column": 39 + }, + "end": { + "line": 39, + "column": 43 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 544, + "end": 548, + "loc": { + "start": { + "line": 39, + "column": 45 + }, + "end": { + "line": 39, + "column": 49 + } + }, + "name": "LOAD" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 550, + "end": 558, + "loc": { + "start": { + "line": 39, + "column": 51 + }, + "end": { + "line": 39, + "column": 59 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 550, + "end": 558, + "loc": { + "start": { + "line": 39, + "column": 51 + }, + "end": { + "line": 39, + "column": 59 + } + }, + "name": "response" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 550, + "end": 558, + "loc": { + "start": { + "line": 39, + "column": 51 + }, + "end": { + "line": 39, + "column": 59 + } + }, + "name": "response" + } + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _loadResponse\n * @param response\n * @private\n ", + "start": 443, + "end": 498, + "loc": { + "start": { + "line": 34, + "column": 0 + }, + "end": { + "line": 38, + "column": 3 + } + }, + "range": [ + 443, + 498 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * load\n * Get photo uploads from the API based on user id\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param id user id\n * @returns {Function}\n ", + "start": 564, + "end": 749, + "loc": { + "start": { + "line": 41, + "column": 0 + }, + "end": { + "line": 48, + "column": 3 + } + }, + "range": [ + 564, + 749 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 750, + "end": 1172, + "loc": { + "start": { + "line": 49, + "column": 0 + }, + "end": { + "line": 62, + "column": 1 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 757, + "end": 1172, + "loc": { + "start": { + "line": 49, + "column": 7 + }, + "end": { + "line": 62, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 766, + "end": 770, + "loc": { + "start": { + "line": 49, + "column": 16 + }, + "end": { + "line": 49, + "column": 20 + } + }, + "name": "load", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 771, + "end": 773, + "loc": { + "start": { + "line": 49, + "column": 21 + }, + "end": { + "line": 49, + "column": 23 + } + }, + "name": "id" + } + ], + "body": { + "type": "BlockStatement", + "start": 775, + "end": 1172, + "loc": { + "start": { + "line": 49, + "column": 25 + }, + "end": { + "line": 62, + "column": 1 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 781, + "end": 1170, + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 61, + "column": 5 + } + }, + "argument": { + "type": "ArrowFunctionExpression", + "start": 788, + "end": 1170, + "loc": { + "start": { + "line": 50, + "column": 11 + }, + "end": { + "line": 61, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 789, + "end": 797, + "loc": { + "start": { + "line": 50, + "column": 12 + }, + "end": { + "line": 50, + "column": 20 + } + }, + "name": "dispatch" + }, + { + "type": "Identifier", + "start": 799, + "end": 807, + "loc": { + "start": { + "line": 50, + "column": 22 + }, + "end": { + "line": 50, + "column": 30 + } + }, + "name": "getState" + } + ], + "body": { + "type": "BlockStatement", + "start": 812, + "end": 1170, + "loc": { + "start": { + "line": 50, + "column": 35 + }, + "end": { + "line": 61, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 820, + "end": 859, + "loc": { + "start": { + "line": 51, + "column": 6 + }, + "end": { + "line": 51, + "column": 45 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 826, + "end": 859, + "loc": { + "start": { + "line": 51, + "column": 12 + }, + "end": { + "line": 51, + "column": 45 + } + }, + "id": { + "type": "Identifier", + "start": 826, + "end": 832, + "loc": { + "start": { + "line": 51, + "column": 12 + }, + "end": { + "line": 51, + "column": 18 + } + }, + "name": "userID" + }, + "init": { + "type": "LogicalExpression", + "start": 835, + "end": 859, + "loc": { + "start": { + "line": 51, + "column": 21 + }, + "end": { + "line": 51, + "column": 45 + } + }, + "left": { + "type": "Identifier", + "start": 835, + "end": 837, + "loc": { + "start": { + "line": 51, + "column": 21 + }, + "end": { + "line": 51, + "column": 23 + } + }, + "name": "id" + }, + "operator": "||", + "right": { + "type": "MemberExpression", + "start": 841, + "end": 859, + "loc": { + "start": { + "line": 51, + "column": 27 + }, + "end": { + "line": 51, + "column": 45 + } + }, + "object": { + "type": "MemberExpression", + "start": 841, + "end": 856, + "loc": { + "start": { + "line": 51, + "column": 27 + }, + "end": { + "line": 51, + "column": 42 + } + }, + "object": { + "type": "CallExpression", + "start": 841, + "end": 851, + "loc": { + "start": { + "line": 51, + "column": 27 + }, + "end": { + "line": 51, + "column": 37 + } + }, + "callee": { + "type": "Identifier", + "start": 841, + "end": 849, + "loc": { + "start": { + "line": 51, + "column": 27 + }, + "end": { + "line": 51, + "column": 35 + } + }, + "name": "getState" + }, + "arguments": [] + }, + "property": { + "type": "Identifier", + "start": 852, + "end": 856, + "loc": { + "start": { + "line": 51, + "column": 38 + }, + "end": { + "line": 51, + "column": 42 + } + }, + "name": "User" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 857, + "end": 859, + "loc": { + "start": { + "line": 51, + "column": 43 + }, + "end": { + "line": 51, + "column": 45 + } + }, + "name": "id" + }, + "computed": false + } + } + } + ], + "kind": "const" + }, + { + "type": "ExpressionStatement", + "start": 868, + "end": 892, + "loc": { + "start": { + "line": 52, + "column": 8 + }, + "end": { + "line": 52, + "column": 32 + } + }, + "expression": { + "type": "CallExpression", + "start": 868, + "end": 892, + "loc": { + "start": { + "line": 52, + "column": 8 + }, + "end": { + "line": 52, + "column": 32 + } + }, + "callee": { + "type": "Identifier", + "start": 868, + "end": 876, + "loc": { + "start": { + "line": 52, + "column": 8 + }, + "end": { + "line": 52, + "column": 16 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 877, + "end": 891, + "loc": { + "start": { + "line": 52, + "column": 17 + }, + "end": { + "line": 52, + "column": 31 + } + }, + "callee": { + "type": "Identifier", + "start": 877, + "end": 889, + "loc": { + "start": { + "line": 52, + "column": 17 + }, + "end": { + "line": 52, + "column": 29 + } + }, + "name": "_loadRequest" + }, + "arguments": [] + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 901, + "end": 1164, + "loc": { + "start": { + "line": 53, + "column": 8 + }, + "end": { + "line": 60, + "column": 10 + } + }, + "expression": { + "type": "CallExpression", + "start": 901, + "end": 1164, + "loc": { + "start": { + "line": 53, + "column": 8 + }, + "end": { + "line": 60, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 901, + "end": 1098, + "loc": { + "start": { + "line": 53, + "column": 8 + }, + "end": { + "line": 58, + "column": 13 + } + }, + "object": { + "type": "CallExpression", + "start": 901, + "end": 1084, + "loc": { + "start": { + "line": 53, + "column": 8 + }, + "end": { + "line": 57, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 901, + "end": 910, + "loc": { + "start": { + "line": 53, + "column": 8 + }, + "end": { + "line": 53, + "column": 17 + } + }, + "object": { + "type": "Identifier", + "start": 901, + "end": 906, + "loc": { + "start": { + "line": 53, + "column": 8 + }, + "end": { + "line": 53, + "column": 13 + } + }, + "name": "axios" + }, + "property": { + "type": "Identifier", + "start": 907, + "end": 910, + "loc": { + "start": { + "line": 53, + "column": 14 + }, + "end": { + "line": 53, + "column": 17 + } + }, + "name": "get" + }, + "computed": false + }, + "arguments": [ + { + "type": "TemplateLiteral", + "start": 911, + "end": 960, + "loc": { + "start": { + "line": 53, + "column": 18 + }, + "end": { + "line": 53, + "column": 67 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 914, + "end": 932, + "loc": { + "start": { + "line": 53, + "column": 21 + }, + "end": { + "line": 53, + "column": 39 + } + }, + "object": { + "type": "MemberExpression", + "start": 914, + "end": 924, + "loc": { + "start": { + "line": 53, + "column": 21 + }, + "end": { + "line": 53, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 914, + "end": 920, + "loc": { + "start": { + "line": 53, + "column": 21 + }, + "end": { + "line": 53, + "column": 27 + } + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 921, + "end": 924, + "loc": { + "start": { + "line": 53, + "column": 28 + }, + "end": { + "line": 53, + "column": 31 + } + }, + "name": "api" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 925, + "end": 932, + "loc": { + "start": { + "line": 53, + "column": 32 + }, + "end": { + "line": 53, + "column": 39 + } + }, + "name": "baseUrl" + }, + "computed": false + }, + { + "type": "Identifier", + "start": 952, + "end": 958, + "loc": { + "start": { + "line": 53, + "column": 59 + }, + "end": { + "line": 53, + "column": 65 + } + }, + "name": "userID" + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 912, + "end": 912, + "loc": { + "start": { + "line": 53, + "column": 19 + }, + "end": { + "line": 53, + "column": 19 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 933, + "end": 950, + "loc": { + "start": { + "line": 53, + "column": 40 + }, + "end": { + "line": 53, + "column": 57 + } + }, + "value": { + "raw": "/uploads?user_id=", + "cooked": "/uploads?user_id=" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 959, + "end": 959, + "loc": { + "start": { + "line": 53, + "column": 66 + }, + "end": { + "line": 53, + "column": 66 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + }, + { + "type": "ObjectExpression", + "start": 962, + "end": 1083, + "loc": { + "start": { + "line": 53, + "column": 69 + }, + "end": { + "line": 57, + "column": 9 + } + }, + "properties": [ + { + "type": "Property", + "start": 976, + "end": 1072, + "loc": { + "start": { + "line": 54, + "column": 12 + }, + "end": { + "line": 56, + "column": 13 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 976, + "end": 983, + "loc": { + "start": { + "line": 54, + "column": 12 + }, + "end": { + "line": 54, + "column": 19 + } + }, + "name": "headers" + }, + "value": { + "type": "ObjectExpression", + "start": 985, + "end": 1072, + "loc": { + "start": { + "line": 54, + "column": 21 + }, + "end": { + "line": 56, + "column": 13 + } + }, + "properties": [ + { + "type": "Property", + "start": 1003, + "end": 1057, + "loc": { + "start": { + "line": 55, + "column": 16 + }, + "end": { + "line": 55, + "column": 70 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1003, + "end": 1016, + "loc": { + "start": { + "line": 55, + "column": 16 + }, + "end": { + "line": 55, + "column": 29 + } + }, + "name": "Authorization" + }, + "value": { + "type": "TemplateLiteral", + "start": 1018, + "end": 1057, + "loc": { + "start": { + "line": 55, + "column": 31 + }, + "end": { + "line": 55, + "column": 70 + } + }, + "expressions": [ + { + "type": "CallExpression", + "start": 1028, + "end": 1055, + "loc": { + "start": { + "line": 55, + "column": 41 + }, + "end": { + "line": 55, + "column": 68 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1028, + "end": 1048, + "loc": { + "start": { + "line": 55, + "column": 41 + }, + "end": { + "line": 55, + "column": 61 + } + }, + "object": { + "type": "Identifier", + "start": 1028, + "end": 1040, + "loc": { + "start": { + "line": 55, + "column": 41 + }, + "end": { + "line": 55, + "column": 53 + } + }, + "name": "localStorage" + }, + "property": { + "type": "Identifier", + "start": 1041, + "end": 1048, + "loc": { + "start": { + "line": 55, + "column": 54 + }, + "end": { + "line": 55, + "column": 61 + } + }, + "name": "getItem" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 1049, + "end": 1054, + "loc": { + "start": { + "line": 55, + "column": 62 + }, + "end": { + "line": 55, + "column": 67 + } + }, + "value": "jwt", + "rawValue": "jwt", + "raw": "'jwt'" + } + ] + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 1019, + "end": 1026, + "loc": { + "start": { + "line": 55, + "column": 32 + }, + "end": { + "line": 55, + "column": 39 + } + }, + "value": { + "raw": "Bearer ", + "cooked": "Bearer " + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 1056, + "end": 1056, + "loc": { + "start": { + "line": 55, + "column": 69 + }, + "end": { + "line": 55, + "column": 69 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + }, + "kind": "init" + } + ] + }, + "kind": "init" + } + ] + } + ] + }, + "property": { + "type": "Identifier", + "start": 1094, + "end": 1098, + "loc": { + "start": { + "line": 58, + "column": 9 + }, + "end": { + "line": 58, + "column": 13 + } + }, + "name": "then" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 1099, + "end": 1163, + "loc": { + "start": { + "line": 58, + "column": 14 + }, + "end": { + "line": 60, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1099, + "end": 1102, + "loc": { + "start": { + "line": 58, + "column": 14 + }, + "end": { + "line": 58, + "column": 17 + } + }, + "name": "res" + } + ], + "body": { + "type": "BlockStatement", + "start": 1106, + "end": 1163, + "loc": { + "start": { + "line": 58, + "column": 21 + }, + "end": { + "line": 60, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1120, + "end": 1153, + "loc": { + "start": { + "line": 59, + "column": 12 + }, + "end": { + "line": 59, + "column": 45 + } + }, + "expression": { + "type": "CallExpression", + "start": 1120, + "end": 1153, + "loc": { + "start": { + "line": 59, + "column": 12 + }, + "end": { + "line": 59, + "column": 45 + } + }, + "callee": { + "type": "Identifier", + "start": 1120, + "end": 1128, + "loc": { + "start": { + "line": 59, + "column": 12 + }, + "end": { + "line": 59, + "column": 20 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1129, + "end": 1152, + "loc": { + "start": { + "line": 59, + "column": 21 + }, + "end": { + "line": 59, + "column": 44 + } + }, + "callee": { + "type": "Identifier", + "start": 1129, + "end": 1142, + "loc": { + "start": { + "line": 59, + "column": 21 + }, + "end": { + "line": 59, + "column": 34 + } + }, + "name": "_loadResponse" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 1143, + "end": 1151, + "loc": { + "start": { + "line": 59, + "column": 35 + }, + "end": { + "line": 59, + "column": 43 + } + }, + "object": { + "type": "Identifier", + "start": 1143, + "end": 1146, + "loc": { + "start": { + "line": 59, + "column": 35 + }, + "end": { + "line": 59, + "column": 38 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 1147, + "end": 1151, + "loc": { + "start": { + "line": 59, + "column": 39 + }, + "end": { + "line": 59, + "column": 43 + } + }, + "name": "data" + }, + "computed": false + } + ] + } + ] + } + } + ] + } + } + ] + } + } + ] + } + } + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * load\n * Get photo uploads from the API based on user id\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param id user id\n * @returns {Function}\n ", + "start": 564, + "end": 749, + "loc": { + "start": { + "line": 41, + "column": 0 + }, + "end": { + "line": 48, + "column": 3 + } + }, + "range": [ + 564, + 749 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * LIKE\n * @type {string}\n ", + "start": 1174, + "end": 1207, + "loc": { + "start": { + "line": 64, + "column": 0 + }, + "end": { + "line": 67, + "column": 3 + } + }, + "range": [ + 1174, + 1207 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * load\n * Get photo uploads from the API based on user id\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param id user id\n * @returns {Function}\n ", + "start": 564, + "end": 749, + "loc": { + "start": { + "line": 41, + "column": 0 + }, + "end": { + "line": 48, + "column": 3 + } + }, + "range": [ + 564, + 749 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * LIKE\n * @type {string}\n ", + "start": 1174, + "end": 1207, + "loc": { + "start": { + "line": 64, + "column": 0 + }, + "end": { + "line": 67, + "column": 3 + } + }, + "range": [ + 1174, + 1207 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 1208, + "end": 1241, + "loc": { + "start": { + "line": 68, + "column": 0 + }, + "end": { + "line": 68, + "column": 33 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 1215, + "end": 1241, + "loc": { + "start": { + "line": 68, + "column": 7 + }, + "end": { + "line": 68, + "column": 33 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1221, + "end": 1241, + "loc": { + "start": { + "line": 68, + "column": 13 + }, + "end": { + "line": 68, + "column": 33 + } + }, + "id": { + "type": "Identifier", + "start": 1221, + "end": 1225, + "loc": { + "start": { + "line": 68, + "column": 13 + }, + "end": { + "line": 68, + "column": 17 + } + }, + "name": "LIKE", + "leadingComments": null + }, + "init": { + "type": "Literal", + "start": 1228, + "end": 1241, + "loc": { + "start": { + "line": 68, + "column": 20 + }, + "end": { + "line": 68, + "column": 33 + } + }, + "value": "PHOTOS_LIKE", + "rawValue": "PHOTOS_LIKE", + "raw": "'PHOTOS_LIKE'", + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * LIKE\n * @type {string}\n ", + "start": 1174, + "end": 1207, + "loc": { + "start": { + "line": 64, + "column": 0 + }, + "end": { + "line": 67, + "column": 3 + } + }, + "range": [ + 1174, + 1207 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _likeRequest\n * @private\n ", + "start": 1243, + "end": 1278, + "loc": { + "start": { + "line": 70, + "column": 0 + }, + "end": { + "line": 73, + "column": 3 + } + }, + "range": [ + 1243, + 1278 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * LIKE\n * @type {string}\n ", + "start": 1174, + "end": 1207, + "loc": { + "start": { + "line": 64, + "column": 0 + }, + "end": { + "line": 67, + "column": 3 + } + }, + "range": [ + 1174, + 1207 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _likeRequest\n * @private\n ", + "start": 1243, + "end": 1278, + "loc": { + "start": { + "line": 70, + "column": 0 + }, + "end": { + "line": 73, + "column": 3 + } + }, + "range": [ + 1243, + 1278 + ] + } + ] + }, + { + "type": "VariableDeclaration", + "start": 1279, + "end": 1323, + "loc": { + "start": { + "line": 74, + "column": 0 + }, + "end": { + "line": 74, + "column": 44 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1285, + "end": 1323, + "loc": { + "start": { + "line": 74, + "column": 6 + }, + "end": { + "line": 74, + "column": 44 + } + }, + "id": { + "type": "Identifier", + "start": 1285, + "end": 1297, + "loc": { + "start": { + "line": 74, + "column": 6 + }, + "end": { + "line": 74, + "column": 18 + } + }, + "name": "_likeRequest", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 1300, + "end": 1323, + "loc": { + "start": { + "line": 74, + "column": 21 + }, + "end": { + "line": 74, + "column": 44 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [], + "body": { + "type": "ObjectExpression", + "start": 1307, + "end": 1322, + "loc": { + "start": { + "line": 74, + "column": 28 + }, + "end": { + "line": 74, + "column": 43 + } + }, + "properties": [ + { + "type": "Property", + "start": 1309, + "end": 1319, + "loc": { + "start": { + "line": 74, + "column": 30 + }, + "end": { + "line": 74, + "column": 40 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1309, + "end": 1313, + "loc": { + "start": { + "line": 74, + "column": 30 + }, + "end": { + "line": 74, + "column": 34 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 1315, + "end": 1319, + "loc": { + "start": { + "line": 74, + "column": 36 + }, + "end": { + "line": 74, + "column": 40 + } + }, + "name": "LIKE" + }, + "kind": "init" + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _likeRequest\n * @private\n ", + "start": 1243, + "end": 1278, + "loc": { + "start": { + "line": 70, + "column": 0 + }, + "end": { + "line": 73, + "column": 3 + } + }, + "range": [ + 1243, + 1278 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _likeResponse\n * @param postID\n * @param response\n * @private\n ", + "start": 1325, + "end": 1397, + "loc": { + "start": { + "line": 76, + "column": 0 + }, + "end": { + "line": 81, + "column": 3 + } + }, + "range": [ + 1325, + 1397 + ] + } + ] + }, + { + "type": "VariableDeclaration", + "start": 1398, + "end": 1477, + "loc": { + "start": { + "line": 82, + "column": 0 + }, + "end": { + "line": 82, + "column": 79 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1404, + "end": 1477, + "loc": { + "start": { + "line": 82, + "column": 6 + }, + "end": { + "line": 82, + "column": 79 + } + }, + "id": { + "type": "Identifier", + "start": 1404, + "end": 1417, + "loc": { + "start": { + "line": 82, + "column": 6 + }, + "end": { + "line": 82, + "column": 19 + } + }, + "name": "_likeResponse", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 1420, + "end": 1477, + "loc": { + "start": { + "line": 82, + "column": 22 + }, + "end": { + "line": 82, + "column": 79 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1421, + "end": 1427, + "loc": { + "start": { + "line": 82, + "column": 23 + }, + "end": { + "line": 82, + "column": 29 + } + }, + "name": "postID" + }, + { + "type": "Identifier", + "start": 1429, + "end": 1437, + "loc": { + "start": { + "line": 82, + "column": 31 + }, + "end": { + "line": 82, + "column": 39 + } + }, + "name": "response" + } + ], + "body": { + "type": "ObjectExpression", + "start": 1443, + "end": 1476, + "loc": { + "start": { + "line": 82, + "column": 45 + }, + "end": { + "line": 82, + "column": 78 + } + }, + "properties": [ + { + "type": "Property", + "start": 1445, + "end": 1455, + "loc": { + "start": { + "line": 82, + "column": 47 + }, + "end": { + "line": 82, + "column": 57 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1445, + "end": 1449, + "loc": { + "start": { + "line": 82, + "column": 47 + }, + "end": { + "line": 82, + "column": 51 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 1451, + "end": 1455, + "loc": { + "start": { + "line": 82, + "column": 53 + }, + "end": { + "line": 82, + "column": 57 + } + }, + "name": "LIKE" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1457, + "end": 1463, + "loc": { + "start": { + "line": 82, + "column": 59 + }, + "end": { + "line": 82, + "column": 65 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 1457, + "end": 1463, + "loc": { + "start": { + "line": 82, + "column": 59 + }, + "end": { + "line": 82, + "column": 65 + } + }, + "name": "postID" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 1457, + "end": 1463, + "loc": { + "start": { + "line": 82, + "column": 59 + }, + "end": { + "line": 82, + "column": 65 + } + }, + "name": "postID" + } + }, + { + "type": "Property", + "start": 1465, + "end": 1473, + "loc": { + "start": { + "line": 82, + "column": 67 + }, + "end": { + "line": 82, + "column": 75 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 1465, + "end": 1473, + "loc": { + "start": { + "line": 82, + "column": 67 + }, + "end": { + "line": 82, + "column": 75 + } + }, + "name": "response" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 1465, + "end": 1473, + "loc": { + "start": { + "line": 82, + "column": 67 + }, + "end": { + "line": 82, + "column": 75 + } + }, + "name": "response" + } + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _likeResponse\n * @param postID\n * @param response\n * @private\n ", + "start": 1325, + "end": 1397, + "loc": { + "start": { + "line": 76, + "column": 0 + }, + "end": { + "line": 81, + "column": 3 + } + }, + "range": [ + 1325, + 1397 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * like\n * Post a 'like' to the API for a given post\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param postID post id\n * @returns {Function}\n ", + "start": 1479, + "end": 1662, + "loc": { + "start": { + "line": 84, + "column": 0 + }, + "end": { + "line": 91, + "column": 3 + } + }, + "range": [ + 1479, + 1662 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 1663, + "end": 2143, + "loc": { + "start": { + "line": 92, + "column": 0 + }, + "end": { + "line": 108, + "column": 1 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 1670, + "end": 2143, + "loc": { + "start": { + "line": 92, + "column": 7 + }, + "end": { + "line": 108, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 1679, + "end": 1683, + "loc": { + "start": { + "line": 92, + "column": 16 + }, + "end": { + "line": 92, + "column": 20 + } + }, + "name": "like", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1684, + "end": 1690, + "loc": { + "start": { + "line": 92, + "column": 21 + }, + "end": { + "line": 92, + "column": 27 + } + }, + "name": "postID" + } + ], + "body": { + "type": "BlockStatement", + "start": 1692, + "end": 2143, + "loc": { + "start": { + "line": 92, + "column": 29 + }, + "end": { + "line": 108, + "column": 1 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 1698, + "end": 2141, + "loc": { + "start": { + "line": 93, + "column": 4 + }, + "end": { + "line": 107, + "column": 5 + } + }, + "argument": { + "type": "ArrowFunctionExpression", + "start": 1705, + "end": 2141, + "loc": { + "start": { + "line": 93, + "column": 11 + }, + "end": { + "line": 107, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1706, + "end": 1714, + "loc": { + "start": { + "line": 93, + "column": 12 + }, + "end": { + "line": 93, + "column": 20 + } + }, + "name": "dispatch" + }, + { + "type": "Identifier", + "start": 1716, + "end": 1724, + "loc": { + "start": { + "line": 93, + "column": 22 + }, + "end": { + "line": 93, + "column": 30 + } + }, + "name": "getState" + } + ], + "body": { + "type": "BlockStatement", + "start": 1729, + "end": 2141, + "loc": { + "start": { + "line": 93, + "column": 35 + }, + "end": { + "line": 107, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1739, + "end": 1763, + "loc": { + "start": { + "line": 94, + "column": 8 + }, + "end": { + "line": 94, + "column": 32 + } + }, + "expression": { + "type": "CallExpression", + "start": 1739, + "end": 1763, + "loc": { + "start": { + "line": 94, + "column": 8 + }, + "end": { + "line": 94, + "column": 32 + } + }, + "callee": { + "type": "Identifier", + "start": 1739, + "end": 1747, + "loc": { + "start": { + "line": 94, + "column": 8 + }, + "end": { + "line": 94, + "column": 16 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1748, + "end": 1762, + "loc": { + "start": { + "line": 94, + "column": 17 + }, + "end": { + "line": 94, + "column": 31 + } + }, + "callee": { + "type": "Identifier", + "start": 1748, + "end": 1760, + "loc": { + "start": { + "line": 94, + "column": 17 + }, + "end": { + "line": 94, + "column": 29 + } + }, + "name": "_likeRequest" + }, + "arguments": [] + } + ] + } + }, + { + "type": "VariableDeclaration", + "start": 1772, + "end": 1868, + "loc": { + "start": { + "line": 95, + "column": 8 + }, + "end": { + "line": 98, + "column": 9 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1778, + "end": 1868, + "loc": { + "start": { + "line": 95, + "column": 14 + }, + "end": { + "line": 98, + "column": 9 + } + }, + "id": { + "type": "Identifier", + "start": 1778, + "end": 1782, + "loc": { + "start": { + "line": 95, + "column": 14 + }, + "end": { + "line": 95, + "column": 18 + } + }, + "name": "data" + }, + "init": { + "type": "ObjectExpression", + "start": 1785, + "end": 1868, + "loc": { + "start": { + "line": 95, + "column": 21 + }, + "end": { + "line": 98, + "column": 9 + } + }, + "properties": [ + { + "type": "Property", + "start": 1799, + "end": 1826, + "loc": { + "start": { + "line": 96, + "column": 12 + }, + "end": { + "line": 96, + "column": 39 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1799, + "end": 1806, + "loc": { + "start": { + "line": 96, + "column": 12 + }, + "end": { + "line": 96, + "column": 19 + } + }, + "name": "user_id" + }, + "value": { + "type": "MemberExpression", + "start": 1808, + "end": 1826, + "loc": { + "start": { + "line": 96, + "column": 21 + }, + "end": { + "line": 96, + "column": 39 + } + }, + "object": { + "type": "MemberExpression", + "start": 1808, + "end": 1823, + "loc": { + "start": { + "line": 96, + "column": 21 + }, + "end": { + "line": 96, + "column": 36 + } + }, + "object": { + "type": "CallExpression", + "start": 1808, + "end": 1818, + "loc": { + "start": { + "line": 96, + "column": 21 + }, + "end": { + "line": 96, + "column": 31 + } + }, + "callee": { + "type": "Identifier", + "start": 1808, + "end": 1816, + "loc": { + "start": { + "line": 96, + "column": 21 + }, + "end": { + "line": 96, + "column": 29 + } + }, + "name": "getState" + }, + "arguments": [] + }, + "property": { + "type": "Identifier", + "start": 1819, + "end": 1823, + "loc": { + "start": { + "line": 96, + "column": 32 + }, + "end": { + "line": 96, + "column": 36 + } + }, + "name": "User" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1824, + "end": 1826, + "loc": { + "start": { + "line": 96, + "column": 37 + }, + "end": { + "line": 96, + "column": 39 + } + }, + "name": "id" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1840, + "end": 1857, + "loc": { + "start": { + "line": 97, + "column": 12 + }, + "end": { + "line": 97, + "column": 29 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1840, + "end": 1849, + "loc": { + "start": { + "line": 97, + "column": 12 + }, + "end": { + "line": 97, + "column": 21 + } + }, + "name": "upload_id" + }, + "value": { + "type": "Identifier", + "start": 1851, + "end": 1857, + "loc": { + "start": { + "line": 97, + "column": 23 + }, + "end": { + "line": 97, + "column": 29 + } + }, + "name": "postID" + }, + "kind": "init" + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "ExpressionStatement", + "start": 1877, + "end": 2135, + "loc": { + "start": { + "line": 99, + "column": 8 + }, + "end": { + "line": 106, + "column": 10 + } + }, + "expression": { + "type": "CallExpression", + "start": 1877, + "end": 2135, + "loc": { + "start": { + "line": 99, + "column": 8 + }, + "end": { + "line": 106, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1877, + "end": 2061, + "loc": { + "start": { + "line": 99, + "column": 8 + }, + "end": { + "line": 104, + "column": 13 + } + }, + "object": { + "type": "CallExpression", + "start": 1877, + "end": 2047, + "loc": { + "start": { + "line": 99, + "column": 8 + }, + "end": { + "line": 103, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1877, + "end": 1887, + "loc": { + "start": { + "line": 99, + "column": 8 + }, + "end": { + "line": 99, + "column": 18 + } + }, + "object": { + "type": "Identifier", + "start": 1877, + "end": 1882, + "loc": { + "start": { + "line": 99, + "column": 8 + }, + "end": { + "line": 99, + "column": 13 + } + }, + "name": "axios" + }, + "property": { + "type": "Identifier", + "start": 1883, + "end": 1887, + "loc": { + "start": { + "line": 99, + "column": 14 + }, + "end": { + "line": 99, + "column": 18 + } + }, + "name": "post" + }, + "computed": false + }, + "arguments": [ + { + "type": "TemplateLiteral", + "start": 1888, + "end": 1917, + "loc": { + "start": { + "line": 99, + "column": 19 + }, + "end": { + "line": 99, + "column": 48 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 1891, + "end": 1909, + "loc": { + "start": { + "line": 99, + "column": 22 + }, + "end": { + "line": 99, + "column": 40 + } + }, + "object": { + "type": "MemberExpression", + "start": 1891, + "end": 1901, + "loc": { + "start": { + "line": 99, + "column": 22 + }, + "end": { + "line": 99, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 1891, + "end": 1897, + "loc": { + "start": { + "line": 99, + "column": 22 + }, + "end": { + "line": 99, + "column": 28 + } + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 1898, + "end": 1901, + "loc": { + "start": { + "line": 99, + "column": 29 + }, + "end": { + "line": 99, + "column": 32 + } + }, + "name": "api" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1902, + "end": 1909, + "loc": { + "start": { + "line": 99, + "column": 33 + }, + "end": { + "line": 99, + "column": 40 + } + }, + "name": "baseUrl" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 1889, + "end": 1889, + "loc": { + "start": { + "line": 99, + "column": 20 + }, + "end": { + "line": 99, + "column": 20 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 1910, + "end": 1916, + "loc": { + "start": { + "line": 99, + "column": 41 + }, + "end": { + "line": 99, + "column": 47 + } + }, + "value": { + "raw": "/likes", + "cooked": "/likes" + }, + "tail": true + } + ] + }, + { + "type": "Identifier", + "start": 1919, + "end": 1923, + "loc": { + "start": { + "line": 99, + "column": 50 + }, + "end": { + "line": 99, + "column": 54 + } + }, + "name": "data" + }, + { + "type": "ObjectExpression", + "start": 1925, + "end": 2046, + "loc": { + "start": { + "line": 99, + "column": 56 + }, + "end": { + "line": 103, + "column": 9 + } + }, + "properties": [ + { + "type": "Property", + "start": 1939, + "end": 2035, + "loc": { + "start": { + "line": 100, + "column": 12 + }, + "end": { + "line": 102, + "column": 13 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1939, + "end": 1946, + "loc": { + "start": { + "line": 100, + "column": 12 + }, + "end": { + "line": 100, + "column": 19 + } + }, + "name": "headers" + }, + "value": { + "type": "ObjectExpression", + "start": 1948, + "end": 2035, + "loc": { + "start": { + "line": 100, + "column": 21 + }, + "end": { + "line": 102, + "column": 13 + } + }, + "properties": [ + { + "type": "Property", + "start": 1966, + "end": 2020, + "loc": { + "start": { + "line": 101, + "column": 16 + }, + "end": { + "line": 101, + "column": 70 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1966, + "end": 1979, + "loc": { + "start": { + "line": 101, + "column": 16 + }, + "end": { + "line": 101, + "column": 29 + } + }, + "name": "Authorization" + }, + "value": { + "type": "TemplateLiteral", + "start": 1981, + "end": 2020, + "loc": { + "start": { + "line": 101, + "column": 31 + }, + "end": { + "line": 101, + "column": 70 + } + }, + "expressions": [ + { + "type": "CallExpression", + "start": 1991, + "end": 2018, + "loc": { + "start": { + "line": 101, + "column": 41 + }, + "end": { + "line": 101, + "column": 68 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1991, + "end": 2011, + "loc": { + "start": { + "line": 101, + "column": 41 + }, + "end": { + "line": 101, + "column": 61 + } + }, + "object": { + "type": "Identifier", + "start": 1991, + "end": 2003, + "loc": { + "start": { + "line": 101, + "column": 41 + }, + "end": { + "line": 101, + "column": 53 + } + }, + "name": "localStorage" + }, + "property": { + "type": "Identifier", + "start": 2004, + "end": 2011, + "loc": { + "start": { + "line": 101, + "column": 54 + }, + "end": { + "line": 101, + "column": 61 + } + }, + "name": "getItem" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 2012, + "end": 2017, + "loc": { + "start": { + "line": 101, + "column": 62 + }, + "end": { + "line": 101, + "column": 67 + } + }, + "value": "jwt", + "rawValue": "jwt", + "raw": "'jwt'" + } + ] + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 1982, + "end": 1989, + "loc": { + "start": { + "line": 101, + "column": 32 + }, + "end": { + "line": 101, + "column": 39 + } + }, + "value": { + "raw": "Bearer ", + "cooked": "Bearer " + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 2019, + "end": 2019, + "loc": { + "start": { + "line": 101, + "column": 69 + }, + "end": { + "line": 101, + "column": 69 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + }, + "kind": "init" + } + ] + }, + "kind": "init" + } + ] + } + ] + }, + "property": { + "type": "Identifier", + "start": 2057, + "end": 2061, + "loc": { + "start": { + "line": 104, + "column": 9 + }, + "end": { + "line": 104, + "column": 13 + } + }, + "name": "then" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 2062, + "end": 2134, + "loc": { + "start": { + "line": 104, + "column": 14 + }, + "end": { + "line": 106, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2062, + "end": 2065, + "loc": { + "start": { + "line": 104, + "column": 14 + }, + "end": { + "line": 104, + "column": 17 + } + }, + "name": "res" + } + ], + "body": { + "type": "BlockStatement", + "start": 2069, + "end": 2134, + "loc": { + "start": { + "line": 104, + "column": 21 + }, + "end": { + "line": 106, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 2083, + "end": 2124, + "loc": { + "start": { + "line": 105, + "column": 12 + }, + "end": { + "line": 105, + "column": 53 + } + }, + "expression": { + "type": "CallExpression", + "start": 2083, + "end": 2124, + "loc": { + "start": { + "line": 105, + "column": 12 + }, + "end": { + "line": 105, + "column": 53 + } + }, + "callee": { + "type": "Identifier", + "start": 2083, + "end": 2091, + "loc": { + "start": { + "line": 105, + "column": 12 + }, + "end": { + "line": 105, + "column": 20 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 2092, + "end": 2123, + "loc": { + "start": { + "line": 105, + "column": 21 + }, + "end": { + "line": 105, + "column": 52 + } + }, + "callee": { + "type": "Identifier", + "start": 2092, + "end": 2105, + "loc": { + "start": { + "line": 105, + "column": 21 + }, + "end": { + "line": 105, + "column": 34 + } + }, + "name": "_likeResponse" + }, + "arguments": [ + { + "type": "Identifier", + "start": 2106, + "end": 2112, + "loc": { + "start": { + "line": 105, + "column": 35 + }, + "end": { + "line": 105, + "column": 41 + } + }, + "name": "postID" + }, + { + "type": "MemberExpression", + "start": 2114, + "end": 2122, + "loc": { + "start": { + "line": 105, + "column": 43 + }, + "end": { + "line": 105, + "column": 51 + } + }, + "object": { + "type": "Identifier", + "start": 2114, + "end": 2117, + "loc": { + "start": { + "line": 105, + "column": 43 + }, + "end": { + "line": 105, + "column": 46 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 2118, + "end": 2122, + "loc": { + "start": { + "line": 105, + "column": 47 + }, + "end": { + "line": 105, + "column": 51 + } + }, + "name": "data" + }, + "computed": false + } + ] + } + ] + } + } + ] + } + } + ] + } + } + ] + } + } + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * like\n * Post a 'like' to the API for a given post\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param postID post id\n * @returns {Function}\n ", + "start": 1479, + "end": 1662, + "loc": { + "start": { + "line": 84, + "column": 0 + }, + "end": { + "line": 91, + "column": 3 + } + }, + "range": [ + 1479, + 1662 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * UNLIKE\n * @type {string}\n ", + "start": 2145, + "end": 2180, + "loc": { + "start": { + "line": 110, + "column": 0 + }, + "end": { + "line": 113, + "column": 3 + } + }, + "range": [ + 2145, + 2180 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * like\n * Post a 'like' to the API for a given post\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param postID post id\n * @returns {Function}\n ", + "start": 1479, + "end": 1662, + "loc": { + "start": { + "line": 84, + "column": 0 + }, + "end": { + "line": 91, + "column": 3 + } + }, + "range": [ + 1479, + 1662 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * UNLIKE\n * @type {string}\n ", + "start": 2145, + "end": 2180, + "loc": { + "start": { + "line": 110, + "column": 0 + }, + "end": { + "line": 113, + "column": 3 + } + }, + "range": [ + 2145, + 2180 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 2181, + "end": 2218, + "loc": { + "start": { + "line": 114, + "column": 0 + }, + "end": { + "line": 114, + "column": 37 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 2188, + "end": 2218, + "loc": { + "start": { + "line": 114, + "column": 7 + }, + "end": { + "line": 114, + "column": 37 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 2194, + "end": 2218, + "loc": { + "start": { + "line": 114, + "column": 13 + }, + "end": { + "line": 114, + "column": 37 + } + }, + "id": { + "type": "Identifier", + "start": 2194, + "end": 2200, + "loc": { + "start": { + "line": 114, + "column": 13 + }, + "end": { + "line": 114, + "column": 19 + } + }, + "name": "UNLIKE", + "leadingComments": null + }, + "init": { + "type": "Literal", + "start": 2203, + "end": 2218, + "loc": { + "start": { + "line": 114, + "column": 22 + }, + "end": { + "line": 114, + "column": 37 + } + }, + "value": "PHOTOS_UNLIKE", + "rawValue": "PHOTOS_UNLIKE", + "raw": "'PHOTOS_UNLIKE'", + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * UNLIKE\n * @type {string}\n ", + "start": 2145, + "end": 2180, + "loc": { + "start": { + "line": 110, + "column": 0 + }, + "end": { + "line": 113, + "column": 3 + } + }, + "range": [ + 2145, + 2180 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _unlikeRequest\n * @private\n ", + "start": 2220, + "end": 2257, + "loc": { + "start": { + "line": 116, + "column": 0 + }, + "end": { + "line": 119, + "column": 3 + } + }, + "range": [ + 2220, + 2257 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * UNLIKE\n * @type {string}\n ", + "start": 2145, + "end": 2180, + "loc": { + "start": { + "line": 110, + "column": 0 + }, + "end": { + "line": 113, + "column": 3 + } + }, + "range": [ + 2145, + 2180 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _unlikeRequest\n * @private\n ", + "start": 2220, + "end": 2257, + "loc": { + "start": { + "line": 116, + "column": 0 + }, + "end": { + "line": 119, + "column": 3 + } + }, + "range": [ + 2220, + 2257 + ] + } + ] + }, + { + "type": "VariableDeclaration", + "start": 2258, + "end": 2306, + "loc": { + "start": { + "line": 120, + "column": 0 + }, + "end": { + "line": 120, + "column": 48 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 2264, + "end": 2306, + "loc": { + "start": { + "line": 120, + "column": 6 + }, + "end": { + "line": 120, + "column": 48 + } + }, + "id": { + "type": "Identifier", + "start": 2264, + "end": 2278, + "loc": { + "start": { + "line": 120, + "column": 6 + }, + "end": { + "line": 120, + "column": 20 + } + }, + "name": "_unlikeRequest", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 2281, + "end": 2306, + "loc": { + "start": { + "line": 120, + "column": 23 + }, + "end": { + "line": 120, + "column": 48 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [], + "body": { + "type": "ObjectExpression", + "start": 2288, + "end": 2305, + "loc": { + "start": { + "line": 120, + "column": 30 + }, + "end": { + "line": 120, + "column": 47 + } + }, + "properties": [ + { + "type": "Property", + "start": 2290, + "end": 2302, + "loc": { + "start": { + "line": 120, + "column": 32 + }, + "end": { + "line": 120, + "column": 44 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2290, + "end": 2294, + "loc": { + "start": { + "line": 120, + "column": 32 + }, + "end": { + "line": 120, + "column": 36 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 2296, + "end": 2302, + "loc": { + "start": { + "line": 120, + "column": 38 + }, + "end": { + "line": 120, + "column": 44 + } + }, + "name": "UNLIKE" + }, + "kind": "init" + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _unlikeRequest\n * @private\n ", + "start": 2220, + "end": 2257, + "loc": { + "start": { + "line": 116, + "column": 0 + }, + "end": { + "line": 119, + "column": 3 + } + }, + "range": [ + 2220, + 2257 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _unlikeRequestResponse\n * @param postID\n * @param response\n * @private\n ", + "start": 2308, + "end": 2389, + "loc": { + "start": { + "line": 122, + "column": 0 + }, + "end": { + "line": 127, + "column": 3 + } + }, + "range": [ + 2308, + 2389 + ] + } + ] + }, + { + "type": "VariableDeclaration", + "start": 2390, + "end": 2480, + "loc": { + "start": { + "line": 128, + "column": 0 + }, + "end": { + "line": 128, + "column": 90 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 2396, + "end": 2480, + "loc": { + "start": { + "line": 128, + "column": 6 + }, + "end": { + "line": 128, + "column": 90 + } + }, + "id": { + "type": "Identifier", + "start": 2396, + "end": 2418, + "loc": { + "start": { + "line": 128, + "column": 6 + }, + "end": { + "line": 128, + "column": 28 + } + }, + "name": "_unlikeRequestResponse", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 2421, + "end": 2480, + "loc": { + "start": { + "line": 128, + "column": 31 + }, + "end": { + "line": 128, + "column": 90 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2422, + "end": 2428, + "loc": { + "start": { + "line": 128, + "column": 32 + }, + "end": { + "line": 128, + "column": 38 + } + }, + "name": "postID" + }, + { + "type": "Identifier", + "start": 2430, + "end": 2438, + "loc": { + "start": { + "line": 128, + "column": 40 + }, + "end": { + "line": 128, + "column": 48 + } + }, + "name": "response" + } + ], + "body": { + "type": "ObjectExpression", + "start": 2444, + "end": 2479, + "loc": { + "start": { + "line": 128, + "column": 54 + }, + "end": { + "line": 128, + "column": 89 + } + }, + "properties": [ + { + "type": "Property", + "start": 2446, + "end": 2458, + "loc": { + "start": { + "line": 128, + "column": 56 + }, + "end": { + "line": 128, + "column": 68 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2446, + "end": 2450, + "loc": { + "start": { + "line": 128, + "column": 56 + }, + "end": { + "line": 128, + "column": 60 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 2452, + "end": 2458, + "loc": { + "start": { + "line": 128, + "column": 62 + }, + "end": { + "line": 128, + "column": 68 + } + }, + "name": "UNLIKE" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 2460, + "end": 2466, + "loc": { + "start": { + "line": 128, + "column": 70 + }, + "end": { + "line": 128, + "column": 76 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 2460, + "end": 2466, + "loc": { + "start": { + "line": 128, + "column": 70 + }, + "end": { + "line": 128, + "column": 76 + } + }, + "name": "postID" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 2460, + "end": 2466, + "loc": { + "start": { + "line": 128, + "column": 70 + }, + "end": { + "line": 128, + "column": 76 + } + }, + "name": "postID" + } + }, + { + "type": "Property", + "start": 2468, + "end": 2476, + "loc": { + "start": { + "line": 128, + "column": 78 + }, + "end": { + "line": 128, + "column": 86 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 2468, + "end": 2476, + "loc": { + "start": { + "line": 128, + "column": 78 + }, + "end": { + "line": 128, + "column": 86 + } + }, + "name": "response" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 2468, + "end": 2476, + "loc": { + "start": { + "line": 128, + "column": 78 + }, + "end": { + "line": 128, + "column": 86 + } + }, + "name": "response" + } + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _unlikeRequestResponse\n * @param postID\n * @param response\n * @private\n ", + "start": 2308, + "end": 2389, + "loc": { + "start": { + "line": 122, + "column": 0 + }, + "end": { + "line": 127, + "column": 3 + } + }, + "range": [ + 2308, + 2389 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * unlike\n * Post an 'unlike' to the API based on post id\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param postID post id\n * @returns {Function}\n ", + "start": 2482, + "end": 2670, + "loc": { + "start": { + "line": 130, + "column": 0 + }, + "end": { + "line": 137, + "column": 3 + } + }, + "range": [ + 2482, + 2670 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 2671, + "end": 3217, + "loc": { + "start": { + "line": 138, + "column": 0 + }, + "end": { + "line": 154, + "column": 1 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 2678, + "end": 3217, + "loc": { + "start": { + "line": 138, + "column": 7 + }, + "end": { + "line": 154, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 2687, + "end": 2693, + "loc": { + "start": { + "line": 138, + "column": 16 + }, + "end": { + "line": 138, + "column": 22 + } + }, + "name": "unlike", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2694, + "end": 2700, + "loc": { + "start": { + "line": 138, + "column": 23 + }, + "end": { + "line": 138, + "column": 29 + } + }, + "name": "postID" + } + ], + "body": { + "type": "BlockStatement", + "start": 2702, + "end": 3217, + "loc": { + "start": { + "line": 138, + "column": 31 + }, + "end": { + "line": 154, + "column": 1 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 2708, + "end": 3215, + "loc": { + "start": { + "line": 139, + "column": 4 + }, + "end": { + "line": 153, + "column": 5 + } + }, + "argument": { + "type": "ArrowFunctionExpression", + "start": 2715, + "end": 3215, + "loc": { + "start": { + "line": 139, + "column": 11 + }, + "end": { + "line": 153, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2716, + "end": 2724, + "loc": { + "start": { + "line": 139, + "column": 12 + }, + "end": { + "line": 139, + "column": 20 + } + }, + "name": "dispatch" + }, + { + "type": "Identifier", + "start": 2726, + "end": 2734, + "loc": { + "start": { + "line": 139, + "column": 22 + }, + "end": { + "line": 139, + "column": 30 + } + }, + "name": "getState" + } + ], + "body": { + "type": "BlockStatement", + "start": 2739, + "end": 3215, + "loc": { + "start": { + "line": 139, + "column": 35 + }, + "end": { + "line": 153, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 2749, + "end": 2775, + "loc": { + "start": { + "line": 140, + "column": 8 + }, + "end": { + "line": 140, + "column": 34 + } + }, + "expression": { + "type": "CallExpression", + "start": 2749, + "end": 2775, + "loc": { + "start": { + "line": 140, + "column": 8 + }, + "end": { + "line": 140, + "column": 34 + } + }, + "callee": { + "type": "Identifier", + "start": 2749, + "end": 2757, + "loc": { + "start": { + "line": 140, + "column": 8 + }, + "end": { + "line": 140, + "column": 16 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 2758, + "end": 2774, + "loc": { + "start": { + "line": 140, + "column": 17 + }, + "end": { + "line": 140, + "column": 33 + } + }, + "callee": { + "type": "Identifier", + "start": 2758, + "end": 2772, + "loc": { + "start": { + "line": 140, + "column": 17 + }, + "end": { + "line": 140, + "column": 31 + } + }, + "name": "_unlikeRequest" + }, + "arguments": [] + } + ] + } + }, + { + "type": "VariableDeclaration", + "start": 2784, + "end": 2880, + "loc": { + "start": { + "line": 141, + "column": 8 + }, + "end": { + "line": 144, + "column": 9 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 2790, + "end": 2880, + "loc": { + "start": { + "line": 141, + "column": 14 + }, + "end": { + "line": 144, + "column": 9 + } + }, + "id": { + "type": "Identifier", + "start": 2790, + "end": 2794, + "loc": { + "start": { + "line": 141, + "column": 14 + }, + "end": { + "line": 141, + "column": 18 + } + }, + "name": "data" + }, + "init": { + "type": "ObjectExpression", + "start": 2797, + "end": 2880, + "loc": { + "start": { + "line": 141, + "column": 21 + }, + "end": { + "line": 144, + "column": 9 + } + }, + "properties": [ + { + "type": "Property", + "start": 2811, + "end": 2838, + "loc": { + "start": { + "line": 142, + "column": 12 + }, + "end": { + "line": 142, + "column": 39 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2811, + "end": 2818, + "loc": { + "start": { + "line": 142, + "column": 12 + }, + "end": { + "line": 142, + "column": 19 + } + }, + "name": "user_id" + }, + "value": { + "type": "MemberExpression", + "start": 2820, + "end": 2838, + "loc": { + "start": { + "line": 142, + "column": 21 + }, + "end": { + "line": 142, + "column": 39 + } + }, + "object": { + "type": "MemberExpression", + "start": 2820, + "end": 2835, + "loc": { + "start": { + "line": 142, + "column": 21 + }, + "end": { + "line": 142, + "column": 36 + } + }, + "object": { + "type": "CallExpression", + "start": 2820, + "end": 2830, + "loc": { + "start": { + "line": 142, + "column": 21 + }, + "end": { + "line": 142, + "column": 31 + } + }, + "callee": { + "type": "Identifier", + "start": 2820, + "end": 2828, + "loc": { + "start": { + "line": 142, + "column": 21 + }, + "end": { + "line": 142, + "column": 29 + } + }, + "name": "getState" + }, + "arguments": [] + }, + "property": { + "type": "Identifier", + "start": 2831, + "end": 2835, + "loc": { + "start": { + "line": 142, + "column": 32 + }, + "end": { + "line": 142, + "column": 36 + } + }, + "name": "User" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2836, + "end": 2838, + "loc": { + "start": { + "line": 142, + "column": 37 + }, + "end": { + "line": 142, + "column": 39 + } + }, + "name": "id" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 2852, + "end": 2869, + "loc": { + "start": { + "line": 143, + "column": 12 + }, + "end": { + "line": 143, + "column": 29 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2852, + "end": 2861, + "loc": { + "start": { + "line": 143, + "column": 12 + }, + "end": { + "line": 143, + "column": 21 + } + }, + "name": "upload_id" + }, + "value": { + "type": "Identifier", + "start": 2863, + "end": 2869, + "loc": { + "start": { + "line": 143, + "column": 23 + }, + "end": { + "line": 143, + "column": 29 + } + }, + "name": "postID" + }, + "kind": "init" + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "ExpressionStatement", + "start": 2889, + "end": 3209, + "loc": { + "start": { + "line": 145, + "column": 8 + }, + "end": { + "line": 152, + "column": 10 + } + }, + "expression": { + "type": "CallExpression", + "start": 2889, + "end": 3209, + "loc": { + "start": { + "line": 145, + "column": 8 + }, + "end": { + "line": 152, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2889, + "end": 3126, + "loc": { + "start": { + "line": 145, + "column": 8 + }, + "end": { + "line": 150, + "column": 13 + } + }, + "object": { + "type": "CallExpression", + "start": 2889, + "end": 3112, + "loc": { + "start": { + "line": 145, + "column": 8 + }, + "end": { + "line": 149, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2889, + "end": 2901, + "loc": { + "start": { + "line": 145, + "column": 8 + }, + "end": { + "line": 145, + "column": 20 + } + }, + "object": { + "type": "Identifier", + "start": 2889, + "end": 2894, + "loc": { + "start": { + "line": 145, + "column": 8 + }, + "end": { + "line": 145, + "column": 13 + } + }, + "name": "axios" + }, + "property": { + "type": "Identifier", + "start": 2895, + "end": 2901, + "loc": { + "start": { + "line": 145, + "column": 14 + }, + "end": { + "line": 145, + "column": 20 + } + }, + "name": "delete" + }, + "computed": false + }, + "arguments": [ + { + "type": "TemplateLiteral", + "start": 2902, + "end": 2983, + "loc": { + "start": { + "line": 145, + "column": 21 + }, + "end": { + "line": 145, + "column": 102 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 2905, + "end": 2923, + "loc": { + "start": { + "line": 145, + "column": 24 + }, + "end": { + "line": 145, + "column": 42 + } + }, + "object": { + "type": "MemberExpression", + "start": 2905, + "end": 2915, + "loc": { + "start": { + "line": 145, + "column": 24 + }, + "end": { + "line": 145, + "column": 34 + } + }, + "object": { + "type": "Identifier", + "start": 2905, + "end": 2911, + "loc": { + "start": { + "line": 145, + "column": 24 + }, + "end": { + "line": 145, + "column": 30 + } + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 2912, + "end": 2915, + "loc": { + "start": { + "line": 145, + "column": 31 + }, + "end": { + "line": 145, + "column": 34 + } + }, + "name": "api" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2916, + "end": 2923, + "loc": { + "start": { + "line": 145, + "column": 35 + }, + "end": { + "line": 145, + "column": 42 + } + }, + "name": "baseUrl" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 2941, + "end": 2953, + "loc": { + "start": { + "line": 145, + "column": 60 + }, + "end": { + "line": 145, + "column": 72 + } + }, + "object": { + "type": "Identifier", + "start": 2941, + "end": 2945, + "loc": { + "start": { + "line": 145, + "column": 60 + }, + "end": { + "line": 145, + "column": 64 + } + }, + "name": "data" + }, + "property": { + "type": "Identifier", + "start": 2946, + "end": 2953, + "loc": { + "start": { + "line": 145, + "column": 65 + }, + "end": { + "line": 145, + "column": 72 + } + }, + "name": "user_id" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 2967, + "end": 2981, + "loc": { + "start": { + "line": 145, + "column": 86 + }, + "end": { + "line": 145, + "column": 100 + } + }, + "object": { + "type": "Identifier", + "start": 2967, + "end": 2971, + "loc": { + "start": { + "line": 145, + "column": 86 + }, + "end": { + "line": 145, + "column": 90 + } + }, + "name": "data" + }, + "property": { + "type": "Identifier", + "start": 2972, + "end": 2981, + "loc": { + "start": { + "line": 145, + "column": 91 + }, + "end": { + "line": 145, + "column": 100 + } + }, + "name": "upload_id" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 2903, + "end": 2903, + "loc": { + "start": { + "line": 145, + "column": 22 + }, + "end": { + "line": 145, + "column": 22 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 2924, + "end": 2939, + "loc": { + "start": { + "line": 145, + "column": 43 + }, + "end": { + "line": 145, + "column": 58 + } + }, + "value": { + "raw": "/likes?user_id=", + "cooked": "/likes?user_id=" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 2954, + "end": 2965, + "loc": { + "start": { + "line": 145, + "column": 73 + }, + "end": { + "line": 145, + "column": 84 + } + }, + "value": { + "raw": "&upload_id=", + "cooked": "&upload_id=" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 2982, + "end": 2982, + "loc": { + "start": { + "line": 145, + "column": 101 + }, + "end": { + "line": 145, + "column": 101 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + }, + { + "type": "Identifier", + "start": 2985, + "end": 2989, + "loc": { + "start": { + "line": 145, + "column": 104 + }, + "end": { + "line": 145, + "column": 108 + } + }, + "name": "data" + }, + { + "type": "ObjectExpression", + "start": 2991, + "end": 3111, + "loc": { + "start": { + "line": 145, + "column": 110 + }, + "end": { + "line": 149, + "column": 9 + } + }, + "properties": [ + { + "type": "Property", + "start": 3005, + "end": 3100, + "loc": { + "start": { + "line": 146, + "column": 12 + }, + "end": { + "line": 148, + "column": 13 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3005, + "end": 3012, + "loc": { + "start": { + "line": 146, + "column": 12 + }, + "end": { + "line": 146, + "column": 19 + } + }, + "name": "headers" + }, + "value": { + "type": "ObjectExpression", + "start": 3014, + "end": 3100, + "loc": { + "start": { + "line": 146, + "column": 21 + }, + "end": { + "line": 148, + "column": 13 + } + }, + "properties": [ + { + "type": "Property", + "start": 3032, + "end": 3086, + "loc": { + "start": { + "line": 147, + "column": 16 + }, + "end": { + "line": 147, + "column": 70 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3032, + "end": 3045, + "loc": { + "start": { + "line": 147, + "column": 16 + }, + "end": { + "line": 147, + "column": 29 + } + }, + "name": "Authorization" + }, + "value": { + "type": "TemplateLiteral", + "start": 3047, + "end": 3086, + "loc": { + "start": { + "line": 147, + "column": 31 + }, + "end": { + "line": 147, + "column": 70 + } + }, + "expressions": [ + { + "type": "CallExpression", + "start": 3057, + "end": 3084, + "loc": { + "start": { + "line": 147, + "column": 41 + }, + "end": { + "line": 147, + "column": 68 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3057, + "end": 3077, + "loc": { + "start": { + "line": 147, + "column": 41 + }, + "end": { + "line": 147, + "column": 61 + } + }, + "object": { + "type": "Identifier", + "start": 3057, + "end": 3069, + "loc": { + "start": { + "line": 147, + "column": 41 + }, + "end": { + "line": 147, + "column": 53 + } + }, + "name": "localStorage" + }, + "property": { + "type": "Identifier", + "start": 3070, + "end": 3077, + "loc": { + "start": { + "line": 147, + "column": 54 + }, + "end": { + "line": 147, + "column": 61 + } + }, + "name": "getItem" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 3078, + "end": 3083, + "loc": { + "start": { + "line": 147, + "column": 62 + }, + "end": { + "line": 147, + "column": 67 + } + }, + "value": "jwt", + "rawValue": "jwt", + "raw": "'jwt'" + } + ] + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 3048, + "end": 3055, + "loc": { + "start": { + "line": 147, + "column": 32 + }, + "end": { + "line": 147, + "column": 39 + } + }, + "value": { + "raw": "Bearer ", + "cooked": "Bearer " + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 3085, + "end": 3085, + "loc": { + "start": { + "line": 147, + "column": 69 + }, + "end": { + "line": 147, + "column": 69 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + }, + "kind": "init" + } + ] + }, + "kind": "init" + } + ] + } + ] + }, + "property": { + "type": "Identifier", + "start": 3122, + "end": 3126, + "loc": { + "start": { + "line": 150, + "column": 9 + }, + "end": { + "line": 150, + "column": 13 + } + }, + "name": "then" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 3127, + "end": 3208, + "loc": { + "start": { + "line": 150, + "column": 14 + }, + "end": { + "line": 152, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 3127, + "end": 3130, + "loc": { + "start": { + "line": 150, + "column": 14 + }, + "end": { + "line": 150, + "column": 17 + } + }, + "name": "res" + } + ], + "body": { + "type": "BlockStatement", + "start": 3134, + "end": 3208, + "loc": { + "start": { + "line": 150, + "column": 21 + }, + "end": { + "line": 152, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 3148, + "end": 3198, + "loc": { + "start": { + "line": 151, + "column": 12 + }, + "end": { + "line": 151, + "column": 62 + } + }, + "expression": { + "type": "CallExpression", + "start": 3148, + "end": 3198, + "loc": { + "start": { + "line": 151, + "column": 12 + }, + "end": { + "line": 151, + "column": 62 + } + }, + "callee": { + "type": "Identifier", + "start": 3148, + "end": 3156, + "loc": { + "start": { + "line": 151, + "column": 12 + }, + "end": { + "line": 151, + "column": 20 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 3157, + "end": 3197, + "loc": { + "start": { + "line": 151, + "column": 21 + }, + "end": { + "line": 151, + "column": 61 + } + }, + "callee": { + "type": "Identifier", + "start": 3157, + "end": 3179, + "loc": { + "start": { + "line": 151, + "column": 21 + }, + "end": { + "line": 151, + "column": 43 + } + }, + "name": "_unlikeRequestResponse" + }, + "arguments": [ + { + "type": "Identifier", + "start": 3180, + "end": 3186, + "loc": { + "start": { + "line": 151, + "column": 44 + }, + "end": { + "line": 151, + "column": 50 + } + }, + "name": "postID" + }, + { + "type": "MemberExpression", + "start": 3188, + "end": 3196, + "loc": { + "start": { + "line": 151, + "column": 52 + }, + "end": { + "line": 151, + "column": 60 + } + }, + "object": { + "type": "Identifier", + "start": 3188, + "end": 3191, + "loc": { + "start": { + "line": 151, + "column": 52 + }, + "end": { + "line": 151, + "column": 55 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 3192, + "end": 3196, + "loc": { + "start": { + "line": 151, + "column": 56 + }, + "end": { + "line": 151, + "column": 60 + } + }, + "name": "data" + }, + "computed": false + } + ] + } + ] + } + } + ] + } + } + ] + } + } + ] + } + } + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * unlike\n * Post an 'unlike' to the API based on post id\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param postID post id\n * @returns {Function}\n ", + "start": 2482, + "end": 2670, + "loc": { + "start": { + "line": 130, + "column": 0 + }, + "end": { + "line": 137, + "column": 3 + } + }, + "range": [ + 2482, + 2670 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * PAGINATE\n * @type {string}\n ", + "start": 3219, + "end": 3256, + "loc": { + "start": { + "line": 156, + "column": 0 + }, + "end": { + "line": 159, + "column": 3 + } + }, + "range": [ + 3219, + 3256 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * unlike\n * Post an 'unlike' to the API based on post id\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param postID post id\n * @returns {Function}\n ", + "start": 2482, + "end": 2670, + "loc": { + "start": { + "line": 130, + "column": 0 + }, + "end": { + "line": 137, + "column": 3 + } + }, + "range": [ + 2482, + 2670 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * PAGINATE\n * @type {string}\n ", + "start": 3219, + "end": 3256, + "loc": { + "start": { + "line": 156, + "column": 0 + }, + "end": { + "line": 159, + "column": 3 + } + }, + "range": [ + 3219, + 3256 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 3257, + "end": 3298, + "loc": { + "start": { + "line": 160, + "column": 0 + }, + "end": { + "line": 160, + "column": 41 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 3264, + "end": 3298, + "loc": { + "start": { + "line": 160, + "column": 7 + }, + "end": { + "line": 160, + "column": 41 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 3270, + "end": 3298, + "loc": { + "start": { + "line": 160, + "column": 13 + }, + "end": { + "line": 160, + "column": 41 + } + }, + "id": { + "type": "Identifier", + "start": 3270, + "end": 3278, + "loc": { + "start": { + "line": 160, + "column": 13 + }, + "end": { + "line": 160, + "column": 21 + } + }, + "name": "PAGINATE", + "leadingComments": null + }, + "init": { + "type": "Literal", + "start": 3281, + "end": 3298, + "loc": { + "start": { + "line": 160, + "column": 24 + }, + "end": { + "line": 160, + "column": 41 + } + }, + "value": "PHOTOS_PAGINATE", + "rawValue": "PHOTOS_PAGINATE", + "raw": "'PHOTOS_PAGINATE'", + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * PAGINATE\n * @type {string}\n ", + "start": 3219, + "end": 3256, + "loc": { + "start": { + "line": 156, + "column": 0 + }, + "end": { + "line": 159, + "column": 3 + } + }, + "range": [ + 3219, + 3256 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _paginateRequest\n * @param lastId\n * @private\n ", + "start": 3300, + "end": 3356, + "loc": { + "start": { + "line": 162, + "column": 0 + }, + "end": { + "line": 166, + "column": 3 + } + }, + "range": [ + 3300, + 3356 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * PAGINATE\n * @type {string}\n ", + "start": 3219, + "end": 3256, + "loc": { + "start": { + "line": 156, + "column": 0 + }, + "end": { + "line": 159, + "column": 3 + } + }, + "range": [ + 3219, + 3256 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _paginateRequest\n * @param lastId\n * @private\n ", + "start": 3300, + "end": 3356, + "loc": { + "start": { + "line": 162, + "column": 0 + }, + "end": { + "line": 166, + "column": 3 + } + }, + "range": [ + 3300, + 3356 + ] + } + ] + }, + { + "type": "VariableDeclaration", + "start": 3357, + "end": 3421, + "loc": { + "start": { + "line": 167, + "column": 0 + }, + "end": { + "line": 167, + "column": 64 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 3363, + "end": 3421, + "loc": { + "start": { + "line": 167, + "column": 6 + }, + "end": { + "line": 167, + "column": 64 + } + }, + "id": { + "type": "Identifier", + "start": 3363, + "end": 3379, + "loc": { + "start": { + "line": 167, + "column": 6 + }, + "end": { + "line": 167, + "column": 22 + } + }, + "name": "_paginateRequest", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 3382, + "end": 3421, + "loc": { + "start": { + "line": 167, + "column": 25 + }, + "end": { + "line": 167, + "column": 64 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 3382, + "end": 3388, + "loc": { + "start": { + "line": 167, + "column": 25 + }, + "end": { + "line": 167, + "column": 31 + } + }, + "name": "lastId" + } + ], + "body": { + "type": "ObjectExpression", + "start": 3393, + "end": 3420, + "loc": { + "start": { + "line": 167, + "column": 36 + }, + "end": { + "line": 167, + "column": 63 + } + }, + "properties": [ + { + "type": "Property", + "start": 3395, + "end": 3409, + "loc": { + "start": { + "line": 167, + "column": 38 + }, + "end": { + "line": 167, + "column": 52 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3395, + "end": 3399, + "loc": { + "start": { + "line": 167, + "column": 38 + }, + "end": { + "line": 167, + "column": 42 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 3401, + "end": 3409, + "loc": { + "start": { + "line": 167, + "column": 44 + }, + "end": { + "line": 167, + "column": 52 + } + }, + "name": "PAGINATE" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 3411, + "end": 3417, + "loc": { + "start": { + "line": 167, + "column": 54 + }, + "end": { + "line": 167, + "column": 60 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 3411, + "end": 3417, + "loc": { + "start": { + "line": 167, + "column": 54 + }, + "end": { + "line": 167, + "column": 60 + } + }, + "name": "lastId" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 3411, + "end": 3417, + "loc": { + "start": { + "line": 167, + "column": 54 + }, + "end": { + "line": 167, + "column": 60 + } + }, + "name": "lastId" + } + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _paginateRequest\n * @param lastId\n * @private\n ", + "start": 3300, + "end": 3356, + "loc": { + "start": { + "line": 162, + "column": 0 + }, + "end": { + "line": 166, + "column": 3 + } + }, + "range": [ + 3300, + 3356 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _paginateResponse\n * @param response\n * @private\n ", + "start": 3423, + "end": 3482, + "loc": { + "start": { + "line": 169, + "column": 0 + }, + "end": { + "line": 173, + "column": 3 + } + }, + "range": [ + 3423, + 3482 + ] + } + ] + }, + { + "type": "VariableDeclaration", + "start": 3483, + "end": 3552, + "loc": { + "start": { + "line": 174, + "column": 0 + }, + "end": { + "line": 174, + "column": 69 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 3489, + "end": 3552, + "loc": { + "start": { + "line": 174, + "column": 6 + }, + "end": { + "line": 174, + "column": 69 + } + }, + "id": { + "type": "Identifier", + "start": 3489, + "end": 3506, + "loc": { + "start": { + "line": 174, + "column": 6 + }, + "end": { + "line": 174, + "column": 23 + } + }, + "name": "_paginateResponse", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 3509, + "end": 3552, + "loc": { + "start": { + "line": 174, + "column": 26 + }, + "end": { + "line": 174, + "column": 69 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 3509, + "end": 3517, + "loc": { + "start": { + "line": 174, + "column": 26 + }, + "end": { + "line": 174, + "column": 34 + } + }, + "name": "response" + } + ], + "body": { + "type": "ObjectExpression", + "start": 3522, + "end": 3551, + "loc": { + "start": { + "line": 174, + "column": 39 + }, + "end": { + "line": 174, + "column": 68 + } + }, + "properties": [ + { + "type": "Property", + "start": 3524, + "end": 3538, + "loc": { + "start": { + "line": 174, + "column": 41 + }, + "end": { + "line": 174, + "column": 55 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3524, + "end": 3528, + "loc": { + "start": { + "line": 174, + "column": 41 + }, + "end": { + "line": 174, + "column": 45 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 3530, + "end": 3538, + "loc": { + "start": { + "line": 174, + "column": 47 + }, + "end": { + "line": 174, + "column": 55 + } + }, + "name": "PAGINATE" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 3540, + "end": 3548, + "loc": { + "start": { + "line": 174, + "column": 57 + }, + "end": { + "line": 174, + "column": 65 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 3540, + "end": 3548, + "loc": { + "start": { + "line": 174, + "column": 57 + }, + "end": { + "line": 174, + "column": 65 + } + }, + "name": "response" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 3540, + "end": 3548, + "loc": { + "start": { + "line": 174, + "column": 57 + }, + "end": { + "line": 174, + "column": 65 + } + }, + "name": "response" + } + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _paginateResponse\n * @param response\n * @private\n ", + "start": 3423, + "end": 3482, + "loc": { + "start": { + "line": 169, + "column": 0 + }, + "end": { + "line": 173, + "column": 3 + } + }, + "range": [ + 3423, + 3482 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * paginate\n * Get photo uploads from API based on user id, and the last post id (for pagination purposes)\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @returns {Function}\n ", + "start": 3554, + "end": 3766, + "loc": { + "start": { + "line": 176, + "column": 0 + }, + "end": { + "line": 182, + "column": 3 + } + }, + "range": [ + 3554, + 3766 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 3767, + "end": 4321, + "loc": { + "start": { + "line": 183, + "column": 0 + }, + "end": { + "line": 200, + "column": 1 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 3774, + "end": 4321, + "loc": { + "start": { + "line": 183, + "column": 7 + }, + "end": { + "line": 200, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 3783, + "end": 3791, + "loc": { + "start": { + "line": 183, + "column": 16 + }, + "end": { + "line": 183, + "column": 24 + } + }, + "name": "paginate", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 3794, + "end": 4321, + "loc": { + "start": { + "line": 183, + "column": 27 + }, + "end": { + "line": 200, + "column": 1 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 3800, + "end": 4319, + "loc": { + "start": { + "line": 184, + "column": 4 + }, + "end": { + "line": 199, + "column": 5 + } + }, + "argument": { + "type": "ArrowFunctionExpression", + "start": 3807, + "end": 4319, + "loc": { + "start": { + "line": 184, + "column": 11 + }, + "end": { + "line": 199, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 3808, + "end": 3816, + "loc": { + "start": { + "line": 184, + "column": 12 + }, + "end": { + "line": 184, + "column": 20 + } + }, + "name": "dispatch" + }, + { + "type": "Identifier", + "start": 3818, + "end": 3826, + "loc": { + "start": { + "line": 184, + "column": 22 + }, + "end": { + "line": 184, + "column": 30 + } + }, + "name": "getState" + } + ], + "body": { + "type": "BlockStatement", + "start": 3831, + "end": 4319, + "loc": { + "start": { + "line": 184, + "column": 35 + }, + "end": { + "line": 199, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 3841, + "end": 3913, + "loc": { + "start": { + "line": 185, + "column": 8 + }, + "end": { + "line": 188, + "column": 22 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 3847, + "end": 3913, + "loc": { + "start": { + "line": 185, + "column": 14 + }, + "end": { + "line": 188, + "column": 22 + } + }, + "id": { + "type": "ObjectPattern", + "start": 3847, + "end": 3900, + "loc": { + "start": { + "line": 185, + "column": 14 + }, + "end": { + "line": 188, + "column": 9 + } + }, + "properties": [ + { + "type": "Property", + "start": 3861, + "end": 3871, + "loc": { + "start": { + "line": 186, + "column": 12 + }, + "end": { + "line": 186, + "column": 22 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 3861, + "end": 3871, + "loc": { + "start": { + "line": 186, + "column": 12 + }, + "end": { + "line": 186, + "column": 22 + } + }, + "name": "Pagination" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 3861, + "end": 3871, + "loc": { + "start": { + "line": 186, + "column": 12 + }, + "end": { + "line": 186, + "column": 22 + } + }, + "name": "Pagination" + } + }, + { + "type": "Property", + "start": 3885, + "end": 3889, + "loc": { + "start": { + "line": 187, + "column": 12 + }, + "end": { + "line": 187, + "column": 16 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 3885, + "end": 3889, + "loc": { + "start": { + "line": 187, + "column": 12 + }, + "end": { + "line": 187, + "column": 16 + } + }, + "name": "User" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 3885, + "end": 3889, + "loc": { + "start": { + "line": 187, + "column": 12 + }, + "end": { + "line": 187, + "column": 16 + } + }, + "name": "User" + } + } + ] + }, + "init": { + "type": "CallExpression", + "start": 3903, + "end": 3913, + "loc": { + "start": { + "line": 188, + "column": 12 + }, + "end": { + "line": 188, + "column": 22 + } + }, + "callee": { + "type": "Identifier", + "start": 3903, + "end": 3911, + "loc": { + "start": { + "line": 188, + "column": 12 + }, + "end": { + "line": 188, + "column": 20 + } + }, + "name": "getState" + }, + "arguments": [] + } + } + ], + "kind": "const" + }, + { + "type": "IfStatement", + "start": 3922, + "end": 3954, + "loc": { + "start": { + "line": 189, + "column": 8 + }, + "end": { + "line": 189, + "column": 40 + } + }, + "test": { + "type": "MemberExpression", + "start": 3926, + "end": 3945, + "loc": { + "start": { + "line": 189, + "column": 12 + }, + "end": { + "line": 189, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 3926, + "end": 3936, + "loc": { + "start": { + "line": 189, + "column": 12 + }, + "end": { + "line": 189, + "column": 22 + } + }, + "name": "Pagination" + }, + "property": { + "type": "Identifier", + "start": 3937, + "end": 3945, + "loc": { + "start": { + "line": 189, + "column": 23 + }, + "end": { + "line": 189, + "column": 31 + } + }, + "name": "fetching" + }, + "computed": false + }, + "consequent": { + "type": "ReturnStatement", + "start": 3947, + "end": 3954, + "loc": { + "start": { + "line": 189, + "column": 33 + }, + "end": { + "line": 189, + "column": 40 + } + }, + "argument": null + }, + "alternate": null + }, + { + "type": "ExpressionStatement", + "start": 3963, + "end": 4008, + "loc": { + "start": { + "line": 190, + "column": 8 + }, + "end": { + "line": 190, + "column": 53 + } + }, + "expression": { + "type": "CallExpression", + "start": 3963, + "end": 4008, + "loc": { + "start": { + "line": 190, + "column": 8 + }, + "end": { + "line": 190, + "column": 53 + } + }, + "callee": { + "type": "Identifier", + "start": 3963, + "end": 3971, + "loc": { + "start": { + "line": 190, + "column": 8 + }, + "end": { + "line": 190, + "column": 16 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 3972, + "end": 4007, + "loc": { + "start": { + "line": 190, + "column": 17 + }, + "end": { + "line": 190, + "column": 52 + } + }, + "callee": { + "type": "Identifier", + "start": 3972, + "end": 3988, + "loc": { + "start": { + "line": 190, + "column": 17 + }, + "end": { + "line": 190, + "column": 33 + } + }, + "name": "_paginateRequest" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 3989, + "end": 4006, + "loc": { + "start": { + "line": 190, + "column": 34 + }, + "end": { + "line": 190, + "column": 51 + } + }, + "object": { + "type": "Identifier", + "start": 3989, + "end": 3999, + "loc": { + "start": { + "line": 190, + "column": 34 + }, + "end": { + "line": 190, + "column": 44 + } + }, + "name": "Pagination" + }, + "property": { + "type": "Identifier", + "start": 4000, + "end": 4006, + "loc": { + "start": { + "line": 190, + "column": 45 + }, + "end": { + "line": 190, + "column": 51 + } + }, + "name": "lastId" + }, + "computed": false + } + ] + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 4017, + "end": 4313, + "loc": { + "start": { + "line": 191, + "column": 8 + }, + "end": { + "line": 198, + "column": 10 + } + }, + "expression": { + "type": "CallExpression", + "start": 4017, + "end": 4313, + "loc": { + "start": { + "line": 191, + "column": 8 + }, + "end": { + "line": 198, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4017, + "end": 4243, + "loc": { + "start": { + "line": 191, + "column": 8 + }, + "end": { + "line": 196, + "column": 13 + } + }, + "object": { + "type": "CallExpression", + "start": 4017, + "end": 4229, + "loc": { + "start": { + "line": 191, + "column": 8 + }, + "end": { + "line": 195, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4017, + "end": 4026, + "loc": { + "start": { + "line": 191, + "column": 8 + }, + "end": { + "line": 191, + "column": 17 + } + }, + "object": { + "type": "Identifier", + "start": 4017, + "end": 4022, + "loc": { + "start": { + "line": 191, + "column": 8 + }, + "end": { + "line": 191, + "column": 13 + } + }, + "name": "axios" + }, + "property": { + "type": "Identifier", + "start": 4023, + "end": 4026, + "loc": { + "start": { + "line": 191, + "column": 14 + }, + "end": { + "line": 191, + "column": 17 + } + }, + "name": "get" + }, + "computed": false + }, + "arguments": [ + { + "type": "TemplateLiteral", + "start": 4027, + "end": 4106, + "loc": { + "start": { + "line": 191, + "column": 18 + }, + "end": { + "line": 191, + "column": 97 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 4030, + "end": 4048, + "loc": { + "start": { + "line": 191, + "column": 21 + }, + "end": { + "line": 191, + "column": 39 + } + }, + "object": { + "type": "MemberExpression", + "start": 4030, + "end": 4040, + "loc": { + "start": { + "line": 191, + "column": 21 + }, + "end": { + "line": 191, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 4030, + "end": 4036, + "loc": { + "start": { + "line": 191, + "column": 21 + }, + "end": { + "line": 191, + "column": 27 + } + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 4037, + "end": 4040, + "loc": { + "start": { + "line": 191, + "column": 28 + }, + "end": { + "line": 191, + "column": 31 + } + }, + "name": "api" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 4041, + "end": 4048, + "loc": { + "start": { + "line": 191, + "column": 32 + }, + "end": { + "line": 191, + "column": 39 + } + }, + "name": "baseUrl" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 4068, + "end": 4075, + "loc": { + "start": { + "line": 191, + "column": 59 + }, + "end": { + "line": 191, + "column": 66 + } + }, + "object": { + "type": "Identifier", + "start": 4068, + "end": 4072, + "loc": { + "start": { + "line": 191, + "column": 59 + }, + "end": { + "line": 191, + "column": 63 + } + }, + "name": "User" + }, + "property": { + "type": "Identifier", + "start": 4073, + "end": 4075, + "loc": { + "start": { + "line": 191, + "column": 64 + }, + "end": { + "line": 191, + "column": 66 + } + }, + "name": "id" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 4087, + "end": 4104, + "loc": { + "start": { + "line": 191, + "column": 78 + }, + "end": { + "line": 191, + "column": 95 + } + }, + "object": { + "type": "Identifier", + "start": 4087, + "end": 4097, + "loc": { + "start": { + "line": 191, + "column": 78 + }, + "end": { + "line": 191, + "column": 88 + } + }, + "name": "Pagination" + }, + "property": { + "type": "Identifier", + "start": 4098, + "end": 4104, + "loc": { + "start": { + "line": 191, + "column": 89 + }, + "end": { + "line": 191, + "column": 95 + } + }, + "name": "lastId" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 4028, + "end": 4028, + "loc": { + "start": { + "line": 191, + "column": 19 + }, + "end": { + "line": 191, + "column": 19 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 4049, + "end": 4066, + "loc": { + "start": { + "line": 191, + "column": 40 + }, + "end": { + "line": 191, + "column": 57 + } + }, + "value": { + "raw": "/uploads?user_id=", + "cooked": "/uploads?user_id=" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 4076, + "end": 4085, + "loc": { + "start": { + "line": 191, + "column": 67 + }, + "end": { + "line": 191, + "column": 76 + } + }, + "value": { + "raw": "&last_id=", + "cooked": "&last_id=" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 4105, + "end": 4105, + "loc": { + "start": { + "line": 191, + "column": 96 + }, + "end": { + "line": 191, + "column": 96 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + }, + { + "type": "ObjectExpression", + "start": 4108, + "end": 4228, + "loc": { + "start": { + "line": 191, + "column": 99 + }, + "end": { + "line": 195, + "column": 9 + } + }, + "properties": [ + { + "type": "Property", + "start": 4122, + "end": 4217, + "loc": { + "start": { + "line": 192, + "column": 12 + }, + "end": { + "line": 194, + "column": 13 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 4122, + "end": 4129, + "loc": { + "start": { + "line": 192, + "column": 12 + }, + "end": { + "line": 192, + "column": 19 + } + }, + "name": "headers" + }, + "value": { + "type": "ObjectExpression", + "start": 4131, + "end": 4217, + "loc": { + "start": { + "line": 192, + "column": 21 + }, + "end": { + "line": 194, + "column": 13 + } + }, + "properties": [ + { + "type": "Property", + "start": 4149, + "end": 4203, + "loc": { + "start": { + "line": 193, + "column": 16 + }, + "end": { + "line": 193, + "column": 70 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 4149, + "end": 4162, + "loc": { + "start": { + "line": 193, + "column": 16 + }, + "end": { + "line": 193, + "column": 29 + } + }, + "name": "Authorization" + }, + "value": { + "type": "TemplateLiteral", + "start": 4164, + "end": 4203, + "loc": { + "start": { + "line": 193, + "column": 31 + }, + "end": { + "line": 193, + "column": 70 + } + }, + "expressions": [ + { + "type": "CallExpression", + "start": 4174, + "end": 4201, + "loc": { + "start": { + "line": 193, + "column": 41 + }, + "end": { + "line": 193, + "column": 68 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4174, + "end": 4194, + "loc": { + "start": { + "line": 193, + "column": 41 + }, + "end": { + "line": 193, + "column": 61 + } + }, + "object": { + "type": "Identifier", + "start": 4174, + "end": 4186, + "loc": { + "start": { + "line": 193, + "column": 41 + }, + "end": { + "line": 193, + "column": 53 + } + }, + "name": "localStorage" + }, + "property": { + "type": "Identifier", + "start": 4187, + "end": 4194, + "loc": { + "start": { + "line": 193, + "column": 54 + }, + "end": { + "line": 193, + "column": 61 + } + }, + "name": "getItem" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 4195, + "end": 4200, + "loc": { + "start": { + "line": 193, + "column": 62 + }, + "end": { + "line": 193, + "column": 67 + } + }, + "value": "jwt", + "rawValue": "jwt", + "raw": "'jwt'" + } + ] + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 4165, + "end": 4172, + "loc": { + "start": { + "line": 193, + "column": 32 + }, + "end": { + "line": 193, + "column": 39 + } + }, + "value": { + "raw": "Bearer ", + "cooked": "Bearer " + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 4202, + "end": 4202, + "loc": { + "start": { + "line": 193, + "column": 69 + }, + "end": { + "line": 193, + "column": 69 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + }, + "kind": "init" + } + ] + }, + "kind": "init" + } + ] + } + ] + }, + "property": { + "type": "Identifier", + "start": 4239, + "end": 4243, + "loc": { + "start": { + "line": 196, + "column": 9 + }, + "end": { + "line": 196, + "column": 13 + } + }, + "name": "then" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 4244, + "end": 4312, + "loc": { + "start": { + "line": 196, + "column": 14 + }, + "end": { + "line": 198, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 4244, + "end": 4247, + "loc": { + "start": { + "line": 196, + "column": 14 + }, + "end": { + "line": 196, + "column": 17 + } + }, + "name": "res" + } + ], + "body": { + "type": "BlockStatement", + "start": 4251, + "end": 4312, + "loc": { + "start": { + "line": 196, + "column": 21 + }, + "end": { + "line": 198, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 4265, + "end": 4302, + "loc": { + "start": { + "line": 197, + "column": 12 + }, + "end": { + "line": 197, + "column": 49 + } + }, + "expression": { + "type": "CallExpression", + "start": 4265, + "end": 4302, + "loc": { + "start": { + "line": 197, + "column": 12 + }, + "end": { + "line": 197, + "column": 49 + } + }, + "callee": { + "type": "Identifier", + "start": 4265, + "end": 4273, + "loc": { + "start": { + "line": 197, + "column": 12 + }, + "end": { + "line": 197, + "column": 20 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 4274, + "end": 4301, + "loc": { + "start": { + "line": 197, + "column": 21 + }, + "end": { + "line": 197, + "column": 48 + } + }, + "callee": { + "type": "Identifier", + "start": 4274, + "end": 4291, + "loc": { + "start": { + "line": 197, + "column": 21 + }, + "end": { + "line": 197, + "column": 38 + } + }, + "name": "_paginateResponse" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 4292, + "end": 4300, + "loc": { + "start": { + "line": 197, + "column": 39 + }, + "end": { + "line": 197, + "column": 47 + } + }, + "object": { + "type": "Identifier", + "start": 4292, + "end": 4295, + "loc": { + "start": { + "line": 197, + "column": 39 + }, + "end": { + "line": 197, + "column": 42 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 4296, + "end": 4300, + "loc": { + "start": { + "line": 197, + "column": 43 + }, + "end": { + "line": 197, + "column": 47 + } + }, + "name": "data" + }, + "computed": false + } + ] + } + ] + } + } + ] + } + } + ] + } + } + ] + } + } + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * paginate\n * Get photo uploads from API based on user id, and the last post id (for pagination purposes)\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @returns {Function}\n ", + "start": 3554, + "end": 3766, + "loc": { + "start": { + "line": 176, + "column": 0 + }, + "end": { + "line": 182, + "column": 3 + } + }, + "range": [ + 3554, + 3766 + ] + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * paginate\n * Get photo uploads from API based on user id, and the last post id (for pagination purposes)\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @returns {Function}\n ", + "start": 3554, + "end": 3766, + "loc": { + "start": { + "line": 176, + "column": 0 + }, + "end": { + "line": 182, + "column": 3 + } + }, + "range": [ + 3554, + 3766 + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/actions/Profile.js.json b/app/docs/ast/source/actions/Profile.js.json new file mode 100644 index 0000000..5231354 --- /dev/null +++ b/app/docs/ast/source/actions/Profile.js.json @@ -0,0 +1,6730 @@ +{ + "type": "Program", + "start": 0, + "end": 3053, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 135, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 30, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 30 + } + }, + "specifiers": [ + { + "type": "ImportNamespaceSpecifier", + "start": 7, + "end": 17, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 17 + } + }, + "local": { + "type": "Identifier", + "start": 12, + "end": 17, + "loc": { + "start": { + "line": 1, + "column": 12 + }, + "end": { + "line": 1, + "column": 17 + } + }, + "name": "axios" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 23, + "end": 30, + "loc": { + "start": { + "line": 1, + "column": 23 + }, + "end": { + "line": 1, + "column": 30 + } + }, + "value": "axios", + "rawValue": "axios", + "raw": "'axios'" + } + }, + { + "type": "ImportDeclaration", + "start": 31, + "end": 58, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 27 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 38, + "end": 44, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "local": { + "type": "Identifier", + "start": 38, + "end": 44, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "name": "config" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 50, + "end": 58, + "loc": { + "start": { + "line": 2, + "column": 19 + }, + "end": { + "line": 2, + "column": 27 + } + }, + "value": "config", + "rawValue": "config", + "raw": "'config'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * LOAD\n * @type {string}\n ", + "start": 60, + "end": 93, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + }, + "range": [ + 60, + 93 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 94, + "end": 128, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 34 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 101, + "end": 128, + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 34 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 107, + "end": 128, + "loc": { + "start": { + "line": 8, + "column": 13 + }, + "end": { + "line": 8, + "column": 34 + } + }, + "id": { + "type": "Identifier", + "start": 107, + "end": 111, + "loc": { + "start": { + "line": 8, + "column": 13 + }, + "end": { + "line": 8, + "column": 17 + } + }, + "name": "LOAD", + "leadingComments": null + }, + "init": { + "type": "Literal", + "start": 114, + "end": 128, + "loc": { + "start": { + "line": 8, + "column": 20 + }, + "end": { + "line": 8, + "column": 34 + } + }, + "value": "PROFILE_LOAD", + "rawValue": "PROFILE_LOAD", + "raw": "'PROFILE_LOAD'", + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * LOAD\n * @type {string}\n ", + "start": 60, + "end": 93, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + }, + "range": [ + 60, + 93 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _loadRequest\n * @param userID\n * @private\n ", + "start": 130, + "end": 182, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + }, + "range": [ + 130, + 182 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * LOAD\n * @type {string}\n ", + "start": 60, + "end": 93, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + }, + "range": [ + 60, + 93 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _loadRequest\n * @param userID\n * @private\n ", + "start": 130, + "end": 182, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + }, + "range": [ + 130, + 182 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 183, + "end": 248, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 15, + "column": 65 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 190, + "end": 248, + "loc": { + "start": { + "line": 15, + "column": 7 + }, + "end": { + "line": 15, + "column": 65 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 196, + "end": 248, + "loc": { + "start": { + "line": 15, + "column": 13 + }, + "end": { + "line": 15, + "column": 65 + } + }, + "id": { + "type": "Identifier", + "start": 196, + "end": 208, + "loc": { + "start": { + "line": 15, + "column": 13 + }, + "end": { + "line": 15, + "column": 25 + } + }, + "name": "_loadRequest", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 211, + "end": 248, + "loc": { + "start": { + "line": 15, + "column": 28 + }, + "end": { + "line": 15, + "column": 65 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 212, + "end": 218, + "loc": { + "start": { + "line": 15, + "column": 29 + }, + "end": { + "line": 15, + "column": 35 + } + }, + "name": "userID" + } + ], + "body": { + "type": "ObjectExpression", + "start": 224, + "end": 247, + "loc": { + "start": { + "line": 15, + "column": 41 + }, + "end": { + "line": 15, + "column": 64 + } + }, + "properties": [ + { + "type": "Property", + "start": 226, + "end": 236, + "loc": { + "start": { + "line": 15, + "column": 43 + }, + "end": { + "line": 15, + "column": 53 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 226, + "end": 230, + "loc": { + "start": { + "line": 15, + "column": 43 + }, + "end": { + "line": 15, + "column": 47 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 232, + "end": 236, + "loc": { + "start": { + "line": 15, + "column": 49 + }, + "end": { + "line": 15, + "column": 53 + } + }, + "name": "LOAD" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 238, + "end": 244, + "loc": { + "start": { + "line": 15, + "column": 55 + }, + "end": { + "line": 15, + "column": 61 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 238, + "end": 244, + "loc": { + "start": { + "line": 15, + "column": 55 + }, + "end": { + "line": 15, + "column": 61 + } + }, + "name": "userID" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 238, + "end": 244, + "loc": { + "start": { + "line": 15, + "column": 55 + }, + "end": { + "line": 15, + "column": 61 + } + }, + "name": "userID" + } + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _loadRequest\n * @param userID\n * @private\n ", + "start": 130, + "end": 182, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + }, + "range": [ + 130, + 182 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _loadResponse\n * @param userID\n * @param response\n * @private\n ", + "start": 250, + "end": 322, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 22, + "column": 3 + } + }, + "range": [ + 250, + 322 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _loadRequest\n * @param userID\n * @private\n ", + "start": 130, + "end": 182, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + }, + "range": [ + 130, + 182 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _loadResponse\n * @param userID\n * @param response\n * @private\n ", + "start": 250, + "end": 322, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 22, + "column": 3 + } + }, + "range": [ + 250, + 322 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 323, + "end": 409, + "loc": { + "start": { + "line": 23, + "column": 0 + }, + "end": { + "line": 23, + "column": 86 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 330, + "end": 409, + "loc": { + "start": { + "line": 23, + "column": 7 + }, + "end": { + "line": 23, + "column": 86 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 336, + "end": 409, + "loc": { + "start": { + "line": 23, + "column": 13 + }, + "end": { + "line": 23, + "column": 86 + } + }, + "id": { + "type": "Identifier", + "start": 336, + "end": 349, + "loc": { + "start": { + "line": 23, + "column": 13 + }, + "end": { + "line": 23, + "column": 26 + } + }, + "name": "_loadResponse", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 352, + "end": 409, + "loc": { + "start": { + "line": 23, + "column": 29 + }, + "end": { + "line": 23, + "column": 86 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 353, + "end": 359, + "loc": { + "start": { + "line": 23, + "column": 30 + }, + "end": { + "line": 23, + "column": 36 + } + }, + "name": "userID" + }, + { + "type": "Identifier", + "start": 361, + "end": 369, + "loc": { + "start": { + "line": 23, + "column": 38 + }, + "end": { + "line": 23, + "column": 46 + } + }, + "name": "response" + } + ], + "body": { + "type": "ObjectExpression", + "start": 375, + "end": 408, + "loc": { + "start": { + "line": 23, + "column": 52 + }, + "end": { + "line": 23, + "column": 85 + } + }, + "properties": [ + { + "type": "Property", + "start": 377, + "end": 387, + "loc": { + "start": { + "line": 23, + "column": 54 + }, + "end": { + "line": 23, + "column": 64 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 377, + "end": 381, + "loc": { + "start": { + "line": 23, + "column": 54 + }, + "end": { + "line": 23, + "column": 58 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 383, + "end": 387, + "loc": { + "start": { + "line": 23, + "column": 60 + }, + "end": { + "line": 23, + "column": 64 + } + }, + "name": "LOAD" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 389, + "end": 395, + "loc": { + "start": { + "line": 23, + "column": 66 + }, + "end": { + "line": 23, + "column": 72 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 389, + "end": 395, + "loc": { + "start": { + "line": 23, + "column": 66 + }, + "end": { + "line": 23, + "column": 72 + } + }, + "name": "userID" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 389, + "end": 395, + "loc": { + "start": { + "line": 23, + "column": 66 + }, + "end": { + "line": 23, + "column": 72 + } + }, + "name": "userID" + } + }, + { + "type": "Property", + "start": 397, + "end": 405, + "loc": { + "start": { + "line": 23, + "column": 74 + }, + "end": { + "line": 23, + "column": 82 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 397, + "end": 405, + "loc": { + "start": { + "line": 23, + "column": 74 + }, + "end": { + "line": 23, + "column": 82 + } + }, + "name": "response" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 397, + "end": 405, + "loc": { + "start": { + "line": 23, + "column": 74 + }, + "end": { + "line": 23, + "column": 82 + } + }, + "name": "response" + } + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _loadResponse\n * @param userID\n * @param response\n * @private\n ", + "start": 250, + "end": 322, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 22, + "column": 3 + } + }, + "range": [ + 250, + 322 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * load\n * Gets profile data from the API for a given user id\n * @param userID user id\n * @returns {Function}\n ", + "start": 411, + "end": 528, + "loc": { + "start": { + "line": 25, + "column": 0 + }, + "end": { + "line": 30, + "column": 3 + } + }, + "range": [ + 411, + 528 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _loadResponse\n * @param userID\n * @param response\n * @private\n ", + "start": 250, + "end": 322, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 22, + "column": 3 + } + }, + "range": [ + 250, + 322 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * load\n * Gets profile data from the API for a given user id\n * @param userID user id\n * @returns {Function}\n ", + "start": 411, + "end": 528, + "loc": { + "start": { + "line": 25, + "column": 0 + }, + "end": { + "line": 30, + "column": 3 + } + }, + "range": [ + 411, + 528 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 529, + "end": 968, + "loc": { + "start": { + "line": 31, + "column": 0 + }, + "end": { + "line": 44, + "column": 1 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 536, + "end": 968, + "loc": { + "start": { + "line": 31, + "column": 7 + }, + "end": { + "line": 44, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 545, + "end": 549, + "loc": { + "start": { + "line": 31, + "column": 16 + }, + "end": { + "line": 31, + "column": 20 + } + }, + "name": "load", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 550, + "end": 556, + "loc": { + "start": { + "line": 31, + "column": 21 + }, + "end": { + "line": 31, + "column": 27 + } + }, + "name": "userID" + } + ], + "body": { + "type": "BlockStatement", + "start": 558, + "end": 968, + "loc": { + "start": { + "line": 31, + "column": 29 + }, + "end": { + "line": 44, + "column": 1 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 564, + "end": 966, + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 43, + "column": 5 + } + }, + "argument": { + "type": "ArrowFunctionExpression", + "start": 571, + "end": 966, + "loc": { + "start": { + "line": 32, + "column": 11 + }, + "end": { + "line": 43, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 572, + "end": 580, + "loc": { + "start": { + "line": 32, + "column": 12 + }, + "end": { + "line": 32, + "column": 20 + } + }, + "name": "dispatch" + }, + { + "type": "Identifier", + "start": 582, + "end": 590, + "loc": { + "start": { + "line": 32, + "column": 22 + }, + "end": { + "line": 32, + "column": 30 + } + }, + "name": "getState" + } + ], + "body": { + "type": "BlockStatement", + "start": 595, + "end": 966, + "loc": { + "start": { + "line": 32, + "column": 35 + }, + "end": { + "line": 43, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 605, + "end": 635, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 38 + } + }, + "expression": { + "type": "CallExpression", + "start": 605, + "end": 635, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 38 + } + }, + "callee": { + "type": "Identifier", + "start": 605, + "end": 613, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 16 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 614, + "end": 634, + "loc": { + "start": { + "line": 33, + "column": 17 + }, + "end": { + "line": 33, + "column": 37 + } + }, + "callee": { + "type": "Identifier", + "start": 614, + "end": 626, + "loc": { + "start": { + "line": 33, + "column": 17 + }, + "end": { + "line": 33, + "column": 29 + } + }, + "name": "_loadRequest" + }, + "arguments": [ + { + "type": "Identifier", + "start": 627, + "end": 633, + "loc": { + "start": { + "line": 33, + "column": 30 + }, + "end": { + "line": 33, + "column": 36 + } + }, + "name": "userID" + } + ] + } + ] + } + }, + { + "type": "VariableDeclaration", + "start": 644, + "end": 672, + "loc": { + "start": { + "line": 34, + "column": 8 + }, + "end": { + "line": 34, + "column": 36 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 650, + "end": 672, + "loc": { + "start": { + "line": 34, + "column": 14 + }, + "end": { + "line": 34, + "column": 36 + } + }, + "id": { + "type": "Identifier", + "start": 650, + "end": 654, + "loc": { + "start": { + "line": 34, + "column": 14 + }, + "end": { + "line": 34, + "column": 18 + } + }, + "name": "user" + }, + "init": { + "type": "MemberExpression", + "start": 657, + "end": 672, + "loc": { + "start": { + "line": 34, + "column": 21 + }, + "end": { + "line": 34, + "column": 36 + } + }, + "object": { + "type": "CallExpression", + "start": 657, + "end": 667, + "loc": { + "start": { + "line": 34, + "column": 21 + }, + "end": { + "line": 34, + "column": 31 + } + }, + "callee": { + "type": "Identifier", + "start": 657, + "end": 665, + "loc": { + "start": { + "line": 34, + "column": 21 + }, + "end": { + "line": 34, + "column": 29 + } + }, + "name": "getState" + }, + "arguments": [] + }, + "property": { + "type": "Identifier", + "start": 668, + "end": 672, + "loc": { + "start": { + "line": 34, + "column": 32 + }, + "end": { + "line": 34, + "column": 36 + } + }, + "name": "User" + }, + "computed": false + } + } + ], + "kind": "const" + }, + { + "type": "ExpressionStatement", + "start": 681, + "end": 960, + "loc": { + "start": { + "line": 35, + "column": 8 + }, + "end": { + "line": 42, + "column": 10 + } + }, + "expression": { + "type": "CallExpression", + "start": 681, + "end": 960, + "loc": { + "start": { + "line": 35, + "column": 8 + }, + "end": { + "line": 42, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 681, + "end": 886, + "loc": { + "start": { + "line": 35, + "column": 8 + }, + "end": { + "line": 40, + "column": 13 + } + }, + "object": { + "type": "CallExpression", + "start": 681, + "end": 872, + "loc": { + "start": { + "line": 35, + "column": 8 + }, + "end": { + "line": 39, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 681, + "end": 690, + "loc": { + "start": { + "line": 35, + "column": 8 + }, + "end": { + "line": 35, + "column": 17 + } + }, + "object": { + "type": "Identifier", + "start": 681, + "end": 686, + "loc": { + "start": { + "line": 35, + "column": 8 + }, + "end": { + "line": 35, + "column": 13 + } + }, + "name": "axios" + }, + "property": { + "type": "Identifier", + "start": 687, + "end": 690, + "loc": { + "start": { + "line": 35, + "column": 14 + }, + "end": { + "line": 35, + "column": 17 + } + }, + "name": "get" + }, + "computed": false + }, + "arguments": [ + { + "type": "TemplateLiteral", + "start": 691, + "end": 749, + "loc": { + "start": { + "line": 35, + "column": 18 + }, + "end": { + "line": 35, + "column": 76 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 694, + "end": 712, + "loc": { + "start": { + "line": 35, + "column": 21 + }, + "end": { + "line": 35, + "column": 39 + } + }, + "object": { + "type": "MemberExpression", + "start": 694, + "end": 704, + "loc": { + "start": { + "line": 35, + "column": 21 + }, + "end": { + "line": 35, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 694, + "end": 700, + "loc": { + "start": { + "line": 35, + "column": 21 + }, + "end": { + "line": 35, + "column": 27 + } + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 701, + "end": 704, + "loc": { + "start": { + "line": 35, + "column": 28 + }, + "end": { + "line": 35, + "column": 31 + } + }, + "name": "api" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 705, + "end": 712, + "loc": { + "start": { + "line": 35, + "column": 32 + }, + "end": { + "line": 35, + "column": 39 + } + }, + "name": "baseUrl" + }, + "computed": false + }, + { + "type": "Identifier", + "start": 722, + "end": 728, + "loc": { + "start": { + "line": 35, + "column": 49 + }, + "end": { + "line": 35, + "column": 55 + } + }, + "name": "userID" + }, + { + "type": "MemberExpression", + "start": 740, + "end": 747, + "loc": { + "start": { + "line": 35, + "column": 67 + }, + "end": { + "line": 35, + "column": 74 + } + }, + "object": { + "type": "Identifier", + "start": 740, + "end": 744, + "loc": { + "start": { + "line": 35, + "column": 67 + }, + "end": { + "line": 35, + "column": 71 + } + }, + "name": "user" + }, + "property": { + "type": "Identifier", + "start": 745, + "end": 747, + "loc": { + "start": { + "line": 35, + "column": 72 + }, + "end": { + "line": 35, + "column": 74 + } + }, + "name": "id" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 692, + "end": 692, + "loc": { + "start": { + "line": 35, + "column": 19 + }, + "end": { + "line": 35, + "column": 19 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 713, + "end": 720, + "loc": { + "start": { + "line": 35, + "column": 40 + }, + "end": { + "line": 35, + "column": 47 + } + }, + "value": { + "raw": "/users/", + "cooked": "/users/" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 729, + "end": 738, + "loc": { + "start": { + "line": 35, + "column": 56 + }, + "end": { + "line": 35, + "column": 65 + } + }, + "value": { + "raw": "?user_id=", + "cooked": "?user_id=" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 748, + "end": 748, + "loc": { + "start": { + "line": 35, + "column": 75 + }, + "end": { + "line": 35, + "column": 75 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + }, + { + "type": "ObjectExpression", + "start": 751, + "end": 871, + "loc": { + "start": { + "line": 35, + "column": 78 + }, + "end": { + "line": 39, + "column": 9 + } + }, + "properties": [ + { + "type": "Property", + "start": 765, + "end": 860, + "loc": { + "start": { + "line": 36, + "column": 12 + }, + "end": { + "line": 38, + "column": 13 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 765, + "end": 772, + "loc": { + "start": { + "line": 36, + "column": 12 + }, + "end": { + "line": 36, + "column": 19 + } + }, + "name": "headers" + }, + "value": { + "type": "ObjectExpression", + "start": 774, + "end": 860, + "loc": { + "start": { + "line": 36, + "column": 21 + }, + "end": { + "line": 38, + "column": 13 + } + }, + "properties": [ + { + "type": "Property", + "start": 792, + "end": 846, + "loc": { + "start": { + "line": 37, + "column": 16 + }, + "end": { + "line": 37, + "column": 70 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 792, + "end": 805, + "loc": { + "start": { + "line": 37, + "column": 16 + }, + "end": { + "line": 37, + "column": 29 + } + }, + "name": "Authorization" + }, + "value": { + "type": "TemplateLiteral", + "start": 807, + "end": 846, + "loc": { + "start": { + "line": 37, + "column": 31 + }, + "end": { + "line": 37, + "column": 70 + } + }, + "expressions": [ + { + "type": "CallExpression", + "start": 817, + "end": 844, + "loc": { + "start": { + "line": 37, + "column": 41 + }, + "end": { + "line": 37, + "column": 68 + } + }, + "callee": { + "type": "MemberExpression", + "start": 817, + "end": 837, + "loc": { + "start": { + "line": 37, + "column": 41 + }, + "end": { + "line": 37, + "column": 61 + } + }, + "object": { + "type": "Identifier", + "start": 817, + "end": 829, + "loc": { + "start": { + "line": 37, + "column": 41 + }, + "end": { + "line": 37, + "column": 53 + } + }, + "name": "localStorage" + }, + "property": { + "type": "Identifier", + "start": 830, + "end": 837, + "loc": { + "start": { + "line": 37, + "column": 54 + }, + "end": { + "line": 37, + "column": 61 + } + }, + "name": "getItem" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 838, + "end": 843, + "loc": { + "start": { + "line": 37, + "column": 62 + }, + "end": { + "line": 37, + "column": 67 + } + }, + "value": "jwt", + "rawValue": "jwt", + "raw": "'jwt'" + } + ] + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 808, + "end": 815, + "loc": { + "start": { + "line": 37, + "column": 32 + }, + "end": { + "line": 37, + "column": 39 + } + }, + "value": { + "raw": "Bearer ", + "cooked": "Bearer " + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 845, + "end": 845, + "loc": { + "start": { + "line": 37, + "column": 69 + }, + "end": { + "line": 37, + "column": 69 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + }, + "kind": "init" + } + ] + }, + "kind": "init" + } + ] + } + ] + }, + "property": { + "type": "Identifier", + "start": 882, + "end": 886, + "loc": { + "start": { + "line": 40, + "column": 9 + }, + "end": { + "line": 40, + "column": 13 + } + }, + "name": "then" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 887, + "end": 959, + "loc": { + "start": { + "line": 40, + "column": 14 + }, + "end": { + "line": 42, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 887, + "end": 890, + "loc": { + "start": { + "line": 40, + "column": 14 + }, + "end": { + "line": 40, + "column": 17 + } + }, + "name": "res" + } + ], + "body": { + "type": "BlockStatement", + "start": 894, + "end": 959, + "loc": { + "start": { + "line": 40, + "column": 21 + }, + "end": { + "line": 42, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 908, + "end": 949, + "loc": { + "start": { + "line": 41, + "column": 12 + }, + "end": { + "line": 41, + "column": 53 + } + }, + "expression": { + "type": "CallExpression", + "start": 908, + "end": 949, + "loc": { + "start": { + "line": 41, + "column": 12 + }, + "end": { + "line": 41, + "column": 53 + } + }, + "callee": { + "type": "Identifier", + "start": 908, + "end": 916, + "loc": { + "start": { + "line": 41, + "column": 12 + }, + "end": { + "line": 41, + "column": 20 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 917, + "end": 948, + "loc": { + "start": { + "line": 41, + "column": 21 + }, + "end": { + "line": 41, + "column": 52 + } + }, + "callee": { + "type": "Identifier", + "start": 917, + "end": 930, + "loc": { + "start": { + "line": 41, + "column": 21 + }, + "end": { + "line": 41, + "column": 34 + } + }, + "name": "_loadResponse" + }, + "arguments": [ + { + "type": "Identifier", + "start": 931, + "end": 937, + "loc": { + "start": { + "line": 41, + "column": 35 + }, + "end": { + "line": 41, + "column": 41 + } + }, + "name": "userID" + }, + { + "type": "MemberExpression", + "start": 939, + "end": 947, + "loc": { + "start": { + "line": 41, + "column": 43 + }, + "end": { + "line": 41, + "column": 51 + } + }, + "object": { + "type": "Identifier", + "start": 939, + "end": 942, + "loc": { + "start": { + "line": 41, + "column": 43 + }, + "end": { + "line": 41, + "column": 46 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 943, + "end": 947, + "loc": { + "start": { + "line": 41, + "column": 47 + }, + "end": { + "line": 41, + "column": 51 + } + }, + "name": "data" + }, + "computed": false + } + ] + } + ] + } + } + ] + } + } + ] + } + } + ] + } + } + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * load\n * Gets profile data from the API for a given user id\n * @param userID user id\n * @returns {Function}\n ", + "start": 411, + "end": 528, + "loc": { + "start": { + "line": 25, + "column": 0 + }, + "end": { + "line": 30, + "column": 3 + } + }, + "range": [ + 411, + 528 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * FOLLOW\n * @type {string}\n ", + "start": 970, + "end": 1005, + "loc": { + "start": { + "line": 46, + "column": 0 + }, + "end": { + "line": 49, + "column": 3 + } + }, + "range": [ + 970, + 1005 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * load\n * Gets profile data from the API for a given user id\n * @param userID user id\n * @returns {Function}\n ", + "start": 411, + "end": 528, + "loc": { + "start": { + "line": 25, + "column": 0 + }, + "end": { + "line": 30, + "column": 3 + } + }, + "range": [ + 411, + 528 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * FOLLOW\n * @type {string}\n ", + "start": 970, + "end": 1005, + "loc": { + "start": { + "line": 46, + "column": 0 + }, + "end": { + "line": 49, + "column": 3 + } + }, + "range": [ + 970, + 1005 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 1006, + "end": 1044, + "loc": { + "start": { + "line": 50, + "column": 0 + }, + "end": { + "line": 50, + "column": 38 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 1013, + "end": 1044, + "loc": { + "start": { + "line": 50, + "column": 7 + }, + "end": { + "line": 50, + "column": 38 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1019, + "end": 1044, + "loc": { + "start": { + "line": 50, + "column": 13 + }, + "end": { + "line": 50, + "column": 38 + } + }, + "id": { + "type": "Identifier", + "start": 1019, + "end": 1025, + "loc": { + "start": { + "line": 50, + "column": 13 + }, + "end": { + "line": 50, + "column": 19 + } + }, + "name": "FOLLOW", + "leadingComments": null + }, + "init": { + "type": "Literal", + "start": 1028, + "end": 1044, + "loc": { + "start": { + "line": 50, + "column": 22 + }, + "end": { + "line": 50, + "column": 38 + } + }, + "value": "PROFILE_FOLLOW", + "rawValue": "PROFILE_FOLLOW", + "raw": "'PROFILE_FOLLOW'", + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * FOLLOW\n * @type {string}\n ", + "start": 970, + "end": 1005, + "loc": { + "start": { + "line": 46, + "column": 0 + }, + "end": { + "line": 49, + "column": 3 + } + }, + "range": [ + 970, + 1005 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _followRequest\n * @param userID\n * @private\n ", + "start": 1046, + "end": 1100, + "loc": { + "start": { + "line": 52, + "column": 0 + }, + "end": { + "line": 56, + "column": 3 + } + }, + "range": [ + 1046, + 1100 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * FOLLOW\n * @type {string}\n ", + "start": 970, + "end": 1005, + "loc": { + "start": { + "line": 46, + "column": 0 + }, + "end": { + "line": 49, + "column": 3 + } + }, + "range": [ + 970, + 1005 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _followRequest\n * @param userID\n * @private\n ", + "start": 1046, + "end": 1100, + "loc": { + "start": { + "line": 52, + "column": 0 + }, + "end": { + "line": 56, + "column": 3 + } + }, + "range": [ + 1046, + 1100 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 1101, + "end": 1170, + "loc": { + "start": { + "line": 57, + "column": 0 + }, + "end": { + "line": 57, + "column": 69 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 1108, + "end": 1170, + "loc": { + "start": { + "line": 57, + "column": 7 + }, + "end": { + "line": 57, + "column": 69 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1114, + "end": 1170, + "loc": { + "start": { + "line": 57, + "column": 13 + }, + "end": { + "line": 57, + "column": 69 + } + }, + "id": { + "type": "Identifier", + "start": 1114, + "end": 1128, + "loc": { + "start": { + "line": 57, + "column": 13 + }, + "end": { + "line": 57, + "column": 27 + } + }, + "name": "_followRequest", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 1131, + "end": 1170, + "loc": { + "start": { + "line": 57, + "column": 30 + }, + "end": { + "line": 57, + "column": 69 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1132, + "end": 1138, + "loc": { + "start": { + "line": 57, + "column": 31 + }, + "end": { + "line": 57, + "column": 37 + } + }, + "name": "userID" + } + ], + "body": { + "type": "ObjectExpression", + "start": 1144, + "end": 1169, + "loc": { + "start": { + "line": 57, + "column": 43 + }, + "end": { + "line": 57, + "column": 68 + } + }, + "properties": [ + { + "type": "Property", + "start": 1146, + "end": 1158, + "loc": { + "start": { + "line": 57, + "column": 45 + }, + "end": { + "line": 57, + "column": 57 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1146, + "end": 1150, + "loc": { + "start": { + "line": 57, + "column": 45 + }, + "end": { + "line": 57, + "column": 49 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 1152, + "end": 1158, + "loc": { + "start": { + "line": 57, + "column": 51 + }, + "end": { + "line": 57, + "column": 57 + } + }, + "name": "FOLLOW" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1160, + "end": 1166, + "loc": { + "start": { + "line": 57, + "column": 59 + }, + "end": { + "line": 57, + "column": 65 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 1160, + "end": 1166, + "loc": { + "start": { + "line": 57, + "column": 59 + }, + "end": { + "line": 57, + "column": 65 + } + }, + "name": "userID" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 1160, + "end": 1166, + "loc": { + "start": { + "line": 57, + "column": 59 + }, + "end": { + "line": 57, + "column": 65 + } + }, + "name": "userID" + } + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _followRequest\n * @param userID\n * @private\n ", + "start": 1046, + "end": 1100, + "loc": { + "start": { + "line": 52, + "column": 0 + }, + "end": { + "line": 56, + "column": 3 + } + }, + "range": [ + 1046, + 1100 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _followResponse\n * @param userID\n * @param response\n * @private\n ", + "start": 1172, + "end": 1246, + "loc": { + "start": { + "line": 59, + "column": 0 + }, + "end": { + "line": 64, + "column": 3 + } + }, + "range": [ + 1172, + 1246 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _followRequest\n * @param userID\n * @private\n ", + "start": 1046, + "end": 1100, + "loc": { + "start": { + "line": 52, + "column": 0 + }, + "end": { + "line": 56, + "column": 3 + } + }, + "range": [ + 1046, + 1100 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _followResponse\n * @param userID\n * @param response\n * @private\n ", + "start": 1172, + "end": 1246, + "loc": { + "start": { + "line": 59, + "column": 0 + }, + "end": { + "line": 64, + "column": 3 + } + }, + "range": [ + 1172, + 1246 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 1247, + "end": 1337, + "loc": { + "start": { + "line": 65, + "column": 0 + }, + "end": { + "line": 65, + "column": 90 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 1254, + "end": 1337, + "loc": { + "start": { + "line": 65, + "column": 7 + }, + "end": { + "line": 65, + "column": 90 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1260, + "end": 1337, + "loc": { + "start": { + "line": 65, + "column": 13 + }, + "end": { + "line": 65, + "column": 90 + } + }, + "id": { + "type": "Identifier", + "start": 1260, + "end": 1275, + "loc": { + "start": { + "line": 65, + "column": 13 + }, + "end": { + "line": 65, + "column": 28 + } + }, + "name": "_followResponse", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 1278, + "end": 1337, + "loc": { + "start": { + "line": 65, + "column": 31 + }, + "end": { + "line": 65, + "column": 90 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1279, + "end": 1285, + "loc": { + "start": { + "line": 65, + "column": 32 + }, + "end": { + "line": 65, + "column": 38 + } + }, + "name": "userID" + }, + { + "type": "Identifier", + "start": 1287, + "end": 1295, + "loc": { + "start": { + "line": 65, + "column": 40 + }, + "end": { + "line": 65, + "column": 48 + } + }, + "name": "response" + } + ], + "body": { + "type": "ObjectExpression", + "start": 1301, + "end": 1336, + "loc": { + "start": { + "line": 65, + "column": 54 + }, + "end": { + "line": 65, + "column": 89 + } + }, + "properties": [ + { + "type": "Property", + "start": 1303, + "end": 1315, + "loc": { + "start": { + "line": 65, + "column": 56 + }, + "end": { + "line": 65, + "column": 68 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1303, + "end": 1307, + "loc": { + "start": { + "line": 65, + "column": 56 + }, + "end": { + "line": 65, + "column": 60 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 1309, + "end": 1315, + "loc": { + "start": { + "line": 65, + "column": 62 + }, + "end": { + "line": 65, + "column": 68 + } + }, + "name": "FOLLOW" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1317, + "end": 1323, + "loc": { + "start": { + "line": 65, + "column": 70 + }, + "end": { + "line": 65, + "column": 76 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 1317, + "end": 1323, + "loc": { + "start": { + "line": 65, + "column": 70 + }, + "end": { + "line": 65, + "column": 76 + } + }, + "name": "userID" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 1317, + "end": 1323, + "loc": { + "start": { + "line": 65, + "column": 70 + }, + "end": { + "line": 65, + "column": 76 + } + }, + "name": "userID" + } + }, + { + "type": "Property", + "start": 1325, + "end": 1333, + "loc": { + "start": { + "line": 65, + "column": 78 + }, + "end": { + "line": 65, + "column": 86 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 1325, + "end": 1333, + "loc": { + "start": { + "line": 65, + "column": 78 + }, + "end": { + "line": 65, + "column": 86 + } + }, + "name": "response" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 1325, + "end": 1333, + "loc": { + "start": { + "line": 65, + "column": 78 + }, + "end": { + "line": 65, + "column": 86 + } + }, + "name": "response" + } + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _followResponse\n * @param userID\n * @param response\n * @private\n ", + "start": 1172, + "end": 1246, + "loc": { + "start": { + "line": 59, + "column": 0 + }, + "end": { + "line": 64, + "column": 3 + } + }, + "range": [ + 1172, + 1246 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * follow\n * Posts a 'follow' action to the API for a given user id\n * @param userID user id\n * @returns {Function}\n ", + "start": 1339, + "end": 1462, + "loc": { + "start": { + "line": 67, + "column": 0 + }, + "end": { + "line": 72, + "column": 3 + } + }, + "range": [ + 1339, + 1462 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _followResponse\n * @param userID\n * @param response\n * @private\n ", + "start": 1172, + "end": 1246, + "loc": { + "start": { + "line": 59, + "column": 0 + }, + "end": { + "line": 64, + "column": 3 + } + }, + "range": [ + 1172, + 1246 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * follow\n * Posts a 'follow' action to the API for a given user id\n * @param userID user id\n * @returns {Function}\n ", + "start": 1339, + "end": 1462, + "loc": { + "start": { + "line": 67, + "column": 0 + }, + "end": { + "line": 72, + "column": 3 + } + }, + "range": [ + 1339, + 1462 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 1463, + "end": 1986, + "loc": { + "start": { + "line": 73, + "column": 0 + }, + "end": { + "line": 90, + "column": 1 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 1470, + "end": 1986, + "loc": { + "start": { + "line": 73, + "column": 7 + }, + "end": { + "line": 90, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 1479, + "end": 1485, + "loc": { + "start": { + "line": 73, + "column": 16 + }, + "end": { + "line": 73, + "column": 22 + } + }, + "name": "follow", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1486, + "end": 1492, + "loc": { + "start": { + "line": 73, + "column": 23 + }, + "end": { + "line": 73, + "column": 29 + } + }, + "name": "userID" + } + ], + "body": { + "type": "BlockStatement", + "start": 1494, + "end": 1986, + "loc": { + "start": { + "line": 73, + "column": 31 + }, + "end": { + "line": 90, + "column": 1 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 1500, + "end": 1984, + "loc": { + "start": { + "line": 74, + "column": 4 + }, + "end": { + "line": 89, + "column": 5 + } + }, + "argument": { + "type": "ArrowFunctionExpression", + "start": 1507, + "end": 1984, + "loc": { + "start": { + "line": 74, + "column": 11 + }, + "end": { + "line": 89, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1508, + "end": 1516, + "loc": { + "start": { + "line": 74, + "column": 12 + }, + "end": { + "line": 74, + "column": 20 + } + }, + "name": "dispatch" + }, + { + "type": "Identifier", + "start": 1518, + "end": 1526, + "loc": { + "start": { + "line": 74, + "column": 22 + }, + "end": { + "line": 74, + "column": 30 + } + }, + "name": "getState" + } + ], + "body": { + "type": "BlockStatement", + "start": 1531, + "end": 1984, + "loc": { + "start": { + "line": 74, + "column": 35 + }, + "end": { + "line": 89, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1541, + "end": 1573, + "loc": { + "start": { + "line": 75, + "column": 8 + }, + "end": { + "line": 75, + "column": 40 + } + }, + "expression": { + "type": "CallExpression", + "start": 1541, + "end": 1573, + "loc": { + "start": { + "line": 75, + "column": 8 + }, + "end": { + "line": 75, + "column": 40 + } + }, + "callee": { + "type": "Identifier", + "start": 1541, + "end": 1549, + "loc": { + "start": { + "line": 75, + "column": 8 + }, + "end": { + "line": 75, + "column": 16 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1550, + "end": 1572, + "loc": { + "start": { + "line": 75, + "column": 17 + }, + "end": { + "line": 75, + "column": 39 + } + }, + "callee": { + "type": "Identifier", + "start": 1550, + "end": 1564, + "loc": { + "start": { + "line": 75, + "column": 17 + }, + "end": { + "line": 75, + "column": 31 + } + }, + "name": "_followRequest" + }, + "arguments": [ + { + "type": "Identifier", + "start": 1565, + "end": 1571, + "loc": { + "start": { + "line": 75, + "column": 32 + }, + "end": { + "line": 75, + "column": 38 + } + }, + "name": "userID" + } + ] + } + ] + } + }, + { + "type": "VariableDeclaration", + "start": 1582, + "end": 1610, + "loc": { + "start": { + "line": 76, + "column": 8 + }, + "end": { + "line": 76, + "column": 36 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1588, + "end": 1610, + "loc": { + "start": { + "line": 76, + "column": 14 + }, + "end": { + "line": 76, + "column": 36 + } + }, + "id": { + "type": "Identifier", + "start": 1588, + "end": 1592, + "loc": { + "start": { + "line": 76, + "column": 14 + }, + "end": { + "line": 76, + "column": 18 + } + }, + "name": "user" + }, + "init": { + "type": "MemberExpression", + "start": 1595, + "end": 1610, + "loc": { + "start": { + "line": 76, + "column": 21 + }, + "end": { + "line": 76, + "column": 36 + } + }, + "object": { + "type": "CallExpression", + "start": 1595, + "end": 1605, + "loc": { + "start": { + "line": 76, + "column": 21 + }, + "end": { + "line": 76, + "column": 31 + } + }, + "callee": { + "type": "Identifier", + "start": 1595, + "end": 1603, + "loc": { + "start": { + "line": 76, + "column": 21 + }, + "end": { + "line": 76, + "column": 29 + } + }, + "name": "getState" + }, + "arguments": [] + }, + "property": { + "type": "Identifier", + "start": 1606, + "end": 1610, + "loc": { + "start": { + "line": 76, + "column": 32 + }, + "end": { + "line": 76, + "column": 36 + } + }, + "name": "User" + }, + "computed": false + } + } + ], + "kind": "const" + }, + { + "type": "VariableDeclaration", + "start": 1619, + "end": 1706, + "loc": { + "start": { + "line": 77, + "column": 8 + }, + "end": { + "line": 80, + "column": 9 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1625, + "end": 1706, + "loc": { + "start": { + "line": 77, + "column": 14 + }, + "end": { + "line": 80, + "column": 9 + } + }, + "id": { + "type": "Identifier", + "start": 1625, + "end": 1629, + "loc": { + "start": { + "line": 77, + "column": 14 + }, + "end": { + "line": 77, + "column": 18 + } + }, + "name": "data" + }, + "init": { + "type": "ObjectExpression", + "start": 1632, + "end": 1706, + "loc": { + "start": { + "line": 77, + "column": 21 + }, + "end": { + "line": 80, + "column": 9 + } + }, + "properties": [ + { + "type": "Property", + "start": 1646, + "end": 1662, + "loc": { + "start": { + "line": 78, + "column": 12 + }, + "end": { + "line": 78, + "column": 28 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1646, + "end": 1653, + "loc": { + "start": { + "line": 78, + "column": 12 + }, + "end": { + "line": 78, + "column": 19 + } + }, + "name": "user_id" + }, + "value": { + "type": "MemberExpression", + "start": 1655, + "end": 1662, + "loc": { + "start": { + "line": 78, + "column": 21 + }, + "end": { + "line": 78, + "column": 28 + } + }, + "object": { + "type": "Identifier", + "start": 1655, + "end": 1659, + "loc": { + "start": { + "line": 78, + "column": 21 + }, + "end": { + "line": 78, + "column": 25 + } + }, + "name": "user" + }, + "property": { + "type": "Identifier", + "start": 1660, + "end": 1662, + "loc": { + "start": { + "line": 78, + "column": 26 + }, + "end": { + "line": 78, + "column": 28 + } + }, + "name": "id" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1676, + "end": 1695, + "loc": { + "start": { + "line": 79, + "column": 12 + }, + "end": { + "line": 79, + "column": 31 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1676, + "end": 1687, + "loc": { + "start": { + "line": 79, + "column": 12 + }, + "end": { + "line": 79, + "column": 23 + } + }, + "name": "follower_id" + }, + "value": { + "type": "Identifier", + "start": 1689, + "end": 1695, + "loc": { + "start": { + "line": 79, + "column": 25 + }, + "end": { + "line": 79, + "column": 31 + } + }, + "name": "userID" + }, + "kind": "init" + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "ExpressionStatement", + "start": 1715, + "end": 1978, + "loc": { + "start": { + "line": 81, + "column": 8 + }, + "end": { + "line": 88, + "column": 10 + } + }, + "expression": { + "type": "CallExpression", + "start": 1715, + "end": 1978, + "loc": { + "start": { + "line": 81, + "column": 8 + }, + "end": { + "line": 88, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1715, + "end": 1902, + "loc": { + "start": { + "line": 81, + "column": 8 + }, + "end": { + "line": 86, + "column": 13 + } + }, + "object": { + "type": "CallExpression", + "start": 1715, + "end": 1888, + "loc": { + "start": { + "line": 81, + "column": 8 + }, + "end": { + "line": 85, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1715, + "end": 1725, + "loc": { + "start": { + "line": 81, + "column": 8 + }, + "end": { + "line": 81, + "column": 18 + } + }, + "object": { + "type": "Identifier", + "start": 1715, + "end": 1720, + "loc": { + "start": { + "line": 81, + "column": 8 + }, + "end": { + "line": 81, + "column": 13 + } + }, + "name": "axios" + }, + "property": { + "type": "Identifier", + "start": 1721, + "end": 1725, + "loc": { + "start": { + "line": 81, + "column": 14 + }, + "end": { + "line": 81, + "column": 18 + } + }, + "name": "post" + }, + "computed": false + }, + "arguments": [ + { + "type": "TemplateLiteral", + "start": 1726, + "end": 1759, + "loc": { + "start": { + "line": 81, + "column": 19 + }, + "end": { + "line": 81, + "column": 52 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 1729, + "end": 1747, + "loc": { + "start": { + "line": 81, + "column": 22 + }, + "end": { + "line": 81, + "column": 40 + } + }, + "object": { + "type": "MemberExpression", + "start": 1729, + "end": 1739, + "loc": { + "start": { + "line": 81, + "column": 22 + }, + "end": { + "line": 81, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 1729, + "end": 1735, + "loc": { + "start": { + "line": 81, + "column": 22 + }, + "end": { + "line": 81, + "column": 28 + } + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 1736, + "end": 1739, + "loc": { + "start": { + "line": 81, + "column": 29 + }, + "end": { + "line": 81, + "column": 32 + } + }, + "name": "api" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1740, + "end": 1747, + "loc": { + "start": { + "line": 81, + "column": 33 + }, + "end": { + "line": 81, + "column": 40 + } + }, + "name": "baseUrl" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 1727, + "end": 1727, + "loc": { + "start": { + "line": 81, + "column": 20 + }, + "end": { + "line": 81, + "column": 20 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 1748, + "end": 1758, + "loc": { + "start": { + "line": 81, + "column": 41 + }, + "end": { + "line": 81, + "column": 51 + } + }, + "value": { + "raw": "/followers", + "cooked": "/followers" + }, + "tail": true + } + ] + }, + { + "type": "Identifier", + "start": 1761, + "end": 1765, + "loc": { + "start": { + "line": 81, + "column": 54 + }, + "end": { + "line": 81, + "column": 58 + } + }, + "name": "data" + }, + { + "type": "ObjectExpression", + "start": 1767, + "end": 1887, + "loc": { + "start": { + "line": 81, + "column": 60 + }, + "end": { + "line": 85, + "column": 9 + } + }, + "properties": [ + { + "type": "Property", + "start": 1781, + "end": 1876, + "loc": { + "start": { + "line": 82, + "column": 12 + }, + "end": { + "line": 84, + "column": 13 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1781, + "end": 1788, + "loc": { + "start": { + "line": 82, + "column": 12 + }, + "end": { + "line": 82, + "column": 19 + } + }, + "name": "headers" + }, + "value": { + "type": "ObjectExpression", + "start": 1790, + "end": 1876, + "loc": { + "start": { + "line": 82, + "column": 21 + }, + "end": { + "line": 84, + "column": 13 + } + }, + "properties": [ + { + "type": "Property", + "start": 1808, + "end": 1862, + "loc": { + "start": { + "line": 83, + "column": 16 + }, + "end": { + "line": 83, + "column": 70 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1808, + "end": 1821, + "loc": { + "start": { + "line": 83, + "column": 16 + }, + "end": { + "line": 83, + "column": 29 + } + }, + "name": "Authorization" + }, + "value": { + "type": "TemplateLiteral", + "start": 1823, + "end": 1862, + "loc": { + "start": { + "line": 83, + "column": 31 + }, + "end": { + "line": 83, + "column": 70 + } + }, + "expressions": [ + { + "type": "CallExpression", + "start": 1833, + "end": 1860, + "loc": { + "start": { + "line": 83, + "column": 41 + }, + "end": { + "line": 83, + "column": 68 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1833, + "end": 1853, + "loc": { + "start": { + "line": 83, + "column": 41 + }, + "end": { + "line": 83, + "column": 61 + } + }, + "object": { + "type": "Identifier", + "start": 1833, + "end": 1845, + "loc": { + "start": { + "line": 83, + "column": 41 + }, + "end": { + "line": 83, + "column": 53 + } + }, + "name": "localStorage" + }, + "property": { + "type": "Identifier", + "start": 1846, + "end": 1853, + "loc": { + "start": { + "line": 83, + "column": 54 + }, + "end": { + "line": 83, + "column": 61 + } + }, + "name": "getItem" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 1854, + "end": 1859, + "loc": { + "start": { + "line": 83, + "column": 62 + }, + "end": { + "line": 83, + "column": 67 + } + }, + "value": "jwt", + "rawValue": "jwt", + "raw": "'jwt'" + } + ] + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 1824, + "end": 1831, + "loc": { + "start": { + "line": 83, + "column": 32 + }, + "end": { + "line": 83, + "column": 39 + } + }, + "value": { + "raw": "Bearer ", + "cooked": "Bearer " + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 1861, + "end": 1861, + "loc": { + "start": { + "line": 83, + "column": 69 + }, + "end": { + "line": 83, + "column": 69 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + }, + "kind": "init" + } + ] + }, + "kind": "init" + } + ] + } + ] + }, + "property": { + "type": "Identifier", + "start": 1898, + "end": 1902, + "loc": { + "start": { + "line": 86, + "column": 9 + }, + "end": { + "line": 86, + "column": 13 + } + }, + "name": "then" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 1903, + "end": 1977, + "loc": { + "start": { + "line": 86, + "column": 14 + }, + "end": { + "line": 88, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1903, + "end": 1906, + "loc": { + "start": { + "line": 86, + "column": 14 + }, + "end": { + "line": 86, + "column": 17 + } + }, + "name": "res" + } + ], + "body": { + "type": "BlockStatement", + "start": 1910, + "end": 1977, + "loc": { + "start": { + "line": 86, + "column": 21 + }, + "end": { + "line": 88, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1924, + "end": 1967, + "loc": { + "start": { + "line": 87, + "column": 12 + }, + "end": { + "line": 87, + "column": 55 + } + }, + "expression": { + "type": "CallExpression", + "start": 1924, + "end": 1967, + "loc": { + "start": { + "line": 87, + "column": 12 + }, + "end": { + "line": 87, + "column": 55 + } + }, + "callee": { + "type": "Identifier", + "start": 1924, + "end": 1932, + "loc": { + "start": { + "line": 87, + "column": 12 + }, + "end": { + "line": 87, + "column": 20 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1933, + "end": 1966, + "loc": { + "start": { + "line": 87, + "column": 21 + }, + "end": { + "line": 87, + "column": 54 + } + }, + "callee": { + "type": "Identifier", + "start": 1933, + "end": 1948, + "loc": { + "start": { + "line": 87, + "column": 21 + }, + "end": { + "line": 87, + "column": 36 + } + }, + "name": "_followResponse" + }, + "arguments": [ + { + "type": "Identifier", + "start": 1949, + "end": 1955, + "loc": { + "start": { + "line": 87, + "column": 37 + }, + "end": { + "line": 87, + "column": 43 + } + }, + "name": "userID" + }, + { + "type": "MemberExpression", + "start": 1957, + "end": 1965, + "loc": { + "start": { + "line": 87, + "column": 45 + }, + "end": { + "line": 87, + "column": 53 + } + }, + "object": { + "type": "Identifier", + "start": 1957, + "end": 1960, + "loc": { + "start": { + "line": 87, + "column": 45 + }, + "end": { + "line": 87, + "column": 48 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 1961, + "end": 1965, + "loc": { + "start": { + "line": 87, + "column": 49 + }, + "end": { + "line": 87, + "column": 53 + } + }, + "name": "data" + }, + "computed": false + } + ] + } + ] + } + } + ] + } + } + ] + } + } + ] + } + } + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * follow\n * Posts a 'follow' action to the API for a given user id\n * @param userID user id\n * @returns {Function}\n ", + "start": 1339, + "end": 1462, + "loc": { + "start": { + "line": 67, + "column": 0 + }, + "end": { + "line": 72, + "column": 3 + } + }, + "range": [ + 1339, + 1462 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * UNFOLLOW\n * @type {string}\n ", + "start": 1988, + "end": 2025, + "loc": { + "start": { + "line": 92, + "column": 0 + }, + "end": { + "line": 95, + "column": 3 + } + }, + "range": [ + 1988, + 2025 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * follow\n * Posts a 'follow' action to the API for a given user id\n * @param userID user id\n * @returns {Function}\n ", + "start": 1339, + "end": 1462, + "loc": { + "start": { + "line": 67, + "column": 0 + }, + "end": { + "line": 72, + "column": 3 + } + }, + "range": [ + 1339, + 1462 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * UNFOLLOW\n * @type {string}\n ", + "start": 1988, + "end": 2025, + "loc": { + "start": { + "line": 92, + "column": 0 + }, + "end": { + "line": 95, + "column": 3 + } + }, + "range": [ + 1988, + 2025 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 2026, + "end": 2068, + "loc": { + "start": { + "line": 96, + "column": 0 + }, + "end": { + "line": 96, + "column": 42 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 2033, + "end": 2068, + "loc": { + "start": { + "line": 96, + "column": 7 + }, + "end": { + "line": 96, + "column": 42 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 2039, + "end": 2068, + "loc": { + "start": { + "line": 96, + "column": 13 + }, + "end": { + "line": 96, + "column": 42 + } + }, + "id": { + "type": "Identifier", + "start": 2039, + "end": 2047, + "loc": { + "start": { + "line": 96, + "column": 13 + }, + "end": { + "line": 96, + "column": 21 + } + }, + "name": "UNFOLLOW", + "leadingComments": null + }, + "init": { + "type": "Literal", + "start": 2050, + "end": 2068, + "loc": { + "start": { + "line": 96, + "column": 24 + }, + "end": { + "line": 96, + "column": 42 + } + }, + "value": "PROFILE_UNFOLLOW", + "rawValue": "PROFILE_UNFOLLOW", + "raw": "'PROFILE_UNFOLLOW'", + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * UNFOLLOW\n * @type {string}\n ", + "start": 1988, + "end": 2025, + "loc": { + "start": { + "line": 92, + "column": 0 + }, + "end": { + "line": 95, + "column": 3 + } + }, + "range": [ + 1988, + 2025 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _unfollowRequest\n * @param userID\n * @private\n ", + "start": 2070, + "end": 2126, + "loc": { + "start": { + "line": 98, + "column": 0 + }, + "end": { + "line": 102, + "column": 3 + } + }, + "range": [ + 2070, + 2126 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * UNFOLLOW\n * @type {string}\n ", + "start": 1988, + "end": 2025, + "loc": { + "start": { + "line": 92, + "column": 0 + }, + "end": { + "line": 95, + "column": 3 + } + }, + "range": [ + 1988, + 2025 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _unfollowRequest\n * @param userID\n * @private\n ", + "start": 2070, + "end": 2126, + "loc": { + "start": { + "line": 98, + "column": 0 + }, + "end": { + "line": 102, + "column": 3 + } + }, + "range": [ + 2070, + 2126 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 2127, + "end": 2200, + "loc": { + "start": { + "line": 103, + "column": 0 + }, + "end": { + "line": 103, + "column": 73 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 2134, + "end": 2200, + "loc": { + "start": { + "line": 103, + "column": 7 + }, + "end": { + "line": 103, + "column": 73 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 2140, + "end": 2200, + "loc": { + "start": { + "line": 103, + "column": 13 + }, + "end": { + "line": 103, + "column": 73 + } + }, + "id": { + "type": "Identifier", + "start": 2140, + "end": 2156, + "loc": { + "start": { + "line": 103, + "column": 13 + }, + "end": { + "line": 103, + "column": 29 + } + }, + "name": "_unfollowRequest", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 2159, + "end": 2200, + "loc": { + "start": { + "line": 103, + "column": 32 + }, + "end": { + "line": 103, + "column": 73 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2160, + "end": 2166, + "loc": { + "start": { + "line": 103, + "column": 33 + }, + "end": { + "line": 103, + "column": 39 + } + }, + "name": "userID" + } + ], + "body": { + "type": "ObjectExpression", + "start": 2172, + "end": 2199, + "loc": { + "start": { + "line": 103, + "column": 45 + }, + "end": { + "line": 103, + "column": 72 + } + }, + "properties": [ + { + "type": "Property", + "start": 2174, + "end": 2188, + "loc": { + "start": { + "line": 103, + "column": 47 + }, + "end": { + "line": 103, + "column": 61 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2174, + "end": 2178, + "loc": { + "start": { + "line": 103, + "column": 47 + }, + "end": { + "line": 103, + "column": 51 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 2180, + "end": 2188, + "loc": { + "start": { + "line": 103, + "column": 53 + }, + "end": { + "line": 103, + "column": 61 + } + }, + "name": "UNFOLLOW" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 2190, + "end": 2196, + "loc": { + "start": { + "line": 103, + "column": 63 + }, + "end": { + "line": 103, + "column": 69 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 2190, + "end": 2196, + "loc": { + "start": { + "line": 103, + "column": 63 + }, + "end": { + "line": 103, + "column": 69 + } + }, + "name": "userID" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 2190, + "end": 2196, + "loc": { + "start": { + "line": 103, + "column": 63 + }, + "end": { + "line": 103, + "column": 69 + } + }, + "name": "userID" + } + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _unfollowRequest\n * @param userID\n * @private\n ", + "start": 2070, + "end": 2126, + "loc": { + "start": { + "line": 98, + "column": 0 + }, + "end": { + "line": 102, + "column": 3 + } + }, + "range": [ + 2070, + 2126 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _unfollowResponse\n * @param userID\n * @param response\n * @private\n ", + "start": 2202, + "end": 2278, + "loc": { + "start": { + "line": 105, + "column": 0 + }, + "end": { + "line": 110, + "column": 3 + } + }, + "range": [ + 2202, + 2278 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _unfollowRequest\n * @param userID\n * @private\n ", + "start": 2070, + "end": 2126, + "loc": { + "start": { + "line": 98, + "column": 0 + }, + "end": { + "line": 102, + "column": 3 + } + }, + "range": [ + 2070, + 2126 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _unfollowResponse\n * @param userID\n * @param response\n * @private\n ", + "start": 2202, + "end": 2278, + "loc": { + "start": { + "line": 105, + "column": 0 + }, + "end": { + "line": 110, + "column": 3 + } + }, + "range": [ + 2202, + 2278 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 2279, + "end": 2373, + "loc": { + "start": { + "line": 111, + "column": 0 + }, + "end": { + "line": 111, + "column": 94 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 2286, + "end": 2373, + "loc": { + "start": { + "line": 111, + "column": 7 + }, + "end": { + "line": 111, + "column": 94 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 2292, + "end": 2373, + "loc": { + "start": { + "line": 111, + "column": 13 + }, + "end": { + "line": 111, + "column": 94 + } + }, + "id": { + "type": "Identifier", + "start": 2292, + "end": 2309, + "loc": { + "start": { + "line": 111, + "column": 13 + }, + "end": { + "line": 111, + "column": 30 + } + }, + "name": "_unfollowResponse", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 2312, + "end": 2373, + "loc": { + "start": { + "line": 111, + "column": 33 + }, + "end": { + "line": 111, + "column": 94 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2313, + "end": 2319, + "loc": { + "start": { + "line": 111, + "column": 34 + }, + "end": { + "line": 111, + "column": 40 + } + }, + "name": "userID" + }, + { + "type": "Identifier", + "start": 2321, + "end": 2329, + "loc": { + "start": { + "line": 111, + "column": 42 + }, + "end": { + "line": 111, + "column": 50 + } + }, + "name": "response" + } + ], + "body": { + "type": "ObjectExpression", + "start": 2335, + "end": 2372, + "loc": { + "start": { + "line": 111, + "column": 56 + }, + "end": { + "line": 111, + "column": 93 + } + }, + "properties": [ + { + "type": "Property", + "start": 2337, + "end": 2351, + "loc": { + "start": { + "line": 111, + "column": 58 + }, + "end": { + "line": 111, + "column": 72 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2337, + "end": 2341, + "loc": { + "start": { + "line": 111, + "column": 58 + }, + "end": { + "line": 111, + "column": 62 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 2343, + "end": 2351, + "loc": { + "start": { + "line": 111, + "column": 64 + }, + "end": { + "line": 111, + "column": 72 + } + }, + "name": "UNFOLLOW" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 2353, + "end": 2359, + "loc": { + "start": { + "line": 111, + "column": 74 + }, + "end": { + "line": 111, + "column": 80 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 2353, + "end": 2359, + "loc": { + "start": { + "line": 111, + "column": 74 + }, + "end": { + "line": 111, + "column": 80 + } + }, + "name": "userID" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 2353, + "end": 2359, + "loc": { + "start": { + "line": 111, + "column": 74 + }, + "end": { + "line": 111, + "column": 80 + } + }, + "name": "userID" + } + }, + { + "type": "Property", + "start": 2361, + "end": 2369, + "loc": { + "start": { + "line": 111, + "column": 82 + }, + "end": { + "line": 111, + "column": 90 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 2361, + "end": 2369, + "loc": { + "start": { + "line": 111, + "column": 82 + }, + "end": { + "line": 111, + "column": 90 + } + }, + "name": "response" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 2361, + "end": 2369, + "loc": { + "start": { + "line": 111, + "column": 82 + }, + "end": { + "line": 111, + "column": 90 + } + }, + "name": "response" + } + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _unfollowResponse\n * @param userID\n * @param response\n * @private\n ", + "start": 2202, + "end": 2278, + "loc": { + "start": { + "line": 105, + "column": 0 + }, + "end": { + "line": 110, + "column": 3 + } + }, + "range": [ + 2202, + 2278 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * unfollow\n * Posts an 'unfollow' action to the API for a given user id\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param userID follower id\n * @returns {Function}\n ", + "start": 2375, + "end": 2582, + "loc": { + "start": { + "line": 113, + "column": 0 + }, + "end": { + "line": 120, + "column": 3 + } + }, + "range": [ + 2375, + 2582 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _unfollowResponse\n * @param userID\n * @param response\n * @private\n ", + "start": 2202, + "end": 2278, + "loc": { + "start": { + "line": 105, + "column": 0 + }, + "end": { + "line": 110, + "column": 3 + } + }, + "range": [ + 2202, + 2278 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * unfollow\n * Posts an 'unfollow' action to the API for a given user id\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param userID follower id\n * @returns {Function}\n ", + "start": 2375, + "end": 2582, + "loc": { + "start": { + "line": 113, + "column": 0 + }, + "end": { + "line": 120, + "column": 3 + } + }, + "range": [ + 2375, + 2582 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 2583, + "end": 3052, + "loc": { + "start": { + "line": 121, + "column": 0 + }, + "end": { + "line": 134, + "column": 1 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 2590, + "end": 3052, + "loc": { + "start": { + "line": 121, + "column": 7 + }, + "end": { + "line": 134, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 2599, + "end": 2607, + "loc": { + "start": { + "line": 121, + "column": 16 + }, + "end": { + "line": 121, + "column": 24 + } + }, + "name": "unfollow", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2608, + "end": 2614, + "loc": { + "start": { + "line": 121, + "column": 25 + }, + "end": { + "line": 121, + "column": 31 + } + }, + "name": "userID" + } + ], + "body": { + "type": "BlockStatement", + "start": 2616, + "end": 3052, + "loc": { + "start": { + "line": 121, + "column": 33 + }, + "end": { + "line": 134, + "column": 1 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 2622, + "end": 3050, + "loc": { + "start": { + "line": 122, + "column": 4 + }, + "end": { + "line": 133, + "column": 5 + } + }, + "argument": { + "type": "ArrowFunctionExpression", + "start": 2629, + "end": 3050, + "loc": { + "start": { + "line": 122, + "column": 11 + }, + "end": { + "line": 133, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2630, + "end": 2638, + "loc": { + "start": { + "line": 122, + "column": 12 + }, + "end": { + "line": 122, + "column": 20 + } + }, + "name": "dispatch" + }, + { + "type": "Identifier", + "start": 2640, + "end": 2648, + "loc": { + "start": { + "line": 122, + "column": 22 + }, + "end": { + "line": 122, + "column": 30 + } + }, + "name": "getState" + } + ], + "body": { + "type": "BlockStatement", + "start": 2653, + "end": 3050, + "loc": { + "start": { + "line": 122, + "column": 35 + }, + "end": { + "line": 133, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 2663, + "end": 2697, + "loc": { + "start": { + "line": 123, + "column": 8 + }, + "end": { + "line": 123, + "column": 42 + } + }, + "expression": { + "type": "CallExpression", + "start": 2663, + "end": 2697, + "loc": { + "start": { + "line": 123, + "column": 8 + }, + "end": { + "line": 123, + "column": 42 + } + }, + "callee": { + "type": "Identifier", + "start": 2663, + "end": 2671, + "loc": { + "start": { + "line": 123, + "column": 8 + }, + "end": { + "line": 123, + "column": 16 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 2672, + "end": 2696, + "loc": { + "start": { + "line": 123, + "column": 17 + }, + "end": { + "line": 123, + "column": 41 + } + }, + "callee": { + "type": "Identifier", + "start": 2672, + "end": 2688, + "loc": { + "start": { + "line": 123, + "column": 17 + }, + "end": { + "line": 123, + "column": 33 + } + }, + "name": "_unfollowRequest" + }, + "arguments": [ + { + "type": "Identifier", + "start": 2689, + "end": 2695, + "loc": { + "start": { + "line": 123, + "column": 34 + }, + "end": { + "line": 123, + "column": 40 + } + }, + "name": "userID" + } + ] + } + ] + } + }, + { + "type": "VariableDeclaration", + "start": 2706, + "end": 2734, + "loc": { + "start": { + "line": 124, + "column": 8 + }, + "end": { + "line": 124, + "column": 36 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 2712, + "end": 2734, + "loc": { + "start": { + "line": 124, + "column": 14 + }, + "end": { + "line": 124, + "column": 36 + } + }, + "id": { + "type": "Identifier", + "start": 2712, + "end": 2716, + "loc": { + "start": { + "line": 124, + "column": 14 + }, + "end": { + "line": 124, + "column": 18 + } + }, + "name": "user" + }, + "init": { + "type": "MemberExpression", + "start": 2719, + "end": 2734, + "loc": { + "start": { + "line": 124, + "column": 21 + }, + "end": { + "line": 124, + "column": 36 + } + }, + "object": { + "type": "CallExpression", + "start": 2719, + "end": 2729, + "loc": { + "start": { + "line": 124, + "column": 21 + }, + "end": { + "line": 124, + "column": 31 + } + }, + "callee": { + "type": "Identifier", + "start": 2719, + "end": 2727, + "loc": { + "start": { + "line": 124, + "column": 21 + }, + "end": { + "line": 124, + "column": 29 + } + }, + "name": "getState" + }, + "arguments": [] + }, + "property": { + "type": "Identifier", + "start": 2730, + "end": 2734, + "loc": { + "start": { + "line": 124, + "column": 32 + }, + "end": { + "line": 124, + "column": 36 + } + }, + "name": "User" + }, + "computed": false + } + } + ], + "kind": "const" + }, + { + "type": "ExpressionStatement", + "start": 2743, + "end": 3044, + "loc": { + "start": { + "line": 125, + "column": 8 + }, + "end": { + "line": 132, + "column": 10 + } + }, + "expression": { + "type": "CallExpression", + "start": 2743, + "end": 3044, + "loc": { + "start": { + "line": 125, + "column": 8 + }, + "end": { + "line": 132, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2743, + "end": 2966, + "loc": { + "start": { + "line": 125, + "column": 8 + }, + "end": { + "line": 130, + "column": 13 + } + }, + "object": { + "type": "CallExpression", + "start": 2743, + "end": 2952, + "loc": { + "start": { + "line": 125, + "column": 8 + }, + "end": { + "line": 129, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2743, + "end": 2755, + "loc": { + "start": { + "line": 125, + "column": 8 + }, + "end": { + "line": 125, + "column": 20 + } + }, + "object": { + "type": "Identifier", + "start": 2743, + "end": 2748, + "loc": { + "start": { + "line": 125, + "column": 8 + }, + "end": { + "line": 125, + "column": 13 + } + }, + "name": "axios" + }, + "property": { + "type": "Identifier", + "start": 2749, + "end": 2755, + "loc": { + "start": { + "line": 125, + "column": 14 + }, + "end": { + "line": 125, + "column": 20 + } + }, + "name": "delete" + }, + "computed": false + }, + "arguments": [ + { + "type": "TemplateLiteral", + "start": 2756, + "end": 2830, + "loc": { + "start": { + "line": 125, + "column": 21 + }, + "end": { + "line": 125, + "column": 95 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 2759, + "end": 2777, + "loc": { + "start": { + "line": 125, + "column": 24 + }, + "end": { + "line": 125, + "column": 42 + } + }, + "object": { + "type": "MemberExpression", + "start": 2759, + "end": 2769, + "loc": { + "start": { + "line": 125, + "column": 24 + }, + "end": { + "line": 125, + "column": 34 + } + }, + "object": { + "type": "Identifier", + "start": 2759, + "end": 2765, + "loc": { + "start": { + "line": 125, + "column": 24 + }, + "end": { + "line": 125, + "column": 30 + } + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 2766, + "end": 2769, + "loc": { + "start": { + "line": 125, + "column": 31 + }, + "end": { + "line": 125, + "column": 34 + } + }, + "name": "api" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2770, + "end": 2777, + "loc": { + "start": { + "line": 125, + "column": 35 + }, + "end": { + "line": 125, + "column": 42 + } + }, + "name": "baseUrl" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 2799, + "end": 2806, + "loc": { + "start": { + "line": 125, + "column": 64 + }, + "end": { + "line": 125, + "column": 71 + } + }, + "object": { + "type": "Identifier", + "start": 2799, + "end": 2803, + "loc": { + "start": { + "line": 125, + "column": 64 + }, + "end": { + "line": 125, + "column": 68 + } + }, + "name": "user" + }, + "property": { + "type": "Identifier", + "start": 2804, + "end": 2806, + "loc": { + "start": { + "line": 125, + "column": 69 + }, + "end": { + "line": 125, + "column": 71 + } + }, + "name": "id" + }, + "computed": false + }, + { + "type": "Identifier", + "start": 2822, + "end": 2828, + "loc": { + "start": { + "line": 125, + "column": 87 + }, + "end": { + "line": 125, + "column": 93 + } + }, + "name": "userID" + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 2757, + "end": 2757, + "loc": { + "start": { + "line": 125, + "column": 22 + }, + "end": { + "line": 125, + "column": 22 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 2778, + "end": 2797, + "loc": { + "start": { + "line": 125, + "column": 43 + }, + "end": { + "line": 125, + "column": 62 + } + }, + "value": { + "raw": "/followers?user_id=", + "cooked": "/followers?user_id=" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 2807, + "end": 2820, + "loc": { + "start": { + "line": 125, + "column": 72 + }, + "end": { + "line": 125, + "column": 85 + } + }, + "value": { + "raw": "&follower_id=", + "cooked": "&follower_id=" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 2829, + "end": 2829, + "loc": { + "start": { + "line": 125, + "column": 94 + }, + "end": { + "line": 125, + "column": 94 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + }, + { + "type": "ObjectExpression", + "start": 2832, + "end": 2951, + "loc": { + "start": { + "line": 125, + "column": 97 + }, + "end": { + "line": 129, + "column": 9 + } + }, + "properties": [ + { + "type": "Property", + "start": 2846, + "end": 2941, + "loc": { + "start": { + "line": 126, + "column": 12 + }, + "end": { + "line": 128, + "column": 13 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2846, + "end": 2853, + "loc": { + "start": { + "line": 126, + "column": 12 + }, + "end": { + "line": 126, + "column": 19 + } + }, + "name": "headers" + }, + "value": { + "type": "ObjectExpression", + "start": 2855, + "end": 2941, + "loc": { + "start": { + "line": 126, + "column": 21 + }, + "end": { + "line": 128, + "column": 13 + } + }, + "properties": [ + { + "type": "Property", + "start": 2873, + "end": 2927, + "loc": { + "start": { + "line": 127, + "column": 16 + }, + "end": { + "line": 127, + "column": 70 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2873, + "end": 2886, + "loc": { + "start": { + "line": 127, + "column": 16 + }, + "end": { + "line": 127, + "column": 29 + } + }, + "name": "Authorization" + }, + "value": { + "type": "TemplateLiteral", + "start": 2888, + "end": 2927, + "loc": { + "start": { + "line": 127, + "column": 31 + }, + "end": { + "line": 127, + "column": 70 + } + }, + "expressions": [ + { + "type": "CallExpression", + "start": 2898, + "end": 2925, + "loc": { + "start": { + "line": 127, + "column": 41 + }, + "end": { + "line": 127, + "column": 68 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2898, + "end": 2918, + "loc": { + "start": { + "line": 127, + "column": 41 + }, + "end": { + "line": 127, + "column": 61 + } + }, + "object": { + "type": "Identifier", + "start": 2898, + "end": 2910, + "loc": { + "start": { + "line": 127, + "column": 41 + }, + "end": { + "line": 127, + "column": 53 + } + }, + "name": "localStorage" + }, + "property": { + "type": "Identifier", + "start": 2911, + "end": 2918, + "loc": { + "start": { + "line": 127, + "column": 54 + }, + "end": { + "line": 127, + "column": 61 + } + }, + "name": "getItem" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 2919, + "end": 2924, + "loc": { + "start": { + "line": 127, + "column": 62 + }, + "end": { + "line": 127, + "column": 67 + } + }, + "value": "jwt", + "rawValue": "jwt", + "raw": "'jwt'" + } + ] + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 2889, + "end": 2896, + "loc": { + "start": { + "line": 127, + "column": 32 + }, + "end": { + "line": 127, + "column": 39 + } + }, + "value": { + "raw": "Bearer ", + "cooked": "Bearer " + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 2926, + "end": 2926, + "loc": { + "start": { + "line": 127, + "column": 69 + }, + "end": { + "line": 127, + "column": 69 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + }, + "kind": "init" + } + ] + }, + "kind": "init" + } + ] + } + ] + }, + "property": { + "type": "Identifier", + "start": 2962, + "end": 2966, + "loc": { + "start": { + "line": 130, + "column": 9 + }, + "end": { + "line": 130, + "column": 13 + } + }, + "name": "then" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 2967, + "end": 3043, + "loc": { + "start": { + "line": 130, + "column": 14 + }, + "end": { + "line": 132, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2967, + "end": 2970, + "loc": { + "start": { + "line": 130, + "column": 14 + }, + "end": { + "line": 130, + "column": 17 + } + }, + "name": "res" + } + ], + "body": { + "type": "BlockStatement", + "start": 2974, + "end": 3043, + "loc": { + "start": { + "line": 130, + "column": 21 + }, + "end": { + "line": 132, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 2988, + "end": 3033, + "loc": { + "start": { + "line": 131, + "column": 12 + }, + "end": { + "line": 131, + "column": 57 + } + }, + "expression": { + "type": "CallExpression", + "start": 2988, + "end": 3033, + "loc": { + "start": { + "line": 131, + "column": 12 + }, + "end": { + "line": 131, + "column": 57 + } + }, + "callee": { + "type": "Identifier", + "start": 2988, + "end": 2996, + "loc": { + "start": { + "line": 131, + "column": 12 + }, + "end": { + "line": 131, + "column": 20 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 2997, + "end": 3032, + "loc": { + "start": { + "line": 131, + "column": 21 + }, + "end": { + "line": 131, + "column": 56 + } + }, + "callee": { + "type": "Identifier", + "start": 2997, + "end": 3014, + "loc": { + "start": { + "line": 131, + "column": 21 + }, + "end": { + "line": 131, + "column": 38 + } + }, + "name": "_unfollowResponse" + }, + "arguments": [ + { + "type": "Identifier", + "start": 3015, + "end": 3021, + "loc": { + "start": { + "line": 131, + "column": 39 + }, + "end": { + "line": 131, + "column": 45 + } + }, + "name": "userID" + }, + { + "type": "MemberExpression", + "start": 3023, + "end": 3031, + "loc": { + "start": { + "line": 131, + "column": 47 + }, + "end": { + "line": 131, + "column": 55 + } + }, + "object": { + "type": "Identifier", + "start": 3023, + "end": 3026, + "loc": { + "start": { + "line": 131, + "column": 47 + }, + "end": { + "line": 131, + "column": 50 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 3027, + "end": 3031, + "loc": { + "start": { + "line": 131, + "column": 51 + }, + "end": { + "line": 131, + "column": 55 + } + }, + "name": "data" + }, + "computed": false + } + ] + } + ] + } + } + ] + } + } + ] + } + } + ] + } + } + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * unfollow\n * Posts an 'unfollow' action to the API for a given user id\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param userID follower id\n * @returns {Function}\n ", + "start": 2375, + "end": 2582, + "loc": { + "start": { + "line": 113, + "column": 0 + }, + "end": { + "line": 120, + "column": 3 + } + }, + "range": [ + 2375, + 2582 + ] + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * unfollow\n * Posts an 'unfollow' action to the API for a given user id\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param userID follower id\n * @returns {Function}\n ", + "start": 2375, + "end": 2582, + "loc": { + "start": { + "line": 113, + "column": 0 + }, + "end": { + "line": 120, + "column": 3 + } + }, + "range": [ + 2375, + 2582 + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/actions/Search.js.json b/app/docs/ast/source/actions/Search.js.json new file mode 100644 index 0000000..66341ec --- /dev/null +++ b/app/docs/ast/source/actions/Search.js.json @@ -0,0 +1,8277 @@ +{ + "type": "Program", + "start": 0, + "end": 4706, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 208, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 30, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 30 + } + }, + "specifiers": [ + { + "type": "ImportNamespaceSpecifier", + "start": 7, + "end": 17, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 17 + } + }, + "local": { + "type": "Identifier", + "start": 12, + "end": 17, + "loc": { + "start": { + "line": 1, + "column": 12 + }, + "end": { + "line": 1, + "column": 17 + } + }, + "name": "axios" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 23, + "end": 30, + "loc": { + "start": { + "line": 1, + "column": 23 + }, + "end": { + "line": 1, + "column": 30 + } + }, + "value": "axios", + "rawValue": "axios", + "raw": "'axios'" + } + }, + { + "type": "ImportDeclaration", + "start": 31, + "end": 72, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 41 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 38, + "end": 51, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 20 + } + }, + "local": { + "type": "Identifier", + "start": 38, + "end": 51, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 20 + } + }, + "name": "algoliasearch" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 57, + "end": 72, + "loc": { + "start": { + "line": 2, + "column": 26 + }, + "end": { + "line": 2, + "column": 41 + } + }, + "value": "algoliasearch", + "rawValue": "algoliasearch", + "raw": "'algoliasearch'" + } + }, + { + "type": "ImportDeclaration", + "start": 73, + "end": 100, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 27 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 80, + "end": 86, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 13 + } + }, + "local": { + "type": "Identifier", + "start": 80, + "end": 86, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 13 + } + }, + "name": "config" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 92, + "end": 100, + "loc": { + "start": { + "line": 3, + "column": 19 + }, + "end": { + "line": 3, + "column": 27 + } + }, + "value": "config", + "rawValue": "config", + "raw": "'config'" + } + }, + { + "type": "VariableDeclaration", + "start": 102, + "end": 183, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 81 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 108, + "end": 183, + "loc": { + "start": { + "line": 5, + "column": 6 + }, + "end": { + "line": 5, + "column": 81 + } + }, + "id": { + "type": "Identifier", + "start": 108, + "end": 115, + "loc": { + "start": { + "line": 5, + "column": 6 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "name": "algolia" + }, + "init": { + "type": "CallExpression", + "start": 118, + "end": 183, + "loc": { + "start": { + "line": 5, + "column": 16 + }, + "end": { + "line": 5, + "column": 81 + } + }, + "callee": { + "type": "Identifier", + "start": 118, + "end": 131, + "loc": { + "start": { + "line": 5, + "column": 16 + }, + "end": { + "line": 5, + "column": 29 + } + }, + "name": "algoliasearch" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 132, + "end": 152, + "loc": { + "start": { + "line": 5, + "column": 30 + }, + "end": { + "line": 5, + "column": 50 + } + }, + "object": { + "type": "MemberExpression", + "start": 132, + "end": 146, + "loc": { + "start": { + "line": 5, + "column": 30 + }, + "end": { + "line": 5, + "column": 44 + } + }, + "object": { + "type": "Identifier", + "start": 132, + "end": 138, + "loc": { + "start": { + "line": 5, + "column": 30 + }, + "end": { + "line": 5, + "column": 36 + } + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 139, + "end": 146, + "loc": { + "start": { + "line": 5, + "column": 37 + }, + "end": { + "line": 5, + "column": 44 + } + }, + "name": "algolia" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 147, + "end": 152, + "loc": { + "start": { + "line": 5, + "column": 45 + }, + "end": { + "line": 5, + "column": 50 + } + }, + "name": "appId" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 154, + "end": 182, + "loc": { + "start": { + "line": 5, + "column": 52 + }, + "end": { + "line": 5, + "column": 80 + } + }, + "object": { + "type": "MemberExpression", + "start": 154, + "end": 168, + "loc": { + "start": { + "line": 5, + "column": 52 + }, + "end": { + "line": 5, + "column": 66 + } + }, + "object": { + "type": "Identifier", + "start": 154, + "end": 160, + "loc": { + "start": { + "line": 5, + "column": 52 + }, + "end": { + "line": 5, + "column": 58 + } + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 161, + "end": 168, + "loc": { + "start": { + "line": 5, + "column": 59 + }, + "end": { + "line": 5, + "column": 66 + } + }, + "name": "algolia" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 169, + "end": 182, + "loc": { + "start": { + "line": 5, + "column": 67 + }, + "end": { + "line": 5, + "column": 80 + } + }, + "name": "searchOnlyKey" + }, + "computed": false + } + ], + "trailingComments": null + }, + "trailingComments": null + } + ], + "kind": "const", + "trailingComments": [ + { + "type": "Block", + "value": "*\n * SEARCH\n * @type {string}\n ", + "start": 186, + "end": 221, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + }, + "range": [ + 186, + 221 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 222, + "end": 259, + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 12, + "column": 37 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 229, + "end": 259, + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 12, + "column": 37 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 235, + "end": 259, + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 37 + } + }, + "id": { + "type": "Identifier", + "start": 235, + "end": 241, + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 19 + } + }, + "name": "SEARCH", + "leadingComments": null + }, + "init": { + "type": "Literal", + "start": 244, + "end": 259, + "loc": { + "start": { + "line": 12, + "column": 22 + }, + "end": { + "line": 12, + "column": 37 + } + }, + "value": "SEARCH_SEARCH", + "rawValue": "SEARCH_SEARCH", + "raw": "'SEARCH_SEARCH'", + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * SEARCH\n * @type {string}\n ", + "start": 186, + "end": 221, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + }, + "range": [ + 186, + 221 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _searchRequest\n * @param term\n * @private\n ", + "start": 261, + "end": 313, + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 18, + "column": 3 + } + }, + "range": [ + 261, + 313 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * SEARCH\n * @type {string}\n ", + "start": 186, + "end": 221, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + }, + "range": [ + 186, + 221 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _searchRequest\n * @param term\n * @private\n ", + "start": 261, + "end": 313, + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 18, + "column": 3 + } + }, + "range": [ + 261, + 313 + ] + } + ] + }, + { + "type": "VariableDeclaration", + "start": 314, + "end": 372, + "loc": { + "start": { + "line": 19, + "column": 0 + }, + "end": { + "line": 19, + "column": 58 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 320, + "end": 372, + "loc": { + "start": { + "line": 19, + "column": 6 + }, + "end": { + "line": 19, + "column": 58 + } + }, + "id": { + "type": "Identifier", + "start": 320, + "end": 334, + "loc": { + "start": { + "line": 19, + "column": 6 + }, + "end": { + "line": 19, + "column": 20 + } + }, + "name": "_searchRequest", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 337, + "end": 372, + "loc": { + "start": { + "line": 19, + "column": 23 + }, + "end": { + "line": 19, + "column": 58 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 338, + "end": 342, + "loc": { + "start": { + "line": 19, + "column": 24 + }, + "end": { + "line": 19, + "column": 28 + } + }, + "name": "term" + } + ], + "body": { + "type": "ObjectExpression", + "start": 348, + "end": 371, + "loc": { + "start": { + "line": 19, + "column": 34 + }, + "end": { + "line": 19, + "column": 57 + } + }, + "properties": [ + { + "type": "Property", + "start": 350, + "end": 362, + "loc": { + "start": { + "line": 19, + "column": 36 + }, + "end": { + "line": 19, + "column": 48 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 350, + "end": 354, + "loc": { + "start": { + "line": 19, + "column": 36 + }, + "end": { + "line": 19, + "column": 40 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 356, + "end": 362, + "loc": { + "start": { + "line": 19, + "column": 42 + }, + "end": { + "line": 19, + "column": 48 + } + }, + "name": "SEARCH" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 364, + "end": 368, + "loc": { + "start": { + "line": 19, + "column": 50 + }, + "end": { + "line": 19, + "column": 54 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 364, + "end": 368, + "loc": { + "start": { + "line": 19, + "column": 50 + }, + "end": { + "line": 19, + "column": 54 + } + }, + "name": "term" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 364, + "end": 368, + "loc": { + "start": { + "line": 19, + "column": 50 + }, + "end": { + "line": 19, + "column": 54 + } + }, + "name": "term" + } + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _searchRequest\n * @param term\n * @private\n ", + "start": 261, + "end": 313, + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 18, + "column": 3 + } + }, + "range": [ + 261, + 313 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _searchResponse\n * @param term\n * @param response\n * @private\n ", + "start": 374, + "end": 446, + "loc": { + "start": { + "line": 21, + "column": 0 + }, + "end": { + "line": 26, + "column": 3 + } + }, + "range": [ + 374, + 446 + ] + } + ] + }, + { + "type": "VariableDeclaration", + "start": 447, + "end": 526, + "loc": { + "start": { + "line": 27, + "column": 0 + }, + "end": { + "line": 27, + "column": 79 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 453, + "end": 526, + "loc": { + "start": { + "line": 27, + "column": 6 + }, + "end": { + "line": 27, + "column": 79 + } + }, + "id": { + "type": "Identifier", + "start": 453, + "end": 468, + "loc": { + "start": { + "line": 27, + "column": 6 + }, + "end": { + "line": 27, + "column": 21 + } + }, + "name": "_searchResponse", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 471, + "end": 526, + "loc": { + "start": { + "line": 27, + "column": 24 + }, + "end": { + "line": 27, + "column": 79 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 472, + "end": 476, + "loc": { + "start": { + "line": 27, + "column": 25 + }, + "end": { + "line": 27, + "column": 29 + } + }, + "name": "term" + }, + { + "type": "Identifier", + "start": 478, + "end": 486, + "loc": { + "start": { + "line": 27, + "column": 31 + }, + "end": { + "line": 27, + "column": 39 + } + }, + "name": "response" + } + ], + "body": { + "type": "ObjectExpression", + "start": 492, + "end": 525, + "loc": { + "start": { + "line": 27, + "column": 45 + }, + "end": { + "line": 27, + "column": 78 + } + }, + "properties": [ + { + "type": "Property", + "start": 494, + "end": 506, + "loc": { + "start": { + "line": 27, + "column": 47 + }, + "end": { + "line": 27, + "column": 59 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 494, + "end": 498, + "loc": { + "start": { + "line": 27, + "column": 47 + }, + "end": { + "line": 27, + "column": 51 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 500, + "end": 506, + "loc": { + "start": { + "line": 27, + "column": 53 + }, + "end": { + "line": 27, + "column": 59 + } + }, + "name": "SEARCH" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 508, + "end": 512, + "loc": { + "start": { + "line": 27, + "column": 61 + }, + "end": { + "line": 27, + "column": 65 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 508, + "end": 512, + "loc": { + "start": { + "line": 27, + "column": 61 + }, + "end": { + "line": 27, + "column": 65 + } + }, + "name": "term" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 508, + "end": 512, + "loc": { + "start": { + "line": 27, + "column": 61 + }, + "end": { + "line": 27, + "column": 65 + } + }, + "name": "term" + } + }, + { + "type": "Property", + "start": 514, + "end": 522, + "loc": { + "start": { + "line": 27, + "column": 67 + }, + "end": { + "line": 27, + "column": 75 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 514, + "end": 522, + "loc": { + "start": { + "line": 27, + "column": 67 + }, + "end": { + "line": 27, + "column": 75 + } + }, + "name": "response" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 514, + "end": 522, + "loc": { + "start": { + "line": 27, + "column": 67 + }, + "end": { + "line": 27, + "column": 75 + } + }, + "name": "response" + } + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _searchResponse\n * @param term\n * @param response\n * @private\n ", + "start": 374, + "end": 446, + "loc": { + "start": { + "line": 21, + "column": 0 + }, + "end": { + "line": 26, + "column": 3 + } + }, + "range": [ + 374, + 446 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * search\n * Make a search request to algolia based on term (string) and type\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param term {string} search term\n * @param type {string} type of search ('all', 'hashtags', 'location')\n * @returns {Function}\n ", + "start": 528, + "end": 818, + "loc": { + "start": { + "line": 29, + "column": 0 + }, + "end": { + "line": 37, + "column": 3 + } + }, + "range": [ + 528, + 818 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 819, + "end": 1896, + "loc": { + "start": { + "line": 38, + "column": 0 + }, + "end": { + "line": 79, + "column": 1 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 826, + "end": 1896, + "loc": { + "start": { + "line": 38, + "column": 7 + }, + "end": { + "line": 79, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 835, + "end": 841, + "loc": { + "start": { + "line": 38, + "column": 16 + }, + "end": { + "line": 38, + "column": 22 + } + }, + "name": "search", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 842, + "end": 846, + "loc": { + "start": { + "line": 38, + "column": 23 + }, + "end": { + "line": 38, + "column": 27 + } + }, + "name": "term" + }, + { + "type": "AssignmentPattern", + "start": 848, + "end": 860, + "loc": { + "start": { + "line": 38, + "column": 29 + }, + "end": { + "line": 38, + "column": 41 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 848, + "end": 852, + "loc": { + "start": { + "line": 38, + "column": 29 + }, + "end": { + "line": 38, + "column": 33 + } + }, + "name": "type" + }, + "right": { + "type": "Literal", + "start": 855, + "end": 860, + "loc": { + "start": { + "line": 38, + "column": 36 + }, + "end": { + "line": 38, + "column": 41 + } + }, + "value": "all", + "rawValue": "all", + "raw": "'all'" + } + } + ], + "body": { + "type": "BlockStatement", + "start": 862, + "end": 1896, + "loc": { + "start": { + "line": 38, + "column": 43 + }, + "end": { + "line": 79, + "column": 1 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 869, + "end": 1894, + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 78, + "column": 5 + } + }, + "argument": { + "type": "ArrowFunctionExpression", + "start": 876, + "end": 1894, + "loc": { + "start": { + "line": 40, + "column": 11 + }, + "end": { + "line": 78, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 876, + "end": 884, + "loc": { + "start": { + "line": 40, + "column": 11 + }, + "end": { + "line": 40, + "column": 19 + } + }, + "name": "dispatch" + } + ], + "body": { + "type": "BlockStatement", + "start": 888, + "end": 1894, + "loc": { + "start": { + "line": 40, + "column": 23 + }, + "end": { + "line": 78, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 940, + "end": 1002, + "loc": { + "start": { + "line": 43, + "column": 8 + }, + "end": { + "line": 44, + "column": 22 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 944, + "end": 978, + "loc": { + "start": { + "line": 43, + "column": 12 + }, + "end": { + "line": 43, + "column": 46 + } + }, + "id": { + "type": "Identifier", + "start": 944, + "end": 949, + "loc": { + "start": { + "line": 43, + "column": 12 + }, + "end": { + "line": 43, + "column": 17 + } + }, + "name": "index", + "leadingComments": null + }, + "init": { + "type": "CallExpression", + "start": 952, + "end": 978, + "loc": { + "start": { + "line": 43, + "column": 20 + }, + "end": { + "line": 43, + "column": 46 + } + }, + "callee": { + "type": "MemberExpression", + "start": 952, + "end": 969, + "loc": { + "start": { + "line": 43, + "column": 20 + }, + "end": { + "line": 43, + "column": 37 + } + }, + "object": { + "type": "Identifier", + "start": 952, + "end": 959, + "loc": { + "start": { + "line": 43, + "column": 20 + }, + "end": { + "line": 43, + "column": 27 + } + }, + "name": "algolia" + }, + "property": { + "type": "Identifier", + "start": 960, + "end": 969, + "loc": { + "start": { + "line": 43, + "column": 28 + }, + "end": { + "line": 43, + "column": 37 + } + }, + "name": "initIndex" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 970, + "end": 977, + "loc": { + "start": { + "line": 43, + "column": 38 + }, + "end": { + "line": 43, + "column": 45 + } + }, + "value": "cabin", + "rawValue": "cabin", + "raw": "'cabin'" + } + ] + }, + "leadingComments": null + }, + { + "type": "VariableDeclarator", + "start": 992, + "end": 1002, + "loc": { + "start": { + "line": 44, + "column": 12 + }, + "end": { + "line": 44, + "column": 22 + } + }, + "id": { + "type": "Identifier", + "start": 992, + "end": 997, + "loc": { + "start": { + "line": 44, + "column": 12 + }, + "end": { + "line": 44, + "column": 17 + } + }, + "name": "attrs" + }, + "init": { + "type": "ArrayExpression", + "start": 1000, + "end": 1002, + "loc": { + "start": { + "line": 44, + "column": 20 + }, + "end": { + "line": 44, + "column": 22 + } + }, + "elements": [] + } + } + ], + "kind": "let", + "leadingComments": [ + { + "type": "CommentLine", + "value": " Initialize the 'cabin' index:", + "start": 899, + "end": 931, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 40 + } + }, + "range": [ + 899, + 931 + ] + } + ] + }, + { + "type": "SwitchStatement", + "start": 1012, + "end": 1657, + "loc": { + "start": { + "line": 46, + "column": 8 + }, + "end": { + "line": 69, + "column": 9 + } + }, + "discriminant": { + "type": "Identifier", + "start": 1019, + "end": 1023, + "loc": { + "start": { + "line": 46, + "column": 15 + }, + "end": { + "line": 46, + "column": 19 + } + }, + "name": "type" + }, + "cases": [ + { + "type": "SwitchCase", + "start": 1039, + "end": 1279, + "loc": { + "start": { + "line": 47, + "column": 12 + }, + "end": { + "line": 55, + "column": 22 + } + }, + "consequent": [ + { + "type": "ExpressionStatement", + "start": 1067, + "end": 1256, + "loc": { + "start": { + "line": 48, + "column": 16 + }, + "end": { + "line": 54, + "column": 17 + } + }, + "expression": { + "type": "CallExpression", + "start": 1067, + "end": 1256, + "loc": { + "start": { + "line": 48, + "column": 16 + }, + "end": { + "line": 54, + "column": 17 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1067, + "end": 1077, + "loc": { + "start": { + "line": 48, + "column": 16 + }, + "end": { + "line": 48, + "column": 26 + } + }, + "object": { + "type": "Identifier", + "start": 1067, + "end": 1072, + "loc": { + "start": { + "line": 48, + "column": 16 + }, + "end": { + "line": 48, + "column": 21 + } + }, + "name": "attrs" + }, + "property": { + "type": "Identifier", + "start": 1073, + "end": 1077, + "loc": { + "start": { + "line": 48, + "column": 22 + }, + "end": { + "line": 48, + "column": 26 + } + }, + "name": "push" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 1099, + "end": 1111, + "loc": { + "start": { + "line": 49, + "column": 20 + }, + "end": { + "line": 49, + "column": 32 + } + }, + "value": "first_name", + "rawValue": "first_name", + "raw": "'first_name'" + }, + { + "type": "Literal", + "start": 1133, + "end": 1144, + "loc": { + "start": { + "line": 50, + "column": 20 + }, + "end": { + "line": 50, + "column": 31 + } + }, + "value": "last_name", + "rawValue": "last_name", + "raw": "'last_name'" + }, + { + "type": "Literal", + "start": 1166, + "end": 1173, + "loc": { + "start": { + "line": 51, + "column": 20 + }, + "end": { + "line": 51, + "column": 27 + } + }, + "value": "email", + "rawValue": "email", + "raw": "'email'" + }, + { + "type": "Literal", + "start": 1195, + "end": 1205, + "loc": { + "start": { + "line": 52, + "column": 20 + }, + "end": { + "line": 52, + "column": 30 + } + }, + "value": "location", + "rawValue": "location", + "raw": "'location'" + }, + { + "type": "Literal", + "start": 1227, + "end": 1237, + "loc": { + "start": { + "line": 53, + "column": 20 + }, + "end": { + "line": 53, + "column": 30 + } + }, + "value": "hashtags", + "rawValue": "hashtags", + "raw": "'hashtags'" + } + ] + } + }, + { + "type": "BreakStatement", + "start": 1273, + "end": 1279, + "loc": { + "start": { + "line": 55, + "column": 16 + }, + "end": { + "line": 55, + "column": 22 + } + }, + "label": null + } + ], + "test": { + "type": "Literal", + "start": 1044, + "end": 1049, + "loc": { + "start": { + "line": 47, + "column": 17 + }, + "end": { + "line": 47, + "column": 22 + } + }, + "value": "all", + "rawValue": "all", + "raw": "'all'" + } + }, + { + "type": "SwitchCase", + "start": 1292, + "end": 1369, + "loc": { + "start": { + "line": 56, + "column": 12 + }, + "end": { + "line": 58, + "column": 21 + } + }, + "consequent": [ + { + "type": "ExpressionStatement", + "start": 1325, + "end": 1347, + "loc": { + "start": { + "line": 57, + "column": 16 + }, + "end": { + "line": 57, + "column": 38 + } + }, + "expression": { + "type": "CallExpression", + "start": 1325, + "end": 1347, + "loc": { + "start": { + "line": 57, + "column": 16 + }, + "end": { + "line": 57, + "column": 38 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1325, + "end": 1335, + "loc": { + "start": { + "line": 57, + "column": 16 + }, + "end": { + "line": 57, + "column": 26 + } + }, + "object": { + "type": "Identifier", + "start": 1325, + "end": 1330, + "loc": { + "start": { + "line": 57, + "column": 16 + }, + "end": { + "line": 57, + "column": 21 + } + }, + "name": "attrs" + }, + "property": { + "type": "Identifier", + "start": 1331, + "end": 1335, + "loc": { + "start": { + "line": 57, + "column": 22 + }, + "end": { + "line": 57, + "column": 26 + } + }, + "name": "push" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 1336, + "end": 1346, + "loc": { + "start": { + "line": 57, + "column": 27 + }, + "end": { + "line": 57, + "column": 37 + } + }, + "value": "hashtags", + "rawValue": "hashtags", + "raw": "'hashtags'" + } + ] + } + }, + { + "type": "BreakStatement", + "start": 1364, + "end": 1369, + "loc": { + "start": { + "line": 58, + "column": 16 + }, + "end": { + "line": 58, + "column": 21 + } + }, + "label": null + } + ], + "test": { + "type": "Literal", + "start": 1297, + "end": 1307, + "loc": { + "start": { + "line": 56, + "column": 17 + }, + "end": { + "line": 56, + "column": 27 + } + }, + "value": "hashtags", + "rawValue": "hashtags", + "raw": "'hashtags'" + } + }, + { + "type": "SwitchCase", + "start": 1382, + "end": 1557, + "loc": { + "start": { + "line": 59, + "column": 12 + }, + "end": { + "line": 65, + "column": 21 + } + }, + "consequent": [ + { + "type": "ExpressionStatement", + "start": 1411, + "end": 1535, + "loc": { + "start": { + "line": 60, + "column": 16 + }, + "end": { + "line": 64, + "column": 17 + } + }, + "expression": { + "type": "CallExpression", + "start": 1411, + "end": 1535, + "loc": { + "start": { + "line": 60, + "column": 16 + }, + "end": { + "line": 64, + "column": 17 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1411, + "end": 1421, + "loc": { + "start": { + "line": 60, + "column": 16 + }, + "end": { + "line": 60, + "column": 26 + } + }, + "object": { + "type": "Identifier", + "start": 1411, + "end": 1416, + "loc": { + "start": { + "line": 60, + "column": 16 + }, + "end": { + "line": 60, + "column": 21 + } + }, + "name": "attrs" + }, + "property": { + "type": "Identifier", + "start": 1417, + "end": 1421, + "loc": { + "start": { + "line": 60, + "column": 22 + }, + "end": { + "line": 60, + "column": 26 + } + }, + "name": "push" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 1443, + "end": 1455, + "loc": { + "start": { + "line": 61, + "column": 20 + }, + "end": { + "line": 61, + "column": 32 + } + }, + "value": "first_name", + "rawValue": "first_name", + "raw": "'first_name'" + }, + { + "type": "Literal", + "start": 1477, + "end": 1488, + "loc": { + "start": { + "line": 62, + "column": 20 + }, + "end": { + "line": 62, + "column": 31 + } + }, + "value": "last_name", + "rawValue": "last_name", + "raw": "'last_name'" + }, + { + "type": "Literal", + "start": 1510, + "end": 1517, + "loc": { + "start": { + "line": 63, + "column": 20 + }, + "end": { + "line": 63, + "column": 27 + } + }, + "value": "email", + "rawValue": "email", + "raw": "'email'" + } + ] + } + }, + { + "type": "BreakStatement", + "start": 1552, + "end": 1557, + "loc": { + "start": { + "line": 65, + "column": 16 + }, + "end": { + "line": 65, + "column": 21 + } + }, + "label": null + } + ], + "test": { + "type": "Literal", + "start": 1387, + "end": 1393, + "loc": { + "start": { + "line": 59, + "column": 17 + }, + "end": { + "line": 59, + "column": 23 + } + }, + "value": "user", + "rawValue": "user", + "raw": "'user'" + } + }, + { + "type": "SwitchCase", + "start": 1570, + "end": 1647, + "loc": { + "start": { + "line": 66, + "column": 12 + }, + "end": { + "line": 68, + "column": 21 + } + }, + "consequent": [ + { + "type": "ExpressionStatement", + "start": 1603, + "end": 1625, + "loc": { + "start": { + "line": 67, + "column": 16 + }, + "end": { + "line": 67, + "column": 38 + } + }, + "expression": { + "type": "CallExpression", + "start": 1603, + "end": 1625, + "loc": { + "start": { + "line": 67, + "column": 16 + }, + "end": { + "line": 67, + "column": 38 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1603, + "end": 1613, + "loc": { + "start": { + "line": 67, + "column": 16 + }, + "end": { + "line": 67, + "column": 26 + } + }, + "object": { + "type": "Identifier", + "start": 1603, + "end": 1608, + "loc": { + "start": { + "line": 67, + "column": 16 + }, + "end": { + "line": 67, + "column": 21 + } + }, + "name": "attrs" + }, + "property": { + "type": "Identifier", + "start": 1609, + "end": 1613, + "loc": { + "start": { + "line": 67, + "column": 22 + }, + "end": { + "line": 67, + "column": 26 + } + }, + "name": "push" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 1614, + "end": 1624, + "loc": { + "start": { + "line": 67, + "column": 27 + }, + "end": { + "line": 67, + "column": 37 + } + }, + "value": "location", + "rawValue": "location", + "raw": "'location'" + } + ] + } + }, + { + "type": "BreakStatement", + "start": 1642, + "end": 1647, + "loc": { + "start": { + "line": 68, + "column": 16 + }, + "end": { + "line": 68, + "column": 21 + } + }, + "label": null + } + ], + "test": { + "type": "Literal", + "start": 1575, + "end": 1585, + "loc": { + "start": { + "line": 66, + "column": 17 + }, + "end": { + "line": 66, + "column": 27 + } + }, + "value": "location", + "rawValue": "location", + "raw": "'location'" + } + } + ], + "trailingComments": [ + { + "type": "CommentLine", + "value": " Perform Algolia search:", + "start": 1667, + "end": 1693, + "loc": { + "start": { + "line": 71, + "column": 8 + }, + "end": { + "line": 71, + "column": 34 + } + }, + "range": [ + 1667, + 1693 + ] + } + ] + }, + { + "type": "ExpressionStatement", + "start": 1702, + "end": 1888, + "loc": { + "start": { + "line": 72, + "column": 8 + }, + "end": { + "line": 77, + "column": 10 + } + }, + "expression": { + "type": "CallExpression", + "start": 1702, + "end": 1888, + "loc": { + "start": { + "line": 72, + "column": 8 + }, + "end": { + "line": 77, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1702, + "end": 1714, + "loc": { + "start": { + "line": 72, + "column": 8 + }, + "end": { + "line": 72, + "column": 20 + } + }, + "object": { + "type": "Identifier", + "start": 1702, + "end": 1707, + "loc": { + "start": { + "line": 72, + "column": 8 + }, + "end": { + "line": 72, + "column": 13 + } + }, + "name": "index", + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 1708, + "end": 1714, + "loc": { + "start": { + "line": 72, + "column": 14 + }, + "end": { + "line": 72, + "column": 20 + } + }, + "name": "search" + }, + "computed": false, + "leadingComments": null + }, + "arguments": [ + { + "type": "Identifier", + "start": 1715, + "end": 1719, + "loc": { + "start": { + "line": 72, + "column": 21 + }, + "end": { + "line": 72, + "column": 25 + } + }, + "name": "term" + }, + { + "type": "ObjectExpression", + "start": 1721, + "end": 1803, + "loc": { + "start": { + "line": 72, + "column": 27 + }, + "end": { + "line": 75, + "column": 9 + } + }, + "properties": [ + { + "type": "Property", + "start": 1735, + "end": 1763, + "loc": { + "start": { + "line": 73, + "column": 12 + }, + "end": { + "line": 73, + "column": 40 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1735, + "end": 1756, + "loc": { + "start": { + "line": 73, + "column": 12 + }, + "end": { + "line": 73, + "column": 33 + } + }, + "name": "attributesToHighlight" + }, + "value": { + "type": "Identifier", + "start": 1758, + "end": 1763, + "loc": { + "start": { + "line": 73, + "column": 35 + }, + "end": { + "line": 73, + "column": 40 + } + }, + "name": "attrs" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1777, + "end": 1793, + "loc": { + "start": { + "line": 74, + "column": 12 + }, + "end": { + "line": 74, + "column": 28 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1777, + "end": 1788, + "loc": { + "start": { + "line": 74, + "column": 12 + }, + "end": { + "line": 74, + "column": 23 + } + }, + "name": "hitsPerPage" + }, + "value": { + "type": "Literal", + "start": 1790, + "end": 1793, + "loc": { + "start": { + "line": 74, + "column": 25 + }, + "end": { + "line": 74, + "column": 28 + } + }, + "value": 100, + "rawValue": 100, + "raw": "100" + }, + "kind": "init" + } + ] + }, + { + "type": "ArrowFunctionExpression", + "start": 1805, + "end": 1887, + "loc": { + "start": { + "line": 75, + "column": 11 + }, + "end": { + "line": 77, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1806, + "end": 1809, + "loc": { + "start": { + "line": 75, + "column": 12 + }, + "end": { + "line": 75, + "column": 15 + } + }, + "name": "err" + }, + { + "type": "Identifier", + "start": 1811, + "end": 1818, + "loc": { + "start": { + "line": 75, + "column": 17 + }, + "end": { + "line": 75, + "column": 24 + } + }, + "name": "content" + } + ], + "body": { + "type": "BlockStatement", + "start": 1823, + "end": 1887, + "loc": { + "start": { + "line": 75, + "column": 29 + }, + "end": { + "line": 77, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1837, + "end": 1877, + "loc": { + "start": { + "line": 76, + "column": 12 + }, + "end": { + "line": 76, + "column": 52 + } + }, + "expression": { + "type": "CallExpression", + "start": 1837, + "end": 1877, + "loc": { + "start": { + "line": 76, + "column": 12 + }, + "end": { + "line": 76, + "column": 52 + } + }, + "callee": { + "type": "Identifier", + "start": 1837, + "end": 1845, + "loc": { + "start": { + "line": 76, + "column": 12 + }, + "end": { + "line": 76, + "column": 20 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1846, + "end": 1876, + "loc": { + "start": { + "line": 76, + "column": 21 + }, + "end": { + "line": 76, + "column": 51 + } + }, + "callee": { + "type": "Identifier", + "start": 1846, + "end": 1861, + "loc": { + "start": { + "line": 76, + "column": 21 + }, + "end": { + "line": 76, + "column": 36 + } + }, + "name": "_searchResponse" + }, + "arguments": [ + { + "type": "Identifier", + "start": 1862, + "end": 1866, + "loc": { + "start": { + "line": 76, + "column": 37 + }, + "end": { + "line": 76, + "column": 41 + } + }, + "name": "term" + }, + { + "type": "Identifier", + "start": 1868, + "end": 1875, + "loc": { + "start": { + "line": 76, + "column": 43 + }, + "end": { + "line": 76, + "column": 50 + } + }, + "name": "content" + } + ] + } + ] + } + } + ] + } + } + ], + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " Perform Algolia search:", + "start": 1667, + "end": 1693, + "loc": { + "start": { + "line": 71, + "column": 8 + }, + "end": { + "line": 71, + "column": 34 + } + }, + "range": [ + 1667, + 1693 + ] + } + ] + } + ] + } + } + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * search\n * Make a search request to algolia based on term (string) and type\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param term {string} search term\n * @param type {string} type of search ('all', 'hashtags', 'location')\n * @returns {Function}\n ", + "start": 528, + "end": 818, + "loc": { + "start": { + "line": 29, + "column": 0 + }, + "end": { + "line": 37, + "column": 3 + } + }, + "range": [ + 528, + 818 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * TRIGGER\n * @type {string}\n ", + "start": 1898, + "end": 1934, + "loc": { + "start": { + "line": 81, + "column": 0 + }, + "end": { + "line": 84, + "column": 3 + } + }, + "range": [ + 1898, + 1934 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * search\n * Make a search request to algolia based on term (string) and type\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param term {string} search term\n * @param type {string} type of search ('all', 'hashtags', 'location')\n * @returns {Function}\n ", + "start": 528, + "end": 818, + "loc": { + "start": { + "line": 29, + "column": 0 + }, + "end": { + "line": 37, + "column": 3 + } + }, + "range": [ + 528, + 818 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * TRIGGER\n * @type {string}\n ", + "start": 1898, + "end": 1934, + "loc": { + "start": { + "line": 81, + "column": 0 + }, + "end": { + "line": 84, + "column": 3 + } + }, + "range": [ + 1898, + 1934 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 1935, + "end": 1974, + "loc": { + "start": { + "line": 85, + "column": 0 + }, + "end": { + "line": 85, + "column": 39 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 1942, + "end": 1974, + "loc": { + "start": { + "line": 85, + "column": 7 + }, + "end": { + "line": 85, + "column": 39 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1948, + "end": 1974, + "loc": { + "start": { + "line": 85, + "column": 13 + }, + "end": { + "line": 85, + "column": 39 + } + }, + "id": { + "type": "Identifier", + "start": 1948, + "end": 1955, + "loc": { + "start": { + "line": 85, + "column": 13 + }, + "end": { + "line": 85, + "column": 20 + } + }, + "name": "TRIGGER", + "leadingComments": null + }, + "init": { + "type": "Literal", + "start": 1958, + "end": 1974, + "loc": { + "start": { + "line": 85, + "column": 23 + }, + "end": { + "line": 85, + "column": 39 + } + }, + "value": "SEARCH_TRIGGER", + "rawValue": "SEARCH_TRIGGER", + "raw": "'SEARCH_TRIGGER'", + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * TRIGGER\n * @type {string}\n ", + "start": 1898, + "end": 1934, + "loc": { + "start": { + "line": 81, + "column": 0 + }, + "end": { + "line": 84, + "column": 3 + } + }, + "range": [ + 1898, + 1934 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _triggerRequest\n * @param search\n * @private\n ", + "start": 1976, + "end": 2031, + "loc": { + "start": { + "line": 87, + "column": 0 + }, + "end": { + "line": 91, + "column": 3 + } + }, + "range": [ + 1976, + 2031 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * TRIGGER\n * @type {string}\n ", + "start": 1898, + "end": 1934, + "loc": { + "start": { + "line": 81, + "column": 0 + }, + "end": { + "line": 84, + "column": 3 + } + }, + "range": [ + 1898, + 1934 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _triggerRequest\n * @param search\n * @private\n ", + "start": 1976, + "end": 2031, + "loc": { + "start": { + "line": 87, + "column": 0 + }, + "end": { + "line": 91, + "column": 3 + } + }, + "range": [ + 1976, + 2031 + ] + } + ] + }, + { + "type": "VariableDeclaration", + "start": 2032, + "end": 2096, + "loc": { + "start": { + "line": 92, + "column": 0 + }, + "end": { + "line": 92, + "column": 64 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 2038, + "end": 2096, + "loc": { + "start": { + "line": 92, + "column": 6 + }, + "end": { + "line": 92, + "column": 64 + } + }, + "id": { + "type": "Identifier", + "start": 2038, + "end": 2053, + "loc": { + "start": { + "line": 92, + "column": 6 + }, + "end": { + "line": 92, + "column": 21 + } + }, + "name": "_triggerRequest", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 2056, + "end": 2096, + "loc": { + "start": { + "line": 92, + "column": 24 + }, + "end": { + "line": 92, + "column": 64 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2057, + "end": 2063, + "loc": { + "start": { + "line": 92, + "column": 25 + }, + "end": { + "line": 92, + "column": 31 + } + }, + "name": "search" + } + ], + "body": { + "type": "ObjectExpression", + "start": 2069, + "end": 2095, + "loc": { + "start": { + "line": 92, + "column": 37 + }, + "end": { + "line": 92, + "column": 63 + } + }, + "properties": [ + { + "type": "Property", + "start": 2071, + "end": 2084, + "loc": { + "start": { + "line": 92, + "column": 39 + }, + "end": { + "line": 92, + "column": 52 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2071, + "end": 2075, + "loc": { + "start": { + "line": 92, + "column": 39 + }, + "end": { + "line": 92, + "column": 43 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 2077, + "end": 2084, + "loc": { + "start": { + "line": 92, + "column": 45 + }, + "end": { + "line": 92, + "column": 52 + } + }, + "name": "TRIGGER" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 2086, + "end": 2092, + "loc": { + "start": { + "line": 92, + "column": 54 + }, + "end": { + "line": 92, + "column": 60 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 2086, + "end": 2092, + "loc": { + "start": { + "line": 92, + "column": 54 + }, + "end": { + "line": 92, + "column": 60 + } + }, + "name": "search" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 2086, + "end": 2092, + "loc": { + "start": { + "line": 92, + "column": 54 + }, + "end": { + "line": 92, + "column": 60 + } + }, + "name": "search" + } + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _triggerRequest\n * @param search\n * @private\n ", + "start": 1976, + "end": 2031, + "loc": { + "start": { + "line": 87, + "column": 0 + }, + "end": { + "line": 91, + "column": 3 + } + }, + "range": [ + 1976, + 2031 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _triggerResponse\n * @param search\n * @param response\n * @private\n ", + "start": 2098, + "end": 2173, + "loc": { + "start": { + "line": 94, + "column": 0 + }, + "end": { + "line": 99, + "column": 3 + } + }, + "range": [ + 2098, + 2173 + ] + } + ] + }, + { + "type": "VariableDeclaration", + "start": 2174, + "end": 2259, + "loc": { + "start": { + "line": 100, + "column": 0 + }, + "end": { + "line": 100, + "column": 85 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 2180, + "end": 2259, + "loc": { + "start": { + "line": 100, + "column": 6 + }, + "end": { + "line": 100, + "column": 85 + } + }, + "id": { + "type": "Identifier", + "start": 2180, + "end": 2196, + "loc": { + "start": { + "line": 100, + "column": 6 + }, + "end": { + "line": 100, + "column": 22 + } + }, + "name": "_triggerResponse", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 2199, + "end": 2259, + "loc": { + "start": { + "line": 100, + "column": 25 + }, + "end": { + "line": 100, + "column": 85 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2200, + "end": 2206, + "loc": { + "start": { + "line": 100, + "column": 26 + }, + "end": { + "line": 100, + "column": 32 + } + }, + "name": "search" + }, + { + "type": "Identifier", + "start": 2208, + "end": 2216, + "loc": { + "start": { + "line": 100, + "column": 34 + }, + "end": { + "line": 100, + "column": 42 + } + }, + "name": "response" + } + ], + "body": { + "type": "ObjectExpression", + "start": 2222, + "end": 2258, + "loc": { + "start": { + "line": 100, + "column": 48 + }, + "end": { + "line": 100, + "column": 84 + } + }, + "properties": [ + { + "type": "Property", + "start": 2224, + "end": 2237, + "loc": { + "start": { + "line": 100, + "column": 50 + }, + "end": { + "line": 100, + "column": 63 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2224, + "end": 2228, + "loc": { + "start": { + "line": 100, + "column": 50 + }, + "end": { + "line": 100, + "column": 54 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 2230, + "end": 2237, + "loc": { + "start": { + "line": 100, + "column": 56 + }, + "end": { + "line": 100, + "column": 63 + } + }, + "name": "TRIGGER" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 2239, + "end": 2245, + "loc": { + "start": { + "line": 100, + "column": 65 + }, + "end": { + "line": 100, + "column": 71 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 2239, + "end": 2245, + "loc": { + "start": { + "line": 100, + "column": 65 + }, + "end": { + "line": 100, + "column": 71 + } + }, + "name": "search" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 2239, + "end": 2245, + "loc": { + "start": { + "line": 100, + "column": 65 + }, + "end": { + "line": 100, + "column": 71 + } + }, + "name": "search" + } + }, + { + "type": "Property", + "start": 2247, + "end": 2255, + "loc": { + "start": { + "line": 100, + "column": 73 + }, + "end": { + "line": 100, + "column": 81 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 2247, + "end": 2255, + "loc": { + "start": { + "line": 100, + "column": 73 + }, + "end": { + "line": 100, + "column": 81 + } + }, + "name": "response" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 2247, + "end": 2255, + "loc": { + "start": { + "line": 100, + "column": 73 + }, + "end": { + "line": 100, + "column": 81 + } + }, + "name": "response" + } + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _triggerResponse\n * @param search\n * @param response\n * @private\n ", + "start": 2098, + "end": 2173, + "loc": { + "start": { + "line": 94, + "column": 0 + }, + "end": { + "line": 99, + "column": 3 + } + }, + "range": [ + 2098, + 2173 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * trigger\n * Triggers search, and posts search data to API\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param search\n * @returns {Function}\n ", + "start": 2261, + "end": 2443, + "loc": { + "start": { + "line": 102, + "column": 0 + }, + "end": { + "line": 109, + "column": 3 + } + }, + "range": [ + 2261, + 2443 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 2444, + "end": 2887, + "loc": { + "start": { + "line": 110, + "column": 0 + }, + "end": { + "line": 125, + "column": 1 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 2451, + "end": 2887, + "loc": { + "start": { + "line": 110, + "column": 7 + }, + "end": { + "line": 125, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 2460, + "end": 2467, + "loc": { + "start": { + "line": 110, + "column": 16 + }, + "end": { + "line": 110, + "column": 23 + } + }, + "name": "trigger", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2468, + "end": 2474, + "loc": { + "start": { + "line": 110, + "column": 24 + }, + "end": { + "line": 110, + "column": 30 + } + }, + "name": "search" + } + ], + "body": { + "type": "BlockStatement", + "start": 2476, + "end": 2887, + "loc": { + "start": { + "line": 110, + "column": 32 + }, + "end": { + "line": 125, + "column": 1 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 2482, + "end": 2885, + "loc": { + "start": { + "line": 111, + "column": 4 + }, + "end": { + "line": 124, + "column": 5 + } + }, + "argument": { + "type": "ArrowFunctionExpression", + "start": 2489, + "end": 2885, + "loc": { + "start": { + "line": 111, + "column": 11 + }, + "end": { + "line": 124, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2490, + "end": 2498, + "loc": { + "start": { + "line": 111, + "column": 12 + }, + "end": { + "line": 111, + "column": 20 + } + }, + "name": "dispatch" + }, + { + "type": "Identifier", + "start": 2500, + "end": 2508, + "loc": { + "start": { + "line": 111, + "column": 22 + }, + "end": { + "line": 111, + "column": 30 + } + }, + "name": "getState" + } + ], + "body": { + "type": "BlockStatement", + "start": 2513, + "end": 2885, + "loc": { + "start": { + "line": 111, + "column": 35 + }, + "end": { + "line": 124, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 2523, + "end": 2556, + "loc": { + "start": { + "line": 112, + "column": 8 + }, + "end": { + "line": 112, + "column": 41 + } + }, + "expression": { + "type": "CallExpression", + "start": 2523, + "end": 2556, + "loc": { + "start": { + "line": 112, + "column": 8 + }, + "end": { + "line": 112, + "column": 41 + } + }, + "callee": { + "type": "Identifier", + "start": 2523, + "end": 2531, + "loc": { + "start": { + "line": 112, + "column": 8 + }, + "end": { + "line": 112, + "column": 16 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 2532, + "end": 2555, + "loc": { + "start": { + "line": 112, + "column": 17 + }, + "end": { + "line": 112, + "column": 40 + } + }, + "callee": { + "type": "Identifier", + "start": 2532, + "end": 2547, + "loc": { + "start": { + "line": 112, + "column": 17 + }, + "end": { + "line": 112, + "column": 32 + } + }, + "name": "_triggerRequest" + }, + "arguments": [ + { + "type": "Identifier", + "start": 2548, + "end": 2554, + "loc": { + "start": { + "line": 112, + "column": 33 + }, + "end": { + "line": 112, + "column": 39 + } + }, + "name": "search" + } + ] + } + ], + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * data\n * @type {{user_id: *, search: *}}\n ", + "start": 2563, + "end": 2631, + "loc": { + "start": { + "line": 113, + "column": 6 + }, + "end": { + "line": 116, + "column": 9 + } + }, + "range": [ + 2563, + 2631 + ] + } + ] + }, + { + "type": "VariableDeclaration", + "start": 2640, + "end": 2738, + "loc": { + "start": { + "line": 117, + "column": 8 + }, + "end": { + "line": 120, + "column": 9 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 2646, + "end": 2738, + "loc": { + "start": { + "line": 117, + "column": 14 + }, + "end": { + "line": 120, + "column": 9 + } + }, + "id": { + "type": "Identifier", + "start": 2646, + "end": 2650, + "loc": { + "start": { + "line": 117, + "column": 14 + }, + "end": { + "line": 117, + "column": 18 + } + }, + "name": "data", + "leadingComments": null + }, + "init": { + "type": "ObjectExpression", + "start": 2653, + "end": 2738, + "loc": { + "start": { + "line": 117, + "column": 21 + }, + "end": { + "line": 120, + "column": 9 + } + }, + "properties": [ + { + "type": "Property", + "start": 2667, + "end": 2694, + "loc": { + "start": { + "line": 118, + "column": 12 + }, + "end": { + "line": 118, + "column": 39 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2667, + "end": 2674, + "loc": { + "start": { + "line": 118, + "column": 12 + }, + "end": { + "line": 118, + "column": 19 + } + }, + "name": "user_id" + }, + "value": { + "type": "MemberExpression", + "start": 2676, + "end": 2694, + "loc": { + "start": { + "line": 118, + "column": 21 + }, + "end": { + "line": 118, + "column": 39 + } + }, + "object": { + "type": "MemberExpression", + "start": 2676, + "end": 2691, + "loc": { + "start": { + "line": 118, + "column": 21 + }, + "end": { + "line": 118, + "column": 36 + } + }, + "object": { + "type": "CallExpression", + "start": 2676, + "end": 2686, + "loc": { + "start": { + "line": 118, + "column": 21 + }, + "end": { + "line": 118, + "column": 31 + } + }, + "callee": { + "type": "Identifier", + "start": 2676, + "end": 2684, + "loc": { + "start": { + "line": 118, + "column": 21 + }, + "end": { + "line": 118, + "column": 29 + } + }, + "name": "getState" + }, + "arguments": [] + }, + "property": { + "type": "Identifier", + "start": 2687, + "end": 2691, + "loc": { + "start": { + "line": 118, + "column": 32 + }, + "end": { + "line": 118, + "column": 36 + } + }, + "name": "User" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2692, + "end": 2694, + "loc": { + "start": { + "line": 118, + "column": 37 + }, + "end": { + "line": 118, + "column": 39 + } + }, + "name": "id" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 2708, + "end": 2727, + "loc": { + "start": { + "line": 119, + "column": 12 + }, + "end": { + "line": 119, + "column": 31 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2708, + "end": 2714, + "loc": { + "start": { + "line": 119, + "column": 12 + }, + "end": { + "line": 119, + "column": 18 + } + }, + "name": "search" + }, + "value": { + "type": "MemberExpression", + "start": 2716, + "end": 2727, + "loc": { + "start": { + "line": 119, + "column": 20 + }, + "end": { + "line": 119, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 2716, + "end": 2722, + "loc": { + "start": { + "line": 119, + "column": 20 + }, + "end": { + "line": 119, + "column": 26 + } + }, + "name": "search" + }, + "property": { + "type": "Identifier", + "start": 2723, + "end": 2727, + "loc": { + "start": { + "line": 119, + "column": 27 + }, + "end": { + "line": 119, + "column": 31 + } + }, + "name": "word" + }, + "computed": false + }, + "kind": "init" + } + ] + }, + "leadingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * data\n * @type {{user_id: *, search: *}}\n ", + "start": 2563, + "end": 2631, + "loc": { + "start": { + "line": 113, + "column": 6 + }, + "end": { + "line": 116, + "column": 9 + } + }, + "range": [ + 2563, + 2631 + ] + } + ] + }, + { + "type": "ExpressionStatement", + "start": 2747, + "end": 2879, + "loc": { + "start": { + "line": 121, + "column": 8 + }, + "end": { + "line": 123, + "column": 10 + } + }, + "expression": { + "type": "CallExpression", + "start": 2747, + "end": 2879, + "loc": { + "start": { + "line": 121, + "column": 8 + }, + "end": { + "line": 123, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2747, + "end": 2802, + "loc": { + "start": { + "line": 121, + "column": 8 + }, + "end": { + "line": 121, + "column": 63 + } + }, + "object": { + "type": "CallExpression", + "start": 2747, + "end": 2797, + "loc": { + "start": { + "line": 121, + "column": 8 + }, + "end": { + "line": 121, + "column": 58 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2747, + "end": 2757, + "loc": { + "start": { + "line": 121, + "column": 8 + }, + "end": { + "line": 121, + "column": 18 + } + }, + "object": { + "type": "Identifier", + "start": 2747, + "end": 2752, + "loc": { + "start": { + "line": 121, + "column": 8 + }, + "end": { + "line": 121, + "column": 13 + } + }, + "name": "axios" + }, + "property": { + "type": "Identifier", + "start": 2753, + "end": 2757, + "loc": { + "start": { + "line": 121, + "column": 14 + }, + "end": { + "line": 121, + "column": 18 + } + }, + "name": "post" + }, + "computed": false + }, + "arguments": [ + { + "type": "TemplateLiteral", + "start": 2758, + "end": 2790, + "loc": { + "start": { + "line": 121, + "column": 19 + }, + "end": { + "line": 121, + "column": 51 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 2761, + "end": 2779, + "loc": { + "start": { + "line": 121, + "column": 22 + }, + "end": { + "line": 121, + "column": 40 + } + }, + "object": { + "type": "MemberExpression", + "start": 2761, + "end": 2771, + "loc": { + "start": { + "line": 121, + "column": 22 + }, + "end": { + "line": 121, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 2761, + "end": 2767, + "loc": { + "start": { + "line": 121, + "column": 22 + }, + "end": { + "line": 121, + "column": 28 + } + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 2768, + "end": 2771, + "loc": { + "start": { + "line": 121, + "column": 29 + }, + "end": { + "line": 121, + "column": 32 + } + }, + "name": "api" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2772, + "end": 2779, + "loc": { + "start": { + "line": 121, + "column": 33 + }, + "end": { + "line": 121, + "column": 40 + } + }, + "name": "baseUrl" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 2759, + "end": 2759, + "loc": { + "start": { + "line": 121, + "column": 20 + }, + "end": { + "line": 121, + "column": 20 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 2780, + "end": 2789, + "loc": { + "start": { + "line": 121, + "column": 41 + }, + "end": { + "line": 121, + "column": 50 + } + }, + "value": { + "raw": "/searches", + "cooked": "/searches" + }, + "tail": true + } + ] + }, + { + "type": "Identifier", + "start": 2792, + "end": 2796, + "loc": { + "start": { + "line": 121, + "column": 53 + }, + "end": { + "line": 121, + "column": 57 + } + }, + "name": "data" + } + ] + }, + "property": { + "type": "Identifier", + "start": 2798, + "end": 2802, + "loc": { + "start": { + "line": 121, + "column": 59 + }, + "end": { + "line": 121, + "column": 63 + } + }, + "name": "then" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 2803, + "end": 2878, + "loc": { + "start": { + "line": 121, + "column": 64 + }, + "end": { + "line": 123, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2803, + "end": 2806, + "loc": { + "start": { + "line": 121, + "column": 64 + }, + "end": { + "line": 121, + "column": 67 + } + }, + "name": "res" + } + ], + "body": { + "type": "BlockStatement", + "start": 2810, + "end": 2878, + "loc": { + "start": { + "line": 121, + "column": 71 + }, + "end": { + "line": 123, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 2824, + "end": 2868, + "loc": { + "start": { + "line": 122, + "column": 12 + }, + "end": { + "line": 122, + "column": 56 + } + }, + "expression": { + "type": "CallExpression", + "start": 2824, + "end": 2868, + "loc": { + "start": { + "line": 122, + "column": 12 + }, + "end": { + "line": 122, + "column": 56 + } + }, + "callee": { + "type": "Identifier", + "start": 2824, + "end": 2832, + "loc": { + "start": { + "line": 122, + "column": 12 + }, + "end": { + "line": 122, + "column": 20 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 2833, + "end": 2867, + "loc": { + "start": { + "line": 122, + "column": 21 + }, + "end": { + "line": 122, + "column": 55 + } + }, + "callee": { + "type": "Identifier", + "start": 2833, + "end": 2849, + "loc": { + "start": { + "line": 122, + "column": 21 + }, + "end": { + "line": 122, + "column": 37 + } + }, + "name": "_triggerResponse" + }, + "arguments": [ + { + "type": "Identifier", + "start": 2850, + "end": 2856, + "loc": { + "start": { + "line": 122, + "column": 38 + }, + "end": { + "line": 122, + "column": 44 + } + }, + "name": "search" + }, + { + "type": "MemberExpression", + "start": 2858, + "end": 2866, + "loc": { + "start": { + "line": 122, + "column": 46 + }, + "end": { + "line": 122, + "column": 54 + } + }, + "object": { + "type": "Identifier", + "start": 2858, + "end": 2861, + "loc": { + "start": { + "line": 122, + "column": 46 + }, + "end": { + "line": 122, + "column": 49 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 2862, + "end": 2866, + "loc": { + "start": { + "line": 122, + "column": 50 + }, + "end": { + "line": 122, + "column": 54 + } + }, + "name": "data" + }, + "computed": false + } + ] + } + ] + } + } + ] + } + } + ] + } + } + ] + } + } + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * trigger\n * Triggers search, and posts search data to API\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param search\n * @returns {Function}\n ", + "start": 2261, + "end": 2443, + "loc": { + "start": { + "line": 102, + "column": 0 + }, + "end": { + "line": 109, + "column": 3 + } + }, + "range": [ + 2261, + 2443 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * RECENT\n * @type {string}\n ", + "start": 2889, + "end": 2924, + "loc": { + "start": { + "line": 127, + "column": 0 + }, + "end": { + "line": 130, + "column": 3 + } + }, + "range": [ + 2889, + 2924 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * trigger\n * Triggers search, and posts search data to API\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param search\n * @returns {Function}\n ", + "start": 2261, + "end": 2443, + "loc": { + "start": { + "line": 102, + "column": 0 + }, + "end": { + "line": 109, + "column": 3 + } + }, + "range": [ + 2261, + 2443 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * RECENT\n * @type {string}\n ", + "start": 2889, + "end": 2924, + "loc": { + "start": { + "line": 127, + "column": 0 + }, + "end": { + "line": 130, + "column": 3 + } + }, + "range": [ + 2889, + 2924 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 2925, + "end": 2962, + "loc": { + "start": { + "line": 131, + "column": 0 + }, + "end": { + "line": 131, + "column": 37 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 2932, + "end": 2962, + "loc": { + "start": { + "line": 131, + "column": 7 + }, + "end": { + "line": 131, + "column": 37 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 2938, + "end": 2962, + "loc": { + "start": { + "line": 131, + "column": 13 + }, + "end": { + "line": 131, + "column": 37 + } + }, + "id": { + "type": "Identifier", + "start": 2938, + "end": 2944, + "loc": { + "start": { + "line": 131, + "column": 13 + }, + "end": { + "line": 131, + "column": 19 + } + }, + "name": "RECENT", + "leadingComments": null + }, + "init": { + "type": "Literal", + "start": 2947, + "end": 2962, + "loc": { + "start": { + "line": 131, + "column": 22 + }, + "end": { + "line": 131, + "column": 37 + } + }, + "value": "SEARCH_RECENT", + "rawValue": "SEARCH_RECENT", + "raw": "'SEARCH_RECENT'", + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * RECENT\n * @type {string}\n ", + "start": 2889, + "end": 2924, + "loc": { + "start": { + "line": 127, + "column": 0 + }, + "end": { + "line": 130, + "column": 3 + } + }, + "range": [ + 2889, + 2924 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _recentRequest\n * @private\n ", + "start": 2964, + "end": 3001, + "loc": { + "start": { + "line": 133, + "column": 0 + }, + "end": { + "line": 136, + "column": 3 + } + }, + "range": [ + 2964, + 3001 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * RECENT\n * @type {string}\n ", + "start": 2889, + "end": 2924, + "loc": { + "start": { + "line": 127, + "column": 0 + }, + "end": { + "line": 130, + "column": 3 + } + }, + "range": [ + 2889, + 2924 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _recentRequest\n * @private\n ", + "start": 2964, + "end": 3001, + "loc": { + "start": { + "line": 133, + "column": 0 + }, + "end": { + "line": 136, + "column": 3 + } + }, + "range": [ + 2964, + 3001 + ] + } + ] + }, + { + "type": "VariableDeclaration", + "start": 3002, + "end": 3050, + "loc": { + "start": { + "line": 137, + "column": 0 + }, + "end": { + "line": 137, + "column": 48 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 3008, + "end": 3050, + "loc": { + "start": { + "line": 137, + "column": 6 + }, + "end": { + "line": 137, + "column": 48 + } + }, + "id": { + "type": "Identifier", + "start": 3008, + "end": 3022, + "loc": { + "start": { + "line": 137, + "column": 6 + }, + "end": { + "line": 137, + "column": 20 + } + }, + "name": "_recentRequest", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 3025, + "end": 3050, + "loc": { + "start": { + "line": 137, + "column": 23 + }, + "end": { + "line": 137, + "column": 48 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [], + "body": { + "type": "ObjectExpression", + "start": 3032, + "end": 3049, + "loc": { + "start": { + "line": 137, + "column": 30 + }, + "end": { + "line": 137, + "column": 47 + } + }, + "properties": [ + { + "type": "Property", + "start": 3034, + "end": 3046, + "loc": { + "start": { + "line": 137, + "column": 32 + }, + "end": { + "line": 137, + "column": 44 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3034, + "end": 3038, + "loc": { + "start": { + "line": 137, + "column": 32 + }, + "end": { + "line": 137, + "column": 36 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 3040, + "end": 3046, + "loc": { + "start": { + "line": 137, + "column": 38 + }, + "end": { + "line": 137, + "column": 44 + } + }, + "name": "RECENT" + }, + "kind": "init" + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _recentRequest\n * @private\n ", + "start": 2964, + "end": 3001, + "loc": { + "start": { + "line": 133, + "column": 0 + }, + "end": { + "line": 136, + "column": 3 + } + }, + "range": [ + 2964, + 3001 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _recentResponse\n * @param response\n * @private\n ", + "start": 3052, + "end": 3109, + "loc": { + "start": { + "line": 139, + "column": 0 + }, + "end": { + "line": 143, + "column": 3 + } + }, + "range": [ + 3052, + 3109 + ] + } + ] + }, + { + "type": "VariableDeclaration", + "start": 3110, + "end": 3177, + "loc": { + "start": { + "line": 144, + "column": 0 + }, + "end": { + "line": 144, + "column": 67 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 3116, + "end": 3177, + "loc": { + "start": { + "line": 144, + "column": 6 + }, + "end": { + "line": 144, + "column": 67 + } + }, + "id": { + "type": "Identifier", + "start": 3116, + "end": 3131, + "loc": { + "start": { + "line": 144, + "column": 6 + }, + "end": { + "line": 144, + "column": 21 + } + }, + "name": "_recentResponse", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 3134, + "end": 3177, + "loc": { + "start": { + "line": 144, + "column": 24 + }, + "end": { + "line": 144, + "column": 67 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 3135, + "end": 3143, + "loc": { + "start": { + "line": 144, + "column": 25 + }, + "end": { + "line": 144, + "column": 33 + } + }, + "name": "response" + } + ], + "body": { + "type": "ObjectExpression", + "start": 3149, + "end": 3176, + "loc": { + "start": { + "line": 144, + "column": 39 + }, + "end": { + "line": 144, + "column": 66 + } + }, + "properties": [ + { + "type": "Property", + "start": 3151, + "end": 3163, + "loc": { + "start": { + "line": 144, + "column": 41 + }, + "end": { + "line": 144, + "column": 53 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3151, + "end": 3155, + "loc": { + "start": { + "line": 144, + "column": 41 + }, + "end": { + "line": 144, + "column": 45 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 3157, + "end": 3163, + "loc": { + "start": { + "line": 144, + "column": 47 + }, + "end": { + "line": 144, + "column": 53 + } + }, + "name": "RECENT" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 3165, + "end": 3173, + "loc": { + "start": { + "line": 144, + "column": 55 + }, + "end": { + "line": 144, + "column": 63 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 3165, + "end": 3173, + "loc": { + "start": { + "line": 144, + "column": 55 + }, + "end": { + "line": 144, + "column": 63 + } + }, + "name": "response" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 3165, + "end": 3173, + "loc": { + "start": { + "line": 144, + "column": 55 + }, + "end": { + "line": 144, + "column": 63 + } + }, + "name": "response" + } + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _recentResponse\n * @param response\n * @private\n ", + "start": 3052, + "end": 3109, + "loc": { + "start": { + "line": 139, + "column": 0 + }, + "end": { + "line": 143, + "column": 3 + } + }, + "range": [ + 3052, + 3109 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * recent\n * Gets recent searches from API for a given user\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @returns {Function}\n ", + "start": 3179, + "end": 3344, + "loc": { + "start": { + "line": 146, + "column": 0 + }, + "end": { + "line": 152, + "column": 3 + } + }, + "range": [ + 3179, + 3344 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 3345, + "end": 3737, + "loc": { + "start": { + "line": 153, + "column": 0 + }, + "end": { + "line": 165, + "column": 1 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 3352, + "end": 3737, + "loc": { + "start": { + "line": 153, + "column": 7 + }, + "end": { + "line": 165, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 3361, + "end": 3367, + "loc": { + "start": { + "line": 153, + "column": 16 + }, + "end": { + "line": 153, + "column": 22 + } + }, + "name": "recent", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 3370, + "end": 3737, + "loc": { + "start": { + "line": 153, + "column": 25 + }, + "end": { + "line": 165, + "column": 1 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 3376, + "end": 3735, + "loc": { + "start": { + "line": 154, + "column": 4 + }, + "end": { + "line": 164, + "column": 5 + } + }, + "argument": { + "type": "ArrowFunctionExpression", + "start": 3383, + "end": 3735, + "loc": { + "start": { + "line": 154, + "column": 11 + }, + "end": { + "line": 164, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 3384, + "end": 3392, + "loc": { + "start": { + "line": 154, + "column": 12 + }, + "end": { + "line": 154, + "column": 20 + } + }, + "name": "dispatch" + }, + { + "type": "Identifier", + "start": 3394, + "end": 3402, + "loc": { + "start": { + "line": 154, + "column": 22 + }, + "end": { + "line": 154, + "column": 30 + } + }, + "name": "getState" + } + ], + "body": { + "type": "BlockStatement", + "start": 3407, + "end": 3735, + "loc": { + "start": { + "line": 154, + "column": 35 + }, + "end": { + "line": 164, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 3417, + "end": 3443, + "loc": { + "start": { + "line": 155, + "column": 8 + }, + "end": { + "line": 155, + "column": 34 + } + }, + "expression": { + "type": "CallExpression", + "start": 3417, + "end": 3443, + "loc": { + "start": { + "line": 155, + "column": 8 + }, + "end": { + "line": 155, + "column": 34 + } + }, + "callee": { + "type": "Identifier", + "start": 3417, + "end": 3425, + "loc": { + "start": { + "line": 155, + "column": 8 + }, + "end": { + "line": 155, + "column": 16 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 3426, + "end": 3442, + "loc": { + "start": { + "line": 155, + "column": 17 + }, + "end": { + "line": 155, + "column": 33 + } + }, + "callee": { + "type": "Identifier", + "start": 3426, + "end": 3440, + "loc": { + "start": { + "line": 155, + "column": 17 + }, + "end": { + "line": 155, + "column": 31 + } + }, + "name": "_recentRequest" + }, + "arguments": [] + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 3452, + "end": 3729, + "loc": { + "start": { + "line": 156, + "column": 8 + }, + "end": { + "line": 163, + "column": 10 + } + }, + "expression": { + "type": "CallExpression", + "start": 3452, + "end": 3729, + "loc": { + "start": { + "line": 156, + "column": 8 + }, + "end": { + "line": 163, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3452, + "end": 3661, + "loc": { + "start": { + "line": 156, + "column": 8 + }, + "end": { + "line": 161, + "column": 13 + } + }, + "object": { + "type": "CallExpression", + "start": 3452, + "end": 3647, + "loc": { + "start": { + "line": 156, + "column": 8 + }, + "end": { + "line": 160, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3452, + "end": 3461, + "loc": { + "start": { + "line": 156, + "column": 8 + }, + "end": { + "line": 156, + "column": 17 + } + }, + "object": { + "type": "Identifier", + "start": 3452, + "end": 3457, + "loc": { + "start": { + "line": 156, + "column": 8 + }, + "end": { + "line": 156, + "column": 13 + } + }, + "name": "axios" + }, + "property": { + "type": "Identifier", + "start": 3458, + "end": 3461, + "loc": { + "start": { + "line": 156, + "column": 14 + }, + "end": { + "line": 156, + "column": 17 + } + }, + "name": "get" + }, + "computed": false + }, + "arguments": [ + { + "type": "TemplateLiteral", + "start": 3462, + "end": 3524, + "loc": { + "start": { + "line": 156, + "column": 18 + }, + "end": { + "line": 156, + "column": 80 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 3465, + "end": 3483, + "loc": { + "start": { + "line": 156, + "column": 21 + }, + "end": { + "line": 156, + "column": 39 + } + }, + "object": { + "type": "MemberExpression", + "start": 3465, + "end": 3475, + "loc": { + "start": { + "line": 156, + "column": 21 + }, + "end": { + "line": 156, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 3465, + "end": 3471, + "loc": { + "start": { + "line": 156, + "column": 21 + }, + "end": { + "line": 156, + "column": 27 + } + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 3472, + "end": 3475, + "loc": { + "start": { + "line": 156, + "column": 28 + }, + "end": { + "line": 156, + "column": 31 + } + }, + "name": "api" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3476, + "end": 3483, + "loc": { + "start": { + "line": 156, + "column": 32 + }, + "end": { + "line": 156, + "column": 39 + } + }, + "name": "baseUrl" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 3504, + "end": 3522, + "loc": { + "start": { + "line": 156, + "column": 60 + }, + "end": { + "line": 156, + "column": 78 + } + }, + "object": { + "type": "MemberExpression", + "start": 3504, + "end": 3519, + "loc": { + "start": { + "line": 156, + "column": 60 + }, + "end": { + "line": 156, + "column": 75 + } + }, + "object": { + "type": "CallExpression", + "start": 3504, + "end": 3514, + "loc": { + "start": { + "line": 156, + "column": 60 + }, + "end": { + "line": 156, + "column": 70 + } + }, + "callee": { + "type": "Identifier", + "start": 3504, + "end": 3512, + "loc": { + "start": { + "line": 156, + "column": 60 + }, + "end": { + "line": 156, + "column": 68 + } + }, + "name": "getState" + }, + "arguments": [] + }, + "property": { + "type": "Identifier", + "start": 3515, + "end": 3519, + "loc": { + "start": { + "line": 156, + "column": 71 + }, + "end": { + "line": 156, + "column": 75 + } + }, + "name": "User" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3520, + "end": 3522, + "loc": { + "start": { + "line": 156, + "column": 76 + }, + "end": { + "line": 156, + "column": 78 + } + }, + "name": "id" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 3463, + "end": 3463, + "loc": { + "start": { + "line": 156, + "column": 19 + }, + "end": { + "line": 156, + "column": 19 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 3484, + "end": 3502, + "loc": { + "start": { + "line": 156, + "column": 40 + }, + "end": { + "line": 156, + "column": 58 + } + }, + "value": { + "raw": "/searches?user_id=", + "cooked": "/searches?user_id=" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 3523, + "end": 3523, + "loc": { + "start": { + "line": 156, + "column": 79 + }, + "end": { + "line": 156, + "column": 79 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + }, + { + "type": "ObjectExpression", + "start": 3526, + "end": 3646, + "loc": { + "start": { + "line": 156, + "column": 82 + }, + "end": { + "line": 160, + "column": 9 + } + }, + "properties": [ + { + "type": "Property", + "start": 3540, + "end": 3635, + "loc": { + "start": { + "line": 157, + "column": 12 + }, + "end": { + "line": 159, + "column": 13 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3540, + "end": 3547, + "loc": { + "start": { + "line": 157, + "column": 12 + }, + "end": { + "line": 157, + "column": 19 + } + }, + "name": "headers" + }, + "value": { + "type": "ObjectExpression", + "start": 3549, + "end": 3635, + "loc": { + "start": { + "line": 157, + "column": 21 + }, + "end": { + "line": 159, + "column": 13 + } + }, + "properties": [ + { + "type": "Property", + "start": 3567, + "end": 3621, + "loc": { + "start": { + "line": 158, + "column": 16 + }, + "end": { + "line": 158, + "column": 70 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3567, + "end": 3580, + "loc": { + "start": { + "line": 158, + "column": 16 + }, + "end": { + "line": 158, + "column": 29 + } + }, + "name": "Authorization" + }, + "value": { + "type": "TemplateLiteral", + "start": 3582, + "end": 3621, + "loc": { + "start": { + "line": 158, + "column": 31 + }, + "end": { + "line": 158, + "column": 70 + } + }, + "expressions": [ + { + "type": "CallExpression", + "start": 3592, + "end": 3619, + "loc": { + "start": { + "line": 158, + "column": 41 + }, + "end": { + "line": 158, + "column": 68 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3592, + "end": 3612, + "loc": { + "start": { + "line": 158, + "column": 41 + }, + "end": { + "line": 158, + "column": 61 + } + }, + "object": { + "type": "Identifier", + "start": 3592, + "end": 3604, + "loc": { + "start": { + "line": 158, + "column": 41 + }, + "end": { + "line": 158, + "column": 53 + } + }, + "name": "localStorage" + }, + "property": { + "type": "Identifier", + "start": 3605, + "end": 3612, + "loc": { + "start": { + "line": 158, + "column": 54 + }, + "end": { + "line": 158, + "column": 61 + } + }, + "name": "getItem" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 3613, + "end": 3618, + "loc": { + "start": { + "line": 158, + "column": 62 + }, + "end": { + "line": 158, + "column": 67 + } + }, + "value": "jwt", + "rawValue": "jwt", + "raw": "'jwt'" + } + ] + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 3583, + "end": 3590, + "loc": { + "start": { + "line": 158, + "column": 32 + }, + "end": { + "line": 158, + "column": 39 + } + }, + "value": { + "raw": "Bearer ", + "cooked": "Bearer " + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 3620, + "end": 3620, + "loc": { + "start": { + "line": 158, + "column": 69 + }, + "end": { + "line": 158, + "column": 69 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + }, + "kind": "init" + } + ] + }, + "kind": "init" + } + ] + } + ] + }, + "property": { + "type": "Identifier", + "start": 3657, + "end": 3661, + "loc": { + "start": { + "line": 161, + "column": 9 + }, + "end": { + "line": 161, + "column": 13 + } + }, + "name": "then" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 3662, + "end": 3728, + "loc": { + "start": { + "line": 161, + "column": 14 + }, + "end": { + "line": 163, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 3662, + "end": 3665, + "loc": { + "start": { + "line": 161, + "column": 14 + }, + "end": { + "line": 161, + "column": 17 + } + }, + "name": "res" + } + ], + "body": { + "type": "BlockStatement", + "start": 3669, + "end": 3728, + "loc": { + "start": { + "line": 161, + "column": 21 + }, + "end": { + "line": 163, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 3683, + "end": 3718, + "loc": { + "start": { + "line": 162, + "column": 12 + }, + "end": { + "line": 162, + "column": 47 + } + }, + "expression": { + "type": "CallExpression", + "start": 3683, + "end": 3718, + "loc": { + "start": { + "line": 162, + "column": 12 + }, + "end": { + "line": 162, + "column": 47 + } + }, + "callee": { + "type": "Identifier", + "start": 3683, + "end": 3691, + "loc": { + "start": { + "line": 162, + "column": 12 + }, + "end": { + "line": 162, + "column": 20 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 3692, + "end": 3717, + "loc": { + "start": { + "line": 162, + "column": 21 + }, + "end": { + "line": 162, + "column": 46 + } + }, + "callee": { + "type": "Identifier", + "start": 3692, + "end": 3707, + "loc": { + "start": { + "line": 162, + "column": 21 + }, + "end": { + "line": 162, + "column": 36 + } + }, + "name": "_recentResponse" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 3708, + "end": 3716, + "loc": { + "start": { + "line": 162, + "column": 37 + }, + "end": { + "line": 162, + "column": 45 + } + }, + "object": { + "type": "Identifier", + "start": 3708, + "end": 3711, + "loc": { + "start": { + "line": 162, + "column": 37 + }, + "end": { + "line": 162, + "column": 40 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 3712, + "end": 3716, + "loc": { + "start": { + "line": 162, + "column": 41 + }, + "end": { + "line": 162, + "column": 45 + } + }, + "name": "data" + }, + "computed": false + } + ] + } + ] + } + } + ] + } + } + ] + } + } + ] + } + } + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * recent\n * Gets recent searches from API for a given user\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @returns {Function}\n ", + "start": 3179, + "end": 3344, + "loc": { + "start": { + "line": 146, + "column": 0 + }, + "end": { + "line": 152, + "column": 3 + } + }, + "range": [ + 3179, + 3344 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * RESULTS\n * @type {string}\n ", + "start": 3739, + "end": 3775, + "loc": { + "start": { + "line": 167, + "column": 0 + }, + "end": { + "line": 170, + "column": 3 + } + }, + "range": [ + 3739, + 3775 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * recent\n * Gets recent searches from API for a given user\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @returns {Function}\n ", + "start": 3179, + "end": 3344, + "loc": { + "start": { + "line": 146, + "column": 0 + }, + "end": { + "line": 152, + "column": 3 + } + }, + "range": [ + 3179, + 3344 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * RESULTS\n * @type {string}\n ", + "start": 3739, + "end": 3775, + "loc": { + "start": { + "line": 167, + "column": 0 + }, + "end": { + "line": 170, + "column": 3 + } + }, + "range": [ + 3739, + 3775 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 3776, + "end": 3815, + "loc": { + "start": { + "line": 171, + "column": 0 + }, + "end": { + "line": 171, + "column": 39 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 3783, + "end": 3815, + "loc": { + "start": { + "line": 171, + "column": 7 + }, + "end": { + "line": 171, + "column": 39 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 3789, + "end": 3815, + "loc": { + "start": { + "line": 171, + "column": 13 + }, + "end": { + "line": 171, + "column": 39 + } + }, + "id": { + "type": "Identifier", + "start": 3789, + "end": 3796, + "loc": { + "start": { + "line": 171, + "column": 13 + }, + "end": { + "line": 171, + "column": 20 + } + }, + "name": "RESULTS", + "leadingComments": null + }, + "init": { + "type": "Literal", + "start": 3799, + "end": 3815, + "loc": { + "start": { + "line": 171, + "column": 23 + }, + "end": { + "line": 171, + "column": 39 + } + }, + "value": "SEARCH_RESULTS", + "rawValue": "SEARCH_RESULTS", + "raw": "'SEARCH_RESULTS'", + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * RESULTS\n * @type {string}\n ", + "start": 3739, + "end": 3775, + "loc": { + "start": { + "line": 167, + "column": 0 + }, + "end": { + "line": 170, + "column": 3 + } + }, + "range": [ + 3739, + 3775 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _searchResultsRequest\n * @private\n ", + "start": 3817, + "end": 3861, + "loc": { + "start": { + "line": 173, + "column": 0 + }, + "end": { + "line": 176, + "column": 3 + } + }, + "range": [ + 3817, + 3861 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * RESULTS\n * @type {string}\n ", + "start": 3739, + "end": 3775, + "loc": { + "start": { + "line": 167, + "column": 0 + }, + "end": { + "line": 170, + "column": 3 + } + }, + "range": [ + 3739, + 3775 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _searchResultsRequest\n * @private\n ", + "start": 3817, + "end": 3861, + "loc": { + "start": { + "line": 173, + "column": 0 + }, + "end": { + "line": 176, + "column": 3 + } + }, + "range": [ + 3817, + 3861 + ] + } + ] + }, + { + "type": "VariableDeclaration", + "start": 3862, + "end": 3918, + "loc": { + "start": { + "line": 177, + "column": 0 + }, + "end": { + "line": 177, + "column": 56 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 3868, + "end": 3918, + "loc": { + "start": { + "line": 177, + "column": 6 + }, + "end": { + "line": 177, + "column": 56 + } + }, + "id": { + "type": "Identifier", + "start": 3868, + "end": 3889, + "loc": { + "start": { + "line": 177, + "column": 6 + }, + "end": { + "line": 177, + "column": 27 + } + }, + "name": "_searchResultsRequest", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 3892, + "end": 3918, + "loc": { + "start": { + "line": 177, + "column": 30 + }, + "end": { + "line": 177, + "column": 56 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [], + "body": { + "type": "ObjectExpression", + "start": 3899, + "end": 3917, + "loc": { + "start": { + "line": 177, + "column": 37 + }, + "end": { + "line": 177, + "column": 55 + } + }, + "properties": [ + { + "type": "Property", + "start": 3901, + "end": 3914, + "loc": { + "start": { + "line": 177, + "column": 39 + }, + "end": { + "line": 177, + "column": 52 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3901, + "end": 3905, + "loc": { + "start": { + "line": 177, + "column": 39 + }, + "end": { + "line": 177, + "column": 43 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 3907, + "end": 3914, + "loc": { + "start": { + "line": 177, + "column": 45 + }, + "end": { + "line": 177, + "column": 52 + } + }, + "name": "RESULTS" + }, + "kind": "init" + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _searchResultsRequest\n * @private\n ", + "start": 3817, + "end": 3861, + "loc": { + "start": { + "line": 173, + "column": 0 + }, + "end": { + "line": 176, + "column": 3 + } + }, + "range": [ + 3817, + 3861 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _searchResultsResponse\n * @param response\n * @private\n ", + "start": 3920, + "end": 3984, + "loc": { + "start": { + "line": 179, + "column": 0 + }, + "end": { + "line": 183, + "column": 3 + } + }, + "range": [ + 3920, + 3984 + ] + } + ] + }, + { + "type": "VariableDeclaration", + "start": 3985, + "end": 4060, + "loc": { + "start": { + "line": 184, + "column": 0 + }, + "end": { + "line": 184, + "column": 75 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 3991, + "end": 4060, + "loc": { + "start": { + "line": 184, + "column": 6 + }, + "end": { + "line": 184, + "column": 75 + } + }, + "id": { + "type": "Identifier", + "start": 3991, + "end": 4013, + "loc": { + "start": { + "line": 184, + "column": 6 + }, + "end": { + "line": 184, + "column": 28 + } + }, + "name": "_searchResultsResponse", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 4016, + "end": 4060, + "loc": { + "start": { + "line": 184, + "column": 31 + }, + "end": { + "line": 184, + "column": 75 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 4017, + "end": 4025, + "loc": { + "start": { + "line": 184, + "column": 32 + }, + "end": { + "line": 184, + "column": 40 + } + }, + "name": "response" + } + ], + "body": { + "type": "ObjectExpression", + "start": 4031, + "end": 4059, + "loc": { + "start": { + "line": 184, + "column": 46 + }, + "end": { + "line": 184, + "column": 74 + } + }, + "properties": [ + { + "type": "Property", + "start": 4033, + "end": 4046, + "loc": { + "start": { + "line": 184, + "column": 48 + }, + "end": { + "line": 184, + "column": 61 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 4033, + "end": 4037, + "loc": { + "start": { + "line": 184, + "column": 48 + }, + "end": { + "line": 184, + "column": 52 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 4039, + "end": 4046, + "loc": { + "start": { + "line": 184, + "column": 54 + }, + "end": { + "line": 184, + "column": 61 + } + }, + "name": "RESULTS" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 4048, + "end": 4056, + "loc": { + "start": { + "line": 184, + "column": 63 + }, + "end": { + "line": 184, + "column": 71 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 4048, + "end": 4056, + "loc": { + "start": { + "line": 184, + "column": 63 + }, + "end": { + "line": 184, + "column": 71 + } + }, + "name": "response" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 4048, + "end": 4056, + "loc": { + "start": { + "line": 184, + "column": 63 + }, + "end": { + "line": 184, + "column": 71 + } + }, + "name": "response" + } + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _searchResultsResponse\n * @param response\n * @private\n ", + "start": 3920, + "end": 3984, + "loc": { + "start": { + "line": 179, + "column": 0 + }, + "end": { + "line": 183, + "column": 3 + } + }, + "range": [ + 3920, + 3984 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * results\n * Gets uploads from API based on Algolia Search response\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param type {string}\n * @param query {string}\n * @returns {Function}\n ", + "start": 4062, + "end": 4285, + "loc": { + "start": { + "line": 186, + "column": 0 + }, + "end": { + "line": 194, + "column": 3 + } + }, + "range": [ + 4062, + 4285 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 4286, + "end": 4705, + "loc": { + "start": { + "line": 195, + "column": 0 + }, + "end": { + "line": 207, + "column": 1 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 4293, + "end": 4705, + "loc": { + "start": { + "line": 195, + "column": 7 + }, + "end": { + "line": 207, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 4302, + "end": 4309, + "loc": { + "start": { + "line": 195, + "column": 16 + }, + "end": { + "line": 195, + "column": 23 + } + }, + "name": "results", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 4310, + "end": 4314, + "loc": { + "start": { + "line": 195, + "column": 24 + }, + "end": { + "line": 195, + "column": 28 + } + }, + "name": "type" + }, + { + "type": "Identifier", + "start": 4316, + "end": 4321, + "loc": { + "start": { + "line": 195, + "column": 30 + }, + "end": { + "line": 195, + "column": 35 + } + }, + "name": "query" + } + ], + "body": { + "type": "BlockStatement", + "start": 4323, + "end": 4705, + "loc": { + "start": { + "line": 195, + "column": 37 + }, + "end": { + "line": 207, + "column": 1 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 4329, + "end": 4703, + "loc": { + "start": { + "line": 196, + "column": 4 + }, + "end": { + "line": 206, + "column": 5 + } + }, + "argument": { + "type": "ArrowFunctionExpression", + "start": 4336, + "end": 4703, + "loc": { + "start": { + "line": 196, + "column": 11 + }, + "end": { + "line": 206, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 4336, + "end": 4344, + "loc": { + "start": { + "line": 196, + "column": 11 + }, + "end": { + "line": 196, + "column": 19 + } + }, + "name": "dispatch" + } + ], + "body": { + "type": "BlockStatement", + "start": 4348, + "end": 4703, + "loc": { + "start": { + "line": 196, + "column": 23 + }, + "end": { + "line": 206, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 4358, + "end": 4391, + "loc": { + "start": { + "line": 197, + "column": 8 + }, + "end": { + "line": 197, + "column": 41 + } + }, + "expression": { + "type": "CallExpression", + "start": 4358, + "end": 4391, + "loc": { + "start": { + "line": 197, + "column": 8 + }, + "end": { + "line": 197, + "column": 41 + } + }, + "callee": { + "type": "Identifier", + "start": 4358, + "end": 4366, + "loc": { + "start": { + "line": 197, + "column": 8 + }, + "end": { + "line": 197, + "column": 16 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 4367, + "end": 4390, + "loc": { + "start": { + "line": 197, + "column": 17 + }, + "end": { + "line": 197, + "column": 40 + } + }, + "callee": { + "type": "Identifier", + "start": 4367, + "end": 4388, + "loc": { + "start": { + "line": 197, + "column": 17 + }, + "end": { + "line": 197, + "column": 38 + } + }, + "name": "_searchResultsRequest" + }, + "arguments": [] + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 4400, + "end": 4697, + "loc": { + "start": { + "line": 198, + "column": 8 + }, + "end": { + "line": 205, + "column": 10 + } + }, + "expression": { + "type": "CallExpression", + "start": 4400, + "end": 4697, + "loc": { + "start": { + "line": 198, + "column": 8 + }, + "end": { + "line": 205, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4400, + "end": 4622, + "loc": { + "start": { + "line": 198, + "column": 8 + }, + "end": { + "line": 203, + "column": 13 + } + }, + "object": { + "type": "CallExpression", + "start": 4400, + "end": 4608, + "loc": { + "start": { + "line": 198, + "column": 8 + }, + "end": { + "line": 202, + "column": 10 + } + }, + "callee": { + "type": "Identifier", + "start": 4400, + "end": 4405, + "loc": { + "start": { + "line": 198, + "column": 8 + }, + "end": { + "line": 198, + "column": 13 + } + }, + "name": "axios" + }, + "arguments": [ + { + "type": "TemplateLiteral", + "start": 4406, + "end": 4485, + "loc": { + "start": { + "line": 198, + "column": 14 + }, + "end": { + "line": 198, + "column": 93 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 4409, + "end": 4427, + "loc": { + "start": { + "line": 198, + "column": 17 + }, + "end": { + "line": 198, + "column": 35 + } + }, + "object": { + "type": "MemberExpression", + "start": 4409, + "end": 4419, + "loc": { + "start": { + "line": 198, + "column": 17 + }, + "end": { + "line": 198, + "column": 27 + } + }, + "object": { + "type": "Identifier", + "start": 4409, + "end": 4415, + "loc": { + "start": { + "line": 198, + "column": 17 + }, + "end": { + "line": 198, + "column": 23 + } + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 4416, + "end": 4419, + "loc": { + "start": { + "line": 198, + "column": 24 + }, + "end": { + "line": 198, + "column": 27 + } + }, + "name": "api" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 4420, + "end": 4427, + "loc": { + "start": { + "line": 198, + "column": 28 + }, + "end": { + "line": 198, + "column": 35 + } + }, + "name": "baseUrl" + }, + "computed": false + }, + { + "type": "Identifier", + "start": 4444, + "end": 4448, + "loc": { + "start": { + "line": 198, + "column": 52 + }, + "end": { + "line": 198, + "column": 56 + } + }, + "name": "type" + }, + { + "type": "CallExpression", + "start": 4458, + "end": 4483, + "loc": { + "start": { + "line": 198, + "column": 66 + }, + "end": { + "line": 198, + "column": 91 + } + }, + "callee": { + "type": "Identifier", + "start": 4458, + "end": 4476, + "loc": { + "start": { + "line": 198, + "column": 66 + }, + "end": { + "line": 198, + "column": 84 + } + }, + "name": "encodeURIComponent" + }, + "arguments": [ + { + "type": "Identifier", + "start": 4477, + "end": 4482, + "loc": { + "start": { + "line": 198, + "column": 85 + }, + "end": { + "line": 198, + "column": 90 + } + }, + "name": "query" + } + ] + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 4407, + "end": 4407, + "loc": { + "start": { + "line": 198, + "column": 15 + }, + "end": { + "line": 198, + "column": 15 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 4428, + "end": 4442, + "loc": { + "start": { + "line": 198, + "column": 36 + }, + "end": { + "line": 198, + "column": 50 + } + }, + "value": { + "raw": "/uploads?type=", + "cooked": "/uploads?type=" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 4449, + "end": 4456, + "loc": { + "start": { + "line": 198, + "column": 57 + }, + "end": { + "line": 198, + "column": 64 + } + }, + "value": { + "raw": "&query=", + "cooked": "&query=" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 4484, + "end": 4484, + "loc": { + "start": { + "line": 198, + "column": 92 + }, + "end": { + "line": 198, + "column": 92 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + }, + { + "type": "ObjectExpression", + "start": 4487, + "end": 4607, + "loc": { + "start": { + "line": 198, + "column": 95 + }, + "end": { + "line": 202, + "column": 9 + } + }, + "properties": [ + { + "type": "Property", + "start": 4501, + "end": 4596, + "loc": { + "start": { + "line": 199, + "column": 12 + }, + "end": { + "line": 201, + "column": 13 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 4501, + "end": 4508, + "loc": { + "start": { + "line": 199, + "column": 12 + }, + "end": { + "line": 199, + "column": 19 + } + }, + "name": "headers" + }, + "value": { + "type": "ObjectExpression", + "start": 4510, + "end": 4596, + "loc": { + "start": { + "line": 199, + "column": 21 + }, + "end": { + "line": 201, + "column": 13 + } + }, + "properties": [ + { + "type": "Property", + "start": 4528, + "end": 4582, + "loc": { + "start": { + "line": 200, + "column": 16 + }, + "end": { + "line": 200, + "column": 70 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 4528, + "end": 4541, + "loc": { + "start": { + "line": 200, + "column": 16 + }, + "end": { + "line": 200, + "column": 29 + } + }, + "name": "Authorization" + }, + "value": { + "type": "TemplateLiteral", + "start": 4543, + "end": 4582, + "loc": { + "start": { + "line": 200, + "column": 31 + }, + "end": { + "line": 200, + "column": 70 + } + }, + "expressions": [ + { + "type": "CallExpression", + "start": 4553, + "end": 4580, + "loc": { + "start": { + "line": 200, + "column": 41 + }, + "end": { + "line": 200, + "column": 68 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4553, + "end": 4573, + "loc": { + "start": { + "line": 200, + "column": 41 + }, + "end": { + "line": 200, + "column": 61 + } + }, + "object": { + "type": "Identifier", + "start": 4553, + "end": 4565, + "loc": { + "start": { + "line": 200, + "column": 41 + }, + "end": { + "line": 200, + "column": 53 + } + }, + "name": "localStorage" + }, + "property": { + "type": "Identifier", + "start": 4566, + "end": 4573, + "loc": { + "start": { + "line": 200, + "column": 54 + }, + "end": { + "line": 200, + "column": 61 + } + }, + "name": "getItem" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 4574, + "end": 4579, + "loc": { + "start": { + "line": 200, + "column": 62 + }, + "end": { + "line": 200, + "column": 67 + } + }, + "value": "jwt", + "rawValue": "jwt", + "raw": "'jwt'" + } + ] + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 4544, + "end": 4551, + "loc": { + "start": { + "line": 200, + "column": 32 + }, + "end": { + "line": 200, + "column": 39 + } + }, + "value": { + "raw": "Bearer ", + "cooked": "Bearer " + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 4581, + "end": 4581, + "loc": { + "start": { + "line": 200, + "column": 69 + }, + "end": { + "line": 200, + "column": 69 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + }, + "kind": "init" + } + ] + }, + "kind": "init" + } + ] + } + ] + }, + "property": { + "type": "Identifier", + "start": 4618, + "end": 4622, + "loc": { + "start": { + "line": 203, + "column": 9 + }, + "end": { + "line": 203, + "column": 13 + } + }, + "name": "then" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 4623, + "end": 4696, + "loc": { + "start": { + "line": 203, + "column": 14 + }, + "end": { + "line": 205, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 4623, + "end": 4626, + "loc": { + "start": { + "line": 203, + "column": 14 + }, + "end": { + "line": 203, + "column": 17 + } + }, + "name": "res" + } + ], + "body": { + "type": "BlockStatement", + "start": 4630, + "end": 4696, + "loc": { + "start": { + "line": 203, + "column": 21 + }, + "end": { + "line": 205, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 4644, + "end": 4686, + "loc": { + "start": { + "line": 204, + "column": 12 + }, + "end": { + "line": 204, + "column": 54 + } + }, + "expression": { + "type": "CallExpression", + "start": 4644, + "end": 4686, + "loc": { + "start": { + "line": 204, + "column": 12 + }, + "end": { + "line": 204, + "column": 54 + } + }, + "callee": { + "type": "Identifier", + "start": 4644, + "end": 4652, + "loc": { + "start": { + "line": 204, + "column": 12 + }, + "end": { + "line": 204, + "column": 20 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 4653, + "end": 4685, + "loc": { + "start": { + "line": 204, + "column": 21 + }, + "end": { + "line": 204, + "column": 53 + } + }, + "callee": { + "type": "Identifier", + "start": 4653, + "end": 4675, + "loc": { + "start": { + "line": 204, + "column": 21 + }, + "end": { + "line": 204, + "column": 43 + } + }, + "name": "_searchResultsResponse" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 4676, + "end": 4684, + "loc": { + "start": { + "line": 204, + "column": 44 + }, + "end": { + "line": 204, + "column": 52 + } + }, + "object": { + "type": "Identifier", + "start": 4676, + "end": 4679, + "loc": { + "start": { + "line": 204, + "column": 44 + }, + "end": { + "line": 204, + "column": 47 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 4680, + "end": 4684, + "loc": { + "start": { + "line": 204, + "column": 48 + }, + "end": { + "line": 204, + "column": 52 + } + }, + "name": "data" + }, + "computed": false + } + ] + } + ] + } + } + ] + } + } + ] + } + } + ] + } + } + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * results\n * Gets uploads from API based on Algolia Search response\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param type {string}\n * @param query {string}\n * @returns {Function}\n ", + "start": 4062, + "end": 4285, + "loc": { + "start": { + "line": 186, + "column": 0 + }, + "end": { + "line": 194, + "column": 3 + } + }, + "range": [ + 4062, + 4285 + ] + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * results\n * Gets uploads from API based on Algolia Search response\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param type {string}\n * @param query {string}\n * @returns {Function}\n ", + "start": 4062, + "end": 4285, + "loc": { + "start": { + "line": 186, + "column": 0 + }, + "end": { + "line": 194, + "column": 3 + } + }, + "range": [ + 4062, + 4285 + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/actions/Stats.js.json b/app/docs/ast/source/actions/Stats.js.json new file mode 100644 index 0000000..e3911d3 --- /dev/null +++ b/app/docs/ast/source/actions/Stats.js.json @@ -0,0 +1,7101 @@ +{ + "type": "Program", + "start": 0, + "end": 4350, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 160, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 27, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 27 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 13, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 13 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 13, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 13 + } + }, + "name": "config" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 19, + "end": 27, + "loc": { + "start": { + "line": 1, + "column": 19 + }, + "end": { + "line": 1, + "column": 27 + } + }, + "value": "config", + "rawValue": "config", + "raw": "'config'" + } + }, + { + "type": "ImportDeclaration", + "start": 28, + "end": 58, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 30 + } + }, + "specifiers": [ + { + "type": "ImportNamespaceSpecifier", + "start": 35, + "end": 45, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 17 + } + }, + "local": { + "type": "Identifier", + "start": 40, + "end": 45, + "loc": { + "start": { + "line": 2, + "column": 12 + }, + "end": { + "line": 2, + "column": 17 + } + }, + "name": "axios" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 51, + "end": 58, + "loc": { + "start": { + "line": 2, + "column": 23 + }, + "end": { + "line": 2, + "column": 30 + } + }, + "value": "axios", + "rawValue": "axios", + "raw": "'axios'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * LOAD\n * @type {string}\n ", + "start": 60, + "end": 93, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + }, + "range": [ + 60, + 93 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 94, + "end": 126, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 32 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 101, + "end": 126, + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 32 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 107, + "end": 126, + "loc": { + "start": { + "line": 8, + "column": 13 + }, + "end": { + "line": 8, + "column": 32 + } + }, + "id": { + "type": "Identifier", + "start": 107, + "end": 111, + "loc": { + "start": { + "line": 8, + "column": 13 + }, + "end": { + "line": 8, + "column": 17 + } + }, + "name": "LOAD", + "leadingComments": null + }, + "init": { + "type": "Literal", + "start": 114, + "end": 126, + "loc": { + "start": { + "line": 8, + "column": 20 + }, + "end": { + "line": 8, + "column": 32 + } + }, + "value": "STATS_LOAD", + "rawValue": "STATS_LOAD", + "raw": "'STATS_LOAD'", + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * LOAD\n * @type {string}\n ", + "start": 60, + "end": 93, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + }, + "range": [ + 60, + 93 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _loadRequest\n * @param userId\n * @private\n ", + "start": 128, + "end": 180, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + }, + "range": [ + 128, + 180 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * LOAD\n * @type {string}\n ", + "start": 60, + "end": 93, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + }, + "range": [ + 60, + 93 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _loadRequest\n * @param userId\n * @private\n ", + "start": 128, + "end": 180, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + }, + "range": [ + 128, + 180 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 181, + "end": 246, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 15, + "column": 65 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 188, + "end": 246, + "loc": { + "start": { + "line": 15, + "column": 7 + }, + "end": { + "line": 15, + "column": 65 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 194, + "end": 246, + "loc": { + "start": { + "line": 15, + "column": 13 + }, + "end": { + "line": 15, + "column": 65 + } + }, + "id": { + "type": "Identifier", + "start": 194, + "end": 206, + "loc": { + "start": { + "line": 15, + "column": 13 + }, + "end": { + "line": 15, + "column": 25 + } + }, + "name": "_loadRequest", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 209, + "end": 246, + "loc": { + "start": { + "line": 15, + "column": 28 + }, + "end": { + "line": 15, + "column": 65 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 210, + "end": 216, + "loc": { + "start": { + "line": 15, + "column": 29 + }, + "end": { + "line": 15, + "column": 35 + } + }, + "name": "userId" + } + ], + "body": { + "type": "ObjectExpression", + "start": 222, + "end": 245, + "loc": { + "start": { + "line": 15, + "column": 41 + }, + "end": { + "line": 15, + "column": 64 + } + }, + "properties": [ + { + "type": "Property", + "start": 224, + "end": 234, + "loc": { + "start": { + "line": 15, + "column": 43 + }, + "end": { + "line": 15, + "column": 53 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 224, + "end": 228, + "loc": { + "start": { + "line": 15, + "column": 43 + }, + "end": { + "line": 15, + "column": 47 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 230, + "end": 234, + "loc": { + "start": { + "line": 15, + "column": 49 + }, + "end": { + "line": 15, + "column": 53 + } + }, + "name": "LOAD" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 236, + "end": 242, + "loc": { + "start": { + "line": 15, + "column": 55 + }, + "end": { + "line": 15, + "column": 61 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 236, + "end": 242, + "loc": { + "start": { + "line": 15, + "column": 55 + }, + "end": { + "line": 15, + "column": 61 + } + }, + "name": "userId" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 236, + "end": 242, + "loc": { + "start": { + "line": 15, + "column": 55 + }, + "end": { + "line": 15, + "column": 61 + } + }, + "name": "userId" + } + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _loadRequest\n * @param userId\n * @private\n ", + "start": 128, + "end": 180, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + }, + "range": [ + 128, + 180 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _loadResponse\n * @param userId\n * @param response\n * @private\n ", + "start": 248, + "end": 320, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 22, + "column": 3 + } + }, + "range": [ + 248, + 320 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _loadRequest\n * @param userId\n * @private\n ", + "start": 128, + "end": 180, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + }, + "range": [ + 128, + 180 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _loadResponse\n * @param userId\n * @param response\n * @private\n ", + "start": 248, + "end": 320, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 22, + "column": 3 + } + }, + "range": [ + 248, + 320 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 321, + "end": 407, + "loc": { + "start": { + "line": 23, + "column": 0 + }, + "end": { + "line": 23, + "column": 86 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 328, + "end": 407, + "loc": { + "start": { + "line": 23, + "column": 7 + }, + "end": { + "line": 23, + "column": 86 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 334, + "end": 407, + "loc": { + "start": { + "line": 23, + "column": 13 + }, + "end": { + "line": 23, + "column": 86 + } + }, + "id": { + "type": "Identifier", + "start": 334, + "end": 347, + "loc": { + "start": { + "line": 23, + "column": 13 + }, + "end": { + "line": 23, + "column": 26 + } + }, + "name": "_loadResponse", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 350, + "end": 407, + "loc": { + "start": { + "line": 23, + "column": 29 + }, + "end": { + "line": 23, + "column": 86 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 351, + "end": 357, + "loc": { + "start": { + "line": 23, + "column": 30 + }, + "end": { + "line": 23, + "column": 36 + } + }, + "name": "userId" + }, + { + "type": "Identifier", + "start": 359, + "end": 367, + "loc": { + "start": { + "line": 23, + "column": 38 + }, + "end": { + "line": 23, + "column": 46 + } + }, + "name": "response" + } + ], + "body": { + "type": "ObjectExpression", + "start": 373, + "end": 406, + "loc": { + "start": { + "line": 23, + "column": 52 + }, + "end": { + "line": 23, + "column": 85 + } + }, + "properties": [ + { + "type": "Property", + "start": 375, + "end": 385, + "loc": { + "start": { + "line": 23, + "column": 54 + }, + "end": { + "line": 23, + "column": 64 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 375, + "end": 379, + "loc": { + "start": { + "line": 23, + "column": 54 + }, + "end": { + "line": 23, + "column": 58 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 381, + "end": 385, + "loc": { + "start": { + "line": 23, + "column": 60 + }, + "end": { + "line": 23, + "column": 64 + } + }, + "name": "LOAD" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 387, + "end": 393, + "loc": { + "start": { + "line": 23, + "column": 66 + }, + "end": { + "line": 23, + "column": 72 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 387, + "end": 393, + "loc": { + "start": { + "line": 23, + "column": 66 + }, + "end": { + "line": 23, + "column": 72 + } + }, + "name": "userId" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 387, + "end": 393, + "loc": { + "start": { + "line": 23, + "column": 66 + }, + "end": { + "line": 23, + "column": 72 + } + }, + "name": "userId" + } + }, + { + "type": "Property", + "start": 395, + "end": 403, + "loc": { + "start": { + "line": 23, + "column": 74 + }, + "end": { + "line": 23, + "column": 82 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 395, + "end": 403, + "loc": { + "start": { + "line": 23, + "column": 74 + }, + "end": { + "line": 23, + "column": 82 + } + }, + "name": "response" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 395, + "end": 403, + "loc": { + "start": { + "line": 23, + "column": 74 + }, + "end": { + "line": 23, + "column": 82 + } + }, + "name": "response" + } + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _loadResponse\n * @param userId\n * @param response\n * @private\n ", + "start": 248, + "end": 320, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 22, + "column": 3 + } + }, + "range": [ + 248, + 320 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * load\n * Gets user stats from API, and performs Keen analytics functions\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param userId user id\n * @returns {Function}\n ", + "start": 409, + "end": 614, + "loc": { + "start": { + "line": 25, + "column": 0 + }, + "end": { + "line": 32, + "column": 3 + } + }, + "range": [ + 409, + 614 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _loadResponse\n * @param userId\n * @param response\n * @private\n ", + "start": 248, + "end": 320, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 22, + "column": 3 + } + }, + "range": [ + 248, + 320 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * load\n * Gets user stats from API, and performs Keen analytics functions\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param userId user id\n * @returns {Function}\n ", + "start": 409, + "end": 614, + "loc": { + "start": { + "line": 25, + "column": 0 + }, + "end": { + "line": 32, + "column": 3 + } + }, + "range": [ + 409, + 614 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 615, + "end": 4349, + "loc": { + "start": { + "line": 33, + "column": 0 + }, + "end": { + "line": 159, + "column": 1 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 622, + "end": 4349, + "loc": { + "start": { + "line": 33, + "column": 7 + }, + "end": { + "line": 159, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 631, + "end": 635, + "loc": { + "start": { + "line": 33, + "column": 16 + }, + "end": { + "line": 33, + "column": 20 + } + }, + "name": "load", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 636, + "end": 642, + "loc": { + "start": { + "line": 33, + "column": 21 + }, + "end": { + "line": 33, + "column": 27 + } + }, + "name": "userId" + } + ], + "body": { + "type": "BlockStatement", + "start": 644, + "end": 4349, + "loc": { + "start": { + "line": 33, + "column": 29 + }, + "end": { + "line": 159, + "column": 1 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 650, + "end": 4347, + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 158, + "column": 5 + } + }, + "argument": { + "type": "ArrowFunctionExpression", + "start": 657, + "end": 4347, + "loc": { + "start": { + "line": 34, + "column": 11 + }, + "end": { + "line": 158, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 658, + "end": 666, + "loc": { + "start": { + "line": 34, + "column": 12 + }, + "end": { + "line": 34, + "column": 20 + } + }, + "name": "dispatch" + }, + { + "type": "Identifier", + "start": 668, + "end": 676, + "loc": { + "start": { + "line": 34, + "column": 22 + }, + "end": { + "line": 34, + "column": 30 + } + }, + "name": "getState" + } + ], + "body": { + "type": "BlockStatement", + "start": 681, + "end": 4347, + "loc": { + "start": { + "line": 34, + "column": 35 + }, + "end": { + "line": 158, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 692, + "end": 722, + "loc": { + "start": { + "line": 36, + "column": 8 + }, + "end": { + "line": 36, + "column": 38 + } + }, + "expression": { + "type": "CallExpression", + "start": 692, + "end": 722, + "loc": { + "start": { + "line": 36, + "column": 8 + }, + "end": { + "line": 36, + "column": 38 + } + }, + "callee": { + "type": "Identifier", + "start": 692, + "end": 700, + "loc": { + "start": { + "line": 36, + "column": 8 + }, + "end": { + "line": 36, + "column": 16 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 701, + "end": 721, + "loc": { + "start": { + "line": 36, + "column": 17 + }, + "end": { + "line": 36, + "column": 37 + } + }, + "callee": { + "type": "Identifier", + "start": 701, + "end": 713, + "loc": { + "start": { + "line": 36, + "column": 17 + }, + "end": { + "line": 36, + "column": 29 + } + }, + "name": "_loadRequest" + }, + "arguments": [ + { + "type": "Identifier", + "start": 714, + "end": 720, + "loc": { + "start": { + "line": 36, + "column": 30 + }, + "end": { + "line": 36, + "column": 36 + } + }, + "name": "userId" + } + ] + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 732, + "end": 992, + "loc": { + "start": { + "line": 38, + "column": 8 + }, + "end": { + "line": 45, + "column": 10 + } + }, + "expression": { + "type": "CallExpression", + "start": 732, + "end": 992, + "loc": { + "start": { + "line": 38, + "column": 8 + }, + "end": { + "line": 45, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 732, + "end": 918, + "loc": { + "start": { + "line": 38, + "column": 8 + }, + "end": { + "line": 43, + "column": 13 + } + }, + "object": { + "type": "CallExpression", + "start": 732, + "end": 904, + "loc": { + "start": { + "line": 38, + "column": 8 + }, + "end": { + "line": 42, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 732, + "end": 741, + "loc": { + "start": { + "line": 38, + "column": 8 + }, + "end": { + "line": 38, + "column": 17 + } + }, + "object": { + "type": "Identifier", + "start": 732, + "end": 737, + "loc": { + "start": { + "line": 38, + "column": 8 + }, + "end": { + "line": 38, + "column": 13 + } + }, + "name": "axios" + }, + "property": { + "type": "Identifier", + "start": 738, + "end": 741, + "loc": { + "start": { + "line": 38, + "column": 14 + }, + "end": { + "line": 38, + "column": 17 + } + }, + "name": "get" + }, + "computed": false + }, + "arguments": [ + { + "type": "TemplateLiteral", + "start": 742, + "end": 781, + "loc": { + "start": { + "line": 38, + "column": 18 + }, + "end": { + "line": 38, + "column": 57 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 745, + "end": 763, + "loc": { + "start": { + "line": 38, + "column": 21 + }, + "end": { + "line": 38, + "column": 39 + } + }, + "object": { + "type": "MemberExpression", + "start": 745, + "end": 755, + "loc": { + "start": { + "line": 38, + "column": 21 + }, + "end": { + "line": 38, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 745, + "end": 751, + "loc": { + "start": { + "line": 38, + "column": 21 + }, + "end": { + "line": 38, + "column": 27 + } + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 752, + "end": 755, + "loc": { + "start": { + "line": 38, + "column": 28 + }, + "end": { + "line": 38, + "column": 31 + } + }, + "name": "api" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 756, + "end": 763, + "loc": { + "start": { + "line": 38, + "column": 32 + }, + "end": { + "line": 38, + "column": 39 + } + }, + "name": "baseUrl" + }, + "computed": false + }, + { + "type": "Identifier", + "start": 773, + "end": 779, + "loc": { + "start": { + "line": 38, + "column": 49 + }, + "end": { + "line": 38, + "column": 55 + } + }, + "name": "userId" + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 743, + "end": 743, + "loc": { + "start": { + "line": 38, + "column": 19 + }, + "end": { + "line": 38, + "column": 19 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 764, + "end": 771, + "loc": { + "start": { + "line": 38, + "column": 40 + }, + "end": { + "line": 38, + "column": 47 + } + }, + "value": { + "raw": "/stats/", + "cooked": "/stats/" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 780, + "end": 780, + "loc": { + "start": { + "line": 38, + "column": 56 + }, + "end": { + "line": 38, + "column": 56 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + }, + { + "type": "ObjectExpression", + "start": 783, + "end": 903, + "loc": { + "start": { + "line": 38, + "column": 59 + }, + "end": { + "line": 42, + "column": 9 + } + }, + "properties": [ + { + "type": "Property", + "start": 797, + "end": 892, + "loc": { + "start": { + "line": 39, + "column": 12 + }, + "end": { + "line": 41, + "column": 13 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 797, + "end": 804, + "loc": { + "start": { + "line": 39, + "column": 12 + }, + "end": { + "line": 39, + "column": 19 + } + }, + "name": "headers" + }, + "value": { + "type": "ObjectExpression", + "start": 806, + "end": 892, + "loc": { + "start": { + "line": 39, + "column": 21 + }, + "end": { + "line": 41, + "column": 13 + } + }, + "properties": [ + { + "type": "Property", + "start": 824, + "end": 878, + "loc": { + "start": { + "line": 40, + "column": 16 + }, + "end": { + "line": 40, + "column": 70 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 824, + "end": 837, + "loc": { + "start": { + "line": 40, + "column": 16 + }, + "end": { + "line": 40, + "column": 29 + } + }, + "name": "Authorization" + }, + "value": { + "type": "TemplateLiteral", + "start": 839, + "end": 878, + "loc": { + "start": { + "line": 40, + "column": 31 + }, + "end": { + "line": 40, + "column": 70 + } + }, + "expressions": [ + { + "type": "CallExpression", + "start": 849, + "end": 876, + "loc": { + "start": { + "line": 40, + "column": 41 + }, + "end": { + "line": 40, + "column": 68 + } + }, + "callee": { + "type": "MemberExpression", + "start": 849, + "end": 869, + "loc": { + "start": { + "line": 40, + "column": 41 + }, + "end": { + "line": 40, + "column": 61 + } + }, + "object": { + "type": "Identifier", + "start": 849, + "end": 861, + "loc": { + "start": { + "line": 40, + "column": 41 + }, + "end": { + "line": 40, + "column": 53 + } + }, + "name": "localStorage" + }, + "property": { + "type": "Identifier", + "start": 862, + "end": 869, + "loc": { + "start": { + "line": 40, + "column": 54 + }, + "end": { + "line": 40, + "column": 61 + } + }, + "name": "getItem" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 870, + "end": 875, + "loc": { + "start": { + "line": 40, + "column": 62 + }, + "end": { + "line": 40, + "column": 67 + } + }, + "value": "jwt", + "rawValue": "jwt", + "raw": "'jwt'" + } + ] + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 840, + "end": 847, + "loc": { + "start": { + "line": 40, + "column": 32 + }, + "end": { + "line": 40, + "column": 39 + } + }, + "value": { + "raw": "Bearer ", + "cooked": "Bearer " + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 877, + "end": 877, + "loc": { + "start": { + "line": 40, + "column": 69 + }, + "end": { + "line": 40, + "column": 69 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + }, + "kind": "init" + } + ] + }, + "kind": "init" + } + ] + } + ] + }, + "property": { + "type": "Identifier", + "start": 914, + "end": 918, + "loc": { + "start": { + "line": 43, + "column": 9 + }, + "end": { + "line": 43, + "column": 13 + } + }, + "name": "then" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 919, + "end": 991, + "loc": { + "start": { + "line": 43, + "column": 14 + }, + "end": { + "line": 45, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 919, + "end": 922, + "loc": { + "start": { + "line": 43, + "column": 14 + }, + "end": { + "line": 43, + "column": 17 + } + }, + "name": "res" + } + ], + "body": { + "type": "BlockStatement", + "start": 926, + "end": 991, + "loc": { + "start": { + "line": 43, + "column": 21 + }, + "end": { + "line": 45, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 940, + "end": 981, + "loc": { + "start": { + "line": 44, + "column": 12 + }, + "end": { + "line": 44, + "column": 53 + } + }, + "expression": { + "type": "CallExpression", + "start": 940, + "end": 981, + "loc": { + "start": { + "line": 44, + "column": 12 + }, + "end": { + "line": 44, + "column": 53 + } + }, + "callee": { + "type": "Identifier", + "start": 940, + "end": 948, + "loc": { + "start": { + "line": 44, + "column": 12 + }, + "end": { + "line": 44, + "column": 20 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 949, + "end": 980, + "loc": { + "start": { + "line": 44, + "column": 21 + }, + "end": { + "line": 44, + "column": 52 + } + }, + "callee": { + "type": "Identifier", + "start": 949, + "end": 962, + "loc": { + "start": { + "line": 44, + "column": 21 + }, + "end": { + "line": 44, + "column": 34 + } + }, + "name": "_loadResponse" + }, + "arguments": [ + { + "type": "Identifier", + "start": 963, + "end": 969, + "loc": { + "start": { + "line": 44, + "column": 35 + }, + "end": { + "line": 44, + "column": 41 + } + }, + "name": "userId" + }, + { + "type": "MemberExpression", + "start": 971, + "end": 979, + "loc": { + "start": { + "line": 44, + "column": 43 + }, + "end": { + "line": 44, + "column": 51 + } + }, + "object": { + "type": "Identifier", + "start": 971, + "end": 974, + "loc": { + "start": { + "line": 44, + "column": 43 + }, + "end": { + "line": 44, + "column": 46 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 975, + "end": 979, + "loc": { + "start": { + "line": 44, + "column": 47 + }, + "end": { + "line": 44, + "column": 51 + } + }, + "name": "data" + }, + "computed": false + } + ] + } + ] + } + } + ] + } + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 1002, + "end": 4341, + "loc": { + "start": { + "line": 47, + "column": 8 + }, + "end": { + "line": 157, + "column": 10 + } + }, + "expression": { + "type": "CallExpression", + "start": 1002, + "end": 4341, + "loc": { + "start": { + "line": 47, + "column": 8 + }, + "end": { + "line": 157, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1002, + "end": 1012, + "loc": { + "start": { + "line": 47, + "column": 8 + }, + "end": { + "line": 47, + "column": 18 + } + }, + "object": { + "type": "Identifier", + "start": 1002, + "end": 1006, + "loc": { + "start": { + "line": 47, + "column": 8 + }, + "end": { + "line": 47, + "column": 12 + } + }, + "name": "Keen" + }, + "property": { + "type": "Identifier", + "start": 1007, + "end": 1012, + "loc": { + "start": { + "line": 47, + "column": 13 + }, + "end": { + "line": 47, + "column": 18 + } + }, + "name": "ready" + }, + "computed": false + }, + "arguments": [ + { + "type": "FunctionExpression", + "start": 1013, + "end": 4340, + "loc": { + "start": { + "line": 47, + "column": 19 + }, + "end": { + "line": 157, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 1024, + "end": 4340, + "loc": { + "start": { + "line": 47, + "column": 30 + }, + "end": { + "line": 157, + "column": 9 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 1039, + "end": 1518, + "loc": { + "start": { + "line": 49, + "column": 12 + }, + "end": { + "line": 61, + "column": 14 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1043, + "end": 1518, + "loc": { + "start": { + "line": 49, + "column": 16 + }, + "end": { + "line": 61, + "column": 14 + } + }, + "id": { + "type": "Identifier", + "start": 1043, + "end": 1057, + "loc": { + "start": { + "line": 49, + "column": 16 + }, + "end": { + "line": 49, + "column": 30 + } + }, + "name": "itemViewsQuery" + }, + "init": { + "type": "NewExpression", + "start": 1060, + "end": 1518, + "loc": { + "start": { + "line": 49, + "column": 33 + }, + "end": { + "line": 61, + "column": 14 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1064, + "end": 1074, + "loc": { + "start": { + "line": 49, + "column": 37 + }, + "end": { + "line": 49, + "column": 47 + } + }, + "object": { + "type": "Identifier", + "start": 1064, + "end": 1068, + "loc": { + "start": { + "line": 49, + "column": 37 + }, + "end": { + "line": 49, + "column": 41 + } + }, + "name": "Keen" + }, + "property": { + "type": "Identifier", + "start": 1069, + "end": 1074, + "loc": { + "start": { + "line": 49, + "column": 42 + }, + "end": { + "line": 49, + "column": 47 + } + }, + "name": "Query" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 1075, + "end": 1082, + "loc": { + "start": { + "line": 49, + "column": 48 + }, + "end": { + "line": 49, + "column": 55 + } + }, + "value": "count", + "rawValue": "count", + "raw": "\"count\"" + }, + { + "type": "ObjectExpression", + "start": 1084, + "end": 1517, + "loc": { + "start": { + "line": 49, + "column": 57 + }, + "end": { + "line": 61, + "column": 13 + } + }, + "properties": [ + { + "type": "Property", + "start": 1102, + "end": 1127, + "loc": { + "start": { + "line": 50, + "column": 16 + }, + "end": { + "line": 50, + "column": 41 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1102, + "end": 1118, + "loc": { + "start": { + "line": 50, + "column": 16 + }, + "end": { + "line": 50, + "column": 32 + } + }, + "name": "event_collection" + }, + "value": { + "type": "Literal", + "start": 1120, + "end": 1127, + "loc": { + "start": { + "line": 50, + "column": 34 + }, + "end": { + "line": 50, + "column": 41 + } + }, + "value": "views", + "rawValue": "views", + "raw": "'views'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1145, + "end": 1170, + "loc": { + "start": { + "line": 51, + "column": 16 + }, + "end": { + "line": 51, + "column": 41 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1145, + "end": 1154, + "loc": { + "start": { + "line": 51, + "column": 16 + }, + "end": { + "line": 51, + "column": 25 + } + }, + "name": "timeframe" + }, + "value": { + "type": "Literal", + "start": 1156, + "end": 1170, + "loc": { + "start": { + "line": 51, + "column": 27 + }, + "end": { + "line": 51, + "column": 41 + } + }, + "value": "this_30_days", + "rawValue": "this_30_days", + "raw": "'this_30_days'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1188, + "end": 1503, + "loc": { + "start": { + "line": 52, + "column": 16 + }, + "end": { + "line": 60, + "column": 18 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1188, + "end": 1195, + "loc": { + "start": { + "line": 52, + "column": 16 + }, + "end": { + "line": 52, + "column": 23 + } + }, + "name": "filters" + }, + "value": { + "type": "ArrayExpression", + "start": 1197, + "end": 1503, + "loc": { + "start": { + "line": 52, + "column": 25 + }, + "end": { + "line": 60, + "column": 18 + } + }, + "elements": [ + { + "type": "ObjectExpression", + "start": 1198, + "end": 1353, + "loc": { + "start": { + "line": 52, + "column": 26 + }, + "end": { + "line": 56, + "column": 17 + } + }, + "properties": [ + { + "type": "Property", + "start": 1220, + "end": 1251, + "loc": { + "start": { + "line": 53, + "column": 20 + }, + "end": { + "line": 53, + "column": 51 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Literal", + "start": 1220, + "end": 1235, + "loc": { + "start": { + "line": 53, + "column": 20 + }, + "end": { + "line": 53, + "column": 35 + } + }, + "value": "property_name", + "rawValue": "property_name", + "raw": "\"property_name\"" + }, + "value": { + "type": "Literal", + "start": 1237, + "end": 1251, + "loc": { + "start": { + "line": 53, + "column": 37 + }, + "end": { + "line": 53, + "column": 51 + } + }, + "value": "postAuthorId", + "rawValue": "postAuthorId", + "raw": "'postAuthorId'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1273, + "end": 1289, + "loc": { + "start": { + "line": 54, + "column": 20 + }, + "end": { + "line": 54, + "column": 36 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Literal", + "start": 1273, + "end": 1283, + "loc": { + "start": { + "line": 54, + "column": 20 + }, + "end": { + "line": 54, + "column": 30 + } + }, + "value": "operator", + "rawValue": "operator", + "raw": "\"operator\"" + }, + "value": { + "type": "Literal", + "start": 1285, + "end": 1289, + "loc": { + "start": { + "line": 54, + "column": 32 + }, + "end": { + "line": 54, + "column": 36 + } + }, + "value": "eq", + "rawValue": "eq", + "raw": "'eq'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1311, + "end": 1335, + "loc": { + "start": { + "line": 55, + "column": 20 + }, + "end": { + "line": 55, + "column": 44 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Literal", + "start": 1311, + "end": 1327, + "loc": { + "start": { + "line": 55, + "column": 20 + }, + "end": { + "line": 55, + "column": 36 + } + }, + "value": "property_value", + "rawValue": "property_value", + "raw": "\"property_value\"" + }, + "value": { + "type": "Identifier", + "start": 1329, + "end": 1335, + "loc": { + "start": { + "line": 55, + "column": 38 + }, + "end": { + "line": 55, + "column": 44 + } + }, + "name": "userId" + }, + "kind": "init" + } + ] + }, + { + "type": "ObjectExpression", + "start": 1355, + "end": 1502, + "loc": { + "start": { + "line": 56, + "column": 19 + }, + "end": { + "line": 60, + "column": 17 + } + }, + "properties": [ + { + "type": "Property", + "start": 1377, + "end": 1400, + "loc": { + "start": { + "line": 57, + "column": 20 + }, + "end": { + "line": 57, + "column": 43 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Literal", + "start": 1377, + "end": 1392, + "loc": { + "start": { + "line": 57, + "column": 20 + }, + "end": { + "line": 57, + "column": 35 + } + }, + "value": "property_name", + "rawValue": "property_name", + "raw": "\"property_name\"" + }, + "value": { + "type": "Literal", + "start": 1394, + "end": 1400, + "loc": { + "start": { + "line": 57, + "column": 37 + }, + "end": { + "line": 57, + "column": 43 + } + }, + "value": "type", + "rawValue": "type", + "raw": "'type'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1422, + "end": 1438, + "loc": { + "start": { + "line": 58, + "column": 20 + }, + "end": { + "line": 58, + "column": 36 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Literal", + "start": 1422, + "end": 1432, + "loc": { + "start": { + "line": 58, + "column": 20 + }, + "end": { + "line": 58, + "column": 30 + } + }, + "value": "operator", + "rawValue": "operator", + "raw": "\"operator\"" + }, + "value": { + "type": "Literal", + "start": 1434, + "end": 1438, + "loc": { + "start": { + "line": 58, + "column": 32 + }, + "end": { + "line": 58, + "column": 36 + } + }, + "value": "eq", + "rawValue": "eq", + "raw": "'eq'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1460, + "end": 1484, + "loc": { + "start": { + "line": 59, + "column": 20 + }, + "end": { + "line": 59, + "column": 44 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Literal", + "start": 1460, + "end": 1476, + "loc": { + "start": { + "line": 59, + "column": 20 + }, + "end": { + "line": 59, + "column": 36 + } + }, + "value": "property_value", + "rawValue": "property_value", + "raw": "\"property_value\"" + }, + "value": { + "type": "Literal", + "start": 1478, + "end": 1484, + "loc": { + "start": { + "line": 59, + "column": 38 + }, + "end": { + "line": 59, + "column": 44 + } + }, + "value": "item", + "rawValue": "item", + "raw": "'item'" + }, + "kind": "init" + } + ] + } + ] + }, + "kind": "init" + } + ] + } + ] + } + } + ], + "kind": "let" + }, + { + "type": "ExpressionStatement", + "start": 1532, + "end": 1823, + "loc": { + "start": { + "line": 63, + "column": 12 + }, + "end": { + "line": 74, + "column": 14 + } + }, + "expression": { + "type": "CallExpression", + "start": 1532, + "end": 1823, + "loc": { + "start": { + "line": 63, + "column": 12 + }, + "end": { + "line": 74, + "column": 14 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1532, + "end": 1546, + "loc": { + "start": { + "line": 63, + "column": 12 + }, + "end": { + "line": 63, + "column": 26 + } + }, + "object": { + "type": "Identifier", + "start": 1532, + "end": 1542, + "loc": { + "start": { + "line": 63, + "column": 12 + }, + "end": { + "line": 63, + "column": 22 + } + }, + "name": "keenClient" + }, + "property": { + "type": "Identifier", + "start": 1543, + "end": 1546, + "loc": { + "start": { + "line": 63, + "column": 23 + }, + "end": { + "line": 63, + "column": 26 + } + }, + "name": "run" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 1547, + "end": 1561, + "loc": { + "start": { + "line": 63, + "column": 27 + }, + "end": { + "line": 63, + "column": 41 + } + }, + "name": "itemViewsQuery" + }, + { + "type": "FunctionExpression", + "start": 1563, + "end": 1822, + "loc": { + "start": { + "line": 63, + "column": 43 + }, + "end": { + "line": 74, + "column": 13 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1572, + "end": 1575, + "loc": { + "start": { + "line": 63, + "column": 52 + }, + "end": { + "line": 63, + "column": 55 + } + }, + "name": "err" + }, + { + "type": "Identifier", + "start": 1577, + "end": 1580, + "loc": { + "start": { + "line": 63, + "column": 57 + }, + "end": { + "line": 63, + "column": 60 + } + }, + "name": "res" + } + ], + "body": { + "type": "BlockStatement", + "start": 1582, + "end": 1822, + "loc": { + "start": { + "line": 63, + "column": 62 + }, + "end": { + "line": 74, + "column": 13 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 1601, + "end": 1693, + "loc": { + "start": { + "line": 65, + "column": 16 + }, + "end": { + "line": 68, + "column": 17 + } + }, + "test": { + "type": "Identifier", + "start": 1605, + "end": 1608, + "loc": { + "start": { + "line": 65, + "column": 20 + }, + "end": { + "line": 65, + "column": 23 + } + }, + "name": "err" + }, + "consequent": { + "type": "BlockStatement", + "start": 1610, + "end": 1693, + "loc": { + "start": { + "line": 65, + "column": 25 + }, + "end": { + "line": 68, + "column": 17 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1632, + "end": 1648, + "loc": { + "start": { + "line": 66, + "column": 20 + }, + "end": { + "line": 66, + "column": 36 + } + }, + "expression": { + "type": "CallExpression", + "start": 1632, + "end": 1648, + "loc": { + "start": { + "line": 66, + "column": 20 + }, + "end": { + "line": 66, + "column": 36 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1632, + "end": 1643, + "loc": { + "start": { + "line": 66, + "column": 20 + }, + "end": { + "line": 66, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 1632, + "end": 1639, + "loc": { + "start": { + "line": 66, + "column": 20 + }, + "end": { + "line": 66, + "column": 27 + } + }, + "name": "console" + }, + "property": { + "type": "Identifier", + "start": 1640, + "end": 1643, + "loc": { + "start": { + "line": 66, + "column": 28 + }, + "end": { + "line": 66, + "column": 31 + } + }, + "name": "log" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 1644, + "end": 1647, + "loc": { + "start": { + "line": 66, + "column": 32 + }, + "end": { + "line": 66, + "column": 35 + } + }, + "name": "err" + } + ] + } + }, + { + "type": "ReturnStatement", + "start": 1669, + "end": 1675, + "loc": { + "start": { + "line": 67, + "column": 20 + }, + "end": { + "line": 67, + "column": 26 + } + }, + "argument": null + } + ] + }, + "alternate": null + }, + { + "type": "ExpressionStatement", + "start": 1711, + "end": 1807, + "loc": { + "start": { + "line": 70, + "column": 16 + }, + "end": { + "line": 72, + "column": 19 + } + }, + "expression": { + "type": "CallExpression", + "start": 1711, + "end": 1807, + "loc": { + "start": { + "line": 70, + "column": 16 + }, + "end": { + "line": 72, + "column": 19 + } + }, + "callee": { + "type": "Identifier", + "start": 1711, + "end": 1719, + "loc": { + "start": { + "line": 70, + "column": 16 + }, + "end": { + "line": 70, + "column": 24 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1720, + "end": 1806, + "loc": { + "start": { + "line": 70, + "column": 25 + }, + "end": { + "line": 72, + "column": 18 + } + }, + "callee": { + "type": "Identifier", + "start": 1720, + "end": 1733, + "loc": { + "start": { + "line": 70, + "column": 25 + }, + "end": { + "line": 70, + "column": 38 + } + }, + "name": "_loadResponse" + }, + "arguments": [ + { + "type": "Identifier", + "start": 1734, + "end": 1740, + "loc": { + "start": { + "line": 70, + "column": 39 + }, + "end": { + "line": 70, + "column": 45 + } + }, + "name": "userId" + }, + { + "type": "ObjectExpression", + "start": 1742, + "end": 1805, + "loc": { + "start": { + "line": 70, + "column": 47 + }, + "end": { + "line": 72, + "column": 17 + } + }, + "properties": [ + { + "type": "Property", + "start": 1764, + "end": 1787, + "loc": { + "start": { + "line": 71, + "column": 20 + }, + "end": { + "line": 71, + "column": 43 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Literal", + "start": 1764, + "end": 1775, + "loc": { + "start": { + "line": 71, + "column": 20 + }, + "end": { + "line": 71, + "column": 31 + } + }, + "value": "itemViews", + "rawValue": "itemViews", + "raw": "'itemViews'" + }, + "value": { + "type": "MemberExpression", + "start": 1777, + "end": 1787, + "loc": { + "start": { + "line": 71, + "column": 33 + }, + "end": { + "line": 71, + "column": 43 + } + }, + "object": { + "type": "Identifier", + "start": 1777, + "end": 1780, + "loc": { + "start": { + "line": 71, + "column": 33 + }, + "end": { + "line": 71, + "column": 36 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 1781, + "end": 1787, + "loc": { + "start": { + "line": 71, + "column": 37 + }, + "end": { + "line": 71, + "column": 43 + } + }, + "name": "result" + }, + "computed": false + }, + "kind": "init" + } + ] + } + ] + } + ] + } + } + ] + } + } + ] + } + }, + { + "type": "VariableDeclaration", + "start": 1837, + "end": 2306, + "loc": { + "start": { + "line": 76, + "column": 12 + }, + "end": { + "line": 88, + "column": 14 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1841, + "end": 2306, + "loc": { + "start": { + "line": 76, + "column": 16 + }, + "end": { + "line": 88, + "column": 14 + } + }, + "id": { + "type": "Identifier", + "start": 1841, + "end": 1858, + "loc": { + "start": { + "line": 76, + "column": 16 + }, + "end": { + "line": 76, + "column": 33 + } + }, + "name": "profileViewsQuery" + }, + "init": { + "type": "NewExpression", + "start": 1861, + "end": 2306, + "loc": { + "start": { + "line": 76, + "column": 36 + }, + "end": { + "line": 88, + "column": 14 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1865, + "end": 1875, + "loc": { + "start": { + "line": 76, + "column": 40 + }, + "end": { + "line": 76, + "column": 50 + } + }, + "object": { + "type": "Identifier", + "start": 1865, + "end": 1869, + "loc": { + "start": { + "line": 76, + "column": 40 + }, + "end": { + "line": 76, + "column": 44 + } + }, + "name": "Keen" + }, + "property": { + "type": "Identifier", + "start": 1870, + "end": 1875, + "loc": { + "start": { + "line": 76, + "column": 45 + }, + "end": { + "line": 76, + "column": 50 + } + }, + "name": "Query" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 1876, + "end": 1883, + "loc": { + "start": { + "line": 76, + "column": 51 + }, + "end": { + "line": 76, + "column": 58 + } + }, + "value": "count", + "rawValue": "count", + "raw": "\"count\"" + }, + { + "type": "ObjectExpression", + "start": 1885, + "end": 2305, + "loc": { + "start": { + "line": 76, + "column": 60 + }, + "end": { + "line": 88, + "column": 13 + } + }, + "properties": [ + { + "type": "Property", + "start": 1903, + "end": 1928, + "loc": { + "start": { + "line": 77, + "column": 16 + }, + "end": { + "line": 77, + "column": 41 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1903, + "end": 1919, + "loc": { + "start": { + "line": 77, + "column": 16 + }, + "end": { + "line": 77, + "column": 32 + } + }, + "name": "event_collection" + }, + "value": { + "type": "Literal", + "start": 1921, + "end": 1928, + "loc": { + "start": { + "line": 77, + "column": 34 + }, + "end": { + "line": 77, + "column": 41 + } + }, + "value": "views", + "rawValue": "views", + "raw": "'views'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1946, + "end": 1971, + "loc": { + "start": { + "line": 78, + "column": 16 + }, + "end": { + "line": 78, + "column": 41 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1946, + "end": 1955, + "loc": { + "start": { + "line": 78, + "column": 16 + }, + "end": { + "line": 78, + "column": 25 + } + }, + "name": "timeframe" + }, + "value": { + "type": "Literal", + "start": 1957, + "end": 1971, + "loc": { + "start": { + "line": 78, + "column": 27 + }, + "end": { + "line": 78, + "column": 41 + } + }, + "value": "this_30_days", + "rawValue": "this_30_days", + "raw": "'this_30_days'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1989, + "end": 2291, + "loc": { + "start": { + "line": 79, + "column": 16 + }, + "end": { + "line": 87, + "column": 18 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1989, + "end": 1996, + "loc": { + "start": { + "line": 79, + "column": 16 + }, + "end": { + "line": 79, + "column": 23 + } + }, + "name": "filters" + }, + "value": { + "type": "ArrayExpression", + "start": 1998, + "end": 2291, + "loc": { + "start": { + "line": 79, + "column": 25 + }, + "end": { + "line": 87, + "column": 18 + } + }, + "elements": [ + { + "type": "ObjectExpression", + "start": 1999, + "end": 2147, + "loc": { + "start": { + "line": 79, + "column": 26 + }, + "end": { + "line": 83, + "column": 17 + } + }, + "properties": [ + { + "type": "Property", + "start": 2021, + "end": 2049, + "loc": { + "start": { + "line": 80, + "column": 20 + }, + "end": { + "line": 80, + "column": 48 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2021, + "end": 2034, + "loc": { + "start": { + "line": 80, + "column": 20 + }, + "end": { + "line": 80, + "column": 33 + } + }, + "name": "property_name" + }, + "value": { + "type": "Literal", + "start": 2036, + "end": 2049, + "loc": { + "start": { + "line": 80, + "column": 35 + }, + "end": { + "line": 80, + "column": 48 + } + }, + "value": "profileUser", + "rawValue": "profileUser", + "raw": "'profileUser'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 2071, + "end": 2085, + "loc": { + "start": { + "line": 81, + "column": 20 + }, + "end": { + "line": 81, + "column": 34 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2071, + "end": 2079, + "loc": { + "start": { + "line": 81, + "column": 20 + }, + "end": { + "line": 81, + "column": 28 + } + }, + "name": "operator" + }, + "value": { + "type": "Literal", + "start": 2081, + "end": 2085, + "loc": { + "start": { + "line": 81, + "column": 30 + }, + "end": { + "line": 81, + "column": 34 + } + }, + "value": "eq", + "rawValue": "eq", + "raw": "'eq'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 2107, + "end": 2129, + "loc": { + "start": { + "line": 82, + "column": 20 + }, + "end": { + "line": 82, + "column": 42 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2107, + "end": 2121, + "loc": { + "start": { + "line": 82, + "column": 20 + }, + "end": { + "line": 82, + "column": 34 + } + }, + "name": "property_value" + }, + "value": { + "type": "Identifier", + "start": 2123, + "end": 2129, + "loc": { + "start": { + "line": 82, + "column": 36 + }, + "end": { + "line": 82, + "column": 42 + } + }, + "name": "userId" + }, + "kind": "init" + } + ] + }, + { + "type": "ObjectExpression", + "start": 2149, + "end": 2290, + "loc": { + "start": { + "line": 83, + "column": 19 + }, + "end": { + "line": 87, + "column": 17 + } + }, + "properties": [ + { + "type": "Property", + "start": 2171, + "end": 2192, + "loc": { + "start": { + "line": 84, + "column": 20 + }, + "end": { + "line": 84, + "column": 41 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2171, + "end": 2184, + "loc": { + "start": { + "line": 84, + "column": 20 + }, + "end": { + "line": 84, + "column": 33 + } + }, + "name": "property_name" + }, + "value": { + "type": "Literal", + "start": 2186, + "end": 2192, + "loc": { + "start": { + "line": 84, + "column": 35 + }, + "end": { + "line": 84, + "column": 41 + } + }, + "value": "type", + "rawValue": "type", + "raw": "'type'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 2214, + "end": 2228, + "loc": { + "start": { + "line": 85, + "column": 20 + }, + "end": { + "line": 85, + "column": 34 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2214, + "end": 2222, + "loc": { + "start": { + "line": 85, + "column": 20 + }, + "end": { + "line": 85, + "column": 28 + } + }, + "name": "operator" + }, + "value": { + "type": "Literal", + "start": 2224, + "end": 2228, + "loc": { + "start": { + "line": 85, + "column": 30 + }, + "end": { + "line": 85, + "column": 34 + } + }, + "value": "eq", + "rawValue": "eq", + "raw": "'eq'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 2250, + "end": 2272, + "loc": { + "start": { + "line": 86, + "column": 20 + }, + "end": { + "line": 86, + "column": 42 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2250, + "end": 2264, + "loc": { + "start": { + "line": 86, + "column": 20 + }, + "end": { + "line": 86, + "column": 34 + } + }, + "name": "property_value" + }, + "value": { + "type": "Literal", + "start": 2266, + "end": 2272, + "loc": { + "start": { + "line": 86, + "column": 36 + }, + "end": { + "line": 86, + "column": 42 + } + }, + "value": "user", + "rawValue": "user", + "raw": "'user'" + }, + "kind": "init" + } + ] + } + ] + }, + "kind": "init" + } + ] + } + ] + } + } + ], + "kind": "let" + }, + { + "type": "ExpressionStatement", + "start": 2320, + "end": 2615, + "loc": { + "start": { + "line": 90, + "column": 12 + }, + "end": { + "line": 101, + "column": 14 + } + }, + "expression": { + "type": "CallExpression", + "start": 2320, + "end": 2615, + "loc": { + "start": { + "line": 90, + "column": 12 + }, + "end": { + "line": 101, + "column": 14 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2320, + "end": 2334, + "loc": { + "start": { + "line": 90, + "column": 12 + }, + "end": { + "line": 90, + "column": 26 + } + }, + "object": { + "type": "Identifier", + "start": 2320, + "end": 2330, + "loc": { + "start": { + "line": 90, + "column": 12 + }, + "end": { + "line": 90, + "column": 22 + } + }, + "name": "keenClient" + }, + "property": { + "type": "Identifier", + "start": 2331, + "end": 2334, + "loc": { + "start": { + "line": 90, + "column": 23 + }, + "end": { + "line": 90, + "column": 26 + } + }, + "name": "run" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 2335, + "end": 2352, + "loc": { + "start": { + "line": 90, + "column": 27 + }, + "end": { + "line": 90, + "column": 44 + } + }, + "name": "profileViewsQuery" + }, + { + "type": "FunctionExpression", + "start": 2354, + "end": 2614, + "loc": { + "start": { + "line": 90, + "column": 46 + }, + "end": { + "line": 101, + "column": 13 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2363, + "end": 2366, + "loc": { + "start": { + "line": 90, + "column": 55 + }, + "end": { + "line": 90, + "column": 58 + } + }, + "name": "err" + }, + { + "type": "Identifier", + "start": 2368, + "end": 2371, + "loc": { + "start": { + "line": 90, + "column": 60 + }, + "end": { + "line": 90, + "column": 63 + } + }, + "name": "res" + } + ], + "body": { + "type": "BlockStatement", + "start": 2373, + "end": 2614, + "loc": { + "start": { + "line": 90, + "column": 65 + }, + "end": { + "line": 101, + "column": 13 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 2392, + "end": 2484, + "loc": { + "start": { + "line": 92, + "column": 16 + }, + "end": { + "line": 95, + "column": 17 + } + }, + "test": { + "type": "Identifier", + "start": 2396, + "end": 2399, + "loc": { + "start": { + "line": 92, + "column": 20 + }, + "end": { + "line": 92, + "column": 23 + } + }, + "name": "err" + }, + "consequent": { + "type": "BlockStatement", + "start": 2401, + "end": 2484, + "loc": { + "start": { + "line": 92, + "column": 25 + }, + "end": { + "line": 95, + "column": 17 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 2423, + "end": 2439, + "loc": { + "start": { + "line": 93, + "column": 20 + }, + "end": { + "line": 93, + "column": 36 + } + }, + "expression": { + "type": "CallExpression", + "start": 2423, + "end": 2439, + "loc": { + "start": { + "line": 93, + "column": 20 + }, + "end": { + "line": 93, + "column": 36 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2423, + "end": 2434, + "loc": { + "start": { + "line": 93, + "column": 20 + }, + "end": { + "line": 93, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 2423, + "end": 2430, + "loc": { + "start": { + "line": 93, + "column": 20 + }, + "end": { + "line": 93, + "column": 27 + } + }, + "name": "console" + }, + "property": { + "type": "Identifier", + "start": 2431, + "end": 2434, + "loc": { + "start": { + "line": 93, + "column": 28 + }, + "end": { + "line": 93, + "column": 31 + } + }, + "name": "log" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 2435, + "end": 2438, + "loc": { + "start": { + "line": 93, + "column": 32 + }, + "end": { + "line": 93, + "column": 35 + } + }, + "name": "err" + } + ] + } + }, + { + "type": "ReturnStatement", + "start": 2460, + "end": 2466, + "loc": { + "start": { + "line": 94, + "column": 20 + }, + "end": { + "line": 94, + "column": 26 + } + }, + "argument": null + } + ] + }, + "alternate": null + }, + { + "type": "ExpressionStatement", + "start": 2502, + "end": 2599, + "loc": { + "start": { + "line": 97, + "column": 16 + }, + "end": { + "line": 99, + "column": 19 + } + }, + "expression": { + "type": "CallExpression", + "start": 2502, + "end": 2599, + "loc": { + "start": { + "line": 97, + "column": 16 + }, + "end": { + "line": 99, + "column": 19 + } + }, + "callee": { + "type": "Identifier", + "start": 2502, + "end": 2510, + "loc": { + "start": { + "line": 97, + "column": 16 + }, + "end": { + "line": 97, + "column": 24 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 2511, + "end": 2598, + "loc": { + "start": { + "line": 97, + "column": 25 + }, + "end": { + "line": 99, + "column": 18 + } + }, + "callee": { + "type": "Identifier", + "start": 2511, + "end": 2524, + "loc": { + "start": { + "line": 97, + "column": 25 + }, + "end": { + "line": 97, + "column": 38 + } + }, + "name": "_loadResponse" + }, + "arguments": [ + { + "type": "Identifier", + "start": 2525, + "end": 2531, + "loc": { + "start": { + "line": 97, + "column": 39 + }, + "end": { + "line": 97, + "column": 45 + } + }, + "name": "userId" + }, + { + "type": "ObjectExpression", + "start": 2533, + "end": 2597, + "loc": { + "start": { + "line": 97, + "column": 47 + }, + "end": { + "line": 99, + "column": 17 + } + }, + "properties": [ + { + "type": "Property", + "start": 2555, + "end": 2579, + "loc": { + "start": { + "line": 98, + "column": 20 + }, + "end": { + "line": 98, + "column": 44 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2555, + "end": 2567, + "loc": { + "start": { + "line": 98, + "column": 20 + }, + "end": { + "line": 98, + "column": 32 + } + }, + "name": "profileViews" + }, + "value": { + "type": "MemberExpression", + "start": 2569, + "end": 2579, + "loc": { + "start": { + "line": 98, + "column": 34 + }, + "end": { + "line": 98, + "column": 44 + } + }, + "object": { + "type": "Identifier", + "start": 2569, + "end": 2572, + "loc": { + "start": { + "line": 98, + "column": 34 + }, + "end": { + "line": 98, + "column": 37 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 2573, + "end": 2579, + "loc": { + "start": { + "line": 98, + "column": 38 + }, + "end": { + "line": 98, + "column": 44 + } + }, + "name": "result" + }, + "computed": false + }, + "kind": "init" + } + ] + } + ] + } + ] + } + } + ] + } + } + ] + } + }, + { + "type": "VariableDeclaration", + "start": 2629, + "end": 3339, + "loc": { + "start": { + "line": 103, + "column": 12 + }, + "end": { + "line": 120, + "column": 14 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 2633, + "end": 3339, + "loc": { + "start": { + "line": 103, + "column": 16 + }, + "end": { + "line": 120, + "column": 14 + } + }, + "id": { + "type": "Identifier", + "start": 2633, + "end": 2646, + "loc": { + "start": { + "line": 103, + "column": 16 + }, + "end": { + "line": 103, + "column": 29 + } + }, + "name": "geoViewsQuery" + }, + "init": { + "type": "NewExpression", + "start": 2649, + "end": 3339, + "loc": { + "start": { + "line": 103, + "column": 32 + }, + "end": { + "line": 120, + "column": 14 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2653, + "end": 2663, + "loc": { + "start": { + "line": 103, + "column": 36 + }, + "end": { + "line": 103, + "column": 46 + } + }, + "object": { + "type": "Identifier", + "start": 2653, + "end": 2657, + "loc": { + "start": { + "line": 103, + "column": 36 + }, + "end": { + "line": 103, + "column": 40 + } + }, + "name": "Keen" + }, + "property": { + "type": "Identifier", + "start": 2658, + "end": 2663, + "loc": { + "start": { + "line": 103, + "column": 41 + }, + "end": { + "line": 103, + "column": 46 + } + }, + "name": "Query" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 2664, + "end": 2671, + "loc": { + "start": { + "line": 103, + "column": 47 + }, + "end": { + "line": 103, + "column": 54 + } + }, + "value": "count", + "rawValue": "count", + "raw": "\"count\"" + }, + { + "type": "ObjectExpression", + "start": 2673, + "end": 3338, + "loc": { + "start": { + "line": 103, + "column": 56 + }, + "end": { + "line": 120, + "column": 13 + } + }, + "properties": [ + { + "type": "Property", + "start": 2691, + "end": 2716, + "loc": { + "start": { + "line": 104, + "column": 16 + }, + "end": { + "line": 104, + "column": 41 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2691, + "end": 2707, + "loc": { + "start": { + "line": 104, + "column": 16 + }, + "end": { + "line": 104, + "column": 32 + } + }, + "name": "event_collection" + }, + "value": { + "type": "Literal", + "start": 2709, + "end": 2716, + "loc": { + "start": { + "line": 104, + "column": 34 + }, + "end": { + "line": 104, + "column": 41 + } + }, + "value": "views", + "rawValue": "views", + "raw": "'views'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 2734, + "end": 2759, + "loc": { + "start": { + "line": 105, + "column": 16 + }, + "end": { + "line": 105, + "column": 41 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2734, + "end": 2743, + "loc": { + "start": { + "line": 105, + "column": 16 + }, + "end": { + "line": 105, + "column": 25 + } + }, + "name": "timeframe" + }, + "value": { + "type": "Literal", + "start": 2745, + "end": 2759, + "loc": { + "start": { + "line": 105, + "column": 27 + }, + "end": { + "line": 105, + "column": 41 + } + }, + "value": "this_30_days", + "rawValue": "this_30_days", + "raw": "'this_30_days'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 2777, + "end": 3228, + "loc": { + "start": { + "line": 106, + "column": 16 + }, + "end": { + "line": 118, + "column": 18 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2777, + "end": 2784, + "loc": { + "start": { + "line": 106, + "column": 16 + }, + "end": { + "line": 106, + "column": 23 + } + }, + "name": "filters" + }, + "value": { + "type": "ArrayExpression", + "start": 2786, + "end": 3228, + "loc": { + "start": { + "line": 106, + "column": 25 + }, + "end": { + "line": 118, + "column": 18 + } + }, + "elements": [ + { + "type": "ObjectExpression", + "start": 2787, + "end": 2931, + "loc": { + "start": { + "line": 106, + "column": 26 + }, + "end": { + "line": 110, + "column": 17 + } + }, + "properties": [ + { + "type": "Property", + "start": 2809, + "end": 2838, + "loc": { + "start": { + "line": 107, + "column": 20 + }, + "end": { + "line": 107, + "column": 49 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2809, + "end": 2822, + "loc": { + "start": { + "line": 107, + "column": 20 + }, + "end": { + "line": 107, + "column": 33 + } + }, + "name": "property_name" + }, + "value": { + "type": "Literal", + "start": 2824, + "end": 2838, + "loc": { + "start": { + "line": 107, + "column": 35 + }, + "end": { + "line": 107, + "column": 49 + } + }, + "value": "postAuthorId", + "rawValue": "postAuthorId", + "raw": "'postAuthorId'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 2860, + "end": 2874, + "loc": { + "start": { + "line": 108, + "column": 20 + }, + "end": { + "line": 108, + "column": 34 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2860, + "end": 2868, + "loc": { + "start": { + "line": 108, + "column": 20 + }, + "end": { + "line": 108, + "column": 28 + } + }, + "name": "operator" + }, + "value": { + "type": "Literal", + "start": 2870, + "end": 2874, + "loc": { + "start": { + "line": 108, + "column": 30 + }, + "end": { + "line": 108, + "column": 34 + } + }, + "value": "eq", + "rawValue": "eq", + "raw": "'eq'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 2896, + "end": 2913, + "loc": { + "start": { + "line": 109, + "column": 20 + }, + "end": { + "line": 109, + "column": 37 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2896, + "end": 2910, + "loc": { + "start": { + "line": 109, + "column": 20 + }, + "end": { + "line": 109, + "column": 34 + } + }, + "name": "property_value" + }, + "value": { + "type": "Literal", + "start": 2912, + "end": 2913, + "loc": { + "start": { + "line": 109, + "column": 36 + }, + "end": { + "line": 109, + "column": 37 + } + }, + "value": 1, + "rawValue": 1, + "raw": "1" + }, + "kind": "init" + } + ] + }, + { + "type": "ObjectExpression", + "start": 2933, + "end": 3074, + "loc": { + "start": { + "line": 110, + "column": 19 + }, + "end": { + "line": 114, + "column": 17 + } + }, + "properties": [ + { + "type": "Property", + "start": 2955, + "end": 2976, + "loc": { + "start": { + "line": 111, + "column": 20 + }, + "end": { + "line": 111, + "column": 41 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2955, + "end": 2968, + "loc": { + "start": { + "line": 111, + "column": 20 + }, + "end": { + "line": 111, + "column": 33 + } + }, + "name": "property_name" + }, + "value": { + "type": "Literal", + "start": 2970, + "end": 2976, + "loc": { + "start": { + "line": 111, + "column": 35 + }, + "end": { + "line": 111, + "column": 41 + } + }, + "value": "type", + "rawValue": "type", + "raw": "'type'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 2998, + "end": 3012, + "loc": { + "start": { + "line": 112, + "column": 20 + }, + "end": { + "line": 112, + "column": 34 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2998, + "end": 3006, + "loc": { + "start": { + "line": 112, + "column": 20 + }, + "end": { + "line": 112, + "column": 28 + } + }, + "name": "operator" + }, + "value": { + "type": "Literal", + "start": 3008, + "end": 3012, + "loc": { + "start": { + "line": 112, + "column": 30 + }, + "end": { + "line": 112, + "column": 34 + } + }, + "value": "eq", + "rawValue": "eq", + "raw": "'eq'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 3034, + "end": 3056, + "loc": { + "start": { + "line": 113, + "column": 20 + }, + "end": { + "line": 113, + "column": 42 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3034, + "end": 3048, + "loc": { + "start": { + "line": 113, + "column": 20 + }, + "end": { + "line": 113, + "column": 34 + } + }, + "name": "property_value" + }, + "value": { + "type": "Literal", + "start": 3050, + "end": 3056, + "loc": { + "start": { + "line": 113, + "column": 36 + }, + "end": { + "line": 113, + "column": 42 + } + }, + "value": "item", + "rawValue": "item", + "raw": "'item'" + }, + "kind": "init" + } + ] + }, + { + "type": "ObjectExpression", + "start": 3076, + "end": 3227, + "loc": { + "start": { + "line": 114, + "column": 19 + }, + "end": { + "line": 118, + "column": 17 + } + }, + "properties": [ + { + "type": "Property", + "start": 3098, + "end": 3131, + "loc": { + "start": { + "line": 115, + "column": 20 + }, + "end": { + "line": 115, + "column": 53 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3098, + "end": 3111, + "loc": { + "start": { + "line": 115, + "column": 20 + }, + "end": { + "line": 115, + "column": 33 + } + }, + "name": "property_name" + }, + "value": { + "type": "Literal", + "start": 3113, + "end": 3131, + "loc": { + "start": { + "line": 115, + "column": 35 + }, + "end": { + "line": 115, + "column": 53 + } + }, + "value": "ip_geo_info.city", + "rawValue": "ip_geo_info.city", + "raw": "'ip_geo_info.city'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 3153, + "end": 3167, + "loc": { + "start": { + "line": 116, + "column": 20 + }, + "end": { + "line": 116, + "column": 34 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3153, + "end": 3161, + "loc": { + "start": { + "line": 116, + "column": 20 + }, + "end": { + "line": 116, + "column": 28 + } + }, + "name": "operator" + }, + "value": { + "type": "Literal", + "start": 3163, + "end": 3167, + "loc": { + "start": { + "line": 116, + "column": 30 + }, + "end": { + "line": 116, + "column": 34 + } + }, + "value": "ne", + "rawValue": "ne", + "raw": "'ne'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 3189, + "end": 3209, + "loc": { + "start": { + "line": 117, + "column": 20 + }, + "end": { + "line": 117, + "column": 40 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3189, + "end": 3203, + "loc": { + "start": { + "line": 117, + "column": 20 + }, + "end": { + "line": 117, + "column": 34 + } + }, + "name": "property_value" + }, + "value": { + "type": "Literal", + "start": 3205, + "end": 3209, + "loc": { + "start": { + "line": 117, + "column": 36 + }, + "end": { + "line": 117, + "column": 40 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + "kind": "init" + } + ] + } + ] + }, + "kind": "init" + }, + { + "type": "Property", + "start": 3246, + "end": 3323, + "loc": { + "start": { + "line": 119, + "column": 16 + }, + "end": { + "line": 119, + "column": 93 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3246, + "end": 3254, + "loc": { + "start": { + "line": 119, + "column": 16 + }, + "end": { + "line": 119, + "column": 24 + } + }, + "name": "group_by" + }, + "value": { + "type": "ArrayExpression", + "start": 3256, + "end": 3323, + "loc": { + "start": { + "line": 119, + "column": 26 + }, + "end": { + "line": 119, + "column": 93 + } + }, + "elements": [ + { + "type": "Literal", + "start": 3257, + "end": 3275, + "loc": { + "start": { + "line": 119, + "column": 27 + }, + "end": { + "line": 119, + "column": 45 + } + }, + "value": "ip_geo_info.city", + "rawValue": "ip_geo_info.city", + "raw": "'ip_geo_info.city'" + }, + { + "type": "Literal", + "start": 3277, + "end": 3299, + "loc": { + "start": { + "line": 119, + "column": 47 + }, + "end": { + "line": 119, + "column": 69 + } + }, + "value": "ip_geo_info.province", + "rawValue": "ip_geo_info.province", + "raw": "'ip_geo_info.province'" + }, + { + "type": "Literal", + "start": 3301, + "end": 3322, + "loc": { + "start": { + "line": 119, + "column": 71 + }, + "end": { + "line": 119, + "column": 92 + } + }, + "value": "ip_geo_info.country", + "rawValue": "ip_geo_info.country", + "raw": "'ip_geo_info.country'" + } + ] + }, + "kind": "init" + } + ] + } + ] + } + } + ], + "kind": "let" + }, + { + "type": "ExpressionStatement", + "start": 3353, + "end": 3639, + "loc": { + "start": { + "line": 122, + "column": 12 + }, + "end": { + "line": 130, + "column": 14 + } + }, + "expression": { + "type": "CallExpression", + "start": 3353, + "end": 3639, + "loc": { + "start": { + "line": 122, + "column": 12 + }, + "end": { + "line": 130, + "column": 14 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3353, + "end": 3367, + "loc": { + "start": { + "line": 122, + "column": 12 + }, + "end": { + "line": 122, + "column": 26 + } + }, + "object": { + "type": "Identifier", + "start": 3353, + "end": 3363, + "loc": { + "start": { + "line": 122, + "column": 12 + }, + "end": { + "line": 122, + "column": 22 + } + }, + "name": "keenClient" + }, + "property": { + "type": "Identifier", + "start": 3364, + "end": 3367, + "loc": { + "start": { + "line": 122, + "column": 23 + }, + "end": { + "line": 122, + "column": 26 + } + }, + "name": "run" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 3368, + "end": 3381, + "loc": { + "start": { + "line": 122, + "column": 27 + }, + "end": { + "line": 122, + "column": 40 + } + }, + "name": "geoViewsQuery" + }, + { + "type": "FunctionExpression", + "start": 3383, + "end": 3638, + "loc": { + "start": { + "line": 122, + "column": 42 + }, + "end": { + "line": 130, + "column": 13 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 3392, + "end": 3395, + "loc": { + "start": { + "line": 122, + "column": 51 + }, + "end": { + "line": 122, + "column": 54 + } + }, + "name": "err" + }, + { + "type": "Identifier", + "start": 3397, + "end": 3400, + "loc": { + "start": { + "line": 122, + "column": 56 + }, + "end": { + "line": 122, + "column": 59 + } + }, + "name": "res" + } + ], + "body": { + "type": "BlockStatement", + "start": 3402, + "end": 3638, + "loc": { + "start": { + "line": 122, + "column": 61 + }, + "end": { + "line": 130, + "column": 13 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 3420, + "end": 3512, + "loc": { + "start": { + "line": 123, + "column": 16 + }, + "end": { + "line": 126, + "column": 17 + } + }, + "test": { + "type": "Identifier", + "start": 3424, + "end": 3427, + "loc": { + "start": { + "line": 123, + "column": 20 + }, + "end": { + "line": 123, + "column": 23 + } + }, + "name": "err" + }, + "consequent": { + "type": "BlockStatement", + "start": 3429, + "end": 3512, + "loc": { + "start": { + "line": 123, + "column": 25 + }, + "end": { + "line": 126, + "column": 17 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 3451, + "end": 3467, + "loc": { + "start": { + "line": 124, + "column": 20 + }, + "end": { + "line": 124, + "column": 36 + } + }, + "expression": { + "type": "CallExpression", + "start": 3451, + "end": 3467, + "loc": { + "start": { + "line": 124, + "column": 20 + }, + "end": { + "line": 124, + "column": 36 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3451, + "end": 3462, + "loc": { + "start": { + "line": 124, + "column": 20 + }, + "end": { + "line": 124, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 3451, + "end": 3458, + "loc": { + "start": { + "line": 124, + "column": 20 + }, + "end": { + "line": 124, + "column": 27 + } + }, + "name": "console" + }, + "property": { + "type": "Identifier", + "start": 3459, + "end": 3462, + "loc": { + "start": { + "line": 124, + "column": 28 + }, + "end": { + "line": 124, + "column": 31 + } + }, + "name": "log" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 3463, + "end": 3466, + "loc": { + "start": { + "line": 124, + "column": 32 + }, + "end": { + "line": 124, + "column": 35 + } + }, + "name": "err" + } + ] + } + }, + { + "type": "ReturnStatement", + "start": 3488, + "end": 3494, + "loc": { + "start": { + "line": 125, + "column": 20 + }, + "end": { + "line": 125, + "column": 26 + } + }, + "argument": null + } + ] + }, + "alternate": null + }, + { + "type": "ExpressionStatement", + "start": 3529, + "end": 3624, + "loc": { + "start": { + "line": 127, + "column": 16 + }, + "end": { + "line": 129, + "column": 19 + } + }, + "expression": { + "type": "CallExpression", + "start": 3529, + "end": 3624, + "loc": { + "start": { + "line": 127, + "column": 16 + }, + "end": { + "line": 129, + "column": 19 + } + }, + "callee": { + "type": "Identifier", + "start": 3529, + "end": 3537, + "loc": { + "start": { + "line": 127, + "column": 16 + }, + "end": { + "line": 127, + "column": 24 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 3538, + "end": 3623, + "loc": { + "start": { + "line": 127, + "column": 25 + }, + "end": { + "line": 129, + "column": 18 + } + }, + "callee": { + "type": "Identifier", + "start": 3538, + "end": 3551, + "loc": { + "start": { + "line": 127, + "column": 25 + }, + "end": { + "line": 127, + "column": 38 + } + }, + "name": "_loadResponse" + }, + "arguments": [ + { + "type": "Identifier", + "start": 3552, + "end": 3558, + "loc": { + "start": { + "line": 127, + "column": 39 + }, + "end": { + "line": 127, + "column": 45 + } + }, + "name": "userId" + }, + { + "type": "ObjectExpression", + "start": 3560, + "end": 3622, + "loc": { + "start": { + "line": 127, + "column": 47 + }, + "end": { + "line": 129, + "column": 17 + } + }, + "properties": [ + { + "type": "Property", + "start": 3582, + "end": 3604, + "loc": { + "start": { + "line": 128, + "column": 20 + }, + "end": { + "line": 128, + "column": 42 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Literal", + "start": 3582, + "end": 3592, + "loc": { + "start": { + "line": 128, + "column": 20 + }, + "end": { + "line": 128, + "column": 30 + } + }, + "value": "geoViews", + "rawValue": "geoViews", + "raw": "'geoViews'" + }, + "value": { + "type": "MemberExpression", + "start": 3594, + "end": 3604, + "loc": { + "start": { + "line": 128, + "column": 32 + }, + "end": { + "line": 128, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 3594, + "end": 3597, + "loc": { + "start": { + "line": 128, + "column": 32 + }, + "end": { + "line": 128, + "column": 35 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 3598, + "end": 3604, + "loc": { + "start": { + "line": 128, + "column": 36 + }, + "end": { + "line": 128, + "column": 42 + } + }, + "name": "result" + }, + "computed": false + }, + "kind": "init" + } + ] + } + ] + } + ] + } + } + ] + } + } + ] + } + }, + { + "type": "VariableDeclaration", + "start": 3653, + "end": 4024, + "loc": { + "start": { + "line": 132, + "column": 12 + }, + "end": { + "line": 141, + "column": 14 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 3657, + "end": 4024, + "loc": { + "start": { + "line": 132, + "column": 16 + }, + "end": { + "line": 141, + "column": 14 + } + }, + "id": { + "type": "Identifier", + "start": 3657, + "end": 3674, + "loc": { + "start": { + "line": 132, + "column": 16 + }, + "end": { + "line": 132, + "column": 33 + } + }, + "name": "newFollowersQuery" + }, + "init": { + "type": "NewExpression", + "start": 3677, + "end": 4024, + "loc": { + "start": { + "line": 132, + "column": 36 + }, + "end": { + "line": 141, + "column": 14 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3681, + "end": 3691, + "loc": { + "start": { + "line": 132, + "column": 40 + }, + "end": { + "line": 132, + "column": 50 + } + }, + "object": { + "type": "Identifier", + "start": 3681, + "end": 3685, + "loc": { + "start": { + "line": 132, + "column": 40 + }, + "end": { + "line": 132, + "column": 44 + } + }, + "name": "Keen" + }, + "property": { + "type": "Identifier", + "start": 3686, + "end": 3691, + "loc": { + "start": { + "line": 132, + "column": 45 + }, + "end": { + "line": 132, + "column": 50 + } + }, + "name": "Query" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 3692, + "end": 3697, + "loc": { + "start": { + "line": 132, + "column": 51 + }, + "end": { + "line": 132, + "column": 56 + } + }, + "value": "sum", + "rawValue": "sum", + "raw": "'sum'" + }, + { + "type": "ObjectExpression", + "start": 3699, + "end": 4023, + "loc": { + "start": { + "line": 132, + "column": 58 + }, + "end": { + "line": 141, + "column": 13 + } + }, + "properties": [ + { + "type": "Property", + "start": 3717, + "end": 3743, + "loc": { + "start": { + "line": 133, + "column": 16 + }, + "end": { + "line": 133, + "column": 42 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3717, + "end": 3733, + "loc": { + "start": { + "line": 133, + "column": 16 + }, + "end": { + "line": 133, + "column": 32 + } + }, + "name": "event_collection" + }, + "value": { + "type": "Literal", + "start": 3735, + "end": 3743, + "loc": { + "start": { + "line": 133, + "column": 34 + }, + "end": { + "line": 133, + "column": 42 + } + }, + "value": "follow", + "rawValue": "follow", + "raw": "\"follow\"" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 3761, + "end": 3786, + "loc": { + "start": { + "line": 134, + "column": 16 + }, + "end": { + "line": 134, + "column": 41 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3761, + "end": 3770, + "loc": { + "start": { + "line": 134, + "column": 16 + }, + "end": { + "line": 134, + "column": 25 + } + }, + "name": "timeframe" + }, + "value": { + "type": "Literal", + "start": 3772, + "end": 3786, + "loc": { + "start": { + "line": 134, + "column": 27 + }, + "end": { + "line": 134, + "column": 41 + } + }, + "value": "this_30_days", + "rawValue": "this_30_days", + "raw": "\"this_30_days\"" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 3804, + "end": 3960, + "loc": { + "start": { + "line": 135, + "column": 16 + }, + "end": { + "line": 139, + "column": 18 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3804, + "end": 3811, + "loc": { + "start": { + "line": 135, + "column": 16 + }, + "end": { + "line": 135, + "column": 23 + } + }, + "name": "filters" + }, + "value": { + "type": "ArrayExpression", + "start": 3813, + "end": 3960, + "loc": { + "start": { + "line": 135, + "column": 25 + }, + "end": { + "line": 139, + "column": 18 + } + }, + "elements": [ + { + "type": "ObjectExpression", + "start": 3814, + "end": 3959, + "loc": { + "start": { + "line": 135, + "column": 26 + }, + "end": { + "line": 139, + "column": 17 + } + }, + "properties": [ + { + "type": "Property", + "start": 3836, + "end": 3861, + "loc": { + "start": { + "line": 136, + "column": 20 + }, + "end": { + "line": 136, + "column": 45 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3836, + "end": 3849, + "loc": { + "start": { + "line": 136, + "column": 20 + }, + "end": { + "line": 136, + "column": 33 + } + }, + "name": "property_name" + }, + "value": { + "type": "Literal", + "start": 3851, + "end": 3861, + "loc": { + "start": { + "line": 136, + "column": 35 + }, + "end": { + "line": 136, + "column": 45 + } + }, + "value": "targetId", + "rawValue": "targetId", + "raw": "'targetId'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 3883, + "end": 3897, + "loc": { + "start": { + "line": 137, + "column": 20 + }, + "end": { + "line": 137, + "column": 34 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3883, + "end": 3891, + "loc": { + "start": { + "line": 137, + "column": 20 + }, + "end": { + "line": 137, + "column": 28 + } + }, + "name": "operator" + }, + "value": { + "type": "Literal", + "start": 3893, + "end": 3897, + "loc": { + "start": { + "line": 137, + "column": 30 + }, + "end": { + "line": 137, + "column": 34 + } + }, + "value": "eq", + "rawValue": "eq", + "raw": "'eq'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 3919, + "end": 3941, + "loc": { + "start": { + "line": 138, + "column": 20 + }, + "end": { + "line": 138, + "column": 42 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3919, + "end": 3933, + "loc": { + "start": { + "line": 138, + "column": 20 + }, + "end": { + "line": 138, + "column": 34 + } + }, + "name": "property_value" + }, + "value": { + "type": "Identifier", + "start": 3935, + "end": 3941, + "loc": { + "start": { + "line": 138, + "column": 36 + }, + "end": { + "line": 138, + "column": 42 + } + }, + "name": "userId" + }, + "kind": "init" + } + ] + } + ] + }, + "kind": "init" + }, + { + "type": "Property", + "start": 3978, + "end": 4009, + "loc": { + "start": { + "line": 140, + "column": 16 + }, + "end": { + "line": 140, + "column": 47 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3978, + "end": 3993, + "loc": { + "start": { + "line": 140, + "column": 16 + }, + "end": { + "line": 140, + "column": 31 + } + }, + "name": "target_property" + }, + "value": { + "type": "Literal", + "start": 3995, + "end": 4009, + "loc": { + "start": { + "line": 140, + "column": 33 + }, + "end": { + "line": 140, + "column": 47 + } + }, + "value": "directionInt", + "rawValue": "directionInt", + "raw": "'directionInt'" + }, + "kind": "init" + } + ] + } + ] + } + } + ], + "kind": "let" + }, + { + "type": "ExpressionStatement", + "start": 4038, + "end": 4329, + "loc": { + "start": { + "line": 143, + "column": 12 + }, + "end": { + "line": 155, + "column": 14 + } + }, + "expression": { + "type": "CallExpression", + "start": 4038, + "end": 4329, + "loc": { + "start": { + "line": 143, + "column": 12 + }, + "end": { + "line": 155, + "column": 14 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4038, + "end": 4052, + "loc": { + "start": { + "line": 143, + "column": 12 + }, + "end": { + "line": 143, + "column": 26 + } + }, + "object": { + "type": "Identifier", + "start": 4038, + "end": 4048, + "loc": { + "start": { + "line": 143, + "column": 12 + }, + "end": { + "line": 143, + "column": 22 + } + }, + "name": "keenClient" + }, + "property": { + "type": "Identifier", + "start": 4049, + "end": 4052, + "loc": { + "start": { + "line": 143, + "column": 23 + }, + "end": { + "line": 143, + "column": 26 + } + }, + "name": "run" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 4053, + "end": 4070, + "loc": { + "start": { + "line": 143, + "column": 27 + }, + "end": { + "line": 143, + "column": 44 + } + }, + "name": "newFollowersQuery" + }, + { + "type": "FunctionExpression", + "start": 4072, + "end": 4328, + "loc": { + "start": { + "line": 143, + "column": 46 + }, + "end": { + "line": 155, + "column": 13 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 4081, + "end": 4084, + "loc": { + "start": { + "line": 143, + "column": 55 + }, + "end": { + "line": 143, + "column": 58 + } + }, + "name": "err" + }, + { + "type": "Identifier", + "start": 4086, + "end": 4089, + "loc": { + "start": { + "line": 143, + "column": 60 + }, + "end": { + "line": 143, + "column": 63 + } + }, + "name": "res" + } + ], + "body": { + "type": "BlockStatement", + "start": 4091, + "end": 4328, + "loc": { + "start": { + "line": 143, + "column": 65 + }, + "end": { + "line": 155, + "column": 13 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 4110, + "end": 4202, + "loc": { + "start": { + "line": 145, + "column": 16 + }, + "end": { + "line": 148, + "column": 17 + } + }, + "test": { + "type": "Identifier", + "start": 4114, + "end": 4117, + "loc": { + "start": { + "line": 145, + "column": 20 + }, + "end": { + "line": 145, + "column": 23 + } + }, + "name": "err" + }, + "consequent": { + "type": "BlockStatement", + "start": 4119, + "end": 4202, + "loc": { + "start": { + "line": 145, + "column": 25 + }, + "end": { + "line": 148, + "column": 17 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 4141, + "end": 4157, + "loc": { + "start": { + "line": 146, + "column": 20 + }, + "end": { + "line": 146, + "column": 36 + } + }, + "expression": { + "type": "CallExpression", + "start": 4141, + "end": 4157, + "loc": { + "start": { + "line": 146, + "column": 20 + }, + "end": { + "line": 146, + "column": 36 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4141, + "end": 4152, + "loc": { + "start": { + "line": 146, + "column": 20 + }, + "end": { + "line": 146, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 4141, + "end": 4148, + "loc": { + "start": { + "line": 146, + "column": 20 + }, + "end": { + "line": 146, + "column": 27 + } + }, + "name": "console" + }, + "property": { + "type": "Identifier", + "start": 4149, + "end": 4152, + "loc": { + "start": { + "line": 146, + "column": 28 + }, + "end": { + "line": 146, + "column": 31 + } + }, + "name": "log" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 4153, + "end": 4156, + "loc": { + "start": { + "line": 146, + "column": 32 + }, + "end": { + "line": 146, + "column": 35 + } + }, + "name": "err" + } + ] + } + }, + { + "type": "ReturnStatement", + "start": 4178, + "end": 4184, + "loc": { + "start": { + "line": 147, + "column": 20 + }, + "end": { + "line": 147, + "column": 26 + } + }, + "argument": null + } + ] + }, + "alternate": null + }, + { + "type": "ExpressionStatement", + "start": 4220, + "end": 4313, + "loc": { + "start": { + "line": 150, + "column": 16 + }, + "end": { + "line": 153, + "column": 19 + } + }, + "expression": { + "type": "CallExpression", + "start": 4220, + "end": 4313, + "loc": { + "start": { + "line": 150, + "column": 16 + }, + "end": { + "line": 153, + "column": 19 + } + }, + "callee": { + "type": "Identifier", + "start": 4220, + "end": 4228, + "loc": { + "start": { + "line": 150, + "column": 16 + }, + "end": { + "line": 150, + "column": 24 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 4229, + "end": 4312, + "loc": { + "start": { + "line": 150, + "column": 25 + }, + "end": { + "line": 153, + "column": 18 + } + }, + "callee": { + "type": "Identifier", + "start": 4229, + "end": 4242, + "loc": { + "start": { + "line": 150, + "column": 25 + }, + "end": { + "line": 150, + "column": 38 + } + }, + "name": "_loadResponse" + }, + "arguments": [ + { + "type": "Identifier", + "start": 4243, + "end": 4249, + "loc": { + "start": { + "line": 150, + "column": 39 + }, + "end": { + "line": 150, + "column": 45 + } + }, + "name": "userId" + }, + { + "type": "ObjectExpression", + "start": 4251, + "end": 4311, + "loc": { + "start": { + "line": 150, + "column": 47 + }, + "end": { + "line": 153, + "column": 17 + } + }, + "properties": [ + { + "type": "Property", + "start": 4274, + "end": 4293, + "loc": { + "start": { + "line": 152, + "column": 20 + }, + "end": { + "line": 152, + "column": 39 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Literal", + "start": 4274, + "end": 4288, + "loc": { + "start": { + "line": 152, + "column": 20 + }, + "end": { + "line": 152, + "column": 34 + } + }, + "value": "newFollowers", + "rawValue": "newFollowers", + "raw": "'newFollowers'" + }, + "value": { + "type": "Identifier", + "start": 4290, + "end": 4293, + "loc": { + "start": { + "line": 152, + "column": 36 + }, + "end": { + "line": 152, + "column": 39 + } + }, + "name": "res" + }, + "kind": "init" + } + ] + } + ] + } + ] + } + } + ] + } + } + ] + } + } + ] + } + } + ] + } + } + ] + } + } + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * load\n * Gets user stats from API, and performs Keen analytics functions\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param userId user id\n * @returns {Function}\n ", + "start": 409, + "end": 614, + "loc": { + "start": { + "line": 25, + "column": 0 + }, + "end": { + "line": 32, + "column": 3 + } + }, + "range": [ + 409, + 614 + ] + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * load\n * Gets user stats from API, and performs Keen analytics functions\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param userId user id\n * @returns {Function}\n ", + "start": 409, + "end": 614, + "loc": { + "start": { + "line": 25, + "column": 0 + }, + "end": { + "line": 32, + "column": 3 + } + }, + "range": [ + 409, + 614 + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/actions/Trending.js.json b/app/docs/ast/source/actions/Trending.js.json new file mode 100644 index 0000000..0cf379f --- /dev/null +++ b/app/docs/ast/source/actions/Trending.js.json @@ -0,0 +1,1918 @@ +{ + "type": "Program", + "start": 0, + "end": 893, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 44, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 30, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 30 + } + }, + "specifiers": [ + { + "type": "ImportNamespaceSpecifier", + "start": 7, + "end": 17, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 17 + } + }, + "local": { + "type": "Identifier", + "start": 12, + "end": 17, + "loc": { + "start": { + "line": 1, + "column": 12 + }, + "end": { + "line": 1, + "column": 17 + } + }, + "name": "axios" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 23, + "end": 30, + "loc": { + "start": { + "line": 1, + "column": 23 + }, + "end": { + "line": 1, + "column": 30 + } + }, + "value": "axios", + "rawValue": "axios", + "raw": "'axios'" + } + }, + { + "type": "ImportDeclaration", + "start": 31, + "end": 58, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 27 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 38, + "end": 44, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "local": { + "type": "Identifier", + "start": 38, + "end": 44, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "name": "config" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 50, + "end": 58, + "loc": { + "start": { + "line": 2, + "column": 19 + }, + "end": { + "line": 2, + "column": 27 + } + }, + "value": "config", + "rawValue": "config", + "raw": "'config'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * LOAD\n * @type {string}\n ", + "start": 60, + "end": 93, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + }, + "range": [ + 60, + 93 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 94, + "end": 129, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 35 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 101, + "end": 129, + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 35 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 107, + "end": 129, + "loc": { + "start": { + "line": 8, + "column": 13 + }, + "end": { + "line": 8, + "column": 35 + } + }, + "id": { + "type": "Identifier", + "start": 107, + "end": 111, + "loc": { + "start": { + "line": 8, + "column": 13 + }, + "end": { + "line": 8, + "column": 17 + } + }, + "name": "LOAD", + "leadingComments": null + }, + "init": { + "type": "Literal", + "start": 114, + "end": 129, + "loc": { + "start": { + "line": 8, + "column": 20 + }, + "end": { + "line": 8, + "column": 35 + } + }, + "value": "TRENDING_LOAD", + "rawValue": "TRENDING_LOAD", + "raw": "'TRENDING_LOAD'", + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * LOAD\n * @type {string}\n ", + "start": 60, + "end": 93, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + }, + "range": [ + 60, + 93 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _loadRequest\n * @private\n ", + "start": 131, + "end": 166, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + }, + "range": [ + 131, + 166 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * LOAD\n * @type {string}\n ", + "start": 60, + "end": 93, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + }, + "range": [ + 60, + 93 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _loadRequest\n * @private\n ", + "start": 131, + "end": 166, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + }, + "range": [ + 131, + 166 + ] + } + ] + }, + { + "type": "VariableDeclaration", + "start": 167, + "end": 211, + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 14, + "column": 44 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 173, + "end": 211, + "loc": { + "start": { + "line": 14, + "column": 6 + }, + "end": { + "line": 14, + "column": 44 + } + }, + "id": { + "type": "Identifier", + "start": 173, + "end": 185, + "loc": { + "start": { + "line": 14, + "column": 6 + }, + "end": { + "line": 14, + "column": 18 + } + }, + "name": "_loadRequest", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 188, + "end": 211, + "loc": { + "start": { + "line": 14, + "column": 21 + }, + "end": { + "line": 14, + "column": 44 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [], + "body": { + "type": "ObjectExpression", + "start": 195, + "end": 210, + "loc": { + "start": { + "line": 14, + "column": 28 + }, + "end": { + "line": 14, + "column": 43 + } + }, + "properties": [ + { + "type": "Property", + "start": 197, + "end": 207, + "loc": { + "start": { + "line": 14, + "column": 30 + }, + "end": { + "line": 14, + "column": 40 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 197, + "end": 201, + "loc": { + "start": { + "line": 14, + "column": 30 + }, + "end": { + "line": 14, + "column": 34 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 203, + "end": 207, + "loc": { + "start": { + "line": 14, + "column": 36 + }, + "end": { + "line": 14, + "column": 40 + } + }, + "name": "LOAD" + }, + "kind": "init" + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _loadRequest\n * @private\n ", + "start": 131, + "end": 166, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + }, + "range": [ + 131, + 166 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _loadResponse\n * @param response\n * @private\n ", + "start": 213, + "end": 268, + "loc": { + "start": { + "line": 16, + "column": 0 + }, + "end": { + "line": 20, + "column": 3 + } + }, + "range": [ + 213, + 268 + ] + } + ] + }, + { + "type": "VariableDeclaration", + "start": 269, + "end": 332, + "loc": { + "start": { + "line": 21, + "column": 0 + }, + "end": { + "line": 21, + "column": 63 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 275, + "end": 332, + "loc": { + "start": { + "line": 21, + "column": 6 + }, + "end": { + "line": 21, + "column": 63 + } + }, + "id": { + "type": "Identifier", + "start": 275, + "end": 288, + "loc": { + "start": { + "line": 21, + "column": 6 + }, + "end": { + "line": 21, + "column": 19 + } + }, + "name": "_loadResponse", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 291, + "end": 332, + "loc": { + "start": { + "line": 21, + "column": 22 + }, + "end": { + "line": 21, + "column": 63 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 292, + "end": 300, + "loc": { + "start": { + "line": 21, + "column": 23 + }, + "end": { + "line": 21, + "column": 31 + } + }, + "name": "response" + } + ], + "body": { + "type": "ObjectExpression", + "start": 306, + "end": 331, + "loc": { + "start": { + "line": 21, + "column": 37 + }, + "end": { + "line": 21, + "column": 62 + } + }, + "properties": [ + { + "type": "Property", + "start": 308, + "end": 318, + "loc": { + "start": { + "line": 21, + "column": 39 + }, + "end": { + "line": 21, + "column": 49 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 308, + "end": 312, + "loc": { + "start": { + "line": 21, + "column": 39 + }, + "end": { + "line": 21, + "column": 43 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 314, + "end": 318, + "loc": { + "start": { + "line": 21, + "column": 45 + }, + "end": { + "line": 21, + "column": 49 + } + }, + "name": "LOAD" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 320, + "end": 328, + "loc": { + "start": { + "line": 21, + "column": 51 + }, + "end": { + "line": 21, + "column": 59 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 320, + "end": 328, + "loc": { + "start": { + "line": 21, + "column": 51 + }, + "end": { + "line": 21, + "column": 59 + } + }, + "name": "response" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 320, + "end": 328, + "loc": { + "start": { + "line": 21, + "column": 51 + }, + "end": { + "line": 21, + "column": 59 + } + }, + "name": "response" + } + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _loadResponse\n * @param response\n * @private\n ", + "start": 213, + "end": 268, + "loc": { + "start": { + "line": 16, + "column": 0 + }, + "end": { + "line": 20, + "column": 3 + } + }, + "range": [ + 213, + 268 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * trending\n * Gets 'trending' data from API\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @returns {Function}\n ", + "start": 334, + "end": 484, + "loc": { + "start": { + "line": 23, + "column": 0 + }, + "end": { + "line": 29, + "column": 3 + } + }, + "range": [ + 334, + 484 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 485, + "end": 892, + "loc": { + "start": { + "line": 30, + "column": 0 + }, + "end": { + "line": 43, + "column": 1 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 492, + "end": 892, + "loc": { + "start": { + "line": 30, + "column": 7 + }, + "end": { + "line": 43, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 501, + "end": 505, + "loc": { + "start": { + "line": 30, + "column": 16 + }, + "end": { + "line": 30, + "column": 20 + } + }, + "name": "load", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 508, + "end": 892, + "loc": { + "start": { + "line": 30, + "column": 23 + }, + "end": { + "line": 43, + "column": 1 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 514, + "end": 890, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 42, + "column": 5 + } + }, + "argument": { + "type": "ArrowFunctionExpression", + "start": 521, + "end": 890, + "loc": { + "start": { + "line": 31, + "column": 11 + }, + "end": { + "line": 42, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 522, + "end": 530, + "loc": { + "start": { + "line": 31, + "column": 12 + }, + "end": { + "line": 31, + "column": 20 + } + }, + "name": "dispatch" + }, + { + "type": "Identifier", + "start": 532, + "end": 540, + "loc": { + "start": { + "line": 31, + "column": 22 + }, + "end": { + "line": 31, + "column": 30 + } + }, + "name": "getState" + } + ], + "body": { + "type": "BlockStatement", + "start": 545, + "end": 890, + "loc": { + "start": { + "line": 31, + "column": 35 + }, + "end": { + "line": 42, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 555, + "end": 569, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 22 + } + }, + "expression": { + "type": "CallExpression", + "start": 555, + "end": 569, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 22 + } + }, + "callee": { + "type": "Identifier", + "start": 555, + "end": 567, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 20 + } + }, + "name": "_loadRequest" + }, + "arguments": [] + } + }, + { + "type": "VariableDeclaration", + "start": 578, + "end": 606, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 36 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 584, + "end": 606, + "loc": { + "start": { + "line": 33, + "column": 14 + }, + "end": { + "line": 33, + "column": 36 + } + }, + "id": { + "type": "Identifier", + "start": 584, + "end": 588, + "loc": { + "start": { + "line": 33, + "column": 14 + }, + "end": { + "line": 33, + "column": 18 + } + }, + "name": "user" + }, + "init": { + "type": "MemberExpression", + "start": 591, + "end": 606, + "loc": { + "start": { + "line": 33, + "column": 21 + }, + "end": { + "line": 33, + "column": 36 + } + }, + "object": { + "type": "CallExpression", + "start": 591, + "end": 601, + "loc": { + "start": { + "line": 33, + "column": 21 + }, + "end": { + "line": 33, + "column": 31 + } + }, + "callee": { + "type": "Identifier", + "start": 591, + "end": 599, + "loc": { + "start": { + "line": 33, + "column": 21 + }, + "end": { + "line": 33, + "column": 29 + } + }, + "name": "getState" + }, + "arguments": [] + }, + "property": { + "type": "Identifier", + "start": 602, + "end": 606, + "loc": { + "start": { + "line": 33, + "column": 32 + }, + "end": { + "line": 33, + "column": 36 + } + }, + "name": "User" + }, + "computed": false + } + } + ], + "kind": "const" + }, + { + "type": "ExpressionStatement", + "start": 615, + "end": 884, + "loc": { + "start": { + "line": 34, + "column": 8 + }, + "end": { + "line": 41, + "column": 10 + } + }, + "expression": { + "type": "CallExpression", + "start": 615, + "end": 884, + "loc": { + "start": { + "line": 34, + "column": 8 + }, + "end": { + "line": 41, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 615, + "end": 813, + "loc": { + "start": { + "line": 34, + "column": 8 + }, + "end": { + "line": 39, + "column": 13 + } + }, + "object": { + "type": "CallExpression", + "start": 615, + "end": 799, + "loc": { + "start": { + "line": 34, + "column": 8 + }, + "end": { + "line": 38, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 615, + "end": 624, + "loc": { + "start": { + "line": 34, + "column": 8 + }, + "end": { + "line": 34, + "column": 17 + } + }, + "object": { + "type": "Identifier", + "start": 615, + "end": 620, + "loc": { + "start": { + "line": 34, + "column": 8 + }, + "end": { + "line": 34, + "column": 13 + } + }, + "name": "axios" + }, + "property": { + "type": "Identifier", + "start": 621, + "end": 624, + "loc": { + "start": { + "line": 34, + "column": 14 + }, + "end": { + "line": 34, + "column": 17 + } + }, + "name": "get" + }, + "computed": false + }, + "arguments": [ + { + "type": "TemplateLiteral", + "start": 625, + "end": 676, + "loc": { + "start": { + "line": 34, + "column": 18 + }, + "end": { + "line": 34, + "column": 69 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 628, + "end": 646, + "loc": { + "start": { + "line": 34, + "column": 21 + }, + "end": { + "line": 34, + "column": 39 + } + }, + "object": { + "type": "MemberExpression", + "start": 628, + "end": 638, + "loc": { + "start": { + "line": 34, + "column": 21 + }, + "end": { + "line": 34, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 628, + "end": 634, + "loc": { + "start": { + "line": 34, + "column": 21 + }, + "end": { + "line": 34, + "column": 27 + } + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 635, + "end": 638, + "loc": { + "start": { + "line": 34, + "column": 28 + }, + "end": { + "line": 34, + "column": 31 + } + }, + "name": "api" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 639, + "end": 646, + "loc": { + "start": { + "line": 34, + "column": 32 + }, + "end": { + "line": 34, + "column": 39 + } + }, + "name": "baseUrl" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 667, + "end": 674, + "loc": { + "start": { + "line": 34, + "column": 60 + }, + "end": { + "line": 34, + "column": 67 + } + }, + "object": { + "type": "Identifier", + "start": 667, + "end": 671, + "loc": { + "start": { + "line": 34, + "column": 60 + }, + "end": { + "line": 34, + "column": 64 + } + }, + "name": "user" + }, + "property": { + "type": "Identifier", + "start": 672, + "end": 674, + "loc": { + "start": { + "line": 34, + "column": 65 + }, + "end": { + "line": 34, + "column": 67 + } + }, + "name": "id" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 626, + "end": 626, + "loc": { + "start": { + "line": 34, + "column": 19 + }, + "end": { + "line": 34, + "column": 19 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 647, + "end": 665, + "loc": { + "start": { + "line": 34, + "column": 40 + }, + "end": { + "line": 34, + "column": 58 + } + }, + "value": { + "raw": "/trending?user_id=", + "cooked": "/trending?user_id=" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 675, + "end": 675, + "loc": { + "start": { + "line": 34, + "column": 68 + }, + "end": { + "line": 34, + "column": 68 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + }, + { + "type": "ObjectExpression", + "start": 678, + "end": 798, + "loc": { + "start": { + "line": 34, + "column": 71 + }, + "end": { + "line": 38, + "column": 9 + } + }, + "properties": [ + { + "type": "Property", + "start": 692, + "end": 787, + "loc": { + "start": { + "line": 35, + "column": 12 + }, + "end": { + "line": 37, + "column": 13 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 692, + "end": 699, + "loc": { + "start": { + "line": 35, + "column": 12 + }, + "end": { + "line": 35, + "column": 19 + } + }, + "name": "headers" + }, + "value": { + "type": "ObjectExpression", + "start": 701, + "end": 787, + "loc": { + "start": { + "line": 35, + "column": 21 + }, + "end": { + "line": 37, + "column": 13 + } + }, + "properties": [ + { + "type": "Property", + "start": 719, + "end": 773, + "loc": { + "start": { + "line": 36, + "column": 16 + }, + "end": { + "line": 36, + "column": 70 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 719, + "end": 732, + "loc": { + "start": { + "line": 36, + "column": 16 + }, + "end": { + "line": 36, + "column": 29 + } + }, + "name": "Authorization" + }, + "value": { + "type": "TemplateLiteral", + "start": 734, + "end": 773, + "loc": { + "start": { + "line": 36, + "column": 31 + }, + "end": { + "line": 36, + "column": 70 + } + }, + "expressions": [ + { + "type": "CallExpression", + "start": 744, + "end": 771, + "loc": { + "start": { + "line": 36, + "column": 41 + }, + "end": { + "line": 36, + "column": 68 + } + }, + "callee": { + "type": "MemberExpression", + "start": 744, + "end": 764, + "loc": { + "start": { + "line": 36, + "column": 41 + }, + "end": { + "line": 36, + "column": 61 + } + }, + "object": { + "type": "Identifier", + "start": 744, + "end": 756, + "loc": { + "start": { + "line": 36, + "column": 41 + }, + "end": { + "line": 36, + "column": 53 + } + }, + "name": "localStorage" + }, + "property": { + "type": "Identifier", + "start": 757, + "end": 764, + "loc": { + "start": { + "line": 36, + "column": 54 + }, + "end": { + "line": 36, + "column": 61 + } + }, + "name": "getItem" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 765, + "end": 770, + "loc": { + "start": { + "line": 36, + "column": 62 + }, + "end": { + "line": 36, + "column": 67 + } + }, + "value": "jwt", + "rawValue": "jwt", + "raw": "'jwt'" + } + ] + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 735, + "end": 742, + "loc": { + "start": { + "line": 36, + "column": 32 + }, + "end": { + "line": 36, + "column": 39 + } + }, + "value": { + "raw": "Bearer ", + "cooked": "Bearer " + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 772, + "end": 772, + "loc": { + "start": { + "line": 36, + "column": 69 + }, + "end": { + "line": 36, + "column": 69 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + }, + "kind": "init" + } + ] + }, + "kind": "init" + } + ] + } + ] + }, + "property": { + "type": "Identifier", + "start": 809, + "end": 813, + "loc": { + "start": { + "line": 39, + "column": 9 + }, + "end": { + "line": 39, + "column": 13 + } + }, + "name": "then" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 814, + "end": 883, + "loc": { + "start": { + "line": 39, + "column": 14 + }, + "end": { + "line": 41, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 814, + "end": 817, + "loc": { + "start": { + "line": 39, + "column": 14 + }, + "end": { + "line": 39, + "column": 17 + } + }, + "name": "res" + } + ], + "body": { + "type": "BlockStatement", + "start": 821, + "end": 883, + "loc": { + "start": { + "line": 39, + "column": 21 + }, + "end": { + "line": 41, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 835, + "end": 873, + "loc": { + "start": { + "line": 40, + "column": 12 + }, + "end": { + "line": 40, + "column": 50 + } + }, + "expression": { + "type": "CallExpression", + "start": 835, + "end": 873, + "loc": { + "start": { + "line": 40, + "column": 12 + }, + "end": { + "line": 40, + "column": 50 + } + }, + "callee": { + "type": "Identifier", + "start": 835, + "end": 843, + "loc": { + "start": { + "line": 40, + "column": 12 + }, + "end": { + "line": 40, + "column": 20 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 844, + "end": 872, + "loc": { + "start": { + "line": 40, + "column": 21 + }, + "end": { + "line": 40, + "column": 49 + } + }, + "callee": { + "type": "Identifier", + "start": 844, + "end": 857, + "loc": { + "start": { + "line": 40, + "column": 21 + }, + "end": { + "line": 40, + "column": 34 + } + }, + "name": "_loadResponse" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 858, + "end": 871, + "loc": { + "start": { + "line": 40, + "column": 35 + }, + "end": { + "line": 40, + "column": 48 + } + }, + "object": { + "type": "Identifier", + "start": 858, + "end": 866, + "loc": { + "start": { + "line": 40, + "column": 35 + }, + "end": { + "line": 40, + "column": 43 + } + }, + "name": "response" + }, + "property": { + "type": "Identifier", + "start": 867, + "end": 871, + "loc": { + "start": { + "line": 40, + "column": 44 + }, + "end": { + "line": 40, + "column": 48 + } + }, + "name": "data" + }, + "computed": false + } + ] + } + ] + } + } + ] + } + } + ] + } + } + ] + } + } + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * trending\n * Gets 'trending' data from API\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @returns {Function}\n ", + "start": 334, + "end": 484, + "loc": { + "start": { + "line": 23, + "column": 0 + }, + "end": { + "line": 29, + "column": 3 + } + }, + "range": [ + 334, + 484 + ] + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * trending\n * Gets 'trending' data from API\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @returns {Function}\n ", + "start": 334, + "end": 484, + "loc": { + "start": { + "line": 23, + "column": 0 + }, + "end": { + "line": 29, + "column": 3 + } + }, + "range": [ + 334, + 484 + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/actions/User.js.json b/app/docs/ast/source/actions/User.js.json new file mode 100644 index 0000000..418a83f --- /dev/null +++ b/app/docs/ast/source/actions/User.js.json @@ -0,0 +1,4191 @@ +{ + "type": "Program", + "start": 0, + "end": 2061, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 100, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 30, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 30 + } + }, + "specifiers": [ + { + "type": "ImportNamespaceSpecifier", + "start": 7, + "end": 17, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 17 + } + }, + "local": { + "type": "Identifier", + "start": 12, + "end": 17, + "loc": { + "start": { + "line": 1, + "column": 12 + }, + "end": { + "line": 1, + "column": 17 + } + }, + "name": "axios" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 23, + "end": 30, + "loc": { + "start": { + "line": 1, + "column": 23 + }, + "end": { + "line": 1, + "column": 30 + } + }, + "value": "axios", + "rawValue": "axios", + "raw": "'axios'" + } + }, + { + "type": "ImportDeclaration", + "start": 31, + "end": 58, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 27 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 38, + "end": 44, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "local": { + "type": "Identifier", + "start": 38, + "end": 44, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "name": "config" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 50, + "end": 58, + "loc": { + "start": { + "line": 2, + "column": 19 + }, + "end": { + "line": 2, + "column": 27 + } + }, + "value": "config", + "rawValue": "config", + "raw": "'config'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * FB_LOGIN\n * @type {string}\n ", + "start": 60, + "end": 97, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + }, + "range": [ + 60, + 97 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 98, + "end": 137, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 39 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 105, + "end": 137, + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 39 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 111, + "end": 137, + "loc": { + "start": { + "line": 8, + "column": 13 + }, + "end": { + "line": 8, + "column": 39 + } + }, + "id": { + "type": "Identifier", + "start": 111, + "end": 119, + "loc": { + "start": { + "line": 8, + "column": 13 + }, + "end": { + "line": 8, + "column": 21 + } + }, + "name": "FB_LOGIN", + "leadingComments": null + }, + "init": { + "type": "Literal", + "start": 122, + "end": 137, + "loc": { + "start": { + "line": 8, + "column": 24 + }, + "end": { + "line": 8, + "column": 39 + } + }, + "value": "USER_FB_LOGIN", + "rawValue": "USER_FB_LOGIN", + "raw": "'USER_FB_LOGIN'", + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * FB_LOGIN\n * @type {string}\n ", + "start": 60, + "end": 97, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + }, + "range": [ + 60, + 97 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _fbLoginInitial\n * @param initial\n * @private\n ", + "start": 139, + "end": 195, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + }, + "range": [ + 139, + 195 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * FB_LOGIN\n * @type {string}\n ", + "start": 60, + "end": 97, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + }, + "range": [ + 60, + 97 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _fbLoginInitial\n * @param initial\n * @private\n ", + "start": 139, + "end": 195, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + }, + "range": [ + 139, + 195 + ] + } + ] + }, + { + "type": "VariableDeclaration", + "start": 196, + "end": 263, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 15, + "column": 67 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 202, + "end": 263, + "loc": { + "start": { + "line": 15, + "column": 6 + }, + "end": { + "line": 15, + "column": 67 + } + }, + "id": { + "type": "Identifier", + "start": 202, + "end": 217, + "loc": { + "start": { + "line": 15, + "column": 6 + }, + "end": { + "line": 15, + "column": 21 + } + }, + "name": "_fbLoginInitial", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 220, + "end": 263, + "loc": { + "start": { + "line": 15, + "column": 24 + }, + "end": { + "line": 15, + "column": 67 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 221, + "end": 228, + "loc": { + "start": { + "line": 15, + "column": 25 + }, + "end": { + "line": 15, + "column": 32 + } + }, + "name": "initial" + } + ], + "body": { + "type": "ObjectExpression", + "start": 234, + "end": 262, + "loc": { + "start": { + "line": 15, + "column": 38 + }, + "end": { + "line": 15, + "column": 66 + } + }, + "properties": [ + { + "type": "Property", + "start": 236, + "end": 250, + "loc": { + "start": { + "line": 15, + "column": 40 + }, + "end": { + "line": 15, + "column": 54 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 236, + "end": 240, + "loc": { + "start": { + "line": 15, + "column": 40 + }, + "end": { + "line": 15, + "column": 44 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 242, + "end": 250, + "loc": { + "start": { + "line": 15, + "column": 46 + }, + "end": { + "line": 15, + "column": 54 + } + }, + "name": "FB_LOGIN" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 252, + "end": 259, + "loc": { + "start": { + "line": 15, + "column": 56 + }, + "end": { + "line": 15, + "column": 63 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 252, + "end": 259, + "loc": { + "start": { + "line": 15, + "column": 56 + }, + "end": { + "line": 15, + "column": 63 + } + }, + "name": "initial" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 252, + "end": 259, + "loc": { + "start": { + "line": 15, + "column": 56 + }, + "end": { + "line": 15, + "column": 63 + } + }, + "name": "initial" + } + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _fbLoginInitial\n * @param initial\n * @private\n ", + "start": 139, + "end": 195, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + }, + "range": [ + 139, + 195 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * fbLogin\n * Performs Facebook login, and on success posts return data to API\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param response {Object}\n * @returns {Function}\n ", + "start": 265, + "end": 477, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 24, + "column": 3 + } + }, + "range": [ + 265, + 477 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 478, + "end": 1177, + "loc": { + "start": { + "line": 25, + "column": 0 + }, + "end": { + "line": 46, + "column": 1 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 485, + "end": 1177, + "loc": { + "start": { + "line": 25, + "column": 7 + }, + "end": { + "line": 46, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 494, + "end": 501, + "loc": { + "start": { + "line": 25, + "column": 16 + }, + "end": { + "line": 25, + "column": 23 + } + }, + "name": "fbLogin", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 502, + "end": 510, + "loc": { + "start": { + "line": 25, + "column": 24 + }, + "end": { + "line": 25, + "column": 32 + } + }, + "name": "response" + } + ], + "body": { + "type": "BlockStatement", + "start": 512, + "end": 1177, + "loc": { + "start": { + "line": 25, + "column": 34 + }, + "end": { + "line": 46, + "column": 1 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 518, + "end": 1175, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 45, + "column": 5 + } + }, + "argument": { + "type": "ArrowFunctionExpression", + "start": 525, + "end": 1175, + "loc": { + "start": { + "line": 26, + "column": 11 + }, + "end": { + "line": 45, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 525, + "end": 533, + "loc": { + "start": { + "line": 26, + "column": 11 + }, + "end": { + "line": 26, + "column": 19 + } + }, + "name": "dispatch" + } + ], + "body": { + "type": "BlockStatement", + "start": 537, + "end": 1175, + "loc": { + "start": { + "line": 26, + "column": 23 + }, + "end": { + "line": 45, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 547, + "end": 1169, + "loc": { + "start": { + "line": 27, + "column": 8 + }, + "end": { + "line": 44, + "column": 10 + } + }, + "expression": { + "type": "CallExpression", + "start": 547, + "end": 1169, + "loc": { + "start": { + "line": 27, + "column": 8 + }, + "end": { + "line": 44, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 547, + "end": 553, + "loc": { + "start": { + "line": 27, + "column": 8 + }, + "end": { + "line": 27, + "column": 14 + } + }, + "object": { + "type": "Identifier", + "start": 547, + "end": 549, + "loc": { + "start": { + "line": 27, + "column": 8 + }, + "end": { + "line": 27, + "column": 10 + } + }, + "name": "FB" + }, + "property": { + "type": "Identifier", + "start": 550, + "end": 553, + "loc": { + "start": { + "line": 27, + "column": 11 + }, + "end": { + "line": 27, + "column": 14 + } + }, + "name": "api" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 554, + "end": 559, + "loc": { + "start": { + "line": 27, + "column": 15 + }, + "end": { + "line": 27, + "column": 20 + } + }, + "value": "/me", + "rawValue": "/me", + "raw": "'/me'" + }, + { + "type": "Literal", + "start": 561, + "end": 566, + "loc": { + "start": { + "line": 27, + "column": 22 + }, + "end": { + "line": 27, + "column": 27 + } + }, + "value": "GET", + "rawValue": "GET", + "raw": "'GET'" + }, + { + "type": "ObjectExpression", + "start": 568, + "end": 615, + "loc": { + "start": { + "line": 27, + "column": 29 + }, + "end": { + "line": 29, + "column": 9 + } + }, + "properties": [ + { + "type": "Property", + "start": 582, + "end": 605, + "loc": { + "start": { + "line": 28, + "column": 12 + }, + "end": { + "line": 28, + "column": 35 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 582, + "end": 588, + "loc": { + "start": { + "line": 28, + "column": 12 + }, + "end": { + "line": 28, + "column": 18 + } + }, + "name": "fields" + }, + "value": { + "type": "Literal", + "start": 590, + "end": 605, + "loc": { + "start": { + "line": 28, + "column": 20 + }, + "end": { + "line": 28, + "column": 35 + } + }, + "value": "id,name,email", + "rawValue": "id,name,email", + "raw": "'id,name,email'" + }, + "kind": "init" + } + ] + }, + { + "type": "FunctionExpression", + "start": 617, + "end": 1168, + "loc": { + "start": { + "line": 29, + "column": 11 + }, + "end": { + "line": 44, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 626, + "end": 628, + "loc": { + "start": { + "line": 29, + "column": 20 + }, + "end": { + "line": 29, + "column": 22 + } + }, + "name": "me" + } + ], + "body": { + "type": "BlockStatement", + "start": 630, + "end": 1168, + "loc": { + "start": { + "line": 29, + "column": 24 + }, + "end": { + "line": 44, + "column": 9 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 644, + "end": 673, + "loc": { + "start": { + "line": 30, + "column": 12 + }, + "end": { + "line": 30, + "column": 41 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 648, + "end": 673, + "loc": { + "start": { + "line": 30, + "column": 16 + }, + "end": { + "line": 30, + "column": 41 + } + }, + "id": { + "type": "Identifier", + "start": 648, + "end": 652, + "loc": { + "start": { + "line": 30, + "column": 16 + }, + "end": { + "line": 30, + "column": 20 + } + }, + "name": "name" + }, + "init": { + "type": "CallExpression", + "start": 655, + "end": 673, + "loc": { + "start": { + "line": 30, + "column": 23 + }, + "end": { + "line": 30, + "column": 41 + } + }, + "callee": { + "type": "MemberExpression", + "start": 655, + "end": 668, + "loc": { + "start": { + "line": 30, + "column": 23 + }, + "end": { + "line": 30, + "column": 36 + } + }, + "object": { + "type": "MemberExpression", + "start": 655, + "end": 662, + "loc": { + "start": { + "line": 30, + "column": 23 + }, + "end": { + "line": 30, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 655, + "end": 657, + "loc": { + "start": { + "line": 30, + "column": 23 + }, + "end": { + "line": 30, + "column": 25 + } + }, + "name": "me" + }, + "property": { + "type": "Identifier", + "start": 658, + "end": 662, + "loc": { + "start": { + "line": 30, + "column": 26 + }, + "end": { + "line": 30, + "column": 30 + } + }, + "name": "name" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 663, + "end": 668, + "loc": { + "start": { + "line": 30, + "column": 31 + }, + "end": { + "line": 30, + "column": 36 + } + }, + "name": "split" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 669, + "end": 672, + "loc": { + "start": { + "line": 30, + "column": 37 + }, + "end": { + "line": 30, + "column": 40 + } + }, + "value": " ", + "rawValue": " ", + "raw": "' '" + } + ] + } + } + ], + "kind": "let" + }, + { + "type": "ExpressionStatement", + "start": 686, + "end": 1158, + "loc": { + "start": { + "line": 31, + "column": 12 + }, + "end": { + "line": 43, + "column": 14 + } + }, + "expression": { + "type": "CallExpression", + "start": 686, + "end": 1158, + "loc": { + "start": { + "line": 31, + "column": 12 + }, + "end": { + "line": 43, + "column": 14 + } + }, + "callee": { + "type": "MemberExpression", + "start": 686, + "end": 1074, + "loc": { + "start": { + "line": 31, + "column": 12 + }, + "end": { + "line": 41, + "column": 18 + } + }, + "object": { + "type": "CallExpression", + "start": 686, + "end": 1055, + "loc": { + "start": { + "line": 31, + "column": 12 + }, + "end": { + "line": 40, + "column": 14 + } + }, + "callee": { + "type": "MemberExpression", + "start": 686, + "end": 913, + "loc": { + "start": { + "line": 31, + "column": 12 + }, + "end": { + "line": 37, + "column": 17 + } + }, + "object": { + "type": "CallExpression", + "start": 686, + "end": 895, + "loc": { + "start": { + "line": 31, + "column": 12 + }, + "end": { + "line": 36, + "column": 14 + } + }, + "callee": { + "type": "MemberExpression", + "start": 686, + "end": 696, + "loc": { + "start": { + "line": 31, + "column": 12 + }, + "end": { + "line": 31, + "column": 22 + } + }, + "object": { + "type": "Identifier", + "start": 686, + "end": 691, + "loc": { + "start": { + "line": 31, + "column": 12 + }, + "end": { + "line": 31, + "column": 17 + } + }, + "name": "axios" + }, + "property": { + "type": "Identifier", + "start": 692, + "end": 696, + "loc": { + "start": { + "line": 31, + "column": 18 + }, + "end": { + "line": 31, + "column": 22 + } + }, + "name": "post" + }, + "computed": false + }, + "arguments": [ + { + "type": "TemplateLiteral", + "start": 697, + "end": 726, + "loc": { + "start": { + "line": 31, + "column": 23 + }, + "end": { + "line": 31, + "column": 52 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 700, + "end": 718, + "loc": { + "start": { + "line": 31, + "column": 26 + }, + "end": { + "line": 31, + "column": 44 + } + }, + "object": { + "type": "MemberExpression", + "start": 700, + "end": 710, + "loc": { + "start": { + "line": 31, + "column": 26 + }, + "end": { + "line": 31, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 700, + "end": 706, + "loc": { + "start": { + "line": 31, + "column": 26 + }, + "end": { + "line": 31, + "column": 32 + } + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 707, + "end": 710, + "loc": { + "start": { + "line": 31, + "column": 33 + }, + "end": { + "line": 31, + "column": 36 + } + }, + "name": "api" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 711, + "end": 718, + "loc": { + "start": { + "line": 31, + "column": 37 + }, + "end": { + "line": 31, + "column": 44 + } + }, + "name": "baseUrl" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 698, + "end": 698, + "loc": { + "start": { + "line": 31, + "column": 24 + }, + "end": { + "line": 31, + "column": 24 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 719, + "end": 725, + "loc": { + "start": { + "line": 31, + "column": 45 + }, + "end": { + "line": 31, + "column": 51 + } + }, + "value": { + "raw": "/users", + "cooked": "/users" + }, + "tail": true + } + ] + }, + { + "type": "ObjectExpression", + "start": 728, + "end": 894, + "loc": { + "start": { + "line": 31, + "column": 54 + }, + "end": { + "line": 36, + "column": 13 + } + }, + "properties": [ + { + "type": "Property", + "start": 746, + "end": 764, + "loc": { + "start": { + "line": 32, + "column": 16 + }, + "end": { + "line": 32, + "column": 34 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 746, + "end": 752, + "loc": { + "start": { + "line": 32, + "column": 16 + }, + "end": { + "line": 32, + "column": 22 + } + }, + "name": "fb_uid" + }, + "value": { + "type": "MemberExpression", + "start": 759, + "end": 764, + "loc": { + "start": { + "line": 32, + "column": 29 + }, + "end": { + "line": 32, + "column": 34 + } + }, + "object": { + "type": "Identifier", + "start": 759, + "end": 761, + "loc": { + "start": { + "line": 32, + "column": 29 + }, + "end": { + "line": 32, + "column": 31 + } + }, + "name": "me" + }, + "property": { + "type": "Identifier", + "start": 762, + "end": 764, + "loc": { + "start": { + "line": 32, + "column": 32 + }, + "end": { + "line": 32, + "column": 34 + } + }, + "name": "id" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 782, + "end": 802, + "loc": { + "start": { + "line": 33, + "column": 16 + }, + "end": { + "line": 33, + "column": 36 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 782, + "end": 792, + "loc": { + "start": { + "line": 33, + "column": 16 + }, + "end": { + "line": 33, + "column": 26 + } + }, + "name": "first_name" + }, + "value": { + "type": "MemberExpression", + "start": 795, + "end": 802, + "loc": { + "start": { + "line": 33, + "column": 29 + }, + "end": { + "line": 33, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 795, + "end": 799, + "loc": { + "start": { + "line": 33, + "column": 29 + }, + "end": { + "line": 33, + "column": 33 + } + }, + "name": "name" + }, + "property": { + "type": "Literal", + "start": 800, + "end": 801, + "loc": { + "start": { + "line": 33, + "column": 34 + }, + "end": { + "line": 33, + "column": 35 + } + }, + "value": 0, + "rawValue": 0, + "raw": "0" + }, + "computed": true + }, + "kind": "init" + }, + { + "type": "Property", + "start": 820, + "end": 840, + "loc": { + "start": { + "line": 34, + "column": 16 + }, + "end": { + "line": 34, + "column": 36 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 820, + "end": 829, + "loc": { + "start": { + "line": 34, + "column": 16 + }, + "end": { + "line": 34, + "column": 25 + } + }, + "name": "last_name" + }, + "value": { + "type": "MemberExpression", + "start": 833, + "end": 840, + "loc": { + "start": { + "line": 34, + "column": 29 + }, + "end": { + "line": 34, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 833, + "end": 837, + "loc": { + "start": { + "line": 34, + "column": 29 + }, + "end": { + "line": 34, + "column": 33 + } + }, + "name": "name" + }, + "property": { + "type": "Literal", + "start": 838, + "end": 839, + "loc": { + "start": { + "line": 34, + "column": 34 + }, + "end": { + "line": 34, + "column": 35 + } + }, + "value": 1, + "rawValue": 1, + "raw": "1" + }, + "computed": true + }, + "kind": "init" + }, + { + "type": "Property", + "start": 858, + "end": 879, + "loc": { + "start": { + "line": 35, + "column": 16 + }, + "end": { + "line": 35, + "column": 37 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 858, + "end": 863, + "loc": { + "start": { + "line": 35, + "column": 16 + }, + "end": { + "line": 35, + "column": 21 + } + }, + "name": "email" + }, + "value": { + "type": "MemberExpression", + "start": 871, + "end": 879, + "loc": { + "start": { + "line": 35, + "column": 29 + }, + "end": { + "line": 35, + "column": 37 + } + }, + "object": { + "type": "Identifier", + "start": 871, + "end": 873, + "loc": { + "start": { + "line": 35, + "column": 29 + }, + "end": { + "line": 35, + "column": 31 + } + }, + "name": "me" + }, + "property": { + "type": "Identifier", + "start": 874, + "end": 879, + "loc": { + "start": { + "line": 35, + "column": 32 + }, + "end": { + "line": 35, + "column": 37 + } + }, + "name": "email" + }, + "computed": false + }, + "kind": "init" + } + ] + } + ] + }, + "property": { + "type": "Identifier", + "start": 909, + "end": 913, + "loc": { + "start": { + "line": 37, + "column": 13 + }, + "end": { + "line": 37, + "column": 17 + } + }, + "name": "then" + }, + "computed": false + }, + "arguments": [ + { + "type": "FunctionExpression", + "start": 914, + "end": 1054, + "loc": { + "start": { + "line": 37, + "column": 18 + }, + "end": { + "line": 40, + "column": 13 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 923, + "end": 926, + "loc": { + "start": { + "line": 37, + "column": 27 + }, + "end": { + "line": 37, + "column": 30 + } + }, + "name": "res" + } + ], + "body": { + "type": "BlockStatement", + "start": 928, + "end": 1054, + "loc": { + "start": { + "line": 37, + "column": 32 + }, + "end": { + "line": 40, + "column": 13 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 946, + "end": 988, + "loc": { + "start": { + "line": 38, + "column": 16 + }, + "end": { + "line": 38, + "column": 58 + } + }, + "expression": { + "type": "CallExpression", + "start": 946, + "end": 987, + "loc": { + "start": { + "line": 38, + "column": 16 + }, + "end": { + "line": 38, + "column": 57 + } + }, + "callee": { + "type": "MemberExpression", + "start": 946, + "end": 966, + "loc": { + "start": { + "line": 38, + "column": 16 + }, + "end": { + "line": 38, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 946, + "end": 958, + "loc": { + "start": { + "line": 38, + "column": 16 + }, + "end": { + "line": 38, + "column": 28 + } + }, + "name": "localStorage" + }, + "property": { + "type": "Identifier", + "start": 959, + "end": 966, + "loc": { + "start": { + "line": 38, + "column": 29 + }, + "end": { + "line": 38, + "column": 36 + } + }, + "name": "setItem" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 967, + "end": 972, + "loc": { + "start": { + "line": 38, + "column": 37 + }, + "end": { + "line": 38, + "column": 42 + } + }, + "value": "jwt", + "rawValue": "jwt", + "raw": "'jwt'" + }, + { + "type": "MemberExpression", + "start": 974, + "end": 986, + "loc": { + "start": { + "line": 38, + "column": 44 + }, + "end": { + "line": 38, + "column": 56 + } + }, + "object": { + "type": "MemberExpression", + "start": 974, + "end": 982, + "loc": { + "start": { + "line": 38, + "column": 44 + }, + "end": { + "line": 38, + "column": 52 + } + }, + "object": { + "type": "Identifier", + "start": 974, + "end": 977, + "loc": { + "start": { + "line": 38, + "column": 44 + }, + "end": { + "line": 38, + "column": 47 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 978, + "end": 982, + "loc": { + "start": { + "line": 38, + "column": 48 + }, + "end": { + "line": 38, + "column": 52 + } + }, + "name": "data" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 983, + "end": 986, + "loc": { + "start": { + "line": 38, + "column": 53 + }, + "end": { + "line": 38, + "column": 56 + } + }, + "name": "jwt" + }, + "computed": false + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 1005, + "end": 1040, + "loc": { + "start": { + "line": 39, + "column": 16 + }, + "end": { + "line": 39, + "column": 51 + } + }, + "expression": { + "type": "CallExpression", + "start": 1005, + "end": 1040, + "loc": { + "start": { + "line": 39, + "column": 16 + }, + "end": { + "line": 39, + "column": 51 + } + }, + "callee": { + "type": "Identifier", + "start": 1005, + "end": 1013, + "loc": { + "start": { + "line": 39, + "column": 16 + }, + "end": { + "line": 39, + "column": 24 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1014, + "end": 1039, + "loc": { + "start": { + "line": 39, + "column": 25 + }, + "end": { + "line": 39, + "column": 50 + } + }, + "callee": { + "type": "Identifier", + "start": 1014, + "end": 1029, + "loc": { + "start": { + "line": 39, + "column": 25 + }, + "end": { + "line": 39, + "column": 40 + } + }, + "name": "_fbLoginInitial" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 1030, + "end": 1038, + "loc": { + "start": { + "line": 39, + "column": 41 + }, + "end": { + "line": 39, + "column": 49 + } + }, + "object": { + "type": "Identifier", + "start": 1030, + "end": 1033, + "loc": { + "start": { + "line": 39, + "column": 41 + }, + "end": { + "line": 39, + "column": 44 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 1034, + "end": 1038, + "loc": { + "start": { + "line": 39, + "column": 45 + }, + "end": { + "line": 39, + "column": 49 + } + }, + "name": "data" + }, + "computed": false + } + ] + } + ] + } + } + ] + } + } + ] + }, + "property": { + "type": "Identifier", + "start": 1069, + "end": 1074, + "loc": { + "start": { + "line": 41, + "column": 13 + }, + "end": { + "line": 41, + "column": 18 + } + }, + "name": "catch" + }, + "computed": false + }, + "arguments": [ + { + "type": "FunctionExpression", + "start": 1075, + "end": 1157, + "loc": { + "start": { + "line": 41, + "column": 19 + }, + "end": { + "line": 43, + "column": 13 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1085, + "end": 1088, + "loc": { + "start": { + "line": 41, + "column": 29 + }, + "end": { + "line": 41, + "column": 32 + } + }, + "name": "res" + } + ], + "body": { + "type": "BlockStatement", + "start": 1090, + "end": 1157, + "loc": { + "start": { + "line": 41, + "column": 34 + }, + "end": { + "line": 43, + "column": 13 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1108, + "end": 1143, + "loc": { + "start": { + "line": 42, + "column": 16 + }, + "end": { + "line": 42, + "column": 51 + } + }, + "expression": { + "type": "CallExpression", + "start": 1108, + "end": 1143, + "loc": { + "start": { + "line": 42, + "column": 16 + }, + "end": { + "line": 42, + "column": 51 + } + }, + "callee": { + "type": "Identifier", + "start": 1108, + "end": 1116, + "loc": { + "start": { + "line": 42, + "column": 16 + }, + "end": { + "line": 42, + "column": 24 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1117, + "end": 1142, + "loc": { + "start": { + "line": 42, + "column": 25 + }, + "end": { + "line": 42, + "column": 50 + } + }, + "callee": { + "type": "Identifier", + "start": 1117, + "end": 1132, + "loc": { + "start": { + "line": 42, + "column": 25 + }, + "end": { + "line": 42, + "column": 40 + } + }, + "name": "_fbLoginInitial" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 1133, + "end": 1141, + "loc": { + "start": { + "line": 42, + "column": 41 + }, + "end": { + "line": 42, + "column": 49 + } + }, + "object": { + "type": "Identifier", + "start": 1133, + "end": 1136, + "loc": { + "start": { + "line": 42, + "column": 41 + }, + "end": { + "line": 42, + "column": 44 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 1137, + "end": 1141, + "loc": { + "start": { + "line": 42, + "column": 45 + }, + "end": { + "line": 42, + "column": 49 + } + }, + "name": "data" + }, + "computed": false + } + ] + } + ] + } + } + ] + } + } + ] + } + } + ] + } + } + ] + } + } + ] + } + } + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * fbLogin\n * Performs Facebook login, and on success posts return data to API\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param response {Object}\n * @returns {Function}\n ", + "start": 265, + "end": 477, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 24, + "column": 3 + } + }, + "range": [ + 265, + 477 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * LOGOUT\n * @type {string}\n ", + "start": 1179, + "end": 1214, + "loc": { + "start": { + "line": 48, + "column": 0 + }, + "end": { + "line": 51, + "column": 3 + } + }, + "range": [ + 1179, + 1214 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * fbLogin\n * Performs Facebook login, and on success posts return data to API\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param response {Object}\n * @returns {Function}\n ", + "start": 265, + "end": 477, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 24, + "column": 3 + } + }, + "range": [ + 265, + 477 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * LOGOUT\n * @type {string}\n ", + "start": 1179, + "end": 1214, + "loc": { + "start": { + "line": 48, + "column": 0 + }, + "end": { + "line": 51, + "column": 3 + } + }, + "range": [ + 1179, + 1214 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 1215, + "end": 1250, + "loc": { + "start": { + "line": 52, + "column": 0 + }, + "end": { + "line": 52, + "column": 35 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 1222, + "end": 1250, + "loc": { + "start": { + "line": 52, + "column": 7 + }, + "end": { + "line": 52, + "column": 35 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1228, + "end": 1250, + "loc": { + "start": { + "line": 52, + "column": 13 + }, + "end": { + "line": 52, + "column": 35 + } + }, + "id": { + "type": "Identifier", + "start": 1228, + "end": 1234, + "loc": { + "start": { + "line": 52, + "column": 13 + }, + "end": { + "line": 52, + "column": 19 + } + }, + "name": "LOGOUT", + "leadingComments": null + }, + "init": { + "type": "Literal", + "start": 1237, + "end": 1250, + "loc": { + "start": { + "line": 52, + "column": 22 + }, + "end": { + "line": 52, + "column": 35 + } + }, + "value": "USER_LOGOUT", + "rawValue": "USER_LOGOUT", + "raw": "'USER_LOGOUT'", + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * LOGOUT\n * @type {string}\n ", + "start": 1179, + "end": 1214, + "loc": { + "start": { + "line": 48, + "column": 0 + }, + "end": { + "line": 51, + "column": 3 + } + }, + "range": [ + 1179, + 1214 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _logoutRequest\n * @private\n ", + "start": 1252, + "end": 1289, + "loc": { + "start": { + "line": 54, + "column": 0 + }, + "end": { + "line": 57, + "column": 3 + } + }, + "range": [ + 1252, + 1289 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * LOGOUT\n * @type {string}\n ", + "start": 1179, + "end": 1214, + "loc": { + "start": { + "line": 48, + "column": 0 + }, + "end": { + "line": 51, + "column": 3 + } + }, + "range": [ + 1179, + 1214 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _logoutRequest\n * @private\n ", + "start": 1252, + "end": 1289, + "loc": { + "start": { + "line": 54, + "column": 0 + }, + "end": { + "line": 57, + "column": 3 + } + }, + "range": [ + 1252, + 1289 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 1290, + "end": 1345, + "loc": { + "start": { + "line": 58, + "column": 0 + }, + "end": { + "line": 58, + "column": 55 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 1297, + "end": 1345, + "loc": { + "start": { + "line": 58, + "column": 7 + }, + "end": { + "line": 58, + "column": 55 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1303, + "end": 1345, + "loc": { + "start": { + "line": 58, + "column": 13 + }, + "end": { + "line": 58, + "column": 55 + } + }, + "id": { + "type": "Identifier", + "start": 1303, + "end": 1317, + "loc": { + "start": { + "line": 58, + "column": 13 + }, + "end": { + "line": 58, + "column": 27 + } + }, + "name": "_logoutRequest", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 1320, + "end": 1345, + "loc": { + "start": { + "line": 58, + "column": 30 + }, + "end": { + "line": 58, + "column": 55 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [], + "body": { + "type": "ObjectExpression", + "start": 1327, + "end": 1344, + "loc": { + "start": { + "line": 58, + "column": 37 + }, + "end": { + "line": 58, + "column": 54 + } + }, + "properties": [ + { + "type": "Property", + "start": 1329, + "end": 1341, + "loc": { + "start": { + "line": 58, + "column": 39 + }, + "end": { + "line": 58, + "column": 51 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1329, + "end": 1333, + "loc": { + "start": { + "line": 58, + "column": 39 + }, + "end": { + "line": 58, + "column": 43 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 1335, + "end": 1341, + "loc": { + "start": { + "line": 58, + "column": 45 + }, + "end": { + "line": 58, + "column": 51 + } + }, + "name": "LOGOUT" + }, + "kind": "init" + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _logoutRequest\n * @private\n ", + "start": 1252, + "end": 1289, + "loc": { + "start": { + "line": 54, + "column": 0 + }, + "end": { + "line": 57, + "column": 3 + } + }, + "range": [ + 1252, + 1289 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _logoutResponse\n * @param response\n * @private\n ", + "start": 1347, + "end": 1404, + "loc": { + "start": { + "line": 60, + "column": 0 + }, + "end": { + "line": 64, + "column": 3 + } + }, + "range": [ + 1347, + 1404 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _logoutRequest\n * @private\n ", + "start": 1252, + "end": 1289, + "loc": { + "start": { + "line": 54, + "column": 0 + }, + "end": { + "line": 57, + "column": 3 + } + }, + "range": [ + 1252, + 1289 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _logoutResponse\n * @param response\n * @private\n ", + "start": 1347, + "end": 1404, + "loc": { + "start": { + "line": 60, + "column": 0 + }, + "end": { + "line": 64, + "column": 3 + } + }, + "range": [ + 1347, + 1404 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 1405, + "end": 1479, + "loc": { + "start": { + "line": 65, + "column": 0 + }, + "end": { + "line": 65, + "column": 74 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 1412, + "end": 1479, + "loc": { + "start": { + "line": 65, + "column": 7 + }, + "end": { + "line": 65, + "column": 74 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1418, + "end": 1479, + "loc": { + "start": { + "line": 65, + "column": 13 + }, + "end": { + "line": 65, + "column": 74 + } + }, + "id": { + "type": "Identifier", + "start": 1418, + "end": 1433, + "loc": { + "start": { + "line": 65, + "column": 13 + }, + "end": { + "line": 65, + "column": 28 + } + }, + "name": "_logoutResponse", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 1436, + "end": 1479, + "loc": { + "start": { + "line": 65, + "column": 31 + }, + "end": { + "line": 65, + "column": 74 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1437, + "end": 1445, + "loc": { + "start": { + "line": 65, + "column": 32 + }, + "end": { + "line": 65, + "column": 40 + } + }, + "name": "response" + } + ], + "body": { + "type": "ObjectExpression", + "start": 1451, + "end": 1478, + "loc": { + "start": { + "line": 65, + "column": 46 + }, + "end": { + "line": 65, + "column": 73 + } + }, + "properties": [ + { + "type": "Property", + "start": 1453, + "end": 1465, + "loc": { + "start": { + "line": 65, + "column": 48 + }, + "end": { + "line": 65, + "column": 60 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1453, + "end": 1457, + "loc": { + "start": { + "line": 65, + "column": 48 + }, + "end": { + "line": 65, + "column": 52 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 1459, + "end": 1465, + "loc": { + "start": { + "line": 65, + "column": 54 + }, + "end": { + "line": 65, + "column": 60 + } + }, + "name": "LOGOUT" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1467, + "end": 1475, + "loc": { + "start": { + "line": 65, + "column": 62 + }, + "end": { + "line": 65, + "column": 70 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 1467, + "end": 1475, + "loc": { + "start": { + "line": 65, + "column": 62 + }, + "end": { + "line": 65, + "column": 70 + } + }, + "name": "response" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 1467, + "end": 1475, + "loc": { + "start": { + "line": 65, + "column": 62 + }, + "end": { + "line": 65, + "column": 70 + } + }, + "name": "response" + } + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _logoutResponse\n * @param response\n * @private\n ", + "start": 1347, + "end": 1404, + "loc": { + "start": { + "line": 60, + "column": 0 + }, + "end": { + "line": 64, + "column": 3 + } + }, + "range": [ + 1347, + 1404 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * logout\n * Performs Facebook logout for a given user\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @returns {Function}\n ", + "start": 1481, + "end": 1641, + "loc": { + "start": { + "line": 67, + "column": 0 + }, + "end": { + "line": 73, + "column": 3 + } + }, + "range": [ + 1481, + 1641 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _logoutResponse\n * @param response\n * @private\n ", + "start": 1347, + "end": 1404, + "loc": { + "start": { + "line": 60, + "column": 0 + }, + "end": { + "line": 64, + "column": 3 + } + }, + "range": [ + 1347, + 1404 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * logout\n * Performs Facebook logout for a given user\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @returns {Function}\n ", + "start": 1481, + "end": 1641, + "loc": { + "start": { + "line": 67, + "column": 0 + }, + "end": { + "line": 73, + "column": 3 + } + }, + "range": [ + 1481, + 1641 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 1642, + "end": 1827, + "loc": { + "start": { + "line": 74, + "column": 0 + }, + "end": { + "line": 81, + "column": 1 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 1649, + "end": 1827, + "loc": { + "start": { + "line": 74, + "column": 7 + }, + "end": { + "line": 81, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 1658, + "end": 1664, + "loc": { + "start": { + "line": 74, + "column": 16 + }, + "end": { + "line": 74, + "column": 22 + } + }, + "name": "logout", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 1667, + "end": 1827, + "loc": { + "start": { + "line": 74, + "column": 25 + }, + "end": { + "line": 81, + "column": 1 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 1673, + "end": 1825, + "loc": { + "start": { + "line": 75, + "column": 4 + }, + "end": { + "line": 80, + "column": 5 + } + }, + "argument": { + "type": "ArrowFunctionExpression", + "start": 1680, + "end": 1825, + "loc": { + "start": { + "line": 75, + "column": 11 + }, + "end": { + "line": 80, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1680, + "end": 1688, + "loc": { + "start": { + "line": 75, + "column": 11 + }, + "end": { + "line": 75, + "column": 19 + } + }, + "name": "dispatch" + } + ], + "body": { + "type": "BlockStatement", + "start": 1692, + "end": 1825, + "loc": { + "start": { + "line": 75, + "column": 23 + }, + "end": { + "line": 80, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1702, + "end": 1728, + "loc": { + "start": { + "line": 76, + "column": 8 + }, + "end": { + "line": 76, + "column": 34 + } + }, + "expression": { + "type": "CallExpression", + "start": 1702, + "end": 1728, + "loc": { + "start": { + "line": 76, + "column": 8 + }, + "end": { + "line": 76, + "column": 34 + } + }, + "callee": { + "type": "Identifier", + "start": 1702, + "end": 1710, + "loc": { + "start": { + "line": 76, + "column": 8 + }, + "end": { + "line": 76, + "column": 16 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1711, + "end": 1727, + "loc": { + "start": { + "line": 76, + "column": 17 + }, + "end": { + "line": 76, + "column": 33 + } + }, + "callee": { + "type": "Identifier", + "start": 1711, + "end": 1725, + "loc": { + "start": { + "line": 76, + "column": 17 + }, + "end": { + "line": 76, + "column": 31 + } + }, + "name": "_logoutRequest" + }, + "arguments": [] + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 1737, + "end": 1819, + "loc": { + "start": { + "line": 77, + "column": 8 + }, + "end": { + "line": 79, + "column": 10 + } + }, + "expression": { + "type": "CallExpression", + "start": 1737, + "end": 1819, + "loc": { + "start": { + "line": 77, + "column": 8 + }, + "end": { + "line": 79, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1737, + "end": 1746, + "loc": { + "start": { + "line": 77, + "column": 8 + }, + "end": { + "line": 77, + "column": 17 + } + }, + "object": { + "type": "Identifier", + "start": 1737, + "end": 1739, + "loc": { + "start": { + "line": 77, + "column": 8 + }, + "end": { + "line": 77, + "column": 10 + } + }, + "name": "FB" + }, + "property": { + "type": "Identifier", + "start": 1740, + "end": 1746, + "loc": { + "start": { + "line": 77, + "column": 11 + }, + "end": { + "line": 77, + "column": 17 + } + }, + "name": "logout" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 1747, + "end": 1818, + "loc": { + "start": { + "line": 77, + "column": 18 + }, + "end": { + "line": 79, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1747, + "end": 1755, + "loc": { + "start": { + "line": 77, + "column": 18 + }, + "end": { + "line": 77, + "column": 26 + } + }, + "name": "response" + } + ], + "body": { + "type": "BlockStatement", + "start": 1759, + "end": 1818, + "loc": { + "start": { + "line": 77, + "column": 30 + }, + "end": { + "line": 79, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1773, + "end": 1808, + "loc": { + "start": { + "line": 78, + "column": 12 + }, + "end": { + "line": 78, + "column": 47 + } + }, + "expression": { + "type": "CallExpression", + "start": 1773, + "end": 1808, + "loc": { + "start": { + "line": 78, + "column": 12 + }, + "end": { + "line": 78, + "column": 47 + } + }, + "callee": { + "type": "Identifier", + "start": 1773, + "end": 1781, + "loc": { + "start": { + "line": 78, + "column": 12 + }, + "end": { + "line": 78, + "column": 20 + } + }, + "name": "dispatch" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1782, + "end": 1807, + "loc": { + "start": { + "line": 78, + "column": 21 + }, + "end": { + "line": 78, + "column": 46 + } + }, + "callee": { + "type": "Identifier", + "start": 1782, + "end": 1797, + "loc": { + "start": { + "line": 78, + "column": 21 + }, + "end": { + "line": 78, + "column": 36 + } + }, + "name": "_logoutResponse" + }, + "arguments": [ + { + "type": "Identifier", + "start": 1798, + "end": 1806, + "loc": { + "start": { + "line": 78, + "column": 37 + }, + "end": { + "line": 78, + "column": 45 + } + }, + "name": "response" + } + ] + } + ] + } + } + ] + } + } + ] + } + } + ] + } + } + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * logout\n * Performs Facebook logout for a given user\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @returns {Function}\n ", + "start": 1481, + "end": 1641, + "loc": { + "start": { + "line": 67, + "column": 0 + }, + "end": { + "line": 73, + "column": 3 + } + }, + "range": [ + 1481, + 1641 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * FOLLOW\n * @type {string}\n ", + "start": 1829, + "end": 1864, + "loc": { + "start": { + "line": 83, + "column": 0 + }, + "end": { + "line": 86, + "column": 3 + } + }, + "range": [ + 1829, + 1864 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * logout\n * Performs Facebook logout for a given user\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @returns {Function}\n ", + "start": 1481, + "end": 1641, + "loc": { + "start": { + "line": 67, + "column": 0 + }, + "end": { + "line": 73, + "column": 3 + } + }, + "range": [ + 1481, + 1641 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * FOLLOW\n * @type {string}\n ", + "start": 1829, + "end": 1864, + "loc": { + "start": { + "line": 83, + "column": 0 + }, + "end": { + "line": 86, + "column": 3 + } + }, + "range": [ + 1829, + 1864 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 1865, + "end": 1900, + "loc": { + "start": { + "line": 87, + "column": 0 + }, + "end": { + "line": 87, + "column": 35 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 1872, + "end": 1900, + "loc": { + "start": { + "line": 87, + "column": 7 + }, + "end": { + "line": 87, + "column": 35 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1878, + "end": 1900, + "loc": { + "start": { + "line": 87, + "column": 13 + }, + "end": { + "line": 87, + "column": 35 + } + }, + "id": { + "type": "Identifier", + "start": 1878, + "end": 1884, + "loc": { + "start": { + "line": 87, + "column": 13 + }, + "end": { + "line": 87, + "column": 19 + } + }, + "name": "FOLLOW", + "leadingComments": null + }, + "init": { + "type": "Literal", + "start": 1887, + "end": 1900, + "loc": { + "start": { + "line": 87, + "column": 22 + }, + "end": { + "line": 87, + "column": 35 + } + }, + "value": "USER_FOLLOW", + "rawValue": "USER_FOLLOW", + "raw": "'USER_FOLLOW'", + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * FOLLOW\n * @type {string}\n ", + "start": 1829, + "end": 1864, + "loc": { + "start": { + "line": 83, + "column": 0 + }, + "end": { + "line": 86, + "column": 3 + } + }, + "range": [ + 1829, + 1864 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * follow\n * @param user\n * @returns {{type: string, user: *}}\n ", + "start": 1902, + "end": 1972, + "loc": { + "start": { + "line": 89, + "column": 0 + }, + "end": { + "line": 93, + "column": 3 + } + }, + "range": [ + 1902, + 1972 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * FOLLOW\n * @type {string}\n ", + "start": 1829, + "end": 1864, + "loc": { + "start": { + "line": 83, + "column": 0 + }, + "end": { + "line": 86, + "column": 3 + } + }, + "range": [ + 1829, + 1864 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * follow\n * @param user\n * @returns {{type: string, user: *}}\n ", + "start": 1902, + "end": 1972, + "loc": { + "start": { + "line": 89, + "column": 0 + }, + "end": { + "line": 93, + "column": 3 + } + }, + "range": [ + 1902, + 1972 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 1973, + "end": 2060, + "loc": { + "start": { + "line": 94, + "column": 0 + }, + "end": { + "line": 99, + "column": 1 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 1980, + "end": 2060, + "loc": { + "start": { + "line": 94, + "column": 7 + }, + "end": { + "line": 99, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 1989, + "end": 1995, + "loc": { + "start": { + "line": 94, + "column": 16 + }, + "end": { + "line": 94, + "column": 22 + } + }, + "name": "follow", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1996, + "end": 2000, + "loc": { + "start": { + "line": 94, + "column": 23 + }, + "end": { + "line": 94, + "column": 27 + } + }, + "name": "user" + } + ], + "body": { + "type": "BlockStatement", + "start": 2002, + "end": 2060, + "loc": { + "start": { + "line": 94, + "column": 29 + }, + "end": { + "line": 99, + "column": 1 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 2008, + "end": 2058, + "loc": { + "start": { + "line": 95, + "column": 4 + }, + "end": { + "line": 98, + "column": 5 + } + }, + "argument": { + "type": "ObjectExpression", + "start": 2015, + "end": 2058, + "loc": { + "start": { + "line": 95, + "column": 11 + }, + "end": { + "line": 98, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 2025, + "end": 2037, + "loc": { + "start": { + "line": 96, + "column": 8 + }, + "end": { + "line": 96, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2025, + "end": 2029, + "loc": { + "start": { + "line": 96, + "column": 8 + }, + "end": { + "line": 96, + "column": 12 + } + }, + "name": "type" + }, + "value": { + "type": "Identifier", + "start": 2031, + "end": 2037, + "loc": { + "start": { + "line": 96, + "column": 14 + }, + "end": { + "line": 96, + "column": 20 + } + }, + "name": "FOLLOW" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 2047, + "end": 2051, + "loc": { + "start": { + "line": 97, + "column": 8 + }, + "end": { + "line": 97, + "column": 12 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 2047, + "end": 2051, + "loc": { + "start": { + "line": 97, + "column": 8 + }, + "end": { + "line": 97, + "column": 12 + } + }, + "name": "user" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 2047, + "end": 2051, + "loc": { + "start": { + "line": 97, + "column": 8 + }, + "end": { + "line": 97, + "column": 12 + } + }, + "name": "user" + } + } + ] + } + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * follow\n * @param user\n * @returns {{type: string, user: *}}\n ", + "start": 1902, + "end": 1972, + "loc": { + "start": { + "line": 89, + "column": 0 + }, + "end": { + "line": 93, + "column": 3 + } + }, + "range": [ + 1902, + 1972 + ] + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * follow\n * @param user\n * @returns {{type: string, user: *}}\n ", + "start": 1902, + "end": 1972, + "loc": { + "start": { + "line": 89, + "column": 0 + }, + "end": { + "line": 93, + "column": 3 + } + }, + "range": [ + 1902, + 1972 + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/actions/index.js.json b/app/docs/ast/source/actions/index.js.json new file mode 100644 index 0000000..3613f17 --- /dev/null +++ b/app/docs/ast/source/actions/index.js.json @@ -0,0 +1,1008 @@ +{ + "type": "Program", + "start": 0, + "end": 541, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 16, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ExportNamedDeclaration", + "start": 0, + "end": 28, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 28 + } + }, + "specifiers": [ + { + "type": "Identifier", + "start": 7, + "end": 15, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 15 + } + }, + "exported": { + "type": "Identifier", + "start": 12, + "end": 15, + "loc": { + "start": { + "line": 1, + "column": 12 + }, + "end": { + "line": 1, + "column": 15 + } + }, + "name": "App" + } + } + ], + "source": { + "type": "Literal", + "start": 21, + "end": 28, + "loc": { + "start": { + "line": 1, + "column": 21 + }, + "end": { + "line": 1, + "column": 28 + } + }, + "value": "./App", + "rawValue": "./App", + "raw": "'./App'" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 29, + "end": 59, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 30 + } + }, + "specifiers": [ + { + "type": "Identifier", + "start": 36, + "end": 45, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "exported": { + "type": "Identifier", + "start": 41, + "end": 45, + "loc": { + "start": { + "line": 2, + "column": 12 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "name": "User" + } + } + ], + "source": { + "type": "Literal", + "start": 51, + "end": 59, + "loc": { + "start": { + "line": 2, + "column": 22 + }, + "end": { + "line": 2, + "column": 30 + } + }, + "value": "./User", + "rawValue": "./User", + "raw": "'./User'" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 60, + "end": 98, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 38 + } + }, + "specifiers": [ + { + "type": "Identifier", + "start": 67, + "end": 80, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 20 + } + }, + "exported": { + "type": "Identifier", + "start": 72, + "end": 80, + "loc": { + "start": { + "line": 3, + "column": 12 + }, + "end": { + "line": 3, + "column": 20 + } + }, + "name": "Activity" + } + } + ], + "source": { + "type": "Literal", + "start": 86, + "end": 98, + "loc": { + "start": { + "line": 3, + "column": 26 + }, + "end": { + "line": 3, + "column": 38 + } + }, + "value": "./Activity", + "rawValue": "./Activity", + "raw": "'./Activity'" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 99, + "end": 133, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 34 + } + }, + "specifiers": [ + { + "type": "Identifier", + "start": 106, + "end": 117, + "loc": { + "start": { + "line": 4, + "column": 7 + }, + "end": { + "line": 4, + "column": 18 + } + }, + "exported": { + "type": "Identifier", + "start": 111, + "end": 117, + "loc": { + "start": { + "line": 4, + "column": 12 + }, + "end": { + "line": 4, + "column": 18 + } + }, + "name": "Photos" + } + } + ], + "source": { + "type": "Literal", + "start": 123, + "end": 133, + "loc": { + "start": { + "line": 4, + "column": 24 + }, + "end": { + "line": 4, + "column": 34 + } + }, + "value": "./Photos", + "rawValue": "./Photos", + "raw": "'./Photos'" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 134, + "end": 172, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 38 + } + }, + "specifiers": [ + { + "type": "Identifier", + "start": 141, + "end": 154, + "loc": { + "start": { + "line": 5, + "column": 7 + }, + "end": { + "line": 5, + "column": 20 + } + }, + "exported": { + "type": "Identifier", + "start": 146, + "end": 154, + "loc": { + "start": { + "line": 5, + "column": 12 + }, + "end": { + "line": 5, + "column": 20 + } + }, + "name": "Comments" + } + } + ], + "source": { + "type": "Literal", + "start": 160, + "end": 172, + "loc": { + "start": { + "line": 5, + "column": 26 + }, + "end": { + "line": 5, + "column": 38 + } + }, + "value": "./Comments", + "rawValue": "./Comments", + "raw": "'./Comments'" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 173, + "end": 203, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 6, + "column": 30 + } + }, + "specifiers": [ + { + "type": "Identifier", + "start": 180, + "end": 189, + "loc": { + "start": { + "line": 6, + "column": 7 + }, + "end": { + "line": 6, + "column": 16 + } + }, + "exported": { + "type": "Identifier", + "start": 185, + "end": 189, + "loc": { + "start": { + "line": 6, + "column": 12 + }, + "end": { + "line": 6, + "column": 16 + } + }, + "name": "Like" + } + } + ], + "source": { + "type": "Literal", + "start": 195, + "end": 203, + "loc": { + "start": { + "line": 6, + "column": 22 + }, + "end": { + "line": 6, + "column": 30 + } + }, + "value": "./Like", + "rawValue": "./Like", + "raw": "'./Like'" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 204, + "end": 236, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 32 + } + }, + "specifiers": [ + { + "type": "Identifier", + "start": 211, + "end": 221, + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 17 + } + }, + "exported": { + "type": "Identifier", + "start": 216, + "end": 221, + "loc": { + "start": { + "line": 7, + "column": 12 + }, + "end": { + "line": 7, + "column": 17 + } + }, + "name": "Photo" + } + } + ], + "source": { + "type": "Literal", + "start": 227, + "end": 236, + "loc": { + "start": { + "line": 7, + "column": 23 + }, + "end": { + "line": 7, + "column": 32 + } + }, + "value": "./Photo", + "rawValue": "./Photo", + "raw": "'./Photo'" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 237, + "end": 269, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 32 + } + }, + "specifiers": [ + { + "type": "Identifier", + "start": 244, + "end": 254, + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 17 + } + }, + "exported": { + "type": "Identifier", + "start": 249, + "end": 254, + "loc": { + "start": { + "line": 8, + "column": 12 + }, + "end": { + "line": 8, + "column": 17 + } + }, + "name": "Stats" + } + } + ], + "source": { + "type": "Literal", + "start": 260, + "end": 269, + "loc": { + "start": { + "line": 8, + "column": 23 + }, + "end": { + "line": 8, + "column": 32 + } + }, + "value": "./Stats", + "rawValue": "./Stats", + "raw": "'./Stats'" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 270, + "end": 306, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 36 + } + }, + "specifiers": [ + { + "type": "Identifier", + "start": 277, + "end": 289, + "loc": { + "start": { + "line": 9, + "column": 7 + }, + "end": { + "line": 9, + "column": 19 + } + }, + "exported": { + "type": "Identifier", + "start": 282, + "end": 289, + "loc": { + "start": { + "line": 9, + "column": 12 + }, + "end": { + "line": 9, + "column": 19 + } + }, + "name": "Explore" + } + } + ], + "source": { + "type": "Literal", + "start": 295, + "end": 306, + "loc": { + "start": { + "line": 9, + "column": 25 + }, + "end": { + "line": 9, + "column": 36 + } + }, + "value": "./Explore", + "rawValue": "./Explore", + "raw": "'./Explore'" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 307, + "end": 345, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 10, + "column": 38 + } + }, + "specifiers": [ + { + "type": "Identifier", + "start": 314, + "end": 327, + "loc": { + "start": { + "line": 10, + "column": 7 + }, + "end": { + "line": 10, + "column": 20 + } + }, + "exported": { + "type": "Identifier", + "start": 319, + "end": 327, + "loc": { + "start": { + "line": 10, + "column": 12 + }, + "end": { + "line": 10, + "column": 20 + } + }, + "name": "Trending" + } + } + ], + "source": { + "type": "Literal", + "start": 333, + "end": 345, + "loc": { + "start": { + "line": 10, + "column": 26 + }, + "end": { + "line": 10, + "column": 38 + } + }, + "value": "./Trending", + "rawValue": "./Trending", + "raw": "'./Trending'" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 346, + "end": 380, + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 11, + "column": 34 + } + }, + "specifiers": [ + { + "type": "Identifier", + "start": 353, + "end": 364, + "loc": { + "start": { + "line": 11, + "column": 7 + }, + "end": { + "line": 11, + "column": 18 + } + }, + "exported": { + "type": "Identifier", + "start": 358, + "end": 364, + "loc": { + "start": { + "line": 11, + "column": 12 + }, + "end": { + "line": 11, + "column": 18 + } + }, + "name": "Search" + } + } + ], + "source": { + "type": "Literal", + "start": 370, + "end": 380, + "loc": { + "start": { + "line": 11, + "column": 24 + }, + "end": { + "line": 11, + "column": 34 + } + }, + "value": "./Search", + "rawValue": "./Search", + "raw": "'./Search'" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 381, + "end": 419, + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 12, + "column": 38 + } + }, + "specifiers": [ + { + "type": "Identifier", + "start": 388, + "end": 401, + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 12, + "column": 20 + } + }, + "exported": { + "type": "Identifier", + "start": 393, + "end": 401, + "loc": { + "start": { + "line": 12, + "column": 12 + }, + "end": { + "line": 12, + "column": 20 + } + }, + "name": "Location" + } + } + ], + "source": { + "type": "Literal", + "start": 407, + "end": 419, + "loc": { + "start": { + "line": 12, + "column": 26 + }, + "end": { + "line": 12, + "column": 38 + } + }, + "value": "./Location", + "rawValue": "./Location", + "raw": "'./Location'" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 420, + "end": 456, + "loc": { + "start": { + "line": 13, + "column": 0 + }, + "end": { + "line": 13, + "column": 36 + } + }, + "specifiers": [ + { + "type": "Identifier", + "start": 427, + "end": 439, + "loc": { + "start": { + "line": 13, + "column": 7 + }, + "end": { + "line": 13, + "column": 19 + } + }, + "exported": { + "type": "Identifier", + "start": 432, + "end": 439, + "loc": { + "start": { + "line": 13, + "column": 12 + }, + "end": { + "line": 13, + "column": 19 + } + }, + "name": "Profile" + } + } + ], + "source": { + "type": "Literal", + "start": 445, + "end": 456, + "loc": { + "start": { + "line": 13, + "column": 25 + }, + "end": { + "line": 13, + "column": 36 + } + }, + "value": "./Profile", + "rawValue": "./Profile", + "raw": "'./Profile'" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 457, + "end": 491, + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 14, + "column": 34 + } + }, + "specifiers": [ + { + "type": "Identifier", + "start": 464, + "end": 475, + "loc": { + "start": { + "line": 14, + "column": 7 + }, + "end": { + "line": 14, + "column": 18 + } + }, + "exported": { + "type": "Identifier", + "start": 469, + "end": 475, + "loc": { + "start": { + "line": 14, + "column": 12 + }, + "end": { + "line": 14, + "column": 18 + } + }, + "name": "Header" + } + } + ], + "source": { + "type": "Literal", + "start": 481, + "end": 491, + "loc": { + "start": { + "line": 14, + "column": 24 + }, + "end": { + "line": 14, + "column": 34 + } + }, + "value": "./Header", + "rawValue": "./Header", + "raw": "'./Header'" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 492, + "end": 540, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 15, + "column": 48 + } + }, + "specifiers": [ + { + "type": "Identifier", + "start": 499, + "end": 517, + "loc": { + "start": { + "line": 15, + "column": 7 + }, + "end": { + "line": 15, + "column": 25 + } + }, + "exported": { + "type": "Identifier", + "start": 504, + "end": 517, + "loc": { + "start": { + "line": 15, + "column": 12 + }, + "end": { + "line": 15, + "column": 25 + } + }, + "name": "Contributions" + } + } + ], + "source": { + "type": "Literal", + "start": 523, + "end": 540, + "loc": { + "start": { + "line": 15, + "column": 31 + }, + "end": { + "line": 15, + "column": 48 + } + }, + "value": "./Contributions", + "rawValue": "./Contributions", + "raw": "'./Contributions'" + } + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/components/Activity/Actor.js.json b/app/docs/ast/source/components/Activity/Actor.js.json new file mode 100644 index 0000000..eba205f --- /dev/null +++ b/app/docs/ast/source/components/Activity/Actor.js.json @@ -0,0 +1,1861 @@ +{ + "type": "Program", + "start": 0, + "end": 791, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 35, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + }, + { + "type": "ImportSpecifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "imported": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + }, + "local": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 33, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 33 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ImportDeclaration", + "start": 41, + "end": 76, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 35 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 50, + "end": 56, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 15 + } + }, + "imported": { + "type": "Identifier", + "start": 50, + "end": 56, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 15 + } + }, + "name": "Avatar" + }, + "local": { + "type": "Identifier", + "start": 50, + "end": 56, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 15 + } + }, + "name": "Avatar" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 64, + "end": 76, + "loc": { + "start": { + "line": 2, + "column": 23 + }, + "end": { + "line": 2, + "column": 35 + } + }, + "value": "components", + "rawValue": "components", + "raw": "'components'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Actor component\n ", + "start": 78, + "end": 104, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + }, + "range": [ + 78, + 104 + ] + } + ] + }, + { + "type": "ExportDefaultDeclaration", + "start": 105, + "end": 790, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 34, + "column": 1 + } + }, + "declaration": { + "type": "ClassDeclaration", + "start": 120, + "end": 790, + "loc": { + "start": { + "line": 7, + "column": 15 + }, + "end": { + "line": 34, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 126, + "end": 131, + "loc": { + "start": { + "line": 7, + "column": 21 + }, + "end": { + "line": 7, + "column": 26 + } + }, + "name": "Actor", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 140, + "end": 149, + "loc": { + "start": { + "line": 7, + "column": 35 + }, + "end": { + "line": 7, + "column": 44 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 150, + "end": 790, + "loc": { + "start": { + "line": 7, + "column": 45 + }, + "end": { + "line": 34, + "column": 1 + } + }, + "body": [ + { + "type": "Identifier", + "start": 277, + "end": 390, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 18, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 284, + "end": 296, + "loc": { + "start": { + "line": 13, + "column": 11 + }, + "end": { + "line": 13, + "column": 23 + } + }, + "name": "defaultProps" + }, + "static": true, + "value": { + "type": "ObjectExpression", + "start": 299, + "end": 390, + "loc": { + "start": { + "line": 13, + "column": 26 + }, + "end": { + "line": 18, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 309, + "end": 319, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 18 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 309, + "end": 315, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 14 + } + }, + "name": "avatar" + }, + "value": { + "type": "Literal", + "start": 317, + "end": 319, + "loc": { + "start": { + "line": 14, + "column": 16 + }, + "end": { + "line": 14, + "column": 18 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 329, + "end": 338, + "loc": { + "start": { + "line": 15, + "column": 8 + }, + "end": { + "line": 15, + "column": 17 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 329, + "end": 334, + "loc": { + "start": { + "line": 15, + "column": 8 + }, + "end": { + "line": 15, + "column": 13 + } + }, + "name": "email" + }, + "value": { + "type": "Literal", + "start": 336, + "end": 338, + "loc": { + "start": { + "line": 15, + "column": 15 + }, + "end": { + "line": 15, + "column": 17 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 348, + "end": 361, + "loc": { + "start": { + "line": 16, + "column": 8 + }, + "end": { + "line": 16, + "column": 21 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 348, + "end": 357, + "loc": { + "start": { + "line": 16, + "column": 8 + }, + "end": { + "line": 16, + "column": 17 + } + }, + "name": "firstName" + }, + "value": { + "type": "Literal", + "start": 359, + "end": 361, + "loc": { + "start": { + "line": 16, + "column": 19 + }, + "end": { + "line": 16, + "column": 21 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 371, + "end": 383, + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 17, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 371, + "end": 379, + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 17, + "column": 16 + } + }, + "name": "lastName" + }, + "value": { + "type": "Literal", + "start": 381, + "end": 383, + "loc": { + "start": { + "line": 17, + "column": 18 + }, + "end": { + "line": 17, + "column": 20 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * defaultProps\n * @type {{avatar: string, email: string, firstName: string, lastName: string}}\n ", + "start": 157, + "end": 272, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 12, + "column": 7 + } + }, + "range": [ + 157, + 272 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 396, + "end": 444, + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 23, + "column": 7 + } + }, + "range": [ + 396, + 444 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 449, + "end": 788, + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 449, + "end": 455, + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 455, + "end": 788, + "loc": { + "start": { + "line": 24, + "column": 10 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 458, + "end": 788, + "loc": { + "start": { + "line": 24, + "column": 13 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 468, + "end": 782, + "loc": { + "start": { + "line": 25, + "column": 8 + }, + "end": { + "line": 32, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 489, + "end": 772, + "loc": { + "start": { + "line": 26, + "column": 12 + }, + "end": { + "line": 31, + "column": 18 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 489, + "end": 512, + "loc": { + "start": { + "line": 26, + "column": 12 + }, + "end": { + "line": 26, + "column": 35 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 494, + "end": 511, + "loc": { + "start": { + "line": 26, + "column": 17 + }, + "end": { + "line": 26, + "column": 34 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 494, + "end": 503, + "loc": { + "start": { + "line": 26, + "column": 17 + }, + "end": { + "line": 26, + "column": 26 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 504, + "end": 511, + "loc": { + "start": { + "line": 26, + "column": 27 + }, + "end": { + "line": 26, + "column": 34 + } + }, + "value": "actor", + "rawValue": null, + "raw": "\"actor\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 490, + "end": 493, + "loc": { + "start": { + "line": 26, + "column": 13 + }, + "end": { + "line": 26, + "column": 16 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 766, + "end": 772, + "loc": { + "start": { + "line": 31, + "column": 12 + }, + "end": { + "line": 31, + "column": 18 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 768, + "end": 771, + "loc": { + "start": { + "line": 31, + "column": 14 + }, + "end": { + "line": 31, + "column": 17 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 512, + "end": 529, + "loc": { + "start": { + "line": 26, + "column": 35 + }, + "end": { + "line": 27, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 529, + "end": 643, + "loc": { + "start": { + "line": 27, + "column": 16 + }, + "end": { + "line": 29, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 529, + "end": 553, + "loc": { + "start": { + "line": 27, + "column": 16 + }, + "end": { + "line": 27, + "column": 40 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 534, + "end": 552, + "loc": { + "start": { + "line": 27, + "column": 21 + }, + "end": { + "line": 27, + "column": 39 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 534, + "end": 543, + "loc": { + "start": { + "line": 27, + "column": 21 + }, + "end": { + "line": 27, + "column": 30 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 544, + "end": 552, + "loc": { + "start": { + "line": 27, + "column": 31 + }, + "end": { + "line": 27, + "column": 39 + } + }, + "value": "avatar", + "rawValue": null, + "raw": "\"avatar\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 530, + "end": 533, + "loc": { + "start": { + "line": 27, + "column": 17 + }, + "end": { + "line": 27, + "column": 20 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 637, + "end": 643, + "loc": { + "start": { + "line": 29, + "column": 16 + }, + "end": { + "line": 29, + "column": 22 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 639, + "end": 642, + "loc": { + "start": { + "line": 29, + "column": 18 + }, + "end": { + "line": 29, + "column": 21 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 553, + "end": 574, + "loc": { + "start": { + "line": 27, + "column": 40 + }, + "end": { + "line": 28, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 574, + "end": 620, + "loc": { + "start": { + "line": 28, + "column": 20 + }, + "end": { + "line": 28, + "column": 66 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 574, + "end": 620, + "loc": { + "start": { + "line": 28, + "column": 20 + }, + "end": { + "line": 28, + "column": 66 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 582, + "end": 606, + "loc": { + "start": { + "line": 28, + "column": 28 + }, + "end": { + "line": 28, + "column": 52 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 582, + "end": 587, + "loc": { + "start": { + "line": 28, + "column": 28 + }, + "end": { + "line": 28, + "column": 33 + } + }, + "name": "email" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 588, + "end": 606, + "loc": { + "start": { + "line": 28, + "column": 34 + }, + "end": { + "line": 28, + "column": 52 + } + }, + "expression": { + "type": "MemberExpression", + "start": 589, + "end": 605, + "loc": { + "start": { + "line": 28, + "column": 35 + }, + "end": { + "line": 28, + "column": 51 + } + }, + "object": { + "type": "MemberExpression", + "start": 589, + "end": 599, + "loc": { + "start": { + "line": 28, + "column": 35 + }, + "end": { + "line": 28, + "column": 45 + } + }, + "object": { + "type": "ThisExpression", + "start": 589, + "end": 593, + "loc": { + "start": { + "line": 28, + "column": 35 + }, + "end": { + "line": 28, + "column": 39 + } + } + }, + "property": { + "type": "Identifier", + "start": 594, + "end": 599, + "loc": { + "start": { + "line": 28, + "column": 40 + }, + "end": { + "line": 28, + "column": 45 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 600, + "end": 605, + "loc": { + "start": { + "line": 28, + "column": 46 + }, + "end": { + "line": 28, + "column": 51 + } + }, + "name": "email" + }, + "computed": false + } + } + }, + { + "type": "JSXAttribute", + "start": 607, + "end": 618, + "loc": { + "start": { + "line": 28, + "column": 53 + }, + "end": { + "line": 28, + "column": 64 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 607, + "end": 613, + "loc": { + "start": { + "line": 28, + "column": 53 + }, + "end": { + "line": 28, + "column": 59 + } + }, + "name": "height" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 614, + "end": 618, + "loc": { + "start": { + "line": 28, + "column": 60 + }, + "end": { + "line": 28, + "column": 64 + } + }, + "expression": { + "type": "Literal", + "start": 615, + "end": 617, + "loc": { + "start": { + "line": 28, + "column": 61 + }, + "end": { + "line": 28, + "column": 63 + } + }, + "value": 50, + "rawValue": 50, + "raw": "50" + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 575, + "end": 581, + "loc": { + "start": { + "line": 28, + "column": 21 + }, + "end": { + "line": 28, + "column": 27 + } + }, + "name": "Avatar" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 620, + "end": 637, + "loc": { + "start": { + "line": 28, + "column": 66 + }, + "end": { + "line": 29, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 643, + "end": 660, + "loc": { + "start": { + "line": 29, + "column": 22 + }, + "end": { + "line": 30, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 660, + "end": 753, + "loc": { + "start": { + "line": 30, + "column": 16 + }, + "end": { + "line": 30, + "column": 109 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 660, + "end": 682, + "loc": { + "start": { + "line": 30, + "column": 16 + }, + "end": { + "line": 30, + "column": 38 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 665, + "end": 681, + "loc": { + "start": { + "line": 30, + "column": 21 + }, + "end": { + "line": 30, + "column": 37 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 665, + "end": 674, + "loc": { + "start": { + "line": 30, + "column": 21 + }, + "end": { + "line": 30, + "column": 30 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 675, + "end": 681, + "loc": { + "start": { + "line": 30, + "column": 31 + }, + "end": { + "line": 30, + "column": 37 + } + }, + "value": "name", + "rawValue": null, + "raw": "\"name\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 661, + "end": 664, + "loc": { + "start": { + "line": 30, + "column": 17 + }, + "end": { + "line": 30, + "column": 20 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 747, + "end": 753, + "loc": { + "start": { + "line": 30, + "column": 103 + }, + "end": { + "line": 30, + "column": 109 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 749, + "end": 752, + "loc": { + "start": { + "line": 30, + "column": 105 + }, + "end": { + "line": 30, + "column": 108 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "JSXExpressionContainer", + "start": 682, + "end": 704, + "loc": { + "start": { + "line": 30, + "column": 38 + }, + "end": { + "line": 30, + "column": 60 + } + }, + "expression": { + "type": "MemberExpression", + "start": 683, + "end": 703, + "loc": { + "start": { + "line": 30, + "column": 39 + }, + "end": { + "line": 30, + "column": 59 + } + }, + "object": { + "type": "MemberExpression", + "start": 683, + "end": 693, + "loc": { + "start": { + "line": 30, + "column": 39 + }, + "end": { + "line": 30, + "column": 49 + } + }, + "object": { + "type": "ThisExpression", + "start": 683, + "end": 687, + "loc": { + "start": { + "line": 30, + "column": 39 + }, + "end": { + "line": 30, + "column": 43 + } + } + }, + "property": { + "type": "Identifier", + "start": 688, + "end": 693, + "loc": { + "start": { + "line": 30, + "column": 44 + }, + "end": { + "line": 30, + "column": 49 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 694, + "end": 703, + "loc": { + "start": { + "line": 30, + "column": 50 + }, + "end": { + "line": 30, + "column": 59 + } + }, + "name": "firstName" + }, + "computed": false + } + }, + { + "type": "Literal", + "start": 704, + "end": 705, + "loc": { + "start": { + "line": 30, + "column": 60 + }, + "end": { + "line": 30, + "column": 61 + } + }, + "value": " ", + "rawValue": null, + "raw": " " + }, + { + "type": "JSXElement", + "start": 705, + "end": 710, + "loc": { + "start": { + "line": 30, + "column": 61 + }, + "end": { + "line": 30, + "column": 66 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 705, + "end": 710, + "loc": { + "start": { + "line": 30, + "column": 61 + }, + "end": { + "line": 30, + "column": 66 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 706, + "end": 708, + "loc": { + "start": { + "line": 30, + "column": 62 + }, + "end": { + "line": 30, + "column": 64 + } + }, + "name": "br" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "JSXExpressionContainer", + "start": 710, + "end": 747, + "loc": { + "start": { + "line": 30, + "column": 66 + }, + "end": { + "line": 30, + "column": 103 + } + }, + "expression": { + "type": "BinaryExpression", + "start": 711, + "end": 746, + "loc": { + "start": { + "line": 30, + "column": 67 + }, + "end": { + "line": 30, + "column": 102 + } + }, + "left": { + "type": "CallExpression", + "start": 711, + "end": 740, + "loc": { + "start": { + "line": 30, + "column": 67 + }, + "end": { + "line": 30, + "column": 96 + } + }, + "callee": { + "type": "MemberExpression", + "start": 711, + "end": 737, + "loc": { + "start": { + "line": 30, + "column": 67 + }, + "end": { + "line": 30, + "column": 93 + } + }, + "object": { + "type": "MemberExpression", + "start": 711, + "end": 730, + "loc": { + "start": { + "line": 30, + "column": 67 + }, + "end": { + "line": 30, + "column": 86 + } + }, + "object": { + "type": "MemberExpression", + "start": 711, + "end": 721, + "loc": { + "start": { + "line": 30, + "column": 67 + }, + "end": { + "line": 30, + "column": 77 + } + }, + "object": { + "type": "ThisExpression", + "start": 711, + "end": 715, + "loc": { + "start": { + "line": 30, + "column": 67 + }, + "end": { + "line": 30, + "column": 71 + } + } + }, + "property": { + "type": "Identifier", + "start": 716, + "end": 721, + "loc": { + "start": { + "line": 30, + "column": 72 + }, + "end": { + "line": 30, + "column": 77 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 722, + "end": 730, + "loc": { + "start": { + "line": 30, + "column": 78 + }, + "end": { + "line": 30, + "column": 86 + } + }, + "name": "lastName" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 731, + "end": 737, + "loc": { + "start": { + "line": 30, + "column": 87 + }, + "end": { + "line": 30, + "column": 93 + } + }, + "name": "charAt" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 738, + "end": 739, + "loc": { + "start": { + "line": 30, + "column": 94 + }, + "end": { + "line": 30, + "column": 95 + } + }, + "value": 0, + "rawValue": 0, + "raw": "0" + } + ] + }, + "operator": "+", + "right": { + "type": "Literal", + "start": 743, + "end": 746, + "loc": { + "start": { + "line": 30, + "column": 99 + }, + "end": { + "line": 30, + "column": 102 + } + }, + "value": ".", + "rawValue": ".", + "raw": "'.'" + } + } + } + ] + }, + { + "type": "Literal", + "start": 753, + "end": 766, + "loc": { + "start": { + "line": 30, + "column": 109 + }, + "end": { + "line": 31, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 396, + "end": 444, + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 23, + "column": 7 + } + }, + "range": [ + 396, + 444 + ] + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Actor component\n ", + "start": 78, + "end": 104, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + }, + "range": [ + 78, + 104 + ] + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Actor component\n ", + "start": 78, + "end": 104, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + }, + "range": [ + 78, + 104 + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/components/Activity/Commented.js.json b/app/docs/ast/source/components/Activity/Commented.js.json new file mode 100644 index 0000000..dbea90c --- /dev/null +++ b/app/docs/ast/source/components/Activity/Commented.js.json @@ -0,0 +1,1351 @@ +{ + "type": "Program", + "start": 0, + "end": 639, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 35, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + }, + { + "type": "ImportSpecifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "imported": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + }, + "local": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 33, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 33 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ImportDeclaration", + "start": 42, + "end": 69, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 27 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 49, + "end": 54, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 49, + "end": 54, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 12 + } + }, + "name": "Actor" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 60, + "end": 69, + "loc": { + "start": { + "line": 3, + "column": 18 + }, + "end": { + "line": 3, + "column": 27 + } + }, + "value": "./Actor", + "rawValue": "./Actor", + "raw": "'./Actor'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Commented component\n ", + "start": 72, + "end": 102, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + }, + "range": [ + 72, + 102 + ] + } + ] + }, + { + "type": "ExportDefaultDeclaration", + "start": 103, + "end": 638, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 34, + "column": 1 + } + }, + "declaration": { + "type": "ClassDeclaration", + "start": 118, + "end": 638, + "loc": { + "start": { + "line": 9, + "column": 15 + }, + "end": { + "line": 34, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 124, + "end": 133, + "loc": { + "start": { + "line": 9, + "column": 21 + }, + "end": { + "line": 9, + "column": 30 + } + }, + "name": "Commented", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 142, + "end": 151, + "loc": { + "start": { + "line": 9, + "column": 39 + }, + "end": { + "line": 9, + "column": 48 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 152, + "end": 638, + "loc": { + "start": { + "line": 9, + "column": 49 + }, + "end": { + "line": 34, + "column": 1 + } + }, + "body": [ + { + "type": "Identifier", + "start": 268, + "end": 382, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 20, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 275, + "end": 287, + "loc": { + "start": { + "line": 15, + "column": 11 + }, + "end": { + "line": 15, + "column": 23 + } + }, + "name": "defaultProps" + }, + "static": true, + "value": { + "type": "ObjectExpression", + "start": 290, + "end": 382, + "loc": { + "start": { + "line": 15, + "column": 26 + }, + "end": { + "line": 20, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 300, + "end": 309, + "loc": { + "start": { + "line": 16, + "column": 8 + }, + "end": { + "line": 16, + "column": 17 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 300, + "end": 305, + "loc": { + "start": { + "line": 16, + "column": 8 + }, + "end": { + "line": 16, + "column": 13 + } + }, + "name": "actor" + }, + "value": { + "type": "ObjectExpression", + "start": 307, + "end": 309, + "loc": { + "start": { + "line": 16, + "column": 15 + }, + "end": { + "line": 16, + "column": 17 + } + }, + "properties": [] + }, + "kind": "init" + }, + { + "type": "Property", + "start": 319, + "end": 327, + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 17, + "column": 16 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 319, + "end": 323, + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 17, + "column": 12 + } + }, + "name": "user" + }, + "value": { + "type": "ObjectExpression", + "start": 325, + "end": 327, + "loc": { + "start": { + "line": 17, + "column": 14 + }, + "end": { + "line": 17, + "column": 16 + } + }, + "properties": [] + }, + "kind": "init" + }, + { + "type": "Property", + "start": 337, + "end": 352, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 23 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 337, + "end": 346, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 17 + } + }, + "name": "timestamp" + }, + "value": { + "type": "Literal", + "start": 348, + "end": 352, + "loc": { + "start": { + "line": 18, + "column": 19 + }, + "end": { + "line": 18, + "column": 23 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 362, + "end": 375, + "loc": { + "start": { + "line": 19, + "column": 8 + }, + "end": { + "line": 19, + "column": 21 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 362, + "end": 371, + "loc": { + "start": { + "line": 19, + "column": 8 + }, + "end": { + "line": 19, + "column": 17 + } + }, + "name": "timeSince" + }, + "value": { + "type": "Literal", + "start": 373, + "end": 375, + "loc": { + "start": { + "line": 19, + "column": 19 + }, + "end": { + "line": 19, + "column": 21 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * defaultProps\n * @type {{actor: {}, user: {}, timestamp: null, timeSince: string}}\n ", + "start": 159, + "end": 263, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 14, + "column": 7 + } + }, + "range": [ + 159, + 263 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 388, + "end": 436, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 25, + "column": 7 + } + }, + "range": [ + 388, + 436 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 441, + "end": 636, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 441, + "end": 447, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 447, + "end": 636, + "loc": { + "start": { + "line": 26, + "column": 10 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 450, + "end": 636, + "loc": { + "start": { + "line": 26, + "column": 13 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 460, + "end": 630, + "loc": { + "start": { + "line": 27, + "column": 8 + }, + "end": { + "line": 32, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 481, + "end": 620, + "loc": { + "start": { + "line": 28, + "column": 12 + }, + "end": { + "line": 31, + "column": 18 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 481, + "end": 504, + "loc": { + "start": { + "line": 28, + "column": 12 + }, + "end": { + "line": 28, + "column": 35 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 486, + "end": 503, + "loc": { + "start": { + "line": 28, + "column": 17 + }, + "end": { + "line": 28, + "column": 34 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 486, + "end": 495, + "loc": { + "start": { + "line": 28, + "column": 17 + }, + "end": { + "line": 28, + "column": 26 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 496, + "end": 503, + "loc": { + "start": { + "line": 28, + "column": 27 + }, + "end": { + "line": 28, + "column": 34 + } + }, + "value": "quote", + "rawValue": null, + "raw": "\"quote\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 482, + "end": 485, + "loc": { + "start": { + "line": 28, + "column": 13 + }, + "end": { + "line": 28, + "column": 16 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 614, + "end": 620, + "loc": { + "start": { + "line": 31, + "column": 12 + }, + "end": { + "line": 31, + "column": 18 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 616, + "end": 619, + "loc": { + "start": { + "line": 31, + "column": 14 + }, + "end": { + "line": 31, + "column": 17 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 504, + "end": 521, + "loc": { + "start": { + "line": 28, + "column": 35 + }, + "end": { + "line": 29, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 521, + "end": 560, + "loc": { + "start": { + "line": 29, + "column": 16 + }, + "end": { + "line": 29, + "column": 55 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 521, + "end": 545, + "loc": { + "start": { + "line": 29, + "column": 16 + }, + "end": { + "line": 29, + "column": 40 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 527, + "end": 544, + "loc": { + "start": { + "line": 29, + "column": 22 + }, + "end": { + "line": 29, + "column": 39 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 527, + "end": 536, + "loc": { + "start": { + "line": 29, + "column": 22 + }, + "end": { + "line": 29, + "column": 31 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 537, + "end": 544, + "loc": { + "start": { + "line": 29, + "column": 32 + }, + "end": { + "line": 29, + "column": 39 + } + }, + "value": "prime", + "rawValue": null, + "raw": "\"prime\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 522, + "end": 526, + "loc": { + "start": { + "line": 29, + "column": 17 + }, + "end": { + "line": 29, + "column": 21 + } + }, + "name": "span" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 553, + "end": 560, + "loc": { + "start": { + "line": 29, + "column": 48 + }, + "end": { + "line": 29, + "column": 55 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 555, + "end": 559, + "loc": { + "start": { + "line": 29, + "column": 50 + }, + "end": { + "line": 29, + "column": 54 + } + }, + "name": "span" + } + }, + "children": [ + { + "type": "JSXElement", + "start": 545, + "end": 553, + "loc": { + "start": { + "line": 29, + "column": 40 + }, + "end": { + "line": 29, + "column": 48 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 545, + "end": 548, + "loc": { + "start": { + "line": 29, + "column": 40 + }, + "end": { + "line": 29, + "column": 43 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 546, + "end": 547, + "loc": { + "start": { + "line": 29, + "column": 41 + }, + "end": { + "line": 29, + "column": 42 + } + }, + "name": "i" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 549, + "end": 553, + "loc": { + "start": { + "line": 29, + "column": 44 + }, + "end": { + "line": 29, + "column": 48 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 551, + "end": 552, + "loc": { + "start": { + "line": 29, + "column": 46 + }, + "end": { + "line": 29, + "column": 47 + } + }, + "name": "i" + } + }, + "children": [ + { + "type": "Literal", + "start": 548, + "end": 549, + "loc": { + "start": { + "line": 29, + "column": 43 + }, + "end": { + "line": 29, + "column": 44 + } + }, + "value": "\"", + "rawValue": null, + "raw": "\"" + } + ] + } + ] + }, + { + "type": "Literal", + "start": 560, + "end": 577, + "loc": { + "start": { + "line": 29, + "column": 55 + }, + "end": { + "line": 30, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 577, + "end": 601, + "loc": { + "start": { + "line": 30, + "column": 16 + }, + "end": { + "line": 30, + "column": 40 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 577, + "end": 580, + "loc": { + "start": { + "line": 30, + "column": 16 + }, + "end": { + "line": 30, + "column": 19 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 578, + "end": 579, + "loc": { + "start": { + "line": 30, + "column": 17 + }, + "end": { + "line": 30, + "column": 18 + } + }, + "name": "p" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 597, + "end": 601, + "loc": { + "start": { + "line": 30, + "column": 36 + }, + "end": { + "line": 30, + "column": 40 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 599, + "end": 600, + "loc": { + "start": { + "line": 30, + "column": 38 + }, + "end": { + "line": 30, + "column": 39 + } + }, + "name": "p" + } + }, + "children": [ + { + "type": "JSXExpressionContainer", + "start": 580, + "end": 597, + "loc": { + "start": { + "line": 30, + "column": 19 + }, + "end": { + "line": 30, + "column": 36 + } + }, + "expression": { + "type": "MemberExpression", + "start": 581, + "end": 596, + "loc": { + "start": { + "line": 30, + "column": 20 + }, + "end": { + "line": 30, + "column": 35 + } + }, + "object": { + "type": "MemberExpression", + "start": 581, + "end": 591, + "loc": { + "start": { + "line": 30, + "column": 20 + }, + "end": { + "line": 30, + "column": 30 + } + }, + "object": { + "type": "ThisExpression", + "start": 581, + "end": 585, + "loc": { + "start": { + "line": 30, + "column": 20 + }, + "end": { + "line": 30, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "start": 586, + "end": 591, + "loc": { + "start": { + "line": 30, + "column": 25 + }, + "end": { + "line": 30, + "column": 30 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 592, + "end": 596, + "loc": { + "start": { + "line": 30, + "column": 31 + }, + "end": { + "line": 30, + "column": 35 + } + }, + "name": "text" + }, + "computed": false + } + } + ] + }, + { + "type": "Literal", + "start": 601, + "end": 614, + "loc": { + "start": { + "line": 30, + "column": 40 + }, + "end": { + "line": 31, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 388, + "end": 436, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 25, + "column": 7 + } + }, + "range": [ + 388, + 436 + ] + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Commented component\n ", + "start": 72, + "end": 102, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + }, + "range": [ + 72, + 102 + ] + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Commented component\n ", + "start": 72, + "end": 102, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + }, + "range": [ + 72, + 102 + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/components/Activity/Following.js.json b/app/docs/ast/source/components/Activity/Following.js.json new file mode 100644 index 0000000..df46c12 --- /dev/null +++ b/app/docs/ast/source/components/Activity/Following.js.json @@ -0,0 +1,4668 @@ +{ + "type": "Program", + "start": 0, + "end": 2226, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 94, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + }, + { + "type": "ImportSpecifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "imported": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + }, + "local": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 33, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 33 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ImportDeclaration", + "start": 42, + "end": 69, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 27 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 49, + "end": 54, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 49, + "end": 54, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 12 + } + }, + "name": "Actor" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 60, + "end": 69, + "loc": { + "start": { + "line": 3, + "column": 18 + }, + "end": { + "line": 3, + "column": 27 + } + }, + "value": "./Actor", + "rawValue": "./Actor", + "raw": "'./Actor'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Following component\n ", + "start": 71, + "end": 101, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + }, + "range": [ + 71, + 101 + ] + } + ] + }, + { + "type": "ExportDefaultDeclaration", + "start": 102, + "end": 2225, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 93, + "column": 1 + } + }, + "declaration": { + "type": "ClassDeclaration", + "start": 117, + "end": 2225, + "loc": { + "start": { + "line": 8, + "column": 15 + }, + "end": { + "line": 93, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 123, + "end": 132, + "loc": { + "start": { + "line": 8, + "column": 21 + }, + "end": { + "line": 8, + "column": 30 + } + }, + "name": "Following", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 141, + "end": 150, + "loc": { + "start": { + "line": 8, + "column": 39 + }, + "end": { + "line": 8, + "column": 48 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 151, + "end": 2225, + "loc": { + "start": { + "line": 8, + "column": 49 + }, + "end": { + "line": 93, + "column": 1 + } + }, + "body": [ + { + "type": "Identifier", + "start": 372, + "end": 593, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 25, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 379, + "end": 391, + "loc": { + "start": { + "line": 14, + "column": 11 + }, + "end": { + "line": 14, + "column": 23 + } + }, + "name": "defaultProps" + }, + "static": true, + "value": { + "type": "ObjectExpression", + "start": 394, + "end": 593, + "loc": { + "start": { + "line": 14, + "column": 26 + }, + "end": { + "line": 25, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 404, + "end": 413, + "loc": { + "start": { + "line": 15, + "column": 8 + }, + "end": { + "line": 15, + "column": 17 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 404, + "end": 409, + "loc": { + "start": { + "line": 15, + "column": 8 + }, + "end": { + "line": 15, + "column": 13 + } + }, + "name": "actor" + }, + "value": { + "type": "ObjectExpression", + "start": 411, + "end": 413, + "loc": { + "start": { + "line": 15, + "column": 15 + }, + "end": { + "line": 15, + "column": 17 + } + }, + "properties": [] + }, + "kind": "init" + }, + { + "type": "Property", + "start": 423, + "end": 431, + "loc": { + "start": { + "line": 16, + "column": 8 + }, + "end": { + "line": 16, + "column": 16 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 423, + "end": 427, + "loc": { + "start": { + "line": 16, + "column": 8 + }, + "end": { + "line": 16, + "column": 12 + } + }, + "name": "user" + }, + "value": { + "type": "ObjectExpression", + "start": 429, + "end": 431, + "loc": { + "start": { + "line": 16, + "column": 14 + }, + "end": { + "line": 16, + "column": 16 + } + }, + "properties": [] + }, + "kind": "init" + }, + { + "type": "Property", + "start": 441, + "end": 456, + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 17, + "column": 23 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 441, + "end": 450, + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 17, + "column": 17 + } + }, + "name": "timestamp" + }, + "value": { + "type": "Literal", + "start": 452, + "end": 456, + "loc": { + "start": { + "line": 17, + "column": 19 + }, + "end": { + "line": 17, + "column": 23 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 466, + "end": 479, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 21 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 466, + "end": 475, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 17 + } + }, + "name": "timeSince" + }, + "value": { + "type": "Literal", + "start": 477, + "end": 479, + "loc": { + "start": { + "line": 18, + "column": 19 + }, + "end": { + "line": 18, + "column": 21 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 489, + "end": 505, + "loc": { + "start": { + "line": 19, + "column": 8 + }, + "end": { + "line": 19, + "column": 24 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 489, + "end": 498, + "loc": { + "start": { + "line": 19, + "column": 8 + }, + "end": { + "line": 19, + "column": 17 + } + }, + "name": "following" + }, + "value": { + "type": "Literal", + "start": 500, + "end": 505, + "loc": { + "start": { + "line": 19, + "column": 19 + }, + "end": { + "line": 19, + "column": 24 + } + }, + "value": false, + "rawValue": false, + "raw": "false" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 516, + "end": 547, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 22, + "column": 9 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 516, + "end": 528, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 20 + } + }, + "name": "onFollowBack" + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 530, + "end": 547, + "loc": { + "start": { + "line": 21, + "column": 22 + }, + "end": { + "line": 22, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 536, + "end": 547, + "loc": { + "start": { + "line": 21, + "column": 28 + }, + "end": { + "line": 22, + "column": 9 + } + }, + "body": [] + } + }, + "kind": "init" + }, + { + "type": "Property", + "start": 557, + "end": 586, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 24, + "column": 9 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 557, + "end": 567, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 18 + } + }, + "name": "onUnfollow" + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 569, + "end": 586, + "loc": { + "start": { + "line": 23, + "column": 20 + }, + "end": { + "line": 24, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 575, + "end": 586, + "loc": { + "start": { + "line": 23, + "column": 26 + }, + "end": { + "line": 24, + "column": 9 + } + }, + "body": [] + } + }, + "kind": "init" + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n *\n * @type {{actor: {}, user: {}, timestamp: null, timeSince: string, following: boolean, onFollowBack: Following.defaultProps.onFollowBack, onUnfollow: Following.defaultProps.onUnfollow}}\n ", + "start": 158, + "end": 367, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 13, + "column": 7 + } + }, + "range": [ + 158, + 367 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * handleFollowBack\n * @param e\n ", + "start": 599, + "end": 650, + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 30, + "column": 7 + } + }, + "range": [ + 599, + 650 + ] + } + ] + }, + { + "type": "Identifier", + "start": 655, + "end": 769, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 35, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 655, + "end": 671, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 20 + } + }, + "name": "handleFollowBack", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ArrowFunctionExpression", + "start": 674, + "end": 769, + "loc": { + "start": { + "line": 31, + "column": 23 + }, + "end": { + "line": 35, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 675, + "end": 676, + "loc": { + "start": { + "line": 31, + "column": 24 + }, + "end": { + "line": 31, + "column": 25 + } + }, + "name": "e" + } + ], + "body": { + "type": "BlockStatement", + "start": 681, + "end": 769, + "loc": { + "start": { + "line": 31, + "column": 30 + }, + "end": { + "line": 35, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 691, + "end": 709, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 26 + } + }, + "expression": { + "type": "CallExpression", + "start": 691, + "end": 709, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 26 + } + }, + "callee": { + "type": "MemberExpression", + "start": 691, + "end": 707, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 24 + } + }, + "object": { + "type": "Identifier", + "start": 691, + "end": 692, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 9 + } + }, + "name": "e" + }, + "property": { + "type": "Identifier", + "start": 693, + "end": 707, + "loc": { + "start": { + "line": 32, + "column": 10 + }, + "end": { + "line": 32, + "column": 24 + } + }, + "name": "preventDefault" + }, + "computed": false + }, + "arguments": [] + } + }, + { + "type": "ExpressionStatement", + "start": 719, + "end": 763, + "loc": { + "start": { + "line": 34, + "column": 8 + }, + "end": { + "line": 34, + "column": 52 + } + }, + "expression": { + "type": "CallExpression", + "start": 719, + "end": 763, + "loc": { + "start": { + "line": 34, + "column": 8 + }, + "end": { + "line": 34, + "column": 52 + } + }, + "callee": { + "type": "MemberExpression", + "start": 719, + "end": 742, + "loc": { + "start": { + "line": 34, + "column": 8 + }, + "end": { + "line": 34, + "column": 31 + } + }, + "object": { + "type": "MemberExpression", + "start": 719, + "end": 729, + "loc": { + "start": { + "line": 34, + "column": 8 + }, + "end": { + "line": 34, + "column": 18 + } + }, + "object": { + "type": "ThisExpression", + "start": 719, + "end": 723, + "loc": { + "start": { + "line": 34, + "column": 8 + }, + "end": { + "line": 34, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 724, + "end": 729, + "loc": { + "start": { + "line": 34, + "column": 13 + }, + "end": { + "line": 34, + "column": 18 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 730, + "end": 742, + "loc": { + "start": { + "line": 34, + "column": 19 + }, + "end": { + "line": 34, + "column": 31 + } + }, + "name": "onFollowBack" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 743, + "end": 744, + "loc": { + "start": { + "line": 34, + "column": 32 + }, + "end": { + "line": 34, + "column": 33 + } + }, + "name": "e" + }, + { + "type": "MemberExpression", + "start": 746, + "end": 762, + "loc": { + "start": { + "line": 34, + "column": 35 + }, + "end": { + "line": 34, + "column": 51 + } + }, + "object": { + "type": "MemberExpression", + "start": 746, + "end": 756, + "loc": { + "start": { + "line": 34, + "column": 35 + }, + "end": { + "line": 34, + "column": 45 + } + }, + "object": { + "type": "ThisExpression", + "start": 746, + "end": 750, + "loc": { + "start": { + "line": 34, + "column": 35 + }, + "end": { + "line": 34, + "column": 39 + } + } + }, + "property": { + "type": "Identifier", + "start": 751, + "end": 756, + "loc": { + "start": { + "line": 34, + "column": 40 + }, + "end": { + "line": 34, + "column": 45 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 757, + "end": 762, + "loc": { + "start": { + "line": 34, + "column": 46 + }, + "end": { + "line": 34, + "column": 51 + } + }, + "name": "actor" + }, + "computed": false + } + ] + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * handleFollowBack\n * @param e\n ", + "start": 599, + "end": 650, + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 30, + "column": 7 + } + }, + "range": [ + 599, + 650 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * handleUnfollow\n * @param e\n ", + "start": 775, + "end": 824, + "loc": { + "start": { + "line": 37, + "column": 4 + }, + "end": { + "line": 40, + "column": 7 + } + }, + "range": [ + 775, + 824 + ] + } + ] + }, + { + "type": "Identifier", + "start": 829, + "end": 939, + "loc": { + "start": { + "line": 41, + "column": 4 + }, + "end": { + "line": 45, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 829, + "end": 843, + "loc": { + "start": { + "line": 41, + "column": 4 + }, + "end": { + "line": 41, + "column": 18 + } + }, + "name": "handleUnfollow", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ArrowFunctionExpression", + "start": 846, + "end": 939, + "loc": { + "start": { + "line": 41, + "column": 21 + }, + "end": { + "line": 45, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 847, + "end": 848, + "loc": { + "start": { + "line": 41, + "column": 22 + }, + "end": { + "line": 41, + "column": 23 + } + }, + "name": "e" + } + ], + "body": { + "type": "BlockStatement", + "start": 853, + "end": 939, + "loc": { + "start": { + "line": 41, + "column": 28 + }, + "end": { + "line": 45, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 863, + "end": 881, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 26 + } + }, + "expression": { + "type": "CallExpression", + "start": 863, + "end": 881, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 26 + } + }, + "callee": { + "type": "MemberExpression", + "start": 863, + "end": 879, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 24 + } + }, + "object": { + "type": "Identifier", + "start": 863, + "end": 864, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 9 + } + }, + "name": "e" + }, + "property": { + "type": "Identifier", + "start": 865, + "end": 879, + "loc": { + "start": { + "line": 42, + "column": 10 + }, + "end": { + "line": 42, + "column": 24 + } + }, + "name": "preventDefault" + }, + "computed": false + }, + "arguments": [] + } + }, + { + "type": "ExpressionStatement", + "start": 891, + "end": 933, + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 44, + "column": 50 + } + }, + "expression": { + "type": "CallExpression", + "start": 891, + "end": 933, + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 44, + "column": 50 + } + }, + "callee": { + "type": "MemberExpression", + "start": 891, + "end": 912, + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 44, + "column": 29 + } + }, + "object": { + "type": "MemberExpression", + "start": 891, + "end": 901, + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 44, + "column": 18 + } + }, + "object": { + "type": "ThisExpression", + "start": 891, + "end": 895, + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 44, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 896, + "end": 901, + "loc": { + "start": { + "line": 44, + "column": 13 + }, + "end": { + "line": 44, + "column": 18 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 902, + "end": 912, + "loc": { + "start": { + "line": 44, + "column": 19 + }, + "end": { + "line": 44, + "column": 29 + } + }, + "name": "onUnfollow" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 913, + "end": 914, + "loc": { + "start": { + "line": 44, + "column": 30 + }, + "end": { + "line": 44, + "column": 31 + } + }, + "name": "e" + }, + { + "type": "MemberExpression", + "start": 916, + "end": 932, + "loc": { + "start": { + "line": 44, + "column": 33 + }, + "end": { + "line": 44, + "column": 49 + } + }, + "object": { + "type": "MemberExpression", + "start": 916, + "end": 926, + "loc": { + "start": { + "line": 44, + "column": 33 + }, + "end": { + "line": 44, + "column": 43 + } + }, + "object": { + "type": "ThisExpression", + "start": 916, + "end": 920, + "loc": { + "start": { + "line": 44, + "column": 33 + }, + "end": { + "line": 44, + "column": 37 + } + } + }, + "property": { + "type": "Identifier", + "start": 921, + "end": 926, + "loc": { + "start": { + "line": 44, + "column": 38 + }, + "end": { + "line": 44, + "column": 43 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 927, + "end": 932, + "loc": { + "start": { + "line": 44, + "column": 44 + }, + "end": { + "line": 44, + "column": 49 + } + }, + "name": "actor" + }, + "computed": false + } + ] + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * handleUnfollow\n * @param e\n ", + "start": 775, + "end": 824, + "loc": { + "start": { + "line": 37, + "column": 4 + }, + "end": { + "line": 40, + "column": 7 + } + }, + "range": [ + 775, + 824 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * renderFollowButton\n * @returns markup\n ", + "start": 945, + "end": 1005, + "loc": { + "start": { + "line": 47, + "column": 4 + }, + "end": { + "line": 50, + "column": 7 + } + }, + "range": [ + 945, + 1005 + ] + } + ] + }, + { + "type": "Identifier", + "start": 1010, + "end": 1454, + "loc": { + "start": { + "line": 51, + "column": 4 + }, + "end": { + "line": 67, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 1010, + "end": 1028, + "loc": { + "start": { + "line": 51, + "column": 4 + }, + "end": { + "line": 51, + "column": 22 + } + }, + "name": "renderFollowButton", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ArrowFunctionExpression", + "start": 1031, + "end": 1454, + "loc": { + "start": { + "line": 51, + "column": 25 + }, + "end": { + "line": 67, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 1037, + "end": 1454, + "loc": { + "start": { + "line": 51, + "column": 31 + }, + "end": { + "line": 67, + "column": 5 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 1048, + "end": 1287, + "loc": { + "start": { + "line": 53, + "column": 8 + }, + "end": { + "line": 59, + "column": 9 + } + }, + "test": { + "type": "MemberExpression", + "start": 1052, + "end": 1072, + "loc": { + "start": { + "line": 53, + "column": 12 + }, + "end": { + "line": 53, + "column": 32 + } + }, + "object": { + "type": "MemberExpression", + "start": 1052, + "end": 1062, + "loc": { + "start": { + "line": 53, + "column": 12 + }, + "end": { + "line": 53, + "column": 22 + } + }, + "object": { + "type": "ThisExpression", + "start": 1052, + "end": 1056, + "loc": { + "start": { + "line": 53, + "column": 12 + }, + "end": { + "line": 53, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 1057, + "end": 1062, + "loc": { + "start": { + "line": 53, + "column": 17 + }, + "end": { + "line": 53, + "column": 22 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1063, + "end": 1072, + "loc": { + "start": { + "line": 53, + "column": 23 + }, + "end": { + "line": 53, + "column": 32 + } + }, + "name": "following" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 1074, + "end": 1287, + "loc": { + "start": { + "line": 53, + "column": 34 + }, + "end": { + "line": 59, + "column": 9 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 1088, + "end": 1277, + "loc": { + "start": { + "line": 54, + "column": 12 + }, + "end": { + "line": 58, + "column": 13 + } + }, + "argument": { + "type": "JSXElement", + "start": 1113, + "end": 1263, + "loc": { + "start": { + "line": 55, + "column": 16 + }, + "end": { + "line": 57, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1113, + "end": 1141, + "loc": { + "start": { + "line": 55, + "column": 16 + }, + "end": { + "line": 55, + "column": 44 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1118, + "end": 1140, + "loc": { + "start": { + "line": 55, + "column": 21 + }, + "end": { + "line": 55, + "column": 43 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1118, + "end": 1127, + "loc": { + "start": { + "line": 55, + "column": 21 + }, + "end": { + "line": 55, + "column": 30 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 1128, + "end": 1140, + "loc": { + "start": { + "line": 55, + "column": 31 + }, + "end": { + "line": 55, + "column": 43 + } + }, + "value": "follow-btn", + "rawValue": null, + "raw": "\"follow-btn\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1114, + "end": 1117, + "loc": { + "start": { + "line": 55, + "column": 17 + }, + "end": { + "line": 55, + "column": 20 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1257, + "end": 1263, + "loc": { + "start": { + "line": 57, + "column": 16 + }, + "end": { + "line": 57, + "column": 22 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1259, + "end": 1262, + "loc": { + "start": { + "line": 57, + "column": 18 + }, + "end": { + "line": 57, + "column": 21 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 1141, + "end": 1162, + "loc": { + "start": { + "line": 55, + "column": 44 + }, + "end": { + "line": 56, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1162, + "end": 1240, + "loc": { + "start": { + "line": 56, + "column": 20 + }, + "end": { + "line": 56, + "column": 98 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1162, + "end": 1222, + "loc": { + "start": { + "line": 56, + "column": 20 + }, + "end": { + "line": 56, + "column": 80 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1170, + "end": 1191, + "loc": { + "start": { + "line": 56, + "column": 28 + }, + "end": { + "line": 56, + "column": 49 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1170, + "end": 1179, + "loc": { + "start": { + "line": 56, + "column": 28 + }, + "end": { + "line": 56, + "column": 37 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 1180, + "end": 1191, + "loc": { + "start": { + "line": 56, + "column": 38 + }, + "end": { + "line": 56, + "column": 49 + } + }, + "value": "following", + "rawValue": null, + "raw": "\"following\"" + } + }, + { + "type": "JSXAttribute", + "start": 1192, + "end": 1221, + "loc": { + "start": { + "line": 56, + "column": 50 + }, + "end": { + "line": 56, + "column": 79 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1192, + "end": 1199, + "loc": { + "start": { + "line": 56, + "column": 50 + }, + "end": { + "line": 56, + "column": 57 + } + }, + "name": "onClick" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 1200, + "end": 1221, + "loc": { + "start": { + "line": 56, + "column": 58 + }, + "end": { + "line": 56, + "column": 79 + } + }, + "expression": { + "type": "MemberExpression", + "start": 1201, + "end": 1220, + "loc": { + "start": { + "line": 56, + "column": 59 + }, + "end": { + "line": 56, + "column": 78 + } + }, + "object": { + "type": "ThisExpression", + "start": 1201, + "end": 1205, + "loc": { + "start": { + "line": 56, + "column": 59 + }, + "end": { + "line": 56, + "column": 63 + } + } + }, + "property": { + "type": "Identifier", + "start": 1206, + "end": 1220, + "loc": { + "start": { + "line": 56, + "column": 64 + }, + "end": { + "line": 56, + "column": 78 + } + }, + "name": "handleUnfollow" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1163, + "end": 1169, + "loc": { + "start": { + "line": 56, + "column": 21 + }, + "end": { + "line": 56, + "column": 27 + } + }, + "name": "button" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1231, + "end": 1240, + "loc": { + "start": { + "line": 56, + "column": 89 + }, + "end": { + "line": 56, + "column": 98 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1233, + "end": 1239, + "loc": { + "start": { + "line": 56, + "column": 91 + }, + "end": { + "line": 56, + "column": 97 + } + }, + "name": "button" + } + }, + "children": [ + { + "type": "Literal", + "start": 1222, + "end": 1231, + "loc": { + "start": { + "line": 56, + "column": 80 + }, + "end": { + "line": 56, + "column": 89 + } + }, + "value": "Following", + "rawValue": null, + "raw": "Following" + } + ] + }, + { + "type": "Literal", + "start": 1240, + "end": 1257, + "loc": { + "start": { + "line": 56, + "column": 98 + }, + "end": { + "line": 57, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 1297, + "end": 1447, + "loc": { + "start": { + "line": 61, + "column": 8 + }, + "end": { + "line": 65, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 1318, + "end": 1437, + "loc": { + "start": { + "line": 62, + "column": 12 + }, + "end": { + "line": 64, + "column": 18 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1318, + "end": 1346, + "loc": { + "start": { + "line": 62, + "column": 12 + }, + "end": { + "line": 62, + "column": 40 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1323, + "end": 1345, + "loc": { + "start": { + "line": 62, + "column": 17 + }, + "end": { + "line": 62, + "column": 39 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1323, + "end": 1332, + "loc": { + "start": { + "line": 62, + "column": 17 + }, + "end": { + "line": 62, + "column": 26 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 1333, + "end": 1345, + "loc": { + "start": { + "line": 62, + "column": 27 + }, + "end": { + "line": 62, + "column": 39 + } + }, + "value": "follow-btn", + "rawValue": null, + "raw": "\"follow-btn\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1319, + "end": 1322, + "loc": { + "start": { + "line": 62, + "column": 13 + }, + "end": { + "line": 62, + "column": 16 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1431, + "end": 1437, + "loc": { + "start": { + "line": 64, + "column": 12 + }, + "end": { + "line": 64, + "column": 18 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1433, + "end": 1436, + "loc": { + "start": { + "line": 64, + "column": 14 + }, + "end": { + "line": 64, + "column": 17 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 1346, + "end": 1363, + "loc": { + "start": { + "line": 62, + "column": 40 + }, + "end": { + "line": 63, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1363, + "end": 1418, + "loc": { + "start": { + "line": 63, + "column": 16 + }, + "end": { + "line": 63, + "column": 71 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1363, + "end": 1403, + "loc": { + "start": { + "line": 63, + "column": 16 + }, + "end": { + "line": 63, + "column": 56 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1371, + "end": 1402, + "loc": { + "start": { + "line": 63, + "column": 24 + }, + "end": { + "line": 63, + "column": 55 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1371, + "end": 1378, + "loc": { + "start": { + "line": 63, + "column": 24 + }, + "end": { + "line": 63, + "column": 31 + } + }, + "name": "onClick" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 1379, + "end": 1402, + "loc": { + "start": { + "line": 63, + "column": 32 + }, + "end": { + "line": 63, + "column": 55 + } + }, + "expression": { + "type": "MemberExpression", + "start": 1380, + "end": 1401, + "loc": { + "start": { + "line": 63, + "column": 33 + }, + "end": { + "line": 63, + "column": 54 + } + }, + "object": { + "type": "ThisExpression", + "start": 1380, + "end": 1384, + "loc": { + "start": { + "line": 63, + "column": 33 + }, + "end": { + "line": 63, + "column": 37 + } + } + }, + "property": { + "type": "Identifier", + "start": 1385, + "end": 1401, + "loc": { + "start": { + "line": 63, + "column": 38 + }, + "end": { + "line": 63, + "column": 54 + } + }, + "name": "handleFollowBack" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1364, + "end": 1370, + "loc": { + "start": { + "line": 63, + "column": 17 + }, + "end": { + "line": 63, + "column": 23 + } + }, + "name": "button" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1409, + "end": 1418, + "loc": { + "start": { + "line": 63, + "column": 62 + }, + "end": { + "line": 63, + "column": 71 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1411, + "end": 1417, + "loc": { + "start": { + "line": 63, + "column": 64 + }, + "end": { + "line": 63, + "column": 70 + } + }, + "name": "button" + } + }, + "children": [ + { + "type": "Literal", + "start": 1403, + "end": 1409, + "loc": { + "start": { + "line": 63, + "column": 56 + }, + "end": { + "line": 63, + "column": 62 + } + }, + "value": "Follow", + "rawValue": null, + "raw": "Follow" + } + ] + }, + { + "type": "Literal", + "start": 1418, + "end": 1431, + "loc": { + "start": { + "line": 63, + "column": 71 + }, + "end": { + "line": 64, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * renderFollowButton\n * @returns markup\n ", + "start": 945, + "end": 1005, + "loc": { + "start": { + "line": 47, + "column": 4 + }, + "end": { + "line": 50, + "column": 7 + } + }, + "range": [ + 945, + 1005 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 1460, + "end": 1508, + "loc": { + "start": { + "line": 69, + "column": 4 + }, + "end": { + "line": 72, + "column": 7 + } + }, + "range": [ + 1460, + 1508 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 1513, + "end": 2223, + "loc": { + "start": { + "line": 73, + "column": 4 + }, + "end": { + "line": 92, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 1513, + "end": 1519, + "loc": { + "start": { + "line": 73, + "column": 4 + }, + "end": { + "line": 73, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 1519, + "end": 2223, + "loc": { + "start": { + "line": 73, + "column": 10 + }, + "end": { + "line": 92, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 1522, + "end": 2223, + "loc": { + "start": { + "line": 73, + "column": 13 + }, + "end": { + "line": 92, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 1532, + "end": 2217, + "loc": { + "start": { + "line": 74, + "column": 8 + }, + "end": { + "line": 91, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 1553, + "end": 2207, + "loc": { + "start": { + "line": 75, + "column": 12 + }, + "end": { + "line": 90, + "column": 18 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1553, + "end": 1558, + "loc": { + "start": { + "line": 75, + "column": 12 + }, + "end": { + "line": 75, + "column": 17 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 1554, + "end": 1557, + "loc": { + "start": { + "line": 75, + "column": 13 + }, + "end": { + "line": 75, + "column": 16 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2201, + "end": 2207, + "loc": { + "start": { + "line": 90, + "column": 12 + }, + "end": { + "line": 90, + "column": 18 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2203, + "end": 2206, + "loc": { + "start": { + "line": 90, + "column": 14 + }, + "end": { + "line": 90, + "column": 17 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 1558, + "end": 1575, + "loc": { + "start": { + "line": 75, + "column": 17 + }, + "end": { + "line": 76, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1575, + "end": 1606, + "loc": { + "start": { + "line": 76, + "column": 16 + }, + "end": { + "line": 76, + "column": 47 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1575, + "end": 1606, + "loc": { + "start": { + "line": 76, + "column": 16 + }, + "end": { + "line": 76, + "column": 47 + } + }, + "attributes": [ + { + "type": "JSXSpreadAttribute", + "start": 1582, + "end": 1603, + "loc": { + "start": { + "line": 76, + "column": 23 + }, + "end": { + "line": 76, + "column": 44 + } + }, + "argument": { + "type": "MemberExpression", + "start": 1586, + "end": 1602, + "loc": { + "start": { + "line": 76, + "column": 27 + }, + "end": { + "line": 76, + "column": 43 + } + }, + "object": { + "type": "MemberExpression", + "start": 1586, + "end": 1596, + "loc": { + "start": { + "line": 76, + "column": 27 + }, + "end": { + "line": 76, + "column": 37 + } + }, + "object": { + "type": "ThisExpression", + "start": 1586, + "end": 1590, + "loc": { + "start": { + "line": 76, + "column": 27 + }, + "end": { + "line": 76, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "start": 1591, + "end": 1596, + "loc": { + "start": { + "line": 76, + "column": 32 + }, + "end": { + "line": 76, + "column": 37 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1597, + "end": 1602, + "loc": { + "start": { + "line": 76, + "column": 38 + }, + "end": { + "line": 76, + "column": 43 + } + }, + "name": "actor" + }, + "computed": false + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1576, + "end": 1581, + "loc": { + "start": { + "line": 76, + "column": 17 + }, + "end": { + "line": 76, + "column": 22 + } + }, + "name": "Actor" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 1606, + "end": 1623, + "loc": { + "start": { + "line": 76, + "column": 47 + }, + "end": { + "line": 77, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 1623, + "end": 1650, + "loc": { + "start": { + "line": 77, + "column": 16 + }, + "end": { + "line": 77, + "column": 43 + } + }, + "expression": { + "type": "CallExpression", + "start": 1624, + "end": 1649, + "loc": { + "start": { + "line": 77, + "column": 17 + }, + "end": { + "line": 77, + "column": 42 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1624, + "end": 1647, + "loc": { + "start": { + "line": 77, + "column": 17 + }, + "end": { + "line": 77, + "column": 40 + } + }, + "object": { + "type": "ThisExpression", + "start": 1624, + "end": 1628, + "loc": { + "start": { + "line": 77, + "column": 17 + }, + "end": { + "line": 77, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "start": 1629, + "end": 1647, + "loc": { + "start": { + "line": 77, + "column": 22 + }, + "end": { + "line": 77, + "column": 40 + } + }, + "name": "renderFollowButton" + }, + "computed": false + }, + "arguments": [] + } + }, + { + "type": "Literal", + "start": 1650, + "end": 1667, + "loc": { + "start": { + "line": 77, + "column": 43 + }, + "end": { + "line": 78, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1667, + "end": 1787, + "loc": { + "start": { + "line": 78, + "column": 16 + }, + "end": { + "line": 80, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1667, + "end": 1698, + "loc": { + "start": { + "line": 78, + "column": 16 + }, + "end": { + "line": 78, + "column": 47 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1672, + "end": 1697, + "loc": { + "start": { + "line": 78, + "column": 21 + }, + "end": { + "line": 78, + "column": 46 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1672, + "end": 1681, + "loc": { + "start": { + "line": 78, + "column": 21 + }, + "end": { + "line": 78, + "column": 30 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 1682, + "end": 1697, + "loc": { + "start": { + "line": 78, + "column": 31 + }, + "end": { + "line": 78, + "column": 46 + } + }, + "value": "vertical-line", + "rawValue": null, + "raw": "\"vertical-line\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1668, + "end": 1671, + "loc": { + "start": { + "line": 78, + "column": 17 + }, + "end": { + "line": 78, + "column": 20 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1781, + "end": 1787, + "loc": { + "start": { + "line": 80, + "column": 16 + }, + "end": { + "line": 80, + "column": 22 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1783, + "end": 1786, + "loc": { + "start": { + "line": 80, + "column": 18 + }, + "end": { + "line": 80, + "column": 21 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 1698, + "end": 1719, + "loc": { + "start": { + "line": 78, + "column": 47 + }, + "end": { + "line": 79, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1719, + "end": 1764, + "loc": { + "start": { + "line": 79, + "column": 20 + }, + "end": { + "line": 79, + "column": 65 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1719, + "end": 1760, + "loc": { + "start": { + "line": 79, + "column": 20 + }, + "end": { + "line": 79, + "column": 61 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1722, + "end": 1759, + "loc": { + "start": { + "line": 79, + "column": 23 + }, + "end": { + "line": 79, + "column": 60 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1722, + "end": 1731, + "loc": { + "start": { + "line": 79, + "column": 23 + }, + "end": { + "line": 79, + "column": 32 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 1732, + "end": 1759, + "loc": { + "start": { + "line": 79, + "column": 33 + }, + "end": { + "line": 79, + "column": 60 + } + }, + "value": "ion-checkmark-round green", + "rawValue": null, + "raw": "\"ion-checkmark-round green\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1720, + "end": 1721, + "loc": { + "start": { + "line": 79, + "column": 21 + }, + "end": { + "line": 79, + "column": 22 + } + }, + "name": "i" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1760, + "end": 1764, + "loc": { + "start": { + "line": 79, + "column": 61 + }, + "end": { + "line": 79, + "column": 65 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1762, + "end": 1763, + "loc": { + "start": { + "line": 79, + "column": 63 + }, + "end": { + "line": 79, + "column": 64 + } + }, + "name": "i" + } + }, + "children": [] + }, + { + "type": "Literal", + "start": 1764, + "end": 1781, + "loc": { + "start": { + "line": 79, + "column": 65 + }, + "end": { + "line": 80, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 1787, + "end": 1804, + "loc": { + "start": { + "line": 80, + "column": 22 + }, + "end": { + "line": 81, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1804, + "end": 1912, + "loc": { + "start": { + "line": 81, + "column": 16 + }, + "end": { + "line": 83, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1804, + "end": 1829, + "loc": { + "start": { + "line": 81, + "column": 16 + }, + "end": { + "line": 81, + "column": 41 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1809, + "end": 1828, + "loc": { + "start": { + "line": 81, + "column": 21 + }, + "end": { + "line": 81, + "column": 40 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1809, + "end": 1818, + "loc": { + "start": { + "line": 81, + "column": 21 + }, + "end": { + "line": 81, + "column": 30 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 1819, + "end": 1828, + "loc": { + "start": { + "line": 81, + "column": 31 + }, + "end": { + "line": 81, + "column": 40 + } + }, + "value": "message", + "rawValue": null, + "raw": "\"message\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1805, + "end": 1808, + "loc": { + "start": { + "line": 81, + "column": 17 + }, + "end": { + "line": 81, + "column": 20 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1906, + "end": 1912, + "loc": { + "start": { + "line": 83, + "column": 16 + }, + "end": { + "line": 83, + "column": 22 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1908, + "end": 1911, + "loc": { + "start": { + "line": 83, + "column": 18 + }, + "end": { + "line": 83, + "column": 21 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 1829, + "end": 1850, + "loc": { + "start": { + "line": 81, + "column": 41 + }, + "end": { + "line": 82, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1850, + "end": 1889, + "loc": { + "start": { + "line": 82, + "column": 20 + }, + "end": { + "line": 82, + "column": 59 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1850, + "end": 1853, + "loc": { + "start": { + "line": 82, + "column": 20 + }, + "end": { + "line": 82, + "column": 23 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 1851, + "end": 1852, + "loc": { + "start": { + "line": 82, + "column": 21 + }, + "end": { + "line": 82, + "column": 22 + } + }, + "name": "p" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1885, + "end": 1889, + "loc": { + "start": { + "line": 82, + "column": 55 + }, + "end": { + "line": 82, + "column": 59 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1887, + "end": 1888, + "loc": { + "start": { + "line": 82, + "column": 57 + }, + "end": { + "line": 82, + "column": 58 + } + }, + "name": "p" + } + }, + "children": [ + { + "type": "Literal", + "start": 1853, + "end": 1863, + "loc": { + "start": { + "line": 82, + "column": 23 + }, + "end": { + "line": 82, + "column": 33 + } + }, + "value": "Followed, ", + "rawValue": null, + "raw": "Followed, " + }, + { + "type": "JSXExpressionContainer", + "start": 1863, + "end": 1885, + "loc": { + "start": { + "line": 82, + "column": 33 + }, + "end": { + "line": 82, + "column": 55 + } + }, + "expression": { + "type": "MemberExpression", + "start": 1864, + "end": 1884, + "loc": { + "start": { + "line": 82, + "column": 34 + }, + "end": { + "line": 82, + "column": 54 + } + }, + "object": { + "type": "MemberExpression", + "start": 1864, + "end": 1874, + "loc": { + "start": { + "line": 82, + "column": 34 + }, + "end": { + "line": 82, + "column": 44 + } + }, + "object": { + "type": "ThisExpression", + "start": 1864, + "end": 1868, + "loc": { + "start": { + "line": 82, + "column": 34 + }, + "end": { + "line": 82, + "column": 38 + } + } + }, + "property": { + "type": "Identifier", + "start": 1869, + "end": 1874, + "loc": { + "start": { + "line": 82, + "column": 39 + }, + "end": { + "line": 82, + "column": 44 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1875, + "end": 1884, + "loc": { + "start": { + "line": 82, + "column": 45 + }, + "end": { + "line": 82, + "column": 54 + } + }, + "name": "timeSince" + }, + "computed": false + } + } + ] + }, + { + "type": "Literal", + "start": 1889, + "end": 1906, + "loc": { + "start": { + "line": 82, + "column": 59 + }, + "end": { + "line": 83, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 1912, + "end": 1929, + "loc": { + "start": { + "line": 83, + "column": 22 + }, + "end": { + "line": 84, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1929, + "end": 1958, + "loc": { + "start": { + "line": 84, + "column": 16 + }, + "end": { + "line": 84, + "column": 45 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1929, + "end": 1952, + "loc": { + "start": { + "line": 84, + "column": 16 + }, + "end": { + "line": 84, + "column": 39 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1934, + "end": 1951, + "loc": { + "start": { + "line": 84, + "column": 21 + }, + "end": { + "line": 84, + "column": 38 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1934, + "end": 1943, + "loc": { + "start": { + "line": 84, + "column": 21 + }, + "end": { + "line": 84, + "column": 30 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 1944, + "end": 1951, + "loc": { + "start": { + "line": 84, + "column": 31 + }, + "end": { + "line": 84, + "column": 38 + } + }, + "value": "clear", + "rawValue": null, + "raw": "\"clear\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1930, + "end": 1933, + "loc": { + "start": { + "line": 84, + "column": 17 + }, + "end": { + "line": 84, + "column": 20 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1952, + "end": 1958, + "loc": { + "start": { + "line": 84, + "column": 39 + }, + "end": { + "line": 84, + "column": 45 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1954, + "end": 1957, + "loc": { + "start": { + "line": 84, + "column": 41 + }, + "end": { + "line": 84, + "column": 44 + } + }, + "name": "div" + } + }, + "children": [] + }, + { + "type": "Literal", + "start": 1958, + "end": 1975, + "loc": { + "start": { + "line": 84, + "column": 45 + }, + "end": { + "line": 85, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1975, + "end": 2005, + "loc": { + "start": { + "line": 85, + "column": 16 + }, + "end": { + "line": 85, + "column": 46 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1975, + "end": 2005, + "loc": { + "start": { + "line": 85, + "column": 16 + }, + "end": { + "line": 85, + "column": 46 + } + }, + "attributes": [ + { + "type": "JSXSpreadAttribute", + "start": 1982, + "end": 2002, + "loc": { + "start": { + "line": 85, + "column": 23 + }, + "end": { + "line": 85, + "column": 43 + } + }, + "argument": { + "type": "MemberExpression", + "start": 1986, + "end": 2001, + "loc": { + "start": { + "line": 85, + "column": 27 + }, + "end": { + "line": 85, + "column": 42 + } + }, + "object": { + "type": "MemberExpression", + "start": 1986, + "end": 1996, + "loc": { + "start": { + "line": 85, + "column": 27 + }, + "end": { + "line": 85, + "column": 37 + } + }, + "object": { + "type": "ThisExpression", + "start": 1986, + "end": 1990, + "loc": { + "start": { + "line": 85, + "column": 27 + }, + "end": { + "line": 85, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "start": 1991, + "end": 1996, + "loc": { + "start": { + "line": 85, + "column": 32 + }, + "end": { + "line": 85, + "column": 37 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1997, + "end": 2001, + "loc": { + "start": { + "line": 85, + "column": 38 + }, + "end": { + "line": 85, + "column": 42 + } + }, + "name": "user" + }, + "computed": false + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1976, + "end": 1981, + "loc": { + "start": { + "line": 85, + "column": 17 + }, + "end": { + "line": 85, + "column": 22 + } + }, + "name": "Actor" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 2005, + "end": 2022, + "loc": { + "start": { + "line": 85, + "column": 46 + }, + "end": { + "line": 86, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 2022, + "end": 2142, + "loc": { + "start": { + "line": 86, + "column": 16 + }, + "end": { + "line": 88, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2022, + "end": 2050, + "loc": { + "start": { + "line": 86, + "column": 16 + }, + "end": { + "line": 86, + "column": 44 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2027, + "end": 2049, + "loc": { + "start": { + "line": 86, + "column": 21 + }, + "end": { + "line": 86, + "column": 43 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2027, + "end": 2036, + "loc": { + "start": { + "line": 86, + "column": 21 + }, + "end": { + "line": 86, + "column": 30 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 2037, + "end": 2049, + "loc": { + "start": { + "line": 86, + "column": 31 + }, + "end": { + "line": 86, + "column": 43 + } + }, + "value": "follow-btn", + "rawValue": null, + "raw": "\"follow-btn\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2023, + "end": 2026, + "loc": { + "start": { + "line": 86, + "column": 17 + }, + "end": { + "line": 86, + "column": 20 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2136, + "end": 2142, + "loc": { + "start": { + "line": 88, + "column": 16 + }, + "end": { + "line": 88, + "column": 22 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2138, + "end": 2141, + "loc": { + "start": { + "line": 88, + "column": 18 + }, + "end": { + "line": 88, + "column": 21 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 2050, + "end": 2071, + "loc": { + "start": { + "line": 86, + "column": 44 + }, + "end": { + "line": 87, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 2071, + "end": 2119, + "loc": { + "start": { + "line": 87, + "column": 20 + }, + "end": { + "line": 87, + "column": 68 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2071, + "end": 2101, + "loc": { + "start": { + "line": 87, + "column": 20 + }, + "end": { + "line": 87, + "column": 50 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2079, + "end": 2100, + "loc": { + "start": { + "line": 87, + "column": 28 + }, + "end": { + "line": 87, + "column": 49 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2079, + "end": 2088, + "loc": { + "start": { + "line": 87, + "column": 28 + }, + "end": { + "line": 87, + "column": 37 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 2089, + "end": 2100, + "loc": { + "start": { + "line": 87, + "column": 38 + }, + "end": { + "line": 87, + "column": 49 + } + }, + "value": "following", + "rawValue": null, + "raw": "\"following\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2072, + "end": 2078, + "loc": { + "start": { + "line": 87, + "column": 21 + }, + "end": { + "line": 87, + "column": 27 + } + }, + "name": "button" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2110, + "end": 2119, + "loc": { + "start": { + "line": 87, + "column": 59 + }, + "end": { + "line": 87, + "column": 68 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2112, + "end": 2118, + "loc": { + "start": { + "line": 87, + "column": 61 + }, + "end": { + "line": 87, + "column": 67 + } + }, + "name": "button" + } + }, + "children": [ + { + "type": "Literal", + "start": 2101, + "end": 2110, + "loc": { + "start": { + "line": 87, + "column": 50 + }, + "end": { + "line": 87, + "column": 59 + } + }, + "value": "Following", + "rawValue": null, + "raw": "Following" + } + ] + }, + { + "type": "Literal", + "start": 2119, + "end": 2136, + "loc": { + "start": { + "line": 87, + "column": 68 + }, + "end": { + "line": 88, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 2142, + "end": 2159, + "loc": { + "start": { + "line": 88, + "column": 22 + }, + "end": { + "line": 89, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 2159, + "end": 2188, + "loc": { + "start": { + "line": 89, + "column": 16 + }, + "end": { + "line": 89, + "column": 45 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2159, + "end": 2182, + "loc": { + "start": { + "line": 89, + "column": 16 + }, + "end": { + "line": 89, + "column": 39 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2164, + "end": 2181, + "loc": { + "start": { + "line": 89, + "column": 21 + }, + "end": { + "line": 89, + "column": 38 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2164, + "end": 2173, + "loc": { + "start": { + "line": 89, + "column": 21 + }, + "end": { + "line": 89, + "column": 30 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 2174, + "end": 2181, + "loc": { + "start": { + "line": 89, + "column": 31 + }, + "end": { + "line": 89, + "column": 38 + } + }, + "value": "clear", + "rawValue": null, + "raw": "\"clear\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2160, + "end": 2163, + "loc": { + "start": { + "line": 89, + "column": 17 + }, + "end": { + "line": 89, + "column": 20 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2182, + "end": 2188, + "loc": { + "start": { + "line": 89, + "column": 39 + }, + "end": { + "line": 89, + "column": 45 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2184, + "end": 2187, + "loc": { + "start": { + "line": 89, + "column": 41 + }, + "end": { + "line": 89, + "column": 44 + } + }, + "name": "div" + } + }, + "children": [] + }, + { + "type": "Literal", + "start": 2188, + "end": 2201, + "loc": { + "start": { + "line": 89, + "column": 45 + }, + "end": { + "line": 90, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 1460, + "end": 1508, + "loc": { + "start": { + "line": 69, + "column": 4 + }, + "end": { + "line": 72, + "column": 7 + } + }, + "range": [ + 1460, + 1508 + ] + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Following component\n ", + "start": 71, + "end": 101, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + }, + "range": [ + 71, + 101 + ] + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Following component\n ", + "start": 71, + "end": 101, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + }, + "range": [ + 71, + 101 + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/components/Activity/Liked.js.json b/app/docs/ast/source/components/Activity/Liked.js.json new file mode 100644 index 0000000..2732afd --- /dev/null +++ b/app/docs/ast/source/components/Activity/Liked.js.json @@ -0,0 +1,3859 @@ +{ + "type": "Program", + "start": 0, + "end": 1514, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 61, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + }, + { + "type": "ImportSpecifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "imported": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + }, + "local": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 33, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 33 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ImportDeclaration", + "start": 41, + "end": 76, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 35 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 50, + "end": 54, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "imported": { + "type": "Identifier", + "start": 50, + "end": 54, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "name": "Link" + }, + "local": { + "type": "Identifier", + "start": 50, + "end": 54, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "name": "Link" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 62, + "end": 76, + "loc": { + "start": { + "line": 2, + "column": 21 + }, + "end": { + "line": 2, + "column": 35 + } + }, + "value": "react-router", + "rawValue": "react-router", + "raw": "'react-router'" + } + }, + { + "type": "ImportDeclaration", + "start": 77, + "end": 104, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 27 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 84, + "end": 90, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 13 + } + }, + "local": { + "type": "Identifier", + "start": 84, + "end": 90, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 13 + } + }, + "name": "config" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 96, + "end": 104, + "loc": { + "start": { + "line": 3, + "column": 19 + }, + "end": { + "line": 3, + "column": 27 + } + }, + "value": "config", + "rawValue": "config", + "raw": "'config'" + } + }, + { + "type": "ImportDeclaration", + "start": 106, + "end": 133, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 27 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 113, + "end": 118, + "loc": { + "start": { + "line": 5, + "column": 7 + }, + "end": { + "line": 5, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 113, + "end": 118, + "loc": { + "start": { + "line": 5, + "column": 7 + }, + "end": { + "line": 5, + "column": 12 + } + }, + "name": "Actor" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 124, + "end": 133, + "loc": { + "start": { + "line": 5, + "column": 18 + }, + "end": { + "line": 5, + "column": 27 + } + }, + "value": "./Actor", + "rawValue": "./Actor", + "raw": "'./Actor'" + } + }, + { + "type": "VariableDeclaration", + "start": 135, + "end": 375, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 13, + "column": 1 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 141, + "end": 375, + "loc": { + "start": { + "line": 7, + "column": 6 + }, + "end": { + "line": 13, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 141, + "end": 148, + "loc": { + "start": { + "line": 7, + "column": 6 + }, + "end": { + "line": 7, + "column": 13 + } + }, + "name": "Picture" + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 151, + "end": 375, + "loc": { + "start": { + "line": 7, + "column": 16 + }, + "end": { + "line": 13, + "column": 1 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 151, + "end": 156, + "loc": { + "start": { + "line": 7, + "column": 16 + }, + "end": { + "line": 7, + "column": 21 + } + }, + "name": "props" + } + ], + "body": { + "type": "JSXElement", + "start": 166, + "end": 373, + "loc": { + "start": { + "line": 8, + "column": 4 + }, + "end": { + "line": 12, + "column": 10 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 166, + "end": 193, + "loc": { + "start": { + "line": 8, + "column": 4 + }, + "end": { + "line": 8, + "column": 31 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 171, + "end": 192, + "loc": { + "start": { + "line": 8, + "column": 9 + }, + "end": { + "line": 8, + "column": 30 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 171, + "end": 180, + "loc": { + "start": { + "line": 8, + "column": 9 + }, + "end": { + "line": 8, + "column": 18 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 181, + "end": 192, + "loc": { + "start": { + "line": 8, + "column": 19 + }, + "end": { + "line": 8, + "column": 30 + } + }, + "value": "grid-cell", + "rawValue": null, + "raw": "\"grid-cell\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 167, + "end": 170, + "loc": { + "start": { + "line": 8, + "column": 5 + }, + "end": { + "line": 8, + "column": 8 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 367, + "end": 373, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 10 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 369, + "end": 372, + "loc": { + "start": { + "line": 12, + "column": 6 + }, + "end": { + "line": 12, + "column": 9 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 193, + "end": 202, + "loc": { + "start": { + "line": 8, + "column": 31 + }, + "end": { + "line": 9, + "column": 8 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 202, + "end": 362, + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 11, + "column": 15 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 202, + "end": 235, + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 41 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 208, + "end": 234, + "loc": { + "start": { + "line": 9, + "column": 14 + }, + "end": { + "line": 9, + "column": 40 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 208, + "end": 210, + "loc": { + "start": { + "line": 9, + "column": 14 + }, + "end": { + "line": 9, + "column": 16 + } + }, + "name": "to" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 211, + "end": 234, + "loc": { + "start": { + "line": 9, + "column": 17 + }, + "end": { + "line": 9, + "column": 40 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 212, + "end": 233, + "loc": { + "start": { + "line": 9, + "column": 18 + }, + "end": { + "line": 9, + "column": 39 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 223, + "end": 231, + "loc": { + "start": { + "line": 9, + "column": 29 + }, + "end": { + "line": 9, + "column": 37 + } + }, + "object": { + "type": "Identifier", + "start": 223, + "end": 228, + "loc": { + "start": { + "line": 9, + "column": 29 + }, + "end": { + "line": 9, + "column": 34 + } + }, + "name": "props" + }, + "property": { + "type": "Identifier", + "start": 229, + "end": 231, + "loc": { + "start": { + "line": 9, + "column": 35 + }, + "end": { + "line": 9, + "column": 37 + } + }, + "name": "id" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 213, + "end": 221, + "loc": { + "start": { + "line": 9, + "column": 19 + }, + "end": { + "line": 9, + "column": 27 + } + }, + "value": { + "raw": "/photos/", + "cooked": "/photos/" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 232, + "end": 232, + "loc": { + "start": { + "line": 9, + "column": 38 + }, + "end": { + "line": 9, + "column": 38 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 203, + "end": 207, + "loc": { + "start": { + "line": 9, + "column": 9 + }, + "end": { + "line": 9, + "column": 13 + } + }, + "name": "Link" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 355, + "end": 362, + "loc": { + "start": { + "line": 11, + "column": 8 + }, + "end": { + "line": 11, + "column": 15 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 357, + "end": 361, + "loc": { + "start": { + "line": 11, + "column": 10 + }, + "end": { + "line": 11, + "column": 14 + } + }, + "name": "Link" + } + }, + "children": [ + { + "type": "Literal", + "start": 235, + "end": 248, + "loc": { + "start": { + "line": 9, + "column": 41 + }, + "end": { + "line": 10, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 248, + "end": 346, + "loc": { + "start": { + "line": 10, + "column": 12 + }, + "end": { + "line": 10, + "column": 110 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 248, + "end": 346, + "loc": { + "start": { + "line": 10, + "column": 12 + }, + "end": { + "line": 10, + "column": 110 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 253, + "end": 344, + "loc": { + "start": { + "line": 10, + "column": 17 + }, + "end": { + "line": 10, + "column": 108 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 253, + "end": 256, + "loc": { + "start": { + "line": 10, + "column": 17 + }, + "end": { + "line": 10, + "column": 20 + } + }, + "name": "src" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 257, + "end": 344, + "loc": { + "start": { + "line": 10, + "column": 21 + }, + "end": { + "line": 10, + "column": 108 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 258, + "end": 343, + "loc": { + "start": { + "line": 10, + "column": 22 + }, + "end": { + "line": 10, + "column": 107 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 261, + "end": 281, + "loc": { + "start": { + "line": 10, + "column": 25 + }, + "end": { + "line": 10, + "column": 45 + } + }, + "object": { + "type": "MemberExpression", + "start": 261, + "end": 273, + "loc": { + "start": { + "line": 10, + "column": 25 + }, + "end": { + "line": 10, + "column": 37 + } + }, + "object": { + "type": "Identifier", + "start": 261, + "end": 267, + "loc": { + "start": { + "line": 10, + "column": 25 + }, + "end": { + "line": 10, + "column": 31 + } + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 268, + "end": 273, + "loc": { + "start": { + "line": 10, + "column": 32 + }, + "end": { + "line": 10, + "column": 37 + } + }, + "name": "imgix" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 274, + "end": 281, + "loc": { + "start": { + "line": 10, + "column": 38 + }, + "end": { + "line": 10, + "column": 45 + } + }, + "name": "baseUrl" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 285, + "end": 294, + "loc": { + "start": { + "line": 10, + "column": 49 + }, + "end": { + "line": 10, + "column": 58 + } + }, + "object": { + "type": "Identifier", + "start": 285, + "end": 290, + "loc": { + "start": { + "line": 10, + "column": 49 + }, + "end": { + "line": 10, + "column": 54 + } + }, + "name": "props" + }, + "property": { + "type": "Identifier", + "start": 291, + "end": 294, + "loc": { + "start": { + "line": 10, + "column": 55 + }, + "end": { + "line": 10, + "column": 58 + } + }, + "name": "src" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 259, + "end": 259, + "loc": { + "start": { + "line": 10, + "column": 23 + }, + "end": { + "line": 10, + "column": 23 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 282, + "end": 283, + "loc": { + "start": { + "line": 10, + "column": 46 + }, + "end": { + "line": 10, + "column": 47 + } + }, + "value": { + "raw": "/", + "cooked": "/" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 295, + "end": 342, + "loc": { + "start": { + "line": 10, + "column": 59 + }, + "end": { + "line": 10, + "column": 106 + } + }, + "value": { + "raw": "?auto=enhance&w=200&h=200&fit=crop&fm=png&dpr=2", + "cooked": "?auto=enhance&w=200&h=200&fit=crop&fm=png&dpr=2" + }, + "tail": true + } + ] + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 249, + "end": 252, + "loc": { + "start": { + "line": 10, + "column": 13 + }, + "end": { + "line": 10, + "column": 16 + } + }, + "name": "img" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 346, + "end": 355, + "loc": { + "start": { + "line": 10, + "column": 110 + }, + "end": { + "line": 11, + "column": 8 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 362, + "end": 367, + "loc": { + "start": { + "line": 11, + "column": 15 + }, + "end": { + "line": 12, + "column": 4 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + }, + "trailingComments": null + }, + "trailingComments": null + } + ], + "kind": "const", + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Liked component\n ", + "start": 377, + "end": 403, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 17, + "column": 3 + } + }, + "range": [ + 377, + 403 + ] + } + ] + }, + { + "type": "ExportDefaultDeclaration", + "start": 404, + "end": 1513, + "loc": { + "start": { + "line": 18, + "column": 0 + }, + "end": { + "line": 60, + "column": 1 + } + }, + "declaration": { + "type": "ClassDeclaration", + "start": 419, + "end": 1513, + "loc": { + "start": { + "line": 18, + "column": 15 + }, + "end": { + "line": 60, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 425, + "end": 430, + "loc": { + "start": { + "line": 18, + "column": 21 + }, + "end": { + "line": 18, + "column": 26 + } + }, + "name": "Liked", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 439, + "end": 448, + "loc": { + "start": { + "line": 18, + "column": 35 + }, + "end": { + "line": 18, + "column": 44 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 449, + "end": 1513, + "loc": { + "start": { + "line": 18, + "column": 45 + }, + "end": { + "line": 60, + "column": 1 + } + }, + "body": [ + { + "type": "Identifier", + "start": 525, + "end": 576, + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 26, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 532, + "end": 544, + "loc": { + "start": { + "line": 24, + "column": 11 + }, + "end": { + "line": 24, + "column": 23 + } + }, + "name": "defaultProps" + }, + "static": true, + "value": { + "type": "ObjectExpression", + "start": 547, + "end": 576, + "loc": { + "start": { + "line": 24, + "column": 26 + }, + "end": { + "line": 26, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 557, + "end": 569, + "loc": { + "start": { + "line": 25, + "column": 8 + }, + "end": { + "line": 25, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 557, + "end": 565, + "loc": { + "start": { + "line": 25, + "column": 8 + }, + "end": { + "line": 25, + "column": 16 + } + }, + "name": "pictures" + }, + "value": { + "type": "ArrayExpression", + "start": 567, + "end": 569, + "loc": { + "start": { + "line": 25, + "column": 18 + }, + "end": { + "line": 25, + "column": 20 + } + }, + "elements": [] + }, + "kind": "init" + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * defaultProps\n * @type {{pictures: Array}}\n ", + "start": 456, + "end": 520, + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 23, + "column": 7 + } + }, + "range": [ + 456, + 520 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * renderMessage\n * @returns {*}\n ", + "start": 582, + "end": 634, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 31, + "column": 7 + } + }, + "range": [ + 582, + 634 + ] + } + ] + }, + { + "type": "Identifier", + "start": 639, + "end": 779, + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 35, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 639, + "end": 652, + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 17 + } + }, + "name": "renderMessage", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ArrowFunctionExpression", + "start": 655, + "end": 779, + "loc": { + "start": { + "line": 32, + "column": 20 + }, + "end": { + "line": 35, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 661, + "end": 779, + "loc": { + "start": { + "line": 32, + "column": 26 + }, + "end": { + "line": 35, + "column": 5 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 671, + "end": 736, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 73 + } + }, + "test": { + "type": "BinaryExpression", + "start": 675, + "end": 707, + "loc": { + "start": { + "line": 33, + "column": 12 + }, + "end": { + "line": 33, + "column": 44 + } + }, + "left": { + "type": "MemberExpression", + "start": 675, + "end": 701, + "loc": { + "start": { + "line": 33, + "column": 12 + }, + "end": { + "line": 33, + "column": 38 + } + }, + "object": { + "type": "MemberExpression", + "start": 675, + "end": 694, + "loc": { + "start": { + "line": 33, + "column": 12 + }, + "end": { + "line": 33, + "column": 31 + } + }, + "object": { + "type": "MemberExpression", + "start": 675, + "end": 685, + "loc": { + "start": { + "line": 33, + "column": 12 + }, + "end": { + "line": 33, + "column": 22 + } + }, + "object": { + "type": "ThisExpression", + "start": 675, + "end": 679, + "loc": { + "start": { + "line": 33, + "column": 12 + }, + "end": { + "line": 33, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 680, + "end": 685, + "loc": { + "start": { + "line": 33, + "column": 17 + }, + "end": { + "line": 33, + "column": 22 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 686, + "end": 694, + "loc": { + "start": { + "line": 33, + "column": 23 + }, + "end": { + "line": 33, + "column": 31 + } + }, + "name": "pictures" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 695, + "end": 701, + "loc": { + "start": { + "line": 33, + "column": 32 + }, + "end": { + "line": 33, + "column": 38 + } + }, + "name": "length" + }, + "computed": false + }, + "operator": "===", + "right": { + "type": "Literal", + "start": 706, + "end": 707, + "loc": { + "start": { + "line": 33, + "column": 43 + }, + "end": { + "line": 33, + "column": 44 + } + }, + "value": 1, + "rawValue": 1, + "raw": "1" + } + }, + "consequent": { + "type": "ReturnStatement", + "start": 709, + "end": 736, + "loc": { + "start": { + "line": 33, + "column": 46 + }, + "end": { + "line": 33, + "column": 73 + } + }, + "argument": { + "type": "Literal", + "start": 716, + "end": 736, + "loc": { + "start": { + "line": 33, + "column": 53 + }, + "end": { + "line": 33, + "column": 73 + } + }, + "value": "Liked your picture", + "rawValue": "Liked your picture", + "raw": "'Liked your picture'" + } + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 745, + "end": 773, + "loc": { + "start": { + "line": 34, + "column": 8 + }, + "end": { + "line": 34, + "column": 36 + } + }, + "argument": { + "type": "Literal", + "start": 752, + "end": 773, + "loc": { + "start": { + "line": 34, + "column": 15 + }, + "end": { + "line": 34, + "column": 36 + } + }, + "value": "Liked your pictures", + "rawValue": "Liked your pictures", + "raw": "'Liked your pictures'" + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * renderMessage\n * @returns {*}\n ", + "start": 582, + "end": 634, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 31, + "column": 7 + } + }, + "range": [ + 582, + 634 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 785, + "end": 833, + "loc": { + "start": { + "line": 37, + "column": 4 + }, + "end": { + "line": 40, + "column": 7 + } + }, + "range": [ + 785, + 833 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 838, + "end": 1511, + "loc": { + "start": { + "line": 41, + "column": 4 + }, + "end": { + "line": 59, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 838, + "end": 844, + "loc": { + "start": { + "line": 41, + "column": 4 + }, + "end": { + "line": 41, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 844, + "end": 1511, + "loc": { + "start": { + "line": 41, + "column": 10 + }, + "end": { + "line": 59, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 847, + "end": 1511, + "loc": { + "start": { + "line": 41, + "column": 13 + }, + "end": { + "line": 59, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 857, + "end": 1505, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 58, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 878, + "end": 1495, + "loc": { + "start": { + "line": 43, + "column": 12 + }, + "end": { + "line": 57, + "column": 18 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 878, + "end": 883, + "loc": { + "start": { + "line": 43, + "column": 12 + }, + "end": { + "line": 43, + "column": 17 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 879, + "end": 882, + "loc": { + "start": { + "line": 43, + "column": 13 + }, + "end": { + "line": 43, + "column": 16 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1489, + "end": 1495, + "loc": { + "start": { + "line": 57, + "column": 12 + }, + "end": { + "line": 57, + "column": 18 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1491, + "end": 1494, + "loc": { + "start": { + "line": 57, + "column": 14 + }, + "end": { + "line": 57, + "column": 17 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 883, + "end": 900, + "loc": { + "start": { + "line": 43, + "column": 17 + }, + "end": { + "line": 44, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 900, + "end": 931, + "loc": { + "start": { + "line": 44, + "column": 16 + }, + "end": { + "line": 44, + "column": 47 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 900, + "end": 931, + "loc": { + "start": { + "line": 44, + "column": 16 + }, + "end": { + "line": 44, + "column": 47 + } + }, + "attributes": [ + { + "type": "JSXSpreadAttribute", + "start": 907, + "end": 928, + "loc": { + "start": { + "line": 44, + "column": 23 + }, + "end": { + "line": 44, + "column": 44 + } + }, + "argument": { + "type": "MemberExpression", + "start": 911, + "end": 927, + "loc": { + "start": { + "line": 44, + "column": 27 + }, + "end": { + "line": 44, + "column": 43 + } + }, + "object": { + "type": "MemberExpression", + "start": 911, + "end": 921, + "loc": { + "start": { + "line": 44, + "column": 27 + }, + "end": { + "line": 44, + "column": 37 + } + }, + "object": { + "type": "ThisExpression", + "start": 911, + "end": 915, + "loc": { + "start": { + "line": 44, + "column": 27 + }, + "end": { + "line": 44, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "start": 916, + "end": 921, + "loc": { + "start": { + "line": 44, + "column": 32 + }, + "end": { + "line": 44, + "column": 37 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 922, + "end": 927, + "loc": { + "start": { + "line": 44, + "column": 38 + }, + "end": { + "line": 44, + "column": 43 + } + }, + "name": "actor" + }, + "computed": false + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 901, + "end": 906, + "loc": { + "start": { + "line": 44, + "column": 17 + }, + "end": { + "line": 44, + "column": 22 + } + }, + "name": "Actor" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 931, + "end": 948, + "loc": { + "start": { + "line": 44, + "column": 47 + }, + "end": { + "line": 45, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 948, + "end": 1056, + "loc": { + "start": { + "line": 45, + "column": 16 + }, + "end": { + "line": 47, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 948, + "end": 979, + "loc": { + "start": { + "line": 45, + "column": 16 + }, + "end": { + "line": 45, + "column": 47 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 953, + "end": 978, + "loc": { + "start": { + "line": 45, + "column": 21 + }, + "end": { + "line": 45, + "column": 46 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 953, + "end": 962, + "loc": { + "start": { + "line": 45, + "column": 21 + }, + "end": { + "line": 45, + "column": 30 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 963, + "end": 978, + "loc": { + "start": { + "line": 45, + "column": 31 + }, + "end": { + "line": 45, + "column": 46 + } + }, + "value": "vertical-line", + "rawValue": null, + "raw": "\"vertical-line\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 949, + "end": 952, + "loc": { + "start": { + "line": 45, + "column": 17 + }, + "end": { + "line": 45, + "column": 20 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1050, + "end": 1056, + "loc": { + "start": { + "line": 47, + "column": 16 + }, + "end": { + "line": 47, + "column": 22 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1052, + "end": 1055, + "loc": { + "start": { + "line": 47, + "column": 18 + }, + "end": { + "line": 47, + "column": 21 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 979, + "end": 1000, + "loc": { + "start": { + "line": 45, + "column": 47 + }, + "end": { + "line": 46, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1000, + "end": 1033, + "loc": { + "start": { + "line": 46, + "column": 20 + }, + "end": { + "line": 46, + "column": 53 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1000, + "end": 1029, + "loc": { + "start": { + "line": 46, + "column": 20 + }, + "end": { + "line": 46, + "column": 49 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1003, + "end": 1028, + "loc": { + "start": { + "line": 46, + "column": 23 + }, + "end": { + "line": 46, + "column": 48 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1003, + "end": 1012, + "loc": { + "start": { + "line": 46, + "column": 23 + }, + "end": { + "line": 46, + "column": 32 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 1013, + "end": 1028, + "loc": { + "start": { + "line": 46, + "column": 33 + }, + "end": { + "line": 46, + "column": 48 + } + }, + "value": "ion-ios-heart", + "rawValue": null, + "raw": "\"ion-ios-heart\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1001, + "end": 1002, + "loc": { + "start": { + "line": 46, + "column": 21 + }, + "end": { + "line": 46, + "column": 22 + } + }, + "name": "i" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1029, + "end": 1033, + "loc": { + "start": { + "line": 46, + "column": 49 + }, + "end": { + "line": 46, + "column": 53 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1031, + "end": 1032, + "loc": { + "start": { + "line": 46, + "column": 51 + }, + "end": { + "line": 46, + "column": 52 + } + }, + "name": "i" + } + }, + "children": [] + }, + { + "type": "Literal", + "start": 1033, + "end": 1050, + "loc": { + "start": { + "line": 46, + "column": 53 + }, + "end": { + "line": 47, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 1056, + "end": 1073, + "loc": { + "start": { + "line": 47, + "column": 22 + }, + "end": { + "line": 48, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1073, + "end": 1195, + "loc": { + "start": { + "line": 48, + "column": 16 + }, + "end": { + "line": 50, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1073, + "end": 1098, + "loc": { + "start": { + "line": 48, + "column": 16 + }, + "end": { + "line": 48, + "column": 41 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1078, + "end": 1097, + "loc": { + "start": { + "line": 48, + "column": 21 + }, + "end": { + "line": 48, + "column": 40 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1078, + "end": 1087, + "loc": { + "start": { + "line": 48, + "column": 21 + }, + "end": { + "line": 48, + "column": 30 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 1088, + "end": 1097, + "loc": { + "start": { + "line": 48, + "column": 31 + }, + "end": { + "line": 48, + "column": 40 + } + }, + "value": "message", + "rawValue": null, + "raw": "\"message\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1074, + "end": 1077, + "loc": { + "start": { + "line": 48, + "column": 17 + }, + "end": { + "line": 48, + "column": 20 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1189, + "end": 1195, + "loc": { + "start": { + "line": 50, + "column": 16 + }, + "end": { + "line": 50, + "column": 22 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1191, + "end": 1194, + "loc": { + "start": { + "line": 50, + "column": 18 + }, + "end": { + "line": 50, + "column": 21 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 1098, + "end": 1119, + "loc": { + "start": { + "line": 48, + "column": 41 + }, + "end": { + "line": 49, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1119, + "end": 1172, + "loc": { + "start": { + "line": 49, + "column": 20 + }, + "end": { + "line": 49, + "column": 73 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1119, + "end": 1122, + "loc": { + "start": { + "line": 49, + "column": 20 + }, + "end": { + "line": 49, + "column": 23 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 1120, + "end": 1121, + "loc": { + "start": { + "line": 49, + "column": 21 + }, + "end": { + "line": 49, + "column": 22 + } + }, + "name": "p" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1168, + "end": 1172, + "loc": { + "start": { + "line": 49, + "column": 69 + }, + "end": { + "line": 49, + "column": 73 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1170, + "end": 1171, + "loc": { + "start": { + "line": 49, + "column": 71 + }, + "end": { + "line": 49, + "column": 72 + } + }, + "name": "p" + } + }, + "children": [ + { + "type": "JSXExpressionContainer", + "start": 1122, + "end": 1144, + "loc": { + "start": { + "line": 49, + "column": 23 + }, + "end": { + "line": 49, + "column": 45 + } + }, + "expression": { + "type": "CallExpression", + "start": 1123, + "end": 1143, + "loc": { + "start": { + "line": 49, + "column": 24 + }, + "end": { + "line": 49, + "column": 44 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1123, + "end": 1141, + "loc": { + "start": { + "line": 49, + "column": 24 + }, + "end": { + "line": 49, + "column": 42 + } + }, + "object": { + "type": "ThisExpression", + "start": 1123, + "end": 1127, + "loc": { + "start": { + "line": 49, + "column": 24 + }, + "end": { + "line": 49, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "start": 1128, + "end": 1141, + "loc": { + "start": { + "line": 49, + "column": 29 + }, + "end": { + "line": 49, + "column": 42 + } + }, + "name": "renderMessage" + }, + "computed": false + }, + "arguments": [] + } + }, + { + "type": "Literal", + "start": 1144, + "end": 1146, + "loc": { + "start": { + "line": 49, + "column": 45 + }, + "end": { + "line": 49, + "column": 47 + } + }, + "value": ", ", + "rawValue": null, + "raw": ", " + }, + { + "type": "JSXExpressionContainer", + "start": 1146, + "end": 1168, + "loc": { + "start": { + "line": 49, + "column": 47 + }, + "end": { + "line": 49, + "column": 69 + } + }, + "expression": { + "type": "MemberExpression", + "start": 1147, + "end": 1167, + "loc": { + "start": { + "line": 49, + "column": 48 + }, + "end": { + "line": 49, + "column": 68 + } + }, + "object": { + "type": "MemberExpression", + "start": 1147, + "end": 1157, + "loc": { + "start": { + "line": 49, + "column": 48 + }, + "end": { + "line": 49, + "column": 58 + } + }, + "object": { + "type": "ThisExpression", + "start": 1147, + "end": 1151, + "loc": { + "start": { + "line": 49, + "column": 48 + }, + "end": { + "line": 49, + "column": 52 + } + } + }, + "property": { + "type": "Identifier", + "start": 1152, + "end": 1157, + "loc": { + "start": { + "line": 49, + "column": 53 + }, + "end": { + "line": 49, + "column": 58 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1158, + "end": 1167, + "loc": { + "start": { + "line": 49, + "column": 59 + }, + "end": { + "line": 49, + "column": 68 + } + }, + "name": "timeSince" + }, + "computed": false + } + } + ] + }, + { + "type": "Literal", + "start": 1172, + "end": 1189, + "loc": { + "start": { + "line": 49, + "column": 73 + }, + "end": { + "line": 50, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 1195, + "end": 1212, + "loc": { + "start": { + "line": 50, + "column": 22 + }, + "end": { + "line": 51, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1212, + "end": 1241, + "loc": { + "start": { + "line": 51, + "column": 16 + }, + "end": { + "line": 51, + "column": 45 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1212, + "end": 1235, + "loc": { + "start": { + "line": 51, + "column": 16 + }, + "end": { + "line": 51, + "column": 39 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1217, + "end": 1234, + "loc": { + "start": { + "line": 51, + "column": 21 + }, + "end": { + "line": 51, + "column": 38 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1217, + "end": 1226, + "loc": { + "start": { + "line": 51, + "column": 21 + }, + "end": { + "line": 51, + "column": 30 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 1227, + "end": 1234, + "loc": { + "start": { + "line": 51, + "column": 31 + }, + "end": { + "line": 51, + "column": 38 + } + }, + "value": "clear", + "rawValue": null, + "raw": "\"clear\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1213, + "end": 1216, + "loc": { + "start": { + "line": 51, + "column": 17 + }, + "end": { + "line": 51, + "column": 20 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1235, + "end": 1241, + "loc": { + "start": { + "line": 51, + "column": 39 + }, + "end": { + "line": 51, + "column": 45 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1237, + "end": 1240, + "loc": { + "start": { + "line": 51, + "column": 41 + }, + "end": { + "line": 51, + "column": 44 + } + }, + "name": "div" + } + }, + "children": [] + }, + { + "type": "Literal", + "start": 1241, + "end": 1258, + "loc": { + "start": { + "line": 51, + "column": 45 + }, + "end": { + "line": 52, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1258, + "end": 1476, + "loc": { + "start": { + "line": 52, + "column": 16 + }, + "end": { + "line": 56, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1258, + "end": 1282, + "loc": { + "start": { + "line": 52, + "column": 16 + }, + "end": { + "line": 52, + "column": 40 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1263, + "end": 1281, + "loc": { + "start": { + "line": 52, + "column": 21 + }, + "end": { + "line": 52, + "column": 39 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1263, + "end": 1272, + "loc": { + "start": { + "line": 52, + "column": 21 + }, + "end": { + "line": 52, + "column": 30 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 1273, + "end": 1281, + "loc": { + "start": { + "line": 52, + "column": 31 + }, + "end": { + "line": 52, + "column": 39 + } + }, + "value": "photos", + "rawValue": null, + "raw": "\"photos\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1259, + "end": 1262, + "loc": { + "start": { + "line": 52, + "column": 17 + }, + "end": { + "line": 52, + "column": 20 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1470, + "end": 1476, + "loc": { + "start": { + "line": 56, + "column": 16 + }, + "end": { + "line": 56, + "column": 22 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1472, + "end": 1475, + "loc": { + "start": { + "line": 56, + "column": 18 + }, + "end": { + "line": 56, + "column": 21 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 1282, + "end": 1303, + "loc": { + "start": { + "line": 52, + "column": 40 + }, + "end": { + "line": 53, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1303, + "end": 1453, + "loc": { + "start": { + "line": 53, + "column": 20 + }, + "end": { + "line": 55, + "column": 26 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1303, + "end": 1325, + "loc": { + "start": { + "line": 53, + "column": 20 + }, + "end": { + "line": 53, + "column": 42 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1308, + "end": 1324, + "loc": { + "start": { + "line": 53, + "column": 25 + }, + "end": { + "line": 53, + "column": 41 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1308, + "end": 1317, + "loc": { + "start": { + "line": 53, + "column": 25 + }, + "end": { + "line": 53, + "column": 34 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 1318, + "end": 1324, + "loc": { + "start": { + "line": 53, + "column": 35 + }, + "end": { + "line": 53, + "column": 41 + } + }, + "value": "grid", + "rawValue": null, + "raw": "\"grid\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1304, + "end": 1307, + "loc": { + "start": { + "line": 53, + "column": 21 + }, + "end": { + "line": 53, + "column": 24 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1447, + "end": 1453, + "loc": { + "start": { + "line": 55, + "column": 20 + }, + "end": { + "line": 55, + "column": 26 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1449, + "end": 1452, + "loc": { + "start": { + "line": 55, + "column": 22 + }, + "end": { + "line": 55, + "column": 25 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 1325, + "end": 1350, + "loc": { + "start": { + "line": 53, + "column": 42 + }, + "end": { + "line": 54, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 1350, + "end": 1426, + "loc": { + "start": { + "line": 54, + "column": 24 + }, + "end": { + "line": 54, + "column": 100 + } + }, + "expression": { + "type": "CallExpression", + "start": 1351, + "end": 1425, + "loc": { + "start": { + "line": 54, + "column": 25 + }, + "end": { + "line": 54, + "column": 99 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1351, + "end": 1374, + "loc": { + "start": { + "line": 54, + "column": 25 + }, + "end": { + "line": 54, + "column": 48 + } + }, + "object": { + "type": "MemberExpression", + "start": 1351, + "end": 1370, + "loc": { + "start": { + "line": 54, + "column": 25 + }, + "end": { + "line": 54, + "column": 44 + } + }, + "object": { + "type": "MemberExpression", + "start": 1351, + "end": 1361, + "loc": { + "start": { + "line": 54, + "column": 25 + }, + "end": { + "line": 54, + "column": 35 + } + }, + "object": { + "type": "ThisExpression", + "start": 1351, + "end": 1355, + "loc": { + "start": { + "line": 54, + "column": 25 + }, + "end": { + "line": 54, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "start": 1356, + "end": 1361, + "loc": { + "start": { + "line": 54, + "column": 30 + }, + "end": { + "line": 54, + "column": 35 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1362, + "end": 1370, + "loc": { + "start": { + "line": 54, + "column": 36 + }, + "end": { + "line": 54, + "column": 44 + } + }, + "name": "pictures" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1371, + "end": 1374, + "loc": { + "start": { + "line": 54, + "column": 45 + }, + "end": { + "line": 54, + "column": 48 + } + }, + "name": "map" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 1375, + "end": 1424, + "loc": { + "start": { + "line": 54, + "column": 49 + }, + "end": { + "line": 54, + "column": 98 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1376, + "end": 1377, + "loc": { + "start": { + "line": 54, + "column": 50 + }, + "end": { + "line": 54, + "column": 51 + } + }, + "name": "p" + }, + { + "type": "Identifier", + "start": 1379, + "end": 1380, + "loc": { + "start": { + "line": 54, + "column": 53 + }, + "end": { + "line": 54, + "column": 54 + } + }, + "name": "i" + } + ], + "body": { + "type": "JSXElement", + "start": 1385, + "end": 1424, + "loc": { + "start": { + "line": 54, + "column": 59 + }, + "end": { + "line": 54, + "column": 98 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1385, + "end": 1424, + "loc": { + "start": { + "line": 54, + "column": 59 + }, + "end": { + "line": 54, + "column": 98 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1394, + "end": 1414, + "loc": { + "start": { + "line": 54, + "column": 68 + }, + "end": { + "line": 54, + "column": 88 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1394, + "end": 1397, + "loc": { + "start": { + "line": 54, + "column": 68 + }, + "end": { + "line": 54, + "column": 71 + } + }, + "name": "key" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 1398, + "end": 1414, + "loc": { + "start": { + "line": 54, + "column": 72 + }, + "end": { + "line": 54, + "column": 88 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 1399, + "end": 1413, + "loc": { + "start": { + "line": 54, + "column": 73 + }, + "end": { + "line": 54, + "column": 87 + } + }, + "expressions": [ + { + "type": "Identifier", + "start": 1410, + "end": 1411, + "loc": { + "start": { + "line": 54, + "column": 84 + }, + "end": { + "line": 54, + "column": 85 + } + }, + "name": "i" + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 1400, + "end": 1408, + "loc": { + "start": { + "line": 54, + "column": 74 + }, + "end": { + "line": 54, + "column": 82 + } + }, + "value": { + "raw": "picture-", + "cooked": "picture-" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 1412, + "end": 1412, + "loc": { + "start": { + "line": 54, + "column": 86 + }, + "end": { + "line": 54, + "column": 86 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + }, + { + "type": "JSXSpreadAttribute", + "start": 1415, + "end": 1421, + "loc": { + "start": { + "line": 54, + "column": 89 + }, + "end": { + "line": 54, + "column": 95 + } + }, + "argument": { + "type": "Identifier", + "start": 1419, + "end": 1420, + "loc": { + "start": { + "line": 54, + "column": 93 + }, + "end": { + "line": 54, + "column": 94 + } + }, + "name": "p" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1386, + "end": 1393, + "loc": { + "start": { + "line": 54, + "column": 60 + }, + "end": { + "line": 54, + "column": 67 + } + }, + "name": "Picture" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + } + ] + } + }, + { + "type": "Literal", + "start": 1426, + "end": 1447, + "loc": { + "start": { + "line": 54, + "column": 100 + }, + "end": { + "line": 55, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 1453, + "end": 1470, + "loc": { + "start": { + "line": 55, + "column": 26 + }, + "end": { + "line": 56, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 1476, + "end": 1489, + "loc": { + "start": { + "line": 56, + "column": 22 + }, + "end": { + "line": 57, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 785, + "end": 833, + "loc": { + "start": { + "line": 37, + "column": 4 + }, + "end": { + "line": 40, + "column": 7 + } + }, + "range": [ + 785, + 833 + ] + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Liked component\n ", + "start": 377, + "end": 403, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 17, + "column": 3 + } + }, + "range": [ + 377, + 403 + ] + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Liked component\n ", + "start": 377, + "end": 403, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 17, + "column": 3 + } + }, + "range": [ + 377, + 403 + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/components/Activity/index.js.json b/app/docs/ast/source/components/Activity/index.js.json new file mode 100644 index 0000000..1918525 --- /dev/null +++ b/app/docs/ast/source/components/Activity/index.js.json @@ -0,0 +1,1833 @@ +{ + "type": "Program", + "start": 0, + "end": 888, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 41, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 54, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 54 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + }, + { + "type": "ImportSpecifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "imported": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + }, + "local": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + } + }, + { + "type": "ImportSpecifier", + "start": 27, + "end": 39, + "loc": { + "start": { + "line": 1, + "column": 27 + }, + "end": { + "line": 1, + "column": 39 + } + }, + "imported": { + "type": "Identifier", + "start": 27, + "end": 39, + "loc": { + "start": { + "line": 1, + "column": 27 + }, + "end": { + "line": 1, + "column": 39 + } + }, + "name": "cloneElement" + }, + "local": { + "type": "Identifier", + "start": 27, + "end": 39, + "loc": { + "start": { + "line": 1, + "column": 27 + }, + "end": { + "line": 1, + "column": 39 + } + }, + "name": "cloneElement" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 47, + "end": 54, + "loc": { + "start": { + "line": 1, + "column": 47 + }, + "end": { + "line": 1, + "column": 54 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 56, + "end": 83, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 27 + } + }, + "specifiers": [ + { + "type": "Identifier", + "start": 63, + "end": 68, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 12 + } + }, + "exported": { + "type": "Identifier", + "start": 63, + "end": 68, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 12 + } + }, + "name": "Actor" + } + } + ], + "source": { + "type": "Literal", + "start": 74, + "end": 83, + "loc": { + "start": { + "line": 3, + "column": 18 + }, + "end": { + "line": 3, + "column": 27 + } + }, + "value": "./Actor", + "rawValue": "./Actor", + "raw": "'./Actor'" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 84, + "end": 119, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 35 + } + }, + "specifiers": [ + { + "type": "Identifier", + "start": 91, + "end": 100, + "loc": { + "start": { + "line": 4, + "column": 7 + }, + "end": { + "line": 4, + "column": 16 + } + }, + "exported": { + "type": "Identifier", + "start": 91, + "end": 100, + "loc": { + "start": { + "line": 4, + "column": 7 + }, + "end": { + "line": 4, + "column": 16 + } + }, + "name": "Following" + } + } + ], + "source": { + "type": "Literal", + "start": 106, + "end": 119, + "loc": { + "start": { + "line": 4, + "column": 22 + }, + "end": { + "line": 4, + "column": 35 + } + }, + "value": "./Following", + "rawValue": "./Following", + "raw": "'./Following'" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 120, + "end": 147, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 27 + } + }, + "specifiers": [ + { + "type": "Identifier", + "start": 127, + "end": 132, + "loc": { + "start": { + "line": 5, + "column": 7 + }, + "end": { + "line": 5, + "column": 12 + } + }, + "exported": { + "type": "Identifier", + "start": 127, + "end": 132, + "loc": { + "start": { + "line": 5, + "column": 7 + }, + "end": { + "line": 5, + "column": 12 + } + }, + "name": "Liked" + } + } + ], + "source": { + "type": "Literal", + "start": 138, + "end": 147, + "loc": { + "start": { + "line": 5, + "column": 18 + }, + "end": { + "line": 5, + "column": 27 + } + }, + "value": "./Liked", + "rawValue": "./Liked", + "raw": "'./Liked'" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 148, + "end": 183, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 6, + "column": 35 + } + }, + "specifiers": [ + { + "type": "Identifier", + "start": 155, + "end": 164, + "loc": { + "start": { + "line": 6, + "column": 7 + }, + "end": { + "line": 6, + "column": 16 + } + }, + "exported": { + "type": "Identifier", + "start": 155, + "end": 164, + "loc": { + "start": { + "line": 6, + "column": 7 + }, + "end": { + "line": 6, + "column": 16 + } + }, + "name": "Commented" + } + } + ], + "source": { + "type": "Literal", + "start": 170, + "end": 183, + "loc": { + "start": { + "line": 6, + "column": 22 + }, + "end": { + "line": 6, + "column": 35 + } + }, + "value": "./Commented", + "rawValue": "./Commented", + "raw": "'./Commented'" + } + }, + { + "type": "ImportDeclaration", + "start": 185, + "end": 212, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 27 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 192, + "end": 198, + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 13 + } + }, + "local": { + "type": "Identifier", + "start": 192, + "end": 198, + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 13 + } + }, + "name": "moment" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 204, + "end": 212, + "loc": { + "start": { + "line": 8, + "column": 19 + }, + "end": { + "line": 8, + "column": 27 + } + }, + "value": "moment", + "rawValue": "moment", + "raw": "'moment'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Activity index component\n ", + "start": 214, + "end": 249, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + }, + "range": [ + 214, + 249 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 250, + "end": 887, + "loc": { + "start": { + "line": 13, + "column": 0 + }, + "end": { + "line": 40, + "column": 1 + } + }, + "declaration": { + "type": "ClassDeclaration", + "start": 257, + "end": 887, + "loc": { + "start": { + "line": 13, + "column": 7 + }, + "end": { + "line": 40, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 263, + "end": 267, + "loc": { + "start": { + "line": 13, + "column": 13 + }, + "end": { + "line": 13, + "column": 17 + } + }, + "name": "Item", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 276, + "end": 285, + "loc": { + "start": { + "line": 13, + "column": 26 + }, + "end": { + "line": 13, + "column": 35 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 286, + "end": 887, + "loc": { + "start": { + "line": 13, + "column": 36 + }, + "end": { + "line": 40, + "column": 1 + } + }, + "body": [ + { + "type": "Identifier", + "start": 385, + "end": 478, + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 23, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 392, + "end": 404, + "loc": { + "start": { + "line": 19, + "column": 11 + }, + "end": { + "line": 19, + "column": 23 + } + }, + "name": "defaultProps" + }, + "static": true, + "value": { + "type": "ObjectExpression", + "start": 407, + "end": 478, + "loc": { + "start": { + "line": 19, + "column": 26 + }, + "end": { + "line": 23, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 417, + "end": 427, + "loc": { + "start": { + "line": 20, + "column": 8 + }, + "end": { + "line": 20, + "column": 18 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 417, + "end": 421, + "loc": { + "start": { + "line": 20, + "column": 8 + }, + "end": { + "line": 20, + "column": 12 + } + }, + "name": "type" + }, + "value": { + "type": "Literal", + "start": 423, + "end": 427, + "loc": { + "start": { + "line": 20, + "column": 14 + }, + "end": { + "line": 20, + "column": 18 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 437, + "end": 452, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 23 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 437, + "end": 446, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 17 + } + }, + "name": "timestamp" + }, + "value": { + "type": "Literal", + "start": 448, + "end": 452, + "loc": { + "start": { + "line": 21, + "column": 19 + }, + "end": { + "line": 21, + "column": 23 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 462, + "end": 471, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 17 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 462, + "end": 467, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 13 + } + }, + "name": "actor" + }, + "value": { + "type": "ObjectExpression", + "start": 469, + "end": 471, + "loc": { + "start": { + "line": 22, + "column": 15 + }, + "end": { + "line": 22, + "column": 17 + } + }, + "properties": [] + }, + "kind": "init" + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * defaultProps\n * @type {{type: null, timestamp: null, actor: {}}}\n ", + "start": 293, + "end": 380, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 18, + "column": 7 + } + }, + "range": [ + 293, + 380 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 484, + "end": 532, + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 28, + "column": 7 + } + }, + "range": [ + 484, + 532 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 537, + "end": 885, + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 39, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 537, + "end": 543, + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 543, + "end": 885, + "loc": { + "start": { + "line": 29, + "column": 10 + }, + "end": { + "line": 39, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 546, + "end": 885, + "loc": { + "start": { + "line": 29, + "column": 13 + }, + "end": { + "line": 39, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 556, + "end": 879, + "loc": { + "start": { + "line": 30, + "column": 8 + }, + "end": { + "line": 38, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 577, + "end": 869, + "loc": { + "start": { + "line": 31, + "column": 12 + }, + "end": { + "line": 37, + "column": 17 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 577, + "end": 609, + "loc": { + "start": { + "line": 31, + "column": 12 + }, + "end": { + "line": 31, + "column": 44 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 581, + "end": 608, + "loc": { + "start": { + "line": 31, + "column": 16 + }, + "end": { + "line": 31, + "column": 43 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 581, + "end": 590, + "loc": { + "start": { + "line": 31, + "column": 16 + }, + "end": { + "line": 31, + "column": 25 + } + }, + "name": "className" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 591, + "end": 608, + "loc": { + "start": { + "line": 31, + "column": 26 + }, + "end": { + "line": 31, + "column": 43 + } + }, + "expression": { + "type": "MemberExpression", + "start": 592, + "end": 607, + "loc": { + "start": { + "line": 31, + "column": 27 + }, + "end": { + "line": 31, + "column": 42 + } + }, + "object": { + "type": "MemberExpression", + "start": 592, + "end": 602, + "loc": { + "start": { + "line": 31, + "column": 27 + }, + "end": { + "line": 31, + "column": 37 + } + }, + "object": { + "type": "ThisExpression", + "start": 592, + "end": 596, + "loc": { + "start": { + "line": 31, + "column": 27 + }, + "end": { + "line": 31, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "start": 597, + "end": 602, + "loc": { + "start": { + "line": 31, + "column": 32 + }, + "end": { + "line": 31, + "column": 37 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 603, + "end": 607, + "loc": { + "start": { + "line": 31, + "column": 38 + }, + "end": { + "line": 31, + "column": 42 + } + }, + "name": "type" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 578, + "end": 580, + "loc": { + "start": { + "line": 31, + "column": 13 + }, + "end": { + "line": 31, + "column": 15 + } + }, + "name": "li" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 864, + "end": 869, + "loc": { + "start": { + "line": 37, + "column": 12 + }, + "end": { + "line": 37, + "column": 17 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 866, + "end": 868, + "loc": { + "start": { + "line": 37, + "column": 14 + }, + "end": { + "line": 37, + "column": 16 + } + }, + "name": "li" + } + }, + "children": [ + { + "type": "Literal", + "start": 609, + "end": 626, + "loc": { + "start": { + "line": 31, + "column": 44 + }, + "end": { + "line": 32, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 626, + "end": 851, + "loc": { + "start": { + "line": 32, + "column": 16 + }, + "end": { + "line": 36, + "column": 19 + } + }, + "expression": { + "type": "CallExpression", + "start": 627, + "end": 850, + "loc": { + "start": { + "line": 32, + "column": 17 + }, + "end": { + "line": 36, + "column": 18 + } + }, + "callee": { + "type": "Identifier", + "start": 627, + "end": 639, + "loc": { + "start": { + "line": 32, + "column": 17 + }, + "end": { + "line": 32, + "column": 29 + } + }, + "name": "cloneElement" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 640, + "end": 659, + "loc": { + "start": { + "line": 32, + "column": 30 + }, + "end": { + "line": 32, + "column": 49 + } + }, + "object": { + "type": "MemberExpression", + "start": 640, + "end": 650, + "loc": { + "start": { + "line": 32, + "column": 30 + }, + "end": { + "line": 32, + "column": 40 + } + }, + "object": { + "type": "ThisExpression", + "start": 640, + "end": 644, + "loc": { + "start": { + "line": 32, + "column": 30 + }, + "end": { + "line": 32, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "start": 645, + "end": 650, + "loc": { + "start": { + "line": 32, + "column": 35 + }, + "end": { + "line": 32, + "column": 40 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 651, + "end": 659, + "loc": { + "start": { + "line": 32, + "column": 41 + }, + "end": { + "line": 32, + "column": 49 + } + }, + "name": "children" + }, + "computed": false + }, + { + "type": "ObjectExpression", + "start": 661, + "end": 849, + "loc": { + "start": { + "line": 32, + "column": 51 + }, + "end": { + "line": 36, + "column": 17 + } + }, + "properties": [ + { + "type": "Property", + "start": 683, + "end": 714, + "loc": { + "start": { + "line": 33, + "column": 20 + }, + "end": { + "line": 33, + "column": 51 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 683, + "end": 692, + "loc": { + "start": { + "line": 33, + "column": 20 + }, + "end": { + "line": 33, + "column": 29 + } + }, + "name": "timestamp" + }, + "value": { + "type": "MemberExpression", + "start": 694, + "end": 714, + "loc": { + "start": { + "line": 33, + "column": 31 + }, + "end": { + "line": 33, + "column": 51 + } + }, + "object": { + "type": "MemberExpression", + "start": 694, + "end": 704, + "loc": { + "start": { + "line": 33, + "column": 31 + }, + "end": { + "line": 33, + "column": 41 + } + }, + "object": { + "type": "ThisExpression", + "start": 694, + "end": 698, + "loc": { + "start": { + "line": 33, + "column": 31 + }, + "end": { + "line": 33, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "start": 699, + "end": 704, + "loc": { + "start": { + "line": 33, + "column": 36 + }, + "end": { + "line": 33, + "column": 41 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 705, + "end": 714, + "loc": { + "start": { + "line": 33, + "column": 42 + }, + "end": { + "line": 33, + "column": 51 + } + }, + "name": "timestamp" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 736, + "end": 759, + "loc": { + "start": { + "line": 34, + "column": 20 + }, + "end": { + "line": 34, + "column": 43 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 736, + "end": 741, + "loc": { + "start": { + "line": 34, + "column": 20 + }, + "end": { + "line": 34, + "column": 25 + } + }, + "name": "actor" + }, + "value": { + "type": "MemberExpression", + "start": 743, + "end": 759, + "loc": { + "start": { + "line": 34, + "column": 27 + }, + "end": { + "line": 34, + "column": 43 + } + }, + "object": { + "type": "MemberExpression", + "start": 743, + "end": 753, + "loc": { + "start": { + "line": 34, + "column": 27 + }, + "end": { + "line": 34, + "column": 37 + } + }, + "object": { + "type": "ThisExpression", + "start": 743, + "end": 747, + "loc": { + "start": { + "line": 34, + "column": 27 + }, + "end": { + "line": 34, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "start": 748, + "end": 753, + "loc": { + "start": { + "line": 34, + "column": 32 + }, + "end": { + "line": 34, + "column": 37 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 754, + "end": 759, + "loc": { + "start": { + "line": 34, + "column": 38 + }, + "end": { + "line": 34, + "column": 43 + } + }, + "name": "actor" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 781, + "end": 830, + "loc": { + "start": { + "line": 35, + "column": 20 + }, + "end": { + "line": 35, + "column": 69 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 781, + "end": 790, + "loc": { + "start": { + "line": 35, + "column": 20 + }, + "end": { + "line": 35, + "column": 29 + } + }, + "name": "timeSince" + }, + "value": { + "type": "CallExpression", + "start": 792, + "end": 830, + "loc": { + "start": { + "line": 35, + "column": 31 + }, + "end": { + "line": 35, + "column": 69 + } + }, + "callee": { + "type": "MemberExpression", + "start": 792, + "end": 828, + "loc": { + "start": { + "line": 35, + "column": 31 + }, + "end": { + "line": 35, + "column": 67 + } + }, + "object": { + "type": "CallExpression", + "start": 792, + "end": 820, + "loc": { + "start": { + "line": 35, + "column": 31 + }, + "end": { + "line": 35, + "column": 59 + } + }, + "callee": { + "type": "Identifier", + "start": 792, + "end": 798, + "loc": { + "start": { + "line": 35, + "column": 31 + }, + "end": { + "line": 35, + "column": 37 + } + }, + "name": "moment" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 799, + "end": 819, + "loc": { + "start": { + "line": 35, + "column": 38 + }, + "end": { + "line": 35, + "column": 58 + } + }, + "object": { + "type": "MemberExpression", + "start": 799, + "end": 809, + "loc": { + "start": { + "line": 35, + "column": 38 + }, + "end": { + "line": 35, + "column": 48 + } + }, + "object": { + "type": "ThisExpression", + "start": 799, + "end": 803, + "loc": { + "start": { + "line": 35, + "column": 38 + }, + "end": { + "line": 35, + "column": 42 + } + } + }, + "property": { + "type": "Identifier", + "start": 804, + "end": 809, + "loc": { + "start": { + "line": 35, + "column": 43 + }, + "end": { + "line": 35, + "column": 48 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 810, + "end": 819, + "loc": { + "start": { + "line": 35, + "column": 49 + }, + "end": { + "line": 35, + "column": 58 + } + }, + "name": "timestamp" + }, + "computed": false + } + ] + }, + "property": { + "type": "Identifier", + "start": 821, + "end": 828, + "loc": { + "start": { + "line": 35, + "column": 60 + }, + "end": { + "line": 35, + "column": 67 + } + }, + "name": "fromNow" + }, + "computed": false + }, + "arguments": [] + }, + "kind": "init" + } + ] + } + ] + } + }, + { + "type": "Literal", + "start": 851, + "end": 864, + "loc": { + "start": { + "line": 36, + "column": 19 + }, + "end": { + "line": 37, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 484, + "end": 532, + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 28, + "column": 7 + } + }, + "range": [ + 484, + 532 + ] + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Activity index component\n ", + "start": 214, + "end": 249, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + }, + "range": [ + 214, + 249 + ] + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Activity index component\n ", + "start": 214, + "end": 249, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + }, + "range": [ + 214, + 249 + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/components/Avatar/index.js.json b/app/docs/ast/source/components/Avatar/index.js.json new file mode 100644 index 0000000..9683ca0 --- /dev/null +++ b/app/docs/ast/source/components/Avatar/index.js.json @@ -0,0 +1,3690 @@ +{ + "type": "Program", + "start": 0, + "end": 911, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 45, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + }, + { + "type": "ImportSpecifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "imported": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + }, + "local": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 33, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 33 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ImportDeclaration", + "start": 42, + "end": 63, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 21 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 49, + "end": 52, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 10 + } + }, + "local": { + "type": "Identifier", + "start": 49, + "end": 52, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 10 + } + }, + "name": "md5" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 58, + "end": 63, + "loc": { + "start": { + "line": 3, + "column": 16 + }, + "end": { + "line": 3, + "column": 21 + } + }, + "value": "md5", + "rawValue": "md5", + "raw": "'md5'" + } + }, + { + "type": "VariableDeclaration", + "start": 65, + "end": 170, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 10, + "column": 1 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 71, + "end": 170, + "loc": { + "start": { + "line": 5, + "column": 6 + }, + "end": { + "line": 10, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 71, + "end": 77, + "loc": { + "start": { + "line": 5, + "column": 6 + }, + "end": { + "line": 5, + "column": 12 + } + }, + "name": "styles" + }, + "init": { + "type": "ObjectExpression", + "start": 80, + "end": 170, + "loc": { + "start": { + "line": 5, + "column": 15 + }, + "end": { + "line": 10, + "column": 1 + } + }, + "properties": [ + { + "type": "Property", + "start": 86, + "end": 168, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 9, + "column": 5 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 86, + "end": 90, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 6, + "column": 8 + } + }, + "name": "root" + }, + "value": { + "type": "ObjectExpression", + "start": 92, + "end": 168, + "loc": { + "start": { + "line": 6, + "column": 10 + }, + "end": { + "line": 9, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 102, + "end": 128, + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 34 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 102, + "end": 117, + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 23 + } + }, + "name": "backgroundColor" + }, + "value": { + "type": "Literal", + "start": 119, + "end": 128, + "loc": { + "start": { + "line": 7, + "column": 25 + }, + "end": { + "line": 7, + "column": 34 + } + }, + "value": "#fafafa", + "rawValue": "#fafafa", + "raw": "'#fafafa'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 138, + "end": 161, + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 31 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 138, + "end": 145, + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 15 + } + }, + "name": "display" + }, + "value": { + "type": "Literal", + "start": 147, + "end": 161, + "loc": { + "start": { + "line": 8, + "column": 17 + }, + "end": { + "line": 8, + "column": 31 + } + }, + "value": "inline-block", + "rawValue": "inline-block", + "raw": "'inline-block'" + }, + "kind": "init" + } + ] + }, + "kind": "init" + } + ], + "trailingComments": null + }, + "trailingComments": null + } + ], + "kind": "const", + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Avatar index component\n ", + "start": 172, + "end": 205, + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + }, + "range": [ + 172, + 205 + ] + } + ] + }, + { + "type": "Identifier", + "start": 206, + "end": 887, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 42, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 212, + "end": 218, + "loc": { + "start": { + "line": 15, + "column": 6 + }, + "end": { + "line": 15, + "column": 12 + } + }, + "name": "Avatar", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 227, + "end": 236, + "loc": { + "start": { + "line": 15, + "column": 21 + }, + "end": { + "line": 15, + "column": 30 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 237, + "end": 887, + "loc": { + "start": { + "line": 15, + "column": 31 + }, + "end": { + "line": 42, + "column": 1 + } + }, + "body": [ + { + "type": "Identifier", + "start": 344, + "end": 439, + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 25, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 351, + "end": 363, + "loc": { + "start": { + "line": 21, + "column": 11 + }, + "end": { + "line": 21, + "column": 23 + } + }, + "name": "defaultProps" + }, + "static": true, + "value": { + "type": "ObjectExpression", + "start": 366, + "end": 439, + "loc": { + "start": { + "line": 21, + "column": 26 + }, + "end": { + "line": 25, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 376, + "end": 387, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 19 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 376, + "end": 381, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 13 + } + }, + "name": "email" + }, + "value": { + "type": "Literal", + "start": 383, + "end": 387, + "loc": { + "start": { + "line": 22, + "column": 15 + }, + "end": { + "line": 22, + "column": 19 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 397, + "end": 408, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 19 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 397, + "end": 403, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 14 + } + }, + "name": "height" + }, + "value": { + "type": "Literal", + "start": 405, + "end": 408, + "loc": { + "start": { + "line": 23, + "column": 16 + }, + "end": { + "line": 23, + "column": 19 + } + }, + "value": 155, + "rawValue": 155, + "raw": "155" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 418, + "end": 432, + "loc": { + "start": { + "line": 24, + "column": 8 + }, + "end": { + "line": 24, + "column": 22 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 418, + "end": 427, + "loc": { + "start": { + "line": 24, + "column": 8 + }, + "end": { + "line": 24, + "column": 17 + } + }, + "name": "imgHeight" + }, + "value": { + "type": "Literal", + "start": 429, + "end": 432, + "loc": { + "start": { + "line": 24, + "column": 19 + }, + "end": { + "line": 24, + "column": 22 + } + }, + "value": 400, + "rawValue": 400, + "raw": "400" + }, + "kind": "init" + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * defaultProps\n * @type {{email: null, height: number, imgHeight: number}}\n ", + "start": 244, + "end": 339, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 20, + "column": 7 + } + }, + "range": [ + 244, + 339 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 445, + "end": 493, + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 30, + "column": 7 + } + }, + "range": [ + 445, + 493 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 498, + "end": 885, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 41, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 498, + "end": 504, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 504, + "end": 885, + "loc": { + "start": { + "line": 31, + "column": 10 + }, + "end": { + "line": 41, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 507, + "end": 885, + "loc": { + "start": { + "line": 31, + "column": 13 + }, + "end": { + "line": 41, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 517, + "end": 657, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 35, + "column": 10 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 523, + "end": 657, + "loc": { + "start": { + "line": 32, + "column": 14 + }, + "end": { + "line": 35, + "column": 10 + } + }, + "id": { + "type": "Identifier", + "start": 523, + "end": 534, + "loc": { + "start": { + "line": 32, + "column": 14 + }, + "end": { + "line": 32, + "column": 25 + } + }, + "name": "placeHolder" + }, + "init": { + "type": "CallExpression", + "start": 537, + "end": 657, + "loc": { + "start": { + "line": 32, + "column": 28 + }, + "end": { + "line": 35, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 537, + "end": 550, + "loc": { + "start": { + "line": 32, + "column": 28 + }, + "end": { + "line": 32, + "column": 41 + } + }, + "object": { + "type": "Identifier", + "start": 537, + "end": 543, + "loc": { + "start": { + "line": 32, + "column": 28 + }, + "end": { + "line": 32, + "column": 34 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 544, + "end": 550, + "loc": { + "start": { + "line": 32, + "column": 35 + }, + "end": { + "line": 32, + "column": 41 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 551, + "end": 553, + "loc": { + "start": { + "line": 32, + "column": 42 + }, + "end": { + "line": 32, + "column": 44 + } + }, + "properties": [] + }, + { + "type": "MemberExpression", + "start": 555, + "end": 566, + "loc": { + "start": { + "line": 32, + "column": 46 + }, + "end": { + "line": 32, + "column": 57 + } + }, + "object": { + "type": "Identifier", + "start": 555, + "end": 561, + "loc": { + "start": { + "line": 32, + "column": 46 + }, + "end": { + "line": 32, + "column": 52 + } + }, + "name": "styles" + }, + "property": { + "type": "Identifier", + "start": 562, + "end": 566, + "loc": { + "start": { + "line": 32, + "column": 53 + }, + "end": { + "line": 32, + "column": 57 + } + }, + "name": "root" + }, + "computed": false + }, + { + "type": "ObjectExpression", + "start": 568, + "end": 656, + "loc": { + "start": { + "line": 32, + "column": 59 + }, + "end": { + "line": 35, + "column": 9 + } + }, + "properties": [ + { + "type": "Property", + "start": 582, + "end": 607, + "loc": { + "start": { + "line": 33, + "column": 12 + }, + "end": { + "line": 33, + "column": 37 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 582, + "end": 588, + "loc": { + "start": { + "line": 33, + "column": 12 + }, + "end": { + "line": 33, + "column": 18 + } + }, + "name": "height" + }, + "value": { + "type": "MemberExpression", + "start": 590, + "end": 607, + "loc": { + "start": { + "line": 33, + "column": 20 + }, + "end": { + "line": 33, + "column": 37 + } + }, + "object": { + "type": "MemberExpression", + "start": 590, + "end": 600, + "loc": { + "start": { + "line": 33, + "column": 20 + }, + "end": { + "line": 33, + "column": 30 + } + }, + "object": { + "type": "ThisExpression", + "start": 590, + "end": 594, + "loc": { + "start": { + "line": 33, + "column": 20 + }, + "end": { + "line": 33, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "start": 595, + "end": 600, + "loc": { + "start": { + "line": 33, + "column": 25 + }, + "end": { + "line": 33, + "column": 30 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 601, + "end": 607, + "loc": { + "start": { + "line": 33, + "column": 31 + }, + "end": { + "line": 33, + "column": 37 + } + }, + "name": "height" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 621, + "end": 645, + "loc": { + "start": { + "line": 34, + "column": 12 + }, + "end": { + "line": 34, + "column": 36 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 621, + "end": 626, + "loc": { + "start": { + "line": 34, + "column": 12 + }, + "end": { + "line": 34, + "column": 17 + } + }, + "name": "width" + }, + "value": { + "type": "MemberExpression", + "start": 628, + "end": 645, + "loc": { + "start": { + "line": 34, + "column": 19 + }, + "end": { + "line": 34, + "column": 36 + } + }, + "object": { + "type": "MemberExpression", + "start": 628, + "end": 638, + "loc": { + "start": { + "line": 34, + "column": 19 + }, + "end": { + "line": 34, + "column": 29 + } + }, + "object": { + "type": "ThisExpression", + "start": 628, + "end": 632, + "loc": { + "start": { + "line": 34, + "column": 19 + }, + "end": { + "line": 34, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "start": 633, + "end": 638, + "loc": { + "start": { + "line": 34, + "column": 24 + }, + "end": { + "line": 34, + "column": 29 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 639, + "end": 645, + "loc": { + "start": { + "line": 34, + "column": 30 + }, + "end": { + "line": 34, + "column": 36 + } + }, + "name": "height" + }, + "computed": false + }, + "kind": "init" + } + ] + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "IfStatement", + "start": 667, + "end": 723, + "loc": { + "start": { + "line": 37, + "column": 8 + }, + "end": { + "line": 37, + "column": 64 + } + }, + "test": { + "type": "UnaryExpression", + "start": 671, + "end": 688, + "loc": { + "start": { + "line": 37, + "column": 12 + }, + "end": { + "line": 37, + "column": 29 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 672, + "end": 688, + "loc": { + "start": { + "line": 37, + "column": 13 + }, + "end": { + "line": 37, + "column": 29 + } + }, + "object": { + "type": "MemberExpression", + "start": 672, + "end": 682, + "loc": { + "start": { + "line": 37, + "column": 13 + }, + "end": { + "line": 37, + "column": 23 + } + }, + "object": { + "type": "ThisExpression", + "start": 672, + "end": 676, + "loc": { + "start": { + "line": 37, + "column": 13 + }, + "end": { + "line": 37, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "start": 677, + "end": 682, + "loc": { + "start": { + "line": 37, + "column": 18 + }, + "end": { + "line": 37, + "column": 23 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 683, + "end": 688, + "loc": { + "start": { + "line": 37, + "column": 24 + }, + "end": { + "line": 37, + "column": 29 + } + }, + "name": "email" + }, + "computed": false + } + }, + "consequent": { + "type": "ReturnStatement", + "start": 690, + "end": 723, + "loc": { + "start": { + "line": 37, + "column": 31 + }, + "end": { + "line": 37, + "column": 64 + } + }, + "argument": { + "type": "JSXElement", + "start": 697, + "end": 723, + "loc": { + "start": { + "line": 37, + "column": 38 + }, + "end": { + "line": 37, + "column": 64 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 697, + "end": 723, + "loc": { + "start": { + "line": 37, + "column": 38 + }, + "end": { + "line": 37, + "column": 64 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 702, + "end": 721, + "loc": { + "start": { + "line": 37, + "column": 43 + }, + "end": { + "line": 37, + "column": 62 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 702, + "end": 707, + "loc": { + "start": { + "line": 37, + "column": 43 + }, + "end": { + "line": 37, + "column": 48 + } + }, + "name": "style" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 708, + "end": 721, + "loc": { + "start": { + "line": 37, + "column": 49 + }, + "end": { + "line": 37, + "column": 62 + } + }, + "expression": { + "type": "Identifier", + "start": 709, + "end": 720, + "loc": { + "start": { + "line": 37, + "column": 50 + }, + "end": { + "line": 37, + "column": 61 + } + }, + "name": "placeHolder" + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 698, + "end": 701, + "loc": { + "start": { + "line": 37, + "column": 39 + }, + "end": { + "line": 37, + "column": 42 + } + }, + "name": "div" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 733, + "end": 879, + "loc": { + "start": { + "line": 39, + "column": 8 + }, + "end": { + "line": 40, + "column": 48 + } + }, + "argument": { + "type": "JSXElement", + "start": 740, + "end": 879, + "loc": { + "start": { + "line": 39, + "column": 15 + }, + "end": { + "line": 40, + "column": 48 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 740, + "end": 879, + "loc": { + "start": { + "line": 39, + "column": 15 + }, + "end": { + "line": 40, + "column": 48 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 745, + "end": 830, + "loc": { + "start": { + "line": 39, + "column": 20 + }, + "end": { + "line": 39, + "column": 105 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 745, + "end": 748, + "loc": { + "start": { + "line": 39, + "column": 20 + }, + "end": { + "line": 39, + "column": 23 + } + }, + "name": "src" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 749, + "end": 830, + "loc": { + "start": { + "line": 39, + "column": 24 + }, + "end": { + "line": 39, + "column": 105 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 750, + "end": 829, + "loc": { + "start": { + "line": 39, + "column": 25 + }, + "end": { + "line": 39, + "column": 104 + } + }, + "expressions": [ + { + "type": "CallExpression", + "start": 783, + "end": 804, + "loc": { + "start": { + "line": 39, + "column": 58 + }, + "end": { + "line": 39, + "column": 79 + } + }, + "callee": { + "type": "Identifier", + "start": 783, + "end": 786, + "loc": { + "start": { + "line": 39, + "column": 58 + }, + "end": { + "line": 39, + "column": 61 + } + }, + "name": "md5" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 787, + "end": 803, + "loc": { + "start": { + "line": 39, + "column": 62 + }, + "end": { + "line": 39, + "column": 78 + } + }, + "object": { + "type": "MemberExpression", + "start": 787, + "end": 797, + "loc": { + "start": { + "line": 39, + "column": 62 + }, + "end": { + "line": 39, + "column": 72 + } + }, + "object": { + "type": "ThisExpression", + "start": 787, + "end": 791, + "loc": { + "start": { + "line": 39, + "column": 62 + }, + "end": { + "line": 39, + "column": 66 + } + } + }, + "property": { + "type": "Identifier", + "start": 792, + "end": 797, + "loc": { + "start": { + "line": 39, + "column": 67 + }, + "end": { + "line": 39, + "column": 72 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 798, + "end": 803, + "loc": { + "start": { + "line": 39, + "column": 73 + }, + "end": { + "line": 39, + "column": 78 + } + }, + "name": "email" + }, + "computed": false + } + ] + }, + { + "type": "MemberExpression", + "start": 810, + "end": 827, + "loc": { + "start": { + "line": 39, + "column": 85 + }, + "end": { + "line": 39, + "column": 102 + } + }, + "object": { + "type": "MemberExpression", + "start": 810, + "end": 820, + "loc": { + "start": { + "line": 39, + "column": 85 + }, + "end": { + "line": 39, + "column": 95 + } + }, + "object": { + "type": "ThisExpression", + "start": 810, + "end": 814, + "loc": { + "start": { + "line": 39, + "column": 85 + }, + "end": { + "line": 39, + "column": 89 + } + } + }, + "property": { + "type": "Identifier", + "start": 815, + "end": 820, + "loc": { + "start": { + "line": 39, + "column": 90 + }, + "end": { + "line": 39, + "column": 95 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 821, + "end": 827, + "loc": { + "start": { + "line": 39, + "column": 96 + }, + "end": { + "line": 39, + "column": 102 + } + }, + "name": "height" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 751, + "end": 781, + "loc": { + "start": { + "line": 39, + "column": 26 + }, + "end": { + "line": 39, + "column": 56 + } + }, + "value": { + "raw": "https://s.gravatar.com/avatar/", + "cooked": "https://s.gravatar.com/avatar/" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 805, + "end": 808, + "loc": { + "start": { + "line": 39, + "column": 80 + }, + "end": { + "line": 39, + "column": 83 + } + }, + "value": { + "raw": "?s=", + "cooked": "?s=" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 828, + "end": 828, + "loc": { + "start": { + "line": 39, + "column": 103 + }, + "end": { + "line": 39, + "column": 103 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + }, + { + "type": "JSXAttribute", + "start": 851, + "end": 877, + "loc": { + "start": { + "line": 40, + "column": 20 + }, + "end": { + "line": 40, + "column": 46 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 851, + "end": 857, + "loc": { + "start": { + "line": 40, + "column": 20 + }, + "end": { + "line": 40, + "column": 26 + } + }, + "name": "height" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 858, + "end": 877, + "loc": { + "start": { + "line": 40, + "column": 27 + }, + "end": { + "line": 40, + "column": 46 + } + }, + "expression": { + "type": "MemberExpression", + "start": 859, + "end": 876, + "loc": { + "start": { + "line": 40, + "column": 28 + }, + "end": { + "line": 40, + "column": 45 + } + }, + "object": { + "type": "MemberExpression", + "start": 859, + "end": 869, + "loc": { + "start": { + "line": 40, + "column": 28 + }, + "end": { + "line": 40, + "column": 38 + } + }, + "object": { + "type": "ThisExpression", + "start": 859, + "end": 863, + "loc": { + "start": { + "line": 40, + "column": 28 + }, + "end": { + "line": 40, + "column": 32 + } + } + }, + "property": { + "type": "Identifier", + "start": 864, + "end": 869, + "loc": { + "start": { + "line": 40, + "column": 33 + }, + "end": { + "line": 40, + "column": 38 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 870, + "end": 876, + "loc": { + "start": { + "line": 40, + "column": 39 + }, + "end": { + "line": 40, + "column": 45 + } + }, + "name": "height" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 741, + "end": 744, + "loc": { + "start": { + "line": 39, + "column": 16 + }, + "end": { + "line": 39, + "column": 19 + } + }, + "name": "img" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 445, + "end": 493, + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 30, + "column": 7 + } + }, + "range": [ + 445, + 493 + ] + } + ] + } + ] + }, + "leadingComments": [], + "name": "_", + "trailingComments": [] + }, + { + "type": "Identifier", + "start": 889, + "end": 910, + "loc": { + "start": { + "line": 44, + "column": 0 + }, + "end": { + "line": 44, + "column": 21 + } + }, + "declaration": { + "type": "Identifier", + "start": 904, + "end": 910, + "loc": { + "start": { + "line": 44, + "column": 15 + }, + "end": { + "line": 44, + "column": 21 + } + }, + "name": "Avatar" + }, + "name": "_", + "leadingComments": [], + "trailingComments": [] + }, + { + "type": "ExportDefaultDeclaration", + "start": 889, + "end": 910, + "loc": { + "start": { + "line": 44, + "column": 0 + }, + "end": { + "line": 44, + "column": 21 + } + }, + "declaration": { + "type": "ClassDeclaration", + "start": 206, + "end": 887, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 42, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 212, + "end": 218, + "loc": { + "start": { + "line": 15, + "column": 6 + }, + "end": { + "line": 15, + "column": 12 + } + }, + "name": "Avatar", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 227, + "end": 236, + "loc": { + "start": { + "line": 15, + "column": 21 + }, + "end": { + "line": 15, + "column": 30 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 237, + "end": 887, + "loc": { + "start": { + "line": 15, + "column": 31 + }, + "end": { + "line": 42, + "column": 1 + } + }, + "body": [ + { + "type": "Identifier", + "start": 344, + "end": 439, + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 25, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 351, + "end": 363, + "loc": { + "start": { + "line": 21, + "column": 11 + }, + "end": { + "line": 21, + "column": 23 + } + }, + "name": "defaultProps" + }, + "static": true, + "value": { + "type": "ObjectExpression", + "start": 366, + "end": 439, + "loc": { + "start": { + "line": 21, + "column": 26 + }, + "end": { + "line": 25, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 376, + "end": 387, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 19 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 376, + "end": 381, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 13 + } + }, + "name": "email" + }, + "value": { + "type": "Literal", + "start": 383, + "end": 387, + "loc": { + "start": { + "line": 22, + "column": 15 + }, + "end": { + "line": 22, + "column": 19 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 397, + "end": 408, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 19 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 397, + "end": 403, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 14 + } + }, + "name": "height" + }, + "value": { + "type": "Literal", + "start": 405, + "end": 408, + "loc": { + "start": { + "line": 23, + "column": 16 + }, + "end": { + "line": 23, + "column": 19 + } + }, + "value": 155, + "rawValue": 155, + "raw": "155" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 418, + "end": 432, + "loc": { + "start": { + "line": 24, + "column": 8 + }, + "end": { + "line": 24, + "column": 22 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 418, + "end": 427, + "loc": { + "start": { + "line": 24, + "column": 8 + }, + "end": { + "line": 24, + "column": 17 + } + }, + "name": "imgHeight" + }, + "value": { + "type": "Literal", + "start": 429, + "end": 432, + "loc": { + "start": { + "line": 24, + "column": 19 + }, + "end": { + "line": 24, + "column": 22 + } + }, + "value": 400, + "rawValue": 400, + "raw": "400" + }, + "kind": "init" + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * defaultProps\n * @type {{email: null, height: number, imgHeight: number}}\n ", + "start": 244, + "end": 339, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 20, + "column": 7 + } + }, + "range": [ + 244, + 339 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 445, + "end": 493, + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 30, + "column": 7 + } + }, + "range": [ + 445, + 493 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 498, + "end": 885, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 41, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 498, + "end": 504, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 504, + "end": 885, + "loc": { + "start": { + "line": 31, + "column": 10 + }, + "end": { + "line": 41, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 507, + "end": 885, + "loc": { + "start": { + "line": 31, + "column": 13 + }, + "end": { + "line": 41, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 517, + "end": 657, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 35, + "column": 10 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 523, + "end": 657, + "loc": { + "start": { + "line": 32, + "column": 14 + }, + "end": { + "line": 35, + "column": 10 + } + }, + "id": { + "type": "Identifier", + "start": 523, + "end": 534, + "loc": { + "start": { + "line": 32, + "column": 14 + }, + "end": { + "line": 32, + "column": 25 + } + }, + "name": "placeHolder" + }, + "init": { + "type": "CallExpression", + "start": 537, + "end": 657, + "loc": { + "start": { + "line": 32, + "column": 28 + }, + "end": { + "line": 35, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 537, + "end": 550, + "loc": { + "start": { + "line": 32, + "column": 28 + }, + "end": { + "line": 32, + "column": 41 + } + }, + "object": { + "type": "Identifier", + "start": 537, + "end": 543, + "loc": { + "start": { + "line": 32, + "column": 28 + }, + "end": { + "line": 32, + "column": 34 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 544, + "end": 550, + "loc": { + "start": { + "line": 32, + "column": 35 + }, + "end": { + "line": 32, + "column": 41 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 551, + "end": 553, + "loc": { + "start": { + "line": 32, + "column": 42 + }, + "end": { + "line": 32, + "column": 44 + } + }, + "properties": [] + }, + { + "type": "MemberExpression", + "start": 555, + "end": 566, + "loc": { + "start": { + "line": 32, + "column": 46 + }, + "end": { + "line": 32, + "column": 57 + } + }, + "object": { + "type": "Identifier", + "start": 555, + "end": 561, + "loc": { + "start": { + "line": 32, + "column": 46 + }, + "end": { + "line": 32, + "column": 52 + } + }, + "name": "styles" + }, + "property": { + "type": "Identifier", + "start": 562, + "end": 566, + "loc": { + "start": { + "line": 32, + "column": 53 + }, + "end": { + "line": 32, + "column": 57 + } + }, + "name": "root" + }, + "computed": false + }, + { + "type": "ObjectExpression", + "start": 568, + "end": 656, + "loc": { + "start": { + "line": 32, + "column": 59 + }, + "end": { + "line": 35, + "column": 9 + } + }, + "properties": [ + { + "type": "Property", + "start": 582, + "end": 607, + "loc": { + "start": { + "line": 33, + "column": 12 + }, + "end": { + "line": 33, + "column": 37 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 582, + "end": 588, + "loc": { + "start": { + "line": 33, + "column": 12 + }, + "end": { + "line": 33, + "column": 18 + } + }, + "name": "height" + }, + "value": { + "type": "MemberExpression", + "start": 590, + "end": 607, + "loc": { + "start": { + "line": 33, + "column": 20 + }, + "end": { + "line": 33, + "column": 37 + } + }, + "object": { + "type": "MemberExpression", + "start": 590, + "end": 600, + "loc": { + "start": { + "line": 33, + "column": 20 + }, + "end": { + "line": 33, + "column": 30 + } + }, + "object": { + "type": "ThisExpression", + "start": 590, + "end": 594, + "loc": { + "start": { + "line": 33, + "column": 20 + }, + "end": { + "line": 33, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "start": 595, + "end": 600, + "loc": { + "start": { + "line": 33, + "column": 25 + }, + "end": { + "line": 33, + "column": 30 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 601, + "end": 607, + "loc": { + "start": { + "line": 33, + "column": 31 + }, + "end": { + "line": 33, + "column": 37 + } + }, + "name": "height" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 621, + "end": 645, + "loc": { + "start": { + "line": 34, + "column": 12 + }, + "end": { + "line": 34, + "column": 36 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 621, + "end": 626, + "loc": { + "start": { + "line": 34, + "column": 12 + }, + "end": { + "line": 34, + "column": 17 + } + }, + "name": "width" + }, + "value": { + "type": "MemberExpression", + "start": 628, + "end": 645, + "loc": { + "start": { + "line": 34, + "column": 19 + }, + "end": { + "line": 34, + "column": 36 + } + }, + "object": { + "type": "MemberExpression", + "start": 628, + "end": 638, + "loc": { + "start": { + "line": 34, + "column": 19 + }, + "end": { + "line": 34, + "column": 29 + } + }, + "object": { + "type": "ThisExpression", + "start": 628, + "end": 632, + "loc": { + "start": { + "line": 34, + "column": 19 + }, + "end": { + "line": 34, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "start": 633, + "end": 638, + "loc": { + "start": { + "line": 34, + "column": 24 + }, + "end": { + "line": 34, + "column": 29 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 639, + "end": 645, + "loc": { + "start": { + "line": 34, + "column": 30 + }, + "end": { + "line": 34, + "column": 36 + } + }, + "name": "height" + }, + "computed": false + }, + "kind": "init" + } + ] + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "IfStatement", + "start": 667, + "end": 723, + "loc": { + "start": { + "line": 37, + "column": 8 + }, + "end": { + "line": 37, + "column": 64 + } + }, + "test": { + "type": "UnaryExpression", + "start": 671, + "end": 688, + "loc": { + "start": { + "line": 37, + "column": 12 + }, + "end": { + "line": 37, + "column": 29 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 672, + "end": 688, + "loc": { + "start": { + "line": 37, + "column": 13 + }, + "end": { + "line": 37, + "column": 29 + } + }, + "object": { + "type": "MemberExpression", + "start": 672, + "end": 682, + "loc": { + "start": { + "line": 37, + "column": 13 + }, + "end": { + "line": 37, + "column": 23 + } + }, + "object": { + "type": "ThisExpression", + "start": 672, + "end": 676, + "loc": { + "start": { + "line": 37, + "column": 13 + }, + "end": { + "line": 37, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "start": 677, + "end": 682, + "loc": { + "start": { + "line": 37, + "column": 18 + }, + "end": { + "line": 37, + "column": 23 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 683, + "end": 688, + "loc": { + "start": { + "line": 37, + "column": 24 + }, + "end": { + "line": 37, + "column": 29 + } + }, + "name": "email" + }, + "computed": false + } + }, + "consequent": { + "type": "ReturnStatement", + "start": 690, + "end": 723, + "loc": { + "start": { + "line": 37, + "column": 31 + }, + "end": { + "line": 37, + "column": 64 + } + }, + "argument": { + "type": "JSXElement", + "start": 697, + "end": 723, + "loc": { + "start": { + "line": 37, + "column": 38 + }, + "end": { + "line": 37, + "column": 64 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 697, + "end": 723, + "loc": { + "start": { + "line": 37, + "column": 38 + }, + "end": { + "line": 37, + "column": 64 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 702, + "end": 721, + "loc": { + "start": { + "line": 37, + "column": 43 + }, + "end": { + "line": 37, + "column": 62 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 702, + "end": 707, + "loc": { + "start": { + "line": 37, + "column": 43 + }, + "end": { + "line": 37, + "column": 48 + } + }, + "name": "style" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 708, + "end": 721, + "loc": { + "start": { + "line": 37, + "column": 49 + }, + "end": { + "line": 37, + "column": 62 + } + }, + "expression": { + "type": "Identifier", + "start": 709, + "end": 720, + "loc": { + "start": { + "line": 37, + "column": 50 + }, + "end": { + "line": 37, + "column": 61 + } + }, + "name": "placeHolder" + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 698, + "end": 701, + "loc": { + "start": { + "line": 37, + "column": 39 + }, + "end": { + "line": 37, + "column": 42 + } + }, + "name": "div" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 733, + "end": 879, + "loc": { + "start": { + "line": 39, + "column": 8 + }, + "end": { + "line": 40, + "column": 48 + } + }, + "argument": { + "type": "JSXElement", + "start": 740, + "end": 879, + "loc": { + "start": { + "line": 39, + "column": 15 + }, + "end": { + "line": 40, + "column": 48 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 740, + "end": 879, + "loc": { + "start": { + "line": 39, + "column": 15 + }, + "end": { + "line": 40, + "column": 48 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 745, + "end": 830, + "loc": { + "start": { + "line": 39, + "column": 20 + }, + "end": { + "line": 39, + "column": 105 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 745, + "end": 748, + "loc": { + "start": { + "line": 39, + "column": 20 + }, + "end": { + "line": 39, + "column": 23 + } + }, + "name": "src" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 749, + "end": 830, + "loc": { + "start": { + "line": 39, + "column": 24 + }, + "end": { + "line": 39, + "column": 105 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 750, + "end": 829, + "loc": { + "start": { + "line": 39, + "column": 25 + }, + "end": { + "line": 39, + "column": 104 + } + }, + "expressions": [ + { + "type": "CallExpression", + "start": 783, + "end": 804, + "loc": { + "start": { + "line": 39, + "column": 58 + }, + "end": { + "line": 39, + "column": 79 + } + }, + "callee": { + "type": "Identifier", + "start": 783, + "end": 786, + "loc": { + "start": { + "line": 39, + "column": 58 + }, + "end": { + "line": 39, + "column": 61 + } + }, + "name": "md5" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 787, + "end": 803, + "loc": { + "start": { + "line": 39, + "column": 62 + }, + "end": { + "line": 39, + "column": 78 + } + }, + "object": { + "type": "MemberExpression", + "start": 787, + "end": 797, + "loc": { + "start": { + "line": 39, + "column": 62 + }, + "end": { + "line": 39, + "column": 72 + } + }, + "object": { + "type": "ThisExpression", + "start": 787, + "end": 791, + "loc": { + "start": { + "line": 39, + "column": 62 + }, + "end": { + "line": 39, + "column": 66 + } + } + }, + "property": { + "type": "Identifier", + "start": 792, + "end": 797, + "loc": { + "start": { + "line": 39, + "column": 67 + }, + "end": { + "line": 39, + "column": 72 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 798, + "end": 803, + "loc": { + "start": { + "line": 39, + "column": 73 + }, + "end": { + "line": 39, + "column": 78 + } + }, + "name": "email" + }, + "computed": false + } + ] + }, + { + "type": "MemberExpression", + "start": 810, + "end": 827, + "loc": { + "start": { + "line": 39, + "column": 85 + }, + "end": { + "line": 39, + "column": 102 + } + }, + "object": { + "type": "MemberExpression", + "start": 810, + "end": 820, + "loc": { + "start": { + "line": 39, + "column": 85 + }, + "end": { + "line": 39, + "column": 95 + } + }, + "object": { + "type": "ThisExpression", + "start": 810, + "end": 814, + "loc": { + "start": { + "line": 39, + "column": 85 + }, + "end": { + "line": 39, + "column": 89 + } + } + }, + "property": { + "type": "Identifier", + "start": 815, + "end": 820, + "loc": { + "start": { + "line": 39, + "column": 90 + }, + "end": { + "line": 39, + "column": 95 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 821, + "end": 827, + "loc": { + "start": { + "line": 39, + "column": 96 + }, + "end": { + "line": 39, + "column": 102 + } + }, + "name": "height" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 751, + "end": 781, + "loc": { + "start": { + "line": 39, + "column": 26 + }, + "end": { + "line": 39, + "column": 56 + } + }, + "value": { + "raw": "https://s.gravatar.com/avatar/", + "cooked": "https://s.gravatar.com/avatar/" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 805, + "end": 808, + "loc": { + "start": { + "line": 39, + "column": 80 + }, + "end": { + "line": 39, + "column": 83 + } + }, + "value": { + "raw": "?s=", + "cooked": "?s=" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 828, + "end": 828, + "loc": { + "start": { + "line": 39, + "column": 103 + }, + "end": { + "line": 39, + "column": 103 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + }, + { + "type": "JSXAttribute", + "start": 851, + "end": 877, + "loc": { + "start": { + "line": 40, + "column": 20 + }, + "end": { + "line": 40, + "column": 46 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 851, + "end": 857, + "loc": { + "start": { + "line": 40, + "column": 20 + }, + "end": { + "line": 40, + "column": 26 + } + }, + "name": "height" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 858, + "end": 877, + "loc": { + "start": { + "line": 40, + "column": 27 + }, + "end": { + "line": 40, + "column": 46 + } + }, + "expression": { + "type": "MemberExpression", + "start": 859, + "end": 876, + "loc": { + "start": { + "line": 40, + "column": 28 + }, + "end": { + "line": 40, + "column": 45 + } + }, + "object": { + "type": "MemberExpression", + "start": 859, + "end": 869, + "loc": { + "start": { + "line": 40, + "column": 28 + }, + "end": { + "line": 40, + "column": 38 + } + }, + "object": { + "type": "ThisExpression", + "start": 859, + "end": 863, + "loc": { + "start": { + "line": 40, + "column": 28 + }, + "end": { + "line": 40, + "column": 32 + } + } + }, + "property": { + "type": "Identifier", + "start": 864, + "end": 869, + "loc": { + "start": { + "line": 40, + "column": 33 + }, + "end": { + "line": 40, + "column": 38 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 870, + "end": 876, + "loc": { + "start": { + "line": 40, + "column": 39 + }, + "end": { + "line": 40, + "column": 45 + } + }, + "name": "height" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 741, + "end": 744, + "loc": { + "start": { + "line": 39, + "column": 16 + }, + "end": { + "line": 39, + "column": 19 + } + }, + "name": "img" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 445, + "end": 493, + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 30, + "column": 7 + } + }, + "range": [ + 445, + 493 + ] + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Avatar index component\n ", + "start": 172, + "end": 205, + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + }, + "range": [ + 172, + 205 + ] + } + ], + "__esdoc__pseudo_export": false, + "trailingComments": [] + }, + "leadingComments": null + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/components/BackButton/index.js.json b/app/docs/ast/source/components/BackButton/index.js.json new file mode 100644 index 0000000..6614820 --- /dev/null +++ b/app/docs/ast/source/components/BackButton/index.js.json @@ -0,0 +1,3612 @@ +{ + "type": "Program", + "start": 0, + "end": 793, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 41, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + }, + { + "type": "ImportSpecifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "imported": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + }, + "local": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 33, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 33 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ImportDeclaration", + "start": 41, + "end": 76, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 35 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 50, + "end": 54, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "imported": { + "type": "Identifier", + "start": 50, + "end": 54, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "name": "Link" + }, + "local": { + "type": "Identifier", + "start": 50, + "end": 54, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "name": "Link" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 62, + "end": 76, + "loc": { + "start": { + "line": 2, + "column": 21 + }, + "end": { + "line": 2, + "column": 35 + } + }, + "value": "react-router", + "rawValue": "react-router", + "raw": "'react-router'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * BackButton index component\n ", + "start": 79, + "end": 116, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + }, + "range": [ + 79, + 116 + ] + } + ] + }, + { + "type": "Identifier", + "start": 117, + "end": 765, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 38, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 123, + "end": 133, + "loc": { + "start": { + "line": 8, + "column": 6 + }, + "end": { + "line": 8, + "column": 16 + } + }, + "name": "BackButton", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 142, + "end": 151, + "loc": { + "start": { + "line": 8, + "column": 25 + }, + "end": { + "line": 8, + "column": 34 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 152, + "end": 765, + "loc": { + "start": { + "line": 8, + "column": 35 + }, + "end": { + "line": 38, + "column": 1 + } + }, + "body": [ + { + "type": "Identifier", + "start": 249, + "end": 394, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 18, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 256, + "end": 268, + "loc": { + "start": { + "line": 14, + "column": 11 + }, + "end": { + "line": 14, + "column": 23 + } + }, + "name": "defaultProps" + }, + "static": true, + "value": { + "type": "ObjectExpression", + "start": 271, + "end": 394, + "loc": { + "start": { + "line": 14, + "column": 26 + }, + "end": { + "line": 18, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 281, + "end": 288, + "loc": { + "start": { + "line": 15, + "column": 8 + }, + "end": { + "line": 15, + "column": 15 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 281, + "end": 283, + "loc": { + "start": { + "line": 15, + "column": 8 + }, + "end": { + "line": 15, + "column": 10 + } + }, + "name": "to" + }, + "value": { + "type": "Literal", + "start": 285, + "end": 288, + "loc": { + "start": { + "line": 15, + "column": 12 + }, + "end": { + "line": 15, + "column": 15 + } + }, + "value": "/", + "rawValue": "/", + "raw": "'/'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 298, + "end": 364, + "loc": { + "start": { + "line": 16, + "column": 8 + }, + "end": { + "line": 16, + "column": 74 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 298, + "end": 302, + "loc": { + "start": { + "line": 16, + "column": 8 + }, + "end": { + "line": 16, + "column": 12 + } + }, + "name": "icon" + }, + "value": { + "type": "JSXElement", + "start": 304, + "end": 364, + "loc": { + "start": { + "line": 16, + "column": 14 + }, + "end": { + "line": 16, + "column": 74 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 304, + "end": 364, + "loc": { + "start": { + "line": 16, + "column": 14 + }, + "end": { + "line": 16, + "column": 74 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 307, + "end": 335, + "loc": { + "start": { + "line": 16, + "column": 17 + }, + "end": { + "line": 16, + "column": 45 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 307, + "end": 316, + "loc": { + "start": { + "line": 16, + "column": 17 + }, + "end": { + "line": 16, + "column": 26 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 317, + "end": 335, + "loc": { + "start": { + "line": 16, + "column": 27 + }, + "end": { + "line": 16, + "column": 45 + } + }, + "value": "ion-chevron-left", + "rawValue": null, + "raw": "\"ion-chevron-left\"" + } + }, + { + "type": "JSXAttribute", + "start": 336, + "end": 362, + "loc": { + "start": { + "line": 16, + "column": 46 + }, + "end": { + "line": 16, + "column": 72 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 336, + "end": 341, + "loc": { + "start": { + "line": 16, + "column": 46 + }, + "end": { + "line": 16, + "column": 51 + } + }, + "name": "style" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 342, + "end": 362, + "loc": { + "start": { + "line": 16, + "column": 52 + }, + "end": { + "line": 16, + "column": 72 + } + }, + "expression": { + "type": "ObjectExpression", + "start": 343, + "end": 361, + "loc": { + "start": { + "line": 16, + "column": 53 + }, + "end": { + "line": 16, + "column": 71 + } + }, + "properties": [ + { + "type": "Property", + "start": 345, + "end": 359, + "loc": { + "start": { + "line": 16, + "column": 55 + }, + "end": { + "line": 16, + "column": 69 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 345, + "end": 356, + "loc": { + "start": { + "line": 16, + "column": 55 + }, + "end": { + "line": 16, + "column": 66 + } + }, + "name": "marginRight" + }, + "value": { + "type": "Literal", + "start": 358, + "end": 359, + "loc": { + "start": { + "line": 16, + "column": 68 + }, + "end": { + "line": 16, + "column": 69 + } + }, + "value": 6, + "rawValue": 6, + "raw": "6" + }, + "kind": "init" + } + ] + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 305, + "end": 306, + "loc": { + "start": { + "line": 16, + "column": 15 + }, + "end": { + "line": 16, + "column": 16 + } + }, + "name": "i" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + "kind": "init" + }, + { + "type": "Property", + "start": 374, + "end": 387, + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 17, + "column": 21 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 374, + "end": 379, + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 17, + "column": 13 + } + }, + "name": "label" + }, + "value": { + "type": "Literal", + "start": 381, + "end": 387, + "loc": { + "start": { + "line": 17, + "column": 15 + }, + "end": { + "line": 17, + "column": 21 + } + }, + "value": "Back", + "rawValue": "Back", + "raw": "'Back'" + }, + "kind": "init" + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * defaultProps\n * @type {{to: string, icon: XML, label: string}}\n ", + "start": 159, + "end": 244, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 13, + "column": 7 + } + }, + "range": [ + 159, + 244 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 400, + "end": 448, + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 23, + "column": 7 + } + }, + "range": [ + 400, + 448 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 453, + "end": 762, + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 36, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 453, + "end": 459, + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 459, + "end": 762, + "loc": { + "start": { + "line": 24, + "column": 10 + }, + "end": { + "line": 36, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 462, + "end": 762, + "loc": { + "start": { + "line": 24, + "column": 13 + }, + "end": { + "line": 36, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 473, + "end": 537, + "loc": { + "start": { + "line": 26, + "column": 8 + }, + "end": { + "line": 26, + "column": 72 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 479, + "end": 537, + "loc": { + "start": { + "line": 26, + "column": 14 + }, + "end": { + "line": 26, + "column": 72 + } + }, + "id": { + "type": "Identifier", + "start": 479, + "end": 486, + "loc": { + "start": { + "line": 26, + "column": 14 + }, + "end": { + "line": 26, + "column": 21 + } + }, + "name": "content" + }, + "init": { + "type": "JSXElement", + "start": 489, + "end": 537, + "loc": { + "start": { + "line": 26, + "column": 24 + }, + "end": { + "line": 26, + "column": 72 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 489, + "end": 495, + "loc": { + "start": { + "line": 26, + "column": 24 + }, + "end": { + "line": 26, + "column": 30 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 490, + "end": 494, + "loc": { + "start": { + "line": 26, + "column": 25 + }, + "end": { + "line": 26, + "column": 29 + } + }, + "name": "span" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 530, + "end": 537, + "loc": { + "start": { + "line": 26, + "column": 65 + }, + "end": { + "line": 26, + "column": 72 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 532, + "end": 536, + "loc": { + "start": { + "line": 26, + "column": 67 + }, + "end": { + "line": 26, + "column": 71 + } + }, + "name": "span" + } + }, + "children": [ + { + "type": "JSXExpressionContainer", + "start": 495, + "end": 512, + "loc": { + "start": { + "line": 26, + "column": 30 + }, + "end": { + "line": 26, + "column": 47 + } + }, + "expression": { + "type": "MemberExpression", + "start": 496, + "end": 511, + "loc": { + "start": { + "line": 26, + "column": 31 + }, + "end": { + "line": 26, + "column": 46 + } + }, + "object": { + "type": "MemberExpression", + "start": 496, + "end": 506, + "loc": { + "start": { + "line": 26, + "column": 31 + }, + "end": { + "line": 26, + "column": 41 + } + }, + "object": { + "type": "ThisExpression", + "start": 496, + "end": 500, + "loc": { + "start": { + "line": 26, + "column": 31 + }, + "end": { + "line": 26, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "start": 501, + "end": 506, + "loc": { + "start": { + "line": 26, + "column": 36 + }, + "end": { + "line": 26, + "column": 41 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 507, + "end": 511, + "loc": { + "start": { + "line": 26, + "column": 42 + }, + "end": { + "line": 26, + "column": 46 + } + }, + "name": "icon" + }, + "computed": false + } + }, + { + "type": "JSXExpressionContainer", + "start": 512, + "end": 530, + "loc": { + "start": { + "line": 26, + "column": 47 + }, + "end": { + "line": 26, + "column": 65 + } + }, + "expression": { + "type": "MemberExpression", + "start": 513, + "end": 529, + "loc": { + "start": { + "line": 26, + "column": 48 + }, + "end": { + "line": 26, + "column": 64 + } + }, + "object": { + "type": "MemberExpression", + "start": 513, + "end": 523, + "loc": { + "start": { + "line": 26, + "column": 48 + }, + "end": { + "line": 26, + "column": 58 + } + }, + "object": { + "type": "ThisExpression", + "start": 513, + "end": 517, + "loc": { + "start": { + "line": 26, + "column": 48 + }, + "end": { + "line": 26, + "column": 52 + } + } + }, + "property": { + "type": "Identifier", + "start": 518, + "end": 523, + "loc": { + "start": { + "line": 26, + "column": 53 + }, + "end": { + "line": 26, + "column": 58 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 524, + "end": 529, + "loc": { + "start": { + "line": 26, + "column": 59 + }, + "end": { + "line": 26, + "column": 64 + } + }, + "name": "label" + }, + "computed": false + } + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "IfStatement", + "start": 547, + "end": 689, + "loc": { + "start": { + "line": 28, + "column": 8 + }, + "end": { + "line": 32, + "column": 9 + } + }, + "test": { + "type": "BinaryExpression", + "start": 551, + "end": 583, + "loc": { + "start": { + "line": 28, + "column": 12 + }, + "end": { + "line": 28, + "column": 44 + } + }, + "left": { + "type": "UnaryExpression", + "start": 551, + "end": 571, + "loc": { + "start": { + "line": 28, + "column": 12 + }, + "end": { + "line": 28, + "column": 32 + } + }, + "operator": "typeof", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 558, + "end": 571, + "loc": { + "start": { + "line": 28, + "column": 19 + }, + "end": { + "line": 28, + "column": 32 + } + }, + "object": { + "type": "MemberExpression", + "start": 558, + "end": 568, + "loc": { + "start": { + "line": 28, + "column": 19 + }, + "end": { + "line": 28, + "column": 29 + } + }, + "object": { + "type": "ThisExpression", + "start": 558, + "end": 562, + "loc": { + "start": { + "line": 28, + "column": 19 + }, + "end": { + "line": 28, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "start": 563, + "end": 568, + "loc": { + "start": { + "line": 28, + "column": 24 + }, + "end": { + "line": 28, + "column": 29 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 569, + "end": 571, + "loc": { + "start": { + "line": 28, + "column": 30 + }, + "end": { + "line": 28, + "column": 32 + } + }, + "name": "to" + }, + "computed": false + } + }, + "operator": "==", + "right": { + "type": "Literal", + "start": 575, + "end": 583, + "loc": { + "start": { + "line": 28, + "column": 36 + }, + "end": { + "line": 28, + "column": 44 + } + }, + "value": "string", + "rawValue": "string", + "raw": "'string'" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 585, + "end": 689, + "loc": { + "start": { + "line": 28, + "column": 46 + }, + "end": { + "line": 32, + "column": 9 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 599, + "end": 679, + "loc": { + "start": { + "line": 29, + "column": 12 + }, + "end": { + "line": 31, + "column": 13 + } + }, + "argument": { + "type": "JSXElement", + "start": 624, + "end": 665, + "loc": { + "start": { + "line": 30, + "column": 16 + }, + "end": { + "line": 30, + "column": 57 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 624, + "end": 649, + "loc": { + "start": { + "line": 30, + "column": 16 + }, + "end": { + "line": 30, + "column": 41 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 630, + "end": 648, + "loc": { + "start": { + "line": 30, + "column": 22 + }, + "end": { + "line": 30, + "column": 40 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 630, + "end": 632, + "loc": { + "start": { + "line": 30, + "column": 22 + }, + "end": { + "line": 30, + "column": 24 + } + }, + "name": "to" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 633, + "end": 648, + "loc": { + "start": { + "line": 30, + "column": 25 + }, + "end": { + "line": 30, + "column": 40 + } + }, + "expression": { + "type": "MemberExpression", + "start": 634, + "end": 647, + "loc": { + "start": { + "line": 30, + "column": 26 + }, + "end": { + "line": 30, + "column": 39 + } + }, + "object": { + "type": "MemberExpression", + "start": 634, + "end": 644, + "loc": { + "start": { + "line": 30, + "column": 26 + }, + "end": { + "line": 30, + "column": 36 + } + }, + "object": { + "type": "ThisExpression", + "start": 634, + "end": 638, + "loc": { + "start": { + "line": 30, + "column": 26 + }, + "end": { + "line": 30, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "start": 639, + "end": 644, + "loc": { + "start": { + "line": 30, + "column": 31 + }, + "end": { + "line": 30, + "column": 36 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 645, + "end": 647, + "loc": { + "start": { + "line": 30, + "column": 37 + }, + "end": { + "line": 30, + "column": 39 + } + }, + "name": "to" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 625, + "end": 629, + "loc": { + "start": { + "line": 30, + "column": 17 + }, + "end": { + "line": 30, + "column": 21 + } + }, + "name": "Link" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 658, + "end": 665, + "loc": { + "start": { + "line": 30, + "column": 50 + }, + "end": { + "line": 30, + "column": 57 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 660, + "end": 664, + "loc": { + "start": { + "line": 30, + "column": 52 + }, + "end": { + "line": 30, + "column": 56 + } + }, + "name": "Link" + } + }, + "children": [ + { + "type": "JSXExpressionContainer", + "start": 649, + "end": 658, + "loc": { + "start": { + "line": 30, + "column": 41 + }, + "end": { + "line": 30, + "column": 50 + } + }, + "expression": { + "type": "Identifier", + "start": 650, + "end": 657, + "loc": { + "start": { + "line": 30, + "column": 42 + }, + "end": { + "line": 30, + "column": 49 + } + }, + "name": "content" + } + } + ], + "parenthesizedExpression": true + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 699, + "end": 755, + "loc": { + "start": { + "line": 34, + "column": 8 + }, + "end": { + "line": 34, + "column": 64 + } + }, + "argument": { + "type": "JSXElement", + "start": 706, + "end": 755, + "loc": { + "start": { + "line": 34, + "column": 15 + }, + "end": { + "line": 34, + "column": 64 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 706, + "end": 742, + "loc": { + "start": { + "line": 34, + "column": 15 + }, + "end": { + "line": 34, + "column": 51 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 709, + "end": 717, + "loc": { + "start": { + "line": 34, + "column": 18 + }, + "end": { + "line": 34, + "column": 26 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 709, + "end": 713, + "loc": { + "start": { + "line": 34, + "column": 18 + }, + "end": { + "line": 34, + "column": 22 + } + }, + "name": "href" + }, + "value": { + "type": "Literal", + "start": 714, + "end": 717, + "loc": { + "start": { + "line": 34, + "column": 23 + }, + "end": { + "line": 34, + "column": 26 + } + }, + "value": "#", + "rawValue": null, + "raw": "\"#\"" + } + }, + { + "type": "JSXAttribute", + "start": 718, + "end": 741, + "loc": { + "start": { + "line": 34, + "column": 27 + }, + "end": { + "line": 34, + "column": 50 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 718, + "end": 725, + "loc": { + "start": { + "line": 34, + "column": 27 + }, + "end": { + "line": 34, + "column": 34 + } + }, + "name": "onClick" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 726, + "end": 741, + "loc": { + "start": { + "line": 34, + "column": 35 + }, + "end": { + "line": 34, + "column": 50 + } + }, + "expression": { + "type": "MemberExpression", + "start": 727, + "end": 740, + "loc": { + "start": { + "line": 34, + "column": 36 + }, + "end": { + "line": 34, + "column": 49 + } + }, + "object": { + "type": "MemberExpression", + "start": 727, + "end": 737, + "loc": { + "start": { + "line": 34, + "column": 36 + }, + "end": { + "line": 34, + "column": 46 + } + }, + "object": { + "type": "ThisExpression", + "start": 727, + "end": 731, + "loc": { + "start": { + "line": 34, + "column": 36 + }, + "end": { + "line": 34, + "column": 40 + } + } + }, + "property": { + "type": "Identifier", + "start": 732, + "end": 737, + "loc": { + "start": { + "line": 34, + "column": 41 + }, + "end": { + "line": 34, + "column": 46 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 738, + "end": 740, + "loc": { + "start": { + "line": 34, + "column": 47 + }, + "end": { + "line": 34, + "column": 49 + } + }, + "name": "to" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 707, + "end": 708, + "loc": { + "start": { + "line": 34, + "column": 16 + }, + "end": { + "line": 34, + "column": 17 + } + }, + "name": "a" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 751, + "end": 755, + "loc": { + "start": { + "line": 34, + "column": 60 + }, + "end": { + "line": 34, + "column": 64 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 753, + "end": 754, + "loc": { + "start": { + "line": 34, + "column": 62 + }, + "end": { + "line": 34, + "column": 63 + } + }, + "name": "a" + } + }, + "children": [ + { + "type": "JSXExpressionContainer", + "start": 742, + "end": 751, + "loc": { + "start": { + "line": 34, + "column": 51 + }, + "end": { + "line": 34, + "column": 60 + } + }, + "expression": { + "type": "Identifier", + "start": 743, + "end": 750, + "loc": { + "start": { + "line": 34, + "column": 52 + }, + "end": { + "line": 34, + "column": 59 + } + }, + "name": "content" + } + } + ] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 400, + "end": 448, + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 23, + "column": 7 + } + }, + "range": [ + 400, + 448 + ] + } + ] + } + ] + }, + "leadingComments": [], + "name": "_", + "trailingComments": [] + }, + { + "type": "Identifier", + "start": 767, + "end": 792, + "loc": { + "start": { + "line": 40, + "column": 0 + }, + "end": { + "line": 40, + "column": 25 + } + }, + "declaration": { + "type": "Identifier", + "start": 782, + "end": 792, + "loc": { + "start": { + "line": 40, + "column": 15 + }, + "end": { + "line": 40, + "column": 25 + } + }, + "name": "BackButton" + }, + "name": "_", + "leadingComments": [], + "trailingComments": [] + }, + { + "type": "ExportDefaultDeclaration", + "start": 767, + "end": 792, + "loc": { + "start": { + "line": 40, + "column": 0 + }, + "end": { + "line": 40, + "column": 25 + } + }, + "declaration": { + "type": "ClassDeclaration", + "start": 117, + "end": 765, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 38, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 123, + "end": 133, + "loc": { + "start": { + "line": 8, + "column": 6 + }, + "end": { + "line": 8, + "column": 16 + } + }, + "name": "BackButton", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 142, + "end": 151, + "loc": { + "start": { + "line": 8, + "column": 25 + }, + "end": { + "line": 8, + "column": 34 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 152, + "end": 765, + "loc": { + "start": { + "line": 8, + "column": 35 + }, + "end": { + "line": 38, + "column": 1 + } + }, + "body": [ + { + "type": "Identifier", + "start": 249, + "end": 394, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 18, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 256, + "end": 268, + "loc": { + "start": { + "line": 14, + "column": 11 + }, + "end": { + "line": 14, + "column": 23 + } + }, + "name": "defaultProps" + }, + "static": true, + "value": { + "type": "ObjectExpression", + "start": 271, + "end": 394, + "loc": { + "start": { + "line": 14, + "column": 26 + }, + "end": { + "line": 18, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 281, + "end": 288, + "loc": { + "start": { + "line": 15, + "column": 8 + }, + "end": { + "line": 15, + "column": 15 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 281, + "end": 283, + "loc": { + "start": { + "line": 15, + "column": 8 + }, + "end": { + "line": 15, + "column": 10 + } + }, + "name": "to" + }, + "value": { + "type": "Literal", + "start": 285, + "end": 288, + "loc": { + "start": { + "line": 15, + "column": 12 + }, + "end": { + "line": 15, + "column": 15 + } + }, + "value": "/", + "rawValue": "/", + "raw": "'/'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 298, + "end": 364, + "loc": { + "start": { + "line": 16, + "column": 8 + }, + "end": { + "line": 16, + "column": 74 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 298, + "end": 302, + "loc": { + "start": { + "line": 16, + "column": 8 + }, + "end": { + "line": 16, + "column": 12 + } + }, + "name": "icon" + }, + "value": { + "type": "JSXElement", + "start": 304, + "end": 364, + "loc": { + "start": { + "line": 16, + "column": 14 + }, + "end": { + "line": 16, + "column": 74 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 304, + "end": 364, + "loc": { + "start": { + "line": 16, + "column": 14 + }, + "end": { + "line": 16, + "column": 74 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 307, + "end": 335, + "loc": { + "start": { + "line": 16, + "column": 17 + }, + "end": { + "line": 16, + "column": 45 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 307, + "end": 316, + "loc": { + "start": { + "line": 16, + "column": 17 + }, + "end": { + "line": 16, + "column": 26 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 317, + "end": 335, + "loc": { + "start": { + "line": 16, + "column": 27 + }, + "end": { + "line": 16, + "column": 45 + } + }, + "value": "ion-chevron-left", + "rawValue": null, + "raw": "\"ion-chevron-left\"" + } + }, + { + "type": "JSXAttribute", + "start": 336, + "end": 362, + "loc": { + "start": { + "line": 16, + "column": 46 + }, + "end": { + "line": 16, + "column": 72 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 336, + "end": 341, + "loc": { + "start": { + "line": 16, + "column": 46 + }, + "end": { + "line": 16, + "column": 51 + } + }, + "name": "style" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 342, + "end": 362, + "loc": { + "start": { + "line": 16, + "column": 52 + }, + "end": { + "line": 16, + "column": 72 + } + }, + "expression": { + "type": "ObjectExpression", + "start": 343, + "end": 361, + "loc": { + "start": { + "line": 16, + "column": 53 + }, + "end": { + "line": 16, + "column": 71 + } + }, + "properties": [ + { + "type": "Property", + "start": 345, + "end": 359, + "loc": { + "start": { + "line": 16, + "column": 55 + }, + "end": { + "line": 16, + "column": 69 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 345, + "end": 356, + "loc": { + "start": { + "line": 16, + "column": 55 + }, + "end": { + "line": 16, + "column": 66 + } + }, + "name": "marginRight" + }, + "value": { + "type": "Literal", + "start": 358, + "end": 359, + "loc": { + "start": { + "line": 16, + "column": 68 + }, + "end": { + "line": 16, + "column": 69 + } + }, + "value": 6, + "rawValue": 6, + "raw": "6" + }, + "kind": "init" + } + ] + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 305, + "end": 306, + "loc": { + "start": { + "line": 16, + "column": 15 + }, + "end": { + "line": 16, + "column": 16 + } + }, + "name": "i" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + "kind": "init" + }, + { + "type": "Property", + "start": 374, + "end": 387, + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 17, + "column": 21 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 374, + "end": 379, + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 17, + "column": 13 + } + }, + "name": "label" + }, + "value": { + "type": "Literal", + "start": 381, + "end": 387, + "loc": { + "start": { + "line": 17, + "column": 15 + }, + "end": { + "line": 17, + "column": 21 + } + }, + "value": "Back", + "rawValue": "Back", + "raw": "'Back'" + }, + "kind": "init" + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * defaultProps\n * @type {{to: string, icon: XML, label: string}}\n ", + "start": 159, + "end": 244, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 13, + "column": 7 + } + }, + "range": [ + 159, + 244 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 400, + "end": 448, + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 23, + "column": 7 + } + }, + "range": [ + 400, + 448 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 453, + "end": 762, + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 36, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 453, + "end": 459, + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 459, + "end": 762, + "loc": { + "start": { + "line": 24, + "column": 10 + }, + "end": { + "line": 36, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 462, + "end": 762, + "loc": { + "start": { + "line": 24, + "column": 13 + }, + "end": { + "line": 36, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 473, + "end": 537, + "loc": { + "start": { + "line": 26, + "column": 8 + }, + "end": { + "line": 26, + "column": 72 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 479, + "end": 537, + "loc": { + "start": { + "line": 26, + "column": 14 + }, + "end": { + "line": 26, + "column": 72 + } + }, + "id": { + "type": "Identifier", + "start": 479, + "end": 486, + "loc": { + "start": { + "line": 26, + "column": 14 + }, + "end": { + "line": 26, + "column": 21 + } + }, + "name": "content" + }, + "init": { + "type": "JSXElement", + "start": 489, + "end": 537, + "loc": { + "start": { + "line": 26, + "column": 24 + }, + "end": { + "line": 26, + "column": 72 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 489, + "end": 495, + "loc": { + "start": { + "line": 26, + "column": 24 + }, + "end": { + "line": 26, + "column": 30 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 490, + "end": 494, + "loc": { + "start": { + "line": 26, + "column": 25 + }, + "end": { + "line": 26, + "column": 29 + } + }, + "name": "span" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 530, + "end": 537, + "loc": { + "start": { + "line": 26, + "column": 65 + }, + "end": { + "line": 26, + "column": 72 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 532, + "end": 536, + "loc": { + "start": { + "line": 26, + "column": 67 + }, + "end": { + "line": 26, + "column": 71 + } + }, + "name": "span" + } + }, + "children": [ + { + "type": "JSXExpressionContainer", + "start": 495, + "end": 512, + "loc": { + "start": { + "line": 26, + "column": 30 + }, + "end": { + "line": 26, + "column": 47 + } + }, + "expression": { + "type": "MemberExpression", + "start": 496, + "end": 511, + "loc": { + "start": { + "line": 26, + "column": 31 + }, + "end": { + "line": 26, + "column": 46 + } + }, + "object": { + "type": "MemberExpression", + "start": 496, + "end": 506, + "loc": { + "start": { + "line": 26, + "column": 31 + }, + "end": { + "line": 26, + "column": 41 + } + }, + "object": { + "type": "ThisExpression", + "start": 496, + "end": 500, + "loc": { + "start": { + "line": 26, + "column": 31 + }, + "end": { + "line": 26, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "start": 501, + "end": 506, + "loc": { + "start": { + "line": 26, + "column": 36 + }, + "end": { + "line": 26, + "column": 41 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 507, + "end": 511, + "loc": { + "start": { + "line": 26, + "column": 42 + }, + "end": { + "line": 26, + "column": 46 + } + }, + "name": "icon" + }, + "computed": false + } + }, + { + "type": "JSXExpressionContainer", + "start": 512, + "end": 530, + "loc": { + "start": { + "line": 26, + "column": 47 + }, + "end": { + "line": 26, + "column": 65 + } + }, + "expression": { + "type": "MemberExpression", + "start": 513, + "end": 529, + "loc": { + "start": { + "line": 26, + "column": 48 + }, + "end": { + "line": 26, + "column": 64 + } + }, + "object": { + "type": "MemberExpression", + "start": 513, + "end": 523, + "loc": { + "start": { + "line": 26, + "column": 48 + }, + "end": { + "line": 26, + "column": 58 + } + }, + "object": { + "type": "ThisExpression", + "start": 513, + "end": 517, + "loc": { + "start": { + "line": 26, + "column": 48 + }, + "end": { + "line": 26, + "column": 52 + } + } + }, + "property": { + "type": "Identifier", + "start": 518, + "end": 523, + "loc": { + "start": { + "line": 26, + "column": 53 + }, + "end": { + "line": 26, + "column": 58 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 524, + "end": 529, + "loc": { + "start": { + "line": 26, + "column": 59 + }, + "end": { + "line": 26, + "column": 64 + } + }, + "name": "label" + }, + "computed": false + } + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "IfStatement", + "start": 547, + "end": 689, + "loc": { + "start": { + "line": 28, + "column": 8 + }, + "end": { + "line": 32, + "column": 9 + } + }, + "test": { + "type": "BinaryExpression", + "start": 551, + "end": 583, + "loc": { + "start": { + "line": 28, + "column": 12 + }, + "end": { + "line": 28, + "column": 44 + } + }, + "left": { + "type": "UnaryExpression", + "start": 551, + "end": 571, + "loc": { + "start": { + "line": 28, + "column": 12 + }, + "end": { + "line": 28, + "column": 32 + } + }, + "operator": "typeof", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 558, + "end": 571, + "loc": { + "start": { + "line": 28, + "column": 19 + }, + "end": { + "line": 28, + "column": 32 + } + }, + "object": { + "type": "MemberExpression", + "start": 558, + "end": 568, + "loc": { + "start": { + "line": 28, + "column": 19 + }, + "end": { + "line": 28, + "column": 29 + } + }, + "object": { + "type": "ThisExpression", + "start": 558, + "end": 562, + "loc": { + "start": { + "line": 28, + "column": 19 + }, + "end": { + "line": 28, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "start": 563, + "end": 568, + "loc": { + "start": { + "line": 28, + "column": 24 + }, + "end": { + "line": 28, + "column": 29 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 569, + "end": 571, + "loc": { + "start": { + "line": 28, + "column": 30 + }, + "end": { + "line": 28, + "column": 32 + } + }, + "name": "to" + }, + "computed": false + } + }, + "operator": "==", + "right": { + "type": "Literal", + "start": 575, + "end": 583, + "loc": { + "start": { + "line": 28, + "column": 36 + }, + "end": { + "line": 28, + "column": 44 + } + }, + "value": "string", + "rawValue": "string", + "raw": "'string'" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 585, + "end": 689, + "loc": { + "start": { + "line": 28, + "column": 46 + }, + "end": { + "line": 32, + "column": 9 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 599, + "end": 679, + "loc": { + "start": { + "line": 29, + "column": 12 + }, + "end": { + "line": 31, + "column": 13 + } + }, + "argument": { + "type": "JSXElement", + "start": 624, + "end": 665, + "loc": { + "start": { + "line": 30, + "column": 16 + }, + "end": { + "line": 30, + "column": 57 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 624, + "end": 649, + "loc": { + "start": { + "line": 30, + "column": 16 + }, + "end": { + "line": 30, + "column": 41 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 630, + "end": 648, + "loc": { + "start": { + "line": 30, + "column": 22 + }, + "end": { + "line": 30, + "column": 40 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 630, + "end": 632, + "loc": { + "start": { + "line": 30, + "column": 22 + }, + "end": { + "line": 30, + "column": 24 + } + }, + "name": "to" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 633, + "end": 648, + "loc": { + "start": { + "line": 30, + "column": 25 + }, + "end": { + "line": 30, + "column": 40 + } + }, + "expression": { + "type": "MemberExpression", + "start": 634, + "end": 647, + "loc": { + "start": { + "line": 30, + "column": 26 + }, + "end": { + "line": 30, + "column": 39 + } + }, + "object": { + "type": "MemberExpression", + "start": 634, + "end": 644, + "loc": { + "start": { + "line": 30, + "column": 26 + }, + "end": { + "line": 30, + "column": 36 + } + }, + "object": { + "type": "ThisExpression", + "start": 634, + "end": 638, + "loc": { + "start": { + "line": 30, + "column": 26 + }, + "end": { + "line": 30, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "start": 639, + "end": 644, + "loc": { + "start": { + "line": 30, + "column": 31 + }, + "end": { + "line": 30, + "column": 36 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 645, + "end": 647, + "loc": { + "start": { + "line": 30, + "column": 37 + }, + "end": { + "line": 30, + "column": 39 + } + }, + "name": "to" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 625, + "end": 629, + "loc": { + "start": { + "line": 30, + "column": 17 + }, + "end": { + "line": 30, + "column": 21 + } + }, + "name": "Link" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 658, + "end": 665, + "loc": { + "start": { + "line": 30, + "column": 50 + }, + "end": { + "line": 30, + "column": 57 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 660, + "end": 664, + "loc": { + "start": { + "line": 30, + "column": 52 + }, + "end": { + "line": 30, + "column": 56 + } + }, + "name": "Link" + } + }, + "children": [ + { + "type": "JSXExpressionContainer", + "start": 649, + "end": 658, + "loc": { + "start": { + "line": 30, + "column": 41 + }, + "end": { + "line": 30, + "column": 50 + } + }, + "expression": { + "type": "Identifier", + "start": 650, + "end": 657, + "loc": { + "start": { + "line": 30, + "column": 42 + }, + "end": { + "line": 30, + "column": 49 + } + }, + "name": "content" + } + } + ], + "parenthesizedExpression": true + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 699, + "end": 755, + "loc": { + "start": { + "line": 34, + "column": 8 + }, + "end": { + "line": 34, + "column": 64 + } + }, + "argument": { + "type": "JSXElement", + "start": 706, + "end": 755, + "loc": { + "start": { + "line": 34, + "column": 15 + }, + "end": { + "line": 34, + "column": 64 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 706, + "end": 742, + "loc": { + "start": { + "line": 34, + "column": 15 + }, + "end": { + "line": 34, + "column": 51 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 709, + "end": 717, + "loc": { + "start": { + "line": 34, + "column": 18 + }, + "end": { + "line": 34, + "column": 26 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 709, + "end": 713, + "loc": { + "start": { + "line": 34, + "column": 18 + }, + "end": { + "line": 34, + "column": 22 + } + }, + "name": "href" + }, + "value": { + "type": "Literal", + "start": 714, + "end": 717, + "loc": { + "start": { + "line": 34, + "column": 23 + }, + "end": { + "line": 34, + "column": 26 + } + }, + "value": "#", + "rawValue": null, + "raw": "\"#\"" + } + }, + { + "type": "JSXAttribute", + "start": 718, + "end": 741, + "loc": { + "start": { + "line": 34, + "column": 27 + }, + "end": { + "line": 34, + "column": 50 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 718, + "end": 725, + "loc": { + "start": { + "line": 34, + "column": 27 + }, + "end": { + "line": 34, + "column": 34 + } + }, + "name": "onClick" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 726, + "end": 741, + "loc": { + "start": { + "line": 34, + "column": 35 + }, + "end": { + "line": 34, + "column": 50 + } + }, + "expression": { + "type": "MemberExpression", + "start": 727, + "end": 740, + "loc": { + "start": { + "line": 34, + "column": 36 + }, + "end": { + "line": 34, + "column": 49 + } + }, + "object": { + "type": "MemberExpression", + "start": 727, + "end": 737, + "loc": { + "start": { + "line": 34, + "column": 36 + }, + "end": { + "line": 34, + "column": 46 + } + }, + "object": { + "type": "ThisExpression", + "start": 727, + "end": 731, + "loc": { + "start": { + "line": 34, + "column": 36 + }, + "end": { + "line": 34, + "column": 40 + } + } + }, + "property": { + "type": "Identifier", + "start": 732, + "end": 737, + "loc": { + "start": { + "line": 34, + "column": 41 + }, + "end": { + "line": 34, + "column": 46 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 738, + "end": 740, + "loc": { + "start": { + "line": 34, + "column": 47 + }, + "end": { + "line": 34, + "column": 49 + } + }, + "name": "to" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 707, + "end": 708, + "loc": { + "start": { + "line": 34, + "column": 16 + }, + "end": { + "line": 34, + "column": 17 + } + }, + "name": "a" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 751, + "end": 755, + "loc": { + "start": { + "line": 34, + "column": 60 + }, + "end": { + "line": 34, + "column": 64 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 753, + "end": 754, + "loc": { + "start": { + "line": 34, + "column": 62 + }, + "end": { + "line": 34, + "column": 63 + } + }, + "name": "a" + } + }, + "children": [ + { + "type": "JSXExpressionContainer", + "start": 742, + "end": 751, + "loc": { + "start": { + "line": 34, + "column": 51 + }, + "end": { + "line": 34, + "column": 60 + } + }, + "expression": { + "type": "Identifier", + "start": 743, + "end": 750, + "loc": { + "start": { + "line": 34, + "column": 52 + }, + "end": { + "line": 34, + "column": 59 + } + }, + "name": "content" + } + } + ] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 400, + "end": 448, + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 23, + "column": 7 + } + }, + "range": [ + 400, + 448 + ] + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * BackButton index component\n ", + "start": 79, + "end": 116, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + }, + "range": [ + 79, + 116 + ] + } + ], + "__esdoc__pseudo_export": false, + "trailingComments": [] + }, + "leadingComments": null + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/components/Comment/index.js.json b/app/docs/ast/source/components/Comment/index.js.json new file mode 100644 index 0000000..446b296 --- /dev/null +++ b/app/docs/ast/source/components/Comment/index.js.json @@ -0,0 +1,3212 @@ +{ + "type": "Program", + "start": 0, + "end": 696, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 32, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + }, + { + "type": "ImportSpecifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "imported": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + }, + "local": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 33, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 33 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ImportDeclaration", + "start": 41, + "end": 73, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 32 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 48, + "end": 55, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 14 + } + }, + "local": { + "type": "Identifier", + "start": 48, + "end": 55, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 14 + } + }, + "name": "TimeAgo" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 61, + "end": 73, + "loc": { + "start": { + "line": 2, + "column": 20 + }, + "end": { + "line": 2, + "column": 32 + } + }, + "value": "../TimeAgo", + "rawValue": "../TimeAgo", + "raw": "'../TimeAgo'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Comment index component\n ", + "start": 75, + "end": 109, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + }, + "range": [ + 75, + 109 + ] + } + ] + }, + { + "type": "Identifier", + "start": 110, + "end": 671, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 29, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 116, + "end": 123, + "loc": { + "start": { + "line": 7, + "column": 6 + }, + "end": { + "line": 7, + "column": 13 + } + }, + "name": "Comment", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 132, + "end": 141, + "loc": { + "start": { + "line": 7, + "column": 22 + }, + "end": { + "line": 7, + "column": 31 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 142, + "end": 671, + "loc": { + "start": { + "line": 7, + "column": 32 + }, + "end": { + "line": 29, + "column": 1 + } + }, + "body": [ + { + "type": "MethodDefinition", + "start": 195, + "end": 668, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 27, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 195, + "end": 201, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 201, + "end": 668, + "loc": { + "start": { + "line": 13, + "column": 10 + }, + "end": { + "line": 27, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 204, + "end": 668, + "loc": { + "start": { + "line": 13, + "column": 13 + }, + "end": { + "line": 27, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 214, + "end": 662, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 26, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 235, + "end": 652, + "loc": { + "start": { + "line": 15, + "column": 12 + }, + "end": { + "line": 25, + "column": 18 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 235, + "end": 260, + "loc": { + "start": { + "line": 15, + "column": 12 + }, + "end": { + "line": 15, + "column": 37 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 240, + "end": 259, + "loc": { + "start": { + "line": 15, + "column": 17 + }, + "end": { + "line": 15, + "column": 36 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 240, + "end": 249, + "loc": { + "start": { + "line": 15, + "column": 17 + }, + "end": { + "line": 15, + "column": 26 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 250, + "end": 259, + "loc": { + "start": { + "line": 15, + "column": 27 + }, + "end": { + "line": 15, + "column": 36 + } + }, + "value": "comment", + "rawValue": null, + "raw": "\"comment\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 236, + "end": 239, + "loc": { + "start": { + "line": 15, + "column": 13 + }, + "end": { + "line": 15, + "column": 16 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 646, + "end": 652, + "loc": { + "start": { + "line": 25, + "column": 12 + }, + "end": { + "line": 25, + "column": 18 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 648, + "end": 651, + "loc": { + "start": { + "line": 25, + "column": 14 + }, + "end": { + "line": 25, + "column": 17 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 260, + "end": 277, + "loc": { + "start": { + "line": 15, + "column": 37 + }, + "end": { + "line": 16, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 277, + "end": 404, + "loc": { + "start": { + "line": 16, + "column": 16 + }, + "end": { + "line": 18, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 277, + "end": 300, + "loc": { + "start": { + "line": 16, + "column": 16 + }, + "end": { + "line": 16, + "column": 39 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 282, + "end": 299, + "loc": { + "start": { + "line": 16, + "column": 21 + }, + "end": { + "line": 16, + "column": 38 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 282, + "end": 291, + "loc": { + "start": { + "line": 16, + "column": 21 + }, + "end": { + "line": 16, + "column": 30 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 292, + "end": 299, + "loc": { + "start": { + "line": 16, + "column": 31 + }, + "end": { + "line": 16, + "column": 38 + } + }, + "value": "actor", + "rawValue": null, + "raw": "\"actor\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 278, + "end": 281, + "loc": { + "start": { + "line": 16, + "column": 17 + }, + "end": { + "line": 16, + "column": 20 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 398, + "end": 404, + "loc": { + "start": { + "line": 18, + "column": 16 + }, + "end": { + "line": 18, + "column": 22 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 400, + "end": 403, + "loc": { + "start": { + "line": 18, + "column": 18 + }, + "end": { + "line": 18, + "column": 21 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 300, + "end": 321, + "loc": { + "start": { + "line": 16, + "column": 39 + }, + "end": { + "line": 17, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 321, + "end": 343, + "loc": { + "start": { + "line": 17, + "column": 20 + }, + "end": { + "line": 17, + "column": 42 + } + }, + "expression": { + "type": "MemberExpression", + "start": 322, + "end": 342, + "loc": { + "start": { + "line": 17, + "column": 21 + }, + "end": { + "line": 17, + "column": 41 + } + }, + "object": { + "type": "MemberExpression", + "start": 322, + "end": 332, + "loc": { + "start": { + "line": 17, + "column": 21 + }, + "end": { + "line": 17, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 322, + "end": 326, + "loc": { + "start": { + "line": 17, + "column": 21 + }, + "end": { + "line": 17, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "start": 327, + "end": 332, + "loc": { + "start": { + "line": 17, + "column": 26 + }, + "end": { + "line": 17, + "column": 31 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 333, + "end": 342, + "loc": { + "start": { + "line": 17, + "column": 32 + }, + "end": { + "line": 17, + "column": 41 + } + }, + "name": "firstName" + }, + "computed": false + } + }, + { + "type": "Literal", + "start": 343, + "end": 344, + "loc": { + "start": { + "line": 17, + "column": 42 + }, + "end": { + "line": 17, + "column": 43 + } + }, + "value": " ", + "rawValue": null, + "raw": " " + }, + { + "type": "JSXExpressionContainer", + "start": 344, + "end": 381, + "loc": { + "start": { + "line": 17, + "column": 43 + }, + "end": { + "line": 17, + "column": 80 + } + }, + "expression": { + "type": "BinaryExpression", + "start": 345, + "end": 380, + "loc": { + "start": { + "line": 17, + "column": 44 + }, + "end": { + "line": 17, + "column": 79 + } + }, + "left": { + "type": "CallExpression", + "start": 345, + "end": 374, + "loc": { + "start": { + "line": 17, + "column": 44 + }, + "end": { + "line": 17, + "column": 73 + } + }, + "callee": { + "type": "MemberExpression", + "start": 345, + "end": 371, + "loc": { + "start": { + "line": 17, + "column": 44 + }, + "end": { + "line": 17, + "column": 70 + } + }, + "object": { + "type": "MemberExpression", + "start": 345, + "end": 364, + "loc": { + "start": { + "line": 17, + "column": 44 + }, + "end": { + "line": 17, + "column": 63 + } + }, + "object": { + "type": "MemberExpression", + "start": 345, + "end": 355, + "loc": { + "start": { + "line": 17, + "column": 44 + }, + "end": { + "line": 17, + "column": 54 + } + }, + "object": { + "type": "ThisExpression", + "start": 345, + "end": 349, + "loc": { + "start": { + "line": 17, + "column": 44 + }, + "end": { + "line": 17, + "column": 48 + } + } + }, + "property": { + "type": "Identifier", + "start": 350, + "end": 355, + "loc": { + "start": { + "line": 17, + "column": 49 + }, + "end": { + "line": 17, + "column": 54 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 356, + "end": 364, + "loc": { + "start": { + "line": 17, + "column": 55 + }, + "end": { + "line": 17, + "column": 63 + } + }, + "name": "lastName" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 365, + "end": 371, + "loc": { + "start": { + "line": 17, + "column": 64 + }, + "end": { + "line": 17, + "column": 70 + } + }, + "name": "charAt" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 372, + "end": 373, + "loc": { + "start": { + "line": 17, + "column": 71 + }, + "end": { + "line": 17, + "column": 72 + } + }, + "value": 0, + "rawValue": 0, + "raw": "0" + } + ] + }, + "operator": "+", + "right": { + "type": "Literal", + "start": 377, + "end": 380, + "loc": { + "start": { + "line": 17, + "column": 76 + }, + "end": { + "line": 17, + "column": 79 + } + }, + "value": ".", + "rawValue": ".", + "raw": "'.'" + } + } + }, + { + "type": "Literal", + "start": 381, + "end": 398, + "loc": { + "start": { + "line": 17, + "column": 80 + }, + "end": { + "line": 18, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 404, + "end": 421, + "loc": { + "start": { + "line": 18, + "column": 22 + }, + "end": { + "line": 19, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 421, + "end": 530, + "loc": { + "start": { + "line": 19, + "column": 16 + }, + "end": { + "line": 21, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 421, + "end": 443, + "loc": { + "start": { + "line": 19, + "column": 16 + }, + "end": { + "line": 19, + "column": 38 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 426, + "end": 442, + "loc": { + "start": { + "line": 19, + "column": 21 + }, + "end": { + "line": 19, + "column": 37 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 426, + "end": 435, + "loc": { + "start": { + "line": 19, + "column": 21 + }, + "end": { + "line": 19, + "column": 30 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 436, + "end": 442, + "loc": { + "start": { + "line": 19, + "column": 31 + }, + "end": { + "line": 19, + "column": 37 + } + }, + "value": "time", + "rawValue": null, + "raw": "\"time\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 422, + "end": 425, + "loc": { + "start": { + "line": 19, + "column": 17 + }, + "end": { + "line": 19, + "column": 20 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 524, + "end": 530, + "loc": { + "start": { + "line": 21, + "column": 16 + }, + "end": { + "line": 21, + "column": 22 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 526, + "end": 529, + "loc": { + "start": { + "line": 21, + "column": 18 + }, + "end": { + "line": 21, + "column": 21 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 443, + "end": 464, + "loc": { + "start": { + "line": 19, + "column": 38 + }, + "end": { + "line": 20, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 464, + "end": 507, + "loc": { + "start": { + "line": 20, + "column": 20 + }, + "end": { + "line": 20, + "column": 63 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 464, + "end": 507, + "loc": { + "start": { + "line": 20, + "column": 20 + }, + "end": { + "line": 20, + "column": 63 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 473, + "end": 505, + "loc": { + "start": { + "line": 20, + "column": 29 + }, + "end": { + "line": 20, + "column": 61 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 473, + "end": 482, + "loc": { + "start": { + "line": 20, + "column": 29 + }, + "end": { + "line": 20, + "column": 38 + } + }, + "name": "timestamp" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 483, + "end": 505, + "loc": { + "start": { + "line": 20, + "column": 39 + }, + "end": { + "line": 20, + "column": 61 + } + }, + "expression": { + "type": "MemberExpression", + "start": 484, + "end": 504, + "loc": { + "start": { + "line": 20, + "column": 40 + }, + "end": { + "line": 20, + "column": 60 + } + }, + "object": { + "type": "MemberExpression", + "start": 484, + "end": 494, + "loc": { + "start": { + "line": 20, + "column": 40 + }, + "end": { + "line": 20, + "column": 50 + } + }, + "object": { + "type": "ThisExpression", + "start": 484, + "end": 488, + "loc": { + "start": { + "line": 20, + "column": 40 + }, + "end": { + "line": 20, + "column": 44 + } + } + }, + "property": { + "type": "Identifier", + "start": 489, + "end": 494, + "loc": { + "start": { + "line": 20, + "column": 45 + }, + "end": { + "line": 20, + "column": 50 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 495, + "end": 504, + "loc": { + "start": { + "line": 20, + "column": 51 + }, + "end": { + "line": 20, + "column": 60 + } + }, + "name": "createdAt" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 465, + "end": 472, + "loc": { + "start": { + "line": 20, + "column": 21 + }, + "end": { + "line": 20, + "column": 28 + } + }, + "name": "TimeAgo" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 507, + "end": 524, + "loc": { + "start": { + "line": 20, + "column": 63 + }, + "end": { + "line": 21, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 530, + "end": 547, + "loc": { + "start": { + "line": 21, + "column": 22 + }, + "end": { + "line": 22, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 547, + "end": 633, + "loc": { + "start": { + "line": 22, + "column": 16 + }, + "end": { + "line": 24, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 547, + "end": 569, + "loc": { + "start": { + "line": 22, + "column": 16 + }, + "end": { + "line": 22, + "column": 38 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 552, + "end": 568, + "loc": { + "start": { + "line": 22, + "column": 21 + }, + "end": { + "line": 22, + "column": 37 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 552, + "end": 561, + "loc": { + "start": { + "line": 22, + "column": 21 + }, + "end": { + "line": 22, + "column": 30 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 562, + "end": 568, + "loc": { + "start": { + "line": 22, + "column": 31 + }, + "end": { + "line": 22, + "column": 37 + } + }, + "value": "text", + "rawValue": null, + "raw": "\"text\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 548, + "end": 551, + "loc": { + "start": { + "line": 22, + "column": 17 + }, + "end": { + "line": 22, + "column": 20 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 627, + "end": 633, + "loc": { + "start": { + "line": 24, + "column": 16 + }, + "end": { + "line": 24, + "column": 22 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 629, + "end": 632, + "loc": { + "start": { + "line": 24, + "column": 18 + }, + "end": { + "line": 24, + "column": 21 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 569, + "end": 590, + "loc": { + "start": { + "line": 22, + "column": 38 + }, + "end": { + "line": 23, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 590, + "end": 610, + "loc": { + "start": { + "line": 23, + "column": 20 + }, + "end": { + "line": 23, + "column": 40 + } + }, + "expression": { + "type": "MemberExpression", + "start": 591, + "end": 609, + "loc": { + "start": { + "line": 23, + "column": 21 + }, + "end": { + "line": 23, + "column": 39 + } + }, + "object": { + "type": "MemberExpression", + "start": 591, + "end": 601, + "loc": { + "start": { + "line": 23, + "column": 21 + }, + "end": { + "line": 23, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 591, + "end": 595, + "loc": { + "start": { + "line": 23, + "column": 21 + }, + "end": { + "line": 23, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "start": 596, + "end": 601, + "loc": { + "start": { + "line": 23, + "column": 26 + }, + "end": { + "line": 23, + "column": 31 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 602, + "end": 609, + "loc": { + "start": { + "line": 23, + "column": 32 + }, + "end": { + "line": 23, + "column": 39 + } + }, + "name": "comment" + }, + "computed": false + } + }, + { + "type": "Literal", + "start": 610, + "end": 627, + "loc": { + "start": { + "line": 23, + "column": 40 + }, + "end": { + "line": 24, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 633, + "end": 646, + "loc": { + "start": { + "line": 24, + "column": 22 + }, + "end": { + "line": 25, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n *\n * @returns markup\n ", + "start": 149, + "end": 190, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 12, + "column": 7 + } + }, + "range": [ + 149, + 190 + ] + } + ] + } + ] + }, + "leadingComments": [], + "name": "_", + "trailingComments": [] + }, + { + "type": "Identifier", + "start": 673, + "end": 695, + "loc": { + "start": { + "line": 31, + "column": 0 + }, + "end": { + "line": 31, + "column": 22 + } + }, + "declaration": { + "type": "Identifier", + "start": 688, + "end": 695, + "loc": { + "start": { + "line": 31, + "column": 15 + }, + "end": { + "line": 31, + "column": 22 + } + }, + "name": "Comment" + }, + "name": "_", + "leadingComments": [], + "trailingComments": [] + }, + { + "type": "ExportDefaultDeclaration", + "start": 673, + "end": 695, + "loc": { + "start": { + "line": 31, + "column": 0 + }, + "end": { + "line": 31, + "column": 22 + } + }, + "declaration": { + "type": "ClassDeclaration", + "start": 110, + "end": 671, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 29, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 116, + "end": 123, + "loc": { + "start": { + "line": 7, + "column": 6 + }, + "end": { + "line": 7, + "column": 13 + } + }, + "name": "Comment", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 132, + "end": 141, + "loc": { + "start": { + "line": 7, + "column": 22 + }, + "end": { + "line": 7, + "column": 31 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 142, + "end": 671, + "loc": { + "start": { + "line": 7, + "column": 32 + }, + "end": { + "line": 29, + "column": 1 + } + }, + "body": [ + { + "type": "MethodDefinition", + "start": 195, + "end": 668, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 27, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 195, + "end": 201, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 201, + "end": 668, + "loc": { + "start": { + "line": 13, + "column": 10 + }, + "end": { + "line": 27, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 204, + "end": 668, + "loc": { + "start": { + "line": 13, + "column": 13 + }, + "end": { + "line": 27, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 214, + "end": 662, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 26, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 235, + "end": 652, + "loc": { + "start": { + "line": 15, + "column": 12 + }, + "end": { + "line": 25, + "column": 18 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 235, + "end": 260, + "loc": { + "start": { + "line": 15, + "column": 12 + }, + "end": { + "line": 15, + "column": 37 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 240, + "end": 259, + "loc": { + "start": { + "line": 15, + "column": 17 + }, + "end": { + "line": 15, + "column": 36 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 240, + "end": 249, + "loc": { + "start": { + "line": 15, + "column": 17 + }, + "end": { + "line": 15, + "column": 26 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 250, + "end": 259, + "loc": { + "start": { + "line": 15, + "column": 27 + }, + "end": { + "line": 15, + "column": 36 + } + }, + "value": "comment", + "rawValue": null, + "raw": "\"comment\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 236, + "end": 239, + "loc": { + "start": { + "line": 15, + "column": 13 + }, + "end": { + "line": 15, + "column": 16 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 646, + "end": 652, + "loc": { + "start": { + "line": 25, + "column": 12 + }, + "end": { + "line": 25, + "column": 18 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 648, + "end": 651, + "loc": { + "start": { + "line": 25, + "column": 14 + }, + "end": { + "line": 25, + "column": 17 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 260, + "end": 277, + "loc": { + "start": { + "line": 15, + "column": 37 + }, + "end": { + "line": 16, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 277, + "end": 404, + "loc": { + "start": { + "line": 16, + "column": 16 + }, + "end": { + "line": 18, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 277, + "end": 300, + "loc": { + "start": { + "line": 16, + "column": 16 + }, + "end": { + "line": 16, + "column": 39 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 282, + "end": 299, + "loc": { + "start": { + "line": 16, + "column": 21 + }, + "end": { + "line": 16, + "column": 38 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 282, + "end": 291, + "loc": { + "start": { + "line": 16, + "column": 21 + }, + "end": { + "line": 16, + "column": 30 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 292, + "end": 299, + "loc": { + "start": { + "line": 16, + "column": 31 + }, + "end": { + "line": 16, + "column": 38 + } + }, + "value": "actor", + "rawValue": null, + "raw": "\"actor\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 278, + "end": 281, + "loc": { + "start": { + "line": 16, + "column": 17 + }, + "end": { + "line": 16, + "column": 20 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 398, + "end": 404, + "loc": { + "start": { + "line": 18, + "column": 16 + }, + "end": { + "line": 18, + "column": 22 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 400, + "end": 403, + "loc": { + "start": { + "line": 18, + "column": 18 + }, + "end": { + "line": 18, + "column": 21 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 300, + "end": 321, + "loc": { + "start": { + "line": 16, + "column": 39 + }, + "end": { + "line": 17, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 321, + "end": 343, + "loc": { + "start": { + "line": 17, + "column": 20 + }, + "end": { + "line": 17, + "column": 42 + } + }, + "expression": { + "type": "MemberExpression", + "start": 322, + "end": 342, + "loc": { + "start": { + "line": 17, + "column": 21 + }, + "end": { + "line": 17, + "column": 41 + } + }, + "object": { + "type": "MemberExpression", + "start": 322, + "end": 332, + "loc": { + "start": { + "line": 17, + "column": 21 + }, + "end": { + "line": 17, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 322, + "end": 326, + "loc": { + "start": { + "line": 17, + "column": 21 + }, + "end": { + "line": 17, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "start": 327, + "end": 332, + "loc": { + "start": { + "line": 17, + "column": 26 + }, + "end": { + "line": 17, + "column": 31 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 333, + "end": 342, + "loc": { + "start": { + "line": 17, + "column": 32 + }, + "end": { + "line": 17, + "column": 41 + } + }, + "name": "firstName" + }, + "computed": false + } + }, + { + "type": "Literal", + "start": 343, + "end": 344, + "loc": { + "start": { + "line": 17, + "column": 42 + }, + "end": { + "line": 17, + "column": 43 + } + }, + "value": " ", + "rawValue": null, + "raw": " " + }, + { + "type": "JSXExpressionContainer", + "start": 344, + "end": 381, + "loc": { + "start": { + "line": 17, + "column": 43 + }, + "end": { + "line": 17, + "column": 80 + } + }, + "expression": { + "type": "BinaryExpression", + "start": 345, + "end": 380, + "loc": { + "start": { + "line": 17, + "column": 44 + }, + "end": { + "line": 17, + "column": 79 + } + }, + "left": { + "type": "CallExpression", + "start": 345, + "end": 374, + "loc": { + "start": { + "line": 17, + "column": 44 + }, + "end": { + "line": 17, + "column": 73 + } + }, + "callee": { + "type": "MemberExpression", + "start": 345, + "end": 371, + "loc": { + "start": { + "line": 17, + "column": 44 + }, + "end": { + "line": 17, + "column": 70 + } + }, + "object": { + "type": "MemberExpression", + "start": 345, + "end": 364, + "loc": { + "start": { + "line": 17, + "column": 44 + }, + "end": { + "line": 17, + "column": 63 + } + }, + "object": { + "type": "MemberExpression", + "start": 345, + "end": 355, + "loc": { + "start": { + "line": 17, + "column": 44 + }, + "end": { + "line": 17, + "column": 54 + } + }, + "object": { + "type": "ThisExpression", + "start": 345, + "end": 349, + "loc": { + "start": { + "line": 17, + "column": 44 + }, + "end": { + "line": 17, + "column": 48 + } + } + }, + "property": { + "type": "Identifier", + "start": 350, + "end": 355, + "loc": { + "start": { + "line": 17, + "column": 49 + }, + "end": { + "line": 17, + "column": 54 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 356, + "end": 364, + "loc": { + "start": { + "line": 17, + "column": 55 + }, + "end": { + "line": 17, + "column": 63 + } + }, + "name": "lastName" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 365, + "end": 371, + "loc": { + "start": { + "line": 17, + "column": 64 + }, + "end": { + "line": 17, + "column": 70 + } + }, + "name": "charAt" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 372, + "end": 373, + "loc": { + "start": { + "line": 17, + "column": 71 + }, + "end": { + "line": 17, + "column": 72 + } + }, + "value": 0, + "rawValue": 0, + "raw": "0" + } + ] + }, + "operator": "+", + "right": { + "type": "Literal", + "start": 377, + "end": 380, + "loc": { + "start": { + "line": 17, + "column": 76 + }, + "end": { + "line": 17, + "column": 79 + } + }, + "value": ".", + "rawValue": ".", + "raw": "'.'" + } + } + }, + { + "type": "Literal", + "start": 381, + "end": 398, + "loc": { + "start": { + "line": 17, + "column": 80 + }, + "end": { + "line": 18, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 404, + "end": 421, + "loc": { + "start": { + "line": 18, + "column": 22 + }, + "end": { + "line": 19, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 421, + "end": 530, + "loc": { + "start": { + "line": 19, + "column": 16 + }, + "end": { + "line": 21, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 421, + "end": 443, + "loc": { + "start": { + "line": 19, + "column": 16 + }, + "end": { + "line": 19, + "column": 38 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 426, + "end": 442, + "loc": { + "start": { + "line": 19, + "column": 21 + }, + "end": { + "line": 19, + "column": 37 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 426, + "end": 435, + "loc": { + "start": { + "line": 19, + "column": 21 + }, + "end": { + "line": 19, + "column": 30 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 436, + "end": 442, + "loc": { + "start": { + "line": 19, + "column": 31 + }, + "end": { + "line": 19, + "column": 37 + } + }, + "value": "time", + "rawValue": null, + "raw": "\"time\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 422, + "end": 425, + "loc": { + "start": { + "line": 19, + "column": 17 + }, + "end": { + "line": 19, + "column": 20 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 524, + "end": 530, + "loc": { + "start": { + "line": 21, + "column": 16 + }, + "end": { + "line": 21, + "column": 22 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 526, + "end": 529, + "loc": { + "start": { + "line": 21, + "column": 18 + }, + "end": { + "line": 21, + "column": 21 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 443, + "end": 464, + "loc": { + "start": { + "line": 19, + "column": 38 + }, + "end": { + "line": 20, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 464, + "end": 507, + "loc": { + "start": { + "line": 20, + "column": 20 + }, + "end": { + "line": 20, + "column": 63 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 464, + "end": 507, + "loc": { + "start": { + "line": 20, + "column": 20 + }, + "end": { + "line": 20, + "column": 63 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 473, + "end": 505, + "loc": { + "start": { + "line": 20, + "column": 29 + }, + "end": { + "line": 20, + "column": 61 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 473, + "end": 482, + "loc": { + "start": { + "line": 20, + "column": 29 + }, + "end": { + "line": 20, + "column": 38 + } + }, + "name": "timestamp" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 483, + "end": 505, + "loc": { + "start": { + "line": 20, + "column": 39 + }, + "end": { + "line": 20, + "column": 61 + } + }, + "expression": { + "type": "MemberExpression", + "start": 484, + "end": 504, + "loc": { + "start": { + "line": 20, + "column": 40 + }, + "end": { + "line": 20, + "column": 60 + } + }, + "object": { + "type": "MemberExpression", + "start": 484, + "end": 494, + "loc": { + "start": { + "line": 20, + "column": 40 + }, + "end": { + "line": 20, + "column": 50 + } + }, + "object": { + "type": "ThisExpression", + "start": 484, + "end": 488, + "loc": { + "start": { + "line": 20, + "column": 40 + }, + "end": { + "line": 20, + "column": 44 + } + } + }, + "property": { + "type": "Identifier", + "start": 489, + "end": 494, + "loc": { + "start": { + "line": 20, + "column": 45 + }, + "end": { + "line": 20, + "column": 50 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 495, + "end": 504, + "loc": { + "start": { + "line": 20, + "column": 51 + }, + "end": { + "line": 20, + "column": 60 + } + }, + "name": "createdAt" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 465, + "end": 472, + "loc": { + "start": { + "line": 20, + "column": 21 + }, + "end": { + "line": 20, + "column": 28 + } + }, + "name": "TimeAgo" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 507, + "end": 524, + "loc": { + "start": { + "line": 20, + "column": 63 + }, + "end": { + "line": 21, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 530, + "end": 547, + "loc": { + "start": { + "line": 21, + "column": 22 + }, + "end": { + "line": 22, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 547, + "end": 633, + "loc": { + "start": { + "line": 22, + "column": 16 + }, + "end": { + "line": 24, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 547, + "end": 569, + "loc": { + "start": { + "line": 22, + "column": 16 + }, + "end": { + "line": 22, + "column": 38 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 552, + "end": 568, + "loc": { + "start": { + "line": 22, + "column": 21 + }, + "end": { + "line": 22, + "column": 37 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 552, + "end": 561, + "loc": { + "start": { + "line": 22, + "column": 21 + }, + "end": { + "line": 22, + "column": 30 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 562, + "end": 568, + "loc": { + "start": { + "line": 22, + "column": 31 + }, + "end": { + "line": 22, + "column": 37 + } + }, + "value": "text", + "rawValue": null, + "raw": "\"text\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 548, + "end": 551, + "loc": { + "start": { + "line": 22, + "column": 17 + }, + "end": { + "line": 22, + "column": 20 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 627, + "end": 633, + "loc": { + "start": { + "line": 24, + "column": 16 + }, + "end": { + "line": 24, + "column": 22 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 629, + "end": 632, + "loc": { + "start": { + "line": 24, + "column": 18 + }, + "end": { + "line": 24, + "column": 21 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 569, + "end": 590, + "loc": { + "start": { + "line": 22, + "column": 38 + }, + "end": { + "line": 23, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 590, + "end": 610, + "loc": { + "start": { + "line": 23, + "column": 20 + }, + "end": { + "line": 23, + "column": 40 + } + }, + "expression": { + "type": "MemberExpression", + "start": 591, + "end": 609, + "loc": { + "start": { + "line": 23, + "column": 21 + }, + "end": { + "line": 23, + "column": 39 + } + }, + "object": { + "type": "MemberExpression", + "start": 591, + "end": 601, + "loc": { + "start": { + "line": 23, + "column": 21 + }, + "end": { + "line": 23, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 591, + "end": 595, + "loc": { + "start": { + "line": 23, + "column": 21 + }, + "end": { + "line": 23, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "start": 596, + "end": 601, + "loc": { + "start": { + "line": 23, + "column": 26 + }, + "end": { + "line": 23, + "column": 31 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 602, + "end": 609, + "loc": { + "start": { + "line": 23, + "column": 32 + }, + "end": { + "line": 23, + "column": 39 + } + }, + "name": "comment" + }, + "computed": false + } + }, + { + "type": "Literal", + "start": 610, + "end": 627, + "loc": { + "start": { + "line": 23, + "column": 40 + }, + "end": { + "line": 24, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 633, + "end": 646, + "loc": { + "start": { + "line": 24, + "column": 22 + }, + "end": { + "line": 25, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n *\n * @returns markup\n ", + "start": 149, + "end": 190, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 12, + "column": 7 + } + }, + "range": [ + 149, + 190 + ] + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Comment index component\n ", + "start": 75, + "end": 109, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + }, + "range": [ + 75, + 109 + ] + } + ], + "__esdoc__pseudo_export": false, + "trailingComments": [] + }, + "leadingComments": null + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/components/Header/index.js.json b/app/docs/ast/source/components/Header/index.js.json new file mode 100644 index 0000000..f4f75b5 --- /dev/null +++ b/app/docs/ast/source/components/Header/index.js.json @@ -0,0 +1,4885 @@ +{ + "type": "Program", + "start": 0, + "end": 1514, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 86, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 38, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 38 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + }, + { + "type": "ImportSpecifier", + "start": 15, + "end": 24, + "loc": { + "start": { + "line": 1, + "column": 15 + }, + "end": { + "line": 1, + "column": 24 + } + }, + "imported": { + "type": "Identifier", + "start": 15, + "end": 24, + "loc": { + "start": { + "line": 1, + "column": 15 + }, + "end": { + "line": 1, + "column": 24 + } + }, + "name": "Component" + }, + "local": { + "type": "Identifier", + "start": 15, + "end": 24, + "loc": { + "start": { + "line": 1, + "column": 15 + }, + "end": { + "line": 1, + "column": 24 + } + }, + "name": "Component" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 31, + "end": 38, + "loc": { + "start": { + "line": 1, + "column": 31 + }, + "end": { + "line": 1, + "column": 38 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ImportDeclaration", + "start": 39, + "end": 74, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 35 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 48, + "end": 52, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "imported": { + "type": "Identifier", + "start": 48, + "end": 52, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "name": "Link" + }, + "local": { + "type": "Identifier", + "start": 48, + "end": 52, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "name": "Link" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 60, + "end": 74, + "loc": { + "start": { + "line": 2, + "column": 21 + }, + "end": { + "line": 2, + "column": 35 + } + }, + "value": "react-router", + "rawValue": "react-router", + "raw": "'react-router'" + } + }, + { + "type": "ImportDeclaration", + "start": 76, + "end": 114, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 38 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 83, + "end": 86, + "loc": { + "start": { + "line": 4, + "column": 7 + }, + "end": { + "line": 4, + "column": 10 + } + }, + "local": { + "type": "Identifier", + "start": 83, + "end": 86, + "loc": { + "start": { + "line": 4, + "column": 7 + }, + "end": { + "line": 4, + "column": 10 + } + }, + "name": "Nav" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 92, + "end": 114, + "loc": { + "start": { + "line": 4, + "column": 16 + }, + "end": { + "line": 4, + "column": 38 + } + }, + "value": "../../components/Nav", + "rawValue": "../../components/Nav", + "raw": "'../../components/Nav'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Left component\n ", + "start": 116, + "end": 141, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + }, + "range": [ + 116, + 141 + ] + } + ] + }, + { + "type": "ClassDeclaration", + "start": 142, + "end": 439, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 25, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 148, + "end": 152, + "loc": { + "start": { + "line": 9, + "column": 6 + }, + "end": { + "line": 9, + "column": 10 + } + }, + "name": "Left", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 161, + "end": 170, + "loc": { + "start": { + "line": 9, + "column": 19 + }, + "end": { + "line": 9, + "column": 28 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 171, + "end": 439, + "loc": { + "start": { + "line": 9, + "column": 29 + }, + "end": { + "line": 25, + "column": 1 + } + }, + "body": [ + { + "type": "MethodDefinition", + "start": 231, + "end": 436, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 23, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 231, + "end": 237, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 237, + "end": 436, + "loc": { + "start": { + "line": 15, + "column": 10 + }, + "end": { + "line": 23, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 240, + "end": 436, + "loc": { + "start": { + "line": 15, + "column": 13 + }, + "end": { + "line": 23, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 250, + "end": 430, + "loc": { + "start": { + "line": 16, + "column": 8 + }, + "end": { + "line": 22, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 271, + "end": 420, + "loc": { + "start": { + "line": 17, + "column": 12 + }, + "end": { + "line": 21, + "column": 18 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 271, + "end": 298, + "loc": { + "start": { + "line": 17, + "column": 12 + }, + "end": { + "line": 17, + "column": 39 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 276, + "end": 297, + "loc": { + "start": { + "line": 17, + "column": 17 + }, + "end": { + "line": 17, + "column": 38 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 276, + "end": 285, + "loc": { + "start": { + "line": 17, + "column": 17 + }, + "end": { + "line": 17, + "column": 26 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 286, + "end": 297, + "loc": { + "start": { + "line": 17, + "column": 27 + }, + "end": { + "line": 17, + "column": 38 + } + }, + "value": "item left", + "rawValue": null, + "raw": "\"item left\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 272, + "end": 275, + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 17, + "column": 16 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 414, + "end": 420, + "loc": { + "start": { + "line": 21, + "column": 12 + }, + "end": { + "line": 21, + "column": 18 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 416, + "end": 419, + "loc": { + "start": { + "line": 21, + "column": 14 + }, + "end": { + "line": 21, + "column": 17 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 298, + "end": 315, + "loc": { + "start": { + "line": 17, + "column": 39 + }, + "end": { + "line": 18, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 315, + "end": 401, + "loc": { + "start": { + "line": 18, + "column": 16 + }, + "end": { + "line": 20, + "column": 23 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 315, + "end": 330, + "loc": { + "start": { + "line": 18, + "column": 16 + }, + "end": { + "line": 18, + "column": 31 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 321, + "end": 329, + "loc": { + "start": { + "line": 18, + "column": 22 + }, + "end": { + "line": 18, + "column": 30 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 321, + "end": 323, + "loc": { + "start": { + "line": 18, + "column": 22 + }, + "end": { + "line": 18, + "column": 24 + } + }, + "name": "to" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 324, + "end": 329, + "loc": { + "start": { + "line": 18, + "column": 25 + }, + "end": { + "line": 18, + "column": 30 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 325, + "end": 328, + "loc": { + "start": { + "line": 18, + "column": 26 + }, + "end": { + "line": 18, + "column": 29 + } + }, + "expressions": [], + "quasis": [ + { + "type": "TemplateElement", + "start": 326, + "end": 327, + "loc": { + "start": { + "line": 18, + "column": 27 + }, + "end": { + "line": 18, + "column": 28 + } + }, + "value": { + "raw": "/", + "cooked": "/" + }, + "tail": true + } + ] + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 316, + "end": 320, + "loc": { + "start": { + "line": 18, + "column": 17 + }, + "end": { + "line": 18, + "column": 21 + } + }, + "name": "Link" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 394, + "end": 401, + "loc": { + "start": { + "line": 20, + "column": 16 + }, + "end": { + "line": 20, + "column": 23 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 396, + "end": 400, + "loc": { + "start": { + "line": 20, + "column": 18 + }, + "end": { + "line": 20, + "column": 22 + } + }, + "name": "Link" + } + }, + "children": [ + { + "type": "Literal", + "start": 330, + "end": 351, + "loc": { + "start": { + "line": 18, + "column": 31 + }, + "end": { + "line": 19, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 351, + "end": 377, + "loc": { + "start": { + "line": 19, + "column": 20 + }, + "end": { + "line": 19, + "column": 46 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 351, + "end": 377, + "loc": { + "start": { + "line": 19, + "column": 20 + }, + "end": { + "line": 19, + "column": 46 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 356, + "end": 375, + "loc": { + "start": { + "line": 19, + "column": 25 + }, + "end": { + "line": 19, + "column": 44 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 356, + "end": 359, + "loc": { + "start": { + "line": 19, + "column": 25 + }, + "end": { + "line": 19, + "column": 28 + } + }, + "name": "src" + }, + "value": { + "type": "Literal", + "start": 360, + "end": 375, + "loc": { + "start": { + "line": 19, + "column": 29 + }, + "end": { + "line": 19, + "column": 44 + } + }, + "value": "/img/logo.png", + "rawValue": null, + "raw": "\"/img/logo.png\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 352, + "end": 355, + "loc": { + "start": { + "line": 19, + "column": 21 + }, + "end": { + "line": 19, + "column": 24 + } + }, + "name": "img" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 377, + "end": 394, + "loc": { + "start": { + "line": 19, + "column": 46 + }, + "end": { + "line": 20, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 401, + "end": 414, + "loc": { + "start": { + "line": 20, + "column": 23 + }, + "end": { + "line": 21, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 178, + "end": 226, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 14, + "column": 7 + } + }, + "range": [ + 178, + 226 + ] + } + ] + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Left component\n ", + "start": 116, + "end": 141, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + }, + "range": [ + 116, + 141 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Right component\n ", + "start": 441, + "end": 467, + "loc": { + "start": { + "line": 27, + "column": 0 + }, + "end": { + "line": 29, + "column": 3 + } + }, + "range": [ + 441, + 467 + ] + } + ] + }, + { + "type": "ClassDeclaration", + "start": 468, + "end": 796, + "loc": { + "start": { + "line": 30, + "column": 0 + }, + "end": { + "line": 46, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 474, + "end": 479, + "loc": { + "start": { + "line": 30, + "column": 6 + }, + "end": { + "line": 30, + "column": 11 + } + }, + "name": "Right", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 488, + "end": 497, + "loc": { + "start": { + "line": 30, + "column": 20 + }, + "end": { + "line": 30, + "column": 29 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 498, + "end": 796, + "loc": { + "start": { + "line": 30, + "column": 30 + }, + "end": { + "line": 46, + "column": 1 + } + }, + "body": [ + { + "type": "MethodDefinition", + "start": 558, + "end": 793, + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 44, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 558, + "end": 564, + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 36, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 564, + "end": 793, + "loc": { + "start": { + "line": 36, + "column": 10 + }, + "end": { + "line": 44, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 567, + "end": 793, + "loc": { + "start": { + "line": 36, + "column": 13 + }, + "end": { + "line": 44, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 577, + "end": 787, + "loc": { + "start": { + "line": 37, + "column": 8 + }, + "end": { + "line": 43, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 598, + "end": 777, + "loc": { + "start": { + "line": 38, + "column": 12 + }, + "end": { + "line": 42, + "column": 18 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 598, + "end": 626, + "loc": { + "start": { + "line": 38, + "column": 12 + }, + "end": { + "line": 38, + "column": 40 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 603, + "end": 625, + "loc": { + "start": { + "line": 38, + "column": 17 + }, + "end": { + "line": 38, + "column": 39 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 603, + "end": 612, + "loc": { + "start": { + "line": 38, + "column": 17 + }, + "end": { + "line": 38, + "column": 26 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 613, + "end": 625, + "loc": { + "start": { + "line": 38, + "column": 27 + }, + "end": { + "line": 38, + "column": 39 + } + }, + "value": "item right", + "rawValue": null, + "raw": "\"item right\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 599, + "end": 602, + "loc": { + "start": { + "line": 38, + "column": 13 + }, + "end": { + "line": 38, + "column": 16 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 771, + "end": 777, + "loc": { + "start": { + "line": 42, + "column": 12 + }, + "end": { + "line": 42, + "column": 18 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 773, + "end": 776, + "loc": { + "start": { + "line": 42, + "column": 14 + }, + "end": { + "line": 42, + "column": 17 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 626, + "end": 643, + "loc": { + "start": { + "line": 38, + "column": 40 + }, + "end": { + "line": 39, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 643, + "end": 758, + "loc": { + "start": { + "line": 39, + "column": 16 + }, + "end": { + "line": 41, + "column": 23 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 643, + "end": 682, + "loc": { + "start": { + "line": 39, + "column": 16 + }, + "end": { + "line": 39, + "column": 55 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 649, + "end": 681, + "loc": { + "start": { + "line": 39, + "column": 22 + }, + "end": { + "line": 39, + "column": 54 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 649, + "end": 651, + "loc": { + "start": { + "line": 39, + "column": 22 + }, + "end": { + "line": 39, + "column": 24 + } + }, + "name": "to" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 652, + "end": 681, + "loc": { + "start": { + "line": 39, + "column": 25 + }, + "end": { + "line": 39, + "column": 54 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 653, + "end": 680, + "loc": { + "start": { + "line": 39, + "column": 26 + }, + "end": { + "line": 39, + "column": 53 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 665, + "end": 678, + "loc": { + "start": { + "line": 39, + "column": 38 + }, + "end": { + "line": 39, + "column": 51 + } + }, + "object": { + "type": "MemberExpression", + "start": 665, + "end": 675, + "loc": { + "start": { + "line": 39, + "column": 38 + }, + "end": { + "line": 39, + "column": 48 + } + }, + "object": { + "type": "ThisExpression", + "start": 665, + "end": 669, + "loc": { + "start": { + "line": 39, + "column": 38 + }, + "end": { + "line": 39, + "column": 42 + } + } + }, + "property": { + "type": "Identifier", + "start": 670, + "end": 675, + "loc": { + "start": { + "line": 39, + "column": 43 + }, + "end": { + "line": 39, + "column": 48 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 676, + "end": 678, + "loc": { + "start": { + "line": 39, + "column": 49 + }, + "end": { + "line": 39, + "column": 51 + } + }, + "name": "id" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 654, + "end": 663, + "loc": { + "start": { + "line": 39, + "column": 27 + }, + "end": { + "line": 39, + "column": 36 + } + }, + "value": { + "raw": "/profile/", + "cooked": "/profile/" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 679, + "end": 679, + "loc": { + "start": { + "line": 39, + "column": 52 + }, + "end": { + "line": 39, + "column": 52 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 644, + "end": 648, + "loc": { + "start": { + "line": 39, + "column": 17 + }, + "end": { + "line": 39, + "column": 21 + } + }, + "name": "Link" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 751, + "end": 758, + "loc": { + "start": { + "line": 41, + "column": 16 + }, + "end": { + "line": 41, + "column": 23 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 753, + "end": 757, + "loc": { + "start": { + "line": 41, + "column": 18 + }, + "end": { + "line": 41, + "column": 22 + } + }, + "name": "Link" + } + }, + "children": [ + { + "type": "Literal", + "start": 682, + "end": 703, + "loc": { + "start": { + "line": 39, + "column": 55 + }, + "end": { + "line": 40, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 703, + "end": 734, + "loc": { + "start": { + "line": 40, + "column": 20 + }, + "end": { + "line": 40, + "column": 51 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 703, + "end": 730, + "loc": { + "start": { + "line": 40, + "column": 20 + }, + "end": { + "line": 40, + "column": 47 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 706, + "end": 729, + "loc": { + "start": { + "line": 40, + "column": 23 + }, + "end": { + "line": 40, + "column": 46 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 706, + "end": 715, + "loc": { + "start": { + "line": 40, + "column": 23 + }, + "end": { + "line": 40, + "column": 32 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 716, + "end": 729, + "loc": { + "start": { + "line": 40, + "column": 33 + }, + "end": { + "line": 40, + "column": 46 + } + }, + "value": "ion-navicon", + "rawValue": null, + "raw": "\"ion-navicon\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 704, + "end": 705, + "loc": { + "start": { + "line": 40, + "column": 21 + }, + "end": { + "line": 40, + "column": 22 + } + }, + "name": "i" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 730, + "end": 734, + "loc": { + "start": { + "line": 40, + "column": 47 + }, + "end": { + "line": 40, + "column": 51 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 732, + "end": 733, + "loc": { + "start": { + "line": 40, + "column": 49 + }, + "end": { + "line": 40, + "column": 50 + } + }, + "name": "i" + } + }, + "children": [] + }, + { + "type": "Literal", + "start": 734, + "end": 751, + "loc": { + "start": { + "line": 40, + "column": 51 + }, + "end": { + "line": 41, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 758, + "end": 771, + "loc": { + "start": { + "line": 41, + "column": 23 + }, + "end": { + "line": 42, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 505, + "end": 553, + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 35, + "column": 7 + } + }, + "range": [ + 505, + 553 + ] + } + ] + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Right component\n ", + "start": 441, + "end": 467, + "loc": { + "start": { + "line": 27, + "column": 0 + }, + "end": { + "line": 29, + "column": 3 + } + }, + "range": [ + 441, + 467 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Header index component\n ", + "start": 798, + "end": 831, + "loc": { + "start": { + "line": 48, + "column": 0 + }, + "end": { + "line": 50, + "column": 3 + } + }, + "range": [ + 798, + 831 + ] + } + ] + }, + { + "type": "Identifier", + "start": 832, + "end": 1490, + "loc": { + "start": { + "line": 51, + "column": 0 + }, + "end": { + "line": 83, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 838, + "end": 844, + "loc": { + "start": { + "line": 51, + "column": 6 + }, + "end": { + "line": 51, + "column": 12 + } + }, + "name": "Header", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 853, + "end": 862, + "loc": { + "start": { + "line": 51, + "column": 21 + }, + "end": { + "line": 51, + "column": 30 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 863, + "end": 1490, + "loc": { + "start": { + "line": 51, + "column": 31 + }, + "end": { + "line": 83, + "column": 1 + } + }, + "body": [ + { + "type": "Identifier", + "start": 966, + "end": 1067, + "loc": { + "start": { + "line": 57, + "column": 4 + }, + "end": { + "line": 62, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 973, + "end": 985, + "loc": { + "start": { + "line": 57, + "column": 11 + }, + "end": { + "line": 57, + "column": 23 + } + }, + "name": "defaultProps" + }, + "static": true, + "value": { + "type": "ObjectExpression", + "start": 988, + "end": 1067, + "loc": { + "start": { + "line": 57, + "column": 26 + }, + "end": { + "line": 62, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 998, + "end": 1010, + "loc": { + "start": { + "line": 58, + "column": 8 + }, + "end": { + "line": 58, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 998, + "end": 1004, + "loc": { + "start": { + "line": 58, + "column": 8 + }, + "end": { + "line": 58, + "column": 14 + } + }, + "name": "userID" + }, + "value": { + "type": "Literal", + "start": 1006, + "end": 1010, + "loc": { + "start": { + "line": 58, + "column": 16 + }, + "end": { + "line": 58, + "column": 20 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1021, + "end": 1035, + "loc": { + "start": { + "line": 60, + "column": 8 + }, + "end": { + "line": 60, + "column": 22 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1021, + "end": 1025, + "loc": { + "start": { + "line": 60, + "column": 8 + }, + "end": { + "line": 60, + "column": 12 + } + }, + "name": "left" + }, + "value": { + "type": "JSXElement", + "start": 1027, + "end": 1035, + "loc": { + "start": { + "line": 60, + "column": 14 + }, + "end": { + "line": 60, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1027, + "end": 1035, + "loc": { + "start": { + "line": 60, + "column": 14 + }, + "end": { + "line": 60, + "column": 22 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 1028, + "end": 1032, + "loc": { + "start": { + "line": 60, + "column": 15 + }, + "end": { + "line": 60, + "column": 19 + } + }, + "name": "Left" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1045, + "end": 1060, + "loc": { + "start": { + "line": 61, + "column": 8 + }, + "end": { + "line": 61, + "column": 23 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1045, + "end": 1051, + "loc": { + "start": { + "line": 61, + "column": 8 + }, + "end": { + "line": 61, + "column": 14 + } + }, + "name": "middle" + }, + "value": { + "type": "JSXElement", + "start": 1053, + "end": 1060, + "loc": { + "start": { + "line": 61, + "column": 16 + }, + "end": { + "line": 61, + "column": 23 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1053, + "end": 1060, + "loc": { + "start": { + "line": 61, + "column": 16 + }, + "end": { + "line": 61, + "column": 23 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 1054, + "end": 1057, + "loc": { + "start": { + "line": 61, + "column": 17 + }, + "end": { + "line": 61, + "column": 20 + } + }, + "name": "Nav" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + "kind": "init" + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * defaultProps\n * @type {{userID: null, left: markup, middle: markup}}\n ", + "start": 870, + "end": 961, + "loc": { + "start": { + "line": 53, + "column": 4 + }, + "end": { + "line": 56, + "column": 7 + } + }, + "range": [ + 870, + 961 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 1073, + "end": 1121, + "loc": { + "start": { + "line": 64, + "column": 4 + }, + "end": { + "line": 67, + "column": 7 + } + }, + "range": [ + 1073, + 1121 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 1126, + "end": 1487, + "loc": { + "start": { + "line": 68, + "column": 4 + }, + "end": { + "line": 81, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 1126, + "end": 1132, + "loc": { + "start": { + "line": 68, + "column": 4 + }, + "end": { + "line": 68, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 1132, + "end": 1487, + "loc": { + "start": { + "line": 68, + "column": 10 + }, + "end": { + "line": 81, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 1135, + "end": 1487, + "loc": { + "start": { + "line": 68, + "column": 13 + }, + "end": { + "line": 81, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 1146, + "end": 1211, + "loc": { + "start": { + "line": 70, + "column": 8 + }, + "end": { + "line": 70, + "column": 73 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1152, + "end": 1211, + "loc": { + "start": { + "line": 70, + "column": 14 + }, + "end": { + "line": 70, + "column": 73 + } + }, + "id": { + "type": "Identifier", + "start": 1152, + "end": 1157, + "loc": { + "start": { + "line": 70, + "column": 14 + }, + "end": { + "line": 70, + "column": 19 + } + }, + "name": "right" + }, + "init": { + "type": "LogicalExpression", + "start": 1160, + "end": 1211, + "loc": { + "start": { + "line": 70, + "column": 22 + }, + "end": { + "line": 70, + "column": 73 + } + }, + "left": { + "type": "MemberExpression", + "start": 1160, + "end": 1176, + "loc": { + "start": { + "line": 70, + "column": 22 + }, + "end": { + "line": 70, + "column": 38 + } + }, + "object": { + "type": "MemberExpression", + "start": 1160, + "end": 1170, + "loc": { + "start": { + "line": 70, + "column": 22 + }, + "end": { + "line": 70, + "column": 32 + } + }, + "object": { + "type": "ThisExpression", + "start": 1160, + "end": 1164, + "loc": { + "start": { + "line": 70, + "column": 22 + }, + "end": { + "line": 70, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "start": 1165, + "end": 1170, + "loc": { + "start": { + "line": 70, + "column": 27 + }, + "end": { + "line": 70, + "column": 32 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1171, + "end": 1176, + "loc": { + "start": { + "line": 70, + "column": 33 + }, + "end": { + "line": 70, + "column": 38 + } + }, + "name": "right" + }, + "computed": false + }, + "operator": "||", + "right": { + "type": "JSXElement", + "start": 1180, + "end": 1211, + "loc": { + "start": { + "line": 70, + "column": 42 + }, + "end": { + "line": 70, + "column": 73 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1180, + "end": 1211, + "loc": { + "start": { + "line": 70, + "column": 42 + }, + "end": { + "line": 70, + "column": 73 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1187, + "end": 1209, + "loc": { + "start": { + "line": 70, + "column": 49 + }, + "end": { + "line": 70, + "column": 71 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1187, + "end": 1189, + "loc": { + "start": { + "line": 70, + "column": 49 + }, + "end": { + "line": 70, + "column": 51 + } + }, + "name": "id" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 1190, + "end": 1209, + "loc": { + "start": { + "line": 70, + "column": 52 + }, + "end": { + "line": 70, + "column": 71 + } + }, + "expression": { + "type": "MemberExpression", + "start": 1191, + "end": 1208, + "loc": { + "start": { + "line": 70, + "column": 53 + }, + "end": { + "line": 70, + "column": 70 + } + }, + "object": { + "type": "MemberExpression", + "start": 1191, + "end": 1201, + "loc": { + "start": { + "line": 70, + "column": 53 + }, + "end": { + "line": 70, + "column": 63 + } + }, + "object": { + "type": "ThisExpression", + "start": 1191, + "end": 1195, + "loc": { + "start": { + "line": 70, + "column": 53 + }, + "end": { + "line": 70, + "column": 57 + } + } + }, + "property": { + "type": "Identifier", + "start": 1196, + "end": 1201, + "loc": { + "start": { + "line": 70, + "column": 58 + }, + "end": { + "line": 70, + "column": 63 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1202, + "end": 1208, + "loc": { + "start": { + "line": 70, + "column": 64 + }, + "end": { + "line": 70, + "column": 70 + } + }, + "name": "userID" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1181, + "end": 1186, + "loc": { + "start": { + "line": 70, + "column": 43 + }, + "end": { + "line": 70, + "column": 48 + } + }, + "name": "Right" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + } + } + ], + "kind": "const" + }, + { + "type": "VariableDeclaration", + "start": 1220, + "end": 1260, + "loc": { + "start": { + "line": 71, + "column": 8 + }, + "end": { + "line": 71, + "column": 48 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1226, + "end": 1260, + "loc": { + "start": { + "line": 71, + "column": 14 + }, + "end": { + "line": 71, + "column": 48 + } + }, + "id": { + "type": "Identifier", + "start": 1226, + "end": 1230, + "loc": { + "start": { + "line": 71, + "column": 14 + }, + "end": { + "line": 71, + "column": 18 + } + }, + "name": "left" + }, + "init": { + "type": "LogicalExpression", + "start": 1233, + "end": 1260, + "loc": { + "start": { + "line": 71, + "column": 21 + }, + "end": { + "line": 71, + "column": 48 + } + }, + "left": { + "type": "MemberExpression", + "start": 1233, + "end": 1248, + "loc": { + "start": { + "line": 71, + "column": 21 + }, + "end": { + "line": 71, + "column": 36 + } + }, + "object": { + "type": "MemberExpression", + "start": 1233, + "end": 1243, + "loc": { + "start": { + "line": 71, + "column": 21 + }, + "end": { + "line": 71, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 1233, + "end": 1237, + "loc": { + "start": { + "line": 71, + "column": 21 + }, + "end": { + "line": 71, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "start": 1238, + "end": 1243, + "loc": { + "start": { + "line": 71, + "column": 26 + }, + "end": { + "line": 71, + "column": 31 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1244, + "end": 1248, + "loc": { + "start": { + "line": 71, + "column": 32 + }, + "end": { + "line": 71, + "column": 36 + } + }, + "name": "left" + }, + "computed": false + }, + "operator": "||", + "right": { + "type": "JSXElement", + "start": 1252, + "end": 1260, + "loc": { + "start": { + "line": 71, + "column": 40 + }, + "end": { + "line": 71, + "column": 48 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1252, + "end": 1260, + "loc": { + "start": { + "line": 71, + "column": 40 + }, + "end": { + "line": 71, + "column": 48 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 1253, + "end": 1257, + "loc": { + "start": { + "line": 71, + "column": 41 + }, + "end": { + "line": 71, + "column": 45 + } + }, + "name": "Left" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + } + } + ], + "kind": "const" + }, + { + "type": "VariableDeclaration", + "start": 1269, + "end": 1312, + "loc": { + "start": { + "line": 72, + "column": 8 + }, + "end": { + "line": 72, + "column": 51 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1275, + "end": 1312, + "loc": { + "start": { + "line": 72, + "column": 14 + }, + "end": { + "line": 72, + "column": 51 + } + }, + "id": { + "type": "Identifier", + "start": 1275, + "end": 1281, + "loc": { + "start": { + "line": 72, + "column": 14 + }, + "end": { + "line": 72, + "column": 20 + } + }, + "name": "middle" + }, + "init": { + "type": "LogicalExpression", + "start": 1284, + "end": 1312, + "loc": { + "start": { + "line": 72, + "column": 23 + }, + "end": { + "line": 72, + "column": 51 + } + }, + "left": { + "type": "MemberExpression", + "start": 1284, + "end": 1301, + "loc": { + "start": { + "line": 72, + "column": 23 + }, + "end": { + "line": 72, + "column": 40 + } + }, + "object": { + "type": "MemberExpression", + "start": 1284, + "end": 1294, + "loc": { + "start": { + "line": 72, + "column": 23 + }, + "end": { + "line": 72, + "column": 33 + } + }, + "object": { + "type": "ThisExpression", + "start": 1284, + "end": 1288, + "loc": { + "start": { + "line": 72, + "column": 23 + }, + "end": { + "line": 72, + "column": 27 + } + } + }, + "property": { + "type": "Identifier", + "start": 1289, + "end": 1294, + "loc": { + "start": { + "line": 72, + "column": 28 + }, + "end": { + "line": 72, + "column": 33 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1295, + "end": 1301, + "loc": { + "start": { + "line": 72, + "column": 34 + }, + "end": { + "line": 72, + "column": 40 + } + }, + "name": "middle" + }, + "computed": false + }, + "operator": "||", + "right": { + "type": "JSXElement", + "start": 1305, + "end": 1312, + "loc": { + "start": { + "line": 72, + "column": 44 + }, + "end": { + "line": 72, + "column": 51 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1305, + "end": 1312, + "loc": { + "start": { + "line": 72, + "column": 44 + }, + "end": { + "line": 72, + "column": 51 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 1306, + "end": 1309, + "loc": { + "start": { + "line": 72, + "column": 45 + }, + "end": { + "line": 72, + "column": 48 + } + }, + "name": "Nav" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + } + } + ], + "kind": "const" + }, + { + "type": "ReturnStatement", + "start": 1322, + "end": 1481, + "loc": { + "start": { + "line": 74, + "column": 8 + }, + "end": { + "line": 80, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 1343, + "end": 1471, + "loc": { + "start": { + "line": 75, + "column": 12 + }, + "end": { + "line": 79, + "column": 21 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1343, + "end": 1377, + "loc": { + "start": { + "line": 75, + "column": 12 + }, + "end": { + "line": 75, + "column": 46 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1351, + "end": 1376, + "loc": { + "start": { + "line": 75, + "column": 20 + }, + "end": { + "line": 75, + "column": 45 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1351, + "end": 1360, + "loc": { + "start": { + "line": 75, + "column": 20 + }, + "end": { + "line": 75, + "column": 29 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 1361, + "end": 1376, + "loc": { + "start": { + "line": 75, + "column": 30 + }, + "end": { + "line": 75, + "column": 45 + } + }, + "value": "container top", + "rawValue": null, + "raw": "\"container top\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1344, + "end": 1350, + "loc": { + "start": { + "line": 75, + "column": 13 + }, + "end": { + "line": 75, + "column": 19 + } + }, + "name": "header" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1462, + "end": 1471, + "loc": { + "start": { + "line": 79, + "column": 12 + }, + "end": { + "line": 79, + "column": 21 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1464, + "end": 1470, + "loc": { + "start": { + "line": 79, + "column": 14 + }, + "end": { + "line": 79, + "column": 20 + } + }, + "name": "header" + } + }, + "children": [ + { + "type": "Literal", + "start": 1377, + "end": 1394, + "loc": { + "start": { + "line": 75, + "column": 46 + }, + "end": { + "line": 76, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 1394, + "end": 1400, + "loc": { + "start": { + "line": 76, + "column": 16 + }, + "end": { + "line": 76, + "column": 22 + } + }, + "expression": { + "type": "Identifier", + "start": 1395, + "end": 1399, + "loc": { + "start": { + "line": 76, + "column": 17 + }, + "end": { + "line": 76, + "column": 21 + } + }, + "name": "left" + } + }, + { + "type": "Literal", + "start": 1400, + "end": 1417, + "loc": { + "start": { + "line": 76, + "column": 22 + }, + "end": { + "line": 77, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 1417, + "end": 1425, + "loc": { + "start": { + "line": 77, + "column": 16 + }, + "end": { + "line": 77, + "column": 24 + } + }, + "expression": { + "type": "Identifier", + "start": 1418, + "end": 1424, + "loc": { + "start": { + "line": 77, + "column": 17 + }, + "end": { + "line": 77, + "column": 23 + } + }, + "name": "middle" + } + }, + { + "type": "Literal", + "start": 1425, + "end": 1442, + "loc": { + "start": { + "line": 77, + "column": 24 + }, + "end": { + "line": 78, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 1442, + "end": 1449, + "loc": { + "start": { + "line": 78, + "column": 16 + }, + "end": { + "line": 78, + "column": 23 + } + }, + "expression": { + "type": "Identifier", + "start": 1443, + "end": 1448, + "loc": { + "start": { + "line": 78, + "column": 17 + }, + "end": { + "line": 78, + "column": 22 + } + }, + "name": "right" + } + }, + { + "type": "Literal", + "start": 1449, + "end": 1462, + "loc": { + "start": { + "line": 78, + "column": 23 + }, + "end": { + "line": 79, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 1073, + "end": 1121, + "loc": { + "start": { + "line": 64, + "column": 4 + }, + "end": { + "line": 67, + "column": 7 + } + }, + "range": [ + 1073, + 1121 + ] + } + ] + } + ] + }, + "leadingComments": [], + "name": "_", + "trailingComments": [] + }, + { + "type": "Identifier", + "start": 1492, + "end": 1513, + "loc": { + "start": { + "line": 85, + "column": 0 + }, + "end": { + "line": 85, + "column": 21 + } + }, + "declaration": { + "type": "Identifier", + "start": 1507, + "end": 1513, + "loc": { + "start": { + "line": 85, + "column": 15 + }, + "end": { + "line": 85, + "column": 21 + } + }, + "name": "Header" + }, + "name": "_", + "leadingComments": [], + "trailingComments": [] + }, + { + "type": "ExportDefaultDeclaration", + "start": 1492, + "end": 1513, + "loc": { + "start": { + "line": 85, + "column": 0 + }, + "end": { + "line": 85, + "column": 21 + } + }, + "declaration": { + "type": "ClassDeclaration", + "start": 832, + "end": 1490, + "loc": { + "start": { + "line": 51, + "column": 0 + }, + "end": { + "line": 83, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 838, + "end": 844, + "loc": { + "start": { + "line": 51, + "column": 6 + }, + "end": { + "line": 51, + "column": 12 + } + }, + "name": "Header", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 853, + "end": 862, + "loc": { + "start": { + "line": 51, + "column": 21 + }, + "end": { + "line": 51, + "column": 30 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 863, + "end": 1490, + "loc": { + "start": { + "line": 51, + "column": 31 + }, + "end": { + "line": 83, + "column": 1 + } + }, + "body": [ + { + "type": "Identifier", + "start": 966, + "end": 1067, + "loc": { + "start": { + "line": 57, + "column": 4 + }, + "end": { + "line": 62, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 973, + "end": 985, + "loc": { + "start": { + "line": 57, + "column": 11 + }, + "end": { + "line": 57, + "column": 23 + } + }, + "name": "defaultProps" + }, + "static": true, + "value": { + "type": "ObjectExpression", + "start": 988, + "end": 1067, + "loc": { + "start": { + "line": 57, + "column": 26 + }, + "end": { + "line": 62, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 998, + "end": 1010, + "loc": { + "start": { + "line": 58, + "column": 8 + }, + "end": { + "line": 58, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 998, + "end": 1004, + "loc": { + "start": { + "line": 58, + "column": 8 + }, + "end": { + "line": 58, + "column": 14 + } + }, + "name": "userID" + }, + "value": { + "type": "Literal", + "start": 1006, + "end": 1010, + "loc": { + "start": { + "line": 58, + "column": 16 + }, + "end": { + "line": 58, + "column": 20 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1021, + "end": 1035, + "loc": { + "start": { + "line": 60, + "column": 8 + }, + "end": { + "line": 60, + "column": 22 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1021, + "end": 1025, + "loc": { + "start": { + "line": 60, + "column": 8 + }, + "end": { + "line": 60, + "column": 12 + } + }, + "name": "left" + }, + "value": { + "type": "JSXElement", + "start": 1027, + "end": 1035, + "loc": { + "start": { + "line": 60, + "column": 14 + }, + "end": { + "line": 60, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1027, + "end": 1035, + "loc": { + "start": { + "line": 60, + "column": 14 + }, + "end": { + "line": 60, + "column": 22 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 1028, + "end": 1032, + "loc": { + "start": { + "line": 60, + "column": 15 + }, + "end": { + "line": 60, + "column": 19 + } + }, + "name": "Left" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1045, + "end": 1060, + "loc": { + "start": { + "line": 61, + "column": 8 + }, + "end": { + "line": 61, + "column": 23 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1045, + "end": 1051, + "loc": { + "start": { + "line": 61, + "column": 8 + }, + "end": { + "line": 61, + "column": 14 + } + }, + "name": "middle" + }, + "value": { + "type": "JSXElement", + "start": 1053, + "end": 1060, + "loc": { + "start": { + "line": 61, + "column": 16 + }, + "end": { + "line": 61, + "column": 23 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1053, + "end": 1060, + "loc": { + "start": { + "line": 61, + "column": 16 + }, + "end": { + "line": 61, + "column": 23 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 1054, + "end": 1057, + "loc": { + "start": { + "line": 61, + "column": 17 + }, + "end": { + "line": 61, + "column": 20 + } + }, + "name": "Nav" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + "kind": "init" + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * defaultProps\n * @type {{userID: null, left: markup, middle: markup}}\n ", + "start": 870, + "end": 961, + "loc": { + "start": { + "line": 53, + "column": 4 + }, + "end": { + "line": 56, + "column": 7 + } + }, + "range": [ + 870, + 961 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 1073, + "end": 1121, + "loc": { + "start": { + "line": 64, + "column": 4 + }, + "end": { + "line": 67, + "column": 7 + } + }, + "range": [ + 1073, + 1121 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 1126, + "end": 1487, + "loc": { + "start": { + "line": 68, + "column": 4 + }, + "end": { + "line": 81, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 1126, + "end": 1132, + "loc": { + "start": { + "line": 68, + "column": 4 + }, + "end": { + "line": 68, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 1132, + "end": 1487, + "loc": { + "start": { + "line": 68, + "column": 10 + }, + "end": { + "line": 81, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 1135, + "end": 1487, + "loc": { + "start": { + "line": 68, + "column": 13 + }, + "end": { + "line": 81, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 1146, + "end": 1211, + "loc": { + "start": { + "line": 70, + "column": 8 + }, + "end": { + "line": 70, + "column": 73 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1152, + "end": 1211, + "loc": { + "start": { + "line": 70, + "column": 14 + }, + "end": { + "line": 70, + "column": 73 + } + }, + "id": { + "type": "Identifier", + "start": 1152, + "end": 1157, + "loc": { + "start": { + "line": 70, + "column": 14 + }, + "end": { + "line": 70, + "column": 19 + } + }, + "name": "right" + }, + "init": { + "type": "LogicalExpression", + "start": 1160, + "end": 1211, + "loc": { + "start": { + "line": 70, + "column": 22 + }, + "end": { + "line": 70, + "column": 73 + } + }, + "left": { + "type": "MemberExpression", + "start": 1160, + "end": 1176, + "loc": { + "start": { + "line": 70, + "column": 22 + }, + "end": { + "line": 70, + "column": 38 + } + }, + "object": { + "type": "MemberExpression", + "start": 1160, + "end": 1170, + "loc": { + "start": { + "line": 70, + "column": 22 + }, + "end": { + "line": 70, + "column": 32 + } + }, + "object": { + "type": "ThisExpression", + "start": 1160, + "end": 1164, + "loc": { + "start": { + "line": 70, + "column": 22 + }, + "end": { + "line": 70, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "start": 1165, + "end": 1170, + "loc": { + "start": { + "line": 70, + "column": 27 + }, + "end": { + "line": 70, + "column": 32 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1171, + "end": 1176, + "loc": { + "start": { + "line": 70, + "column": 33 + }, + "end": { + "line": 70, + "column": 38 + } + }, + "name": "right" + }, + "computed": false + }, + "operator": "||", + "right": { + "type": "JSXElement", + "start": 1180, + "end": 1211, + "loc": { + "start": { + "line": 70, + "column": 42 + }, + "end": { + "line": 70, + "column": 73 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1180, + "end": 1211, + "loc": { + "start": { + "line": 70, + "column": 42 + }, + "end": { + "line": 70, + "column": 73 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1187, + "end": 1209, + "loc": { + "start": { + "line": 70, + "column": 49 + }, + "end": { + "line": 70, + "column": 71 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1187, + "end": 1189, + "loc": { + "start": { + "line": 70, + "column": 49 + }, + "end": { + "line": 70, + "column": 51 + } + }, + "name": "id" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 1190, + "end": 1209, + "loc": { + "start": { + "line": 70, + "column": 52 + }, + "end": { + "line": 70, + "column": 71 + } + }, + "expression": { + "type": "MemberExpression", + "start": 1191, + "end": 1208, + "loc": { + "start": { + "line": 70, + "column": 53 + }, + "end": { + "line": 70, + "column": 70 + } + }, + "object": { + "type": "MemberExpression", + "start": 1191, + "end": 1201, + "loc": { + "start": { + "line": 70, + "column": 53 + }, + "end": { + "line": 70, + "column": 63 + } + }, + "object": { + "type": "ThisExpression", + "start": 1191, + "end": 1195, + "loc": { + "start": { + "line": 70, + "column": 53 + }, + "end": { + "line": 70, + "column": 57 + } + } + }, + "property": { + "type": "Identifier", + "start": 1196, + "end": 1201, + "loc": { + "start": { + "line": 70, + "column": 58 + }, + "end": { + "line": 70, + "column": 63 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1202, + "end": 1208, + "loc": { + "start": { + "line": 70, + "column": 64 + }, + "end": { + "line": 70, + "column": 70 + } + }, + "name": "userID" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1181, + "end": 1186, + "loc": { + "start": { + "line": 70, + "column": 43 + }, + "end": { + "line": 70, + "column": 48 + } + }, + "name": "Right" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + } + } + ], + "kind": "const" + }, + { + "type": "VariableDeclaration", + "start": 1220, + "end": 1260, + "loc": { + "start": { + "line": 71, + "column": 8 + }, + "end": { + "line": 71, + "column": 48 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1226, + "end": 1260, + "loc": { + "start": { + "line": 71, + "column": 14 + }, + "end": { + "line": 71, + "column": 48 + } + }, + "id": { + "type": "Identifier", + "start": 1226, + "end": 1230, + "loc": { + "start": { + "line": 71, + "column": 14 + }, + "end": { + "line": 71, + "column": 18 + } + }, + "name": "left" + }, + "init": { + "type": "LogicalExpression", + "start": 1233, + "end": 1260, + "loc": { + "start": { + "line": 71, + "column": 21 + }, + "end": { + "line": 71, + "column": 48 + } + }, + "left": { + "type": "MemberExpression", + "start": 1233, + "end": 1248, + "loc": { + "start": { + "line": 71, + "column": 21 + }, + "end": { + "line": 71, + "column": 36 + } + }, + "object": { + "type": "MemberExpression", + "start": 1233, + "end": 1243, + "loc": { + "start": { + "line": 71, + "column": 21 + }, + "end": { + "line": 71, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 1233, + "end": 1237, + "loc": { + "start": { + "line": 71, + "column": 21 + }, + "end": { + "line": 71, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "start": 1238, + "end": 1243, + "loc": { + "start": { + "line": 71, + "column": 26 + }, + "end": { + "line": 71, + "column": 31 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1244, + "end": 1248, + "loc": { + "start": { + "line": 71, + "column": 32 + }, + "end": { + "line": 71, + "column": 36 + } + }, + "name": "left" + }, + "computed": false + }, + "operator": "||", + "right": { + "type": "JSXElement", + "start": 1252, + "end": 1260, + "loc": { + "start": { + "line": 71, + "column": 40 + }, + "end": { + "line": 71, + "column": 48 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1252, + "end": 1260, + "loc": { + "start": { + "line": 71, + "column": 40 + }, + "end": { + "line": 71, + "column": 48 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 1253, + "end": 1257, + "loc": { + "start": { + "line": 71, + "column": 41 + }, + "end": { + "line": 71, + "column": 45 + } + }, + "name": "Left" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + } + } + ], + "kind": "const" + }, + { + "type": "VariableDeclaration", + "start": 1269, + "end": 1312, + "loc": { + "start": { + "line": 72, + "column": 8 + }, + "end": { + "line": 72, + "column": 51 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1275, + "end": 1312, + "loc": { + "start": { + "line": 72, + "column": 14 + }, + "end": { + "line": 72, + "column": 51 + } + }, + "id": { + "type": "Identifier", + "start": 1275, + "end": 1281, + "loc": { + "start": { + "line": 72, + "column": 14 + }, + "end": { + "line": 72, + "column": 20 + } + }, + "name": "middle" + }, + "init": { + "type": "LogicalExpression", + "start": 1284, + "end": 1312, + "loc": { + "start": { + "line": 72, + "column": 23 + }, + "end": { + "line": 72, + "column": 51 + } + }, + "left": { + "type": "MemberExpression", + "start": 1284, + "end": 1301, + "loc": { + "start": { + "line": 72, + "column": 23 + }, + "end": { + "line": 72, + "column": 40 + } + }, + "object": { + "type": "MemberExpression", + "start": 1284, + "end": 1294, + "loc": { + "start": { + "line": 72, + "column": 23 + }, + "end": { + "line": 72, + "column": 33 + } + }, + "object": { + "type": "ThisExpression", + "start": 1284, + "end": 1288, + "loc": { + "start": { + "line": 72, + "column": 23 + }, + "end": { + "line": 72, + "column": 27 + } + } + }, + "property": { + "type": "Identifier", + "start": 1289, + "end": 1294, + "loc": { + "start": { + "line": 72, + "column": 28 + }, + "end": { + "line": 72, + "column": 33 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1295, + "end": 1301, + "loc": { + "start": { + "line": 72, + "column": 34 + }, + "end": { + "line": 72, + "column": 40 + } + }, + "name": "middle" + }, + "computed": false + }, + "operator": "||", + "right": { + "type": "JSXElement", + "start": 1305, + "end": 1312, + "loc": { + "start": { + "line": 72, + "column": 44 + }, + "end": { + "line": 72, + "column": 51 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1305, + "end": 1312, + "loc": { + "start": { + "line": 72, + "column": 44 + }, + "end": { + "line": 72, + "column": 51 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 1306, + "end": 1309, + "loc": { + "start": { + "line": 72, + "column": 45 + }, + "end": { + "line": 72, + "column": 48 + } + }, + "name": "Nav" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + } + } + ], + "kind": "const" + }, + { + "type": "ReturnStatement", + "start": 1322, + "end": 1481, + "loc": { + "start": { + "line": 74, + "column": 8 + }, + "end": { + "line": 80, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 1343, + "end": 1471, + "loc": { + "start": { + "line": 75, + "column": 12 + }, + "end": { + "line": 79, + "column": 21 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1343, + "end": 1377, + "loc": { + "start": { + "line": 75, + "column": 12 + }, + "end": { + "line": 75, + "column": 46 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1351, + "end": 1376, + "loc": { + "start": { + "line": 75, + "column": 20 + }, + "end": { + "line": 75, + "column": 45 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1351, + "end": 1360, + "loc": { + "start": { + "line": 75, + "column": 20 + }, + "end": { + "line": 75, + "column": 29 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 1361, + "end": 1376, + "loc": { + "start": { + "line": 75, + "column": 30 + }, + "end": { + "line": 75, + "column": 45 + } + }, + "value": "container top", + "rawValue": null, + "raw": "\"container top\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1344, + "end": 1350, + "loc": { + "start": { + "line": 75, + "column": 13 + }, + "end": { + "line": 75, + "column": 19 + } + }, + "name": "header" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1462, + "end": 1471, + "loc": { + "start": { + "line": 79, + "column": 12 + }, + "end": { + "line": 79, + "column": 21 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1464, + "end": 1470, + "loc": { + "start": { + "line": 79, + "column": 14 + }, + "end": { + "line": 79, + "column": 20 + } + }, + "name": "header" + } + }, + "children": [ + { + "type": "Literal", + "start": 1377, + "end": 1394, + "loc": { + "start": { + "line": 75, + "column": 46 + }, + "end": { + "line": 76, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 1394, + "end": 1400, + "loc": { + "start": { + "line": 76, + "column": 16 + }, + "end": { + "line": 76, + "column": 22 + } + }, + "expression": { + "type": "Identifier", + "start": 1395, + "end": 1399, + "loc": { + "start": { + "line": 76, + "column": 17 + }, + "end": { + "line": 76, + "column": 21 + } + }, + "name": "left" + } + }, + { + "type": "Literal", + "start": 1400, + "end": 1417, + "loc": { + "start": { + "line": 76, + "column": 22 + }, + "end": { + "line": 77, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 1417, + "end": 1425, + "loc": { + "start": { + "line": 77, + "column": 16 + }, + "end": { + "line": 77, + "column": 24 + } + }, + "expression": { + "type": "Identifier", + "start": 1418, + "end": 1424, + "loc": { + "start": { + "line": 77, + "column": 17 + }, + "end": { + "line": 77, + "column": 23 + } + }, + "name": "middle" + } + }, + { + "type": "Literal", + "start": 1425, + "end": 1442, + "loc": { + "start": { + "line": 77, + "column": 24 + }, + "end": { + "line": 78, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 1442, + "end": 1449, + "loc": { + "start": { + "line": 78, + "column": 16 + }, + "end": { + "line": 78, + "column": 23 + } + }, + "expression": { + "type": "Identifier", + "start": 1443, + "end": 1448, + "loc": { + "start": { + "line": 78, + "column": 17 + }, + "end": { + "line": 78, + "column": 22 + } + }, + "name": "right" + } + }, + { + "type": "Literal", + "start": 1449, + "end": 1462, + "loc": { + "start": { + "line": 78, + "column": 23 + }, + "end": { + "line": 79, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 1073, + "end": 1121, + "loc": { + "start": { + "line": 64, + "column": 4 + }, + "end": { + "line": 67, + "column": 7 + } + }, + "range": [ + 1073, + 1121 + ] + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Header index component\n ", + "start": 798, + "end": 831, + "loc": { + "start": { + "line": 48, + "column": 0 + }, + "end": { + "line": 50, + "column": 3 + } + }, + "range": [ + 798, + 831 + ] + } + ], + "__esdoc__pseudo_export": false, + "trailingComments": [] + }, + "leadingComments": null + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/components/LikeButton/index.js.json b/app/docs/ast/source/components/LikeButton/index.js.json new file mode 100644 index 0000000..d46d983 --- /dev/null +++ b/app/docs/ast/source/components/LikeButton/index.js.json @@ -0,0 +1,4757 @@ +{ + "type": "Program", + "start": 0, + "end": 1122, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 54, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + }, + { + "type": "ImportSpecifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "imported": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + }, + "local": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 33, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 33 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ImportDeclaration", + "start": 41, + "end": 78, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 37 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 50, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "imported": { + "type": "Identifier", + "start": 50, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "name": "connect" + }, + "local": { + "type": "Identifier", + "start": 50, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "name": "connect" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 65, + "end": 78, + "loc": { + "start": { + "line": 2, + "column": 24 + }, + "end": { + "line": 2, + "column": 37 + } + }, + "value": "react-redux", + "rawValue": "react-redux", + "raw": "'react-redux'" + } + }, + { + "type": "ImportDeclaration", + "start": 79, + "end": 122, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 43 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 88, + "end": 97, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 18 + } + }, + "imported": { + "type": "Identifier", + "start": 88, + "end": 97, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 18 + } + }, + "name": "likePhoto" + }, + "local": { + "type": "Identifier", + "start": 88, + "end": 97, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 18 + } + }, + "name": "likePhoto" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 105, + "end": 122, + "loc": { + "start": { + "line": 3, + "column": 26 + }, + "end": { + "line": 3, + "column": 43 + } + }, + "value": "utils/analytics", + "rawValue": "utils/analytics", + "raw": "'utils/analytics'" + } + }, + { + "type": "ImportDeclaration", + "start": 124, + "end": 174, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 7, + "column": 16 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 137, + "end": 156, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 6, + "column": 23 + } + }, + "imported": { + "type": "Identifier", + "start": 137, + "end": 141, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 6, + "column": 8 + } + }, + "name": "User" + }, + "local": { + "type": "Identifier", + "start": 145, + "end": 156, + "loc": { + "start": { + "line": 6, + "column": 12 + }, + "end": { + "line": 6, + "column": 23 + } + }, + "name": "UserActions" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 165, + "end": 174, + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 16 + } + }, + "value": "actions", + "rawValue": "actions", + "raw": "'actions'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * LikeButton index component\n ", + "start": 176, + "end": 213, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + }, + "range": [ + 176, + 213 + ] + } + ] + }, + { + "type": "Identifier", + "start": 214, + "end": 1020, + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 47, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 220, + "end": 230, + "loc": { + "start": { + "line": 12, + "column": 6 + }, + "end": { + "line": 12, + "column": 16 + } + }, + "name": "LikeButton", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 239, + "end": 248, + "loc": { + "start": { + "line": 12, + "column": 25 + }, + "end": { + "line": 12, + "column": 34 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 249, + "end": 1020, + "loc": { + "start": { + "line": 12, + "column": 35 + }, + "end": { + "line": 47, + "column": 1 + } + }, + "body": [ + { + "type": "Identifier", + "start": 360, + "end": 440, + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 22, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 367, + "end": 379, + "loc": { + "start": { + "line": 18, + "column": 11 + }, + "end": { + "line": 18, + "column": 23 + } + }, + "name": "defaultProps" + }, + "static": true, + "value": { + "type": "ObjectExpression", + "start": 382, + "end": 440, + "loc": { + "start": { + "line": 18, + "column": 26 + }, + "end": { + "line": 22, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 392, + "end": 398, + "loc": { + "start": { + "line": 19, + "column": 8 + }, + "end": { + "line": 19, + "column": 14 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 392, + "end": 394, + "loc": { + "start": { + "line": 19, + "column": 8 + }, + "end": { + "line": 19, + "column": 10 + } + }, + "name": "id" + }, + "value": { + "type": "Literal", + "start": 396, + "end": 398, + "loc": { + "start": { + "line": 19, + "column": 12 + }, + "end": { + "line": 19, + "column": 14 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 408, + "end": 433, + "loc": { + "start": { + "line": 20, + "column": 8 + }, + "end": { + "line": 21, + "column": 9 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 408, + "end": 414, + "loc": { + "start": { + "line": 20, + "column": 8 + }, + "end": { + "line": 20, + "column": 14 + } + }, + "name": "onLike" + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 416, + "end": 433, + "loc": { + "start": { + "line": 20, + "column": 16 + }, + "end": { + "line": 21, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 422, + "end": 433, + "loc": { + "start": { + "line": 20, + "column": 22 + }, + "end": { + "line": 21, + "column": 9 + } + }, + "body": [] + } + }, + "kind": "init" + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * defaultProps\n * @type {{id: string, onLike: LikeButton.defaultProps.onLike}}\n ", + "start": 256, + "end": 355, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 17, + "column": 7 + } + }, + "range": [ + 256, + 355 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * handleClick\n * @param e event\n ", + "start": 446, + "end": 498, + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 27, + "column": 7 + } + }, + "range": [ + 446, + 498 + ] + } + ] + }, + { + "type": "Identifier", + "start": 503, + "end": 704, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 503, + "end": 514, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 15 + } + }, + "name": "handleClick", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ArrowFunctionExpression", + "start": 517, + "end": 704, + "loc": { + "start": { + "line": 28, + "column": 18 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 518, + "end": 519, + "loc": { + "start": { + "line": 28, + "column": 19 + }, + "end": { + "line": 28, + "column": 20 + } + }, + "name": "e" + } + ], + "body": { + "type": "BlockStatement", + "start": 524, + "end": 704, + "loc": { + "start": { + "line": 28, + "column": 25 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 534, + "end": 598, + "loc": { + "start": { + "line": 29, + "column": 8 + }, + "end": { + "line": 29, + "column": 72 + } + }, + "expression": { + "type": "CallExpression", + "start": 534, + "end": 598, + "loc": { + "start": { + "line": 29, + "column": 8 + }, + "end": { + "line": 29, + "column": 72 + } + }, + "callee": { + "type": "MemberExpression", + "start": 534, + "end": 551, + "loc": { + "start": { + "line": 29, + "column": 8 + }, + "end": { + "line": 29, + "column": 25 + } + }, + "object": { + "type": "MemberExpression", + "start": 534, + "end": 544, + "loc": { + "start": { + "line": 29, + "column": 8 + }, + "end": { + "line": 29, + "column": 18 + } + }, + "object": { + "type": "ThisExpression", + "start": 534, + "end": 538, + "loc": { + "start": { + "line": 29, + "column": 8 + }, + "end": { + "line": 29, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 539, + "end": 544, + "loc": { + "start": { + "line": 29, + "column": 13 + }, + "end": { + "line": 29, + "column": 18 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 545, + "end": 551, + "loc": { + "start": { + "line": 29, + "column": 19 + }, + "end": { + "line": 29, + "column": 25 + } + }, + "name": "onLike" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 552, + "end": 597, + "loc": { + "start": { + "line": 29, + "column": 26 + }, + "end": { + "line": 29, + "column": 71 + } + }, + "properties": [ + { + "type": "Property", + "start": 553, + "end": 570, + "loc": { + "start": { + "line": 29, + "column": 27 + }, + "end": { + "line": 29, + "column": 44 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 553, + "end": 555, + "loc": { + "start": { + "line": 29, + "column": 27 + }, + "end": { + "line": 29, + "column": 29 + } + }, + "name": "id" + }, + "value": { + "type": "MemberExpression", + "start": 557, + "end": 570, + "loc": { + "start": { + "line": 29, + "column": 31 + }, + "end": { + "line": 29, + "column": 44 + } + }, + "object": { + "type": "MemberExpression", + "start": 557, + "end": 567, + "loc": { + "start": { + "line": 29, + "column": 31 + }, + "end": { + "line": 29, + "column": 41 + } + }, + "object": { + "type": "ThisExpression", + "start": 557, + "end": 561, + "loc": { + "start": { + "line": 29, + "column": 31 + }, + "end": { + "line": 29, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "start": 562, + "end": 567, + "loc": { + "start": { + "line": 29, + "column": 36 + }, + "end": { + "line": 29, + "column": 41 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 568, + "end": 570, + "loc": { + "start": { + "line": 29, + "column": 42 + }, + "end": { + "line": 29, + "column": 44 + } + }, + "name": "id" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 572, + "end": 596, + "loc": { + "start": { + "line": 29, + "column": 46 + }, + "end": { + "line": 29, + "column": 70 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 572, + "end": 577, + "loc": { + "start": { + "line": 29, + "column": 46 + }, + "end": { + "line": 29, + "column": 51 + } + }, + "name": "liked" + }, + "value": { + "type": "UnaryExpression", + "start": 579, + "end": 596, + "loc": { + "start": { + "line": 29, + "column": 53 + }, + "end": { + "line": 29, + "column": 70 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 580, + "end": 596, + "loc": { + "start": { + "line": 29, + "column": 54 + }, + "end": { + "line": 29, + "column": 70 + } + }, + "object": { + "type": "MemberExpression", + "start": 580, + "end": 590, + "loc": { + "start": { + "line": 29, + "column": 54 + }, + "end": { + "line": 29, + "column": 64 + } + }, + "object": { + "type": "ThisExpression", + "start": 580, + "end": 584, + "loc": { + "start": { + "line": 29, + "column": 54 + }, + "end": { + "line": 29, + "column": 58 + } + } + }, + "property": { + "type": "Identifier", + "start": 585, + "end": 590, + "loc": { + "start": { + "line": 29, + "column": 59 + }, + "end": { + "line": 29, + "column": 64 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 591, + "end": 596, + "loc": { + "start": { + "line": 29, + "column": 65 + }, + "end": { + "line": 29, + "column": 70 + } + }, + "name": "liked" + }, + "computed": false + } + }, + "kind": "init" + } + ] + } + ] + } + }, + { + "type": "IfStatement", + "start": 607, + "end": 698, + "loc": { + "start": { + "line": 30, + "column": 8 + }, + "end": { + "line": 32, + "column": 9 + } + }, + "test": { + "type": "UnaryExpression", + "start": 611, + "end": 628, + "loc": { + "start": { + "line": 30, + "column": 12 + }, + "end": { + "line": 30, + "column": 29 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 612, + "end": 628, + "loc": { + "start": { + "line": 30, + "column": 13 + }, + "end": { + "line": 30, + "column": 29 + } + }, + "object": { + "type": "MemberExpression", + "start": 612, + "end": 622, + "loc": { + "start": { + "line": 30, + "column": 13 + }, + "end": { + "line": 30, + "column": 23 + } + }, + "object": { + "type": "ThisExpression", + "start": 612, + "end": 616, + "loc": { + "start": { + "line": 30, + "column": 13 + }, + "end": { + "line": 30, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "start": 617, + "end": 622, + "loc": { + "start": { + "line": 30, + "column": 18 + }, + "end": { + "line": 30, + "column": 23 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 623, + "end": 628, + "loc": { + "start": { + "line": 30, + "column": 24 + }, + "end": { + "line": 30, + "column": 29 + } + }, + "name": "liked" + }, + "computed": false + } + }, + "consequent": { + "type": "BlockStatement", + "start": 630, + "end": 698, + "loc": { + "start": { + "line": 30, + "column": 31 + }, + "end": { + "line": 32, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 644, + "end": 688, + "loc": { + "start": { + "line": 31, + "column": 12 + }, + "end": { + "line": 31, + "column": 56 + } + }, + "expression": { + "type": "CallExpression", + "start": 644, + "end": 688, + "loc": { + "start": { + "line": 31, + "column": 12 + }, + "end": { + "line": 31, + "column": 56 + } + }, + "callee": { + "type": "Identifier", + "start": 644, + "end": 653, + "loc": { + "start": { + "line": 31, + "column": 12 + }, + "end": { + "line": 31, + "column": 21 + } + }, + "name": "likePhoto" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 654, + "end": 672, + "loc": { + "start": { + "line": 31, + "column": 22 + }, + "end": { + "line": 31, + "column": 40 + } + }, + "object": { + "type": "MemberExpression", + "start": 654, + "end": 669, + "loc": { + "start": { + "line": 31, + "column": 22 + }, + "end": { + "line": 31, + "column": 37 + } + }, + "object": { + "type": "MemberExpression", + "start": 654, + "end": 664, + "loc": { + "start": { + "line": 31, + "column": 22 + }, + "end": { + "line": 31, + "column": 32 + } + }, + "object": { + "type": "ThisExpression", + "start": 654, + "end": 658, + "loc": { + "start": { + "line": 31, + "column": 22 + }, + "end": { + "line": 31, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "start": 659, + "end": 664, + "loc": { + "start": { + "line": 31, + "column": 27 + }, + "end": { + "line": 31, + "column": 32 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 665, + "end": 669, + "loc": { + "start": { + "line": 31, + "column": 33 + }, + "end": { + "line": 31, + "column": 37 + } + }, + "name": "user" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 670, + "end": 672, + "loc": { + "start": { + "line": 31, + "column": 38 + }, + "end": { + "line": 31, + "column": 40 + } + }, + "name": "id" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 674, + "end": 687, + "loc": { + "start": { + "line": 31, + "column": 42 + }, + "end": { + "line": 31, + "column": 55 + } + }, + "object": { + "type": "MemberExpression", + "start": 674, + "end": 684, + "loc": { + "start": { + "line": 31, + "column": 42 + }, + "end": { + "line": 31, + "column": 52 + } + }, + "object": { + "type": "ThisExpression", + "start": 674, + "end": 678, + "loc": { + "start": { + "line": 31, + "column": 42 + }, + "end": { + "line": 31, + "column": 46 + } + } + }, + "property": { + "type": "Identifier", + "start": 679, + "end": 684, + "loc": { + "start": { + "line": 31, + "column": 47 + }, + "end": { + "line": 31, + "column": 52 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 685, + "end": 687, + "loc": { + "start": { + "line": 31, + "column": 53 + }, + "end": { + "line": 31, + "column": 55 + } + }, + "name": "id" + }, + "computed": false + } + ] + } + } + ] + }, + "alternate": null + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * handleClick\n * @param e event\n ", + "start": 446, + "end": 498, + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 27, + "column": 7 + } + }, + "range": [ + 446, + 498 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 710, + "end": 758, + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 38, + "column": 7 + } + }, + "range": [ + 710, + 758 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 763, + "end": 1017, + "loc": { + "start": { + "line": 39, + "column": 4 + }, + "end": { + "line": 45, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 763, + "end": 769, + "loc": { + "start": { + "line": 39, + "column": 4 + }, + "end": { + "line": 39, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 769, + "end": 1017, + "loc": { + "start": { + "line": 39, + "column": 10 + }, + "end": { + "line": 45, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 772, + "end": 1017, + "loc": { + "start": { + "line": 39, + "column": 13 + }, + "end": { + "line": 45, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 782, + "end": 804, + "loc": { + "start": { + "line": 40, + "column": 8 + }, + "end": { + "line": 40, + "column": 30 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 786, + "end": 804, + "loc": { + "start": { + "line": 40, + "column": 12 + }, + "end": { + "line": 40, + "column": 30 + } + }, + "id": { + "type": "Identifier", + "start": 786, + "end": 793, + "loc": { + "start": { + "line": 40, + "column": 12 + }, + "end": { + "line": 40, + "column": 19 + } + }, + "name": "classes" + }, + "init": { + "type": "ArrayExpression", + "start": 796, + "end": 804, + "loc": { + "start": { + "line": 40, + "column": 22 + }, + "end": { + "line": 40, + "column": 30 + } + }, + "elements": [ + { + "type": "Literal", + "start": 797, + "end": 803, + "loc": { + "start": { + "line": 40, + "column": 23 + }, + "end": { + "line": 40, + "column": 29 + } + }, + "value": "item", + "rawValue": "item", + "raw": "'item'" + } + ] + } + } + ], + "kind": "let" + }, + { + "type": "IfStatement", + "start": 813, + "end": 864, + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 41, + "column": 59 + } + }, + "test": { + "type": "MemberExpression", + "start": 817, + "end": 833, + "loc": { + "start": { + "line": 41, + "column": 12 + }, + "end": { + "line": 41, + "column": 28 + } + }, + "object": { + "type": "MemberExpression", + "start": 817, + "end": 827, + "loc": { + "start": { + "line": 41, + "column": 12 + }, + "end": { + "line": 41, + "column": 22 + } + }, + "object": { + "type": "ThisExpression", + "start": 817, + "end": 821, + "loc": { + "start": { + "line": 41, + "column": 12 + }, + "end": { + "line": 41, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 822, + "end": 827, + "loc": { + "start": { + "line": 41, + "column": 17 + }, + "end": { + "line": 41, + "column": 22 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 828, + "end": 833, + "loc": { + "start": { + "line": 41, + "column": 23 + }, + "end": { + "line": 41, + "column": 28 + } + }, + "name": "liked" + }, + "computed": false + }, + "consequent": { + "type": "ExpressionStatement", + "start": 835, + "end": 864, + "loc": { + "start": { + "line": 41, + "column": 30 + }, + "end": { + "line": 41, + "column": 59 + } + }, + "expression": { + "type": "CallExpression", + "start": 835, + "end": 864, + "loc": { + "start": { + "line": 41, + "column": 30 + }, + "end": { + "line": 41, + "column": 59 + } + }, + "callee": { + "type": "MemberExpression", + "start": 835, + "end": 847, + "loc": { + "start": { + "line": 41, + "column": 30 + }, + "end": { + "line": 41, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 835, + "end": 842, + "loc": { + "start": { + "line": 41, + "column": 30 + }, + "end": { + "line": 41, + "column": 37 + } + }, + "name": "classes" + }, + "property": { + "type": "Identifier", + "start": 843, + "end": 847, + "loc": { + "start": { + "line": 41, + "column": 38 + }, + "end": { + "line": 41, + "column": 42 + } + }, + "name": "push" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 848, + "end": 863, + "loc": { + "start": { + "line": 41, + "column": 43 + }, + "end": { + "line": 41, + "column": 58 + } + }, + "value": "ion-ios-heart", + "rawValue": "ion-ios-heart", + "raw": "'ion-ios-heart'" + } + ] + } + }, + "alternate": null + }, + { + "type": "IfStatement", + "start": 873, + "end": 933, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 68 + } + }, + "test": { + "type": "UnaryExpression", + "start": 877, + "end": 894, + "loc": { + "start": { + "line": 42, + "column": 12 + }, + "end": { + "line": 42, + "column": 29 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 878, + "end": 894, + "loc": { + "start": { + "line": 42, + "column": 13 + }, + "end": { + "line": 42, + "column": 29 + } + }, + "object": { + "type": "MemberExpression", + "start": 878, + "end": 888, + "loc": { + "start": { + "line": 42, + "column": 13 + }, + "end": { + "line": 42, + "column": 23 + } + }, + "object": { + "type": "ThisExpression", + "start": 878, + "end": 882, + "loc": { + "start": { + "line": 42, + "column": 13 + }, + "end": { + "line": 42, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "start": 883, + "end": 888, + "loc": { + "start": { + "line": 42, + "column": 18 + }, + "end": { + "line": 42, + "column": 23 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 889, + "end": 894, + "loc": { + "start": { + "line": 42, + "column": 24 + }, + "end": { + "line": 42, + "column": 29 + } + }, + "name": "liked" + }, + "computed": false + } + }, + "consequent": { + "type": "ExpressionStatement", + "start": 896, + "end": 933, + "loc": { + "start": { + "line": 42, + "column": 31 + }, + "end": { + "line": 42, + "column": 68 + } + }, + "expression": { + "type": "CallExpression", + "start": 896, + "end": 933, + "loc": { + "start": { + "line": 42, + "column": 31 + }, + "end": { + "line": 42, + "column": 68 + } + }, + "callee": { + "type": "MemberExpression", + "start": 896, + "end": 908, + "loc": { + "start": { + "line": 42, + "column": 31 + }, + "end": { + "line": 42, + "column": 43 + } + }, + "object": { + "type": "Identifier", + "start": 896, + "end": 903, + "loc": { + "start": { + "line": 42, + "column": 31 + }, + "end": { + "line": 42, + "column": 38 + } + }, + "name": "classes" + }, + "property": { + "type": "Identifier", + "start": 904, + "end": 908, + "loc": { + "start": { + "line": 42, + "column": 39 + }, + "end": { + "line": 42, + "column": 43 + } + }, + "name": "push" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 909, + "end": 932, + "loc": { + "start": { + "line": 42, + "column": 44 + }, + "end": { + "line": 42, + "column": 67 + } + }, + "value": "ion-ios-heart-outline", + "rawValue": "ion-ios-heart-outline", + "raw": "'ion-ios-heart-outline'" + } + ] + } + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 943, + "end": 1011, + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 44, + "column": 76 + } + }, + "argument": { + "type": "JSXElement", + "start": 950, + "end": 1011, + "loc": { + "start": { + "line": 44, + "column": 15 + }, + "end": { + "line": 44, + "column": 76 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 950, + "end": 1011, + "loc": { + "start": { + "line": 44, + "column": 15 + }, + "end": { + "line": 44, + "column": 76 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 953, + "end": 982, + "loc": { + "start": { + "line": 44, + "column": 18 + }, + "end": { + "line": 44, + "column": 47 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 953, + "end": 962, + "loc": { + "start": { + "line": 44, + "column": 18 + }, + "end": { + "line": 44, + "column": 27 + } + }, + "name": "className" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 963, + "end": 982, + "loc": { + "start": { + "line": 44, + "column": 28 + }, + "end": { + "line": 44, + "column": 47 + } + }, + "expression": { + "type": "CallExpression", + "start": 964, + "end": 981, + "loc": { + "start": { + "line": 44, + "column": 29 + }, + "end": { + "line": 44, + "column": 46 + } + }, + "callee": { + "type": "MemberExpression", + "start": 964, + "end": 976, + "loc": { + "start": { + "line": 44, + "column": 29 + }, + "end": { + "line": 44, + "column": 41 + } + }, + "object": { + "type": "Identifier", + "start": 964, + "end": 971, + "loc": { + "start": { + "line": 44, + "column": 29 + }, + "end": { + "line": 44, + "column": 36 + } + }, + "name": "classes" + }, + "property": { + "type": "Identifier", + "start": 972, + "end": 976, + "loc": { + "start": { + "line": 44, + "column": 37 + }, + "end": { + "line": 44, + "column": 41 + } + }, + "name": "join" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 977, + "end": 980, + "loc": { + "start": { + "line": 44, + "column": 42 + }, + "end": { + "line": 44, + "column": 45 + } + }, + "value": " ", + "rawValue": " ", + "raw": "' '" + } + ] + } + } + }, + { + "type": "JSXAttribute", + "start": 983, + "end": 1009, + "loc": { + "start": { + "line": 44, + "column": 48 + }, + "end": { + "line": 44, + "column": 74 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 983, + "end": 990, + "loc": { + "start": { + "line": 44, + "column": 48 + }, + "end": { + "line": 44, + "column": 55 + } + }, + "name": "onClick" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 991, + "end": 1009, + "loc": { + "start": { + "line": 44, + "column": 56 + }, + "end": { + "line": 44, + "column": 74 + } + }, + "expression": { + "type": "MemberExpression", + "start": 992, + "end": 1008, + "loc": { + "start": { + "line": 44, + "column": 57 + }, + "end": { + "line": 44, + "column": 73 + } + }, + "object": { + "type": "ThisExpression", + "start": 992, + "end": 996, + "loc": { + "start": { + "line": 44, + "column": 57 + }, + "end": { + "line": 44, + "column": 61 + } + } + }, + "property": { + "type": "Identifier", + "start": 997, + "end": 1008, + "loc": { + "start": { + "line": 44, + "column": 62 + }, + "end": { + "line": 44, + "column": 73 + } + }, + "name": "handleClick" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 951, + "end": 952, + "loc": { + "start": { + "line": 44, + "column": 16 + }, + "end": { + "line": 44, + "column": 17 + } + }, + "name": "i" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 710, + "end": 758, + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 38, + "column": 7 + } + }, + "range": [ + 710, + 758 + ] + } + ] + } + ] + }, + "leadingComments": [], + "name": "_", + "trailingComments": [] + }, + { + "type": "Identifier", + "start": 1022, + "end": 1047, + "loc": { + "start": { + "line": 49, + "column": 0 + }, + "end": { + "line": 49, + "column": 25 + } + }, + "declaration": { + "type": "Identifier", + "start": 1037, + "end": 1047, + "loc": { + "start": { + "line": 49, + "column": 15 + }, + "end": { + "line": 49, + "column": 25 + } + }, + "name": "LikeButton" + }, + "name": "_", + "leadingComments": [], + "trailingComments": [] + }, + { + "type": "ExportDefaultDeclaration", + "start": 1049, + "end": 1121, + "loc": { + "start": { + "line": 51, + "column": 0 + }, + "end": { + "line": 53, + "column": 15 + } + }, + "declaration": { + "type": "CallExpression", + "start": 1064, + "end": 1121, + "loc": { + "start": { + "line": 51, + "column": 15 + }, + "end": { + "line": 53, + "column": 15 + } + }, + "callee": { + "type": "CallExpression", + "start": 1064, + "end": 1109, + "loc": { + "start": { + "line": 51, + "column": 15 + }, + "end": { + "line": 53, + "column": 3 + } + }, + "callee": { + "type": "Identifier", + "start": 1064, + "end": 1071, + "loc": { + "start": { + "line": 51, + "column": 15 + }, + "end": { + "line": 51, + "column": 22 + } + }, + "name": "connect" + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 1072, + "end": 1108, + "loc": { + "start": { + "line": 51, + "column": 23 + }, + "end": { + "line": 53, + "column": 2 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1072, + "end": 1077, + "loc": { + "start": { + "line": 51, + "column": 23 + }, + "end": { + "line": 51, + "column": 28 + } + }, + "name": "state" + } + ], + "body": { + "type": "ObjectExpression", + "start": 1082, + "end": 1107, + "loc": { + "start": { + "line": 51, + "column": 33 + }, + "end": { + "line": 53, + "column": 1 + } + }, + "properties": [ + { + "type": "Property", + "start": 1088, + "end": 1104, + "loc": { + "start": { + "line": 52, + "column": 4 + }, + "end": { + "line": 52, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1088, + "end": 1092, + "loc": { + "start": { + "line": 52, + "column": 4 + }, + "end": { + "line": 52, + "column": 8 + } + }, + "name": "user" + }, + "value": { + "type": "MemberExpression", + "start": 1094, + "end": 1104, + "loc": { + "start": { + "line": 52, + "column": 10 + }, + "end": { + "line": 52, + "column": 20 + } + }, + "object": { + "type": "Identifier", + "start": 1094, + "end": 1099, + "loc": { + "start": { + "line": 52, + "column": 10 + }, + "end": { + "line": 52, + "column": 15 + } + }, + "name": "state" + }, + "property": { + "type": "Identifier", + "start": 1100, + "end": 1104, + "loc": { + "start": { + "line": 52, + "column": 16 + }, + "end": { + "line": 52, + "column": 20 + } + }, + "name": "User" + }, + "computed": false + }, + "kind": "init" + } + ], + "parenthesizedExpression": true + } + } + ] + }, + "arguments": [ + { + "type": "Identifier", + "start": 1110, + "end": 1120, + "loc": { + "start": { + "line": 53, + "column": 4 + }, + "end": { + "line": 53, + "column": 14 + } + }, + "name": "LikeButton" + } + ], + "leadingComments": [], + "trailingComments": [] + } + }, + { + "type": "ExportDefaultDeclaration", + "start": 1022, + "end": 1047, + "loc": { + "start": { + "line": 49, + "column": 0 + }, + "end": { + "line": 49, + "column": 25 + } + }, + "declaration": { + "type": "ClassDeclaration", + "start": 214, + "end": 1020, + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 47, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 220, + "end": 230, + "loc": { + "start": { + "line": 12, + "column": 6 + }, + "end": { + "line": 12, + "column": 16 + } + }, + "name": "LikeButton", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 239, + "end": 248, + "loc": { + "start": { + "line": 12, + "column": 25 + }, + "end": { + "line": 12, + "column": 34 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 249, + "end": 1020, + "loc": { + "start": { + "line": 12, + "column": 35 + }, + "end": { + "line": 47, + "column": 1 + } + }, + "body": [ + { + "type": "Identifier", + "start": 360, + "end": 440, + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 22, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 367, + "end": 379, + "loc": { + "start": { + "line": 18, + "column": 11 + }, + "end": { + "line": 18, + "column": 23 + } + }, + "name": "defaultProps" + }, + "static": true, + "value": { + "type": "ObjectExpression", + "start": 382, + "end": 440, + "loc": { + "start": { + "line": 18, + "column": 26 + }, + "end": { + "line": 22, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 392, + "end": 398, + "loc": { + "start": { + "line": 19, + "column": 8 + }, + "end": { + "line": 19, + "column": 14 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 392, + "end": 394, + "loc": { + "start": { + "line": 19, + "column": 8 + }, + "end": { + "line": 19, + "column": 10 + } + }, + "name": "id" + }, + "value": { + "type": "Literal", + "start": 396, + "end": 398, + "loc": { + "start": { + "line": 19, + "column": 12 + }, + "end": { + "line": 19, + "column": 14 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 408, + "end": 433, + "loc": { + "start": { + "line": 20, + "column": 8 + }, + "end": { + "line": 21, + "column": 9 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 408, + "end": 414, + "loc": { + "start": { + "line": 20, + "column": 8 + }, + "end": { + "line": 20, + "column": 14 + } + }, + "name": "onLike" + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 416, + "end": 433, + "loc": { + "start": { + "line": 20, + "column": 16 + }, + "end": { + "line": 21, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 422, + "end": 433, + "loc": { + "start": { + "line": 20, + "column": 22 + }, + "end": { + "line": 21, + "column": 9 + } + }, + "body": [] + } + }, + "kind": "init" + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * defaultProps\n * @type {{id: string, onLike: LikeButton.defaultProps.onLike}}\n ", + "start": 256, + "end": 355, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 17, + "column": 7 + } + }, + "range": [ + 256, + 355 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * handleClick\n * @param e event\n ", + "start": 446, + "end": 498, + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 27, + "column": 7 + } + }, + "range": [ + 446, + 498 + ] + } + ] + }, + { + "type": "Identifier", + "start": 503, + "end": 704, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 503, + "end": 514, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 15 + } + }, + "name": "handleClick", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ArrowFunctionExpression", + "start": 517, + "end": 704, + "loc": { + "start": { + "line": 28, + "column": 18 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 518, + "end": 519, + "loc": { + "start": { + "line": 28, + "column": 19 + }, + "end": { + "line": 28, + "column": 20 + } + }, + "name": "e" + } + ], + "body": { + "type": "BlockStatement", + "start": 524, + "end": 704, + "loc": { + "start": { + "line": 28, + "column": 25 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 534, + "end": 598, + "loc": { + "start": { + "line": 29, + "column": 8 + }, + "end": { + "line": 29, + "column": 72 + } + }, + "expression": { + "type": "CallExpression", + "start": 534, + "end": 598, + "loc": { + "start": { + "line": 29, + "column": 8 + }, + "end": { + "line": 29, + "column": 72 + } + }, + "callee": { + "type": "MemberExpression", + "start": 534, + "end": 551, + "loc": { + "start": { + "line": 29, + "column": 8 + }, + "end": { + "line": 29, + "column": 25 + } + }, + "object": { + "type": "MemberExpression", + "start": 534, + "end": 544, + "loc": { + "start": { + "line": 29, + "column": 8 + }, + "end": { + "line": 29, + "column": 18 + } + }, + "object": { + "type": "ThisExpression", + "start": 534, + "end": 538, + "loc": { + "start": { + "line": 29, + "column": 8 + }, + "end": { + "line": 29, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 539, + "end": 544, + "loc": { + "start": { + "line": 29, + "column": 13 + }, + "end": { + "line": 29, + "column": 18 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 545, + "end": 551, + "loc": { + "start": { + "line": 29, + "column": 19 + }, + "end": { + "line": 29, + "column": 25 + } + }, + "name": "onLike" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 552, + "end": 597, + "loc": { + "start": { + "line": 29, + "column": 26 + }, + "end": { + "line": 29, + "column": 71 + } + }, + "properties": [ + { + "type": "Property", + "start": 553, + "end": 570, + "loc": { + "start": { + "line": 29, + "column": 27 + }, + "end": { + "line": 29, + "column": 44 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 553, + "end": 555, + "loc": { + "start": { + "line": 29, + "column": 27 + }, + "end": { + "line": 29, + "column": 29 + } + }, + "name": "id" + }, + "value": { + "type": "MemberExpression", + "start": 557, + "end": 570, + "loc": { + "start": { + "line": 29, + "column": 31 + }, + "end": { + "line": 29, + "column": 44 + } + }, + "object": { + "type": "MemberExpression", + "start": 557, + "end": 567, + "loc": { + "start": { + "line": 29, + "column": 31 + }, + "end": { + "line": 29, + "column": 41 + } + }, + "object": { + "type": "ThisExpression", + "start": 557, + "end": 561, + "loc": { + "start": { + "line": 29, + "column": 31 + }, + "end": { + "line": 29, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "start": 562, + "end": 567, + "loc": { + "start": { + "line": 29, + "column": 36 + }, + "end": { + "line": 29, + "column": 41 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 568, + "end": 570, + "loc": { + "start": { + "line": 29, + "column": 42 + }, + "end": { + "line": 29, + "column": 44 + } + }, + "name": "id" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 572, + "end": 596, + "loc": { + "start": { + "line": 29, + "column": 46 + }, + "end": { + "line": 29, + "column": 70 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 572, + "end": 577, + "loc": { + "start": { + "line": 29, + "column": 46 + }, + "end": { + "line": 29, + "column": 51 + } + }, + "name": "liked" + }, + "value": { + "type": "UnaryExpression", + "start": 579, + "end": 596, + "loc": { + "start": { + "line": 29, + "column": 53 + }, + "end": { + "line": 29, + "column": 70 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 580, + "end": 596, + "loc": { + "start": { + "line": 29, + "column": 54 + }, + "end": { + "line": 29, + "column": 70 + } + }, + "object": { + "type": "MemberExpression", + "start": 580, + "end": 590, + "loc": { + "start": { + "line": 29, + "column": 54 + }, + "end": { + "line": 29, + "column": 64 + } + }, + "object": { + "type": "ThisExpression", + "start": 580, + "end": 584, + "loc": { + "start": { + "line": 29, + "column": 54 + }, + "end": { + "line": 29, + "column": 58 + } + } + }, + "property": { + "type": "Identifier", + "start": 585, + "end": 590, + "loc": { + "start": { + "line": 29, + "column": 59 + }, + "end": { + "line": 29, + "column": 64 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 591, + "end": 596, + "loc": { + "start": { + "line": 29, + "column": 65 + }, + "end": { + "line": 29, + "column": 70 + } + }, + "name": "liked" + }, + "computed": false + } + }, + "kind": "init" + } + ] + } + ] + } + }, + { + "type": "IfStatement", + "start": 607, + "end": 698, + "loc": { + "start": { + "line": 30, + "column": 8 + }, + "end": { + "line": 32, + "column": 9 + } + }, + "test": { + "type": "UnaryExpression", + "start": 611, + "end": 628, + "loc": { + "start": { + "line": 30, + "column": 12 + }, + "end": { + "line": 30, + "column": 29 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 612, + "end": 628, + "loc": { + "start": { + "line": 30, + "column": 13 + }, + "end": { + "line": 30, + "column": 29 + } + }, + "object": { + "type": "MemberExpression", + "start": 612, + "end": 622, + "loc": { + "start": { + "line": 30, + "column": 13 + }, + "end": { + "line": 30, + "column": 23 + } + }, + "object": { + "type": "ThisExpression", + "start": 612, + "end": 616, + "loc": { + "start": { + "line": 30, + "column": 13 + }, + "end": { + "line": 30, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "start": 617, + "end": 622, + "loc": { + "start": { + "line": 30, + "column": 18 + }, + "end": { + "line": 30, + "column": 23 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 623, + "end": 628, + "loc": { + "start": { + "line": 30, + "column": 24 + }, + "end": { + "line": 30, + "column": 29 + } + }, + "name": "liked" + }, + "computed": false + } + }, + "consequent": { + "type": "BlockStatement", + "start": 630, + "end": 698, + "loc": { + "start": { + "line": 30, + "column": 31 + }, + "end": { + "line": 32, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 644, + "end": 688, + "loc": { + "start": { + "line": 31, + "column": 12 + }, + "end": { + "line": 31, + "column": 56 + } + }, + "expression": { + "type": "CallExpression", + "start": 644, + "end": 688, + "loc": { + "start": { + "line": 31, + "column": 12 + }, + "end": { + "line": 31, + "column": 56 + } + }, + "callee": { + "type": "Identifier", + "start": 644, + "end": 653, + "loc": { + "start": { + "line": 31, + "column": 12 + }, + "end": { + "line": 31, + "column": 21 + } + }, + "name": "likePhoto" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 654, + "end": 672, + "loc": { + "start": { + "line": 31, + "column": 22 + }, + "end": { + "line": 31, + "column": 40 + } + }, + "object": { + "type": "MemberExpression", + "start": 654, + "end": 669, + "loc": { + "start": { + "line": 31, + "column": 22 + }, + "end": { + "line": 31, + "column": 37 + } + }, + "object": { + "type": "MemberExpression", + "start": 654, + "end": 664, + "loc": { + "start": { + "line": 31, + "column": 22 + }, + "end": { + "line": 31, + "column": 32 + } + }, + "object": { + "type": "ThisExpression", + "start": 654, + "end": 658, + "loc": { + "start": { + "line": 31, + "column": 22 + }, + "end": { + "line": 31, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "start": 659, + "end": 664, + "loc": { + "start": { + "line": 31, + "column": 27 + }, + "end": { + "line": 31, + "column": 32 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 665, + "end": 669, + "loc": { + "start": { + "line": 31, + "column": 33 + }, + "end": { + "line": 31, + "column": 37 + } + }, + "name": "user" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 670, + "end": 672, + "loc": { + "start": { + "line": 31, + "column": 38 + }, + "end": { + "line": 31, + "column": 40 + } + }, + "name": "id" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 674, + "end": 687, + "loc": { + "start": { + "line": 31, + "column": 42 + }, + "end": { + "line": 31, + "column": 55 + } + }, + "object": { + "type": "MemberExpression", + "start": 674, + "end": 684, + "loc": { + "start": { + "line": 31, + "column": 42 + }, + "end": { + "line": 31, + "column": 52 + } + }, + "object": { + "type": "ThisExpression", + "start": 674, + "end": 678, + "loc": { + "start": { + "line": 31, + "column": 42 + }, + "end": { + "line": 31, + "column": 46 + } + } + }, + "property": { + "type": "Identifier", + "start": 679, + "end": 684, + "loc": { + "start": { + "line": 31, + "column": 47 + }, + "end": { + "line": 31, + "column": 52 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 685, + "end": 687, + "loc": { + "start": { + "line": 31, + "column": 53 + }, + "end": { + "line": 31, + "column": 55 + } + }, + "name": "id" + }, + "computed": false + } + ] + } + } + ] + }, + "alternate": null + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * handleClick\n * @param e event\n ", + "start": 446, + "end": 498, + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 27, + "column": 7 + } + }, + "range": [ + 446, + 498 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 710, + "end": 758, + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 38, + "column": 7 + } + }, + "range": [ + 710, + 758 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 763, + "end": 1017, + "loc": { + "start": { + "line": 39, + "column": 4 + }, + "end": { + "line": 45, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 763, + "end": 769, + "loc": { + "start": { + "line": 39, + "column": 4 + }, + "end": { + "line": 39, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 769, + "end": 1017, + "loc": { + "start": { + "line": 39, + "column": 10 + }, + "end": { + "line": 45, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 772, + "end": 1017, + "loc": { + "start": { + "line": 39, + "column": 13 + }, + "end": { + "line": 45, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 782, + "end": 804, + "loc": { + "start": { + "line": 40, + "column": 8 + }, + "end": { + "line": 40, + "column": 30 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 786, + "end": 804, + "loc": { + "start": { + "line": 40, + "column": 12 + }, + "end": { + "line": 40, + "column": 30 + } + }, + "id": { + "type": "Identifier", + "start": 786, + "end": 793, + "loc": { + "start": { + "line": 40, + "column": 12 + }, + "end": { + "line": 40, + "column": 19 + } + }, + "name": "classes" + }, + "init": { + "type": "ArrayExpression", + "start": 796, + "end": 804, + "loc": { + "start": { + "line": 40, + "column": 22 + }, + "end": { + "line": 40, + "column": 30 + } + }, + "elements": [ + { + "type": "Literal", + "start": 797, + "end": 803, + "loc": { + "start": { + "line": 40, + "column": 23 + }, + "end": { + "line": 40, + "column": 29 + } + }, + "value": "item", + "rawValue": "item", + "raw": "'item'" + } + ] + } + } + ], + "kind": "let" + }, + { + "type": "IfStatement", + "start": 813, + "end": 864, + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 41, + "column": 59 + } + }, + "test": { + "type": "MemberExpression", + "start": 817, + "end": 833, + "loc": { + "start": { + "line": 41, + "column": 12 + }, + "end": { + "line": 41, + "column": 28 + } + }, + "object": { + "type": "MemberExpression", + "start": 817, + "end": 827, + "loc": { + "start": { + "line": 41, + "column": 12 + }, + "end": { + "line": 41, + "column": 22 + } + }, + "object": { + "type": "ThisExpression", + "start": 817, + "end": 821, + "loc": { + "start": { + "line": 41, + "column": 12 + }, + "end": { + "line": 41, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 822, + "end": 827, + "loc": { + "start": { + "line": 41, + "column": 17 + }, + "end": { + "line": 41, + "column": 22 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 828, + "end": 833, + "loc": { + "start": { + "line": 41, + "column": 23 + }, + "end": { + "line": 41, + "column": 28 + } + }, + "name": "liked" + }, + "computed": false + }, + "consequent": { + "type": "ExpressionStatement", + "start": 835, + "end": 864, + "loc": { + "start": { + "line": 41, + "column": 30 + }, + "end": { + "line": 41, + "column": 59 + } + }, + "expression": { + "type": "CallExpression", + "start": 835, + "end": 864, + "loc": { + "start": { + "line": 41, + "column": 30 + }, + "end": { + "line": 41, + "column": 59 + } + }, + "callee": { + "type": "MemberExpression", + "start": 835, + "end": 847, + "loc": { + "start": { + "line": 41, + "column": 30 + }, + "end": { + "line": 41, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 835, + "end": 842, + "loc": { + "start": { + "line": 41, + "column": 30 + }, + "end": { + "line": 41, + "column": 37 + } + }, + "name": "classes" + }, + "property": { + "type": "Identifier", + "start": 843, + "end": 847, + "loc": { + "start": { + "line": 41, + "column": 38 + }, + "end": { + "line": 41, + "column": 42 + } + }, + "name": "push" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 848, + "end": 863, + "loc": { + "start": { + "line": 41, + "column": 43 + }, + "end": { + "line": 41, + "column": 58 + } + }, + "value": "ion-ios-heart", + "rawValue": "ion-ios-heart", + "raw": "'ion-ios-heart'" + } + ] + } + }, + "alternate": null + }, + { + "type": "IfStatement", + "start": 873, + "end": 933, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 68 + } + }, + "test": { + "type": "UnaryExpression", + "start": 877, + "end": 894, + "loc": { + "start": { + "line": 42, + "column": 12 + }, + "end": { + "line": 42, + "column": 29 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 878, + "end": 894, + "loc": { + "start": { + "line": 42, + "column": 13 + }, + "end": { + "line": 42, + "column": 29 + } + }, + "object": { + "type": "MemberExpression", + "start": 878, + "end": 888, + "loc": { + "start": { + "line": 42, + "column": 13 + }, + "end": { + "line": 42, + "column": 23 + } + }, + "object": { + "type": "ThisExpression", + "start": 878, + "end": 882, + "loc": { + "start": { + "line": 42, + "column": 13 + }, + "end": { + "line": 42, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "start": 883, + "end": 888, + "loc": { + "start": { + "line": 42, + "column": 18 + }, + "end": { + "line": 42, + "column": 23 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 889, + "end": 894, + "loc": { + "start": { + "line": 42, + "column": 24 + }, + "end": { + "line": 42, + "column": 29 + } + }, + "name": "liked" + }, + "computed": false + } + }, + "consequent": { + "type": "ExpressionStatement", + "start": 896, + "end": 933, + "loc": { + "start": { + "line": 42, + "column": 31 + }, + "end": { + "line": 42, + "column": 68 + } + }, + "expression": { + "type": "CallExpression", + "start": 896, + "end": 933, + "loc": { + "start": { + "line": 42, + "column": 31 + }, + "end": { + "line": 42, + "column": 68 + } + }, + "callee": { + "type": "MemberExpression", + "start": 896, + "end": 908, + "loc": { + "start": { + "line": 42, + "column": 31 + }, + "end": { + "line": 42, + "column": 43 + } + }, + "object": { + "type": "Identifier", + "start": 896, + "end": 903, + "loc": { + "start": { + "line": 42, + "column": 31 + }, + "end": { + "line": 42, + "column": 38 + } + }, + "name": "classes" + }, + "property": { + "type": "Identifier", + "start": 904, + "end": 908, + "loc": { + "start": { + "line": 42, + "column": 39 + }, + "end": { + "line": 42, + "column": 43 + } + }, + "name": "push" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 909, + "end": 932, + "loc": { + "start": { + "line": 42, + "column": 44 + }, + "end": { + "line": 42, + "column": 67 + } + }, + "value": "ion-ios-heart-outline", + "rawValue": "ion-ios-heart-outline", + "raw": "'ion-ios-heart-outline'" + } + ] + } + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 943, + "end": 1011, + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 44, + "column": 76 + } + }, + "argument": { + "type": "JSXElement", + "start": 950, + "end": 1011, + "loc": { + "start": { + "line": 44, + "column": 15 + }, + "end": { + "line": 44, + "column": 76 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 950, + "end": 1011, + "loc": { + "start": { + "line": 44, + "column": 15 + }, + "end": { + "line": 44, + "column": 76 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 953, + "end": 982, + "loc": { + "start": { + "line": 44, + "column": 18 + }, + "end": { + "line": 44, + "column": 47 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 953, + "end": 962, + "loc": { + "start": { + "line": 44, + "column": 18 + }, + "end": { + "line": 44, + "column": 27 + } + }, + "name": "className" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 963, + "end": 982, + "loc": { + "start": { + "line": 44, + "column": 28 + }, + "end": { + "line": 44, + "column": 47 + } + }, + "expression": { + "type": "CallExpression", + "start": 964, + "end": 981, + "loc": { + "start": { + "line": 44, + "column": 29 + }, + "end": { + "line": 44, + "column": 46 + } + }, + "callee": { + "type": "MemberExpression", + "start": 964, + "end": 976, + "loc": { + "start": { + "line": 44, + "column": 29 + }, + "end": { + "line": 44, + "column": 41 + } + }, + "object": { + "type": "Identifier", + "start": 964, + "end": 971, + "loc": { + "start": { + "line": 44, + "column": 29 + }, + "end": { + "line": 44, + "column": 36 + } + }, + "name": "classes" + }, + "property": { + "type": "Identifier", + "start": 972, + "end": 976, + "loc": { + "start": { + "line": 44, + "column": 37 + }, + "end": { + "line": 44, + "column": 41 + } + }, + "name": "join" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 977, + "end": 980, + "loc": { + "start": { + "line": 44, + "column": 42 + }, + "end": { + "line": 44, + "column": 45 + } + }, + "value": " ", + "rawValue": " ", + "raw": "' '" + } + ] + } + } + }, + { + "type": "JSXAttribute", + "start": 983, + "end": 1009, + "loc": { + "start": { + "line": 44, + "column": 48 + }, + "end": { + "line": 44, + "column": 74 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 983, + "end": 990, + "loc": { + "start": { + "line": 44, + "column": 48 + }, + "end": { + "line": 44, + "column": 55 + } + }, + "name": "onClick" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 991, + "end": 1009, + "loc": { + "start": { + "line": 44, + "column": 56 + }, + "end": { + "line": 44, + "column": 74 + } + }, + "expression": { + "type": "MemberExpression", + "start": 992, + "end": 1008, + "loc": { + "start": { + "line": 44, + "column": 57 + }, + "end": { + "line": 44, + "column": 73 + } + }, + "object": { + "type": "ThisExpression", + "start": 992, + "end": 996, + "loc": { + "start": { + "line": 44, + "column": 57 + }, + "end": { + "line": 44, + "column": 61 + } + } + }, + "property": { + "type": "Identifier", + "start": 997, + "end": 1008, + "loc": { + "start": { + "line": 44, + "column": 62 + }, + "end": { + "line": 44, + "column": 73 + } + }, + "name": "handleClick" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 951, + "end": 952, + "loc": { + "start": { + "line": 44, + "column": 16 + }, + "end": { + "line": 44, + "column": 17 + } + }, + "name": "i" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 710, + "end": 758, + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 38, + "column": 7 + } + }, + "range": [ + 710, + 758 + ] + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * LikeButton index component\n ", + "start": 176, + "end": 213, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + }, + "range": [ + 176, + 213 + ] + } + ], + "__esdoc__pseudo_export": false, + "trailingComments": [] + }, + "leadingComments": null + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/components/Nav/index.js.json b/app/docs/ast/source/components/Nav/index.js.json new file mode 100644 index 0000000..72865c9 --- /dev/null +++ b/app/docs/ast/source/components/Nav/index.js.json @@ -0,0 +1,8887 @@ +{ + "type": "Program", + "start": 0, + "end": 2282, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 96, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + }, + { + "type": "ImportSpecifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "imported": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + }, + "local": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 33, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 33 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ImportDeclaration", + "start": 41, + "end": 76, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 35 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 50, + "end": 54, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "imported": { + "type": "Identifier", + "start": 50, + "end": 54, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "name": "Link" + }, + "local": { + "type": "Identifier", + "start": 50, + "end": 54, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "name": "Link" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 62, + "end": 76, + "loc": { + "start": { + "line": 2, + "column": 21 + }, + "end": { + "line": 2, + "column": 35 + } + }, + "value": "react-router", + "rawValue": "react-router", + "raw": "'react-router'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Item component\n ", + "start": 78, + "end": 103, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + }, + "range": [ + 78, + 103 + ] + } + ] + }, + { + "type": "ClassDeclaration", + "start": 104, + "end": 594, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 30, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 110, + "end": 114, + "loc": { + "start": { + "line": 7, + "column": 6 + }, + "end": { + "line": 7, + "column": 10 + } + }, + "name": "Item", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 123, + "end": 132, + "loc": { + "start": { + "line": 7, + "column": 19 + }, + "end": { + "line": 7, + "column": 28 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 133, + "end": 594, + "loc": { + "start": { + "line": 7, + "column": 29 + }, + "end": { + "line": 30, + "column": 1 + } + }, + "body": [ + { + "type": "Identifier", + "start": 235, + "end": 321, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 17, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 242, + "end": 254, + "loc": { + "start": { + "line": 13, + "column": 11 + }, + "end": { + "line": 13, + "column": 23 + } + }, + "name": "defaultProps" + }, + "static": true, + "value": { + "type": "ObjectExpression", + "start": 257, + "end": 321, + "loc": { + "start": { + "line": 13, + "column": 26 + }, + "end": { + "line": 17, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 267, + "end": 273, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 14 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 267, + "end": 269, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 10 + } + }, + "name": "to" + }, + "value": { + "type": "Literal", + "start": 271, + "end": 273, + "loc": { + "start": { + "line": 14, + "column": 12 + }, + "end": { + "line": 14, + "column": 14 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 283, + "end": 291, + "loc": { + "start": { + "line": 15, + "column": 8 + }, + "end": { + "line": 15, + "column": 16 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 283, + "end": 287, + "loc": { + "start": { + "line": 15, + "column": 8 + }, + "end": { + "line": 15, + "column": 12 + } + }, + "name": "icon" + }, + "value": { + "type": "Literal", + "start": 289, + "end": 291, + "loc": { + "start": { + "line": 15, + "column": 14 + }, + "end": { + "line": 15, + "column": 16 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 301, + "end": 314, + "loc": { + "start": { + "line": 16, + "column": 8 + }, + "end": { + "line": 16, + "column": 21 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 301, + "end": 307, + "loc": { + "start": { + "line": 16, + "column": 8 + }, + "end": { + "line": 16, + "column": 14 + } + }, + "name": "active" + }, + "value": { + "type": "Literal", + "start": 309, + "end": 314, + "loc": { + "start": { + "line": 16, + "column": 16 + }, + "end": { + "line": 16, + "column": 21 + } + }, + "value": false, + "rawValue": false, + "raw": "false" + }, + "kind": "init" + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * defaultProps\n * @type {{to: string, icon: string, active: boolean}}\n ", + "start": 140, + "end": 230, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 12, + "column": 7 + } + }, + "range": [ + 140, + 230 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 327, + "end": 375, + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 22, + "column": 7 + } + }, + "range": [ + 327, + 375 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 380, + "end": 592, + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 29, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 380, + "end": 386, + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 386, + "end": 592, + "loc": { + "start": { + "line": 23, + "column": 10 + }, + "end": { + "line": 29, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 389, + "end": 592, + "loc": { + "start": { + "line": 23, + "column": 13 + }, + "end": { + "line": 29, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 399, + "end": 586, + "loc": { + "start": { + "line": 24, + "column": 8 + }, + "end": { + "line": 28, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 420, + "end": 576, + "loc": { + "start": { + "line": 25, + "column": 12 + }, + "end": { + "line": 27, + "column": 19 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 420, + "end": 522, + "loc": { + "start": { + "line": 25, + "column": 12 + }, + "end": { + "line": 25, + "column": 114 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 426, + "end": 444, + "loc": { + "start": { + "line": 25, + "column": 18 + }, + "end": { + "line": 25, + "column": 36 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 426, + "end": 428, + "loc": { + "start": { + "line": 25, + "column": 18 + }, + "end": { + "line": 25, + "column": 20 + } + }, + "name": "to" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 429, + "end": 444, + "loc": { + "start": { + "line": 25, + "column": 21 + }, + "end": { + "line": 25, + "column": 36 + } + }, + "expression": { + "type": "MemberExpression", + "start": 430, + "end": 443, + "loc": { + "start": { + "line": 25, + "column": 22 + }, + "end": { + "line": 25, + "column": 35 + } + }, + "object": { + "type": "MemberExpression", + "start": 430, + "end": 440, + "loc": { + "start": { + "line": 25, + "column": 22 + }, + "end": { + "line": 25, + "column": 32 + } + }, + "object": { + "type": "ThisExpression", + "start": 430, + "end": 434, + "loc": { + "start": { + "line": 25, + "column": 22 + }, + "end": { + "line": 25, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "start": 435, + "end": 440, + "loc": { + "start": { + "line": 25, + "column": 27 + }, + "end": { + "line": 25, + "column": 32 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 441, + "end": 443, + "loc": { + "start": { + "line": 25, + "column": 33 + }, + "end": { + "line": 25, + "column": 35 + } + }, + "name": "to" + }, + "computed": false + } + } + }, + { + "type": "JSXAttribute", + "start": 445, + "end": 490, + "loc": { + "start": { + "line": 25, + "column": 37 + }, + "end": { + "line": 25, + "column": 82 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 445, + "end": 454, + "loc": { + "start": { + "line": 25, + "column": 37 + }, + "end": { + "line": 25, + "column": 46 + } + }, + "name": "className" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 455, + "end": 490, + "loc": { + "start": { + "line": 25, + "column": 47 + }, + "end": { + "line": 25, + "column": 82 + } + }, + "expression": { + "type": "ConditionalExpression", + "start": 456, + "end": 489, + "loc": { + "start": { + "line": 25, + "column": 48 + }, + "end": { + "line": 25, + "column": 81 + } + }, + "test": { + "type": "MemberExpression", + "start": 456, + "end": 473, + "loc": { + "start": { + "line": 25, + "column": 48 + }, + "end": { + "line": 25, + "column": 65 + } + }, + "object": { + "type": "MemberExpression", + "start": 456, + "end": 466, + "loc": { + "start": { + "line": 25, + "column": 48 + }, + "end": { + "line": 25, + "column": 58 + } + }, + "object": { + "type": "ThisExpression", + "start": 456, + "end": 460, + "loc": { + "start": { + "line": 25, + "column": 48 + }, + "end": { + "line": 25, + "column": 52 + } + } + }, + "property": { + "type": "Identifier", + "start": 461, + "end": 466, + "loc": { + "start": { + "line": 25, + "column": 53 + }, + "end": { + "line": 25, + "column": 58 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 467, + "end": 473, + "loc": { + "start": { + "line": 25, + "column": 59 + }, + "end": { + "line": 25, + "column": 65 + } + }, + "name": "active" + }, + "computed": false + }, + "consequent": { + "type": "Literal", + "start": 476, + "end": 484, + "loc": { + "start": { + "line": 25, + "column": 68 + }, + "end": { + "line": 25, + "column": 76 + } + }, + "value": "active", + "rawValue": "active", + "raw": "'active'" + }, + "alternate": { + "type": "Literal", + "start": 487, + "end": 489, + "loc": { + "start": { + "line": 25, + "column": 79 + }, + "end": { + "line": 25, + "column": 81 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + } + } + } + }, + { + "type": "JSXAttribute", + "start": 491, + "end": 521, + "loc": { + "start": { + "line": 25, + "column": 83 + }, + "end": { + "line": 25, + "column": 113 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 491, + "end": 496, + "loc": { + "start": { + "line": 25, + "column": 83 + }, + "end": { + "line": 25, + "column": 88 + } + }, + "name": "style" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 497, + "end": 521, + "loc": { + "start": { + "line": 25, + "column": 89 + }, + "end": { + "line": 25, + "column": 113 + } + }, + "expression": { + "type": "ObjectExpression", + "start": 498, + "end": 520, + "loc": { + "start": { + "line": 25, + "column": 90 + }, + "end": { + "line": 25, + "column": 112 + } + }, + "properties": [ + { + "type": "Property", + "start": 499, + "end": 519, + "loc": { + "start": { + "line": 25, + "column": 91 + }, + "end": { + "line": 25, + "column": 111 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 499, + "end": 507, + "loc": { + "start": { + "line": 25, + "column": 91 + }, + "end": { + "line": 25, + "column": 99 + } + }, + "name": "position" + }, + "value": { + "type": "Literal", + "start": 509, + "end": 519, + "loc": { + "start": { + "line": 25, + "column": 101 + }, + "end": { + "line": 25, + "column": 111 + } + }, + "value": "relative", + "rawValue": "relative", + "raw": "'relative'" + }, + "kind": "init" + } + ] + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 421, + "end": 425, + "loc": { + "start": { + "line": 25, + "column": 13 + }, + "end": { + "line": 25, + "column": 17 + } + }, + "name": "Link" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 569, + "end": 576, + "loc": { + "start": { + "line": 27, + "column": 12 + }, + "end": { + "line": 27, + "column": 19 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 571, + "end": 575, + "loc": { + "start": { + "line": 27, + "column": 14 + }, + "end": { + "line": 27, + "column": 18 + } + }, + "name": "Link" + } + }, + "children": [ + { + "type": "Literal", + "start": 522, + "end": 539, + "loc": { + "start": { + "line": 25, + "column": 114 + }, + "end": { + "line": 26, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 539, + "end": 556, + "loc": { + "start": { + "line": 26, + "column": 16 + }, + "end": { + "line": 26, + "column": 33 + } + }, + "expression": { + "type": "MemberExpression", + "start": 540, + "end": 555, + "loc": { + "start": { + "line": 26, + "column": 17 + }, + "end": { + "line": 26, + "column": 32 + } + }, + "object": { + "type": "MemberExpression", + "start": 540, + "end": 550, + "loc": { + "start": { + "line": 26, + "column": 17 + }, + "end": { + "line": 26, + "column": 27 + } + }, + "object": { + "type": "ThisExpression", + "start": 540, + "end": 544, + "loc": { + "start": { + "line": 26, + "column": 17 + }, + "end": { + "line": 26, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "start": 545, + "end": 550, + "loc": { + "start": { + "line": 26, + "column": 22 + }, + "end": { + "line": 26, + "column": 27 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 551, + "end": 555, + "loc": { + "start": { + "line": 26, + "column": 28 + }, + "end": { + "line": 26, + "column": 32 + } + }, + "name": "icon" + }, + "computed": false + } + }, + { + "type": "Literal", + "start": 556, + "end": 569, + "loc": { + "start": { + "line": 26, + "column": 33 + }, + "end": { + "line": 27, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 327, + "end": 375, + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 22, + "column": 7 + } + }, + "range": [ + 327, + 375 + ] + } + ] + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Item component\n ", + "start": 78, + "end": 103, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + }, + "range": [ + 78, + 103 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Nav index component\n ", + "start": 596, + "end": 626, + "loc": { + "start": { + "line": 32, + "column": 0 + }, + "end": { + "line": 34, + "column": 3 + } + }, + "range": [ + 596, + 626 + ] + } + ] + }, + { + "type": "Identifier", + "start": 627, + "end": 2261, + "loc": { + "start": { + "line": 35, + "column": 0 + }, + "end": { + "line": 93, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 633, + "end": 636, + "loc": { + "start": { + "line": 35, + "column": 6 + }, + "end": { + "line": 35, + "column": 9 + } + }, + "name": "Nav", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 645, + "end": 654, + "loc": { + "start": { + "line": 35, + "column": 18 + }, + "end": { + "line": 35, + "column": 27 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 655, + "end": 2261, + "loc": { + "start": { + "line": 35, + "column": 28 + }, + "end": { + "line": 93, + "column": 1 + } + }, + "body": [ + { + "type": "Identifier", + "start": 740, + "end": 1306, + "loc": { + "start": { + "line": 41, + "column": 4 + }, + "end": { + "line": 60, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 747, + "end": 759, + "loc": { + "start": { + "line": 41, + "column": 11 + }, + "end": { + "line": 41, + "column": 23 + } + }, + "name": "defaultProps" + }, + "static": true, + "value": { + "type": "ObjectExpression", + "start": 762, + "end": 1306, + "loc": { + "start": { + "line": 41, + "column": 26 + }, + "end": { + "line": 60, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 772, + "end": 784, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 772, + "end": 778, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 14 + } + }, + "name": "active" + }, + "value": { + "type": "Literal", + "start": 780, + "end": 784, + "loc": { + "start": { + "line": 42, + "column": 16 + }, + "end": { + "line": 42, + "column": 20 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 794, + "end": 1300, + "loc": { + "start": { + "line": 43, + "column": 8 + }, + "end": { + "line": 59, + "column": 9 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 794, + "end": 799, + "loc": { + "start": { + "line": 43, + "column": 8 + }, + "end": { + "line": 43, + "column": 13 + } + }, + "name": "items" + }, + "value": { + "type": "ArrayExpression", + "start": 801, + "end": 1300, + "loc": { + "start": { + "line": 43, + "column": 15 + }, + "end": { + "line": 59, + "column": 9 + } + }, + "elements": [ + { + "type": "ObjectExpression", + "start": 815, + "end": 943, + "loc": { + "start": { + "line": 44, + "column": 12 + }, + "end": { + "line": 48, + "column": 13 + } + }, + "properties": [ + { + "type": "Property", + "start": 833, + "end": 849, + "loc": { + "start": { + "line": 45, + "column": 16 + }, + "end": { + "line": 45, + "column": 32 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 833, + "end": 838, + "loc": { + "start": { + "line": 45, + "column": 16 + }, + "end": { + "line": 45, + "column": 21 + } + }, + "name": "label" + }, + "value": { + "type": "Literal", + "start": 840, + "end": 849, + "loc": { + "start": { + "line": 45, + "column": 23 + }, + "end": { + "line": 45, + "column": 32 + } + }, + "value": "explore", + "rawValue": "explore", + "raw": "'explore'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 867, + "end": 897, + "loc": { + "start": { + "line": 46, + "column": 16 + }, + "end": { + "line": 46, + "column": 46 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 867, + "end": 871, + "loc": { + "start": { + "line": 46, + "column": 16 + }, + "end": { + "line": 46, + "column": 20 + } + }, + "name": "icon" + }, + "value": { + "type": "JSXElement", + "start": 873, + "end": 897, + "loc": { + "start": { + "line": 46, + "column": 22 + }, + "end": { + "line": 46, + "column": 46 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 873, + "end": 897, + "loc": { + "start": { + "line": 46, + "column": 22 + }, + "end": { + "line": 46, + "column": 46 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 876, + "end": 895, + "loc": { + "start": { + "line": 46, + "column": 25 + }, + "end": { + "line": 46, + "column": 44 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 876, + "end": 885, + "loc": { + "start": { + "line": 46, + "column": 25 + }, + "end": { + "line": 46, + "column": 34 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 886, + "end": 895, + "loc": { + "start": { + "line": 46, + "column": 35 + }, + "end": { + "line": 46, + "column": 44 + } + }, + "value": "ion-map", + "rawValue": null, + "raw": "\"ion-map\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 874, + "end": 875, + "loc": { + "start": { + "line": 46, + "column": 23 + }, + "end": { + "line": 46, + "column": 24 + } + }, + "name": "i" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + "kind": "init" + }, + { + "type": "Property", + "start": 915, + "end": 929, + "loc": { + "start": { + "line": 47, + "column": 16 + }, + "end": { + "line": 47, + "column": 30 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 915, + "end": 917, + "loc": { + "start": { + "line": 47, + "column": 16 + }, + "end": { + "line": 47, + "column": 18 + } + }, + "name": "to" + }, + "value": { + "type": "Literal", + "start": 919, + "end": 929, + "loc": { + "start": { + "line": 47, + "column": 20 + }, + "end": { + "line": 47, + "column": 30 + } + }, + "value": "/explore", + "rawValue": "/explore", + "raw": "'/explore'" + }, + "kind": "init" + } + ] + }, + { + "type": "ObjectExpression", + "start": 957, + "end": 1086, + "loc": { + "start": { + "line": 49, + "column": 12 + }, + "end": { + "line": 53, + "column": 13 + } + }, + "properties": [ + { + "type": "Property", + "start": 975, + "end": 990, + "loc": { + "start": { + "line": 50, + "column": 16 + }, + "end": { + "line": 50, + "column": 31 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 975, + "end": 980, + "loc": { + "start": { + "line": 50, + "column": 16 + }, + "end": { + "line": 50, + "column": 21 + } + }, + "name": "label" + }, + "value": { + "type": "Literal", + "start": 982, + "end": 990, + "loc": { + "start": { + "line": 50, + "column": 23 + }, + "end": { + "line": 50, + "column": 31 + } + }, + "value": "search", + "rawValue": "search", + "raw": "'search'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1008, + "end": 1041, + "loc": { + "start": { + "line": 51, + "column": 16 + }, + "end": { + "line": 51, + "column": 49 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1008, + "end": 1012, + "loc": { + "start": { + "line": 51, + "column": 16 + }, + "end": { + "line": 51, + "column": 20 + } + }, + "name": "icon" + }, + "value": { + "type": "JSXElement", + "start": 1014, + "end": 1041, + "loc": { + "start": { + "line": 51, + "column": 22 + }, + "end": { + "line": 51, + "column": 49 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1014, + "end": 1041, + "loc": { + "start": { + "line": 51, + "column": 22 + }, + "end": { + "line": 51, + "column": 49 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1017, + "end": 1039, + "loc": { + "start": { + "line": 51, + "column": 25 + }, + "end": { + "line": 51, + "column": 47 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1017, + "end": 1026, + "loc": { + "start": { + "line": 51, + "column": 25 + }, + "end": { + "line": 51, + "column": 34 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 1027, + "end": 1039, + "loc": { + "start": { + "line": 51, + "column": 35 + }, + "end": { + "line": 51, + "column": 47 + } + }, + "value": "ion-search", + "rawValue": null, + "raw": "\"ion-search\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1015, + "end": 1016, + "loc": { + "start": { + "line": 51, + "column": 23 + }, + "end": { + "line": 51, + "column": 24 + } + }, + "name": "i" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1059, + "end": 1072, + "loc": { + "start": { + "line": 52, + "column": 16 + }, + "end": { + "line": 52, + "column": 29 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1059, + "end": 1061, + "loc": { + "start": { + "line": 52, + "column": 16 + }, + "end": { + "line": 52, + "column": 18 + } + }, + "name": "to" + }, + "value": { + "type": "Literal", + "start": 1063, + "end": 1072, + "loc": { + "start": { + "line": 52, + "column": 20 + }, + "end": { + "line": 52, + "column": 29 + } + }, + "value": "/search", + "rawValue": "/search", + "raw": "'/search'" + }, + "kind": "init" + } + ] + }, + { + "type": "ObjectExpression", + "start": 1100, + "end": 1289, + "loc": { + "start": { + "line": 54, + "column": 12 + }, + "end": { + "line": 58, + "column": 13 + } + }, + "properties": [ + { + "type": "Property", + "start": 1118, + "end": 1140, + "loc": { + "start": { + "line": 55, + "column": 16 + }, + "end": { + "line": 55, + "column": 38 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1118, + "end": 1123, + "loc": { + "start": { + "line": 55, + "column": 16 + }, + "end": { + "line": 55, + "column": 21 + } + }, + "name": "label" + }, + "value": { + "type": "Literal", + "start": 1125, + "end": 1140, + "loc": { + "start": { + "line": 55, + "column": 23 + }, + "end": { + "line": 55, + "column": 38 + } + }, + "value": "notifications", + "rawValue": "notifications", + "raw": "'notifications'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1158, + "end": 1229, + "loc": { + "start": { + "line": 56, + "column": 16 + }, + "end": { + "line": 56, + "column": 87 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1158, + "end": 1162, + "loc": { + "start": { + "line": 56, + "column": 16 + }, + "end": { + "line": 56, + "column": 20 + } + }, + "name": "icon" + }, + "value": { + "type": "JSXElement", + "start": 1164, + "end": 1229, + "loc": { + "start": { + "line": 56, + "column": 22 + }, + "end": { + "line": 56, + "column": 87 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1164, + "end": 1192, + "loc": { + "start": { + "line": 56, + "column": 22 + }, + "end": { + "line": 56, + "column": 50 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1167, + "end": 1191, + "loc": { + "start": { + "line": 56, + "column": 25 + }, + "end": { + "line": 56, + "column": 49 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1167, + "end": 1176, + "loc": { + "start": { + "line": 56, + "column": 25 + }, + "end": { + "line": 56, + "column": 34 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 1177, + "end": 1191, + "loc": { + "start": { + "line": 56, + "column": 35 + }, + "end": { + "line": 56, + "column": 49 + } + }, + "value": "ion-ios-bell", + "rawValue": null, + "raw": "\"ion-ios-bell\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1165, + "end": 1166, + "loc": { + "start": { + "line": 56, + "column": 23 + }, + "end": { + "line": 56, + "column": 24 + } + }, + "name": "i" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1225, + "end": 1229, + "loc": { + "start": { + "line": 56, + "column": 83 + }, + "end": { + "line": 56, + "column": 87 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1227, + "end": 1228, + "loc": { + "start": { + "line": 56, + "column": 85 + }, + "end": { + "line": 56, + "column": 86 + } + }, + "name": "i" + } + }, + "children": [ + { + "type": "JSXElement", + "start": 1192, + "end": 1225, + "loc": { + "start": { + "line": 56, + "column": 50 + }, + "end": { + "line": 56, + "column": 83 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1192, + "end": 1225, + "loc": { + "start": { + "line": 56, + "column": 50 + }, + "end": { + "line": 56, + "column": 83 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1195, + "end": 1223, + "loc": { + "start": { + "line": 56, + "column": 53 + }, + "end": { + "line": 56, + "column": 81 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1195, + "end": 1204, + "loc": { + "start": { + "line": 56, + "column": 53 + }, + "end": { + "line": 56, + "column": 62 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 1205, + "end": 1223, + "loc": { + "start": { + "line": 56, + "column": 63 + }, + "end": { + "line": 56, + "column": 81 + } + }, + "value": "alert ion-record", + "rawValue": null, + "raw": "\"alert ion-record\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1193, + "end": 1194, + "loc": { + "start": { + "line": 56, + "column": 51 + }, + "end": { + "line": 56, + "column": 52 + } + }, + "name": "i" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + ] + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1247, + "end": 1275, + "loc": { + "start": { + "line": 57, + "column": 16 + }, + "end": { + "line": 57, + "column": 44 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1247, + "end": 1249, + "loc": { + "start": { + "line": 57, + "column": 16 + }, + "end": { + "line": 57, + "column": 18 + } + }, + "name": "to" + }, + "value": { + "type": "Literal", + "start": 1251, + "end": 1275, + "loc": { + "start": { + "line": 57, + "column": 20 + }, + "end": { + "line": 57, + "column": 44 + } + }, + "value": "/profile/notifications", + "rawValue": "/profile/notifications", + "raw": "'/profile/notifications'" + }, + "kind": "init" + } + ] + } + ] + }, + "kind": "init" + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * defaultProps\n * @type {{active: null, items: *[]}}\n ", + "start": 662, + "end": 735, + "loc": { + "start": { + "line": 37, + "column": 4 + }, + "end": { + "line": 40, + "column": 7 + } + }, + "range": [ + 662, + 735 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 1312, + "end": 1360, + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 65, + "column": 7 + } + }, + "range": [ + 1312, + 1360 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 1365, + "end": 2259, + "loc": { + "start": { + "line": 66, + "column": 4 + }, + "end": { + "line": 92, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 1365, + "end": 1371, + "loc": { + "start": { + "line": 66, + "column": 4 + }, + "end": { + "line": 66, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 1371, + "end": 2259, + "loc": { + "start": { + "line": 66, + "column": 10 + }, + "end": { + "line": 92, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 1374, + "end": 2259, + "loc": { + "start": { + "line": 66, + "column": 13 + }, + "end": { + "line": 92, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 1385, + "end": 1400, + "loc": { + "start": { + "line": 68, + "column": 8 + }, + "end": { + "line": 68, + "column": 23 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1389, + "end": 1400, + "loc": { + "start": { + "line": 68, + "column": 12 + }, + "end": { + "line": 68, + "column": 23 + } + }, + "id": { + "type": "Identifier", + "start": 1389, + "end": 1400, + "loc": { + "start": { + "line": 68, + "column": 12 + }, + "end": { + "line": 68, + "column": 23 + } + }, + "name": "activeIndex" + }, + "init": null + } + ], + "kind": "let" + }, + { + "type": "ExpressionStatement", + "start": 1409, + "end": 1524, + "loc": { + "start": { + "line": 69, + "column": 8 + }, + "end": { + "line": 71, + "column": 10 + } + }, + "expression": { + "type": "CallExpression", + "start": 1409, + "end": 1524, + "loc": { + "start": { + "line": 69, + "column": 8 + }, + "end": { + "line": 71, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1409, + "end": 1433, + "loc": { + "start": { + "line": 69, + "column": 8 + }, + "end": { + "line": 69, + "column": 32 + } + }, + "object": { + "type": "MemberExpression", + "start": 1409, + "end": 1425, + "loc": { + "start": { + "line": 69, + "column": 8 + }, + "end": { + "line": 69, + "column": 24 + } + }, + "object": { + "type": "MemberExpression", + "start": 1409, + "end": 1419, + "loc": { + "start": { + "line": 69, + "column": 8 + }, + "end": { + "line": 69, + "column": 18 + } + }, + "object": { + "type": "ThisExpression", + "start": 1409, + "end": 1413, + "loc": { + "start": { + "line": 69, + "column": 8 + }, + "end": { + "line": 69, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 1414, + "end": 1419, + "loc": { + "start": { + "line": 69, + "column": 13 + }, + "end": { + "line": 69, + "column": 18 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1420, + "end": 1425, + "loc": { + "start": { + "line": 69, + "column": 19 + }, + "end": { + "line": 69, + "column": 24 + } + }, + "name": "items" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1426, + "end": 1433, + "loc": { + "start": { + "line": 69, + "column": 25 + }, + "end": { + "line": 69, + "column": 32 + } + }, + "name": "forEach" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 1434, + "end": 1523, + "loc": { + "start": { + "line": 69, + "column": 33 + }, + "end": { + "line": 71, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1435, + "end": 1439, + "loc": { + "start": { + "line": 69, + "column": 34 + }, + "end": { + "line": 69, + "column": 38 + } + }, + "name": "item" + }, + { + "type": "Identifier", + "start": 1441, + "end": 1442, + "loc": { + "start": { + "line": 69, + "column": 40 + }, + "end": { + "line": 69, + "column": 41 + } + }, + "name": "i" + } + ], + "body": { + "type": "BlockStatement", + "start": 1447, + "end": 1523, + "loc": { + "start": { + "line": 69, + "column": 46 + }, + "end": { + "line": 71, + "column": 9 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 1461, + "end": 1513, + "loc": { + "start": { + "line": 70, + "column": 12 + }, + "end": { + "line": 70, + "column": 64 + } + }, + "test": { + "type": "BinaryExpression", + "start": 1465, + "end": 1496, + "loc": { + "start": { + "line": 70, + "column": 16 + }, + "end": { + "line": 70, + "column": 47 + } + }, + "left": { + "type": "MemberExpression", + "start": 1465, + "end": 1475, + "loc": { + "start": { + "line": 70, + "column": 16 + }, + "end": { + "line": 70, + "column": 26 + } + }, + "object": { + "type": "Identifier", + "start": 1465, + "end": 1469, + "loc": { + "start": { + "line": 70, + "column": 16 + }, + "end": { + "line": 70, + "column": 20 + } + }, + "name": "item" + }, + "property": { + "type": "Identifier", + "start": 1470, + "end": 1475, + "loc": { + "start": { + "line": 70, + "column": 21 + }, + "end": { + "line": 70, + "column": 26 + } + }, + "name": "label" + }, + "computed": false + }, + "operator": "==", + "right": { + "type": "MemberExpression", + "start": 1479, + "end": 1496, + "loc": { + "start": { + "line": 70, + "column": 30 + }, + "end": { + "line": 70, + "column": 47 + } + }, + "object": { + "type": "MemberExpression", + "start": 1479, + "end": 1489, + "loc": { + "start": { + "line": 70, + "column": 30 + }, + "end": { + "line": 70, + "column": 40 + } + }, + "object": { + "type": "ThisExpression", + "start": 1479, + "end": 1483, + "loc": { + "start": { + "line": 70, + "column": 30 + }, + "end": { + "line": 70, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "start": 1484, + "end": 1489, + "loc": { + "start": { + "line": 70, + "column": 35 + }, + "end": { + "line": 70, + "column": 40 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1490, + "end": 1496, + "loc": { + "start": { + "line": 70, + "column": 41 + }, + "end": { + "line": 70, + "column": 47 + } + }, + "name": "active" + }, + "computed": false + } + }, + "consequent": { + "type": "ExpressionStatement", + "start": 1498, + "end": 1513, + "loc": { + "start": { + "line": 70, + "column": 49 + }, + "end": { + "line": 70, + "column": 64 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1498, + "end": 1513, + "loc": { + "start": { + "line": 70, + "column": 49 + }, + "end": { + "line": 70, + "column": 64 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 1498, + "end": 1509, + "loc": { + "start": { + "line": 70, + "column": 49 + }, + "end": { + "line": 70, + "column": 60 + } + }, + "name": "activeIndex" + }, + "right": { + "type": "Identifier", + "start": 1512, + "end": 1513, + "loc": { + "start": { + "line": 70, + "column": 63 + }, + "end": { + "line": 70, + "column": 64 + } + }, + "name": "i" + } + } + }, + "alternate": null + } + ] + } + } + ] + } + }, + { + "type": "VariableDeclaration", + "start": 1534, + "end": 1691, + "loc": { + "start": { + "line": 73, + "column": 8 + }, + "end": { + "line": 76, + "column": 9 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1540, + "end": 1691, + "loc": { + "start": { + "line": 73, + "column": 14 + }, + "end": { + "line": 76, + "column": 9 + } + }, + "id": { + "type": "Identifier", + "start": 1540, + "end": 1549, + "loc": { + "start": { + "line": 73, + "column": 14 + }, + "end": { + "line": 73, + "column": 23 + } + }, + "name": "indicator" + }, + "init": { + "type": "ObjectExpression", + "start": 1552, + "end": 1691, + "loc": { + "start": { + "line": 73, + "column": 26 + }, + "end": { + "line": 76, + "column": 9 + } + }, + "properties": [ + { + "type": "Property", + "start": 1566, + "end": 1610, + "loc": { + "start": { + "line": 74, + "column": 12 + }, + "end": { + "line": 74, + "column": 56 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1566, + "end": 1571, + "loc": { + "start": { + "line": 74, + "column": 12 + }, + "end": { + "line": 74, + "column": 17 + } + }, + "name": "width" + }, + "value": { + "type": "BinaryExpression", + "start": 1573, + "end": 1610, + "loc": { + "start": { + "line": 74, + "column": 19 + }, + "end": { + "line": 74, + "column": 56 + } + }, + "left": { + "type": "BinaryExpression", + "start": 1574, + "end": 1603, + "loc": { + "start": { + "line": 74, + "column": 20 + }, + "end": { + "line": 74, + "column": 49 + } + }, + "left": { + "type": "Literal", + "start": 1574, + "end": 1577, + "loc": { + "start": { + "line": 74, + "column": 20 + }, + "end": { + "line": 74, + "column": 23 + } + }, + "value": 100, + "rawValue": 100, + "raw": "100" + }, + "operator": "/", + "right": { + "type": "MemberExpression", + "start": 1580, + "end": 1603, + "loc": { + "start": { + "line": 74, + "column": 26 + }, + "end": { + "line": 74, + "column": 49 + } + }, + "object": { + "type": "MemberExpression", + "start": 1580, + "end": 1596, + "loc": { + "start": { + "line": 74, + "column": 26 + }, + "end": { + "line": 74, + "column": 42 + } + }, + "object": { + "type": "MemberExpression", + "start": 1580, + "end": 1590, + "loc": { + "start": { + "line": 74, + "column": 26 + }, + "end": { + "line": 74, + "column": 36 + } + }, + "object": { + "type": "ThisExpression", + "start": 1580, + "end": 1584, + "loc": { + "start": { + "line": 74, + "column": 26 + }, + "end": { + "line": 74, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "start": 1585, + "end": 1590, + "loc": { + "start": { + "line": 74, + "column": 31 + }, + "end": { + "line": 74, + "column": 36 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1591, + "end": 1596, + "loc": { + "start": { + "line": 74, + "column": 37 + }, + "end": { + "line": 74, + "column": 42 + } + }, + "name": "items" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1597, + "end": 1603, + "loc": { + "start": { + "line": 74, + "column": 43 + }, + "end": { + "line": 74, + "column": 49 + } + }, + "name": "length" + }, + "computed": false + }, + "parenthesizedExpression": true + }, + "operator": "+", + "right": { + "type": "Literal", + "start": 1607, + "end": 1610, + "loc": { + "start": { + "line": 74, + "column": 53 + }, + "end": { + "line": 74, + "column": 56 + } + }, + "value": "%", + "rawValue": "%", + "raw": "'%'" + } + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1624, + "end": 1681, + "loc": { + "start": { + "line": 75, + "column": 12 + }, + "end": { + "line": 75, + "column": 69 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1624, + "end": 1628, + "loc": { + "start": { + "line": 75, + "column": 12 + }, + "end": { + "line": 75, + "column": 16 + } + }, + "name": "left" + }, + "value": { + "type": "BinaryExpression", + "start": 1630, + "end": 1681, + "loc": { + "start": { + "line": 75, + "column": 18 + }, + "end": { + "line": 75, + "column": 69 + } + }, + "left": { + "type": "BinaryExpression", + "start": 1630, + "end": 1675, + "loc": { + "start": { + "line": 75, + "column": 18 + }, + "end": { + "line": 75, + "column": 63 + } + }, + "left": { + "type": "BinaryExpression", + "start": 1631, + "end": 1660, + "loc": { + "start": { + "line": 75, + "column": 19 + }, + "end": { + "line": 75, + "column": 48 + } + }, + "left": { + "type": "Literal", + "start": 1631, + "end": 1634, + "loc": { + "start": { + "line": 75, + "column": 19 + }, + "end": { + "line": 75, + "column": 22 + } + }, + "value": 100, + "rawValue": 100, + "raw": "100" + }, + "operator": "/", + "right": { + "type": "MemberExpression", + "start": 1637, + "end": 1660, + "loc": { + "start": { + "line": 75, + "column": 25 + }, + "end": { + "line": 75, + "column": 48 + } + }, + "object": { + "type": "MemberExpression", + "start": 1637, + "end": 1653, + "loc": { + "start": { + "line": 75, + "column": 25 + }, + "end": { + "line": 75, + "column": 41 + } + }, + "object": { + "type": "MemberExpression", + "start": 1637, + "end": 1647, + "loc": { + "start": { + "line": 75, + "column": 25 + }, + "end": { + "line": 75, + "column": 35 + } + }, + "object": { + "type": "ThisExpression", + "start": 1637, + "end": 1641, + "loc": { + "start": { + "line": 75, + "column": 25 + }, + "end": { + "line": 75, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "start": 1642, + "end": 1647, + "loc": { + "start": { + "line": 75, + "column": 30 + }, + "end": { + "line": 75, + "column": 35 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1648, + "end": 1653, + "loc": { + "start": { + "line": 75, + "column": 36 + }, + "end": { + "line": 75, + "column": 41 + } + }, + "name": "items" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1654, + "end": 1660, + "loc": { + "start": { + "line": 75, + "column": 42 + }, + "end": { + "line": 75, + "column": 48 + } + }, + "name": "length" + }, + "computed": false + }, + "parenthesizedExpression": true + }, + "operator": "*", + "right": { + "type": "Identifier", + "start": 1664, + "end": 1675, + "loc": { + "start": { + "line": 75, + "column": 52 + }, + "end": { + "line": 75, + "column": 63 + } + }, + "name": "activeIndex" + } + }, + "operator": "+", + "right": { + "type": "Literal", + "start": 1678, + "end": 1681, + "loc": { + "start": { + "line": 75, + "column": 66 + }, + "end": { + "line": 75, + "column": 69 + } + }, + "value": "%", + "rawValue": "%", + "raw": "'%'" + } + }, + "kind": "init" + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "ReturnStatement", + "start": 1701, + "end": 2253, + "loc": { + "start": { + "line": 78, + "column": 8 + }, + "end": { + "line": 91, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 1722, + "end": 2243, + "loc": { + "start": { + "line": 79, + "column": 12 + }, + "end": { + "line": 90, + "column": 18 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1722, + "end": 1751, + "loc": { + "start": { + "line": 79, + "column": 12 + }, + "end": { + "line": 79, + "column": 41 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1727, + "end": 1750, + "loc": { + "start": { + "line": 79, + "column": 17 + }, + "end": { + "line": 79, + "column": 40 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1727, + "end": 1736, + "loc": { + "start": { + "line": 79, + "column": 17 + }, + "end": { + "line": 79, + "column": 26 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 1737, + "end": 1750, + "loc": { + "start": { + "line": 79, + "column": 27 + }, + "end": { + "line": 79, + "column": 40 + } + }, + "value": "item middle", + "rawValue": null, + "raw": "\"item middle\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1723, + "end": 1726, + "loc": { + "start": { + "line": 79, + "column": 13 + }, + "end": { + "line": 79, + "column": 16 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2237, + "end": 2243, + "loc": { + "start": { + "line": 90, + "column": 12 + }, + "end": { + "line": 90, + "column": 18 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2239, + "end": 2242, + "loc": { + "start": { + "line": 90, + "column": 14 + }, + "end": { + "line": 90, + "column": 17 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 1751, + "end": 1768, + "loc": { + "start": { + "line": 79, + "column": 41 + }, + "end": { + "line": 80, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1768, + "end": 2083, + "loc": { + "start": { + "line": 80, + "column": 16 + }, + "end": { + "line": 86, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1768, + "end": 1773, + "loc": { + "start": { + "line": 80, + "column": 16 + }, + "end": { + "line": 80, + "column": 21 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 1769, + "end": 1772, + "loc": { + "start": { + "line": 80, + "column": 17 + }, + "end": { + "line": 80, + "column": 20 + } + }, + "name": "nav" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2077, + "end": 2083, + "loc": { + "start": { + "line": 86, + "column": 16 + }, + "end": { + "line": 86, + "column": 22 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2079, + "end": 2082, + "loc": { + "start": { + "line": 86, + "column": 18 + }, + "end": { + "line": 86, + "column": 21 + } + }, + "name": "nav" + } + }, + "children": [ + { + "type": "Literal", + "start": 1773, + "end": 1794, + "loc": { + "start": { + "line": 80, + "column": 21 + }, + "end": { + "line": 81, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 1794, + "end": 2060, + "loc": { + "start": { + "line": 81, + "column": 20 + }, + "end": { + "line": 85, + "column": 23 + } + }, + "expression": { + "type": "CallExpression", + "start": 1795, + "end": 2059, + "loc": { + "start": { + "line": 81, + "column": 21 + }, + "end": { + "line": 85, + "column": 22 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1795, + "end": 1815, + "loc": { + "start": { + "line": 81, + "column": 21 + }, + "end": { + "line": 81, + "column": 41 + } + }, + "object": { + "type": "MemberExpression", + "start": 1795, + "end": 1811, + "loc": { + "start": { + "line": 81, + "column": 21 + }, + "end": { + "line": 81, + "column": 37 + } + }, + "object": { + "type": "MemberExpression", + "start": 1795, + "end": 1805, + "loc": { + "start": { + "line": 81, + "column": 21 + }, + "end": { + "line": 81, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 1795, + "end": 1799, + "loc": { + "start": { + "line": 81, + "column": 21 + }, + "end": { + "line": 81, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "start": 1800, + "end": 1805, + "loc": { + "start": { + "line": 81, + "column": 26 + }, + "end": { + "line": 81, + "column": 31 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1806, + "end": 1811, + "loc": { + "start": { + "line": 81, + "column": 32 + }, + "end": { + "line": 81, + "column": 37 + } + }, + "name": "items" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1812, + "end": 1815, + "loc": { + "start": { + "line": 81, + "column": 38 + }, + "end": { + "line": 81, + "column": 41 + } + }, + "name": "map" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 1816, + "end": 2058, + "loc": { + "start": { + "line": 81, + "column": 42 + }, + "end": { + "line": 85, + "column": 21 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1817, + "end": 1821, + "loc": { + "start": { + "line": 81, + "column": 43 + }, + "end": { + "line": 81, + "column": 47 + } + }, + "name": "item" + }, + { + "type": "Identifier", + "start": 1823, + "end": 1824, + "loc": { + "start": { + "line": 81, + "column": 49 + }, + "end": { + "line": 81, + "column": 50 + } + }, + "name": "i" + } + ], + "body": { + "type": "BlockStatement", + "start": 1829, + "end": 2058, + "loc": { + "start": { + "line": 81, + "column": 55 + }, + "end": { + "line": 85, + "column": 21 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1855, + "end": 1874, + "loc": { + "start": { + "line": 82, + "column": 24 + }, + "end": { + "line": 82, + "column": 43 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1855, + "end": 1874, + "loc": { + "start": { + "line": 82, + "column": 24 + }, + "end": { + "line": 82, + "column": 43 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 1855, + "end": 1866, + "loc": { + "start": { + "line": 82, + "column": 24 + }, + "end": { + "line": 82, + "column": 35 + } + }, + "object": { + "type": "Identifier", + "start": 1855, + "end": 1859, + "loc": { + "start": { + "line": 82, + "column": 24 + }, + "end": { + "line": 82, + "column": 28 + } + }, + "name": "item" + }, + "property": { + "type": "Identifier", + "start": 1860, + "end": 1866, + "loc": { + "start": { + "line": 82, + "column": 29 + }, + "end": { + "line": 82, + "column": 35 + } + }, + "name": "active" + }, + "computed": false + }, + "right": { + "type": "Literal", + "start": 1869, + "end": 1874, + "loc": { + "start": { + "line": 82, + "column": 38 + }, + "end": { + "line": 82, + "column": 43 + } + }, + "value": false, + "rawValue": false, + "raw": "false" + } + } + }, + { + "type": "IfStatement", + "start": 1899, + "end": 1955, + "loc": { + "start": { + "line": 83, + "column": 24 + }, + "end": { + "line": 83, + "column": 80 + } + }, + "test": { + "type": "BinaryExpression", + "start": 1903, + "end": 1935, + "loc": { + "start": { + "line": 83, + "column": 28 + }, + "end": { + "line": 83, + "column": 60 + } + }, + "left": { + "type": "MemberExpression", + "start": 1903, + "end": 1913, + "loc": { + "start": { + "line": 83, + "column": 28 + }, + "end": { + "line": 83, + "column": 38 + } + }, + "object": { + "type": "Identifier", + "start": 1903, + "end": 1907, + "loc": { + "start": { + "line": 83, + "column": 28 + }, + "end": { + "line": 83, + "column": 32 + } + }, + "name": "item" + }, + "property": { + "type": "Identifier", + "start": 1908, + "end": 1913, + "loc": { + "start": { + "line": 83, + "column": 33 + }, + "end": { + "line": 83, + "column": 38 + } + }, + "name": "label" + }, + "computed": false + }, + "operator": "===", + "right": { + "type": "MemberExpression", + "start": 1918, + "end": 1935, + "loc": { + "start": { + "line": 83, + "column": 43 + }, + "end": { + "line": 83, + "column": 60 + } + }, + "object": { + "type": "MemberExpression", + "start": 1918, + "end": 1928, + "loc": { + "start": { + "line": 83, + "column": 43 + }, + "end": { + "line": 83, + "column": 53 + } + }, + "object": { + "type": "ThisExpression", + "start": 1918, + "end": 1922, + "loc": { + "start": { + "line": 83, + "column": 43 + }, + "end": { + "line": 83, + "column": 47 + } + } + }, + "property": { + "type": "Identifier", + "start": 1923, + "end": 1928, + "loc": { + "start": { + "line": 83, + "column": 48 + }, + "end": { + "line": 83, + "column": 53 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1929, + "end": 1935, + "loc": { + "start": { + "line": 83, + "column": 54 + }, + "end": { + "line": 83, + "column": 60 + } + }, + "name": "active" + }, + "computed": false + } + }, + "consequent": { + "type": "ExpressionStatement", + "start": 1937, + "end": 1955, + "loc": { + "start": { + "line": 83, + "column": 62 + }, + "end": { + "line": 83, + "column": 80 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1937, + "end": 1955, + "loc": { + "start": { + "line": 83, + "column": 62 + }, + "end": { + "line": 83, + "column": 80 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 1937, + "end": 1948, + "loc": { + "start": { + "line": 83, + "column": 62 + }, + "end": { + "line": 83, + "column": 73 + } + }, + "object": { + "type": "Identifier", + "start": 1937, + "end": 1941, + "loc": { + "start": { + "line": 83, + "column": 62 + }, + "end": { + "line": 83, + "column": 66 + } + }, + "name": "item" + }, + "property": { + "type": "Identifier", + "start": 1942, + "end": 1948, + "loc": { + "start": { + "line": 83, + "column": 67 + }, + "end": { + "line": 83, + "column": 73 + } + }, + "name": "active" + }, + "computed": false + }, + "right": { + "type": "Literal", + "start": 1951, + "end": 1955, + "loc": { + "start": { + "line": 83, + "column": 76 + }, + "end": { + "line": 83, + "column": 80 + } + }, + "value": true, + "rawValue": true, + "raw": "true" + } + } + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 1980, + "end": 2036, + "loc": { + "start": { + "line": 84, + "column": 24 + }, + "end": { + "line": 84, + "column": 80 + } + }, + "argument": { + "type": "JSXElement", + "start": 1987, + "end": 2036, + "loc": { + "start": { + "line": 84, + "column": 31 + }, + "end": { + "line": 84, + "column": 80 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1987, + "end": 2036, + "loc": { + "start": { + "line": 84, + "column": 31 + }, + "end": { + "line": 84, + "column": 80 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1993, + "end": 2023, + "loc": { + "start": { + "line": 84, + "column": 37 + }, + "end": { + "line": 84, + "column": 67 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1993, + "end": 1996, + "loc": { + "start": { + "line": 84, + "column": 37 + }, + "end": { + "line": 84, + "column": 40 + } + }, + "name": "key" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 1997, + "end": 2023, + "loc": { + "start": { + "line": 84, + "column": 41 + }, + "end": { + "line": 84, + "column": 67 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 1998, + "end": 2022, + "loc": { + "start": { + "line": 84, + "column": 42 + }, + "end": { + "line": 84, + "column": 66 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 2010, + "end": 2020, + "loc": { + "start": { + "line": 84, + "column": 54 + }, + "end": { + "line": 84, + "column": 64 + } + }, + "object": { + "type": "Identifier", + "start": 2010, + "end": 2014, + "loc": { + "start": { + "line": 84, + "column": 54 + }, + "end": { + "line": 84, + "column": 58 + } + }, + "name": "item" + }, + "property": { + "type": "Identifier", + "start": 2015, + "end": 2020, + "loc": { + "start": { + "line": 84, + "column": 59 + }, + "end": { + "line": 84, + "column": 64 + } + }, + "name": "label" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 1999, + "end": 2008, + "loc": { + "start": { + "line": 84, + "column": 43 + }, + "end": { + "line": 84, + "column": 52 + } + }, + "value": { + "raw": "nav-item-", + "cooked": "nav-item-" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 2021, + "end": 2021, + "loc": { + "start": { + "line": 84, + "column": 65 + }, + "end": { + "line": 84, + "column": 65 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + }, + { + "type": "JSXSpreadAttribute", + "start": 2024, + "end": 2033, + "loc": { + "start": { + "line": 84, + "column": 68 + }, + "end": { + "line": 84, + "column": 77 + } + }, + "argument": { + "type": "Identifier", + "start": 2028, + "end": 2032, + "loc": { + "start": { + "line": 84, + "column": 72 + }, + "end": { + "line": 84, + "column": 76 + } + }, + "name": "item" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1988, + "end": 1992, + "loc": { + "start": { + "line": 84, + "column": 32 + }, + "end": { + "line": 84, + "column": 36 + } + }, + "name": "Item" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + } + ] + } + } + ] + } + }, + { + "type": "Literal", + "start": 2060, + "end": 2077, + "loc": { + "start": { + "line": 85, + "column": 23 + }, + "end": { + "line": 86, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 2083, + "end": 2100, + "loc": { + "start": { + "line": 86, + "column": 22 + }, + "end": { + "line": 87, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 2100, + "end": 2224, + "loc": { + "start": { + "line": 87, + "column": 16 + }, + "end": { + "line": 89, + "column": 27 + } + }, + "expression": { + "type": "ConditionalExpression", + "start": 2101, + "end": 2223, + "loc": { + "start": { + "line": 87, + "column": 17 + }, + "end": { + "line": 89, + "column": 26 + } + }, + "test": { + "type": "BinaryExpression", + "start": 2101, + "end": 2127, + "loc": { + "start": { + "line": 87, + "column": 17 + }, + "end": { + "line": 87, + "column": 43 + } + }, + "left": { + "type": "MemberExpression", + "start": 2101, + "end": 2118, + "loc": { + "start": { + "line": 87, + "column": 17 + }, + "end": { + "line": 87, + "column": 34 + } + }, + "object": { + "type": "MemberExpression", + "start": 2101, + "end": 2111, + "loc": { + "start": { + "line": 87, + "column": 17 + }, + "end": { + "line": 87, + "column": 27 + } + }, + "object": { + "type": "ThisExpression", + "start": 2101, + "end": 2105, + "loc": { + "start": { + "line": 87, + "column": 17 + }, + "end": { + "line": 87, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "start": 2106, + "end": 2111, + "loc": { + "start": { + "line": 87, + "column": 22 + }, + "end": { + "line": 87, + "column": 27 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2112, + "end": 2118, + "loc": { + "start": { + "line": 87, + "column": 28 + }, + "end": { + "line": 87, + "column": 34 + } + }, + "name": "active" + }, + "computed": false + }, + "operator": "!==", + "right": { + "type": "Literal", + "start": 2123, + "end": 2127, + "loc": { + "start": { + "line": 87, + "column": 39 + }, + "end": { + "line": 87, + "column": 43 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + } + }, + "consequent": { + "type": "JSXElement", + "start": 2150, + "end": 2196, + "loc": { + "start": { + "line": 88, + "column": 22 + }, + "end": { + "line": 88, + "column": 68 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2150, + "end": 2196, + "loc": { + "start": { + "line": 88, + "column": 22 + }, + "end": { + "line": 88, + "column": 68 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2155, + "end": 2176, + "loc": { + "start": { + "line": 88, + "column": 27 + }, + "end": { + "line": 88, + "column": 48 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2155, + "end": 2164, + "loc": { + "start": { + "line": 88, + "column": 27 + }, + "end": { + "line": 88, + "column": 36 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 2165, + "end": 2176, + "loc": { + "start": { + "line": 88, + "column": 37 + }, + "end": { + "line": 88, + "column": 48 + } + }, + "value": "indicator", + "rawValue": null, + "raw": "\"indicator\"" + } + }, + { + "type": "JSXAttribute", + "start": 2177, + "end": 2194, + "loc": { + "start": { + "line": 88, + "column": 49 + }, + "end": { + "line": 88, + "column": 66 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2177, + "end": 2182, + "loc": { + "start": { + "line": 88, + "column": 49 + }, + "end": { + "line": 88, + "column": 54 + } + }, + "name": "style" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2183, + "end": 2194, + "loc": { + "start": { + "line": 88, + "column": 55 + }, + "end": { + "line": 88, + "column": 66 + } + }, + "expression": { + "type": "Identifier", + "start": 2184, + "end": 2193, + "loc": { + "start": { + "line": 88, + "column": 56 + }, + "end": { + "line": 88, + "column": 65 + } + }, + "name": "indicator" + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2151, + "end": 2154, + "loc": { + "start": { + "line": 88, + "column": 23 + }, + "end": { + "line": 88, + "column": 26 + } + }, + "name": "div" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + "alternate": { + "type": "Literal", + "start": 2219, + "end": 2223, + "loc": { + "start": { + "line": 89, + "column": 22 + }, + "end": { + "line": 89, + "column": 26 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + } + } + }, + { + "type": "Literal", + "start": 2224, + "end": 2237, + "loc": { + "start": { + "line": 89, + "column": 27 + }, + "end": { + "line": 90, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 1312, + "end": 1360, + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 65, + "column": 7 + } + }, + "range": [ + 1312, + 1360 + ] + } + ] + } + ] + }, + "leadingComments": [], + "name": "_", + "trailingComments": [] + }, + { + "type": "Identifier", + "start": 2263, + "end": 2281, + "loc": { + "start": { + "line": 95, + "column": 0 + }, + "end": { + "line": 95, + "column": 18 + } + }, + "declaration": { + "type": "Identifier", + "start": 2278, + "end": 2281, + "loc": { + "start": { + "line": 95, + "column": 15 + }, + "end": { + "line": 95, + "column": 18 + } + }, + "name": "Nav" + }, + "name": "_", + "leadingComments": [], + "trailingComments": [] + }, + { + "type": "ExportDefaultDeclaration", + "start": 2263, + "end": 2281, + "loc": { + "start": { + "line": 95, + "column": 0 + }, + "end": { + "line": 95, + "column": 18 + } + }, + "declaration": { + "type": "ClassDeclaration", + "start": 627, + "end": 2261, + "loc": { + "start": { + "line": 35, + "column": 0 + }, + "end": { + "line": 93, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 633, + "end": 636, + "loc": { + "start": { + "line": 35, + "column": 6 + }, + "end": { + "line": 35, + "column": 9 + } + }, + "name": "Nav", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 645, + "end": 654, + "loc": { + "start": { + "line": 35, + "column": 18 + }, + "end": { + "line": 35, + "column": 27 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 655, + "end": 2261, + "loc": { + "start": { + "line": 35, + "column": 28 + }, + "end": { + "line": 93, + "column": 1 + } + }, + "body": [ + { + "type": "Identifier", + "start": 740, + "end": 1306, + "loc": { + "start": { + "line": 41, + "column": 4 + }, + "end": { + "line": 60, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 747, + "end": 759, + "loc": { + "start": { + "line": 41, + "column": 11 + }, + "end": { + "line": 41, + "column": 23 + } + }, + "name": "defaultProps" + }, + "static": true, + "value": { + "type": "ObjectExpression", + "start": 762, + "end": 1306, + "loc": { + "start": { + "line": 41, + "column": 26 + }, + "end": { + "line": 60, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 772, + "end": 784, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 772, + "end": 778, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 14 + } + }, + "name": "active" + }, + "value": { + "type": "Literal", + "start": 780, + "end": 784, + "loc": { + "start": { + "line": 42, + "column": 16 + }, + "end": { + "line": 42, + "column": 20 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 794, + "end": 1300, + "loc": { + "start": { + "line": 43, + "column": 8 + }, + "end": { + "line": 59, + "column": 9 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 794, + "end": 799, + "loc": { + "start": { + "line": 43, + "column": 8 + }, + "end": { + "line": 43, + "column": 13 + } + }, + "name": "items" + }, + "value": { + "type": "ArrayExpression", + "start": 801, + "end": 1300, + "loc": { + "start": { + "line": 43, + "column": 15 + }, + "end": { + "line": 59, + "column": 9 + } + }, + "elements": [ + { + "type": "ObjectExpression", + "start": 815, + "end": 943, + "loc": { + "start": { + "line": 44, + "column": 12 + }, + "end": { + "line": 48, + "column": 13 + } + }, + "properties": [ + { + "type": "Property", + "start": 833, + "end": 849, + "loc": { + "start": { + "line": 45, + "column": 16 + }, + "end": { + "line": 45, + "column": 32 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 833, + "end": 838, + "loc": { + "start": { + "line": 45, + "column": 16 + }, + "end": { + "line": 45, + "column": 21 + } + }, + "name": "label" + }, + "value": { + "type": "Literal", + "start": 840, + "end": 849, + "loc": { + "start": { + "line": 45, + "column": 23 + }, + "end": { + "line": 45, + "column": 32 + } + }, + "value": "explore", + "rawValue": "explore", + "raw": "'explore'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 867, + "end": 897, + "loc": { + "start": { + "line": 46, + "column": 16 + }, + "end": { + "line": 46, + "column": 46 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 867, + "end": 871, + "loc": { + "start": { + "line": 46, + "column": 16 + }, + "end": { + "line": 46, + "column": 20 + } + }, + "name": "icon" + }, + "value": { + "type": "JSXElement", + "start": 873, + "end": 897, + "loc": { + "start": { + "line": 46, + "column": 22 + }, + "end": { + "line": 46, + "column": 46 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 873, + "end": 897, + "loc": { + "start": { + "line": 46, + "column": 22 + }, + "end": { + "line": 46, + "column": 46 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 876, + "end": 895, + "loc": { + "start": { + "line": 46, + "column": 25 + }, + "end": { + "line": 46, + "column": 44 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 876, + "end": 885, + "loc": { + "start": { + "line": 46, + "column": 25 + }, + "end": { + "line": 46, + "column": 34 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 886, + "end": 895, + "loc": { + "start": { + "line": 46, + "column": 35 + }, + "end": { + "line": 46, + "column": 44 + } + }, + "value": "ion-map", + "rawValue": null, + "raw": "\"ion-map\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 874, + "end": 875, + "loc": { + "start": { + "line": 46, + "column": 23 + }, + "end": { + "line": 46, + "column": 24 + } + }, + "name": "i" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + "kind": "init" + }, + { + "type": "Property", + "start": 915, + "end": 929, + "loc": { + "start": { + "line": 47, + "column": 16 + }, + "end": { + "line": 47, + "column": 30 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 915, + "end": 917, + "loc": { + "start": { + "line": 47, + "column": 16 + }, + "end": { + "line": 47, + "column": 18 + } + }, + "name": "to" + }, + "value": { + "type": "Literal", + "start": 919, + "end": 929, + "loc": { + "start": { + "line": 47, + "column": 20 + }, + "end": { + "line": 47, + "column": 30 + } + }, + "value": "/explore", + "rawValue": "/explore", + "raw": "'/explore'" + }, + "kind": "init" + } + ] + }, + { + "type": "ObjectExpression", + "start": 957, + "end": 1086, + "loc": { + "start": { + "line": 49, + "column": 12 + }, + "end": { + "line": 53, + "column": 13 + } + }, + "properties": [ + { + "type": "Property", + "start": 975, + "end": 990, + "loc": { + "start": { + "line": 50, + "column": 16 + }, + "end": { + "line": 50, + "column": 31 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 975, + "end": 980, + "loc": { + "start": { + "line": 50, + "column": 16 + }, + "end": { + "line": 50, + "column": 21 + } + }, + "name": "label" + }, + "value": { + "type": "Literal", + "start": 982, + "end": 990, + "loc": { + "start": { + "line": 50, + "column": 23 + }, + "end": { + "line": 50, + "column": 31 + } + }, + "value": "search", + "rawValue": "search", + "raw": "'search'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1008, + "end": 1041, + "loc": { + "start": { + "line": 51, + "column": 16 + }, + "end": { + "line": 51, + "column": 49 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1008, + "end": 1012, + "loc": { + "start": { + "line": 51, + "column": 16 + }, + "end": { + "line": 51, + "column": 20 + } + }, + "name": "icon" + }, + "value": { + "type": "JSXElement", + "start": 1014, + "end": 1041, + "loc": { + "start": { + "line": 51, + "column": 22 + }, + "end": { + "line": 51, + "column": 49 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1014, + "end": 1041, + "loc": { + "start": { + "line": 51, + "column": 22 + }, + "end": { + "line": 51, + "column": 49 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1017, + "end": 1039, + "loc": { + "start": { + "line": 51, + "column": 25 + }, + "end": { + "line": 51, + "column": 47 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1017, + "end": 1026, + "loc": { + "start": { + "line": 51, + "column": 25 + }, + "end": { + "line": 51, + "column": 34 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 1027, + "end": 1039, + "loc": { + "start": { + "line": 51, + "column": 35 + }, + "end": { + "line": 51, + "column": 47 + } + }, + "value": "ion-search", + "rawValue": null, + "raw": "\"ion-search\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1015, + "end": 1016, + "loc": { + "start": { + "line": 51, + "column": 23 + }, + "end": { + "line": 51, + "column": 24 + } + }, + "name": "i" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1059, + "end": 1072, + "loc": { + "start": { + "line": 52, + "column": 16 + }, + "end": { + "line": 52, + "column": 29 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1059, + "end": 1061, + "loc": { + "start": { + "line": 52, + "column": 16 + }, + "end": { + "line": 52, + "column": 18 + } + }, + "name": "to" + }, + "value": { + "type": "Literal", + "start": 1063, + "end": 1072, + "loc": { + "start": { + "line": 52, + "column": 20 + }, + "end": { + "line": 52, + "column": 29 + } + }, + "value": "/search", + "rawValue": "/search", + "raw": "'/search'" + }, + "kind": "init" + } + ] + }, + { + "type": "ObjectExpression", + "start": 1100, + "end": 1289, + "loc": { + "start": { + "line": 54, + "column": 12 + }, + "end": { + "line": 58, + "column": 13 + } + }, + "properties": [ + { + "type": "Property", + "start": 1118, + "end": 1140, + "loc": { + "start": { + "line": 55, + "column": 16 + }, + "end": { + "line": 55, + "column": 38 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1118, + "end": 1123, + "loc": { + "start": { + "line": 55, + "column": 16 + }, + "end": { + "line": 55, + "column": 21 + } + }, + "name": "label" + }, + "value": { + "type": "Literal", + "start": 1125, + "end": 1140, + "loc": { + "start": { + "line": 55, + "column": 23 + }, + "end": { + "line": 55, + "column": 38 + } + }, + "value": "notifications", + "rawValue": "notifications", + "raw": "'notifications'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1158, + "end": 1229, + "loc": { + "start": { + "line": 56, + "column": 16 + }, + "end": { + "line": 56, + "column": 87 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1158, + "end": 1162, + "loc": { + "start": { + "line": 56, + "column": 16 + }, + "end": { + "line": 56, + "column": 20 + } + }, + "name": "icon" + }, + "value": { + "type": "JSXElement", + "start": 1164, + "end": 1229, + "loc": { + "start": { + "line": 56, + "column": 22 + }, + "end": { + "line": 56, + "column": 87 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1164, + "end": 1192, + "loc": { + "start": { + "line": 56, + "column": 22 + }, + "end": { + "line": 56, + "column": 50 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1167, + "end": 1191, + "loc": { + "start": { + "line": 56, + "column": 25 + }, + "end": { + "line": 56, + "column": 49 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1167, + "end": 1176, + "loc": { + "start": { + "line": 56, + "column": 25 + }, + "end": { + "line": 56, + "column": 34 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 1177, + "end": 1191, + "loc": { + "start": { + "line": 56, + "column": 35 + }, + "end": { + "line": 56, + "column": 49 + } + }, + "value": "ion-ios-bell", + "rawValue": null, + "raw": "\"ion-ios-bell\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1165, + "end": 1166, + "loc": { + "start": { + "line": 56, + "column": 23 + }, + "end": { + "line": 56, + "column": 24 + } + }, + "name": "i" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1225, + "end": 1229, + "loc": { + "start": { + "line": 56, + "column": 83 + }, + "end": { + "line": 56, + "column": 87 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1227, + "end": 1228, + "loc": { + "start": { + "line": 56, + "column": 85 + }, + "end": { + "line": 56, + "column": 86 + } + }, + "name": "i" + } + }, + "children": [ + { + "type": "JSXElement", + "start": 1192, + "end": 1225, + "loc": { + "start": { + "line": 56, + "column": 50 + }, + "end": { + "line": 56, + "column": 83 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1192, + "end": 1225, + "loc": { + "start": { + "line": 56, + "column": 50 + }, + "end": { + "line": 56, + "column": 83 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1195, + "end": 1223, + "loc": { + "start": { + "line": 56, + "column": 53 + }, + "end": { + "line": 56, + "column": 81 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1195, + "end": 1204, + "loc": { + "start": { + "line": 56, + "column": 53 + }, + "end": { + "line": 56, + "column": 62 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 1205, + "end": 1223, + "loc": { + "start": { + "line": 56, + "column": 63 + }, + "end": { + "line": 56, + "column": 81 + } + }, + "value": "alert ion-record", + "rawValue": null, + "raw": "\"alert ion-record\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1193, + "end": 1194, + "loc": { + "start": { + "line": 56, + "column": 51 + }, + "end": { + "line": 56, + "column": 52 + } + }, + "name": "i" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + ] + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1247, + "end": 1275, + "loc": { + "start": { + "line": 57, + "column": 16 + }, + "end": { + "line": 57, + "column": 44 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1247, + "end": 1249, + "loc": { + "start": { + "line": 57, + "column": 16 + }, + "end": { + "line": 57, + "column": 18 + } + }, + "name": "to" + }, + "value": { + "type": "Literal", + "start": 1251, + "end": 1275, + "loc": { + "start": { + "line": 57, + "column": 20 + }, + "end": { + "line": 57, + "column": 44 + } + }, + "value": "/profile/notifications", + "rawValue": "/profile/notifications", + "raw": "'/profile/notifications'" + }, + "kind": "init" + } + ] + } + ] + }, + "kind": "init" + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * defaultProps\n * @type {{active: null, items: *[]}}\n ", + "start": 662, + "end": 735, + "loc": { + "start": { + "line": 37, + "column": 4 + }, + "end": { + "line": 40, + "column": 7 + } + }, + "range": [ + 662, + 735 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 1312, + "end": 1360, + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 65, + "column": 7 + } + }, + "range": [ + 1312, + 1360 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 1365, + "end": 2259, + "loc": { + "start": { + "line": 66, + "column": 4 + }, + "end": { + "line": 92, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 1365, + "end": 1371, + "loc": { + "start": { + "line": 66, + "column": 4 + }, + "end": { + "line": 66, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 1371, + "end": 2259, + "loc": { + "start": { + "line": 66, + "column": 10 + }, + "end": { + "line": 92, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 1374, + "end": 2259, + "loc": { + "start": { + "line": 66, + "column": 13 + }, + "end": { + "line": 92, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 1385, + "end": 1400, + "loc": { + "start": { + "line": 68, + "column": 8 + }, + "end": { + "line": 68, + "column": 23 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1389, + "end": 1400, + "loc": { + "start": { + "line": 68, + "column": 12 + }, + "end": { + "line": 68, + "column": 23 + } + }, + "id": { + "type": "Identifier", + "start": 1389, + "end": 1400, + "loc": { + "start": { + "line": 68, + "column": 12 + }, + "end": { + "line": 68, + "column": 23 + } + }, + "name": "activeIndex" + }, + "init": null + } + ], + "kind": "let" + }, + { + "type": "ExpressionStatement", + "start": 1409, + "end": 1524, + "loc": { + "start": { + "line": 69, + "column": 8 + }, + "end": { + "line": 71, + "column": 10 + } + }, + "expression": { + "type": "CallExpression", + "start": 1409, + "end": 1524, + "loc": { + "start": { + "line": 69, + "column": 8 + }, + "end": { + "line": 71, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1409, + "end": 1433, + "loc": { + "start": { + "line": 69, + "column": 8 + }, + "end": { + "line": 69, + "column": 32 + } + }, + "object": { + "type": "MemberExpression", + "start": 1409, + "end": 1425, + "loc": { + "start": { + "line": 69, + "column": 8 + }, + "end": { + "line": 69, + "column": 24 + } + }, + "object": { + "type": "MemberExpression", + "start": 1409, + "end": 1419, + "loc": { + "start": { + "line": 69, + "column": 8 + }, + "end": { + "line": 69, + "column": 18 + } + }, + "object": { + "type": "ThisExpression", + "start": 1409, + "end": 1413, + "loc": { + "start": { + "line": 69, + "column": 8 + }, + "end": { + "line": 69, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 1414, + "end": 1419, + "loc": { + "start": { + "line": 69, + "column": 13 + }, + "end": { + "line": 69, + "column": 18 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1420, + "end": 1425, + "loc": { + "start": { + "line": 69, + "column": 19 + }, + "end": { + "line": 69, + "column": 24 + } + }, + "name": "items" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1426, + "end": 1433, + "loc": { + "start": { + "line": 69, + "column": 25 + }, + "end": { + "line": 69, + "column": 32 + } + }, + "name": "forEach" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 1434, + "end": 1523, + "loc": { + "start": { + "line": 69, + "column": 33 + }, + "end": { + "line": 71, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1435, + "end": 1439, + "loc": { + "start": { + "line": 69, + "column": 34 + }, + "end": { + "line": 69, + "column": 38 + } + }, + "name": "item" + }, + { + "type": "Identifier", + "start": 1441, + "end": 1442, + "loc": { + "start": { + "line": 69, + "column": 40 + }, + "end": { + "line": 69, + "column": 41 + } + }, + "name": "i" + } + ], + "body": { + "type": "BlockStatement", + "start": 1447, + "end": 1523, + "loc": { + "start": { + "line": 69, + "column": 46 + }, + "end": { + "line": 71, + "column": 9 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 1461, + "end": 1513, + "loc": { + "start": { + "line": 70, + "column": 12 + }, + "end": { + "line": 70, + "column": 64 + } + }, + "test": { + "type": "BinaryExpression", + "start": 1465, + "end": 1496, + "loc": { + "start": { + "line": 70, + "column": 16 + }, + "end": { + "line": 70, + "column": 47 + } + }, + "left": { + "type": "MemberExpression", + "start": 1465, + "end": 1475, + "loc": { + "start": { + "line": 70, + "column": 16 + }, + "end": { + "line": 70, + "column": 26 + } + }, + "object": { + "type": "Identifier", + "start": 1465, + "end": 1469, + "loc": { + "start": { + "line": 70, + "column": 16 + }, + "end": { + "line": 70, + "column": 20 + } + }, + "name": "item" + }, + "property": { + "type": "Identifier", + "start": 1470, + "end": 1475, + "loc": { + "start": { + "line": 70, + "column": 21 + }, + "end": { + "line": 70, + "column": 26 + } + }, + "name": "label" + }, + "computed": false + }, + "operator": "==", + "right": { + "type": "MemberExpression", + "start": 1479, + "end": 1496, + "loc": { + "start": { + "line": 70, + "column": 30 + }, + "end": { + "line": 70, + "column": 47 + } + }, + "object": { + "type": "MemberExpression", + "start": 1479, + "end": 1489, + "loc": { + "start": { + "line": 70, + "column": 30 + }, + "end": { + "line": 70, + "column": 40 + } + }, + "object": { + "type": "ThisExpression", + "start": 1479, + "end": 1483, + "loc": { + "start": { + "line": 70, + "column": 30 + }, + "end": { + "line": 70, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "start": 1484, + "end": 1489, + "loc": { + "start": { + "line": 70, + "column": 35 + }, + "end": { + "line": 70, + "column": 40 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1490, + "end": 1496, + "loc": { + "start": { + "line": 70, + "column": 41 + }, + "end": { + "line": 70, + "column": 47 + } + }, + "name": "active" + }, + "computed": false + } + }, + "consequent": { + "type": "ExpressionStatement", + "start": 1498, + "end": 1513, + "loc": { + "start": { + "line": 70, + "column": 49 + }, + "end": { + "line": 70, + "column": 64 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1498, + "end": 1513, + "loc": { + "start": { + "line": 70, + "column": 49 + }, + "end": { + "line": 70, + "column": 64 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 1498, + "end": 1509, + "loc": { + "start": { + "line": 70, + "column": 49 + }, + "end": { + "line": 70, + "column": 60 + } + }, + "name": "activeIndex" + }, + "right": { + "type": "Identifier", + "start": 1512, + "end": 1513, + "loc": { + "start": { + "line": 70, + "column": 63 + }, + "end": { + "line": 70, + "column": 64 + } + }, + "name": "i" + } + } + }, + "alternate": null + } + ] + } + } + ] + } + }, + { + "type": "VariableDeclaration", + "start": 1534, + "end": 1691, + "loc": { + "start": { + "line": 73, + "column": 8 + }, + "end": { + "line": 76, + "column": 9 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1540, + "end": 1691, + "loc": { + "start": { + "line": 73, + "column": 14 + }, + "end": { + "line": 76, + "column": 9 + } + }, + "id": { + "type": "Identifier", + "start": 1540, + "end": 1549, + "loc": { + "start": { + "line": 73, + "column": 14 + }, + "end": { + "line": 73, + "column": 23 + } + }, + "name": "indicator" + }, + "init": { + "type": "ObjectExpression", + "start": 1552, + "end": 1691, + "loc": { + "start": { + "line": 73, + "column": 26 + }, + "end": { + "line": 76, + "column": 9 + } + }, + "properties": [ + { + "type": "Property", + "start": 1566, + "end": 1610, + "loc": { + "start": { + "line": 74, + "column": 12 + }, + "end": { + "line": 74, + "column": 56 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1566, + "end": 1571, + "loc": { + "start": { + "line": 74, + "column": 12 + }, + "end": { + "line": 74, + "column": 17 + } + }, + "name": "width" + }, + "value": { + "type": "BinaryExpression", + "start": 1573, + "end": 1610, + "loc": { + "start": { + "line": 74, + "column": 19 + }, + "end": { + "line": 74, + "column": 56 + } + }, + "left": { + "type": "BinaryExpression", + "start": 1574, + "end": 1603, + "loc": { + "start": { + "line": 74, + "column": 20 + }, + "end": { + "line": 74, + "column": 49 + } + }, + "left": { + "type": "Literal", + "start": 1574, + "end": 1577, + "loc": { + "start": { + "line": 74, + "column": 20 + }, + "end": { + "line": 74, + "column": 23 + } + }, + "value": 100, + "rawValue": 100, + "raw": "100" + }, + "operator": "/", + "right": { + "type": "MemberExpression", + "start": 1580, + "end": 1603, + "loc": { + "start": { + "line": 74, + "column": 26 + }, + "end": { + "line": 74, + "column": 49 + } + }, + "object": { + "type": "MemberExpression", + "start": 1580, + "end": 1596, + "loc": { + "start": { + "line": 74, + "column": 26 + }, + "end": { + "line": 74, + "column": 42 + } + }, + "object": { + "type": "MemberExpression", + "start": 1580, + "end": 1590, + "loc": { + "start": { + "line": 74, + "column": 26 + }, + "end": { + "line": 74, + "column": 36 + } + }, + "object": { + "type": "ThisExpression", + "start": 1580, + "end": 1584, + "loc": { + "start": { + "line": 74, + "column": 26 + }, + "end": { + "line": 74, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "start": 1585, + "end": 1590, + "loc": { + "start": { + "line": 74, + "column": 31 + }, + "end": { + "line": 74, + "column": 36 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1591, + "end": 1596, + "loc": { + "start": { + "line": 74, + "column": 37 + }, + "end": { + "line": 74, + "column": 42 + } + }, + "name": "items" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1597, + "end": 1603, + "loc": { + "start": { + "line": 74, + "column": 43 + }, + "end": { + "line": 74, + "column": 49 + } + }, + "name": "length" + }, + "computed": false + }, + "parenthesizedExpression": true + }, + "operator": "+", + "right": { + "type": "Literal", + "start": 1607, + "end": 1610, + "loc": { + "start": { + "line": 74, + "column": 53 + }, + "end": { + "line": 74, + "column": 56 + } + }, + "value": "%", + "rawValue": "%", + "raw": "'%'" + } + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1624, + "end": 1681, + "loc": { + "start": { + "line": 75, + "column": 12 + }, + "end": { + "line": 75, + "column": 69 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1624, + "end": 1628, + "loc": { + "start": { + "line": 75, + "column": 12 + }, + "end": { + "line": 75, + "column": 16 + } + }, + "name": "left" + }, + "value": { + "type": "BinaryExpression", + "start": 1630, + "end": 1681, + "loc": { + "start": { + "line": 75, + "column": 18 + }, + "end": { + "line": 75, + "column": 69 + } + }, + "left": { + "type": "BinaryExpression", + "start": 1630, + "end": 1675, + "loc": { + "start": { + "line": 75, + "column": 18 + }, + "end": { + "line": 75, + "column": 63 + } + }, + "left": { + "type": "BinaryExpression", + "start": 1631, + "end": 1660, + "loc": { + "start": { + "line": 75, + "column": 19 + }, + "end": { + "line": 75, + "column": 48 + } + }, + "left": { + "type": "Literal", + "start": 1631, + "end": 1634, + "loc": { + "start": { + "line": 75, + "column": 19 + }, + "end": { + "line": 75, + "column": 22 + } + }, + "value": 100, + "rawValue": 100, + "raw": "100" + }, + "operator": "/", + "right": { + "type": "MemberExpression", + "start": 1637, + "end": 1660, + "loc": { + "start": { + "line": 75, + "column": 25 + }, + "end": { + "line": 75, + "column": 48 + } + }, + "object": { + "type": "MemberExpression", + "start": 1637, + "end": 1653, + "loc": { + "start": { + "line": 75, + "column": 25 + }, + "end": { + "line": 75, + "column": 41 + } + }, + "object": { + "type": "MemberExpression", + "start": 1637, + "end": 1647, + "loc": { + "start": { + "line": 75, + "column": 25 + }, + "end": { + "line": 75, + "column": 35 + } + }, + "object": { + "type": "ThisExpression", + "start": 1637, + "end": 1641, + "loc": { + "start": { + "line": 75, + "column": 25 + }, + "end": { + "line": 75, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "start": 1642, + "end": 1647, + "loc": { + "start": { + "line": 75, + "column": 30 + }, + "end": { + "line": 75, + "column": 35 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1648, + "end": 1653, + "loc": { + "start": { + "line": 75, + "column": 36 + }, + "end": { + "line": 75, + "column": 41 + } + }, + "name": "items" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1654, + "end": 1660, + "loc": { + "start": { + "line": 75, + "column": 42 + }, + "end": { + "line": 75, + "column": 48 + } + }, + "name": "length" + }, + "computed": false + }, + "parenthesizedExpression": true + }, + "operator": "*", + "right": { + "type": "Identifier", + "start": 1664, + "end": 1675, + "loc": { + "start": { + "line": 75, + "column": 52 + }, + "end": { + "line": 75, + "column": 63 + } + }, + "name": "activeIndex" + } + }, + "operator": "+", + "right": { + "type": "Literal", + "start": 1678, + "end": 1681, + "loc": { + "start": { + "line": 75, + "column": 66 + }, + "end": { + "line": 75, + "column": 69 + } + }, + "value": "%", + "rawValue": "%", + "raw": "'%'" + } + }, + "kind": "init" + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "ReturnStatement", + "start": 1701, + "end": 2253, + "loc": { + "start": { + "line": 78, + "column": 8 + }, + "end": { + "line": 91, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 1722, + "end": 2243, + "loc": { + "start": { + "line": 79, + "column": 12 + }, + "end": { + "line": 90, + "column": 18 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1722, + "end": 1751, + "loc": { + "start": { + "line": 79, + "column": 12 + }, + "end": { + "line": 79, + "column": 41 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1727, + "end": 1750, + "loc": { + "start": { + "line": 79, + "column": 17 + }, + "end": { + "line": 79, + "column": 40 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1727, + "end": 1736, + "loc": { + "start": { + "line": 79, + "column": 17 + }, + "end": { + "line": 79, + "column": 26 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 1737, + "end": 1750, + "loc": { + "start": { + "line": 79, + "column": 27 + }, + "end": { + "line": 79, + "column": 40 + } + }, + "value": "item middle", + "rawValue": null, + "raw": "\"item middle\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1723, + "end": 1726, + "loc": { + "start": { + "line": 79, + "column": 13 + }, + "end": { + "line": 79, + "column": 16 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2237, + "end": 2243, + "loc": { + "start": { + "line": 90, + "column": 12 + }, + "end": { + "line": 90, + "column": 18 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2239, + "end": 2242, + "loc": { + "start": { + "line": 90, + "column": 14 + }, + "end": { + "line": 90, + "column": 17 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 1751, + "end": 1768, + "loc": { + "start": { + "line": 79, + "column": 41 + }, + "end": { + "line": 80, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1768, + "end": 2083, + "loc": { + "start": { + "line": 80, + "column": 16 + }, + "end": { + "line": 86, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1768, + "end": 1773, + "loc": { + "start": { + "line": 80, + "column": 16 + }, + "end": { + "line": 80, + "column": 21 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 1769, + "end": 1772, + "loc": { + "start": { + "line": 80, + "column": 17 + }, + "end": { + "line": 80, + "column": 20 + } + }, + "name": "nav" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2077, + "end": 2083, + "loc": { + "start": { + "line": 86, + "column": 16 + }, + "end": { + "line": 86, + "column": 22 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2079, + "end": 2082, + "loc": { + "start": { + "line": 86, + "column": 18 + }, + "end": { + "line": 86, + "column": 21 + } + }, + "name": "nav" + } + }, + "children": [ + { + "type": "Literal", + "start": 1773, + "end": 1794, + "loc": { + "start": { + "line": 80, + "column": 21 + }, + "end": { + "line": 81, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 1794, + "end": 2060, + "loc": { + "start": { + "line": 81, + "column": 20 + }, + "end": { + "line": 85, + "column": 23 + } + }, + "expression": { + "type": "CallExpression", + "start": 1795, + "end": 2059, + "loc": { + "start": { + "line": 81, + "column": 21 + }, + "end": { + "line": 85, + "column": 22 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1795, + "end": 1815, + "loc": { + "start": { + "line": 81, + "column": 21 + }, + "end": { + "line": 81, + "column": 41 + } + }, + "object": { + "type": "MemberExpression", + "start": 1795, + "end": 1811, + "loc": { + "start": { + "line": 81, + "column": 21 + }, + "end": { + "line": 81, + "column": 37 + } + }, + "object": { + "type": "MemberExpression", + "start": 1795, + "end": 1805, + "loc": { + "start": { + "line": 81, + "column": 21 + }, + "end": { + "line": 81, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 1795, + "end": 1799, + "loc": { + "start": { + "line": 81, + "column": 21 + }, + "end": { + "line": 81, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "start": 1800, + "end": 1805, + "loc": { + "start": { + "line": 81, + "column": 26 + }, + "end": { + "line": 81, + "column": 31 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1806, + "end": 1811, + "loc": { + "start": { + "line": 81, + "column": 32 + }, + "end": { + "line": 81, + "column": 37 + } + }, + "name": "items" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1812, + "end": 1815, + "loc": { + "start": { + "line": 81, + "column": 38 + }, + "end": { + "line": 81, + "column": 41 + } + }, + "name": "map" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 1816, + "end": 2058, + "loc": { + "start": { + "line": 81, + "column": 42 + }, + "end": { + "line": 85, + "column": 21 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1817, + "end": 1821, + "loc": { + "start": { + "line": 81, + "column": 43 + }, + "end": { + "line": 81, + "column": 47 + } + }, + "name": "item" + }, + { + "type": "Identifier", + "start": 1823, + "end": 1824, + "loc": { + "start": { + "line": 81, + "column": 49 + }, + "end": { + "line": 81, + "column": 50 + } + }, + "name": "i" + } + ], + "body": { + "type": "BlockStatement", + "start": 1829, + "end": 2058, + "loc": { + "start": { + "line": 81, + "column": 55 + }, + "end": { + "line": 85, + "column": 21 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1855, + "end": 1874, + "loc": { + "start": { + "line": 82, + "column": 24 + }, + "end": { + "line": 82, + "column": 43 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1855, + "end": 1874, + "loc": { + "start": { + "line": 82, + "column": 24 + }, + "end": { + "line": 82, + "column": 43 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 1855, + "end": 1866, + "loc": { + "start": { + "line": 82, + "column": 24 + }, + "end": { + "line": 82, + "column": 35 + } + }, + "object": { + "type": "Identifier", + "start": 1855, + "end": 1859, + "loc": { + "start": { + "line": 82, + "column": 24 + }, + "end": { + "line": 82, + "column": 28 + } + }, + "name": "item" + }, + "property": { + "type": "Identifier", + "start": 1860, + "end": 1866, + "loc": { + "start": { + "line": 82, + "column": 29 + }, + "end": { + "line": 82, + "column": 35 + } + }, + "name": "active" + }, + "computed": false + }, + "right": { + "type": "Literal", + "start": 1869, + "end": 1874, + "loc": { + "start": { + "line": 82, + "column": 38 + }, + "end": { + "line": 82, + "column": 43 + } + }, + "value": false, + "rawValue": false, + "raw": "false" + } + } + }, + { + "type": "IfStatement", + "start": 1899, + "end": 1955, + "loc": { + "start": { + "line": 83, + "column": 24 + }, + "end": { + "line": 83, + "column": 80 + } + }, + "test": { + "type": "BinaryExpression", + "start": 1903, + "end": 1935, + "loc": { + "start": { + "line": 83, + "column": 28 + }, + "end": { + "line": 83, + "column": 60 + } + }, + "left": { + "type": "MemberExpression", + "start": 1903, + "end": 1913, + "loc": { + "start": { + "line": 83, + "column": 28 + }, + "end": { + "line": 83, + "column": 38 + } + }, + "object": { + "type": "Identifier", + "start": 1903, + "end": 1907, + "loc": { + "start": { + "line": 83, + "column": 28 + }, + "end": { + "line": 83, + "column": 32 + } + }, + "name": "item" + }, + "property": { + "type": "Identifier", + "start": 1908, + "end": 1913, + "loc": { + "start": { + "line": 83, + "column": 33 + }, + "end": { + "line": 83, + "column": 38 + } + }, + "name": "label" + }, + "computed": false + }, + "operator": "===", + "right": { + "type": "MemberExpression", + "start": 1918, + "end": 1935, + "loc": { + "start": { + "line": 83, + "column": 43 + }, + "end": { + "line": 83, + "column": 60 + } + }, + "object": { + "type": "MemberExpression", + "start": 1918, + "end": 1928, + "loc": { + "start": { + "line": 83, + "column": 43 + }, + "end": { + "line": 83, + "column": 53 + } + }, + "object": { + "type": "ThisExpression", + "start": 1918, + "end": 1922, + "loc": { + "start": { + "line": 83, + "column": 43 + }, + "end": { + "line": 83, + "column": 47 + } + } + }, + "property": { + "type": "Identifier", + "start": 1923, + "end": 1928, + "loc": { + "start": { + "line": 83, + "column": 48 + }, + "end": { + "line": 83, + "column": 53 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1929, + "end": 1935, + "loc": { + "start": { + "line": 83, + "column": 54 + }, + "end": { + "line": 83, + "column": 60 + } + }, + "name": "active" + }, + "computed": false + } + }, + "consequent": { + "type": "ExpressionStatement", + "start": 1937, + "end": 1955, + "loc": { + "start": { + "line": 83, + "column": 62 + }, + "end": { + "line": 83, + "column": 80 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1937, + "end": 1955, + "loc": { + "start": { + "line": 83, + "column": 62 + }, + "end": { + "line": 83, + "column": 80 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 1937, + "end": 1948, + "loc": { + "start": { + "line": 83, + "column": 62 + }, + "end": { + "line": 83, + "column": 73 + } + }, + "object": { + "type": "Identifier", + "start": 1937, + "end": 1941, + "loc": { + "start": { + "line": 83, + "column": 62 + }, + "end": { + "line": 83, + "column": 66 + } + }, + "name": "item" + }, + "property": { + "type": "Identifier", + "start": 1942, + "end": 1948, + "loc": { + "start": { + "line": 83, + "column": 67 + }, + "end": { + "line": 83, + "column": 73 + } + }, + "name": "active" + }, + "computed": false + }, + "right": { + "type": "Literal", + "start": 1951, + "end": 1955, + "loc": { + "start": { + "line": 83, + "column": 76 + }, + "end": { + "line": 83, + "column": 80 + } + }, + "value": true, + "rawValue": true, + "raw": "true" + } + } + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 1980, + "end": 2036, + "loc": { + "start": { + "line": 84, + "column": 24 + }, + "end": { + "line": 84, + "column": 80 + } + }, + "argument": { + "type": "JSXElement", + "start": 1987, + "end": 2036, + "loc": { + "start": { + "line": 84, + "column": 31 + }, + "end": { + "line": 84, + "column": 80 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1987, + "end": 2036, + "loc": { + "start": { + "line": 84, + "column": 31 + }, + "end": { + "line": 84, + "column": 80 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1993, + "end": 2023, + "loc": { + "start": { + "line": 84, + "column": 37 + }, + "end": { + "line": 84, + "column": 67 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1993, + "end": 1996, + "loc": { + "start": { + "line": 84, + "column": 37 + }, + "end": { + "line": 84, + "column": 40 + } + }, + "name": "key" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 1997, + "end": 2023, + "loc": { + "start": { + "line": 84, + "column": 41 + }, + "end": { + "line": 84, + "column": 67 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 1998, + "end": 2022, + "loc": { + "start": { + "line": 84, + "column": 42 + }, + "end": { + "line": 84, + "column": 66 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 2010, + "end": 2020, + "loc": { + "start": { + "line": 84, + "column": 54 + }, + "end": { + "line": 84, + "column": 64 + } + }, + "object": { + "type": "Identifier", + "start": 2010, + "end": 2014, + "loc": { + "start": { + "line": 84, + "column": 54 + }, + "end": { + "line": 84, + "column": 58 + } + }, + "name": "item" + }, + "property": { + "type": "Identifier", + "start": 2015, + "end": 2020, + "loc": { + "start": { + "line": 84, + "column": 59 + }, + "end": { + "line": 84, + "column": 64 + } + }, + "name": "label" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 1999, + "end": 2008, + "loc": { + "start": { + "line": 84, + "column": 43 + }, + "end": { + "line": 84, + "column": 52 + } + }, + "value": { + "raw": "nav-item-", + "cooked": "nav-item-" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 2021, + "end": 2021, + "loc": { + "start": { + "line": 84, + "column": 65 + }, + "end": { + "line": 84, + "column": 65 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + }, + { + "type": "JSXSpreadAttribute", + "start": 2024, + "end": 2033, + "loc": { + "start": { + "line": 84, + "column": 68 + }, + "end": { + "line": 84, + "column": 77 + } + }, + "argument": { + "type": "Identifier", + "start": 2028, + "end": 2032, + "loc": { + "start": { + "line": 84, + "column": 72 + }, + "end": { + "line": 84, + "column": 76 + } + }, + "name": "item" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1988, + "end": 1992, + "loc": { + "start": { + "line": 84, + "column": 32 + }, + "end": { + "line": 84, + "column": 36 + } + }, + "name": "Item" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + } + ] + } + } + ] + } + }, + { + "type": "Literal", + "start": 2060, + "end": 2077, + "loc": { + "start": { + "line": 85, + "column": 23 + }, + "end": { + "line": 86, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 2083, + "end": 2100, + "loc": { + "start": { + "line": 86, + "column": 22 + }, + "end": { + "line": 87, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 2100, + "end": 2224, + "loc": { + "start": { + "line": 87, + "column": 16 + }, + "end": { + "line": 89, + "column": 27 + } + }, + "expression": { + "type": "ConditionalExpression", + "start": 2101, + "end": 2223, + "loc": { + "start": { + "line": 87, + "column": 17 + }, + "end": { + "line": 89, + "column": 26 + } + }, + "test": { + "type": "BinaryExpression", + "start": 2101, + "end": 2127, + "loc": { + "start": { + "line": 87, + "column": 17 + }, + "end": { + "line": 87, + "column": 43 + } + }, + "left": { + "type": "MemberExpression", + "start": 2101, + "end": 2118, + "loc": { + "start": { + "line": 87, + "column": 17 + }, + "end": { + "line": 87, + "column": 34 + } + }, + "object": { + "type": "MemberExpression", + "start": 2101, + "end": 2111, + "loc": { + "start": { + "line": 87, + "column": 17 + }, + "end": { + "line": 87, + "column": 27 + } + }, + "object": { + "type": "ThisExpression", + "start": 2101, + "end": 2105, + "loc": { + "start": { + "line": 87, + "column": 17 + }, + "end": { + "line": 87, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "start": 2106, + "end": 2111, + "loc": { + "start": { + "line": 87, + "column": 22 + }, + "end": { + "line": 87, + "column": 27 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2112, + "end": 2118, + "loc": { + "start": { + "line": 87, + "column": 28 + }, + "end": { + "line": 87, + "column": 34 + } + }, + "name": "active" + }, + "computed": false + }, + "operator": "!==", + "right": { + "type": "Literal", + "start": 2123, + "end": 2127, + "loc": { + "start": { + "line": 87, + "column": 39 + }, + "end": { + "line": 87, + "column": 43 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + } + }, + "consequent": { + "type": "JSXElement", + "start": 2150, + "end": 2196, + "loc": { + "start": { + "line": 88, + "column": 22 + }, + "end": { + "line": 88, + "column": 68 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2150, + "end": 2196, + "loc": { + "start": { + "line": 88, + "column": 22 + }, + "end": { + "line": 88, + "column": 68 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2155, + "end": 2176, + "loc": { + "start": { + "line": 88, + "column": 27 + }, + "end": { + "line": 88, + "column": 48 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2155, + "end": 2164, + "loc": { + "start": { + "line": 88, + "column": 27 + }, + "end": { + "line": 88, + "column": 36 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 2165, + "end": 2176, + "loc": { + "start": { + "line": 88, + "column": 37 + }, + "end": { + "line": 88, + "column": 48 + } + }, + "value": "indicator", + "rawValue": null, + "raw": "\"indicator\"" + } + }, + { + "type": "JSXAttribute", + "start": 2177, + "end": 2194, + "loc": { + "start": { + "line": 88, + "column": 49 + }, + "end": { + "line": 88, + "column": 66 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2177, + "end": 2182, + "loc": { + "start": { + "line": 88, + "column": 49 + }, + "end": { + "line": 88, + "column": 54 + } + }, + "name": "style" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2183, + "end": 2194, + "loc": { + "start": { + "line": 88, + "column": 55 + }, + "end": { + "line": 88, + "column": 66 + } + }, + "expression": { + "type": "Identifier", + "start": 2184, + "end": 2193, + "loc": { + "start": { + "line": 88, + "column": 56 + }, + "end": { + "line": 88, + "column": 65 + } + }, + "name": "indicator" + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2151, + "end": 2154, + "loc": { + "start": { + "line": 88, + "column": 23 + }, + "end": { + "line": 88, + "column": 26 + } + }, + "name": "div" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + "alternate": { + "type": "Literal", + "start": 2219, + "end": 2223, + "loc": { + "start": { + "line": 89, + "column": 22 + }, + "end": { + "line": 89, + "column": 26 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + } + } + }, + { + "type": "Literal", + "start": 2224, + "end": 2237, + "loc": { + "start": { + "line": 89, + "column": 27 + }, + "end": { + "line": 90, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 1312, + "end": 1360, + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 65, + "column": 7 + } + }, + "range": [ + 1312, + 1360 + ] + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Nav index component\n ", + "start": 596, + "end": 626, + "loc": { + "start": { + "line": 32, + "column": 0 + }, + "end": { + "line": 34, + "column": 3 + } + }, + "range": [ + 596, + 626 + ] + } + ], + "__esdoc__pseudo_export": false, + "trailingComments": [] + }, + "leadingComments": null + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/components/PhotoList/PhotoFooter.js.json b/app/docs/ast/source/components/PhotoList/PhotoFooter.js.json new file mode 100644 index 0000000..6b5a5f4 --- /dev/null +++ b/app/docs/ast/source/components/PhotoList/PhotoFooter.js.json @@ -0,0 +1,6097 @@ +{ + "type": "Program", + "start": 0, + "end": 1178, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 42, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 38, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 38 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + }, + { + "type": "ImportSpecifier", + "start": 15, + "end": 24, + "loc": { + "start": { + "line": 1, + "column": 15 + }, + "end": { + "line": 1, + "column": 24 + } + }, + "imported": { + "type": "Identifier", + "start": 15, + "end": 24, + "loc": { + "start": { + "line": 1, + "column": 15 + }, + "end": { + "line": 1, + "column": 24 + } + }, + "name": "Component" + }, + "local": { + "type": "Identifier", + "start": 15, + "end": 24, + "loc": { + "start": { + "line": 1, + "column": 15 + }, + "end": { + "line": 1, + "column": 24 + } + }, + "name": "Component" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 31, + "end": 38, + "loc": { + "start": { + "line": 1, + "column": 31 + }, + "end": { + "line": 1, + "column": 38 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ImportDeclaration", + "start": 39, + "end": 74, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 35 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 48, + "end": 52, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "imported": { + "type": "Identifier", + "start": 48, + "end": 52, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "name": "Link" + }, + "local": { + "type": "Identifier", + "start": 48, + "end": 52, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "name": "Link" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 60, + "end": 74, + "loc": { + "start": { + "line": 2, + "column": 21 + }, + "end": { + "line": 2, + "column": 35 + } + }, + "value": "react-router", + "rawValue": "react-router", + "raw": "'react-router'" + } + }, + { + "type": "ImportDeclaration", + "start": 76, + "end": 122, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 46 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 83, + "end": 93, + "loc": { + "start": { + "line": 4, + "column": 7 + }, + "end": { + "line": 4, + "column": 17 + } + }, + "local": { + "type": "Identifier", + "start": 83, + "end": 93, + "loc": { + "start": { + "line": 4, + "column": 7 + }, + "end": { + "line": 4, + "column": 17 + } + }, + "name": "LikeButton" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 99, + "end": 122, + "loc": { + "start": { + "line": 4, + "column": 23 + }, + "end": { + "line": 4, + "column": 46 + } + }, + "value": "components/LikeButton", + "rawValue": "components/LikeButton", + "raw": "'components/LikeButton'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * PhotoFooter component\n ", + "start": 124, + "end": 156, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + }, + "range": [ + 124, + 156 + ] + } + ] + }, + { + "type": "Identifier", + "start": 157, + "end": 1149, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 39, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 163, + "end": 174, + "loc": { + "start": { + "line": 9, + "column": 6 + }, + "end": { + "line": 9, + "column": 17 + } + }, + "name": "PhotoFooter", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 183, + "end": 192, + "loc": { + "start": { + "line": 9, + "column": 26 + }, + "end": { + "line": 9, + "column": 35 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 193, + "end": 1149, + "loc": { + "start": { + "line": 9, + "column": 36 + }, + "end": { + "line": 39, + "column": 1 + } + }, + "body": [ + { + "type": "MethodDefinition", + "start": 253, + "end": 1146, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 37, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 253, + "end": 259, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 259, + "end": 1146, + "loc": { + "start": { + "line": 15, + "column": 10 + }, + "end": { + "line": 37, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 262, + "end": 1146, + "loc": { + "start": { + "line": 15, + "column": 13 + }, + "end": { + "line": 37, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 273, + "end": 316, + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 17, + "column": 51 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 279, + "end": 316, + "loc": { + "start": { + "line": 17, + "column": 14 + }, + "end": { + "line": 17, + "column": 51 + } + }, + "id": { + "type": "Identifier", + "start": 279, + "end": 283, + "loc": { + "start": { + "line": 17, + "column": 14 + }, + "end": { + "line": 17, + "column": 18 + } + }, + "name": "tags" + }, + "init": { + "type": "CallExpression", + "start": 286, + "end": 316, + "loc": { + "start": { + "line": 17, + "column": 21 + }, + "end": { + "line": 17, + "column": 51 + } + }, + "callee": { + "type": "MemberExpression", + "start": 286, + "end": 311, + "loc": { + "start": { + "line": 17, + "column": 21 + }, + "end": { + "line": 17, + "column": 46 + } + }, + "object": { + "type": "MemberExpression", + "start": 286, + "end": 305, + "loc": { + "start": { + "line": 17, + "column": 21 + }, + "end": { + "line": 17, + "column": 40 + } + }, + "object": { + "type": "MemberExpression", + "start": 286, + "end": 296, + "loc": { + "start": { + "line": 17, + "column": 21 + }, + "end": { + "line": 17, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 286, + "end": 290, + "loc": { + "start": { + "line": 17, + "column": 21 + }, + "end": { + "line": 17, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "start": 291, + "end": 296, + "loc": { + "start": { + "line": 17, + "column": 26 + }, + "end": { + "line": 17, + "column": 31 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 297, + "end": 305, + "loc": { + "start": { + "line": 17, + "column": 32 + }, + "end": { + "line": 17, + "column": 40 + } + }, + "name": "hashtags" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 306, + "end": 311, + "loc": { + "start": { + "line": 17, + "column": 41 + }, + "end": { + "line": 17, + "column": 46 + } + }, + "name": "split" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 312, + "end": 315, + "loc": { + "start": { + "line": 17, + "column": 47 + }, + "end": { + "line": 17, + "column": 50 + } + }, + "value": " ", + "rawValue": " ", + "raw": "' '" + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "ReturnStatement", + "start": 326, + "end": 1140, + "loc": { + "start": { + "line": 19, + "column": 8 + }, + "end": { + "line": 36, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 347, + "end": 1130, + "loc": { + "start": { + "line": 20, + "column": 12 + }, + "end": { + "line": 35, + "column": 18 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 347, + "end": 382, + "loc": { + "start": { + "line": 20, + "column": 12 + }, + "end": { + "line": 20, + "column": 47 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 352, + "end": 381, + "loc": { + "start": { + "line": 20, + "column": 17 + }, + "end": { + "line": 20, + "column": 46 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 352, + "end": 361, + "loc": { + "start": { + "line": 20, + "column": 17 + }, + "end": { + "line": 20, + "column": 26 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 362, + "end": 381, + "loc": { + "start": { + "line": 20, + "column": 27 + }, + "end": { + "line": 20, + "column": 46 + } + }, + "value": "photo-item-footer", + "rawValue": null, + "raw": "\"photo-item-footer\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 348, + "end": 351, + "loc": { + "start": { + "line": 20, + "column": 13 + }, + "end": { + "line": 20, + "column": 16 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1124, + "end": 1130, + "loc": { + "start": { + "line": 35, + "column": 12 + }, + "end": { + "line": 35, + "column": 18 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1126, + "end": 1129, + "loc": { + "start": { + "line": 35, + "column": 14 + }, + "end": { + "line": 35, + "column": 17 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 382, + "end": 399, + "loc": { + "start": { + "line": 20, + "column": 47 + }, + "end": { + "line": 21, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 399, + "end": 427, + "loc": { + "start": { + "line": 21, + "column": 16 + }, + "end": { + "line": 21, + "column": 44 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 399, + "end": 421, + "loc": { + "start": { + "line": 21, + "column": 16 + }, + "end": { + "line": 21, + "column": 38 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 404, + "end": 420, + "loc": { + "start": { + "line": 21, + "column": 21 + }, + "end": { + "line": 21, + "column": 37 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 404, + "end": 413, + "loc": { + "start": { + "line": 21, + "column": 21 + }, + "end": { + "line": 21, + "column": 30 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 414, + "end": 420, + "loc": { + "start": { + "line": 21, + "column": 31 + }, + "end": { + "line": 21, + "column": 37 + } + }, + "value": "dash", + "rawValue": null, + "raw": "\"dash\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 400, + "end": 403, + "loc": { + "start": { + "line": 21, + "column": 17 + }, + "end": { + "line": 21, + "column": 20 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 421, + "end": 427, + "loc": { + "start": { + "line": 21, + "column": 38 + }, + "end": { + "line": 21, + "column": 44 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 423, + "end": 426, + "loc": { + "start": { + "line": 21, + "column": 40 + }, + "end": { + "line": 21, + "column": 43 + } + }, + "name": "div" + } + }, + "children": [] + }, + { + "type": "Literal", + "start": 427, + "end": 444, + "loc": { + "start": { + "line": 21, + "column": 44 + }, + "end": { + "line": 22, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 444, + "end": 756, + "loc": { + "start": { + "line": 22, + "column": 16 + }, + "end": { + "line": 27, + "column": 21 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 444, + "end": 465, + "loc": { + "start": { + "line": 22, + "column": 16 + }, + "end": { + "line": 22, + "column": 37 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 448, + "end": 464, + "loc": { + "start": { + "line": 22, + "column": 20 + }, + "end": { + "line": 22, + "column": 36 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 448, + "end": 457, + "loc": { + "start": { + "line": 22, + "column": 20 + }, + "end": { + "line": 22, + "column": 29 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 458, + "end": 464, + "loc": { + "start": { + "line": 22, + "column": 30 + }, + "end": { + "line": 22, + "column": 36 + } + }, + "value": "item", + "rawValue": null, + "raw": "\"item\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 445, + "end": 447, + "loc": { + "start": { + "line": 22, + "column": 17 + }, + "end": { + "line": 22, + "column": 19 + } + }, + "name": "h4" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 751, + "end": 756, + "loc": { + "start": { + "line": 27, + "column": 16 + }, + "end": { + "line": 27, + "column": 21 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 753, + "end": 755, + "loc": { + "start": { + "line": 27, + "column": 18 + }, + "end": { + "line": 27, + "column": 20 + } + }, + "name": "h4" + } + }, + "children": [ + { + "type": "Literal", + "start": 465, + "end": 486, + "loc": { + "start": { + "line": 22, + "column": 37 + }, + "end": { + "line": 23, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 486, + "end": 536, + "loc": { + "start": { + "line": 23, + "column": 20 + }, + "end": { + "line": 23, + "column": 70 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 486, + "end": 509, + "loc": { + "start": { + "line": 23, + "column": 20 + }, + "end": { + "line": 23, + "column": 43 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 492, + "end": 508, + "loc": { + "start": { + "line": 23, + "column": 26 + }, + "end": { + "line": 23, + "column": 42 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 492, + "end": 501, + "loc": { + "start": { + "line": 23, + "column": 26 + }, + "end": { + "line": 23, + "column": 35 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 502, + "end": 508, + "loc": { + "start": { + "line": 23, + "column": 36 + }, + "end": { + "line": 23, + "column": 42 + } + }, + "value": "name", + "rawValue": null, + "raw": "\"name\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 487, + "end": 491, + "loc": { + "start": { + "line": 23, + "column": 21 + }, + "end": { + "line": 23, + "column": 25 + } + }, + "name": "span" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 529, + "end": 536, + "loc": { + "start": { + "line": 23, + "column": 63 + }, + "end": { + "line": 23, + "column": 70 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 531, + "end": 535, + "loc": { + "start": { + "line": 23, + "column": 65 + }, + "end": { + "line": 23, + "column": 69 + } + }, + "name": "span" + } + }, + "children": [ + { + "type": "JSXExpressionContainer", + "start": 509, + "end": 529, + "loc": { + "start": { + "line": 23, + "column": 43 + }, + "end": { + "line": 23, + "column": 63 + } + }, + "expression": { + "type": "MemberExpression", + "start": 510, + "end": 528, + "loc": { + "start": { + "line": 23, + "column": 44 + }, + "end": { + "line": 23, + "column": 62 + } + }, + "object": { + "type": "MemberExpression", + "start": 510, + "end": 520, + "loc": { + "start": { + "line": 23, + "column": 44 + }, + "end": { + "line": 23, + "column": 54 + } + }, + "object": { + "type": "ThisExpression", + "start": 510, + "end": 514, + "loc": { + "start": { + "line": 23, + "column": 44 + }, + "end": { + "line": 23, + "column": 48 + } + } + }, + "property": { + "type": "Identifier", + "start": 515, + "end": 520, + "loc": { + "start": { + "line": 23, + "column": 49 + }, + "end": { + "line": 23, + "column": 54 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 521, + "end": 528, + "loc": { + "start": { + "line": 23, + "column": 55 + }, + "end": { + "line": 23, + "column": 62 + } + }, + "name": "caption" + }, + "computed": false + } + } + ] + }, + { + "type": "Literal", + "start": 536, + "end": 560, + "loc": { + "start": { + "line": 23, + "column": 70 + }, + "end": { + "line": 24, + "column": 20 + } + }, + "value": " in\n ", + "rawValue": null, + "raw": " in\n " + }, + { + "type": "JSXElement", + "start": 560, + "end": 734, + "loc": { + "start": { + "line": 24, + "column": 20 + }, + "end": { + "line": 26, + "column": 27 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 560, + "end": 608, + "loc": { + "start": { + "line": 24, + "column": 20 + }, + "end": { + "line": 24, + "column": 68 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 566, + "end": 607, + "loc": { + "start": { + "line": 24, + "column": 26 + }, + "end": { + "line": 24, + "column": 67 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 566, + "end": 568, + "loc": { + "start": { + "line": 24, + "column": 26 + }, + "end": { + "line": 24, + "column": 28 + } + }, + "name": "to" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 569, + "end": 607, + "loc": { + "start": { + "line": 24, + "column": 29 + }, + "end": { + "line": 24, + "column": 67 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 570, + "end": 606, + "loc": { + "start": { + "line": 24, + "column": 30 + }, + "end": { + "line": 24, + "column": 66 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 585, + "end": 604, + "loc": { + "start": { + "line": 24, + "column": 45 + }, + "end": { + "line": 24, + "column": 64 + } + }, + "object": { + "type": "MemberExpression", + "start": 585, + "end": 595, + "loc": { + "start": { + "line": 24, + "column": 45 + }, + "end": { + "line": 24, + "column": 55 + } + }, + "object": { + "type": "ThisExpression", + "start": 585, + "end": 589, + "loc": { + "start": { + "line": 24, + "column": 45 + }, + "end": { + "line": 24, + "column": 49 + } + } + }, + "property": { + "type": "Identifier", + "start": 590, + "end": 595, + "loc": { + "start": { + "line": 24, + "column": 50 + }, + "end": { + "line": 24, + "column": 55 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 596, + "end": 604, + "loc": { + "start": { + "line": 24, + "column": 56 + }, + "end": { + "line": 24, + "column": 64 + } + }, + "name": "location" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 571, + "end": 583, + "loc": { + "start": { + "line": 24, + "column": 31 + }, + "end": { + "line": 24, + "column": 43 + } + }, + "value": { + "raw": "/location?q=", + "cooked": "/location?q=" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 605, + "end": 605, + "loc": { + "start": { + "line": 24, + "column": 65 + }, + "end": { + "line": 24, + "column": 65 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 561, + "end": 565, + "loc": { + "start": { + "line": 24, + "column": 21 + }, + "end": { + "line": 24, + "column": 25 + } + }, + "name": "Link" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 727, + "end": 734, + "loc": { + "start": { + "line": 26, + "column": 20 + }, + "end": { + "line": 26, + "column": 27 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 729, + "end": 733, + "loc": { + "start": { + "line": 26, + "column": 22 + }, + "end": { + "line": 26, + "column": 26 + } + }, + "name": "Link" + } + }, + "children": [ + { + "type": "Literal", + "start": 608, + "end": 639, + "loc": { + "start": { + "line": 24, + "column": 68 + }, + "end": { + "line": 25, + "column": 24 + } + }, + "value": " \n ", + "rawValue": null, + "raw": " \n " + }, + { + "type": "JSXElement", + "start": 639, + "end": 706, + "loc": { + "start": { + "line": 25, + "column": 24 + }, + "end": { + "line": 25, + "column": 91 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 639, + "end": 661, + "loc": { + "start": { + "line": 25, + "column": 24 + }, + "end": { + "line": 25, + "column": 46 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 645, + "end": 660, + "loc": { + "start": { + "line": 25, + "column": 30 + }, + "end": { + "line": 25, + "column": 45 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 645, + "end": 654, + "loc": { + "start": { + "line": 25, + "column": 30 + }, + "end": { + "line": 25, + "column": 39 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 655, + "end": 660, + "loc": { + "start": { + "line": 25, + "column": 40 + }, + "end": { + "line": 25, + "column": 45 + } + }, + "value": "loc", + "rawValue": null, + "raw": "\"loc\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 640, + "end": 644, + "loc": { + "start": { + "line": 25, + "column": 25 + }, + "end": { + "line": 25, + "column": 29 + } + }, + "name": "span" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 699, + "end": 706, + "loc": { + "start": { + "line": 25, + "column": 84 + }, + "end": { + "line": 25, + "column": 91 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 701, + "end": 705, + "loc": { + "start": { + "line": 25, + "column": 86 + }, + "end": { + "line": 25, + "column": 90 + } + }, + "name": "span" + } + }, + "children": [ + { + "type": "JSXElement", + "start": 661, + "end": 699, + "loc": { + "start": { + "line": 25, + "column": 46 + }, + "end": { + "line": 25, + "column": 84 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 661, + "end": 669, + "loc": { + "start": { + "line": 25, + "column": 46 + }, + "end": { + "line": 25, + "column": 54 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 662, + "end": 668, + "loc": { + "start": { + "line": 25, + "column": 47 + }, + "end": { + "line": 25, + "column": 53 + } + }, + "name": "strong" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 690, + "end": 699, + "loc": { + "start": { + "line": 25, + "column": 75 + }, + "end": { + "line": 25, + "column": 84 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 692, + "end": 698, + "loc": { + "start": { + "line": 25, + "column": 77 + }, + "end": { + "line": 25, + "column": 83 + } + }, + "name": "strong" + } + }, + "children": [ + { + "type": "JSXExpressionContainer", + "start": 669, + "end": 690, + "loc": { + "start": { + "line": 25, + "column": 54 + }, + "end": { + "line": 25, + "column": 75 + } + }, + "expression": { + "type": "MemberExpression", + "start": 670, + "end": 689, + "loc": { + "start": { + "line": 25, + "column": 55 + }, + "end": { + "line": 25, + "column": 74 + } + }, + "object": { + "type": "MemberExpression", + "start": 670, + "end": 680, + "loc": { + "start": { + "line": 25, + "column": 55 + }, + "end": { + "line": 25, + "column": 65 + } + }, + "object": { + "type": "ThisExpression", + "start": 670, + "end": 674, + "loc": { + "start": { + "line": 25, + "column": 55 + }, + "end": { + "line": 25, + "column": 59 + } + } + }, + "property": { + "type": "Identifier", + "start": 675, + "end": 680, + "loc": { + "start": { + "line": 25, + "column": 60 + }, + "end": { + "line": 25, + "column": 65 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 681, + "end": 689, + "loc": { + "start": { + "line": 25, + "column": 66 + }, + "end": { + "line": 25, + "column": 74 + } + }, + "name": "location" + }, + "computed": false + } + } + ] + } + ] + }, + { + "type": "Literal", + "start": 706, + "end": 727, + "loc": { + "start": { + "line": 25, + "column": 91 + }, + "end": { + "line": 26, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 734, + "end": 751, + "loc": { + "start": { + "line": 26, + "column": 27 + }, + "end": { + "line": 27, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 756, + "end": 773, + "loc": { + "start": { + "line": 27, + "column": 21 + }, + "end": { + "line": 28, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 773, + "end": 912, + "loc": { + "start": { + "line": 28, + "column": 16 + }, + "end": { + "line": 29, + "column": 56 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 773, + "end": 912, + "loc": { + "start": { + "line": 28, + "column": 16 + }, + "end": { + "line": 29, + "column": 56 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 785, + "end": 803, + "loc": { + "start": { + "line": 28, + "column": 28 + }, + "end": { + "line": 28, + "column": 46 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 785, + "end": 787, + "loc": { + "start": { + "line": 28, + "column": 28 + }, + "end": { + "line": 28, + "column": 30 + } + }, + "name": "id" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 788, + "end": 803, + "loc": { + "start": { + "line": 28, + "column": 31 + }, + "end": { + "line": 28, + "column": 46 + } + }, + "expression": { + "type": "MemberExpression", + "start": 789, + "end": 802, + "loc": { + "start": { + "line": 28, + "column": 32 + }, + "end": { + "line": 28, + "column": 45 + } + }, + "object": { + "type": "MemberExpression", + "start": 789, + "end": 799, + "loc": { + "start": { + "line": 28, + "column": 32 + }, + "end": { + "line": 28, + "column": 42 + } + }, + "object": { + "type": "ThisExpression", + "start": 789, + "end": 793, + "loc": { + "start": { + "line": 28, + "column": 32 + }, + "end": { + "line": 28, + "column": 36 + } + } + }, + "property": { + "type": "Identifier", + "start": 794, + "end": 799, + "loc": { + "start": { + "line": 28, + "column": 37 + }, + "end": { + "line": 28, + "column": 42 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 800, + "end": 802, + "loc": { + "start": { + "line": 28, + "column": 43 + }, + "end": { + "line": 28, + "column": 45 + } + }, + "name": "id" + }, + "computed": false + } + } + }, + { + "type": "JSXAttribute", + "start": 804, + "end": 830, + "loc": { + "start": { + "line": 28, + "column": 47 + }, + "end": { + "line": 28, + "column": 73 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 804, + "end": 810, + "loc": { + "start": { + "line": 28, + "column": 47 + }, + "end": { + "line": 28, + "column": 53 + } + }, + "name": "userID" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 811, + "end": 830, + "loc": { + "start": { + "line": 28, + "column": 54 + }, + "end": { + "line": 28, + "column": 73 + } + }, + "expression": { + "type": "MemberExpression", + "start": 812, + "end": 829, + "loc": { + "start": { + "line": 28, + "column": 55 + }, + "end": { + "line": 28, + "column": 72 + } + }, + "object": { + "type": "MemberExpression", + "start": 812, + "end": 822, + "loc": { + "start": { + "line": 28, + "column": 55 + }, + "end": { + "line": 28, + "column": 65 + } + }, + "object": { + "type": "ThisExpression", + "start": 812, + "end": 816, + "loc": { + "start": { + "line": 28, + "column": 55 + }, + "end": { + "line": 28, + "column": 59 + } + } + }, + "property": { + "type": "Identifier", + "start": 817, + "end": 822, + "loc": { + "start": { + "line": 28, + "column": 60 + }, + "end": { + "line": 28, + "column": 65 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 823, + "end": 829, + "loc": { + "start": { + "line": 28, + "column": 66 + }, + "end": { + "line": 28, + "column": 72 + } + }, + "name": "userID" + }, + "computed": false + } + } + }, + { + "type": "JSXAttribute", + "start": 831, + "end": 855, + "loc": { + "start": { + "line": 28, + "column": 74 + }, + "end": { + "line": 28, + "column": 98 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 831, + "end": 836, + "loc": { + "start": { + "line": 28, + "column": 74 + }, + "end": { + "line": 28, + "column": 79 + } + }, + "name": "liked" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 837, + "end": 855, + "loc": { + "start": { + "line": 28, + "column": 80 + }, + "end": { + "line": 28, + "column": 98 + } + }, + "expression": { + "type": "MemberExpression", + "start": 838, + "end": 854, + "loc": { + "start": { + "line": 28, + "column": 81 + }, + "end": { + "line": 28, + "column": 97 + } + }, + "object": { + "type": "MemberExpression", + "start": 838, + "end": 848, + "loc": { + "start": { + "line": 28, + "column": 81 + }, + "end": { + "line": 28, + "column": 91 + } + }, + "object": { + "type": "ThisExpression", + "start": 838, + "end": 842, + "loc": { + "start": { + "line": 28, + "column": 81 + }, + "end": { + "line": 28, + "column": 85 + } + } + }, + "property": { + "type": "Identifier", + "start": 843, + "end": 848, + "loc": { + "start": { + "line": 28, + "column": 86 + }, + "end": { + "line": 28, + "column": 91 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 849, + "end": 854, + "loc": { + "start": { + "line": 28, + "column": 92 + }, + "end": { + "line": 28, + "column": 97 + } + }, + "name": "liked" + }, + "computed": false + } + } + }, + { + "type": "JSXAttribute", + "start": 884, + "end": 910, + "loc": { + "start": { + "line": 29, + "column": 28 + }, + "end": { + "line": 29, + "column": 54 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 884, + "end": 890, + "loc": { + "start": { + "line": 29, + "column": 28 + }, + "end": { + "line": 29, + "column": 34 + } + }, + "name": "onLike" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 891, + "end": 910, + "loc": { + "start": { + "line": 29, + "column": 35 + }, + "end": { + "line": 29, + "column": 54 + } + }, + "expression": { + "type": "MemberExpression", + "start": 892, + "end": 909, + "loc": { + "start": { + "line": 29, + "column": 36 + }, + "end": { + "line": 29, + "column": 53 + } + }, + "object": { + "type": "MemberExpression", + "start": 892, + "end": 902, + "loc": { + "start": { + "line": 29, + "column": 36 + }, + "end": { + "line": 29, + "column": 46 + } + }, + "object": { + "type": "ThisExpression", + "start": 892, + "end": 896, + "loc": { + "start": { + "line": 29, + "column": 36 + }, + "end": { + "line": 29, + "column": 40 + } + } + }, + "property": { + "type": "Identifier", + "start": 897, + "end": 902, + "loc": { + "start": { + "line": 29, + "column": 41 + }, + "end": { + "line": 29, + "column": 46 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 903, + "end": 909, + "loc": { + "start": { + "line": 29, + "column": 47 + }, + "end": { + "line": 29, + "column": 53 + } + }, + "name": "onLike" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 774, + "end": 784, + "loc": { + "start": { + "line": 28, + "column": 17 + }, + "end": { + "line": 28, + "column": 27 + } + }, + "name": "LikeButton" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 912, + "end": 929, + "loc": { + "start": { + "line": 29, + "column": 56 + }, + "end": { + "line": 30, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 929, + "end": 1111, + "loc": { + "start": { + "line": 30, + "column": 16 + }, + "end": { + "line": 34, + "column": 21 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 929, + "end": 954, + "loc": { + "start": { + "line": 30, + "column": 16 + }, + "end": { + "line": 30, + "column": 41 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 933, + "end": 953, + "loc": { + "start": { + "line": 30, + "column": 20 + }, + "end": { + "line": 30, + "column": 40 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 933, + "end": 942, + "loc": { + "start": { + "line": 30, + "column": 20 + }, + "end": { + "line": 30, + "column": 29 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 943, + "end": 953, + "loc": { + "start": { + "line": 30, + "column": 30 + }, + "end": { + "line": 30, + "column": 40 + } + }, + "value": "hashtags", + "rawValue": null, + "raw": "\"hashtags\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 930, + "end": 932, + "loc": { + "start": { + "line": 30, + "column": 17 + }, + "end": { + "line": 30, + "column": 19 + } + }, + "name": "ul" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1106, + "end": 1111, + "loc": { + "start": { + "line": 34, + "column": 16 + }, + "end": { + "line": 34, + "column": 21 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1108, + "end": 1110, + "loc": { + "start": { + "line": 34, + "column": 18 + }, + "end": { + "line": 34, + "column": 20 + } + }, + "name": "ul" + } + }, + "children": [ + { + "type": "Literal", + "start": 954, + "end": 975, + "loc": { + "start": { + "line": 30, + "column": 41 + }, + "end": { + "line": 31, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 975, + "end": 1089, + "loc": { + "start": { + "line": 31, + "column": 20 + }, + "end": { + "line": 33, + "column": 22 + } + }, + "expression": { + "type": "CallExpression", + "start": 976, + "end": 1088, + "loc": { + "start": { + "line": 31, + "column": 21 + }, + "end": { + "line": 33, + "column": 21 + } + }, + "callee": { + "type": "MemberExpression", + "start": 976, + "end": 984, + "loc": { + "start": { + "line": 31, + "column": 21 + }, + "end": { + "line": 31, + "column": 29 + } + }, + "object": { + "type": "Identifier", + "start": 976, + "end": 980, + "loc": { + "start": { + "line": 31, + "column": 21 + }, + "end": { + "line": 31, + "column": 25 + } + }, + "name": "tags" + }, + "property": { + "type": "Identifier", + "start": 981, + "end": 984, + "loc": { + "start": { + "line": 31, + "column": 26 + }, + "end": { + "line": 31, + "column": 29 + } + }, + "name": "map" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 985, + "end": 1066, + "loc": { + "start": { + "line": 31, + "column": 30 + }, + "end": { + "line": 32, + "column": 74 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 985, + "end": 988, + "loc": { + "start": { + "line": 31, + "column": 30 + }, + "end": { + "line": 31, + "column": 33 + } + }, + "name": "tag" + } + ], + "body": { + "type": "JSXElement", + "start": 1016, + "end": 1066, + "loc": { + "start": { + "line": 32, + "column": 24 + }, + "end": { + "line": 32, + "column": 74 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1016, + "end": 1056, + "loc": { + "start": { + "line": 32, + "column": 24 + }, + "end": { + "line": 32, + "column": 64 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1020, + "end": 1038, + "loc": { + "start": { + "line": 32, + "column": 28 + }, + "end": { + "line": 32, + "column": 46 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1020, + "end": 1023, + "loc": { + "start": { + "line": 32, + "column": 28 + }, + "end": { + "line": 32, + "column": 31 + } + }, + "name": "key" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 1024, + "end": 1038, + "loc": { + "start": { + "line": 32, + "column": 32 + }, + "end": { + "line": 32, + "column": 46 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 1025, + "end": 1037, + "loc": { + "start": { + "line": 32, + "column": 33 + }, + "end": { + "line": 32, + "column": 45 + } + }, + "expressions": [ + { + "type": "Identifier", + "start": 1032, + "end": 1035, + "loc": { + "start": { + "line": 32, + "column": 40 + }, + "end": { + "line": 32, + "column": 43 + } + }, + "name": "tag" + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 1026, + "end": 1030, + "loc": { + "start": { + "line": 32, + "column": 34 + }, + "end": { + "line": 32, + "column": 38 + } + }, + "value": { + "raw": "tag-", + "cooked": "tag-" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 1036, + "end": 1036, + "loc": { + "start": { + "line": 32, + "column": 44 + }, + "end": { + "line": 32, + "column": 44 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + }, + { + "type": "JSXAttribute", + "start": 1039, + "end": 1055, + "loc": { + "start": { + "line": 32, + "column": 47 + }, + "end": { + "line": 32, + "column": 63 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1039, + "end": 1048, + "loc": { + "start": { + "line": 32, + "column": 47 + }, + "end": { + "line": 32, + "column": 56 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 1049, + "end": 1055, + "loc": { + "start": { + "line": 32, + "column": 57 + }, + "end": { + "line": 32, + "column": 63 + } + }, + "value": "item", + "rawValue": null, + "raw": "\"item\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1017, + "end": 1019, + "loc": { + "start": { + "line": 32, + "column": 25 + }, + "end": { + "line": 32, + "column": 27 + } + }, + "name": "li" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1061, + "end": 1066, + "loc": { + "start": { + "line": 32, + "column": 69 + }, + "end": { + "line": 32, + "column": 74 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1063, + "end": 1065, + "loc": { + "start": { + "line": 32, + "column": 71 + }, + "end": { + "line": 32, + "column": 73 + } + }, + "name": "li" + } + }, + "children": [ + { + "type": "JSXExpressionContainer", + "start": 1056, + "end": 1061, + "loc": { + "start": { + "line": 32, + "column": 64 + }, + "end": { + "line": 32, + "column": 69 + } + }, + "expression": { + "type": "Identifier", + "start": 1057, + "end": 1060, + "loc": { + "start": { + "line": 32, + "column": 65 + }, + "end": { + "line": 32, + "column": 68 + } + }, + "name": "tag" + } + } + ] + } + } + ] + } + }, + { + "type": "Literal", + "start": 1089, + "end": 1106, + "loc": { + "start": { + "line": 33, + "column": 22 + }, + "end": { + "line": 34, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 1111, + "end": 1124, + "loc": { + "start": { + "line": 34, + "column": 21 + }, + "end": { + "line": 35, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 200, + "end": 248, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 14, + "column": 7 + } + }, + "range": [ + 200, + 248 + ] + } + ] + } + ] + }, + "leadingComments": [], + "name": "_", + "trailingComments": [] + }, + { + "type": "Identifier", + "start": 1151, + "end": 1177, + "loc": { + "start": { + "line": 41, + "column": 0 + }, + "end": { + "line": 41, + "column": 26 + } + }, + "declaration": { + "type": "Identifier", + "start": 1166, + "end": 1177, + "loc": { + "start": { + "line": 41, + "column": 15 + }, + "end": { + "line": 41, + "column": 26 + } + }, + "name": "PhotoFooter" + }, + "name": "_", + "leadingComments": [], + "trailingComments": [] + }, + { + "type": "ExportDefaultDeclaration", + "start": 1151, + "end": 1177, + "loc": { + "start": { + "line": 41, + "column": 0 + }, + "end": { + "line": 41, + "column": 26 + } + }, + "declaration": { + "type": "ClassDeclaration", + "start": 157, + "end": 1149, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 39, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 163, + "end": 174, + "loc": { + "start": { + "line": 9, + "column": 6 + }, + "end": { + "line": 9, + "column": 17 + } + }, + "name": "PhotoFooter", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 183, + "end": 192, + "loc": { + "start": { + "line": 9, + "column": 26 + }, + "end": { + "line": 9, + "column": 35 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 193, + "end": 1149, + "loc": { + "start": { + "line": 9, + "column": 36 + }, + "end": { + "line": 39, + "column": 1 + } + }, + "body": [ + { + "type": "MethodDefinition", + "start": 253, + "end": 1146, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 37, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 253, + "end": 259, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 259, + "end": 1146, + "loc": { + "start": { + "line": 15, + "column": 10 + }, + "end": { + "line": 37, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 262, + "end": 1146, + "loc": { + "start": { + "line": 15, + "column": 13 + }, + "end": { + "line": 37, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 273, + "end": 316, + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 17, + "column": 51 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 279, + "end": 316, + "loc": { + "start": { + "line": 17, + "column": 14 + }, + "end": { + "line": 17, + "column": 51 + } + }, + "id": { + "type": "Identifier", + "start": 279, + "end": 283, + "loc": { + "start": { + "line": 17, + "column": 14 + }, + "end": { + "line": 17, + "column": 18 + } + }, + "name": "tags" + }, + "init": { + "type": "CallExpression", + "start": 286, + "end": 316, + "loc": { + "start": { + "line": 17, + "column": 21 + }, + "end": { + "line": 17, + "column": 51 + } + }, + "callee": { + "type": "MemberExpression", + "start": 286, + "end": 311, + "loc": { + "start": { + "line": 17, + "column": 21 + }, + "end": { + "line": 17, + "column": 46 + } + }, + "object": { + "type": "MemberExpression", + "start": 286, + "end": 305, + "loc": { + "start": { + "line": 17, + "column": 21 + }, + "end": { + "line": 17, + "column": 40 + } + }, + "object": { + "type": "MemberExpression", + "start": 286, + "end": 296, + "loc": { + "start": { + "line": 17, + "column": 21 + }, + "end": { + "line": 17, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 286, + "end": 290, + "loc": { + "start": { + "line": 17, + "column": 21 + }, + "end": { + "line": 17, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "start": 291, + "end": 296, + "loc": { + "start": { + "line": 17, + "column": 26 + }, + "end": { + "line": 17, + "column": 31 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 297, + "end": 305, + "loc": { + "start": { + "line": 17, + "column": 32 + }, + "end": { + "line": 17, + "column": 40 + } + }, + "name": "hashtags" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 306, + "end": 311, + "loc": { + "start": { + "line": 17, + "column": 41 + }, + "end": { + "line": 17, + "column": 46 + } + }, + "name": "split" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 312, + "end": 315, + "loc": { + "start": { + "line": 17, + "column": 47 + }, + "end": { + "line": 17, + "column": 50 + } + }, + "value": " ", + "rawValue": " ", + "raw": "' '" + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "ReturnStatement", + "start": 326, + "end": 1140, + "loc": { + "start": { + "line": 19, + "column": 8 + }, + "end": { + "line": 36, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 347, + "end": 1130, + "loc": { + "start": { + "line": 20, + "column": 12 + }, + "end": { + "line": 35, + "column": 18 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 347, + "end": 382, + "loc": { + "start": { + "line": 20, + "column": 12 + }, + "end": { + "line": 20, + "column": 47 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 352, + "end": 381, + "loc": { + "start": { + "line": 20, + "column": 17 + }, + "end": { + "line": 20, + "column": 46 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 352, + "end": 361, + "loc": { + "start": { + "line": 20, + "column": 17 + }, + "end": { + "line": 20, + "column": 26 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 362, + "end": 381, + "loc": { + "start": { + "line": 20, + "column": 27 + }, + "end": { + "line": 20, + "column": 46 + } + }, + "value": "photo-item-footer", + "rawValue": null, + "raw": "\"photo-item-footer\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 348, + "end": 351, + "loc": { + "start": { + "line": 20, + "column": 13 + }, + "end": { + "line": 20, + "column": 16 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1124, + "end": 1130, + "loc": { + "start": { + "line": 35, + "column": 12 + }, + "end": { + "line": 35, + "column": 18 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1126, + "end": 1129, + "loc": { + "start": { + "line": 35, + "column": 14 + }, + "end": { + "line": 35, + "column": 17 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 382, + "end": 399, + "loc": { + "start": { + "line": 20, + "column": 47 + }, + "end": { + "line": 21, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 399, + "end": 427, + "loc": { + "start": { + "line": 21, + "column": 16 + }, + "end": { + "line": 21, + "column": 44 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 399, + "end": 421, + "loc": { + "start": { + "line": 21, + "column": 16 + }, + "end": { + "line": 21, + "column": 38 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 404, + "end": 420, + "loc": { + "start": { + "line": 21, + "column": 21 + }, + "end": { + "line": 21, + "column": 37 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 404, + "end": 413, + "loc": { + "start": { + "line": 21, + "column": 21 + }, + "end": { + "line": 21, + "column": 30 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 414, + "end": 420, + "loc": { + "start": { + "line": 21, + "column": 31 + }, + "end": { + "line": 21, + "column": 37 + } + }, + "value": "dash", + "rawValue": null, + "raw": "\"dash\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 400, + "end": 403, + "loc": { + "start": { + "line": 21, + "column": 17 + }, + "end": { + "line": 21, + "column": 20 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 421, + "end": 427, + "loc": { + "start": { + "line": 21, + "column": 38 + }, + "end": { + "line": 21, + "column": 44 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 423, + "end": 426, + "loc": { + "start": { + "line": 21, + "column": 40 + }, + "end": { + "line": 21, + "column": 43 + } + }, + "name": "div" + } + }, + "children": [] + }, + { + "type": "Literal", + "start": 427, + "end": 444, + "loc": { + "start": { + "line": 21, + "column": 44 + }, + "end": { + "line": 22, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 444, + "end": 756, + "loc": { + "start": { + "line": 22, + "column": 16 + }, + "end": { + "line": 27, + "column": 21 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 444, + "end": 465, + "loc": { + "start": { + "line": 22, + "column": 16 + }, + "end": { + "line": 22, + "column": 37 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 448, + "end": 464, + "loc": { + "start": { + "line": 22, + "column": 20 + }, + "end": { + "line": 22, + "column": 36 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 448, + "end": 457, + "loc": { + "start": { + "line": 22, + "column": 20 + }, + "end": { + "line": 22, + "column": 29 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 458, + "end": 464, + "loc": { + "start": { + "line": 22, + "column": 30 + }, + "end": { + "line": 22, + "column": 36 + } + }, + "value": "item", + "rawValue": null, + "raw": "\"item\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 445, + "end": 447, + "loc": { + "start": { + "line": 22, + "column": 17 + }, + "end": { + "line": 22, + "column": 19 + } + }, + "name": "h4" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 751, + "end": 756, + "loc": { + "start": { + "line": 27, + "column": 16 + }, + "end": { + "line": 27, + "column": 21 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 753, + "end": 755, + "loc": { + "start": { + "line": 27, + "column": 18 + }, + "end": { + "line": 27, + "column": 20 + } + }, + "name": "h4" + } + }, + "children": [ + { + "type": "Literal", + "start": 465, + "end": 486, + "loc": { + "start": { + "line": 22, + "column": 37 + }, + "end": { + "line": 23, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 486, + "end": 536, + "loc": { + "start": { + "line": 23, + "column": 20 + }, + "end": { + "line": 23, + "column": 70 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 486, + "end": 509, + "loc": { + "start": { + "line": 23, + "column": 20 + }, + "end": { + "line": 23, + "column": 43 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 492, + "end": 508, + "loc": { + "start": { + "line": 23, + "column": 26 + }, + "end": { + "line": 23, + "column": 42 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 492, + "end": 501, + "loc": { + "start": { + "line": 23, + "column": 26 + }, + "end": { + "line": 23, + "column": 35 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 502, + "end": 508, + "loc": { + "start": { + "line": 23, + "column": 36 + }, + "end": { + "line": 23, + "column": 42 + } + }, + "value": "name", + "rawValue": null, + "raw": "\"name\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 487, + "end": 491, + "loc": { + "start": { + "line": 23, + "column": 21 + }, + "end": { + "line": 23, + "column": 25 + } + }, + "name": "span" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 529, + "end": 536, + "loc": { + "start": { + "line": 23, + "column": 63 + }, + "end": { + "line": 23, + "column": 70 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 531, + "end": 535, + "loc": { + "start": { + "line": 23, + "column": 65 + }, + "end": { + "line": 23, + "column": 69 + } + }, + "name": "span" + } + }, + "children": [ + { + "type": "JSXExpressionContainer", + "start": 509, + "end": 529, + "loc": { + "start": { + "line": 23, + "column": 43 + }, + "end": { + "line": 23, + "column": 63 + } + }, + "expression": { + "type": "MemberExpression", + "start": 510, + "end": 528, + "loc": { + "start": { + "line": 23, + "column": 44 + }, + "end": { + "line": 23, + "column": 62 + } + }, + "object": { + "type": "MemberExpression", + "start": 510, + "end": 520, + "loc": { + "start": { + "line": 23, + "column": 44 + }, + "end": { + "line": 23, + "column": 54 + } + }, + "object": { + "type": "ThisExpression", + "start": 510, + "end": 514, + "loc": { + "start": { + "line": 23, + "column": 44 + }, + "end": { + "line": 23, + "column": 48 + } + } + }, + "property": { + "type": "Identifier", + "start": 515, + "end": 520, + "loc": { + "start": { + "line": 23, + "column": 49 + }, + "end": { + "line": 23, + "column": 54 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 521, + "end": 528, + "loc": { + "start": { + "line": 23, + "column": 55 + }, + "end": { + "line": 23, + "column": 62 + } + }, + "name": "caption" + }, + "computed": false + } + } + ] + }, + { + "type": "Literal", + "start": 536, + "end": 560, + "loc": { + "start": { + "line": 23, + "column": 70 + }, + "end": { + "line": 24, + "column": 20 + } + }, + "value": " in\n ", + "rawValue": null, + "raw": " in\n " + }, + { + "type": "JSXElement", + "start": 560, + "end": 734, + "loc": { + "start": { + "line": 24, + "column": 20 + }, + "end": { + "line": 26, + "column": 27 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 560, + "end": 608, + "loc": { + "start": { + "line": 24, + "column": 20 + }, + "end": { + "line": 24, + "column": 68 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 566, + "end": 607, + "loc": { + "start": { + "line": 24, + "column": 26 + }, + "end": { + "line": 24, + "column": 67 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 566, + "end": 568, + "loc": { + "start": { + "line": 24, + "column": 26 + }, + "end": { + "line": 24, + "column": 28 + } + }, + "name": "to" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 569, + "end": 607, + "loc": { + "start": { + "line": 24, + "column": 29 + }, + "end": { + "line": 24, + "column": 67 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 570, + "end": 606, + "loc": { + "start": { + "line": 24, + "column": 30 + }, + "end": { + "line": 24, + "column": 66 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 585, + "end": 604, + "loc": { + "start": { + "line": 24, + "column": 45 + }, + "end": { + "line": 24, + "column": 64 + } + }, + "object": { + "type": "MemberExpression", + "start": 585, + "end": 595, + "loc": { + "start": { + "line": 24, + "column": 45 + }, + "end": { + "line": 24, + "column": 55 + } + }, + "object": { + "type": "ThisExpression", + "start": 585, + "end": 589, + "loc": { + "start": { + "line": 24, + "column": 45 + }, + "end": { + "line": 24, + "column": 49 + } + } + }, + "property": { + "type": "Identifier", + "start": 590, + "end": 595, + "loc": { + "start": { + "line": 24, + "column": 50 + }, + "end": { + "line": 24, + "column": 55 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 596, + "end": 604, + "loc": { + "start": { + "line": 24, + "column": 56 + }, + "end": { + "line": 24, + "column": 64 + } + }, + "name": "location" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 571, + "end": 583, + "loc": { + "start": { + "line": 24, + "column": 31 + }, + "end": { + "line": 24, + "column": 43 + } + }, + "value": { + "raw": "/location?q=", + "cooked": "/location?q=" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 605, + "end": 605, + "loc": { + "start": { + "line": 24, + "column": 65 + }, + "end": { + "line": 24, + "column": 65 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 561, + "end": 565, + "loc": { + "start": { + "line": 24, + "column": 21 + }, + "end": { + "line": 24, + "column": 25 + } + }, + "name": "Link" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 727, + "end": 734, + "loc": { + "start": { + "line": 26, + "column": 20 + }, + "end": { + "line": 26, + "column": 27 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 729, + "end": 733, + "loc": { + "start": { + "line": 26, + "column": 22 + }, + "end": { + "line": 26, + "column": 26 + } + }, + "name": "Link" + } + }, + "children": [ + { + "type": "Literal", + "start": 608, + "end": 639, + "loc": { + "start": { + "line": 24, + "column": 68 + }, + "end": { + "line": 25, + "column": 24 + } + }, + "value": " \n ", + "rawValue": null, + "raw": " \n " + }, + { + "type": "JSXElement", + "start": 639, + "end": 706, + "loc": { + "start": { + "line": 25, + "column": 24 + }, + "end": { + "line": 25, + "column": 91 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 639, + "end": 661, + "loc": { + "start": { + "line": 25, + "column": 24 + }, + "end": { + "line": 25, + "column": 46 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 645, + "end": 660, + "loc": { + "start": { + "line": 25, + "column": 30 + }, + "end": { + "line": 25, + "column": 45 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 645, + "end": 654, + "loc": { + "start": { + "line": 25, + "column": 30 + }, + "end": { + "line": 25, + "column": 39 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 655, + "end": 660, + "loc": { + "start": { + "line": 25, + "column": 40 + }, + "end": { + "line": 25, + "column": 45 + } + }, + "value": "loc", + "rawValue": null, + "raw": "\"loc\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 640, + "end": 644, + "loc": { + "start": { + "line": 25, + "column": 25 + }, + "end": { + "line": 25, + "column": 29 + } + }, + "name": "span" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 699, + "end": 706, + "loc": { + "start": { + "line": 25, + "column": 84 + }, + "end": { + "line": 25, + "column": 91 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 701, + "end": 705, + "loc": { + "start": { + "line": 25, + "column": 86 + }, + "end": { + "line": 25, + "column": 90 + } + }, + "name": "span" + } + }, + "children": [ + { + "type": "JSXElement", + "start": 661, + "end": 699, + "loc": { + "start": { + "line": 25, + "column": 46 + }, + "end": { + "line": 25, + "column": 84 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 661, + "end": 669, + "loc": { + "start": { + "line": 25, + "column": 46 + }, + "end": { + "line": 25, + "column": 54 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 662, + "end": 668, + "loc": { + "start": { + "line": 25, + "column": 47 + }, + "end": { + "line": 25, + "column": 53 + } + }, + "name": "strong" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 690, + "end": 699, + "loc": { + "start": { + "line": 25, + "column": 75 + }, + "end": { + "line": 25, + "column": 84 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 692, + "end": 698, + "loc": { + "start": { + "line": 25, + "column": 77 + }, + "end": { + "line": 25, + "column": 83 + } + }, + "name": "strong" + } + }, + "children": [ + { + "type": "JSXExpressionContainer", + "start": 669, + "end": 690, + "loc": { + "start": { + "line": 25, + "column": 54 + }, + "end": { + "line": 25, + "column": 75 + } + }, + "expression": { + "type": "MemberExpression", + "start": 670, + "end": 689, + "loc": { + "start": { + "line": 25, + "column": 55 + }, + "end": { + "line": 25, + "column": 74 + } + }, + "object": { + "type": "MemberExpression", + "start": 670, + "end": 680, + "loc": { + "start": { + "line": 25, + "column": 55 + }, + "end": { + "line": 25, + "column": 65 + } + }, + "object": { + "type": "ThisExpression", + "start": 670, + "end": 674, + "loc": { + "start": { + "line": 25, + "column": 55 + }, + "end": { + "line": 25, + "column": 59 + } + } + }, + "property": { + "type": "Identifier", + "start": 675, + "end": 680, + "loc": { + "start": { + "line": 25, + "column": 60 + }, + "end": { + "line": 25, + "column": 65 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 681, + "end": 689, + "loc": { + "start": { + "line": 25, + "column": 66 + }, + "end": { + "line": 25, + "column": 74 + } + }, + "name": "location" + }, + "computed": false + } + } + ] + } + ] + }, + { + "type": "Literal", + "start": 706, + "end": 727, + "loc": { + "start": { + "line": 25, + "column": 91 + }, + "end": { + "line": 26, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 734, + "end": 751, + "loc": { + "start": { + "line": 26, + "column": 27 + }, + "end": { + "line": 27, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 756, + "end": 773, + "loc": { + "start": { + "line": 27, + "column": 21 + }, + "end": { + "line": 28, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 773, + "end": 912, + "loc": { + "start": { + "line": 28, + "column": 16 + }, + "end": { + "line": 29, + "column": 56 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 773, + "end": 912, + "loc": { + "start": { + "line": 28, + "column": 16 + }, + "end": { + "line": 29, + "column": 56 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 785, + "end": 803, + "loc": { + "start": { + "line": 28, + "column": 28 + }, + "end": { + "line": 28, + "column": 46 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 785, + "end": 787, + "loc": { + "start": { + "line": 28, + "column": 28 + }, + "end": { + "line": 28, + "column": 30 + } + }, + "name": "id" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 788, + "end": 803, + "loc": { + "start": { + "line": 28, + "column": 31 + }, + "end": { + "line": 28, + "column": 46 + } + }, + "expression": { + "type": "MemberExpression", + "start": 789, + "end": 802, + "loc": { + "start": { + "line": 28, + "column": 32 + }, + "end": { + "line": 28, + "column": 45 + } + }, + "object": { + "type": "MemberExpression", + "start": 789, + "end": 799, + "loc": { + "start": { + "line": 28, + "column": 32 + }, + "end": { + "line": 28, + "column": 42 + } + }, + "object": { + "type": "ThisExpression", + "start": 789, + "end": 793, + "loc": { + "start": { + "line": 28, + "column": 32 + }, + "end": { + "line": 28, + "column": 36 + } + } + }, + "property": { + "type": "Identifier", + "start": 794, + "end": 799, + "loc": { + "start": { + "line": 28, + "column": 37 + }, + "end": { + "line": 28, + "column": 42 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 800, + "end": 802, + "loc": { + "start": { + "line": 28, + "column": 43 + }, + "end": { + "line": 28, + "column": 45 + } + }, + "name": "id" + }, + "computed": false + } + } + }, + { + "type": "JSXAttribute", + "start": 804, + "end": 830, + "loc": { + "start": { + "line": 28, + "column": 47 + }, + "end": { + "line": 28, + "column": 73 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 804, + "end": 810, + "loc": { + "start": { + "line": 28, + "column": 47 + }, + "end": { + "line": 28, + "column": 53 + } + }, + "name": "userID" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 811, + "end": 830, + "loc": { + "start": { + "line": 28, + "column": 54 + }, + "end": { + "line": 28, + "column": 73 + } + }, + "expression": { + "type": "MemberExpression", + "start": 812, + "end": 829, + "loc": { + "start": { + "line": 28, + "column": 55 + }, + "end": { + "line": 28, + "column": 72 + } + }, + "object": { + "type": "MemberExpression", + "start": 812, + "end": 822, + "loc": { + "start": { + "line": 28, + "column": 55 + }, + "end": { + "line": 28, + "column": 65 + } + }, + "object": { + "type": "ThisExpression", + "start": 812, + "end": 816, + "loc": { + "start": { + "line": 28, + "column": 55 + }, + "end": { + "line": 28, + "column": 59 + } + } + }, + "property": { + "type": "Identifier", + "start": 817, + "end": 822, + "loc": { + "start": { + "line": 28, + "column": 60 + }, + "end": { + "line": 28, + "column": 65 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 823, + "end": 829, + "loc": { + "start": { + "line": 28, + "column": 66 + }, + "end": { + "line": 28, + "column": 72 + } + }, + "name": "userID" + }, + "computed": false + } + } + }, + { + "type": "JSXAttribute", + "start": 831, + "end": 855, + "loc": { + "start": { + "line": 28, + "column": 74 + }, + "end": { + "line": 28, + "column": 98 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 831, + "end": 836, + "loc": { + "start": { + "line": 28, + "column": 74 + }, + "end": { + "line": 28, + "column": 79 + } + }, + "name": "liked" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 837, + "end": 855, + "loc": { + "start": { + "line": 28, + "column": 80 + }, + "end": { + "line": 28, + "column": 98 + } + }, + "expression": { + "type": "MemberExpression", + "start": 838, + "end": 854, + "loc": { + "start": { + "line": 28, + "column": 81 + }, + "end": { + "line": 28, + "column": 97 + } + }, + "object": { + "type": "MemberExpression", + "start": 838, + "end": 848, + "loc": { + "start": { + "line": 28, + "column": 81 + }, + "end": { + "line": 28, + "column": 91 + } + }, + "object": { + "type": "ThisExpression", + "start": 838, + "end": 842, + "loc": { + "start": { + "line": 28, + "column": 81 + }, + "end": { + "line": 28, + "column": 85 + } + } + }, + "property": { + "type": "Identifier", + "start": 843, + "end": 848, + "loc": { + "start": { + "line": 28, + "column": 86 + }, + "end": { + "line": 28, + "column": 91 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 849, + "end": 854, + "loc": { + "start": { + "line": 28, + "column": 92 + }, + "end": { + "line": 28, + "column": 97 + } + }, + "name": "liked" + }, + "computed": false + } + } + }, + { + "type": "JSXAttribute", + "start": 884, + "end": 910, + "loc": { + "start": { + "line": 29, + "column": 28 + }, + "end": { + "line": 29, + "column": 54 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 884, + "end": 890, + "loc": { + "start": { + "line": 29, + "column": 28 + }, + "end": { + "line": 29, + "column": 34 + } + }, + "name": "onLike" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 891, + "end": 910, + "loc": { + "start": { + "line": 29, + "column": 35 + }, + "end": { + "line": 29, + "column": 54 + } + }, + "expression": { + "type": "MemberExpression", + "start": 892, + "end": 909, + "loc": { + "start": { + "line": 29, + "column": 36 + }, + "end": { + "line": 29, + "column": 53 + } + }, + "object": { + "type": "MemberExpression", + "start": 892, + "end": 902, + "loc": { + "start": { + "line": 29, + "column": 36 + }, + "end": { + "line": 29, + "column": 46 + } + }, + "object": { + "type": "ThisExpression", + "start": 892, + "end": 896, + "loc": { + "start": { + "line": 29, + "column": 36 + }, + "end": { + "line": 29, + "column": 40 + } + } + }, + "property": { + "type": "Identifier", + "start": 897, + "end": 902, + "loc": { + "start": { + "line": 29, + "column": 41 + }, + "end": { + "line": 29, + "column": 46 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 903, + "end": 909, + "loc": { + "start": { + "line": 29, + "column": 47 + }, + "end": { + "line": 29, + "column": 53 + } + }, + "name": "onLike" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 774, + "end": 784, + "loc": { + "start": { + "line": 28, + "column": 17 + }, + "end": { + "line": 28, + "column": 27 + } + }, + "name": "LikeButton" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 912, + "end": 929, + "loc": { + "start": { + "line": 29, + "column": 56 + }, + "end": { + "line": 30, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 929, + "end": 1111, + "loc": { + "start": { + "line": 30, + "column": 16 + }, + "end": { + "line": 34, + "column": 21 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 929, + "end": 954, + "loc": { + "start": { + "line": 30, + "column": 16 + }, + "end": { + "line": 30, + "column": 41 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 933, + "end": 953, + "loc": { + "start": { + "line": 30, + "column": 20 + }, + "end": { + "line": 30, + "column": 40 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 933, + "end": 942, + "loc": { + "start": { + "line": 30, + "column": 20 + }, + "end": { + "line": 30, + "column": 29 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 943, + "end": 953, + "loc": { + "start": { + "line": 30, + "column": 30 + }, + "end": { + "line": 30, + "column": 40 + } + }, + "value": "hashtags", + "rawValue": null, + "raw": "\"hashtags\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 930, + "end": 932, + "loc": { + "start": { + "line": 30, + "column": 17 + }, + "end": { + "line": 30, + "column": 19 + } + }, + "name": "ul" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1106, + "end": 1111, + "loc": { + "start": { + "line": 34, + "column": 16 + }, + "end": { + "line": 34, + "column": 21 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1108, + "end": 1110, + "loc": { + "start": { + "line": 34, + "column": 18 + }, + "end": { + "line": 34, + "column": 20 + } + }, + "name": "ul" + } + }, + "children": [ + { + "type": "Literal", + "start": 954, + "end": 975, + "loc": { + "start": { + "line": 30, + "column": 41 + }, + "end": { + "line": 31, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 975, + "end": 1089, + "loc": { + "start": { + "line": 31, + "column": 20 + }, + "end": { + "line": 33, + "column": 22 + } + }, + "expression": { + "type": "CallExpression", + "start": 976, + "end": 1088, + "loc": { + "start": { + "line": 31, + "column": 21 + }, + "end": { + "line": 33, + "column": 21 + } + }, + "callee": { + "type": "MemberExpression", + "start": 976, + "end": 984, + "loc": { + "start": { + "line": 31, + "column": 21 + }, + "end": { + "line": 31, + "column": 29 + } + }, + "object": { + "type": "Identifier", + "start": 976, + "end": 980, + "loc": { + "start": { + "line": 31, + "column": 21 + }, + "end": { + "line": 31, + "column": 25 + } + }, + "name": "tags" + }, + "property": { + "type": "Identifier", + "start": 981, + "end": 984, + "loc": { + "start": { + "line": 31, + "column": 26 + }, + "end": { + "line": 31, + "column": 29 + } + }, + "name": "map" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 985, + "end": 1066, + "loc": { + "start": { + "line": 31, + "column": 30 + }, + "end": { + "line": 32, + "column": 74 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 985, + "end": 988, + "loc": { + "start": { + "line": 31, + "column": 30 + }, + "end": { + "line": 31, + "column": 33 + } + }, + "name": "tag" + } + ], + "body": { + "type": "JSXElement", + "start": 1016, + "end": 1066, + "loc": { + "start": { + "line": 32, + "column": 24 + }, + "end": { + "line": 32, + "column": 74 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1016, + "end": 1056, + "loc": { + "start": { + "line": 32, + "column": 24 + }, + "end": { + "line": 32, + "column": 64 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1020, + "end": 1038, + "loc": { + "start": { + "line": 32, + "column": 28 + }, + "end": { + "line": 32, + "column": 46 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1020, + "end": 1023, + "loc": { + "start": { + "line": 32, + "column": 28 + }, + "end": { + "line": 32, + "column": 31 + } + }, + "name": "key" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 1024, + "end": 1038, + "loc": { + "start": { + "line": 32, + "column": 32 + }, + "end": { + "line": 32, + "column": 46 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 1025, + "end": 1037, + "loc": { + "start": { + "line": 32, + "column": 33 + }, + "end": { + "line": 32, + "column": 45 + } + }, + "expressions": [ + { + "type": "Identifier", + "start": 1032, + "end": 1035, + "loc": { + "start": { + "line": 32, + "column": 40 + }, + "end": { + "line": 32, + "column": 43 + } + }, + "name": "tag" + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 1026, + "end": 1030, + "loc": { + "start": { + "line": 32, + "column": 34 + }, + "end": { + "line": 32, + "column": 38 + } + }, + "value": { + "raw": "tag-", + "cooked": "tag-" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 1036, + "end": 1036, + "loc": { + "start": { + "line": 32, + "column": 44 + }, + "end": { + "line": 32, + "column": 44 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + }, + { + "type": "JSXAttribute", + "start": 1039, + "end": 1055, + "loc": { + "start": { + "line": 32, + "column": 47 + }, + "end": { + "line": 32, + "column": 63 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1039, + "end": 1048, + "loc": { + "start": { + "line": 32, + "column": 47 + }, + "end": { + "line": 32, + "column": 56 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 1049, + "end": 1055, + "loc": { + "start": { + "line": 32, + "column": 57 + }, + "end": { + "line": 32, + "column": 63 + } + }, + "value": "item", + "rawValue": null, + "raw": "\"item\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1017, + "end": 1019, + "loc": { + "start": { + "line": 32, + "column": 25 + }, + "end": { + "line": 32, + "column": 27 + } + }, + "name": "li" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1061, + "end": 1066, + "loc": { + "start": { + "line": 32, + "column": 69 + }, + "end": { + "line": 32, + "column": 74 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1063, + "end": 1065, + "loc": { + "start": { + "line": 32, + "column": 71 + }, + "end": { + "line": 32, + "column": 73 + } + }, + "name": "li" + } + }, + "children": [ + { + "type": "JSXExpressionContainer", + "start": 1056, + "end": 1061, + "loc": { + "start": { + "line": 32, + "column": 64 + }, + "end": { + "line": 32, + "column": 69 + } + }, + "expression": { + "type": "Identifier", + "start": 1057, + "end": 1060, + "loc": { + "start": { + "line": 32, + "column": 65 + }, + "end": { + "line": 32, + "column": 68 + } + }, + "name": "tag" + } + } + ] + } + } + ] + } + }, + { + "type": "Literal", + "start": 1089, + "end": 1106, + "loc": { + "start": { + "line": 33, + "column": 22 + }, + "end": { + "line": 34, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 1111, + "end": 1124, + "loc": { + "start": { + "line": 34, + "column": 21 + }, + "end": { + "line": 35, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 200, + "end": 248, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 14, + "column": 7 + } + }, + "range": [ + 200, + 248 + ] + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * PhotoFooter component\n ", + "start": 124, + "end": 156, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + }, + "range": [ + 124, + 156 + ] + } + ], + "__esdoc__pseudo_export": false, + "trailingComments": [] + }, + "leadingComments": null + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/components/PhotoList/PhotoItem.js.json b/app/docs/ast/source/components/PhotoList/PhotoItem.js.json new file mode 100644 index 0000000..1f266db --- /dev/null +++ b/app/docs/ast/source/components/PhotoList/PhotoItem.js.json @@ -0,0 +1,3001 @@ +{ + "type": "Program", + "start": 0, + "end": 776, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 35, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 38, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 38 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + }, + { + "type": "ImportSpecifier", + "start": 15, + "end": 24, + "loc": { + "start": { + "line": 1, + "column": 15 + }, + "end": { + "line": 1, + "column": 24 + } + }, + "imported": { + "type": "Identifier", + "start": 15, + "end": 24, + "loc": { + "start": { + "line": 1, + "column": 15 + }, + "end": { + "line": 1, + "column": 24 + } + }, + "name": "Component" + }, + "local": { + "type": "Identifier", + "start": 15, + "end": 24, + "loc": { + "start": { + "line": 1, + "column": 15 + }, + "end": { + "line": 1, + "column": 24 + } + }, + "name": "Component" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 31, + "end": 38, + "loc": { + "start": { + "line": 1, + "column": 31 + }, + "end": { + "line": 1, + "column": 38 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ImportDeclaration", + "start": 39, + "end": 74, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 35 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 48, + "end": 52, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "imported": { + "type": "Identifier", + "start": 48, + "end": 52, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "name": "Link" + }, + "local": { + "type": "Identifier", + "start": 48, + "end": 52, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "name": "Link" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 60, + "end": 74, + "loc": { + "start": { + "line": 2, + "column": 21 + }, + "end": { + "line": 2, + "column": 35 + } + }, + "value": "react-router", + "rawValue": "react-router", + "raw": "'react-router'" + } + }, + { + "type": "ImportDeclaration", + "start": 75, + "end": 102, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 27 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 82, + "end": 88, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 13 + } + }, + "local": { + "type": "Identifier", + "start": 82, + "end": 88, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 13 + } + }, + "name": "config" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 94, + "end": 102, + "loc": { + "start": { + "line": 3, + "column": 19 + }, + "end": { + "line": 3, + "column": 27 + } + }, + "value": "config", + "rawValue": "config", + "raw": "'config'" + } + }, + { + "type": "ImportDeclaration", + "start": 104, + "end": 148, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 7, + "column": 19 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 117, + "end": 127, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 6, + "column": 14 + } + }, + "imported": { + "type": "Identifier", + "start": 117, + "end": 127, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 6, + "column": 14 + } + }, + "name": "LikeButton" + }, + "local": { + "type": "Identifier", + "start": 117, + "end": 127, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 6, + "column": 14 + } + }, + "name": "LikeButton" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 136, + "end": 148, + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 19 + } + }, + "value": "components", + "rawValue": "components", + "raw": "'components'" + } + }, + { + "type": "ImportDeclaration", + "start": 150, + "end": 189, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 39 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 157, + "end": 168, + "loc": { + "start": { + "line": 9, + "column": 7 + }, + "end": { + "line": 9, + "column": 18 + } + }, + "local": { + "type": "Identifier", + "start": 157, + "end": 168, + "loc": { + "start": { + "line": 9, + "column": 7 + }, + "end": { + "line": 9, + "column": 18 + } + }, + "name": "PhotoFooter" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 174, + "end": 189, + "loc": { + "start": { + "line": 9, + "column": 24 + }, + "end": { + "line": 9, + "column": 39 + } + }, + "value": "./PhotoFooter", + "rawValue": "./PhotoFooter", + "raw": "'./PhotoFooter'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * PhotoItem component\n ", + "start": 191, + "end": 221, + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + }, + "range": [ + 191, + 221 + ] + } + ] + }, + { + "type": "Identifier", + "start": 222, + "end": 749, + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 32, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 228, + "end": 237, + "loc": { + "start": { + "line": 14, + "column": 6 + }, + "end": { + "line": 14, + "column": 15 + } + }, + "name": "PhotoItem", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 246, + "end": 255, + "loc": { + "start": { + "line": 14, + "column": 24 + }, + "end": { + "line": 14, + "column": 33 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 256, + "end": 749, + "loc": { + "start": { + "line": 14, + "column": 34 + }, + "end": { + "line": 32, + "column": 1 + } + }, + "body": [ + { + "type": "MethodDefinition", + "start": 316, + "end": 747, + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 31, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 316, + "end": 322, + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 322, + "end": 747, + "loc": { + "start": { + "line": 20, + "column": 10 + }, + "end": { + "line": 31, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 325, + "end": 747, + "loc": { + "start": { + "line": 20, + "column": 13 + }, + "end": { + "line": 31, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 335, + "end": 741, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 30, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 356, + "end": 731, + "loc": { + "start": { + "line": 22, + "column": 12 + }, + "end": { + "line": 29, + "column": 17 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 356, + "end": 360, + "loc": { + "start": { + "line": 22, + "column": 12 + }, + "end": { + "line": 22, + "column": 16 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 357, + "end": 359, + "loc": { + "start": { + "line": 22, + "column": 13 + }, + "end": { + "line": 22, + "column": 15 + } + }, + "name": "li" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 726, + "end": 731, + "loc": { + "start": { + "line": 29, + "column": 12 + }, + "end": { + "line": 29, + "column": 17 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 728, + "end": 730, + "loc": { + "start": { + "line": 29, + "column": 14 + }, + "end": { + "line": 29, + "column": 16 + } + }, + "name": "li" + } + }, + "children": [ + { + "type": "Literal", + "start": 360, + "end": 377, + "loc": { + "start": { + "line": 22, + "column": 16 + }, + "end": { + "line": 23, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 377, + "end": 639, + "loc": { + "start": { + "line": 23, + "column": 16 + }, + "end": { + "line": 27, + "column": 23 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 377, + "end": 415, + "loc": { + "start": { + "line": 23, + "column": 16 + }, + "end": { + "line": 23, + "column": 54 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 383, + "end": 414, + "loc": { + "start": { + "line": 23, + "column": 22 + }, + "end": { + "line": 23, + "column": 53 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 383, + "end": 385, + "loc": { + "start": { + "line": 23, + "column": 22 + }, + "end": { + "line": 23, + "column": 24 + } + }, + "name": "to" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 386, + "end": 414, + "loc": { + "start": { + "line": 23, + "column": 25 + }, + "end": { + "line": 23, + "column": 53 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 387, + "end": 413, + "loc": { + "start": { + "line": 23, + "column": 26 + }, + "end": { + "line": 23, + "column": 52 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 398, + "end": 411, + "loc": { + "start": { + "line": 23, + "column": 37 + }, + "end": { + "line": 23, + "column": 50 + } + }, + "object": { + "type": "MemberExpression", + "start": 398, + "end": 408, + "loc": { + "start": { + "line": 23, + "column": 37 + }, + "end": { + "line": 23, + "column": 47 + } + }, + "object": { + "type": "ThisExpression", + "start": 398, + "end": 402, + "loc": { + "start": { + "line": 23, + "column": 37 + }, + "end": { + "line": 23, + "column": 41 + } + } + }, + "property": { + "type": "Identifier", + "start": 403, + "end": 408, + "loc": { + "start": { + "line": 23, + "column": 42 + }, + "end": { + "line": 23, + "column": 47 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 409, + "end": 411, + "loc": { + "start": { + "line": 23, + "column": 48 + }, + "end": { + "line": 23, + "column": 50 + } + }, + "name": "id" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 388, + "end": 396, + "loc": { + "start": { + "line": 23, + "column": 27 + }, + "end": { + "line": 23, + "column": 35 + } + }, + "value": { + "raw": "/photos/", + "cooked": "/photos/" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 412, + "end": 412, + "loc": { + "start": { + "line": 23, + "column": 51 + }, + "end": { + "line": 23, + "column": 51 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 378, + "end": 382, + "loc": { + "start": { + "line": 23, + "column": 17 + }, + "end": { + "line": 23, + "column": 21 + } + }, + "name": "Link" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 632, + "end": 639, + "loc": { + "start": { + "line": 27, + "column": 16 + }, + "end": { + "line": 27, + "column": 23 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 634, + "end": 638, + "loc": { + "start": { + "line": 27, + "column": 18 + }, + "end": { + "line": 27, + "column": 22 + } + }, + "name": "Link" + } + }, + "children": [ + { + "type": "Literal", + "start": 415, + "end": 436, + "loc": { + "start": { + "line": 23, + "column": 54 + }, + "end": { + "line": 24, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 436, + "end": 615, + "loc": { + "start": { + "line": 24, + "column": 20 + }, + "end": { + "line": 26, + "column": 48 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 436, + "end": 615, + "loc": { + "start": { + "line": 24, + "column": 20 + }, + "end": { + "line": 26, + "column": 48 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 465, + "end": 566, + "loc": { + "start": { + "line": 25, + "column": 24 + }, + "end": { + "line": 25, + "column": 125 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 465, + "end": 468, + "loc": { + "start": { + "line": 25, + "column": 24 + }, + "end": { + "line": 25, + "column": 27 + } + }, + "name": "src" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 469, + "end": 566, + "loc": { + "start": { + "line": 25, + "column": 28 + }, + "end": { + "line": 25, + "column": 125 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 470, + "end": 565, + "loc": { + "start": { + "line": 25, + "column": 29 + }, + "end": { + "line": 25, + "column": 124 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 473, + "end": 493, + "loc": { + "start": { + "line": 25, + "column": 32 + }, + "end": { + "line": 25, + "column": 52 + } + }, + "object": { + "type": "MemberExpression", + "start": 473, + "end": 485, + "loc": { + "start": { + "line": 25, + "column": 32 + }, + "end": { + "line": 25, + "column": 44 + } + }, + "object": { + "type": "Identifier", + "start": 473, + "end": 479, + "loc": { + "start": { + "line": 25, + "column": 32 + }, + "end": { + "line": 25, + "column": 38 + } + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 480, + "end": 485, + "loc": { + "start": { + "line": 25, + "column": 39 + }, + "end": { + "line": 25, + "column": 44 + } + }, + "name": "imgix" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 486, + "end": 493, + "loc": { + "start": { + "line": 25, + "column": 45 + }, + "end": { + "line": 25, + "column": 52 + } + }, + "name": "baseUrl" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 497, + "end": 516, + "loc": { + "start": { + "line": 25, + "column": 56 + }, + "end": { + "line": 25, + "column": 75 + } + }, + "object": { + "type": "MemberExpression", + "start": 497, + "end": 507, + "loc": { + "start": { + "line": 25, + "column": 56 + }, + "end": { + "line": 25, + "column": 66 + } + }, + "object": { + "type": "ThisExpression", + "start": 497, + "end": 501, + "loc": { + "start": { + "line": 25, + "column": 56 + }, + "end": { + "line": 25, + "column": 60 + } + } + }, + "property": { + "type": "Identifier", + "start": 502, + "end": 507, + "loc": { + "start": { + "line": 25, + "column": 61 + }, + "end": { + "line": 25, + "column": 66 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 508, + "end": 516, + "loc": { + "start": { + "line": 25, + "column": 67 + }, + "end": { + "line": 25, + "column": 75 + } + }, + "name": "filename" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 471, + "end": 471, + "loc": { + "start": { + "line": 25, + "column": 30 + }, + "end": { + "line": 25, + "column": 30 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 494, + "end": 495, + "loc": { + "start": { + "line": 25, + "column": 53 + }, + "end": { + "line": 25, + "column": 54 + } + }, + "value": { + "raw": "/", + "cooked": "/" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 517, + "end": 564, + "loc": { + "start": { + "line": 25, + "column": 76 + }, + "end": { + "line": 25, + "column": 123 + } + }, + "value": { + "raw": "?auto=enhance&w=200&h=200&fit=crop&fm=png&dpr=2", + "cooked": "?auto=enhance&w=200&h=200&fit=crop&fm=png&dpr=2" + }, + "tail": true + } + ] + } + } + }, + { + "type": "JSXAttribute", + "start": 591, + "end": 613, + "loc": { + "start": { + "line": 26, + "column": 24 + }, + "end": { + "line": 26, + "column": 46 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 591, + "end": 600, + "loc": { + "start": { + "line": 26, + "column": 24 + }, + "end": { + "line": 26, + "column": 33 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 601, + "end": 613, + "loc": { + "start": { + "line": 26, + "column": 34 + }, + "end": { + "line": 26, + "column": 46 + } + }, + "value": "full-width", + "rawValue": null, + "raw": "\"full-width\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 437, + "end": 440, + "loc": { + "start": { + "line": 24, + "column": 21 + }, + "end": { + "line": 24, + "column": 24 + } + }, + "name": "img" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 615, + "end": 632, + "loc": { + "start": { + "line": 26, + "column": 48 + }, + "end": { + "line": 27, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 639, + "end": 656, + "loc": { + "start": { + "line": 27, + "column": 23 + }, + "end": { + "line": 28, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 656, + "end": 713, + "loc": { + "start": { + "line": 28, + "column": 16 + }, + "end": { + "line": 28, + "column": 73 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 656, + "end": 713, + "loc": { + "start": { + "line": 28, + "column": 16 + }, + "end": { + "line": 28, + "column": 73 + } + }, + "attributes": [ + { + "type": "JSXSpreadAttribute", + "start": 669, + "end": 684, + "loc": { + "start": { + "line": 28, + "column": 29 + }, + "end": { + "line": 28, + "column": 44 + } + }, + "argument": { + "type": "MemberExpression", + "start": 673, + "end": 683, + "loc": { + "start": { + "line": 28, + "column": 33 + }, + "end": { + "line": 28, + "column": 43 + } + }, + "object": { + "type": "ThisExpression", + "start": 673, + "end": 677, + "loc": { + "start": { + "line": 28, + "column": 33 + }, + "end": { + "line": 28, + "column": 37 + } + } + }, + "property": { + "type": "Identifier", + "start": 678, + "end": 683, + "loc": { + "start": { + "line": 28, + "column": 38 + }, + "end": { + "line": 28, + "column": 43 + } + }, + "name": "props" + }, + "computed": false + } + }, + { + "type": "JSXAttribute", + "start": 685, + "end": 711, + "loc": { + "start": { + "line": 28, + "column": 45 + }, + "end": { + "line": 28, + "column": 71 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 685, + "end": 691, + "loc": { + "start": { + "line": 28, + "column": 45 + }, + "end": { + "line": 28, + "column": 51 + } + }, + "name": "onLike" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 692, + "end": 711, + "loc": { + "start": { + "line": 28, + "column": 52 + }, + "end": { + "line": 28, + "column": 71 + } + }, + "expression": { + "type": "MemberExpression", + "start": 693, + "end": 710, + "loc": { + "start": { + "line": 28, + "column": 53 + }, + "end": { + "line": 28, + "column": 70 + } + }, + "object": { + "type": "MemberExpression", + "start": 693, + "end": 703, + "loc": { + "start": { + "line": 28, + "column": 53 + }, + "end": { + "line": 28, + "column": 63 + } + }, + "object": { + "type": "ThisExpression", + "start": 693, + "end": 697, + "loc": { + "start": { + "line": 28, + "column": 53 + }, + "end": { + "line": 28, + "column": 57 + } + } + }, + "property": { + "type": "Identifier", + "start": 698, + "end": 703, + "loc": { + "start": { + "line": 28, + "column": 58 + }, + "end": { + "line": 28, + "column": 63 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 704, + "end": 710, + "loc": { + "start": { + "line": 28, + "column": 64 + }, + "end": { + "line": 28, + "column": 70 + } + }, + "name": "onLike" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 657, + "end": 668, + "loc": { + "start": { + "line": 28, + "column": 17 + }, + "end": { + "line": 28, + "column": 28 + } + }, + "name": "PhotoFooter" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 713, + "end": 726, + "loc": { + "start": { + "line": 28, + "column": 73 + }, + "end": { + "line": 29, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 263, + "end": 311, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 19, + "column": 7 + } + }, + "range": [ + 263, + 311 + ] + } + ] + } + ] + }, + "leadingComments": [], + "name": "_", + "trailingComments": [] + }, + { + "type": "Identifier", + "start": 751, + "end": 775, + "loc": { + "start": { + "line": 34, + "column": 0 + }, + "end": { + "line": 34, + "column": 24 + } + }, + "declaration": { + "type": "Identifier", + "start": 766, + "end": 775, + "loc": { + "start": { + "line": 34, + "column": 15 + }, + "end": { + "line": 34, + "column": 24 + } + }, + "name": "PhotoItem" + }, + "name": "_", + "leadingComments": [], + "trailingComments": [] + }, + { + "type": "ExportDefaultDeclaration", + "start": 751, + "end": 775, + "loc": { + "start": { + "line": 34, + "column": 0 + }, + "end": { + "line": 34, + "column": 24 + } + }, + "declaration": { + "type": "ClassDeclaration", + "start": 222, + "end": 749, + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 32, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 228, + "end": 237, + "loc": { + "start": { + "line": 14, + "column": 6 + }, + "end": { + "line": 14, + "column": 15 + } + }, + "name": "PhotoItem", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 246, + "end": 255, + "loc": { + "start": { + "line": 14, + "column": 24 + }, + "end": { + "line": 14, + "column": 33 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 256, + "end": 749, + "loc": { + "start": { + "line": 14, + "column": 34 + }, + "end": { + "line": 32, + "column": 1 + } + }, + "body": [ + { + "type": "MethodDefinition", + "start": 316, + "end": 747, + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 31, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 316, + "end": 322, + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 322, + "end": 747, + "loc": { + "start": { + "line": 20, + "column": 10 + }, + "end": { + "line": 31, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 325, + "end": 747, + "loc": { + "start": { + "line": 20, + "column": 13 + }, + "end": { + "line": 31, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 335, + "end": 741, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 30, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 356, + "end": 731, + "loc": { + "start": { + "line": 22, + "column": 12 + }, + "end": { + "line": 29, + "column": 17 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 356, + "end": 360, + "loc": { + "start": { + "line": 22, + "column": 12 + }, + "end": { + "line": 22, + "column": 16 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 357, + "end": 359, + "loc": { + "start": { + "line": 22, + "column": 13 + }, + "end": { + "line": 22, + "column": 15 + } + }, + "name": "li" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 726, + "end": 731, + "loc": { + "start": { + "line": 29, + "column": 12 + }, + "end": { + "line": 29, + "column": 17 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 728, + "end": 730, + "loc": { + "start": { + "line": 29, + "column": 14 + }, + "end": { + "line": 29, + "column": 16 + } + }, + "name": "li" + } + }, + "children": [ + { + "type": "Literal", + "start": 360, + "end": 377, + "loc": { + "start": { + "line": 22, + "column": 16 + }, + "end": { + "line": 23, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 377, + "end": 639, + "loc": { + "start": { + "line": 23, + "column": 16 + }, + "end": { + "line": 27, + "column": 23 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 377, + "end": 415, + "loc": { + "start": { + "line": 23, + "column": 16 + }, + "end": { + "line": 23, + "column": 54 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 383, + "end": 414, + "loc": { + "start": { + "line": 23, + "column": 22 + }, + "end": { + "line": 23, + "column": 53 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 383, + "end": 385, + "loc": { + "start": { + "line": 23, + "column": 22 + }, + "end": { + "line": 23, + "column": 24 + } + }, + "name": "to" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 386, + "end": 414, + "loc": { + "start": { + "line": 23, + "column": 25 + }, + "end": { + "line": 23, + "column": 53 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 387, + "end": 413, + "loc": { + "start": { + "line": 23, + "column": 26 + }, + "end": { + "line": 23, + "column": 52 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 398, + "end": 411, + "loc": { + "start": { + "line": 23, + "column": 37 + }, + "end": { + "line": 23, + "column": 50 + } + }, + "object": { + "type": "MemberExpression", + "start": 398, + "end": 408, + "loc": { + "start": { + "line": 23, + "column": 37 + }, + "end": { + "line": 23, + "column": 47 + } + }, + "object": { + "type": "ThisExpression", + "start": 398, + "end": 402, + "loc": { + "start": { + "line": 23, + "column": 37 + }, + "end": { + "line": 23, + "column": 41 + } + } + }, + "property": { + "type": "Identifier", + "start": 403, + "end": 408, + "loc": { + "start": { + "line": 23, + "column": 42 + }, + "end": { + "line": 23, + "column": 47 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 409, + "end": 411, + "loc": { + "start": { + "line": 23, + "column": 48 + }, + "end": { + "line": 23, + "column": 50 + } + }, + "name": "id" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 388, + "end": 396, + "loc": { + "start": { + "line": 23, + "column": 27 + }, + "end": { + "line": 23, + "column": 35 + } + }, + "value": { + "raw": "/photos/", + "cooked": "/photos/" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 412, + "end": 412, + "loc": { + "start": { + "line": 23, + "column": 51 + }, + "end": { + "line": 23, + "column": 51 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 378, + "end": 382, + "loc": { + "start": { + "line": 23, + "column": 17 + }, + "end": { + "line": 23, + "column": 21 + } + }, + "name": "Link" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 632, + "end": 639, + "loc": { + "start": { + "line": 27, + "column": 16 + }, + "end": { + "line": 27, + "column": 23 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 634, + "end": 638, + "loc": { + "start": { + "line": 27, + "column": 18 + }, + "end": { + "line": 27, + "column": 22 + } + }, + "name": "Link" + } + }, + "children": [ + { + "type": "Literal", + "start": 415, + "end": 436, + "loc": { + "start": { + "line": 23, + "column": 54 + }, + "end": { + "line": 24, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 436, + "end": 615, + "loc": { + "start": { + "line": 24, + "column": 20 + }, + "end": { + "line": 26, + "column": 48 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 436, + "end": 615, + "loc": { + "start": { + "line": 24, + "column": 20 + }, + "end": { + "line": 26, + "column": 48 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 465, + "end": 566, + "loc": { + "start": { + "line": 25, + "column": 24 + }, + "end": { + "line": 25, + "column": 125 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 465, + "end": 468, + "loc": { + "start": { + "line": 25, + "column": 24 + }, + "end": { + "line": 25, + "column": 27 + } + }, + "name": "src" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 469, + "end": 566, + "loc": { + "start": { + "line": 25, + "column": 28 + }, + "end": { + "line": 25, + "column": 125 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 470, + "end": 565, + "loc": { + "start": { + "line": 25, + "column": 29 + }, + "end": { + "line": 25, + "column": 124 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 473, + "end": 493, + "loc": { + "start": { + "line": 25, + "column": 32 + }, + "end": { + "line": 25, + "column": 52 + } + }, + "object": { + "type": "MemberExpression", + "start": 473, + "end": 485, + "loc": { + "start": { + "line": 25, + "column": 32 + }, + "end": { + "line": 25, + "column": 44 + } + }, + "object": { + "type": "Identifier", + "start": 473, + "end": 479, + "loc": { + "start": { + "line": 25, + "column": 32 + }, + "end": { + "line": 25, + "column": 38 + } + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 480, + "end": 485, + "loc": { + "start": { + "line": 25, + "column": 39 + }, + "end": { + "line": 25, + "column": 44 + } + }, + "name": "imgix" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 486, + "end": 493, + "loc": { + "start": { + "line": 25, + "column": 45 + }, + "end": { + "line": 25, + "column": 52 + } + }, + "name": "baseUrl" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 497, + "end": 516, + "loc": { + "start": { + "line": 25, + "column": 56 + }, + "end": { + "line": 25, + "column": 75 + } + }, + "object": { + "type": "MemberExpression", + "start": 497, + "end": 507, + "loc": { + "start": { + "line": 25, + "column": 56 + }, + "end": { + "line": 25, + "column": 66 + } + }, + "object": { + "type": "ThisExpression", + "start": 497, + "end": 501, + "loc": { + "start": { + "line": 25, + "column": 56 + }, + "end": { + "line": 25, + "column": 60 + } + } + }, + "property": { + "type": "Identifier", + "start": 502, + "end": 507, + "loc": { + "start": { + "line": 25, + "column": 61 + }, + "end": { + "line": 25, + "column": 66 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 508, + "end": 516, + "loc": { + "start": { + "line": 25, + "column": 67 + }, + "end": { + "line": 25, + "column": 75 + } + }, + "name": "filename" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 471, + "end": 471, + "loc": { + "start": { + "line": 25, + "column": 30 + }, + "end": { + "line": 25, + "column": 30 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 494, + "end": 495, + "loc": { + "start": { + "line": 25, + "column": 53 + }, + "end": { + "line": 25, + "column": 54 + } + }, + "value": { + "raw": "/", + "cooked": "/" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 517, + "end": 564, + "loc": { + "start": { + "line": 25, + "column": 76 + }, + "end": { + "line": 25, + "column": 123 + } + }, + "value": { + "raw": "?auto=enhance&w=200&h=200&fit=crop&fm=png&dpr=2", + "cooked": "?auto=enhance&w=200&h=200&fit=crop&fm=png&dpr=2" + }, + "tail": true + } + ] + } + } + }, + { + "type": "JSXAttribute", + "start": 591, + "end": 613, + "loc": { + "start": { + "line": 26, + "column": 24 + }, + "end": { + "line": 26, + "column": 46 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 591, + "end": 600, + "loc": { + "start": { + "line": 26, + "column": 24 + }, + "end": { + "line": 26, + "column": 33 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 601, + "end": 613, + "loc": { + "start": { + "line": 26, + "column": 34 + }, + "end": { + "line": 26, + "column": 46 + } + }, + "value": "full-width", + "rawValue": null, + "raw": "\"full-width\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 437, + "end": 440, + "loc": { + "start": { + "line": 24, + "column": 21 + }, + "end": { + "line": 24, + "column": 24 + } + }, + "name": "img" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 615, + "end": 632, + "loc": { + "start": { + "line": 26, + "column": 48 + }, + "end": { + "line": 27, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 639, + "end": 656, + "loc": { + "start": { + "line": 27, + "column": 23 + }, + "end": { + "line": 28, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 656, + "end": 713, + "loc": { + "start": { + "line": 28, + "column": 16 + }, + "end": { + "line": 28, + "column": 73 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 656, + "end": 713, + "loc": { + "start": { + "line": 28, + "column": 16 + }, + "end": { + "line": 28, + "column": 73 + } + }, + "attributes": [ + { + "type": "JSXSpreadAttribute", + "start": 669, + "end": 684, + "loc": { + "start": { + "line": 28, + "column": 29 + }, + "end": { + "line": 28, + "column": 44 + } + }, + "argument": { + "type": "MemberExpression", + "start": 673, + "end": 683, + "loc": { + "start": { + "line": 28, + "column": 33 + }, + "end": { + "line": 28, + "column": 43 + } + }, + "object": { + "type": "ThisExpression", + "start": 673, + "end": 677, + "loc": { + "start": { + "line": 28, + "column": 33 + }, + "end": { + "line": 28, + "column": 37 + } + } + }, + "property": { + "type": "Identifier", + "start": 678, + "end": 683, + "loc": { + "start": { + "line": 28, + "column": 38 + }, + "end": { + "line": 28, + "column": 43 + } + }, + "name": "props" + }, + "computed": false + } + }, + { + "type": "JSXAttribute", + "start": 685, + "end": 711, + "loc": { + "start": { + "line": 28, + "column": 45 + }, + "end": { + "line": 28, + "column": 71 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 685, + "end": 691, + "loc": { + "start": { + "line": 28, + "column": 45 + }, + "end": { + "line": 28, + "column": 51 + } + }, + "name": "onLike" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 692, + "end": 711, + "loc": { + "start": { + "line": 28, + "column": 52 + }, + "end": { + "line": 28, + "column": 71 + } + }, + "expression": { + "type": "MemberExpression", + "start": 693, + "end": 710, + "loc": { + "start": { + "line": 28, + "column": 53 + }, + "end": { + "line": 28, + "column": 70 + } + }, + "object": { + "type": "MemberExpression", + "start": 693, + "end": 703, + "loc": { + "start": { + "line": 28, + "column": 53 + }, + "end": { + "line": 28, + "column": 63 + } + }, + "object": { + "type": "ThisExpression", + "start": 693, + "end": 697, + "loc": { + "start": { + "line": 28, + "column": 53 + }, + "end": { + "line": 28, + "column": 57 + } + } + }, + "property": { + "type": "Identifier", + "start": 698, + "end": 703, + "loc": { + "start": { + "line": 28, + "column": 58 + }, + "end": { + "line": 28, + "column": 63 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 704, + "end": 710, + "loc": { + "start": { + "line": 28, + "column": 64 + }, + "end": { + "line": 28, + "column": 70 + } + }, + "name": "onLike" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 657, + "end": 668, + "loc": { + "start": { + "line": 28, + "column": 17 + }, + "end": { + "line": 28, + "column": 28 + } + }, + "name": "PhotoFooter" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 713, + "end": 726, + "loc": { + "start": { + "line": 28, + "column": 73 + }, + "end": { + "line": 29, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 263, + "end": 311, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 19, + "column": 7 + } + }, + "range": [ + 263, + 311 + ] + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * PhotoItem component\n ", + "start": 191, + "end": 221, + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + }, + "range": [ + 191, + 221 + ] + } + ], + "__esdoc__pseudo_export": false, + "trailingComments": [] + }, + "leadingComments": null + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/components/PhotoList/index.js.json b/app/docs/ast/source/components/PhotoList/index.js.json new file mode 100644 index 0000000..c1337c2 --- /dev/null +++ b/app/docs/ast/source/components/PhotoList/index.js.json @@ -0,0 +1,2520 @@ +{ + "type": "Program", + "start": 0, + "end": 649, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 35, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 38, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 38 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + }, + { + "type": "ImportSpecifier", + "start": 15, + "end": 24, + "loc": { + "start": { + "line": 1, + "column": 15 + }, + "end": { + "line": 1, + "column": 24 + } + }, + "imported": { + "type": "Identifier", + "start": 15, + "end": 24, + "loc": { + "start": { + "line": 1, + "column": 15 + }, + "end": { + "line": 1, + "column": 24 + } + }, + "name": "Component" + }, + "local": { + "type": "Identifier", + "start": 15, + "end": 24, + "loc": { + "start": { + "line": 1, + "column": 15 + }, + "end": { + "line": 1, + "column": 24 + } + }, + "name": "Component" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 31, + "end": 38, + "loc": { + "start": { + "line": 1, + "column": 31 + }, + "end": { + "line": 1, + "column": 38 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ImportDeclaration", + "start": 40, + "end": 75, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 35 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 47, + "end": 56, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 16 + } + }, + "local": { + "type": "Identifier", + "start": 47, + "end": 56, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 16 + } + }, + "name": "PhotoItem" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 62, + "end": 75, + "loc": { + "start": { + "line": 3, + "column": 22 + }, + "end": { + "line": 3, + "column": 35 + } + }, + "value": "./PhotoItem", + "rawValue": "./PhotoItem", + "raw": "'./PhotoItem'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * PhotoList index component\n ", + "start": 77, + "end": 113, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + }, + "range": [ + 77, + 113 + ] + } + ] + }, + { + "type": "Identifier", + "start": 114, + "end": 582, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 31, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 120, + "end": 129, + "loc": { + "start": { + "line": 8, + "column": 6 + }, + "end": { + "line": 8, + "column": 15 + } + }, + "name": "PhotoList", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 138, + "end": 147, + "loc": { + "start": { + "line": 8, + "column": 24 + }, + "end": { + "line": 8, + "column": 33 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 148, + "end": 582, + "loc": { + "start": { + "line": 8, + "column": 34 + }, + "end": { + "line": 31, + "column": 1 + } + }, + "body": [ + { + "type": "Identifier", + "start": 210, + "end": 382, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 18, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 210, + "end": 221, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 15 + } + }, + "name": "renderItems", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ArrowFunctionExpression", + "start": 224, + "end": 382, + "loc": { + "start": { + "line": 14, + "column": 18 + }, + "end": { + "line": 18, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 230, + "end": 382, + "loc": { + "start": { + "line": 14, + "column": 24 + }, + "end": { + "line": 18, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 240, + "end": 376, + "loc": { + "start": { + "line": 15, + "column": 8 + }, + "end": { + "line": 17, + "column": 9 + } + }, + "argument": { + "type": "CallExpression", + "start": 247, + "end": 376, + "loc": { + "start": { + "line": 15, + "column": 15 + }, + "end": { + "line": 17, + "column": 9 + } + }, + "callee": { + "type": "MemberExpression", + "start": 247, + "end": 268, + "loc": { + "start": { + "line": 15, + "column": 15 + }, + "end": { + "line": 15, + "column": 36 + } + }, + "object": { + "type": "MemberExpression", + "start": 247, + "end": 264, + "loc": { + "start": { + "line": 15, + "column": 15 + }, + "end": { + "line": 15, + "column": 32 + } + }, + "object": { + "type": "MemberExpression", + "start": 247, + "end": 257, + "loc": { + "start": { + "line": 15, + "column": 15 + }, + "end": { + "line": 15, + "column": 25 + } + }, + "object": { + "type": "ThisExpression", + "start": 247, + "end": 251, + "loc": { + "start": { + "line": 15, + "column": 15 + }, + "end": { + "line": 15, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "start": 252, + "end": 257, + "loc": { + "start": { + "line": 15, + "column": 20 + }, + "end": { + "line": 15, + "column": 25 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 258, + "end": 264, + "loc": { + "start": { + "line": 15, + "column": 26 + }, + "end": { + "line": 15, + "column": 32 + } + }, + "name": "photos" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 265, + "end": 268, + "loc": { + "start": { + "line": 15, + "column": 33 + }, + "end": { + "line": 15, + "column": 36 + } + }, + "name": "map" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 269, + "end": 366, + "loc": { + "start": { + "line": 15, + "column": 37 + }, + "end": { + "line": 16, + "column": 88 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 269, + "end": 274, + "loc": { + "start": { + "line": 15, + "column": 37 + }, + "end": { + "line": 15, + "column": 42 + } + }, + "name": "photo" + } + ], + "body": { + "type": "JSXElement", + "start": 290, + "end": 366, + "loc": { + "start": { + "line": 16, + "column": 12 + }, + "end": { + "line": 16, + "column": 88 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 290, + "end": 366, + "loc": { + "start": { + "line": 16, + "column": 12 + }, + "end": { + "line": 16, + "column": 88 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 301, + "end": 326, + "loc": { + "start": { + "line": 16, + "column": 23 + }, + "end": { + "line": 16, + "column": 48 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 301, + "end": 304, + "loc": { + "start": { + "line": 16, + "column": 23 + }, + "end": { + "line": 16, + "column": 26 + } + }, + "name": "key" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 305, + "end": 326, + "loc": { + "start": { + "line": 16, + "column": 27 + }, + "end": { + "line": 16, + "column": 48 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 306, + "end": 325, + "loc": { + "start": { + "line": 16, + "column": 28 + }, + "end": { + "line": 16, + "column": 47 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 315, + "end": 323, + "loc": { + "start": { + "line": 16, + "column": 37 + }, + "end": { + "line": 16, + "column": 45 + } + }, + "object": { + "type": "Identifier", + "start": 315, + "end": 320, + "loc": { + "start": { + "line": 16, + "column": 37 + }, + "end": { + "line": 16, + "column": 42 + } + }, + "name": "photo" + }, + "property": { + "type": "Identifier", + "start": 321, + "end": 323, + "loc": { + "start": { + "line": 16, + "column": 43 + }, + "end": { + "line": 16, + "column": 45 + } + }, + "name": "id" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 307, + "end": 313, + "loc": { + "start": { + "line": 16, + "column": 29 + }, + "end": { + "line": 16, + "column": 35 + } + }, + "value": { + "raw": "photo-", + "cooked": "photo-" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 324, + "end": 324, + "loc": { + "start": { + "line": 16, + "column": 46 + }, + "end": { + "line": 16, + "column": 46 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + }, + { + "type": "JSXSpreadAttribute", + "start": 327, + "end": 337, + "loc": { + "start": { + "line": 16, + "column": 49 + }, + "end": { + "line": 16, + "column": 59 + } + }, + "argument": { + "type": "Identifier", + "start": 331, + "end": 336, + "loc": { + "start": { + "line": 16, + "column": 53 + }, + "end": { + "line": 16, + "column": 58 + } + }, + "name": "photo" + } + }, + { + "type": "JSXAttribute", + "start": 338, + "end": 364, + "loc": { + "start": { + "line": 16, + "column": 60 + }, + "end": { + "line": 16, + "column": 86 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 338, + "end": 344, + "loc": { + "start": { + "line": 16, + "column": 60 + }, + "end": { + "line": 16, + "column": 66 + } + }, + "name": "onLike" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 345, + "end": 364, + "loc": { + "start": { + "line": 16, + "column": 67 + }, + "end": { + "line": 16, + "column": 86 + } + }, + "expression": { + "type": "MemberExpression", + "start": 346, + "end": 363, + "loc": { + "start": { + "line": 16, + "column": 68 + }, + "end": { + "line": 16, + "column": 85 + } + }, + "object": { + "type": "MemberExpression", + "start": 346, + "end": 356, + "loc": { + "start": { + "line": 16, + "column": 68 + }, + "end": { + "line": 16, + "column": 78 + } + }, + "object": { + "type": "ThisExpression", + "start": 346, + "end": 350, + "loc": { + "start": { + "line": 16, + "column": 68 + }, + "end": { + "line": 16, + "column": 72 + } + } + }, + "property": { + "type": "Identifier", + "start": 351, + "end": 356, + "loc": { + "start": { + "line": 16, + "column": 73 + }, + "end": { + "line": 16, + "column": 78 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 357, + "end": 363, + "loc": { + "start": { + "line": 16, + "column": 79 + }, + "end": { + "line": 16, + "column": 85 + } + }, + "name": "onLike" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 291, + "end": 300, + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 16, + "column": 22 + } + }, + "name": "PhotoItem" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + } + ] + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * renderItems\n * @returns {*}\n ", + "start": 155, + "end": 205, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 13, + "column": 7 + } + }, + "range": [ + 155, + 205 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 388, + "end": 436, + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 23, + "column": 7 + } + }, + "range": [ + 388, + 436 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 441, + "end": 580, + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 30, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 441, + "end": 447, + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 447, + "end": 580, + "loc": { + "start": { + "line": 24, + "column": 10 + }, + "end": { + "line": 30, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 450, + "end": 580, + "loc": { + "start": { + "line": 24, + "column": 13 + }, + "end": { + "line": 30, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 460, + "end": 574, + "loc": { + "start": { + "line": 25, + "column": 8 + }, + "end": { + "line": 29, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 481, + "end": 564, + "loc": { + "start": { + "line": 26, + "column": 12 + }, + "end": { + "line": 28, + "column": 17 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 481, + "end": 509, + "loc": { + "start": { + "line": 26, + "column": 12 + }, + "end": { + "line": 26, + "column": 40 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 485, + "end": 508, + "loc": { + "start": { + "line": 26, + "column": 16 + }, + "end": { + "line": 26, + "column": 39 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 485, + "end": 494, + "loc": { + "start": { + "line": 26, + "column": 16 + }, + "end": { + "line": 26, + "column": 25 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 495, + "end": 508, + "loc": { + "start": { + "line": 26, + "column": 26 + }, + "end": { + "line": 26, + "column": 39 + } + }, + "value": "photo-items", + "rawValue": null, + "raw": "\"photo-items\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 482, + "end": 484, + "loc": { + "start": { + "line": 26, + "column": 13 + }, + "end": { + "line": 26, + "column": 15 + } + }, + "name": "ul" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 559, + "end": 564, + "loc": { + "start": { + "line": 28, + "column": 12 + }, + "end": { + "line": 28, + "column": 17 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 561, + "end": 563, + "loc": { + "start": { + "line": 28, + "column": 14 + }, + "end": { + "line": 28, + "column": 16 + } + }, + "name": "ul" + } + }, + "children": [ + { + "type": "Literal", + "start": 509, + "end": 526, + "loc": { + "start": { + "line": 26, + "column": 40 + }, + "end": { + "line": 27, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 526, + "end": 546, + "loc": { + "start": { + "line": 27, + "column": 16 + }, + "end": { + "line": 27, + "column": 36 + } + }, + "expression": { + "type": "CallExpression", + "start": 527, + "end": 545, + "loc": { + "start": { + "line": 27, + "column": 17 + }, + "end": { + "line": 27, + "column": 35 + } + }, + "callee": { + "type": "MemberExpression", + "start": 527, + "end": 543, + "loc": { + "start": { + "line": 27, + "column": 17 + }, + "end": { + "line": 27, + "column": 33 + } + }, + "object": { + "type": "ThisExpression", + "start": 527, + "end": 531, + "loc": { + "start": { + "line": 27, + "column": 17 + }, + "end": { + "line": 27, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "start": 532, + "end": 543, + "loc": { + "start": { + "line": 27, + "column": 22 + }, + "end": { + "line": 27, + "column": 33 + } + }, + "name": "renderItems" + }, + "computed": false + }, + "arguments": [] + } + }, + { + "type": "Literal", + "start": 546, + "end": 559, + "loc": { + "start": { + "line": 27, + "column": 36 + }, + "end": { + "line": 28, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 388, + "end": 436, + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 23, + "column": 7 + } + }, + "range": [ + 388, + 436 + ] + } + ] + } + ] + }, + "leadingComments": [], + "name": "_", + "trailingComments": [] + }, + { + "type": "ExportNamedDeclaration", + "start": 584, + "end": 623, + "loc": { + "start": { + "line": 33, + "column": 0 + }, + "end": { + "line": 33, + "column": 39 + } + }, + "specifiers": [ + { + "type": "Identifier", + "start": 591, + "end": 602, + "loc": { + "start": { + "line": 33, + "column": 7 + }, + "end": { + "line": 33, + "column": 18 + } + }, + "exported": { + "type": "Identifier", + "start": 591, + "end": 602, + "loc": { + "start": { + "line": 33, + "column": 7 + }, + "end": { + "line": 33, + "column": 18 + } + }, + "name": "PhotoFooter" + } + } + ], + "source": { + "type": "Literal", + "start": 608, + "end": 623, + "loc": { + "start": { + "line": 33, + "column": 24 + }, + "end": { + "line": 33, + "column": 39 + } + }, + "value": "./PhotoFooter", + "rawValue": "./PhotoFooter", + "raw": "'./PhotoFooter'" + } + }, + { + "type": "Identifier", + "start": 624, + "end": 648, + "loc": { + "start": { + "line": 34, + "column": 0 + }, + "end": { + "line": 34, + "column": 24 + } + }, + "declaration": { + "type": "Identifier", + "start": 639, + "end": 648, + "loc": { + "start": { + "line": 34, + "column": 15 + }, + "end": { + "line": 34, + "column": 24 + } + }, + "name": "PhotoList" + }, + "name": "_", + "leadingComments": [], + "trailingComments": [] + }, + { + "type": "ExportDefaultDeclaration", + "start": 624, + "end": 648, + "loc": { + "start": { + "line": 34, + "column": 0 + }, + "end": { + "line": 34, + "column": 24 + } + }, + "declaration": { + "type": "ClassDeclaration", + "start": 114, + "end": 582, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 31, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 120, + "end": 129, + "loc": { + "start": { + "line": 8, + "column": 6 + }, + "end": { + "line": 8, + "column": 15 + } + }, + "name": "PhotoList", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 138, + "end": 147, + "loc": { + "start": { + "line": 8, + "column": 24 + }, + "end": { + "line": 8, + "column": 33 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 148, + "end": 582, + "loc": { + "start": { + "line": 8, + "column": 34 + }, + "end": { + "line": 31, + "column": 1 + } + }, + "body": [ + { + "type": "Identifier", + "start": 210, + "end": 382, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 18, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 210, + "end": 221, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 15 + } + }, + "name": "renderItems", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ArrowFunctionExpression", + "start": 224, + "end": 382, + "loc": { + "start": { + "line": 14, + "column": 18 + }, + "end": { + "line": 18, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 230, + "end": 382, + "loc": { + "start": { + "line": 14, + "column": 24 + }, + "end": { + "line": 18, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 240, + "end": 376, + "loc": { + "start": { + "line": 15, + "column": 8 + }, + "end": { + "line": 17, + "column": 9 + } + }, + "argument": { + "type": "CallExpression", + "start": 247, + "end": 376, + "loc": { + "start": { + "line": 15, + "column": 15 + }, + "end": { + "line": 17, + "column": 9 + } + }, + "callee": { + "type": "MemberExpression", + "start": 247, + "end": 268, + "loc": { + "start": { + "line": 15, + "column": 15 + }, + "end": { + "line": 15, + "column": 36 + } + }, + "object": { + "type": "MemberExpression", + "start": 247, + "end": 264, + "loc": { + "start": { + "line": 15, + "column": 15 + }, + "end": { + "line": 15, + "column": 32 + } + }, + "object": { + "type": "MemberExpression", + "start": 247, + "end": 257, + "loc": { + "start": { + "line": 15, + "column": 15 + }, + "end": { + "line": 15, + "column": 25 + } + }, + "object": { + "type": "ThisExpression", + "start": 247, + "end": 251, + "loc": { + "start": { + "line": 15, + "column": 15 + }, + "end": { + "line": 15, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "start": 252, + "end": 257, + "loc": { + "start": { + "line": 15, + "column": 20 + }, + "end": { + "line": 15, + "column": 25 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 258, + "end": 264, + "loc": { + "start": { + "line": 15, + "column": 26 + }, + "end": { + "line": 15, + "column": 32 + } + }, + "name": "photos" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 265, + "end": 268, + "loc": { + "start": { + "line": 15, + "column": 33 + }, + "end": { + "line": 15, + "column": 36 + } + }, + "name": "map" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 269, + "end": 366, + "loc": { + "start": { + "line": 15, + "column": 37 + }, + "end": { + "line": 16, + "column": 88 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 269, + "end": 274, + "loc": { + "start": { + "line": 15, + "column": 37 + }, + "end": { + "line": 15, + "column": 42 + } + }, + "name": "photo" + } + ], + "body": { + "type": "JSXElement", + "start": 290, + "end": 366, + "loc": { + "start": { + "line": 16, + "column": 12 + }, + "end": { + "line": 16, + "column": 88 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 290, + "end": 366, + "loc": { + "start": { + "line": 16, + "column": 12 + }, + "end": { + "line": 16, + "column": 88 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 301, + "end": 326, + "loc": { + "start": { + "line": 16, + "column": 23 + }, + "end": { + "line": 16, + "column": 48 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 301, + "end": 304, + "loc": { + "start": { + "line": 16, + "column": 23 + }, + "end": { + "line": 16, + "column": 26 + } + }, + "name": "key" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 305, + "end": 326, + "loc": { + "start": { + "line": 16, + "column": 27 + }, + "end": { + "line": 16, + "column": 48 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 306, + "end": 325, + "loc": { + "start": { + "line": 16, + "column": 28 + }, + "end": { + "line": 16, + "column": 47 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 315, + "end": 323, + "loc": { + "start": { + "line": 16, + "column": 37 + }, + "end": { + "line": 16, + "column": 45 + } + }, + "object": { + "type": "Identifier", + "start": 315, + "end": 320, + "loc": { + "start": { + "line": 16, + "column": 37 + }, + "end": { + "line": 16, + "column": 42 + } + }, + "name": "photo" + }, + "property": { + "type": "Identifier", + "start": 321, + "end": 323, + "loc": { + "start": { + "line": 16, + "column": 43 + }, + "end": { + "line": 16, + "column": 45 + } + }, + "name": "id" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 307, + "end": 313, + "loc": { + "start": { + "line": 16, + "column": 29 + }, + "end": { + "line": 16, + "column": 35 + } + }, + "value": { + "raw": "photo-", + "cooked": "photo-" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 324, + "end": 324, + "loc": { + "start": { + "line": 16, + "column": 46 + }, + "end": { + "line": 16, + "column": 46 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + }, + { + "type": "JSXSpreadAttribute", + "start": 327, + "end": 337, + "loc": { + "start": { + "line": 16, + "column": 49 + }, + "end": { + "line": 16, + "column": 59 + } + }, + "argument": { + "type": "Identifier", + "start": 331, + "end": 336, + "loc": { + "start": { + "line": 16, + "column": 53 + }, + "end": { + "line": 16, + "column": 58 + } + }, + "name": "photo" + } + }, + { + "type": "JSXAttribute", + "start": 338, + "end": 364, + "loc": { + "start": { + "line": 16, + "column": 60 + }, + "end": { + "line": 16, + "column": 86 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 338, + "end": 344, + "loc": { + "start": { + "line": 16, + "column": 60 + }, + "end": { + "line": 16, + "column": 66 + } + }, + "name": "onLike" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 345, + "end": 364, + "loc": { + "start": { + "line": 16, + "column": 67 + }, + "end": { + "line": 16, + "column": 86 + } + }, + "expression": { + "type": "MemberExpression", + "start": 346, + "end": 363, + "loc": { + "start": { + "line": 16, + "column": 68 + }, + "end": { + "line": 16, + "column": 85 + } + }, + "object": { + "type": "MemberExpression", + "start": 346, + "end": 356, + "loc": { + "start": { + "line": 16, + "column": 68 + }, + "end": { + "line": 16, + "column": 78 + } + }, + "object": { + "type": "ThisExpression", + "start": 346, + "end": 350, + "loc": { + "start": { + "line": 16, + "column": 68 + }, + "end": { + "line": 16, + "column": 72 + } + } + }, + "property": { + "type": "Identifier", + "start": 351, + "end": 356, + "loc": { + "start": { + "line": 16, + "column": 73 + }, + "end": { + "line": 16, + "column": 78 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 357, + "end": 363, + "loc": { + "start": { + "line": 16, + "column": 79 + }, + "end": { + "line": 16, + "column": 85 + } + }, + "name": "onLike" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 291, + "end": 300, + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 16, + "column": 22 + } + }, + "name": "PhotoItem" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + } + ] + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * renderItems\n * @returns {*}\n ", + "start": 155, + "end": 205, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 13, + "column": 7 + } + }, + "range": [ + 155, + 205 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 388, + "end": 436, + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 23, + "column": 7 + } + }, + "range": [ + 388, + 436 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 441, + "end": 580, + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 30, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 441, + "end": 447, + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 447, + "end": 580, + "loc": { + "start": { + "line": 24, + "column": 10 + }, + "end": { + "line": 30, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 450, + "end": 580, + "loc": { + "start": { + "line": 24, + "column": 13 + }, + "end": { + "line": 30, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 460, + "end": 574, + "loc": { + "start": { + "line": 25, + "column": 8 + }, + "end": { + "line": 29, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 481, + "end": 564, + "loc": { + "start": { + "line": 26, + "column": 12 + }, + "end": { + "line": 28, + "column": 17 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 481, + "end": 509, + "loc": { + "start": { + "line": 26, + "column": 12 + }, + "end": { + "line": 26, + "column": 40 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 485, + "end": 508, + "loc": { + "start": { + "line": 26, + "column": 16 + }, + "end": { + "line": 26, + "column": 39 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 485, + "end": 494, + "loc": { + "start": { + "line": 26, + "column": 16 + }, + "end": { + "line": 26, + "column": 25 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 495, + "end": 508, + "loc": { + "start": { + "line": 26, + "column": 26 + }, + "end": { + "line": 26, + "column": 39 + } + }, + "value": "photo-items", + "rawValue": null, + "raw": "\"photo-items\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 482, + "end": 484, + "loc": { + "start": { + "line": 26, + "column": 13 + }, + "end": { + "line": 26, + "column": 15 + } + }, + "name": "ul" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 559, + "end": 564, + "loc": { + "start": { + "line": 28, + "column": 12 + }, + "end": { + "line": 28, + "column": 17 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 561, + "end": 563, + "loc": { + "start": { + "line": 28, + "column": 14 + }, + "end": { + "line": 28, + "column": 16 + } + }, + "name": "ul" + } + }, + "children": [ + { + "type": "Literal", + "start": 509, + "end": 526, + "loc": { + "start": { + "line": 26, + "column": 40 + }, + "end": { + "line": 27, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 526, + "end": 546, + "loc": { + "start": { + "line": 27, + "column": 16 + }, + "end": { + "line": 27, + "column": 36 + } + }, + "expression": { + "type": "CallExpression", + "start": 527, + "end": 545, + "loc": { + "start": { + "line": 27, + "column": 17 + }, + "end": { + "line": 27, + "column": 35 + } + }, + "callee": { + "type": "MemberExpression", + "start": 527, + "end": 543, + "loc": { + "start": { + "line": 27, + "column": 17 + }, + "end": { + "line": 27, + "column": 33 + } + }, + "object": { + "type": "ThisExpression", + "start": 527, + "end": 531, + "loc": { + "start": { + "line": 27, + "column": 17 + }, + "end": { + "line": 27, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "start": 532, + "end": 543, + "loc": { + "start": { + "line": 27, + "column": 22 + }, + "end": { + "line": 27, + "column": 33 + } + }, + "name": "renderItems" + }, + "computed": false + }, + "arguments": [] + } + }, + { + "type": "Literal", + "start": 546, + "end": 559, + "loc": { + "start": { + "line": 27, + "column": 36 + }, + "end": { + "line": 28, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 388, + "end": 436, + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 23, + "column": 7 + } + }, + "range": [ + 388, + 436 + ] + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * PhotoList index component\n ", + "start": 77, + "end": 113, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + }, + "range": [ + 77, + 113 + ] + } + ], + "__esdoc__pseudo_export": false, + "trailingComments": [] + }, + "leadingComments": null + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/components/Tabs/index.js.json b/app/docs/ast/source/components/Tabs/index.js.json new file mode 100644 index 0000000..2c97beb --- /dev/null +++ b/app/docs/ast/source/components/Tabs/index.js.json @@ -0,0 +1,4535 @@ +{ + "type": "Program", + "start": 0, + "end": 2060, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 94, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + }, + { + "type": "ImportSpecifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "imported": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + }, + "local": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 33, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 33 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ExpressionStatement", + "start": 42, + "end": 65, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 23 + } + }, + "expression": { + "type": "CallExpression", + "start": 42, + "end": 65, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 23 + } + }, + "callee": { + "type": "Identifier", + "start": 42, + "end": 49, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 7 + } + }, + "name": "require" + }, + "arguments": [ + { + "type": "Literal", + "start": 50, + "end": 64, + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 22 + } + }, + "value": "./styles.css", + "rawValue": "./styles.css", + "raw": "'./styles.css'" + } + ], + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Tab component\n ", + "start": 67, + "end": 91, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + }, + "range": [ + 67, + 91 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 92, + "end": 404, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 25, + "column": 1 + } + }, + "declaration": { + "type": "ClassDeclaration", + "start": 99, + "end": 404, + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 25, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 105, + "end": 108, + "loc": { + "start": { + "line": 8, + "column": 13 + }, + "end": { + "line": 8, + "column": 16 + } + }, + "name": "Tab", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 117, + "end": 126, + "loc": { + "start": { + "line": 8, + "column": 25 + }, + "end": { + "line": 8, + "column": 34 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 127, + "end": 404, + "loc": { + "start": { + "line": 8, + "column": 35 + }, + "end": { + "line": 25, + "column": 1 + } + }, + "body": [ + { + "type": "Identifier", + "start": 203, + "end": 255, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 16, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 210, + "end": 222, + "loc": { + "start": { + "line": 14, + "column": 11 + }, + "end": { + "line": 14, + "column": 23 + } + }, + "name": "defaultProps" + }, + "static": true, + "value": { + "type": "ObjectExpression", + "start": 225, + "end": 255, + "loc": { + "start": { + "line": 14, + "column": 26 + }, + "end": { + "line": 16, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 235, + "end": 248, + "loc": { + "start": { + "line": 15, + "column": 8 + }, + "end": { + "line": 15, + "column": 21 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 235, + "end": 241, + "loc": { + "start": { + "line": 15, + "column": 8 + }, + "end": { + "line": 15, + "column": 14 + } + }, + "name": "active" + }, + "value": { + "type": "Literal", + "start": 243, + "end": 248, + "loc": { + "start": { + "line": 15, + "column": 16 + }, + "end": { + "line": 15, + "column": 21 + } + }, + "value": false, + "rawValue": false, + "raw": "false" + }, + "kind": "init" + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * defaultProps\n * @type {{active: boolean}}\n ", + "start": 134, + "end": 198, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 13, + "column": 7 + } + }, + "range": [ + 134, + 198 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup or {null}\n ", + "start": 261, + "end": 319, + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 21, + "column": 7 + } + }, + "range": [ + 261, + 319 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 324, + "end": 402, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 24, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 324, + "end": 330, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 330, + "end": 402, + "loc": { + "start": { + "line": 22, + "column": 10 + }, + "end": { + "line": 24, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 333, + "end": 402, + "loc": { + "start": { + "line": 22, + "column": 13 + }, + "end": { + "line": 24, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 343, + "end": 396, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 61 + } + }, + "argument": { + "type": "ConditionalExpression", + "start": 350, + "end": 396, + "loc": { + "start": { + "line": 23, + "column": 15 + }, + "end": { + "line": 23, + "column": 61 + } + }, + "test": { + "type": "MemberExpression", + "start": 350, + "end": 367, + "loc": { + "start": { + "line": 23, + "column": 15 + }, + "end": { + "line": 23, + "column": 32 + } + }, + "object": { + "type": "MemberExpression", + "start": 350, + "end": 360, + "loc": { + "start": { + "line": 23, + "column": 15 + }, + "end": { + "line": 23, + "column": 25 + } + }, + "object": { + "type": "ThisExpression", + "start": 350, + "end": 354, + "loc": { + "start": { + "line": 23, + "column": 15 + }, + "end": { + "line": 23, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "start": 355, + "end": 360, + "loc": { + "start": { + "line": 23, + "column": 20 + }, + "end": { + "line": 23, + "column": 25 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 361, + "end": 367, + "loc": { + "start": { + "line": 23, + "column": 26 + }, + "end": { + "line": 23, + "column": 32 + } + }, + "name": "active" + }, + "computed": false + }, + "consequent": { + "type": "MemberExpression", + "start": 370, + "end": 389, + "loc": { + "start": { + "line": 23, + "column": 35 + }, + "end": { + "line": 23, + "column": 54 + } + }, + "object": { + "type": "MemberExpression", + "start": 370, + "end": 380, + "loc": { + "start": { + "line": 23, + "column": 35 + }, + "end": { + "line": 23, + "column": 45 + } + }, + "object": { + "type": "ThisExpression", + "start": 370, + "end": 374, + "loc": { + "start": { + "line": 23, + "column": 35 + }, + "end": { + "line": 23, + "column": 39 + } + } + }, + "property": { + "type": "Identifier", + "start": 375, + "end": 380, + "loc": { + "start": { + "line": 23, + "column": 40 + }, + "end": { + "line": 23, + "column": 45 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 381, + "end": 389, + "loc": { + "start": { + "line": 23, + "column": 46 + }, + "end": { + "line": 23, + "column": 54 + } + }, + "name": "children" + }, + "computed": false + }, + "alternate": { + "type": "Literal", + "start": 392, + "end": 396, + "loc": { + "start": { + "line": 23, + "column": 57 + }, + "end": { + "line": 23, + "column": 61 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + } + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup or {null}\n ", + "start": 261, + "end": 319, + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 21, + "column": 7 + } + }, + "range": [ + 261, + 319 + ] + } + ] + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Tab component\n ", + "start": 67, + "end": 91, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + }, + "range": [ + 67, + 91 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Tabs index component\n ", + "start": 406, + "end": 437, + "loc": { + "start": { + "line": 27, + "column": 0 + }, + "end": { + "line": 29, + "column": 3 + } + }, + "range": [ + 406, + 437 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Tab component\n ", + "start": 67, + "end": 91, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + }, + "range": [ + 67, + 91 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Tabs index component\n ", + "start": 406, + "end": 437, + "loc": { + "start": { + "line": 27, + "column": 0 + }, + "end": { + "line": 29, + "column": 3 + } + }, + "range": [ + 406, + 437 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 438, + "end": 2059, + "loc": { + "start": { + "line": 30, + "column": 0 + }, + "end": { + "line": 93, + "column": 1 + } + }, + "declaration": { + "type": "ClassDeclaration", + "start": 445, + "end": 2059, + "loc": { + "start": { + "line": 30, + "column": 7 + }, + "end": { + "line": 93, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 451, + "end": 455, + "loc": { + "start": { + "line": 30, + "column": 13 + }, + "end": { + "line": 30, + "column": 17 + } + }, + "name": "Tabs", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 464, + "end": 473, + "loc": { + "start": { + "line": 30, + "column": 26 + }, + "end": { + "line": 30, + "column": 35 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 474, + "end": 2059, + "loc": { + "start": { + "line": 30, + "column": 36 + }, + "end": { + "line": 93, + "column": 1 + } + }, + "body": [ + { + "type": "Identifier", + "start": 542, + "end": 576, + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 38, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 542, + "end": 547, + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 36, + "column": 9 + } + }, + "name": "state", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ObjectExpression", + "start": 550, + "end": 576, + "loc": { + "start": { + "line": 36, + "column": 12 + }, + "end": { + "line": 38, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 560, + "end": 569, + "loc": { + "start": { + "line": 37, + "column": 8 + }, + "end": { + "line": 37, + "column": 17 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 560, + "end": 566, + "loc": { + "start": { + "line": 37, + "column": 8 + }, + "end": { + "line": 37, + "column": 14 + } + }, + "name": "active" + }, + "value": { + "type": "Literal", + "start": 568, + "end": 569, + "loc": { + "start": { + "line": 37, + "column": 16 + }, + "end": { + "line": 37, + "column": 17 + } + }, + "value": 0, + "rawValue": 0, + "raw": "0" + }, + "kind": "init" + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * state\n * @type {{active: number}}\n ", + "start": 481, + "end": 537, + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 35, + "column": 7 + } + }, + "range": [ + 481, + 537 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * handleClick\n * @param e\n * @param i\n * @param items\n ", + "start": 582, + "end": 664, + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 45, + "column": 7 + } + }, + "range": [ + 582, + 664 + ] + } + ] + }, + { + "type": "Identifier", + "start": 669, + "end": 765, + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 50, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 669, + "end": 680, + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 46, + "column": 15 + } + }, + "name": "handleClick", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ArrowFunctionExpression", + "start": 683, + "end": 765, + "loc": { + "start": { + "line": 46, + "column": 18 + }, + "end": { + "line": 50, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 684, + "end": 685, + "loc": { + "start": { + "line": 46, + "column": 19 + }, + "end": { + "line": 46, + "column": 20 + } + }, + "name": "e" + }, + { + "type": "Identifier", + "start": 687, + "end": 688, + "loc": { + "start": { + "line": 46, + "column": 22 + }, + "end": { + "line": 46, + "column": 23 + } + }, + "name": "i" + }, + { + "type": "Identifier", + "start": 690, + "end": 695, + "loc": { + "start": { + "line": 46, + "column": 25 + }, + "end": { + "line": 46, + "column": 30 + } + }, + "name": "items" + } + ], + "body": { + "type": "BlockStatement", + "start": 700, + "end": 765, + "loc": { + "start": { + "line": 46, + "column": 35 + }, + "end": { + "line": 50, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 710, + "end": 759, + "loc": { + "start": { + "line": 47, + "column": 8 + }, + "end": { + "line": 49, + "column": 10 + } + }, + "expression": { + "type": "CallExpression", + "start": 710, + "end": 759, + "loc": { + "start": { + "line": 47, + "column": 8 + }, + "end": { + "line": 49, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 710, + "end": 723, + "loc": { + "start": { + "line": 47, + "column": 8 + }, + "end": { + "line": 47, + "column": 21 + } + }, + "object": { + "type": "ThisExpression", + "start": 710, + "end": 714, + "loc": { + "start": { + "line": 47, + "column": 8 + }, + "end": { + "line": 47, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 715, + "end": 723, + "loc": { + "start": { + "line": 47, + "column": 13 + }, + "end": { + "line": 47, + "column": 21 + } + }, + "name": "setState" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 724, + "end": 758, + "loc": { + "start": { + "line": 47, + "column": 22 + }, + "end": { + "line": 49, + "column": 9 + } + }, + "properties": [ + { + "type": "Property", + "start": 738, + "end": 747, + "loc": { + "start": { + "line": 48, + "column": 12 + }, + "end": { + "line": 48, + "column": 21 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 738, + "end": 744, + "loc": { + "start": { + "line": 48, + "column": 12 + }, + "end": { + "line": 48, + "column": 18 + } + }, + "name": "active" + }, + "value": { + "type": "Identifier", + "start": 746, + "end": 747, + "loc": { + "start": { + "line": 48, + "column": 20 + }, + "end": { + "line": 48, + "column": 21 + } + }, + "name": "i" + }, + "kind": "init" + } + ] + } + ] + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * handleClick\n * @param e\n * @param i\n * @param items\n ", + "start": 582, + "end": 664, + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 45, + "column": 7 + } + }, + "range": [ + 582, + 664 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 771, + "end": 819, + "loc": { + "start": { + "line": 52, + "column": 4 + }, + "end": { + "line": 55, + "column": 7 + } + }, + "range": [ + 771, + 819 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 824, + "end": 2057, + "loc": { + "start": { + "line": 56, + "column": 4 + }, + "end": { + "line": 92, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 824, + "end": 830, + "loc": { + "start": { + "line": 56, + "column": 4 + }, + "end": { + "line": 56, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 830, + "end": 2057, + "loc": { + "start": { + "line": 56, + "column": 10 + }, + "end": { + "line": 92, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 833, + "end": 2057, + "loc": { + "start": { + "line": 56, + "column": 13 + }, + "end": { + "line": 92, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 844, + "end": 964, + "loc": { + "start": { + "line": 58, + "column": 8 + }, + "end": { + "line": 61, + "column": 9 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 850, + "end": 964, + "loc": { + "start": { + "line": 58, + "column": 14 + }, + "end": { + "line": 61, + "column": 9 + } + }, + "id": { + "type": "Identifier", + "start": 850, + "end": 859, + "loc": { + "start": { + "line": 58, + "column": 14 + }, + "end": { + "line": 58, + "column": 23 + } + }, + "name": "indicator" + }, + "init": { + "type": "ObjectExpression", + "start": 862, + "end": 964, + "loc": { + "start": { + "line": 58, + "column": 26 + }, + "end": { + "line": 61, + "column": 9 + } + }, + "properties": [ + { + "type": "Property", + "start": 876, + "end": 917, + "loc": { + "start": { + "line": 59, + "column": 12 + }, + "end": { + "line": 59, + "column": 53 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 876, + "end": 880, + "loc": { + "start": { + "line": 59, + "column": 12 + }, + "end": { + "line": 59, + "column": 16 + } + }, + "name": "left" + }, + "value": { + "type": "BinaryExpression", + "start": 882, + "end": 917, + "loc": { + "start": { + "line": 59, + "column": 18 + }, + "end": { + "line": 59, + "column": 53 + } + }, + "left": { + "type": "BinaryExpression", + "start": 882, + "end": 911, + "loc": { + "start": { + "line": 59, + "column": 18 + }, + "end": { + "line": 59, + "column": 47 + } + }, + "left": { + "type": "BinaryExpression", + "start": 883, + "end": 890, + "loc": { + "start": { + "line": 59, + "column": 19 + }, + "end": { + "line": 59, + "column": 26 + } + }, + "left": { + "type": "Literal", + "start": 883, + "end": 886, + "loc": { + "start": { + "line": 59, + "column": 19 + }, + "end": { + "line": 59, + "column": 22 + } + }, + "value": 100, + "rawValue": 100, + "raw": "100" + }, + "operator": "/", + "right": { + "type": "Literal", + "start": 889, + "end": 890, + "loc": { + "start": { + "line": 59, + "column": 25 + }, + "end": { + "line": 59, + "column": 26 + } + }, + "value": 4, + "rawValue": 4, + "raw": "4" + }, + "parenthesizedExpression": true + }, + "operator": "*", + "right": { + "type": "MemberExpression", + "start": 894, + "end": 911, + "loc": { + "start": { + "line": 59, + "column": 30 + }, + "end": { + "line": 59, + "column": 47 + } + }, + "object": { + "type": "MemberExpression", + "start": 894, + "end": 904, + "loc": { + "start": { + "line": 59, + "column": 30 + }, + "end": { + "line": 59, + "column": 40 + } + }, + "object": { + "type": "ThisExpression", + "start": 894, + "end": 898, + "loc": { + "start": { + "line": 59, + "column": 30 + }, + "end": { + "line": 59, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "start": 899, + "end": 904, + "loc": { + "start": { + "line": 59, + "column": 35 + }, + "end": { + "line": 59, + "column": 40 + } + }, + "name": "state" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 905, + "end": 911, + "loc": { + "start": { + "line": 59, + "column": 41 + }, + "end": { + "line": 59, + "column": 47 + } + }, + "name": "active" + }, + "computed": false + } + }, + "operator": "+", + "right": { + "type": "Literal", + "start": 914, + "end": 917, + "loc": { + "start": { + "line": 59, + "column": 50 + }, + "end": { + "line": 59, + "column": 53 + } + }, + "value": "%", + "rawValue": "%", + "raw": "'%'" + } + }, + "kind": "init" + }, + { + "type": "Property", + "start": 931, + "end": 953, + "loc": { + "start": { + "line": 60, + "column": 12 + }, + "end": { + "line": 60, + "column": 34 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 931, + "end": 936, + "loc": { + "start": { + "line": 60, + "column": 12 + }, + "end": { + "line": 60, + "column": 17 + } + }, + "name": "width" + }, + "value": { + "type": "BinaryExpression", + "start": 938, + "end": 953, + "loc": { + "start": { + "line": 60, + "column": 19 + }, + "end": { + "line": 60, + "column": 34 + } + }, + "left": { + "type": "BinaryExpression", + "start": 939, + "end": 946, + "loc": { + "start": { + "line": 60, + "column": 20 + }, + "end": { + "line": 60, + "column": 27 + } + }, + "left": { + "type": "Literal", + "start": 939, + "end": 942, + "loc": { + "start": { + "line": 60, + "column": 20 + }, + "end": { + "line": 60, + "column": 23 + } + }, + "value": 100, + "rawValue": 100, + "raw": "100" + }, + "operator": "/", + "right": { + "type": "Literal", + "start": 945, + "end": 946, + "loc": { + "start": { + "line": 60, + "column": 26 + }, + "end": { + "line": 60, + "column": 27 + } + }, + "value": 4, + "rawValue": 4, + "raw": "4" + }, + "parenthesizedExpression": true + }, + "operator": "+", + "right": { + "type": "Literal", + "start": 950, + "end": 953, + "loc": { + "start": { + "line": 60, + "column": 31 + }, + "end": { + "line": 60, + "column": 34 + } + }, + "value": "%", + "rawValue": "%", + "raw": "'%'" + } + }, + "kind": "init" + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "VariableDeclaration", + "start": 974, + "end": 1034, + "loc": { + "start": { + "line": 63, + "column": 8 + }, + "end": { + "line": 63, + "column": 68 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 980, + "end": 1034, + "loc": { + "start": { + "line": 63, + "column": 14 + }, + "end": { + "line": 63, + "column": 68 + } + }, + "id": { + "type": "Identifier", + "start": 980, + "end": 988, + "loc": { + "start": { + "line": 63, + "column": 14 + }, + "end": { + "line": 63, + "column": 22 + } + }, + "name": "children" + }, + "init": { + "type": "CallExpression", + "start": 991, + "end": 1034, + "loc": { + "start": { + "line": 63, + "column": 25 + }, + "end": { + "line": 63, + "column": 68 + } + }, + "callee": { + "type": "MemberExpression", + "start": 991, + "end": 1013, + "loc": { + "start": { + "line": 63, + "column": 25 + }, + "end": { + "line": 63, + "column": 47 + } + }, + "object": { + "type": "MemberExpression", + "start": 991, + "end": 1005, + "loc": { + "start": { + "line": 63, + "column": 25 + }, + "end": { + "line": 63, + "column": 39 + } + }, + "object": { + "type": "Identifier", + "start": 991, + "end": 996, + "loc": { + "start": { + "line": 63, + "column": 25 + }, + "end": { + "line": 63, + "column": 30 + } + }, + "name": "React" + }, + "property": { + "type": "Identifier", + "start": 997, + "end": 1005, + "loc": { + "start": { + "line": 63, + "column": 31 + }, + "end": { + "line": 63, + "column": 39 + } + }, + "name": "Children" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1006, + "end": 1013, + "loc": { + "start": { + "line": 63, + "column": 40 + }, + "end": { + "line": 63, + "column": 47 + } + }, + "name": "toArray" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 1014, + "end": 1033, + "loc": { + "start": { + "line": 63, + "column": 48 + }, + "end": { + "line": 63, + "column": 67 + } + }, + "object": { + "type": "MemberExpression", + "start": 1014, + "end": 1024, + "loc": { + "start": { + "line": 63, + "column": 48 + }, + "end": { + "line": 63, + "column": 58 + } + }, + "object": { + "type": "ThisExpression", + "start": 1014, + "end": 1018, + "loc": { + "start": { + "line": 63, + "column": 48 + }, + "end": { + "line": 63, + "column": 52 + } + } + }, + "property": { + "type": "Identifier", + "start": 1019, + "end": 1024, + "loc": { + "start": { + "line": 63, + "column": 53 + }, + "end": { + "line": 63, + "column": 58 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1025, + "end": 1033, + "loc": { + "start": { + "line": 63, + "column": 59 + }, + "end": { + "line": 63, + "column": 67 + } + }, + "name": "children" + }, + "computed": false + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "VariableDeclaration", + "start": 1044, + "end": 1198, + "loc": { + "start": { + "line": 65, + "column": 8 + }, + "end": { + "line": 69, + "column": 10 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1050, + "end": 1198, + "loc": { + "start": { + "line": 65, + "column": 14 + }, + "end": { + "line": 69, + "column": 10 + } + }, + "id": { + "type": "Identifier", + "start": 1050, + "end": 1055, + "loc": { + "start": { + "line": 65, + "column": 14 + }, + "end": { + "line": 65, + "column": 19 + } + }, + "name": "items" + }, + "init": { + "type": "CallExpression", + "start": 1058, + "end": 1198, + "loc": { + "start": { + "line": 65, + "column": 22 + }, + "end": { + "line": 69, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1058, + "end": 1070, + "loc": { + "start": { + "line": 65, + "column": 22 + }, + "end": { + "line": 65, + "column": 34 + } + }, + "object": { + "type": "Identifier", + "start": 1058, + "end": 1066, + "loc": { + "start": { + "line": 65, + "column": 22 + }, + "end": { + "line": 65, + "column": 30 + } + }, + "name": "children" + }, + "property": { + "type": "Identifier", + "start": 1067, + "end": 1070, + "loc": { + "start": { + "line": 65, + "column": 31 + }, + "end": { + "line": 65, + "column": 34 + } + }, + "name": "map" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 1071, + "end": 1197, + "loc": { + "start": { + "line": 65, + "column": 35 + }, + "end": { + "line": 69, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1072, + "end": 1073, + "loc": { + "start": { + "line": 65, + "column": 36 + }, + "end": { + "line": 65, + "column": 37 + } + }, + "name": "c" + }, + { + "type": "Identifier", + "start": 1075, + "end": 1076, + "loc": { + "start": { + "line": 65, + "column": 39 + }, + "end": { + "line": 65, + "column": 40 + } + }, + "name": "i" + } + ], + "body": { + "type": "BlockStatement", + "start": 1081, + "end": 1197, + "loc": { + "start": { + "line": 65, + "column": 45 + }, + "end": { + "line": 69, + "column": 9 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 1095, + "end": 1187, + "loc": { + "start": { + "line": 66, + "column": 12 + }, + "end": { + "line": 68, + "column": 14 + } + }, + "argument": { + "type": "CallExpression", + "start": 1102, + "end": 1187, + "loc": { + "start": { + "line": 66, + "column": 19 + }, + "end": { + "line": 68, + "column": 14 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1102, + "end": 1120, + "loc": { + "start": { + "line": 66, + "column": 19 + }, + "end": { + "line": 66, + "column": 37 + } + }, + "object": { + "type": "Identifier", + "start": 1102, + "end": 1107, + "loc": { + "start": { + "line": 66, + "column": 19 + }, + "end": { + "line": 66, + "column": 24 + } + }, + "name": "React" + }, + "property": { + "type": "Identifier", + "start": 1108, + "end": 1120, + "loc": { + "start": { + "line": 66, + "column": 25 + }, + "end": { + "line": 66, + "column": 37 + } + }, + "name": "cloneElement" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 1121, + "end": 1122, + "loc": { + "start": { + "line": 66, + "column": 38 + }, + "end": { + "line": 66, + "column": 39 + } + }, + "name": "c" + }, + { + "type": "ObjectExpression", + "start": 1124, + "end": 1186, + "loc": { + "start": { + "line": 66, + "column": 41 + }, + "end": { + "line": 68, + "column": 13 + } + }, + "properties": [ + { + "type": "Property", + "start": 1142, + "end": 1172, + "loc": { + "start": { + "line": 67, + "column": 16 + }, + "end": { + "line": 67, + "column": 46 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1142, + "end": 1148, + "loc": { + "start": { + "line": 67, + "column": 16 + }, + "end": { + "line": 67, + "column": 22 + } + }, + "name": "active" + }, + "value": { + "type": "BinaryExpression", + "start": 1150, + "end": 1172, + "loc": { + "start": { + "line": 67, + "column": 24 + }, + "end": { + "line": 67, + "column": 46 + } + }, + "left": { + "type": "Identifier", + "start": 1150, + "end": 1151, + "loc": { + "start": { + "line": 67, + "column": 24 + }, + "end": { + "line": 67, + "column": 25 + } + }, + "name": "i" + }, + "operator": "==", + "right": { + "type": "MemberExpression", + "start": 1155, + "end": 1172, + "loc": { + "start": { + "line": 67, + "column": 29 + }, + "end": { + "line": 67, + "column": 46 + } + }, + "object": { + "type": "MemberExpression", + "start": 1155, + "end": 1165, + "loc": { + "start": { + "line": 67, + "column": 29 + }, + "end": { + "line": 67, + "column": 39 + } + }, + "object": { + "type": "ThisExpression", + "start": 1155, + "end": 1159, + "loc": { + "start": { + "line": 67, + "column": 29 + }, + "end": { + "line": 67, + "column": 33 + } + } + }, + "property": { + "type": "Identifier", + "start": 1160, + "end": 1165, + "loc": { + "start": { + "line": 67, + "column": 34 + }, + "end": { + "line": 67, + "column": 39 + } + }, + "name": "state" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1166, + "end": 1172, + "loc": { + "start": { + "line": 67, + "column": 40 + }, + "end": { + "line": 67, + "column": 46 + } + }, + "name": "active" + }, + "computed": false + } + }, + "kind": "init" + } + ] + } + ] + } + } + ] + } + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "ReturnStatement", + "start": 1208, + "end": 2051, + "loc": { + "start": { + "line": 71, + "column": 8 + }, + "end": { + "line": 91, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 1229, + "end": 2041, + "loc": { + "start": { + "line": 72, + "column": 12 + }, + "end": { + "line": 90, + "column": 18 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1229, + "end": 1273, + "loc": { + "start": { + "line": 72, + "column": 12 + }, + "end": { + "line": 72, + "column": 56 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1234, + "end": 1272, + "loc": { + "start": { + "line": 72, + "column": 17 + }, + "end": { + "line": 72, + "column": 55 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1234, + "end": 1243, + "loc": { + "start": { + "line": 72, + "column": 17 + }, + "end": { + "line": 72, + "column": 26 + } + }, + "name": "className" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 1244, + "end": 1272, + "loc": { + "start": { + "line": 72, + "column": 27 + }, + "end": { + "line": 72, + "column": 55 + } + }, + "expression": { + "type": "LogicalExpression", + "start": 1245, + "end": 1271, + "loc": { + "start": { + "line": 72, + "column": 28 + }, + "end": { + "line": 72, + "column": 54 + } + }, + "left": { + "type": "MemberExpression", + "start": 1245, + "end": 1265, + "loc": { + "start": { + "line": 72, + "column": 28 + }, + "end": { + "line": 72, + "column": 48 + } + }, + "object": { + "type": "MemberExpression", + "start": 1245, + "end": 1255, + "loc": { + "start": { + "line": 72, + "column": 28 + }, + "end": { + "line": 72, + "column": 38 + } + }, + "object": { + "type": "ThisExpression", + "start": 1245, + "end": 1249, + "loc": { + "start": { + "line": 72, + "column": 28 + }, + "end": { + "line": 72, + "column": 32 + } + } + }, + "property": { + "type": "Identifier", + "start": 1250, + "end": 1255, + "loc": { + "start": { + "line": 72, + "column": 33 + }, + "end": { + "line": 72, + "column": 38 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1256, + "end": 1265, + "loc": { + "start": { + "line": 72, + "column": 39 + }, + "end": { + "line": 72, + "column": 48 + } + }, + "name": "className" + }, + "computed": false + }, + "operator": "||", + "right": { + "type": "Literal", + "start": 1269, + "end": 1271, + "loc": { + "start": { + "line": 72, + "column": 52 + }, + "end": { + "line": 72, + "column": 54 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + } + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1230, + "end": 1233, + "loc": { + "start": { + "line": 72, + "column": 13 + }, + "end": { + "line": 72, + "column": 16 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2035, + "end": 2041, + "loc": { + "start": { + "line": 90, + "column": 12 + }, + "end": { + "line": 90, + "column": 18 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2037, + "end": 2040, + "loc": { + "start": { + "line": 90, + "column": 14 + }, + "end": { + "line": 90, + "column": 17 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 1273, + "end": 1290, + "loc": { + "start": { + "line": 72, + "column": 56 + }, + "end": { + "line": 73, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1290, + "end": 1959, + "loc": { + "start": { + "line": 73, + "column": 16 + }, + "end": { + "line": 86, + "column": 25 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1290, + "end": 1298, + "loc": { + "start": { + "line": 73, + "column": 16 + }, + "end": { + "line": 73, + "column": 24 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 1291, + "end": 1297, + "loc": { + "start": { + "line": 73, + "column": 17 + }, + "end": { + "line": 73, + "column": 23 + } + }, + "name": "header" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1950, + "end": 1959, + "loc": { + "start": { + "line": 86, + "column": 16 + }, + "end": { + "line": 86, + "column": 25 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1952, + "end": 1958, + "loc": { + "start": { + "line": 86, + "column": 18 + }, + "end": { + "line": 86, + "column": 24 + } + }, + "name": "header" + } + }, + "children": [ + { + "type": "Literal", + "start": 1298, + "end": 1319, + "loc": { + "start": { + "line": 73, + "column": 24 + }, + "end": { + "line": 74, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1319, + "end": 1866, + "loc": { + "start": { + "line": 74, + "column": 20 + }, + "end": { + "line": 84, + "column": 26 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1319, + "end": 1342, + "loc": { + "start": { + "line": 74, + "column": 20 + }, + "end": { + "line": 74, + "column": 43 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1324, + "end": 1341, + "loc": { + "start": { + "line": 74, + "column": 25 + }, + "end": { + "line": 74, + "column": 42 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1324, + "end": 1333, + "loc": { + "start": { + "line": 74, + "column": 25 + }, + "end": { + "line": 74, + "column": 34 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 1334, + "end": 1341, + "loc": { + "start": { + "line": 74, + "column": 35 + }, + "end": { + "line": 74, + "column": 42 + } + }, + "value": "items", + "rawValue": null, + "raw": "\"items\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1320, + "end": 1323, + "loc": { + "start": { + "line": 74, + "column": 21 + }, + "end": { + "line": 74, + "column": 24 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1860, + "end": 1866, + "loc": { + "start": { + "line": 84, + "column": 20 + }, + "end": { + "line": 84, + "column": 26 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1862, + "end": 1865, + "loc": { + "start": { + "line": 84, + "column": 22 + }, + "end": { + "line": 84, + "column": 25 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 1342, + "end": 1367, + "loc": { + "start": { + "line": 74, + "column": 43 + }, + "end": { + "line": 75, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 1367, + "end": 1839, + "loc": { + "start": { + "line": 75, + "column": 24 + }, + "end": { + "line": 83, + "column": 27 + } + }, + "expression": { + "type": "CallExpression", + "start": 1368, + "end": 1838, + "loc": { + "start": { + "line": 75, + "column": 25 + }, + "end": { + "line": 83, + "column": 26 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1368, + "end": 1380, + "loc": { + "start": { + "line": 75, + "column": 25 + }, + "end": { + "line": 75, + "column": 37 + } + }, + "object": { + "type": "Identifier", + "start": 1368, + "end": 1376, + "loc": { + "start": { + "line": 75, + "column": 25 + }, + "end": { + "line": 75, + "column": 33 + } + }, + "name": "children" + }, + "property": { + "type": "Identifier", + "start": 1377, + "end": 1380, + "loc": { + "start": { + "line": 75, + "column": 34 + }, + "end": { + "line": 75, + "column": 37 + } + }, + "name": "map" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 1381, + "end": 1837, + "loc": { + "start": { + "line": 75, + "column": 38 + }, + "end": { + "line": 83, + "column": 25 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1382, + "end": 1385, + "loc": { + "start": { + "line": 75, + "column": 39 + }, + "end": { + "line": 75, + "column": 42 + } + }, + "name": "tab" + }, + { + "type": "Identifier", + "start": 1387, + "end": 1388, + "loc": { + "start": { + "line": 75, + "column": 44 + }, + "end": { + "line": 75, + "column": 45 + } + }, + "name": "i" + } + ], + "body": { + "type": "BlockStatement", + "start": 1393, + "end": 1837, + "loc": { + "start": { + "line": 75, + "column": 50 + }, + "end": { + "line": 83, + "column": 25 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 1423, + "end": 1462, + "loc": { + "start": { + "line": 76, + "column": 28 + }, + "end": { + "line": 76, + "column": 67 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1429, + "end": 1462, + "loc": { + "start": { + "line": 76, + "column": 34 + }, + "end": { + "line": 76, + "column": 67 + } + }, + "id": { + "type": "Identifier", + "start": 1429, + "end": 1435, + "loc": { + "start": { + "line": 76, + "column": 34 + }, + "end": { + "line": 76, + "column": 40 + } + }, + "name": "active" + }, + "init": { + "type": "BinaryExpression", + "start": 1439, + "end": 1461, + "loc": { + "start": { + "line": 76, + "column": 44 + }, + "end": { + "line": 76, + "column": 66 + } + }, + "left": { + "type": "MemberExpression", + "start": 1439, + "end": 1456, + "loc": { + "start": { + "line": 76, + "column": 44 + }, + "end": { + "line": 76, + "column": 61 + } + }, + "object": { + "type": "MemberExpression", + "start": 1439, + "end": 1449, + "loc": { + "start": { + "line": 76, + "column": 44 + }, + "end": { + "line": 76, + "column": 54 + } + }, + "object": { + "type": "ThisExpression", + "start": 1439, + "end": 1443, + "loc": { + "start": { + "line": 76, + "column": 44 + }, + "end": { + "line": 76, + "column": 48 + } + } + }, + "property": { + "type": "Identifier", + "start": 1444, + "end": 1449, + "loc": { + "start": { + "line": 76, + "column": 49 + }, + "end": { + "line": 76, + "column": 54 + } + }, + "name": "state" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1450, + "end": 1456, + "loc": { + "start": { + "line": 76, + "column": 55 + }, + "end": { + "line": 76, + "column": 61 + } + }, + "name": "active" + }, + "computed": false + }, + "operator": "==", + "right": { + "type": "Identifier", + "start": 1460, + "end": 1461, + "loc": { + "start": { + "line": 76, + "column": 65 + }, + "end": { + "line": 76, + "column": 66 + } + }, + "name": "i" + }, + "parenthesizedExpression": true + } + } + ], + "kind": "const" + }, + { + "type": "ReturnStatement", + "start": 1491, + "end": 1811, + "loc": { + "start": { + "line": 77, + "column": 28 + }, + "end": { + "line": 82, + "column": 29 + } + }, + "argument": { + "type": "JSXElement", + "start": 1532, + "end": 1781, + "loc": { + "start": { + "line": 78, + "column": 32 + }, + "end": { + "line": 81, + "column": 97 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1532, + "end": 1755, + "loc": { + "start": { + "line": 78, + "column": 32 + }, + "end": { + "line": 81, + "column": 71 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1576, + "end": 1599, + "loc": { + "start": { + "line": 79, + "column": 36 + }, + "end": { + "line": 79, + "column": 59 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1576, + "end": 1579, + "loc": { + "start": { + "line": 79, + "column": 36 + }, + "end": { + "line": 79, + "column": 39 + } + }, + "name": "key" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 1580, + "end": 1599, + "loc": { + "start": { + "line": 79, + "column": 40 + }, + "end": { + "line": 79, + "column": 59 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 1581, + "end": 1598, + "loc": { + "start": { + "line": 79, + "column": 41 + }, + "end": { + "line": 79, + "column": 58 + } + }, + "expressions": [ + { + "type": "Identifier", + "start": 1595, + "end": 1596, + "loc": { + "start": { + "line": 79, + "column": 55 + }, + "end": { + "line": 79, + "column": 56 + } + }, + "name": "i" + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 1582, + "end": 1593, + "loc": { + "start": { + "line": 79, + "column": 42 + }, + "end": { + "line": 79, + "column": 53 + } + }, + "value": { + "raw": "tab-button-", + "cooked": "tab-button-" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 1597, + "end": 1597, + "loc": { + "start": { + "line": 79, + "column": 57 + }, + "end": { + "line": 79, + "column": 57 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + }, + { + "type": "JSXAttribute", + "start": 1636, + "end": 1683, + "loc": { + "start": { + "line": 80, + "column": 36 + }, + "end": { + "line": 80, + "column": 83 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1636, + "end": 1643, + "loc": { + "start": { + "line": 80, + "column": 36 + }, + "end": { + "line": 80, + "column": 43 + } + }, + "name": "onClick" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 1644, + "end": 1683, + "loc": { + "start": { + "line": 80, + "column": 44 + }, + "end": { + "line": 80, + "column": 83 + } + }, + "expression": { + "type": "ArrowFunctionExpression", + "start": 1645, + "end": 1682, + "loc": { + "start": { + "line": 80, + "column": 45 + }, + "end": { + "line": 80, + "column": 82 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1645, + "end": 1646, + "loc": { + "start": { + "line": 80, + "column": 45 + }, + "end": { + "line": 80, + "column": 46 + } + }, + "name": "e" + } + ], + "body": { + "type": "CallExpression", + "start": 1650, + "end": 1682, + "loc": { + "start": { + "line": 80, + "column": 50 + }, + "end": { + "line": 80, + "column": 82 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1650, + "end": 1666, + "loc": { + "start": { + "line": 80, + "column": 50 + }, + "end": { + "line": 80, + "column": 66 + } + }, + "object": { + "type": "ThisExpression", + "start": 1650, + "end": 1654, + "loc": { + "start": { + "line": 80, + "column": 50 + }, + "end": { + "line": 80, + "column": 54 + } + } + }, + "property": { + "type": "Identifier", + "start": 1655, + "end": 1666, + "loc": { + "start": { + "line": 80, + "column": 55 + }, + "end": { + "line": 80, + "column": 66 + } + }, + "name": "handleClick" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 1667, + "end": 1668, + "loc": { + "start": { + "line": 80, + "column": 67 + }, + "end": { + "line": 80, + "column": 68 + } + }, + "name": "e" + }, + { + "type": "Identifier", + "start": 1670, + "end": 1671, + "loc": { + "start": { + "line": 80, + "column": 70 + }, + "end": { + "line": 80, + "column": 71 + } + }, + "name": "i" + }, + { + "type": "Identifier", + "start": 1673, + "end": 1681, + "loc": { + "start": { + "line": 80, + "column": 73 + }, + "end": { + "line": 80, + "column": 81 + } + }, + "name": "children" + } + ] + } + } + } + }, + { + "type": "JSXAttribute", + "start": 1720, + "end": 1754, + "loc": { + "start": { + "line": 81, + "column": 36 + }, + "end": { + "line": 81, + "column": 70 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1720, + "end": 1729, + "loc": { + "start": { + "line": 81, + "column": 36 + }, + "end": { + "line": 81, + "column": 45 + } + }, + "name": "className" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 1730, + "end": 1754, + "loc": { + "start": { + "line": 81, + "column": 46 + }, + "end": { + "line": 81, + "column": 70 + } + }, + "expression": { + "type": "ConditionalExpression", + "start": 1731, + "end": 1753, + "loc": { + "start": { + "line": 81, + "column": 47 + }, + "end": { + "line": 81, + "column": 69 + } + }, + "test": { + "type": "Identifier", + "start": 1731, + "end": 1737, + "loc": { + "start": { + "line": 81, + "column": 47 + }, + "end": { + "line": 81, + "column": 53 + } + }, + "name": "active" + }, + "consequent": { + "type": "Literal", + "start": 1740, + "end": 1748, + "loc": { + "start": { + "line": 81, + "column": 56 + }, + "end": { + "line": 81, + "column": 64 + } + }, + "value": "active", + "rawValue": "active", + "raw": "'active'" + }, + "alternate": { + "type": "Literal", + "start": 1751, + "end": 1753, + "loc": { + "start": { + "line": 81, + "column": 67 + }, + "end": { + "line": 81, + "column": 69 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + } + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1533, + "end": 1539, + "loc": { + "start": { + "line": 78, + "column": 33 + }, + "end": { + "line": 78, + "column": 39 + } + }, + "name": "button" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1772, + "end": 1781, + "loc": { + "start": { + "line": 81, + "column": 88 + }, + "end": { + "line": 81, + "column": 97 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1774, + "end": 1780, + "loc": { + "start": { + "line": 81, + "column": 90 + }, + "end": { + "line": 81, + "column": 96 + } + }, + "name": "button" + } + }, + "children": [ + { + "type": "JSXExpressionContainer", + "start": 1755, + "end": 1772, + "loc": { + "start": { + "line": 81, + "column": 71 + }, + "end": { + "line": 81, + "column": 88 + } + }, + "expression": { + "type": "MemberExpression", + "start": 1756, + "end": 1771, + "loc": { + "start": { + "line": 81, + "column": 72 + }, + "end": { + "line": 81, + "column": 87 + } + }, + "object": { + "type": "MemberExpression", + "start": 1756, + "end": 1765, + "loc": { + "start": { + "line": 81, + "column": 72 + }, + "end": { + "line": 81, + "column": 81 + } + }, + "object": { + "type": "Identifier", + "start": 1756, + "end": 1759, + "loc": { + "start": { + "line": 81, + "column": 72 + }, + "end": { + "line": 81, + "column": 75 + } + }, + "name": "tab" + }, + "property": { + "type": "Identifier", + "start": 1760, + "end": 1765, + "loc": { + "start": { + "line": 81, + "column": 76 + }, + "end": { + "line": 81, + "column": 81 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1766, + "end": 1771, + "loc": { + "start": { + "line": 81, + "column": 82 + }, + "end": { + "line": 81, + "column": 87 + } + }, + "name": "label" + }, + "computed": false + } + } + ], + "parenthesizedExpression": true + } + } + ] + } + } + ] + } + }, + { + "type": "Literal", + "start": 1839, + "end": 1860, + "loc": { + "start": { + "line": 83, + "column": 27 + }, + "end": { + "line": 84, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 1866, + "end": 1887, + "loc": { + "start": { + "line": 84, + "column": 26 + }, + "end": { + "line": 85, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1887, + "end": 1933, + "loc": { + "start": { + "line": 85, + "column": 20 + }, + "end": { + "line": 85, + "column": 66 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1887, + "end": 1933, + "loc": { + "start": { + "line": 85, + "column": 20 + }, + "end": { + "line": 85, + "column": 66 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1892, + "end": 1913, + "loc": { + "start": { + "line": 85, + "column": 25 + }, + "end": { + "line": 85, + "column": 46 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1892, + "end": 1901, + "loc": { + "start": { + "line": 85, + "column": 25 + }, + "end": { + "line": 85, + "column": 34 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 1902, + "end": 1913, + "loc": { + "start": { + "line": 85, + "column": 35 + }, + "end": { + "line": 85, + "column": 46 + } + }, + "value": "indicator", + "rawValue": null, + "raw": "\"indicator\"" + } + }, + { + "type": "JSXAttribute", + "start": 1914, + "end": 1931, + "loc": { + "start": { + "line": 85, + "column": 47 + }, + "end": { + "line": 85, + "column": 64 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1914, + "end": 1919, + "loc": { + "start": { + "line": 85, + "column": 47 + }, + "end": { + "line": 85, + "column": 52 + } + }, + "name": "style" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 1920, + "end": 1931, + "loc": { + "start": { + "line": 85, + "column": 53 + }, + "end": { + "line": 85, + "column": 64 + } + }, + "expression": { + "type": "Identifier", + "start": 1921, + "end": 1930, + "loc": { + "start": { + "line": 85, + "column": 54 + }, + "end": { + "line": 85, + "column": 63 + } + }, + "name": "indicator" + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1888, + "end": 1891, + "loc": { + "start": { + "line": 85, + "column": 21 + }, + "end": { + "line": 85, + "column": 24 + } + }, + "name": "div" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 1933, + "end": 1950, + "loc": { + "start": { + "line": 85, + "column": 66 + }, + "end": { + "line": 86, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 1959, + "end": 1977, + "loc": { + "start": { + "line": 86, + "column": 25 + }, + "end": { + "line": 88, + "column": 16 + } + }, + "value": "\n\n ", + "rawValue": null, + "raw": "\n\n " + }, + { + "type": "JSXExpressionContainer", + "start": 1977, + "end": 2021, + "loc": { + "start": { + "line": 88, + "column": 16 + }, + "end": { + "line": 88, + "column": 60 + } + }, + "expression": { + "type": "MemberExpression", + "start": 1978, + "end": 2020, + "loc": { + "start": { + "line": 88, + "column": 17 + }, + "end": { + "line": 88, + "column": 59 + } + }, + "object": { + "type": "CallExpression", + "start": 1978, + "end": 2017, + "loc": { + "start": { + "line": 88, + "column": 17 + }, + "end": { + "line": 88, + "column": 56 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1978, + "end": 1990, + "loc": { + "start": { + "line": 88, + "column": 17 + }, + "end": { + "line": 88, + "column": 29 + } + }, + "object": { + "type": "Identifier", + "start": 1978, + "end": 1983, + "loc": { + "start": { + "line": 88, + "column": 17 + }, + "end": { + "line": 88, + "column": 22 + } + }, + "name": "items" + }, + "property": { + "type": "Identifier", + "start": 1984, + "end": 1990, + "loc": { + "start": { + "line": 88, + "column": 23 + }, + "end": { + "line": 88, + "column": 29 + } + }, + "name": "filter" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 1991, + "end": 2016, + "loc": { + "start": { + "line": 88, + "column": 30 + }, + "end": { + "line": 88, + "column": 55 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1991, + "end": 1995, + "loc": { + "start": { + "line": 88, + "column": 30 + }, + "end": { + "line": 88, + "column": 34 + } + }, + "name": "item" + } + ], + "body": { + "type": "MemberExpression", + "start": 1999, + "end": 2016, + "loc": { + "start": { + "line": 88, + "column": 38 + }, + "end": { + "line": 88, + "column": 55 + } + }, + "object": { + "type": "MemberExpression", + "start": 1999, + "end": 2009, + "loc": { + "start": { + "line": 88, + "column": 38 + }, + "end": { + "line": 88, + "column": 48 + } + }, + "object": { + "type": "Identifier", + "start": 1999, + "end": 2003, + "loc": { + "start": { + "line": 88, + "column": 38 + }, + "end": { + "line": 88, + "column": 42 + } + }, + "name": "item" + }, + "property": { + "type": "Identifier", + "start": 2004, + "end": 2009, + "loc": { + "start": { + "line": 88, + "column": 43 + }, + "end": { + "line": 88, + "column": 48 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2010, + "end": 2016, + "loc": { + "start": { + "line": 88, + "column": 49 + }, + "end": { + "line": 88, + "column": 55 + } + }, + "name": "active" + }, + "computed": false + } + } + ] + }, + "property": { + "type": "Literal", + "start": 2018, + "end": 2019, + "loc": { + "start": { + "line": 88, + "column": 57 + }, + "end": { + "line": 88, + "column": 58 + } + }, + "value": 0, + "rawValue": 0, + "raw": "0" + }, + "computed": true + } + }, + { + "type": "Literal", + "start": 2021, + "end": 2035, + "loc": { + "start": { + "line": 88, + "column": 60 + }, + "end": { + "line": 90, + "column": 12 + } + }, + "value": "\n\n ", + "rawValue": null, + "raw": "\n\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 771, + "end": 819, + "loc": { + "start": { + "line": 52, + "column": 4 + }, + "end": { + "line": 55, + "column": 7 + } + }, + "range": [ + 771, + 819 + ] + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Tabs index component\n ", + "start": 406, + "end": 437, + "loc": { + "start": { + "line": 27, + "column": 0 + }, + "end": { + "line": 29, + "column": 3 + } + }, + "range": [ + 406, + 437 + ] + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Tabs index component\n ", + "start": 406, + "end": 437, + "loc": { + "start": { + "line": 27, + "column": 0 + }, + "end": { + "line": 29, + "column": 3 + } + }, + "range": [ + 406, + 437 + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/components/TimeAgo/index.js.json b/app/docs/ast/source/components/TimeAgo/index.js.json new file mode 100644 index 0000000..2dbd109 --- /dev/null +++ b/app/docs/ast/source/components/TimeAgo/index.js.json @@ -0,0 +1,3580 @@ +{ + "type": "Program", + "start": 0, + "end": 959, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 56, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + }, + { + "type": "ImportSpecifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "imported": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + }, + "local": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 33, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 33 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ImportDeclaration", + "start": 42, + "end": 69, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 27 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 49, + "end": 55, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 13 + } + }, + "local": { + "type": "Identifier", + "start": 49, + "end": 55, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 13 + } + }, + "name": "moment" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 61, + "end": 69, + "loc": { + "start": { + "line": 3, + "column": 19 + }, + "end": { + "line": 3, + "column": 27 + } + }, + "value": "moment", + "rawValue": "moment", + "raw": "'moment'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * TimeAgo index component\n ", + "start": 71, + "end": 105, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + }, + "range": [ + 71, + 105 + ] + } + ] + }, + { + "type": "Identifier", + "start": 106, + "end": 934, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 53, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 112, + "end": 119, + "loc": { + "start": { + "line": 8, + "column": 6 + }, + "end": { + "line": 8, + "column": 13 + } + }, + "name": "TimeAgo", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 128, + "end": 137, + "loc": { + "start": { + "line": 8, + "column": 22 + }, + "end": { + "line": 8, + "column": 31 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 138, + "end": 934, + "loc": { + "start": { + "line": 8, + "column": 32 + }, + "end": { + "line": 53, + "column": 1 + } + }, + "body": [ + { + "type": "Identifier", + "start": 238, + "end": 323, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 17, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 245, + "end": 257, + "loc": { + "start": { + "line": 14, + "column": 11 + }, + "end": { + "line": 14, + "column": 23 + } + }, + "name": "defaultProps" + }, + "static": true, + "value": { + "type": "ObjectExpression", + "start": 260, + "end": 323, + "loc": { + "start": { + "line": 14, + "column": 26 + }, + "end": { + "line": 17, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 270, + "end": 291, + "loc": { + "start": { + "line": 15, + "column": 8 + }, + "end": { + "line": 15, + "column": 29 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 270, + "end": 284, + "loc": { + "start": { + "line": 15, + "column": 8 + }, + "end": { + "line": 15, + "column": 22 + } + }, + "name": "updateDuration" + }, + "value": { + "type": "Literal", + "start": 286, + "end": 291, + "loc": { + "start": { + "line": 15, + "column": 24 + }, + "end": { + "line": 15, + "column": 29 + } + }, + "value": 30000, + "rawValue": 30000, + "raw": "30000" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 301, + "end": 316, + "loc": { + "start": { + "line": 16, + "column": 8 + }, + "end": { + "line": 16, + "column": 23 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 301, + "end": 310, + "loc": { + "start": { + "line": 16, + "column": 8 + }, + "end": { + "line": 16, + "column": 17 + } + }, + "name": "timestamp" + }, + "value": { + "type": "Literal", + "start": 312, + "end": 316, + "loc": { + "start": { + "line": 16, + "column": 19 + }, + "end": { + "line": 16, + "column": 23 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + "kind": "init" + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * defaultProps\n * @type {{updateDuration: number, timestamp: null}}\n ", + "start": 145, + "end": 233, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 13, + "column": 7 + } + }, + "range": [ + 145, + 233 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * state\n * @type {{i: number}}\n ", + "start": 329, + "end": 380, + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 22, + "column": 7 + } + }, + "range": [ + 329, + 380 + ] + } + ] + }, + { + "type": "Identifier", + "start": 385, + "end": 400, + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 19 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 385, + "end": 390, + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 9 + } + }, + "name": "state", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ObjectExpression", + "start": 393, + "end": 400, + "loc": { + "start": { + "line": 23, + "column": 12 + }, + "end": { + "line": 23, + "column": 19 + } + }, + "properties": [ + { + "type": "Property", + "start": 394, + "end": 398, + "loc": { + "start": { + "line": 23, + "column": 13 + }, + "end": { + "line": 23, + "column": 17 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 394, + "end": 395, + "loc": { + "start": { + "line": 23, + "column": 13 + }, + "end": { + "line": 23, + "column": 14 + } + }, + "name": "i" + }, + "value": { + "type": "Literal", + "start": 397, + "end": 398, + "loc": { + "start": { + "line": 23, + "column": 16 + }, + "end": { + "line": 23, + "column": 17 + } + }, + "value": 0, + "rawValue": 0, + "raw": "0" + }, + "kind": "init" + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * state\n * @type {{i: number}}\n ", + "start": 329, + "end": 380, + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 22, + "column": 7 + } + }, + "range": [ + 329, + 380 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * componentDidMount\n ", + "start": 406, + "end": 442, + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 27, + "column": 7 + } + }, + "range": [ + 406, + 442 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 447, + "end": 672, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 36, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 447, + "end": 464, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 21 + } + }, + "name": "componentDidMount", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 464, + "end": 672, + "loc": { + "start": { + "line": 28, + "column": 21 + }, + "end": { + "line": 36, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 467, + "end": 672, + "loc": { + "start": { + "line": 28, + "column": 24 + }, + "end": { + "line": 36, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 548, + "end": 666, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 35, + "column": 37 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 548, + "end": 666, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 35, + "column": 37 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 548, + "end": 555, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 15 + } + }, + "object": { + "type": "ThisExpression", + "start": 548, + "end": 552, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 12 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 553, + "end": 555, + "loc": { + "start": { + "line": 33, + "column": 13 + }, + "end": { + "line": 33, + "column": 15 + } + }, + "name": "$i" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "CallExpression", + "start": 558, + "end": 666, + "loc": { + "start": { + "line": 33, + "column": 18 + }, + "end": { + "line": 35, + "column": 37 + } + }, + "callee": { + "type": "Identifier", + "start": 558, + "end": 569, + "loc": { + "start": { + "line": 33, + "column": 18 + }, + "end": { + "line": 33, + "column": 29 + } + }, + "name": "setInterval" + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 570, + "end": 638, + "loc": { + "start": { + "line": 33, + "column": 30 + }, + "end": { + "line": 35, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 576, + "end": 638, + "loc": { + "start": { + "line": 33, + "column": 36 + }, + "end": { + "line": 35, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 590, + "end": 628, + "loc": { + "start": { + "line": 34, + "column": 12 + }, + "end": { + "line": 34, + "column": 50 + } + }, + "expression": { + "type": "CallExpression", + "start": 590, + "end": 628, + "loc": { + "start": { + "line": 34, + "column": 12 + }, + "end": { + "line": 34, + "column": 50 + } + }, + "callee": { + "type": "MemberExpression", + "start": 590, + "end": 603, + "loc": { + "start": { + "line": 34, + "column": 12 + }, + "end": { + "line": 34, + "column": 25 + } + }, + "object": { + "type": "ThisExpression", + "start": 590, + "end": 594, + "loc": { + "start": { + "line": 34, + "column": 12 + }, + "end": { + "line": 34, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 595, + "end": 603, + "loc": { + "start": { + "line": 34, + "column": 17 + }, + "end": { + "line": 34, + "column": 25 + } + }, + "name": "setState" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 604, + "end": 627, + "loc": { + "start": { + "line": 34, + "column": 26 + }, + "end": { + "line": 34, + "column": 49 + } + }, + "properties": [ + { + "type": "Property", + "start": 605, + "end": 626, + "loc": { + "start": { + "line": 34, + "column": 27 + }, + "end": { + "line": 34, + "column": 48 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 605, + "end": 606, + "loc": { + "start": { + "line": 34, + "column": 27 + }, + "end": { + "line": 34, + "column": 28 + } + }, + "name": "i" + }, + "value": { + "type": "BinaryExpression", + "start": 609, + "end": 625, + "loc": { + "start": { + "line": 34, + "column": 31 + }, + "end": { + "line": 34, + "column": 47 + } + }, + "left": { + "type": "MemberExpression", + "start": 609, + "end": 621, + "loc": { + "start": { + "line": 34, + "column": 31 + }, + "end": { + "line": 34, + "column": 43 + } + }, + "object": { + "type": "MemberExpression", + "start": 609, + "end": 619, + "loc": { + "start": { + "line": 34, + "column": 31 + }, + "end": { + "line": 34, + "column": 41 + } + }, + "object": { + "type": "ThisExpression", + "start": 609, + "end": 613, + "loc": { + "start": { + "line": 34, + "column": 31 + }, + "end": { + "line": 34, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "start": 614, + "end": 619, + "loc": { + "start": { + "line": 34, + "column": 36 + }, + "end": { + "line": 34, + "column": 41 + } + }, + "name": "state" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 620, + "end": 621, + "loc": { + "start": { + "line": 34, + "column": 42 + }, + "end": { + "line": 34, + "column": 43 + } + }, + "name": "i" + }, + "computed": false + }, + "operator": "+", + "right": { + "type": "Literal", + "start": 624, + "end": 625, + "loc": { + "start": { + "line": 34, + "column": 46 + }, + "end": { + "line": 34, + "column": 47 + } + }, + "value": 1, + "rawValue": 1, + "raw": "1" + }, + "parenthesizedExpression": true + }, + "kind": "init" + } + ] + } + ] + } + } + ] + } + }, + { + "type": "MemberExpression", + "start": 640, + "end": 665, + "loc": { + "start": { + "line": 35, + "column": 11 + }, + "end": { + "line": 35, + "column": 36 + } + }, + "object": { + "type": "MemberExpression", + "start": 640, + "end": 650, + "loc": { + "start": { + "line": 35, + "column": 11 + }, + "end": { + "line": 35, + "column": 21 + } + }, + "object": { + "type": "ThisExpression", + "start": 640, + "end": 644, + "loc": { + "start": { + "line": 35, + "column": 11 + }, + "end": { + "line": 35, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "start": 645, + "end": 650, + "loc": { + "start": { + "line": 35, + "column": 16 + }, + "end": { + "line": 35, + "column": 21 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 651, + "end": 665, + "loc": { + "start": { + "line": 35, + "column": 22 + }, + "end": { + "line": 35, + "column": 36 + } + }, + "name": "updateDuration" + }, + "computed": false + } + ] + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * this.$i\n * @type {number|*}\n ", + "start": 477, + "end": 539, + "loc": { + "start": { + "line": 29, + "column": 8 + }, + "end": { + "line": 32, + "column": 11 + } + }, + "range": [ + 477, + 539 + ] + } + ] + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * componentDidMount\n ", + "start": 406, + "end": 442, + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 27, + "column": 7 + } + }, + "range": [ + 406, + 442 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * componentWillUnmount\n ", + "start": 678, + "end": 717, + "loc": { + "start": { + "line": 38, + "column": 4 + }, + "end": { + "line": 40, + "column": 7 + } + }, + "range": [ + 678, + 717 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 722, + "end": 783, + "loc": { + "start": { + "line": 41, + "column": 4 + }, + "end": { + "line": 43, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 722, + "end": 742, + "loc": { + "start": { + "line": 41, + "column": 4 + }, + "end": { + "line": 41, + "column": 24 + } + }, + "name": "componentWillUnmount", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 742, + "end": 783, + "loc": { + "start": { + "line": 41, + "column": 24 + }, + "end": { + "line": 43, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 745, + "end": 783, + "loc": { + "start": { + "line": 41, + "column": 27 + }, + "end": { + "line": 43, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 755, + "end": 777, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 30 + } + }, + "expression": { + "type": "CallExpression", + "start": 755, + "end": 777, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 30 + } + }, + "callee": { + "type": "Identifier", + "start": 755, + "end": 768, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 21 + } + }, + "name": "clearInterval" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 769, + "end": 776, + "loc": { + "start": { + "line": 42, + "column": 22 + }, + "end": { + "line": 42, + "column": 29 + } + }, + "object": { + "type": "ThisExpression", + "start": 769, + "end": 773, + "loc": { + "start": { + "line": 42, + "column": 22 + }, + "end": { + "line": 42, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "start": 774, + "end": 776, + "loc": { + "start": { + "line": 42, + "column": 27 + }, + "end": { + "line": 42, + "column": 29 + } + }, + "name": "$i" + }, + "computed": false + } + ] + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * componentWillUnmount\n ", + "start": 678, + "end": 717, + "loc": { + "start": { + "line": 38, + "column": 4 + }, + "end": { + "line": 40, + "column": 7 + } + }, + "range": [ + 678, + 717 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 789, + "end": 837, + "loc": { + "start": { + "line": 45, + "column": 4 + }, + "end": { + "line": 48, + "column": 7 + } + }, + "range": [ + 789, + 837 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 842, + "end": 931, + "loc": { + "start": { + "line": 49, + "column": 4 + }, + "end": { + "line": 51, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 842, + "end": 848, + "loc": { + "start": { + "line": 49, + "column": 4 + }, + "end": { + "line": 49, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 848, + "end": 931, + "loc": { + "start": { + "line": 49, + "column": 10 + }, + "end": { + "line": 51, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 851, + "end": 931, + "loc": { + "start": { + "line": 49, + "column": 13 + }, + "end": { + "line": 51, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 861, + "end": 925, + "loc": { + "start": { + "line": 50, + "column": 8 + }, + "end": { + "line": 50, + "column": 72 + } + }, + "argument": { + "type": "JSXElement", + "start": 868, + "end": 925, + "loc": { + "start": { + "line": 50, + "column": 15 + }, + "end": { + "line": 50, + "column": 72 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 868, + "end": 874, + "loc": { + "start": { + "line": 50, + "column": 15 + }, + "end": { + "line": 50, + "column": 21 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 869, + "end": 873, + "loc": { + "start": { + "line": 50, + "column": 16 + }, + "end": { + "line": 50, + "column": 20 + } + }, + "name": "span" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 918, + "end": 925, + "loc": { + "start": { + "line": 50, + "column": 65 + }, + "end": { + "line": 50, + "column": 72 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 920, + "end": 924, + "loc": { + "start": { + "line": 50, + "column": 67 + }, + "end": { + "line": 50, + "column": 71 + } + }, + "name": "span" + } + }, + "children": [ + { + "type": "JSXExpressionContainer", + "start": 874, + "end": 918, + "loc": { + "start": { + "line": 50, + "column": 21 + }, + "end": { + "line": 50, + "column": 65 + } + }, + "expression": { + "type": "CallExpression", + "start": 875, + "end": 917, + "loc": { + "start": { + "line": 50, + "column": 22 + }, + "end": { + "line": 50, + "column": 64 + } + }, + "callee": { + "type": "MemberExpression", + "start": 875, + "end": 915, + "loc": { + "start": { + "line": 50, + "column": 22 + }, + "end": { + "line": 50, + "column": 62 + } + }, + "object": { + "type": "CallExpression", + "start": 875, + "end": 907, + "loc": { + "start": { + "line": 50, + "column": 22 + }, + "end": { + "line": 50, + "column": 54 + } + }, + "callee": { + "type": "MemberExpression", + "start": 875, + "end": 885, + "loc": { + "start": { + "line": 50, + "column": 22 + }, + "end": { + "line": 50, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 875, + "end": 881, + "loc": { + "start": { + "line": 50, + "column": 22 + }, + "end": { + "line": 50, + "column": 28 + } + }, + "name": "moment" + }, + "property": { + "type": "Identifier", + "start": 882, + "end": 885, + "loc": { + "start": { + "line": 50, + "column": 29 + }, + "end": { + "line": 50, + "column": 32 + } + }, + "name": "utc" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 886, + "end": 906, + "loc": { + "start": { + "line": 50, + "column": 33 + }, + "end": { + "line": 50, + "column": 53 + } + }, + "object": { + "type": "MemberExpression", + "start": 886, + "end": 896, + "loc": { + "start": { + "line": 50, + "column": 33 + }, + "end": { + "line": 50, + "column": 43 + } + }, + "object": { + "type": "ThisExpression", + "start": 886, + "end": 890, + "loc": { + "start": { + "line": 50, + "column": 33 + }, + "end": { + "line": 50, + "column": 37 + } + } + }, + "property": { + "type": "Identifier", + "start": 891, + "end": 896, + "loc": { + "start": { + "line": 50, + "column": 38 + }, + "end": { + "line": 50, + "column": 43 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 897, + "end": 906, + "loc": { + "start": { + "line": 50, + "column": 44 + }, + "end": { + "line": 50, + "column": 53 + } + }, + "name": "timestamp" + }, + "computed": false + } + ] + }, + "property": { + "type": "Identifier", + "start": 908, + "end": 915, + "loc": { + "start": { + "line": 50, + "column": 55 + }, + "end": { + "line": 50, + "column": 62 + } + }, + "name": "fromNow" + }, + "computed": false + }, + "arguments": [] + } + } + ] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 789, + "end": 837, + "loc": { + "start": { + "line": 45, + "column": 4 + }, + "end": { + "line": 48, + "column": 7 + } + }, + "range": [ + 789, + 837 + ] + } + ] + } + ] + }, + "leadingComments": [], + "name": "_", + "trailingComments": [] + }, + { + "type": "Identifier", + "start": 936, + "end": 958, + "loc": { + "start": { + "line": 55, + "column": 0 + }, + "end": { + "line": 55, + "column": 22 + } + }, + "declaration": { + "type": "Identifier", + "start": 951, + "end": 958, + "loc": { + "start": { + "line": 55, + "column": 15 + }, + "end": { + "line": 55, + "column": 22 + } + }, + "name": "TimeAgo" + }, + "name": "_", + "leadingComments": [], + "trailingComments": [] + }, + { + "type": "ExportDefaultDeclaration", + "start": 936, + "end": 958, + "loc": { + "start": { + "line": 55, + "column": 0 + }, + "end": { + "line": 55, + "column": 22 + } + }, + "declaration": { + "type": "ClassDeclaration", + "start": 106, + "end": 934, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 53, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 112, + "end": 119, + "loc": { + "start": { + "line": 8, + "column": 6 + }, + "end": { + "line": 8, + "column": 13 + } + }, + "name": "TimeAgo", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 128, + "end": 137, + "loc": { + "start": { + "line": 8, + "column": 22 + }, + "end": { + "line": 8, + "column": 31 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 138, + "end": 934, + "loc": { + "start": { + "line": 8, + "column": 32 + }, + "end": { + "line": 53, + "column": 1 + } + }, + "body": [ + { + "type": "Identifier", + "start": 238, + "end": 323, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 17, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 245, + "end": 257, + "loc": { + "start": { + "line": 14, + "column": 11 + }, + "end": { + "line": 14, + "column": 23 + } + }, + "name": "defaultProps" + }, + "static": true, + "value": { + "type": "ObjectExpression", + "start": 260, + "end": 323, + "loc": { + "start": { + "line": 14, + "column": 26 + }, + "end": { + "line": 17, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 270, + "end": 291, + "loc": { + "start": { + "line": 15, + "column": 8 + }, + "end": { + "line": 15, + "column": 29 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 270, + "end": 284, + "loc": { + "start": { + "line": 15, + "column": 8 + }, + "end": { + "line": 15, + "column": 22 + } + }, + "name": "updateDuration" + }, + "value": { + "type": "Literal", + "start": 286, + "end": 291, + "loc": { + "start": { + "line": 15, + "column": 24 + }, + "end": { + "line": 15, + "column": 29 + } + }, + "value": 30000, + "rawValue": 30000, + "raw": "30000" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 301, + "end": 316, + "loc": { + "start": { + "line": 16, + "column": 8 + }, + "end": { + "line": 16, + "column": 23 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 301, + "end": 310, + "loc": { + "start": { + "line": 16, + "column": 8 + }, + "end": { + "line": 16, + "column": 17 + } + }, + "name": "timestamp" + }, + "value": { + "type": "Literal", + "start": 312, + "end": 316, + "loc": { + "start": { + "line": 16, + "column": 19 + }, + "end": { + "line": 16, + "column": 23 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + "kind": "init" + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * defaultProps\n * @type {{updateDuration: number, timestamp: null}}\n ", + "start": 145, + "end": 233, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 13, + "column": 7 + } + }, + "range": [ + 145, + 233 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * state\n * @type {{i: number}}\n ", + "start": 329, + "end": 380, + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 22, + "column": 7 + } + }, + "range": [ + 329, + 380 + ] + } + ] + }, + { + "type": "Identifier", + "start": 385, + "end": 400, + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 19 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 385, + "end": 390, + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 9 + } + }, + "name": "state", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ObjectExpression", + "start": 393, + "end": 400, + "loc": { + "start": { + "line": 23, + "column": 12 + }, + "end": { + "line": 23, + "column": 19 + } + }, + "properties": [ + { + "type": "Property", + "start": 394, + "end": 398, + "loc": { + "start": { + "line": 23, + "column": 13 + }, + "end": { + "line": 23, + "column": 17 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 394, + "end": 395, + "loc": { + "start": { + "line": 23, + "column": 13 + }, + "end": { + "line": 23, + "column": 14 + } + }, + "name": "i" + }, + "value": { + "type": "Literal", + "start": 397, + "end": 398, + "loc": { + "start": { + "line": 23, + "column": 16 + }, + "end": { + "line": 23, + "column": 17 + } + }, + "value": 0, + "rawValue": 0, + "raw": "0" + }, + "kind": "init" + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * state\n * @type {{i: number}}\n ", + "start": 329, + "end": 380, + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 22, + "column": 7 + } + }, + "range": [ + 329, + 380 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * componentDidMount\n ", + "start": 406, + "end": 442, + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 27, + "column": 7 + } + }, + "range": [ + 406, + 442 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 447, + "end": 672, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 36, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 447, + "end": 464, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 21 + } + }, + "name": "componentDidMount", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 464, + "end": 672, + "loc": { + "start": { + "line": 28, + "column": 21 + }, + "end": { + "line": 36, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 467, + "end": 672, + "loc": { + "start": { + "line": 28, + "column": 24 + }, + "end": { + "line": 36, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 548, + "end": 666, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 35, + "column": 37 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 548, + "end": 666, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 35, + "column": 37 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 548, + "end": 555, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 15 + } + }, + "object": { + "type": "ThisExpression", + "start": 548, + "end": 552, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 12 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 553, + "end": 555, + "loc": { + "start": { + "line": 33, + "column": 13 + }, + "end": { + "line": 33, + "column": 15 + } + }, + "name": "$i" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "CallExpression", + "start": 558, + "end": 666, + "loc": { + "start": { + "line": 33, + "column": 18 + }, + "end": { + "line": 35, + "column": 37 + } + }, + "callee": { + "type": "Identifier", + "start": 558, + "end": 569, + "loc": { + "start": { + "line": 33, + "column": 18 + }, + "end": { + "line": 33, + "column": 29 + } + }, + "name": "setInterval" + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 570, + "end": 638, + "loc": { + "start": { + "line": 33, + "column": 30 + }, + "end": { + "line": 35, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 576, + "end": 638, + "loc": { + "start": { + "line": 33, + "column": 36 + }, + "end": { + "line": 35, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 590, + "end": 628, + "loc": { + "start": { + "line": 34, + "column": 12 + }, + "end": { + "line": 34, + "column": 50 + } + }, + "expression": { + "type": "CallExpression", + "start": 590, + "end": 628, + "loc": { + "start": { + "line": 34, + "column": 12 + }, + "end": { + "line": 34, + "column": 50 + } + }, + "callee": { + "type": "MemberExpression", + "start": 590, + "end": 603, + "loc": { + "start": { + "line": 34, + "column": 12 + }, + "end": { + "line": 34, + "column": 25 + } + }, + "object": { + "type": "ThisExpression", + "start": 590, + "end": 594, + "loc": { + "start": { + "line": 34, + "column": 12 + }, + "end": { + "line": 34, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 595, + "end": 603, + "loc": { + "start": { + "line": 34, + "column": 17 + }, + "end": { + "line": 34, + "column": 25 + } + }, + "name": "setState" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 604, + "end": 627, + "loc": { + "start": { + "line": 34, + "column": 26 + }, + "end": { + "line": 34, + "column": 49 + } + }, + "properties": [ + { + "type": "Property", + "start": 605, + "end": 626, + "loc": { + "start": { + "line": 34, + "column": 27 + }, + "end": { + "line": 34, + "column": 48 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 605, + "end": 606, + "loc": { + "start": { + "line": 34, + "column": 27 + }, + "end": { + "line": 34, + "column": 28 + } + }, + "name": "i" + }, + "value": { + "type": "BinaryExpression", + "start": 609, + "end": 625, + "loc": { + "start": { + "line": 34, + "column": 31 + }, + "end": { + "line": 34, + "column": 47 + } + }, + "left": { + "type": "MemberExpression", + "start": 609, + "end": 621, + "loc": { + "start": { + "line": 34, + "column": 31 + }, + "end": { + "line": 34, + "column": 43 + } + }, + "object": { + "type": "MemberExpression", + "start": 609, + "end": 619, + "loc": { + "start": { + "line": 34, + "column": 31 + }, + "end": { + "line": 34, + "column": 41 + } + }, + "object": { + "type": "ThisExpression", + "start": 609, + "end": 613, + "loc": { + "start": { + "line": 34, + "column": 31 + }, + "end": { + "line": 34, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "start": 614, + "end": 619, + "loc": { + "start": { + "line": 34, + "column": 36 + }, + "end": { + "line": 34, + "column": 41 + } + }, + "name": "state" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 620, + "end": 621, + "loc": { + "start": { + "line": 34, + "column": 42 + }, + "end": { + "line": 34, + "column": 43 + } + }, + "name": "i" + }, + "computed": false + }, + "operator": "+", + "right": { + "type": "Literal", + "start": 624, + "end": 625, + "loc": { + "start": { + "line": 34, + "column": 46 + }, + "end": { + "line": 34, + "column": 47 + } + }, + "value": 1, + "rawValue": 1, + "raw": "1" + }, + "parenthesizedExpression": true + }, + "kind": "init" + } + ] + } + ] + } + } + ] + } + }, + { + "type": "MemberExpression", + "start": 640, + "end": 665, + "loc": { + "start": { + "line": 35, + "column": 11 + }, + "end": { + "line": 35, + "column": 36 + } + }, + "object": { + "type": "MemberExpression", + "start": 640, + "end": 650, + "loc": { + "start": { + "line": 35, + "column": 11 + }, + "end": { + "line": 35, + "column": 21 + } + }, + "object": { + "type": "ThisExpression", + "start": 640, + "end": 644, + "loc": { + "start": { + "line": 35, + "column": 11 + }, + "end": { + "line": 35, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "start": 645, + "end": 650, + "loc": { + "start": { + "line": 35, + "column": 16 + }, + "end": { + "line": 35, + "column": 21 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 651, + "end": 665, + "loc": { + "start": { + "line": 35, + "column": 22 + }, + "end": { + "line": 35, + "column": 36 + } + }, + "name": "updateDuration" + }, + "computed": false + } + ] + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * this.$i\n * @type {number|*}\n ", + "start": 477, + "end": 539, + "loc": { + "start": { + "line": 29, + "column": 8 + }, + "end": { + "line": 32, + "column": 11 + } + }, + "range": [ + 477, + 539 + ] + } + ] + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * componentDidMount\n ", + "start": 406, + "end": 442, + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 27, + "column": 7 + } + }, + "range": [ + 406, + 442 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * componentWillUnmount\n ", + "start": 678, + "end": 717, + "loc": { + "start": { + "line": 38, + "column": 4 + }, + "end": { + "line": 40, + "column": 7 + } + }, + "range": [ + 678, + 717 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 722, + "end": 783, + "loc": { + "start": { + "line": 41, + "column": 4 + }, + "end": { + "line": 43, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 722, + "end": 742, + "loc": { + "start": { + "line": 41, + "column": 4 + }, + "end": { + "line": 41, + "column": 24 + } + }, + "name": "componentWillUnmount", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 742, + "end": 783, + "loc": { + "start": { + "line": 41, + "column": 24 + }, + "end": { + "line": 43, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 745, + "end": 783, + "loc": { + "start": { + "line": 41, + "column": 27 + }, + "end": { + "line": 43, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 755, + "end": 777, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 30 + } + }, + "expression": { + "type": "CallExpression", + "start": 755, + "end": 777, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 30 + } + }, + "callee": { + "type": "Identifier", + "start": 755, + "end": 768, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 21 + } + }, + "name": "clearInterval" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 769, + "end": 776, + "loc": { + "start": { + "line": 42, + "column": 22 + }, + "end": { + "line": 42, + "column": 29 + } + }, + "object": { + "type": "ThisExpression", + "start": 769, + "end": 773, + "loc": { + "start": { + "line": 42, + "column": 22 + }, + "end": { + "line": 42, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "start": 774, + "end": 776, + "loc": { + "start": { + "line": 42, + "column": 27 + }, + "end": { + "line": 42, + "column": 29 + } + }, + "name": "$i" + }, + "computed": false + } + ] + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * componentWillUnmount\n ", + "start": 678, + "end": 717, + "loc": { + "start": { + "line": 38, + "column": 4 + }, + "end": { + "line": 40, + "column": 7 + } + }, + "range": [ + 678, + 717 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 789, + "end": 837, + "loc": { + "start": { + "line": 45, + "column": 4 + }, + "end": { + "line": 48, + "column": 7 + } + }, + "range": [ + 789, + 837 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 842, + "end": 931, + "loc": { + "start": { + "line": 49, + "column": 4 + }, + "end": { + "line": 51, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 842, + "end": 848, + "loc": { + "start": { + "line": 49, + "column": 4 + }, + "end": { + "line": 49, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 848, + "end": 931, + "loc": { + "start": { + "line": 49, + "column": 10 + }, + "end": { + "line": 51, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 851, + "end": 931, + "loc": { + "start": { + "line": 49, + "column": 13 + }, + "end": { + "line": 51, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 861, + "end": 925, + "loc": { + "start": { + "line": 50, + "column": 8 + }, + "end": { + "line": 50, + "column": 72 + } + }, + "argument": { + "type": "JSXElement", + "start": 868, + "end": 925, + "loc": { + "start": { + "line": 50, + "column": 15 + }, + "end": { + "line": 50, + "column": 72 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 868, + "end": 874, + "loc": { + "start": { + "line": 50, + "column": 15 + }, + "end": { + "line": 50, + "column": 21 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 869, + "end": 873, + "loc": { + "start": { + "line": 50, + "column": 16 + }, + "end": { + "line": 50, + "column": 20 + } + }, + "name": "span" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 918, + "end": 925, + "loc": { + "start": { + "line": 50, + "column": 65 + }, + "end": { + "line": 50, + "column": 72 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 920, + "end": 924, + "loc": { + "start": { + "line": 50, + "column": 67 + }, + "end": { + "line": 50, + "column": 71 + } + }, + "name": "span" + } + }, + "children": [ + { + "type": "JSXExpressionContainer", + "start": 874, + "end": 918, + "loc": { + "start": { + "line": 50, + "column": 21 + }, + "end": { + "line": 50, + "column": 65 + } + }, + "expression": { + "type": "CallExpression", + "start": 875, + "end": 917, + "loc": { + "start": { + "line": 50, + "column": 22 + }, + "end": { + "line": 50, + "column": 64 + } + }, + "callee": { + "type": "MemberExpression", + "start": 875, + "end": 915, + "loc": { + "start": { + "line": 50, + "column": 22 + }, + "end": { + "line": 50, + "column": 62 + } + }, + "object": { + "type": "CallExpression", + "start": 875, + "end": 907, + "loc": { + "start": { + "line": 50, + "column": 22 + }, + "end": { + "line": 50, + "column": 54 + } + }, + "callee": { + "type": "MemberExpression", + "start": 875, + "end": 885, + "loc": { + "start": { + "line": 50, + "column": 22 + }, + "end": { + "line": 50, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 875, + "end": 881, + "loc": { + "start": { + "line": 50, + "column": 22 + }, + "end": { + "line": 50, + "column": 28 + } + }, + "name": "moment" + }, + "property": { + "type": "Identifier", + "start": 882, + "end": 885, + "loc": { + "start": { + "line": 50, + "column": 29 + }, + "end": { + "line": 50, + "column": 32 + } + }, + "name": "utc" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 886, + "end": 906, + "loc": { + "start": { + "line": 50, + "column": 33 + }, + "end": { + "line": 50, + "column": 53 + } + }, + "object": { + "type": "MemberExpression", + "start": 886, + "end": 896, + "loc": { + "start": { + "line": 50, + "column": 33 + }, + "end": { + "line": 50, + "column": 43 + } + }, + "object": { + "type": "ThisExpression", + "start": 886, + "end": 890, + "loc": { + "start": { + "line": 50, + "column": 33 + }, + "end": { + "line": 50, + "column": 37 + } + } + }, + "property": { + "type": "Identifier", + "start": 891, + "end": 896, + "loc": { + "start": { + "line": 50, + "column": 38 + }, + "end": { + "line": 50, + "column": 43 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 897, + "end": 906, + "loc": { + "start": { + "line": 50, + "column": 44 + }, + "end": { + "line": 50, + "column": 53 + } + }, + "name": "timestamp" + }, + "computed": false + } + ] + }, + "property": { + "type": "Identifier", + "start": 908, + "end": 915, + "loc": { + "start": { + "line": 50, + "column": 55 + }, + "end": { + "line": 50, + "column": 62 + } + }, + "name": "fromNow" + }, + "computed": false + }, + "arguments": [] + } + } + ] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 789, + "end": 837, + "loc": { + "start": { + "line": 45, + "column": 4 + }, + "end": { + "line": 48, + "column": 7 + } + }, + "range": [ + 789, + 837 + ] + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * TimeAgo index component\n ", + "start": 71, + "end": 105, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + }, + "range": [ + 71, + 105 + ] + } + ], + "__esdoc__pseudo_export": false, + "trailingComments": [] + }, + "leadingComments": null + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/components/index.js.json b/app/docs/ast/source/components/index.js.json new file mode 100644 index 0000000..72f4292 --- /dev/null +++ b/app/docs/ast/source/components/index.js.json @@ -0,0 +1,742 @@ +{ + "type": "Program", + "start": 0, + "end": 338, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 11, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ExportNamedDeclaration", + "start": 0, + "end": 30, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 30 + } + }, + "specifiers": [ + { + "type": "Identifier", + "start": 7, + "end": 13, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 13 + } + }, + "exported": { + "type": "Identifier", + "start": 7, + "end": 13, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 13 + } + }, + "name": "Header" + } + } + ], + "source": { + "type": "Literal", + "start": 19, + "end": 29, + "loc": { + "start": { + "line": 1, + "column": 19 + }, + "end": { + "line": 1, + "column": 29 + } + }, + "value": "./Header", + "rawValue": "./Header", + "raw": "'./Header'" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 31, + "end": 69, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 38 + } + }, + "specifiers": [ + { + "type": "Identifier", + "start": 38, + "end": 48, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 17 + } + }, + "exported": { + "type": "Identifier", + "start": 38, + "end": 48, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 17 + } + }, + "name": "LikeButton" + } + } + ], + "source": { + "type": "Literal", + "start": 54, + "end": 68, + "loc": { + "start": { + "line": 2, + "column": 23 + }, + "end": { + "line": 2, + "column": 37 + } + }, + "value": "./LikeButton", + "rawValue": "./LikeButton", + "raw": "'./LikeButton'" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 70, + "end": 106, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 36 + } + }, + "specifiers": [ + { + "type": "Identifier", + "start": 77, + "end": 86, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 16 + } + }, + "exported": { + "type": "Identifier", + "start": 77, + "end": 86, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 16 + } + }, + "name": "PhotoList" + } + } + ], + "source": { + "type": "Literal", + "start": 92, + "end": 105, + "loc": { + "start": { + "line": 3, + "column": 22 + }, + "end": { + "line": 3, + "column": 35 + } + }, + "value": "./PhotoList", + "rawValue": "./PhotoList", + "raw": "'./PhotoList'" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 107, + "end": 145, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 38 + } + }, + "specifiers": [ + { + "type": "Identifier", + "start": 114, + "end": 124, + "loc": { + "start": { + "line": 4, + "column": 7 + }, + "end": { + "line": 4, + "column": 17 + } + }, + "exported": { + "type": "Identifier", + "start": 114, + "end": 124, + "loc": { + "start": { + "line": 4, + "column": 7 + }, + "end": { + "line": 4, + "column": 17 + } + }, + "name": "BackButton" + } + } + ], + "source": { + "type": "Literal", + "start": 130, + "end": 144, + "loc": { + "start": { + "line": 4, + "column": 23 + }, + "end": { + "line": 4, + "column": 37 + } + }, + "value": "./BackButton", + "rawValue": "./BackButton", + "raw": "'./BackButton'" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 146, + "end": 184, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 38 + } + }, + "specifiers": [ + { + "type": "Identifier", + "start": 153, + "end": 166, + "loc": { + "start": { + "line": 5, + "column": 7 + }, + "end": { + "line": 5, + "column": 20 + } + }, + "exported": { + "type": "Identifier", + "start": 158, + "end": 166, + "loc": { + "start": { + "line": 5, + "column": 12 + }, + "end": { + "line": 5, + "column": 20 + } + }, + "name": "Activity" + } + } + ], + "source": { + "type": "Literal", + "start": 172, + "end": 184, + "loc": { + "start": { + "line": 5, + "column": 26 + }, + "end": { + "line": 5, + "column": 38 + } + }, + "value": "./Activity", + "rawValue": "./Activity", + "raw": "'./Activity'" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 185, + "end": 216, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 6, + "column": 31 + } + }, + "specifiers": [ + { + "type": "Identifier", + "start": 192, + "end": 199, + "loc": { + "start": { + "line": 6, + "column": 7 + }, + "end": { + "line": 6, + "column": 14 + } + }, + "exported": { + "type": "Identifier", + "start": 192, + "end": 199, + "loc": { + "start": { + "line": 6, + "column": 7 + }, + "end": { + "line": 6, + "column": 14 + } + }, + "name": "Comment" + } + } + ], + "source": { + "type": "Literal", + "start": 205, + "end": 216, + "loc": { + "start": { + "line": 6, + "column": 20 + }, + "end": { + "line": 6, + "column": 31 + } + }, + "value": "./Comment", + "rawValue": "./Comment", + "raw": "'./Comment'" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 217, + "end": 246, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 29 + } + }, + "specifiers": [ + { + "type": "Identifier", + "start": 224, + "end": 230, + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 13 + } + }, + "exported": { + "type": "Identifier", + "start": 224, + "end": 230, + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 13 + } + }, + "name": "Avatar" + } + } + ], + "source": { + "type": "Literal", + "start": 236, + "end": 246, + "loc": { + "start": { + "line": 7, + "column": 19 + }, + "end": { + "line": 7, + "column": 29 + } + }, + "value": "./Avatar", + "rawValue": "./Avatar", + "raw": "'./Avatar'" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 247, + "end": 278, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 31 + } + }, + "specifiers": [ + { + "type": "Identifier", + "start": 254, + "end": 261, + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 14 + } + }, + "exported": { + "type": "Identifier", + "start": 254, + "end": 261, + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 14 + } + }, + "name": "TimeAgo" + } + } + ], + "source": { + "type": "Literal", + "start": 267, + "end": 278, + "loc": { + "start": { + "line": 8, + "column": 20 + }, + "end": { + "line": 8, + "column": 31 + } + }, + "value": "./TimeAgo", + "rawValue": "./TimeAgo", + "raw": "'./TimeAgo'" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 279, + "end": 313, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 34 + } + }, + "declaration": null, + "specifiers": [ + { + "type": "ExportSpecifier", + "start": 288, + "end": 292, + "loc": { + "start": { + "line": 9, + "column": 9 + }, + "end": { + "line": 9, + "column": 13 + } + }, + "local": { + "type": "Identifier", + "start": 288, + "end": 292, + "loc": { + "start": { + "line": 9, + "column": 9 + }, + "end": { + "line": 9, + "column": 13 + } + }, + "name": "Tabs" + }, + "exported": { + "type": "Identifier", + "start": 288, + "end": 292, + "loc": { + "start": { + "line": 9, + "column": 9 + }, + "end": { + "line": 9, + "column": 13 + } + }, + "name": "Tabs" + } + }, + { + "type": "ExportSpecifier", + "start": 294, + "end": 297, + "loc": { + "start": { + "line": 9, + "column": 15 + }, + "end": { + "line": 9, + "column": 18 + } + }, + "local": { + "type": "Identifier", + "start": 294, + "end": 297, + "loc": { + "start": { + "line": 9, + "column": 15 + }, + "end": { + "line": 9, + "column": 18 + } + }, + "name": "Tab" + }, + "exported": { + "type": "Identifier", + "start": 294, + "end": 297, + "loc": { + "start": { + "line": 9, + "column": 15 + }, + "end": { + "line": 9, + "column": 18 + } + }, + "name": "Tab" + } + } + ], + "source": { + "type": "Literal", + "start": 305, + "end": 313, + "loc": { + "start": { + "line": 9, + "column": 26 + }, + "end": { + "line": 9, + "column": 34 + } + }, + "value": "./Tabs", + "rawValue": "./Tabs", + "raw": "'./Tabs'" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 314, + "end": 337, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 10, + "column": 23 + } + }, + "specifiers": [ + { + "type": "Identifier", + "start": 321, + "end": 324, + "loc": { + "start": { + "line": 10, + "column": 7 + }, + "end": { + "line": 10, + "column": 10 + } + }, + "exported": { + "type": "Identifier", + "start": 321, + "end": 324, + "loc": { + "start": { + "line": 10, + "column": 7 + }, + "end": { + "line": 10, + "column": 10 + } + }, + "name": "Nav" + } + } + ], + "source": { + "type": "Literal", + "start": 330, + "end": 337, + "loc": { + "start": { + "line": 10, + "column": 16 + }, + "end": { + "line": 10, + "column": 23 + } + }, + "value": "./Nav", + "rawValue": "./Nav", + "raw": "'./Nav'" + } + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/main.js.json b/app/docs/ast/source/main.js.json new file mode 100644 index 0000000..493f7fc --- /dev/null +++ b/app/docs/ast/source/main.js.json @@ -0,0 +1,4093 @@ +{ + "type": "Program", + "start": 0, + "end": 2261, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 100, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 18, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 18 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ImportDeclaration", + "start": 26, + "end": 60, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 34 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 35, + "end": 41, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 15 + } + }, + "imported": { + "type": "Identifier", + "start": 35, + "end": 41, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 15 + } + }, + "name": "render" + }, + "local": { + "type": "Identifier", + "start": 35, + "end": 41, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 15 + } + }, + "name": "render" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 49, + "end": 60, + "loc": { + "start": { + "line": 2, + "column": 23 + }, + "end": { + "line": 2, + "column": 34 + } + }, + "value": "react-dom", + "rawValue": "react-dom", + "raw": "'react-dom'" + } + }, + { + "type": "ImportDeclaration", + "start": 61, + "end": 99, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 38 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 70, + "end": 78, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 17 + } + }, + "imported": { + "type": "Identifier", + "start": 70, + "end": 78, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 17 + } + }, + "name": "Provider" + }, + "local": { + "type": "Identifier", + "start": 70, + "end": 78, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 17 + } + }, + "name": "Provider" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 86, + "end": 99, + "loc": { + "start": { + "line": 3, + "column": 25 + }, + "end": { + "line": 3, + "column": 38 + } + }, + "value": "react-redux", + "rawValue": "react-redux", + "raw": "'react-redux'" + } + }, + { + "type": "ImportDeclaration", + "start": 100, + "end": 160, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 60 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 109, + "end": 115, + "loc": { + "start": { + "line": 4, + "column": 9 + }, + "end": { + "line": 4, + "column": 15 + } + }, + "imported": { + "type": "Identifier", + "start": 109, + "end": 115, + "loc": { + "start": { + "line": 4, + "column": 9 + }, + "end": { + "line": 4, + "column": 15 + } + }, + "name": "Router" + }, + "local": { + "type": "Identifier", + "start": 109, + "end": 115, + "loc": { + "start": { + "line": 4, + "column": 9 + }, + "end": { + "line": 4, + "column": 15 + } + }, + "name": "Router" + } + }, + { + "type": "ImportSpecifier", + "start": 117, + "end": 122, + "loc": { + "start": { + "line": 4, + "column": 17 + }, + "end": { + "line": 4, + "column": 22 + } + }, + "imported": { + "type": "Identifier", + "start": 117, + "end": 122, + "loc": { + "start": { + "line": 4, + "column": 17 + }, + "end": { + "line": 4, + "column": 22 + } + }, + "name": "Route" + }, + "local": { + "type": "Identifier", + "start": 117, + "end": 122, + "loc": { + "start": { + "line": 4, + "column": 17 + }, + "end": { + "line": 4, + "column": 22 + } + }, + "name": "Route" + } + }, + { + "type": "ImportSpecifier", + "start": 124, + "end": 138, + "loc": { + "start": { + "line": 4, + "column": 24 + }, + "end": { + "line": 4, + "column": 38 + } + }, + "imported": { + "type": "Identifier", + "start": 124, + "end": 138, + "loc": { + "start": { + "line": 4, + "column": 24 + }, + "end": { + "line": 4, + "column": 38 + } + }, + "name": "browserHistory" + }, + "local": { + "type": "Identifier", + "start": 124, + "end": 138, + "loc": { + "start": { + "line": 4, + "column": 24 + }, + "end": { + "line": 4, + "column": 38 + } + }, + "name": "browserHistory" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 146, + "end": 160, + "loc": { + "start": { + "line": 4, + "column": 46 + }, + "end": { + "line": 4, + "column": 60 + } + }, + "value": "react-router", + "rawValue": "react-router", + "raw": "'react-router'" + } + }, + { + "type": "ImportDeclaration", + "start": 161, + "end": 233, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 72 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 170, + "end": 190, + "loc": { + "start": { + "line": 5, + "column": 9 + }, + "end": { + "line": 5, + "column": 29 + } + }, + "imported": { + "type": "Identifier", + "start": 170, + "end": 190, + "loc": { + "start": { + "line": 5, + "column": 9 + }, + "end": { + "line": 5, + "column": 29 + } + }, + "name": "syncHistoryWithStore" + }, + "local": { + "type": "Identifier", + "start": 170, + "end": 190, + "loc": { + "start": { + "line": 5, + "column": 9 + }, + "end": { + "line": 5, + "column": 29 + } + }, + "name": "syncHistoryWithStore" + } + }, + { + "type": "ImportSpecifier", + "start": 192, + "end": 205, + "loc": { + "start": { + "line": 5, + "column": 31 + }, + "end": { + "line": 5, + "column": 44 + } + }, + "imported": { + "type": "Identifier", + "start": 192, + "end": 205, + "loc": { + "start": { + "line": 5, + "column": 31 + }, + "end": { + "line": 5, + "column": 44 + } + }, + "name": "routerReducer" + }, + "local": { + "type": "Identifier", + "start": 192, + "end": 205, + "loc": { + "start": { + "line": 5, + "column": 31 + }, + "end": { + "line": 5, + "column": 44 + } + }, + "name": "routerReducer" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 213, + "end": 233, + "loc": { + "start": { + "line": 5, + "column": 52 + }, + "end": { + "line": 5, + "column": 72 + } + }, + "value": "react-router-redux", + "rawValue": "react-router-redux", + "raw": "'react-router-redux'" + } + }, + { + "type": "ImportDeclaration", + "start": 234, + "end": 303, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 6, + "column": 69 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 243, + "end": 254, + "loc": { + "start": { + "line": 6, + "column": 9 + }, + "end": { + "line": 6, + "column": 20 + } + }, + "imported": { + "type": "Identifier", + "start": 243, + "end": 254, + "loc": { + "start": { + "line": 6, + "column": 9 + }, + "end": { + "line": 6, + "column": 20 + } + }, + "name": "createStore" + }, + "local": { + "type": "Identifier", + "start": 243, + "end": 254, + "loc": { + "start": { + "line": 6, + "column": 9 + }, + "end": { + "line": 6, + "column": 20 + } + }, + "name": "createStore" + } + }, + { + "type": "ImportSpecifier", + "start": 256, + "end": 271, + "loc": { + "start": { + "line": 6, + "column": 22 + }, + "end": { + "line": 6, + "column": 37 + } + }, + "imported": { + "type": "Identifier", + "start": 256, + "end": 271, + "loc": { + "start": { + "line": 6, + "column": 22 + }, + "end": { + "line": 6, + "column": 37 + } + }, + "name": "combineReducers" + }, + "local": { + "type": "Identifier", + "start": 256, + "end": 271, + "loc": { + "start": { + "line": 6, + "column": 22 + }, + "end": { + "line": 6, + "column": 37 + } + }, + "name": "combineReducers" + } + }, + { + "type": "ImportSpecifier", + "start": 273, + "end": 288, + "loc": { + "start": { + "line": 6, + "column": 39 + }, + "end": { + "line": 6, + "column": 54 + } + }, + "imported": { + "type": "Identifier", + "start": 273, + "end": 288, + "loc": { + "start": { + "line": 6, + "column": 39 + }, + "end": { + "line": 6, + "column": 54 + } + }, + "name": "applyMiddleware" + }, + "local": { + "type": "Identifier", + "start": 273, + "end": 288, + "loc": { + "start": { + "line": 6, + "column": 39 + }, + "end": { + "line": 6, + "column": 54 + } + }, + "name": "applyMiddleware" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 296, + "end": 303, + "loc": { + "start": { + "line": 6, + "column": 62 + }, + "end": { + "line": 6, + "column": 69 + } + }, + "value": "redux", + "rawValue": "redux", + "raw": "'redux'" + } + }, + { + "type": "ImportDeclaration", + "start": 304, + "end": 335, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 31 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 311, + "end": 316, + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 311, + "end": 316, + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 12 + } + }, + "name": "thunk" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 322, + "end": 335, + "loc": { + "start": { + "line": 7, + "column": 18 + }, + "end": { + "line": 7, + "column": 31 + } + }, + "value": "redux-thunk", + "rawValue": "redux-thunk", + "raw": "'redux-thunk'" + } + }, + { + "type": "ImportDeclaration", + "start": 336, + "end": 363, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 27 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 343, + "end": 349, + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 13 + } + }, + "local": { + "type": "Identifier", + "start": 343, + "end": 349, + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 13 + } + }, + "name": "config" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 355, + "end": 363, + "loc": { + "start": { + "line": 8, + "column": 19 + }, + "end": { + "line": 8, + "column": 27 + } + }, + "value": "config", + "rawValue": "config", + "raw": "'config'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * window.keenClient\n * Instantiate new Keen client\n * @type {Keen}\n ", + "start": 365, + "end": 440, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + }, + "range": [ + 365, + 440 + ] + } + ] + }, + { + "type": "ExpressionStatement", + "start": 441, + "end": 582, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 19, + "column": 3 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 441, + "end": 581, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 19, + "column": 2 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 441, + "end": 458, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 15, + "column": 17 + } + }, + "object": { + "type": "Identifier", + "start": 441, + "end": 447, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 15, + "column": 6 + } + }, + "name": "window", + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 448, + "end": 458, + "loc": { + "start": { + "line": 15, + "column": 7 + }, + "end": { + "line": 15, + "column": 17 + } + }, + "name": "keenClient" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "NewExpression", + "start": 461, + "end": 581, + "loc": { + "start": { + "line": 15, + "column": 20 + }, + "end": { + "line": 19, + "column": 2 + } + }, + "callee": { + "type": "Identifier", + "start": 465, + "end": 469, + "loc": { + "start": { + "line": 15, + "column": 24 + }, + "end": { + "line": 15, + "column": 28 + } + }, + "name": "Keen" + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 470, + "end": 580, + "loc": { + "start": { + "line": 15, + "column": 29 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "properties": [ + { + "type": "Property", + "start": 476, + "end": 508, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 16, + "column": 36 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 476, + "end": 485, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 16, + "column": 13 + } + }, + "name": "projectId" + }, + "value": { + "type": "MemberExpression", + "start": 487, + "end": 508, + "loc": { + "start": { + "line": 16, + "column": 15 + }, + "end": { + "line": 16, + "column": 36 + } + }, + "object": { + "type": "MemberExpression", + "start": 487, + "end": 498, + "loc": { + "start": { + "line": 16, + "column": 15 + }, + "end": { + "line": 16, + "column": 26 + } + }, + "object": { + "type": "Identifier", + "start": 487, + "end": 493, + "loc": { + "start": { + "line": 16, + "column": 15 + }, + "end": { + "line": 16, + "column": 21 + } + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 494, + "end": 498, + "loc": { + "start": { + "line": 16, + "column": 22 + }, + "end": { + "line": 16, + "column": 26 + } + }, + "name": "keen" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 499, + "end": 508, + "loc": { + "start": { + "line": 16, + "column": 27 + }, + "end": { + "line": 16, + "column": 36 + } + }, + "name": "projectId" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 514, + "end": 544, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 34 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 514, + "end": 522, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 12 + } + }, + "name": "writeKey" + }, + "value": { + "type": "MemberExpression", + "start": 524, + "end": 544, + "loc": { + "start": { + "line": 17, + "column": 14 + }, + "end": { + "line": 17, + "column": 34 + } + }, + "object": { + "type": "MemberExpression", + "start": 524, + "end": 535, + "loc": { + "start": { + "line": 17, + "column": 14 + }, + "end": { + "line": 17, + "column": 25 + } + }, + "object": { + "type": "Identifier", + "start": 524, + "end": 530, + "loc": { + "start": { + "line": 17, + "column": 14 + }, + "end": { + "line": 17, + "column": 20 + } + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 531, + "end": 535, + "loc": { + "start": { + "line": 17, + "column": 21 + }, + "end": { + "line": 17, + "column": 25 + } + }, + "name": "keen" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 536, + "end": 544, + "loc": { + "start": { + "line": 17, + "column": 26 + }, + "end": { + "line": 17, + "column": 34 + } + }, + "name": "writeKey" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 550, + "end": 578, + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 32 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 550, + "end": 557, + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 11 + } + }, + "name": "readKey" + }, + "value": { + "type": "MemberExpression", + "start": 559, + "end": 578, + "loc": { + "start": { + "line": 18, + "column": 13 + }, + "end": { + "line": 18, + "column": 32 + } + }, + "object": { + "type": "MemberExpression", + "start": 559, + "end": 570, + "loc": { + "start": { + "line": 18, + "column": 13 + }, + "end": { + "line": 18, + "column": 24 + } + }, + "object": { + "type": "Identifier", + "start": 559, + "end": 565, + "loc": { + "start": { + "line": 18, + "column": 13 + }, + "end": { + "line": 18, + "column": 19 + } + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 566, + "end": 570, + "loc": { + "start": { + "line": 18, + "column": 20 + }, + "end": { + "line": 18, + "column": 24 + } + }, + "name": "keen" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 571, + "end": 578, + "loc": { + "start": { + "line": 18, + "column": 25 + }, + "end": { + "line": 18, + "column": 32 + } + }, + "name": "readKey" + }, + "computed": false + }, + "kind": "init" + } + ] + } + ] + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * window.keenClient\n * Instantiate new Keen client\n * @type {Keen}\n ", + "start": 365, + "end": 440, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + }, + "range": [ + 365, + 440 + ] + } + ] + }, + { + "type": "ExpressionStatement", + "start": 584, + "end": 606, + "loc": { + "start": { + "line": 21, + "column": 0 + }, + "end": { + "line": 21, + "column": 22 + } + }, + "expression": { + "type": "CallExpression", + "start": 584, + "end": 606, + "loc": { + "start": { + "line": 21, + "column": 0 + }, + "end": { + "line": 21, + "column": 22 + } + }, + "callee": { + "type": "Identifier", + "start": 584, + "end": 591, + "loc": { + "start": { + "line": 21, + "column": 0 + }, + "end": { + "line": 21, + "column": 7 + } + }, + "name": "require" + }, + "arguments": [ + { + "type": "Literal", + "start": 592, + "end": 605, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 21 + } + }, + "value": "./style.css", + "rawValue": "./style.css", + "raw": "'./style.css'" + } + ], + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * rootRoute\n * @type {{path: string, getComponent: (function(*, *)), getChildRoutes: (function(*, *))}}\n ", + "start": 608, + "end": 720, + "loc": { + "start": { + "line": 23, + "column": 0 + }, + "end": { + "line": 26, + "column": 3 + } + }, + "range": [ + 608, + 720 + ] + } + ] + }, + { + "type": "VariableDeclaration", + "start": 721, + "end": 1665, + "loc": { + "start": { + "line": 27, + "column": 0 + }, + "end": { + "line": 62, + "column": 1 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 727, + "end": 1665, + "loc": { + "start": { + "line": 27, + "column": 6 + }, + "end": { + "line": 62, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 727, + "end": 736, + "loc": { + "start": { + "line": 27, + "column": 6 + }, + "end": { + "line": 27, + "column": 15 + } + }, + "name": "rootRoute", + "leadingComments": null + }, + "init": { + "type": "ObjectExpression", + "start": 739, + "end": 1665, + "loc": { + "start": { + "line": 27, + "column": 18 + }, + "end": { + "line": 62, + "column": 1 + } + }, + "properties": [ + { + "type": "Property", + "start": 745, + "end": 754, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 13 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 745, + "end": 749, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 8 + } + }, + "name": "path" + }, + "value": { + "type": "Literal", + "start": 751, + "end": 754, + "loc": { + "start": { + "line": 28, + "column": 10 + }, + "end": { + "line": 28, + "column": 13 + } + }, + "value": "/", + "rawValue": "/", + "raw": "'/'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 857, + "end": 934, + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 37, + "column": 5 + } + }, + "method": true, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 857, + "end": 869, + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 35, + "column": 16 + } + }, + "name": "getComponent", + "leadingComments": null + }, + "kind": "init", + "value": { + "type": "FunctionExpression", + "start": 869, + "end": 934, + "loc": { + "start": { + "line": 35, + "column": 16 + }, + "end": { + "line": 37, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 870, + "end": 878, + "loc": { + "start": { + "line": 35, + "column": 17 + }, + "end": { + "line": 35, + "column": 25 + } + }, + "name": "location" + }, + { + "type": "Identifier", + "start": 880, + "end": 882, + "loc": { + "start": { + "line": 35, + "column": 27 + }, + "end": { + "line": 35, + "column": 29 + } + }, + "name": "cb" + } + ], + "body": { + "type": "BlockStatement", + "start": 884, + "end": 934, + "loc": { + "start": { + "line": 35, + "column": 31 + }, + "end": { + "line": 37, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 894, + "end": 928, + "loc": { + "start": { + "line": 36, + "column": 8 + }, + "end": { + "line": 36, + "column": 42 + } + }, + "expression": { + "type": "CallExpression", + "start": 894, + "end": 928, + "loc": { + "start": { + "line": 36, + "column": 8 + }, + "end": { + "line": 36, + "column": 42 + } + }, + "callee": { + "type": "Identifier", + "start": 894, + "end": 896, + "loc": { + "start": { + "line": 36, + "column": 8 + }, + "end": { + "line": 36, + "column": 10 + } + }, + "name": "cb" + }, + "arguments": [ + { + "type": "Literal", + "start": 897, + "end": 901, + "loc": { + "start": { + "line": 36, + "column": 11 + }, + "end": { + "line": 36, + "column": 15 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + { + "type": "MemberExpression", + "start": 903, + "end": 927, + "loc": { + "start": { + "line": 36, + "column": 17 + }, + "end": { + "line": 36, + "column": 41 + } + }, + "object": { + "type": "CallExpression", + "start": 903, + "end": 919, + "loc": { + "start": { + "line": 36, + "column": 17 + }, + "end": { + "line": 36, + "column": 33 + } + }, + "callee": { + "type": "Identifier", + "start": 903, + "end": 910, + "loc": { + "start": { + "line": 36, + "column": 17 + }, + "end": { + "line": 36, + "column": 24 + } + }, + "name": "require" + }, + "arguments": [ + { + "type": "Literal", + "start": 911, + "end": 918, + "loc": { + "start": { + "line": 36, + "column": 25 + }, + "end": { + "line": 36, + "column": 32 + } + }, + "value": "./App", + "rawValue": "./App", + "raw": "'./App'" + } + ] + }, + "property": { + "type": "Identifier", + "start": 920, + "end": 927, + "loc": { + "start": { + "line": 36, + "column": 34 + }, + "end": { + "line": 36, + "column": 41 + } + }, + "name": "default" + }, + "computed": false + } + ] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * getComponent\n * @param location\n * @param cb {Function} callback\n ", + "start": 761, + "end": 852, + "loc": { + "start": { + "line": 30, + "column": 4 + }, + "end": { + "line": 34, + "column": 7 + } + }, + "range": [ + 761, + 852 + ] + } + ] + }, + { + "type": "Property", + "start": 1039, + "end": 1661, + "loc": { + "start": { + "line": 44, + "column": 4 + }, + "end": { + "line": 60, + "column": 5 + } + }, + "method": true, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1039, + "end": 1053, + "loc": { + "start": { + "line": 44, + "column": 4 + }, + "end": { + "line": 44, + "column": 18 + } + }, + "name": "getChildRoutes", + "leadingComments": null + }, + "kind": "init", + "value": { + "type": "FunctionExpression", + "start": 1053, + "end": 1661, + "loc": { + "start": { + "line": 44, + "column": 18 + }, + "end": { + "line": 60, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1054, + "end": 1062, + "loc": { + "start": { + "line": 44, + "column": 19 + }, + "end": { + "line": 44, + "column": 27 + } + }, + "name": "location" + }, + { + "type": "Identifier", + "start": 1064, + "end": 1066, + "loc": { + "start": { + "line": 44, + "column": 29 + }, + "end": { + "line": 44, + "column": 31 + } + }, + "name": "cb" + } + ], + "body": { + "type": "BlockStatement", + "start": 1068, + "end": 1661, + "loc": { + "start": { + "line": 44, + "column": 33 + }, + "end": { + "line": 60, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1078, + "end": 1655, + "loc": { + "start": { + "line": 45, + "column": 8 + }, + "end": { + "line": 59, + "column": 10 + } + }, + "expression": { + "type": "CallExpression", + "start": 1078, + "end": 1655, + "loc": { + "start": { + "line": 45, + "column": 8 + }, + "end": { + "line": 59, + "column": 10 + } + }, + "callee": { + "type": "Identifier", + "start": 1078, + "end": 1080, + "loc": { + "start": { + "line": 45, + "column": 8 + }, + "end": { + "line": 45, + "column": 10 + } + }, + "name": "cb" + }, + "arguments": [ + { + "type": "Literal", + "start": 1081, + "end": 1085, + "loc": { + "start": { + "line": 45, + "column": 11 + }, + "end": { + "line": 45, + "column": 15 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + { + "type": "ArrayExpression", + "start": 1087, + "end": 1654, + "loc": { + "start": { + "line": 45, + "column": 17 + }, + "end": { + "line": 59, + "column": 9 + } + }, + "elements": [ + { + "type": "CallExpression", + "start": 1101, + "end": 1128, + "loc": { + "start": { + "line": 46, + "column": 12 + }, + "end": { + "line": 46, + "column": 39 + } + }, + "callee": { + "type": "Identifier", + "start": 1101, + "end": 1108, + "loc": { + "start": { + "line": 46, + "column": 12 + }, + "end": { + "line": 46, + "column": 19 + } + }, + "name": "require" + }, + "arguments": [ + { + "type": "Literal", + "start": 1109, + "end": 1127, + "loc": { + "start": { + "line": 46, + "column": 20 + }, + "end": { + "line": 46, + "column": 38 + } + }, + "value": "./routes/Landing", + "rawValue": "./routes/Landing", + "raw": "'./routes/Landing'" + } + ] + }, + { + "type": "CallExpression", + "start": 1142, + "end": 1166, + "loc": { + "start": { + "line": 47, + "column": 12 + }, + "end": { + "line": 47, + "column": 36 + } + }, + "callee": { + "type": "Identifier", + "start": 1142, + "end": 1149, + "loc": { + "start": { + "line": 47, + "column": 12 + }, + "end": { + "line": 47, + "column": 19 + } + }, + "name": "require" + }, + "arguments": [ + { + "type": "Literal", + "start": 1150, + "end": 1165, + "loc": { + "start": { + "line": 47, + "column": 20 + }, + "end": { + "line": 47, + "column": 35 + } + }, + "value": "./routes/Home", + "rawValue": "./routes/Home", + "raw": "'./routes/Home'" + } + ] + }, + { + "type": "CallExpression", + "start": 1180, + "end": 1206, + "loc": { + "start": { + "line": 48, + "column": 12 + }, + "end": { + "line": 48, + "column": 38 + } + }, + "callee": { + "type": "Identifier", + "start": 1180, + "end": 1187, + "loc": { + "start": { + "line": 48, + "column": 12 + }, + "end": { + "line": 48, + "column": 19 + } + }, + "name": "require" + }, + "arguments": [ + { + "type": "Literal", + "start": 1188, + "end": 1205, + "loc": { + "start": { + "line": 48, + "column": 20 + }, + "end": { + "line": 48, + "column": 37 + } + }, + "value": "./routes/Upload", + "rawValue": "./routes/Upload", + "raw": "'./routes/Upload'" + } + ] + }, + { + "type": "CallExpression", + "start": 1220, + "end": 1246, + "loc": { + "start": { + "line": 49, + "column": 12 + }, + "end": { + "line": 49, + "column": 38 + } + }, + "callee": { + "type": "Identifier", + "start": 1220, + "end": 1227, + "loc": { + "start": { + "line": 49, + "column": 12 + }, + "end": { + "line": 49, + "column": 19 + } + }, + "name": "require" + }, + "arguments": [ + { + "type": "Literal", + "start": 1228, + "end": 1245, + "loc": { + "start": { + "line": 49, + "column": 20 + }, + "end": { + "line": 49, + "column": 37 + } + }, + "value": "./routes/Search", + "rawValue": "./routes/Search", + "raw": "'./routes/Search'" + } + ] + }, + { + "type": "CallExpression", + "start": 1260, + "end": 1293, + "loc": { + "start": { + "line": 50, + "column": 12 + }, + "end": { + "line": 50, + "column": 45 + } + }, + "callee": { + "type": "Identifier", + "start": 1260, + "end": 1267, + "loc": { + "start": { + "line": 50, + "column": 12 + }, + "end": { + "line": 50, + "column": 19 + } + }, + "name": "require" + }, + "arguments": [ + { + "type": "Literal", + "start": 1268, + "end": 1292, + "loc": { + "start": { + "line": 50, + "column": 20 + }, + "end": { + "line": 50, + "column": 44 + } + }, + "value": "./routes/SearchResults", + "rawValue": "./routes/SearchResults", + "raw": "'./routes/SearchResults'" + } + ] + }, + { + "type": "CallExpression", + "start": 1307, + "end": 1340, + "loc": { + "start": { + "line": 51, + "column": 12 + }, + "end": { + "line": 51, + "column": 45 + } + }, + "callee": { + "type": "Identifier", + "start": 1307, + "end": 1314, + "loc": { + "start": { + "line": 51, + "column": 12 + }, + "end": { + "line": 51, + "column": 19 + } + }, + "name": "require" + }, + "arguments": [ + { + "type": "Literal", + "start": 1315, + "end": 1339, + "loc": { + "start": { + "line": 51, + "column": 20 + }, + "end": { + "line": 51, + "column": 44 + } + }, + "value": "./routes/Notifications", + "rawValue": "./routes/Notifications", + "raw": "'./routes/Notifications'" + } + ] + }, + { + "type": "CallExpression", + "start": 1354, + "end": 1381, + "loc": { + "start": { + "line": 52, + "column": 12 + }, + "end": { + "line": 52, + "column": 39 + } + }, + "callee": { + "type": "Identifier", + "start": 1354, + "end": 1361, + "loc": { + "start": { + "line": 52, + "column": 12 + }, + "end": { + "line": 52, + "column": 19 + } + }, + "name": "require" + }, + "arguments": [ + { + "type": "Literal", + "start": 1362, + "end": 1380, + "loc": { + "start": { + "line": 52, + "column": 20 + }, + "end": { + "line": 52, + "column": 38 + } + }, + "value": "./routes/Explore", + "rawValue": "./routes/Explore", + "raw": "'./routes/Explore'" + } + ] + }, + { + "type": "CallExpression", + "start": 1395, + "end": 1423, + "loc": { + "start": { + "line": 53, + "column": 12 + }, + "end": { + "line": 53, + "column": 40 + } + }, + "callee": { + "type": "Identifier", + "start": 1395, + "end": 1402, + "loc": { + "start": { + "line": 53, + "column": 12 + }, + "end": { + "line": 53, + "column": 19 + } + }, + "name": "require" + }, + "arguments": [ + { + "type": "Literal", + "start": 1403, + "end": 1422, + "loc": { + "start": { + "line": 53, + "column": 20 + }, + "end": { + "line": 53, + "column": 39 + } + }, + "value": "./routes/Trending", + "rawValue": "./routes/Trending", + "raw": "'./routes/Trending'" + } + ] + }, + { + "type": "CallExpression", + "start": 1437, + "end": 1464, + "loc": { + "start": { + "line": 54, + "column": 12 + }, + "end": { + "line": 54, + "column": 39 + } + }, + "callee": { + "type": "Identifier", + "start": 1437, + "end": 1444, + "loc": { + "start": { + "line": 54, + "column": 12 + }, + "end": { + "line": 54, + "column": 19 + } + }, + "name": "require" + }, + "arguments": [ + { + "type": "Literal", + "start": 1445, + "end": 1463, + "loc": { + "start": { + "line": 54, + "column": 20 + }, + "end": { + "line": 54, + "column": 38 + } + }, + "value": "./routes/Profile", + "rawValue": "./routes/Profile", + "raw": "'./routes/Profile'" + } + ] + }, + { + "type": "CallExpression", + "start": 1478, + "end": 1515, + "loc": { + "start": { + "line": 55, + "column": 12 + }, + "end": { + "line": 55, + "column": 49 + } + }, + "callee": { + "type": "Identifier", + "start": 1478, + "end": 1485, + "loc": { + "start": { + "line": 55, + "column": 12 + }, + "end": { + "line": 55, + "column": 19 + } + }, + "name": "require" + }, + "arguments": [ + { + "type": "Literal", + "start": 1486, + "end": 1514, + "loc": { + "start": { + "line": 55, + "column": 20 + }, + "end": { + "line": 55, + "column": 48 + } + }, + "value": "./routes/FollowingActivity", + "rawValue": "./routes/FollowingActivity", + "raw": "'./routes/FollowingActivity'" + } + ] + }, + { + "type": "CallExpression", + "start": 1529, + "end": 1554, + "loc": { + "start": { + "line": 56, + "column": 12 + }, + "end": { + "line": 56, + "column": 37 + } + }, + "callee": { + "type": "Identifier", + "start": 1529, + "end": 1536, + "loc": { + "start": { + "line": 56, + "column": 12 + }, + "end": { + "line": 56, + "column": 19 + } + }, + "name": "require" + }, + "arguments": [ + { + "type": "Literal", + "start": 1537, + "end": 1553, + "loc": { + "start": { + "line": 56, + "column": 20 + }, + "end": { + "line": 56, + "column": 36 + } + }, + "value": "./routes/Stats", + "rawValue": "./routes/Stats", + "raw": "'./routes/Stats'" + } + ] + }, + { + "type": "CallExpression", + "start": 1568, + "end": 1601, + "loc": { + "start": { + "line": 57, + "column": 12 + }, + "end": { + "line": 57, + "column": 45 + } + }, + "callee": { + "type": "Identifier", + "start": 1568, + "end": 1575, + "loc": { + "start": { + "line": 57, + "column": 12 + }, + "end": { + "line": 57, + "column": 19 + } + }, + "name": "require" + }, + "arguments": [ + { + "type": "Literal", + "start": 1576, + "end": 1600, + "loc": { + "start": { + "line": 57, + "column": 20 + }, + "end": { + "line": 57, + "column": 44 + } + }, + "value": "./routes/Contributions", + "rawValue": "./routes/Contributions", + "raw": "'./routes/Contributions'" + } + ] + }, + { + "type": "CallExpression", + "start": 1615, + "end": 1643, + "loc": { + "start": { + "line": 58, + "column": 12 + }, + "end": { + "line": 58, + "column": 40 + } + }, + "callee": { + "type": "Identifier", + "start": 1615, + "end": 1622, + "loc": { + "start": { + "line": 58, + "column": 12 + }, + "end": { + "line": 58, + "column": 19 + } + }, + "name": "require" + }, + "arguments": [ + { + "type": "Literal", + "start": 1623, + "end": 1642, + "loc": { + "start": { + "line": 58, + "column": 20 + }, + "end": { + "line": 58, + "column": 39 + } + }, + "value": "./routes/Location", + "rawValue": "./routes/Location", + "raw": "'./routes/Location'" + } + ] + } + ] + } + ] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * getChildRoutes\n * @param location\n * @param cb {Function} callback\n ", + "start": 941, + "end": 1034, + "loc": { + "start": { + "line": 39, + "column": 4 + }, + "end": { + "line": 43, + "column": 7 + } + }, + "range": [ + 941, + 1034 + ] + } + ] + } + ], + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * rootRoute\n * @type {{path: string, getComponent: (function(*, *)), getChildRoutes: (function(*, *))}}\n ", + "start": 608, + "end": 720, + "loc": { + "start": { + "line": 23, + "column": 0 + }, + "end": { + "line": 26, + "column": 3 + } + }, + "range": [ + 608, + 720 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * appElm\n * @type {Nullable.|Element}\n ", + "start": 1667, + "end": 1722, + "loc": { + "start": { + "line": 64, + "column": 0 + }, + "end": { + "line": 67, + "column": 3 + } + }, + "range": [ + 1667, + 1722 + ] + } + ] + }, + { + "type": "VariableDeclaration", + "start": 1723, + "end": 1768, + "loc": { + "start": { + "line": 68, + "column": 0 + }, + "end": { + "line": 68, + "column": 45 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1729, + "end": 1768, + "loc": { + "start": { + "line": 68, + "column": 6 + }, + "end": { + "line": 68, + "column": 45 + } + }, + "id": { + "type": "Identifier", + "start": 1729, + "end": 1735, + "loc": { + "start": { + "line": 68, + "column": 6 + }, + "end": { + "line": 68, + "column": 12 + } + }, + "name": "appElm", + "leadingComments": null + }, + "init": { + "type": "CallExpression", + "start": 1738, + "end": 1768, + "loc": { + "start": { + "line": 68, + "column": 15 + }, + "end": { + "line": 68, + "column": 45 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1738, + "end": 1761, + "loc": { + "start": { + "line": 68, + "column": 15 + }, + "end": { + "line": 68, + "column": 38 + } + }, + "object": { + "type": "Identifier", + "start": 1738, + "end": 1746, + "loc": { + "start": { + "line": 68, + "column": 15 + }, + "end": { + "line": 68, + "column": 23 + } + }, + "name": "document" + }, + "property": { + "type": "Identifier", + "start": 1747, + "end": 1761, + "loc": { + "start": { + "line": 68, + "column": 24 + }, + "end": { + "line": 68, + "column": 38 + } + }, + "name": "getElementById" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 1762, + "end": 1767, + "loc": { + "start": { + "line": 68, + "column": 39 + }, + "end": { + "line": 68, + "column": 44 + } + }, + "value": "app", + "rawValue": "app", + "raw": "'app'" + } + ] + }, + "leadingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * appElm\n * @type {Nullable.|Element}\n ", + "start": 1667, + "end": 1722, + "loc": { + "start": { + "line": 64, + "column": 0 + }, + "end": { + "line": 67, + "column": 3 + } + }, + "range": [ + 1667, + 1722 + ] + } + ] + }, + { + "type": "ImportDeclaration", + "start": 1770, + "end": 1808, + "loc": { + "start": { + "line": 70, + "column": 0 + }, + "end": { + "line": 70, + "column": 38 + } + }, + "specifiers": [ + { + "type": "ImportNamespaceSpecifier", + "start": 1777, + "end": 1790, + "loc": { + "start": { + "line": 70, + "column": 7 + }, + "end": { + "line": 70, + "column": 20 + } + }, + "local": { + "type": "Identifier", + "start": 1782, + "end": 1790, + "loc": { + "start": { + "line": 70, + "column": 12 + }, + "end": { + "line": 70, + "column": 20 + } + }, + "name": "reducers" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 1796, + "end": 1808, + "loc": { + "start": { + "line": 70, + "column": 26 + }, + "end": { + "line": 70, + "column": 38 + } + }, + "value": "./reducers", + "rawValue": "./reducers", + "raw": "'./reducers'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * store\n ", + "start": 1810, + "end": 1826, + "loc": { + "start": { + "line": 72, + "column": 0 + }, + "end": { + "line": 74, + "column": 3 + } + }, + "range": [ + 1810, + 1826 + ] + } + ] + }, + { + "type": "VariableDeclaration", + "start": 1827, + "end": 1966, + "loc": { + "start": { + "line": 75, + "column": 0 + }, + "end": { + "line": 82, + "column": 1 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1833, + "end": 1966, + "loc": { + "start": { + "line": 75, + "column": 6 + }, + "end": { + "line": 82, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 1833, + "end": 1838, + "loc": { + "start": { + "line": 75, + "column": 6 + }, + "end": { + "line": 75, + "column": 11 + } + }, + "name": "store", + "leadingComments": null + }, + "init": { + "type": "CallExpression", + "start": 1841, + "end": 1966, + "loc": { + "start": { + "line": 75, + "column": 14 + }, + "end": { + "line": 82, + "column": 1 + } + }, + "callee": { + "type": "Identifier", + "start": 1841, + "end": 1852, + "loc": { + "start": { + "line": 75, + "column": 14 + }, + "end": { + "line": 75, + "column": 25 + } + }, + "name": "createStore" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1858, + "end": 1935, + "loc": { + "start": { + "line": 76, + "column": 4 + }, + "end": { + "line": 80, + "column": 6 + } + }, + "callee": { + "type": "Identifier", + "start": 1858, + "end": 1873, + "loc": { + "start": { + "line": 76, + "column": 4 + }, + "end": { + "line": 76, + "column": 19 + } + }, + "name": "combineReducers" + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 1874, + "end": 1934, + "loc": { + "start": { + "line": 76, + "column": 20 + }, + "end": { + "line": 80, + "column": 5 + } + }, + "properties": [ + { + "type": "SpreadProperty", + "start": 1884, + "end": 1895, + "loc": { + "start": { + "line": 77, + "column": 8 + }, + "end": { + "line": 77, + "column": 19 + } + }, + "argument": { + "type": "Identifier", + "start": 1887, + "end": 1895, + "loc": { + "start": { + "line": 77, + "column": 11 + }, + "end": { + "line": 77, + "column": 19 + } + }, + "name": "reducers" + } + }, + { + "type": "Property", + "start": 1906, + "end": 1928, + "loc": { + "start": { + "line": 79, + "column": 8 + }, + "end": { + "line": 79, + "column": 30 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1906, + "end": 1913, + "loc": { + "start": { + "line": 79, + "column": 8 + }, + "end": { + "line": 79, + "column": 15 + } + }, + "name": "routing" + }, + "value": { + "type": "Identifier", + "start": 1915, + "end": 1928, + "loc": { + "start": { + "line": 79, + "column": 17 + }, + "end": { + "line": 79, + "column": 30 + } + }, + "name": "routerReducer" + }, + "kind": "init" + } + ] + } + ] + }, + { + "type": "CallExpression", + "start": 1941, + "end": 1963, + "loc": { + "start": { + "line": 81, + "column": 4 + }, + "end": { + "line": 81, + "column": 26 + } + }, + "callee": { + "type": "Identifier", + "start": 1941, + "end": 1956, + "loc": { + "start": { + "line": 81, + "column": 4 + }, + "end": { + "line": 81, + "column": 19 + } + }, + "name": "applyMiddleware" + }, + "arguments": [ + { + "type": "Identifier", + "start": 1957, + "end": 1962, + "loc": { + "start": { + "line": 81, + "column": 20 + }, + "end": { + "line": 81, + "column": 25 + } + }, + "name": "thunk" + } + ] + } + ], + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * store\n ", + "start": 1810, + "end": 1826, + "loc": { + "start": { + "line": 72, + "column": 0 + }, + "end": { + "line": 74, + "column": 3 + } + }, + "range": [ + 1810, + 1826 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * history\n ", + "start": 1968, + "end": 1986, + "loc": { + "start": { + "line": 84, + "column": 0 + }, + "end": { + "line": 86, + "column": 3 + } + }, + "range": [ + 1968, + 1986 + ] + } + ] + }, + { + "type": "VariableDeclaration", + "start": 1987, + "end": 2046, + "loc": { + "start": { + "line": 87, + "column": 0 + }, + "end": { + "line": 87, + "column": 59 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1993, + "end": 2046, + "loc": { + "start": { + "line": 87, + "column": 6 + }, + "end": { + "line": 87, + "column": 59 + } + }, + "id": { + "type": "Identifier", + "start": 1993, + "end": 2000, + "loc": { + "start": { + "line": 87, + "column": 6 + }, + "end": { + "line": 87, + "column": 13 + } + }, + "name": "history", + "leadingComments": null + }, + "init": { + "type": "CallExpression", + "start": 2003, + "end": 2046, + "loc": { + "start": { + "line": 87, + "column": 16 + }, + "end": { + "line": 87, + "column": 59 + } + }, + "callee": { + "type": "Identifier", + "start": 2003, + "end": 2023, + "loc": { + "start": { + "line": 87, + "column": 16 + }, + "end": { + "line": 87, + "column": 36 + } + }, + "name": "syncHistoryWithStore" + }, + "arguments": [ + { + "type": "Identifier", + "start": 2024, + "end": 2038, + "loc": { + "start": { + "line": 87, + "column": 37 + }, + "end": { + "line": 87, + "column": 51 + } + }, + "name": "browserHistory" + }, + { + "type": "Identifier", + "start": 2040, + "end": 2045, + "loc": { + "start": { + "line": 87, + "column": 53 + }, + "end": { + "line": 87, + "column": 58 + } + }, + "name": "store" + } + ], + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * history\n ", + "start": 1968, + "end": 1986, + "loc": { + "start": { + "line": 84, + "column": 0 + }, + "end": { + "line": 86, + "column": 3 + } + }, + "range": [ + 1968, + 1986 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * render Provider\n ", + "start": 2048, + "end": 2074, + "loc": { + "start": { + "line": 89, + "column": 0 + }, + "end": { + "line": 91, + "column": 3 + } + }, + "range": [ + 2048, + 2074 + ] + } + ] + }, + { + "type": "ExpressionStatement", + "start": 2075, + "end": 2260, + "loc": { + "start": { + "line": 92, + "column": 0 + }, + "end": { + "line": 99, + "column": 10 + } + }, + "expression": { + "type": "CallExpression", + "start": 2075, + "end": 2260, + "loc": { + "start": { + "line": 92, + "column": 0 + }, + "end": { + "line": 99, + "column": 10 + } + }, + "callee": { + "type": "Identifier", + "start": 2075, + "end": 2081, + "loc": { + "start": { + "line": 92, + "column": 0 + }, + "end": { + "line": 92, + "column": 6 + } + }, + "name": "render", + "leadingComments": null + }, + "arguments": [ + { + "type": "JSXElement", + "start": 2086, + "end": 2249, + "loc": { + "start": { + "line": 93, + "column": 2 + }, + "end": { + "line": 98, + "column": 13 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2086, + "end": 2110, + "loc": { + "start": { + "line": 93, + "column": 2 + }, + "end": { + "line": 93, + "column": 26 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2096, + "end": 2109, + "loc": { + "start": { + "line": 93, + "column": 12 + }, + "end": { + "line": 93, + "column": 25 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2096, + "end": 2101, + "loc": { + "start": { + "line": 93, + "column": 12 + }, + "end": { + "line": 93, + "column": 17 + } + }, + "name": "store" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2102, + "end": 2109, + "loc": { + "start": { + "line": 93, + "column": 18 + }, + "end": { + "line": 93, + "column": 25 + } + }, + "expression": { + "type": "Identifier", + "start": 2103, + "end": 2108, + "loc": { + "start": { + "line": 93, + "column": 19 + }, + "end": { + "line": 93, + "column": 24 + } + }, + "name": "store" + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2087, + "end": 2095, + "loc": { + "start": { + "line": 93, + "column": 3 + }, + "end": { + "line": 93, + "column": 11 + } + }, + "name": "Provider" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2238, + "end": 2249, + "loc": { + "start": { + "line": 98, + "column": 2 + }, + "end": { + "line": 98, + "column": 13 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2240, + "end": 2248, + "loc": { + "start": { + "line": 98, + "column": 4 + }, + "end": { + "line": 98, + "column": 12 + } + }, + "name": "Provider" + } + }, + "children": [ + { + "type": "Literal", + "start": 2110, + "end": 2117, + "loc": { + "start": { + "line": 93, + "column": 26 + }, + "end": { + "line": 94, + "column": 6 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 2117, + "end": 2235, + "loc": { + "start": { + "line": 94, + "column": 6 + }, + "end": { + "line": 97, + "column": 31 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2117, + "end": 2235, + "loc": { + "start": { + "line": 94, + "column": 6 + }, + "end": { + "line": 97, + "column": 31 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2135, + "end": 2152, + "loc": { + "start": { + "line": 95, + "column": 10 + }, + "end": { + "line": 95, + "column": 27 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2135, + "end": 2142, + "loc": { + "start": { + "line": 95, + "column": 10 + }, + "end": { + "line": 95, + "column": 17 + } + }, + "name": "history" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2143, + "end": 2152, + "loc": { + "start": { + "line": 95, + "column": 18 + }, + "end": { + "line": 95, + "column": 27 + } + }, + "expression": { + "type": "Identifier", + "start": 2144, + "end": 2151, + "loc": { + "start": { + "line": 95, + "column": 19 + }, + "end": { + "line": 95, + "column": 26 + } + }, + "name": "history" + } + } + }, + { + "type": "JSXAttribute", + "start": 2163, + "end": 2203, + "loc": { + "start": { + "line": 96, + "column": 10 + }, + "end": { + "line": 96, + "column": 50 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2163, + "end": 2171, + "loc": { + "start": { + "line": 96, + "column": 10 + }, + "end": { + "line": 96, + "column": 18 + } + }, + "name": "onUpdate" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2172, + "end": 2203, + "loc": { + "start": { + "line": 96, + "column": 19 + }, + "end": { + "line": 96, + "column": 50 + } + }, + "expression": { + "type": "ArrowFunctionExpression", + "start": 2173, + "end": 2202, + "loc": { + "start": { + "line": 96, + "column": 20 + }, + "end": { + "line": 96, + "column": 49 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [], + "body": { + "type": "CallExpression", + "start": 2179, + "end": 2202, + "loc": { + "start": { + "line": 96, + "column": 26 + }, + "end": { + "line": 96, + "column": 49 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2179, + "end": 2200, + "loc": { + "start": { + "line": 96, + "column": 26 + }, + "end": { + "line": 96, + "column": 47 + } + }, + "object": { + "type": "Identifier", + "start": 2179, + "end": 2185, + "loc": { + "start": { + "line": 96, + "column": 26 + }, + "end": { + "line": 96, + "column": 32 + } + }, + "name": "appElm" + }, + "property": { + "type": "Identifier", + "start": 2186, + "end": 2200, + "loc": { + "start": { + "line": 96, + "column": 33 + }, + "end": { + "line": 96, + "column": 47 + } + }, + "name": "scrollIntoView" + }, + "computed": false + }, + "arguments": [] + } + } + } + }, + { + "type": "JSXAttribute", + "start": 2214, + "end": 2232, + "loc": { + "start": { + "line": 97, + "column": 10 + }, + "end": { + "line": 97, + "column": 28 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2214, + "end": 2220, + "loc": { + "start": { + "line": 97, + "column": 10 + }, + "end": { + "line": 97, + "column": 16 + } + }, + "name": "routes" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2221, + "end": 2232, + "loc": { + "start": { + "line": 97, + "column": 17 + }, + "end": { + "line": 97, + "column": 28 + } + }, + "expression": { + "type": "Identifier", + "start": 2222, + "end": 2231, + "loc": { + "start": { + "line": 97, + "column": 18 + }, + "end": { + "line": 97, + "column": 27 + } + }, + "name": "rootRoute" + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2118, + "end": 2124, + "loc": { + "start": { + "line": 94, + "column": 7 + }, + "end": { + "line": 94, + "column": 13 + } + }, + "name": "Router" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 2235, + "end": 2238, + "loc": { + "start": { + "line": 97, + "column": 31 + }, + "end": { + "line": 98, + "column": 2 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + }, + { + "type": "Identifier", + "start": 2253, + "end": 2259, + "loc": { + "start": { + "line": 99, + "column": 3 + }, + "end": { + "line": 99, + "column": 9 + } + }, + "name": "appElm" + } + ], + "leadingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render Provider\n ", + "start": 2048, + "end": 2074, + "loc": { + "start": { + "line": 89, + "column": 0 + }, + "end": { + "line": 91, + "column": 3 + } + }, + "range": [ + 2048, + 2074 + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/reducers/Activity.js.json b/app/docs/ast/source/reducers/Activity.js.json new file mode 100644 index 0000000..1c6a979 --- /dev/null +++ b/app/docs/ast/source/reducers/Activity.js.json @@ -0,0 +1,4110 @@ +{ + "type": "Program", + "start": 0, + "end": 1381, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 55, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 114, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 5, + "column": 16 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 13, + "end": 40, + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 31 + } + }, + "imported": { + "type": "Identifier", + "start": 13, + "end": 21, + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 12 + } + }, + "name": "Activity" + }, + "local": { + "type": "Identifier", + "start": 25, + "end": 40, + "loc": { + "start": { + "line": 2, + "column": 16 + }, + "end": { + "line": 2, + "column": 31 + } + }, + "name": "ActivityActions" + } + }, + { + "type": "ImportSpecifier", + "start": 46, + "end": 65, + "loc": { + "start": { + "line": 3, + "column": 4 + }, + "end": { + "line": 3, + "column": 23 + } + }, + "imported": { + "type": "Identifier", + "start": 46, + "end": 50, + "loc": { + "start": { + "line": 3, + "column": 4 + }, + "end": { + "line": 3, + "column": 8 + } + }, + "name": "User" + }, + "local": { + "type": "Identifier", + "start": 54, + "end": 65, + "loc": { + "start": { + "line": 3, + "column": 12 + }, + "end": { + "line": 3, + "column": 23 + } + }, + "name": "UserActions" + } + }, + { + "type": "ImportSpecifier", + "start": 71, + "end": 96, + "loc": { + "start": { + "line": 4, + "column": 4 + }, + "end": { + "line": 4, + "column": 29 + } + }, + "imported": { + "type": "Identifier", + "start": 71, + "end": 78, + "loc": { + "start": { + "line": 4, + "column": 4 + }, + "end": { + "line": 4, + "column": 11 + } + }, + "name": "Profile" + }, + "local": { + "type": "Identifier", + "start": 82, + "end": 96, + "loc": { + "start": { + "line": 4, + "column": 15 + }, + "end": { + "line": 4, + "column": 29 + } + }, + "name": "ProfileActions" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 105, + "end": 114, + "loc": { + "start": { + "line": 5, + "column": 7 + }, + "end": { + "line": 5, + "column": 16 + } + }, + "value": "actions", + "rawValue": "actions", + "raw": "'actions'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Activity\n * Redux Reducer for Activity action\n * Reference: http://redux.js.org/docs/basics/Reducers.html\n * @param state\n * @param action\n * @returns {*}\n * @constructor\n ", + "start": 116, + "end": 297, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 15, + "column": 3 + } + }, + "range": [ + 116, + 297 + ] + } + ] + }, + { + "type": "Identifier", + "start": 298, + "end": 1355, + "loc": { + "start": { + "line": 16, + "column": 0 + }, + "end": { + "line": 52, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 307, + "end": 315, + "loc": { + "start": { + "line": 16, + "column": 9 + }, + "end": { + "line": 16, + "column": 17 + } + }, + "name": "Activity", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "AssignmentPattern", + "start": 316, + "end": 326, + "loc": { + "start": { + "line": 16, + "column": 18 + }, + "end": { + "line": 16, + "column": 28 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 316, + "end": 321, + "loc": { + "start": { + "line": 16, + "column": 18 + }, + "end": { + "line": 16, + "column": 23 + } + }, + "name": "state" + }, + "right": { + "type": "ArrayExpression", + "start": 324, + "end": 326, + "loc": { + "start": { + "line": 16, + "column": 26 + }, + "end": { + "line": 16, + "column": 28 + } + }, + "elements": [] + } + }, + { + "type": "Identifier", + "start": 328, + "end": 334, + "loc": { + "start": { + "line": 16, + "column": 30 + }, + "end": { + "line": 16, + "column": 36 + } + }, + "name": "action" + } + ], + "body": { + "type": "BlockStatement", + "start": 336, + "end": 1355, + "loc": { + "start": { + "line": 16, + "column": 38 + }, + "end": { + "line": 52, + "column": 1 + } + }, + "body": [ + { + "type": "SwitchStatement", + "start": 343, + "end": 1335, + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 49, + "column": 5 + } + }, + "discriminant": { + "type": "MemberExpression", + "start": 351, + "end": 362, + "loc": { + "start": { + "line": 18, + "column": 12 + }, + "end": { + "line": 18, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 351, + "end": 357, + "loc": { + "start": { + "line": 18, + "column": 12 + }, + "end": { + "line": 18, + "column": 18 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 358, + "end": 362, + "loc": { + "start": { + "line": 18, + "column": 19 + }, + "end": { + "line": 18, + "column": 23 + } + }, + "name": "type" + }, + "computed": false + }, + "cases": [ + { + "type": "SwitchCase", + "start": 374, + "end": 557, + "loc": { + "start": { + "line": 19, + "column": 8 + }, + "end": { + "line": 25, + "column": 24 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 413, + "end": 532, + "loc": { + "start": { + "line": 20, + "column": 12 + }, + "end": { + "line": 24, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 417, + "end": 432, + "loc": { + "start": { + "line": 20, + "column": 16 + }, + "end": { + "line": 20, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 417, + "end": 423, + "loc": { + "start": { + "line": 20, + "column": 16 + }, + "end": { + "line": 20, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 424, + "end": 432, + "loc": { + "start": { + "line": 20, + "column": 23 + }, + "end": { + "line": 20, + "column": 31 + } + }, + "name": "response" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 434, + "end": 532, + "loc": { + "start": { + "line": 20, + "column": 33 + }, + "end": { + "line": 24, + "column": 13 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 452, + "end": 518, + "loc": { + "start": { + "line": 21, + "column": 16 + }, + "end": { + "line": 23, + "column": 17 + } + }, + "argument": { + "type": "ArrayExpression", + "start": 459, + "end": 518, + "loc": { + "start": { + "line": 21, + "column": 23 + }, + "end": { + "line": 23, + "column": 17 + } + }, + "elements": [ + { + "type": "SpreadElement", + "start": 481, + "end": 499, + "loc": { + "start": { + "line": 22, + "column": 20 + }, + "end": { + "line": 22, + "column": 38 + } + }, + "argument": { + "type": "MemberExpression", + "start": 484, + "end": 499, + "loc": { + "start": { + "line": 22, + "column": 23 + }, + "end": { + "line": 22, + "column": 38 + } + }, + "object": { + "type": "Identifier", + "start": 484, + "end": 490, + "loc": { + "start": { + "line": 22, + "column": 23 + }, + "end": { + "line": 22, + "column": 29 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 491, + "end": 499, + "loc": { + "start": { + "line": 22, + "column": 30 + }, + "end": { + "line": 22, + "column": 38 + } + }, + "name": "response" + }, + "computed": false + } + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 545, + "end": 557, + "loc": { + "start": { + "line": 25, + "column": 12 + }, + "end": { + "line": 25, + "column": 24 + } + }, + "argument": { + "type": "Identifier", + "start": 552, + "end": 557, + "loc": { + "start": { + "line": 25, + "column": 19 + }, + "end": { + "line": 25, + "column": 24 + } + }, + "name": "state" + } + } + ], + "test": { + "type": "MemberExpression", + "start": 379, + "end": 399, + "loc": { + "start": { + "line": 19, + "column": 13 + }, + "end": { + "line": 19, + "column": 33 + } + }, + "object": { + "type": "Identifier", + "start": 379, + "end": 394, + "loc": { + "start": { + "line": 19, + "column": 13 + }, + "end": { + "line": 19, + "column": 28 + } + }, + "name": "ActivityActions" + }, + "property": { + "type": "Identifier", + "start": 395, + "end": 399, + "loc": { + "start": { + "line": 19, + "column": 29 + }, + "end": { + "line": 19, + "column": 33 + } + }, + "name": "LOAD" + }, + "computed": false + } + }, + { + "type": "SwitchCase", + "start": 567, + "end": 891, + "loc": { + "start": { + "line": 27, + "column": 8 + }, + "end": { + "line": 35, + "column": 14 + } + }, + "consequent": [ + { + "type": "ReturnStatement", + "start": 609, + "end": 891, + "loc": { + "start": { + "line": 28, + "column": 12 + }, + "end": { + "line": 35, + "column": 14 + } + }, + "argument": { + "type": "CallExpression", + "start": 616, + "end": 891, + "loc": { + "start": { + "line": 28, + "column": 19 + }, + "end": { + "line": 35, + "column": 14 + } + }, + "callee": { + "type": "MemberExpression", + "start": 616, + "end": 625, + "loc": { + "start": { + "line": 28, + "column": 19 + }, + "end": { + "line": 28, + "column": 28 + } + }, + "object": { + "type": "Identifier", + "start": 616, + "end": 621, + "loc": { + "start": { + "line": 28, + "column": 19 + }, + "end": { + "line": 28, + "column": 24 + } + }, + "name": "state" + }, + "property": { + "type": "Identifier", + "start": 622, + "end": 625, + "loc": { + "start": { + "line": 28, + "column": 25 + }, + "end": { + "line": 28, + "column": 28 + } + }, + "name": "map" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 626, + "end": 890, + "loc": { + "start": { + "line": 28, + "column": 29 + }, + "end": { + "line": 35, + "column": 13 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 627, + "end": 631, + "loc": { + "start": { + "line": 28, + "column": 30 + }, + "end": { + "line": 28, + "column": 34 + } + }, + "name": "item" + } + ], + "body": { + "type": "BlockStatement", + "start": 636, + "end": 890, + "loc": { + "start": { + "line": 28, + "column": 39 + }, + "end": { + "line": 35, + "column": 13 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 654, + "end": 848, + "loc": { + "start": { + "line": 29, + "column": 16 + }, + "end": { + "line": 33, + "column": 17 + } + }, + "test": { + "type": "LogicalExpression", + "start": 658, + "end": 713, + "loc": { + "start": { + "line": 29, + "column": 20 + }, + "end": { + "line": 29, + "column": 75 + } + }, + "left": { + "type": "BinaryExpression", + "start": 658, + "end": 688, + "loc": { + "start": { + "line": 29, + "column": 20 + }, + "end": { + "line": 29, + "column": 50 + } + }, + "left": { + "type": "MemberExpression", + "start": 658, + "end": 670, + "loc": { + "start": { + "line": 29, + "column": 20 + }, + "end": { + "line": 29, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 658, + "end": 662, + "loc": { + "start": { + "line": 29, + "column": 20 + }, + "end": { + "line": 29, + "column": 24 + } + }, + "name": "item" + }, + "property": { + "type": "Identifier", + "start": 663, + "end": 670, + "loc": { + "start": { + "line": 29, + "column": 25 + }, + "end": { + "line": 29, + "column": 32 + } + }, + "name": "user_id" + }, + "computed": false + }, + "operator": "===", + "right": { + "type": "MemberExpression", + "start": 675, + "end": 688, + "loc": { + "start": { + "line": 29, + "column": 37 + }, + "end": { + "line": 29, + "column": 50 + } + }, + "object": { + "type": "Identifier", + "start": 675, + "end": 681, + "loc": { + "start": { + "line": 29, + "column": 37 + }, + "end": { + "line": 29, + "column": 43 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 682, + "end": 688, + "loc": { + "start": { + "line": 29, + "column": 44 + }, + "end": { + "line": 29, + "column": 50 + } + }, + "name": "userID" + }, + "computed": false + } + }, + "operator": "&&", + "right": { + "type": "BinaryExpression", + "start": 692, + "end": 713, + "loc": { + "start": { + "line": 29, + "column": 54 + }, + "end": { + "line": 29, + "column": 75 + } + }, + "left": { + "type": "MemberExpression", + "start": 692, + "end": 701, + "loc": { + "start": { + "line": 29, + "column": 54 + }, + "end": { + "line": 29, + "column": 63 + } + }, + "object": { + "type": "Identifier", + "start": 692, + "end": 696, + "loc": { + "start": { + "line": 29, + "column": 54 + }, + "end": { + "line": 29, + "column": 58 + } + }, + "name": "item" + }, + "property": { + "type": "Identifier", + "start": 697, + "end": 701, + "loc": { + "start": { + "line": 29, + "column": 59 + }, + "end": { + "line": 29, + "column": 63 + } + }, + "name": "type" + }, + "computed": false + }, + "operator": "==", + "right": { + "type": "Literal", + "start": 705, + "end": 713, + "loc": { + "start": { + "line": 29, + "column": 67 + }, + "end": { + "line": 29, + "column": 75 + } + }, + "value": "follow", + "rawValue": "follow", + "raw": "'follow'" + } + } + }, + "consequent": { + "type": "BlockStatement", + "start": 715, + "end": 848, + "loc": { + "start": { + "line": 29, + "column": 77 + }, + "end": { + "line": 33, + "column": 17 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 737, + "end": 830, + "loc": { + "start": { + "line": 30, + "column": 20 + }, + "end": { + "line": 32, + "column": 22 + } + }, + "argument": { + "type": "CallExpression", + "start": 744, + "end": 830, + "loc": { + "start": { + "line": 30, + "column": 27 + }, + "end": { + "line": 32, + "column": 22 + } + }, + "callee": { + "type": "MemberExpression", + "start": 744, + "end": 757, + "loc": { + "start": { + "line": 30, + "column": 27 + }, + "end": { + "line": 30, + "column": 40 + } + }, + "object": { + "type": "Identifier", + "start": 744, + "end": 750, + "loc": { + "start": { + "line": 30, + "column": 27 + }, + "end": { + "line": 30, + "column": 33 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 751, + "end": 757, + "loc": { + "start": { + "line": 30, + "column": 34 + }, + "end": { + "line": 30, + "column": 40 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 758, + "end": 760, + "loc": { + "start": { + "line": 30, + "column": 41 + }, + "end": { + "line": 30, + "column": 43 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 762, + "end": 766, + "loc": { + "start": { + "line": 30, + "column": 45 + }, + "end": { + "line": 30, + "column": 49 + } + }, + "name": "item" + }, + { + "type": "ObjectExpression", + "start": 768, + "end": 829, + "loc": { + "start": { + "line": 30, + "column": 51 + }, + "end": { + "line": 32, + "column": 21 + } + }, + "properties": [ + { + "type": "Property", + "start": 794, + "end": 806, + "loc": { + "start": { + "line": 31, + "column": 24 + }, + "end": { + "line": 31, + "column": 36 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 794, + "end": 803, + "loc": { + "start": { + "line": 31, + "column": 24 + }, + "end": { + "line": 31, + "column": 33 + } + }, + "name": "following" + }, + "value": { + "type": "Literal", + "start": 805, + "end": 806, + "loc": { + "start": { + "line": 31, + "column": 35 + }, + "end": { + "line": 31, + "column": 36 + } + }, + "value": 0, + "rawValue": 0, + "raw": "0" + }, + "kind": "init" + } + ] + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 865, + "end": 876, + "loc": { + "start": { + "line": 34, + "column": 16 + }, + "end": { + "line": 34, + "column": 27 + } + }, + "argument": { + "type": "Identifier", + "start": 872, + "end": 876, + "loc": { + "start": { + "line": 34, + "column": 23 + }, + "end": { + "line": 34, + "column": 27 + } + }, + "name": "item" + } + } + ] + } + } + ] + } + } + ], + "test": { + "type": "MemberExpression", + "start": 572, + "end": 595, + "loc": { + "start": { + "line": 27, + "column": 13 + }, + "end": { + "line": 27, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 572, + "end": 586, + "loc": { + "start": { + "line": 27, + "column": 13 + }, + "end": { + "line": 27, + "column": 27 + } + }, + "name": "ProfileActions" + }, + "property": { + "type": "Identifier", + "start": 587, + "end": 595, + "loc": { + "start": { + "line": 27, + "column": 28 + }, + "end": { + "line": 27, + "column": 36 + } + }, + "name": "UNFOLLOW" + }, + "computed": false + } + }, + { + "type": "SwitchCase", + "start": 901, + "end": 1329, + "loc": { + "start": { + "line": 37, + "column": 8 + }, + "end": { + "line": 48, + "column": 24 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 941, + "end": 1304, + "loc": { + "start": { + "line": 38, + "column": 12 + }, + "end": { + "line": 47, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 945, + "end": 960, + "loc": { + "start": { + "line": 38, + "column": 16 + }, + "end": { + "line": 38, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 945, + "end": 951, + "loc": { + "start": { + "line": 38, + "column": 16 + }, + "end": { + "line": 38, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 952, + "end": 960, + "loc": { + "start": { + "line": 38, + "column": 23 + }, + "end": { + "line": 38, + "column": 31 + } + }, + "name": "response" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 962, + "end": 1304, + "loc": { + "start": { + "line": 38, + "column": 33 + }, + "end": { + "line": 47, + "column": 13 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 980, + "end": 1290, + "loc": { + "start": { + "line": 39, + "column": 16 + }, + "end": { + "line": 46, + "column": 18 + } + }, + "argument": { + "type": "CallExpression", + "start": 987, + "end": 1290, + "loc": { + "start": { + "line": 39, + "column": 23 + }, + "end": { + "line": 46, + "column": 18 + } + }, + "callee": { + "type": "MemberExpression", + "start": 987, + "end": 996, + "loc": { + "start": { + "line": 39, + "column": 23 + }, + "end": { + "line": 39, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 987, + "end": 992, + "loc": { + "start": { + "line": 39, + "column": 23 + }, + "end": { + "line": 39, + "column": 28 + } + }, + "name": "state" + }, + "property": { + "type": "Identifier", + "start": 993, + "end": 996, + "loc": { + "start": { + "line": 39, + "column": 29 + }, + "end": { + "line": 39, + "column": 32 + } + }, + "name": "map" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 997, + "end": 1289, + "loc": { + "start": { + "line": 39, + "column": 33 + }, + "end": { + "line": 46, + "column": 17 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 998, + "end": 1002, + "loc": { + "start": { + "line": 39, + "column": 34 + }, + "end": { + "line": 39, + "column": 38 + } + }, + "name": "item" + } + ], + "body": { + "type": "BlockStatement", + "start": 1007, + "end": 1289, + "loc": { + "start": { + "line": 39, + "column": 43 + }, + "end": { + "line": 46, + "column": 17 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 1029, + "end": 1239, + "loc": { + "start": { + "line": 40, + "column": 20 + }, + "end": { + "line": 44, + "column": 21 + } + }, + "test": { + "type": "LogicalExpression", + "start": 1033, + "end": 1088, + "loc": { + "start": { + "line": 40, + "column": 24 + }, + "end": { + "line": 40, + "column": 79 + } + }, + "left": { + "type": "BinaryExpression", + "start": 1033, + "end": 1063, + "loc": { + "start": { + "line": 40, + "column": 24 + }, + "end": { + "line": 40, + "column": 54 + } + }, + "left": { + "type": "MemberExpression", + "start": 1033, + "end": 1045, + "loc": { + "start": { + "line": 40, + "column": 24 + }, + "end": { + "line": 40, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 1033, + "end": 1037, + "loc": { + "start": { + "line": 40, + "column": 24 + }, + "end": { + "line": 40, + "column": 28 + } + }, + "name": "item" + }, + "property": { + "type": "Identifier", + "start": 1038, + "end": 1045, + "loc": { + "start": { + "line": 40, + "column": 29 + }, + "end": { + "line": 40, + "column": 36 + } + }, + "name": "user_id" + }, + "computed": false + }, + "operator": "===", + "right": { + "type": "MemberExpression", + "start": 1050, + "end": 1063, + "loc": { + "start": { + "line": 40, + "column": 41 + }, + "end": { + "line": 40, + "column": 54 + } + }, + "object": { + "type": "Identifier", + "start": 1050, + "end": 1056, + "loc": { + "start": { + "line": 40, + "column": 41 + }, + "end": { + "line": 40, + "column": 47 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1057, + "end": 1063, + "loc": { + "start": { + "line": 40, + "column": 48 + }, + "end": { + "line": 40, + "column": 54 + } + }, + "name": "userID" + }, + "computed": false + } + }, + "operator": "&&", + "right": { + "type": "BinaryExpression", + "start": 1067, + "end": 1088, + "loc": { + "start": { + "line": 40, + "column": 58 + }, + "end": { + "line": 40, + "column": 79 + } + }, + "left": { + "type": "MemberExpression", + "start": 1067, + "end": 1076, + "loc": { + "start": { + "line": 40, + "column": 58 + }, + "end": { + "line": 40, + "column": 67 + } + }, + "object": { + "type": "Identifier", + "start": 1067, + "end": 1071, + "loc": { + "start": { + "line": 40, + "column": 58 + }, + "end": { + "line": 40, + "column": 62 + } + }, + "name": "item" + }, + "property": { + "type": "Identifier", + "start": 1072, + "end": 1076, + "loc": { + "start": { + "line": 40, + "column": 63 + }, + "end": { + "line": 40, + "column": 67 + } + }, + "name": "type" + }, + "computed": false + }, + "operator": "==", + "right": { + "type": "Literal", + "start": 1080, + "end": 1088, + "loc": { + "start": { + "line": 40, + "column": 71 + }, + "end": { + "line": 40, + "column": 79 + } + }, + "value": "follow", + "rawValue": "follow", + "raw": "'follow'" + } + } + }, + "consequent": { + "type": "BlockStatement", + "start": 1090, + "end": 1239, + "loc": { + "start": { + "line": 40, + "column": 81 + }, + "end": { + "line": 44, + "column": 21 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 1116, + "end": 1217, + "loc": { + "start": { + "line": 41, + "column": 24 + }, + "end": { + "line": 43, + "column": 26 + } + }, + "argument": { + "type": "CallExpression", + "start": 1123, + "end": 1217, + "loc": { + "start": { + "line": 41, + "column": 31 + }, + "end": { + "line": 43, + "column": 26 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1123, + "end": 1136, + "loc": { + "start": { + "line": 41, + "column": 31 + }, + "end": { + "line": 41, + "column": 44 + } + }, + "object": { + "type": "Identifier", + "start": 1123, + "end": 1129, + "loc": { + "start": { + "line": 41, + "column": 31 + }, + "end": { + "line": 41, + "column": 37 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 1130, + "end": 1136, + "loc": { + "start": { + "line": 41, + "column": 38 + }, + "end": { + "line": 41, + "column": 44 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 1137, + "end": 1139, + "loc": { + "start": { + "line": 41, + "column": 45 + }, + "end": { + "line": 41, + "column": 47 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 1141, + "end": 1145, + "loc": { + "start": { + "line": 41, + "column": 49 + }, + "end": { + "line": 41, + "column": 53 + } + }, + "name": "item" + }, + { + "type": "ObjectExpression", + "start": 1147, + "end": 1216, + "loc": { + "start": { + "line": 41, + "column": 55 + }, + "end": { + "line": 43, + "column": 25 + } + }, + "properties": [ + { + "type": "Property", + "start": 1177, + "end": 1189, + "loc": { + "start": { + "line": 42, + "column": 28 + }, + "end": { + "line": 42, + "column": 40 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1177, + "end": 1186, + "loc": { + "start": { + "line": 42, + "column": 28 + }, + "end": { + "line": 42, + "column": 37 + } + }, + "name": "following" + }, + "value": { + "type": "Literal", + "start": 1188, + "end": 1189, + "loc": { + "start": { + "line": 42, + "column": 39 + }, + "end": { + "line": 42, + "column": 40 + } + }, + "value": 1, + "rawValue": 1, + "raw": "1" + }, + "kind": "init" + } + ] + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 1260, + "end": 1271, + "loc": { + "start": { + "line": 45, + "column": 20 + }, + "end": { + "line": 45, + "column": 31 + } + }, + "argument": { + "type": "Identifier", + "start": 1267, + "end": 1271, + "loc": { + "start": { + "line": 45, + "column": 27 + }, + "end": { + "line": 45, + "column": 31 + } + }, + "name": "item" + } + } + ] + } + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 1317, + "end": 1329, + "loc": { + "start": { + "line": 48, + "column": 12 + }, + "end": { + "line": 48, + "column": 24 + } + }, + "argument": { + "type": "Identifier", + "start": 1324, + "end": 1329, + "loc": { + "start": { + "line": 48, + "column": 19 + }, + "end": { + "line": 48, + "column": 24 + } + }, + "name": "state" + } + } + ], + "test": { + "type": "MemberExpression", + "start": 906, + "end": 927, + "loc": { + "start": { + "line": 37, + "column": 13 + }, + "end": { + "line": 37, + "column": 34 + } + }, + "object": { + "type": "Identifier", + "start": 906, + "end": 920, + "loc": { + "start": { + "line": 37, + "column": 13 + }, + "end": { + "line": 37, + "column": 27 + } + }, + "name": "ProfileActions" + }, + "property": { + "type": "Identifier", + "start": 921, + "end": 927, + "loc": { + "start": { + "line": 37, + "column": 28 + }, + "end": { + "line": 37, + "column": 34 + } + }, + "name": "FOLLOW" + }, + "computed": false + } + } + ] + }, + { + "type": "ReturnStatement", + "start": 1341, + "end": 1353, + "loc": { + "start": { + "line": 51, + "column": 4 + }, + "end": { + "line": 51, + "column": 16 + } + }, + "argument": { + "type": "Identifier", + "start": 1348, + "end": 1353, + "loc": { + "start": { + "line": 51, + "column": 11 + }, + "end": { + "line": 51, + "column": 16 + } + }, + "name": "state" + } + } + ] + }, + "leadingComments": [], + "name": "_", + "trailingComments": [] + }, + { + "type": "Identifier", + "start": 1357, + "end": 1380, + "loc": { + "start": { + "line": 54, + "column": 0 + }, + "end": { + "line": 54, + "column": 23 + } + }, + "declaration": { + "type": "Identifier", + "start": 1372, + "end": 1380, + "loc": { + "start": { + "line": 54, + "column": 15 + }, + "end": { + "line": 54, + "column": 23 + } + }, + "name": "Activity" + }, + "name": "_", + "leadingComments": [], + "trailingComments": [] + }, + { + "type": "ExportDefaultDeclaration", + "start": 1357, + "end": 1380, + "loc": { + "start": { + "line": 54, + "column": 0 + }, + "end": { + "line": 54, + "column": 23 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 298, + "end": 1355, + "loc": { + "start": { + "line": 16, + "column": 0 + }, + "end": { + "line": 52, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 307, + "end": 315, + "loc": { + "start": { + "line": 16, + "column": 9 + }, + "end": { + "line": 16, + "column": 17 + } + }, + "name": "Activity", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "AssignmentPattern", + "start": 316, + "end": 326, + "loc": { + "start": { + "line": 16, + "column": 18 + }, + "end": { + "line": 16, + "column": 28 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 316, + "end": 321, + "loc": { + "start": { + "line": 16, + "column": 18 + }, + "end": { + "line": 16, + "column": 23 + } + }, + "name": "state" + }, + "right": { + "type": "ArrayExpression", + "start": 324, + "end": 326, + "loc": { + "start": { + "line": 16, + "column": 26 + }, + "end": { + "line": 16, + "column": 28 + } + }, + "elements": [] + } + }, + { + "type": "Identifier", + "start": 328, + "end": 334, + "loc": { + "start": { + "line": 16, + "column": 30 + }, + "end": { + "line": 16, + "column": 36 + } + }, + "name": "action" + } + ], + "body": { + "type": "BlockStatement", + "start": 336, + "end": 1355, + "loc": { + "start": { + "line": 16, + "column": 38 + }, + "end": { + "line": 52, + "column": 1 + } + }, + "body": [ + { + "type": "SwitchStatement", + "start": 343, + "end": 1335, + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 49, + "column": 5 + } + }, + "discriminant": { + "type": "MemberExpression", + "start": 351, + "end": 362, + "loc": { + "start": { + "line": 18, + "column": 12 + }, + "end": { + "line": 18, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 351, + "end": 357, + "loc": { + "start": { + "line": 18, + "column": 12 + }, + "end": { + "line": 18, + "column": 18 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 358, + "end": 362, + "loc": { + "start": { + "line": 18, + "column": 19 + }, + "end": { + "line": 18, + "column": 23 + } + }, + "name": "type" + }, + "computed": false + }, + "cases": [ + { + "type": "SwitchCase", + "start": 374, + "end": 557, + "loc": { + "start": { + "line": 19, + "column": 8 + }, + "end": { + "line": 25, + "column": 24 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 413, + "end": 532, + "loc": { + "start": { + "line": 20, + "column": 12 + }, + "end": { + "line": 24, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 417, + "end": 432, + "loc": { + "start": { + "line": 20, + "column": 16 + }, + "end": { + "line": 20, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 417, + "end": 423, + "loc": { + "start": { + "line": 20, + "column": 16 + }, + "end": { + "line": 20, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 424, + "end": 432, + "loc": { + "start": { + "line": 20, + "column": 23 + }, + "end": { + "line": 20, + "column": 31 + } + }, + "name": "response" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 434, + "end": 532, + "loc": { + "start": { + "line": 20, + "column": 33 + }, + "end": { + "line": 24, + "column": 13 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 452, + "end": 518, + "loc": { + "start": { + "line": 21, + "column": 16 + }, + "end": { + "line": 23, + "column": 17 + } + }, + "argument": { + "type": "ArrayExpression", + "start": 459, + "end": 518, + "loc": { + "start": { + "line": 21, + "column": 23 + }, + "end": { + "line": 23, + "column": 17 + } + }, + "elements": [ + { + "type": "SpreadElement", + "start": 481, + "end": 499, + "loc": { + "start": { + "line": 22, + "column": 20 + }, + "end": { + "line": 22, + "column": 38 + } + }, + "argument": { + "type": "MemberExpression", + "start": 484, + "end": 499, + "loc": { + "start": { + "line": 22, + "column": 23 + }, + "end": { + "line": 22, + "column": 38 + } + }, + "object": { + "type": "Identifier", + "start": 484, + "end": 490, + "loc": { + "start": { + "line": 22, + "column": 23 + }, + "end": { + "line": 22, + "column": 29 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 491, + "end": 499, + "loc": { + "start": { + "line": 22, + "column": 30 + }, + "end": { + "line": 22, + "column": 38 + } + }, + "name": "response" + }, + "computed": false + } + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 545, + "end": 557, + "loc": { + "start": { + "line": 25, + "column": 12 + }, + "end": { + "line": 25, + "column": 24 + } + }, + "argument": { + "type": "Identifier", + "start": 552, + "end": 557, + "loc": { + "start": { + "line": 25, + "column": 19 + }, + "end": { + "line": 25, + "column": 24 + } + }, + "name": "state" + } + } + ], + "test": { + "type": "MemberExpression", + "start": 379, + "end": 399, + "loc": { + "start": { + "line": 19, + "column": 13 + }, + "end": { + "line": 19, + "column": 33 + } + }, + "object": { + "type": "Identifier", + "start": 379, + "end": 394, + "loc": { + "start": { + "line": 19, + "column": 13 + }, + "end": { + "line": 19, + "column": 28 + } + }, + "name": "ActivityActions" + }, + "property": { + "type": "Identifier", + "start": 395, + "end": 399, + "loc": { + "start": { + "line": 19, + "column": 29 + }, + "end": { + "line": 19, + "column": 33 + } + }, + "name": "LOAD" + }, + "computed": false + } + }, + { + "type": "SwitchCase", + "start": 567, + "end": 891, + "loc": { + "start": { + "line": 27, + "column": 8 + }, + "end": { + "line": 35, + "column": 14 + } + }, + "consequent": [ + { + "type": "ReturnStatement", + "start": 609, + "end": 891, + "loc": { + "start": { + "line": 28, + "column": 12 + }, + "end": { + "line": 35, + "column": 14 + } + }, + "argument": { + "type": "CallExpression", + "start": 616, + "end": 891, + "loc": { + "start": { + "line": 28, + "column": 19 + }, + "end": { + "line": 35, + "column": 14 + } + }, + "callee": { + "type": "MemberExpression", + "start": 616, + "end": 625, + "loc": { + "start": { + "line": 28, + "column": 19 + }, + "end": { + "line": 28, + "column": 28 + } + }, + "object": { + "type": "Identifier", + "start": 616, + "end": 621, + "loc": { + "start": { + "line": 28, + "column": 19 + }, + "end": { + "line": 28, + "column": 24 + } + }, + "name": "state" + }, + "property": { + "type": "Identifier", + "start": 622, + "end": 625, + "loc": { + "start": { + "line": 28, + "column": 25 + }, + "end": { + "line": 28, + "column": 28 + } + }, + "name": "map" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 626, + "end": 890, + "loc": { + "start": { + "line": 28, + "column": 29 + }, + "end": { + "line": 35, + "column": 13 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 627, + "end": 631, + "loc": { + "start": { + "line": 28, + "column": 30 + }, + "end": { + "line": 28, + "column": 34 + } + }, + "name": "item" + } + ], + "body": { + "type": "BlockStatement", + "start": 636, + "end": 890, + "loc": { + "start": { + "line": 28, + "column": 39 + }, + "end": { + "line": 35, + "column": 13 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 654, + "end": 848, + "loc": { + "start": { + "line": 29, + "column": 16 + }, + "end": { + "line": 33, + "column": 17 + } + }, + "test": { + "type": "LogicalExpression", + "start": 658, + "end": 713, + "loc": { + "start": { + "line": 29, + "column": 20 + }, + "end": { + "line": 29, + "column": 75 + } + }, + "left": { + "type": "BinaryExpression", + "start": 658, + "end": 688, + "loc": { + "start": { + "line": 29, + "column": 20 + }, + "end": { + "line": 29, + "column": 50 + } + }, + "left": { + "type": "MemberExpression", + "start": 658, + "end": 670, + "loc": { + "start": { + "line": 29, + "column": 20 + }, + "end": { + "line": 29, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 658, + "end": 662, + "loc": { + "start": { + "line": 29, + "column": 20 + }, + "end": { + "line": 29, + "column": 24 + } + }, + "name": "item" + }, + "property": { + "type": "Identifier", + "start": 663, + "end": 670, + "loc": { + "start": { + "line": 29, + "column": 25 + }, + "end": { + "line": 29, + "column": 32 + } + }, + "name": "user_id" + }, + "computed": false + }, + "operator": "===", + "right": { + "type": "MemberExpression", + "start": 675, + "end": 688, + "loc": { + "start": { + "line": 29, + "column": 37 + }, + "end": { + "line": 29, + "column": 50 + } + }, + "object": { + "type": "Identifier", + "start": 675, + "end": 681, + "loc": { + "start": { + "line": 29, + "column": 37 + }, + "end": { + "line": 29, + "column": 43 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 682, + "end": 688, + "loc": { + "start": { + "line": 29, + "column": 44 + }, + "end": { + "line": 29, + "column": 50 + } + }, + "name": "userID" + }, + "computed": false + } + }, + "operator": "&&", + "right": { + "type": "BinaryExpression", + "start": 692, + "end": 713, + "loc": { + "start": { + "line": 29, + "column": 54 + }, + "end": { + "line": 29, + "column": 75 + } + }, + "left": { + "type": "MemberExpression", + "start": 692, + "end": 701, + "loc": { + "start": { + "line": 29, + "column": 54 + }, + "end": { + "line": 29, + "column": 63 + } + }, + "object": { + "type": "Identifier", + "start": 692, + "end": 696, + "loc": { + "start": { + "line": 29, + "column": 54 + }, + "end": { + "line": 29, + "column": 58 + } + }, + "name": "item" + }, + "property": { + "type": "Identifier", + "start": 697, + "end": 701, + "loc": { + "start": { + "line": 29, + "column": 59 + }, + "end": { + "line": 29, + "column": 63 + } + }, + "name": "type" + }, + "computed": false + }, + "operator": "==", + "right": { + "type": "Literal", + "start": 705, + "end": 713, + "loc": { + "start": { + "line": 29, + "column": 67 + }, + "end": { + "line": 29, + "column": 75 + } + }, + "value": "follow", + "rawValue": "follow", + "raw": "'follow'" + } + } + }, + "consequent": { + "type": "BlockStatement", + "start": 715, + "end": 848, + "loc": { + "start": { + "line": 29, + "column": 77 + }, + "end": { + "line": 33, + "column": 17 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 737, + "end": 830, + "loc": { + "start": { + "line": 30, + "column": 20 + }, + "end": { + "line": 32, + "column": 22 + } + }, + "argument": { + "type": "CallExpression", + "start": 744, + "end": 830, + "loc": { + "start": { + "line": 30, + "column": 27 + }, + "end": { + "line": 32, + "column": 22 + } + }, + "callee": { + "type": "MemberExpression", + "start": 744, + "end": 757, + "loc": { + "start": { + "line": 30, + "column": 27 + }, + "end": { + "line": 30, + "column": 40 + } + }, + "object": { + "type": "Identifier", + "start": 744, + "end": 750, + "loc": { + "start": { + "line": 30, + "column": 27 + }, + "end": { + "line": 30, + "column": 33 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 751, + "end": 757, + "loc": { + "start": { + "line": 30, + "column": 34 + }, + "end": { + "line": 30, + "column": 40 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 758, + "end": 760, + "loc": { + "start": { + "line": 30, + "column": 41 + }, + "end": { + "line": 30, + "column": 43 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 762, + "end": 766, + "loc": { + "start": { + "line": 30, + "column": 45 + }, + "end": { + "line": 30, + "column": 49 + } + }, + "name": "item" + }, + { + "type": "ObjectExpression", + "start": 768, + "end": 829, + "loc": { + "start": { + "line": 30, + "column": 51 + }, + "end": { + "line": 32, + "column": 21 + } + }, + "properties": [ + { + "type": "Property", + "start": 794, + "end": 806, + "loc": { + "start": { + "line": 31, + "column": 24 + }, + "end": { + "line": 31, + "column": 36 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 794, + "end": 803, + "loc": { + "start": { + "line": 31, + "column": 24 + }, + "end": { + "line": 31, + "column": 33 + } + }, + "name": "following" + }, + "value": { + "type": "Literal", + "start": 805, + "end": 806, + "loc": { + "start": { + "line": 31, + "column": 35 + }, + "end": { + "line": 31, + "column": 36 + } + }, + "value": 0, + "rawValue": 0, + "raw": "0" + }, + "kind": "init" + } + ] + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 865, + "end": 876, + "loc": { + "start": { + "line": 34, + "column": 16 + }, + "end": { + "line": 34, + "column": 27 + } + }, + "argument": { + "type": "Identifier", + "start": 872, + "end": 876, + "loc": { + "start": { + "line": 34, + "column": 23 + }, + "end": { + "line": 34, + "column": 27 + } + }, + "name": "item" + } + } + ] + } + } + ] + } + } + ], + "test": { + "type": "MemberExpression", + "start": 572, + "end": 595, + "loc": { + "start": { + "line": 27, + "column": 13 + }, + "end": { + "line": 27, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 572, + "end": 586, + "loc": { + "start": { + "line": 27, + "column": 13 + }, + "end": { + "line": 27, + "column": 27 + } + }, + "name": "ProfileActions" + }, + "property": { + "type": "Identifier", + "start": 587, + "end": 595, + "loc": { + "start": { + "line": 27, + "column": 28 + }, + "end": { + "line": 27, + "column": 36 + } + }, + "name": "UNFOLLOW" + }, + "computed": false + } + }, + { + "type": "SwitchCase", + "start": 901, + "end": 1329, + "loc": { + "start": { + "line": 37, + "column": 8 + }, + "end": { + "line": 48, + "column": 24 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 941, + "end": 1304, + "loc": { + "start": { + "line": 38, + "column": 12 + }, + "end": { + "line": 47, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 945, + "end": 960, + "loc": { + "start": { + "line": 38, + "column": 16 + }, + "end": { + "line": 38, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 945, + "end": 951, + "loc": { + "start": { + "line": 38, + "column": 16 + }, + "end": { + "line": 38, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 952, + "end": 960, + "loc": { + "start": { + "line": 38, + "column": 23 + }, + "end": { + "line": 38, + "column": 31 + } + }, + "name": "response" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 962, + "end": 1304, + "loc": { + "start": { + "line": 38, + "column": 33 + }, + "end": { + "line": 47, + "column": 13 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 980, + "end": 1290, + "loc": { + "start": { + "line": 39, + "column": 16 + }, + "end": { + "line": 46, + "column": 18 + } + }, + "argument": { + "type": "CallExpression", + "start": 987, + "end": 1290, + "loc": { + "start": { + "line": 39, + "column": 23 + }, + "end": { + "line": 46, + "column": 18 + } + }, + "callee": { + "type": "MemberExpression", + "start": 987, + "end": 996, + "loc": { + "start": { + "line": 39, + "column": 23 + }, + "end": { + "line": 39, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 987, + "end": 992, + "loc": { + "start": { + "line": 39, + "column": 23 + }, + "end": { + "line": 39, + "column": 28 + } + }, + "name": "state" + }, + "property": { + "type": "Identifier", + "start": 993, + "end": 996, + "loc": { + "start": { + "line": 39, + "column": 29 + }, + "end": { + "line": 39, + "column": 32 + } + }, + "name": "map" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 997, + "end": 1289, + "loc": { + "start": { + "line": 39, + "column": 33 + }, + "end": { + "line": 46, + "column": 17 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 998, + "end": 1002, + "loc": { + "start": { + "line": 39, + "column": 34 + }, + "end": { + "line": 39, + "column": 38 + } + }, + "name": "item" + } + ], + "body": { + "type": "BlockStatement", + "start": 1007, + "end": 1289, + "loc": { + "start": { + "line": 39, + "column": 43 + }, + "end": { + "line": 46, + "column": 17 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 1029, + "end": 1239, + "loc": { + "start": { + "line": 40, + "column": 20 + }, + "end": { + "line": 44, + "column": 21 + } + }, + "test": { + "type": "LogicalExpression", + "start": 1033, + "end": 1088, + "loc": { + "start": { + "line": 40, + "column": 24 + }, + "end": { + "line": 40, + "column": 79 + } + }, + "left": { + "type": "BinaryExpression", + "start": 1033, + "end": 1063, + "loc": { + "start": { + "line": 40, + "column": 24 + }, + "end": { + "line": 40, + "column": 54 + } + }, + "left": { + "type": "MemberExpression", + "start": 1033, + "end": 1045, + "loc": { + "start": { + "line": 40, + "column": 24 + }, + "end": { + "line": 40, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 1033, + "end": 1037, + "loc": { + "start": { + "line": 40, + "column": 24 + }, + "end": { + "line": 40, + "column": 28 + } + }, + "name": "item" + }, + "property": { + "type": "Identifier", + "start": 1038, + "end": 1045, + "loc": { + "start": { + "line": 40, + "column": 29 + }, + "end": { + "line": 40, + "column": 36 + } + }, + "name": "user_id" + }, + "computed": false + }, + "operator": "===", + "right": { + "type": "MemberExpression", + "start": 1050, + "end": 1063, + "loc": { + "start": { + "line": 40, + "column": 41 + }, + "end": { + "line": 40, + "column": 54 + } + }, + "object": { + "type": "Identifier", + "start": 1050, + "end": 1056, + "loc": { + "start": { + "line": 40, + "column": 41 + }, + "end": { + "line": 40, + "column": 47 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1057, + "end": 1063, + "loc": { + "start": { + "line": 40, + "column": 48 + }, + "end": { + "line": 40, + "column": 54 + } + }, + "name": "userID" + }, + "computed": false + } + }, + "operator": "&&", + "right": { + "type": "BinaryExpression", + "start": 1067, + "end": 1088, + "loc": { + "start": { + "line": 40, + "column": 58 + }, + "end": { + "line": 40, + "column": 79 + } + }, + "left": { + "type": "MemberExpression", + "start": 1067, + "end": 1076, + "loc": { + "start": { + "line": 40, + "column": 58 + }, + "end": { + "line": 40, + "column": 67 + } + }, + "object": { + "type": "Identifier", + "start": 1067, + "end": 1071, + "loc": { + "start": { + "line": 40, + "column": 58 + }, + "end": { + "line": 40, + "column": 62 + } + }, + "name": "item" + }, + "property": { + "type": "Identifier", + "start": 1072, + "end": 1076, + "loc": { + "start": { + "line": 40, + "column": 63 + }, + "end": { + "line": 40, + "column": 67 + } + }, + "name": "type" + }, + "computed": false + }, + "operator": "==", + "right": { + "type": "Literal", + "start": 1080, + "end": 1088, + "loc": { + "start": { + "line": 40, + "column": 71 + }, + "end": { + "line": 40, + "column": 79 + } + }, + "value": "follow", + "rawValue": "follow", + "raw": "'follow'" + } + } + }, + "consequent": { + "type": "BlockStatement", + "start": 1090, + "end": 1239, + "loc": { + "start": { + "line": 40, + "column": 81 + }, + "end": { + "line": 44, + "column": 21 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 1116, + "end": 1217, + "loc": { + "start": { + "line": 41, + "column": 24 + }, + "end": { + "line": 43, + "column": 26 + } + }, + "argument": { + "type": "CallExpression", + "start": 1123, + "end": 1217, + "loc": { + "start": { + "line": 41, + "column": 31 + }, + "end": { + "line": 43, + "column": 26 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1123, + "end": 1136, + "loc": { + "start": { + "line": 41, + "column": 31 + }, + "end": { + "line": 41, + "column": 44 + } + }, + "object": { + "type": "Identifier", + "start": 1123, + "end": 1129, + "loc": { + "start": { + "line": 41, + "column": 31 + }, + "end": { + "line": 41, + "column": 37 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 1130, + "end": 1136, + "loc": { + "start": { + "line": 41, + "column": 38 + }, + "end": { + "line": 41, + "column": 44 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 1137, + "end": 1139, + "loc": { + "start": { + "line": 41, + "column": 45 + }, + "end": { + "line": 41, + "column": 47 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 1141, + "end": 1145, + "loc": { + "start": { + "line": 41, + "column": 49 + }, + "end": { + "line": 41, + "column": 53 + } + }, + "name": "item" + }, + { + "type": "ObjectExpression", + "start": 1147, + "end": 1216, + "loc": { + "start": { + "line": 41, + "column": 55 + }, + "end": { + "line": 43, + "column": 25 + } + }, + "properties": [ + { + "type": "Property", + "start": 1177, + "end": 1189, + "loc": { + "start": { + "line": 42, + "column": 28 + }, + "end": { + "line": 42, + "column": 40 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1177, + "end": 1186, + "loc": { + "start": { + "line": 42, + "column": 28 + }, + "end": { + "line": 42, + "column": 37 + } + }, + "name": "following" + }, + "value": { + "type": "Literal", + "start": 1188, + "end": 1189, + "loc": { + "start": { + "line": 42, + "column": 39 + }, + "end": { + "line": 42, + "column": 40 + } + }, + "value": 1, + "rawValue": 1, + "raw": "1" + }, + "kind": "init" + } + ] + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 1260, + "end": 1271, + "loc": { + "start": { + "line": 45, + "column": 20 + }, + "end": { + "line": 45, + "column": 31 + } + }, + "argument": { + "type": "Identifier", + "start": 1267, + "end": 1271, + "loc": { + "start": { + "line": 45, + "column": 27 + }, + "end": { + "line": 45, + "column": 31 + } + }, + "name": "item" + } + } + ] + } + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 1317, + "end": 1329, + "loc": { + "start": { + "line": 48, + "column": 12 + }, + "end": { + "line": 48, + "column": 24 + } + }, + "argument": { + "type": "Identifier", + "start": 1324, + "end": 1329, + "loc": { + "start": { + "line": 48, + "column": 19 + }, + "end": { + "line": 48, + "column": 24 + } + }, + "name": "state" + } + } + ], + "test": { + "type": "MemberExpression", + "start": 906, + "end": 927, + "loc": { + "start": { + "line": 37, + "column": 13 + }, + "end": { + "line": 37, + "column": 34 + } + }, + "object": { + "type": "Identifier", + "start": 906, + "end": 920, + "loc": { + "start": { + "line": 37, + "column": 13 + }, + "end": { + "line": 37, + "column": 27 + } + }, + "name": "ProfileActions" + }, + "property": { + "type": "Identifier", + "start": 921, + "end": 927, + "loc": { + "start": { + "line": 37, + "column": 28 + }, + "end": { + "line": 37, + "column": 34 + } + }, + "name": "FOLLOW" + }, + "computed": false + } + } + ] + }, + { + "type": "ReturnStatement", + "start": 1341, + "end": 1353, + "loc": { + "start": { + "line": 51, + "column": 4 + }, + "end": { + "line": 51, + "column": 16 + } + }, + "argument": { + "type": "Identifier", + "start": 1348, + "end": 1353, + "loc": { + "start": { + "line": 51, + "column": 11 + }, + "end": { + "line": 51, + "column": 16 + } + }, + "name": "state" + } + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Activity\n * Redux Reducer for Activity action\n * Reference: http://redux.js.org/docs/basics/Reducers.html\n * @param state\n * @param action\n * @returns {*}\n * @constructor\n ", + "start": 116, + "end": 297, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 15, + "column": 3 + } + }, + "range": [ + 116, + 297 + ] + } + ], + "trailingComments": [] + } + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/reducers/App.js.json b/app/docs/ast/source/reducers/App.js.json new file mode 100644 index 0000000..9ed3693 --- /dev/null +++ b/app/docs/ast/source/reducers/App.js.json @@ -0,0 +1,1289 @@ +{ + "type": "Program", + "start": 0, + "end": 537, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 32, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 48, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 16 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 13, + "end": 30, + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 21 + } + }, + "imported": { + "type": "Identifier", + "start": 13, + "end": 16, + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 7 + } + }, + "name": "App" + }, + "local": { + "type": "Identifier", + "start": 20, + "end": 30, + "loc": { + "start": { + "line": 2, + "column": 11 + }, + "end": { + "line": 2, + "column": 21 + } + }, + "name": "AppActions" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 39, + "end": 48, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 16 + } + }, + "value": "actions", + "rawValue": "actions", + "raw": "'actions'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * initialState\n * @type {{loading: boolean}}\n ", + "start": 50, + "end": 103, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + }, + "range": [ + 50, + 103 + ] + } + ] + }, + { + "type": "VariableDeclaration", + "start": 104, + "end": 143, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 39 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 110, + "end": 143, + "loc": { + "start": { + "line": 9, + "column": 6 + }, + "end": { + "line": 9, + "column": 39 + } + }, + "id": { + "type": "Identifier", + "start": 110, + "end": 122, + "loc": { + "start": { + "line": 9, + "column": 6 + }, + "end": { + "line": 9, + "column": 18 + } + }, + "name": "initialState", + "leadingComments": null + }, + "init": { + "type": "ObjectExpression", + "start": 125, + "end": 143, + "loc": { + "start": { + "line": 9, + "column": 21 + }, + "end": { + "line": 9, + "column": 39 + } + }, + "properties": [ + { + "type": "Property", + "start": 127, + "end": 140, + "loc": { + "start": { + "line": 9, + "column": 23 + }, + "end": { + "line": 9, + "column": 36 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 127, + "end": 134, + "loc": { + "start": { + "line": 9, + "column": 23 + }, + "end": { + "line": 9, + "column": 30 + } + }, + "name": "loading" + }, + "value": { + "type": "Literal", + "start": 136, + "end": 140, + "loc": { + "start": { + "line": 9, + "column": 32 + }, + "end": { + "line": 9, + "column": 36 + } + }, + "value": true, + "rawValue": true, + "raw": "true" + }, + "kind": "init" + } + ], + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * initialState\n * @type {{loading: boolean}}\n ", + "start": 50, + "end": 103, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + }, + "range": [ + 50, + 103 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * App\n * Redux Reducer for App action\n * Reference: http://redux.js.org/docs/basics/Reducers.html\n * @param state\n * @param action\n * @returns {*}\n * @constructor\n ", + "start": 145, + "end": 316, + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 19, + "column": 3 + } + }, + "range": [ + 145, + 316 + ] + } + ] + }, + { + "type": "Identifier", + "start": 317, + "end": 516, + "loc": { + "start": { + "line": 20, + "column": 0 + }, + "end": { + "line": 29, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 326, + "end": 329, + "loc": { + "start": { + "line": 20, + "column": 9 + }, + "end": { + "line": 20, + "column": 12 + } + }, + "name": "App", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "AssignmentPattern", + "start": 330, + "end": 350, + "loc": { + "start": { + "line": 20, + "column": 13 + }, + "end": { + "line": 20, + "column": 33 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 330, + "end": 335, + "loc": { + "start": { + "line": 20, + "column": 13 + }, + "end": { + "line": 20, + "column": 18 + } + }, + "name": "state" + }, + "right": { + "type": "Identifier", + "start": 338, + "end": 350, + "loc": { + "start": { + "line": 20, + "column": 21 + }, + "end": { + "line": 20, + "column": 33 + } + }, + "name": "initialState" + } + }, + { + "type": "Identifier", + "start": 352, + "end": 358, + "loc": { + "start": { + "line": 20, + "column": 35 + }, + "end": { + "line": 20, + "column": 41 + } + }, + "name": "action" + } + ], + "body": { + "type": "BlockStatement", + "start": 360, + "end": 516, + "loc": { + "start": { + "line": 20, + "column": 43 + }, + "end": { + "line": 29, + "column": 1 + } + }, + "body": [ + { + "type": "SwitchStatement", + "start": 367, + "end": 496, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 26, + "column": 5 + } + }, + "discriminant": { + "type": "MemberExpression", + "start": 375, + "end": 386, + "loc": { + "start": { + "line": 22, + "column": 12 + }, + "end": { + "line": 22, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 375, + "end": 381, + "loc": { + "start": { + "line": 22, + "column": 12 + }, + "end": { + "line": 22, + "column": 18 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 382, + "end": 386, + "loc": { + "start": { + "line": 22, + "column": 19 + }, + "end": { + "line": 22, + "column": 23 + } + }, + "name": "type" + }, + "computed": false + }, + "cases": [ + { + "type": "SwitchCase", + "start": 399, + "end": 490, + "loc": { + "start": { + "line": 24, + "column": 8 + }, + "end": { + "line": 25, + "column": 64 + } + }, + "consequent": [ + { + "type": "ReturnStatement", + "start": 438, + "end": 490, + "loc": { + "start": { + "line": 25, + "column": 12 + }, + "end": { + "line": 25, + "column": 64 + } + }, + "argument": { + "type": "CallExpression", + "start": 445, + "end": 490, + "loc": { + "start": { + "line": 25, + "column": 19 + }, + "end": { + "line": 25, + "column": 64 + } + }, + "callee": { + "type": "MemberExpression", + "start": 445, + "end": 458, + "loc": { + "start": { + "line": 25, + "column": 19 + }, + "end": { + "line": 25, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 445, + "end": 451, + "loc": { + "start": { + "line": 25, + "column": 19 + }, + "end": { + "line": 25, + "column": 25 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 452, + "end": 458, + "loc": { + "start": { + "line": 25, + "column": 26 + }, + "end": { + "line": 25, + "column": 32 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 459, + "end": 461, + "loc": { + "start": { + "line": 25, + "column": 33 + }, + "end": { + "line": 25, + "column": 35 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 463, + "end": 468, + "loc": { + "start": { + "line": 25, + "column": 37 + }, + "end": { + "line": 25, + "column": 42 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 470, + "end": 489, + "loc": { + "start": { + "line": 25, + "column": 44 + }, + "end": { + "line": 25, + "column": 63 + } + }, + "properties": [ + { + "type": "Property", + "start": 472, + "end": 486, + "loc": { + "start": { + "line": 25, + "column": 46 + }, + "end": { + "line": 25, + "column": 60 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 472, + "end": 479, + "loc": { + "start": { + "line": 25, + "column": 46 + }, + "end": { + "line": 25, + "column": 53 + } + }, + "name": "loading" + }, + "value": { + "type": "Literal", + "start": 481, + "end": 486, + "loc": { + "start": { + "line": 25, + "column": 55 + }, + "end": { + "line": 25, + "column": 60 + } + }, + "value": false, + "rawValue": false, + "raw": "false" + }, + "kind": "init" + } + ] + } + ] + } + } + ], + "test": { + "type": "MemberExpression", + "start": 404, + "end": 424, + "loc": { + "start": { + "line": 24, + "column": 13 + }, + "end": { + "line": 24, + "column": 33 + } + }, + "object": { + "type": "Identifier", + "start": 404, + "end": 414, + "loc": { + "start": { + "line": 24, + "column": 13 + }, + "end": { + "line": 24, + "column": 23 + } + }, + "name": "AppActions" + }, + "property": { + "type": "Identifier", + "start": 415, + "end": 424, + "loc": { + "start": { + "line": 24, + "column": 24 + }, + "end": { + "line": 24, + "column": 33 + } + }, + "name": "INIT_DONE" + }, + "computed": false + } + } + ] + }, + { + "type": "ReturnStatement", + "start": 502, + "end": 514, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 16 + } + }, + "argument": { + "type": "Identifier", + "start": 509, + "end": 514, + "loc": { + "start": { + "line": 28, + "column": 11 + }, + "end": { + "line": 28, + "column": 16 + } + }, + "name": "state" + } + } + ] + }, + "leadingComments": [], + "name": "_", + "trailingComments": [] + }, + { + "type": "Identifier", + "start": 518, + "end": 536, + "loc": { + "start": { + "line": 31, + "column": 0 + }, + "end": { + "line": 31, + "column": 18 + } + }, + "declaration": { + "type": "Identifier", + "start": 533, + "end": 536, + "loc": { + "start": { + "line": 31, + "column": 15 + }, + "end": { + "line": 31, + "column": 18 + } + }, + "name": "App" + }, + "name": "_", + "leadingComments": [], + "trailingComments": [] + }, + { + "type": "ExportDefaultDeclaration", + "start": 518, + "end": 536, + "loc": { + "start": { + "line": 31, + "column": 0 + }, + "end": { + "line": 31, + "column": 18 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 317, + "end": 516, + "loc": { + "start": { + "line": 20, + "column": 0 + }, + "end": { + "line": 29, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 326, + "end": 329, + "loc": { + "start": { + "line": 20, + "column": 9 + }, + "end": { + "line": 20, + "column": 12 + } + }, + "name": "App", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "AssignmentPattern", + "start": 330, + "end": 350, + "loc": { + "start": { + "line": 20, + "column": 13 + }, + "end": { + "line": 20, + "column": 33 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 330, + "end": 335, + "loc": { + "start": { + "line": 20, + "column": 13 + }, + "end": { + "line": 20, + "column": 18 + } + }, + "name": "state" + }, + "right": { + "type": "Identifier", + "start": 338, + "end": 350, + "loc": { + "start": { + "line": 20, + "column": 21 + }, + "end": { + "line": 20, + "column": 33 + } + }, + "name": "initialState" + } + }, + { + "type": "Identifier", + "start": 352, + "end": 358, + "loc": { + "start": { + "line": 20, + "column": 35 + }, + "end": { + "line": 20, + "column": 41 + } + }, + "name": "action" + } + ], + "body": { + "type": "BlockStatement", + "start": 360, + "end": 516, + "loc": { + "start": { + "line": 20, + "column": 43 + }, + "end": { + "line": 29, + "column": 1 + } + }, + "body": [ + { + "type": "SwitchStatement", + "start": 367, + "end": 496, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 26, + "column": 5 + } + }, + "discriminant": { + "type": "MemberExpression", + "start": 375, + "end": 386, + "loc": { + "start": { + "line": 22, + "column": 12 + }, + "end": { + "line": 22, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 375, + "end": 381, + "loc": { + "start": { + "line": 22, + "column": 12 + }, + "end": { + "line": 22, + "column": 18 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 382, + "end": 386, + "loc": { + "start": { + "line": 22, + "column": 19 + }, + "end": { + "line": 22, + "column": 23 + } + }, + "name": "type" + }, + "computed": false + }, + "cases": [ + { + "type": "SwitchCase", + "start": 399, + "end": 490, + "loc": { + "start": { + "line": 24, + "column": 8 + }, + "end": { + "line": 25, + "column": 64 + } + }, + "consequent": [ + { + "type": "ReturnStatement", + "start": 438, + "end": 490, + "loc": { + "start": { + "line": 25, + "column": 12 + }, + "end": { + "line": 25, + "column": 64 + } + }, + "argument": { + "type": "CallExpression", + "start": 445, + "end": 490, + "loc": { + "start": { + "line": 25, + "column": 19 + }, + "end": { + "line": 25, + "column": 64 + } + }, + "callee": { + "type": "MemberExpression", + "start": 445, + "end": 458, + "loc": { + "start": { + "line": 25, + "column": 19 + }, + "end": { + "line": 25, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 445, + "end": 451, + "loc": { + "start": { + "line": 25, + "column": 19 + }, + "end": { + "line": 25, + "column": 25 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 452, + "end": 458, + "loc": { + "start": { + "line": 25, + "column": 26 + }, + "end": { + "line": 25, + "column": 32 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 459, + "end": 461, + "loc": { + "start": { + "line": 25, + "column": 33 + }, + "end": { + "line": 25, + "column": 35 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 463, + "end": 468, + "loc": { + "start": { + "line": 25, + "column": 37 + }, + "end": { + "line": 25, + "column": 42 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 470, + "end": 489, + "loc": { + "start": { + "line": 25, + "column": 44 + }, + "end": { + "line": 25, + "column": 63 + } + }, + "properties": [ + { + "type": "Property", + "start": 472, + "end": 486, + "loc": { + "start": { + "line": 25, + "column": 46 + }, + "end": { + "line": 25, + "column": 60 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 472, + "end": 479, + "loc": { + "start": { + "line": 25, + "column": 46 + }, + "end": { + "line": 25, + "column": 53 + } + }, + "name": "loading" + }, + "value": { + "type": "Literal", + "start": 481, + "end": 486, + "loc": { + "start": { + "line": 25, + "column": 55 + }, + "end": { + "line": 25, + "column": 60 + } + }, + "value": false, + "rawValue": false, + "raw": "false" + }, + "kind": "init" + } + ] + } + ] + } + } + ], + "test": { + "type": "MemberExpression", + "start": 404, + "end": 424, + "loc": { + "start": { + "line": 24, + "column": 13 + }, + "end": { + "line": 24, + "column": 33 + } + }, + "object": { + "type": "Identifier", + "start": 404, + "end": 414, + "loc": { + "start": { + "line": 24, + "column": 13 + }, + "end": { + "line": 24, + "column": 23 + } + }, + "name": "AppActions" + }, + "property": { + "type": "Identifier", + "start": 415, + "end": 424, + "loc": { + "start": { + "line": 24, + "column": 24 + }, + "end": { + "line": 24, + "column": 33 + } + }, + "name": "INIT_DONE" + }, + "computed": false + } + } + ] + }, + { + "type": "ReturnStatement", + "start": 502, + "end": 514, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 16 + } + }, + "argument": { + "type": "Identifier", + "start": 509, + "end": 514, + "loc": { + "start": { + "line": 28, + "column": 11 + }, + "end": { + "line": 28, + "column": 16 + } + }, + "name": "state" + } + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * App\n * Redux Reducer for App action\n * Reference: http://redux.js.org/docs/basics/Reducers.html\n * @param state\n * @param action\n * @returns {*}\n * @constructor\n ", + "start": 145, + "end": 316, + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 19, + "column": 3 + } + }, + "range": [ + 145, + 316 + ] + } + ], + "trailingComments": [] + } + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/reducers/Comments.js.json b/app/docs/ast/source/reducers/Comments.js.json new file mode 100644 index 0000000..6010096 --- /dev/null +++ b/app/docs/ast/source/reducers/Comments.js.json @@ -0,0 +1,4399 @@ +{ + "type": "Program", + "start": 0, + "end": 1514, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 64, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 37, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 37 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 9, + "end": 21, + "loc": { + "start": { + "line": 1, + "column": 9 + }, + "end": { + "line": 1, + "column": 21 + } + }, + "imported": { + "type": "Identifier", + "start": 9, + "end": 21, + "loc": { + "start": { + "line": 1, + "column": 9 + }, + "end": { + "line": 1, + "column": 21 + } + }, + "name": "camelizeKeys" + }, + "local": { + "type": "Identifier", + "start": 9, + "end": 21, + "loc": { + "start": { + "line": 1, + "column": 9 + }, + "end": { + "line": 1, + "column": 21 + } + }, + "name": "camelizeKeys" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 30, + "end": 37, + "loc": { + "start": { + "line": 1, + "column": 30 + }, + "end": { + "line": 1, + "column": 37 + } + }, + "value": "humps", + "rawValue": "humps", + "raw": "'humps'" + } + }, + { + "type": "ImportDeclaration", + "start": 39, + "end": 96, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 5, + "column": 16 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 52, + "end": 78, + "loc": { + "start": { + "line": 4, + "column": 4 + }, + "end": { + "line": 4, + "column": 30 + } + }, + "imported": { + "type": "Identifier", + "start": 52, + "end": 60, + "loc": { + "start": { + "line": 4, + "column": 4 + }, + "end": { + "line": 4, + "column": 12 + } + }, + "name": "Comments" + }, + "local": { + "type": "Identifier", + "start": 64, + "end": 78, + "loc": { + "start": { + "line": 4, + "column": 16 + }, + "end": { + "line": 4, + "column": 30 + } + }, + "name": "CommentActions" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 87, + "end": 96, + "loc": { + "start": { + "line": 5, + "column": 7 + }, + "end": { + "line": 5, + "column": 16 + } + }, + "value": "actions", + "rawValue": "actions", + "raw": "'actions'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * initialState\n * @type {{comments: Array, uploadID: null}}\n ", + "start": 98, + "end": 166, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 10, + "column": 3 + } + }, + "range": [ + 98, + 166 + ] + } + ] + }, + { + "type": "VariableDeclaration", + "start": 167, + "end": 229, + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 14, + "column": 1 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 173, + "end": 229, + "loc": { + "start": { + "line": 11, + "column": 6 + }, + "end": { + "line": 14, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 173, + "end": 185, + "loc": { + "start": { + "line": 11, + "column": 6 + }, + "end": { + "line": 11, + "column": 18 + } + }, + "name": "initialState", + "leadingComments": null + }, + "init": { + "type": "ObjectExpression", + "start": 188, + "end": 229, + "loc": { + "start": { + "line": 11, + "column": 21 + }, + "end": { + "line": 14, + "column": 1 + } + }, + "properties": [ + { + "type": "Property", + "start": 194, + "end": 206, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 16 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 194, + "end": 202, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 12 + } + }, + "name": "comments" + }, + "value": { + "type": "ArrayExpression", + "start": 204, + "end": 206, + "loc": { + "start": { + "line": 12, + "column": 14 + }, + "end": { + "line": 12, + "column": 16 + } + }, + "elements": [] + }, + "kind": "init" + }, + { + "type": "Property", + "start": 212, + "end": 226, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 18 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 212, + "end": 220, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 12 + } + }, + "name": "uploadID" + }, + "value": { + "type": "Literal", + "start": 222, + "end": 226, + "loc": { + "start": { + "line": 13, + "column": 14 + }, + "end": { + "line": 13, + "column": 18 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + "kind": "init" + } + ], + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * initialState\n * @type {{comments: Array, uploadID: null}}\n ", + "start": 98, + "end": 166, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 10, + "column": 3 + } + }, + "range": [ + 98, + 166 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Redux Reducer for Comments action\n * Reference: http://redux.js.org/docs/basics/Reducers.html\n * @param state\n * @param action\n * @returns {*}\n * @constructor\n ", + "start": 231, + "end": 400, + "loc": { + "start": { + "line": 16, + "column": 0 + }, + "end": { + "line": 23, + "column": 3 + } + }, + "range": [ + 231, + 400 + ] + } + ] + }, + { + "type": "Identifier", + "start": 401, + "end": 1492, + "loc": { + "start": { + "line": 24, + "column": 0 + }, + "end": { + "line": 61, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 410, + "end": 414, + "loc": { + "start": { + "line": 24, + "column": 9 + }, + "end": { + "line": 24, + "column": 13 + } + }, + "name": "Post", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "AssignmentPattern", + "start": 415, + "end": 435, + "loc": { + "start": { + "line": 24, + "column": 14 + }, + "end": { + "line": 24, + "column": 34 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 415, + "end": 420, + "loc": { + "start": { + "line": 24, + "column": 14 + }, + "end": { + "line": 24, + "column": 19 + } + }, + "name": "state" + }, + "right": { + "type": "Identifier", + "start": 423, + "end": 435, + "loc": { + "start": { + "line": 24, + "column": 22 + }, + "end": { + "line": 24, + "column": 34 + } + }, + "name": "initialState" + } + }, + { + "type": "Identifier", + "start": 437, + "end": 443, + "loc": { + "start": { + "line": 24, + "column": 36 + }, + "end": { + "line": 24, + "column": 42 + } + }, + "name": "action" + } + ], + "body": { + "type": "BlockStatement", + "start": 445, + "end": 1492, + "loc": { + "start": { + "line": 24, + "column": 44 + }, + "end": { + "line": 61, + "column": 1 + } + }, + "body": [ + { + "type": "SwitchStatement", + "start": 451, + "end": 1472, + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 58, + "column": 5 + } + }, + "discriminant": { + "type": "MemberExpression", + "start": 459, + "end": 470, + "loc": { + "start": { + "line": 25, + "column": 12 + }, + "end": { + "line": 25, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 459, + "end": 465, + "loc": { + "start": { + "line": 25, + "column": 12 + }, + "end": { + "line": 25, + "column": 18 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 466, + "end": 470, + "loc": { + "start": { + "line": 25, + "column": 19 + }, + "end": { + "line": 25, + "column": 23 + } + }, + "name": "type" + }, + "computed": false + }, + "cases": [ + { + "type": "SwitchCase", + "start": 483, + "end": 791, + "loc": { + "start": { + "line": 27, + "column": 8 + }, + "end": { + "line": 35, + "column": 31 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 530, + "end": 758, + "loc": { + "start": { + "line": 28, + "column": 12 + }, + "end": { + "line": 33, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 534, + "end": 549, + "loc": { + "start": { + "line": 28, + "column": 16 + }, + "end": { + "line": 28, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 534, + "end": 540, + "loc": { + "start": { + "line": 28, + "column": 16 + }, + "end": { + "line": 28, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 541, + "end": 549, + "loc": { + "start": { + "line": 28, + "column": 23 + }, + "end": { + "line": 28, + "column": 31 + } + }, + "name": "comments" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 551, + "end": 758, + "loc": { + "start": { + "line": 28, + "column": 33 + }, + "end": { + "line": 33, + "column": 13 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 569, + "end": 744, + "loc": { + "start": { + "line": 29, + "column": 16 + }, + "end": { + "line": 32, + "column": 18 + } + }, + "argument": { + "type": "CallExpression", + "start": 576, + "end": 744, + "loc": { + "start": { + "line": 29, + "column": 23 + }, + "end": { + "line": 32, + "column": 18 + } + }, + "callee": { + "type": "MemberExpression", + "start": 576, + "end": 589, + "loc": { + "start": { + "line": 29, + "column": 23 + }, + "end": { + "line": 29, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 576, + "end": 582, + "loc": { + "start": { + "line": 29, + "column": 23 + }, + "end": { + "line": 29, + "column": 29 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 583, + "end": 589, + "loc": { + "start": { + "line": 29, + "column": 30 + }, + "end": { + "line": 29, + "column": 36 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 590, + "end": 592, + "loc": { + "start": { + "line": 29, + "column": 37 + }, + "end": { + "line": 29, + "column": 39 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 594, + "end": 599, + "loc": { + "start": { + "line": 29, + "column": 41 + }, + "end": { + "line": 29, + "column": 46 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 601, + "end": 743, + "loc": { + "start": { + "line": 29, + "column": 48 + }, + "end": { + "line": 32, + "column": 17 + } + }, + "properties": [ + { + "type": "Property", + "start": 623, + "end": 679, + "loc": { + "start": { + "line": 30, + "column": 20 + }, + "end": { + "line": 30, + "column": 76 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 623, + "end": 631, + "loc": { + "start": { + "line": 30, + "column": 20 + }, + "end": { + "line": 30, + "column": 28 + } + }, + "name": "comments" + }, + "value": { + "type": "ArrayExpression", + "start": 633, + "end": 679, + "loc": { + "start": { + "line": 30, + "column": 30 + }, + "end": { + "line": 30, + "column": 76 + } + }, + "elements": [ + { + "type": "SpreadElement", + "start": 634, + "end": 678, + "loc": { + "start": { + "line": 30, + "column": 31 + }, + "end": { + "line": 30, + "column": 75 + } + }, + "argument": { + "type": "CallExpression", + "start": 637, + "end": 678, + "loc": { + "start": { + "line": 30, + "column": 34 + }, + "end": { + "line": 30, + "column": 75 + } + }, + "callee": { + "type": "MemberExpression", + "start": 637, + "end": 656, + "loc": { + "start": { + "line": 30, + "column": 34 + }, + "end": { + "line": 30, + "column": 53 + } + }, + "object": { + "type": "MemberExpression", + "start": 637, + "end": 652, + "loc": { + "start": { + "line": 30, + "column": 34 + }, + "end": { + "line": 30, + "column": 49 + } + }, + "object": { + "type": "Identifier", + "start": 637, + "end": 643, + "loc": { + "start": { + "line": 30, + "column": 34 + }, + "end": { + "line": 30, + "column": 40 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 644, + "end": 652, + "loc": { + "start": { + "line": 30, + "column": 41 + }, + "end": { + "line": 30, + "column": 49 + } + }, + "name": "comments" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 653, + "end": 656, + "loc": { + "start": { + "line": 30, + "column": 50 + }, + "end": { + "line": 30, + "column": 53 + } + }, + "name": "map" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 657, + "end": 677, + "loc": { + "start": { + "line": 30, + "column": 54 + }, + "end": { + "line": 30, + "column": 74 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 657, + "end": 658, + "loc": { + "start": { + "line": 30, + "column": 54 + }, + "end": { + "line": 30, + "column": 55 + } + }, + "name": "c" + } + ], + "body": { + "type": "CallExpression", + "start": 662, + "end": 677, + "loc": { + "start": { + "line": 30, + "column": 59 + }, + "end": { + "line": 30, + "column": 74 + } + }, + "callee": { + "type": "Identifier", + "start": 662, + "end": 674, + "loc": { + "start": { + "line": 30, + "column": 59 + }, + "end": { + "line": 30, + "column": 71 + } + }, + "name": "camelizeKeys" + }, + "arguments": [ + { + "type": "Identifier", + "start": 675, + "end": 676, + "loc": { + "start": { + "line": 30, + "column": 72 + }, + "end": { + "line": 30, + "column": 73 + } + }, + "name": "c" + } + ] + } + } + ] + } + } + ] + }, + "kind": "init" + }, + { + "type": "Property", + "start": 701, + "end": 724, + "loc": { + "start": { + "line": 31, + "column": 20 + }, + "end": { + "line": 31, + "column": 43 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 701, + "end": 709, + "loc": { + "start": { + "line": 31, + "column": 20 + }, + "end": { + "line": 31, + "column": 28 + } + }, + "name": "uploadID" + }, + "value": { + "type": "MemberExpression", + "start": 711, + "end": 724, + "loc": { + "start": { + "line": 31, + "column": 30 + }, + "end": { + "line": 31, + "column": 43 + } + }, + "object": { + "type": "Identifier", + "start": 711, + "end": 717, + "loc": { + "start": { + "line": 31, + "column": 30 + }, + "end": { + "line": 31, + "column": 36 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 718, + "end": 724, + "loc": { + "start": { + "line": 31, + "column": 37 + }, + "end": { + "line": 31, + "column": 43 + } + }, + "name": "postID" + }, + "computed": false + }, + "kind": "init" + } + ] + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 772, + "end": 791, + "loc": { + "start": { + "line": 35, + "column": 12 + }, + "end": { + "line": 35, + "column": 31 + } + }, + "argument": { + "type": "Identifier", + "start": 779, + "end": 791, + "loc": { + "start": { + "line": 35, + "column": 19 + }, + "end": { + "line": 35, + "column": 31 + } + }, + "name": "initialState" + } + } + ], + "test": { + "type": "MemberExpression", + "start": 488, + "end": 516, + "loc": { + "start": { + "line": 27, + "column": 13 + }, + "end": { + "line": 27, + "column": 41 + } + }, + "object": { + "type": "Identifier", + "start": 488, + "end": 502, + "loc": { + "start": { + "line": 27, + "column": 13 + }, + "end": { + "line": 27, + "column": 27 + } + }, + "name": "CommentActions" + }, + "property": { + "type": "Identifier", + "start": 503, + "end": 516, + "loc": { + "start": { + "line": 27, + "column": 28 + }, + "end": { + "line": 27, + "column": 41 + } + }, + "name": "LOAD_COMMENTS" + }, + "computed": false + } + }, + { + "type": "SwitchCase", + "start": 801, + "end": 1466, + "loc": { + "start": { + "line": 37, + "column": 8 + }, + "end": { + "line": 57, + "column": 20 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 847, + "end": 1445, + "loc": { + "start": { + "line": 39, + "column": 12 + }, + "end": { + "line": 56, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 851, + "end": 865, + "loc": { + "start": { + "line": 39, + "column": 16 + }, + "end": { + "line": 39, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 851, + "end": 857, + "loc": { + "start": { + "line": 39, + "column": 16 + }, + "end": { + "line": 39, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 858, + "end": 865, + "loc": { + "start": { + "line": 39, + "column": 23 + }, + "end": { + "line": 39, + "column": 30 + } + }, + "name": "comment" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 867, + "end": 1445, + "loc": { + "start": { + "line": 39, + "column": 32 + }, + "end": { + "line": 56, + "column": 13 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 886, + "end": 924, + "loc": { + "start": { + "line": 41, + "column": 16 + }, + "end": { + "line": 41, + "column": 54 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 892, + "end": 924, + "loc": { + "start": { + "line": 41, + "column": 22 + }, + "end": { + "line": 41, + "column": 54 + } + }, + "id": { + "type": "Identifier", + "start": 892, + "end": 896, + "loc": { + "start": { + "line": 41, + "column": 22 + }, + "end": { + "line": 41, + "column": 26 + } + }, + "name": "user" + }, + "init": { + "type": "CallExpression", + "start": 899, + "end": 924, + "loc": { + "start": { + "line": 41, + "column": 29 + }, + "end": { + "line": 41, + "column": 54 + } + }, + "callee": { + "type": "Identifier", + "start": 899, + "end": 911, + "loc": { + "start": { + "line": 41, + "column": 29 + }, + "end": { + "line": 41, + "column": 41 + } + }, + "name": "camelizeKeys" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 912, + "end": 923, + "loc": { + "start": { + "line": 41, + "column": 42 + }, + "end": { + "line": 41, + "column": 53 + } + }, + "object": { + "type": "Identifier", + "start": 912, + "end": 918, + "loc": { + "start": { + "line": 41, + "column": 42 + }, + "end": { + "line": 41, + "column": 48 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 919, + "end": 923, + "loc": { + "start": { + "line": 41, + "column": 49 + }, + "end": { + "line": 41, + "column": 53 + } + }, + "name": "user" + }, + "computed": false + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "ReturnStatement", + "start": 942, + "end": 1430, + "loc": { + "start": { + "line": 43, + "column": 16 + }, + "end": { + "line": 54, + "column": 18 + } + }, + "argument": { + "type": "CallExpression", + "start": 949, + "end": 1430, + "loc": { + "start": { + "line": 43, + "column": 23 + }, + "end": { + "line": 54, + "column": 18 + } + }, + "callee": { + "type": "MemberExpression", + "start": 949, + "end": 962, + "loc": { + "start": { + "line": 43, + "column": 23 + }, + "end": { + "line": 43, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 949, + "end": 955, + "loc": { + "start": { + "line": 43, + "column": 23 + }, + "end": { + "line": 43, + "column": 29 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 956, + "end": 962, + "loc": { + "start": { + "line": 43, + "column": 30 + }, + "end": { + "line": 43, + "column": 36 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 963, + "end": 965, + "loc": { + "start": { + "line": 43, + "column": 37 + }, + "end": { + "line": 43, + "column": 39 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 967, + "end": 972, + "loc": { + "start": { + "line": 43, + "column": 41 + }, + "end": { + "line": 43, + "column": 46 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 974, + "end": 1429, + "loc": { + "start": { + "line": 43, + "column": 48 + }, + "end": { + "line": 54, + "column": 17 + } + }, + "properties": [ + { + "type": "Property", + "start": 996, + "end": 1411, + "loc": { + "start": { + "line": 44, + "column": 20 + }, + "end": { + "line": 53, + "column": 21 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 996, + "end": 1004, + "loc": { + "start": { + "line": 44, + "column": 20 + }, + "end": { + "line": 44, + "column": 28 + } + }, + "name": "comments" + }, + "value": { + "type": "ArrayExpression", + "start": 1006, + "end": 1411, + "loc": { + "start": { + "line": 44, + "column": 30 + }, + "end": { + "line": 53, + "column": 21 + } + }, + "elements": [ + { + "type": "CallExpression", + "start": 1032, + "end": 1345, + "loc": { + "start": { + "line": 45, + "column": 24 + }, + "end": { + "line": 51, + "column": 26 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1032, + "end": 1045, + "loc": { + "start": { + "line": 45, + "column": 24 + }, + "end": { + "line": 45, + "column": 37 + } + }, + "object": { + "type": "Identifier", + "start": 1032, + "end": 1038, + "loc": { + "start": { + "line": 45, + "column": 24 + }, + "end": { + "line": 45, + "column": 30 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 1039, + "end": 1045, + "loc": { + "start": { + "line": 45, + "column": 31 + }, + "end": { + "line": 45, + "column": 37 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 1046, + "end": 1048, + "loc": { + "start": { + "line": 45, + "column": 38 + }, + "end": { + "line": 45, + "column": 40 + } + }, + "properties": [] + }, + { + "type": "MemberExpression", + "start": 1050, + "end": 1064, + "loc": { + "start": { + "line": 45, + "column": 42 + }, + "end": { + "line": 45, + "column": 56 + } + }, + "object": { + "type": "Identifier", + "start": 1050, + "end": 1056, + "loc": { + "start": { + "line": 45, + "column": 42 + }, + "end": { + "line": 45, + "column": 48 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1057, + "end": 1064, + "loc": { + "start": { + "line": 45, + "column": 49 + }, + "end": { + "line": 45, + "column": 56 + } + }, + "name": "comment" + }, + "computed": false + }, + { + "type": "ObjectExpression", + "start": 1066, + "end": 1344, + "loc": { + "start": { + "line": 45, + "column": 58 + }, + "end": { + "line": 51, + "column": 25 + } + }, + "properties": [ + { + "type": "Property", + "start": 1096, + "end": 1121, + "loc": { + "start": { + "line": 46, + "column": 28 + }, + "end": { + "line": 46, + "column": 53 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1096, + "end": 1105, + "loc": { + "start": { + "line": 46, + "column": 28 + }, + "end": { + "line": 46, + "column": 37 + } + }, + "name": "firstName" + }, + "value": { + "type": "MemberExpression", + "start": 1107, + "end": 1121, + "loc": { + "start": { + "line": 46, + "column": 39 + }, + "end": { + "line": 46, + "column": 53 + } + }, + "object": { + "type": "Identifier", + "start": 1107, + "end": 1111, + "loc": { + "start": { + "line": 46, + "column": 39 + }, + "end": { + "line": 46, + "column": 43 + } + }, + "name": "user" + }, + "property": { + "type": "Identifier", + "start": 1112, + "end": 1121, + "loc": { + "start": { + "line": 46, + "column": 44 + }, + "end": { + "line": 46, + "column": 53 + } + }, + "name": "firstName" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1151, + "end": 1174, + "loc": { + "start": { + "line": 47, + "column": 28 + }, + "end": { + "line": 47, + "column": 51 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1151, + "end": 1159, + "loc": { + "start": { + "line": 47, + "column": 28 + }, + "end": { + "line": 47, + "column": 36 + } + }, + "name": "lastName" + }, + "value": { + "type": "MemberExpression", + "start": 1161, + "end": 1174, + "loc": { + "start": { + "line": 47, + "column": 38 + }, + "end": { + "line": 47, + "column": 51 + } + }, + "object": { + "type": "Identifier", + "start": 1161, + "end": 1165, + "loc": { + "start": { + "line": 47, + "column": 38 + }, + "end": { + "line": 47, + "column": 42 + } + }, + "name": "user" + }, + "property": { + "type": "Identifier", + "start": 1166, + "end": 1174, + "loc": { + "start": { + "line": 47, + "column": 43 + }, + "end": { + "line": 47, + "column": 51 + } + }, + "name": "lastName" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1204, + "end": 1221, + "loc": { + "start": { + "line": 48, + "column": 28 + }, + "end": { + "line": 48, + "column": 45 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1204, + "end": 1209, + "loc": { + "start": { + "line": 48, + "column": 28 + }, + "end": { + "line": 48, + "column": 33 + } + }, + "name": "email" + }, + "value": { + "type": "MemberExpression", + "start": 1211, + "end": 1221, + "loc": { + "start": { + "line": 48, + "column": 35 + }, + "end": { + "line": 48, + "column": 45 + } + }, + "object": { + "type": "Identifier", + "start": 1211, + "end": 1215, + "loc": { + "start": { + "line": 48, + "column": 35 + }, + "end": { + "line": 48, + "column": 39 + } + }, + "name": "user" + }, + "property": { + "type": "Identifier", + "start": 1216, + "end": 1221, + "loc": { + "start": { + "line": 48, + "column": 40 + }, + "end": { + "line": 48, + "column": 45 + } + }, + "name": "email" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1251, + "end": 1266, + "loc": { + "start": { + "line": 49, + "column": 28 + }, + "end": { + "line": 49, + "column": 43 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1251, + "end": 1257, + "loc": { + "start": { + "line": 49, + "column": 28 + }, + "end": { + "line": 49, + "column": 34 + } + }, + "name": "userID" + }, + "value": { + "type": "MemberExpression", + "start": 1259, + "end": 1266, + "loc": { + "start": { + "line": 49, + "column": 36 + }, + "end": { + "line": 49, + "column": 43 + } + }, + "object": { + "type": "Identifier", + "start": 1259, + "end": 1263, + "loc": { + "start": { + "line": 49, + "column": 36 + }, + "end": { + "line": 49, + "column": 40 + } + }, + "name": "user" + }, + "property": { + "type": "Identifier", + "start": 1264, + "end": 1266, + "loc": { + "start": { + "line": 49, + "column": 41 + }, + "end": { + "line": 49, + "column": 43 + } + }, + "name": "id" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1296, + "end": 1317, + "loc": { + "start": { + "line": 50, + "column": 28 + }, + "end": { + "line": 50, + "column": 49 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1296, + "end": 1305, + "loc": { + "start": { + "line": 50, + "column": 28 + }, + "end": { + "line": 50, + "column": 37 + } + }, + "name": "createdAt" + }, + "value": { + "type": "NewExpression", + "start": 1307, + "end": 1317, + "loc": { + "start": { + "line": 50, + "column": 39 + }, + "end": { + "line": 50, + "column": 49 + } + }, + "callee": { + "type": "Identifier", + "start": 1311, + "end": 1315, + "loc": { + "start": { + "line": 50, + "column": 43 + }, + "end": { + "line": 50, + "column": 47 + } + }, + "name": "Date" + }, + "arguments": [] + }, + "kind": "init" + } + ] + } + ] + }, + { + "type": "SpreadElement", + "start": 1371, + "end": 1388, + "loc": { + "start": { + "line": 52, + "column": 24 + }, + "end": { + "line": 52, + "column": 41 + } + }, + "argument": { + "type": "MemberExpression", + "start": 1374, + "end": 1388, + "loc": { + "start": { + "line": 52, + "column": 27 + }, + "end": { + "line": 52, + "column": 41 + } + }, + "object": { + "type": "Identifier", + "start": 1374, + "end": 1379, + "loc": { + "start": { + "line": 52, + "column": 27 + }, + "end": { + "line": 52, + "column": 32 + } + }, + "name": "state" + }, + "property": { + "type": "Identifier", + "start": 1380, + "end": 1388, + "loc": { + "start": { + "line": 52, + "column": 33 + }, + "end": { + "line": 52, + "column": 41 + } + }, + "name": "comments" + }, + "computed": false + } + } + ] + }, + "kind": "init" + } + ] + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 1454, + "end": 1466, + "loc": { + "start": { + "line": 57, + "column": 8 + }, + "end": { + "line": 57, + "column": 20 + } + }, + "argument": { + "type": "Identifier", + "start": 1461, + "end": 1466, + "loc": { + "start": { + "line": 57, + "column": 15 + }, + "end": { + "line": 57, + "column": 20 + } + }, + "name": "state" + } + } + ], + "test": { + "type": "MemberExpression", + "start": 806, + "end": 832, + "loc": { + "start": { + "line": 37, + "column": 13 + }, + "end": { + "line": 37, + "column": 39 + } + }, + "object": { + "type": "Identifier", + "start": 806, + "end": 820, + "loc": { + "start": { + "line": 37, + "column": 13 + }, + "end": { + "line": 37, + "column": 27 + } + }, + "name": "CommentActions" + }, + "property": { + "type": "Identifier", + "start": 821, + "end": 832, + "loc": { + "start": { + "line": 37, + "column": 28 + }, + "end": { + "line": 37, + "column": 39 + } + }, + "name": "ADD_COMMENT" + }, + "computed": false + } + } + ] + }, + { + "type": "ReturnStatement", + "start": 1478, + "end": 1490, + "loc": { + "start": { + "line": 60, + "column": 4 + }, + "end": { + "line": 60, + "column": 16 + } + }, + "argument": { + "type": "Identifier", + "start": 1485, + "end": 1490, + "loc": { + "start": { + "line": 60, + "column": 11 + }, + "end": { + "line": 60, + "column": 16 + } + }, + "name": "state" + } + } + ] + }, + "leadingComments": [], + "name": "_", + "trailingComments": [] + }, + { + "type": "Identifier", + "start": 1494, + "end": 1513, + "loc": { + "start": { + "line": 63, + "column": 0 + }, + "end": { + "line": 63, + "column": 19 + } + }, + "declaration": { + "type": "Identifier", + "start": 1509, + "end": 1513, + "loc": { + "start": { + "line": 63, + "column": 15 + }, + "end": { + "line": 63, + "column": 19 + } + }, + "name": "Post" + }, + "name": "_", + "leadingComments": [], + "trailingComments": [] + }, + { + "type": "ExportDefaultDeclaration", + "start": 1494, + "end": 1513, + "loc": { + "start": { + "line": 63, + "column": 0 + }, + "end": { + "line": 63, + "column": 19 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 401, + "end": 1492, + "loc": { + "start": { + "line": 24, + "column": 0 + }, + "end": { + "line": 61, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 410, + "end": 414, + "loc": { + "start": { + "line": 24, + "column": 9 + }, + "end": { + "line": 24, + "column": 13 + } + }, + "name": "Post", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "AssignmentPattern", + "start": 415, + "end": 435, + "loc": { + "start": { + "line": 24, + "column": 14 + }, + "end": { + "line": 24, + "column": 34 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 415, + "end": 420, + "loc": { + "start": { + "line": 24, + "column": 14 + }, + "end": { + "line": 24, + "column": 19 + } + }, + "name": "state" + }, + "right": { + "type": "Identifier", + "start": 423, + "end": 435, + "loc": { + "start": { + "line": 24, + "column": 22 + }, + "end": { + "line": 24, + "column": 34 + } + }, + "name": "initialState" + } + }, + { + "type": "Identifier", + "start": 437, + "end": 443, + "loc": { + "start": { + "line": 24, + "column": 36 + }, + "end": { + "line": 24, + "column": 42 + } + }, + "name": "action" + } + ], + "body": { + "type": "BlockStatement", + "start": 445, + "end": 1492, + "loc": { + "start": { + "line": 24, + "column": 44 + }, + "end": { + "line": 61, + "column": 1 + } + }, + "body": [ + { + "type": "SwitchStatement", + "start": 451, + "end": 1472, + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 58, + "column": 5 + } + }, + "discriminant": { + "type": "MemberExpression", + "start": 459, + "end": 470, + "loc": { + "start": { + "line": 25, + "column": 12 + }, + "end": { + "line": 25, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 459, + "end": 465, + "loc": { + "start": { + "line": 25, + "column": 12 + }, + "end": { + "line": 25, + "column": 18 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 466, + "end": 470, + "loc": { + "start": { + "line": 25, + "column": 19 + }, + "end": { + "line": 25, + "column": 23 + } + }, + "name": "type" + }, + "computed": false + }, + "cases": [ + { + "type": "SwitchCase", + "start": 483, + "end": 791, + "loc": { + "start": { + "line": 27, + "column": 8 + }, + "end": { + "line": 35, + "column": 31 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 530, + "end": 758, + "loc": { + "start": { + "line": 28, + "column": 12 + }, + "end": { + "line": 33, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 534, + "end": 549, + "loc": { + "start": { + "line": 28, + "column": 16 + }, + "end": { + "line": 28, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 534, + "end": 540, + "loc": { + "start": { + "line": 28, + "column": 16 + }, + "end": { + "line": 28, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 541, + "end": 549, + "loc": { + "start": { + "line": 28, + "column": 23 + }, + "end": { + "line": 28, + "column": 31 + } + }, + "name": "comments" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 551, + "end": 758, + "loc": { + "start": { + "line": 28, + "column": 33 + }, + "end": { + "line": 33, + "column": 13 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 569, + "end": 744, + "loc": { + "start": { + "line": 29, + "column": 16 + }, + "end": { + "line": 32, + "column": 18 + } + }, + "argument": { + "type": "CallExpression", + "start": 576, + "end": 744, + "loc": { + "start": { + "line": 29, + "column": 23 + }, + "end": { + "line": 32, + "column": 18 + } + }, + "callee": { + "type": "MemberExpression", + "start": 576, + "end": 589, + "loc": { + "start": { + "line": 29, + "column": 23 + }, + "end": { + "line": 29, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 576, + "end": 582, + "loc": { + "start": { + "line": 29, + "column": 23 + }, + "end": { + "line": 29, + "column": 29 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 583, + "end": 589, + "loc": { + "start": { + "line": 29, + "column": 30 + }, + "end": { + "line": 29, + "column": 36 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 590, + "end": 592, + "loc": { + "start": { + "line": 29, + "column": 37 + }, + "end": { + "line": 29, + "column": 39 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 594, + "end": 599, + "loc": { + "start": { + "line": 29, + "column": 41 + }, + "end": { + "line": 29, + "column": 46 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 601, + "end": 743, + "loc": { + "start": { + "line": 29, + "column": 48 + }, + "end": { + "line": 32, + "column": 17 + } + }, + "properties": [ + { + "type": "Property", + "start": 623, + "end": 679, + "loc": { + "start": { + "line": 30, + "column": 20 + }, + "end": { + "line": 30, + "column": 76 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 623, + "end": 631, + "loc": { + "start": { + "line": 30, + "column": 20 + }, + "end": { + "line": 30, + "column": 28 + } + }, + "name": "comments" + }, + "value": { + "type": "ArrayExpression", + "start": 633, + "end": 679, + "loc": { + "start": { + "line": 30, + "column": 30 + }, + "end": { + "line": 30, + "column": 76 + } + }, + "elements": [ + { + "type": "SpreadElement", + "start": 634, + "end": 678, + "loc": { + "start": { + "line": 30, + "column": 31 + }, + "end": { + "line": 30, + "column": 75 + } + }, + "argument": { + "type": "CallExpression", + "start": 637, + "end": 678, + "loc": { + "start": { + "line": 30, + "column": 34 + }, + "end": { + "line": 30, + "column": 75 + } + }, + "callee": { + "type": "MemberExpression", + "start": 637, + "end": 656, + "loc": { + "start": { + "line": 30, + "column": 34 + }, + "end": { + "line": 30, + "column": 53 + } + }, + "object": { + "type": "MemberExpression", + "start": 637, + "end": 652, + "loc": { + "start": { + "line": 30, + "column": 34 + }, + "end": { + "line": 30, + "column": 49 + } + }, + "object": { + "type": "Identifier", + "start": 637, + "end": 643, + "loc": { + "start": { + "line": 30, + "column": 34 + }, + "end": { + "line": 30, + "column": 40 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 644, + "end": 652, + "loc": { + "start": { + "line": 30, + "column": 41 + }, + "end": { + "line": 30, + "column": 49 + } + }, + "name": "comments" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 653, + "end": 656, + "loc": { + "start": { + "line": 30, + "column": 50 + }, + "end": { + "line": 30, + "column": 53 + } + }, + "name": "map" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 657, + "end": 677, + "loc": { + "start": { + "line": 30, + "column": 54 + }, + "end": { + "line": 30, + "column": 74 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 657, + "end": 658, + "loc": { + "start": { + "line": 30, + "column": 54 + }, + "end": { + "line": 30, + "column": 55 + } + }, + "name": "c" + } + ], + "body": { + "type": "CallExpression", + "start": 662, + "end": 677, + "loc": { + "start": { + "line": 30, + "column": 59 + }, + "end": { + "line": 30, + "column": 74 + } + }, + "callee": { + "type": "Identifier", + "start": 662, + "end": 674, + "loc": { + "start": { + "line": 30, + "column": 59 + }, + "end": { + "line": 30, + "column": 71 + } + }, + "name": "camelizeKeys" + }, + "arguments": [ + { + "type": "Identifier", + "start": 675, + "end": 676, + "loc": { + "start": { + "line": 30, + "column": 72 + }, + "end": { + "line": 30, + "column": 73 + } + }, + "name": "c" + } + ] + } + } + ] + } + } + ] + }, + "kind": "init" + }, + { + "type": "Property", + "start": 701, + "end": 724, + "loc": { + "start": { + "line": 31, + "column": 20 + }, + "end": { + "line": 31, + "column": 43 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 701, + "end": 709, + "loc": { + "start": { + "line": 31, + "column": 20 + }, + "end": { + "line": 31, + "column": 28 + } + }, + "name": "uploadID" + }, + "value": { + "type": "MemberExpression", + "start": 711, + "end": 724, + "loc": { + "start": { + "line": 31, + "column": 30 + }, + "end": { + "line": 31, + "column": 43 + } + }, + "object": { + "type": "Identifier", + "start": 711, + "end": 717, + "loc": { + "start": { + "line": 31, + "column": 30 + }, + "end": { + "line": 31, + "column": 36 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 718, + "end": 724, + "loc": { + "start": { + "line": 31, + "column": 37 + }, + "end": { + "line": 31, + "column": 43 + } + }, + "name": "postID" + }, + "computed": false + }, + "kind": "init" + } + ] + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 772, + "end": 791, + "loc": { + "start": { + "line": 35, + "column": 12 + }, + "end": { + "line": 35, + "column": 31 + } + }, + "argument": { + "type": "Identifier", + "start": 779, + "end": 791, + "loc": { + "start": { + "line": 35, + "column": 19 + }, + "end": { + "line": 35, + "column": 31 + } + }, + "name": "initialState" + } + } + ], + "test": { + "type": "MemberExpression", + "start": 488, + "end": 516, + "loc": { + "start": { + "line": 27, + "column": 13 + }, + "end": { + "line": 27, + "column": 41 + } + }, + "object": { + "type": "Identifier", + "start": 488, + "end": 502, + "loc": { + "start": { + "line": 27, + "column": 13 + }, + "end": { + "line": 27, + "column": 27 + } + }, + "name": "CommentActions" + }, + "property": { + "type": "Identifier", + "start": 503, + "end": 516, + "loc": { + "start": { + "line": 27, + "column": 28 + }, + "end": { + "line": 27, + "column": 41 + } + }, + "name": "LOAD_COMMENTS" + }, + "computed": false + } + }, + { + "type": "SwitchCase", + "start": 801, + "end": 1466, + "loc": { + "start": { + "line": 37, + "column": 8 + }, + "end": { + "line": 57, + "column": 20 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 847, + "end": 1445, + "loc": { + "start": { + "line": 39, + "column": 12 + }, + "end": { + "line": 56, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 851, + "end": 865, + "loc": { + "start": { + "line": 39, + "column": 16 + }, + "end": { + "line": 39, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 851, + "end": 857, + "loc": { + "start": { + "line": 39, + "column": 16 + }, + "end": { + "line": 39, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 858, + "end": 865, + "loc": { + "start": { + "line": 39, + "column": 23 + }, + "end": { + "line": 39, + "column": 30 + } + }, + "name": "comment" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 867, + "end": 1445, + "loc": { + "start": { + "line": 39, + "column": 32 + }, + "end": { + "line": 56, + "column": 13 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 886, + "end": 924, + "loc": { + "start": { + "line": 41, + "column": 16 + }, + "end": { + "line": 41, + "column": 54 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 892, + "end": 924, + "loc": { + "start": { + "line": 41, + "column": 22 + }, + "end": { + "line": 41, + "column": 54 + } + }, + "id": { + "type": "Identifier", + "start": 892, + "end": 896, + "loc": { + "start": { + "line": 41, + "column": 22 + }, + "end": { + "line": 41, + "column": 26 + } + }, + "name": "user" + }, + "init": { + "type": "CallExpression", + "start": 899, + "end": 924, + "loc": { + "start": { + "line": 41, + "column": 29 + }, + "end": { + "line": 41, + "column": 54 + } + }, + "callee": { + "type": "Identifier", + "start": 899, + "end": 911, + "loc": { + "start": { + "line": 41, + "column": 29 + }, + "end": { + "line": 41, + "column": 41 + } + }, + "name": "camelizeKeys" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 912, + "end": 923, + "loc": { + "start": { + "line": 41, + "column": 42 + }, + "end": { + "line": 41, + "column": 53 + } + }, + "object": { + "type": "Identifier", + "start": 912, + "end": 918, + "loc": { + "start": { + "line": 41, + "column": 42 + }, + "end": { + "line": 41, + "column": 48 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 919, + "end": 923, + "loc": { + "start": { + "line": 41, + "column": 49 + }, + "end": { + "line": 41, + "column": 53 + } + }, + "name": "user" + }, + "computed": false + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "ReturnStatement", + "start": 942, + "end": 1430, + "loc": { + "start": { + "line": 43, + "column": 16 + }, + "end": { + "line": 54, + "column": 18 + } + }, + "argument": { + "type": "CallExpression", + "start": 949, + "end": 1430, + "loc": { + "start": { + "line": 43, + "column": 23 + }, + "end": { + "line": 54, + "column": 18 + } + }, + "callee": { + "type": "MemberExpression", + "start": 949, + "end": 962, + "loc": { + "start": { + "line": 43, + "column": 23 + }, + "end": { + "line": 43, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 949, + "end": 955, + "loc": { + "start": { + "line": 43, + "column": 23 + }, + "end": { + "line": 43, + "column": 29 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 956, + "end": 962, + "loc": { + "start": { + "line": 43, + "column": 30 + }, + "end": { + "line": 43, + "column": 36 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 963, + "end": 965, + "loc": { + "start": { + "line": 43, + "column": 37 + }, + "end": { + "line": 43, + "column": 39 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 967, + "end": 972, + "loc": { + "start": { + "line": 43, + "column": 41 + }, + "end": { + "line": 43, + "column": 46 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 974, + "end": 1429, + "loc": { + "start": { + "line": 43, + "column": 48 + }, + "end": { + "line": 54, + "column": 17 + } + }, + "properties": [ + { + "type": "Property", + "start": 996, + "end": 1411, + "loc": { + "start": { + "line": 44, + "column": 20 + }, + "end": { + "line": 53, + "column": 21 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 996, + "end": 1004, + "loc": { + "start": { + "line": 44, + "column": 20 + }, + "end": { + "line": 44, + "column": 28 + } + }, + "name": "comments" + }, + "value": { + "type": "ArrayExpression", + "start": 1006, + "end": 1411, + "loc": { + "start": { + "line": 44, + "column": 30 + }, + "end": { + "line": 53, + "column": 21 + } + }, + "elements": [ + { + "type": "CallExpression", + "start": 1032, + "end": 1345, + "loc": { + "start": { + "line": 45, + "column": 24 + }, + "end": { + "line": 51, + "column": 26 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1032, + "end": 1045, + "loc": { + "start": { + "line": 45, + "column": 24 + }, + "end": { + "line": 45, + "column": 37 + } + }, + "object": { + "type": "Identifier", + "start": 1032, + "end": 1038, + "loc": { + "start": { + "line": 45, + "column": 24 + }, + "end": { + "line": 45, + "column": 30 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 1039, + "end": 1045, + "loc": { + "start": { + "line": 45, + "column": 31 + }, + "end": { + "line": 45, + "column": 37 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 1046, + "end": 1048, + "loc": { + "start": { + "line": 45, + "column": 38 + }, + "end": { + "line": 45, + "column": 40 + } + }, + "properties": [] + }, + { + "type": "MemberExpression", + "start": 1050, + "end": 1064, + "loc": { + "start": { + "line": 45, + "column": 42 + }, + "end": { + "line": 45, + "column": 56 + } + }, + "object": { + "type": "Identifier", + "start": 1050, + "end": 1056, + "loc": { + "start": { + "line": 45, + "column": 42 + }, + "end": { + "line": 45, + "column": 48 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1057, + "end": 1064, + "loc": { + "start": { + "line": 45, + "column": 49 + }, + "end": { + "line": 45, + "column": 56 + } + }, + "name": "comment" + }, + "computed": false + }, + { + "type": "ObjectExpression", + "start": 1066, + "end": 1344, + "loc": { + "start": { + "line": 45, + "column": 58 + }, + "end": { + "line": 51, + "column": 25 + } + }, + "properties": [ + { + "type": "Property", + "start": 1096, + "end": 1121, + "loc": { + "start": { + "line": 46, + "column": 28 + }, + "end": { + "line": 46, + "column": 53 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1096, + "end": 1105, + "loc": { + "start": { + "line": 46, + "column": 28 + }, + "end": { + "line": 46, + "column": 37 + } + }, + "name": "firstName" + }, + "value": { + "type": "MemberExpression", + "start": 1107, + "end": 1121, + "loc": { + "start": { + "line": 46, + "column": 39 + }, + "end": { + "line": 46, + "column": 53 + } + }, + "object": { + "type": "Identifier", + "start": 1107, + "end": 1111, + "loc": { + "start": { + "line": 46, + "column": 39 + }, + "end": { + "line": 46, + "column": 43 + } + }, + "name": "user" + }, + "property": { + "type": "Identifier", + "start": 1112, + "end": 1121, + "loc": { + "start": { + "line": 46, + "column": 44 + }, + "end": { + "line": 46, + "column": 53 + } + }, + "name": "firstName" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1151, + "end": 1174, + "loc": { + "start": { + "line": 47, + "column": 28 + }, + "end": { + "line": 47, + "column": 51 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1151, + "end": 1159, + "loc": { + "start": { + "line": 47, + "column": 28 + }, + "end": { + "line": 47, + "column": 36 + } + }, + "name": "lastName" + }, + "value": { + "type": "MemberExpression", + "start": 1161, + "end": 1174, + "loc": { + "start": { + "line": 47, + "column": 38 + }, + "end": { + "line": 47, + "column": 51 + } + }, + "object": { + "type": "Identifier", + "start": 1161, + "end": 1165, + "loc": { + "start": { + "line": 47, + "column": 38 + }, + "end": { + "line": 47, + "column": 42 + } + }, + "name": "user" + }, + "property": { + "type": "Identifier", + "start": 1166, + "end": 1174, + "loc": { + "start": { + "line": 47, + "column": 43 + }, + "end": { + "line": 47, + "column": 51 + } + }, + "name": "lastName" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1204, + "end": 1221, + "loc": { + "start": { + "line": 48, + "column": 28 + }, + "end": { + "line": 48, + "column": 45 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1204, + "end": 1209, + "loc": { + "start": { + "line": 48, + "column": 28 + }, + "end": { + "line": 48, + "column": 33 + } + }, + "name": "email" + }, + "value": { + "type": "MemberExpression", + "start": 1211, + "end": 1221, + "loc": { + "start": { + "line": 48, + "column": 35 + }, + "end": { + "line": 48, + "column": 45 + } + }, + "object": { + "type": "Identifier", + "start": 1211, + "end": 1215, + "loc": { + "start": { + "line": 48, + "column": 35 + }, + "end": { + "line": 48, + "column": 39 + } + }, + "name": "user" + }, + "property": { + "type": "Identifier", + "start": 1216, + "end": 1221, + "loc": { + "start": { + "line": 48, + "column": 40 + }, + "end": { + "line": 48, + "column": 45 + } + }, + "name": "email" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1251, + "end": 1266, + "loc": { + "start": { + "line": 49, + "column": 28 + }, + "end": { + "line": 49, + "column": 43 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1251, + "end": 1257, + "loc": { + "start": { + "line": 49, + "column": 28 + }, + "end": { + "line": 49, + "column": 34 + } + }, + "name": "userID" + }, + "value": { + "type": "MemberExpression", + "start": 1259, + "end": 1266, + "loc": { + "start": { + "line": 49, + "column": 36 + }, + "end": { + "line": 49, + "column": 43 + } + }, + "object": { + "type": "Identifier", + "start": 1259, + "end": 1263, + "loc": { + "start": { + "line": 49, + "column": 36 + }, + "end": { + "line": 49, + "column": 40 + } + }, + "name": "user" + }, + "property": { + "type": "Identifier", + "start": 1264, + "end": 1266, + "loc": { + "start": { + "line": 49, + "column": 41 + }, + "end": { + "line": 49, + "column": 43 + } + }, + "name": "id" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1296, + "end": 1317, + "loc": { + "start": { + "line": 50, + "column": 28 + }, + "end": { + "line": 50, + "column": 49 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1296, + "end": 1305, + "loc": { + "start": { + "line": 50, + "column": 28 + }, + "end": { + "line": 50, + "column": 37 + } + }, + "name": "createdAt" + }, + "value": { + "type": "NewExpression", + "start": 1307, + "end": 1317, + "loc": { + "start": { + "line": 50, + "column": 39 + }, + "end": { + "line": 50, + "column": 49 + } + }, + "callee": { + "type": "Identifier", + "start": 1311, + "end": 1315, + "loc": { + "start": { + "line": 50, + "column": 43 + }, + "end": { + "line": 50, + "column": 47 + } + }, + "name": "Date" + }, + "arguments": [] + }, + "kind": "init" + } + ] + } + ] + }, + { + "type": "SpreadElement", + "start": 1371, + "end": 1388, + "loc": { + "start": { + "line": 52, + "column": 24 + }, + "end": { + "line": 52, + "column": 41 + } + }, + "argument": { + "type": "MemberExpression", + "start": 1374, + "end": 1388, + "loc": { + "start": { + "line": 52, + "column": 27 + }, + "end": { + "line": 52, + "column": 41 + } + }, + "object": { + "type": "Identifier", + "start": 1374, + "end": 1379, + "loc": { + "start": { + "line": 52, + "column": 27 + }, + "end": { + "line": 52, + "column": 32 + } + }, + "name": "state" + }, + "property": { + "type": "Identifier", + "start": 1380, + "end": 1388, + "loc": { + "start": { + "line": 52, + "column": 33 + }, + "end": { + "line": 52, + "column": 41 + } + }, + "name": "comments" + }, + "computed": false + } + } + ] + }, + "kind": "init" + } + ] + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 1454, + "end": 1466, + "loc": { + "start": { + "line": 57, + "column": 8 + }, + "end": { + "line": 57, + "column": 20 + } + }, + "argument": { + "type": "Identifier", + "start": 1461, + "end": 1466, + "loc": { + "start": { + "line": 57, + "column": 15 + }, + "end": { + "line": 57, + "column": 20 + } + }, + "name": "state" + } + } + ], + "test": { + "type": "MemberExpression", + "start": 806, + "end": 832, + "loc": { + "start": { + "line": 37, + "column": 13 + }, + "end": { + "line": 37, + "column": 39 + } + }, + "object": { + "type": "Identifier", + "start": 806, + "end": 820, + "loc": { + "start": { + "line": 37, + "column": 13 + }, + "end": { + "line": 37, + "column": 27 + } + }, + "name": "CommentActions" + }, + "property": { + "type": "Identifier", + "start": 821, + "end": 832, + "loc": { + "start": { + "line": 37, + "column": 28 + }, + "end": { + "line": 37, + "column": 39 + } + }, + "name": "ADD_COMMENT" + }, + "computed": false + } + } + ] + }, + { + "type": "ReturnStatement", + "start": 1478, + "end": 1490, + "loc": { + "start": { + "line": 60, + "column": 4 + }, + "end": { + "line": 60, + "column": 16 + } + }, + "argument": { + "type": "Identifier", + "start": 1485, + "end": 1490, + "loc": { + "start": { + "line": 60, + "column": 11 + }, + "end": { + "line": 60, + "column": 16 + } + }, + "name": "state" + } + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Redux Reducer for Comments action\n * Reference: http://redux.js.org/docs/basics/Reducers.html\n * @param state\n * @param action\n * @returns {*}\n * @constructor\n ", + "start": 231, + "end": 400, + "loc": { + "start": { + "line": 16, + "column": 0 + }, + "end": { + "line": 23, + "column": 3 + } + }, + "range": [ + 231, + 400 + ] + } + ], + "trailingComments": [] + } + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/reducers/Contributions.js.json b/app/docs/ast/source/reducers/Contributions.js.json new file mode 100644 index 0000000..0c0f9ef --- /dev/null +++ b/app/docs/ast/source/reducers/Contributions.js.json @@ -0,0 +1,1172 @@ +{ + "type": "Program", + "start": 0, + "end": 582, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 30, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 66, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 16 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 13, + "end": 49, + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 40 + } + }, + "imported": { + "type": "Identifier", + "start": 13, + "end": 26, + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 17 + } + }, + "name": "Contributions" + }, + "local": { + "type": "Identifier", + "start": 30, + "end": 49, + "loc": { + "start": { + "line": 2, + "column": 21 + }, + "end": { + "line": 2, + "column": 40 + } + }, + "name": "ContributionActions" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 57, + "end": 66, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 16 + } + }, + "value": "actions", + "rawValue": "actions", + "raw": "'actions'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Contributions\n * Redux Reducer for Contributions action\n * Reference: http://redux.js.org/docs/basics/Reducers.html\n * @param state\n * @param action\n * @returns {*}\n * @constructor\n ", + "start": 68, + "end": 259, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + }, + "range": [ + 68, + 259 + ] + } + ] + }, + { + "type": "Identifier", + "start": 260, + "end": 551, + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 27, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 269, + "end": 282, + "loc": { + "start": { + "line": 14, + "column": 9 + }, + "end": { + "line": 14, + "column": 22 + } + }, + "name": "Contributions", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "AssignmentPattern", + "start": 283, + "end": 293, + "loc": { + "start": { + "line": 14, + "column": 23 + }, + "end": { + "line": 14, + "column": 33 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 283, + "end": 288, + "loc": { + "start": { + "line": 14, + "column": 23 + }, + "end": { + "line": 14, + "column": 28 + } + }, + "name": "state" + }, + "right": { + "type": "ArrayExpression", + "start": 291, + "end": 293, + "loc": { + "start": { + "line": 14, + "column": 31 + }, + "end": { + "line": 14, + "column": 33 + } + }, + "elements": [] + } + }, + { + "type": "Identifier", + "start": 295, + "end": 301, + "loc": { + "start": { + "line": 14, + "column": 35 + }, + "end": { + "line": 14, + "column": 41 + } + }, + "name": "action" + } + ], + "body": { + "type": "BlockStatement", + "start": 303, + "end": 551, + "loc": { + "start": { + "line": 14, + "column": 43 + }, + "end": { + "line": 27, + "column": 1 + } + }, + "body": [ + { + "type": "SwitchStatement", + "start": 310, + "end": 531, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 24, + "column": 5 + } + }, + "discriminant": { + "type": "MemberExpression", + "start": 318, + "end": 329, + "loc": { + "start": { + "line": 16, + "column": 12 + }, + "end": { + "line": 16, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 318, + "end": 324, + "loc": { + "start": { + "line": 16, + "column": 12 + }, + "end": { + "line": 16, + "column": 18 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 325, + "end": 329, + "loc": { + "start": { + "line": 16, + "column": 19 + }, + "end": { + "line": 16, + "column": 23 + } + }, + "name": "type" + }, + "computed": false + }, + "cases": [ + { + "type": "SwitchCase", + "start": 341, + "end": 525, + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 23, + "column": 21 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 384, + "end": 503, + "loc": { + "start": { + "line": 18, + "column": 12 + }, + "end": { + "line": 22, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 388, + "end": 403, + "loc": { + "start": { + "line": 18, + "column": 16 + }, + "end": { + "line": 18, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 388, + "end": 394, + "loc": { + "start": { + "line": 18, + "column": 16 + }, + "end": { + "line": 18, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 395, + "end": 403, + "loc": { + "start": { + "line": 18, + "column": 23 + }, + "end": { + "line": 18, + "column": 31 + } + }, + "name": "response" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 405, + "end": 503, + "loc": { + "start": { + "line": 18, + "column": 33 + }, + "end": { + "line": 22, + "column": 13 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 423, + "end": 489, + "loc": { + "start": { + "line": 19, + "column": 16 + }, + "end": { + "line": 21, + "column": 17 + } + }, + "argument": { + "type": "ArrayExpression", + "start": 430, + "end": 489, + "loc": { + "start": { + "line": 19, + "column": 23 + }, + "end": { + "line": 21, + "column": 17 + } + }, + "elements": [ + { + "type": "SpreadElement", + "start": 452, + "end": 470, + "loc": { + "start": { + "line": 20, + "column": 20 + }, + "end": { + "line": 20, + "column": 38 + } + }, + "argument": { + "type": "MemberExpression", + "start": 455, + "end": 470, + "loc": { + "start": { + "line": 20, + "column": 23 + }, + "end": { + "line": 20, + "column": 38 + } + }, + "object": { + "type": "Identifier", + "start": 455, + "end": 461, + "loc": { + "start": { + "line": 20, + "column": 23 + }, + "end": { + "line": 20, + "column": 29 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 462, + "end": 470, + "loc": { + "start": { + "line": 20, + "column": 30 + }, + "end": { + "line": 20, + "column": 38 + } + }, + "name": "response" + }, + "computed": false + } + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 516, + "end": 525, + "loc": { + "start": { + "line": 23, + "column": 12 + }, + "end": { + "line": 23, + "column": 21 + } + }, + "argument": { + "type": "ArrayExpression", + "start": 523, + "end": 525, + "loc": { + "start": { + "line": 23, + "column": 19 + }, + "end": { + "line": 23, + "column": 21 + } + }, + "elements": [] + } + } + ], + "test": { + "type": "MemberExpression", + "start": 346, + "end": 370, + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 17, + "column": 37 + } + }, + "object": { + "type": "Identifier", + "start": 346, + "end": 365, + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 17, + "column": 32 + } + }, + "name": "ContributionActions" + }, + "property": { + "type": "Identifier", + "start": 366, + "end": 370, + "loc": { + "start": { + "line": 17, + "column": 33 + }, + "end": { + "line": 17, + "column": 37 + } + }, + "name": "LOAD" + }, + "computed": false + } + } + ] + }, + { + "type": "ReturnStatement", + "start": 537, + "end": 549, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 16 + } + }, + "argument": { + "type": "Identifier", + "start": 544, + "end": 549, + "loc": { + "start": { + "line": 26, + "column": 11 + }, + "end": { + "line": 26, + "column": 16 + } + }, + "name": "state" + } + } + ] + }, + "leadingComments": [], + "name": "_", + "trailingComments": [] + }, + { + "type": "Identifier", + "start": 553, + "end": 581, + "loc": { + "start": { + "line": 29, + "column": 0 + }, + "end": { + "line": 29, + "column": 28 + } + }, + "declaration": { + "type": "Identifier", + "start": 568, + "end": 581, + "loc": { + "start": { + "line": 29, + "column": 15 + }, + "end": { + "line": 29, + "column": 28 + } + }, + "name": "Contributions" + }, + "name": "_", + "leadingComments": [], + "trailingComments": [] + }, + { + "type": "ExportDefaultDeclaration", + "start": 553, + "end": 581, + "loc": { + "start": { + "line": 29, + "column": 0 + }, + "end": { + "line": 29, + "column": 28 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 260, + "end": 551, + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 27, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 269, + "end": 282, + "loc": { + "start": { + "line": 14, + "column": 9 + }, + "end": { + "line": 14, + "column": 22 + } + }, + "name": "Contributions", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "AssignmentPattern", + "start": 283, + "end": 293, + "loc": { + "start": { + "line": 14, + "column": 23 + }, + "end": { + "line": 14, + "column": 33 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 283, + "end": 288, + "loc": { + "start": { + "line": 14, + "column": 23 + }, + "end": { + "line": 14, + "column": 28 + } + }, + "name": "state" + }, + "right": { + "type": "ArrayExpression", + "start": 291, + "end": 293, + "loc": { + "start": { + "line": 14, + "column": 31 + }, + "end": { + "line": 14, + "column": 33 + } + }, + "elements": [] + } + }, + { + "type": "Identifier", + "start": 295, + "end": 301, + "loc": { + "start": { + "line": 14, + "column": 35 + }, + "end": { + "line": 14, + "column": 41 + } + }, + "name": "action" + } + ], + "body": { + "type": "BlockStatement", + "start": 303, + "end": 551, + "loc": { + "start": { + "line": 14, + "column": 43 + }, + "end": { + "line": 27, + "column": 1 + } + }, + "body": [ + { + "type": "SwitchStatement", + "start": 310, + "end": 531, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 24, + "column": 5 + } + }, + "discriminant": { + "type": "MemberExpression", + "start": 318, + "end": 329, + "loc": { + "start": { + "line": 16, + "column": 12 + }, + "end": { + "line": 16, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 318, + "end": 324, + "loc": { + "start": { + "line": 16, + "column": 12 + }, + "end": { + "line": 16, + "column": 18 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 325, + "end": 329, + "loc": { + "start": { + "line": 16, + "column": 19 + }, + "end": { + "line": 16, + "column": 23 + } + }, + "name": "type" + }, + "computed": false + }, + "cases": [ + { + "type": "SwitchCase", + "start": 341, + "end": 525, + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 23, + "column": 21 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 384, + "end": 503, + "loc": { + "start": { + "line": 18, + "column": 12 + }, + "end": { + "line": 22, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 388, + "end": 403, + "loc": { + "start": { + "line": 18, + "column": 16 + }, + "end": { + "line": 18, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 388, + "end": 394, + "loc": { + "start": { + "line": 18, + "column": 16 + }, + "end": { + "line": 18, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 395, + "end": 403, + "loc": { + "start": { + "line": 18, + "column": 23 + }, + "end": { + "line": 18, + "column": 31 + } + }, + "name": "response" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 405, + "end": 503, + "loc": { + "start": { + "line": 18, + "column": 33 + }, + "end": { + "line": 22, + "column": 13 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 423, + "end": 489, + "loc": { + "start": { + "line": 19, + "column": 16 + }, + "end": { + "line": 21, + "column": 17 + } + }, + "argument": { + "type": "ArrayExpression", + "start": 430, + "end": 489, + "loc": { + "start": { + "line": 19, + "column": 23 + }, + "end": { + "line": 21, + "column": 17 + } + }, + "elements": [ + { + "type": "SpreadElement", + "start": 452, + "end": 470, + "loc": { + "start": { + "line": 20, + "column": 20 + }, + "end": { + "line": 20, + "column": 38 + } + }, + "argument": { + "type": "MemberExpression", + "start": 455, + "end": 470, + "loc": { + "start": { + "line": 20, + "column": 23 + }, + "end": { + "line": 20, + "column": 38 + } + }, + "object": { + "type": "Identifier", + "start": 455, + "end": 461, + "loc": { + "start": { + "line": 20, + "column": 23 + }, + "end": { + "line": 20, + "column": 29 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 462, + "end": 470, + "loc": { + "start": { + "line": 20, + "column": 30 + }, + "end": { + "line": 20, + "column": 38 + } + }, + "name": "response" + }, + "computed": false + } + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 516, + "end": 525, + "loc": { + "start": { + "line": 23, + "column": 12 + }, + "end": { + "line": 23, + "column": 21 + } + }, + "argument": { + "type": "ArrayExpression", + "start": 523, + "end": 525, + "loc": { + "start": { + "line": 23, + "column": 19 + }, + "end": { + "line": 23, + "column": 21 + } + }, + "elements": [] + } + } + ], + "test": { + "type": "MemberExpression", + "start": 346, + "end": 370, + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 17, + "column": 37 + } + }, + "object": { + "type": "Identifier", + "start": 346, + "end": 365, + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 17, + "column": 32 + } + }, + "name": "ContributionActions" + }, + "property": { + "type": "Identifier", + "start": 366, + "end": 370, + "loc": { + "start": { + "line": 17, + "column": 33 + }, + "end": { + "line": 17, + "column": 37 + } + }, + "name": "LOAD" + }, + "computed": false + } + } + ] + }, + { + "type": "ReturnStatement", + "start": 537, + "end": 549, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 16 + } + }, + "argument": { + "type": "Identifier", + "start": 544, + "end": 549, + "loc": { + "start": { + "line": 26, + "column": 11 + }, + "end": { + "line": 26, + "column": 16 + } + }, + "name": "state" + } + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Contributions\n * Redux Reducer for Contributions action\n * Reference: http://redux.js.org/docs/basics/Reducers.html\n * @param state\n * @param action\n * @returns {*}\n * @constructor\n ", + "start": 68, + "end": 259, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + }, + "range": [ + 68, + 259 + ] + } + ], + "trailingComments": [] + } + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/reducers/Explore.js.json b/app/docs/ast/source/reducers/Explore.js.json new file mode 100644 index 0000000..715ecda --- /dev/null +++ b/app/docs/ast/source/reducers/Explore.js.json @@ -0,0 +1,1172 @@ +{ + "type": "Program", + "start": 0, + "end": 542, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 30, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 55, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 16 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 13, + "end": 38, + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 29 + } + }, + "imported": { + "type": "Identifier", + "start": 13, + "end": 20, + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 11 + } + }, + "name": "Explore" + }, + "local": { + "type": "Identifier", + "start": 24, + "end": 38, + "loc": { + "start": { + "line": 2, + "column": 15 + }, + "end": { + "line": 2, + "column": 29 + } + }, + "name": "ExploreActions" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 46, + "end": 55, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 16 + } + }, + "value": "actions", + "rawValue": "actions", + "raw": "'actions'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Explore\n * Redux Reducer for Explore action\n * Reference: http://redux.js.org/docs/basics/Reducers.html\n * @param state\n * @param action\n * @returns {*}\n * @constructor\n ", + "start": 57, + "end": 236, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + }, + "range": [ + 57, + 236 + ] + } + ] + }, + { + "type": "Identifier", + "start": 237, + "end": 517, + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 27, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 246, + "end": 253, + "loc": { + "start": { + "line": 14, + "column": 9 + }, + "end": { + "line": 14, + "column": 16 + } + }, + "name": "Explore", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "AssignmentPattern", + "start": 254, + "end": 264, + "loc": { + "start": { + "line": 14, + "column": 17 + }, + "end": { + "line": 14, + "column": 27 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 254, + "end": 259, + "loc": { + "start": { + "line": 14, + "column": 17 + }, + "end": { + "line": 14, + "column": 22 + } + }, + "name": "state" + }, + "right": { + "type": "ArrayExpression", + "start": 262, + "end": 264, + "loc": { + "start": { + "line": 14, + "column": 25 + }, + "end": { + "line": 14, + "column": 27 + } + }, + "elements": [] + } + }, + { + "type": "Identifier", + "start": 266, + "end": 272, + "loc": { + "start": { + "line": 14, + "column": 29 + }, + "end": { + "line": 14, + "column": 35 + } + }, + "name": "action" + } + ], + "body": { + "type": "BlockStatement", + "start": 274, + "end": 517, + "loc": { + "start": { + "line": 14, + "column": 37 + }, + "end": { + "line": 27, + "column": 1 + } + }, + "body": [ + { + "type": "SwitchStatement", + "start": 281, + "end": 497, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 24, + "column": 5 + } + }, + "discriminant": { + "type": "MemberExpression", + "start": 289, + "end": 300, + "loc": { + "start": { + "line": 16, + "column": 12 + }, + "end": { + "line": 16, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 289, + "end": 295, + "loc": { + "start": { + "line": 16, + "column": 12 + }, + "end": { + "line": 16, + "column": 18 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 296, + "end": 300, + "loc": { + "start": { + "line": 16, + "column": 19 + }, + "end": { + "line": 16, + "column": 23 + } + }, + "name": "type" + }, + "computed": false + }, + "cases": [ + { + "type": "SwitchCase", + "start": 312, + "end": 491, + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 23, + "column": 21 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 350, + "end": 469, + "loc": { + "start": { + "line": 18, + "column": 12 + }, + "end": { + "line": 22, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 354, + "end": 369, + "loc": { + "start": { + "line": 18, + "column": 16 + }, + "end": { + "line": 18, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 354, + "end": 360, + "loc": { + "start": { + "line": 18, + "column": 16 + }, + "end": { + "line": 18, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 361, + "end": 369, + "loc": { + "start": { + "line": 18, + "column": 23 + }, + "end": { + "line": 18, + "column": 31 + } + }, + "name": "response" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 371, + "end": 469, + "loc": { + "start": { + "line": 18, + "column": 33 + }, + "end": { + "line": 22, + "column": 13 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 389, + "end": 455, + "loc": { + "start": { + "line": 19, + "column": 16 + }, + "end": { + "line": 21, + "column": 17 + } + }, + "argument": { + "type": "ArrayExpression", + "start": 396, + "end": 455, + "loc": { + "start": { + "line": 19, + "column": 23 + }, + "end": { + "line": 21, + "column": 17 + } + }, + "elements": [ + { + "type": "SpreadElement", + "start": 418, + "end": 436, + "loc": { + "start": { + "line": 20, + "column": 20 + }, + "end": { + "line": 20, + "column": 38 + } + }, + "argument": { + "type": "MemberExpression", + "start": 421, + "end": 436, + "loc": { + "start": { + "line": 20, + "column": 23 + }, + "end": { + "line": 20, + "column": 38 + } + }, + "object": { + "type": "Identifier", + "start": 421, + "end": 427, + "loc": { + "start": { + "line": 20, + "column": 23 + }, + "end": { + "line": 20, + "column": 29 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 428, + "end": 436, + "loc": { + "start": { + "line": 20, + "column": 30 + }, + "end": { + "line": 20, + "column": 38 + } + }, + "name": "response" + }, + "computed": false + } + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 482, + "end": 491, + "loc": { + "start": { + "line": 23, + "column": 12 + }, + "end": { + "line": 23, + "column": 21 + } + }, + "argument": { + "type": "ArrayExpression", + "start": 489, + "end": 491, + "loc": { + "start": { + "line": 23, + "column": 19 + }, + "end": { + "line": 23, + "column": 21 + } + }, + "elements": [] + } + } + ], + "test": { + "type": "MemberExpression", + "start": 317, + "end": 336, + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 17, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 317, + "end": 331, + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 17, + "column": 27 + } + }, + "name": "ExploreActions" + }, + "property": { + "type": "Identifier", + "start": 332, + "end": 336, + "loc": { + "start": { + "line": 17, + "column": 28 + }, + "end": { + "line": 17, + "column": 32 + } + }, + "name": "LOAD" + }, + "computed": false + } + } + ] + }, + { + "type": "ReturnStatement", + "start": 503, + "end": 515, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 16 + } + }, + "argument": { + "type": "Identifier", + "start": 510, + "end": 515, + "loc": { + "start": { + "line": 26, + "column": 11 + }, + "end": { + "line": 26, + "column": 16 + } + }, + "name": "state" + } + } + ] + }, + "leadingComments": [], + "name": "_", + "trailingComments": [] + }, + { + "type": "Identifier", + "start": 519, + "end": 541, + "loc": { + "start": { + "line": 29, + "column": 0 + }, + "end": { + "line": 29, + "column": 22 + } + }, + "declaration": { + "type": "Identifier", + "start": 534, + "end": 541, + "loc": { + "start": { + "line": 29, + "column": 15 + }, + "end": { + "line": 29, + "column": 22 + } + }, + "name": "Explore" + }, + "name": "_", + "leadingComments": [], + "trailingComments": [] + }, + { + "type": "ExportDefaultDeclaration", + "start": 519, + "end": 541, + "loc": { + "start": { + "line": 29, + "column": 0 + }, + "end": { + "line": 29, + "column": 22 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 237, + "end": 517, + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 27, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 246, + "end": 253, + "loc": { + "start": { + "line": 14, + "column": 9 + }, + "end": { + "line": 14, + "column": 16 + } + }, + "name": "Explore", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "AssignmentPattern", + "start": 254, + "end": 264, + "loc": { + "start": { + "line": 14, + "column": 17 + }, + "end": { + "line": 14, + "column": 27 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 254, + "end": 259, + "loc": { + "start": { + "line": 14, + "column": 17 + }, + "end": { + "line": 14, + "column": 22 + } + }, + "name": "state" + }, + "right": { + "type": "ArrayExpression", + "start": 262, + "end": 264, + "loc": { + "start": { + "line": 14, + "column": 25 + }, + "end": { + "line": 14, + "column": 27 + } + }, + "elements": [] + } + }, + { + "type": "Identifier", + "start": 266, + "end": 272, + "loc": { + "start": { + "line": 14, + "column": 29 + }, + "end": { + "line": 14, + "column": 35 + } + }, + "name": "action" + } + ], + "body": { + "type": "BlockStatement", + "start": 274, + "end": 517, + "loc": { + "start": { + "line": 14, + "column": 37 + }, + "end": { + "line": 27, + "column": 1 + } + }, + "body": [ + { + "type": "SwitchStatement", + "start": 281, + "end": 497, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 24, + "column": 5 + } + }, + "discriminant": { + "type": "MemberExpression", + "start": 289, + "end": 300, + "loc": { + "start": { + "line": 16, + "column": 12 + }, + "end": { + "line": 16, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 289, + "end": 295, + "loc": { + "start": { + "line": 16, + "column": 12 + }, + "end": { + "line": 16, + "column": 18 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 296, + "end": 300, + "loc": { + "start": { + "line": 16, + "column": 19 + }, + "end": { + "line": 16, + "column": 23 + } + }, + "name": "type" + }, + "computed": false + }, + "cases": [ + { + "type": "SwitchCase", + "start": 312, + "end": 491, + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 23, + "column": 21 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 350, + "end": 469, + "loc": { + "start": { + "line": 18, + "column": 12 + }, + "end": { + "line": 22, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 354, + "end": 369, + "loc": { + "start": { + "line": 18, + "column": 16 + }, + "end": { + "line": 18, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 354, + "end": 360, + "loc": { + "start": { + "line": 18, + "column": 16 + }, + "end": { + "line": 18, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 361, + "end": 369, + "loc": { + "start": { + "line": 18, + "column": 23 + }, + "end": { + "line": 18, + "column": 31 + } + }, + "name": "response" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 371, + "end": 469, + "loc": { + "start": { + "line": 18, + "column": 33 + }, + "end": { + "line": 22, + "column": 13 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 389, + "end": 455, + "loc": { + "start": { + "line": 19, + "column": 16 + }, + "end": { + "line": 21, + "column": 17 + } + }, + "argument": { + "type": "ArrayExpression", + "start": 396, + "end": 455, + "loc": { + "start": { + "line": 19, + "column": 23 + }, + "end": { + "line": 21, + "column": 17 + } + }, + "elements": [ + { + "type": "SpreadElement", + "start": 418, + "end": 436, + "loc": { + "start": { + "line": 20, + "column": 20 + }, + "end": { + "line": 20, + "column": 38 + } + }, + "argument": { + "type": "MemberExpression", + "start": 421, + "end": 436, + "loc": { + "start": { + "line": 20, + "column": 23 + }, + "end": { + "line": 20, + "column": 38 + } + }, + "object": { + "type": "Identifier", + "start": 421, + "end": 427, + "loc": { + "start": { + "line": 20, + "column": 23 + }, + "end": { + "line": 20, + "column": 29 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 428, + "end": 436, + "loc": { + "start": { + "line": 20, + "column": 30 + }, + "end": { + "line": 20, + "column": 38 + } + }, + "name": "response" + }, + "computed": false + } + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 482, + "end": 491, + "loc": { + "start": { + "line": 23, + "column": 12 + }, + "end": { + "line": 23, + "column": 21 + } + }, + "argument": { + "type": "ArrayExpression", + "start": 489, + "end": 491, + "loc": { + "start": { + "line": 23, + "column": 19 + }, + "end": { + "line": 23, + "column": 21 + } + }, + "elements": [] + } + } + ], + "test": { + "type": "MemberExpression", + "start": 317, + "end": 336, + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 17, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 317, + "end": 331, + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 17, + "column": 27 + } + }, + "name": "ExploreActions" + }, + "property": { + "type": "Identifier", + "start": 332, + "end": 336, + "loc": { + "start": { + "line": 17, + "column": 28 + }, + "end": { + "line": 17, + "column": 32 + } + }, + "name": "LOAD" + }, + "computed": false + } + } + ] + }, + { + "type": "ReturnStatement", + "start": 503, + "end": 515, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 16 + } + }, + "argument": { + "type": "Identifier", + "start": 510, + "end": 515, + "loc": { + "start": { + "line": 26, + "column": 11 + }, + "end": { + "line": 26, + "column": 16 + } + }, + "name": "state" + } + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Explore\n * Redux Reducer for Explore action\n * Reference: http://redux.js.org/docs/basics/Reducers.html\n * @param state\n * @param action\n * @returns {*}\n * @constructor\n ", + "start": 57, + "end": 236, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + }, + "range": [ + 57, + 236 + ] + } + ], + "trailingComments": [] + } + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/reducers/Header.js.json b/app/docs/ast/source/reducers/Header.js.json new file mode 100644 index 0000000..904a37b --- /dev/null +++ b/app/docs/ast/source/reducers/Header.js.json @@ -0,0 +1,2563 @@ +{ + "type": "Program", + "start": 0, + "end": 922, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 48, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 54, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 16 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 13, + "end": 36, + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 27 + } + }, + "imported": { + "type": "Identifier", + "start": 13, + "end": 19, + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 10 + } + }, + "name": "Header" + }, + "local": { + "type": "Identifier", + "start": 23, + "end": 36, + "loc": { + "start": { + "line": 2, + "column": 14 + }, + "end": { + "line": 2, + "column": 27 + } + }, + "name": "HeaderActions" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 45, + "end": 54, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 16 + } + }, + "value": "actions", + "rawValue": "actions", + "raw": "'actions'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * initialState\n * @type {{left: null, middle: null, right: null}}\n ", + "start": 56, + "end": 130, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + }, + "range": [ + 56, + 130 + ] + } + ] + }, + { + "type": "VariableDeclaration", + "start": 131, + "end": 206, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 13, + "column": 1 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 137, + "end": 206, + "loc": { + "start": { + "line": 9, + "column": 6 + }, + "end": { + "line": 13, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 137, + "end": 149, + "loc": { + "start": { + "line": 9, + "column": 6 + }, + "end": { + "line": 9, + "column": 18 + } + }, + "name": "initialState", + "leadingComments": null + }, + "init": { + "type": "ObjectExpression", + "start": 152, + "end": 206, + "loc": { + "start": { + "line": 9, + "column": 21 + }, + "end": { + "line": 13, + "column": 1 + } + }, + "properties": [ + { + "type": "Property", + "start": 158, + "end": 168, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 10, + "column": 14 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 158, + "end": 162, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 10, + "column": 8 + } + }, + "name": "left" + }, + "value": { + "type": "Literal", + "start": 164, + "end": 168, + "loc": { + "start": { + "line": 10, + "column": 10 + }, + "end": { + "line": 10, + "column": 14 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 174, + "end": 186, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 16 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 174, + "end": 180, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 10 + } + }, + "name": "middle" + }, + "value": { + "type": "Literal", + "start": 182, + "end": 186, + "loc": { + "start": { + "line": 11, + "column": 12 + }, + "end": { + "line": 11, + "column": 16 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 192, + "end": 203, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 15 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 192, + "end": 197, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 9 + } + }, + "name": "right" + }, + "value": { + "type": "Literal", + "start": 199, + "end": 203, + "loc": { + "start": { + "line": 12, + "column": 11 + }, + "end": { + "line": 12, + "column": 15 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + "kind": "init" + } + ], + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * initialState\n * @type {{left: null, middle: null, right: null}}\n ", + "start": 56, + "end": 130, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + }, + "range": [ + 56, + 130 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Header\n * Redux Reducer for Header action\n * Reference: http://redux.js.org/docs/basics/Reducers.html\n * @param state\n * @param action\n * @returns {*}\n * @constructor\n ", + "start": 208, + "end": 385, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 23, + "column": 3 + } + }, + "range": [ + 208, + 385 + ] + } + ] + }, + { + "type": "Identifier", + "start": 386, + "end": 898, + "loc": { + "start": { + "line": 24, + "column": 0 + }, + "end": { + "line": 45, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 395, + "end": 401, + "loc": { + "start": { + "line": 24, + "column": 9 + }, + "end": { + "line": 24, + "column": 15 + } + }, + "name": "Header", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "AssignmentPattern", + "start": 402, + "end": 422, + "loc": { + "start": { + "line": 24, + "column": 16 + }, + "end": { + "line": 24, + "column": 36 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 402, + "end": 407, + "loc": { + "start": { + "line": 24, + "column": 16 + }, + "end": { + "line": 24, + "column": 21 + } + }, + "name": "state" + }, + "right": { + "type": "Identifier", + "start": 410, + "end": 422, + "loc": { + "start": { + "line": 24, + "column": 24 + }, + "end": { + "line": 24, + "column": 36 + } + }, + "name": "initialState" + } + }, + { + "type": "Identifier", + "start": 424, + "end": 430, + "loc": { + "start": { + "line": 24, + "column": 38 + }, + "end": { + "line": 24, + "column": 44 + } + }, + "name": "action" + } + ], + "body": { + "type": "BlockStatement", + "start": 432, + "end": 898, + "loc": { + "start": { + "line": 24, + "column": 46 + }, + "end": { + "line": 45, + "column": 1 + } + }, + "body": [ + { + "type": "SwitchStatement", + "start": 439, + "end": 878, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 42, + "column": 5 + } + }, + "discriminant": { + "type": "MemberExpression", + "start": 447, + "end": 458, + "loc": { + "start": { + "line": 26, + "column": 12 + }, + "end": { + "line": 26, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 447, + "end": 453, + "loc": { + "start": { + "line": 26, + "column": 12 + }, + "end": { + "line": 26, + "column": 18 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 454, + "end": 458, + "loc": { + "start": { + "line": 26, + "column": 19 + }, + "end": { + "line": 26, + "column": 23 + } + }, + "name": "type" + }, + "computed": false + }, + "cases": [ + { + "type": "SwitchCase", + "start": 471, + "end": 596, + "loc": { + "start": { + "line": 28, + "column": 8 + }, + "end": { + "line": 31, + "column": 14 + } + }, + "consequent": [ + { + "type": "ReturnStatement", + "start": 508, + "end": 596, + "loc": { + "start": { + "line": 29, + "column": 12 + }, + "end": { + "line": 31, + "column": 14 + } + }, + "argument": { + "type": "CallExpression", + "start": 515, + "end": 596, + "loc": { + "start": { + "line": 29, + "column": 19 + }, + "end": { + "line": 31, + "column": 14 + } + }, + "callee": { + "type": "MemberExpression", + "start": 515, + "end": 528, + "loc": { + "start": { + "line": 29, + "column": 19 + }, + "end": { + "line": 29, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 515, + "end": 521, + "loc": { + "start": { + "line": 29, + "column": 19 + }, + "end": { + "line": 29, + "column": 25 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 522, + "end": 528, + "loc": { + "start": { + "line": 29, + "column": 26 + }, + "end": { + "line": 29, + "column": 32 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 529, + "end": 531, + "loc": { + "start": { + "line": 29, + "column": 33 + }, + "end": { + "line": 29, + "column": 35 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 533, + "end": 538, + "loc": { + "start": { + "line": 29, + "column": 37 + }, + "end": { + "line": 29, + "column": 42 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 540, + "end": 595, + "loc": { + "start": { + "line": 29, + "column": 44 + }, + "end": { + "line": 31, + "column": 13 + } + }, + "properties": [ + { + "type": "Property", + "start": 558, + "end": 580, + "loc": { + "start": { + "line": 30, + "column": 16 + }, + "end": { + "line": 30, + "column": 38 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 558, + "end": 562, + "loc": { + "start": { + "line": 30, + "column": 16 + }, + "end": { + "line": 30, + "column": 20 + } + }, + "name": "left" + }, + "value": { + "type": "MemberExpression", + "start": 564, + "end": 580, + "loc": { + "start": { + "line": 30, + "column": 22 + }, + "end": { + "line": 30, + "column": 38 + } + }, + "object": { + "type": "Identifier", + "start": 564, + "end": 570, + "loc": { + "start": { + "line": 30, + "column": 22 + }, + "end": { + "line": 30, + "column": 28 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 571, + "end": 580, + "loc": { + "start": { + "line": 30, + "column": 29 + }, + "end": { + "line": 30, + "column": 38 + } + }, + "name": "component" + }, + "computed": false + }, + "kind": "init" + } + ] + } + ] + } + } + ], + "test": { + "type": "MemberExpression", + "start": 476, + "end": 494, + "loc": { + "start": { + "line": 28, + "column": 13 + }, + "end": { + "line": 28, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 476, + "end": 489, + "loc": { + "start": { + "line": 28, + "column": 13 + }, + "end": { + "line": 28, + "column": 26 + } + }, + "name": "HeaderActions" + }, + "property": { + "type": "Identifier", + "start": 490, + "end": 494, + "loc": { + "start": { + "line": 28, + "column": 27 + }, + "end": { + "line": 28, + "column": 31 + } + }, + "name": "LEFT" + }, + "computed": false + } + }, + { + "type": "SwitchCase", + "start": 606, + "end": 735, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 36, + "column": 14 + } + }, + "consequent": [ + { + "type": "ReturnStatement", + "start": 645, + "end": 735, + "loc": { + "start": { + "line": 34, + "column": 12 + }, + "end": { + "line": 36, + "column": 14 + } + }, + "argument": { + "type": "CallExpression", + "start": 652, + "end": 735, + "loc": { + "start": { + "line": 34, + "column": 19 + }, + "end": { + "line": 36, + "column": 14 + } + }, + "callee": { + "type": "MemberExpression", + "start": 652, + "end": 665, + "loc": { + "start": { + "line": 34, + "column": 19 + }, + "end": { + "line": 34, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 652, + "end": 658, + "loc": { + "start": { + "line": 34, + "column": 19 + }, + "end": { + "line": 34, + "column": 25 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 659, + "end": 665, + "loc": { + "start": { + "line": 34, + "column": 26 + }, + "end": { + "line": 34, + "column": 32 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 666, + "end": 668, + "loc": { + "start": { + "line": 34, + "column": 33 + }, + "end": { + "line": 34, + "column": 35 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 670, + "end": 675, + "loc": { + "start": { + "line": 34, + "column": 37 + }, + "end": { + "line": 34, + "column": 42 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 677, + "end": 734, + "loc": { + "start": { + "line": 34, + "column": 44 + }, + "end": { + "line": 36, + "column": 13 + } + }, + "properties": [ + { + "type": "Property", + "start": 695, + "end": 719, + "loc": { + "start": { + "line": 35, + "column": 16 + }, + "end": { + "line": 35, + "column": 40 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 695, + "end": 701, + "loc": { + "start": { + "line": 35, + "column": 16 + }, + "end": { + "line": 35, + "column": 22 + } + }, + "name": "middle" + }, + "value": { + "type": "MemberExpression", + "start": 703, + "end": 719, + "loc": { + "start": { + "line": 35, + "column": 24 + }, + "end": { + "line": 35, + "column": 40 + } + }, + "object": { + "type": "Identifier", + "start": 703, + "end": 709, + "loc": { + "start": { + "line": 35, + "column": 24 + }, + "end": { + "line": 35, + "column": 30 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 710, + "end": 719, + "loc": { + "start": { + "line": 35, + "column": 31 + }, + "end": { + "line": 35, + "column": 40 + } + }, + "name": "component" + }, + "computed": false + }, + "kind": "init" + } + ] + } + ] + } + } + ], + "test": { + "type": "MemberExpression", + "start": 611, + "end": 631, + "loc": { + "start": { + "line": 33, + "column": 13 + }, + "end": { + "line": 33, + "column": 33 + } + }, + "object": { + "type": "Identifier", + "start": 611, + "end": 624, + "loc": { + "start": { + "line": 33, + "column": 13 + }, + "end": { + "line": 33, + "column": 26 + } + }, + "name": "HeaderActions" + }, + "property": { + "type": "Identifier", + "start": 625, + "end": 631, + "loc": { + "start": { + "line": 33, + "column": 27 + }, + "end": { + "line": 33, + "column": 33 + } + }, + "name": "MIDDLE" + }, + "computed": false + } + }, + { + "type": "SwitchCase", + "start": 745, + "end": 872, + "loc": { + "start": { + "line": 38, + "column": 8 + }, + "end": { + "line": 41, + "column": 14 + } + }, + "consequent": [ + { + "type": "ReturnStatement", + "start": 783, + "end": 872, + "loc": { + "start": { + "line": 39, + "column": 12 + }, + "end": { + "line": 41, + "column": 14 + } + }, + "argument": { + "type": "CallExpression", + "start": 790, + "end": 872, + "loc": { + "start": { + "line": 39, + "column": 19 + }, + "end": { + "line": 41, + "column": 14 + } + }, + "callee": { + "type": "MemberExpression", + "start": 790, + "end": 803, + "loc": { + "start": { + "line": 39, + "column": 19 + }, + "end": { + "line": 39, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 790, + "end": 796, + "loc": { + "start": { + "line": 39, + "column": 19 + }, + "end": { + "line": 39, + "column": 25 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 797, + "end": 803, + "loc": { + "start": { + "line": 39, + "column": 26 + }, + "end": { + "line": 39, + "column": 32 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 804, + "end": 806, + "loc": { + "start": { + "line": 39, + "column": 33 + }, + "end": { + "line": 39, + "column": 35 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 808, + "end": 813, + "loc": { + "start": { + "line": 39, + "column": 37 + }, + "end": { + "line": 39, + "column": 42 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 815, + "end": 871, + "loc": { + "start": { + "line": 39, + "column": 44 + }, + "end": { + "line": 41, + "column": 13 + } + }, + "properties": [ + { + "type": "Property", + "start": 833, + "end": 856, + "loc": { + "start": { + "line": 40, + "column": 16 + }, + "end": { + "line": 40, + "column": 39 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 833, + "end": 838, + "loc": { + "start": { + "line": 40, + "column": 16 + }, + "end": { + "line": 40, + "column": 21 + } + }, + "name": "right" + }, + "value": { + "type": "MemberExpression", + "start": 840, + "end": 856, + "loc": { + "start": { + "line": 40, + "column": 23 + }, + "end": { + "line": 40, + "column": 39 + } + }, + "object": { + "type": "Identifier", + "start": 840, + "end": 846, + "loc": { + "start": { + "line": 40, + "column": 23 + }, + "end": { + "line": 40, + "column": 29 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 847, + "end": 856, + "loc": { + "start": { + "line": 40, + "column": 30 + }, + "end": { + "line": 40, + "column": 39 + } + }, + "name": "component" + }, + "computed": false + }, + "kind": "init" + } + ] + } + ] + } + } + ], + "test": { + "type": "MemberExpression", + "start": 750, + "end": 769, + "loc": { + "start": { + "line": 38, + "column": 13 + }, + "end": { + "line": 38, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 750, + "end": 763, + "loc": { + "start": { + "line": 38, + "column": 13 + }, + "end": { + "line": 38, + "column": 26 + } + }, + "name": "HeaderActions" + }, + "property": { + "type": "Identifier", + "start": 764, + "end": 769, + "loc": { + "start": { + "line": 38, + "column": 27 + }, + "end": { + "line": 38, + "column": 32 + } + }, + "name": "RIGHT" + }, + "computed": false + } + } + ] + }, + { + "type": "ReturnStatement", + "start": 884, + "end": 896, + "loc": { + "start": { + "line": 44, + "column": 4 + }, + "end": { + "line": 44, + "column": 16 + } + }, + "argument": { + "type": "Identifier", + "start": 891, + "end": 896, + "loc": { + "start": { + "line": 44, + "column": 11 + }, + "end": { + "line": 44, + "column": 16 + } + }, + "name": "state" + } + } + ] + }, + "leadingComments": [], + "name": "_", + "trailingComments": [] + }, + { + "type": "Identifier", + "start": 900, + "end": 921, + "loc": { + "start": { + "line": 47, + "column": 0 + }, + "end": { + "line": 47, + "column": 21 + } + }, + "declaration": { + "type": "Identifier", + "start": 915, + "end": 921, + "loc": { + "start": { + "line": 47, + "column": 15 + }, + "end": { + "line": 47, + "column": 21 + } + }, + "name": "Header" + }, + "name": "_", + "leadingComments": [], + "trailingComments": [] + }, + { + "type": "ExportDefaultDeclaration", + "start": 900, + "end": 921, + "loc": { + "start": { + "line": 47, + "column": 0 + }, + "end": { + "line": 47, + "column": 21 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 386, + "end": 898, + "loc": { + "start": { + "line": 24, + "column": 0 + }, + "end": { + "line": 45, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 395, + "end": 401, + "loc": { + "start": { + "line": 24, + "column": 9 + }, + "end": { + "line": 24, + "column": 15 + } + }, + "name": "Header", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "AssignmentPattern", + "start": 402, + "end": 422, + "loc": { + "start": { + "line": 24, + "column": 16 + }, + "end": { + "line": 24, + "column": 36 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 402, + "end": 407, + "loc": { + "start": { + "line": 24, + "column": 16 + }, + "end": { + "line": 24, + "column": 21 + } + }, + "name": "state" + }, + "right": { + "type": "Identifier", + "start": 410, + "end": 422, + "loc": { + "start": { + "line": 24, + "column": 24 + }, + "end": { + "line": 24, + "column": 36 + } + }, + "name": "initialState" + } + }, + { + "type": "Identifier", + "start": 424, + "end": 430, + "loc": { + "start": { + "line": 24, + "column": 38 + }, + "end": { + "line": 24, + "column": 44 + } + }, + "name": "action" + } + ], + "body": { + "type": "BlockStatement", + "start": 432, + "end": 898, + "loc": { + "start": { + "line": 24, + "column": 46 + }, + "end": { + "line": 45, + "column": 1 + } + }, + "body": [ + { + "type": "SwitchStatement", + "start": 439, + "end": 878, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 42, + "column": 5 + } + }, + "discriminant": { + "type": "MemberExpression", + "start": 447, + "end": 458, + "loc": { + "start": { + "line": 26, + "column": 12 + }, + "end": { + "line": 26, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 447, + "end": 453, + "loc": { + "start": { + "line": 26, + "column": 12 + }, + "end": { + "line": 26, + "column": 18 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 454, + "end": 458, + "loc": { + "start": { + "line": 26, + "column": 19 + }, + "end": { + "line": 26, + "column": 23 + } + }, + "name": "type" + }, + "computed": false + }, + "cases": [ + { + "type": "SwitchCase", + "start": 471, + "end": 596, + "loc": { + "start": { + "line": 28, + "column": 8 + }, + "end": { + "line": 31, + "column": 14 + } + }, + "consequent": [ + { + "type": "ReturnStatement", + "start": 508, + "end": 596, + "loc": { + "start": { + "line": 29, + "column": 12 + }, + "end": { + "line": 31, + "column": 14 + } + }, + "argument": { + "type": "CallExpression", + "start": 515, + "end": 596, + "loc": { + "start": { + "line": 29, + "column": 19 + }, + "end": { + "line": 31, + "column": 14 + } + }, + "callee": { + "type": "MemberExpression", + "start": 515, + "end": 528, + "loc": { + "start": { + "line": 29, + "column": 19 + }, + "end": { + "line": 29, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 515, + "end": 521, + "loc": { + "start": { + "line": 29, + "column": 19 + }, + "end": { + "line": 29, + "column": 25 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 522, + "end": 528, + "loc": { + "start": { + "line": 29, + "column": 26 + }, + "end": { + "line": 29, + "column": 32 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 529, + "end": 531, + "loc": { + "start": { + "line": 29, + "column": 33 + }, + "end": { + "line": 29, + "column": 35 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 533, + "end": 538, + "loc": { + "start": { + "line": 29, + "column": 37 + }, + "end": { + "line": 29, + "column": 42 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 540, + "end": 595, + "loc": { + "start": { + "line": 29, + "column": 44 + }, + "end": { + "line": 31, + "column": 13 + } + }, + "properties": [ + { + "type": "Property", + "start": 558, + "end": 580, + "loc": { + "start": { + "line": 30, + "column": 16 + }, + "end": { + "line": 30, + "column": 38 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 558, + "end": 562, + "loc": { + "start": { + "line": 30, + "column": 16 + }, + "end": { + "line": 30, + "column": 20 + } + }, + "name": "left" + }, + "value": { + "type": "MemberExpression", + "start": 564, + "end": 580, + "loc": { + "start": { + "line": 30, + "column": 22 + }, + "end": { + "line": 30, + "column": 38 + } + }, + "object": { + "type": "Identifier", + "start": 564, + "end": 570, + "loc": { + "start": { + "line": 30, + "column": 22 + }, + "end": { + "line": 30, + "column": 28 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 571, + "end": 580, + "loc": { + "start": { + "line": 30, + "column": 29 + }, + "end": { + "line": 30, + "column": 38 + } + }, + "name": "component" + }, + "computed": false + }, + "kind": "init" + } + ] + } + ] + } + } + ], + "test": { + "type": "MemberExpression", + "start": 476, + "end": 494, + "loc": { + "start": { + "line": 28, + "column": 13 + }, + "end": { + "line": 28, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 476, + "end": 489, + "loc": { + "start": { + "line": 28, + "column": 13 + }, + "end": { + "line": 28, + "column": 26 + } + }, + "name": "HeaderActions" + }, + "property": { + "type": "Identifier", + "start": 490, + "end": 494, + "loc": { + "start": { + "line": 28, + "column": 27 + }, + "end": { + "line": 28, + "column": 31 + } + }, + "name": "LEFT" + }, + "computed": false + } + }, + { + "type": "SwitchCase", + "start": 606, + "end": 735, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 36, + "column": 14 + } + }, + "consequent": [ + { + "type": "ReturnStatement", + "start": 645, + "end": 735, + "loc": { + "start": { + "line": 34, + "column": 12 + }, + "end": { + "line": 36, + "column": 14 + } + }, + "argument": { + "type": "CallExpression", + "start": 652, + "end": 735, + "loc": { + "start": { + "line": 34, + "column": 19 + }, + "end": { + "line": 36, + "column": 14 + } + }, + "callee": { + "type": "MemberExpression", + "start": 652, + "end": 665, + "loc": { + "start": { + "line": 34, + "column": 19 + }, + "end": { + "line": 34, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 652, + "end": 658, + "loc": { + "start": { + "line": 34, + "column": 19 + }, + "end": { + "line": 34, + "column": 25 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 659, + "end": 665, + "loc": { + "start": { + "line": 34, + "column": 26 + }, + "end": { + "line": 34, + "column": 32 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 666, + "end": 668, + "loc": { + "start": { + "line": 34, + "column": 33 + }, + "end": { + "line": 34, + "column": 35 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 670, + "end": 675, + "loc": { + "start": { + "line": 34, + "column": 37 + }, + "end": { + "line": 34, + "column": 42 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 677, + "end": 734, + "loc": { + "start": { + "line": 34, + "column": 44 + }, + "end": { + "line": 36, + "column": 13 + } + }, + "properties": [ + { + "type": "Property", + "start": 695, + "end": 719, + "loc": { + "start": { + "line": 35, + "column": 16 + }, + "end": { + "line": 35, + "column": 40 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 695, + "end": 701, + "loc": { + "start": { + "line": 35, + "column": 16 + }, + "end": { + "line": 35, + "column": 22 + } + }, + "name": "middle" + }, + "value": { + "type": "MemberExpression", + "start": 703, + "end": 719, + "loc": { + "start": { + "line": 35, + "column": 24 + }, + "end": { + "line": 35, + "column": 40 + } + }, + "object": { + "type": "Identifier", + "start": 703, + "end": 709, + "loc": { + "start": { + "line": 35, + "column": 24 + }, + "end": { + "line": 35, + "column": 30 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 710, + "end": 719, + "loc": { + "start": { + "line": 35, + "column": 31 + }, + "end": { + "line": 35, + "column": 40 + } + }, + "name": "component" + }, + "computed": false + }, + "kind": "init" + } + ] + } + ] + } + } + ], + "test": { + "type": "MemberExpression", + "start": 611, + "end": 631, + "loc": { + "start": { + "line": 33, + "column": 13 + }, + "end": { + "line": 33, + "column": 33 + } + }, + "object": { + "type": "Identifier", + "start": 611, + "end": 624, + "loc": { + "start": { + "line": 33, + "column": 13 + }, + "end": { + "line": 33, + "column": 26 + } + }, + "name": "HeaderActions" + }, + "property": { + "type": "Identifier", + "start": 625, + "end": 631, + "loc": { + "start": { + "line": 33, + "column": 27 + }, + "end": { + "line": 33, + "column": 33 + } + }, + "name": "MIDDLE" + }, + "computed": false + } + }, + { + "type": "SwitchCase", + "start": 745, + "end": 872, + "loc": { + "start": { + "line": 38, + "column": 8 + }, + "end": { + "line": 41, + "column": 14 + } + }, + "consequent": [ + { + "type": "ReturnStatement", + "start": 783, + "end": 872, + "loc": { + "start": { + "line": 39, + "column": 12 + }, + "end": { + "line": 41, + "column": 14 + } + }, + "argument": { + "type": "CallExpression", + "start": 790, + "end": 872, + "loc": { + "start": { + "line": 39, + "column": 19 + }, + "end": { + "line": 41, + "column": 14 + } + }, + "callee": { + "type": "MemberExpression", + "start": 790, + "end": 803, + "loc": { + "start": { + "line": 39, + "column": 19 + }, + "end": { + "line": 39, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 790, + "end": 796, + "loc": { + "start": { + "line": 39, + "column": 19 + }, + "end": { + "line": 39, + "column": 25 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 797, + "end": 803, + "loc": { + "start": { + "line": 39, + "column": 26 + }, + "end": { + "line": 39, + "column": 32 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 804, + "end": 806, + "loc": { + "start": { + "line": 39, + "column": 33 + }, + "end": { + "line": 39, + "column": 35 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 808, + "end": 813, + "loc": { + "start": { + "line": 39, + "column": 37 + }, + "end": { + "line": 39, + "column": 42 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 815, + "end": 871, + "loc": { + "start": { + "line": 39, + "column": 44 + }, + "end": { + "line": 41, + "column": 13 + } + }, + "properties": [ + { + "type": "Property", + "start": 833, + "end": 856, + "loc": { + "start": { + "line": 40, + "column": 16 + }, + "end": { + "line": 40, + "column": 39 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 833, + "end": 838, + "loc": { + "start": { + "line": 40, + "column": 16 + }, + "end": { + "line": 40, + "column": 21 + } + }, + "name": "right" + }, + "value": { + "type": "MemberExpression", + "start": 840, + "end": 856, + "loc": { + "start": { + "line": 40, + "column": 23 + }, + "end": { + "line": 40, + "column": 39 + } + }, + "object": { + "type": "Identifier", + "start": 840, + "end": 846, + "loc": { + "start": { + "line": 40, + "column": 23 + }, + "end": { + "line": 40, + "column": 29 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 847, + "end": 856, + "loc": { + "start": { + "line": 40, + "column": 30 + }, + "end": { + "line": 40, + "column": 39 + } + }, + "name": "component" + }, + "computed": false + }, + "kind": "init" + } + ] + } + ] + } + } + ], + "test": { + "type": "MemberExpression", + "start": 750, + "end": 769, + "loc": { + "start": { + "line": 38, + "column": 13 + }, + "end": { + "line": 38, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 750, + "end": 763, + "loc": { + "start": { + "line": 38, + "column": 13 + }, + "end": { + "line": 38, + "column": 26 + } + }, + "name": "HeaderActions" + }, + "property": { + "type": "Identifier", + "start": 764, + "end": 769, + "loc": { + "start": { + "line": 38, + "column": 27 + }, + "end": { + "line": 38, + "column": 32 + } + }, + "name": "RIGHT" + }, + "computed": false + } + } + ] + }, + { + "type": "ReturnStatement", + "start": 884, + "end": 896, + "loc": { + "start": { + "line": 44, + "column": 4 + }, + "end": { + "line": 44, + "column": 16 + } + }, + "argument": { + "type": "Identifier", + "start": 891, + "end": 896, + "loc": { + "start": { + "line": 44, + "column": 11 + }, + "end": { + "line": 44, + "column": 16 + } + }, + "name": "state" + } + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Header\n * Redux Reducer for Header action\n * Reference: http://redux.js.org/docs/basics/Reducers.html\n * @param state\n * @param action\n * @returns {*}\n * @constructor\n ", + "start": 208, + "end": 385, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 23, + "column": 3 + } + }, + "range": [ + 208, + 385 + ] + } + ], + "trailingComments": [] + } + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/reducers/Likes.js.json b/app/docs/ast/source/reducers/Likes.js.json new file mode 100644 index 0000000..e1601e0 --- /dev/null +++ b/app/docs/ast/source/reducers/Likes.js.json @@ -0,0 +1,3756 @@ +{ + "type": "Program", + "start": 0, + "end": 1148, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 56, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 50, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 16 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 13, + "end": 32, + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 23 + } + }, + "imported": { + "type": "Identifier", + "start": 13, + "end": 17, + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 8 + } + }, + "name": "Like" + }, + "local": { + "type": "Identifier", + "start": 21, + "end": 32, + "loc": { + "start": { + "line": 2, + "column": 12 + }, + "end": { + "line": 2, + "column": 23 + } + }, + "name": "LikeActions" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 41, + "end": 50, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 16 + } + }, + "value": "actions", + "rawValue": "actions", + "raw": "'actions'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n *\n * @type {{likes: number, liked: boolean}}\n ", + "start": 52, + "end": 105, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + }, + "range": [ + 52, + 105 + ] + } + ] + }, + { + "type": "VariableDeclaration", + "start": 106, + "end": 162, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 12, + "column": 1 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 112, + "end": 162, + "loc": { + "start": { + "line": 9, + "column": 6 + }, + "end": { + "line": 12, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 112, + "end": 124, + "loc": { + "start": { + "line": 9, + "column": 6 + }, + "end": { + "line": 9, + "column": 18 + } + }, + "name": "initialState", + "leadingComments": null + }, + "init": { + "type": "ObjectExpression", + "start": 127, + "end": 162, + "loc": { + "start": { + "line": 9, + "column": 21 + }, + "end": { + "line": 12, + "column": 1 + } + }, + "properties": [ + { + "type": "Property", + "start": 133, + "end": 141, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 10, + "column": 12 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 133, + "end": 138, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 10, + "column": 9 + } + }, + "name": "likes" + }, + "value": { + "type": "Literal", + "start": 140, + "end": 141, + "loc": { + "start": { + "line": 10, + "column": 11 + }, + "end": { + "line": 10, + "column": 12 + } + }, + "value": 0, + "rawValue": 0, + "raw": "0" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 147, + "end": 159, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 16 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 147, + "end": 152, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 9 + } + }, + "name": "liked" + }, + "value": { + "type": "Literal", + "start": 154, + "end": 159, + "loc": { + "start": { + "line": 11, + "column": 11 + }, + "end": { + "line": 11, + "column": 16 + } + }, + "value": false, + "rawValue": false, + "raw": "false" + }, + "kind": "init" + } + ], + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n *\n * @type {{likes: number, liked: boolean}}\n ", + "start": 52, + "end": 105, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + }, + "range": [ + 52, + 105 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Likes\n * Redux Reducer for Likes action\n * Reference: http://redux.js.org/docs/basics/Reducers.html\n * @param state\n * @param action\n * @returns {*}\n * @constructor\n ", + "start": 164, + "end": 339, + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 22, + "column": 3 + } + }, + "range": [ + 164, + 339 + ] + } + ] + }, + { + "type": "Identifier", + "start": 340, + "end": 1125, + "loc": { + "start": { + "line": 23, + "column": 0 + }, + "end": { + "line": 53, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 349, + "end": 354, + "loc": { + "start": { + "line": 23, + "column": 9 + }, + "end": { + "line": 23, + "column": 14 + } + }, + "name": "Likes", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "AssignmentPattern", + "start": 355, + "end": 375, + "loc": { + "start": { + "line": 23, + "column": 15 + }, + "end": { + "line": 23, + "column": 35 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 355, + "end": 360, + "loc": { + "start": { + "line": 23, + "column": 15 + }, + "end": { + "line": 23, + "column": 20 + } + }, + "name": "state" + }, + "right": { + "type": "Identifier", + "start": 363, + "end": 375, + "loc": { + "start": { + "line": 23, + "column": 23 + }, + "end": { + "line": 23, + "column": 35 + } + }, + "name": "initialState" + } + }, + { + "type": "Identifier", + "start": 377, + "end": 383, + "loc": { + "start": { + "line": 23, + "column": 37 + }, + "end": { + "line": 23, + "column": 43 + } + }, + "name": "action" + } + ], + "body": { + "type": "BlockStatement", + "start": 385, + "end": 1125, + "loc": { + "start": { + "line": 23, + "column": 45 + }, + "end": { + "line": 53, + "column": 1 + } + }, + "body": [ + { + "type": "SwitchStatement", + "start": 392, + "end": 1104, + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 49, + "column": 5 + } + }, + "discriminant": { + "type": "MemberExpression", + "start": 400, + "end": 411, + "loc": { + "start": { + "line": 25, + "column": 12 + }, + "end": { + "line": 25, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 400, + "end": 406, + "loc": { + "start": { + "line": 25, + "column": 12 + }, + "end": { + "line": 25, + "column": 18 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 407, + "end": 411, + "loc": { + "start": { + "line": 25, + "column": 19 + }, + "end": { + "line": 25, + "column": 23 + } + }, + "name": "type" + }, + "computed": false + }, + "cases": [ + { + "type": "SwitchCase", + "start": 424, + "end": 697, + "loc": { + "start": { + "line": 27, + "column": 8 + }, + "end": { + "line": 35, + "column": 31 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 459, + "end": 664, + "loc": { + "start": { + "line": 28, + "column": 12 + }, + "end": { + "line": 33, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 463, + "end": 478, + "loc": { + "start": { + "line": 28, + "column": 16 + }, + "end": { + "line": 28, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 463, + "end": 469, + "loc": { + "start": { + "line": 28, + "column": 16 + }, + "end": { + "line": 28, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 470, + "end": 478, + "loc": { + "start": { + "line": 28, + "column": 23 + }, + "end": { + "line": 28, + "column": 31 + } + }, + "name": "response" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 480, + "end": 664, + "loc": { + "start": { + "line": 28, + "column": 33 + }, + "end": { + "line": 33, + "column": 13 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 498, + "end": 650, + "loc": { + "start": { + "line": 29, + "column": 16 + }, + "end": { + "line": 32, + "column": 18 + } + }, + "argument": { + "type": "CallExpression", + "start": 505, + "end": 650, + "loc": { + "start": { + "line": 29, + "column": 23 + }, + "end": { + "line": 32, + "column": 18 + } + }, + "callee": { + "type": "MemberExpression", + "start": 505, + "end": 518, + "loc": { + "start": { + "line": 29, + "column": 23 + }, + "end": { + "line": 29, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 505, + "end": 511, + "loc": { + "start": { + "line": 29, + "column": 23 + }, + "end": { + "line": 29, + "column": 29 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 512, + "end": 518, + "loc": { + "start": { + "line": 29, + "column": 30 + }, + "end": { + "line": 29, + "column": 36 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 519, + "end": 521, + "loc": { + "start": { + "line": 29, + "column": 37 + }, + "end": { + "line": 29, + "column": 39 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 523, + "end": 528, + "loc": { + "start": { + "line": 29, + "column": 41 + }, + "end": { + "line": 29, + "column": 46 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 530, + "end": 649, + "loc": { + "start": { + "line": 29, + "column": 48 + }, + "end": { + "line": 32, + "column": 17 + } + }, + "properties": [ + { + "type": "Property", + "start": 552, + "end": 580, + "loc": { + "start": { + "line": 30, + "column": 20 + }, + "end": { + "line": 30, + "column": 48 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 552, + "end": 557, + "loc": { + "start": { + "line": 30, + "column": 20 + }, + "end": { + "line": 30, + "column": 25 + } + }, + "name": "likes" + }, + "value": { + "type": "MemberExpression", + "start": 559, + "end": 580, + "loc": { + "start": { + "line": 30, + "column": 27 + }, + "end": { + "line": 30, + "column": 48 + } + }, + "object": { + "type": "MemberExpression", + "start": 559, + "end": 574, + "loc": { + "start": { + "line": 30, + "column": 27 + }, + "end": { + "line": 30, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 559, + "end": 565, + "loc": { + "start": { + "line": 30, + "column": 27 + }, + "end": { + "line": 30, + "column": 33 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 566, + "end": 574, + "loc": { + "start": { + "line": 30, + "column": 34 + }, + "end": { + "line": 30, + "column": 42 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 575, + "end": 580, + "loc": { + "start": { + "line": 30, + "column": 43 + }, + "end": { + "line": 30, + "column": 48 + } + }, + "name": "likes" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 602, + "end": 630, + "loc": { + "start": { + "line": 31, + "column": 20 + }, + "end": { + "line": 31, + "column": 48 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 602, + "end": 607, + "loc": { + "start": { + "line": 31, + "column": 20 + }, + "end": { + "line": 31, + "column": 25 + } + }, + "name": "liked" + }, + "value": { + "type": "MemberExpression", + "start": 609, + "end": 630, + "loc": { + "start": { + "line": 31, + "column": 27 + }, + "end": { + "line": 31, + "column": 48 + } + }, + "object": { + "type": "MemberExpression", + "start": 609, + "end": 624, + "loc": { + "start": { + "line": 31, + "column": 27 + }, + "end": { + "line": 31, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 609, + "end": 615, + "loc": { + "start": { + "line": 31, + "column": 27 + }, + "end": { + "line": 31, + "column": 33 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 616, + "end": 624, + "loc": { + "start": { + "line": 31, + "column": 34 + }, + "end": { + "line": 31, + "column": 42 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 625, + "end": 630, + "loc": { + "start": { + "line": 31, + "column": 43 + }, + "end": { + "line": 31, + "column": 48 + } + }, + "name": "liked" + }, + "computed": false + }, + "kind": "init" + } + ] + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 678, + "end": 697, + "loc": { + "start": { + "line": 35, + "column": 12 + }, + "end": { + "line": 35, + "column": 31 + } + }, + "argument": { + "type": "Identifier", + "start": 685, + "end": 697, + "loc": { + "start": { + "line": 35, + "column": 19 + }, + "end": { + "line": 35, + "column": 31 + } + }, + "name": "initialState" + } + } + ], + "test": { + "type": "MemberExpression", + "start": 429, + "end": 445, + "loc": { + "start": { + "line": 27, + "column": 13 + }, + "end": { + "line": 27, + "column": 29 + } + }, + "object": { + "type": "Identifier", + "start": 429, + "end": 440, + "loc": { + "start": { + "line": 27, + "column": 13 + }, + "end": { + "line": 27, + "column": 24 + } + }, + "name": "LikeActions" + }, + "property": { + "type": "Identifier", + "start": 441, + "end": 445, + "loc": { + "start": { + "line": 27, + "column": 25 + }, + "end": { + "line": 27, + "column": 29 + } + }, + "name": "LOAD" + }, + "computed": false + } + }, + { + "type": "SwitchCase", + "start": 707, + "end": 895, + "loc": { + "start": { + "line": 37, + "column": 8 + }, + "end": { + "line": 41, + "column": 17 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 746, + "end": 877, + "loc": { + "start": { + "line": 38, + "column": 12 + }, + "end": { + "line": 40, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 750, + "end": 765, + "loc": { + "start": { + "line": 38, + "column": 16 + }, + "end": { + "line": 38, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 750, + "end": 756, + "loc": { + "start": { + "line": 38, + "column": 16 + }, + "end": { + "line": 38, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 757, + "end": 765, + "loc": { + "start": { + "line": 38, + "column": 23 + }, + "end": { + "line": 38, + "column": 31 + } + }, + "name": "response" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 767, + "end": 877, + "loc": { + "start": { + "line": 38, + "column": 33 + }, + "end": { + "line": 40, + "column": 13 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 785, + "end": 863, + "loc": { + "start": { + "line": 39, + "column": 16 + }, + "end": { + "line": 39, + "column": 94 + } + }, + "argument": { + "type": "CallExpression", + "start": 792, + "end": 863, + "loc": { + "start": { + "line": 39, + "column": 23 + }, + "end": { + "line": 39, + "column": 94 + } + }, + "callee": { + "type": "MemberExpression", + "start": 792, + "end": 805, + "loc": { + "start": { + "line": 39, + "column": 23 + }, + "end": { + "line": 39, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 792, + "end": 798, + "loc": { + "start": { + "line": 39, + "column": 23 + }, + "end": { + "line": 39, + "column": 29 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 799, + "end": 805, + "loc": { + "start": { + "line": 39, + "column": 30 + }, + "end": { + "line": 39, + "column": 36 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 806, + "end": 808, + "loc": { + "start": { + "line": 39, + "column": 37 + }, + "end": { + "line": 39, + "column": 39 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 810, + "end": 815, + "loc": { + "start": { + "line": 39, + "column": 41 + }, + "end": { + "line": 39, + "column": 46 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 817, + "end": 862, + "loc": { + "start": { + "line": 39, + "column": 48 + }, + "end": { + "line": 39, + "column": 93 + } + }, + "properties": [ + { + "type": "Property", + "start": 819, + "end": 830, + "loc": { + "start": { + "line": 39, + "column": 50 + }, + "end": { + "line": 39, + "column": 61 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 819, + "end": 824, + "loc": { + "start": { + "line": 39, + "column": 50 + }, + "end": { + "line": 39, + "column": 55 + } + }, + "name": "liked" + }, + "value": { + "type": "Literal", + "start": 826, + "end": 830, + "loc": { + "start": { + "line": 39, + "column": 57 + }, + "end": { + "line": 39, + "column": 61 + } + }, + "value": true, + "rawValue": true, + "raw": "true" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 832, + "end": 860, + "loc": { + "start": { + "line": 39, + "column": 63 + }, + "end": { + "line": 39, + "column": 91 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 832, + "end": 837, + "loc": { + "start": { + "line": 39, + "column": 63 + }, + "end": { + "line": 39, + "column": 68 + } + }, + "name": "likes" + }, + "value": { + "type": "MemberExpression", + "start": 839, + "end": 860, + "loc": { + "start": { + "line": 39, + "column": 70 + }, + "end": { + "line": 39, + "column": 91 + } + }, + "object": { + "type": "MemberExpression", + "start": 839, + "end": 854, + "loc": { + "start": { + "line": 39, + "column": 70 + }, + "end": { + "line": 39, + "column": 85 + } + }, + "object": { + "type": "Identifier", + "start": 839, + "end": 845, + "loc": { + "start": { + "line": 39, + "column": 70 + }, + "end": { + "line": 39, + "column": 76 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 846, + "end": 854, + "loc": { + "start": { + "line": 39, + "column": 77 + }, + "end": { + "line": 39, + "column": 85 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 855, + "end": 860, + "loc": { + "start": { + "line": 39, + "column": 86 + }, + "end": { + "line": 39, + "column": 91 + } + }, + "name": "likes" + }, + "computed": false + }, + "kind": "init" + } + ] + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "BreakStatement", + "start": 890, + "end": 895, + "loc": { + "start": { + "line": 41, + "column": 12 + }, + "end": { + "line": 41, + "column": 17 + } + }, + "label": null + } + ], + "test": { + "type": "MemberExpression", + "start": 712, + "end": 732, + "loc": { + "start": { + "line": 37, + "column": 13 + }, + "end": { + "line": 37, + "column": 33 + } + }, + "object": { + "type": "Identifier", + "start": 712, + "end": 723, + "loc": { + "start": { + "line": 37, + "column": 13 + }, + "end": { + "line": 37, + "column": 24 + } + }, + "name": "LikeActions" + }, + "property": { + "type": "Identifier", + "start": 724, + "end": 732, + "loc": { + "start": { + "line": 37, + "column": 25 + }, + "end": { + "line": 37, + "column": 33 + } + }, + "name": "ADD_LIKE" + }, + "computed": false + } + }, + { + "type": "SwitchCase", + "start": 905, + "end": 1097, + "loc": { + "start": { + "line": 43, + "column": 8 + }, + "end": { + "line": 47, + "column": 17 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 947, + "end": 1079, + "loc": { + "start": { + "line": 44, + "column": 12 + }, + "end": { + "line": 46, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 951, + "end": 966, + "loc": { + "start": { + "line": 44, + "column": 16 + }, + "end": { + "line": 44, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 951, + "end": 957, + "loc": { + "start": { + "line": 44, + "column": 16 + }, + "end": { + "line": 44, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 958, + "end": 966, + "loc": { + "start": { + "line": 44, + "column": 23 + }, + "end": { + "line": 44, + "column": 31 + } + }, + "name": "response" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 968, + "end": 1079, + "loc": { + "start": { + "line": 44, + "column": 33 + }, + "end": { + "line": 46, + "column": 13 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 986, + "end": 1065, + "loc": { + "start": { + "line": 45, + "column": 16 + }, + "end": { + "line": 45, + "column": 95 + } + }, + "argument": { + "type": "CallExpression", + "start": 993, + "end": 1065, + "loc": { + "start": { + "line": 45, + "column": 23 + }, + "end": { + "line": 45, + "column": 95 + } + }, + "callee": { + "type": "MemberExpression", + "start": 993, + "end": 1006, + "loc": { + "start": { + "line": 45, + "column": 23 + }, + "end": { + "line": 45, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 993, + "end": 999, + "loc": { + "start": { + "line": 45, + "column": 23 + }, + "end": { + "line": 45, + "column": 29 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 1000, + "end": 1006, + "loc": { + "start": { + "line": 45, + "column": 30 + }, + "end": { + "line": 45, + "column": 36 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 1007, + "end": 1009, + "loc": { + "start": { + "line": 45, + "column": 37 + }, + "end": { + "line": 45, + "column": 39 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 1011, + "end": 1016, + "loc": { + "start": { + "line": 45, + "column": 41 + }, + "end": { + "line": 45, + "column": 46 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 1018, + "end": 1064, + "loc": { + "start": { + "line": 45, + "column": 48 + }, + "end": { + "line": 45, + "column": 94 + } + }, + "properties": [ + { + "type": "Property", + "start": 1020, + "end": 1032, + "loc": { + "start": { + "line": 45, + "column": 50 + }, + "end": { + "line": 45, + "column": 62 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1020, + "end": 1025, + "loc": { + "start": { + "line": 45, + "column": 50 + }, + "end": { + "line": 45, + "column": 55 + } + }, + "name": "liked" + }, + "value": { + "type": "Literal", + "start": 1027, + "end": 1032, + "loc": { + "start": { + "line": 45, + "column": 57 + }, + "end": { + "line": 45, + "column": 62 + } + }, + "value": false, + "rawValue": false, + "raw": "false" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1034, + "end": 1062, + "loc": { + "start": { + "line": 45, + "column": 64 + }, + "end": { + "line": 45, + "column": 92 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1034, + "end": 1039, + "loc": { + "start": { + "line": 45, + "column": 64 + }, + "end": { + "line": 45, + "column": 69 + } + }, + "name": "likes" + }, + "value": { + "type": "MemberExpression", + "start": 1041, + "end": 1062, + "loc": { + "start": { + "line": 45, + "column": 71 + }, + "end": { + "line": 45, + "column": 92 + } + }, + "object": { + "type": "MemberExpression", + "start": 1041, + "end": 1056, + "loc": { + "start": { + "line": 45, + "column": 71 + }, + "end": { + "line": 45, + "column": 86 + } + }, + "object": { + "type": "Identifier", + "start": 1041, + "end": 1047, + "loc": { + "start": { + "line": 45, + "column": 71 + }, + "end": { + "line": 45, + "column": 77 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1048, + "end": 1056, + "loc": { + "start": { + "line": 45, + "column": 78 + }, + "end": { + "line": 45, + "column": 86 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1057, + "end": 1062, + "loc": { + "start": { + "line": 45, + "column": 87 + }, + "end": { + "line": 45, + "column": 92 + } + }, + "name": "likes" + }, + "computed": false + }, + "kind": "init" + } + ] + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "BreakStatement", + "start": 1092, + "end": 1097, + "loc": { + "start": { + "line": 47, + "column": 12 + }, + "end": { + "line": 47, + "column": 17 + } + }, + "label": null + } + ], + "test": { + "type": "MemberExpression", + "start": 910, + "end": 933, + "loc": { + "start": { + "line": 43, + "column": 13 + }, + "end": { + "line": 43, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 910, + "end": 921, + "loc": { + "start": { + "line": 43, + "column": 13 + }, + "end": { + "line": 43, + "column": 24 + } + }, + "name": "LikeActions" + }, + "property": { + "type": "Identifier", + "start": 922, + "end": 933, + "loc": { + "start": { + "line": 43, + "column": 25 + }, + "end": { + "line": 43, + "column": 36 + } + }, + "name": "DELETE_LIKE" + }, + "computed": false + } + } + ] + }, + { + "type": "ReturnStatement", + "start": 1110, + "end": 1122, + "loc": { + "start": { + "line": 51, + "column": 4 + }, + "end": { + "line": 51, + "column": 16 + } + }, + "argument": { + "type": "Identifier", + "start": 1117, + "end": 1122, + "loc": { + "start": { + "line": 51, + "column": 11 + }, + "end": { + "line": 51, + "column": 16 + } + }, + "name": "state" + } + } + ] + }, + "leadingComments": [], + "name": "_", + "trailingComments": [] + }, + { + "type": "Identifier", + "start": 1127, + "end": 1147, + "loc": { + "start": { + "line": 55, + "column": 0 + }, + "end": { + "line": 55, + "column": 20 + } + }, + "declaration": { + "type": "Identifier", + "start": 1142, + "end": 1147, + "loc": { + "start": { + "line": 55, + "column": 15 + }, + "end": { + "line": 55, + "column": 20 + } + }, + "name": "Likes" + }, + "name": "_", + "leadingComments": [], + "trailingComments": [] + }, + { + "type": "ExportDefaultDeclaration", + "start": 1127, + "end": 1147, + "loc": { + "start": { + "line": 55, + "column": 0 + }, + "end": { + "line": 55, + "column": 20 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 340, + "end": 1125, + "loc": { + "start": { + "line": 23, + "column": 0 + }, + "end": { + "line": 53, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 349, + "end": 354, + "loc": { + "start": { + "line": 23, + "column": 9 + }, + "end": { + "line": 23, + "column": 14 + } + }, + "name": "Likes", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "AssignmentPattern", + "start": 355, + "end": 375, + "loc": { + "start": { + "line": 23, + "column": 15 + }, + "end": { + "line": 23, + "column": 35 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 355, + "end": 360, + "loc": { + "start": { + "line": 23, + "column": 15 + }, + "end": { + "line": 23, + "column": 20 + } + }, + "name": "state" + }, + "right": { + "type": "Identifier", + "start": 363, + "end": 375, + "loc": { + "start": { + "line": 23, + "column": 23 + }, + "end": { + "line": 23, + "column": 35 + } + }, + "name": "initialState" + } + }, + { + "type": "Identifier", + "start": 377, + "end": 383, + "loc": { + "start": { + "line": 23, + "column": 37 + }, + "end": { + "line": 23, + "column": 43 + } + }, + "name": "action" + } + ], + "body": { + "type": "BlockStatement", + "start": 385, + "end": 1125, + "loc": { + "start": { + "line": 23, + "column": 45 + }, + "end": { + "line": 53, + "column": 1 + } + }, + "body": [ + { + "type": "SwitchStatement", + "start": 392, + "end": 1104, + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 49, + "column": 5 + } + }, + "discriminant": { + "type": "MemberExpression", + "start": 400, + "end": 411, + "loc": { + "start": { + "line": 25, + "column": 12 + }, + "end": { + "line": 25, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 400, + "end": 406, + "loc": { + "start": { + "line": 25, + "column": 12 + }, + "end": { + "line": 25, + "column": 18 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 407, + "end": 411, + "loc": { + "start": { + "line": 25, + "column": 19 + }, + "end": { + "line": 25, + "column": 23 + } + }, + "name": "type" + }, + "computed": false + }, + "cases": [ + { + "type": "SwitchCase", + "start": 424, + "end": 697, + "loc": { + "start": { + "line": 27, + "column": 8 + }, + "end": { + "line": 35, + "column": 31 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 459, + "end": 664, + "loc": { + "start": { + "line": 28, + "column": 12 + }, + "end": { + "line": 33, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 463, + "end": 478, + "loc": { + "start": { + "line": 28, + "column": 16 + }, + "end": { + "line": 28, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 463, + "end": 469, + "loc": { + "start": { + "line": 28, + "column": 16 + }, + "end": { + "line": 28, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 470, + "end": 478, + "loc": { + "start": { + "line": 28, + "column": 23 + }, + "end": { + "line": 28, + "column": 31 + } + }, + "name": "response" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 480, + "end": 664, + "loc": { + "start": { + "line": 28, + "column": 33 + }, + "end": { + "line": 33, + "column": 13 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 498, + "end": 650, + "loc": { + "start": { + "line": 29, + "column": 16 + }, + "end": { + "line": 32, + "column": 18 + } + }, + "argument": { + "type": "CallExpression", + "start": 505, + "end": 650, + "loc": { + "start": { + "line": 29, + "column": 23 + }, + "end": { + "line": 32, + "column": 18 + } + }, + "callee": { + "type": "MemberExpression", + "start": 505, + "end": 518, + "loc": { + "start": { + "line": 29, + "column": 23 + }, + "end": { + "line": 29, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 505, + "end": 511, + "loc": { + "start": { + "line": 29, + "column": 23 + }, + "end": { + "line": 29, + "column": 29 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 512, + "end": 518, + "loc": { + "start": { + "line": 29, + "column": 30 + }, + "end": { + "line": 29, + "column": 36 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 519, + "end": 521, + "loc": { + "start": { + "line": 29, + "column": 37 + }, + "end": { + "line": 29, + "column": 39 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 523, + "end": 528, + "loc": { + "start": { + "line": 29, + "column": 41 + }, + "end": { + "line": 29, + "column": 46 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 530, + "end": 649, + "loc": { + "start": { + "line": 29, + "column": 48 + }, + "end": { + "line": 32, + "column": 17 + } + }, + "properties": [ + { + "type": "Property", + "start": 552, + "end": 580, + "loc": { + "start": { + "line": 30, + "column": 20 + }, + "end": { + "line": 30, + "column": 48 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 552, + "end": 557, + "loc": { + "start": { + "line": 30, + "column": 20 + }, + "end": { + "line": 30, + "column": 25 + } + }, + "name": "likes" + }, + "value": { + "type": "MemberExpression", + "start": 559, + "end": 580, + "loc": { + "start": { + "line": 30, + "column": 27 + }, + "end": { + "line": 30, + "column": 48 + } + }, + "object": { + "type": "MemberExpression", + "start": 559, + "end": 574, + "loc": { + "start": { + "line": 30, + "column": 27 + }, + "end": { + "line": 30, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 559, + "end": 565, + "loc": { + "start": { + "line": 30, + "column": 27 + }, + "end": { + "line": 30, + "column": 33 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 566, + "end": 574, + "loc": { + "start": { + "line": 30, + "column": 34 + }, + "end": { + "line": 30, + "column": 42 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 575, + "end": 580, + "loc": { + "start": { + "line": 30, + "column": 43 + }, + "end": { + "line": 30, + "column": 48 + } + }, + "name": "likes" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 602, + "end": 630, + "loc": { + "start": { + "line": 31, + "column": 20 + }, + "end": { + "line": 31, + "column": 48 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 602, + "end": 607, + "loc": { + "start": { + "line": 31, + "column": 20 + }, + "end": { + "line": 31, + "column": 25 + } + }, + "name": "liked" + }, + "value": { + "type": "MemberExpression", + "start": 609, + "end": 630, + "loc": { + "start": { + "line": 31, + "column": 27 + }, + "end": { + "line": 31, + "column": 48 + } + }, + "object": { + "type": "MemberExpression", + "start": 609, + "end": 624, + "loc": { + "start": { + "line": 31, + "column": 27 + }, + "end": { + "line": 31, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 609, + "end": 615, + "loc": { + "start": { + "line": 31, + "column": 27 + }, + "end": { + "line": 31, + "column": 33 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 616, + "end": 624, + "loc": { + "start": { + "line": 31, + "column": 34 + }, + "end": { + "line": 31, + "column": 42 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 625, + "end": 630, + "loc": { + "start": { + "line": 31, + "column": 43 + }, + "end": { + "line": 31, + "column": 48 + } + }, + "name": "liked" + }, + "computed": false + }, + "kind": "init" + } + ] + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 678, + "end": 697, + "loc": { + "start": { + "line": 35, + "column": 12 + }, + "end": { + "line": 35, + "column": 31 + } + }, + "argument": { + "type": "Identifier", + "start": 685, + "end": 697, + "loc": { + "start": { + "line": 35, + "column": 19 + }, + "end": { + "line": 35, + "column": 31 + } + }, + "name": "initialState" + } + } + ], + "test": { + "type": "MemberExpression", + "start": 429, + "end": 445, + "loc": { + "start": { + "line": 27, + "column": 13 + }, + "end": { + "line": 27, + "column": 29 + } + }, + "object": { + "type": "Identifier", + "start": 429, + "end": 440, + "loc": { + "start": { + "line": 27, + "column": 13 + }, + "end": { + "line": 27, + "column": 24 + } + }, + "name": "LikeActions" + }, + "property": { + "type": "Identifier", + "start": 441, + "end": 445, + "loc": { + "start": { + "line": 27, + "column": 25 + }, + "end": { + "line": 27, + "column": 29 + } + }, + "name": "LOAD" + }, + "computed": false + } + }, + { + "type": "SwitchCase", + "start": 707, + "end": 895, + "loc": { + "start": { + "line": 37, + "column": 8 + }, + "end": { + "line": 41, + "column": 17 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 746, + "end": 877, + "loc": { + "start": { + "line": 38, + "column": 12 + }, + "end": { + "line": 40, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 750, + "end": 765, + "loc": { + "start": { + "line": 38, + "column": 16 + }, + "end": { + "line": 38, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 750, + "end": 756, + "loc": { + "start": { + "line": 38, + "column": 16 + }, + "end": { + "line": 38, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 757, + "end": 765, + "loc": { + "start": { + "line": 38, + "column": 23 + }, + "end": { + "line": 38, + "column": 31 + } + }, + "name": "response" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 767, + "end": 877, + "loc": { + "start": { + "line": 38, + "column": 33 + }, + "end": { + "line": 40, + "column": 13 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 785, + "end": 863, + "loc": { + "start": { + "line": 39, + "column": 16 + }, + "end": { + "line": 39, + "column": 94 + } + }, + "argument": { + "type": "CallExpression", + "start": 792, + "end": 863, + "loc": { + "start": { + "line": 39, + "column": 23 + }, + "end": { + "line": 39, + "column": 94 + } + }, + "callee": { + "type": "MemberExpression", + "start": 792, + "end": 805, + "loc": { + "start": { + "line": 39, + "column": 23 + }, + "end": { + "line": 39, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 792, + "end": 798, + "loc": { + "start": { + "line": 39, + "column": 23 + }, + "end": { + "line": 39, + "column": 29 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 799, + "end": 805, + "loc": { + "start": { + "line": 39, + "column": 30 + }, + "end": { + "line": 39, + "column": 36 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 806, + "end": 808, + "loc": { + "start": { + "line": 39, + "column": 37 + }, + "end": { + "line": 39, + "column": 39 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 810, + "end": 815, + "loc": { + "start": { + "line": 39, + "column": 41 + }, + "end": { + "line": 39, + "column": 46 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 817, + "end": 862, + "loc": { + "start": { + "line": 39, + "column": 48 + }, + "end": { + "line": 39, + "column": 93 + } + }, + "properties": [ + { + "type": "Property", + "start": 819, + "end": 830, + "loc": { + "start": { + "line": 39, + "column": 50 + }, + "end": { + "line": 39, + "column": 61 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 819, + "end": 824, + "loc": { + "start": { + "line": 39, + "column": 50 + }, + "end": { + "line": 39, + "column": 55 + } + }, + "name": "liked" + }, + "value": { + "type": "Literal", + "start": 826, + "end": 830, + "loc": { + "start": { + "line": 39, + "column": 57 + }, + "end": { + "line": 39, + "column": 61 + } + }, + "value": true, + "rawValue": true, + "raw": "true" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 832, + "end": 860, + "loc": { + "start": { + "line": 39, + "column": 63 + }, + "end": { + "line": 39, + "column": 91 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 832, + "end": 837, + "loc": { + "start": { + "line": 39, + "column": 63 + }, + "end": { + "line": 39, + "column": 68 + } + }, + "name": "likes" + }, + "value": { + "type": "MemberExpression", + "start": 839, + "end": 860, + "loc": { + "start": { + "line": 39, + "column": 70 + }, + "end": { + "line": 39, + "column": 91 + } + }, + "object": { + "type": "MemberExpression", + "start": 839, + "end": 854, + "loc": { + "start": { + "line": 39, + "column": 70 + }, + "end": { + "line": 39, + "column": 85 + } + }, + "object": { + "type": "Identifier", + "start": 839, + "end": 845, + "loc": { + "start": { + "line": 39, + "column": 70 + }, + "end": { + "line": 39, + "column": 76 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 846, + "end": 854, + "loc": { + "start": { + "line": 39, + "column": 77 + }, + "end": { + "line": 39, + "column": 85 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 855, + "end": 860, + "loc": { + "start": { + "line": 39, + "column": 86 + }, + "end": { + "line": 39, + "column": 91 + } + }, + "name": "likes" + }, + "computed": false + }, + "kind": "init" + } + ] + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "BreakStatement", + "start": 890, + "end": 895, + "loc": { + "start": { + "line": 41, + "column": 12 + }, + "end": { + "line": 41, + "column": 17 + } + }, + "label": null + } + ], + "test": { + "type": "MemberExpression", + "start": 712, + "end": 732, + "loc": { + "start": { + "line": 37, + "column": 13 + }, + "end": { + "line": 37, + "column": 33 + } + }, + "object": { + "type": "Identifier", + "start": 712, + "end": 723, + "loc": { + "start": { + "line": 37, + "column": 13 + }, + "end": { + "line": 37, + "column": 24 + } + }, + "name": "LikeActions" + }, + "property": { + "type": "Identifier", + "start": 724, + "end": 732, + "loc": { + "start": { + "line": 37, + "column": 25 + }, + "end": { + "line": 37, + "column": 33 + } + }, + "name": "ADD_LIKE" + }, + "computed": false + } + }, + { + "type": "SwitchCase", + "start": 905, + "end": 1097, + "loc": { + "start": { + "line": 43, + "column": 8 + }, + "end": { + "line": 47, + "column": 17 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 947, + "end": 1079, + "loc": { + "start": { + "line": 44, + "column": 12 + }, + "end": { + "line": 46, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 951, + "end": 966, + "loc": { + "start": { + "line": 44, + "column": 16 + }, + "end": { + "line": 44, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 951, + "end": 957, + "loc": { + "start": { + "line": 44, + "column": 16 + }, + "end": { + "line": 44, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 958, + "end": 966, + "loc": { + "start": { + "line": 44, + "column": 23 + }, + "end": { + "line": 44, + "column": 31 + } + }, + "name": "response" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 968, + "end": 1079, + "loc": { + "start": { + "line": 44, + "column": 33 + }, + "end": { + "line": 46, + "column": 13 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 986, + "end": 1065, + "loc": { + "start": { + "line": 45, + "column": 16 + }, + "end": { + "line": 45, + "column": 95 + } + }, + "argument": { + "type": "CallExpression", + "start": 993, + "end": 1065, + "loc": { + "start": { + "line": 45, + "column": 23 + }, + "end": { + "line": 45, + "column": 95 + } + }, + "callee": { + "type": "MemberExpression", + "start": 993, + "end": 1006, + "loc": { + "start": { + "line": 45, + "column": 23 + }, + "end": { + "line": 45, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 993, + "end": 999, + "loc": { + "start": { + "line": 45, + "column": 23 + }, + "end": { + "line": 45, + "column": 29 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 1000, + "end": 1006, + "loc": { + "start": { + "line": 45, + "column": 30 + }, + "end": { + "line": 45, + "column": 36 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 1007, + "end": 1009, + "loc": { + "start": { + "line": 45, + "column": 37 + }, + "end": { + "line": 45, + "column": 39 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 1011, + "end": 1016, + "loc": { + "start": { + "line": 45, + "column": 41 + }, + "end": { + "line": 45, + "column": 46 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 1018, + "end": 1064, + "loc": { + "start": { + "line": 45, + "column": 48 + }, + "end": { + "line": 45, + "column": 94 + } + }, + "properties": [ + { + "type": "Property", + "start": 1020, + "end": 1032, + "loc": { + "start": { + "line": 45, + "column": 50 + }, + "end": { + "line": 45, + "column": 62 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1020, + "end": 1025, + "loc": { + "start": { + "line": 45, + "column": 50 + }, + "end": { + "line": 45, + "column": 55 + } + }, + "name": "liked" + }, + "value": { + "type": "Literal", + "start": 1027, + "end": 1032, + "loc": { + "start": { + "line": 45, + "column": 57 + }, + "end": { + "line": 45, + "column": 62 + } + }, + "value": false, + "rawValue": false, + "raw": "false" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1034, + "end": 1062, + "loc": { + "start": { + "line": 45, + "column": 64 + }, + "end": { + "line": 45, + "column": 92 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1034, + "end": 1039, + "loc": { + "start": { + "line": 45, + "column": 64 + }, + "end": { + "line": 45, + "column": 69 + } + }, + "name": "likes" + }, + "value": { + "type": "MemberExpression", + "start": 1041, + "end": 1062, + "loc": { + "start": { + "line": 45, + "column": 71 + }, + "end": { + "line": 45, + "column": 92 + } + }, + "object": { + "type": "MemberExpression", + "start": 1041, + "end": 1056, + "loc": { + "start": { + "line": 45, + "column": 71 + }, + "end": { + "line": 45, + "column": 86 + } + }, + "object": { + "type": "Identifier", + "start": 1041, + "end": 1047, + "loc": { + "start": { + "line": 45, + "column": 71 + }, + "end": { + "line": 45, + "column": 77 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1048, + "end": 1056, + "loc": { + "start": { + "line": 45, + "column": 78 + }, + "end": { + "line": 45, + "column": 86 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1057, + "end": 1062, + "loc": { + "start": { + "line": 45, + "column": 87 + }, + "end": { + "line": 45, + "column": 92 + } + }, + "name": "likes" + }, + "computed": false + }, + "kind": "init" + } + ] + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "BreakStatement", + "start": 1092, + "end": 1097, + "loc": { + "start": { + "line": 47, + "column": 12 + }, + "end": { + "line": 47, + "column": 17 + } + }, + "label": null + } + ], + "test": { + "type": "MemberExpression", + "start": 910, + "end": 933, + "loc": { + "start": { + "line": 43, + "column": 13 + }, + "end": { + "line": 43, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 910, + "end": 921, + "loc": { + "start": { + "line": 43, + "column": 13 + }, + "end": { + "line": 43, + "column": 24 + } + }, + "name": "LikeActions" + }, + "property": { + "type": "Identifier", + "start": 922, + "end": 933, + "loc": { + "start": { + "line": 43, + "column": 25 + }, + "end": { + "line": 43, + "column": 36 + } + }, + "name": "DELETE_LIKE" + }, + "computed": false + } + } + ] + }, + { + "type": "ReturnStatement", + "start": 1110, + "end": 1122, + "loc": { + "start": { + "line": 51, + "column": 4 + }, + "end": { + "line": 51, + "column": 16 + } + }, + "argument": { + "type": "Identifier", + "start": 1117, + "end": 1122, + "loc": { + "start": { + "line": 51, + "column": 11 + }, + "end": { + "line": 51, + "column": 16 + } + }, + "name": "state" + } + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Likes\n * Redux Reducer for Likes action\n * Reference: http://redux.js.org/docs/basics/Reducers.html\n * @param state\n * @param action\n * @returns {*}\n * @constructor\n ", + "start": 164, + "end": 339, + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 22, + "column": 3 + } + }, + "range": [ + 164, + 339 + ] + } + ], + "trailingComments": [] + } + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/reducers/Location.js.json b/app/docs/ast/source/reducers/Location.js.json new file mode 100644 index 0000000..6a9fa34 --- /dev/null +++ b/app/docs/ast/source/reducers/Location.js.json @@ -0,0 +1,1172 @@ +{ + "type": "Program", + "start": 0, + "end": 549, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 30, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 57, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 16 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 13, + "end": 40, + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 31 + } + }, + "imported": { + "type": "Identifier", + "start": 13, + "end": 21, + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 12 + } + }, + "name": "Location" + }, + "local": { + "type": "Identifier", + "start": 25, + "end": 40, + "loc": { + "start": { + "line": 2, + "column": 16 + }, + "end": { + "line": 2, + "column": 31 + } + }, + "name": "LocationActions" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 48, + "end": 57, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 16 + } + }, + "value": "actions", + "rawValue": "actions", + "raw": "'actions'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Location\n * Redux Reducer for Location action\n * Reference: http://redux.js.org/docs/basics/Reducers.html\n * @param state\n * @param action\n * @returns {*}\n * @constructor\n ", + "start": 59, + "end": 240, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + }, + "range": [ + 59, + 240 + ] + } + ] + }, + { + "type": "Identifier", + "start": 241, + "end": 523, + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 27, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 250, + "end": 258, + "loc": { + "start": { + "line": 14, + "column": 9 + }, + "end": { + "line": 14, + "column": 17 + } + }, + "name": "Location", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "AssignmentPattern", + "start": 259, + "end": 269, + "loc": { + "start": { + "line": 14, + "column": 18 + }, + "end": { + "line": 14, + "column": 28 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 259, + "end": 264, + "loc": { + "start": { + "line": 14, + "column": 18 + }, + "end": { + "line": 14, + "column": 23 + } + }, + "name": "state" + }, + "right": { + "type": "ArrayExpression", + "start": 267, + "end": 269, + "loc": { + "start": { + "line": 14, + "column": 26 + }, + "end": { + "line": 14, + "column": 28 + } + }, + "elements": [] + } + }, + { + "type": "Identifier", + "start": 271, + "end": 277, + "loc": { + "start": { + "line": 14, + "column": 30 + }, + "end": { + "line": 14, + "column": 36 + } + }, + "name": "action" + } + ], + "body": { + "type": "BlockStatement", + "start": 279, + "end": 523, + "loc": { + "start": { + "line": 14, + "column": 38 + }, + "end": { + "line": 27, + "column": 1 + } + }, + "body": [ + { + "type": "SwitchStatement", + "start": 286, + "end": 503, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 24, + "column": 5 + } + }, + "discriminant": { + "type": "MemberExpression", + "start": 294, + "end": 305, + "loc": { + "start": { + "line": 16, + "column": 12 + }, + "end": { + "line": 16, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 294, + "end": 300, + "loc": { + "start": { + "line": 16, + "column": 12 + }, + "end": { + "line": 16, + "column": 18 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 301, + "end": 305, + "loc": { + "start": { + "line": 16, + "column": 19 + }, + "end": { + "line": 16, + "column": 23 + } + }, + "name": "type" + }, + "computed": false + }, + "cases": [ + { + "type": "SwitchCase", + "start": 317, + "end": 497, + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 23, + "column": 21 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 356, + "end": 475, + "loc": { + "start": { + "line": 18, + "column": 12 + }, + "end": { + "line": 22, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 360, + "end": 375, + "loc": { + "start": { + "line": 18, + "column": 16 + }, + "end": { + "line": 18, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 360, + "end": 366, + "loc": { + "start": { + "line": 18, + "column": 16 + }, + "end": { + "line": 18, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 367, + "end": 375, + "loc": { + "start": { + "line": 18, + "column": 23 + }, + "end": { + "line": 18, + "column": 31 + } + }, + "name": "response" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 377, + "end": 475, + "loc": { + "start": { + "line": 18, + "column": 33 + }, + "end": { + "line": 22, + "column": 13 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 395, + "end": 461, + "loc": { + "start": { + "line": 19, + "column": 16 + }, + "end": { + "line": 21, + "column": 17 + } + }, + "argument": { + "type": "ArrayExpression", + "start": 402, + "end": 461, + "loc": { + "start": { + "line": 19, + "column": 23 + }, + "end": { + "line": 21, + "column": 17 + } + }, + "elements": [ + { + "type": "SpreadElement", + "start": 424, + "end": 442, + "loc": { + "start": { + "line": 20, + "column": 20 + }, + "end": { + "line": 20, + "column": 38 + } + }, + "argument": { + "type": "MemberExpression", + "start": 427, + "end": 442, + "loc": { + "start": { + "line": 20, + "column": 23 + }, + "end": { + "line": 20, + "column": 38 + } + }, + "object": { + "type": "Identifier", + "start": 427, + "end": 433, + "loc": { + "start": { + "line": 20, + "column": 23 + }, + "end": { + "line": 20, + "column": 29 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 434, + "end": 442, + "loc": { + "start": { + "line": 20, + "column": 30 + }, + "end": { + "line": 20, + "column": 38 + } + }, + "name": "response" + }, + "computed": false + } + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 488, + "end": 497, + "loc": { + "start": { + "line": 23, + "column": 12 + }, + "end": { + "line": 23, + "column": 21 + } + }, + "argument": { + "type": "ArrayExpression", + "start": 495, + "end": 497, + "loc": { + "start": { + "line": 23, + "column": 19 + }, + "end": { + "line": 23, + "column": 21 + } + }, + "elements": [] + } + } + ], + "test": { + "type": "MemberExpression", + "start": 322, + "end": 342, + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 17, + "column": 33 + } + }, + "object": { + "type": "Identifier", + "start": 322, + "end": 337, + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 17, + "column": 28 + } + }, + "name": "LocationActions" + }, + "property": { + "type": "Identifier", + "start": 338, + "end": 342, + "loc": { + "start": { + "line": 17, + "column": 29 + }, + "end": { + "line": 17, + "column": 33 + } + }, + "name": "LOAD" + }, + "computed": false + } + } + ] + }, + { + "type": "ReturnStatement", + "start": 509, + "end": 521, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 16 + } + }, + "argument": { + "type": "Identifier", + "start": 516, + "end": 521, + "loc": { + "start": { + "line": 26, + "column": 11 + }, + "end": { + "line": 26, + "column": 16 + } + }, + "name": "state" + } + } + ] + }, + "leadingComments": [], + "name": "_", + "trailingComments": [] + }, + { + "type": "Identifier", + "start": 525, + "end": 548, + "loc": { + "start": { + "line": 29, + "column": 0 + }, + "end": { + "line": 29, + "column": 23 + } + }, + "declaration": { + "type": "Identifier", + "start": 540, + "end": 548, + "loc": { + "start": { + "line": 29, + "column": 15 + }, + "end": { + "line": 29, + "column": 23 + } + }, + "name": "Location" + }, + "name": "_", + "leadingComments": [], + "trailingComments": [] + }, + { + "type": "ExportDefaultDeclaration", + "start": 525, + "end": 548, + "loc": { + "start": { + "line": 29, + "column": 0 + }, + "end": { + "line": 29, + "column": 23 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 241, + "end": 523, + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 27, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 250, + "end": 258, + "loc": { + "start": { + "line": 14, + "column": 9 + }, + "end": { + "line": 14, + "column": 17 + } + }, + "name": "Location", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "AssignmentPattern", + "start": 259, + "end": 269, + "loc": { + "start": { + "line": 14, + "column": 18 + }, + "end": { + "line": 14, + "column": 28 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 259, + "end": 264, + "loc": { + "start": { + "line": 14, + "column": 18 + }, + "end": { + "line": 14, + "column": 23 + } + }, + "name": "state" + }, + "right": { + "type": "ArrayExpression", + "start": 267, + "end": 269, + "loc": { + "start": { + "line": 14, + "column": 26 + }, + "end": { + "line": 14, + "column": 28 + } + }, + "elements": [] + } + }, + { + "type": "Identifier", + "start": 271, + "end": 277, + "loc": { + "start": { + "line": 14, + "column": 30 + }, + "end": { + "line": 14, + "column": 36 + } + }, + "name": "action" + } + ], + "body": { + "type": "BlockStatement", + "start": 279, + "end": 523, + "loc": { + "start": { + "line": 14, + "column": 38 + }, + "end": { + "line": 27, + "column": 1 + } + }, + "body": [ + { + "type": "SwitchStatement", + "start": 286, + "end": 503, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 24, + "column": 5 + } + }, + "discriminant": { + "type": "MemberExpression", + "start": 294, + "end": 305, + "loc": { + "start": { + "line": 16, + "column": 12 + }, + "end": { + "line": 16, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 294, + "end": 300, + "loc": { + "start": { + "line": 16, + "column": 12 + }, + "end": { + "line": 16, + "column": 18 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 301, + "end": 305, + "loc": { + "start": { + "line": 16, + "column": 19 + }, + "end": { + "line": 16, + "column": 23 + } + }, + "name": "type" + }, + "computed": false + }, + "cases": [ + { + "type": "SwitchCase", + "start": 317, + "end": 497, + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 23, + "column": 21 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 356, + "end": 475, + "loc": { + "start": { + "line": 18, + "column": 12 + }, + "end": { + "line": 22, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 360, + "end": 375, + "loc": { + "start": { + "line": 18, + "column": 16 + }, + "end": { + "line": 18, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 360, + "end": 366, + "loc": { + "start": { + "line": 18, + "column": 16 + }, + "end": { + "line": 18, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 367, + "end": 375, + "loc": { + "start": { + "line": 18, + "column": 23 + }, + "end": { + "line": 18, + "column": 31 + } + }, + "name": "response" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 377, + "end": 475, + "loc": { + "start": { + "line": 18, + "column": 33 + }, + "end": { + "line": 22, + "column": 13 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 395, + "end": 461, + "loc": { + "start": { + "line": 19, + "column": 16 + }, + "end": { + "line": 21, + "column": 17 + } + }, + "argument": { + "type": "ArrayExpression", + "start": 402, + "end": 461, + "loc": { + "start": { + "line": 19, + "column": 23 + }, + "end": { + "line": 21, + "column": 17 + } + }, + "elements": [ + { + "type": "SpreadElement", + "start": 424, + "end": 442, + "loc": { + "start": { + "line": 20, + "column": 20 + }, + "end": { + "line": 20, + "column": 38 + } + }, + "argument": { + "type": "MemberExpression", + "start": 427, + "end": 442, + "loc": { + "start": { + "line": 20, + "column": 23 + }, + "end": { + "line": 20, + "column": 38 + } + }, + "object": { + "type": "Identifier", + "start": 427, + "end": 433, + "loc": { + "start": { + "line": 20, + "column": 23 + }, + "end": { + "line": 20, + "column": 29 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 434, + "end": 442, + "loc": { + "start": { + "line": 20, + "column": 30 + }, + "end": { + "line": 20, + "column": 38 + } + }, + "name": "response" + }, + "computed": false + } + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 488, + "end": 497, + "loc": { + "start": { + "line": 23, + "column": 12 + }, + "end": { + "line": 23, + "column": 21 + } + }, + "argument": { + "type": "ArrayExpression", + "start": 495, + "end": 497, + "loc": { + "start": { + "line": 23, + "column": 19 + }, + "end": { + "line": 23, + "column": 21 + } + }, + "elements": [] + } + } + ], + "test": { + "type": "MemberExpression", + "start": 322, + "end": 342, + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 17, + "column": 33 + } + }, + "object": { + "type": "Identifier", + "start": 322, + "end": 337, + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 17, + "column": 28 + } + }, + "name": "LocationActions" + }, + "property": { + "type": "Identifier", + "start": 338, + "end": 342, + "loc": { + "start": { + "line": 17, + "column": 29 + }, + "end": { + "line": 17, + "column": 33 + } + }, + "name": "LOAD" + }, + "computed": false + } + } + ] + }, + { + "type": "ReturnStatement", + "start": 509, + "end": 521, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 16 + } + }, + "argument": { + "type": "Identifier", + "start": 516, + "end": 521, + "loc": { + "start": { + "line": 26, + "column": 11 + }, + "end": { + "line": 26, + "column": 16 + } + }, + "name": "state" + } + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Location\n * Redux Reducer for Location action\n * Reference: http://redux.js.org/docs/basics/Reducers.html\n * @param state\n * @param action\n * @returns {*}\n * @constructor\n ", + "start": 59, + "end": 240, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + }, + "range": [ + 59, + 240 + ] + } + ], + "trailingComments": [] + } + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/reducers/Pagination.js.json b/app/docs/ast/source/reducers/Pagination.js.json new file mode 100644 index 0000000..2a166ca --- /dev/null +++ b/app/docs/ast/source/reducers/Pagination.js.json @@ -0,0 +1,3310 @@ +{ + "type": "Program", + "start": 0, + "end": 1037, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 46, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 53, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 16 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 13, + "end": 35, + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 26 + } + }, + "imported": { + "type": "Identifier", + "start": 13, + "end": 19, + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 10 + } + }, + "name": "Photos" + }, + "local": { + "type": "Identifier", + "start": 23, + "end": 35, + "loc": { + "start": { + "line": 2, + "column": 14 + }, + "end": { + "line": 2, + "column": 26 + } + }, + "name": "PhotoActions" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 44, + "end": 53, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 16 + } + }, + "value": "actions", + "rawValue": "actions", + "raw": "'actions'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * initialState\n * @type {{lastId: null, fetching: boolean}}\n ", + "start": 55, + "end": 123, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + }, + "range": [ + 55, + 123 + ] + } + ] + }, + { + "type": "VariableDeclaration", + "start": 124, + "end": 187, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 12, + "column": 1 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 130, + "end": 187, + "loc": { + "start": { + "line": 9, + "column": 6 + }, + "end": { + "line": 12, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 130, + "end": 142, + "loc": { + "start": { + "line": 9, + "column": 6 + }, + "end": { + "line": 9, + "column": 18 + } + }, + "name": "initialState", + "leadingComments": null + }, + "init": { + "type": "ObjectExpression", + "start": 145, + "end": 187, + "loc": { + "start": { + "line": 9, + "column": 21 + }, + "end": { + "line": 12, + "column": 1 + } + }, + "properties": [ + { + "type": "Property", + "start": 151, + "end": 163, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 10, + "column": 16 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 151, + "end": 157, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 10, + "column": 10 + } + }, + "name": "lastId" + }, + "value": { + "type": "Literal", + "start": 159, + "end": 163, + "loc": { + "start": { + "line": 10, + "column": 12 + }, + "end": { + "line": 10, + "column": 16 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 169, + "end": 184, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 19 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 169, + "end": 177, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 12 + } + }, + "name": "fetching" + }, + "value": { + "type": "Literal", + "start": 179, + "end": 184, + "loc": { + "start": { + "line": 11, + "column": 14 + }, + "end": { + "line": 11, + "column": 19 + } + }, + "value": false, + "rawValue": false, + "raw": "false" + }, + "kind": "init" + } + ], + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * initialState\n * @type {{lastId: null, fetching: boolean}}\n ", + "start": 55, + "end": 123, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + }, + "range": [ + 55, + 123 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Pagination\n * Redux Reducer for Pagination action\n * Reference: http://redux.js.org/docs/basics/Reducers.html\n * @param state\n * @param action\n * @returns {*}\n * @constructor\n ", + "start": 189, + "end": 374, + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 22, + "column": 3 + } + }, + "range": [ + 189, + 374 + ] + } + ] + }, + { + "type": "Identifier", + "start": 375, + "end": 1009, + "loc": { + "start": { + "line": 23, + "column": 0 + }, + "end": { + "line": 43, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 384, + "end": 394, + "loc": { + "start": { + "line": 23, + "column": 9 + }, + "end": { + "line": 23, + "column": 19 + } + }, + "name": "Pagination", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "AssignmentPattern", + "start": 395, + "end": 415, + "loc": { + "start": { + "line": 23, + "column": 20 + }, + "end": { + "line": 23, + "column": 40 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 395, + "end": 400, + "loc": { + "start": { + "line": 23, + "column": 20 + }, + "end": { + "line": 23, + "column": 25 + } + }, + "name": "state" + }, + "right": { + "type": "Identifier", + "start": 403, + "end": 415, + "loc": { + "start": { + "line": 23, + "column": 28 + }, + "end": { + "line": 23, + "column": 40 + } + }, + "name": "initialState" + } + }, + { + "type": "Identifier", + "start": 417, + "end": 423, + "loc": { + "start": { + "line": 23, + "column": 42 + }, + "end": { + "line": 23, + "column": 48 + } + }, + "name": "action" + } + ], + "body": { + "type": "BlockStatement", + "start": 425, + "end": 1009, + "loc": { + "start": { + "line": 23, + "column": 50 + }, + "end": { + "line": 43, + "column": 1 + } + }, + "body": [ + { + "type": "SwitchStatement", + "start": 432, + "end": 989, + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 40, + "column": 5 + } + }, + "discriminant": { + "type": "MemberExpression", + "start": 440, + "end": 451, + "loc": { + "start": { + "line": 25, + "column": 12 + }, + "end": { + "line": 25, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 440, + "end": 446, + "loc": { + "start": { + "line": 25, + "column": 12 + }, + "end": { + "line": 25, + "column": 18 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 447, + "end": 451, + "loc": { + "start": { + "line": 25, + "column": 19 + }, + "end": { + "line": 25, + "column": 23 + } + }, + "name": "type" + }, + "computed": false + }, + "cases": [ + { + "type": "SwitchCase", + "start": 464, + "end": 487, + "loc": { + "start": { + "line": 27, + "column": 8 + }, + "end": { + "line": 27, + "column": 31 + } + }, + "consequent": [], + "test": { + "type": "MemberExpression", + "start": 469, + "end": 486, + "loc": { + "start": { + "line": 27, + "column": 13 + }, + "end": { + "line": 27, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 469, + "end": 481, + "loc": { + "start": { + "line": 27, + "column": 13 + }, + "end": { + "line": 27, + "column": 25 + } + }, + "name": "PhotoActions" + }, + "property": { + "type": "Identifier", + "start": 482, + "end": 486, + "loc": { + "start": { + "line": 27, + "column": 26 + }, + "end": { + "line": 27, + "column": 30 + } + }, + "name": "LOAD" + }, + "computed": false + } + }, + { + "type": "SwitchCase", + "start": 496, + "end": 983, + "loc": { + "start": { + "line": 28, + "column": 8 + }, + "end": { + "line": 39, + "column": 64 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 536, + "end": 918, + "loc": { + "start": { + "line": 29, + "column": 12 + }, + "end": { + "line": 38, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 540, + "end": 555, + "loc": { + "start": { + "line": 29, + "column": 16 + }, + "end": { + "line": 29, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 540, + "end": 546, + "loc": { + "start": { + "line": 29, + "column": 16 + }, + "end": { + "line": 29, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 547, + "end": 555, + "loc": { + "start": { + "line": 29, + "column": 23 + }, + "end": { + "line": 29, + "column": 31 + } + }, + "name": "response" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 557, + "end": 918, + "loc": { + "start": { + "line": 29, + "column": 33 + }, + "end": { + "line": 38, + "column": 13 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 575, + "end": 617, + "loc": { + "start": { + "line": 30, + "column": 16 + }, + "end": { + "line": 30, + "column": 58 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 581, + "end": 617, + "loc": { + "start": { + "line": 30, + "column": 22 + }, + "end": { + "line": 30, + "column": 58 + } + }, + "id": { + "type": "Identifier", + "start": 581, + "end": 589, + "loc": { + "start": { + "line": 30, + "column": 22 + }, + "end": { + "line": 30, + "column": 30 + } + }, + "name": "lastItem" + }, + "init": { + "type": "CallExpression", + "start": 592, + "end": 617, + "loc": { + "start": { + "line": 30, + "column": 33 + }, + "end": { + "line": 30, + "column": 58 + } + }, + "callee": { + "type": "MemberExpression", + "start": 592, + "end": 613, + "loc": { + "start": { + "line": 30, + "column": 33 + }, + "end": { + "line": 30, + "column": 54 + } + }, + "object": { + "type": "MemberExpression", + "start": 592, + "end": 607, + "loc": { + "start": { + "line": 30, + "column": 33 + }, + "end": { + "line": 30, + "column": 48 + } + }, + "object": { + "type": "Identifier", + "start": 592, + "end": 598, + "loc": { + "start": { + "line": 30, + "column": 33 + }, + "end": { + "line": 30, + "column": 39 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 599, + "end": 607, + "loc": { + "start": { + "line": 30, + "column": 40 + }, + "end": { + "line": 30, + "column": 48 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 608, + "end": 613, + "loc": { + "start": { + "line": 30, + "column": 49 + }, + "end": { + "line": 30, + "column": 54 + } + }, + "name": "slice" + }, + "computed": false + }, + "arguments": [ + { + "type": "UnaryExpression", + "start": 614, + "end": 616, + "loc": { + "start": { + "line": 30, + "column": 55 + }, + "end": { + "line": 30, + "column": 57 + } + }, + "operator": "-", + "prefix": true, + "argument": { + "type": "Literal", + "start": 615, + "end": 616, + "loc": { + "start": { + "line": 30, + "column": 56 + }, + "end": { + "line": 30, + "column": 57 + } + }, + "value": 1, + "rawValue": 1, + "raw": "1" + } + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "VariableDeclaration", + "start": 634, + "end": 728, + "loc": { + "start": { + "line": 31, + "column": 16 + }, + "end": { + "line": 33, + "column": 18 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 640, + "end": 728, + "loc": { + "start": { + "line": 31, + "column": 22 + }, + "end": { + "line": 33, + "column": 18 + } + }, + "id": { + "type": "Identifier", + "start": 640, + "end": 643, + "loc": { + "start": { + "line": 31, + "column": 22 + }, + "end": { + "line": 31, + "column": 25 + } + }, + "name": "obj" + }, + "init": { + "type": "CallExpression", + "start": 646, + "end": 728, + "loc": { + "start": { + "line": 31, + "column": 28 + }, + "end": { + "line": 33, + "column": 18 + } + }, + "callee": { + "type": "MemberExpression", + "start": 646, + "end": 659, + "loc": { + "start": { + "line": 31, + "column": 28 + }, + "end": { + "line": 31, + "column": 41 + } + }, + "object": { + "type": "Identifier", + "start": 646, + "end": 652, + "loc": { + "start": { + "line": 31, + "column": 28 + }, + "end": { + "line": 31, + "column": 34 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 653, + "end": 659, + "loc": { + "start": { + "line": 31, + "column": 35 + }, + "end": { + "line": 31, + "column": 41 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 660, + "end": 662, + "loc": { + "start": { + "line": 31, + "column": 42 + }, + "end": { + "line": 31, + "column": 44 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 664, + "end": 669, + "loc": { + "start": { + "line": 31, + "column": 46 + }, + "end": { + "line": 31, + "column": 51 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 671, + "end": 727, + "loc": { + "start": { + "line": 31, + "column": 53 + }, + "end": { + "line": 33, + "column": 17 + } + }, + "properties": [ + { + "type": "Property", + "start": 693, + "end": 708, + "loc": { + "start": { + "line": 32, + "column": 20 + }, + "end": { + "line": 32, + "column": 35 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 693, + "end": 701, + "loc": { + "start": { + "line": 32, + "column": 20 + }, + "end": { + "line": 32, + "column": 28 + } + }, + "name": "fetching" + }, + "value": { + "type": "Literal", + "start": 703, + "end": 708, + "loc": { + "start": { + "line": 32, + "column": 30 + }, + "end": { + "line": 32, + "column": 35 + } + }, + "value": false, + "rawValue": false, + "raw": "false" + }, + "kind": "init" + } + ] + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "IfStatement", + "start": 745, + "end": 877, + "loc": { + "start": { + "line": 34, + "column": 16 + }, + "end": { + "line": 36, + "column": 17 + } + }, + "test": { + "type": "LogicalExpression", + "start": 749, + "end": 783, + "loc": { + "start": { + "line": 34, + "column": 20 + }, + "end": { + "line": 34, + "column": 54 + } + }, + "left": { + "type": "MemberExpression", + "start": 749, + "end": 760, + "loc": { + "start": { + "line": 34, + "column": 20 + }, + "end": { + "line": 34, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 749, + "end": 757, + "loc": { + "start": { + "line": 34, + "column": 20 + }, + "end": { + "line": 34, + "column": 28 + } + }, + "name": "lastItem" + }, + "property": { + "type": "Literal", + "start": 758, + "end": 759, + "loc": { + "start": { + "line": 34, + "column": 29 + }, + "end": { + "line": 34, + "column": 30 + } + }, + "value": 0, + "rawValue": 0, + "raw": "0" + }, + "computed": true + }, + "operator": "&&", + "right": { + "type": "MemberExpression", + "start": 764, + "end": 783, + "loc": { + "start": { + "line": 34, + "column": 35 + }, + "end": { + "line": 34, + "column": 54 + } + }, + "object": { + "type": "MemberExpression", + "start": 764, + "end": 775, + "loc": { + "start": { + "line": 34, + "column": 35 + }, + "end": { + "line": 34, + "column": 46 + } + }, + "object": { + "type": "Identifier", + "start": 764, + "end": 772, + "loc": { + "start": { + "line": 34, + "column": 35 + }, + "end": { + "line": 34, + "column": 43 + } + }, + "name": "lastItem" + }, + "property": { + "type": "Literal", + "start": 773, + "end": 774, + "loc": { + "start": { + "line": 34, + "column": 44 + }, + "end": { + "line": 34, + "column": 45 + } + }, + "value": 0, + "rawValue": 0, + "raw": "0" + }, + "computed": true + }, + "property": { + "type": "Identifier", + "start": 776, + "end": 783, + "loc": { + "start": { + "line": 34, + "column": 47 + }, + "end": { + "line": 34, + "column": 54 + } + }, + "name": "last_id" + }, + "computed": false + } + }, + "consequent": { + "type": "BlockStatement", + "start": 785, + "end": 877, + "loc": { + "start": { + "line": 34, + "column": 56 + }, + "end": { + "line": 36, + "column": 17 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 807, + "end": 859, + "loc": { + "start": { + "line": 35, + "column": 20 + }, + "end": { + "line": 35, + "column": 72 + } + }, + "expression": { + "type": "CallExpression", + "start": 807, + "end": 859, + "loc": { + "start": { + "line": 35, + "column": 20 + }, + "end": { + "line": 35, + "column": 72 + } + }, + "callee": { + "type": "MemberExpression", + "start": 807, + "end": 820, + "loc": { + "start": { + "line": 35, + "column": 20 + }, + "end": { + "line": 35, + "column": 33 + } + }, + "object": { + "type": "Identifier", + "start": 807, + "end": 813, + "loc": { + "start": { + "line": 35, + "column": 20 + }, + "end": { + "line": 35, + "column": 26 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 814, + "end": 820, + "loc": { + "start": { + "line": 35, + "column": 27 + }, + "end": { + "line": 35, + "column": 33 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 821, + "end": 824, + "loc": { + "start": { + "line": 35, + "column": 34 + }, + "end": { + "line": 35, + "column": 37 + } + }, + "name": "obj" + }, + { + "type": "ObjectExpression", + "start": 826, + "end": 858, + "loc": { + "start": { + "line": 35, + "column": 39 + }, + "end": { + "line": 35, + "column": 71 + } + }, + "properties": [ + { + "type": "Property", + "start": 828, + "end": 855, + "loc": { + "start": { + "line": 35, + "column": 41 + }, + "end": { + "line": 35, + "column": 68 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 828, + "end": 834, + "loc": { + "start": { + "line": 35, + "column": 41 + }, + "end": { + "line": 35, + "column": 47 + } + }, + "name": "lastId" + }, + "value": { + "type": "MemberExpression", + "start": 836, + "end": 855, + "loc": { + "start": { + "line": 35, + "column": 49 + }, + "end": { + "line": 35, + "column": 68 + } + }, + "object": { + "type": "MemberExpression", + "start": 836, + "end": 847, + "loc": { + "start": { + "line": 35, + "column": 49 + }, + "end": { + "line": 35, + "column": 60 + } + }, + "object": { + "type": "Identifier", + "start": 836, + "end": 844, + "loc": { + "start": { + "line": 35, + "column": 49 + }, + "end": { + "line": 35, + "column": 57 + } + }, + "name": "lastItem" + }, + "property": { + "type": "Literal", + "start": 845, + "end": 846, + "loc": { + "start": { + "line": 35, + "column": 58 + }, + "end": { + "line": 35, + "column": 59 + } + }, + "value": 0, + "rawValue": 0, + "raw": "0" + }, + "computed": true + }, + "property": { + "type": "Identifier", + "start": 848, + "end": 855, + "loc": { + "start": { + "line": 35, + "column": 61 + }, + "end": { + "line": 35, + "column": 68 + } + }, + "name": "last_id" + }, + "computed": false + }, + "kind": "init" + } + ] + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 894, + "end": 904, + "loc": { + "start": { + "line": 37, + "column": 16 + }, + "end": { + "line": 37, + "column": 26 + } + }, + "argument": { + "type": "Identifier", + "start": 901, + "end": 904, + "loc": { + "start": { + "line": 37, + "column": 23 + }, + "end": { + "line": 37, + "column": 26 + } + }, + "name": "obj" + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 931, + "end": 983, + "loc": { + "start": { + "line": 39, + "column": 12 + }, + "end": { + "line": 39, + "column": 64 + } + }, + "argument": { + "type": "CallExpression", + "start": 938, + "end": 983, + "loc": { + "start": { + "line": 39, + "column": 19 + }, + "end": { + "line": 39, + "column": 64 + } + }, + "callee": { + "type": "MemberExpression", + "start": 938, + "end": 951, + "loc": { + "start": { + "line": 39, + "column": 19 + }, + "end": { + "line": 39, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 938, + "end": 944, + "loc": { + "start": { + "line": 39, + "column": 19 + }, + "end": { + "line": 39, + "column": 25 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 945, + "end": 951, + "loc": { + "start": { + "line": 39, + "column": 26 + }, + "end": { + "line": 39, + "column": 32 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 952, + "end": 954, + "loc": { + "start": { + "line": 39, + "column": 33 + }, + "end": { + "line": 39, + "column": 35 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 956, + "end": 961, + "loc": { + "start": { + "line": 39, + "column": 37 + }, + "end": { + "line": 39, + "column": 42 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 963, + "end": 982, + "loc": { + "start": { + "line": 39, + "column": 44 + }, + "end": { + "line": 39, + "column": 63 + } + }, + "properties": [ + { + "type": "Property", + "start": 965, + "end": 979, + "loc": { + "start": { + "line": 39, + "column": 46 + }, + "end": { + "line": 39, + "column": 60 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 965, + "end": 973, + "loc": { + "start": { + "line": 39, + "column": 46 + }, + "end": { + "line": 39, + "column": 54 + } + }, + "name": "fetching" + }, + "value": { + "type": "Literal", + "start": 975, + "end": 979, + "loc": { + "start": { + "line": 39, + "column": 56 + }, + "end": { + "line": 39, + "column": 60 + } + }, + "value": true, + "rawValue": true, + "raw": "true" + }, + "kind": "init" + } + ] + } + ] + } + } + ], + "test": { + "type": "MemberExpression", + "start": 501, + "end": 522, + "loc": { + "start": { + "line": 28, + "column": 13 + }, + "end": { + "line": 28, + "column": 34 + } + }, + "object": { + "type": "Identifier", + "start": 501, + "end": 513, + "loc": { + "start": { + "line": 28, + "column": 13 + }, + "end": { + "line": 28, + "column": 25 + } + }, + "name": "PhotoActions" + }, + "property": { + "type": "Identifier", + "start": 514, + "end": 522, + "loc": { + "start": { + "line": 28, + "column": 26 + }, + "end": { + "line": 28, + "column": 34 + } + }, + "name": "PAGINATE" + }, + "computed": false + } + } + ] + }, + { + "type": "ReturnStatement", + "start": 995, + "end": 1007, + "loc": { + "start": { + "line": 42, + "column": 4 + }, + "end": { + "line": 42, + "column": 16 + } + }, + "argument": { + "type": "Identifier", + "start": 1002, + "end": 1007, + "loc": { + "start": { + "line": 42, + "column": 11 + }, + "end": { + "line": 42, + "column": 16 + } + }, + "name": "state" + } + } + ] + }, + "leadingComments": [], + "name": "_", + "trailingComments": [] + }, + { + "type": "Identifier", + "start": 1011, + "end": 1036, + "loc": { + "start": { + "line": 45, + "column": 0 + }, + "end": { + "line": 45, + "column": 25 + } + }, + "declaration": { + "type": "Identifier", + "start": 1026, + "end": 1036, + "loc": { + "start": { + "line": 45, + "column": 15 + }, + "end": { + "line": 45, + "column": 25 + } + }, + "name": "Pagination" + }, + "name": "_", + "leadingComments": [], + "trailingComments": [] + }, + { + "type": "ExportDefaultDeclaration", + "start": 1011, + "end": 1036, + "loc": { + "start": { + "line": 45, + "column": 0 + }, + "end": { + "line": 45, + "column": 25 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 375, + "end": 1009, + "loc": { + "start": { + "line": 23, + "column": 0 + }, + "end": { + "line": 43, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 384, + "end": 394, + "loc": { + "start": { + "line": 23, + "column": 9 + }, + "end": { + "line": 23, + "column": 19 + } + }, + "name": "Pagination", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "AssignmentPattern", + "start": 395, + "end": 415, + "loc": { + "start": { + "line": 23, + "column": 20 + }, + "end": { + "line": 23, + "column": 40 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 395, + "end": 400, + "loc": { + "start": { + "line": 23, + "column": 20 + }, + "end": { + "line": 23, + "column": 25 + } + }, + "name": "state" + }, + "right": { + "type": "Identifier", + "start": 403, + "end": 415, + "loc": { + "start": { + "line": 23, + "column": 28 + }, + "end": { + "line": 23, + "column": 40 + } + }, + "name": "initialState" + } + }, + { + "type": "Identifier", + "start": 417, + "end": 423, + "loc": { + "start": { + "line": 23, + "column": 42 + }, + "end": { + "line": 23, + "column": 48 + } + }, + "name": "action" + } + ], + "body": { + "type": "BlockStatement", + "start": 425, + "end": 1009, + "loc": { + "start": { + "line": 23, + "column": 50 + }, + "end": { + "line": 43, + "column": 1 + } + }, + "body": [ + { + "type": "SwitchStatement", + "start": 432, + "end": 989, + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 40, + "column": 5 + } + }, + "discriminant": { + "type": "MemberExpression", + "start": 440, + "end": 451, + "loc": { + "start": { + "line": 25, + "column": 12 + }, + "end": { + "line": 25, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 440, + "end": 446, + "loc": { + "start": { + "line": 25, + "column": 12 + }, + "end": { + "line": 25, + "column": 18 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 447, + "end": 451, + "loc": { + "start": { + "line": 25, + "column": 19 + }, + "end": { + "line": 25, + "column": 23 + } + }, + "name": "type" + }, + "computed": false + }, + "cases": [ + { + "type": "SwitchCase", + "start": 464, + "end": 487, + "loc": { + "start": { + "line": 27, + "column": 8 + }, + "end": { + "line": 27, + "column": 31 + } + }, + "consequent": [], + "test": { + "type": "MemberExpression", + "start": 469, + "end": 486, + "loc": { + "start": { + "line": 27, + "column": 13 + }, + "end": { + "line": 27, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 469, + "end": 481, + "loc": { + "start": { + "line": 27, + "column": 13 + }, + "end": { + "line": 27, + "column": 25 + } + }, + "name": "PhotoActions" + }, + "property": { + "type": "Identifier", + "start": 482, + "end": 486, + "loc": { + "start": { + "line": 27, + "column": 26 + }, + "end": { + "line": 27, + "column": 30 + } + }, + "name": "LOAD" + }, + "computed": false + } + }, + { + "type": "SwitchCase", + "start": 496, + "end": 983, + "loc": { + "start": { + "line": 28, + "column": 8 + }, + "end": { + "line": 39, + "column": 64 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 536, + "end": 918, + "loc": { + "start": { + "line": 29, + "column": 12 + }, + "end": { + "line": 38, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 540, + "end": 555, + "loc": { + "start": { + "line": 29, + "column": 16 + }, + "end": { + "line": 29, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 540, + "end": 546, + "loc": { + "start": { + "line": 29, + "column": 16 + }, + "end": { + "line": 29, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 547, + "end": 555, + "loc": { + "start": { + "line": 29, + "column": 23 + }, + "end": { + "line": 29, + "column": 31 + } + }, + "name": "response" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 557, + "end": 918, + "loc": { + "start": { + "line": 29, + "column": 33 + }, + "end": { + "line": 38, + "column": 13 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 575, + "end": 617, + "loc": { + "start": { + "line": 30, + "column": 16 + }, + "end": { + "line": 30, + "column": 58 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 581, + "end": 617, + "loc": { + "start": { + "line": 30, + "column": 22 + }, + "end": { + "line": 30, + "column": 58 + } + }, + "id": { + "type": "Identifier", + "start": 581, + "end": 589, + "loc": { + "start": { + "line": 30, + "column": 22 + }, + "end": { + "line": 30, + "column": 30 + } + }, + "name": "lastItem" + }, + "init": { + "type": "CallExpression", + "start": 592, + "end": 617, + "loc": { + "start": { + "line": 30, + "column": 33 + }, + "end": { + "line": 30, + "column": 58 + } + }, + "callee": { + "type": "MemberExpression", + "start": 592, + "end": 613, + "loc": { + "start": { + "line": 30, + "column": 33 + }, + "end": { + "line": 30, + "column": 54 + } + }, + "object": { + "type": "MemberExpression", + "start": 592, + "end": 607, + "loc": { + "start": { + "line": 30, + "column": 33 + }, + "end": { + "line": 30, + "column": 48 + } + }, + "object": { + "type": "Identifier", + "start": 592, + "end": 598, + "loc": { + "start": { + "line": 30, + "column": 33 + }, + "end": { + "line": 30, + "column": 39 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 599, + "end": 607, + "loc": { + "start": { + "line": 30, + "column": 40 + }, + "end": { + "line": 30, + "column": 48 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 608, + "end": 613, + "loc": { + "start": { + "line": 30, + "column": 49 + }, + "end": { + "line": 30, + "column": 54 + } + }, + "name": "slice" + }, + "computed": false + }, + "arguments": [ + { + "type": "UnaryExpression", + "start": 614, + "end": 616, + "loc": { + "start": { + "line": 30, + "column": 55 + }, + "end": { + "line": 30, + "column": 57 + } + }, + "operator": "-", + "prefix": true, + "argument": { + "type": "Literal", + "start": 615, + "end": 616, + "loc": { + "start": { + "line": 30, + "column": 56 + }, + "end": { + "line": 30, + "column": 57 + } + }, + "value": 1, + "rawValue": 1, + "raw": "1" + } + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "VariableDeclaration", + "start": 634, + "end": 728, + "loc": { + "start": { + "line": 31, + "column": 16 + }, + "end": { + "line": 33, + "column": 18 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 640, + "end": 728, + "loc": { + "start": { + "line": 31, + "column": 22 + }, + "end": { + "line": 33, + "column": 18 + } + }, + "id": { + "type": "Identifier", + "start": 640, + "end": 643, + "loc": { + "start": { + "line": 31, + "column": 22 + }, + "end": { + "line": 31, + "column": 25 + } + }, + "name": "obj" + }, + "init": { + "type": "CallExpression", + "start": 646, + "end": 728, + "loc": { + "start": { + "line": 31, + "column": 28 + }, + "end": { + "line": 33, + "column": 18 + } + }, + "callee": { + "type": "MemberExpression", + "start": 646, + "end": 659, + "loc": { + "start": { + "line": 31, + "column": 28 + }, + "end": { + "line": 31, + "column": 41 + } + }, + "object": { + "type": "Identifier", + "start": 646, + "end": 652, + "loc": { + "start": { + "line": 31, + "column": 28 + }, + "end": { + "line": 31, + "column": 34 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 653, + "end": 659, + "loc": { + "start": { + "line": 31, + "column": 35 + }, + "end": { + "line": 31, + "column": 41 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 660, + "end": 662, + "loc": { + "start": { + "line": 31, + "column": 42 + }, + "end": { + "line": 31, + "column": 44 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 664, + "end": 669, + "loc": { + "start": { + "line": 31, + "column": 46 + }, + "end": { + "line": 31, + "column": 51 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 671, + "end": 727, + "loc": { + "start": { + "line": 31, + "column": 53 + }, + "end": { + "line": 33, + "column": 17 + } + }, + "properties": [ + { + "type": "Property", + "start": 693, + "end": 708, + "loc": { + "start": { + "line": 32, + "column": 20 + }, + "end": { + "line": 32, + "column": 35 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 693, + "end": 701, + "loc": { + "start": { + "line": 32, + "column": 20 + }, + "end": { + "line": 32, + "column": 28 + } + }, + "name": "fetching" + }, + "value": { + "type": "Literal", + "start": 703, + "end": 708, + "loc": { + "start": { + "line": 32, + "column": 30 + }, + "end": { + "line": 32, + "column": 35 + } + }, + "value": false, + "rawValue": false, + "raw": "false" + }, + "kind": "init" + } + ] + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "IfStatement", + "start": 745, + "end": 877, + "loc": { + "start": { + "line": 34, + "column": 16 + }, + "end": { + "line": 36, + "column": 17 + } + }, + "test": { + "type": "LogicalExpression", + "start": 749, + "end": 783, + "loc": { + "start": { + "line": 34, + "column": 20 + }, + "end": { + "line": 34, + "column": 54 + } + }, + "left": { + "type": "MemberExpression", + "start": 749, + "end": 760, + "loc": { + "start": { + "line": 34, + "column": 20 + }, + "end": { + "line": 34, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 749, + "end": 757, + "loc": { + "start": { + "line": 34, + "column": 20 + }, + "end": { + "line": 34, + "column": 28 + } + }, + "name": "lastItem" + }, + "property": { + "type": "Literal", + "start": 758, + "end": 759, + "loc": { + "start": { + "line": 34, + "column": 29 + }, + "end": { + "line": 34, + "column": 30 + } + }, + "value": 0, + "rawValue": 0, + "raw": "0" + }, + "computed": true + }, + "operator": "&&", + "right": { + "type": "MemberExpression", + "start": 764, + "end": 783, + "loc": { + "start": { + "line": 34, + "column": 35 + }, + "end": { + "line": 34, + "column": 54 + } + }, + "object": { + "type": "MemberExpression", + "start": 764, + "end": 775, + "loc": { + "start": { + "line": 34, + "column": 35 + }, + "end": { + "line": 34, + "column": 46 + } + }, + "object": { + "type": "Identifier", + "start": 764, + "end": 772, + "loc": { + "start": { + "line": 34, + "column": 35 + }, + "end": { + "line": 34, + "column": 43 + } + }, + "name": "lastItem" + }, + "property": { + "type": "Literal", + "start": 773, + "end": 774, + "loc": { + "start": { + "line": 34, + "column": 44 + }, + "end": { + "line": 34, + "column": 45 + } + }, + "value": 0, + "rawValue": 0, + "raw": "0" + }, + "computed": true + }, + "property": { + "type": "Identifier", + "start": 776, + "end": 783, + "loc": { + "start": { + "line": 34, + "column": 47 + }, + "end": { + "line": 34, + "column": 54 + } + }, + "name": "last_id" + }, + "computed": false + } + }, + "consequent": { + "type": "BlockStatement", + "start": 785, + "end": 877, + "loc": { + "start": { + "line": 34, + "column": 56 + }, + "end": { + "line": 36, + "column": 17 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 807, + "end": 859, + "loc": { + "start": { + "line": 35, + "column": 20 + }, + "end": { + "line": 35, + "column": 72 + } + }, + "expression": { + "type": "CallExpression", + "start": 807, + "end": 859, + "loc": { + "start": { + "line": 35, + "column": 20 + }, + "end": { + "line": 35, + "column": 72 + } + }, + "callee": { + "type": "MemberExpression", + "start": 807, + "end": 820, + "loc": { + "start": { + "line": 35, + "column": 20 + }, + "end": { + "line": 35, + "column": 33 + } + }, + "object": { + "type": "Identifier", + "start": 807, + "end": 813, + "loc": { + "start": { + "line": 35, + "column": 20 + }, + "end": { + "line": 35, + "column": 26 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 814, + "end": 820, + "loc": { + "start": { + "line": 35, + "column": 27 + }, + "end": { + "line": 35, + "column": 33 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 821, + "end": 824, + "loc": { + "start": { + "line": 35, + "column": 34 + }, + "end": { + "line": 35, + "column": 37 + } + }, + "name": "obj" + }, + { + "type": "ObjectExpression", + "start": 826, + "end": 858, + "loc": { + "start": { + "line": 35, + "column": 39 + }, + "end": { + "line": 35, + "column": 71 + } + }, + "properties": [ + { + "type": "Property", + "start": 828, + "end": 855, + "loc": { + "start": { + "line": 35, + "column": 41 + }, + "end": { + "line": 35, + "column": 68 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 828, + "end": 834, + "loc": { + "start": { + "line": 35, + "column": 41 + }, + "end": { + "line": 35, + "column": 47 + } + }, + "name": "lastId" + }, + "value": { + "type": "MemberExpression", + "start": 836, + "end": 855, + "loc": { + "start": { + "line": 35, + "column": 49 + }, + "end": { + "line": 35, + "column": 68 + } + }, + "object": { + "type": "MemberExpression", + "start": 836, + "end": 847, + "loc": { + "start": { + "line": 35, + "column": 49 + }, + "end": { + "line": 35, + "column": 60 + } + }, + "object": { + "type": "Identifier", + "start": 836, + "end": 844, + "loc": { + "start": { + "line": 35, + "column": 49 + }, + "end": { + "line": 35, + "column": 57 + } + }, + "name": "lastItem" + }, + "property": { + "type": "Literal", + "start": 845, + "end": 846, + "loc": { + "start": { + "line": 35, + "column": 58 + }, + "end": { + "line": 35, + "column": 59 + } + }, + "value": 0, + "rawValue": 0, + "raw": "0" + }, + "computed": true + }, + "property": { + "type": "Identifier", + "start": 848, + "end": 855, + "loc": { + "start": { + "line": 35, + "column": 61 + }, + "end": { + "line": 35, + "column": 68 + } + }, + "name": "last_id" + }, + "computed": false + }, + "kind": "init" + } + ] + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 894, + "end": 904, + "loc": { + "start": { + "line": 37, + "column": 16 + }, + "end": { + "line": 37, + "column": 26 + } + }, + "argument": { + "type": "Identifier", + "start": 901, + "end": 904, + "loc": { + "start": { + "line": 37, + "column": 23 + }, + "end": { + "line": 37, + "column": 26 + } + }, + "name": "obj" + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 931, + "end": 983, + "loc": { + "start": { + "line": 39, + "column": 12 + }, + "end": { + "line": 39, + "column": 64 + } + }, + "argument": { + "type": "CallExpression", + "start": 938, + "end": 983, + "loc": { + "start": { + "line": 39, + "column": 19 + }, + "end": { + "line": 39, + "column": 64 + } + }, + "callee": { + "type": "MemberExpression", + "start": 938, + "end": 951, + "loc": { + "start": { + "line": 39, + "column": 19 + }, + "end": { + "line": 39, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 938, + "end": 944, + "loc": { + "start": { + "line": 39, + "column": 19 + }, + "end": { + "line": 39, + "column": 25 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 945, + "end": 951, + "loc": { + "start": { + "line": 39, + "column": 26 + }, + "end": { + "line": 39, + "column": 32 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 952, + "end": 954, + "loc": { + "start": { + "line": 39, + "column": 33 + }, + "end": { + "line": 39, + "column": 35 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 956, + "end": 961, + "loc": { + "start": { + "line": 39, + "column": 37 + }, + "end": { + "line": 39, + "column": 42 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 963, + "end": 982, + "loc": { + "start": { + "line": 39, + "column": 44 + }, + "end": { + "line": 39, + "column": 63 + } + }, + "properties": [ + { + "type": "Property", + "start": 965, + "end": 979, + "loc": { + "start": { + "line": 39, + "column": 46 + }, + "end": { + "line": 39, + "column": 60 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 965, + "end": 973, + "loc": { + "start": { + "line": 39, + "column": 46 + }, + "end": { + "line": 39, + "column": 54 + } + }, + "name": "fetching" + }, + "value": { + "type": "Literal", + "start": 975, + "end": 979, + "loc": { + "start": { + "line": 39, + "column": 56 + }, + "end": { + "line": 39, + "column": 60 + } + }, + "value": true, + "rawValue": true, + "raw": "true" + }, + "kind": "init" + } + ] + } + ] + } + } + ], + "test": { + "type": "MemberExpression", + "start": 501, + "end": 522, + "loc": { + "start": { + "line": 28, + "column": 13 + }, + "end": { + "line": 28, + "column": 34 + } + }, + "object": { + "type": "Identifier", + "start": 501, + "end": 513, + "loc": { + "start": { + "line": 28, + "column": 13 + }, + "end": { + "line": 28, + "column": 25 + } + }, + "name": "PhotoActions" + }, + "property": { + "type": "Identifier", + "start": 514, + "end": 522, + "loc": { + "start": { + "line": 28, + "column": 26 + }, + "end": { + "line": 28, + "column": 34 + } + }, + "name": "PAGINATE" + }, + "computed": false + } + } + ] + }, + { + "type": "ReturnStatement", + "start": 995, + "end": 1007, + "loc": { + "start": { + "line": 42, + "column": 4 + }, + "end": { + "line": 42, + "column": 16 + } + }, + "argument": { + "type": "Identifier", + "start": 1002, + "end": 1007, + "loc": { + "start": { + "line": 42, + "column": 11 + }, + "end": { + "line": 42, + "column": 16 + } + }, + "name": "state" + } + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Pagination\n * Redux Reducer for Pagination action\n * Reference: http://redux.js.org/docs/basics/Reducers.html\n * @param state\n * @param action\n * @returns {*}\n * @constructor\n ", + "start": 189, + "end": 374, + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 22, + "column": 3 + } + }, + "range": [ + 189, + 374 + ] + } + ], + "trailingComments": [] + } + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/reducers/Photo.js.json b/app/docs/ast/source/reducers/Photo.js.json new file mode 100644 index 0000000..82255ff --- /dev/null +++ b/app/docs/ast/source/reducers/Photo.js.json @@ -0,0 +1,5294 @@ +{ + "type": "Program", + "start": 0, + "end": 1921, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 72, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 52, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 16 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 13, + "end": 34, + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 25 + } + }, + "imported": { + "type": "Identifier", + "start": 13, + "end": 18, + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 9 + } + }, + "name": "Photo" + }, + "local": { + "type": "Identifier", + "start": 22, + "end": 34, + "loc": { + "start": { + "line": 2, + "column": 13 + }, + "end": { + "line": 2, + "column": 25 + } + }, + "name": "PhotoActions" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 43, + "end": 52, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 16 + } + }, + "value": "actions", + "rawValue": "actions", + "raw": "'actions'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * initialState\n * @type {{id: string, caption: string, created_at: string, email: string, fb_uid: string, filename: string, first_name: string, hashtags: string, last_name: string, latitude: string, liked: string, location: string, longitude: string, modified_at: string, user_id: string, loading: boolean}}\n ", + "start": 54, + "end": 370, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + }, + "range": [ + 54, + 370 + ] + } + ] + }, + { + "type": "VariableDeclaration", + "start": 371, + "end": 679, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 27, + "column": 1 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 377, + "end": 679, + "loc": { + "start": { + "line": 9, + "column": 6 + }, + "end": { + "line": 27, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 377, + "end": 389, + "loc": { + "start": { + "line": 9, + "column": 6 + }, + "end": { + "line": 9, + "column": 18 + } + }, + "name": "initialState", + "leadingComments": null + }, + "init": { + "type": "ObjectExpression", + "start": 392, + "end": 679, + "loc": { + "start": { + "line": 9, + "column": 21 + }, + "end": { + "line": 27, + "column": 1 + } + }, + "properties": [ + { + "type": "Property", + "start": 398, + "end": 404, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 10, + "column": 10 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 398, + "end": 400, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 10, + "column": 6 + } + }, + "name": "id" + }, + "value": { + "type": "Literal", + "start": 402, + "end": 404, + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 10 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 410, + "end": 421, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 15 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 410, + "end": 417, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 11 + } + }, + "name": "caption" + }, + "value": { + "type": "Literal", + "start": 419, + "end": 421, + "loc": { + "start": { + "line": 11, + "column": 13 + }, + "end": { + "line": 11, + "column": 15 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 427, + "end": 441, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 18 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 427, + "end": 437, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 14 + } + }, + "name": "created_at" + }, + "value": { + "type": "Literal", + "start": 439, + "end": 441, + "loc": { + "start": { + "line": 12, + "column": 16 + }, + "end": { + "line": 12, + "column": 18 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 447, + "end": 456, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 13 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 447, + "end": 452, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 9 + } + }, + "name": "email" + }, + "value": { + "type": "Literal", + "start": 454, + "end": 456, + "loc": { + "start": { + "line": 13, + "column": 11 + }, + "end": { + "line": 13, + "column": 13 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 462, + "end": 472, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 14 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 462, + "end": 468, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 10 + } + }, + "name": "fb_uid" + }, + "value": { + "type": "Literal", + "start": 470, + "end": 472, + "loc": { + "start": { + "line": 14, + "column": 12 + }, + "end": { + "line": 14, + "column": 14 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 478, + "end": 490, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 16 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 478, + "end": 486, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 12 + } + }, + "name": "filename" + }, + "value": { + "type": "Literal", + "start": 488, + "end": 490, + "loc": { + "start": { + "line": 15, + "column": 14 + }, + "end": { + "line": 15, + "column": 16 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 496, + "end": 510, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 16, + "column": 18 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 496, + "end": 506, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 16, + "column": 14 + } + }, + "name": "first_name" + }, + "value": { + "type": "Literal", + "start": 508, + "end": 510, + "loc": { + "start": { + "line": 16, + "column": 16 + }, + "end": { + "line": 16, + "column": 18 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 516, + "end": 528, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 16 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 516, + "end": 524, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 12 + } + }, + "name": "hashtags" + }, + "value": { + "type": "Literal", + "start": 526, + "end": 528, + "loc": { + "start": { + "line": 17, + "column": 14 + }, + "end": { + "line": 17, + "column": 16 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 534, + "end": 547, + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 17 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 534, + "end": 543, + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 13 + } + }, + "name": "last_name" + }, + "value": { + "type": "Literal", + "start": 545, + "end": 547, + "loc": { + "start": { + "line": 18, + "column": 15 + }, + "end": { + "line": 18, + "column": 17 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 553, + "end": 565, + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 16 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 553, + "end": 561, + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 12 + } + }, + "name": "latitude" + }, + "value": { + "type": "Literal", + "start": 563, + "end": 565, + "loc": { + "start": { + "line": 19, + "column": 14 + }, + "end": { + "line": 19, + "column": 16 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 571, + "end": 580, + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 13 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 571, + "end": 576, + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 9 + } + }, + "name": "liked" + }, + "value": { + "type": "Literal", + "start": 578, + "end": 580, + "loc": { + "start": { + "line": 20, + "column": 11 + }, + "end": { + "line": 20, + "column": 13 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 586, + "end": 598, + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 16 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 586, + "end": 594, + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 12 + } + }, + "name": "location" + }, + "value": { + "type": "Literal", + "start": 596, + "end": 598, + "loc": { + "start": { + "line": 21, + "column": 14 + }, + "end": { + "line": 21, + "column": 16 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 604, + "end": 617, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 17 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 604, + "end": 613, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 13 + } + }, + "name": "longitude" + }, + "value": { + "type": "Literal", + "start": 615, + "end": 617, + "loc": { + "start": { + "line": 22, + "column": 15 + }, + "end": { + "line": 22, + "column": 17 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 623, + "end": 638, + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 19 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 623, + "end": 634, + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 15 + } + }, + "name": "modified_at" + }, + "value": { + "type": "Literal", + "start": 636, + "end": 638, + "loc": { + "start": { + "line": 23, + "column": 17 + }, + "end": { + "line": 23, + "column": 19 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 644, + "end": 655, + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 15 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 644, + "end": 651, + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 11 + } + }, + "name": "user_id" + }, + "value": { + "type": "Literal", + "start": 653, + "end": 655, + "loc": { + "start": { + "line": 24, + "column": 13 + }, + "end": { + "line": 24, + "column": 15 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 662, + "end": 676, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 18 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 662, + "end": 669, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 11 + } + }, + "name": "loading" + }, + "value": { + "type": "Literal", + "start": 671, + "end": 676, + "loc": { + "start": { + "line": 26, + "column": 13 + }, + "end": { + "line": 26, + "column": 18 + } + }, + "value": false, + "rawValue": false, + "raw": "false" + }, + "kind": "init" + } + ], + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * initialState\n * @type {{id: string, caption: string, created_at: string, email: string, fb_uid: string, filename: string, first_name: string, hashtags: string, last_name: string, latitude: string, liked: string, location: string, longitude: string, modified_at: string, user_id: string, loading: boolean}}\n ", + "start": 54, + "end": 370, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + }, + "range": [ + 54, + 370 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Photo\n * Redux Reducer for Photo action\n * Reference: http://redux.js.org/docs/basics/Reducers.html\n * @param state\n * @param action\n * @returns {*}\n * @constructor\n ", + "start": 681, + "end": 856, + "loc": { + "start": { + "line": 29, + "column": 0 + }, + "end": { + "line": 37, + "column": 3 + } + }, + "range": [ + 681, + 856 + ] + } + ] + }, + { + "type": "Identifier", + "start": 857, + "end": 1898, + "loc": { + "start": { + "line": 38, + "column": 0 + }, + "end": { + "line": 69, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 866, + "end": 871, + "loc": { + "start": { + "line": 38, + "column": 9 + }, + "end": { + "line": 38, + "column": 14 + } + }, + "name": "Photo", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "AssignmentPattern", + "start": 872, + "end": 892, + "loc": { + "start": { + "line": 38, + "column": 15 + }, + "end": { + "line": 38, + "column": 35 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 872, + "end": 877, + "loc": { + "start": { + "line": 38, + "column": 15 + }, + "end": { + "line": 38, + "column": 20 + } + }, + "name": "state" + }, + "right": { + "type": "Identifier", + "start": 880, + "end": 892, + "loc": { + "start": { + "line": 38, + "column": 23 + }, + "end": { + "line": 38, + "column": 35 + } + }, + "name": "initialState" + } + }, + { + "type": "Identifier", + "start": 894, + "end": 900, + "loc": { + "start": { + "line": 38, + "column": 37 + }, + "end": { + "line": 38, + "column": 43 + } + }, + "name": "action" + } + ], + "body": { + "type": "BlockStatement", + "start": 902, + "end": 1898, + "loc": { + "start": { + "line": 38, + "column": 45 + }, + "end": { + "line": 69, + "column": 1 + } + }, + "body": [ + { + "type": "SwitchStatement", + "start": 909, + "end": 1878, + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 66, + "column": 5 + } + }, + "discriminant": { + "type": "MemberExpression", + "start": 917, + "end": 928, + "loc": { + "start": { + "line": 40, + "column": 12 + }, + "end": { + "line": 40, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 917, + "end": 923, + "loc": { + "start": { + "line": 40, + "column": 12 + }, + "end": { + "line": 40, + "column": 18 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 924, + "end": 928, + "loc": { + "start": { + "line": 40, + "column": 19 + }, + "end": { + "line": 40, + "column": 23 + } + }, + "name": "type" + }, + "computed": false + }, + "cases": [ + { + "type": "SwitchCase", + "start": 940, + "end": 1872, + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 65, + "column": 62 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 976, + "end": 1808, + "loc": { + "start": { + "line": 42, + "column": 12 + }, + "end": { + "line": 63, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 980, + "end": 995, + "loc": { + "start": { + "line": 42, + "column": 16 + }, + "end": { + "line": 42, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 980, + "end": 986, + "loc": { + "start": { + "line": 42, + "column": 16 + }, + "end": { + "line": 42, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 987, + "end": 995, + "loc": { + "start": { + "line": 42, + "column": 23 + }, + "end": { + "line": 42, + "column": 31 + } + }, + "name": "response" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 997, + "end": 1808, + "loc": { + "start": { + "line": 42, + "column": 33 + }, + "end": { + "line": 63, + "column": 13 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 1015, + "end": 1042, + "loc": { + "start": { + "line": 43, + "column": 16 + }, + "end": { + "line": 43, + "column": 43 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1021, + "end": 1042, + "loc": { + "start": { + "line": 43, + "column": 22 + }, + "end": { + "line": 43, + "column": 43 + } + }, + "id": { + "type": "Identifier", + "start": 1021, + "end": 1024, + "loc": { + "start": { + "line": 43, + "column": 22 + }, + "end": { + "line": 43, + "column": 25 + } + }, + "name": "res" + }, + "init": { + "type": "MemberExpression", + "start": 1027, + "end": 1042, + "loc": { + "start": { + "line": 43, + "column": 28 + }, + "end": { + "line": 43, + "column": 43 + } + }, + "object": { + "type": "Identifier", + "start": 1027, + "end": 1033, + "loc": { + "start": { + "line": 43, + "column": 28 + }, + "end": { + "line": 43, + "column": 34 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1034, + "end": 1042, + "loc": { + "start": { + "line": 43, + "column": 35 + }, + "end": { + "line": 43, + "column": 43 + } + }, + "name": "response" + }, + "computed": false + } + } + ], + "kind": "const" + }, + { + "type": "ReturnStatement", + "start": 1059, + "end": 1794, + "loc": { + "start": { + "line": 44, + "column": 16 + }, + "end": { + "line": 62, + "column": 18 + } + }, + "argument": { + "type": "CallExpression", + "start": 1066, + "end": 1794, + "loc": { + "start": { + "line": 44, + "column": 23 + }, + "end": { + "line": 62, + "column": 18 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1066, + "end": 1079, + "loc": { + "start": { + "line": 44, + "column": 23 + }, + "end": { + "line": 44, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 1066, + "end": 1072, + "loc": { + "start": { + "line": 44, + "column": 23 + }, + "end": { + "line": 44, + "column": 29 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 1073, + "end": 1079, + "loc": { + "start": { + "line": 44, + "column": 30 + }, + "end": { + "line": 44, + "column": 36 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 1080, + "end": 1082, + "loc": { + "start": { + "line": 44, + "column": 37 + }, + "end": { + "line": 44, + "column": 39 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 1084, + "end": 1089, + "loc": { + "start": { + "line": 44, + "column": 41 + }, + "end": { + "line": 44, + "column": 46 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 1091, + "end": 1793, + "loc": { + "start": { + "line": 44, + "column": 48 + }, + "end": { + "line": 62, + "column": 17 + } + }, + "properties": [ + { + "type": "Property", + "start": 1113, + "end": 1123, + "loc": { + "start": { + "line": 45, + "column": 20 + }, + "end": { + "line": 45, + "column": 30 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1113, + "end": 1115, + "loc": { + "start": { + "line": 45, + "column": 20 + }, + "end": { + "line": 45, + "column": 22 + } + }, + "name": "id" + }, + "value": { + "type": "MemberExpression", + "start": 1117, + "end": 1123, + "loc": { + "start": { + "line": 45, + "column": 24 + }, + "end": { + "line": 45, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 1117, + "end": 1120, + "loc": { + "start": { + "line": 45, + "column": 24 + }, + "end": { + "line": 45, + "column": 27 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 1121, + "end": 1123, + "loc": { + "start": { + "line": 45, + "column": 28 + }, + "end": { + "line": 45, + "column": 30 + } + }, + "name": "id" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1145, + "end": 1165, + "loc": { + "start": { + "line": 46, + "column": 20 + }, + "end": { + "line": 46, + "column": 40 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1145, + "end": 1152, + "loc": { + "start": { + "line": 46, + "column": 20 + }, + "end": { + "line": 46, + "column": 27 + } + }, + "name": "caption" + }, + "value": { + "type": "MemberExpression", + "start": 1154, + "end": 1165, + "loc": { + "start": { + "line": 46, + "column": 29 + }, + "end": { + "line": 46, + "column": 40 + } + }, + "object": { + "type": "Identifier", + "start": 1154, + "end": 1157, + "loc": { + "start": { + "line": 46, + "column": 29 + }, + "end": { + "line": 46, + "column": 32 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 1158, + "end": 1165, + "loc": { + "start": { + "line": 46, + "column": 33 + }, + "end": { + "line": 46, + "column": 40 + } + }, + "name": "caption" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1187, + "end": 1213, + "loc": { + "start": { + "line": 47, + "column": 20 + }, + "end": { + "line": 47, + "column": 46 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1187, + "end": 1197, + "loc": { + "start": { + "line": 47, + "column": 20 + }, + "end": { + "line": 47, + "column": 30 + } + }, + "name": "created_at" + }, + "value": { + "type": "MemberExpression", + "start": 1199, + "end": 1213, + "loc": { + "start": { + "line": 47, + "column": 32 + }, + "end": { + "line": 47, + "column": 46 + } + }, + "object": { + "type": "Identifier", + "start": 1199, + "end": 1202, + "loc": { + "start": { + "line": 47, + "column": 32 + }, + "end": { + "line": 47, + "column": 35 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 1203, + "end": 1213, + "loc": { + "start": { + "line": 47, + "column": 36 + }, + "end": { + "line": 47, + "column": 46 + } + }, + "name": "created_at" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1235, + "end": 1251, + "loc": { + "start": { + "line": 48, + "column": 20 + }, + "end": { + "line": 48, + "column": 36 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1235, + "end": 1240, + "loc": { + "start": { + "line": 48, + "column": 20 + }, + "end": { + "line": 48, + "column": 25 + } + }, + "name": "email" + }, + "value": { + "type": "MemberExpression", + "start": 1242, + "end": 1251, + "loc": { + "start": { + "line": 48, + "column": 27 + }, + "end": { + "line": 48, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 1242, + "end": 1245, + "loc": { + "start": { + "line": 48, + "column": 27 + }, + "end": { + "line": 48, + "column": 30 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 1246, + "end": 1251, + "loc": { + "start": { + "line": 48, + "column": 31 + }, + "end": { + "line": 48, + "column": 36 + } + }, + "name": "email" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1273, + "end": 1291, + "loc": { + "start": { + "line": 49, + "column": 20 + }, + "end": { + "line": 49, + "column": 38 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1273, + "end": 1279, + "loc": { + "start": { + "line": 49, + "column": 20 + }, + "end": { + "line": 49, + "column": 26 + } + }, + "name": "fb_uid" + }, + "value": { + "type": "MemberExpression", + "start": 1281, + "end": 1291, + "loc": { + "start": { + "line": 49, + "column": 28 + }, + "end": { + "line": 49, + "column": 38 + } + }, + "object": { + "type": "Identifier", + "start": 1281, + "end": 1284, + "loc": { + "start": { + "line": 49, + "column": 28 + }, + "end": { + "line": 49, + "column": 31 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 1285, + "end": 1291, + "loc": { + "start": { + "line": 49, + "column": 32 + }, + "end": { + "line": 49, + "column": 38 + } + }, + "name": "fb_uid" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1313, + "end": 1335, + "loc": { + "start": { + "line": 50, + "column": 20 + }, + "end": { + "line": 50, + "column": 42 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1313, + "end": 1321, + "loc": { + "start": { + "line": 50, + "column": 20 + }, + "end": { + "line": 50, + "column": 28 + } + }, + "name": "filename" + }, + "value": { + "type": "MemberExpression", + "start": 1323, + "end": 1335, + "loc": { + "start": { + "line": 50, + "column": 30 + }, + "end": { + "line": 50, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 1323, + "end": 1326, + "loc": { + "start": { + "line": 50, + "column": 30 + }, + "end": { + "line": 50, + "column": 33 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 1327, + "end": 1335, + "loc": { + "start": { + "line": 50, + "column": 34 + }, + "end": { + "line": 50, + "column": 42 + } + }, + "name": "filename" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1357, + "end": 1383, + "loc": { + "start": { + "line": 51, + "column": 20 + }, + "end": { + "line": 51, + "column": 46 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1357, + "end": 1367, + "loc": { + "start": { + "line": 51, + "column": 20 + }, + "end": { + "line": 51, + "column": 30 + } + }, + "name": "first_name" + }, + "value": { + "type": "MemberExpression", + "start": 1369, + "end": 1383, + "loc": { + "start": { + "line": 51, + "column": 32 + }, + "end": { + "line": 51, + "column": 46 + } + }, + "object": { + "type": "Identifier", + "start": 1369, + "end": 1372, + "loc": { + "start": { + "line": 51, + "column": 32 + }, + "end": { + "line": 51, + "column": 35 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 1373, + "end": 1383, + "loc": { + "start": { + "line": 51, + "column": 36 + }, + "end": { + "line": 51, + "column": 46 + } + }, + "name": "first_name" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1405, + "end": 1427, + "loc": { + "start": { + "line": 52, + "column": 20 + }, + "end": { + "line": 52, + "column": 42 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1405, + "end": 1413, + "loc": { + "start": { + "line": 52, + "column": 20 + }, + "end": { + "line": 52, + "column": 28 + } + }, + "name": "hashtags" + }, + "value": { + "type": "MemberExpression", + "start": 1415, + "end": 1427, + "loc": { + "start": { + "line": 52, + "column": 30 + }, + "end": { + "line": 52, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 1415, + "end": 1418, + "loc": { + "start": { + "line": 52, + "column": 30 + }, + "end": { + "line": 52, + "column": 33 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 1419, + "end": 1427, + "loc": { + "start": { + "line": 52, + "column": 34 + }, + "end": { + "line": 52, + "column": 42 + } + }, + "name": "hashtags" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1449, + "end": 1473, + "loc": { + "start": { + "line": 53, + "column": 20 + }, + "end": { + "line": 53, + "column": 44 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1449, + "end": 1458, + "loc": { + "start": { + "line": 53, + "column": 20 + }, + "end": { + "line": 53, + "column": 29 + } + }, + "name": "last_name" + }, + "value": { + "type": "MemberExpression", + "start": 1460, + "end": 1473, + "loc": { + "start": { + "line": 53, + "column": 31 + }, + "end": { + "line": 53, + "column": 44 + } + }, + "object": { + "type": "Identifier", + "start": 1460, + "end": 1463, + "loc": { + "start": { + "line": 53, + "column": 31 + }, + "end": { + "line": 53, + "column": 34 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 1464, + "end": 1473, + "loc": { + "start": { + "line": 53, + "column": 35 + }, + "end": { + "line": 53, + "column": 44 + } + }, + "name": "last_name" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1495, + "end": 1517, + "loc": { + "start": { + "line": 54, + "column": 20 + }, + "end": { + "line": 54, + "column": 42 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1495, + "end": 1503, + "loc": { + "start": { + "line": 54, + "column": 20 + }, + "end": { + "line": 54, + "column": 28 + } + }, + "name": "latitude" + }, + "value": { + "type": "MemberExpression", + "start": 1505, + "end": 1517, + "loc": { + "start": { + "line": 54, + "column": 30 + }, + "end": { + "line": 54, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 1505, + "end": 1508, + "loc": { + "start": { + "line": 54, + "column": 30 + }, + "end": { + "line": 54, + "column": 33 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 1509, + "end": 1517, + "loc": { + "start": { + "line": 54, + "column": 34 + }, + "end": { + "line": 54, + "column": 42 + } + }, + "name": "latitude" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1539, + "end": 1555, + "loc": { + "start": { + "line": 55, + "column": 20 + }, + "end": { + "line": 55, + "column": 36 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1539, + "end": 1544, + "loc": { + "start": { + "line": 55, + "column": 20 + }, + "end": { + "line": 55, + "column": 25 + } + }, + "name": "liked" + }, + "value": { + "type": "MemberExpression", + "start": 1546, + "end": 1555, + "loc": { + "start": { + "line": 55, + "column": 27 + }, + "end": { + "line": 55, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 1546, + "end": 1549, + "loc": { + "start": { + "line": 55, + "column": 27 + }, + "end": { + "line": 55, + "column": 30 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 1550, + "end": 1555, + "loc": { + "start": { + "line": 55, + "column": 31 + }, + "end": { + "line": 55, + "column": 36 + } + }, + "name": "liked" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1577, + "end": 1599, + "loc": { + "start": { + "line": 56, + "column": 20 + }, + "end": { + "line": 56, + "column": 42 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1577, + "end": 1585, + "loc": { + "start": { + "line": 56, + "column": 20 + }, + "end": { + "line": 56, + "column": 28 + } + }, + "name": "location" + }, + "value": { + "type": "MemberExpression", + "start": 1587, + "end": 1599, + "loc": { + "start": { + "line": 56, + "column": 30 + }, + "end": { + "line": 56, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 1587, + "end": 1590, + "loc": { + "start": { + "line": 56, + "column": 30 + }, + "end": { + "line": 56, + "column": 33 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 1591, + "end": 1599, + "loc": { + "start": { + "line": 56, + "column": 34 + }, + "end": { + "line": 56, + "column": 42 + } + }, + "name": "location" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1621, + "end": 1645, + "loc": { + "start": { + "line": 57, + "column": 20 + }, + "end": { + "line": 57, + "column": 44 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1621, + "end": 1630, + "loc": { + "start": { + "line": 57, + "column": 20 + }, + "end": { + "line": 57, + "column": 29 + } + }, + "name": "longitude" + }, + "value": { + "type": "MemberExpression", + "start": 1632, + "end": 1645, + "loc": { + "start": { + "line": 57, + "column": 31 + }, + "end": { + "line": 57, + "column": 44 + } + }, + "object": { + "type": "Identifier", + "start": 1632, + "end": 1635, + "loc": { + "start": { + "line": 57, + "column": 31 + }, + "end": { + "line": 57, + "column": 34 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 1636, + "end": 1645, + "loc": { + "start": { + "line": 57, + "column": 35 + }, + "end": { + "line": 57, + "column": 44 + } + }, + "name": "longitude" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1667, + "end": 1695, + "loc": { + "start": { + "line": 58, + "column": 20 + }, + "end": { + "line": 58, + "column": 48 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1667, + "end": 1678, + "loc": { + "start": { + "line": 58, + "column": 20 + }, + "end": { + "line": 58, + "column": 31 + } + }, + "name": "modified_at" + }, + "value": { + "type": "MemberExpression", + "start": 1680, + "end": 1695, + "loc": { + "start": { + "line": 58, + "column": 33 + }, + "end": { + "line": 58, + "column": 48 + } + }, + "object": { + "type": "Identifier", + "start": 1680, + "end": 1683, + "loc": { + "start": { + "line": 58, + "column": 33 + }, + "end": { + "line": 58, + "column": 36 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 1684, + "end": 1695, + "loc": { + "start": { + "line": 58, + "column": 37 + }, + "end": { + "line": 58, + "column": 48 + } + }, + "name": "modified_at" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1717, + "end": 1737, + "loc": { + "start": { + "line": 59, + "column": 20 + }, + "end": { + "line": 59, + "column": 40 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1717, + "end": 1724, + "loc": { + "start": { + "line": 59, + "column": 20 + }, + "end": { + "line": 59, + "column": 27 + } + }, + "name": "user_id" + }, + "value": { + "type": "MemberExpression", + "start": 1726, + "end": 1737, + "loc": { + "start": { + "line": 59, + "column": 29 + }, + "end": { + "line": 59, + "column": 40 + } + }, + "object": { + "type": "Identifier", + "start": 1726, + "end": 1729, + "loc": { + "start": { + "line": 59, + "column": 29 + }, + "end": { + "line": 59, + "column": 32 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 1730, + "end": 1737, + "loc": { + "start": { + "line": 59, + "column": 33 + }, + "end": { + "line": 59, + "column": 40 + } + }, + "name": "user_id" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1760, + "end": 1774, + "loc": { + "start": { + "line": 61, + "column": 20 + }, + "end": { + "line": 61, + "column": 34 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1760, + "end": 1767, + "loc": { + "start": { + "line": 61, + "column": 20 + }, + "end": { + "line": 61, + "column": 27 + } + }, + "name": "loading" + }, + "value": { + "type": "Literal", + "start": 1769, + "end": 1774, + "loc": { + "start": { + "line": 61, + "column": 29 + }, + "end": { + "line": 61, + "column": 34 + } + }, + "value": false, + "rawValue": false, + "raw": "false" + }, + "kind": "init" + } + ] + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 1822, + "end": 1872, + "loc": { + "start": { + "line": 65, + "column": 12 + }, + "end": { + "line": 65, + "column": 62 + } + }, + "argument": { + "type": "CallExpression", + "start": 1829, + "end": 1872, + "loc": { + "start": { + "line": 65, + "column": 19 + }, + "end": { + "line": 65, + "column": 62 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1829, + "end": 1842, + "loc": { + "start": { + "line": 65, + "column": 19 + }, + "end": { + "line": 65, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 1829, + "end": 1835, + "loc": { + "start": { + "line": 65, + "column": 19 + }, + "end": { + "line": 65, + "column": 25 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 1836, + "end": 1842, + "loc": { + "start": { + "line": 65, + "column": 26 + }, + "end": { + "line": 65, + "column": 32 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 1843, + "end": 1845, + "loc": { + "start": { + "line": 65, + "column": 33 + }, + "end": { + "line": 65, + "column": 35 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 1847, + "end": 1852, + "loc": { + "start": { + "line": 65, + "column": 37 + }, + "end": { + "line": 65, + "column": 42 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 1854, + "end": 1871, + "loc": { + "start": { + "line": 65, + "column": 44 + }, + "end": { + "line": 65, + "column": 61 + } + }, + "properties": [ + { + "type": "Property", + "start": 1856, + "end": 1869, + "loc": { + "start": { + "line": 65, + "column": 46 + }, + "end": { + "line": 65, + "column": 59 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1856, + "end": 1863, + "loc": { + "start": { + "line": 65, + "column": 46 + }, + "end": { + "line": 65, + "column": 53 + } + }, + "name": "loading" + }, + "value": { + "type": "Literal", + "start": 1865, + "end": 1869, + "loc": { + "start": { + "line": 65, + "column": 55 + }, + "end": { + "line": 65, + "column": 59 + } + }, + "value": true, + "rawValue": true, + "raw": "true" + }, + "kind": "init" + } + ] + } + ] + } + } + ], + "test": { + "type": "MemberExpression", + "start": 945, + "end": 962, + "loc": { + "start": { + "line": 41, + "column": 13 + }, + "end": { + "line": 41, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 945, + "end": 957, + "loc": { + "start": { + "line": 41, + "column": 13 + }, + "end": { + "line": 41, + "column": 25 + } + }, + "name": "PhotoActions" + }, + "property": { + "type": "Identifier", + "start": 958, + "end": 962, + "loc": { + "start": { + "line": 41, + "column": 26 + }, + "end": { + "line": 41, + "column": 30 + } + }, + "name": "LOAD" + }, + "computed": false + } + } + ] + }, + { + "type": "ReturnStatement", + "start": 1884, + "end": 1896, + "loc": { + "start": { + "line": 68, + "column": 4 + }, + "end": { + "line": 68, + "column": 16 + } + }, + "argument": { + "type": "Identifier", + "start": 1891, + "end": 1896, + "loc": { + "start": { + "line": 68, + "column": 11 + }, + "end": { + "line": 68, + "column": 16 + } + }, + "name": "state" + } + } + ] + }, + "leadingComments": [], + "name": "_", + "trailingComments": [] + }, + { + "type": "Identifier", + "start": 1900, + "end": 1920, + "loc": { + "start": { + "line": 71, + "column": 0 + }, + "end": { + "line": 71, + "column": 20 + } + }, + "declaration": { + "type": "Identifier", + "start": 1915, + "end": 1920, + "loc": { + "start": { + "line": 71, + "column": 15 + }, + "end": { + "line": 71, + "column": 20 + } + }, + "name": "Photo" + }, + "name": "_", + "leadingComments": [], + "trailingComments": [] + }, + { + "type": "ExportDefaultDeclaration", + "start": 1900, + "end": 1920, + "loc": { + "start": { + "line": 71, + "column": 0 + }, + "end": { + "line": 71, + "column": 20 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 857, + "end": 1898, + "loc": { + "start": { + "line": 38, + "column": 0 + }, + "end": { + "line": 69, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 866, + "end": 871, + "loc": { + "start": { + "line": 38, + "column": 9 + }, + "end": { + "line": 38, + "column": 14 + } + }, + "name": "Photo", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "AssignmentPattern", + "start": 872, + "end": 892, + "loc": { + "start": { + "line": 38, + "column": 15 + }, + "end": { + "line": 38, + "column": 35 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 872, + "end": 877, + "loc": { + "start": { + "line": 38, + "column": 15 + }, + "end": { + "line": 38, + "column": 20 + } + }, + "name": "state" + }, + "right": { + "type": "Identifier", + "start": 880, + "end": 892, + "loc": { + "start": { + "line": 38, + "column": 23 + }, + "end": { + "line": 38, + "column": 35 + } + }, + "name": "initialState" + } + }, + { + "type": "Identifier", + "start": 894, + "end": 900, + "loc": { + "start": { + "line": 38, + "column": 37 + }, + "end": { + "line": 38, + "column": 43 + } + }, + "name": "action" + } + ], + "body": { + "type": "BlockStatement", + "start": 902, + "end": 1898, + "loc": { + "start": { + "line": 38, + "column": 45 + }, + "end": { + "line": 69, + "column": 1 + } + }, + "body": [ + { + "type": "SwitchStatement", + "start": 909, + "end": 1878, + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 66, + "column": 5 + } + }, + "discriminant": { + "type": "MemberExpression", + "start": 917, + "end": 928, + "loc": { + "start": { + "line": 40, + "column": 12 + }, + "end": { + "line": 40, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 917, + "end": 923, + "loc": { + "start": { + "line": 40, + "column": 12 + }, + "end": { + "line": 40, + "column": 18 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 924, + "end": 928, + "loc": { + "start": { + "line": 40, + "column": 19 + }, + "end": { + "line": 40, + "column": 23 + } + }, + "name": "type" + }, + "computed": false + }, + "cases": [ + { + "type": "SwitchCase", + "start": 940, + "end": 1872, + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 65, + "column": 62 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 976, + "end": 1808, + "loc": { + "start": { + "line": 42, + "column": 12 + }, + "end": { + "line": 63, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 980, + "end": 995, + "loc": { + "start": { + "line": 42, + "column": 16 + }, + "end": { + "line": 42, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 980, + "end": 986, + "loc": { + "start": { + "line": 42, + "column": 16 + }, + "end": { + "line": 42, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 987, + "end": 995, + "loc": { + "start": { + "line": 42, + "column": 23 + }, + "end": { + "line": 42, + "column": 31 + } + }, + "name": "response" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 997, + "end": 1808, + "loc": { + "start": { + "line": 42, + "column": 33 + }, + "end": { + "line": 63, + "column": 13 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 1015, + "end": 1042, + "loc": { + "start": { + "line": 43, + "column": 16 + }, + "end": { + "line": 43, + "column": 43 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1021, + "end": 1042, + "loc": { + "start": { + "line": 43, + "column": 22 + }, + "end": { + "line": 43, + "column": 43 + } + }, + "id": { + "type": "Identifier", + "start": 1021, + "end": 1024, + "loc": { + "start": { + "line": 43, + "column": 22 + }, + "end": { + "line": 43, + "column": 25 + } + }, + "name": "res" + }, + "init": { + "type": "MemberExpression", + "start": 1027, + "end": 1042, + "loc": { + "start": { + "line": 43, + "column": 28 + }, + "end": { + "line": 43, + "column": 43 + } + }, + "object": { + "type": "Identifier", + "start": 1027, + "end": 1033, + "loc": { + "start": { + "line": 43, + "column": 28 + }, + "end": { + "line": 43, + "column": 34 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1034, + "end": 1042, + "loc": { + "start": { + "line": 43, + "column": 35 + }, + "end": { + "line": 43, + "column": 43 + } + }, + "name": "response" + }, + "computed": false + } + } + ], + "kind": "const" + }, + { + "type": "ReturnStatement", + "start": 1059, + "end": 1794, + "loc": { + "start": { + "line": 44, + "column": 16 + }, + "end": { + "line": 62, + "column": 18 + } + }, + "argument": { + "type": "CallExpression", + "start": 1066, + "end": 1794, + "loc": { + "start": { + "line": 44, + "column": 23 + }, + "end": { + "line": 62, + "column": 18 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1066, + "end": 1079, + "loc": { + "start": { + "line": 44, + "column": 23 + }, + "end": { + "line": 44, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 1066, + "end": 1072, + "loc": { + "start": { + "line": 44, + "column": 23 + }, + "end": { + "line": 44, + "column": 29 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 1073, + "end": 1079, + "loc": { + "start": { + "line": 44, + "column": 30 + }, + "end": { + "line": 44, + "column": 36 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 1080, + "end": 1082, + "loc": { + "start": { + "line": 44, + "column": 37 + }, + "end": { + "line": 44, + "column": 39 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 1084, + "end": 1089, + "loc": { + "start": { + "line": 44, + "column": 41 + }, + "end": { + "line": 44, + "column": 46 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 1091, + "end": 1793, + "loc": { + "start": { + "line": 44, + "column": 48 + }, + "end": { + "line": 62, + "column": 17 + } + }, + "properties": [ + { + "type": "Property", + "start": 1113, + "end": 1123, + "loc": { + "start": { + "line": 45, + "column": 20 + }, + "end": { + "line": 45, + "column": 30 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1113, + "end": 1115, + "loc": { + "start": { + "line": 45, + "column": 20 + }, + "end": { + "line": 45, + "column": 22 + } + }, + "name": "id" + }, + "value": { + "type": "MemberExpression", + "start": 1117, + "end": 1123, + "loc": { + "start": { + "line": 45, + "column": 24 + }, + "end": { + "line": 45, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 1117, + "end": 1120, + "loc": { + "start": { + "line": 45, + "column": 24 + }, + "end": { + "line": 45, + "column": 27 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 1121, + "end": 1123, + "loc": { + "start": { + "line": 45, + "column": 28 + }, + "end": { + "line": 45, + "column": 30 + } + }, + "name": "id" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1145, + "end": 1165, + "loc": { + "start": { + "line": 46, + "column": 20 + }, + "end": { + "line": 46, + "column": 40 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1145, + "end": 1152, + "loc": { + "start": { + "line": 46, + "column": 20 + }, + "end": { + "line": 46, + "column": 27 + } + }, + "name": "caption" + }, + "value": { + "type": "MemberExpression", + "start": 1154, + "end": 1165, + "loc": { + "start": { + "line": 46, + "column": 29 + }, + "end": { + "line": 46, + "column": 40 + } + }, + "object": { + "type": "Identifier", + "start": 1154, + "end": 1157, + "loc": { + "start": { + "line": 46, + "column": 29 + }, + "end": { + "line": 46, + "column": 32 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 1158, + "end": 1165, + "loc": { + "start": { + "line": 46, + "column": 33 + }, + "end": { + "line": 46, + "column": 40 + } + }, + "name": "caption" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1187, + "end": 1213, + "loc": { + "start": { + "line": 47, + "column": 20 + }, + "end": { + "line": 47, + "column": 46 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1187, + "end": 1197, + "loc": { + "start": { + "line": 47, + "column": 20 + }, + "end": { + "line": 47, + "column": 30 + } + }, + "name": "created_at" + }, + "value": { + "type": "MemberExpression", + "start": 1199, + "end": 1213, + "loc": { + "start": { + "line": 47, + "column": 32 + }, + "end": { + "line": 47, + "column": 46 + } + }, + "object": { + "type": "Identifier", + "start": 1199, + "end": 1202, + "loc": { + "start": { + "line": 47, + "column": 32 + }, + "end": { + "line": 47, + "column": 35 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 1203, + "end": 1213, + "loc": { + "start": { + "line": 47, + "column": 36 + }, + "end": { + "line": 47, + "column": 46 + } + }, + "name": "created_at" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1235, + "end": 1251, + "loc": { + "start": { + "line": 48, + "column": 20 + }, + "end": { + "line": 48, + "column": 36 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1235, + "end": 1240, + "loc": { + "start": { + "line": 48, + "column": 20 + }, + "end": { + "line": 48, + "column": 25 + } + }, + "name": "email" + }, + "value": { + "type": "MemberExpression", + "start": 1242, + "end": 1251, + "loc": { + "start": { + "line": 48, + "column": 27 + }, + "end": { + "line": 48, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 1242, + "end": 1245, + "loc": { + "start": { + "line": 48, + "column": 27 + }, + "end": { + "line": 48, + "column": 30 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 1246, + "end": 1251, + "loc": { + "start": { + "line": 48, + "column": 31 + }, + "end": { + "line": 48, + "column": 36 + } + }, + "name": "email" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1273, + "end": 1291, + "loc": { + "start": { + "line": 49, + "column": 20 + }, + "end": { + "line": 49, + "column": 38 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1273, + "end": 1279, + "loc": { + "start": { + "line": 49, + "column": 20 + }, + "end": { + "line": 49, + "column": 26 + } + }, + "name": "fb_uid" + }, + "value": { + "type": "MemberExpression", + "start": 1281, + "end": 1291, + "loc": { + "start": { + "line": 49, + "column": 28 + }, + "end": { + "line": 49, + "column": 38 + } + }, + "object": { + "type": "Identifier", + "start": 1281, + "end": 1284, + "loc": { + "start": { + "line": 49, + "column": 28 + }, + "end": { + "line": 49, + "column": 31 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 1285, + "end": 1291, + "loc": { + "start": { + "line": 49, + "column": 32 + }, + "end": { + "line": 49, + "column": 38 + } + }, + "name": "fb_uid" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1313, + "end": 1335, + "loc": { + "start": { + "line": 50, + "column": 20 + }, + "end": { + "line": 50, + "column": 42 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1313, + "end": 1321, + "loc": { + "start": { + "line": 50, + "column": 20 + }, + "end": { + "line": 50, + "column": 28 + } + }, + "name": "filename" + }, + "value": { + "type": "MemberExpression", + "start": 1323, + "end": 1335, + "loc": { + "start": { + "line": 50, + "column": 30 + }, + "end": { + "line": 50, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 1323, + "end": 1326, + "loc": { + "start": { + "line": 50, + "column": 30 + }, + "end": { + "line": 50, + "column": 33 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 1327, + "end": 1335, + "loc": { + "start": { + "line": 50, + "column": 34 + }, + "end": { + "line": 50, + "column": 42 + } + }, + "name": "filename" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1357, + "end": 1383, + "loc": { + "start": { + "line": 51, + "column": 20 + }, + "end": { + "line": 51, + "column": 46 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1357, + "end": 1367, + "loc": { + "start": { + "line": 51, + "column": 20 + }, + "end": { + "line": 51, + "column": 30 + } + }, + "name": "first_name" + }, + "value": { + "type": "MemberExpression", + "start": 1369, + "end": 1383, + "loc": { + "start": { + "line": 51, + "column": 32 + }, + "end": { + "line": 51, + "column": 46 + } + }, + "object": { + "type": "Identifier", + "start": 1369, + "end": 1372, + "loc": { + "start": { + "line": 51, + "column": 32 + }, + "end": { + "line": 51, + "column": 35 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 1373, + "end": 1383, + "loc": { + "start": { + "line": 51, + "column": 36 + }, + "end": { + "line": 51, + "column": 46 + } + }, + "name": "first_name" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1405, + "end": 1427, + "loc": { + "start": { + "line": 52, + "column": 20 + }, + "end": { + "line": 52, + "column": 42 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1405, + "end": 1413, + "loc": { + "start": { + "line": 52, + "column": 20 + }, + "end": { + "line": 52, + "column": 28 + } + }, + "name": "hashtags" + }, + "value": { + "type": "MemberExpression", + "start": 1415, + "end": 1427, + "loc": { + "start": { + "line": 52, + "column": 30 + }, + "end": { + "line": 52, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 1415, + "end": 1418, + "loc": { + "start": { + "line": 52, + "column": 30 + }, + "end": { + "line": 52, + "column": 33 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 1419, + "end": 1427, + "loc": { + "start": { + "line": 52, + "column": 34 + }, + "end": { + "line": 52, + "column": 42 + } + }, + "name": "hashtags" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1449, + "end": 1473, + "loc": { + "start": { + "line": 53, + "column": 20 + }, + "end": { + "line": 53, + "column": 44 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1449, + "end": 1458, + "loc": { + "start": { + "line": 53, + "column": 20 + }, + "end": { + "line": 53, + "column": 29 + } + }, + "name": "last_name" + }, + "value": { + "type": "MemberExpression", + "start": 1460, + "end": 1473, + "loc": { + "start": { + "line": 53, + "column": 31 + }, + "end": { + "line": 53, + "column": 44 + } + }, + "object": { + "type": "Identifier", + "start": 1460, + "end": 1463, + "loc": { + "start": { + "line": 53, + "column": 31 + }, + "end": { + "line": 53, + "column": 34 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 1464, + "end": 1473, + "loc": { + "start": { + "line": 53, + "column": 35 + }, + "end": { + "line": 53, + "column": 44 + } + }, + "name": "last_name" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1495, + "end": 1517, + "loc": { + "start": { + "line": 54, + "column": 20 + }, + "end": { + "line": 54, + "column": 42 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1495, + "end": 1503, + "loc": { + "start": { + "line": 54, + "column": 20 + }, + "end": { + "line": 54, + "column": 28 + } + }, + "name": "latitude" + }, + "value": { + "type": "MemberExpression", + "start": 1505, + "end": 1517, + "loc": { + "start": { + "line": 54, + "column": 30 + }, + "end": { + "line": 54, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 1505, + "end": 1508, + "loc": { + "start": { + "line": 54, + "column": 30 + }, + "end": { + "line": 54, + "column": 33 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 1509, + "end": 1517, + "loc": { + "start": { + "line": 54, + "column": 34 + }, + "end": { + "line": 54, + "column": 42 + } + }, + "name": "latitude" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1539, + "end": 1555, + "loc": { + "start": { + "line": 55, + "column": 20 + }, + "end": { + "line": 55, + "column": 36 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1539, + "end": 1544, + "loc": { + "start": { + "line": 55, + "column": 20 + }, + "end": { + "line": 55, + "column": 25 + } + }, + "name": "liked" + }, + "value": { + "type": "MemberExpression", + "start": 1546, + "end": 1555, + "loc": { + "start": { + "line": 55, + "column": 27 + }, + "end": { + "line": 55, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 1546, + "end": 1549, + "loc": { + "start": { + "line": 55, + "column": 27 + }, + "end": { + "line": 55, + "column": 30 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 1550, + "end": 1555, + "loc": { + "start": { + "line": 55, + "column": 31 + }, + "end": { + "line": 55, + "column": 36 + } + }, + "name": "liked" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1577, + "end": 1599, + "loc": { + "start": { + "line": 56, + "column": 20 + }, + "end": { + "line": 56, + "column": 42 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1577, + "end": 1585, + "loc": { + "start": { + "line": 56, + "column": 20 + }, + "end": { + "line": 56, + "column": 28 + } + }, + "name": "location" + }, + "value": { + "type": "MemberExpression", + "start": 1587, + "end": 1599, + "loc": { + "start": { + "line": 56, + "column": 30 + }, + "end": { + "line": 56, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 1587, + "end": 1590, + "loc": { + "start": { + "line": 56, + "column": 30 + }, + "end": { + "line": 56, + "column": 33 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 1591, + "end": 1599, + "loc": { + "start": { + "line": 56, + "column": 34 + }, + "end": { + "line": 56, + "column": 42 + } + }, + "name": "location" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1621, + "end": 1645, + "loc": { + "start": { + "line": 57, + "column": 20 + }, + "end": { + "line": 57, + "column": 44 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1621, + "end": 1630, + "loc": { + "start": { + "line": 57, + "column": 20 + }, + "end": { + "line": 57, + "column": 29 + } + }, + "name": "longitude" + }, + "value": { + "type": "MemberExpression", + "start": 1632, + "end": 1645, + "loc": { + "start": { + "line": 57, + "column": 31 + }, + "end": { + "line": 57, + "column": 44 + } + }, + "object": { + "type": "Identifier", + "start": 1632, + "end": 1635, + "loc": { + "start": { + "line": 57, + "column": 31 + }, + "end": { + "line": 57, + "column": 34 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 1636, + "end": 1645, + "loc": { + "start": { + "line": 57, + "column": 35 + }, + "end": { + "line": 57, + "column": 44 + } + }, + "name": "longitude" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1667, + "end": 1695, + "loc": { + "start": { + "line": 58, + "column": 20 + }, + "end": { + "line": 58, + "column": 48 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1667, + "end": 1678, + "loc": { + "start": { + "line": 58, + "column": 20 + }, + "end": { + "line": 58, + "column": 31 + } + }, + "name": "modified_at" + }, + "value": { + "type": "MemberExpression", + "start": 1680, + "end": 1695, + "loc": { + "start": { + "line": 58, + "column": 33 + }, + "end": { + "line": 58, + "column": 48 + } + }, + "object": { + "type": "Identifier", + "start": 1680, + "end": 1683, + "loc": { + "start": { + "line": 58, + "column": 33 + }, + "end": { + "line": 58, + "column": 36 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 1684, + "end": 1695, + "loc": { + "start": { + "line": 58, + "column": 37 + }, + "end": { + "line": 58, + "column": 48 + } + }, + "name": "modified_at" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1717, + "end": 1737, + "loc": { + "start": { + "line": 59, + "column": 20 + }, + "end": { + "line": 59, + "column": 40 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1717, + "end": 1724, + "loc": { + "start": { + "line": 59, + "column": 20 + }, + "end": { + "line": 59, + "column": 27 + } + }, + "name": "user_id" + }, + "value": { + "type": "MemberExpression", + "start": 1726, + "end": 1737, + "loc": { + "start": { + "line": 59, + "column": 29 + }, + "end": { + "line": 59, + "column": 40 + } + }, + "object": { + "type": "Identifier", + "start": 1726, + "end": 1729, + "loc": { + "start": { + "line": 59, + "column": 29 + }, + "end": { + "line": 59, + "column": 32 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 1730, + "end": 1737, + "loc": { + "start": { + "line": 59, + "column": 33 + }, + "end": { + "line": 59, + "column": 40 + } + }, + "name": "user_id" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1760, + "end": 1774, + "loc": { + "start": { + "line": 61, + "column": 20 + }, + "end": { + "line": 61, + "column": 34 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1760, + "end": 1767, + "loc": { + "start": { + "line": 61, + "column": 20 + }, + "end": { + "line": 61, + "column": 27 + } + }, + "name": "loading" + }, + "value": { + "type": "Literal", + "start": 1769, + "end": 1774, + "loc": { + "start": { + "line": 61, + "column": 29 + }, + "end": { + "line": 61, + "column": 34 + } + }, + "value": false, + "rawValue": false, + "raw": "false" + }, + "kind": "init" + } + ] + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 1822, + "end": 1872, + "loc": { + "start": { + "line": 65, + "column": 12 + }, + "end": { + "line": 65, + "column": 62 + } + }, + "argument": { + "type": "CallExpression", + "start": 1829, + "end": 1872, + "loc": { + "start": { + "line": 65, + "column": 19 + }, + "end": { + "line": 65, + "column": 62 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1829, + "end": 1842, + "loc": { + "start": { + "line": 65, + "column": 19 + }, + "end": { + "line": 65, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 1829, + "end": 1835, + "loc": { + "start": { + "line": 65, + "column": 19 + }, + "end": { + "line": 65, + "column": 25 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 1836, + "end": 1842, + "loc": { + "start": { + "line": 65, + "column": 26 + }, + "end": { + "line": 65, + "column": 32 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 1843, + "end": 1845, + "loc": { + "start": { + "line": 65, + "column": 33 + }, + "end": { + "line": 65, + "column": 35 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 1847, + "end": 1852, + "loc": { + "start": { + "line": 65, + "column": 37 + }, + "end": { + "line": 65, + "column": 42 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 1854, + "end": 1871, + "loc": { + "start": { + "line": 65, + "column": 44 + }, + "end": { + "line": 65, + "column": 61 + } + }, + "properties": [ + { + "type": "Property", + "start": 1856, + "end": 1869, + "loc": { + "start": { + "line": 65, + "column": 46 + }, + "end": { + "line": 65, + "column": 59 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1856, + "end": 1863, + "loc": { + "start": { + "line": 65, + "column": 46 + }, + "end": { + "line": 65, + "column": 53 + } + }, + "name": "loading" + }, + "value": { + "type": "Literal", + "start": 1865, + "end": 1869, + "loc": { + "start": { + "line": 65, + "column": 55 + }, + "end": { + "line": 65, + "column": 59 + } + }, + "value": true, + "rawValue": true, + "raw": "true" + }, + "kind": "init" + } + ] + } + ] + } + } + ], + "test": { + "type": "MemberExpression", + "start": 945, + "end": 962, + "loc": { + "start": { + "line": 41, + "column": 13 + }, + "end": { + "line": 41, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 945, + "end": 957, + "loc": { + "start": { + "line": 41, + "column": 13 + }, + "end": { + "line": 41, + "column": 25 + } + }, + "name": "PhotoActions" + }, + "property": { + "type": "Identifier", + "start": 958, + "end": 962, + "loc": { + "start": { + "line": 41, + "column": 26 + }, + "end": { + "line": 41, + "column": 30 + } + }, + "name": "LOAD" + }, + "computed": false + } + } + ] + }, + { + "type": "ReturnStatement", + "start": 1884, + "end": 1896, + "loc": { + "start": { + "line": 68, + "column": 4 + }, + "end": { + "line": 68, + "column": 16 + } + }, + "argument": { + "type": "Identifier", + "start": 1891, + "end": 1896, + "loc": { + "start": { + "line": 68, + "column": 11 + }, + "end": { + "line": 68, + "column": 16 + } + }, + "name": "state" + } + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Photo\n * Redux Reducer for Photo action\n * Reference: http://redux.js.org/docs/basics/Reducers.html\n * @param state\n * @param action\n * @returns {*}\n * @constructor\n ", + "start": 681, + "end": 856, + "loc": { + "start": { + "line": 29, + "column": 0 + }, + "end": { + "line": 37, + "column": 3 + } + }, + "range": [ + 681, + 856 + ] + } + ], + "trailingComments": [] + } + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/reducers/Photos.js.json b/app/docs/ast/source/reducers/Photos.js.json new file mode 100644 index 0000000..6016dc7 --- /dev/null +++ b/app/docs/ast/source/reducers/Photos.js.json @@ -0,0 +1,4794 @@ +{ + "type": "Program", + "start": 0, + "end": 1417, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 65, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 53, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 16 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 13, + "end": 35, + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 26 + } + }, + "imported": { + "type": "Identifier", + "start": 13, + "end": 19, + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 10 + } + }, + "name": "Photos" + }, + "local": { + "type": "Identifier", + "start": 23, + "end": 35, + "loc": { + "start": { + "line": 2, + "column": 14 + }, + "end": { + "line": 2, + "column": 26 + } + }, + "name": "PhotoActions" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 44, + "end": 53, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 16 + } + }, + "value": "actions", + "rawValue": "actions", + "raw": "'actions'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Photos\n * Redux Reducer for Photos action\n * Reference: http://redux.js.org/docs/basics/Reducers.html\n * @param state\n * @param action\n * @returns {*}\n * @constructor\n ", + "start": 55, + "end": 232, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + }, + "range": [ + 55, + 232 + ] + } + ] + }, + { + "type": "Identifier", + "start": 233, + "end": 1393, + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 62, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 242, + "end": 248, + "loc": { + "start": { + "line": 14, + "column": 9 + }, + "end": { + "line": 14, + "column": 15 + } + }, + "name": "Photos", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "AssignmentPattern", + "start": 249, + "end": 259, + "loc": { + "start": { + "line": 14, + "column": 16 + }, + "end": { + "line": 14, + "column": 26 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 249, + "end": 254, + "loc": { + "start": { + "line": 14, + "column": 16 + }, + "end": { + "line": 14, + "column": 21 + } + }, + "name": "state" + }, + "right": { + "type": "ArrayExpression", + "start": 257, + "end": 259, + "loc": { + "start": { + "line": 14, + "column": 24 + }, + "end": { + "line": 14, + "column": 26 + } + }, + "elements": [] + } + }, + { + "type": "Identifier", + "start": 261, + "end": 267, + "loc": { + "start": { + "line": 14, + "column": 28 + }, + "end": { + "line": 14, + "column": 34 + } + }, + "name": "action" + } + ], + "body": { + "type": "BlockStatement", + "start": 269, + "end": 1393, + "loc": { + "start": { + "line": 14, + "column": 36 + }, + "end": { + "line": 62, + "column": 1 + } + }, + "body": [ + { + "type": "SwitchStatement", + "start": 276, + "end": 1373, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 59, + "column": 5 + } + }, + "discriminant": { + "type": "MemberExpression", + "start": 284, + "end": 295, + "loc": { + "start": { + "line": 16, + "column": 12 + }, + "end": { + "line": 16, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 284, + "end": 290, + "loc": { + "start": { + "line": 16, + "column": 12 + }, + "end": { + "line": 16, + "column": 18 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 291, + "end": 295, + "loc": { + "start": { + "line": 16, + "column": 19 + }, + "end": { + "line": 16, + "column": 23 + } + }, + "name": "type" + }, + "computed": false + }, + "cases": [ + { + "type": "SwitchCase", + "start": 308, + "end": 527, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 24, + "column": 24 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 348, + "end": 502, + "loc": { + "start": { + "line": 19, + "column": 12 + }, + "end": { + "line": 23, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 352, + "end": 367, + "loc": { + "start": { + "line": 19, + "column": 16 + }, + "end": { + "line": 19, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 352, + "end": 358, + "loc": { + "start": { + "line": 19, + "column": 16 + }, + "end": { + "line": 19, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 359, + "end": 367, + "loc": { + "start": { + "line": 19, + "column": 23 + }, + "end": { + "line": 19, + "column": 31 + } + }, + "name": "response" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 369, + "end": 502, + "loc": { + "start": { + "line": 19, + "column": 33 + }, + "end": { + "line": 23, + "column": 13 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 387, + "end": 407, + "loc": { + "start": { + "line": 20, + "column": 16 + }, + "end": { + "line": 20, + "column": 36 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 393, + "end": 407, + "loc": { + "start": { + "line": 20, + "column": 22 + }, + "end": { + "line": 20, + "column": 36 + } + }, + "id": { + "type": "Identifier", + "start": 393, + "end": 394, + "loc": { + "start": { + "line": 20, + "column": 22 + }, + "end": { + "line": 20, + "column": 23 + } + }, + "name": "s" + }, + "init": { + "type": "ArrayExpression", + "start": 397, + "end": 407, + "loc": { + "start": { + "line": 20, + "column": 26 + }, + "end": { + "line": 20, + "column": 36 + } + }, + "elements": [ + { + "type": "SpreadElement", + "start": 398, + "end": 406, + "loc": { + "start": { + "line": 20, + "column": 27 + }, + "end": { + "line": 20, + "column": 35 + } + }, + "argument": { + "type": "Identifier", + "start": 401, + "end": 406, + "loc": { + "start": { + "line": 20, + "column": 30 + }, + "end": { + "line": 20, + "column": 35 + } + }, + "name": "state" + } + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "ExpressionStatement", + "start": 424, + "end": 463, + "loc": { + "start": { + "line": 21, + "column": 16 + }, + "end": { + "line": 21, + "column": 55 + } + }, + "expression": { + "type": "CallExpression", + "start": 424, + "end": 463, + "loc": { + "start": { + "line": 21, + "column": 16 + }, + "end": { + "line": 21, + "column": 55 + } + }, + "callee": { + "type": "MemberExpression", + "start": 424, + "end": 447, + "loc": { + "start": { + "line": 21, + "column": 16 + }, + "end": { + "line": 21, + "column": 39 + } + }, + "object": { + "type": "MemberExpression", + "start": 424, + "end": 439, + "loc": { + "start": { + "line": 21, + "column": 16 + }, + "end": { + "line": 21, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 424, + "end": 430, + "loc": { + "start": { + "line": 21, + "column": 16 + }, + "end": { + "line": 21, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 431, + "end": 439, + "loc": { + "start": { + "line": 21, + "column": 23 + }, + "end": { + "line": 21, + "column": 31 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 440, + "end": 447, + "loc": { + "start": { + "line": 21, + "column": 32 + }, + "end": { + "line": 21, + "column": 39 + } + }, + "name": "forEach" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 448, + "end": 462, + "loc": { + "start": { + "line": 21, + "column": 40 + }, + "end": { + "line": 21, + "column": 54 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 448, + "end": 449, + "loc": { + "start": { + "line": 21, + "column": 40 + }, + "end": { + "line": 21, + "column": 41 + } + }, + "name": "r" + } + ], + "body": { + "type": "CallExpression", + "start": 453, + "end": 462, + "loc": { + "start": { + "line": 21, + "column": 45 + }, + "end": { + "line": 21, + "column": 54 + } + }, + "callee": { + "type": "MemberExpression", + "start": 453, + "end": 459, + "loc": { + "start": { + "line": 21, + "column": 45 + }, + "end": { + "line": 21, + "column": 51 + } + }, + "object": { + "type": "Identifier", + "start": 453, + "end": 454, + "loc": { + "start": { + "line": 21, + "column": 45 + }, + "end": { + "line": 21, + "column": 46 + } + }, + "name": "s" + }, + "property": { + "type": "Identifier", + "start": 455, + "end": 459, + "loc": { + "start": { + "line": 21, + "column": 47 + }, + "end": { + "line": 21, + "column": 51 + } + }, + "name": "push" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 460, + "end": 461, + "loc": { + "start": { + "line": 21, + "column": 52 + }, + "end": { + "line": 21, + "column": 53 + } + }, + "name": "r" + } + ] + } + } + ] + } + }, + { + "type": "ReturnStatement", + "start": 480, + "end": 488, + "loc": { + "start": { + "line": 22, + "column": 16 + }, + "end": { + "line": 22, + "column": 24 + } + }, + "argument": { + "type": "Identifier", + "start": 487, + "end": 488, + "loc": { + "start": { + "line": 22, + "column": 23 + }, + "end": { + "line": 22, + "column": 24 + } + }, + "name": "s" + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 515, + "end": 527, + "loc": { + "start": { + "line": 24, + "column": 12 + }, + "end": { + "line": 24, + "column": 24 + } + }, + "argument": { + "type": "Identifier", + "start": 522, + "end": 527, + "loc": { + "start": { + "line": 24, + "column": 19 + }, + "end": { + "line": 24, + "column": 24 + } + }, + "name": "state" + } + } + ], + "test": { + "type": "MemberExpression", + "start": 313, + "end": 334, + "loc": { + "start": { + "line": 18, + "column": 13 + }, + "end": { + "line": 18, + "column": 34 + } + }, + "object": { + "type": "Identifier", + "start": 313, + "end": 325, + "loc": { + "start": { + "line": 18, + "column": 13 + }, + "end": { + "line": 18, + "column": 25 + } + }, + "name": "PhotoActions" + }, + "property": { + "type": "Identifier", + "start": 326, + "end": 334, + "loc": { + "start": { + "line": 18, + "column": 26 + }, + "end": { + "line": 18, + "column": 34 + } + }, + "name": "PAGINATE" + }, + "computed": false + } + }, + { + "type": "SwitchCase", + "start": 537, + "end": 714, + "loc": { + "start": { + "line": 26, + "column": 8 + }, + "end": { + "line": 32, + "column": 21 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 573, + "end": 692, + "loc": { + "start": { + "line": 27, + "column": 12 + }, + "end": { + "line": 31, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 577, + "end": 592, + "loc": { + "start": { + "line": 27, + "column": 16 + }, + "end": { + "line": 27, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 577, + "end": 583, + "loc": { + "start": { + "line": 27, + "column": 16 + }, + "end": { + "line": 27, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 584, + "end": 592, + "loc": { + "start": { + "line": 27, + "column": 23 + }, + "end": { + "line": 27, + "column": 31 + } + }, + "name": "response" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 594, + "end": 692, + "loc": { + "start": { + "line": 27, + "column": 33 + }, + "end": { + "line": 31, + "column": 13 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 612, + "end": 678, + "loc": { + "start": { + "line": 28, + "column": 16 + }, + "end": { + "line": 30, + "column": 17 + } + }, + "argument": { + "type": "ArrayExpression", + "start": 619, + "end": 678, + "loc": { + "start": { + "line": 28, + "column": 23 + }, + "end": { + "line": 30, + "column": 17 + } + }, + "elements": [ + { + "type": "SpreadElement", + "start": 641, + "end": 659, + "loc": { + "start": { + "line": 29, + "column": 20 + }, + "end": { + "line": 29, + "column": 38 + } + }, + "argument": { + "type": "MemberExpression", + "start": 644, + "end": 659, + "loc": { + "start": { + "line": 29, + "column": 23 + }, + "end": { + "line": 29, + "column": 38 + } + }, + "object": { + "type": "Identifier", + "start": 644, + "end": 650, + "loc": { + "start": { + "line": 29, + "column": 23 + }, + "end": { + "line": 29, + "column": 29 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 651, + "end": 659, + "loc": { + "start": { + "line": 29, + "column": 30 + }, + "end": { + "line": 29, + "column": 38 + } + }, + "name": "response" + }, + "computed": false + } + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 705, + "end": 714, + "loc": { + "start": { + "line": 32, + "column": 12 + }, + "end": { + "line": 32, + "column": 21 + } + }, + "argument": { + "type": "ArrayExpression", + "start": 712, + "end": 714, + "loc": { + "start": { + "line": 32, + "column": 19 + }, + "end": { + "line": 32, + "column": 21 + } + }, + "elements": [] + } + } + ], + "test": { + "type": "MemberExpression", + "start": 542, + "end": 559, + "loc": { + "start": { + "line": 26, + "column": 13 + }, + "end": { + "line": 26, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 542, + "end": 554, + "loc": { + "start": { + "line": 26, + "column": 13 + }, + "end": { + "line": 26, + "column": 25 + } + }, + "name": "PhotoActions" + }, + "property": { + "type": "Identifier", + "start": 555, + "end": 559, + "loc": { + "start": { + "line": 26, + "column": 26 + }, + "end": { + "line": 26, + "column": 30 + } + }, + "name": "LOAD" + }, + "computed": false + } + }, + { + "type": "SwitchCase", + "start": 724, + "end": 1038, + "loc": { + "start": { + "line": 34, + "column": 8 + }, + "end": { + "line": 44, + "column": 13 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 760, + "end": 1038, + "loc": { + "start": { + "line": 35, + "column": 12 + }, + "end": { + "line": 44, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 764, + "end": 779, + "loc": { + "start": { + "line": 35, + "column": 16 + }, + "end": { + "line": 35, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 764, + "end": 770, + "loc": { + "start": { + "line": 35, + "column": 16 + }, + "end": { + "line": 35, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 771, + "end": 779, + "loc": { + "start": { + "line": 35, + "column": 23 + }, + "end": { + "line": 35, + "column": 31 + } + }, + "name": "response" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 781, + "end": 1038, + "loc": { + "start": { + "line": 35, + "column": 33 + }, + "end": { + "line": 44, + "column": 13 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 799, + "end": 1024, + "loc": { + "start": { + "line": 36, + "column": 16 + }, + "end": { + "line": 43, + "column": 18 + } + }, + "argument": { + "type": "CallExpression", + "start": 806, + "end": 1024, + "loc": { + "start": { + "line": 36, + "column": 23 + }, + "end": { + "line": 43, + "column": 18 + } + }, + "callee": { + "type": "MemberExpression", + "start": 806, + "end": 815, + "loc": { + "start": { + "line": 36, + "column": 23 + }, + "end": { + "line": 36, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 806, + "end": 811, + "loc": { + "start": { + "line": 36, + "column": 23 + }, + "end": { + "line": 36, + "column": 28 + } + }, + "name": "state" + }, + "property": { + "type": "Identifier", + "start": 812, + "end": 815, + "loc": { + "start": { + "line": 36, + "column": 29 + }, + "end": { + "line": 36, + "column": 32 + } + }, + "name": "map" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 816, + "end": 1023, + "loc": { + "start": { + "line": 36, + "column": 33 + }, + "end": { + "line": 43, + "column": 17 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 816, + "end": 820, + "loc": { + "start": { + "line": 36, + "column": 33 + }, + "end": { + "line": 36, + "column": 37 + } + }, + "name": "item" + } + ], + "body": { + "type": "BlockStatement", + "start": 824, + "end": 1023, + "loc": { + "start": { + "line": 36, + "column": 41 + }, + "end": { + "line": 43, + "column": 17 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 847, + "end": 972, + "loc": { + "start": { + "line": 38, + "column": 20 + }, + "end": { + "line": 40, + "column": 21 + } + }, + "test": { + "type": "BinaryExpression", + "start": 851, + "end": 875, + "loc": { + "start": { + "line": 38, + "column": 24 + }, + "end": { + "line": 38, + "column": 48 + } + }, + "left": { + "type": "MemberExpression", + "start": 851, + "end": 858, + "loc": { + "start": { + "line": 38, + "column": 24 + }, + "end": { + "line": 38, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 851, + "end": 855, + "loc": { + "start": { + "line": 38, + "column": 24 + }, + "end": { + "line": 38, + "column": 28 + } + }, + "name": "item" + }, + "property": { + "type": "Identifier", + "start": 856, + "end": 858, + "loc": { + "start": { + "line": 38, + "column": 29 + }, + "end": { + "line": 38, + "column": 31 + } + }, + "name": "id" + }, + "computed": false + }, + "operator": "==", + "right": { + "type": "MemberExpression", + "start": 862, + "end": 875, + "loc": { + "start": { + "line": 38, + "column": 35 + }, + "end": { + "line": 38, + "column": 48 + } + }, + "object": { + "type": "Identifier", + "start": 862, + "end": 868, + "loc": { + "start": { + "line": 38, + "column": 35 + }, + "end": { + "line": 38, + "column": 41 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 869, + "end": 875, + "loc": { + "start": { + "line": 38, + "column": 42 + }, + "end": { + "line": 38, + "column": 48 + } + }, + "name": "postID" + }, + "computed": false + } + }, + "consequent": { + "type": "BlockStatement", + "start": 877, + "end": 972, + "loc": { + "start": { + "line": 38, + "column": 50 + }, + "end": { + "line": 40, + "column": 21 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 903, + "end": 950, + "loc": { + "start": { + "line": 39, + "column": 24 + }, + "end": { + "line": 39, + "column": 71 + } + }, + "argument": { + "type": "CallExpression", + "start": 910, + "end": 950, + "loc": { + "start": { + "line": 39, + "column": 31 + }, + "end": { + "line": 39, + "column": 71 + } + }, + "callee": { + "type": "MemberExpression", + "start": 910, + "end": 923, + "loc": { + "start": { + "line": 39, + "column": 31 + }, + "end": { + "line": 39, + "column": 44 + } + }, + "object": { + "type": "Identifier", + "start": 910, + "end": 916, + "loc": { + "start": { + "line": 39, + "column": 31 + }, + "end": { + "line": 39, + "column": 37 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 917, + "end": 923, + "loc": { + "start": { + "line": 39, + "column": 38 + }, + "end": { + "line": 39, + "column": 44 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 924, + "end": 926, + "loc": { + "start": { + "line": 39, + "column": 45 + }, + "end": { + "line": 39, + "column": 47 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 928, + "end": 932, + "loc": { + "start": { + "line": 39, + "column": 49 + }, + "end": { + "line": 39, + "column": 53 + } + }, + "name": "item" + }, + { + "type": "ObjectExpression", + "start": 934, + "end": 949, + "loc": { + "start": { + "line": 39, + "column": 55 + }, + "end": { + "line": 39, + "column": 70 + } + }, + "properties": [ + { + "type": "Property", + "start": 936, + "end": 947, + "loc": { + "start": { + "line": 39, + "column": 57 + }, + "end": { + "line": 39, + "column": 68 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 936, + "end": 941, + "loc": { + "start": { + "line": 39, + "column": 57 + }, + "end": { + "line": 39, + "column": 62 + } + }, + "name": "liked" + }, + "value": { + "type": "Literal", + "start": 943, + "end": 947, + "loc": { + "start": { + "line": 39, + "column": 64 + }, + "end": { + "line": 39, + "column": 68 + } + }, + "value": true, + "rawValue": true, + "raw": "true" + }, + "kind": "init" + } + ] + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 994, + "end": 1005, + "loc": { + "start": { + "line": 42, + "column": 20 + }, + "end": { + "line": 42, + "column": 31 + } + }, + "argument": { + "type": "Identifier", + "start": 1001, + "end": 1005, + "loc": { + "start": { + "line": 42, + "column": 27 + }, + "end": { + "line": 42, + "column": 31 + } + }, + "name": "item" + } + } + ] + } + } + ] + } + } + ] + }, + "alternate": null + } + ], + "test": { + "type": "MemberExpression", + "start": 729, + "end": 746, + "loc": { + "start": { + "line": 34, + "column": 13 + }, + "end": { + "line": 34, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 729, + "end": 741, + "loc": { + "start": { + "line": 34, + "column": 13 + }, + "end": { + "line": 34, + "column": 25 + } + }, + "name": "PhotoActions" + }, + "property": { + "type": "Identifier", + "start": 742, + "end": 746, + "loc": { + "start": { + "line": 34, + "column": 26 + }, + "end": { + "line": 34, + "column": 30 + } + }, + "name": "LIKE" + }, + "computed": false + } + }, + { + "type": "SwitchCase", + "start": 1048, + "end": 1365, + "loc": { + "start": { + "line": 46, + "column": 8 + }, + "end": { + "line": 56, + "column": 13 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 1086, + "end": 1365, + "loc": { + "start": { + "line": 47, + "column": 12 + }, + "end": { + "line": 56, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 1090, + "end": 1105, + "loc": { + "start": { + "line": 47, + "column": 16 + }, + "end": { + "line": 47, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 1090, + "end": 1096, + "loc": { + "start": { + "line": 47, + "column": 16 + }, + "end": { + "line": 47, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1097, + "end": 1105, + "loc": { + "start": { + "line": 47, + "column": 23 + }, + "end": { + "line": 47, + "column": 31 + } + }, + "name": "response" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 1107, + "end": 1365, + "loc": { + "start": { + "line": 47, + "column": 33 + }, + "end": { + "line": 56, + "column": 13 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 1125, + "end": 1351, + "loc": { + "start": { + "line": 48, + "column": 16 + }, + "end": { + "line": 55, + "column": 18 + } + }, + "argument": { + "type": "CallExpression", + "start": 1132, + "end": 1351, + "loc": { + "start": { + "line": 48, + "column": 23 + }, + "end": { + "line": 55, + "column": 18 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1132, + "end": 1141, + "loc": { + "start": { + "line": 48, + "column": 23 + }, + "end": { + "line": 48, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 1132, + "end": 1137, + "loc": { + "start": { + "line": 48, + "column": 23 + }, + "end": { + "line": 48, + "column": 28 + } + }, + "name": "state" + }, + "property": { + "type": "Identifier", + "start": 1138, + "end": 1141, + "loc": { + "start": { + "line": 48, + "column": 29 + }, + "end": { + "line": 48, + "column": 32 + } + }, + "name": "map" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 1142, + "end": 1350, + "loc": { + "start": { + "line": 48, + "column": 33 + }, + "end": { + "line": 55, + "column": 17 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1142, + "end": 1146, + "loc": { + "start": { + "line": 48, + "column": 33 + }, + "end": { + "line": 48, + "column": 37 + } + }, + "name": "item" + } + ], + "body": { + "type": "BlockStatement", + "start": 1150, + "end": 1350, + "loc": { + "start": { + "line": 48, + "column": 41 + }, + "end": { + "line": 55, + "column": 17 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 1173, + "end": 1299, + "loc": { + "start": { + "line": 50, + "column": 20 + }, + "end": { + "line": 52, + "column": 21 + } + }, + "test": { + "type": "BinaryExpression", + "start": 1177, + "end": 1201, + "loc": { + "start": { + "line": 50, + "column": 24 + }, + "end": { + "line": 50, + "column": 48 + } + }, + "left": { + "type": "MemberExpression", + "start": 1177, + "end": 1184, + "loc": { + "start": { + "line": 50, + "column": 24 + }, + "end": { + "line": 50, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 1177, + "end": 1181, + "loc": { + "start": { + "line": 50, + "column": 24 + }, + "end": { + "line": 50, + "column": 28 + } + }, + "name": "item" + }, + "property": { + "type": "Identifier", + "start": 1182, + "end": 1184, + "loc": { + "start": { + "line": 50, + "column": 29 + }, + "end": { + "line": 50, + "column": 31 + } + }, + "name": "id" + }, + "computed": false + }, + "operator": "==", + "right": { + "type": "MemberExpression", + "start": 1188, + "end": 1201, + "loc": { + "start": { + "line": 50, + "column": 35 + }, + "end": { + "line": 50, + "column": 48 + } + }, + "object": { + "type": "Identifier", + "start": 1188, + "end": 1194, + "loc": { + "start": { + "line": 50, + "column": 35 + }, + "end": { + "line": 50, + "column": 41 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1195, + "end": 1201, + "loc": { + "start": { + "line": 50, + "column": 42 + }, + "end": { + "line": 50, + "column": 48 + } + }, + "name": "postID" + }, + "computed": false + } + }, + "consequent": { + "type": "BlockStatement", + "start": 1203, + "end": 1299, + "loc": { + "start": { + "line": 50, + "column": 50 + }, + "end": { + "line": 52, + "column": 21 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 1229, + "end": 1277, + "loc": { + "start": { + "line": 51, + "column": 24 + }, + "end": { + "line": 51, + "column": 72 + } + }, + "argument": { + "type": "CallExpression", + "start": 1236, + "end": 1277, + "loc": { + "start": { + "line": 51, + "column": 31 + }, + "end": { + "line": 51, + "column": 72 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1236, + "end": 1249, + "loc": { + "start": { + "line": 51, + "column": 31 + }, + "end": { + "line": 51, + "column": 44 + } + }, + "object": { + "type": "Identifier", + "start": 1236, + "end": 1242, + "loc": { + "start": { + "line": 51, + "column": 31 + }, + "end": { + "line": 51, + "column": 37 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 1243, + "end": 1249, + "loc": { + "start": { + "line": 51, + "column": 38 + }, + "end": { + "line": 51, + "column": 44 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 1250, + "end": 1252, + "loc": { + "start": { + "line": 51, + "column": 45 + }, + "end": { + "line": 51, + "column": 47 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 1254, + "end": 1258, + "loc": { + "start": { + "line": 51, + "column": 49 + }, + "end": { + "line": 51, + "column": 53 + } + }, + "name": "item" + }, + { + "type": "ObjectExpression", + "start": 1260, + "end": 1276, + "loc": { + "start": { + "line": 51, + "column": 55 + }, + "end": { + "line": 51, + "column": 71 + } + }, + "properties": [ + { + "type": "Property", + "start": 1262, + "end": 1274, + "loc": { + "start": { + "line": 51, + "column": 57 + }, + "end": { + "line": 51, + "column": 69 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1262, + "end": 1267, + "loc": { + "start": { + "line": 51, + "column": 57 + }, + "end": { + "line": 51, + "column": 62 + } + }, + "name": "liked" + }, + "value": { + "type": "Literal", + "start": 1269, + "end": 1274, + "loc": { + "start": { + "line": 51, + "column": 64 + }, + "end": { + "line": 51, + "column": 69 + } + }, + "value": false, + "rawValue": false, + "raw": "false" + }, + "kind": "init" + } + ] + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 1321, + "end": 1332, + "loc": { + "start": { + "line": 54, + "column": 20 + }, + "end": { + "line": 54, + "column": 31 + } + }, + "argument": { + "type": "Identifier", + "start": 1328, + "end": 1332, + "loc": { + "start": { + "line": 54, + "column": 27 + }, + "end": { + "line": 54, + "column": 31 + } + }, + "name": "item" + } + } + ] + } + } + ] + } + } + ] + }, + "alternate": null + } + ], + "test": { + "type": "MemberExpression", + "start": 1053, + "end": 1072, + "loc": { + "start": { + "line": 46, + "column": 13 + }, + "end": { + "line": 46, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 1053, + "end": 1065, + "loc": { + "start": { + "line": 46, + "column": 13 + }, + "end": { + "line": 46, + "column": 25 + } + }, + "name": "PhotoActions" + }, + "property": { + "type": "Identifier", + "start": 1066, + "end": 1072, + "loc": { + "start": { + "line": 46, + "column": 26 + }, + "end": { + "line": 46, + "column": 32 + } + }, + "name": "UNLIKE" + }, + "computed": false + } + } + ] + }, + { + "type": "ReturnStatement", + "start": 1379, + "end": 1391, + "loc": { + "start": { + "line": 61, + "column": 4 + }, + "end": { + "line": 61, + "column": 16 + } + }, + "argument": { + "type": "Identifier", + "start": 1386, + "end": 1391, + "loc": { + "start": { + "line": 61, + "column": 11 + }, + "end": { + "line": 61, + "column": 16 + } + }, + "name": "state" + } + } + ] + }, + "leadingComments": [], + "name": "_", + "trailingComments": [] + }, + { + "type": "Identifier", + "start": 1395, + "end": 1416, + "loc": { + "start": { + "line": 64, + "column": 0 + }, + "end": { + "line": 64, + "column": 21 + } + }, + "declaration": { + "type": "Identifier", + "start": 1410, + "end": 1416, + "loc": { + "start": { + "line": 64, + "column": 15 + }, + "end": { + "line": 64, + "column": 21 + } + }, + "name": "Photos" + }, + "name": "_", + "leadingComments": [], + "trailingComments": [] + }, + { + "type": "ExportDefaultDeclaration", + "start": 1395, + "end": 1416, + "loc": { + "start": { + "line": 64, + "column": 0 + }, + "end": { + "line": 64, + "column": 21 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 233, + "end": 1393, + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 62, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 242, + "end": 248, + "loc": { + "start": { + "line": 14, + "column": 9 + }, + "end": { + "line": 14, + "column": 15 + } + }, + "name": "Photos", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "AssignmentPattern", + "start": 249, + "end": 259, + "loc": { + "start": { + "line": 14, + "column": 16 + }, + "end": { + "line": 14, + "column": 26 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 249, + "end": 254, + "loc": { + "start": { + "line": 14, + "column": 16 + }, + "end": { + "line": 14, + "column": 21 + } + }, + "name": "state" + }, + "right": { + "type": "ArrayExpression", + "start": 257, + "end": 259, + "loc": { + "start": { + "line": 14, + "column": 24 + }, + "end": { + "line": 14, + "column": 26 + } + }, + "elements": [] + } + }, + { + "type": "Identifier", + "start": 261, + "end": 267, + "loc": { + "start": { + "line": 14, + "column": 28 + }, + "end": { + "line": 14, + "column": 34 + } + }, + "name": "action" + } + ], + "body": { + "type": "BlockStatement", + "start": 269, + "end": 1393, + "loc": { + "start": { + "line": 14, + "column": 36 + }, + "end": { + "line": 62, + "column": 1 + } + }, + "body": [ + { + "type": "SwitchStatement", + "start": 276, + "end": 1373, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 59, + "column": 5 + } + }, + "discriminant": { + "type": "MemberExpression", + "start": 284, + "end": 295, + "loc": { + "start": { + "line": 16, + "column": 12 + }, + "end": { + "line": 16, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 284, + "end": 290, + "loc": { + "start": { + "line": 16, + "column": 12 + }, + "end": { + "line": 16, + "column": 18 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 291, + "end": 295, + "loc": { + "start": { + "line": 16, + "column": 19 + }, + "end": { + "line": 16, + "column": 23 + } + }, + "name": "type" + }, + "computed": false + }, + "cases": [ + { + "type": "SwitchCase", + "start": 308, + "end": 527, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 24, + "column": 24 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 348, + "end": 502, + "loc": { + "start": { + "line": 19, + "column": 12 + }, + "end": { + "line": 23, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 352, + "end": 367, + "loc": { + "start": { + "line": 19, + "column": 16 + }, + "end": { + "line": 19, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 352, + "end": 358, + "loc": { + "start": { + "line": 19, + "column": 16 + }, + "end": { + "line": 19, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 359, + "end": 367, + "loc": { + "start": { + "line": 19, + "column": 23 + }, + "end": { + "line": 19, + "column": 31 + } + }, + "name": "response" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 369, + "end": 502, + "loc": { + "start": { + "line": 19, + "column": 33 + }, + "end": { + "line": 23, + "column": 13 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 387, + "end": 407, + "loc": { + "start": { + "line": 20, + "column": 16 + }, + "end": { + "line": 20, + "column": 36 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 393, + "end": 407, + "loc": { + "start": { + "line": 20, + "column": 22 + }, + "end": { + "line": 20, + "column": 36 + } + }, + "id": { + "type": "Identifier", + "start": 393, + "end": 394, + "loc": { + "start": { + "line": 20, + "column": 22 + }, + "end": { + "line": 20, + "column": 23 + } + }, + "name": "s" + }, + "init": { + "type": "ArrayExpression", + "start": 397, + "end": 407, + "loc": { + "start": { + "line": 20, + "column": 26 + }, + "end": { + "line": 20, + "column": 36 + } + }, + "elements": [ + { + "type": "SpreadElement", + "start": 398, + "end": 406, + "loc": { + "start": { + "line": 20, + "column": 27 + }, + "end": { + "line": 20, + "column": 35 + } + }, + "argument": { + "type": "Identifier", + "start": 401, + "end": 406, + "loc": { + "start": { + "line": 20, + "column": 30 + }, + "end": { + "line": 20, + "column": 35 + } + }, + "name": "state" + } + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "ExpressionStatement", + "start": 424, + "end": 463, + "loc": { + "start": { + "line": 21, + "column": 16 + }, + "end": { + "line": 21, + "column": 55 + } + }, + "expression": { + "type": "CallExpression", + "start": 424, + "end": 463, + "loc": { + "start": { + "line": 21, + "column": 16 + }, + "end": { + "line": 21, + "column": 55 + } + }, + "callee": { + "type": "MemberExpression", + "start": 424, + "end": 447, + "loc": { + "start": { + "line": 21, + "column": 16 + }, + "end": { + "line": 21, + "column": 39 + } + }, + "object": { + "type": "MemberExpression", + "start": 424, + "end": 439, + "loc": { + "start": { + "line": 21, + "column": 16 + }, + "end": { + "line": 21, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 424, + "end": 430, + "loc": { + "start": { + "line": 21, + "column": 16 + }, + "end": { + "line": 21, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 431, + "end": 439, + "loc": { + "start": { + "line": 21, + "column": 23 + }, + "end": { + "line": 21, + "column": 31 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 440, + "end": 447, + "loc": { + "start": { + "line": 21, + "column": 32 + }, + "end": { + "line": 21, + "column": 39 + } + }, + "name": "forEach" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 448, + "end": 462, + "loc": { + "start": { + "line": 21, + "column": 40 + }, + "end": { + "line": 21, + "column": 54 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 448, + "end": 449, + "loc": { + "start": { + "line": 21, + "column": 40 + }, + "end": { + "line": 21, + "column": 41 + } + }, + "name": "r" + } + ], + "body": { + "type": "CallExpression", + "start": 453, + "end": 462, + "loc": { + "start": { + "line": 21, + "column": 45 + }, + "end": { + "line": 21, + "column": 54 + } + }, + "callee": { + "type": "MemberExpression", + "start": 453, + "end": 459, + "loc": { + "start": { + "line": 21, + "column": 45 + }, + "end": { + "line": 21, + "column": 51 + } + }, + "object": { + "type": "Identifier", + "start": 453, + "end": 454, + "loc": { + "start": { + "line": 21, + "column": 45 + }, + "end": { + "line": 21, + "column": 46 + } + }, + "name": "s" + }, + "property": { + "type": "Identifier", + "start": 455, + "end": 459, + "loc": { + "start": { + "line": 21, + "column": 47 + }, + "end": { + "line": 21, + "column": 51 + } + }, + "name": "push" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 460, + "end": 461, + "loc": { + "start": { + "line": 21, + "column": 52 + }, + "end": { + "line": 21, + "column": 53 + } + }, + "name": "r" + } + ] + } + } + ] + } + }, + { + "type": "ReturnStatement", + "start": 480, + "end": 488, + "loc": { + "start": { + "line": 22, + "column": 16 + }, + "end": { + "line": 22, + "column": 24 + } + }, + "argument": { + "type": "Identifier", + "start": 487, + "end": 488, + "loc": { + "start": { + "line": 22, + "column": 23 + }, + "end": { + "line": 22, + "column": 24 + } + }, + "name": "s" + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 515, + "end": 527, + "loc": { + "start": { + "line": 24, + "column": 12 + }, + "end": { + "line": 24, + "column": 24 + } + }, + "argument": { + "type": "Identifier", + "start": 522, + "end": 527, + "loc": { + "start": { + "line": 24, + "column": 19 + }, + "end": { + "line": 24, + "column": 24 + } + }, + "name": "state" + } + } + ], + "test": { + "type": "MemberExpression", + "start": 313, + "end": 334, + "loc": { + "start": { + "line": 18, + "column": 13 + }, + "end": { + "line": 18, + "column": 34 + } + }, + "object": { + "type": "Identifier", + "start": 313, + "end": 325, + "loc": { + "start": { + "line": 18, + "column": 13 + }, + "end": { + "line": 18, + "column": 25 + } + }, + "name": "PhotoActions" + }, + "property": { + "type": "Identifier", + "start": 326, + "end": 334, + "loc": { + "start": { + "line": 18, + "column": 26 + }, + "end": { + "line": 18, + "column": 34 + } + }, + "name": "PAGINATE" + }, + "computed": false + } + }, + { + "type": "SwitchCase", + "start": 537, + "end": 714, + "loc": { + "start": { + "line": 26, + "column": 8 + }, + "end": { + "line": 32, + "column": 21 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 573, + "end": 692, + "loc": { + "start": { + "line": 27, + "column": 12 + }, + "end": { + "line": 31, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 577, + "end": 592, + "loc": { + "start": { + "line": 27, + "column": 16 + }, + "end": { + "line": 27, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 577, + "end": 583, + "loc": { + "start": { + "line": 27, + "column": 16 + }, + "end": { + "line": 27, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 584, + "end": 592, + "loc": { + "start": { + "line": 27, + "column": 23 + }, + "end": { + "line": 27, + "column": 31 + } + }, + "name": "response" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 594, + "end": 692, + "loc": { + "start": { + "line": 27, + "column": 33 + }, + "end": { + "line": 31, + "column": 13 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 612, + "end": 678, + "loc": { + "start": { + "line": 28, + "column": 16 + }, + "end": { + "line": 30, + "column": 17 + } + }, + "argument": { + "type": "ArrayExpression", + "start": 619, + "end": 678, + "loc": { + "start": { + "line": 28, + "column": 23 + }, + "end": { + "line": 30, + "column": 17 + } + }, + "elements": [ + { + "type": "SpreadElement", + "start": 641, + "end": 659, + "loc": { + "start": { + "line": 29, + "column": 20 + }, + "end": { + "line": 29, + "column": 38 + } + }, + "argument": { + "type": "MemberExpression", + "start": 644, + "end": 659, + "loc": { + "start": { + "line": 29, + "column": 23 + }, + "end": { + "line": 29, + "column": 38 + } + }, + "object": { + "type": "Identifier", + "start": 644, + "end": 650, + "loc": { + "start": { + "line": 29, + "column": 23 + }, + "end": { + "line": 29, + "column": 29 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 651, + "end": 659, + "loc": { + "start": { + "line": 29, + "column": 30 + }, + "end": { + "line": 29, + "column": 38 + } + }, + "name": "response" + }, + "computed": false + } + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 705, + "end": 714, + "loc": { + "start": { + "line": 32, + "column": 12 + }, + "end": { + "line": 32, + "column": 21 + } + }, + "argument": { + "type": "ArrayExpression", + "start": 712, + "end": 714, + "loc": { + "start": { + "line": 32, + "column": 19 + }, + "end": { + "line": 32, + "column": 21 + } + }, + "elements": [] + } + } + ], + "test": { + "type": "MemberExpression", + "start": 542, + "end": 559, + "loc": { + "start": { + "line": 26, + "column": 13 + }, + "end": { + "line": 26, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 542, + "end": 554, + "loc": { + "start": { + "line": 26, + "column": 13 + }, + "end": { + "line": 26, + "column": 25 + } + }, + "name": "PhotoActions" + }, + "property": { + "type": "Identifier", + "start": 555, + "end": 559, + "loc": { + "start": { + "line": 26, + "column": 26 + }, + "end": { + "line": 26, + "column": 30 + } + }, + "name": "LOAD" + }, + "computed": false + } + }, + { + "type": "SwitchCase", + "start": 724, + "end": 1038, + "loc": { + "start": { + "line": 34, + "column": 8 + }, + "end": { + "line": 44, + "column": 13 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 760, + "end": 1038, + "loc": { + "start": { + "line": 35, + "column": 12 + }, + "end": { + "line": 44, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 764, + "end": 779, + "loc": { + "start": { + "line": 35, + "column": 16 + }, + "end": { + "line": 35, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 764, + "end": 770, + "loc": { + "start": { + "line": 35, + "column": 16 + }, + "end": { + "line": 35, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 771, + "end": 779, + "loc": { + "start": { + "line": 35, + "column": 23 + }, + "end": { + "line": 35, + "column": 31 + } + }, + "name": "response" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 781, + "end": 1038, + "loc": { + "start": { + "line": 35, + "column": 33 + }, + "end": { + "line": 44, + "column": 13 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 799, + "end": 1024, + "loc": { + "start": { + "line": 36, + "column": 16 + }, + "end": { + "line": 43, + "column": 18 + } + }, + "argument": { + "type": "CallExpression", + "start": 806, + "end": 1024, + "loc": { + "start": { + "line": 36, + "column": 23 + }, + "end": { + "line": 43, + "column": 18 + } + }, + "callee": { + "type": "MemberExpression", + "start": 806, + "end": 815, + "loc": { + "start": { + "line": 36, + "column": 23 + }, + "end": { + "line": 36, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 806, + "end": 811, + "loc": { + "start": { + "line": 36, + "column": 23 + }, + "end": { + "line": 36, + "column": 28 + } + }, + "name": "state" + }, + "property": { + "type": "Identifier", + "start": 812, + "end": 815, + "loc": { + "start": { + "line": 36, + "column": 29 + }, + "end": { + "line": 36, + "column": 32 + } + }, + "name": "map" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 816, + "end": 1023, + "loc": { + "start": { + "line": 36, + "column": 33 + }, + "end": { + "line": 43, + "column": 17 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 816, + "end": 820, + "loc": { + "start": { + "line": 36, + "column": 33 + }, + "end": { + "line": 36, + "column": 37 + } + }, + "name": "item" + } + ], + "body": { + "type": "BlockStatement", + "start": 824, + "end": 1023, + "loc": { + "start": { + "line": 36, + "column": 41 + }, + "end": { + "line": 43, + "column": 17 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 847, + "end": 972, + "loc": { + "start": { + "line": 38, + "column": 20 + }, + "end": { + "line": 40, + "column": 21 + } + }, + "test": { + "type": "BinaryExpression", + "start": 851, + "end": 875, + "loc": { + "start": { + "line": 38, + "column": 24 + }, + "end": { + "line": 38, + "column": 48 + } + }, + "left": { + "type": "MemberExpression", + "start": 851, + "end": 858, + "loc": { + "start": { + "line": 38, + "column": 24 + }, + "end": { + "line": 38, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 851, + "end": 855, + "loc": { + "start": { + "line": 38, + "column": 24 + }, + "end": { + "line": 38, + "column": 28 + } + }, + "name": "item" + }, + "property": { + "type": "Identifier", + "start": 856, + "end": 858, + "loc": { + "start": { + "line": 38, + "column": 29 + }, + "end": { + "line": 38, + "column": 31 + } + }, + "name": "id" + }, + "computed": false + }, + "operator": "==", + "right": { + "type": "MemberExpression", + "start": 862, + "end": 875, + "loc": { + "start": { + "line": 38, + "column": 35 + }, + "end": { + "line": 38, + "column": 48 + } + }, + "object": { + "type": "Identifier", + "start": 862, + "end": 868, + "loc": { + "start": { + "line": 38, + "column": 35 + }, + "end": { + "line": 38, + "column": 41 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 869, + "end": 875, + "loc": { + "start": { + "line": 38, + "column": 42 + }, + "end": { + "line": 38, + "column": 48 + } + }, + "name": "postID" + }, + "computed": false + } + }, + "consequent": { + "type": "BlockStatement", + "start": 877, + "end": 972, + "loc": { + "start": { + "line": 38, + "column": 50 + }, + "end": { + "line": 40, + "column": 21 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 903, + "end": 950, + "loc": { + "start": { + "line": 39, + "column": 24 + }, + "end": { + "line": 39, + "column": 71 + } + }, + "argument": { + "type": "CallExpression", + "start": 910, + "end": 950, + "loc": { + "start": { + "line": 39, + "column": 31 + }, + "end": { + "line": 39, + "column": 71 + } + }, + "callee": { + "type": "MemberExpression", + "start": 910, + "end": 923, + "loc": { + "start": { + "line": 39, + "column": 31 + }, + "end": { + "line": 39, + "column": 44 + } + }, + "object": { + "type": "Identifier", + "start": 910, + "end": 916, + "loc": { + "start": { + "line": 39, + "column": 31 + }, + "end": { + "line": 39, + "column": 37 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 917, + "end": 923, + "loc": { + "start": { + "line": 39, + "column": 38 + }, + "end": { + "line": 39, + "column": 44 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 924, + "end": 926, + "loc": { + "start": { + "line": 39, + "column": 45 + }, + "end": { + "line": 39, + "column": 47 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 928, + "end": 932, + "loc": { + "start": { + "line": 39, + "column": 49 + }, + "end": { + "line": 39, + "column": 53 + } + }, + "name": "item" + }, + { + "type": "ObjectExpression", + "start": 934, + "end": 949, + "loc": { + "start": { + "line": 39, + "column": 55 + }, + "end": { + "line": 39, + "column": 70 + } + }, + "properties": [ + { + "type": "Property", + "start": 936, + "end": 947, + "loc": { + "start": { + "line": 39, + "column": 57 + }, + "end": { + "line": 39, + "column": 68 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 936, + "end": 941, + "loc": { + "start": { + "line": 39, + "column": 57 + }, + "end": { + "line": 39, + "column": 62 + } + }, + "name": "liked" + }, + "value": { + "type": "Literal", + "start": 943, + "end": 947, + "loc": { + "start": { + "line": 39, + "column": 64 + }, + "end": { + "line": 39, + "column": 68 + } + }, + "value": true, + "rawValue": true, + "raw": "true" + }, + "kind": "init" + } + ] + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 994, + "end": 1005, + "loc": { + "start": { + "line": 42, + "column": 20 + }, + "end": { + "line": 42, + "column": 31 + } + }, + "argument": { + "type": "Identifier", + "start": 1001, + "end": 1005, + "loc": { + "start": { + "line": 42, + "column": 27 + }, + "end": { + "line": 42, + "column": 31 + } + }, + "name": "item" + } + } + ] + } + } + ] + } + } + ] + }, + "alternate": null + } + ], + "test": { + "type": "MemberExpression", + "start": 729, + "end": 746, + "loc": { + "start": { + "line": 34, + "column": 13 + }, + "end": { + "line": 34, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 729, + "end": 741, + "loc": { + "start": { + "line": 34, + "column": 13 + }, + "end": { + "line": 34, + "column": 25 + } + }, + "name": "PhotoActions" + }, + "property": { + "type": "Identifier", + "start": 742, + "end": 746, + "loc": { + "start": { + "line": 34, + "column": 26 + }, + "end": { + "line": 34, + "column": 30 + } + }, + "name": "LIKE" + }, + "computed": false + } + }, + { + "type": "SwitchCase", + "start": 1048, + "end": 1365, + "loc": { + "start": { + "line": 46, + "column": 8 + }, + "end": { + "line": 56, + "column": 13 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 1086, + "end": 1365, + "loc": { + "start": { + "line": 47, + "column": 12 + }, + "end": { + "line": 56, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 1090, + "end": 1105, + "loc": { + "start": { + "line": 47, + "column": 16 + }, + "end": { + "line": 47, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 1090, + "end": 1096, + "loc": { + "start": { + "line": 47, + "column": 16 + }, + "end": { + "line": 47, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1097, + "end": 1105, + "loc": { + "start": { + "line": 47, + "column": 23 + }, + "end": { + "line": 47, + "column": 31 + } + }, + "name": "response" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 1107, + "end": 1365, + "loc": { + "start": { + "line": 47, + "column": 33 + }, + "end": { + "line": 56, + "column": 13 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 1125, + "end": 1351, + "loc": { + "start": { + "line": 48, + "column": 16 + }, + "end": { + "line": 55, + "column": 18 + } + }, + "argument": { + "type": "CallExpression", + "start": 1132, + "end": 1351, + "loc": { + "start": { + "line": 48, + "column": 23 + }, + "end": { + "line": 55, + "column": 18 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1132, + "end": 1141, + "loc": { + "start": { + "line": 48, + "column": 23 + }, + "end": { + "line": 48, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 1132, + "end": 1137, + "loc": { + "start": { + "line": 48, + "column": 23 + }, + "end": { + "line": 48, + "column": 28 + } + }, + "name": "state" + }, + "property": { + "type": "Identifier", + "start": 1138, + "end": 1141, + "loc": { + "start": { + "line": 48, + "column": 29 + }, + "end": { + "line": 48, + "column": 32 + } + }, + "name": "map" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 1142, + "end": 1350, + "loc": { + "start": { + "line": 48, + "column": 33 + }, + "end": { + "line": 55, + "column": 17 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1142, + "end": 1146, + "loc": { + "start": { + "line": 48, + "column": 33 + }, + "end": { + "line": 48, + "column": 37 + } + }, + "name": "item" + } + ], + "body": { + "type": "BlockStatement", + "start": 1150, + "end": 1350, + "loc": { + "start": { + "line": 48, + "column": 41 + }, + "end": { + "line": 55, + "column": 17 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 1173, + "end": 1299, + "loc": { + "start": { + "line": 50, + "column": 20 + }, + "end": { + "line": 52, + "column": 21 + } + }, + "test": { + "type": "BinaryExpression", + "start": 1177, + "end": 1201, + "loc": { + "start": { + "line": 50, + "column": 24 + }, + "end": { + "line": 50, + "column": 48 + } + }, + "left": { + "type": "MemberExpression", + "start": 1177, + "end": 1184, + "loc": { + "start": { + "line": 50, + "column": 24 + }, + "end": { + "line": 50, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 1177, + "end": 1181, + "loc": { + "start": { + "line": 50, + "column": 24 + }, + "end": { + "line": 50, + "column": 28 + } + }, + "name": "item" + }, + "property": { + "type": "Identifier", + "start": 1182, + "end": 1184, + "loc": { + "start": { + "line": 50, + "column": 29 + }, + "end": { + "line": 50, + "column": 31 + } + }, + "name": "id" + }, + "computed": false + }, + "operator": "==", + "right": { + "type": "MemberExpression", + "start": 1188, + "end": 1201, + "loc": { + "start": { + "line": 50, + "column": 35 + }, + "end": { + "line": 50, + "column": 48 + } + }, + "object": { + "type": "Identifier", + "start": 1188, + "end": 1194, + "loc": { + "start": { + "line": 50, + "column": 35 + }, + "end": { + "line": 50, + "column": 41 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1195, + "end": 1201, + "loc": { + "start": { + "line": 50, + "column": 42 + }, + "end": { + "line": 50, + "column": 48 + } + }, + "name": "postID" + }, + "computed": false + } + }, + "consequent": { + "type": "BlockStatement", + "start": 1203, + "end": 1299, + "loc": { + "start": { + "line": 50, + "column": 50 + }, + "end": { + "line": 52, + "column": 21 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 1229, + "end": 1277, + "loc": { + "start": { + "line": 51, + "column": 24 + }, + "end": { + "line": 51, + "column": 72 + } + }, + "argument": { + "type": "CallExpression", + "start": 1236, + "end": 1277, + "loc": { + "start": { + "line": 51, + "column": 31 + }, + "end": { + "line": 51, + "column": 72 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1236, + "end": 1249, + "loc": { + "start": { + "line": 51, + "column": 31 + }, + "end": { + "line": 51, + "column": 44 + } + }, + "object": { + "type": "Identifier", + "start": 1236, + "end": 1242, + "loc": { + "start": { + "line": 51, + "column": 31 + }, + "end": { + "line": 51, + "column": 37 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 1243, + "end": 1249, + "loc": { + "start": { + "line": 51, + "column": 38 + }, + "end": { + "line": 51, + "column": 44 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 1250, + "end": 1252, + "loc": { + "start": { + "line": 51, + "column": 45 + }, + "end": { + "line": 51, + "column": 47 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 1254, + "end": 1258, + "loc": { + "start": { + "line": 51, + "column": 49 + }, + "end": { + "line": 51, + "column": 53 + } + }, + "name": "item" + }, + { + "type": "ObjectExpression", + "start": 1260, + "end": 1276, + "loc": { + "start": { + "line": 51, + "column": 55 + }, + "end": { + "line": 51, + "column": 71 + } + }, + "properties": [ + { + "type": "Property", + "start": 1262, + "end": 1274, + "loc": { + "start": { + "line": 51, + "column": 57 + }, + "end": { + "line": 51, + "column": 69 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1262, + "end": 1267, + "loc": { + "start": { + "line": 51, + "column": 57 + }, + "end": { + "line": 51, + "column": 62 + } + }, + "name": "liked" + }, + "value": { + "type": "Literal", + "start": 1269, + "end": 1274, + "loc": { + "start": { + "line": 51, + "column": 64 + }, + "end": { + "line": 51, + "column": 69 + } + }, + "value": false, + "rawValue": false, + "raw": "false" + }, + "kind": "init" + } + ] + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 1321, + "end": 1332, + "loc": { + "start": { + "line": 54, + "column": 20 + }, + "end": { + "line": 54, + "column": 31 + } + }, + "argument": { + "type": "Identifier", + "start": 1328, + "end": 1332, + "loc": { + "start": { + "line": 54, + "column": 27 + }, + "end": { + "line": 54, + "column": 31 + } + }, + "name": "item" + } + } + ] + } + } + ] + } + } + ] + }, + "alternate": null + } + ], + "test": { + "type": "MemberExpression", + "start": 1053, + "end": 1072, + "loc": { + "start": { + "line": 46, + "column": 13 + }, + "end": { + "line": 46, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 1053, + "end": 1065, + "loc": { + "start": { + "line": 46, + "column": 13 + }, + "end": { + "line": 46, + "column": 25 + } + }, + "name": "PhotoActions" + }, + "property": { + "type": "Identifier", + "start": 1066, + "end": 1072, + "loc": { + "start": { + "line": 46, + "column": 26 + }, + "end": { + "line": 46, + "column": 32 + } + }, + "name": "UNLIKE" + }, + "computed": false + } + } + ] + }, + { + "type": "ReturnStatement", + "start": 1379, + "end": 1391, + "loc": { + "start": { + "line": 61, + "column": 4 + }, + "end": { + "line": 61, + "column": 16 + } + }, + "argument": { + "type": "Identifier", + "start": 1386, + "end": 1391, + "loc": { + "start": { + "line": 61, + "column": 11 + }, + "end": { + "line": 61, + "column": 16 + } + }, + "name": "state" + } + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Photos\n * Redux Reducer for Photos action\n * Reference: http://redux.js.org/docs/basics/Reducers.html\n * @param state\n * @param action\n * @returns {*}\n * @constructor\n ", + "start": 55, + "end": 232, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + }, + "range": [ + 55, + 232 + ] + } + ], + "trailingComments": [] + } + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/reducers/Profile.js.json b/app/docs/ast/source/reducers/Profile.js.json new file mode 100644 index 0000000..b3db0c7 --- /dev/null +++ b/app/docs/ast/source/reducers/Profile.js.json @@ -0,0 +1,5679 @@ +{ + "type": "Program", + "start": 0, + "end": 1962, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 72, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 56, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 16 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 13, + "end": 38, + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 29 + } + }, + "imported": { + "type": "Identifier", + "start": 13, + "end": 20, + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 11 + } + }, + "name": "Profile" + }, + "local": { + "type": "Identifier", + "start": 24, + "end": 38, + "loc": { + "start": { + "line": 2, + "column": 15 + }, + "end": { + "line": 2, + "column": 29 + } + }, + "name": "ProfileActions" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 47, + "end": 56, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 16 + } + }, + "value": "actions", + "rawValue": "actions", + "raw": "'actions'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * initialState\n * @type {{id: string, fb_uid: string, first_name: string, last_name: string, email: string, follower: boolean, following: boolean, follower_count: number, following_count: number, created_at: string, modified_at: string}}\n ", + "start": 58, + "end": 304, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + }, + "range": [ + 58, + 304 + ] + } + ] + }, + { + "type": "VariableDeclaration", + "start": 305, + "end": 542, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 21, + "column": 1 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 311, + "end": 542, + "loc": { + "start": { + "line": 9, + "column": 6 + }, + "end": { + "line": 21, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 311, + "end": 323, + "loc": { + "start": { + "line": 9, + "column": 6 + }, + "end": { + "line": 9, + "column": 18 + } + }, + "name": "initialState", + "leadingComments": null + }, + "init": { + "type": "ObjectExpression", + "start": 326, + "end": 542, + "loc": { + "start": { + "line": 9, + "column": 21 + }, + "end": { + "line": 21, + "column": 1 + } + }, + "properties": [ + { + "type": "Property", + "start": 332, + "end": 338, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 10, + "column": 10 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 332, + "end": 334, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 10, + "column": 6 + } + }, + "name": "id" + }, + "value": { + "type": "Literal", + "start": 336, + "end": 338, + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 10 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 344, + "end": 354, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 14 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 344, + "end": 350, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 10 + } + }, + "name": "fb_uid" + }, + "value": { + "type": "Literal", + "start": 352, + "end": 354, + "loc": { + "start": { + "line": 11, + "column": 12 + }, + "end": { + "line": 11, + "column": 14 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 360, + "end": 374, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 18 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 360, + "end": 370, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 14 + } + }, + "name": "first_name" + }, + "value": { + "type": "Literal", + "start": 372, + "end": 374, + "loc": { + "start": { + "line": 12, + "column": 16 + }, + "end": { + "line": 12, + "column": 18 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 380, + "end": 393, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 17 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 380, + "end": 389, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 13 + } + }, + "name": "last_name" + }, + "value": { + "type": "Literal", + "start": 391, + "end": 393, + "loc": { + "start": { + "line": 13, + "column": 15 + }, + "end": { + "line": 13, + "column": 17 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 399, + "end": 408, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 13 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 399, + "end": 404, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 9 + } + }, + "name": "email" + }, + "value": { + "type": "Literal", + "start": 406, + "end": 408, + "loc": { + "start": { + "line": 14, + "column": 11 + }, + "end": { + "line": 14, + "column": 13 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 414, + "end": 429, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 19 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 414, + "end": 422, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 12 + } + }, + "name": "follower" + }, + "value": { + "type": "Literal", + "start": 424, + "end": 429, + "loc": { + "start": { + "line": 15, + "column": 14 + }, + "end": { + "line": 15, + "column": 19 + } + }, + "value": false, + "rawValue": false, + "raw": "false" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 435, + "end": 451, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 16, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 435, + "end": 444, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 16, + "column": 13 + } + }, + "name": "following" + }, + "value": { + "type": "Literal", + "start": 446, + "end": 451, + "loc": { + "start": { + "line": 16, + "column": 15 + }, + "end": { + "line": 16, + "column": 20 + } + }, + "value": false, + "rawValue": false, + "raw": "false" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 457, + "end": 474, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 21 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 457, + "end": 471, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 18 + } + }, + "name": "follower_count" + }, + "value": { + "type": "Literal", + "start": 473, + "end": 474, + "loc": { + "start": { + "line": 17, + "column": 20 + }, + "end": { + "line": 17, + "column": 21 + } + }, + "value": 0, + "rawValue": 0, + "raw": "0" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 480, + "end": 498, + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 22 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 480, + "end": 495, + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 19 + } + }, + "name": "following_count" + }, + "value": { + "type": "Literal", + "start": 497, + "end": 498, + "loc": { + "start": { + "line": 18, + "column": 21 + }, + "end": { + "line": 18, + "column": 22 + } + }, + "value": 0, + "rawValue": 0, + "raw": "0" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 504, + "end": 518, + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 18 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 504, + "end": 514, + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 14 + } + }, + "name": "created_at" + }, + "value": { + "type": "Literal", + "start": 516, + "end": 518, + "loc": { + "start": { + "line": 19, + "column": 16 + }, + "end": { + "line": 19, + "column": 18 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 524, + "end": 539, + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 19 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 524, + "end": 535, + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 15 + } + }, + "name": "modified_at" + }, + "value": { + "type": "Literal", + "start": 537, + "end": 539, + "loc": { + "start": { + "line": 20, + "column": 17 + }, + "end": { + "line": 20, + "column": 19 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + } + ], + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * initialState\n * @type {{id: string, fb_uid: string, first_name: string, last_name: string, email: string, follower: boolean, following: boolean, follower_count: number, following_count: number, created_at: string, modified_at: string}}\n ", + "start": 58, + "end": 304, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + }, + "range": [ + 58, + 304 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Profile\n * Redux Reducer for Profile action\n * Reference: http://redux.js.org/docs/basics/Reducers.html\n * @param state\n * @param action\n * @returns {*}\n * @constructor\n ", + "start": 544, + "end": 723, + "loc": { + "start": { + "line": 23, + "column": 0 + }, + "end": { + "line": 31, + "column": 3 + } + }, + "range": [ + 544, + 723 + ] + } + ] + }, + { + "type": "Identifier", + "start": 724, + "end": 1937, + "loc": { + "start": { + "line": 32, + "column": 0 + }, + "end": { + "line": 69, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 733, + "end": 740, + "loc": { + "start": { + "line": 32, + "column": 9 + }, + "end": { + "line": 32, + "column": 16 + } + }, + "name": "Profile", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "AssignmentPattern", + "start": 741, + "end": 761, + "loc": { + "start": { + "line": 32, + "column": 17 + }, + "end": { + "line": 32, + "column": 37 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 741, + "end": 746, + "loc": { + "start": { + "line": 32, + "column": 17 + }, + "end": { + "line": 32, + "column": 22 + } + }, + "name": "state" + }, + "right": { + "type": "Identifier", + "start": 749, + "end": 761, + "loc": { + "start": { + "line": 32, + "column": 25 + }, + "end": { + "line": 32, + "column": 37 + } + }, + "name": "initialState" + } + }, + { + "type": "Identifier", + "start": 763, + "end": 769, + "loc": { + "start": { + "line": 32, + "column": 39 + }, + "end": { + "line": 32, + "column": 45 + } + }, + "name": "action" + } + ], + "body": { + "type": "BlockStatement", + "start": 771, + "end": 1937, + "loc": { + "start": { + "line": 32, + "column": 47 + }, + "end": { + "line": 69, + "column": 1 + } + }, + "body": [ + { + "type": "SwitchStatement", + "start": 778, + "end": 1916, + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 65, + "column": 5 + } + }, + "discriminant": { + "type": "MemberExpression", + "start": 786, + "end": 797, + "loc": { + "start": { + "line": 34, + "column": 12 + }, + "end": { + "line": 34, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 786, + "end": 792, + "loc": { + "start": { + "line": 34, + "column": 12 + }, + "end": { + "line": 34, + "column": 18 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 793, + "end": 797, + "loc": { + "start": { + "line": 34, + "column": 19 + }, + "end": { + "line": 34, + "column": 23 + } + }, + "name": "type" + }, + "computed": false + }, + "cases": [ + { + "type": "SwitchCase", + "start": 810, + "end": 1623, + "loc": { + "start": { + "line": 36, + "column": 8 + }, + "end": { + "line": 53, + "column": 31 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 848, + "end": 1590, + "loc": { + "start": { + "line": 37, + "column": 12 + }, + "end": { + "line": 51, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 852, + "end": 867, + "loc": { + "start": { + "line": 37, + "column": 16 + }, + "end": { + "line": 37, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 852, + "end": 858, + "loc": { + "start": { + "line": 37, + "column": 16 + }, + "end": { + "line": 37, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 859, + "end": 867, + "loc": { + "start": { + "line": 37, + "column": 23 + }, + "end": { + "line": 37, + "column": 31 + } + }, + "name": "response" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 869, + "end": 1590, + "loc": { + "start": { + "line": 37, + "column": 33 + }, + "end": { + "line": 51, + "column": 13 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 887, + "end": 1576, + "loc": { + "start": { + "line": 38, + "column": 16 + }, + "end": { + "line": 50, + "column": 18 + } + }, + "argument": { + "type": "CallExpression", + "start": 894, + "end": 1576, + "loc": { + "start": { + "line": 38, + "column": 23 + }, + "end": { + "line": 50, + "column": 18 + } + }, + "callee": { + "type": "MemberExpression", + "start": 894, + "end": 907, + "loc": { + "start": { + "line": 38, + "column": 23 + }, + "end": { + "line": 38, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 894, + "end": 900, + "loc": { + "start": { + "line": 38, + "column": 23 + }, + "end": { + "line": 38, + "column": 29 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 901, + "end": 907, + "loc": { + "start": { + "line": 38, + "column": 30 + }, + "end": { + "line": 38, + "column": 36 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 908, + "end": 910, + "loc": { + "start": { + "line": 38, + "column": 37 + }, + "end": { + "line": 38, + "column": 39 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 912, + "end": 917, + "loc": { + "start": { + "line": 38, + "column": 41 + }, + "end": { + "line": 38, + "column": 46 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 919, + "end": 1575, + "loc": { + "start": { + "line": 38, + "column": 48 + }, + "end": { + "line": 50, + "column": 17 + } + }, + "properties": [ + { + "type": "Property", + "start": 941, + "end": 963, + "loc": { + "start": { + "line": 39, + "column": 20 + }, + "end": { + "line": 39, + "column": 42 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 941, + "end": 943, + "loc": { + "start": { + "line": 39, + "column": 20 + }, + "end": { + "line": 39, + "column": 22 + } + }, + "name": "id" + }, + "value": { + "type": "MemberExpression", + "start": 945, + "end": 963, + "loc": { + "start": { + "line": 39, + "column": 24 + }, + "end": { + "line": 39, + "column": 42 + } + }, + "object": { + "type": "MemberExpression", + "start": 945, + "end": 960, + "loc": { + "start": { + "line": 39, + "column": 24 + }, + "end": { + "line": 39, + "column": 39 + } + }, + "object": { + "type": "Identifier", + "start": 945, + "end": 951, + "loc": { + "start": { + "line": 39, + "column": 24 + }, + "end": { + "line": 39, + "column": 30 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 952, + "end": 960, + "loc": { + "start": { + "line": 39, + "column": 31 + }, + "end": { + "line": 39, + "column": 39 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 961, + "end": 963, + "loc": { + "start": { + "line": 39, + "column": 40 + }, + "end": { + "line": 39, + "column": 42 + } + }, + "name": "id" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 985, + "end": 1014, + "loc": { + "start": { + "line": 40, + "column": 20 + }, + "end": { + "line": 40, + "column": 49 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 985, + "end": 991, + "loc": { + "start": { + "line": 40, + "column": 20 + }, + "end": { + "line": 40, + "column": 26 + } + }, + "name": "fb_uid" + }, + "value": { + "type": "MemberExpression", + "start": 993, + "end": 1014, + "loc": { + "start": { + "line": 40, + "column": 28 + }, + "end": { + "line": 40, + "column": 49 + } + }, + "object": { + "type": "MemberExpression", + "start": 993, + "end": 1008, + "loc": { + "start": { + "line": 40, + "column": 28 + }, + "end": { + "line": 40, + "column": 43 + } + }, + "object": { + "type": "Identifier", + "start": 993, + "end": 999, + "loc": { + "start": { + "line": 40, + "column": 28 + }, + "end": { + "line": 40, + "column": 34 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1000, + "end": 1008, + "loc": { + "start": { + "line": 40, + "column": 35 + }, + "end": { + "line": 40, + "column": 43 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1009, + "end": 1014, + "loc": { + "start": { + "line": 40, + "column": 44 + }, + "end": { + "line": 40, + "column": 49 + } + }, + "name": "fb_id" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1036, + "end": 1074, + "loc": { + "start": { + "line": 41, + "column": 20 + }, + "end": { + "line": 41, + "column": 58 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1036, + "end": 1046, + "loc": { + "start": { + "line": 41, + "column": 20 + }, + "end": { + "line": 41, + "column": 30 + } + }, + "name": "first_name" + }, + "value": { + "type": "MemberExpression", + "start": 1048, + "end": 1074, + "loc": { + "start": { + "line": 41, + "column": 32 + }, + "end": { + "line": 41, + "column": 58 + } + }, + "object": { + "type": "MemberExpression", + "start": 1048, + "end": 1063, + "loc": { + "start": { + "line": 41, + "column": 32 + }, + "end": { + "line": 41, + "column": 47 + } + }, + "object": { + "type": "Identifier", + "start": 1048, + "end": 1054, + "loc": { + "start": { + "line": 41, + "column": 32 + }, + "end": { + "line": 41, + "column": 38 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1055, + "end": 1063, + "loc": { + "start": { + "line": 41, + "column": 39 + }, + "end": { + "line": 41, + "column": 47 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1064, + "end": 1074, + "loc": { + "start": { + "line": 41, + "column": 48 + }, + "end": { + "line": 41, + "column": 58 + } + }, + "name": "first_name" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1096, + "end": 1132, + "loc": { + "start": { + "line": 42, + "column": 20 + }, + "end": { + "line": 42, + "column": 56 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1096, + "end": 1105, + "loc": { + "start": { + "line": 42, + "column": 20 + }, + "end": { + "line": 42, + "column": 29 + } + }, + "name": "last_name" + }, + "value": { + "type": "MemberExpression", + "start": 1107, + "end": 1132, + "loc": { + "start": { + "line": 42, + "column": 31 + }, + "end": { + "line": 42, + "column": 56 + } + }, + "object": { + "type": "MemberExpression", + "start": 1107, + "end": 1122, + "loc": { + "start": { + "line": 42, + "column": 31 + }, + "end": { + "line": 42, + "column": 46 + } + }, + "object": { + "type": "Identifier", + "start": 1107, + "end": 1113, + "loc": { + "start": { + "line": 42, + "column": 31 + }, + "end": { + "line": 42, + "column": 37 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1114, + "end": 1122, + "loc": { + "start": { + "line": 42, + "column": 38 + }, + "end": { + "line": 42, + "column": 46 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1123, + "end": 1132, + "loc": { + "start": { + "line": 42, + "column": 47 + }, + "end": { + "line": 42, + "column": 56 + } + }, + "name": "last_name" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1154, + "end": 1182, + "loc": { + "start": { + "line": 43, + "column": 20 + }, + "end": { + "line": 43, + "column": 48 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1154, + "end": 1159, + "loc": { + "start": { + "line": 43, + "column": 20 + }, + "end": { + "line": 43, + "column": 25 + } + }, + "name": "email" + }, + "value": { + "type": "MemberExpression", + "start": 1161, + "end": 1182, + "loc": { + "start": { + "line": 43, + "column": 27 + }, + "end": { + "line": 43, + "column": 48 + } + }, + "object": { + "type": "MemberExpression", + "start": 1161, + "end": 1176, + "loc": { + "start": { + "line": 43, + "column": 27 + }, + "end": { + "line": 43, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 1161, + "end": 1167, + "loc": { + "start": { + "line": 43, + "column": 27 + }, + "end": { + "line": 43, + "column": 33 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1168, + "end": 1176, + "loc": { + "start": { + "line": 43, + "column": 34 + }, + "end": { + "line": 43, + "column": 42 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1177, + "end": 1182, + "loc": { + "start": { + "line": 43, + "column": 43 + }, + "end": { + "line": 43, + "column": 48 + } + }, + "name": "email" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1204, + "end": 1238, + "loc": { + "start": { + "line": 44, + "column": 20 + }, + "end": { + "line": 44, + "column": 54 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1204, + "end": 1212, + "loc": { + "start": { + "line": 44, + "column": 20 + }, + "end": { + "line": 44, + "column": 28 + } + }, + "name": "follower" + }, + "value": { + "type": "MemberExpression", + "start": 1214, + "end": 1238, + "loc": { + "start": { + "line": 44, + "column": 30 + }, + "end": { + "line": 44, + "column": 54 + } + }, + "object": { + "type": "MemberExpression", + "start": 1214, + "end": 1229, + "loc": { + "start": { + "line": 44, + "column": 30 + }, + "end": { + "line": 44, + "column": 45 + } + }, + "object": { + "type": "Identifier", + "start": 1214, + "end": 1220, + "loc": { + "start": { + "line": 44, + "column": 30 + }, + "end": { + "line": 44, + "column": 36 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1221, + "end": 1229, + "loc": { + "start": { + "line": 44, + "column": 37 + }, + "end": { + "line": 44, + "column": 45 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1230, + "end": 1238, + "loc": { + "start": { + "line": 44, + "column": 46 + }, + "end": { + "line": 44, + "column": 54 + } + }, + "name": "follower" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1260, + "end": 1296, + "loc": { + "start": { + "line": 45, + "column": 20 + }, + "end": { + "line": 45, + "column": 56 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1260, + "end": 1269, + "loc": { + "start": { + "line": 45, + "column": 20 + }, + "end": { + "line": 45, + "column": 29 + } + }, + "name": "following" + }, + "value": { + "type": "MemberExpression", + "start": 1271, + "end": 1296, + "loc": { + "start": { + "line": 45, + "column": 31 + }, + "end": { + "line": 45, + "column": 56 + } + }, + "object": { + "type": "MemberExpression", + "start": 1271, + "end": 1286, + "loc": { + "start": { + "line": 45, + "column": 31 + }, + "end": { + "line": 45, + "column": 46 + } + }, + "object": { + "type": "Identifier", + "start": 1271, + "end": 1277, + "loc": { + "start": { + "line": 45, + "column": 31 + }, + "end": { + "line": 45, + "column": 37 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1278, + "end": 1286, + "loc": { + "start": { + "line": 45, + "column": 38 + }, + "end": { + "line": 45, + "column": 46 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1287, + "end": 1296, + "loc": { + "start": { + "line": 45, + "column": 47 + }, + "end": { + "line": 45, + "column": 56 + } + }, + "name": "following" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1318, + "end": 1364, + "loc": { + "start": { + "line": 46, + "column": 20 + }, + "end": { + "line": 46, + "column": 66 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1318, + "end": 1332, + "loc": { + "start": { + "line": 46, + "column": 20 + }, + "end": { + "line": 46, + "column": 34 + } + }, + "name": "follower_count" + }, + "value": { + "type": "MemberExpression", + "start": 1334, + "end": 1364, + "loc": { + "start": { + "line": 46, + "column": 36 + }, + "end": { + "line": 46, + "column": 66 + } + }, + "object": { + "type": "MemberExpression", + "start": 1334, + "end": 1349, + "loc": { + "start": { + "line": 46, + "column": 36 + }, + "end": { + "line": 46, + "column": 51 + } + }, + "object": { + "type": "Identifier", + "start": 1334, + "end": 1340, + "loc": { + "start": { + "line": 46, + "column": 36 + }, + "end": { + "line": 46, + "column": 42 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1341, + "end": 1349, + "loc": { + "start": { + "line": 46, + "column": 43 + }, + "end": { + "line": 46, + "column": 51 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1350, + "end": 1364, + "loc": { + "start": { + "line": 46, + "column": 52 + }, + "end": { + "line": 46, + "column": 66 + } + }, + "name": "follower_count" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1386, + "end": 1434, + "loc": { + "start": { + "line": 47, + "column": 20 + }, + "end": { + "line": 47, + "column": 68 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1386, + "end": 1401, + "loc": { + "start": { + "line": 47, + "column": 20 + }, + "end": { + "line": 47, + "column": 35 + } + }, + "name": "following_count" + }, + "value": { + "type": "MemberExpression", + "start": 1403, + "end": 1434, + "loc": { + "start": { + "line": 47, + "column": 37 + }, + "end": { + "line": 47, + "column": 68 + } + }, + "object": { + "type": "MemberExpression", + "start": 1403, + "end": 1418, + "loc": { + "start": { + "line": 47, + "column": 37 + }, + "end": { + "line": 47, + "column": 52 + } + }, + "object": { + "type": "Identifier", + "start": 1403, + "end": 1409, + "loc": { + "start": { + "line": 47, + "column": 37 + }, + "end": { + "line": 47, + "column": 43 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1410, + "end": 1418, + "loc": { + "start": { + "line": 47, + "column": 44 + }, + "end": { + "line": 47, + "column": 52 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1419, + "end": 1434, + "loc": { + "start": { + "line": 47, + "column": 53 + }, + "end": { + "line": 47, + "column": 68 + } + }, + "name": "following_count" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1456, + "end": 1494, + "loc": { + "start": { + "line": 48, + "column": 20 + }, + "end": { + "line": 48, + "column": 58 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1456, + "end": 1466, + "loc": { + "start": { + "line": 48, + "column": 20 + }, + "end": { + "line": 48, + "column": 30 + } + }, + "name": "created_at" + }, + "value": { + "type": "MemberExpression", + "start": 1468, + "end": 1494, + "loc": { + "start": { + "line": 48, + "column": 32 + }, + "end": { + "line": 48, + "column": 58 + } + }, + "object": { + "type": "MemberExpression", + "start": 1468, + "end": 1483, + "loc": { + "start": { + "line": 48, + "column": 32 + }, + "end": { + "line": 48, + "column": 47 + } + }, + "object": { + "type": "Identifier", + "start": 1468, + "end": 1474, + "loc": { + "start": { + "line": 48, + "column": 32 + }, + "end": { + "line": 48, + "column": 38 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1475, + "end": 1483, + "loc": { + "start": { + "line": 48, + "column": 39 + }, + "end": { + "line": 48, + "column": 47 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1484, + "end": 1494, + "loc": { + "start": { + "line": 48, + "column": 48 + }, + "end": { + "line": 48, + "column": 58 + } + }, + "name": "created_at" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1516, + "end": 1556, + "loc": { + "start": { + "line": 49, + "column": 20 + }, + "end": { + "line": 49, + "column": 60 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1516, + "end": 1527, + "loc": { + "start": { + "line": 49, + "column": 20 + }, + "end": { + "line": 49, + "column": 31 + } + }, + "name": "modified_at" + }, + "value": { + "type": "MemberExpression", + "start": 1529, + "end": 1556, + "loc": { + "start": { + "line": 49, + "column": 33 + }, + "end": { + "line": 49, + "column": 60 + } + }, + "object": { + "type": "MemberExpression", + "start": 1529, + "end": 1544, + "loc": { + "start": { + "line": 49, + "column": 33 + }, + "end": { + "line": 49, + "column": 48 + } + }, + "object": { + "type": "Identifier", + "start": 1529, + "end": 1535, + "loc": { + "start": { + "line": 49, + "column": 33 + }, + "end": { + "line": 49, + "column": 39 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1536, + "end": 1544, + "loc": { + "start": { + "line": 49, + "column": 40 + }, + "end": { + "line": 49, + "column": 48 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1545, + "end": 1556, + "loc": { + "start": { + "line": 49, + "column": 49 + }, + "end": { + "line": 49, + "column": 60 + } + }, + "name": "modified_at" + }, + "computed": false + }, + "kind": "init" + } + ] + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 1604, + "end": 1623, + "loc": { + "start": { + "line": 53, + "column": 12 + }, + "end": { + "line": 53, + "column": 31 + } + }, + "argument": { + "type": "Identifier", + "start": 1611, + "end": 1623, + "loc": { + "start": { + "line": 53, + "column": 19 + }, + "end": { + "line": 53, + "column": 31 + } + }, + "name": "initialState" + } + } + ], + "test": { + "type": "MemberExpression", + "start": 815, + "end": 834, + "loc": { + "start": { + "line": 36, + "column": 13 + }, + "end": { + "line": 36, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 815, + "end": 829, + "loc": { + "start": { + "line": 36, + "column": 13 + }, + "end": { + "line": 36, + "column": 27 + } + }, + "name": "ProfileActions" + }, + "property": { + "type": "Identifier", + "start": 830, + "end": 834, + "loc": { + "start": { + "line": 36, + "column": 28 + }, + "end": { + "line": 36, + "column": 32 + } + }, + "name": "LOAD" + }, + "computed": false + } + }, + { + "type": "SwitchCase", + "start": 1633, + "end": 1804, + "loc": { + "start": { + "line": 55, + "column": 8 + }, + "end": { + "line": 60, + "column": 24 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 1673, + "end": 1778, + "loc": { + "start": { + "line": 56, + "column": 12 + }, + "end": { + "line": 58, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 1677, + "end": 1692, + "loc": { + "start": { + "line": 56, + "column": 16 + }, + "end": { + "line": 56, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 1677, + "end": 1683, + "loc": { + "start": { + "line": 56, + "column": 16 + }, + "end": { + "line": 56, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1684, + "end": 1692, + "loc": { + "start": { + "line": 56, + "column": 23 + }, + "end": { + "line": 56, + "column": 31 + } + }, + "name": "response" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 1694, + "end": 1778, + "loc": { + "start": { + "line": 56, + "column": 33 + }, + "end": { + "line": 58, + "column": 13 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 1712, + "end": 1764, + "loc": { + "start": { + "line": 57, + "column": 16 + }, + "end": { + "line": 57, + "column": 68 + } + }, + "argument": { + "type": "CallExpression", + "start": 1719, + "end": 1764, + "loc": { + "start": { + "line": 57, + "column": 23 + }, + "end": { + "line": 57, + "column": 68 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1719, + "end": 1732, + "loc": { + "start": { + "line": 57, + "column": 23 + }, + "end": { + "line": 57, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 1719, + "end": 1725, + "loc": { + "start": { + "line": 57, + "column": 23 + }, + "end": { + "line": 57, + "column": 29 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 1726, + "end": 1732, + "loc": { + "start": { + "line": 57, + "column": 30 + }, + "end": { + "line": 57, + "column": 36 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 1733, + "end": 1735, + "loc": { + "start": { + "line": 57, + "column": 37 + }, + "end": { + "line": 57, + "column": 39 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 1737, + "end": 1742, + "loc": { + "start": { + "line": 57, + "column": 41 + }, + "end": { + "line": 57, + "column": 46 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 1744, + "end": 1763, + "loc": { + "start": { + "line": 57, + "column": 48 + }, + "end": { + "line": 57, + "column": 67 + } + }, + "properties": [ + { + "type": "Property", + "start": 1746, + "end": 1761, + "loc": { + "start": { + "line": 57, + "column": 50 + }, + "end": { + "line": 57, + "column": 65 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1746, + "end": 1755, + "loc": { + "start": { + "line": 57, + "column": 50 + }, + "end": { + "line": 57, + "column": 59 + } + }, + "name": "following" + }, + "value": { + "type": "Literal", + "start": 1757, + "end": 1761, + "loc": { + "start": { + "line": 57, + "column": 61 + }, + "end": { + "line": 57, + "column": 65 + } + }, + "value": true, + "rawValue": true, + "raw": "true" + }, + "kind": "init" + } + ] + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 1792, + "end": 1804, + "loc": { + "start": { + "line": 60, + "column": 12 + }, + "end": { + "line": 60, + "column": 24 + } + }, + "argument": { + "type": "Identifier", + "start": 1799, + "end": 1804, + "loc": { + "start": { + "line": 60, + "column": 19 + }, + "end": { + "line": 60, + "column": 24 + } + }, + "name": "state" + } + } + ], + "test": { + "type": "MemberExpression", + "start": 1638, + "end": 1659, + "loc": { + "start": { + "line": 55, + "column": 13 + }, + "end": { + "line": 55, + "column": 34 + } + }, + "object": { + "type": "Identifier", + "start": 1638, + "end": 1652, + "loc": { + "start": { + "line": 55, + "column": 13 + }, + "end": { + "line": 55, + "column": 27 + } + }, + "name": "ProfileActions" + }, + "property": { + "type": "Identifier", + "start": 1653, + "end": 1659, + "loc": { + "start": { + "line": 55, + "column": 28 + }, + "end": { + "line": 55, + "column": 34 + } + }, + "name": "FOLLOW" + }, + "computed": false + } + }, + { + "type": "SwitchCase", + "start": 1814, + "end": 1909, + "loc": { + "start": { + "line": 62, + "column": 8 + }, + "end": { + "line": 63, + "column": 65 + } + }, + "consequent": [ + { + "type": "ReturnStatement", + "start": 1856, + "end": 1909, + "loc": { + "start": { + "line": 63, + "column": 12 + }, + "end": { + "line": 63, + "column": 65 + } + }, + "argument": { + "type": "CallExpression", + "start": 1863, + "end": 1909, + "loc": { + "start": { + "line": 63, + "column": 19 + }, + "end": { + "line": 63, + "column": 65 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1863, + "end": 1876, + "loc": { + "start": { + "line": 63, + "column": 19 + }, + "end": { + "line": 63, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 1863, + "end": 1869, + "loc": { + "start": { + "line": 63, + "column": 19 + }, + "end": { + "line": 63, + "column": 25 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 1870, + "end": 1876, + "loc": { + "start": { + "line": 63, + "column": 26 + }, + "end": { + "line": 63, + "column": 32 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 1877, + "end": 1879, + "loc": { + "start": { + "line": 63, + "column": 33 + }, + "end": { + "line": 63, + "column": 35 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 1881, + "end": 1886, + "loc": { + "start": { + "line": 63, + "column": 37 + }, + "end": { + "line": 63, + "column": 42 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 1888, + "end": 1908, + "loc": { + "start": { + "line": 63, + "column": 44 + }, + "end": { + "line": 63, + "column": 64 + } + }, + "properties": [ + { + "type": "Property", + "start": 1890, + "end": 1906, + "loc": { + "start": { + "line": 63, + "column": 46 + }, + "end": { + "line": 63, + "column": 62 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1890, + "end": 1899, + "loc": { + "start": { + "line": 63, + "column": 46 + }, + "end": { + "line": 63, + "column": 55 + } + }, + "name": "following" + }, + "value": { + "type": "Literal", + "start": 1901, + "end": 1906, + "loc": { + "start": { + "line": 63, + "column": 57 + }, + "end": { + "line": 63, + "column": 62 + } + }, + "value": false, + "rawValue": false, + "raw": "false" + }, + "kind": "init" + } + ] + } + ] + } + } + ], + "test": { + "type": "MemberExpression", + "start": 1819, + "end": 1842, + "loc": { + "start": { + "line": 62, + "column": 13 + }, + "end": { + "line": 62, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 1819, + "end": 1833, + "loc": { + "start": { + "line": 62, + "column": 13 + }, + "end": { + "line": 62, + "column": 27 + } + }, + "name": "ProfileActions" + }, + "property": { + "type": "Identifier", + "start": 1834, + "end": 1842, + "loc": { + "start": { + "line": 62, + "column": 28 + }, + "end": { + "line": 62, + "column": 36 + } + }, + "name": "UNFOLLOW" + }, + "computed": false + } + } + ] + }, + { + "type": "ReturnStatement", + "start": 1922, + "end": 1934, + "loc": { + "start": { + "line": 67, + "column": 4 + }, + "end": { + "line": 67, + "column": 16 + } + }, + "argument": { + "type": "Identifier", + "start": 1929, + "end": 1934, + "loc": { + "start": { + "line": 67, + "column": 11 + }, + "end": { + "line": 67, + "column": 16 + } + }, + "name": "state" + } + } + ] + }, + "leadingComments": [], + "name": "_", + "trailingComments": [] + }, + { + "type": "Identifier", + "start": 1939, + "end": 1961, + "loc": { + "start": { + "line": 71, + "column": 0 + }, + "end": { + "line": 71, + "column": 22 + } + }, + "declaration": { + "type": "Identifier", + "start": 1954, + "end": 1961, + "loc": { + "start": { + "line": 71, + "column": 15 + }, + "end": { + "line": 71, + "column": 22 + } + }, + "name": "Profile" + }, + "name": "_", + "leadingComments": [], + "trailingComments": [] + }, + { + "type": "ExportDefaultDeclaration", + "start": 1939, + "end": 1961, + "loc": { + "start": { + "line": 71, + "column": 0 + }, + "end": { + "line": 71, + "column": 22 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 724, + "end": 1937, + "loc": { + "start": { + "line": 32, + "column": 0 + }, + "end": { + "line": 69, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 733, + "end": 740, + "loc": { + "start": { + "line": 32, + "column": 9 + }, + "end": { + "line": 32, + "column": 16 + } + }, + "name": "Profile", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "AssignmentPattern", + "start": 741, + "end": 761, + "loc": { + "start": { + "line": 32, + "column": 17 + }, + "end": { + "line": 32, + "column": 37 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 741, + "end": 746, + "loc": { + "start": { + "line": 32, + "column": 17 + }, + "end": { + "line": 32, + "column": 22 + } + }, + "name": "state" + }, + "right": { + "type": "Identifier", + "start": 749, + "end": 761, + "loc": { + "start": { + "line": 32, + "column": 25 + }, + "end": { + "line": 32, + "column": 37 + } + }, + "name": "initialState" + } + }, + { + "type": "Identifier", + "start": 763, + "end": 769, + "loc": { + "start": { + "line": 32, + "column": 39 + }, + "end": { + "line": 32, + "column": 45 + } + }, + "name": "action" + } + ], + "body": { + "type": "BlockStatement", + "start": 771, + "end": 1937, + "loc": { + "start": { + "line": 32, + "column": 47 + }, + "end": { + "line": 69, + "column": 1 + } + }, + "body": [ + { + "type": "SwitchStatement", + "start": 778, + "end": 1916, + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 65, + "column": 5 + } + }, + "discriminant": { + "type": "MemberExpression", + "start": 786, + "end": 797, + "loc": { + "start": { + "line": 34, + "column": 12 + }, + "end": { + "line": 34, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 786, + "end": 792, + "loc": { + "start": { + "line": 34, + "column": 12 + }, + "end": { + "line": 34, + "column": 18 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 793, + "end": 797, + "loc": { + "start": { + "line": 34, + "column": 19 + }, + "end": { + "line": 34, + "column": 23 + } + }, + "name": "type" + }, + "computed": false + }, + "cases": [ + { + "type": "SwitchCase", + "start": 810, + "end": 1623, + "loc": { + "start": { + "line": 36, + "column": 8 + }, + "end": { + "line": 53, + "column": 31 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 848, + "end": 1590, + "loc": { + "start": { + "line": 37, + "column": 12 + }, + "end": { + "line": 51, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 852, + "end": 867, + "loc": { + "start": { + "line": 37, + "column": 16 + }, + "end": { + "line": 37, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 852, + "end": 858, + "loc": { + "start": { + "line": 37, + "column": 16 + }, + "end": { + "line": 37, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 859, + "end": 867, + "loc": { + "start": { + "line": 37, + "column": 23 + }, + "end": { + "line": 37, + "column": 31 + } + }, + "name": "response" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 869, + "end": 1590, + "loc": { + "start": { + "line": 37, + "column": 33 + }, + "end": { + "line": 51, + "column": 13 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 887, + "end": 1576, + "loc": { + "start": { + "line": 38, + "column": 16 + }, + "end": { + "line": 50, + "column": 18 + } + }, + "argument": { + "type": "CallExpression", + "start": 894, + "end": 1576, + "loc": { + "start": { + "line": 38, + "column": 23 + }, + "end": { + "line": 50, + "column": 18 + } + }, + "callee": { + "type": "MemberExpression", + "start": 894, + "end": 907, + "loc": { + "start": { + "line": 38, + "column": 23 + }, + "end": { + "line": 38, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 894, + "end": 900, + "loc": { + "start": { + "line": 38, + "column": 23 + }, + "end": { + "line": 38, + "column": 29 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 901, + "end": 907, + "loc": { + "start": { + "line": 38, + "column": 30 + }, + "end": { + "line": 38, + "column": 36 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 908, + "end": 910, + "loc": { + "start": { + "line": 38, + "column": 37 + }, + "end": { + "line": 38, + "column": 39 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 912, + "end": 917, + "loc": { + "start": { + "line": 38, + "column": 41 + }, + "end": { + "line": 38, + "column": 46 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 919, + "end": 1575, + "loc": { + "start": { + "line": 38, + "column": 48 + }, + "end": { + "line": 50, + "column": 17 + } + }, + "properties": [ + { + "type": "Property", + "start": 941, + "end": 963, + "loc": { + "start": { + "line": 39, + "column": 20 + }, + "end": { + "line": 39, + "column": 42 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 941, + "end": 943, + "loc": { + "start": { + "line": 39, + "column": 20 + }, + "end": { + "line": 39, + "column": 22 + } + }, + "name": "id" + }, + "value": { + "type": "MemberExpression", + "start": 945, + "end": 963, + "loc": { + "start": { + "line": 39, + "column": 24 + }, + "end": { + "line": 39, + "column": 42 + } + }, + "object": { + "type": "MemberExpression", + "start": 945, + "end": 960, + "loc": { + "start": { + "line": 39, + "column": 24 + }, + "end": { + "line": 39, + "column": 39 + } + }, + "object": { + "type": "Identifier", + "start": 945, + "end": 951, + "loc": { + "start": { + "line": 39, + "column": 24 + }, + "end": { + "line": 39, + "column": 30 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 952, + "end": 960, + "loc": { + "start": { + "line": 39, + "column": 31 + }, + "end": { + "line": 39, + "column": 39 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 961, + "end": 963, + "loc": { + "start": { + "line": 39, + "column": 40 + }, + "end": { + "line": 39, + "column": 42 + } + }, + "name": "id" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 985, + "end": 1014, + "loc": { + "start": { + "line": 40, + "column": 20 + }, + "end": { + "line": 40, + "column": 49 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 985, + "end": 991, + "loc": { + "start": { + "line": 40, + "column": 20 + }, + "end": { + "line": 40, + "column": 26 + } + }, + "name": "fb_uid" + }, + "value": { + "type": "MemberExpression", + "start": 993, + "end": 1014, + "loc": { + "start": { + "line": 40, + "column": 28 + }, + "end": { + "line": 40, + "column": 49 + } + }, + "object": { + "type": "MemberExpression", + "start": 993, + "end": 1008, + "loc": { + "start": { + "line": 40, + "column": 28 + }, + "end": { + "line": 40, + "column": 43 + } + }, + "object": { + "type": "Identifier", + "start": 993, + "end": 999, + "loc": { + "start": { + "line": 40, + "column": 28 + }, + "end": { + "line": 40, + "column": 34 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1000, + "end": 1008, + "loc": { + "start": { + "line": 40, + "column": 35 + }, + "end": { + "line": 40, + "column": 43 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1009, + "end": 1014, + "loc": { + "start": { + "line": 40, + "column": 44 + }, + "end": { + "line": 40, + "column": 49 + } + }, + "name": "fb_id" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1036, + "end": 1074, + "loc": { + "start": { + "line": 41, + "column": 20 + }, + "end": { + "line": 41, + "column": 58 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1036, + "end": 1046, + "loc": { + "start": { + "line": 41, + "column": 20 + }, + "end": { + "line": 41, + "column": 30 + } + }, + "name": "first_name" + }, + "value": { + "type": "MemberExpression", + "start": 1048, + "end": 1074, + "loc": { + "start": { + "line": 41, + "column": 32 + }, + "end": { + "line": 41, + "column": 58 + } + }, + "object": { + "type": "MemberExpression", + "start": 1048, + "end": 1063, + "loc": { + "start": { + "line": 41, + "column": 32 + }, + "end": { + "line": 41, + "column": 47 + } + }, + "object": { + "type": "Identifier", + "start": 1048, + "end": 1054, + "loc": { + "start": { + "line": 41, + "column": 32 + }, + "end": { + "line": 41, + "column": 38 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1055, + "end": 1063, + "loc": { + "start": { + "line": 41, + "column": 39 + }, + "end": { + "line": 41, + "column": 47 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1064, + "end": 1074, + "loc": { + "start": { + "line": 41, + "column": 48 + }, + "end": { + "line": 41, + "column": 58 + } + }, + "name": "first_name" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1096, + "end": 1132, + "loc": { + "start": { + "line": 42, + "column": 20 + }, + "end": { + "line": 42, + "column": 56 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1096, + "end": 1105, + "loc": { + "start": { + "line": 42, + "column": 20 + }, + "end": { + "line": 42, + "column": 29 + } + }, + "name": "last_name" + }, + "value": { + "type": "MemberExpression", + "start": 1107, + "end": 1132, + "loc": { + "start": { + "line": 42, + "column": 31 + }, + "end": { + "line": 42, + "column": 56 + } + }, + "object": { + "type": "MemberExpression", + "start": 1107, + "end": 1122, + "loc": { + "start": { + "line": 42, + "column": 31 + }, + "end": { + "line": 42, + "column": 46 + } + }, + "object": { + "type": "Identifier", + "start": 1107, + "end": 1113, + "loc": { + "start": { + "line": 42, + "column": 31 + }, + "end": { + "line": 42, + "column": 37 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1114, + "end": 1122, + "loc": { + "start": { + "line": 42, + "column": 38 + }, + "end": { + "line": 42, + "column": 46 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1123, + "end": 1132, + "loc": { + "start": { + "line": 42, + "column": 47 + }, + "end": { + "line": 42, + "column": 56 + } + }, + "name": "last_name" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1154, + "end": 1182, + "loc": { + "start": { + "line": 43, + "column": 20 + }, + "end": { + "line": 43, + "column": 48 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1154, + "end": 1159, + "loc": { + "start": { + "line": 43, + "column": 20 + }, + "end": { + "line": 43, + "column": 25 + } + }, + "name": "email" + }, + "value": { + "type": "MemberExpression", + "start": 1161, + "end": 1182, + "loc": { + "start": { + "line": 43, + "column": 27 + }, + "end": { + "line": 43, + "column": 48 + } + }, + "object": { + "type": "MemberExpression", + "start": 1161, + "end": 1176, + "loc": { + "start": { + "line": 43, + "column": 27 + }, + "end": { + "line": 43, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 1161, + "end": 1167, + "loc": { + "start": { + "line": 43, + "column": 27 + }, + "end": { + "line": 43, + "column": 33 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1168, + "end": 1176, + "loc": { + "start": { + "line": 43, + "column": 34 + }, + "end": { + "line": 43, + "column": 42 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1177, + "end": 1182, + "loc": { + "start": { + "line": 43, + "column": 43 + }, + "end": { + "line": 43, + "column": 48 + } + }, + "name": "email" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1204, + "end": 1238, + "loc": { + "start": { + "line": 44, + "column": 20 + }, + "end": { + "line": 44, + "column": 54 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1204, + "end": 1212, + "loc": { + "start": { + "line": 44, + "column": 20 + }, + "end": { + "line": 44, + "column": 28 + } + }, + "name": "follower" + }, + "value": { + "type": "MemberExpression", + "start": 1214, + "end": 1238, + "loc": { + "start": { + "line": 44, + "column": 30 + }, + "end": { + "line": 44, + "column": 54 + } + }, + "object": { + "type": "MemberExpression", + "start": 1214, + "end": 1229, + "loc": { + "start": { + "line": 44, + "column": 30 + }, + "end": { + "line": 44, + "column": 45 + } + }, + "object": { + "type": "Identifier", + "start": 1214, + "end": 1220, + "loc": { + "start": { + "line": 44, + "column": 30 + }, + "end": { + "line": 44, + "column": 36 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1221, + "end": 1229, + "loc": { + "start": { + "line": 44, + "column": 37 + }, + "end": { + "line": 44, + "column": 45 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1230, + "end": 1238, + "loc": { + "start": { + "line": 44, + "column": 46 + }, + "end": { + "line": 44, + "column": 54 + } + }, + "name": "follower" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1260, + "end": 1296, + "loc": { + "start": { + "line": 45, + "column": 20 + }, + "end": { + "line": 45, + "column": 56 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1260, + "end": 1269, + "loc": { + "start": { + "line": 45, + "column": 20 + }, + "end": { + "line": 45, + "column": 29 + } + }, + "name": "following" + }, + "value": { + "type": "MemberExpression", + "start": 1271, + "end": 1296, + "loc": { + "start": { + "line": 45, + "column": 31 + }, + "end": { + "line": 45, + "column": 56 + } + }, + "object": { + "type": "MemberExpression", + "start": 1271, + "end": 1286, + "loc": { + "start": { + "line": 45, + "column": 31 + }, + "end": { + "line": 45, + "column": 46 + } + }, + "object": { + "type": "Identifier", + "start": 1271, + "end": 1277, + "loc": { + "start": { + "line": 45, + "column": 31 + }, + "end": { + "line": 45, + "column": 37 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1278, + "end": 1286, + "loc": { + "start": { + "line": 45, + "column": 38 + }, + "end": { + "line": 45, + "column": 46 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1287, + "end": 1296, + "loc": { + "start": { + "line": 45, + "column": 47 + }, + "end": { + "line": 45, + "column": 56 + } + }, + "name": "following" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1318, + "end": 1364, + "loc": { + "start": { + "line": 46, + "column": 20 + }, + "end": { + "line": 46, + "column": 66 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1318, + "end": 1332, + "loc": { + "start": { + "line": 46, + "column": 20 + }, + "end": { + "line": 46, + "column": 34 + } + }, + "name": "follower_count" + }, + "value": { + "type": "MemberExpression", + "start": 1334, + "end": 1364, + "loc": { + "start": { + "line": 46, + "column": 36 + }, + "end": { + "line": 46, + "column": 66 + } + }, + "object": { + "type": "MemberExpression", + "start": 1334, + "end": 1349, + "loc": { + "start": { + "line": 46, + "column": 36 + }, + "end": { + "line": 46, + "column": 51 + } + }, + "object": { + "type": "Identifier", + "start": 1334, + "end": 1340, + "loc": { + "start": { + "line": 46, + "column": 36 + }, + "end": { + "line": 46, + "column": 42 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1341, + "end": 1349, + "loc": { + "start": { + "line": 46, + "column": 43 + }, + "end": { + "line": 46, + "column": 51 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1350, + "end": 1364, + "loc": { + "start": { + "line": 46, + "column": 52 + }, + "end": { + "line": 46, + "column": 66 + } + }, + "name": "follower_count" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1386, + "end": 1434, + "loc": { + "start": { + "line": 47, + "column": 20 + }, + "end": { + "line": 47, + "column": 68 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1386, + "end": 1401, + "loc": { + "start": { + "line": 47, + "column": 20 + }, + "end": { + "line": 47, + "column": 35 + } + }, + "name": "following_count" + }, + "value": { + "type": "MemberExpression", + "start": 1403, + "end": 1434, + "loc": { + "start": { + "line": 47, + "column": 37 + }, + "end": { + "line": 47, + "column": 68 + } + }, + "object": { + "type": "MemberExpression", + "start": 1403, + "end": 1418, + "loc": { + "start": { + "line": 47, + "column": 37 + }, + "end": { + "line": 47, + "column": 52 + } + }, + "object": { + "type": "Identifier", + "start": 1403, + "end": 1409, + "loc": { + "start": { + "line": 47, + "column": 37 + }, + "end": { + "line": 47, + "column": 43 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1410, + "end": 1418, + "loc": { + "start": { + "line": 47, + "column": 44 + }, + "end": { + "line": 47, + "column": 52 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1419, + "end": 1434, + "loc": { + "start": { + "line": 47, + "column": 53 + }, + "end": { + "line": 47, + "column": 68 + } + }, + "name": "following_count" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1456, + "end": 1494, + "loc": { + "start": { + "line": 48, + "column": 20 + }, + "end": { + "line": 48, + "column": 58 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1456, + "end": 1466, + "loc": { + "start": { + "line": 48, + "column": 20 + }, + "end": { + "line": 48, + "column": 30 + } + }, + "name": "created_at" + }, + "value": { + "type": "MemberExpression", + "start": 1468, + "end": 1494, + "loc": { + "start": { + "line": 48, + "column": 32 + }, + "end": { + "line": 48, + "column": 58 + } + }, + "object": { + "type": "MemberExpression", + "start": 1468, + "end": 1483, + "loc": { + "start": { + "line": 48, + "column": 32 + }, + "end": { + "line": 48, + "column": 47 + } + }, + "object": { + "type": "Identifier", + "start": 1468, + "end": 1474, + "loc": { + "start": { + "line": 48, + "column": 32 + }, + "end": { + "line": 48, + "column": 38 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1475, + "end": 1483, + "loc": { + "start": { + "line": 48, + "column": 39 + }, + "end": { + "line": 48, + "column": 47 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1484, + "end": 1494, + "loc": { + "start": { + "line": 48, + "column": 48 + }, + "end": { + "line": 48, + "column": 58 + } + }, + "name": "created_at" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1516, + "end": 1556, + "loc": { + "start": { + "line": 49, + "column": 20 + }, + "end": { + "line": 49, + "column": 60 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1516, + "end": 1527, + "loc": { + "start": { + "line": 49, + "column": 20 + }, + "end": { + "line": 49, + "column": 31 + } + }, + "name": "modified_at" + }, + "value": { + "type": "MemberExpression", + "start": 1529, + "end": 1556, + "loc": { + "start": { + "line": 49, + "column": 33 + }, + "end": { + "line": 49, + "column": 60 + } + }, + "object": { + "type": "MemberExpression", + "start": 1529, + "end": 1544, + "loc": { + "start": { + "line": 49, + "column": 33 + }, + "end": { + "line": 49, + "column": 48 + } + }, + "object": { + "type": "Identifier", + "start": 1529, + "end": 1535, + "loc": { + "start": { + "line": 49, + "column": 33 + }, + "end": { + "line": 49, + "column": 39 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1536, + "end": 1544, + "loc": { + "start": { + "line": 49, + "column": 40 + }, + "end": { + "line": 49, + "column": 48 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1545, + "end": 1556, + "loc": { + "start": { + "line": 49, + "column": 49 + }, + "end": { + "line": 49, + "column": 60 + } + }, + "name": "modified_at" + }, + "computed": false + }, + "kind": "init" + } + ] + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 1604, + "end": 1623, + "loc": { + "start": { + "line": 53, + "column": 12 + }, + "end": { + "line": 53, + "column": 31 + } + }, + "argument": { + "type": "Identifier", + "start": 1611, + "end": 1623, + "loc": { + "start": { + "line": 53, + "column": 19 + }, + "end": { + "line": 53, + "column": 31 + } + }, + "name": "initialState" + } + } + ], + "test": { + "type": "MemberExpression", + "start": 815, + "end": 834, + "loc": { + "start": { + "line": 36, + "column": 13 + }, + "end": { + "line": 36, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 815, + "end": 829, + "loc": { + "start": { + "line": 36, + "column": 13 + }, + "end": { + "line": 36, + "column": 27 + } + }, + "name": "ProfileActions" + }, + "property": { + "type": "Identifier", + "start": 830, + "end": 834, + "loc": { + "start": { + "line": 36, + "column": 28 + }, + "end": { + "line": 36, + "column": 32 + } + }, + "name": "LOAD" + }, + "computed": false + } + }, + { + "type": "SwitchCase", + "start": 1633, + "end": 1804, + "loc": { + "start": { + "line": 55, + "column": 8 + }, + "end": { + "line": 60, + "column": 24 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 1673, + "end": 1778, + "loc": { + "start": { + "line": 56, + "column": 12 + }, + "end": { + "line": 58, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 1677, + "end": 1692, + "loc": { + "start": { + "line": 56, + "column": 16 + }, + "end": { + "line": 56, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 1677, + "end": 1683, + "loc": { + "start": { + "line": 56, + "column": 16 + }, + "end": { + "line": 56, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1684, + "end": 1692, + "loc": { + "start": { + "line": 56, + "column": 23 + }, + "end": { + "line": 56, + "column": 31 + } + }, + "name": "response" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 1694, + "end": 1778, + "loc": { + "start": { + "line": 56, + "column": 33 + }, + "end": { + "line": 58, + "column": 13 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 1712, + "end": 1764, + "loc": { + "start": { + "line": 57, + "column": 16 + }, + "end": { + "line": 57, + "column": 68 + } + }, + "argument": { + "type": "CallExpression", + "start": 1719, + "end": 1764, + "loc": { + "start": { + "line": 57, + "column": 23 + }, + "end": { + "line": 57, + "column": 68 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1719, + "end": 1732, + "loc": { + "start": { + "line": 57, + "column": 23 + }, + "end": { + "line": 57, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 1719, + "end": 1725, + "loc": { + "start": { + "line": 57, + "column": 23 + }, + "end": { + "line": 57, + "column": 29 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 1726, + "end": 1732, + "loc": { + "start": { + "line": 57, + "column": 30 + }, + "end": { + "line": 57, + "column": 36 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 1733, + "end": 1735, + "loc": { + "start": { + "line": 57, + "column": 37 + }, + "end": { + "line": 57, + "column": 39 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 1737, + "end": 1742, + "loc": { + "start": { + "line": 57, + "column": 41 + }, + "end": { + "line": 57, + "column": 46 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 1744, + "end": 1763, + "loc": { + "start": { + "line": 57, + "column": 48 + }, + "end": { + "line": 57, + "column": 67 + } + }, + "properties": [ + { + "type": "Property", + "start": 1746, + "end": 1761, + "loc": { + "start": { + "line": 57, + "column": 50 + }, + "end": { + "line": 57, + "column": 65 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1746, + "end": 1755, + "loc": { + "start": { + "line": 57, + "column": 50 + }, + "end": { + "line": 57, + "column": 59 + } + }, + "name": "following" + }, + "value": { + "type": "Literal", + "start": 1757, + "end": 1761, + "loc": { + "start": { + "line": 57, + "column": 61 + }, + "end": { + "line": 57, + "column": 65 + } + }, + "value": true, + "rawValue": true, + "raw": "true" + }, + "kind": "init" + } + ] + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 1792, + "end": 1804, + "loc": { + "start": { + "line": 60, + "column": 12 + }, + "end": { + "line": 60, + "column": 24 + } + }, + "argument": { + "type": "Identifier", + "start": 1799, + "end": 1804, + "loc": { + "start": { + "line": 60, + "column": 19 + }, + "end": { + "line": 60, + "column": 24 + } + }, + "name": "state" + } + } + ], + "test": { + "type": "MemberExpression", + "start": 1638, + "end": 1659, + "loc": { + "start": { + "line": 55, + "column": 13 + }, + "end": { + "line": 55, + "column": 34 + } + }, + "object": { + "type": "Identifier", + "start": 1638, + "end": 1652, + "loc": { + "start": { + "line": 55, + "column": 13 + }, + "end": { + "line": 55, + "column": 27 + } + }, + "name": "ProfileActions" + }, + "property": { + "type": "Identifier", + "start": 1653, + "end": 1659, + "loc": { + "start": { + "line": 55, + "column": 28 + }, + "end": { + "line": 55, + "column": 34 + } + }, + "name": "FOLLOW" + }, + "computed": false + } + }, + { + "type": "SwitchCase", + "start": 1814, + "end": 1909, + "loc": { + "start": { + "line": 62, + "column": 8 + }, + "end": { + "line": 63, + "column": 65 + } + }, + "consequent": [ + { + "type": "ReturnStatement", + "start": 1856, + "end": 1909, + "loc": { + "start": { + "line": 63, + "column": 12 + }, + "end": { + "line": 63, + "column": 65 + } + }, + "argument": { + "type": "CallExpression", + "start": 1863, + "end": 1909, + "loc": { + "start": { + "line": 63, + "column": 19 + }, + "end": { + "line": 63, + "column": 65 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1863, + "end": 1876, + "loc": { + "start": { + "line": 63, + "column": 19 + }, + "end": { + "line": 63, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 1863, + "end": 1869, + "loc": { + "start": { + "line": 63, + "column": 19 + }, + "end": { + "line": 63, + "column": 25 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 1870, + "end": 1876, + "loc": { + "start": { + "line": 63, + "column": 26 + }, + "end": { + "line": 63, + "column": 32 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 1877, + "end": 1879, + "loc": { + "start": { + "line": 63, + "column": 33 + }, + "end": { + "line": 63, + "column": 35 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 1881, + "end": 1886, + "loc": { + "start": { + "line": 63, + "column": 37 + }, + "end": { + "line": 63, + "column": 42 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 1888, + "end": 1908, + "loc": { + "start": { + "line": 63, + "column": 44 + }, + "end": { + "line": 63, + "column": 64 + } + }, + "properties": [ + { + "type": "Property", + "start": 1890, + "end": 1906, + "loc": { + "start": { + "line": 63, + "column": 46 + }, + "end": { + "line": 63, + "column": 62 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1890, + "end": 1899, + "loc": { + "start": { + "line": 63, + "column": 46 + }, + "end": { + "line": 63, + "column": 55 + } + }, + "name": "following" + }, + "value": { + "type": "Literal", + "start": 1901, + "end": 1906, + "loc": { + "start": { + "line": 63, + "column": 57 + }, + "end": { + "line": 63, + "column": 62 + } + }, + "value": false, + "rawValue": false, + "raw": "false" + }, + "kind": "init" + } + ] + } + ] + } + } + ], + "test": { + "type": "MemberExpression", + "start": 1819, + "end": 1842, + "loc": { + "start": { + "line": 62, + "column": 13 + }, + "end": { + "line": 62, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 1819, + "end": 1833, + "loc": { + "start": { + "line": 62, + "column": 13 + }, + "end": { + "line": 62, + "column": 27 + } + }, + "name": "ProfileActions" + }, + "property": { + "type": "Identifier", + "start": 1834, + "end": 1842, + "loc": { + "start": { + "line": 62, + "column": 28 + }, + "end": { + "line": 62, + "column": 36 + } + }, + "name": "UNFOLLOW" + }, + "computed": false + } + } + ] + }, + { + "type": "ReturnStatement", + "start": 1922, + "end": 1934, + "loc": { + "start": { + "line": 67, + "column": 4 + }, + "end": { + "line": 67, + "column": 16 + } + }, + "argument": { + "type": "Identifier", + "start": 1929, + "end": 1934, + "loc": { + "start": { + "line": 67, + "column": 11 + }, + "end": { + "line": 67, + "column": 16 + } + }, + "name": "state" + } + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Profile\n * Redux Reducer for Profile action\n * Reference: http://redux.js.org/docs/basics/Reducers.html\n * @param state\n * @param action\n * @returns {*}\n * @constructor\n ", + "start": 544, + "end": 723, + "loc": { + "start": { + "line": 23, + "column": 0 + }, + "end": { + "line": 31, + "column": 3 + } + }, + "range": [ + 544, + 723 + ] + } + ], + "trailingComments": [] + } + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/reducers/Search.js.json b/app/docs/ast/source/reducers/Search.js.json new file mode 100644 index 0000000..1ad1f5f --- /dev/null +++ b/app/docs/ast/source/reducers/Search.js.json @@ -0,0 +1,10478 @@ +{ + "type": "Program", + "start": 0, + "end": 3323, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 115, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 54, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 16 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 13, + "end": 36, + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 27 + } + }, + "imported": { + "type": "Identifier", + "start": 13, + "end": 19, + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 10 + } + }, + "name": "Search" + }, + "local": { + "type": "Identifier", + "start": 23, + "end": 36, + "loc": { + "start": { + "line": 2, + "column": 14 + }, + "end": { + "line": 2, + "column": 27 + } + }, + "name": "SearchActions" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 45, + "end": 54, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 16 + } + }, + "value": "actions", + "rawValue": "actions", + "raw": "'actions'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * initialState\n * @type {{active: null, recent: Array, hits: Array, term: string, total: number, results: Array}}\n ", + "start": 57, + "end": 179, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + }, + "range": [ + 57, + 179 + ] + } + ] + }, + { + "type": "VariableDeclaration", + "start": 180, + "end": 297, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 18, + "column": 1 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 186, + "end": 297, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 18, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 186, + "end": 198, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 18 + } + }, + "name": "initialState", + "leadingComments": null + }, + "init": { + "type": "ObjectExpression", + "start": 201, + "end": 297, + "loc": { + "start": { + "line": 10, + "column": 21 + }, + "end": { + "line": 18, + "column": 1 + } + }, + "properties": [ + { + "type": "Property", + "start": 207, + "end": 219, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 16 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 207, + "end": 213, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 10 + } + }, + "name": "active" + }, + "value": { + "type": "Literal", + "start": 215, + "end": 219, + "loc": { + "start": { + "line": 11, + "column": 12 + }, + "end": { + "line": 11, + "column": 16 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 225, + "end": 235, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 14 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 225, + "end": 231, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 10 + } + }, + "name": "recent" + }, + "value": { + "type": "ArrayExpression", + "start": 233, + "end": 235, + "loc": { + "start": { + "line": 12, + "column": 12 + }, + "end": { + "line": 12, + "column": 14 + } + }, + "elements": [] + }, + "kind": "init" + }, + { + "type": "Property", + "start": 241, + "end": 249, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 12 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 241, + "end": 245, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 8 + } + }, + "name": "hits" + }, + "value": { + "type": "ArrayExpression", + "start": 247, + "end": 249, + "loc": { + "start": { + "line": 13, + "column": 10 + }, + "end": { + "line": 13, + "column": 12 + } + }, + "elements": [] + }, + "kind": "init" + }, + { + "type": "Property", + "start": 255, + "end": 263, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 12 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 255, + "end": 259, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 8 + } + }, + "name": "term" + }, + "value": { + "type": "Literal", + "start": 261, + "end": 263, + "loc": { + "start": { + "line": 14, + "column": 10 + }, + "end": { + "line": 14, + "column": 12 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 269, + "end": 277, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 12 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 269, + "end": 274, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 9 + } + }, + "name": "total" + }, + "value": { + "type": "Literal", + "start": 276, + "end": 277, + "loc": { + "start": { + "line": 15, + "column": 11 + }, + "end": { + "line": 15, + "column": 12 + } + }, + "value": 0, + "rawValue": 0, + "raw": "0" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 284, + "end": 295, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 15 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 284, + "end": 291, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 11 + } + }, + "name": "results" + }, + "value": { + "type": "ArrayExpression", + "start": 293, + "end": 295, + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 17, + "column": 15 + } + }, + "elements": [] + }, + "kind": "init" + } + ], + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * initialState\n * @type {{active: null, recent: Array, hits: Array, term: string, total: number, results: Array}}\n ", + "start": 57, + "end": 179, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + }, + "range": [ + 57, + 179 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Search\n * Redux Reducer for Search action\n * Reference: http://redux.js.org/docs/basics/Reducers.html\n * @param state\n * @param action\n * @returns {*}\n * @constructor\n ", + "start": 299, + "end": 476, + "loc": { + "start": { + "line": 20, + "column": 0 + }, + "end": { + "line": 28, + "column": 3 + } + }, + "range": [ + 299, + 476 + ] + } + ] + }, + { + "type": "Identifier", + "start": 477, + "end": 3299, + "loc": { + "start": { + "line": 29, + "column": 0 + }, + "end": { + "line": 112, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 486, + "end": 492, + "loc": { + "start": { + "line": 29, + "column": 9 + }, + "end": { + "line": 29, + "column": 15 + } + }, + "name": "Search", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "AssignmentPattern", + "start": 493, + "end": 513, + "loc": { + "start": { + "line": 29, + "column": 16 + }, + "end": { + "line": 29, + "column": 36 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 493, + "end": 498, + "loc": { + "start": { + "line": 29, + "column": 16 + }, + "end": { + "line": 29, + "column": 21 + } + }, + "name": "state" + }, + "right": { + "type": "Identifier", + "start": 501, + "end": 513, + "loc": { + "start": { + "line": 29, + "column": 24 + }, + "end": { + "line": 29, + "column": 36 + } + }, + "name": "initialState" + } + }, + { + "type": "Identifier", + "start": 515, + "end": 521, + "loc": { + "start": { + "line": 29, + "column": 38 + }, + "end": { + "line": 29, + "column": 44 + } + }, + "name": "action" + } + ], + "body": { + "type": "BlockStatement", + "start": 523, + "end": 3299, + "loc": { + "start": { + "line": 29, + "column": 46 + }, + "end": { + "line": 112, + "column": 1 + } + }, + "body": [ + { + "type": "SwitchStatement", + "start": 530, + "end": 3279, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 109, + "column": 5 + } + }, + "discriminant": { + "type": "MemberExpression", + "start": 538, + "end": 549, + "loc": { + "start": { + "line": 31, + "column": 12 + }, + "end": { + "line": 31, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 538, + "end": 544, + "loc": { + "start": { + "line": 31, + "column": 12 + }, + "end": { + "line": 31, + "column": 18 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 545, + "end": 549, + "loc": { + "start": { + "line": 31, + "column": 19 + }, + "end": { + "line": 31, + "column": 23 + } + }, + "name": "type" + }, + "computed": false + }, + "cases": [ + { + "type": "SwitchCase", + "start": 561, + "end": 737, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 36, + "column": 24 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 601, + "end": 712, + "loc": { + "start": { + "line": 33, + "column": 12 + }, + "end": { + "line": 35, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 605, + "end": 620, + "loc": { + "start": { + "line": 33, + "column": 16 + }, + "end": { + "line": 33, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 605, + "end": 611, + "loc": { + "start": { + "line": 33, + "column": 16 + }, + "end": { + "line": 33, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 612, + "end": 620, + "loc": { + "start": { + "line": 33, + "column": 23 + }, + "end": { + "line": 33, + "column": 31 + } + }, + "name": "response" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 622, + "end": 712, + "loc": { + "start": { + "line": 33, + "column": 33 + }, + "end": { + "line": 35, + "column": 13 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 640, + "end": 698, + "loc": { + "start": { + "line": 34, + "column": 16 + }, + "end": { + "line": 34, + "column": 74 + } + }, + "argument": { + "type": "CallExpression", + "start": 647, + "end": 698, + "loc": { + "start": { + "line": 34, + "column": 23 + }, + "end": { + "line": 34, + "column": 74 + } + }, + "callee": { + "type": "MemberExpression", + "start": 647, + "end": 660, + "loc": { + "start": { + "line": 34, + "column": 23 + }, + "end": { + "line": 34, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 647, + "end": 653, + "loc": { + "start": { + "line": 34, + "column": 23 + }, + "end": { + "line": 34, + "column": 29 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 654, + "end": 660, + "loc": { + "start": { + "line": 34, + "column": 30 + }, + "end": { + "line": 34, + "column": 36 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 661, + "end": 663, + "loc": { + "start": { + "line": 34, + "column": 37 + }, + "end": { + "line": 34, + "column": 39 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 665, + "end": 670, + "loc": { + "start": { + "line": 34, + "column": 41 + }, + "end": { + "line": 34, + "column": 46 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 672, + "end": 697, + "loc": { + "start": { + "line": 34, + "column": 48 + }, + "end": { + "line": 34, + "column": 73 + } + }, + "properties": [ + { + "type": "Property", + "start": 674, + "end": 695, + "loc": { + "start": { + "line": 34, + "column": 50 + }, + "end": { + "line": 34, + "column": 71 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 674, + "end": 680, + "loc": { + "start": { + "line": 34, + "column": 50 + }, + "end": { + "line": 34, + "column": 56 + } + }, + "name": "active" + }, + "value": { + "type": "MemberExpression", + "start": 682, + "end": 695, + "loc": { + "start": { + "line": 34, + "column": 58 + }, + "end": { + "line": 34, + "column": 71 + } + }, + "object": { + "type": "Identifier", + "start": 682, + "end": 688, + "loc": { + "start": { + "line": 34, + "column": 58 + }, + "end": { + "line": 34, + "column": 64 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 689, + "end": 695, + "loc": { + "start": { + "line": 34, + "column": 65 + }, + "end": { + "line": 34, + "column": 71 + } + }, + "name": "search" + }, + "computed": false + }, + "kind": "init" + } + ] + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 725, + "end": 737, + "loc": { + "start": { + "line": 36, + "column": 12 + }, + "end": { + "line": 36, + "column": 24 + } + }, + "argument": { + "type": "Identifier", + "start": 732, + "end": 737, + "loc": { + "start": { + "line": 36, + "column": 19 + }, + "end": { + "line": 36, + "column": 24 + } + }, + "name": "state" + } + } + ], + "test": { + "type": "MemberExpression", + "start": 566, + "end": 587, + "loc": { + "start": { + "line": 32, + "column": 13 + }, + "end": { + "line": 32, + "column": 34 + } + }, + "object": { + "type": "Identifier", + "start": 566, + "end": 579, + "loc": { + "start": { + "line": 32, + "column": 13 + }, + "end": { + "line": 32, + "column": 26 + } + }, + "name": "SearchActions" + }, + "property": { + "type": "Identifier", + "start": 580, + "end": 587, + "loc": { + "start": { + "line": 32, + "column": 27 + }, + "end": { + "line": 32, + "column": 34 + } + }, + "name": "TRIGGER" + }, + "computed": false + } + }, + { + "type": "SwitchCase", + "start": 747, + "end": 2813, + "loc": { + "start": { + "line": 38, + "column": 8 + }, + "end": { + "line": 91, + "column": 24 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 786, + "end": 2788, + "loc": { + "start": { + "line": 39, + "column": 12 + }, + "end": { + "line": 90, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 790, + "end": 805, + "loc": { + "start": { + "line": 39, + "column": 16 + }, + "end": { + "line": 39, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 790, + "end": 796, + "loc": { + "start": { + "line": 39, + "column": 16 + }, + "end": { + "line": 39, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 797, + "end": 805, + "loc": { + "start": { + "line": 39, + "column": 23 + }, + "end": { + "line": 39, + "column": 31 + } + }, + "name": "response" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 807, + "end": 2788, + "loc": { + "start": { + "line": 39, + "column": 33 + }, + "end": { + "line": 90, + "column": 13 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 825, + "end": 2774, + "loc": { + "start": { + "line": 40, + "column": 16 + }, + "end": { + "line": 89, + "column": 18 + } + }, + "argument": { + "type": "CallExpression", + "start": 832, + "end": 2774, + "loc": { + "start": { + "line": 40, + "column": 23 + }, + "end": { + "line": 89, + "column": 18 + } + }, + "callee": { + "type": "MemberExpression", + "start": 832, + "end": 845, + "loc": { + "start": { + "line": 40, + "column": 23 + }, + "end": { + "line": 40, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 832, + "end": 838, + "loc": { + "start": { + "line": 40, + "column": 23 + }, + "end": { + "line": 40, + "column": 29 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 839, + "end": 845, + "loc": { + "start": { + "line": 40, + "column": 30 + }, + "end": { + "line": 40, + "column": 36 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 846, + "end": 848, + "loc": { + "start": { + "line": 40, + "column": 37 + }, + "end": { + "line": 40, + "column": 39 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 850, + "end": 855, + "loc": { + "start": { + "line": 40, + "column": 41 + }, + "end": { + "line": 40, + "column": 46 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 857, + "end": 2773, + "loc": { + "start": { + "line": 40, + "column": 48 + }, + "end": { + "line": 89, + "column": 17 + } + }, + "properties": [ + { + "type": "Property", + "start": 879, + "end": 896, + "loc": { + "start": { + "line": 41, + "column": 20 + }, + "end": { + "line": 41, + "column": 37 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 879, + "end": 883, + "loc": { + "start": { + "line": 41, + "column": 20 + }, + "end": { + "line": 41, + "column": 24 + } + }, + "name": "term" + }, + "value": { + "type": "MemberExpression", + "start": 885, + "end": 896, + "loc": { + "start": { + "line": 41, + "column": 26 + }, + "end": { + "line": 41, + "column": 37 + } + }, + "object": { + "type": "Identifier", + "start": 885, + "end": 891, + "loc": { + "start": { + "line": 41, + "column": 26 + }, + "end": { + "line": 41, + "column": 32 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 892, + "end": 896, + "loc": { + "start": { + "line": 41, + "column": 33 + }, + "end": { + "line": 41, + "column": 37 + } + }, + "name": "term" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 918, + "end": 947, + "loc": { + "start": { + "line": 42, + "column": 20 + }, + "end": { + "line": 42, + "column": 49 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 918, + "end": 923, + "loc": { + "start": { + "line": 42, + "column": 20 + }, + "end": { + "line": 42, + "column": 25 + } + }, + "name": "total" + }, + "value": { + "type": "MemberExpression", + "start": 925, + "end": 947, + "loc": { + "start": { + "line": 42, + "column": 27 + }, + "end": { + "line": 42, + "column": 49 + } + }, + "object": { + "type": "MemberExpression", + "start": 925, + "end": 940, + "loc": { + "start": { + "line": 42, + "column": 27 + }, + "end": { + "line": 42, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 925, + "end": 931, + "loc": { + "start": { + "line": 42, + "column": 27 + }, + "end": { + "line": 42, + "column": 33 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 932, + "end": 940, + "loc": { + "start": { + "line": 42, + "column": 34 + }, + "end": { + "line": 42, + "column": 42 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 941, + "end": 947, + "loc": { + "start": { + "line": 42, + "column": 43 + }, + "end": { + "line": 42, + "column": 49 + } + }, + "name": "nbHits" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 969, + "end": 2755, + "loc": { + "start": { + "line": 43, + "column": 20 + }, + "end": { + "line": 88, + "column": 21 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 969, + "end": 973, + "loc": { + "start": { + "line": 43, + "column": 20 + }, + "end": { + "line": 43, + "column": 24 + } + }, + "name": "hits" + }, + "value": { + "type": "ArrayExpression", + "start": 975, + "end": 2755, + "loc": { + "start": { + "line": 43, + "column": 26 + }, + "end": { + "line": 88, + "column": 21 + } + }, + "elements": [ + { + "type": "SpreadElement", + "start": 1001, + "end": 2732, + "loc": { + "start": { + "line": 44, + "column": 24 + }, + "end": { + "line": 87, + "column": 31 + } + }, + "argument": { + "type": "CallExpression", + "start": 1004, + "end": 2732, + "loc": { + "start": { + "line": 44, + "column": 27 + }, + "end": { + "line": 87, + "column": 31 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1004, + "end": 1017, + "loc": { + "start": { + "line": 44, + "column": 27 + }, + "end": { + "line": 44, + "column": 40 + } + }, + "object": { + "type": "Identifier", + "start": 1004, + "end": 1010, + "loc": { + "start": { + "line": 44, + "column": 27 + }, + "end": { + "line": 44, + "column": 33 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 1011, + "end": 1017, + "loc": { + "start": { + "line": 44, + "column": 34 + }, + "end": { + "line": 44, + "column": 40 + } + }, + "name": "values" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1018, + "end": 2731, + "loc": { + "start": { + "line": 44, + "column": 41 + }, + "end": { + "line": 87, + "column": 30 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1018, + "end": 2171, + "loc": { + "start": { + "line": 44, + "column": 41 + }, + "end": { + "line": 70, + "column": 53 + } + }, + "object": { + "type": "CallExpression", + "start": 1018, + "end": 2164, + "loc": { + "start": { + "line": 44, + "column": 41 + }, + "end": { + "line": 70, + "column": 46 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1018, + "end": 2151, + "loc": { + "start": { + "line": 44, + "column": 41 + }, + "end": { + "line": 70, + "column": 33 + } + }, + "object": { + "type": "CallExpression", + "start": 1018, + "end": 2144, + "loc": { + "start": { + "line": 44, + "column": 41 + }, + "end": { + "line": 70, + "column": 26 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1018, + "end": 1042, + "loc": { + "start": { + "line": 44, + "column": 41 + }, + "end": { + "line": 44, + "column": 65 + } + }, + "object": { + "type": "MemberExpression", + "start": 1018, + "end": 1038, + "loc": { + "start": { + "line": 44, + "column": 41 + }, + "end": { + "line": 44, + "column": 61 + } + }, + "object": { + "type": "MemberExpression", + "start": 1018, + "end": 1033, + "loc": { + "start": { + "line": 44, + "column": 41 + }, + "end": { + "line": 44, + "column": 56 + } + }, + "object": { + "type": "Identifier", + "start": 1018, + "end": 1024, + "loc": { + "start": { + "line": 44, + "column": 41 + }, + "end": { + "line": 44, + "column": 47 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1025, + "end": 1033, + "loc": { + "start": { + "line": 44, + "column": 48 + }, + "end": { + "line": 44, + "column": 56 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1034, + "end": 1038, + "loc": { + "start": { + "line": 44, + "column": 57 + }, + "end": { + "line": 44, + "column": 61 + } + }, + "name": "hits" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1039, + "end": 1042, + "loc": { + "start": { + "line": 44, + "column": 62 + }, + "end": { + "line": 44, + "column": 65 + } + }, + "name": "map" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 1043, + "end": 2143, + "loc": { + "start": { + "line": 44, + "column": 66 + }, + "end": { + "line": 70, + "column": 25 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1043, + "end": 1044, + "loc": { + "start": { + "line": 44, + "column": 66 + }, + "end": { + "line": 44, + "column": 67 + } + }, + "name": "a" + } + ], + "body": { + "type": "BlockStatement", + "start": 1048, + "end": 2143, + "loc": { + "start": { + "line": 44, + "column": 71 + }, + "end": { + "line": 70, + "column": 25 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 1078, + "end": 1122, + "loc": { + "start": { + "line": 45, + "column": 28 + }, + "end": { + "line": 45, + "column": 72 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1084, + "end": 1122, + "loc": { + "start": { + "line": 45, + "column": 34 + }, + "end": { + "line": 45, + "column": 72 + } + }, + "id": { + "type": "Identifier", + "start": 1084, + "end": 1088, + "loc": { + "start": { + "line": 45, + "column": 34 + }, + "end": { + "line": 45, + "column": 38 + } + }, + "name": "keys" + }, + "init": { + "type": "CallExpression", + "start": 1091, + "end": 1122, + "loc": { + "start": { + "line": 45, + "column": 41 + }, + "end": { + "line": 45, + "column": 72 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1091, + "end": 1102, + "loc": { + "start": { + "line": 45, + "column": 41 + }, + "end": { + "line": 45, + "column": 52 + } + }, + "object": { + "type": "Identifier", + "start": 1091, + "end": 1097, + "loc": { + "start": { + "line": 45, + "column": 41 + }, + "end": { + "line": 45, + "column": 47 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 1098, + "end": 1102, + "loc": { + "start": { + "line": 45, + "column": 48 + }, + "end": { + "line": 45, + "column": 52 + } + }, + "name": "keys" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 1103, + "end": 1121, + "loc": { + "start": { + "line": 45, + "column": 53 + }, + "end": { + "line": 45, + "column": 71 + } + }, + "object": { + "type": "Identifier", + "start": 1103, + "end": 1104, + "loc": { + "start": { + "line": 45, + "column": 53 + }, + "end": { + "line": 45, + "column": 54 + } + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 1105, + "end": 1121, + "loc": { + "start": { + "line": 45, + "column": 55 + }, + "end": { + "line": 45, + "column": 71 + } + }, + "name": "_highlightResult" + }, + "computed": false + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "VariableDeclaration", + "start": 1151, + "end": 1169, + "loc": { + "start": { + "line": 46, + "column": 28 + }, + "end": { + "line": 46, + "column": 46 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1155, + "end": 1169, + "loc": { + "start": { + "line": 46, + "column": 32 + }, + "end": { + "line": 46, + "column": 46 + } + }, + "id": { + "type": "Identifier", + "start": 1155, + "end": 1159, + "loc": { + "start": { + "line": 46, + "column": 32 + }, + "end": { + "line": 46, + "column": 36 + } + }, + "name": "type" + }, + "init": { + "type": "MemberExpression", + "start": 1162, + "end": 1169, + "loc": { + "start": { + "line": 46, + "column": 39 + }, + "end": { + "line": 46, + "column": 46 + } + }, + "object": { + "type": "Identifier", + "start": 1162, + "end": 1166, + "loc": { + "start": { + "line": 46, + "column": 39 + }, + "end": { + "line": 46, + "column": 43 + } + }, + "name": "keys" + }, + "property": { + "type": "Literal", + "start": 1167, + "end": 1168, + "loc": { + "start": { + "line": 46, + "column": 44 + }, + "end": { + "line": 46, + "column": 45 + } + }, + "value": 0, + "rawValue": 0, + "raw": "0" + }, + "computed": true + } + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 1199, + "end": 1208, + "loc": { + "start": { + "line": 48, + "column": 28 + }, + "end": { + "line": 48, + "column": 37 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1203, + "end": 1207, + "loc": { + "start": { + "line": 48, + "column": 32 + }, + "end": { + "line": 48, + "column": 36 + } + }, + "id": { + "type": "Identifier", + "start": 1203, + "end": 1207, + "loc": { + "start": { + "line": 48, + "column": 32 + }, + "end": { + "line": 48, + "column": 36 + } + }, + "name": "word" + }, + "init": null + } + ], + "kind": "let" + }, + { + "type": "SwitchStatement", + "start": 1237, + "end": 1972, + "loc": { + "start": { + "line": 49, + "column": 28 + }, + "end": { + "line": 63, + "column": 29 + } + }, + "discriminant": { + "type": "Identifier", + "start": 1245, + "end": 1249, + "loc": { + "start": { + "line": 49, + "column": 36 + }, + "end": { + "line": 49, + "column": 40 + } + }, + "name": "type" + }, + "cases": [ + { + "type": "SwitchCase", + "start": 1285, + "end": 1423, + "loc": { + "start": { + "line": 50, + "column": 32 + }, + "end": { + "line": 52, + "column": 37 + } + }, + "consequent": [ + { + "type": "ExpressionStatement", + "start": 1338, + "end": 1385, + "loc": { + "start": { + "line": 51, + "column": 36 + }, + "end": { + "line": 51, + "column": 83 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1338, + "end": 1385, + "loc": { + "start": { + "line": 51, + "column": 36 + }, + "end": { + "line": 51, + "column": 83 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 1338, + "end": 1342, + "loc": { + "start": { + "line": 51, + "column": 36 + }, + "end": { + "line": 51, + "column": 40 + } + }, + "name": "word" + }, + "right": { + "type": "MemberExpression", + "start": 1345, + "end": 1385, + "loc": { + "start": { + "line": 51, + "column": 43 + }, + "end": { + "line": 51, + "column": 83 + } + }, + "object": { + "type": "MemberExpression", + "start": 1345, + "end": 1382, + "loc": { + "start": { + "line": 51, + "column": 43 + }, + "end": { + "line": 51, + "column": 80 + } + }, + "object": { + "type": "MemberExpression", + "start": 1345, + "end": 1369, + "loc": { + "start": { + "line": 51, + "column": 43 + }, + "end": { + "line": 51, + "column": 67 + } + }, + "object": { + "type": "MemberExpression", + "start": 1345, + "end": 1363, + "loc": { + "start": { + "line": 51, + "column": 43 + }, + "end": { + "line": 51, + "column": 61 + } + }, + "object": { + "type": "Identifier", + "start": 1345, + "end": 1346, + "loc": { + "start": { + "line": 51, + "column": 43 + }, + "end": { + "line": 51, + "column": 44 + } + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 1347, + "end": 1363, + "loc": { + "start": { + "line": 51, + "column": 45 + }, + "end": { + "line": 51, + "column": 61 + } + }, + "name": "_highlightResult" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1364, + "end": 1368, + "loc": { + "start": { + "line": 51, + "column": 62 + }, + "end": { + "line": 51, + "column": 66 + } + }, + "name": "type" + }, + "computed": true + }, + "property": { + "type": "Identifier", + "start": 1370, + "end": 1382, + "loc": { + "start": { + "line": 51, + "column": 68 + }, + "end": { + "line": 51, + "column": 80 + } + }, + "name": "matchedWords" + }, + "computed": false + }, + "property": { + "type": "Literal", + "start": 1383, + "end": 1384, + "loc": { + "start": { + "line": 51, + "column": 81 + }, + "end": { + "line": 51, + "column": 82 + } + }, + "value": 0, + "rawValue": 0, + "raw": "0" + }, + "computed": true + } + } + }, + { + "type": "BreakStatement", + "start": 1418, + "end": 1423, + "loc": { + "start": { + "line": 52, + "column": 32 + }, + "end": { + "line": 52, + "column": 37 + } + }, + "label": null + } + ], + "test": { + "type": "Literal", + "start": 1290, + "end": 1300, + "loc": { + "start": { + "line": 50, + "column": 37 + }, + "end": { + "line": 50, + "column": 47 + } + }, + "value": "hashtags", + "rawValue": "hashtags", + "raw": "'hashtags'" + } + }, + { + "type": "SwitchCase", + "start": 1456, + "end": 1564, + "loc": { + "start": { + "line": 53, + "column": 32 + }, + "end": { + "line": 55, + "column": 37 + } + }, + "consequent": [ + { + "type": "ExpressionStatement", + "start": 1509, + "end": 1526, + "loc": { + "start": { + "line": 54, + "column": 36 + }, + "end": { + "line": 54, + "column": 53 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1509, + "end": 1526, + "loc": { + "start": { + "line": 54, + "column": 36 + }, + "end": { + "line": 54, + "column": 53 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 1509, + "end": 1513, + "loc": { + "start": { + "line": 54, + "column": 36 + }, + "end": { + "line": 54, + "column": 40 + } + }, + "name": "word" + }, + "right": { + "type": "MemberExpression", + "start": 1516, + "end": 1526, + "loc": { + "start": { + "line": 54, + "column": 43 + }, + "end": { + "line": 54, + "column": 53 + } + }, + "object": { + "type": "Identifier", + "start": 1516, + "end": 1517, + "loc": { + "start": { + "line": 54, + "column": 43 + }, + "end": { + "line": 54, + "column": 44 + } + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 1518, + "end": 1526, + "loc": { + "start": { + "line": 54, + "column": 45 + }, + "end": { + "line": 54, + "column": 53 + } + }, + "name": "location" + }, + "computed": false + } + } + }, + { + "type": "BreakStatement", + "start": 1559, + "end": 1564, + "loc": { + "start": { + "line": 55, + "column": 32 + }, + "end": { + "line": 55, + "column": 37 + } + }, + "label": null + } + ], + "test": { + "type": "Literal", + "start": 1461, + "end": 1471, + "loc": { + "start": { + "line": 53, + "column": 37 + }, + "end": { + "line": 53, + "column": 47 + } + }, + "value": "location", + "rawValue": "location", + "raw": "'location'" + } + }, + { + "type": "SwitchCase", + "start": 1597, + "end": 1942, + "loc": { + "start": { + "line": 56, + "column": 32 + }, + "end": { + "line": 62, + "column": 49 + } + }, + "consequent": [ + { + "type": "ExpressionStatement", + "start": 1642, + "end": 1839, + "loc": { + "start": { + "line": 57, + "column": 36 + }, + "end": { + "line": 60, + "column": 37 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1642, + "end": 1839, + "loc": { + "start": { + "line": 57, + "column": 36 + }, + "end": { + "line": 60, + "column": 37 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 1642, + "end": 1646, + "loc": { + "start": { + "line": 57, + "column": 36 + }, + "end": { + "line": 57, + "column": 40 + } + }, + "name": "word" + }, + "right": { + "type": "ObjectExpression", + "start": 1649, + "end": 1839, + "loc": { + "start": { + "line": 57, + "column": 43 + }, + "end": { + "line": 60, + "column": 37 + } + }, + "properties": [ + { + "type": "Property", + "start": 1691, + "end": 1705, + "loc": { + "start": { + "line": 58, + "column": 40 + }, + "end": { + "line": 58, + "column": 54 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1691, + "end": 1696, + "loc": { + "start": { + "line": 58, + "column": 40 + }, + "end": { + "line": 58, + "column": 45 + } + }, + "name": "email" + }, + "value": { + "type": "MemberExpression", + "start": 1698, + "end": 1705, + "loc": { + "start": { + "line": 58, + "column": 47 + }, + "end": { + "line": 58, + "column": 54 + } + }, + "object": { + "type": "Identifier", + "start": 1698, + "end": 1699, + "loc": { + "start": { + "line": 58, + "column": 47 + }, + "end": { + "line": 58, + "column": 48 + } + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 1700, + "end": 1705, + "loc": { + "start": { + "line": 58, + "column": 49 + }, + "end": { + "line": 58, + "column": 54 + } + }, + "name": "email" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1747, + "end": 1801, + "loc": { + "start": { + "line": 59, + "column": 40 + }, + "end": { + "line": 59, + "column": 94 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1747, + "end": 1751, + "loc": { + "start": { + "line": 59, + "column": 40 + }, + "end": { + "line": 59, + "column": 44 + } + }, + "name": "name" + }, + "value": { + "type": "TemplateLiteral", + "start": 1753, + "end": 1801, + "loc": { + "start": { + "line": 59, + "column": 46 + }, + "end": { + "line": 59, + "column": 94 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 1756, + "end": 1768, + "loc": { + "start": { + "line": 59, + "column": 49 + }, + "end": { + "line": 59, + "column": 61 + } + }, + "object": { + "type": "Identifier", + "start": 1756, + "end": 1757, + "loc": { + "start": { + "line": 59, + "column": 49 + }, + "end": { + "line": 59, + "column": 50 + } + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 1758, + "end": 1768, + "loc": { + "start": { + "line": 59, + "column": 51 + }, + "end": { + "line": 59, + "column": 61 + } + }, + "name": "first_name" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 1772, + "end": 1798, + "loc": { + "start": { + "line": 59, + "column": 65 + }, + "end": { + "line": 59, + "column": 91 + } + }, + "object": { + "type": "CallExpression", + "start": 1772, + "end": 1795, + "loc": { + "start": { + "line": 59, + "column": 65 + }, + "end": { + "line": 59, + "column": 88 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1772, + "end": 1793, + "loc": { + "start": { + "line": 59, + "column": 65 + }, + "end": { + "line": 59, + "column": 86 + } + }, + "object": { + "type": "MemberExpression", + "start": 1772, + "end": 1783, + "loc": { + "start": { + "line": 59, + "column": 65 + }, + "end": { + "line": 59, + "column": 76 + } + }, + "object": { + "type": "Identifier", + "start": 1772, + "end": 1773, + "loc": { + "start": { + "line": 59, + "column": 65 + }, + "end": { + "line": 59, + "column": 66 + } + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 1774, + "end": 1783, + "loc": { + "start": { + "line": 59, + "column": 67 + }, + "end": { + "line": 59, + "column": 76 + } + }, + "name": "last_name" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1784, + "end": 1793, + "loc": { + "start": { + "line": 59, + "column": 77 + }, + "end": { + "line": 59, + "column": 86 + } + }, + "name": "substring" + }, + "computed": false + }, + "arguments": [] + }, + "property": { + "type": "Literal", + "start": 1796, + "end": 1797, + "loc": { + "start": { + "line": 59, + "column": 89 + }, + "end": { + "line": 59, + "column": 90 + } + }, + "value": 0, + "rawValue": 0, + "raw": "0" + }, + "computed": true + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 1754, + "end": 1754, + "loc": { + "start": { + "line": 59, + "column": 47 + }, + "end": { + "line": 59, + "column": 47 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 1769, + "end": 1770, + "loc": { + "start": { + "line": 59, + "column": 62 + }, + "end": { + "line": 59, + "column": 63 + } + }, + "value": { + "raw": " ", + "cooked": " " + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 1799, + "end": 1800, + "loc": { + "start": { + "line": 59, + "column": 92 + }, + "end": { + "line": 59, + "column": 93 + } + }, + "value": { + "raw": ".", + "cooked": "." + }, + "tail": true + } + ] + }, + "kind": "init" + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "CommentLine", + "value": "word = a.email", + "start": 1876, + "end": 1892, + "loc": { + "start": { + "line": 61, + "column": 36 + }, + "end": { + "line": 61, + "column": 52 + } + }, + "range": [ + 1876, + 1892 + ] + } + ] + }, + { + "type": "ExpressionStatement", + "start": 1929, + "end": 1942, + "loc": { + "start": { + "line": 62, + "column": 36 + }, + "end": { + "line": 62, + "column": 49 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1929, + "end": 1942, + "loc": { + "start": { + "line": 62, + "column": 36 + }, + "end": { + "line": 62, + "column": 49 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 1929, + "end": 1933, + "loc": { + "start": { + "line": 62, + "column": 36 + }, + "end": { + "line": 62, + "column": 40 + } + }, + "name": "type", + "leadingComments": null + }, + "right": { + "type": "Literal", + "start": 1936, + "end": 1942, + "loc": { + "start": { + "line": 62, + "column": 43 + }, + "end": { + "line": 62, + "column": 49 + } + }, + "value": "user", + "rawValue": "user", + "raw": "'user'" + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": "word = a.email", + "start": 1876, + "end": 1892, + "loc": { + "start": { + "line": 61, + "column": 36 + }, + "end": { + "line": 61, + "column": 52 + } + }, + "range": [ + 1876, + 1892 + ] + } + ] + } + ], + "test": null + } + ] + }, + { + "type": "ReturnStatement", + "start": 2002, + "end": 2116, + "loc": { + "start": { + "line": 65, + "column": 28 + }, + "end": { + "line": 68, + "column": 29 + } + }, + "argument": { + "type": "ObjectExpression", + "start": 2009, + "end": 2116, + "loc": { + "start": { + "line": 65, + "column": 35 + }, + "end": { + "line": 68, + "column": 29 + } + }, + "properties": [ + { + "type": "Property", + "start": 2043, + "end": 2047, + "loc": { + "start": { + "line": 66, + "column": 32 + }, + "end": { + "line": 66, + "column": 36 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 2043, + "end": 2047, + "loc": { + "start": { + "line": 66, + "column": 32 + }, + "end": { + "line": 66, + "column": 36 + } + }, + "name": "word" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 2043, + "end": 2047, + "loc": { + "start": { + "line": 66, + "column": 32 + }, + "end": { + "line": 66, + "column": 36 + } + }, + "name": "word" + } + }, + { + "type": "Property", + "start": 2081, + "end": 2085, + "loc": { + "start": { + "line": 67, + "column": 32 + }, + "end": { + "line": 67, + "column": 36 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 2081, + "end": 2085, + "loc": { + "start": { + "line": 67, + "column": 32 + }, + "end": { + "line": 67, + "column": 36 + } + }, + "name": "type" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 2081, + "end": 2085, + "loc": { + "start": { + "line": 67, + "column": 32 + }, + "end": { + "line": 67, + "column": 36 + } + }, + "name": "type" + } + } + ] + } + } + ] + } + } + ] + }, + "property": { + "type": "Identifier", + "start": 2145, + "end": 2151, + "loc": { + "start": { + "line": 70, + "column": 27 + }, + "end": { + "line": 70, + "column": 33 + } + }, + "name": "filter" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 2152, + "end": 2163, + "loc": { + "start": { + "line": 70, + "column": 34 + }, + "end": { + "line": 70, + "column": 45 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2152, + "end": 2153, + "loc": { + "start": { + "line": 70, + "column": 34 + }, + "end": { + "line": 70, + "column": 35 + } + }, + "name": "a" + } + ], + "body": { + "type": "MemberExpression", + "start": 2157, + "end": 2163, + "loc": { + "start": { + "line": 70, + "column": 39 + }, + "end": { + "line": 70, + "column": 45 + } + }, + "object": { + "type": "Identifier", + "start": 2157, + "end": 2158, + "loc": { + "start": { + "line": 70, + "column": 39 + }, + "end": { + "line": 70, + "column": 40 + } + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 2159, + "end": 2163, + "loc": { + "start": { + "line": 70, + "column": 41 + }, + "end": { + "line": 70, + "column": 45 + } + }, + "name": "word" + }, + "computed": false + } + } + ] + }, + "property": { + "type": "Identifier", + "start": 2165, + "end": 2171, + "loc": { + "start": { + "line": 70, + "column": 47 + }, + "end": { + "line": 70, + "column": 53 + } + }, + "name": "reduce" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 2172, + "end": 2726, + "loc": { + "start": { + "line": 70, + "column": 54 + }, + "end": { + "line": 87, + "column": 25 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2173, + "end": 2177, + "loc": { + "start": { + "line": 70, + "column": 55 + }, + "end": { + "line": 70, + "column": 59 + } + }, + "name": "prev" + }, + { + "type": "Identifier", + "start": 2179, + "end": 2180, + "loc": { + "start": { + "line": 70, + "column": 61 + }, + "end": { + "line": 70, + "column": 62 + } + }, + "name": "a" + } + ], + "body": { + "type": "BlockStatement", + "start": 2185, + "end": 2726, + "loc": { + "start": { + "line": 70, + "column": 67 + }, + "end": { + "line": 87, + "column": 25 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 2216, + "end": 2251, + "loc": { + "start": { + "line": 72, + "column": 28 + }, + "end": { + "line": 72, + "column": 63 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 2222, + "end": 2251, + "loc": { + "start": { + "line": 72, + "column": 34 + }, + "end": { + "line": 72, + "column": 63 + } + }, + "id": { + "type": "Identifier", + "start": 2222, + "end": 2226, + "loc": { + "start": { + "line": 72, + "column": 34 + }, + "end": { + "line": 72, + "column": 38 + } + }, + "name": "word" + }, + "init": { + "type": "LogicalExpression", + "start": 2229, + "end": 2251, + "loc": { + "start": { + "line": 72, + "column": 41 + }, + "end": { + "line": 72, + "column": 63 + } + }, + "left": { + "type": "MemberExpression", + "start": 2229, + "end": 2241, + "loc": { + "start": { + "line": 72, + "column": 41 + }, + "end": { + "line": 72, + "column": 53 + } + }, + "object": { + "type": "MemberExpression", + "start": 2229, + "end": 2235, + "loc": { + "start": { + "line": 72, + "column": 41 + }, + "end": { + "line": 72, + "column": 47 + } + }, + "object": { + "type": "Identifier", + "start": 2229, + "end": 2230, + "loc": { + "start": { + "line": 72, + "column": 41 + }, + "end": { + "line": 72, + "column": 42 + } + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 2231, + "end": 2235, + "loc": { + "start": { + "line": 72, + "column": 43 + }, + "end": { + "line": 72, + "column": 47 + } + }, + "name": "word" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2236, + "end": 2241, + "loc": { + "start": { + "line": 72, + "column": 48 + }, + "end": { + "line": 72, + "column": 53 + } + }, + "name": "email" + }, + "computed": false + }, + "operator": "||", + "right": { + "type": "MemberExpression", + "start": 2245, + "end": 2251, + "loc": { + "start": { + "line": 72, + "column": 57 + }, + "end": { + "line": 72, + "column": 63 + } + }, + "object": { + "type": "Identifier", + "start": 2245, + "end": 2246, + "loc": { + "start": { + "line": 72, + "column": 57 + }, + "end": { + "line": 72, + "column": 58 + } + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 2247, + "end": 2251, + "loc": { + "start": { + "line": 72, + "column": 59 + }, + "end": { + "line": 72, + "column": 63 + } + }, + "name": "word" + }, + "computed": false + } + } + } + ], + "kind": "const" + }, + { + "type": "IfStatement", + "start": 2281, + "end": 2441, + "loc": { + "start": { + "line": 74, + "column": 28 + }, + "end": { + "line": 77, + "column": 29 + } + }, + "test": { + "type": "MemberExpression", + "start": 2285, + "end": 2304, + "loc": { + "start": { + "line": 74, + "column": 32 + }, + "end": { + "line": 74, + "column": 51 + } + }, + "object": { + "type": "Identifier", + "start": 2285, + "end": 2289, + "loc": { + "start": { + "line": 74, + "column": 32 + }, + "end": { + "line": 74, + "column": 36 + } + }, + "name": "prev" + }, + "property": { + "type": "BinaryExpression", + "start": 2290, + "end": 2303, + "loc": { + "start": { + "line": 74, + "column": 37 + }, + "end": { + "line": 74, + "column": 50 + } + }, + "left": { + "type": "Identifier", + "start": 2290, + "end": 2294, + "loc": { + "start": { + "line": 74, + "column": 37 + }, + "end": { + "line": 74, + "column": 41 + } + }, + "name": "word" + }, + "operator": "+", + "right": { + "type": "MemberExpression", + "start": 2297, + "end": 2303, + "loc": { + "start": { + "line": 74, + "column": 44 + }, + "end": { + "line": 74, + "column": 50 + } + }, + "object": { + "type": "Identifier", + "start": 2297, + "end": 2298, + "loc": { + "start": { + "line": 74, + "column": 44 + }, + "end": { + "line": 74, + "column": 45 + } + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 2299, + "end": 2303, + "loc": { + "start": { + "line": 74, + "column": 46 + }, + "end": { + "line": 74, + "column": 50 + } + }, + "name": "type" + }, + "computed": false + } + }, + "computed": true + }, + "consequent": { + "type": "BlockStatement", + "start": 2306, + "end": 2441, + "loc": { + "start": { + "line": 74, + "column": 53 + }, + "end": { + "line": 77, + "column": 29 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 2340, + "end": 2367, + "loc": { + "start": { + "line": 75, + "column": 32 + }, + "end": { + "line": 75, + "column": 59 + } + }, + "expression": { + "type": "UpdateExpression", + "start": 2340, + "end": 2367, + "loc": { + "start": { + "line": 75, + "column": 32 + }, + "end": { + "line": 75, + "column": 59 + } + }, + "operator": "++", + "prefix": false, + "argument": { + "type": "MemberExpression", + "start": 2340, + "end": 2365, + "loc": { + "start": { + "line": 75, + "column": 32 + }, + "end": { + "line": 75, + "column": 57 + } + }, + "object": { + "type": "MemberExpression", + "start": 2340, + "end": 2359, + "loc": { + "start": { + "line": 75, + "column": 32 + }, + "end": { + "line": 75, + "column": 51 + } + }, + "object": { + "type": "Identifier", + "start": 2340, + "end": 2344, + "loc": { + "start": { + "line": 75, + "column": 32 + }, + "end": { + "line": 75, + "column": 36 + } + }, + "name": "prev" + }, + "property": { + "type": "BinaryExpression", + "start": 2345, + "end": 2358, + "loc": { + "start": { + "line": 75, + "column": 37 + }, + "end": { + "line": 75, + "column": 50 + } + }, + "left": { + "type": "Identifier", + "start": 2345, + "end": 2349, + "loc": { + "start": { + "line": 75, + "column": 37 + }, + "end": { + "line": 75, + "column": 41 + } + }, + "name": "word" + }, + "operator": "+", + "right": { + "type": "MemberExpression", + "start": 2352, + "end": 2358, + "loc": { + "start": { + "line": 75, + "column": 44 + }, + "end": { + "line": 75, + "column": 50 + } + }, + "object": { + "type": "Identifier", + "start": 2352, + "end": 2353, + "loc": { + "start": { + "line": 75, + "column": 44 + }, + "end": { + "line": 75, + "column": 45 + } + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 2354, + "end": 2358, + "loc": { + "start": { + "line": 75, + "column": 46 + }, + "end": { + "line": 75, + "column": 50 + } + }, + "name": "type" + }, + "computed": false + } + }, + "computed": true + }, + "property": { + "type": "Identifier", + "start": 2360, + "end": 2365, + "loc": { + "start": { + "line": 75, + "column": 52 + }, + "end": { + "line": 75, + "column": 57 + } + }, + "name": "count" + }, + "computed": false + } + } + }, + { + "type": "ReturnStatement", + "start": 2400, + "end": 2411, + "loc": { + "start": { + "line": 76, + "column": 32 + }, + "end": { + "line": 76, + "column": 43 + } + }, + "argument": { + "type": "Identifier", + "start": 2407, + "end": 2411, + "loc": { + "start": { + "line": 76, + "column": 39 + }, + "end": { + "line": 76, + "column": 43 + } + }, + "name": "prev" + } + } + ] + }, + "alternate": null + }, + { + "type": "ExpressionStatement", + "start": 2471, + "end": 2658, + "loc": { + "start": { + "line": 79, + "column": 28 + }, + "end": { + "line": 83, + "column": 29 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 2471, + "end": 2658, + "loc": { + "start": { + "line": 79, + "column": 28 + }, + "end": { + "line": 83, + "column": 29 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 2471, + "end": 2490, + "loc": { + "start": { + "line": 79, + "column": 28 + }, + "end": { + "line": 79, + "column": 47 + } + }, + "object": { + "type": "Identifier", + "start": 2471, + "end": 2475, + "loc": { + "start": { + "line": 79, + "column": 28 + }, + "end": { + "line": 79, + "column": 32 + } + }, + "name": "prev" + }, + "property": { + "type": "BinaryExpression", + "start": 2476, + "end": 2489, + "loc": { + "start": { + "line": 79, + "column": 33 + }, + "end": { + "line": 79, + "column": 46 + } + }, + "left": { + "type": "Identifier", + "start": 2476, + "end": 2480, + "loc": { + "start": { + "line": 79, + "column": 33 + }, + "end": { + "line": 79, + "column": 37 + } + }, + "name": "word" + }, + "operator": "+", + "right": { + "type": "MemberExpression", + "start": 2483, + "end": 2489, + "loc": { + "start": { + "line": 79, + "column": 40 + }, + "end": { + "line": 79, + "column": 46 + } + }, + "object": { + "type": "Identifier", + "start": 2483, + "end": 2484, + "loc": { + "start": { + "line": 79, + "column": 40 + }, + "end": { + "line": 79, + "column": 41 + } + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 2485, + "end": 2489, + "loc": { + "start": { + "line": 79, + "column": 42 + }, + "end": { + "line": 79, + "column": 46 + } + }, + "name": "type" + }, + "computed": false + } + }, + "computed": true + }, + "right": { + "type": "ObjectExpression", + "start": 2493, + "end": 2658, + "loc": { + "start": { + "line": 79, + "column": 50 + }, + "end": { + "line": 83, + "column": 29 + } + }, + "properties": [ + { + "type": "Property", + "start": 2527, + "end": 2539, + "loc": { + "start": { + "line": 80, + "column": 32 + }, + "end": { + "line": 80, + "column": 44 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2527, + "end": 2531, + "loc": { + "start": { + "line": 80, + "column": 32 + }, + "end": { + "line": 80, + "column": 36 + } + }, + "name": "word" + }, + "value": { + "type": "MemberExpression", + "start": 2533, + "end": 2539, + "loc": { + "start": { + "line": 80, + "column": 38 + }, + "end": { + "line": 80, + "column": 44 + } + }, + "object": { + "type": "Identifier", + "start": 2533, + "end": 2534, + "loc": { + "start": { + "line": 80, + "column": 38 + }, + "end": { + "line": 80, + "column": 39 + } + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 2535, + "end": 2539, + "loc": { + "start": { + "line": 80, + "column": 40 + }, + "end": { + "line": 80, + "column": 44 + } + }, + "name": "word" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 2573, + "end": 2585, + "loc": { + "start": { + "line": 81, + "column": 32 + }, + "end": { + "line": 81, + "column": 44 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2573, + "end": 2577, + "loc": { + "start": { + "line": 81, + "column": 32 + }, + "end": { + "line": 81, + "column": 36 + } + }, + "name": "type" + }, + "value": { + "type": "MemberExpression", + "start": 2579, + "end": 2585, + "loc": { + "start": { + "line": 81, + "column": 38 + }, + "end": { + "line": 81, + "column": 44 + } + }, + "object": { + "type": "Identifier", + "start": 2579, + "end": 2580, + "loc": { + "start": { + "line": 81, + "column": 38 + }, + "end": { + "line": 81, + "column": 39 + } + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 2581, + "end": 2585, + "loc": { + "start": { + "line": 81, + "column": 40 + }, + "end": { + "line": 81, + "column": 44 + } + }, + "name": "type" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 2619, + "end": 2627, + "loc": { + "start": { + "line": 82, + "column": 32 + }, + "end": { + "line": 82, + "column": 40 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2619, + "end": 2624, + "loc": { + "start": { + "line": 82, + "column": 32 + }, + "end": { + "line": 82, + "column": 37 + } + }, + "name": "count" + }, + "value": { + "type": "Literal", + "start": 2626, + "end": 2627, + "loc": { + "start": { + "line": 82, + "column": 39 + }, + "end": { + "line": 82, + "column": 40 + } + }, + "value": 1, + "rawValue": 1, + "raw": "1" + }, + "kind": "init" + } + ] + } + } + }, + { + "type": "ReturnStatement", + "start": 2688, + "end": 2699, + "loc": { + "start": { + "line": 85, + "column": 28 + }, + "end": { + "line": 85, + "column": 39 + } + }, + "argument": { + "type": "Identifier", + "start": 2695, + "end": 2699, + "loc": { + "start": { + "line": 85, + "column": 35 + }, + "end": { + "line": 85, + "column": 39 + } + }, + "name": "prev" + } + } + ] + } + }, + { + "type": "ObjectExpression", + "start": 2728, + "end": 2730, + "loc": { + "start": { + "line": 87, + "column": 27 + }, + "end": { + "line": 87, + "column": 29 + } + }, + "properties": [] + } + ] + } + ] + } + } + ] + }, + "kind": "init" + } + ] + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 2801, + "end": 2813, + "loc": { + "start": { + "line": 91, + "column": 12 + }, + "end": { + "line": 91, + "column": 24 + } + }, + "argument": { + "type": "Identifier", + "start": 2808, + "end": 2813, + "loc": { + "start": { + "line": 91, + "column": 19 + }, + "end": { + "line": 91, + "column": 24 + } + }, + "name": "state" + } + } + ], + "test": { + "type": "MemberExpression", + "start": 752, + "end": 772, + "loc": { + "start": { + "line": 38, + "column": 13 + }, + "end": { + "line": 38, + "column": 33 + } + }, + "object": { + "type": "Identifier", + "start": 752, + "end": 765, + "loc": { + "start": { + "line": 38, + "column": 13 + }, + "end": { + "line": 38, + "column": 26 + } + }, + "name": "SearchActions" + }, + "property": { + "type": "Identifier", + "start": 766, + "end": 772, + "loc": { + "start": { + "line": 38, + "column": 27 + }, + "end": { + "line": 38, + "column": 33 + } + }, + "name": "SEARCH" + }, + "computed": false + } + }, + { + "type": "SwitchCase", + "start": 2823, + "end": 3042, + "loc": { + "start": { + "line": 93, + "column": 8 + }, + "end": { + "line": 99, + "column": 24 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 2862, + "end": 3017, + "loc": { + "start": { + "line": 94, + "column": 12 + }, + "end": { + "line": 98, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 2866, + "end": 2881, + "loc": { + "start": { + "line": 94, + "column": 16 + }, + "end": { + "line": 94, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 2866, + "end": 2872, + "loc": { + "start": { + "line": 94, + "column": 16 + }, + "end": { + "line": 94, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 2873, + "end": 2881, + "loc": { + "start": { + "line": 94, + "column": 23 + }, + "end": { + "line": 94, + "column": 31 + } + }, + "name": "response" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 2883, + "end": 3017, + "loc": { + "start": { + "line": 94, + "column": 33 + }, + "end": { + "line": 98, + "column": 13 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 2901, + "end": 3003, + "loc": { + "start": { + "line": 95, + "column": 16 + }, + "end": { + "line": 97, + "column": 18 + } + }, + "argument": { + "type": "CallExpression", + "start": 2908, + "end": 3003, + "loc": { + "start": { + "line": 95, + "column": 23 + }, + "end": { + "line": 97, + "column": 18 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2908, + "end": 2921, + "loc": { + "start": { + "line": 95, + "column": 23 + }, + "end": { + "line": 95, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 2908, + "end": 2914, + "loc": { + "start": { + "line": 95, + "column": 23 + }, + "end": { + "line": 95, + "column": 29 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 2915, + "end": 2921, + "loc": { + "start": { + "line": 95, + "column": 30 + }, + "end": { + "line": 95, + "column": 36 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 2922, + "end": 2924, + "loc": { + "start": { + "line": 95, + "column": 37 + }, + "end": { + "line": 95, + "column": 39 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 2926, + "end": 2931, + "loc": { + "start": { + "line": 95, + "column": 41 + }, + "end": { + "line": 95, + "column": 46 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 2933, + "end": 3002, + "loc": { + "start": { + "line": 95, + "column": 48 + }, + "end": { + "line": 97, + "column": 17 + } + }, + "properties": [ + { + "type": "Property", + "start": 2955, + "end": 2983, + "loc": { + "start": { + "line": 96, + "column": 20 + }, + "end": { + "line": 96, + "column": 48 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2955, + "end": 2961, + "loc": { + "start": { + "line": 96, + "column": 20 + }, + "end": { + "line": 96, + "column": 26 + } + }, + "name": "recent" + }, + "value": { + "type": "ArrayExpression", + "start": 2963, + "end": 2983, + "loc": { + "start": { + "line": 96, + "column": 28 + }, + "end": { + "line": 96, + "column": 48 + } + }, + "elements": [ + { + "type": "SpreadElement", + "start": 2964, + "end": 2982, + "loc": { + "start": { + "line": 96, + "column": 29 + }, + "end": { + "line": 96, + "column": 47 + } + }, + "argument": { + "type": "MemberExpression", + "start": 2967, + "end": 2982, + "loc": { + "start": { + "line": 96, + "column": 32 + }, + "end": { + "line": 96, + "column": 47 + } + }, + "object": { + "type": "Identifier", + "start": 2967, + "end": 2973, + "loc": { + "start": { + "line": 96, + "column": 32 + }, + "end": { + "line": 96, + "column": 38 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 2974, + "end": 2982, + "loc": { + "start": { + "line": 96, + "column": 39 + }, + "end": { + "line": 96, + "column": 47 + } + }, + "name": "response" + }, + "computed": false + } + } + ] + }, + "kind": "init" + } + ] + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 3030, + "end": 3042, + "loc": { + "start": { + "line": 99, + "column": 12 + }, + "end": { + "line": 99, + "column": 24 + } + }, + "argument": { + "type": "Identifier", + "start": 3037, + "end": 3042, + "loc": { + "start": { + "line": 99, + "column": 19 + }, + "end": { + "line": 99, + "column": 24 + } + }, + "name": "state" + } + } + ], + "test": { + "type": "MemberExpression", + "start": 2828, + "end": 2848, + "loc": { + "start": { + "line": 93, + "column": 13 + }, + "end": { + "line": 93, + "column": 33 + } + }, + "object": { + "type": "Identifier", + "start": 2828, + "end": 2841, + "loc": { + "start": { + "line": 93, + "column": 13 + }, + "end": { + "line": 93, + "column": 26 + } + }, + "name": "SearchActions" + }, + "property": { + "type": "Identifier", + "start": 2842, + "end": 2848, + "loc": { + "start": { + "line": 93, + "column": 27 + }, + "end": { + "line": 93, + "column": 33 + } + }, + "name": "RECENT" + }, + "computed": false + } + }, + { + "type": "SwitchCase", + "start": 3052, + "end": 3272, + "loc": { + "start": { + "line": 101, + "column": 8 + }, + "end": { + "line": 107, + "column": 24 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 3092, + "end": 3247, + "loc": { + "start": { + "line": 102, + "column": 12 + }, + "end": { + "line": 106, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 3096, + "end": 3111, + "loc": { + "start": { + "line": 102, + "column": 16 + }, + "end": { + "line": 102, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 3096, + "end": 3102, + "loc": { + "start": { + "line": 102, + "column": 16 + }, + "end": { + "line": 102, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 3103, + "end": 3111, + "loc": { + "start": { + "line": 102, + "column": 23 + }, + "end": { + "line": 102, + "column": 31 + } + }, + "name": "response" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 3113, + "end": 3247, + "loc": { + "start": { + "line": 102, + "column": 33 + }, + "end": { + "line": 106, + "column": 13 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 3131, + "end": 3233, + "loc": { + "start": { + "line": 103, + "column": 16 + }, + "end": { + "line": 105, + "column": 18 + } + }, + "argument": { + "type": "CallExpression", + "start": 3138, + "end": 3233, + "loc": { + "start": { + "line": 103, + "column": 23 + }, + "end": { + "line": 105, + "column": 18 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3138, + "end": 3151, + "loc": { + "start": { + "line": 103, + "column": 23 + }, + "end": { + "line": 103, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 3138, + "end": 3144, + "loc": { + "start": { + "line": 103, + "column": 23 + }, + "end": { + "line": 103, + "column": 29 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 3145, + "end": 3151, + "loc": { + "start": { + "line": 103, + "column": 30 + }, + "end": { + "line": 103, + "column": 36 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 3152, + "end": 3154, + "loc": { + "start": { + "line": 103, + "column": 37 + }, + "end": { + "line": 103, + "column": 39 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 3156, + "end": 3161, + "loc": { + "start": { + "line": 103, + "column": 41 + }, + "end": { + "line": 103, + "column": 46 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 3163, + "end": 3232, + "loc": { + "start": { + "line": 103, + "column": 48 + }, + "end": { + "line": 105, + "column": 17 + } + }, + "properties": [ + { + "type": "Property", + "start": 3185, + "end": 3214, + "loc": { + "start": { + "line": 104, + "column": 20 + }, + "end": { + "line": 104, + "column": 49 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3185, + "end": 3192, + "loc": { + "start": { + "line": 104, + "column": 20 + }, + "end": { + "line": 104, + "column": 27 + } + }, + "name": "results" + }, + "value": { + "type": "ArrayExpression", + "start": 3194, + "end": 3214, + "loc": { + "start": { + "line": 104, + "column": 29 + }, + "end": { + "line": 104, + "column": 49 + } + }, + "elements": [ + { + "type": "SpreadElement", + "start": 3195, + "end": 3213, + "loc": { + "start": { + "line": 104, + "column": 30 + }, + "end": { + "line": 104, + "column": 48 + } + }, + "argument": { + "type": "MemberExpression", + "start": 3198, + "end": 3213, + "loc": { + "start": { + "line": 104, + "column": 33 + }, + "end": { + "line": 104, + "column": 48 + } + }, + "object": { + "type": "Identifier", + "start": 3198, + "end": 3204, + "loc": { + "start": { + "line": 104, + "column": 33 + }, + "end": { + "line": 104, + "column": 39 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 3205, + "end": 3213, + "loc": { + "start": { + "line": 104, + "column": 40 + }, + "end": { + "line": 104, + "column": 48 + } + }, + "name": "response" + }, + "computed": false + } + } + ] + }, + "kind": "init" + } + ] + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 3260, + "end": 3272, + "loc": { + "start": { + "line": 107, + "column": 12 + }, + "end": { + "line": 107, + "column": 24 + } + }, + "argument": { + "type": "Identifier", + "start": 3267, + "end": 3272, + "loc": { + "start": { + "line": 107, + "column": 19 + }, + "end": { + "line": 107, + "column": 24 + } + }, + "name": "state" + } + } + ], + "test": { + "type": "MemberExpression", + "start": 3057, + "end": 3078, + "loc": { + "start": { + "line": 101, + "column": 13 + }, + "end": { + "line": 101, + "column": 34 + } + }, + "object": { + "type": "Identifier", + "start": 3057, + "end": 3070, + "loc": { + "start": { + "line": 101, + "column": 13 + }, + "end": { + "line": 101, + "column": 26 + } + }, + "name": "SearchActions" + }, + "property": { + "type": "Identifier", + "start": 3071, + "end": 3078, + "loc": { + "start": { + "line": 101, + "column": 27 + }, + "end": { + "line": 101, + "column": 34 + } + }, + "name": "RESULTS" + }, + "computed": false + } + } + ] + }, + { + "type": "ReturnStatement", + "start": 3285, + "end": 3297, + "loc": { + "start": { + "line": 111, + "column": 4 + }, + "end": { + "line": 111, + "column": 16 + } + }, + "argument": { + "type": "Identifier", + "start": 3292, + "end": 3297, + "loc": { + "start": { + "line": 111, + "column": 11 + }, + "end": { + "line": 111, + "column": 16 + } + }, + "name": "state" + } + } + ] + }, + "leadingComments": [], + "name": "_", + "trailingComments": [] + }, + { + "type": "Identifier", + "start": 3301, + "end": 3322, + "loc": { + "start": { + "line": 114, + "column": 0 + }, + "end": { + "line": 114, + "column": 21 + } + }, + "declaration": { + "type": "Identifier", + "start": 3316, + "end": 3322, + "loc": { + "start": { + "line": 114, + "column": 15 + }, + "end": { + "line": 114, + "column": 21 + } + }, + "name": "Search" + }, + "name": "_", + "leadingComments": [], + "trailingComments": [] + }, + { + "type": "ExportDefaultDeclaration", + "start": 3301, + "end": 3322, + "loc": { + "start": { + "line": 114, + "column": 0 + }, + "end": { + "line": 114, + "column": 21 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 477, + "end": 3299, + "loc": { + "start": { + "line": 29, + "column": 0 + }, + "end": { + "line": 112, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 486, + "end": 492, + "loc": { + "start": { + "line": 29, + "column": 9 + }, + "end": { + "line": 29, + "column": 15 + } + }, + "name": "Search", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "AssignmentPattern", + "start": 493, + "end": 513, + "loc": { + "start": { + "line": 29, + "column": 16 + }, + "end": { + "line": 29, + "column": 36 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 493, + "end": 498, + "loc": { + "start": { + "line": 29, + "column": 16 + }, + "end": { + "line": 29, + "column": 21 + } + }, + "name": "state" + }, + "right": { + "type": "Identifier", + "start": 501, + "end": 513, + "loc": { + "start": { + "line": 29, + "column": 24 + }, + "end": { + "line": 29, + "column": 36 + } + }, + "name": "initialState" + } + }, + { + "type": "Identifier", + "start": 515, + "end": 521, + "loc": { + "start": { + "line": 29, + "column": 38 + }, + "end": { + "line": 29, + "column": 44 + } + }, + "name": "action" + } + ], + "body": { + "type": "BlockStatement", + "start": 523, + "end": 3299, + "loc": { + "start": { + "line": 29, + "column": 46 + }, + "end": { + "line": 112, + "column": 1 + } + }, + "body": [ + { + "type": "SwitchStatement", + "start": 530, + "end": 3279, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 109, + "column": 5 + } + }, + "discriminant": { + "type": "MemberExpression", + "start": 538, + "end": 549, + "loc": { + "start": { + "line": 31, + "column": 12 + }, + "end": { + "line": 31, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 538, + "end": 544, + "loc": { + "start": { + "line": 31, + "column": 12 + }, + "end": { + "line": 31, + "column": 18 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 545, + "end": 549, + "loc": { + "start": { + "line": 31, + "column": 19 + }, + "end": { + "line": 31, + "column": 23 + } + }, + "name": "type" + }, + "computed": false + }, + "cases": [ + { + "type": "SwitchCase", + "start": 561, + "end": 737, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 36, + "column": 24 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 601, + "end": 712, + "loc": { + "start": { + "line": 33, + "column": 12 + }, + "end": { + "line": 35, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 605, + "end": 620, + "loc": { + "start": { + "line": 33, + "column": 16 + }, + "end": { + "line": 33, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 605, + "end": 611, + "loc": { + "start": { + "line": 33, + "column": 16 + }, + "end": { + "line": 33, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 612, + "end": 620, + "loc": { + "start": { + "line": 33, + "column": 23 + }, + "end": { + "line": 33, + "column": 31 + } + }, + "name": "response" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 622, + "end": 712, + "loc": { + "start": { + "line": 33, + "column": 33 + }, + "end": { + "line": 35, + "column": 13 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 640, + "end": 698, + "loc": { + "start": { + "line": 34, + "column": 16 + }, + "end": { + "line": 34, + "column": 74 + } + }, + "argument": { + "type": "CallExpression", + "start": 647, + "end": 698, + "loc": { + "start": { + "line": 34, + "column": 23 + }, + "end": { + "line": 34, + "column": 74 + } + }, + "callee": { + "type": "MemberExpression", + "start": 647, + "end": 660, + "loc": { + "start": { + "line": 34, + "column": 23 + }, + "end": { + "line": 34, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 647, + "end": 653, + "loc": { + "start": { + "line": 34, + "column": 23 + }, + "end": { + "line": 34, + "column": 29 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 654, + "end": 660, + "loc": { + "start": { + "line": 34, + "column": 30 + }, + "end": { + "line": 34, + "column": 36 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 661, + "end": 663, + "loc": { + "start": { + "line": 34, + "column": 37 + }, + "end": { + "line": 34, + "column": 39 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 665, + "end": 670, + "loc": { + "start": { + "line": 34, + "column": 41 + }, + "end": { + "line": 34, + "column": 46 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 672, + "end": 697, + "loc": { + "start": { + "line": 34, + "column": 48 + }, + "end": { + "line": 34, + "column": 73 + } + }, + "properties": [ + { + "type": "Property", + "start": 674, + "end": 695, + "loc": { + "start": { + "line": 34, + "column": 50 + }, + "end": { + "line": 34, + "column": 71 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 674, + "end": 680, + "loc": { + "start": { + "line": 34, + "column": 50 + }, + "end": { + "line": 34, + "column": 56 + } + }, + "name": "active" + }, + "value": { + "type": "MemberExpression", + "start": 682, + "end": 695, + "loc": { + "start": { + "line": 34, + "column": 58 + }, + "end": { + "line": 34, + "column": 71 + } + }, + "object": { + "type": "Identifier", + "start": 682, + "end": 688, + "loc": { + "start": { + "line": 34, + "column": 58 + }, + "end": { + "line": 34, + "column": 64 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 689, + "end": 695, + "loc": { + "start": { + "line": 34, + "column": 65 + }, + "end": { + "line": 34, + "column": 71 + } + }, + "name": "search" + }, + "computed": false + }, + "kind": "init" + } + ] + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 725, + "end": 737, + "loc": { + "start": { + "line": 36, + "column": 12 + }, + "end": { + "line": 36, + "column": 24 + } + }, + "argument": { + "type": "Identifier", + "start": 732, + "end": 737, + "loc": { + "start": { + "line": 36, + "column": 19 + }, + "end": { + "line": 36, + "column": 24 + } + }, + "name": "state" + } + } + ], + "test": { + "type": "MemberExpression", + "start": 566, + "end": 587, + "loc": { + "start": { + "line": 32, + "column": 13 + }, + "end": { + "line": 32, + "column": 34 + } + }, + "object": { + "type": "Identifier", + "start": 566, + "end": 579, + "loc": { + "start": { + "line": 32, + "column": 13 + }, + "end": { + "line": 32, + "column": 26 + } + }, + "name": "SearchActions" + }, + "property": { + "type": "Identifier", + "start": 580, + "end": 587, + "loc": { + "start": { + "line": 32, + "column": 27 + }, + "end": { + "line": 32, + "column": 34 + } + }, + "name": "TRIGGER" + }, + "computed": false + } + }, + { + "type": "SwitchCase", + "start": 747, + "end": 2813, + "loc": { + "start": { + "line": 38, + "column": 8 + }, + "end": { + "line": 91, + "column": 24 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 786, + "end": 2788, + "loc": { + "start": { + "line": 39, + "column": 12 + }, + "end": { + "line": 90, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 790, + "end": 805, + "loc": { + "start": { + "line": 39, + "column": 16 + }, + "end": { + "line": 39, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 790, + "end": 796, + "loc": { + "start": { + "line": 39, + "column": 16 + }, + "end": { + "line": 39, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 797, + "end": 805, + "loc": { + "start": { + "line": 39, + "column": 23 + }, + "end": { + "line": 39, + "column": 31 + } + }, + "name": "response" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 807, + "end": 2788, + "loc": { + "start": { + "line": 39, + "column": 33 + }, + "end": { + "line": 90, + "column": 13 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 825, + "end": 2774, + "loc": { + "start": { + "line": 40, + "column": 16 + }, + "end": { + "line": 89, + "column": 18 + } + }, + "argument": { + "type": "CallExpression", + "start": 832, + "end": 2774, + "loc": { + "start": { + "line": 40, + "column": 23 + }, + "end": { + "line": 89, + "column": 18 + } + }, + "callee": { + "type": "MemberExpression", + "start": 832, + "end": 845, + "loc": { + "start": { + "line": 40, + "column": 23 + }, + "end": { + "line": 40, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 832, + "end": 838, + "loc": { + "start": { + "line": 40, + "column": 23 + }, + "end": { + "line": 40, + "column": 29 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 839, + "end": 845, + "loc": { + "start": { + "line": 40, + "column": 30 + }, + "end": { + "line": 40, + "column": 36 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 846, + "end": 848, + "loc": { + "start": { + "line": 40, + "column": 37 + }, + "end": { + "line": 40, + "column": 39 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 850, + "end": 855, + "loc": { + "start": { + "line": 40, + "column": 41 + }, + "end": { + "line": 40, + "column": 46 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 857, + "end": 2773, + "loc": { + "start": { + "line": 40, + "column": 48 + }, + "end": { + "line": 89, + "column": 17 + } + }, + "properties": [ + { + "type": "Property", + "start": 879, + "end": 896, + "loc": { + "start": { + "line": 41, + "column": 20 + }, + "end": { + "line": 41, + "column": 37 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 879, + "end": 883, + "loc": { + "start": { + "line": 41, + "column": 20 + }, + "end": { + "line": 41, + "column": 24 + } + }, + "name": "term" + }, + "value": { + "type": "MemberExpression", + "start": 885, + "end": 896, + "loc": { + "start": { + "line": 41, + "column": 26 + }, + "end": { + "line": 41, + "column": 37 + } + }, + "object": { + "type": "Identifier", + "start": 885, + "end": 891, + "loc": { + "start": { + "line": 41, + "column": 26 + }, + "end": { + "line": 41, + "column": 32 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 892, + "end": 896, + "loc": { + "start": { + "line": 41, + "column": 33 + }, + "end": { + "line": 41, + "column": 37 + } + }, + "name": "term" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 918, + "end": 947, + "loc": { + "start": { + "line": 42, + "column": 20 + }, + "end": { + "line": 42, + "column": 49 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 918, + "end": 923, + "loc": { + "start": { + "line": 42, + "column": 20 + }, + "end": { + "line": 42, + "column": 25 + } + }, + "name": "total" + }, + "value": { + "type": "MemberExpression", + "start": 925, + "end": 947, + "loc": { + "start": { + "line": 42, + "column": 27 + }, + "end": { + "line": 42, + "column": 49 + } + }, + "object": { + "type": "MemberExpression", + "start": 925, + "end": 940, + "loc": { + "start": { + "line": 42, + "column": 27 + }, + "end": { + "line": 42, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 925, + "end": 931, + "loc": { + "start": { + "line": 42, + "column": 27 + }, + "end": { + "line": 42, + "column": 33 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 932, + "end": 940, + "loc": { + "start": { + "line": 42, + "column": 34 + }, + "end": { + "line": 42, + "column": 42 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 941, + "end": 947, + "loc": { + "start": { + "line": 42, + "column": 43 + }, + "end": { + "line": 42, + "column": 49 + } + }, + "name": "nbHits" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 969, + "end": 2755, + "loc": { + "start": { + "line": 43, + "column": 20 + }, + "end": { + "line": 88, + "column": 21 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 969, + "end": 973, + "loc": { + "start": { + "line": 43, + "column": 20 + }, + "end": { + "line": 43, + "column": 24 + } + }, + "name": "hits" + }, + "value": { + "type": "ArrayExpression", + "start": 975, + "end": 2755, + "loc": { + "start": { + "line": 43, + "column": 26 + }, + "end": { + "line": 88, + "column": 21 + } + }, + "elements": [ + { + "type": "SpreadElement", + "start": 1001, + "end": 2732, + "loc": { + "start": { + "line": 44, + "column": 24 + }, + "end": { + "line": 87, + "column": 31 + } + }, + "argument": { + "type": "CallExpression", + "start": 1004, + "end": 2732, + "loc": { + "start": { + "line": 44, + "column": 27 + }, + "end": { + "line": 87, + "column": 31 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1004, + "end": 1017, + "loc": { + "start": { + "line": 44, + "column": 27 + }, + "end": { + "line": 44, + "column": 40 + } + }, + "object": { + "type": "Identifier", + "start": 1004, + "end": 1010, + "loc": { + "start": { + "line": 44, + "column": 27 + }, + "end": { + "line": 44, + "column": 33 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 1011, + "end": 1017, + "loc": { + "start": { + "line": 44, + "column": 34 + }, + "end": { + "line": 44, + "column": 40 + } + }, + "name": "values" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1018, + "end": 2731, + "loc": { + "start": { + "line": 44, + "column": 41 + }, + "end": { + "line": 87, + "column": 30 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1018, + "end": 2171, + "loc": { + "start": { + "line": 44, + "column": 41 + }, + "end": { + "line": 70, + "column": 53 + } + }, + "object": { + "type": "CallExpression", + "start": 1018, + "end": 2164, + "loc": { + "start": { + "line": 44, + "column": 41 + }, + "end": { + "line": 70, + "column": 46 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1018, + "end": 2151, + "loc": { + "start": { + "line": 44, + "column": 41 + }, + "end": { + "line": 70, + "column": 33 + } + }, + "object": { + "type": "CallExpression", + "start": 1018, + "end": 2144, + "loc": { + "start": { + "line": 44, + "column": 41 + }, + "end": { + "line": 70, + "column": 26 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1018, + "end": 1042, + "loc": { + "start": { + "line": 44, + "column": 41 + }, + "end": { + "line": 44, + "column": 65 + } + }, + "object": { + "type": "MemberExpression", + "start": 1018, + "end": 1038, + "loc": { + "start": { + "line": 44, + "column": 41 + }, + "end": { + "line": 44, + "column": 61 + } + }, + "object": { + "type": "MemberExpression", + "start": 1018, + "end": 1033, + "loc": { + "start": { + "line": 44, + "column": 41 + }, + "end": { + "line": 44, + "column": 56 + } + }, + "object": { + "type": "Identifier", + "start": 1018, + "end": 1024, + "loc": { + "start": { + "line": 44, + "column": 41 + }, + "end": { + "line": 44, + "column": 47 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1025, + "end": 1033, + "loc": { + "start": { + "line": 44, + "column": 48 + }, + "end": { + "line": 44, + "column": 56 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1034, + "end": 1038, + "loc": { + "start": { + "line": 44, + "column": 57 + }, + "end": { + "line": 44, + "column": 61 + } + }, + "name": "hits" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1039, + "end": 1042, + "loc": { + "start": { + "line": 44, + "column": 62 + }, + "end": { + "line": 44, + "column": 65 + } + }, + "name": "map" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 1043, + "end": 2143, + "loc": { + "start": { + "line": 44, + "column": 66 + }, + "end": { + "line": 70, + "column": 25 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1043, + "end": 1044, + "loc": { + "start": { + "line": 44, + "column": 66 + }, + "end": { + "line": 44, + "column": 67 + } + }, + "name": "a" + } + ], + "body": { + "type": "BlockStatement", + "start": 1048, + "end": 2143, + "loc": { + "start": { + "line": 44, + "column": 71 + }, + "end": { + "line": 70, + "column": 25 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 1078, + "end": 1122, + "loc": { + "start": { + "line": 45, + "column": 28 + }, + "end": { + "line": 45, + "column": 72 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1084, + "end": 1122, + "loc": { + "start": { + "line": 45, + "column": 34 + }, + "end": { + "line": 45, + "column": 72 + } + }, + "id": { + "type": "Identifier", + "start": 1084, + "end": 1088, + "loc": { + "start": { + "line": 45, + "column": 34 + }, + "end": { + "line": 45, + "column": 38 + } + }, + "name": "keys" + }, + "init": { + "type": "CallExpression", + "start": 1091, + "end": 1122, + "loc": { + "start": { + "line": 45, + "column": 41 + }, + "end": { + "line": 45, + "column": 72 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1091, + "end": 1102, + "loc": { + "start": { + "line": 45, + "column": 41 + }, + "end": { + "line": 45, + "column": 52 + } + }, + "object": { + "type": "Identifier", + "start": 1091, + "end": 1097, + "loc": { + "start": { + "line": 45, + "column": 41 + }, + "end": { + "line": 45, + "column": 47 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 1098, + "end": 1102, + "loc": { + "start": { + "line": 45, + "column": 48 + }, + "end": { + "line": 45, + "column": 52 + } + }, + "name": "keys" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 1103, + "end": 1121, + "loc": { + "start": { + "line": 45, + "column": 53 + }, + "end": { + "line": 45, + "column": 71 + } + }, + "object": { + "type": "Identifier", + "start": 1103, + "end": 1104, + "loc": { + "start": { + "line": 45, + "column": 53 + }, + "end": { + "line": 45, + "column": 54 + } + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 1105, + "end": 1121, + "loc": { + "start": { + "line": 45, + "column": 55 + }, + "end": { + "line": 45, + "column": 71 + } + }, + "name": "_highlightResult" + }, + "computed": false + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "VariableDeclaration", + "start": 1151, + "end": 1169, + "loc": { + "start": { + "line": 46, + "column": 28 + }, + "end": { + "line": 46, + "column": 46 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1155, + "end": 1169, + "loc": { + "start": { + "line": 46, + "column": 32 + }, + "end": { + "line": 46, + "column": 46 + } + }, + "id": { + "type": "Identifier", + "start": 1155, + "end": 1159, + "loc": { + "start": { + "line": 46, + "column": 32 + }, + "end": { + "line": 46, + "column": 36 + } + }, + "name": "type" + }, + "init": { + "type": "MemberExpression", + "start": 1162, + "end": 1169, + "loc": { + "start": { + "line": 46, + "column": 39 + }, + "end": { + "line": 46, + "column": 46 + } + }, + "object": { + "type": "Identifier", + "start": 1162, + "end": 1166, + "loc": { + "start": { + "line": 46, + "column": 39 + }, + "end": { + "line": 46, + "column": 43 + } + }, + "name": "keys" + }, + "property": { + "type": "Literal", + "start": 1167, + "end": 1168, + "loc": { + "start": { + "line": 46, + "column": 44 + }, + "end": { + "line": 46, + "column": 45 + } + }, + "value": 0, + "rawValue": 0, + "raw": "0" + }, + "computed": true + } + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 1199, + "end": 1208, + "loc": { + "start": { + "line": 48, + "column": 28 + }, + "end": { + "line": 48, + "column": 37 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1203, + "end": 1207, + "loc": { + "start": { + "line": 48, + "column": 32 + }, + "end": { + "line": 48, + "column": 36 + } + }, + "id": { + "type": "Identifier", + "start": 1203, + "end": 1207, + "loc": { + "start": { + "line": 48, + "column": 32 + }, + "end": { + "line": 48, + "column": 36 + } + }, + "name": "word" + }, + "init": null + } + ], + "kind": "let" + }, + { + "type": "SwitchStatement", + "start": 1237, + "end": 1972, + "loc": { + "start": { + "line": 49, + "column": 28 + }, + "end": { + "line": 63, + "column": 29 + } + }, + "discriminant": { + "type": "Identifier", + "start": 1245, + "end": 1249, + "loc": { + "start": { + "line": 49, + "column": 36 + }, + "end": { + "line": 49, + "column": 40 + } + }, + "name": "type" + }, + "cases": [ + { + "type": "SwitchCase", + "start": 1285, + "end": 1423, + "loc": { + "start": { + "line": 50, + "column": 32 + }, + "end": { + "line": 52, + "column": 37 + } + }, + "consequent": [ + { + "type": "ExpressionStatement", + "start": 1338, + "end": 1385, + "loc": { + "start": { + "line": 51, + "column": 36 + }, + "end": { + "line": 51, + "column": 83 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1338, + "end": 1385, + "loc": { + "start": { + "line": 51, + "column": 36 + }, + "end": { + "line": 51, + "column": 83 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 1338, + "end": 1342, + "loc": { + "start": { + "line": 51, + "column": 36 + }, + "end": { + "line": 51, + "column": 40 + } + }, + "name": "word" + }, + "right": { + "type": "MemberExpression", + "start": 1345, + "end": 1385, + "loc": { + "start": { + "line": 51, + "column": 43 + }, + "end": { + "line": 51, + "column": 83 + } + }, + "object": { + "type": "MemberExpression", + "start": 1345, + "end": 1382, + "loc": { + "start": { + "line": 51, + "column": 43 + }, + "end": { + "line": 51, + "column": 80 + } + }, + "object": { + "type": "MemberExpression", + "start": 1345, + "end": 1369, + "loc": { + "start": { + "line": 51, + "column": 43 + }, + "end": { + "line": 51, + "column": 67 + } + }, + "object": { + "type": "MemberExpression", + "start": 1345, + "end": 1363, + "loc": { + "start": { + "line": 51, + "column": 43 + }, + "end": { + "line": 51, + "column": 61 + } + }, + "object": { + "type": "Identifier", + "start": 1345, + "end": 1346, + "loc": { + "start": { + "line": 51, + "column": 43 + }, + "end": { + "line": 51, + "column": 44 + } + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 1347, + "end": 1363, + "loc": { + "start": { + "line": 51, + "column": 45 + }, + "end": { + "line": 51, + "column": 61 + } + }, + "name": "_highlightResult" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1364, + "end": 1368, + "loc": { + "start": { + "line": 51, + "column": 62 + }, + "end": { + "line": 51, + "column": 66 + } + }, + "name": "type" + }, + "computed": true + }, + "property": { + "type": "Identifier", + "start": 1370, + "end": 1382, + "loc": { + "start": { + "line": 51, + "column": 68 + }, + "end": { + "line": 51, + "column": 80 + } + }, + "name": "matchedWords" + }, + "computed": false + }, + "property": { + "type": "Literal", + "start": 1383, + "end": 1384, + "loc": { + "start": { + "line": 51, + "column": 81 + }, + "end": { + "line": 51, + "column": 82 + } + }, + "value": 0, + "rawValue": 0, + "raw": "0" + }, + "computed": true + } + } + }, + { + "type": "BreakStatement", + "start": 1418, + "end": 1423, + "loc": { + "start": { + "line": 52, + "column": 32 + }, + "end": { + "line": 52, + "column": 37 + } + }, + "label": null + } + ], + "test": { + "type": "Literal", + "start": 1290, + "end": 1300, + "loc": { + "start": { + "line": 50, + "column": 37 + }, + "end": { + "line": 50, + "column": 47 + } + }, + "value": "hashtags", + "rawValue": "hashtags", + "raw": "'hashtags'" + } + }, + { + "type": "SwitchCase", + "start": 1456, + "end": 1564, + "loc": { + "start": { + "line": 53, + "column": 32 + }, + "end": { + "line": 55, + "column": 37 + } + }, + "consequent": [ + { + "type": "ExpressionStatement", + "start": 1509, + "end": 1526, + "loc": { + "start": { + "line": 54, + "column": 36 + }, + "end": { + "line": 54, + "column": 53 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1509, + "end": 1526, + "loc": { + "start": { + "line": 54, + "column": 36 + }, + "end": { + "line": 54, + "column": 53 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 1509, + "end": 1513, + "loc": { + "start": { + "line": 54, + "column": 36 + }, + "end": { + "line": 54, + "column": 40 + } + }, + "name": "word" + }, + "right": { + "type": "MemberExpression", + "start": 1516, + "end": 1526, + "loc": { + "start": { + "line": 54, + "column": 43 + }, + "end": { + "line": 54, + "column": 53 + } + }, + "object": { + "type": "Identifier", + "start": 1516, + "end": 1517, + "loc": { + "start": { + "line": 54, + "column": 43 + }, + "end": { + "line": 54, + "column": 44 + } + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 1518, + "end": 1526, + "loc": { + "start": { + "line": 54, + "column": 45 + }, + "end": { + "line": 54, + "column": 53 + } + }, + "name": "location" + }, + "computed": false + } + } + }, + { + "type": "BreakStatement", + "start": 1559, + "end": 1564, + "loc": { + "start": { + "line": 55, + "column": 32 + }, + "end": { + "line": 55, + "column": 37 + } + }, + "label": null + } + ], + "test": { + "type": "Literal", + "start": 1461, + "end": 1471, + "loc": { + "start": { + "line": 53, + "column": 37 + }, + "end": { + "line": 53, + "column": 47 + } + }, + "value": "location", + "rawValue": "location", + "raw": "'location'" + } + }, + { + "type": "SwitchCase", + "start": 1597, + "end": 1942, + "loc": { + "start": { + "line": 56, + "column": 32 + }, + "end": { + "line": 62, + "column": 49 + } + }, + "consequent": [ + { + "type": "ExpressionStatement", + "start": 1642, + "end": 1839, + "loc": { + "start": { + "line": 57, + "column": 36 + }, + "end": { + "line": 60, + "column": 37 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1642, + "end": 1839, + "loc": { + "start": { + "line": 57, + "column": 36 + }, + "end": { + "line": 60, + "column": 37 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 1642, + "end": 1646, + "loc": { + "start": { + "line": 57, + "column": 36 + }, + "end": { + "line": 57, + "column": 40 + } + }, + "name": "word" + }, + "right": { + "type": "ObjectExpression", + "start": 1649, + "end": 1839, + "loc": { + "start": { + "line": 57, + "column": 43 + }, + "end": { + "line": 60, + "column": 37 + } + }, + "properties": [ + { + "type": "Property", + "start": 1691, + "end": 1705, + "loc": { + "start": { + "line": 58, + "column": 40 + }, + "end": { + "line": 58, + "column": 54 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1691, + "end": 1696, + "loc": { + "start": { + "line": 58, + "column": 40 + }, + "end": { + "line": 58, + "column": 45 + } + }, + "name": "email" + }, + "value": { + "type": "MemberExpression", + "start": 1698, + "end": 1705, + "loc": { + "start": { + "line": 58, + "column": 47 + }, + "end": { + "line": 58, + "column": 54 + } + }, + "object": { + "type": "Identifier", + "start": 1698, + "end": 1699, + "loc": { + "start": { + "line": 58, + "column": 47 + }, + "end": { + "line": 58, + "column": 48 + } + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 1700, + "end": 1705, + "loc": { + "start": { + "line": 58, + "column": 49 + }, + "end": { + "line": 58, + "column": 54 + } + }, + "name": "email" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1747, + "end": 1801, + "loc": { + "start": { + "line": 59, + "column": 40 + }, + "end": { + "line": 59, + "column": 94 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1747, + "end": 1751, + "loc": { + "start": { + "line": 59, + "column": 40 + }, + "end": { + "line": 59, + "column": 44 + } + }, + "name": "name" + }, + "value": { + "type": "TemplateLiteral", + "start": 1753, + "end": 1801, + "loc": { + "start": { + "line": 59, + "column": 46 + }, + "end": { + "line": 59, + "column": 94 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 1756, + "end": 1768, + "loc": { + "start": { + "line": 59, + "column": 49 + }, + "end": { + "line": 59, + "column": 61 + } + }, + "object": { + "type": "Identifier", + "start": 1756, + "end": 1757, + "loc": { + "start": { + "line": 59, + "column": 49 + }, + "end": { + "line": 59, + "column": 50 + } + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 1758, + "end": 1768, + "loc": { + "start": { + "line": 59, + "column": 51 + }, + "end": { + "line": 59, + "column": 61 + } + }, + "name": "first_name" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 1772, + "end": 1798, + "loc": { + "start": { + "line": 59, + "column": 65 + }, + "end": { + "line": 59, + "column": 91 + } + }, + "object": { + "type": "CallExpression", + "start": 1772, + "end": 1795, + "loc": { + "start": { + "line": 59, + "column": 65 + }, + "end": { + "line": 59, + "column": 88 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1772, + "end": 1793, + "loc": { + "start": { + "line": 59, + "column": 65 + }, + "end": { + "line": 59, + "column": 86 + } + }, + "object": { + "type": "MemberExpression", + "start": 1772, + "end": 1783, + "loc": { + "start": { + "line": 59, + "column": 65 + }, + "end": { + "line": 59, + "column": 76 + } + }, + "object": { + "type": "Identifier", + "start": 1772, + "end": 1773, + "loc": { + "start": { + "line": 59, + "column": 65 + }, + "end": { + "line": 59, + "column": 66 + } + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 1774, + "end": 1783, + "loc": { + "start": { + "line": 59, + "column": 67 + }, + "end": { + "line": 59, + "column": 76 + } + }, + "name": "last_name" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1784, + "end": 1793, + "loc": { + "start": { + "line": 59, + "column": 77 + }, + "end": { + "line": 59, + "column": 86 + } + }, + "name": "substring" + }, + "computed": false + }, + "arguments": [] + }, + "property": { + "type": "Literal", + "start": 1796, + "end": 1797, + "loc": { + "start": { + "line": 59, + "column": 89 + }, + "end": { + "line": 59, + "column": 90 + } + }, + "value": 0, + "rawValue": 0, + "raw": "0" + }, + "computed": true + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 1754, + "end": 1754, + "loc": { + "start": { + "line": 59, + "column": 47 + }, + "end": { + "line": 59, + "column": 47 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 1769, + "end": 1770, + "loc": { + "start": { + "line": 59, + "column": 62 + }, + "end": { + "line": 59, + "column": 63 + } + }, + "value": { + "raw": " ", + "cooked": " " + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 1799, + "end": 1800, + "loc": { + "start": { + "line": 59, + "column": 92 + }, + "end": { + "line": 59, + "column": 93 + } + }, + "value": { + "raw": ".", + "cooked": "." + }, + "tail": true + } + ] + }, + "kind": "init" + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "CommentLine", + "value": "word = a.email", + "start": 1876, + "end": 1892, + "loc": { + "start": { + "line": 61, + "column": 36 + }, + "end": { + "line": 61, + "column": 52 + } + }, + "range": [ + 1876, + 1892 + ] + } + ] + }, + { + "type": "ExpressionStatement", + "start": 1929, + "end": 1942, + "loc": { + "start": { + "line": 62, + "column": 36 + }, + "end": { + "line": 62, + "column": 49 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1929, + "end": 1942, + "loc": { + "start": { + "line": 62, + "column": 36 + }, + "end": { + "line": 62, + "column": 49 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 1929, + "end": 1933, + "loc": { + "start": { + "line": 62, + "column": 36 + }, + "end": { + "line": 62, + "column": 40 + } + }, + "name": "type", + "leadingComments": null + }, + "right": { + "type": "Literal", + "start": 1936, + "end": 1942, + "loc": { + "start": { + "line": 62, + "column": 43 + }, + "end": { + "line": 62, + "column": 49 + } + }, + "value": "user", + "rawValue": "user", + "raw": "'user'" + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": "word = a.email", + "start": 1876, + "end": 1892, + "loc": { + "start": { + "line": 61, + "column": 36 + }, + "end": { + "line": 61, + "column": 52 + } + }, + "range": [ + 1876, + 1892 + ] + } + ] + } + ], + "test": null + } + ] + }, + { + "type": "ReturnStatement", + "start": 2002, + "end": 2116, + "loc": { + "start": { + "line": 65, + "column": 28 + }, + "end": { + "line": 68, + "column": 29 + } + }, + "argument": { + "type": "ObjectExpression", + "start": 2009, + "end": 2116, + "loc": { + "start": { + "line": 65, + "column": 35 + }, + "end": { + "line": 68, + "column": 29 + } + }, + "properties": [ + { + "type": "Property", + "start": 2043, + "end": 2047, + "loc": { + "start": { + "line": 66, + "column": 32 + }, + "end": { + "line": 66, + "column": 36 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 2043, + "end": 2047, + "loc": { + "start": { + "line": 66, + "column": 32 + }, + "end": { + "line": 66, + "column": 36 + } + }, + "name": "word" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 2043, + "end": 2047, + "loc": { + "start": { + "line": 66, + "column": 32 + }, + "end": { + "line": 66, + "column": 36 + } + }, + "name": "word" + } + }, + { + "type": "Property", + "start": 2081, + "end": 2085, + "loc": { + "start": { + "line": 67, + "column": 32 + }, + "end": { + "line": 67, + "column": 36 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 2081, + "end": 2085, + "loc": { + "start": { + "line": 67, + "column": 32 + }, + "end": { + "line": 67, + "column": 36 + } + }, + "name": "type" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 2081, + "end": 2085, + "loc": { + "start": { + "line": 67, + "column": 32 + }, + "end": { + "line": 67, + "column": 36 + } + }, + "name": "type" + } + } + ] + } + } + ] + } + } + ] + }, + "property": { + "type": "Identifier", + "start": 2145, + "end": 2151, + "loc": { + "start": { + "line": 70, + "column": 27 + }, + "end": { + "line": 70, + "column": 33 + } + }, + "name": "filter" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 2152, + "end": 2163, + "loc": { + "start": { + "line": 70, + "column": 34 + }, + "end": { + "line": 70, + "column": 45 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2152, + "end": 2153, + "loc": { + "start": { + "line": 70, + "column": 34 + }, + "end": { + "line": 70, + "column": 35 + } + }, + "name": "a" + } + ], + "body": { + "type": "MemberExpression", + "start": 2157, + "end": 2163, + "loc": { + "start": { + "line": 70, + "column": 39 + }, + "end": { + "line": 70, + "column": 45 + } + }, + "object": { + "type": "Identifier", + "start": 2157, + "end": 2158, + "loc": { + "start": { + "line": 70, + "column": 39 + }, + "end": { + "line": 70, + "column": 40 + } + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 2159, + "end": 2163, + "loc": { + "start": { + "line": 70, + "column": 41 + }, + "end": { + "line": 70, + "column": 45 + } + }, + "name": "word" + }, + "computed": false + } + } + ] + }, + "property": { + "type": "Identifier", + "start": 2165, + "end": 2171, + "loc": { + "start": { + "line": 70, + "column": 47 + }, + "end": { + "line": 70, + "column": 53 + } + }, + "name": "reduce" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 2172, + "end": 2726, + "loc": { + "start": { + "line": 70, + "column": 54 + }, + "end": { + "line": 87, + "column": 25 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2173, + "end": 2177, + "loc": { + "start": { + "line": 70, + "column": 55 + }, + "end": { + "line": 70, + "column": 59 + } + }, + "name": "prev" + }, + { + "type": "Identifier", + "start": 2179, + "end": 2180, + "loc": { + "start": { + "line": 70, + "column": 61 + }, + "end": { + "line": 70, + "column": 62 + } + }, + "name": "a" + } + ], + "body": { + "type": "BlockStatement", + "start": 2185, + "end": 2726, + "loc": { + "start": { + "line": 70, + "column": 67 + }, + "end": { + "line": 87, + "column": 25 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 2216, + "end": 2251, + "loc": { + "start": { + "line": 72, + "column": 28 + }, + "end": { + "line": 72, + "column": 63 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 2222, + "end": 2251, + "loc": { + "start": { + "line": 72, + "column": 34 + }, + "end": { + "line": 72, + "column": 63 + } + }, + "id": { + "type": "Identifier", + "start": 2222, + "end": 2226, + "loc": { + "start": { + "line": 72, + "column": 34 + }, + "end": { + "line": 72, + "column": 38 + } + }, + "name": "word" + }, + "init": { + "type": "LogicalExpression", + "start": 2229, + "end": 2251, + "loc": { + "start": { + "line": 72, + "column": 41 + }, + "end": { + "line": 72, + "column": 63 + } + }, + "left": { + "type": "MemberExpression", + "start": 2229, + "end": 2241, + "loc": { + "start": { + "line": 72, + "column": 41 + }, + "end": { + "line": 72, + "column": 53 + } + }, + "object": { + "type": "MemberExpression", + "start": 2229, + "end": 2235, + "loc": { + "start": { + "line": 72, + "column": 41 + }, + "end": { + "line": 72, + "column": 47 + } + }, + "object": { + "type": "Identifier", + "start": 2229, + "end": 2230, + "loc": { + "start": { + "line": 72, + "column": 41 + }, + "end": { + "line": 72, + "column": 42 + } + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 2231, + "end": 2235, + "loc": { + "start": { + "line": 72, + "column": 43 + }, + "end": { + "line": 72, + "column": 47 + } + }, + "name": "word" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2236, + "end": 2241, + "loc": { + "start": { + "line": 72, + "column": 48 + }, + "end": { + "line": 72, + "column": 53 + } + }, + "name": "email" + }, + "computed": false + }, + "operator": "||", + "right": { + "type": "MemberExpression", + "start": 2245, + "end": 2251, + "loc": { + "start": { + "line": 72, + "column": 57 + }, + "end": { + "line": 72, + "column": 63 + } + }, + "object": { + "type": "Identifier", + "start": 2245, + "end": 2246, + "loc": { + "start": { + "line": 72, + "column": 57 + }, + "end": { + "line": 72, + "column": 58 + } + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 2247, + "end": 2251, + "loc": { + "start": { + "line": 72, + "column": 59 + }, + "end": { + "line": 72, + "column": 63 + } + }, + "name": "word" + }, + "computed": false + } + } + } + ], + "kind": "const" + }, + { + "type": "IfStatement", + "start": 2281, + "end": 2441, + "loc": { + "start": { + "line": 74, + "column": 28 + }, + "end": { + "line": 77, + "column": 29 + } + }, + "test": { + "type": "MemberExpression", + "start": 2285, + "end": 2304, + "loc": { + "start": { + "line": 74, + "column": 32 + }, + "end": { + "line": 74, + "column": 51 + } + }, + "object": { + "type": "Identifier", + "start": 2285, + "end": 2289, + "loc": { + "start": { + "line": 74, + "column": 32 + }, + "end": { + "line": 74, + "column": 36 + } + }, + "name": "prev" + }, + "property": { + "type": "BinaryExpression", + "start": 2290, + "end": 2303, + "loc": { + "start": { + "line": 74, + "column": 37 + }, + "end": { + "line": 74, + "column": 50 + } + }, + "left": { + "type": "Identifier", + "start": 2290, + "end": 2294, + "loc": { + "start": { + "line": 74, + "column": 37 + }, + "end": { + "line": 74, + "column": 41 + } + }, + "name": "word" + }, + "operator": "+", + "right": { + "type": "MemberExpression", + "start": 2297, + "end": 2303, + "loc": { + "start": { + "line": 74, + "column": 44 + }, + "end": { + "line": 74, + "column": 50 + } + }, + "object": { + "type": "Identifier", + "start": 2297, + "end": 2298, + "loc": { + "start": { + "line": 74, + "column": 44 + }, + "end": { + "line": 74, + "column": 45 + } + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 2299, + "end": 2303, + "loc": { + "start": { + "line": 74, + "column": 46 + }, + "end": { + "line": 74, + "column": 50 + } + }, + "name": "type" + }, + "computed": false + } + }, + "computed": true + }, + "consequent": { + "type": "BlockStatement", + "start": 2306, + "end": 2441, + "loc": { + "start": { + "line": 74, + "column": 53 + }, + "end": { + "line": 77, + "column": 29 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 2340, + "end": 2367, + "loc": { + "start": { + "line": 75, + "column": 32 + }, + "end": { + "line": 75, + "column": 59 + } + }, + "expression": { + "type": "UpdateExpression", + "start": 2340, + "end": 2367, + "loc": { + "start": { + "line": 75, + "column": 32 + }, + "end": { + "line": 75, + "column": 59 + } + }, + "operator": "++", + "prefix": false, + "argument": { + "type": "MemberExpression", + "start": 2340, + "end": 2365, + "loc": { + "start": { + "line": 75, + "column": 32 + }, + "end": { + "line": 75, + "column": 57 + } + }, + "object": { + "type": "MemberExpression", + "start": 2340, + "end": 2359, + "loc": { + "start": { + "line": 75, + "column": 32 + }, + "end": { + "line": 75, + "column": 51 + } + }, + "object": { + "type": "Identifier", + "start": 2340, + "end": 2344, + "loc": { + "start": { + "line": 75, + "column": 32 + }, + "end": { + "line": 75, + "column": 36 + } + }, + "name": "prev" + }, + "property": { + "type": "BinaryExpression", + "start": 2345, + "end": 2358, + "loc": { + "start": { + "line": 75, + "column": 37 + }, + "end": { + "line": 75, + "column": 50 + } + }, + "left": { + "type": "Identifier", + "start": 2345, + "end": 2349, + "loc": { + "start": { + "line": 75, + "column": 37 + }, + "end": { + "line": 75, + "column": 41 + } + }, + "name": "word" + }, + "operator": "+", + "right": { + "type": "MemberExpression", + "start": 2352, + "end": 2358, + "loc": { + "start": { + "line": 75, + "column": 44 + }, + "end": { + "line": 75, + "column": 50 + } + }, + "object": { + "type": "Identifier", + "start": 2352, + "end": 2353, + "loc": { + "start": { + "line": 75, + "column": 44 + }, + "end": { + "line": 75, + "column": 45 + } + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 2354, + "end": 2358, + "loc": { + "start": { + "line": 75, + "column": 46 + }, + "end": { + "line": 75, + "column": 50 + } + }, + "name": "type" + }, + "computed": false + } + }, + "computed": true + }, + "property": { + "type": "Identifier", + "start": 2360, + "end": 2365, + "loc": { + "start": { + "line": 75, + "column": 52 + }, + "end": { + "line": 75, + "column": 57 + } + }, + "name": "count" + }, + "computed": false + } + } + }, + { + "type": "ReturnStatement", + "start": 2400, + "end": 2411, + "loc": { + "start": { + "line": 76, + "column": 32 + }, + "end": { + "line": 76, + "column": 43 + } + }, + "argument": { + "type": "Identifier", + "start": 2407, + "end": 2411, + "loc": { + "start": { + "line": 76, + "column": 39 + }, + "end": { + "line": 76, + "column": 43 + } + }, + "name": "prev" + } + } + ] + }, + "alternate": null + }, + { + "type": "ExpressionStatement", + "start": 2471, + "end": 2658, + "loc": { + "start": { + "line": 79, + "column": 28 + }, + "end": { + "line": 83, + "column": 29 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 2471, + "end": 2658, + "loc": { + "start": { + "line": 79, + "column": 28 + }, + "end": { + "line": 83, + "column": 29 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 2471, + "end": 2490, + "loc": { + "start": { + "line": 79, + "column": 28 + }, + "end": { + "line": 79, + "column": 47 + } + }, + "object": { + "type": "Identifier", + "start": 2471, + "end": 2475, + "loc": { + "start": { + "line": 79, + "column": 28 + }, + "end": { + "line": 79, + "column": 32 + } + }, + "name": "prev" + }, + "property": { + "type": "BinaryExpression", + "start": 2476, + "end": 2489, + "loc": { + "start": { + "line": 79, + "column": 33 + }, + "end": { + "line": 79, + "column": 46 + } + }, + "left": { + "type": "Identifier", + "start": 2476, + "end": 2480, + "loc": { + "start": { + "line": 79, + "column": 33 + }, + "end": { + "line": 79, + "column": 37 + } + }, + "name": "word" + }, + "operator": "+", + "right": { + "type": "MemberExpression", + "start": 2483, + "end": 2489, + "loc": { + "start": { + "line": 79, + "column": 40 + }, + "end": { + "line": 79, + "column": 46 + } + }, + "object": { + "type": "Identifier", + "start": 2483, + "end": 2484, + "loc": { + "start": { + "line": 79, + "column": 40 + }, + "end": { + "line": 79, + "column": 41 + } + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 2485, + "end": 2489, + "loc": { + "start": { + "line": 79, + "column": 42 + }, + "end": { + "line": 79, + "column": 46 + } + }, + "name": "type" + }, + "computed": false + } + }, + "computed": true + }, + "right": { + "type": "ObjectExpression", + "start": 2493, + "end": 2658, + "loc": { + "start": { + "line": 79, + "column": 50 + }, + "end": { + "line": 83, + "column": 29 + } + }, + "properties": [ + { + "type": "Property", + "start": 2527, + "end": 2539, + "loc": { + "start": { + "line": 80, + "column": 32 + }, + "end": { + "line": 80, + "column": 44 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2527, + "end": 2531, + "loc": { + "start": { + "line": 80, + "column": 32 + }, + "end": { + "line": 80, + "column": 36 + } + }, + "name": "word" + }, + "value": { + "type": "MemberExpression", + "start": 2533, + "end": 2539, + "loc": { + "start": { + "line": 80, + "column": 38 + }, + "end": { + "line": 80, + "column": 44 + } + }, + "object": { + "type": "Identifier", + "start": 2533, + "end": 2534, + "loc": { + "start": { + "line": 80, + "column": 38 + }, + "end": { + "line": 80, + "column": 39 + } + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 2535, + "end": 2539, + "loc": { + "start": { + "line": 80, + "column": 40 + }, + "end": { + "line": 80, + "column": 44 + } + }, + "name": "word" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 2573, + "end": 2585, + "loc": { + "start": { + "line": 81, + "column": 32 + }, + "end": { + "line": 81, + "column": 44 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2573, + "end": 2577, + "loc": { + "start": { + "line": 81, + "column": 32 + }, + "end": { + "line": 81, + "column": 36 + } + }, + "name": "type" + }, + "value": { + "type": "MemberExpression", + "start": 2579, + "end": 2585, + "loc": { + "start": { + "line": 81, + "column": 38 + }, + "end": { + "line": 81, + "column": 44 + } + }, + "object": { + "type": "Identifier", + "start": 2579, + "end": 2580, + "loc": { + "start": { + "line": 81, + "column": 38 + }, + "end": { + "line": 81, + "column": 39 + } + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 2581, + "end": 2585, + "loc": { + "start": { + "line": 81, + "column": 40 + }, + "end": { + "line": 81, + "column": 44 + } + }, + "name": "type" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 2619, + "end": 2627, + "loc": { + "start": { + "line": 82, + "column": 32 + }, + "end": { + "line": 82, + "column": 40 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2619, + "end": 2624, + "loc": { + "start": { + "line": 82, + "column": 32 + }, + "end": { + "line": 82, + "column": 37 + } + }, + "name": "count" + }, + "value": { + "type": "Literal", + "start": 2626, + "end": 2627, + "loc": { + "start": { + "line": 82, + "column": 39 + }, + "end": { + "line": 82, + "column": 40 + } + }, + "value": 1, + "rawValue": 1, + "raw": "1" + }, + "kind": "init" + } + ] + } + } + }, + { + "type": "ReturnStatement", + "start": 2688, + "end": 2699, + "loc": { + "start": { + "line": 85, + "column": 28 + }, + "end": { + "line": 85, + "column": 39 + } + }, + "argument": { + "type": "Identifier", + "start": 2695, + "end": 2699, + "loc": { + "start": { + "line": 85, + "column": 35 + }, + "end": { + "line": 85, + "column": 39 + } + }, + "name": "prev" + } + } + ] + } + }, + { + "type": "ObjectExpression", + "start": 2728, + "end": 2730, + "loc": { + "start": { + "line": 87, + "column": 27 + }, + "end": { + "line": 87, + "column": 29 + } + }, + "properties": [] + } + ] + } + ] + } + } + ] + }, + "kind": "init" + } + ] + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 2801, + "end": 2813, + "loc": { + "start": { + "line": 91, + "column": 12 + }, + "end": { + "line": 91, + "column": 24 + } + }, + "argument": { + "type": "Identifier", + "start": 2808, + "end": 2813, + "loc": { + "start": { + "line": 91, + "column": 19 + }, + "end": { + "line": 91, + "column": 24 + } + }, + "name": "state" + } + } + ], + "test": { + "type": "MemberExpression", + "start": 752, + "end": 772, + "loc": { + "start": { + "line": 38, + "column": 13 + }, + "end": { + "line": 38, + "column": 33 + } + }, + "object": { + "type": "Identifier", + "start": 752, + "end": 765, + "loc": { + "start": { + "line": 38, + "column": 13 + }, + "end": { + "line": 38, + "column": 26 + } + }, + "name": "SearchActions" + }, + "property": { + "type": "Identifier", + "start": 766, + "end": 772, + "loc": { + "start": { + "line": 38, + "column": 27 + }, + "end": { + "line": 38, + "column": 33 + } + }, + "name": "SEARCH" + }, + "computed": false + } + }, + { + "type": "SwitchCase", + "start": 2823, + "end": 3042, + "loc": { + "start": { + "line": 93, + "column": 8 + }, + "end": { + "line": 99, + "column": 24 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 2862, + "end": 3017, + "loc": { + "start": { + "line": 94, + "column": 12 + }, + "end": { + "line": 98, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 2866, + "end": 2881, + "loc": { + "start": { + "line": 94, + "column": 16 + }, + "end": { + "line": 94, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 2866, + "end": 2872, + "loc": { + "start": { + "line": 94, + "column": 16 + }, + "end": { + "line": 94, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 2873, + "end": 2881, + "loc": { + "start": { + "line": 94, + "column": 23 + }, + "end": { + "line": 94, + "column": 31 + } + }, + "name": "response" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 2883, + "end": 3017, + "loc": { + "start": { + "line": 94, + "column": 33 + }, + "end": { + "line": 98, + "column": 13 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 2901, + "end": 3003, + "loc": { + "start": { + "line": 95, + "column": 16 + }, + "end": { + "line": 97, + "column": 18 + } + }, + "argument": { + "type": "CallExpression", + "start": 2908, + "end": 3003, + "loc": { + "start": { + "line": 95, + "column": 23 + }, + "end": { + "line": 97, + "column": 18 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2908, + "end": 2921, + "loc": { + "start": { + "line": 95, + "column": 23 + }, + "end": { + "line": 95, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 2908, + "end": 2914, + "loc": { + "start": { + "line": 95, + "column": 23 + }, + "end": { + "line": 95, + "column": 29 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 2915, + "end": 2921, + "loc": { + "start": { + "line": 95, + "column": 30 + }, + "end": { + "line": 95, + "column": 36 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 2922, + "end": 2924, + "loc": { + "start": { + "line": 95, + "column": 37 + }, + "end": { + "line": 95, + "column": 39 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 2926, + "end": 2931, + "loc": { + "start": { + "line": 95, + "column": 41 + }, + "end": { + "line": 95, + "column": 46 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 2933, + "end": 3002, + "loc": { + "start": { + "line": 95, + "column": 48 + }, + "end": { + "line": 97, + "column": 17 + } + }, + "properties": [ + { + "type": "Property", + "start": 2955, + "end": 2983, + "loc": { + "start": { + "line": 96, + "column": 20 + }, + "end": { + "line": 96, + "column": 48 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2955, + "end": 2961, + "loc": { + "start": { + "line": 96, + "column": 20 + }, + "end": { + "line": 96, + "column": 26 + } + }, + "name": "recent" + }, + "value": { + "type": "ArrayExpression", + "start": 2963, + "end": 2983, + "loc": { + "start": { + "line": 96, + "column": 28 + }, + "end": { + "line": 96, + "column": 48 + } + }, + "elements": [ + { + "type": "SpreadElement", + "start": 2964, + "end": 2982, + "loc": { + "start": { + "line": 96, + "column": 29 + }, + "end": { + "line": 96, + "column": 47 + } + }, + "argument": { + "type": "MemberExpression", + "start": 2967, + "end": 2982, + "loc": { + "start": { + "line": 96, + "column": 32 + }, + "end": { + "line": 96, + "column": 47 + } + }, + "object": { + "type": "Identifier", + "start": 2967, + "end": 2973, + "loc": { + "start": { + "line": 96, + "column": 32 + }, + "end": { + "line": 96, + "column": 38 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 2974, + "end": 2982, + "loc": { + "start": { + "line": 96, + "column": 39 + }, + "end": { + "line": 96, + "column": 47 + } + }, + "name": "response" + }, + "computed": false + } + } + ] + }, + "kind": "init" + } + ] + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 3030, + "end": 3042, + "loc": { + "start": { + "line": 99, + "column": 12 + }, + "end": { + "line": 99, + "column": 24 + } + }, + "argument": { + "type": "Identifier", + "start": 3037, + "end": 3042, + "loc": { + "start": { + "line": 99, + "column": 19 + }, + "end": { + "line": 99, + "column": 24 + } + }, + "name": "state" + } + } + ], + "test": { + "type": "MemberExpression", + "start": 2828, + "end": 2848, + "loc": { + "start": { + "line": 93, + "column": 13 + }, + "end": { + "line": 93, + "column": 33 + } + }, + "object": { + "type": "Identifier", + "start": 2828, + "end": 2841, + "loc": { + "start": { + "line": 93, + "column": 13 + }, + "end": { + "line": 93, + "column": 26 + } + }, + "name": "SearchActions" + }, + "property": { + "type": "Identifier", + "start": 2842, + "end": 2848, + "loc": { + "start": { + "line": 93, + "column": 27 + }, + "end": { + "line": 93, + "column": 33 + } + }, + "name": "RECENT" + }, + "computed": false + } + }, + { + "type": "SwitchCase", + "start": 3052, + "end": 3272, + "loc": { + "start": { + "line": 101, + "column": 8 + }, + "end": { + "line": 107, + "column": 24 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 3092, + "end": 3247, + "loc": { + "start": { + "line": 102, + "column": 12 + }, + "end": { + "line": 106, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 3096, + "end": 3111, + "loc": { + "start": { + "line": 102, + "column": 16 + }, + "end": { + "line": 102, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 3096, + "end": 3102, + "loc": { + "start": { + "line": 102, + "column": 16 + }, + "end": { + "line": 102, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 3103, + "end": 3111, + "loc": { + "start": { + "line": 102, + "column": 23 + }, + "end": { + "line": 102, + "column": 31 + } + }, + "name": "response" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 3113, + "end": 3247, + "loc": { + "start": { + "line": 102, + "column": 33 + }, + "end": { + "line": 106, + "column": 13 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 3131, + "end": 3233, + "loc": { + "start": { + "line": 103, + "column": 16 + }, + "end": { + "line": 105, + "column": 18 + } + }, + "argument": { + "type": "CallExpression", + "start": 3138, + "end": 3233, + "loc": { + "start": { + "line": 103, + "column": 23 + }, + "end": { + "line": 105, + "column": 18 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3138, + "end": 3151, + "loc": { + "start": { + "line": 103, + "column": 23 + }, + "end": { + "line": 103, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 3138, + "end": 3144, + "loc": { + "start": { + "line": 103, + "column": 23 + }, + "end": { + "line": 103, + "column": 29 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 3145, + "end": 3151, + "loc": { + "start": { + "line": 103, + "column": 30 + }, + "end": { + "line": 103, + "column": 36 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 3152, + "end": 3154, + "loc": { + "start": { + "line": 103, + "column": 37 + }, + "end": { + "line": 103, + "column": 39 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 3156, + "end": 3161, + "loc": { + "start": { + "line": 103, + "column": 41 + }, + "end": { + "line": 103, + "column": 46 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 3163, + "end": 3232, + "loc": { + "start": { + "line": 103, + "column": 48 + }, + "end": { + "line": 105, + "column": 17 + } + }, + "properties": [ + { + "type": "Property", + "start": 3185, + "end": 3214, + "loc": { + "start": { + "line": 104, + "column": 20 + }, + "end": { + "line": 104, + "column": 49 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3185, + "end": 3192, + "loc": { + "start": { + "line": 104, + "column": 20 + }, + "end": { + "line": 104, + "column": 27 + } + }, + "name": "results" + }, + "value": { + "type": "ArrayExpression", + "start": 3194, + "end": 3214, + "loc": { + "start": { + "line": 104, + "column": 29 + }, + "end": { + "line": 104, + "column": 49 + } + }, + "elements": [ + { + "type": "SpreadElement", + "start": 3195, + "end": 3213, + "loc": { + "start": { + "line": 104, + "column": 30 + }, + "end": { + "line": 104, + "column": 48 + } + }, + "argument": { + "type": "MemberExpression", + "start": 3198, + "end": 3213, + "loc": { + "start": { + "line": 104, + "column": 33 + }, + "end": { + "line": 104, + "column": 48 + } + }, + "object": { + "type": "Identifier", + "start": 3198, + "end": 3204, + "loc": { + "start": { + "line": 104, + "column": 33 + }, + "end": { + "line": 104, + "column": 39 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 3205, + "end": 3213, + "loc": { + "start": { + "line": 104, + "column": 40 + }, + "end": { + "line": 104, + "column": 48 + } + }, + "name": "response" + }, + "computed": false + } + } + ] + }, + "kind": "init" + } + ] + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 3260, + "end": 3272, + "loc": { + "start": { + "line": 107, + "column": 12 + }, + "end": { + "line": 107, + "column": 24 + } + }, + "argument": { + "type": "Identifier", + "start": 3267, + "end": 3272, + "loc": { + "start": { + "line": 107, + "column": 19 + }, + "end": { + "line": 107, + "column": 24 + } + }, + "name": "state" + } + } + ], + "test": { + "type": "MemberExpression", + "start": 3057, + "end": 3078, + "loc": { + "start": { + "line": 101, + "column": 13 + }, + "end": { + "line": 101, + "column": 34 + } + }, + "object": { + "type": "Identifier", + "start": 3057, + "end": 3070, + "loc": { + "start": { + "line": 101, + "column": 13 + }, + "end": { + "line": 101, + "column": 26 + } + }, + "name": "SearchActions" + }, + "property": { + "type": "Identifier", + "start": 3071, + "end": 3078, + "loc": { + "start": { + "line": 101, + "column": 27 + }, + "end": { + "line": 101, + "column": 34 + } + }, + "name": "RESULTS" + }, + "computed": false + } + } + ] + }, + { + "type": "ReturnStatement", + "start": 3285, + "end": 3297, + "loc": { + "start": { + "line": 111, + "column": 4 + }, + "end": { + "line": 111, + "column": 16 + } + }, + "argument": { + "type": "Identifier", + "start": 3292, + "end": 3297, + "loc": { + "start": { + "line": 111, + "column": 11 + }, + "end": { + "line": 111, + "column": 16 + } + }, + "name": "state" + } + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Search\n * Redux Reducer for Search action\n * Reference: http://redux.js.org/docs/basics/Reducers.html\n * @param state\n * @param action\n * @returns {*}\n * @constructor\n ", + "start": 299, + "end": 476, + "loc": { + "start": { + "line": 20, + "column": 0 + }, + "end": { + "line": 28, + "column": 3 + } + }, + "range": [ + 299, + 476 + ] + } + ], + "trailingComments": [] + } + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/reducers/Stats.js.json b/app/docs/ast/source/reducers/Stats.js.json new file mode 100644 index 0000000..add229a --- /dev/null +++ b/app/docs/ast/source/reducers/Stats.js.json @@ -0,0 +1,7068 @@ +{ + "type": "Program", + "start": 0, + "end": 2444, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 86, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 52, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 16 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 13, + "end": 34, + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 25 + } + }, + "imported": { + "type": "Identifier", + "start": 13, + "end": 18, + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 9 + } + }, + "name": "Stats" + }, + "local": { + "type": "Identifier", + "start": 22, + "end": 34, + "loc": { + "start": { + "line": 2, + "column": 13 + }, + "end": { + "line": 2, + "column": 25 + } + }, + "name": "StatsActions" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 43, + "end": 52, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 16 + } + }, + "value": "actions", + "rawValue": "actions", + "raw": "'actions'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * iniitalState\n * @type {{profileViews: {count: number, increment: number, color: string}, itemViews: {count: number, increment: number, color: string}, following: {count: number, increment: string, color: string}, followers: {count: number, increment: string, color: string}, mostViewed: Array, geoViews: Array}}\n ", + "start": 54, + "end": 376, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + }, + "range": [ + 54, + 376 + ] + } + ] + }, + { + "type": "VariableDeclaration", + "start": 377, + "end": 821, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 35, + "column": 1 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 383, + "end": 821, + "loc": { + "start": { + "line": 9, + "column": 6 + }, + "end": { + "line": 35, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 383, + "end": 395, + "loc": { + "start": { + "line": 9, + "column": 6 + }, + "end": { + "line": 9, + "column": 18 + } + }, + "name": "initialState", + "leadingComments": null + }, + "init": { + "type": "ObjectExpression", + "start": 398, + "end": 821, + "loc": { + "start": { + "line": 9, + "column": 21 + }, + "end": { + "line": 35, + "column": 1 + } + }, + "properties": [ + { + "type": "Property", + "start": 404, + "end": 495, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 14, + "column": 5 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 404, + "end": 416, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 10, + "column": 16 + } + }, + "name": "profileViews" + }, + "value": { + "type": "ObjectExpression", + "start": 418, + "end": 495, + "loc": { + "start": { + "line": 10, + "column": 18 + }, + "end": { + "line": 14, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 428, + "end": 438, + "loc": { + "start": { + "line": 11, + "column": 8 + }, + "end": { + "line": 11, + "column": 18 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Literal", + "start": 428, + "end": 435, + "loc": { + "start": { + "line": 11, + "column": 8 + }, + "end": { + "line": 11, + "column": 15 + } + }, + "value": "count", + "rawValue": "count", + "raw": "'count'" + }, + "value": { + "type": "Literal", + "start": 437, + "end": 438, + "loc": { + "start": { + "line": 11, + "column": 17 + }, + "end": { + "line": 11, + "column": 18 + } + }, + "value": 0, + "rawValue": 0, + "raw": "0" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 448, + "end": 463, + "loc": { + "start": { + "line": 12, + "column": 8 + }, + "end": { + "line": 12, + "column": 23 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Literal", + "start": 448, + "end": 459, + "loc": { + "start": { + "line": 12, + "column": 8 + }, + "end": { + "line": 12, + "column": 19 + } + }, + "value": "increment", + "rawValue": "increment", + "raw": "'increment'" + }, + "value": { + "type": "Literal", + "start": 461, + "end": 463, + "loc": { + "start": { + "line": 12, + "column": 21 + }, + "end": { + "line": 12, + "column": 23 + } + }, + "value": 24, + "rawValue": 24, + "raw": "24" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 473, + "end": 489, + "loc": { + "start": { + "line": 13, + "column": 8 + }, + "end": { + "line": 13, + "column": 24 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Literal", + "start": 473, + "end": 480, + "loc": { + "start": { + "line": 13, + "column": 8 + }, + "end": { + "line": 13, + "column": 15 + } + }, + "value": "color", + "rawValue": "color", + "raw": "'color'" + }, + "value": { + "type": "Literal", + "start": 482, + "end": 489, + "loc": { + "start": { + "line": 13, + "column": 17 + }, + "end": { + "line": 13, + "column": 24 + } + }, + "value": "green", + "rawValue": "green", + "raw": "'green'" + }, + "kind": "init" + } + ] + }, + "kind": "init" + }, + { + "type": "Property", + "start": 501, + "end": 597, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 20, + "column": 5 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 501, + "end": 510, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 13 + } + }, + "name": "itemViews" + }, + "value": { + "type": "ObjectExpression", + "start": 512, + "end": 597, + "loc": { + "start": { + "line": 15, + "column": 15 + }, + "end": { + "line": 20, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 522, + "end": 532, + "loc": { + "start": { + "line": 16, + "column": 8 + }, + "end": { + "line": 16, + "column": 18 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Literal", + "start": 522, + "end": 529, + "loc": { + "start": { + "line": 16, + "column": 8 + }, + "end": { + "line": 16, + "column": 15 + } + }, + "value": "count", + "rawValue": "count", + "raw": "'count'" + }, + "value": { + "type": "Literal", + "start": 531, + "end": 532, + "loc": { + "start": { + "line": 16, + "column": 17 + }, + "end": { + "line": 16, + "column": 18 + } + }, + "value": 0, + "rawValue": 0, + "raw": "0" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 542, + "end": 557, + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 17, + "column": 23 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Literal", + "start": 542, + "end": 553, + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 17, + "column": 19 + } + }, + "value": "increment", + "rawValue": "increment", + "raw": "'increment'" + }, + "value": { + "type": "Literal", + "start": 555, + "end": 557, + "loc": { + "start": { + "line": 17, + "column": 21 + }, + "end": { + "line": 17, + "column": 23 + } + }, + "value": 24, + "rawValue": 24, + "raw": "24" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 567, + "end": 591, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 19, + "column": 15 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Literal", + "start": 567, + "end": 574, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 15 + } + }, + "value": "color", + "rawValue": "color", + "raw": "'color'" + }, + "value": { + "type": "Literal", + "start": 584, + "end": 591, + "loc": { + "start": { + "line": 19, + "column": 8 + }, + "end": { + "line": 19, + "column": 15 + } + }, + "value": "green", + "rawValue": "green", + "raw": "'green'" + }, + "kind": "init" + } + ] + }, + "kind": "init" + }, + { + "type": "Property", + "start": 603, + "end": 686, + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 25, + "column": 5 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 603, + "end": 612, + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 13 + } + }, + "name": "following" + }, + "value": { + "type": "ObjectExpression", + "start": 614, + "end": 686, + "loc": { + "start": { + "line": 21, + "column": 15 + }, + "end": { + "line": 25, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 624, + "end": 634, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 18 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Literal", + "start": 624, + "end": 631, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 15 + } + }, + "value": "count", + "rawValue": "count", + "raw": "'count'" + }, + "value": { + "type": "Literal", + "start": 633, + "end": 634, + "loc": { + "start": { + "line": 22, + "column": 17 + }, + "end": { + "line": 22, + "column": 18 + } + }, + "value": 0, + "rawValue": 0, + "raw": "0" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 644, + "end": 659, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 23 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Literal", + "start": 644, + "end": 655, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 19 + } + }, + "value": "increment", + "rawValue": "increment", + "raw": "'increment'" + }, + "value": { + "type": "Literal", + "start": 657, + "end": 659, + "loc": { + "start": { + "line": 23, + "column": 21 + }, + "end": { + "line": 23, + "column": 23 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 669, + "end": 680, + "loc": { + "start": { + "line": 24, + "column": 8 + }, + "end": { + "line": 24, + "column": 19 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Literal", + "start": 669, + "end": 676, + "loc": { + "start": { + "line": 24, + "column": 8 + }, + "end": { + "line": 24, + "column": 15 + } + }, + "value": "color", + "rawValue": "color", + "raw": "'color'" + }, + "value": { + "type": "Literal", + "start": 678, + "end": 680, + "loc": { + "start": { + "line": 24, + "column": 17 + }, + "end": { + "line": 24, + "column": 19 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + } + ] + }, + "kind": "init" + }, + { + "type": "Property", + "start": 692, + "end": 775, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 30, + "column": 5 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 692, + "end": 701, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 13 + } + }, + "name": "followers" + }, + "value": { + "type": "ObjectExpression", + "start": 703, + "end": 775, + "loc": { + "start": { + "line": 26, + "column": 15 + }, + "end": { + "line": 30, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 713, + "end": 723, + "loc": { + "start": { + "line": 27, + "column": 8 + }, + "end": { + "line": 27, + "column": 18 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Literal", + "start": 713, + "end": 720, + "loc": { + "start": { + "line": 27, + "column": 8 + }, + "end": { + "line": 27, + "column": 15 + } + }, + "value": "count", + "rawValue": "count", + "raw": "'count'" + }, + "value": { + "type": "Literal", + "start": 722, + "end": 723, + "loc": { + "start": { + "line": 27, + "column": 17 + }, + "end": { + "line": 27, + "column": 18 + } + }, + "value": 0, + "rawValue": 0, + "raw": "0" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 733, + "end": 748, + "loc": { + "start": { + "line": 28, + "column": 8 + }, + "end": { + "line": 28, + "column": 23 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Literal", + "start": 733, + "end": 744, + "loc": { + "start": { + "line": 28, + "column": 8 + }, + "end": { + "line": 28, + "column": 19 + } + }, + "value": "increment", + "rawValue": "increment", + "raw": "'increment'" + }, + "value": { + "type": "Literal", + "start": 746, + "end": 748, + "loc": { + "start": { + "line": 28, + "column": 21 + }, + "end": { + "line": 28, + "column": 23 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 758, + "end": 769, + "loc": { + "start": { + "line": 29, + "column": 8 + }, + "end": { + "line": 29, + "column": 19 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Literal", + "start": 758, + "end": 765, + "loc": { + "start": { + "line": 29, + "column": 8 + }, + "end": { + "line": 29, + "column": 15 + } + }, + "value": "color", + "rawValue": "color", + "raw": "'color'" + }, + "value": { + "type": "Literal", + "start": 767, + "end": 769, + "loc": { + "start": { + "line": 29, + "column": 17 + }, + "end": { + "line": 29, + "column": 19 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + } + ] + }, + "kind": "init" + }, + { + "type": "Property", + "start": 781, + "end": 801, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 781, + "end": 791, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 14 + } + }, + "name": "mostViewed" + }, + "value": { + "type": "ArrayExpression", + "start": 793, + "end": 801, + "loc": { + "start": { + "line": 31, + "column": 16 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "elements": [] + }, + "kind": "init" + }, + { + "type": "Property", + "start": 807, + "end": 819, + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 34, + "column": 16 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 807, + "end": 815, + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 34, + "column": 12 + } + }, + "name": "geoViews" + }, + "value": { + "type": "ArrayExpression", + "start": 817, + "end": 819, + "loc": { + "start": { + "line": 34, + "column": 14 + }, + "end": { + "line": 34, + "column": 16 + } + }, + "elements": [] + }, + "kind": "init" + } + ], + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * iniitalState\n * @type {{profileViews: {count: number, increment: number, color: string}, itemViews: {count: number, increment: number, color: string}, following: {count: number, increment: string, color: string}, followers: {count: number, increment: string, color: string}, mostViewed: Array, geoViews: Array}}\n ", + "start": 54, + "end": 376, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + }, + "range": [ + 54, + 376 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Stats\n * Redux Reducer for Stats action\n * Reference: http://redux.js.org/docs/basics/Reducers.html\n * @param state\n * @param action\n * @returns {*}\n * @constructor\n ", + "start": 823, + "end": 998, + "loc": { + "start": { + "line": 37, + "column": 0 + }, + "end": { + "line": 45, + "column": 3 + } + }, + "range": [ + 823, + 998 + ] + } + ] + }, + { + "type": "Identifier", + "start": 999, + "end": 2421, + "loc": { + "start": { + "line": 46, + "column": 0 + }, + "end": { + "line": 83, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 1008, + "end": 1013, + "loc": { + "start": { + "line": 46, + "column": 9 + }, + "end": { + "line": 46, + "column": 14 + } + }, + "name": "Stats", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "AssignmentPattern", + "start": 1014, + "end": 1034, + "loc": { + "start": { + "line": 46, + "column": 15 + }, + "end": { + "line": 46, + "column": 35 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 1014, + "end": 1019, + "loc": { + "start": { + "line": 46, + "column": 15 + }, + "end": { + "line": 46, + "column": 20 + } + }, + "name": "state" + }, + "right": { + "type": "Identifier", + "start": 1022, + "end": 1034, + "loc": { + "start": { + "line": 46, + "column": 23 + }, + "end": { + "line": 46, + "column": 35 + } + }, + "name": "initialState" + } + }, + { + "type": "Identifier", + "start": 1036, + "end": 1042, + "loc": { + "start": { + "line": 46, + "column": 37 + }, + "end": { + "line": 46, + "column": 43 + } + }, + "name": "action" + } + ], + "body": { + "type": "BlockStatement", + "start": 1044, + "end": 2421, + "loc": { + "start": { + "line": 46, + "column": 45 + }, + "end": { + "line": 83, + "column": 1 + } + }, + "body": [ + { + "type": "SwitchStatement", + "start": 1050, + "end": 2400, + "loc": { + "start": { + "line": 47, + "column": 4 + }, + "end": { + "line": 79, + "column": 5 + } + }, + "discriminant": { + "type": "MemberExpression", + "start": 1058, + "end": 1069, + "loc": { + "start": { + "line": 47, + "column": 12 + }, + "end": { + "line": 47, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 1058, + "end": 1064, + "loc": { + "start": { + "line": 47, + "column": 12 + }, + "end": { + "line": 47, + "column": 18 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1065, + "end": 1069, + "loc": { + "start": { + "line": 47, + "column": 19 + }, + "end": { + "line": 47, + "column": 23 + } + }, + "name": "type" + }, + "computed": false + }, + "cases": [ + { + "type": "SwitchCase", + "start": 1082, + "end": 2393, + "loc": { + "start": { + "line": 49, + "column": 8 + }, + "end": { + "line": 77, + "column": 31 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 1118, + "end": 2360, + "loc": { + "start": { + "line": 50, + "column": 12 + }, + "end": { + "line": 75, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 1122, + "end": 1137, + "loc": { + "start": { + "line": 50, + "column": 16 + }, + "end": { + "line": 50, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 1122, + "end": 1128, + "loc": { + "start": { + "line": 50, + "column": 16 + }, + "end": { + "line": 50, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1129, + "end": 1137, + "loc": { + "start": { + "line": 50, + "column": 23 + }, + "end": { + "line": 50, + "column": 31 + } + }, + "name": "response" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 1139, + "end": 2360, + "loc": { + "start": { + "line": 50, + "column": 33 + }, + "end": { + "line": 75, + "column": 13 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 1157, + "end": 2313, + "loc": { + "start": { + "line": 51, + "column": 16 + }, + "end": { + "line": 72, + "column": 17 + } + }, + "test": { + "type": "BinaryExpression", + "start": 1161, + "end": 1191, + "loc": { + "start": { + "line": 51, + "column": 20 + }, + "end": { + "line": 51, + "column": 50 + } + }, + "left": { + "type": "MemberExpression", + "start": 1161, + "end": 1186, + "loc": { + "start": { + "line": 51, + "column": 20 + }, + "end": { + "line": 51, + "column": 45 + } + }, + "object": { + "type": "MemberExpression", + "start": 1161, + "end": 1176, + "loc": { + "start": { + "line": 51, + "column": 20 + }, + "end": { + "line": 51, + "column": 35 + } + }, + "object": { + "type": "Identifier", + "start": 1161, + "end": 1167, + "loc": { + "start": { + "line": 51, + "column": 20 + }, + "end": { + "line": 51, + "column": 26 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1168, + "end": 1176, + "loc": { + "start": { + "line": 51, + "column": 27 + }, + "end": { + "line": 51, + "column": 35 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1177, + "end": 1186, + "loc": { + "start": { + "line": 51, + "column": 36 + }, + "end": { + "line": 51, + "column": 45 + } + }, + "name": "itemViews" + }, + "computed": false + }, + "operator": ">=", + "right": { + "type": "Literal", + "start": 1190, + "end": 1191, + "loc": { + "start": { + "line": 51, + "column": 49 + }, + "end": { + "line": 51, + "column": 50 + } + }, + "value": 0, + "rawValue": 0, + "raw": "0" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 1193, + "end": 1364, + "loc": { + "start": { + "line": 51, + "column": 52 + }, + "end": { + "line": 55, + "column": 17 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 1213, + "end": 1346, + "loc": { + "start": { + "line": 52, + "column": 18 + }, + "end": { + "line": 54, + "column": 20 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1217, + "end": 1346, + "loc": { + "start": { + "line": 52, + "column": 22 + }, + "end": { + "line": 54, + "column": 20 + } + }, + "id": { + "type": "Identifier", + "start": 1217, + "end": 1225, + "loc": { + "start": { + "line": 52, + "column": 22 + }, + "end": { + "line": 52, + "column": 30 + } + }, + "name": "newState" + }, + "init": { + "type": "CallExpression", + "start": 1228, + "end": 1346, + "loc": { + "start": { + "line": 52, + "column": 33 + }, + "end": { + "line": 54, + "column": 20 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1228, + "end": 1241, + "loc": { + "start": { + "line": 52, + "column": 33 + }, + "end": { + "line": 52, + "column": 46 + } + }, + "object": { + "type": "Identifier", + "start": 1228, + "end": 1234, + "loc": { + "start": { + "line": 52, + "column": 33 + }, + "end": { + "line": 52, + "column": 39 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 1235, + "end": 1241, + "loc": { + "start": { + "line": 52, + "column": 40 + }, + "end": { + "line": 52, + "column": 46 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 1242, + "end": 1244, + "loc": { + "start": { + "line": 52, + "column": 47 + }, + "end": { + "line": 52, + "column": 49 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 1246, + "end": 1251, + "loc": { + "start": { + "line": 52, + "column": 51 + }, + "end": { + "line": 52, + "column": 56 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 1253, + "end": 1345, + "loc": { + "start": { + "line": 52, + "column": 58 + }, + "end": { + "line": 54, + "column": 19 + } + }, + "properties": [ + { + "type": "Property", + "start": 1277, + "end": 1324, + "loc": { + "start": { + "line": 53, + "column": 22 + }, + "end": { + "line": 53, + "column": 69 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1277, + "end": 1286, + "loc": { + "start": { + "line": 53, + "column": 22 + }, + "end": { + "line": 53, + "column": 31 + } + }, + "name": "itemViews" + }, + "value": { + "type": "ObjectExpression", + "start": 1288, + "end": 1324, + "loc": { + "start": { + "line": 53, + "column": 33 + }, + "end": { + "line": 53, + "column": 69 + } + }, + "properties": [ + { + "type": "Property", + "start": 1289, + "end": 1323, + "loc": { + "start": { + "line": 53, + "column": 34 + }, + "end": { + "line": 53, + "column": 68 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Literal", + "start": 1289, + "end": 1296, + "loc": { + "start": { + "line": 53, + "column": 34 + }, + "end": { + "line": 53, + "column": 41 + } + }, + "value": "count", + "rawValue": "count", + "raw": "'count'" + }, + "value": { + "type": "MemberExpression", + "start": 1298, + "end": 1323, + "loc": { + "start": { + "line": 53, + "column": 43 + }, + "end": { + "line": 53, + "column": 68 + } + }, + "object": { + "type": "MemberExpression", + "start": 1298, + "end": 1313, + "loc": { + "start": { + "line": 53, + "column": 43 + }, + "end": { + "line": 53, + "column": 58 + } + }, + "object": { + "type": "Identifier", + "start": 1298, + "end": 1304, + "loc": { + "start": { + "line": 53, + "column": 43 + }, + "end": { + "line": 53, + "column": 49 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1305, + "end": 1313, + "loc": { + "start": { + "line": 53, + "column": 50 + }, + "end": { + "line": 53, + "column": 58 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1314, + "end": 1323, + "loc": { + "start": { + "line": 53, + "column": 59 + }, + "end": { + "line": 53, + "column": 68 + } + }, + "name": "itemViews" + }, + "computed": false + }, + "kind": "init" + } + ] + }, + "kind": "init" + } + ] + } + ] + } + } + ], + "kind": "var" + } + ] + }, + "alternate": { + "type": "IfStatement", + "start": 1370, + "end": 2313, + "loc": { + "start": { + "line": 55, + "column": 23 + }, + "end": { + "line": 72, + "column": 17 + } + }, + "test": { + "type": "BinaryExpression", + "start": 1374, + "end": 1407, + "loc": { + "start": { + "line": 55, + "column": 27 + }, + "end": { + "line": 55, + "column": 60 + } + }, + "left": { + "type": "MemberExpression", + "start": 1374, + "end": 1402, + "loc": { + "start": { + "line": 55, + "column": 27 + }, + "end": { + "line": 55, + "column": 55 + } + }, + "object": { + "type": "MemberExpression", + "start": 1374, + "end": 1389, + "loc": { + "start": { + "line": 55, + "column": 27 + }, + "end": { + "line": 55, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 1374, + "end": 1380, + "loc": { + "start": { + "line": 55, + "column": 27 + }, + "end": { + "line": 55, + "column": 33 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1381, + "end": 1389, + "loc": { + "start": { + "line": 55, + "column": 34 + }, + "end": { + "line": 55, + "column": 42 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1390, + "end": 1402, + "loc": { + "start": { + "line": 55, + "column": 43 + }, + "end": { + "line": 55, + "column": 55 + } + }, + "name": "profileViews" + }, + "computed": false + }, + "operator": ">=", + "right": { + "type": "Literal", + "start": 1406, + "end": 1407, + "loc": { + "start": { + "line": 55, + "column": 59 + }, + "end": { + "line": 55, + "column": 60 + } + }, + "value": 0, + "rawValue": 0, + "raw": "0" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 1409, + "end": 1586, + "loc": { + "start": { + "line": 55, + "column": 62 + }, + "end": { + "line": 59, + "column": 17 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 1429, + "end": 1568, + "loc": { + "start": { + "line": 56, + "column": 18 + }, + "end": { + "line": 58, + "column": 20 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1433, + "end": 1568, + "loc": { + "start": { + "line": 56, + "column": 22 + }, + "end": { + "line": 58, + "column": 20 + } + }, + "id": { + "type": "Identifier", + "start": 1433, + "end": 1441, + "loc": { + "start": { + "line": 56, + "column": 22 + }, + "end": { + "line": 56, + "column": 30 + } + }, + "name": "newState" + }, + "init": { + "type": "CallExpression", + "start": 1444, + "end": 1568, + "loc": { + "start": { + "line": 56, + "column": 33 + }, + "end": { + "line": 58, + "column": 20 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1444, + "end": 1457, + "loc": { + "start": { + "line": 56, + "column": 33 + }, + "end": { + "line": 56, + "column": 46 + } + }, + "object": { + "type": "Identifier", + "start": 1444, + "end": 1450, + "loc": { + "start": { + "line": 56, + "column": 33 + }, + "end": { + "line": 56, + "column": 39 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 1451, + "end": 1457, + "loc": { + "start": { + "line": 56, + "column": 40 + }, + "end": { + "line": 56, + "column": 46 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 1458, + "end": 1460, + "loc": { + "start": { + "line": 56, + "column": 47 + }, + "end": { + "line": 56, + "column": 49 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 1462, + "end": 1467, + "loc": { + "start": { + "line": 56, + "column": 51 + }, + "end": { + "line": 56, + "column": 56 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 1469, + "end": 1567, + "loc": { + "start": { + "line": 56, + "column": 58 + }, + "end": { + "line": 58, + "column": 19 + } + }, + "properties": [ + { + "type": "Property", + "start": 1493, + "end": 1546, + "loc": { + "start": { + "line": 57, + "column": 22 + }, + "end": { + "line": 57, + "column": 75 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1493, + "end": 1505, + "loc": { + "start": { + "line": 57, + "column": 22 + }, + "end": { + "line": 57, + "column": 34 + } + }, + "name": "profileViews" + }, + "value": { + "type": "ObjectExpression", + "start": 1507, + "end": 1546, + "loc": { + "start": { + "line": 57, + "column": 36 + }, + "end": { + "line": 57, + "column": 75 + } + }, + "properties": [ + { + "type": "Property", + "start": 1508, + "end": 1545, + "loc": { + "start": { + "line": 57, + "column": 37 + }, + "end": { + "line": 57, + "column": 74 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Literal", + "start": 1508, + "end": 1515, + "loc": { + "start": { + "line": 57, + "column": 37 + }, + "end": { + "line": 57, + "column": 44 + } + }, + "value": "count", + "rawValue": "count", + "raw": "'count'" + }, + "value": { + "type": "MemberExpression", + "start": 1517, + "end": 1545, + "loc": { + "start": { + "line": 57, + "column": 46 + }, + "end": { + "line": 57, + "column": 74 + } + }, + "object": { + "type": "MemberExpression", + "start": 1517, + "end": 1532, + "loc": { + "start": { + "line": 57, + "column": 46 + }, + "end": { + "line": 57, + "column": 61 + } + }, + "object": { + "type": "Identifier", + "start": 1517, + "end": 1523, + "loc": { + "start": { + "line": 57, + "column": 46 + }, + "end": { + "line": 57, + "column": 52 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1524, + "end": 1532, + "loc": { + "start": { + "line": 57, + "column": 53 + }, + "end": { + "line": 57, + "column": 61 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1533, + "end": 1545, + "loc": { + "start": { + "line": 57, + "column": 62 + }, + "end": { + "line": 57, + "column": 74 + } + }, + "name": "profileViews" + }, + "computed": false + }, + "kind": "init" + } + ] + }, + "kind": "init" + } + ] + } + ] + } + } + ], + "kind": "var" + } + ] + }, + "alternate": { + "type": "IfStatement", + "start": 1592, + "end": 2313, + "loc": { + "start": { + "line": 59, + "column": 23 + }, + "end": { + "line": 72, + "column": 17 + } + }, + "test": { + "type": "MemberExpression", + "start": 1596, + "end": 1622, + "loc": { + "start": { + "line": 59, + "column": 27 + }, + "end": { + "line": 59, + "column": 53 + } + }, + "object": { + "type": "MemberExpression", + "start": 1596, + "end": 1611, + "loc": { + "start": { + "line": 59, + "column": 27 + }, + "end": { + "line": 59, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 1596, + "end": 1602, + "loc": { + "start": { + "line": 59, + "column": 27 + }, + "end": { + "line": 59, + "column": 33 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1603, + "end": 1611, + "loc": { + "start": { + "line": 59, + "column": 34 + }, + "end": { + "line": 59, + "column": 42 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1612, + "end": 1622, + "loc": { + "start": { + "line": 59, + "column": 43 + }, + "end": { + "line": 59, + "column": 53 + } + }, + "name": "mostViewed" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 1624, + "end": 1786, + "loc": { + "start": { + "line": 59, + "column": 55 + }, + "end": { + "line": 63, + "column": 17 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 1644, + "end": 1768, + "loc": { + "start": { + "line": 60, + "column": 18 + }, + "end": { + "line": 62, + "column": 20 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1648, + "end": 1768, + "loc": { + "start": { + "line": 60, + "column": 22 + }, + "end": { + "line": 62, + "column": 20 + } + }, + "id": { + "type": "Identifier", + "start": 1648, + "end": 1656, + "loc": { + "start": { + "line": 60, + "column": 22 + }, + "end": { + "line": 60, + "column": 30 + } + }, + "name": "newState" + }, + "init": { + "type": "CallExpression", + "start": 1659, + "end": 1768, + "loc": { + "start": { + "line": 60, + "column": 33 + }, + "end": { + "line": 62, + "column": 20 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1659, + "end": 1672, + "loc": { + "start": { + "line": 60, + "column": 33 + }, + "end": { + "line": 60, + "column": 46 + } + }, + "object": { + "type": "Identifier", + "start": 1659, + "end": 1665, + "loc": { + "start": { + "line": 60, + "column": 33 + }, + "end": { + "line": 60, + "column": 39 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 1666, + "end": 1672, + "loc": { + "start": { + "line": 60, + "column": 40 + }, + "end": { + "line": 60, + "column": 46 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 1673, + "end": 1675, + "loc": { + "start": { + "line": 60, + "column": 47 + }, + "end": { + "line": 60, + "column": 49 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 1677, + "end": 1682, + "loc": { + "start": { + "line": 60, + "column": 51 + }, + "end": { + "line": 60, + "column": 56 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 1684, + "end": 1767, + "loc": { + "start": { + "line": 60, + "column": 58 + }, + "end": { + "line": 62, + "column": 19 + } + }, + "properties": [ + { + "type": "Property", + "start": 1708, + "end": 1746, + "loc": { + "start": { + "line": 61, + "column": 22 + }, + "end": { + "line": 61, + "column": 60 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1708, + "end": 1718, + "loc": { + "start": { + "line": 61, + "column": 22 + }, + "end": { + "line": 61, + "column": 32 + } + }, + "name": "mostViewed" + }, + "value": { + "type": "MemberExpression", + "start": 1720, + "end": 1746, + "loc": { + "start": { + "line": 61, + "column": 34 + }, + "end": { + "line": 61, + "column": 60 + } + }, + "object": { + "type": "MemberExpression", + "start": 1720, + "end": 1735, + "loc": { + "start": { + "line": 61, + "column": 34 + }, + "end": { + "line": 61, + "column": 49 + } + }, + "object": { + "type": "Identifier", + "start": 1720, + "end": 1726, + "loc": { + "start": { + "line": 61, + "column": 34 + }, + "end": { + "line": 61, + "column": 40 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1727, + "end": 1735, + "loc": { + "start": { + "line": 61, + "column": 41 + }, + "end": { + "line": 61, + "column": 49 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1736, + "end": 1746, + "loc": { + "start": { + "line": 61, + "column": 50 + }, + "end": { + "line": 61, + "column": 60 + } + }, + "name": "mostViewed" + }, + "computed": false + }, + "kind": "init" + } + ] + } + ] + } + } + ], + "kind": "var" + } + ] + }, + "alternate": { + "type": "IfStatement", + "start": 1792, + "end": 2313, + "loc": { + "start": { + "line": 63, + "column": 23 + }, + "end": { + "line": 72, + "column": 17 + } + }, + "test": { + "type": "MemberExpression", + "start": 1796, + "end": 1820, + "loc": { + "start": { + "line": 63, + "column": 27 + }, + "end": { + "line": 63, + "column": 51 + } + }, + "object": { + "type": "MemberExpression", + "start": 1796, + "end": 1811, + "loc": { + "start": { + "line": 63, + "column": 27 + }, + "end": { + "line": 63, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 1796, + "end": 1802, + "loc": { + "start": { + "line": 63, + "column": 27 + }, + "end": { + "line": 63, + "column": 33 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1803, + "end": 1811, + "loc": { + "start": { + "line": 63, + "column": 34 + }, + "end": { + "line": 63, + "column": 42 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1812, + "end": 1820, + "loc": { + "start": { + "line": 63, + "column": 43 + }, + "end": { + "line": 63, + "column": 51 + } + }, + "name": "geoViews" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 1822, + "end": 1980, + "loc": { + "start": { + "line": 63, + "column": 53 + }, + "end": { + "line": 67, + "column": 17 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 1842, + "end": 1962, + "loc": { + "start": { + "line": 64, + "column": 18 + }, + "end": { + "line": 66, + "column": 20 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1846, + "end": 1962, + "loc": { + "start": { + "line": 64, + "column": 22 + }, + "end": { + "line": 66, + "column": 20 + } + }, + "id": { + "type": "Identifier", + "start": 1846, + "end": 1854, + "loc": { + "start": { + "line": 64, + "column": 22 + }, + "end": { + "line": 64, + "column": 30 + } + }, + "name": "newState" + }, + "init": { + "type": "CallExpression", + "start": 1857, + "end": 1962, + "loc": { + "start": { + "line": 64, + "column": 33 + }, + "end": { + "line": 66, + "column": 20 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1857, + "end": 1870, + "loc": { + "start": { + "line": 64, + "column": 33 + }, + "end": { + "line": 64, + "column": 46 + } + }, + "object": { + "type": "Identifier", + "start": 1857, + "end": 1863, + "loc": { + "start": { + "line": 64, + "column": 33 + }, + "end": { + "line": 64, + "column": 39 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 1864, + "end": 1870, + "loc": { + "start": { + "line": 64, + "column": 40 + }, + "end": { + "line": 64, + "column": 46 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 1871, + "end": 1873, + "loc": { + "start": { + "line": 64, + "column": 47 + }, + "end": { + "line": 64, + "column": 49 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 1875, + "end": 1880, + "loc": { + "start": { + "line": 64, + "column": 51 + }, + "end": { + "line": 64, + "column": 56 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 1882, + "end": 1961, + "loc": { + "start": { + "line": 64, + "column": 58 + }, + "end": { + "line": 66, + "column": 19 + } + }, + "properties": [ + { + "type": "Property", + "start": 1906, + "end": 1940, + "loc": { + "start": { + "line": 65, + "column": 22 + }, + "end": { + "line": 65, + "column": 56 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1906, + "end": 1914, + "loc": { + "start": { + "line": 65, + "column": 22 + }, + "end": { + "line": 65, + "column": 30 + } + }, + "name": "geoViews" + }, + "value": { + "type": "MemberExpression", + "start": 1916, + "end": 1940, + "loc": { + "start": { + "line": 65, + "column": 32 + }, + "end": { + "line": 65, + "column": 56 + } + }, + "object": { + "type": "MemberExpression", + "start": 1916, + "end": 1931, + "loc": { + "start": { + "line": 65, + "column": 32 + }, + "end": { + "line": 65, + "column": 47 + } + }, + "object": { + "type": "Identifier", + "start": 1916, + "end": 1922, + "loc": { + "start": { + "line": 65, + "column": 32 + }, + "end": { + "line": 65, + "column": 38 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1923, + "end": 1931, + "loc": { + "start": { + "line": 65, + "column": 39 + }, + "end": { + "line": 65, + "column": 47 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1932, + "end": 1940, + "loc": { + "start": { + "line": 65, + "column": 48 + }, + "end": { + "line": 65, + "column": 56 + } + }, + "name": "geoViews" + }, + "computed": false + }, + "kind": "init" + } + ] + } + ] + } + } + ], + "kind": "var" + } + ] + }, + "alternate": { + "type": "IfStatement", + "start": 1986, + "end": 2313, + "loc": { + "start": { + "line": 67, + "column": 23 + }, + "end": { + "line": 72, + "column": 17 + } + }, + "test": { + "type": "MemberExpression", + "start": 1990, + "end": 2018, + "loc": { + "start": { + "line": 67, + "column": 27 + }, + "end": { + "line": 67, + "column": 55 + } + }, + "object": { + "type": "MemberExpression", + "start": 1990, + "end": 2005, + "loc": { + "start": { + "line": 67, + "column": 27 + }, + "end": { + "line": 67, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 1990, + "end": 1996, + "loc": { + "start": { + "line": 67, + "column": 27 + }, + "end": { + "line": 67, + "column": 33 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1997, + "end": 2005, + "loc": { + "start": { + "line": 67, + "column": 34 + }, + "end": { + "line": 67, + "column": 42 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2006, + "end": 2018, + "loc": { + "start": { + "line": 67, + "column": 43 + }, + "end": { + "line": 67, + "column": 55 + } + }, + "name": "newFollowers" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 2020, + "end": 2313, + "loc": { + "start": { + "line": 67, + "column": 57 + }, + "end": { + "line": 72, + "column": 17 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 2040, + "end": 2079, + "loc": { + "start": { + "line": 68, + "column": 18 + }, + "end": { + "line": 68, + "column": 57 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 2044, + "end": 2079, + "loc": { + "start": { + "line": 68, + "column": 22 + }, + "end": { + "line": 68, + "column": 57 + } + }, + "id": { + "type": "Identifier", + "start": 2044, + "end": 2052, + "loc": { + "start": { + "line": 68, + "column": 22 + }, + "end": { + "line": 68, + "column": 30 + } + }, + "name": "newState" + }, + "init": { + "type": "CallExpression", + "start": 2055, + "end": 2079, + "loc": { + "start": { + "line": 68, + "column": 33 + }, + "end": { + "line": 68, + "column": 57 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2055, + "end": 2068, + "loc": { + "start": { + "line": 68, + "column": 33 + }, + "end": { + "line": 68, + "column": 46 + } + }, + "object": { + "type": "Identifier", + "start": 2055, + "end": 2061, + "loc": { + "start": { + "line": 68, + "column": 33 + }, + "end": { + "line": 68, + "column": 39 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 2062, + "end": 2068, + "loc": { + "start": { + "line": 68, + "column": 40 + }, + "end": { + "line": 68, + "column": 46 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 2069, + "end": 2071, + "loc": { + "start": { + "line": 68, + "column": 47 + }, + "end": { + "line": 68, + "column": 49 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 2073, + "end": 2078, + "loc": { + "start": { + "line": 68, + "column": 51 + }, + "end": { + "line": 68, + "column": 56 + } + }, + "name": "state" + } + ] + } + } + ], + "kind": "var" + }, + { + "type": "VariableDeclaration", + "start": 2098, + "end": 2149, + "loc": { + "start": { + "line": 69, + "column": 18 + }, + "end": { + "line": 69, + "column": 69 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 2102, + "end": 2149, + "loc": { + "start": { + "line": 69, + "column": 22 + }, + "end": { + "line": 69, + "column": 69 + } + }, + "id": { + "type": "Identifier", + "start": 2102, + "end": 2111, + "loc": { + "start": { + "line": 69, + "column": 22 + }, + "end": { + "line": 69, + "column": 31 + } + }, + "name": "increment" + }, + "init": { + "type": "MemberExpression", + "start": 2114, + "end": 2149, + "loc": { + "start": { + "line": 69, + "column": 34 + }, + "end": { + "line": 69, + "column": 69 + } + }, + "object": { + "type": "MemberExpression", + "start": 2114, + "end": 2142, + "loc": { + "start": { + "line": 69, + "column": 34 + }, + "end": { + "line": 69, + "column": 62 + } + }, + "object": { + "type": "MemberExpression", + "start": 2114, + "end": 2129, + "loc": { + "start": { + "line": 69, + "column": 34 + }, + "end": { + "line": 69, + "column": 49 + } + }, + "object": { + "type": "Identifier", + "start": 2114, + "end": 2120, + "loc": { + "start": { + "line": 69, + "column": 34 + }, + "end": { + "line": 69, + "column": 40 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 2121, + "end": 2129, + "loc": { + "start": { + "line": 69, + "column": 41 + }, + "end": { + "line": 69, + "column": 49 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2130, + "end": 2142, + "loc": { + "start": { + "line": 69, + "column": 50 + }, + "end": { + "line": 69, + "column": 62 + } + }, + "name": "newFollowers" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2143, + "end": 2149, + "loc": { + "start": { + "line": 69, + "column": 63 + }, + "end": { + "line": 69, + "column": 69 + } + }, + "name": "result" + }, + "computed": false + } + } + ], + "kind": "var" + }, + { + "type": "ExpressionStatement", + "start": 2168, + "end": 2214, + "loc": { + "start": { + "line": 70, + "column": 18 + }, + "end": { + "line": 70, + "column": 64 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 2168, + "end": 2214, + "loc": { + "start": { + "line": 70, + "column": 18 + }, + "end": { + "line": 70, + "column": 64 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 2168, + "end": 2202, + "loc": { + "start": { + "line": 70, + "column": 18 + }, + "end": { + "line": 70, + "column": 52 + } + }, + "object": { + "type": "MemberExpression", + "start": 2168, + "end": 2189, + "loc": { + "start": { + "line": 70, + "column": 18 + }, + "end": { + "line": 70, + "column": 39 + } + }, + "object": { + "type": "Identifier", + "start": 2168, + "end": 2176, + "loc": { + "start": { + "line": 70, + "column": 18 + }, + "end": { + "line": 70, + "column": 26 + } + }, + "name": "newState" + }, + "property": { + "type": "Literal", + "start": 2177, + "end": 2188, + "loc": { + "start": { + "line": 70, + "column": 27 + }, + "end": { + "line": 70, + "column": 38 + } + }, + "value": "followers", + "rawValue": "followers", + "raw": "'followers'" + }, + "computed": true + }, + "property": { + "type": "Literal", + "start": 2190, + "end": 2201, + "loc": { + "start": { + "line": 70, + "column": 40 + }, + "end": { + "line": 70, + "column": 51 + } + }, + "value": "increment", + "rawValue": "increment", + "raw": "'increment'" + }, + "computed": true + }, + "right": { + "type": "Identifier", + "start": 2205, + "end": 2214, + "loc": { + "start": { + "line": 70, + "column": 55 + }, + "end": { + "line": 70, + "column": 64 + } + }, + "name": "increment" + } + } + }, + { + "type": "ExpressionStatement", + "start": 2233, + "end": 2295, + "loc": { + "start": { + "line": 71, + "column": 18 + }, + "end": { + "line": 71, + "column": 80 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 2233, + "end": 2295, + "loc": { + "start": { + "line": 71, + "column": 18 + }, + "end": { + "line": 71, + "column": 80 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 2233, + "end": 2263, + "loc": { + "start": { + "line": 71, + "column": 18 + }, + "end": { + "line": 71, + "column": 48 + } + }, + "object": { + "type": "MemberExpression", + "start": 2233, + "end": 2254, + "loc": { + "start": { + "line": 71, + "column": 18 + }, + "end": { + "line": 71, + "column": 39 + } + }, + "object": { + "type": "Identifier", + "start": 2233, + "end": 2241, + "loc": { + "start": { + "line": 71, + "column": 18 + }, + "end": { + "line": 71, + "column": 26 + } + }, + "name": "newState" + }, + "property": { + "type": "Literal", + "start": 2242, + "end": 2253, + "loc": { + "start": { + "line": 71, + "column": 27 + }, + "end": { + "line": 71, + "column": 38 + } + }, + "value": "followers", + "rawValue": "followers", + "raw": "'followers'" + }, + "computed": true + }, + "property": { + "type": "Literal", + "start": 2255, + "end": 2262, + "loc": { + "start": { + "line": 71, + "column": 40 + }, + "end": { + "line": 71, + "column": 47 + } + }, + "value": "color", + "rawValue": "color", + "raw": "'color'" + }, + "computed": true + }, + "right": { + "type": "ConditionalExpression", + "start": 2266, + "end": 2295, + "loc": { + "start": { + "line": 71, + "column": 51 + }, + "end": { + "line": 71, + "column": 80 + } + }, + "test": { + "type": "Identifier", + "start": 2267, + "end": 2276, + "loc": { + "start": { + "line": 71, + "column": 52 + }, + "end": { + "line": 71, + "column": 61 + } + }, + "name": "increment", + "parenthesizedExpression": true + }, + "consequent": { + "type": "Literal", + "start": 2280, + "end": 2287, + "loc": { + "start": { + "line": 71, + "column": 65 + }, + "end": { + "line": 71, + "column": 72 + } + }, + "value": "green", + "rawValue": "green", + "raw": "'green'" + }, + "alternate": { + "type": "Literal", + "start": 2290, + "end": 2295, + "loc": { + "start": { + "line": 71, + "column": 75 + }, + "end": { + "line": 71, + "column": 80 + } + }, + "value": "red", + "rawValue": "red", + "raw": "'red'" + } + } + } + } + ] + }, + "alternate": null + } + } + } + } + }, + { + "type": "ReturnStatement", + "start": 2331, + "end": 2346, + "loc": { + "start": { + "line": 74, + "column": 16 + }, + "end": { + "line": 74, + "column": 31 + } + }, + "argument": { + "type": "Identifier", + "start": 2338, + "end": 2346, + "loc": { + "start": { + "line": 74, + "column": 23 + }, + "end": { + "line": 74, + "column": 31 + } + }, + "name": "newState" + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 2374, + "end": 2393, + "loc": { + "start": { + "line": 77, + "column": 12 + }, + "end": { + "line": 77, + "column": 31 + } + }, + "argument": { + "type": "Identifier", + "start": 2381, + "end": 2393, + "loc": { + "start": { + "line": 77, + "column": 19 + }, + "end": { + "line": 77, + "column": 31 + } + }, + "name": "initialState" + } + } + ], + "test": { + "type": "MemberExpression", + "start": 1087, + "end": 1104, + "loc": { + "start": { + "line": 49, + "column": 13 + }, + "end": { + "line": 49, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 1087, + "end": 1099, + "loc": { + "start": { + "line": 49, + "column": 13 + }, + "end": { + "line": 49, + "column": 25 + } + }, + "name": "StatsActions" + }, + "property": { + "type": "Identifier", + "start": 1100, + "end": 1104, + "loc": { + "start": { + "line": 49, + "column": 26 + }, + "end": { + "line": 49, + "column": 30 + } + }, + "name": "LOAD" + }, + "computed": false + } + } + ] + }, + { + "type": "ReturnStatement", + "start": 2406, + "end": 2418, + "loc": { + "start": { + "line": 81, + "column": 4 + }, + "end": { + "line": 81, + "column": 16 + } + }, + "argument": { + "type": "Identifier", + "start": 2413, + "end": 2418, + "loc": { + "start": { + "line": 81, + "column": 11 + }, + "end": { + "line": 81, + "column": 16 + } + }, + "name": "state" + } + } + ] + }, + "leadingComments": [], + "name": "_", + "trailingComments": [] + }, + { + "type": "Identifier", + "start": 2423, + "end": 2443, + "loc": { + "start": { + "line": 85, + "column": 0 + }, + "end": { + "line": 85, + "column": 20 + } + }, + "declaration": { + "type": "Identifier", + "start": 2438, + "end": 2443, + "loc": { + "start": { + "line": 85, + "column": 15 + }, + "end": { + "line": 85, + "column": 20 + } + }, + "name": "Stats" + }, + "name": "_", + "leadingComments": [], + "trailingComments": [] + }, + { + "type": "ExportDefaultDeclaration", + "start": 2423, + "end": 2443, + "loc": { + "start": { + "line": 85, + "column": 0 + }, + "end": { + "line": 85, + "column": 20 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 999, + "end": 2421, + "loc": { + "start": { + "line": 46, + "column": 0 + }, + "end": { + "line": 83, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 1008, + "end": 1013, + "loc": { + "start": { + "line": 46, + "column": 9 + }, + "end": { + "line": 46, + "column": 14 + } + }, + "name": "Stats", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "AssignmentPattern", + "start": 1014, + "end": 1034, + "loc": { + "start": { + "line": 46, + "column": 15 + }, + "end": { + "line": 46, + "column": 35 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 1014, + "end": 1019, + "loc": { + "start": { + "line": 46, + "column": 15 + }, + "end": { + "line": 46, + "column": 20 + } + }, + "name": "state" + }, + "right": { + "type": "Identifier", + "start": 1022, + "end": 1034, + "loc": { + "start": { + "line": 46, + "column": 23 + }, + "end": { + "line": 46, + "column": 35 + } + }, + "name": "initialState" + } + }, + { + "type": "Identifier", + "start": 1036, + "end": 1042, + "loc": { + "start": { + "line": 46, + "column": 37 + }, + "end": { + "line": 46, + "column": 43 + } + }, + "name": "action" + } + ], + "body": { + "type": "BlockStatement", + "start": 1044, + "end": 2421, + "loc": { + "start": { + "line": 46, + "column": 45 + }, + "end": { + "line": 83, + "column": 1 + } + }, + "body": [ + { + "type": "SwitchStatement", + "start": 1050, + "end": 2400, + "loc": { + "start": { + "line": 47, + "column": 4 + }, + "end": { + "line": 79, + "column": 5 + } + }, + "discriminant": { + "type": "MemberExpression", + "start": 1058, + "end": 1069, + "loc": { + "start": { + "line": 47, + "column": 12 + }, + "end": { + "line": 47, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 1058, + "end": 1064, + "loc": { + "start": { + "line": 47, + "column": 12 + }, + "end": { + "line": 47, + "column": 18 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1065, + "end": 1069, + "loc": { + "start": { + "line": 47, + "column": 19 + }, + "end": { + "line": 47, + "column": 23 + } + }, + "name": "type" + }, + "computed": false + }, + "cases": [ + { + "type": "SwitchCase", + "start": 1082, + "end": 2393, + "loc": { + "start": { + "line": 49, + "column": 8 + }, + "end": { + "line": 77, + "column": 31 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 1118, + "end": 2360, + "loc": { + "start": { + "line": 50, + "column": 12 + }, + "end": { + "line": 75, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 1122, + "end": 1137, + "loc": { + "start": { + "line": 50, + "column": 16 + }, + "end": { + "line": 50, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 1122, + "end": 1128, + "loc": { + "start": { + "line": 50, + "column": 16 + }, + "end": { + "line": 50, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1129, + "end": 1137, + "loc": { + "start": { + "line": 50, + "column": 23 + }, + "end": { + "line": 50, + "column": 31 + } + }, + "name": "response" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 1139, + "end": 2360, + "loc": { + "start": { + "line": 50, + "column": 33 + }, + "end": { + "line": 75, + "column": 13 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 1157, + "end": 2313, + "loc": { + "start": { + "line": 51, + "column": 16 + }, + "end": { + "line": 72, + "column": 17 + } + }, + "test": { + "type": "BinaryExpression", + "start": 1161, + "end": 1191, + "loc": { + "start": { + "line": 51, + "column": 20 + }, + "end": { + "line": 51, + "column": 50 + } + }, + "left": { + "type": "MemberExpression", + "start": 1161, + "end": 1186, + "loc": { + "start": { + "line": 51, + "column": 20 + }, + "end": { + "line": 51, + "column": 45 + } + }, + "object": { + "type": "MemberExpression", + "start": 1161, + "end": 1176, + "loc": { + "start": { + "line": 51, + "column": 20 + }, + "end": { + "line": 51, + "column": 35 + } + }, + "object": { + "type": "Identifier", + "start": 1161, + "end": 1167, + "loc": { + "start": { + "line": 51, + "column": 20 + }, + "end": { + "line": 51, + "column": 26 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1168, + "end": 1176, + "loc": { + "start": { + "line": 51, + "column": 27 + }, + "end": { + "line": 51, + "column": 35 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1177, + "end": 1186, + "loc": { + "start": { + "line": 51, + "column": 36 + }, + "end": { + "line": 51, + "column": 45 + } + }, + "name": "itemViews" + }, + "computed": false + }, + "operator": ">=", + "right": { + "type": "Literal", + "start": 1190, + "end": 1191, + "loc": { + "start": { + "line": 51, + "column": 49 + }, + "end": { + "line": 51, + "column": 50 + } + }, + "value": 0, + "rawValue": 0, + "raw": "0" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 1193, + "end": 1364, + "loc": { + "start": { + "line": 51, + "column": 52 + }, + "end": { + "line": 55, + "column": 17 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 1213, + "end": 1346, + "loc": { + "start": { + "line": 52, + "column": 18 + }, + "end": { + "line": 54, + "column": 20 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1217, + "end": 1346, + "loc": { + "start": { + "line": 52, + "column": 22 + }, + "end": { + "line": 54, + "column": 20 + } + }, + "id": { + "type": "Identifier", + "start": 1217, + "end": 1225, + "loc": { + "start": { + "line": 52, + "column": 22 + }, + "end": { + "line": 52, + "column": 30 + } + }, + "name": "newState" + }, + "init": { + "type": "CallExpression", + "start": 1228, + "end": 1346, + "loc": { + "start": { + "line": 52, + "column": 33 + }, + "end": { + "line": 54, + "column": 20 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1228, + "end": 1241, + "loc": { + "start": { + "line": 52, + "column": 33 + }, + "end": { + "line": 52, + "column": 46 + } + }, + "object": { + "type": "Identifier", + "start": 1228, + "end": 1234, + "loc": { + "start": { + "line": 52, + "column": 33 + }, + "end": { + "line": 52, + "column": 39 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 1235, + "end": 1241, + "loc": { + "start": { + "line": 52, + "column": 40 + }, + "end": { + "line": 52, + "column": 46 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 1242, + "end": 1244, + "loc": { + "start": { + "line": 52, + "column": 47 + }, + "end": { + "line": 52, + "column": 49 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 1246, + "end": 1251, + "loc": { + "start": { + "line": 52, + "column": 51 + }, + "end": { + "line": 52, + "column": 56 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 1253, + "end": 1345, + "loc": { + "start": { + "line": 52, + "column": 58 + }, + "end": { + "line": 54, + "column": 19 + } + }, + "properties": [ + { + "type": "Property", + "start": 1277, + "end": 1324, + "loc": { + "start": { + "line": 53, + "column": 22 + }, + "end": { + "line": 53, + "column": 69 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1277, + "end": 1286, + "loc": { + "start": { + "line": 53, + "column": 22 + }, + "end": { + "line": 53, + "column": 31 + } + }, + "name": "itemViews" + }, + "value": { + "type": "ObjectExpression", + "start": 1288, + "end": 1324, + "loc": { + "start": { + "line": 53, + "column": 33 + }, + "end": { + "line": 53, + "column": 69 + } + }, + "properties": [ + { + "type": "Property", + "start": 1289, + "end": 1323, + "loc": { + "start": { + "line": 53, + "column": 34 + }, + "end": { + "line": 53, + "column": 68 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Literal", + "start": 1289, + "end": 1296, + "loc": { + "start": { + "line": 53, + "column": 34 + }, + "end": { + "line": 53, + "column": 41 + } + }, + "value": "count", + "rawValue": "count", + "raw": "'count'" + }, + "value": { + "type": "MemberExpression", + "start": 1298, + "end": 1323, + "loc": { + "start": { + "line": 53, + "column": 43 + }, + "end": { + "line": 53, + "column": 68 + } + }, + "object": { + "type": "MemberExpression", + "start": 1298, + "end": 1313, + "loc": { + "start": { + "line": 53, + "column": 43 + }, + "end": { + "line": 53, + "column": 58 + } + }, + "object": { + "type": "Identifier", + "start": 1298, + "end": 1304, + "loc": { + "start": { + "line": 53, + "column": 43 + }, + "end": { + "line": 53, + "column": 49 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1305, + "end": 1313, + "loc": { + "start": { + "line": 53, + "column": 50 + }, + "end": { + "line": 53, + "column": 58 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1314, + "end": 1323, + "loc": { + "start": { + "line": 53, + "column": 59 + }, + "end": { + "line": 53, + "column": 68 + } + }, + "name": "itemViews" + }, + "computed": false + }, + "kind": "init" + } + ] + }, + "kind": "init" + } + ] + } + ] + } + } + ], + "kind": "var" + } + ] + }, + "alternate": { + "type": "IfStatement", + "start": 1370, + "end": 2313, + "loc": { + "start": { + "line": 55, + "column": 23 + }, + "end": { + "line": 72, + "column": 17 + } + }, + "test": { + "type": "BinaryExpression", + "start": 1374, + "end": 1407, + "loc": { + "start": { + "line": 55, + "column": 27 + }, + "end": { + "line": 55, + "column": 60 + } + }, + "left": { + "type": "MemberExpression", + "start": 1374, + "end": 1402, + "loc": { + "start": { + "line": 55, + "column": 27 + }, + "end": { + "line": 55, + "column": 55 + } + }, + "object": { + "type": "MemberExpression", + "start": 1374, + "end": 1389, + "loc": { + "start": { + "line": 55, + "column": 27 + }, + "end": { + "line": 55, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 1374, + "end": 1380, + "loc": { + "start": { + "line": 55, + "column": 27 + }, + "end": { + "line": 55, + "column": 33 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1381, + "end": 1389, + "loc": { + "start": { + "line": 55, + "column": 34 + }, + "end": { + "line": 55, + "column": 42 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1390, + "end": 1402, + "loc": { + "start": { + "line": 55, + "column": 43 + }, + "end": { + "line": 55, + "column": 55 + } + }, + "name": "profileViews" + }, + "computed": false + }, + "operator": ">=", + "right": { + "type": "Literal", + "start": 1406, + "end": 1407, + "loc": { + "start": { + "line": 55, + "column": 59 + }, + "end": { + "line": 55, + "column": 60 + } + }, + "value": 0, + "rawValue": 0, + "raw": "0" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 1409, + "end": 1586, + "loc": { + "start": { + "line": 55, + "column": 62 + }, + "end": { + "line": 59, + "column": 17 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 1429, + "end": 1568, + "loc": { + "start": { + "line": 56, + "column": 18 + }, + "end": { + "line": 58, + "column": 20 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1433, + "end": 1568, + "loc": { + "start": { + "line": 56, + "column": 22 + }, + "end": { + "line": 58, + "column": 20 + } + }, + "id": { + "type": "Identifier", + "start": 1433, + "end": 1441, + "loc": { + "start": { + "line": 56, + "column": 22 + }, + "end": { + "line": 56, + "column": 30 + } + }, + "name": "newState" + }, + "init": { + "type": "CallExpression", + "start": 1444, + "end": 1568, + "loc": { + "start": { + "line": 56, + "column": 33 + }, + "end": { + "line": 58, + "column": 20 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1444, + "end": 1457, + "loc": { + "start": { + "line": 56, + "column": 33 + }, + "end": { + "line": 56, + "column": 46 + } + }, + "object": { + "type": "Identifier", + "start": 1444, + "end": 1450, + "loc": { + "start": { + "line": 56, + "column": 33 + }, + "end": { + "line": 56, + "column": 39 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 1451, + "end": 1457, + "loc": { + "start": { + "line": 56, + "column": 40 + }, + "end": { + "line": 56, + "column": 46 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 1458, + "end": 1460, + "loc": { + "start": { + "line": 56, + "column": 47 + }, + "end": { + "line": 56, + "column": 49 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 1462, + "end": 1467, + "loc": { + "start": { + "line": 56, + "column": 51 + }, + "end": { + "line": 56, + "column": 56 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 1469, + "end": 1567, + "loc": { + "start": { + "line": 56, + "column": 58 + }, + "end": { + "line": 58, + "column": 19 + } + }, + "properties": [ + { + "type": "Property", + "start": 1493, + "end": 1546, + "loc": { + "start": { + "line": 57, + "column": 22 + }, + "end": { + "line": 57, + "column": 75 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1493, + "end": 1505, + "loc": { + "start": { + "line": 57, + "column": 22 + }, + "end": { + "line": 57, + "column": 34 + } + }, + "name": "profileViews" + }, + "value": { + "type": "ObjectExpression", + "start": 1507, + "end": 1546, + "loc": { + "start": { + "line": 57, + "column": 36 + }, + "end": { + "line": 57, + "column": 75 + } + }, + "properties": [ + { + "type": "Property", + "start": 1508, + "end": 1545, + "loc": { + "start": { + "line": 57, + "column": 37 + }, + "end": { + "line": 57, + "column": 74 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Literal", + "start": 1508, + "end": 1515, + "loc": { + "start": { + "line": 57, + "column": 37 + }, + "end": { + "line": 57, + "column": 44 + } + }, + "value": "count", + "rawValue": "count", + "raw": "'count'" + }, + "value": { + "type": "MemberExpression", + "start": 1517, + "end": 1545, + "loc": { + "start": { + "line": 57, + "column": 46 + }, + "end": { + "line": 57, + "column": 74 + } + }, + "object": { + "type": "MemberExpression", + "start": 1517, + "end": 1532, + "loc": { + "start": { + "line": 57, + "column": 46 + }, + "end": { + "line": 57, + "column": 61 + } + }, + "object": { + "type": "Identifier", + "start": 1517, + "end": 1523, + "loc": { + "start": { + "line": 57, + "column": 46 + }, + "end": { + "line": 57, + "column": 52 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1524, + "end": 1532, + "loc": { + "start": { + "line": 57, + "column": 53 + }, + "end": { + "line": 57, + "column": 61 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1533, + "end": 1545, + "loc": { + "start": { + "line": 57, + "column": 62 + }, + "end": { + "line": 57, + "column": 74 + } + }, + "name": "profileViews" + }, + "computed": false + }, + "kind": "init" + } + ] + }, + "kind": "init" + } + ] + } + ] + } + } + ], + "kind": "var" + } + ] + }, + "alternate": { + "type": "IfStatement", + "start": 1592, + "end": 2313, + "loc": { + "start": { + "line": 59, + "column": 23 + }, + "end": { + "line": 72, + "column": 17 + } + }, + "test": { + "type": "MemberExpression", + "start": 1596, + "end": 1622, + "loc": { + "start": { + "line": 59, + "column": 27 + }, + "end": { + "line": 59, + "column": 53 + } + }, + "object": { + "type": "MemberExpression", + "start": 1596, + "end": 1611, + "loc": { + "start": { + "line": 59, + "column": 27 + }, + "end": { + "line": 59, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 1596, + "end": 1602, + "loc": { + "start": { + "line": 59, + "column": 27 + }, + "end": { + "line": 59, + "column": 33 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1603, + "end": 1611, + "loc": { + "start": { + "line": 59, + "column": 34 + }, + "end": { + "line": 59, + "column": 42 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1612, + "end": 1622, + "loc": { + "start": { + "line": 59, + "column": 43 + }, + "end": { + "line": 59, + "column": 53 + } + }, + "name": "mostViewed" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 1624, + "end": 1786, + "loc": { + "start": { + "line": 59, + "column": 55 + }, + "end": { + "line": 63, + "column": 17 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 1644, + "end": 1768, + "loc": { + "start": { + "line": 60, + "column": 18 + }, + "end": { + "line": 62, + "column": 20 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1648, + "end": 1768, + "loc": { + "start": { + "line": 60, + "column": 22 + }, + "end": { + "line": 62, + "column": 20 + } + }, + "id": { + "type": "Identifier", + "start": 1648, + "end": 1656, + "loc": { + "start": { + "line": 60, + "column": 22 + }, + "end": { + "line": 60, + "column": 30 + } + }, + "name": "newState" + }, + "init": { + "type": "CallExpression", + "start": 1659, + "end": 1768, + "loc": { + "start": { + "line": 60, + "column": 33 + }, + "end": { + "line": 62, + "column": 20 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1659, + "end": 1672, + "loc": { + "start": { + "line": 60, + "column": 33 + }, + "end": { + "line": 60, + "column": 46 + } + }, + "object": { + "type": "Identifier", + "start": 1659, + "end": 1665, + "loc": { + "start": { + "line": 60, + "column": 33 + }, + "end": { + "line": 60, + "column": 39 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 1666, + "end": 1672, + "loc": { + "start": { + "line": 60, + "column": 40 + }, + "end": { + "line": 60, + "column": 46 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 1673, + "end": 1675, + "loc": { + "start": { + "line": 60, + "column": 47 + }, + "end": { + "line": 60, + "column": 49 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 1677, + "end": 1682, + "loc": { + "start": { + "line": 60, + "column": 51 + }, + "end": { + "line": 60, + "column": 56 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 1684, + "end": 1767, + "loc": { + "start": { + "line": 60, + "column": 58 + }, + "end": { + "line": 62, + "column": 19 + } + }, + "properties": [ + { + "type": "Property", + "start": 1708, + "end": 1746, + "loc": { + "start": { + "line": 61, + "column": 22 + }, + "end": { + "line": 61, + "column": 60 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1708, + "end": 1718, + "loc": { + "start": { + "line": 61, + "column": 22 + }, + "end": { + "line": 61, + "column": 32 + } + }, + "name": "mostViewed" + }, + "value": { + "type": "MemberExpression", + "start": 1720, + "end": 1746, + "loc": { + "start": { + "line": 61, + "column": 34 + }, + "end": { + "line": 61, + "column": 60 + } + }, + "object": { + "type": "MemberExpression", + "start": 1720, + "end": 1735, + "loc": { + "start": { + "line": 61, + "column": 34 + }, + "end": { + "line": 61, + "column": 49 + } + }, + "object": { + "type": "Identifier", + "start": 1720, + "end": 1726, + "loc": { + "start": { + "line": 61, + "column": 34 + }, + "end": { + "line": 61, + "column": 40 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1727, + "end": 1735, + "loc": { + "start": { + "line": 61, + "column": 41 + }, + "end": { + "line": 61, + "column": 49 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1736, + "end": 1746, + "loc": { + "start": { + "line": 61, + "column": 50 + }, + "end": { + "line": 61, + "column": 60 + } + }, + "name": "mostViewed" + }, + "computed": false + }, + "kind": "init" + } + ] + } + ] + } + } + ], + "kind": "var" + } + ] + }, + "alternate": { + "type": "IfStatement", + "start": 1792, + "end": 2313, + "loc": { + "start": { + "line": 63, + "column": 23 + }, + "end": { + "line": 72, + "column": 17 + } + }, + "test": { + "type": "MemberExpression", + "start": 1796, + "end": 1820, + "loc": { + "start": { + "line": 63, + "column": 27 + }, + "end": { + "line": 63, + "column": 51 + } + }, + "object": { + "type": "MemberExpression", + "start": 1796, + "end": 1811, + "loc": { + "start": { + "line": 63, + "column": 27 + }, + "end": { + "line": 63, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 1796, + "end": 1802, + "loc": { + "start": { + "line": 63, + "column": 27 + }, + "end": { + "line": 63, + "column": 33 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1803, + "end": 1811, + "loc": { + "start": { + "line": 63, + "column": 34 + }, + "end": { + "line": 63, + "column": 42 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1812, + "end": 1820, + "loc": { + "start": { + "line": 63, + "column": 43 + }, + "end": { + "line": 63, + "column": 51 + } + }, + "name": "geoViews" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 1822, + "end": 1980, + "loc": { + "start": { + "line": 63, + "column": 53 + }, + "end": { + "line": 67, + "column": 17 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 1842, + "end": 1962, + "loc": { + "start": { + "line": 64, + "column": 18 + }, + "end": { + "line": 66, + "column": 20 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1846, + "end": 1962, + "loc": { + "start": { + "line": 64, + "column": 22 + }, + "end": { + "line": 66, + "column": 20 + } + }, + "id": { + "type": "Identifier", + "start": 1846, + "end": 1854, + "loc": { + "start": { + "line": 64, + "column": 22 + }, + "end": { + "line": 64, + "column": 30 + } + }, + "name": "newState" + }, + "init": { + "type": "CallExpression", + "start": 1857, + "end": 1962, + "loc": { + "start": { + "line": 64, + "column": 33 + }, + "end": { + "line": 66, + "column": 20 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1857, + "end": 1870, + "loc": { + "start": { + "line": 64, + "column": 33 + }, + "end": { + "line": 64, + "column": 46 + } + }, + "object": { + "type": "Identifier", + "start": 1857, + "end": 1863, + "loc": { + "start": { + "line": 64, + "column": 33 + }, + "end": { + "line": 64, + "column": 39 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 1864, + "end": 1870, + "loc": { + "start": { + "line": 64, + "column": 40 + }, + "end": { + "line": 64, + "column": 46 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 1871, + "end": 1873, + "loc": { + "start": { + "line": 64, + "column": 47 + }, + "end": { + "line": 64, + "column": 49 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 1875, + "end": 1880, + "loc": { + "start": { + "line": 64, + "column": 51 + }, + "end": { + "line": 64, + "column": 56 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 1882, + "end": 1961, + "loc": { + "start": { + "line": 64, + "column": 58 + }, + "end": { + "line": 66, + "column": 19 + } + }, + "properties": [ + { + "type": "Property", + "start": 1906, + "end": 1940, + "loc": { + "start": { + "line": 65, + "column": 22 + }, + "end": { + "line": 65, + "column": 56 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1906, + "end": 1914, + "loc": { + "start": { + "line": 65, + "column": 22 + }, + "end": { + "line": 65, + "column": 30 + } + }, + "name": "geoViews" + }, + "value": { + "type": "MemberExpression", + "start": 1916, + "end": 1940, + "loc": { + "start": { + "line": 65, + "column": 32 + }, + "end": { + "line": 65, + "column": 56 + } + }, + "object": { + "type": "MemberExpression", + "start": 1916, + "end": 1931, + "loc": { + "start": { + "line": 65, + "column": 32 + }, + "end": { + "line": 65, + "column": 47 + } + }, + "object": { + "type": "Identifier", + "start": 1916, + "end": 1922, + "loc": { + "start": { + "line": 65, + "column": 32 + }, + "end": { + "line": 65, + "column": 38 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1923, + "end": 1931, + "loc": { + "start": { + "line": 65, + "column": 39 + }, + "end": { + "line": 65, + "column": 47 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1932, + "end": 1940, + "loc": { + "start": { + "line": 65, + "column": 48 + }, + "end": { + "line": 65, + "column": 56 + } + }, + "name": "geoViews" + }, + "computed": false + }, + "kind": "init" + } + ] + } + ] + } + } + ], + "kind": "var" + } + ] + }, + "alternate": { + "type": "IfStatement", + "start": 1986, + "end": 2313, + "loc": { + "start": { + "line": 67, + "column": 23 + }, + "end": { + "line": 72, + "column": 17 + } + }, + "test": { + "type": "MemberExpression", + "start": 1990, + "end": 2018, + "loc": { + "start": { + "line": 67, + "column": 27 + }, + "end": { + "line": 67, + "column": 55 + } + }, + "object": { + "type": "MemberExpression", + "start": 1990, + "end": 2005, + "loc": { + "start": { + "line": 67, + "column": 27 + }, + "end": { + "line": 67, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 1990, + "end": 1996, + "loc": { + "start": { + "line": 67, + "column": 27 + }, + "end": { + "line": 67, + "column": 33 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1997, + "end": 2005, + "loc": { + "start": { + "line": 67, + "column": 34 + }, + "end": { + "line": 67, + "column": 42 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2006, + "end": 2018, + "loc": { + "start": { + "line": 67, + "column": 43 + }, + "end": { + "line": 67, + "column": 55 + } + }, + "name": "newFollowers" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 2020, + "end": 2313, + "loc": { + "start": { + "line": 67, + "column": 57 + }, + "end": { + "line": 72, + "column": 17 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 2040, + "end": 2079, + "loc": { + "start": { + "line": 68, + "column": 18 + }, + "end": { + "line": 68, + "column": 57 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 2044, + "end": 2079, + "loc": { + "start": { + "line": 68, + "column": 22 + }, + "end": { + "line": 68, + "column": 57 + } + }, + "id": { + "type": "Identifier", + "start": 2044, + "end": 2052, + "loc": { + "start": { + "line": 68, + "column": 22 + }, + "end": { + "line": 68, + "column": 30 + } + }, + "name": "newState" + }, + "init": { + "type": "CallExpression", + "start": 2055, + "end": 2079, + "loc": { + "start": { + "line": 68, + "column": 33 + }, + "end": { + "line": 68, + "column": 57 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2055, + "end": 2068, + "loc": { + "start": { + "line": 68, + "column": 33 + }, + "end": { + "line": 68, + "column": 46 + } + }, + "object": { + "type": "Identifier", + "start": 2055, + "end": 2061, + "loc": { + "start": { + "line": 68, + "column": 33 + }, + "end": { + "line": 68, + "column": 39 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 2062, + "end": 2068, + "loc": { + "start": { + "line": 68, + "column": 40 + }, + "end": { + "line": 68, + "column": 46 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 2069, + "end": 2071, + "loc": { + "start": { + "line": 68, + "column": 47 + }, + "end": { + "line": 68, + "column": 49 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 2073, + "end": 2078, + "loc": { + "start": { + "line": 68, + "column": 51 + }, + "end": { + "line": 68, + "column": 56 + } + }, + "name": "state" + } + ] + } + } + ], + "kind": "var" + }, + { + "type": "VariableDeclaration", + "start": 2098, + "end": 2149, + "loc": { + "start": { + "line": 69, + "column": 18 + }, + "end": { + "line": 69, + "column": 69 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 2102, + "end": 2149, + "loc": { + "start": { + "line": 69, + "column": 22 + }, + "end": { + "line": 69, + "column": 69 + } + }, + "id": { + "type": "Identifier", + "start": 2102, + "end": 2111, + "loc": { + "start": { + "line": 69, + "column": 22 + }, + "end": { + "line": 69, + "column": 31 + } + }, + "name": "increment" + }, + "init": { + "type": "MemberExpression", + "start": 2114, + "end": 2149, + "loc": { + "start": { + "line": 69, + "column": 34 + }, + "end": { + "line": 69, + "column": 69 + } + }, + "object": { + "type": "MemberExpression", + "start": 2114, + "end": 2142, + "loc": { + "start": { + "line": 69, + "column": 34 + }, + "end": { + "line": 69, + "column": 62 + } + }, + "object": { + "type": "MemberExpression", + "start": 2114, + "end": 2129, + "loc": { + "start": { + "line": 69, + "column": 34 + }, + "end": { + "line": 69, + "column": 49 + } + }, + "object": { + "type": "Identifier", + "start": 2114, + "end": 2120, + "loc": { + "start": { + "line": 69, + "column": 34 + }, + "end": { + "line": 69, + "column": 40 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 2121, + "end": 2129, + "loc": { + "start": { + "line": 69, + "column": 41 + }, + "end": { + "line": 69, + "column": 49 + } + }, + "name": "response" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2130, + "end": 2142, + "loc": { + "start": { + "line": 69, + "column": 50 + }, + "end": { + "line": 69, + "column": 62 + } + }, + "name": "newFollowers" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2143, + "end": 2149, + "loc": { + "start": { + "line": 69, + "column": 63 + }, + "end": { + "line": 69, + "column": 69 + } + }, + "name": "result" + }, + "computed": false + } + } + ], + "kind": "var" + }, + { + "type": "ExpressionStatement", + "start": 2168, + "end": 2214, + "loc": { + "start": { + "line": 70, + "column": 18 + }, + "end": { + "line": 70, + "column": 64 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 2168, + "end": 2214, + "loc": { + "start": { + "line": 70, + "column": 18 + }, + "end": { + "line": 70, + "column": 64 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 2168, + "end": 2202, + "loc": { + "start": { + "line": 70, + "column": 18 + }, + "end": { + "line": 70, + "column": 52 + } + }, + "object": { + "type": "MemberExpression", + "start": 2168, + "end": 2189, + "loc": { + "start": { + "line": 70, + "column": 18 + }, + "end": { + "line": 70, + "column": 39 + } + }, + "object": { + "type": "Identifier", + "start": 2168, + "end": 2176, + "loc": { + "start": { + "line": 70, + "column": 18 + }, + "end": { + "line": 70, + "column": 26 + } + }, + "name": "newState" + }, + "property": { + "type": "Literal", + "start": 2177, + "end": 2188, + "loc": { + "start": { + "line": 70, + "column": 27 + }, + "end": { + "line": 70, + "column": 38 + } + }, + "value": "followers", + "rawValue": "followers", + "raw": "'followers'" + }, + "computed": true + }, + "property": { + "type": "Literal", + "start": 2190, + "end": 2201, + "loc": { + "start": { + "line": 70, + "column": 40 + }, + "end": { + "line": 70, + "column": 51 + } + }, + "value": "increment", + "rawValue": "increment", + "raw": "'increment'" + }, + "computed": true + }, + "right": { + "type": "Identifier", + "start": 2205, + "end": 2214, + "loc": { + "start": { + "line": 70, + "column": 55 + }, + "end": { + "line": 70, + "column": 64 + } + }, + "name": "increment" + } + } + }, + { + "type": "ExpressionStatement", + "start": 2233, + "end": 2295, + "loc": { + "start": { + "line": 71, + "column": 18 + }, + "end": { + "line": 71, + "column": 80 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 2233, + "end": 2295, + "loc": { + "start": { + "line": 71, + "column": 18 + }, + "end": { + "line": 71, + "column": 80 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 2233, + "end": 2263, + "loc": { + "start": { + "line": 71, + "column": 18 + }, + "end": { + "line": 71, + "column": 48 + } + }, + "object": { + "type": "MemberExpression", + "start": 2233, + "end": 2254, + "loc": { + "start": { + "line": 71, + "column": 18 + }, + "end": { + "line": 71, + "column": 39 + } + }, + "object": { + "type": "Identifier", + "start": 2233, + "end": 2241, + "loc": { + "start": { + "line": 71, + "column": 18 + }, + "end": { + "line": 71, + "column": 26 + } + }, + "name": "newState" + }, + "property": { + "type": "Literal", + "start": 2242, + "end": 2253, + "loc": { + "start": { + "line": 71, + "column": 27 + }, + "end": { + "line": 71, + "column": 38 + } + }, + "value": "followers", + "rawValue": "followers", + "raw": "'followers'" + }, + "computed": true + }, + "property": { + "type": "Literal", + "start": 2255, + "end": 2262, + "loc": { + "start": { + "line": 71, + "column": 40 + }, + "end": { + "line": 71, + "column": 47 + } + }, + "value": "color", + "rawValue": "color", + "raw": "'color'" + }, + "computed": true + }, + "right": { + "type": "ConditionalExpression", + "start": 2266, + "end": 2295, + "loc": { + "start": { + "line": 71, + "column": 51 + }, + "end": { + "line": 71, + "column": 80 + } + }, + "test": { + "type": "Identifier", + "start": 2267, + "end": 2276, + "loc": { + "start": { + "line": 71, + "column": 52 + }, + "end": { + "line": 71, + "column": 61 + } + }, + "name": "increment", + "parenthesizedExpression": true + }, + "consequent": { + "type": "Literal", + "start": 2280, + "end": 2287, + "loc": { + "start": { + "line": 71, + "column": 65 + }, + "end": { + "line": 71, + "column": 72 + } + }, + "value": "green", + "rawValue": "green", + "raw": "'green'" + }, + "alternate": { + "type": "Literal", + "start": 2290, + "end": 2295, + "loc": { + "start": { + "line": 71, + "column": 75 + }, + "end": { + "line": 71, + "column": 80 + } + }, + "value": "red", + "rawValue": "red", + "raw": "'red'" + } + } + } + } + ] + }, + "alternate": null + } + } + } + } + }, + { + "type": "ReturnStatement", + "start": 2331, + "end": 2346, + "loc": { + "start": { + "line": 74, + "column": 16 + }, + "end": { + "line": 74, + "column": 31 + } + }, + "argument": { + "type": "Identifier", + "start": 2338, + "end": 2346, + "loc": { + "start": { + "line": 74, + "column": 23 + }, + "end": { + "line": 74, + "column": 31 + } + }, + "name": "newState" + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 2374, + "end": 2393, + "loc": { + "start": { + "line": 77, + "column": 12 + }, + "end": { + "line": 77, + "column": 31 + } + }, + "argument": { + "type": "Identifier", + "start": 2381, + "end": 2393, + "loc": { + "start": { + "line": 77, + "column": 19 + }, + "end": { + "line": 77, + "column": 31 + } + }, + "name": "initialState" + } + } + ], + "test": { + "type": "MemberExpression", + "start": 1087, + "end": 1104, + "loc": { + "start": { + "line": 49, + "column": 13 + }, + "end": { + "line": 49, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 1087, + "end": 1099, + "loc": { + "start": { + "line": 49, + "column": 13 + }, + "end": { + "line": 49, + "column": 25 + } + }, + "name": "StatsActions" + }, + "property": { + "type": "Identifier", + "start": 1100, + "end": 1104, + "loc": { + "start": { + "line": 49, + "column": 26 + }, + "end": { + "line": 49, + "column": 30 + } + }, + "name": "LOAD" + }, + "computed": false + } + } + ] + }, + { + "type": "ReturnStatement", + "start": 2406, + "end": 2418, + "loc": { + "start": { + "line": 81, + "column": 4 + }, + "end": { + "line": 81, + "column": 16 + } + }, + "argument": { + "type": "Identifier", + "start": 2413, + "end": 2418, + "loc": { + "start": { + "line": 81, + "column": 11 + }, + "end": { + "line": 81, + "column": 16 + } + }, + "name": "state" + } + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Stats\n * Redux Reducer for Stats action\n * Reference: http://redux.js.org/docs/basics/Reducers.html\n * @param state\n * @param action\n * @returns {*}\n * @constructor\n ", + "start": 823, + "end": 998, + "loc": { + "start": { + "line": 37, + "column": 0 + }, + "end": { + "line": 45, + "column": 3 + } + }, + "range": [ + 823, + 998 + ] + } + ], + "trailingComments": [] + } + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/reducers/Tokens.js.json b/app/docs/ast/source/reducers/Tokens.js.json new file mode 100644 index 0000000..584340f --- /dev/null +++ b/app/docs/ast/source/reducers/Tokens.js.json @@ -0,0 +1,2523 @@ +{ + "type": "Program", + "start": 0, + "end": 941, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 42, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 50, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 16 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 13, + "end": 32, + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 23 + } + }, + "imported": { + "type": "Identifier", + "start": 13, + "end": 17, + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 8 + } + }, + "name": "User" + }, + "local": { + "type": "Identifier", + "start": 21, + "end": 32, + "loc": { + "start": { + "line": 2, + "column": 12 + }, + "end": { + "line": 2, + "column": 23 + } + }, + "name": "UserActions" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 41, + "end": 50, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 16 + } + }, + "value": "actions", + "rawValue": "actions", + "raw": "'actions'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * initialState\n * @type {{notification: string, timelineAgg: string, timelineFlat: string}}\n ", + "start": 52, + "end": 152, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + }, + "range": [ + 52, + 152 + ] + } + ] + }, + { + "type": "VariableDeclaration", + "start": 153, + "end": 242, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 13, + "column": 1 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 159, + "end": 242, + "loc": { + "start": { + "line": 9, + "column": 6 + }, + "end": { + "line": 13, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 159, + "end": 171, + "loc": { + "start": { + "line": 9, + "column": 6 + }, + "end": { + "line": 9, + "column": 18 + } + }, + "name": "initialState", + "leadingComments": null + }, + "init": { + "type": "ObjectExpression", + "start": 174, + "end": 242, + "loc": { + "start": { + "line": 9, + "column": 21 + }, + "end": { + "line": 13, + "column": 1 + } + }, + "properties": [ + { + "type": "Property", + "start": 180, + "end": 196, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 10, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 180, + "end": 192, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 10, + "column": 16 + } + }, + "name": "notification" + }, + "value": { + "type": "Literal", + "start": 194, + "end": 196, + "loc": { + "start": { + "line": 10, + "column": 18 + }, + "end": { + "line": 10, + "column": 20 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 202, + "end": 217, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 19 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 202, + "end": 213, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 15 + } + }, + "name": "timelineAgg" + }, + "value": { + "type": "Literal", + "start": 215, + "end": 217, + "loc": { + "start": { + "line": 11, + "column": 17 + }, + "end": { + "line": 11, + "column": 19 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 223, + "end": 239, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 223, + "end": 235, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 16 + } + }, + "name": "timelineFlat" + }, + "value": { + "type": "Literal", + "start": 237, + "end": 239, + "loc": { + "start": { + "line": 12, + "column": 18 + }, + "end": { + "line": 12, + "column": 20 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + } + ], + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * initialState\n * @type {{notification: string, timelineAgg: string, timelineFlat: string}}\n ", + "start": 52, + "end": 152, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + }, + "range": [ + 52, + 152 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Tokens\n * Redux Reducer for Tokens action\n * Reference: http://redux.js.org/docs/basics/Reducers.html\n * @param state\n * @param action\n * @returns {*}\n * @constructor\n ", + "start": 244, + "end": 421, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 23, + "column": 3 + } + }, + "range": [ + 244, + 421 + ] + } + ] + }, + { + "type": "Identifier", + "start": 422, + "end": 917, + "loc": { + "start": { + "line": 24, + "column": 0 + }, + "end": { + "line": 39, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 431, + "end": 437, + "loc": { + "start": { + "line": 24, + "column": 9 + }, + "end": { + "line": 24, + "column": 15 + } + }, + "name": "Tokens", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "AssignmentPattern", + "start": 438, + "end": 458, + "loc": { + "start": { + "line": 24, + "column": 16 + }, + "end": { + "line": 24, + "column": 36 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 438, + "end": 443, + "loc": { + "start": { + "line": 24, + "column": 16 + }, + "end": { + "line": 24, + "column": 21 + } + }, + "name": "state" + }, + "right": { + "type": "Identifier", + "start": 446, + "end": 458, + "loc": { + "start": { + "line": 24, + "column": 24 + }, + "end": { + "line": 24, + "column": 36 + } + }, + "name": "initialState" + } + }, + { + "type": "Identifier", + "start": 460, + "end": 466, + "loc": { + "start": { + "line": 24, + "column": 38 + }, + "end": { + "line": 24, + "column": 44 + } + }, + "name": "action" + } + ], + "body": { + "type": "BlockStatement", + "start": 468, + "end": 917, + "loc": { + "start": { + "line": 24, + "column": 46 + }, + "end": { + "line": 39, + "column": 1 + } + }, + "body": [ + { + "type": "SwitchStatement", + "start": 474, + "end": 897, + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 36, + "column": 5 + } + }, + "discriminant": { + "type": "MemberExpression", + "start": 482, + "end": 493, + "loc": { + "start": { + "line": 25, + "column": 12 + }, + "end": { + "line": 25, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 482, + "end": 488, + "loc": { + "start": { + "line": 25, + "column": 12 + }, + "end": { + "line": 25, + "column": 18 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 489, + "end": 493, + "loc": { + "start": { + "line": 25, + "column": 19 + }, + "end": { + "line": 25, + "column": 23 + } + }, + "name": "type" + }, + "computed": false + }, + "cases": [ + { + "type": "SwitchCase", + "start": 506, + "end": 891, + "loc": { + "start": { + "line": 27, + "column": 8 + }, + "end": { + "line": 35, + "column": 24 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 545, + "end": 866, + "loc": { + "start": { + "line": 28, + "column": 12 + }, + "end": { + "line": 34, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 549, + "end": 563, + "loc": { + "start": { + "line": 28, + "column": 16 + }, + "end": { + "line": 28, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 549, + "end": 555, + "loc": { + "start": { + "line": 28, + "column": 16 + }, + "end": { + "line": 28, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 556, + "end": 563, + "loc": { + "start": { + "line": 28, + "column": 23 + }, + "end": { + "line": 28, + "column": 30 + } + }, + "name": "initial" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 565, + "end": 866, + "loc": { + "start": { + "line": 28, + "column": 32 + }, + "end": { + "line": 34, + "column": 13 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 583, + "end": 852, + "loc": { + "start": { + "line": 29, + "column": 16 + }, + "end": { + "line": 33, + "column": 18 + } + }, + "argument": { + "type": "CallExpression", + "start": 590, + "end": 852, + "loc": { + "start": { + "line": 29, + "column": 23 + }, + "end": { + "line": 33, + "column": 18 + } + }, + "callee": { + "type": "MemberExpression", + "start": 590, + "end": 603, + "loc": { + "start": { + "line": 29, + "column": 23 + }, + "end": { + "line": 29, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 590, + "end": 596, + "loc": { + "start": { + "line": 29, + "column": 23 + }, + "end": { + "line": 29, + "column": 29 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 597, + "end": 603, + "loc": { + "start": { + "line": 29, + "column": 30 + }, + "end": { + "line": 29, + "column": 36 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 604, + "end": 606, + "loc": { + "start": { + "line": 29, + "column": 37 + }, + "end": { + "line": 29, + "column": 39 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 608, + "end": 613, + "loc": { + "start": { + "line": 29, + "column": 41 + }, + "end": { + "line": 29, + "column": 46 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 615, + "end": 851, + "loc": { + "start": { + "line": 29, + "column": 48 + }, + "end": { + "line": 33, + "column": 17 + } + }, + "properties": [ + { + "type": "Property", + "start": 637, + "end": 685, + "loc": { + "start": { + "line": 30, + "column": 20 + }, + "end": { + "line": 30, + "column": 68 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 637, + "end": 649, + "loc": { + "start": { + "line": 30, + "column": 20 + }, + "end": { + "line": 30, + "column": 32 + } + }, + "name": "notification" + }, + "value": { + "type": "MemberExpression", + "start": 651, + "end": 685, + "loc": { + "start": { + "line": 30, + "column": 34 + }, + "end": { + "line": 30, + "column": 68 + } + }, + "object": { + "type": "MemberExpression", + "start": 651, + "end": 672, + "loc": { + "start": { + "line": 30, + "column": 34 + }, + "end": { + "line": 30, + "column": 55 + } + }, + "object": { + "type": "MemberExpression", + "start": 651, + "end": 665, + "loc": { + "start": { + "line": 30, + "column": 34 + }, + "end": { + "line": 30, + "column": 48 + } + }, + "object": { + "type": "Identifier", + "start": 651, + "end": 657, + "loc": { + "start": { + "line": 30, + "column": 34 + }, + "end": { + "line": 30, + "column": 40 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 658, + "end": 665, + "loc": { + "start": { + "line": 30, + "column": 41 + }, + "end": { + "line": 30, + "column": 48 + } + }, + "name": "initial" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 666, + "end": 672, + "loc": { + "start": { + "line": 30, + "column": 49 + }, + "end": { + "line": 30, + "column": 55 + } + }, + "name": "tokens" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 673, + "end": 685, + "loc": { + "start": { + "line": 30, + "column": 56 + }, + "end": { + "line": 30, + "column": 68 + } + }, + "name": "notification" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 707, + "end": 761, + "loc": { + "start": { + "line": 31, + "column": 20 + }, + "end": { + "line": 31, + "column": 74 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 707, + "end": 718, + "loc": { + "start": { + "line": 31, + "column": 20 + }, + "end": { + "line": 31, + "column": 31 + } + }, + "name": "timelineAgg" + }, + "value": { + "type": "MemberExpression", + "start": 720, + "end": 761, + "loc": { + "start": { + "line": 31, + "column": 33 + }, + "end": { + "line": 31, + "column": 74 + } + }, + "object": { + "type": "MemberExpression", + "start": 720, + "end": 750, + "loc": { + "start": { + "line": 31, + "column": 33 + }, + "end": { + "line": 31, + "column": 63 + } + }, + "object": { + "type": "MemberExpression", + "start": 720, + "end": 741, + "loc": { + "start": { + "line": 31, + "column": 33 + }, + "end": { + "line": 31, + "column": 54 + } + }, + "object": { + "type": "MemberExpression", + "start": 720, + "end": 734, + "loc": { + "start": { + "line": 31, + "column": 33 + }, + "end": { + "line": 31, + "column": 47 + } + }, + "object": { + "type": "Identifier", + "start": 720, + "end": 726, + "loc": { + "start": { + "line": 31, + "column": 33 + }, + "end": { + "line": 31, + "column": 39 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 727, + "end": 734, + "loc": { + "start": { + "line": 31, + "column": 40 + }, + "end": { + "line": 31, + "column": 47 + } + }, + "name": "initial" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 735, + "end": 741, + "loc": { + "start": { + "line": 31, + "column": 48 + }, + "end": { + "line": 31, + "column": 54 + } + }, + "name": "tokens" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 742, + "end": 750, + "loc": { + "start": { + "line": 31, + "column": 55 + }, + "end": { + "line": 31, + "column": 63 + } + }, + "name": "timeline" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 751, + "end": 761, + "loc": { + "start": { + "line": 31, + "column": 64 + }, + "end": { + "line": 31, + "column": 74 + } + }, + "name": "aggregated" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 783, + "end": 832, + "loc": { + "start": { + "line": 32, + "column": 20 + }, + "end": { + "line": 32, + "column": 69 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 783, + "end": 795, + "loc": { + "start": { + "line": 32, + "column": 20 + }, + "end": { + "line": 32, + "column": 32 + } + }, + "name": "timelineFlat" + }, + "value": { + "type": "MemberExpression", + "start": 797, + "end": 832, + "loc": { + "start": { + "line": 32, + "column": 34 + }, + "end": { + "line": 32, + "column": 69 + } + }, + "object": { + "type": "MemberExpression", + "start": 797, + "end": 827, + "loc": { + "start": { + "line": 32, + "column": 34 + }, + "end": { + "line": 32, + "column": 64 + } + }, + "object": { + "type": "MemberExpression", + "start": 797, + "end": 818, + "loc": { + "start": { + "line": 32, + "column": 34 + }, + "end": { + "line": 32, + "column": 55 + } + }, + "object": { + "type": "MemberExpression", + "start": 797, + "end": 811, + "loc": { + "start": { + "line": 32, + "column": 34 + }, + "end": { + "line": 32, + "column": 48 + } + }, + "object": { + "type": "Identifier", + "start": 797, + "end": 803, + "loc": { + "start": { + "line": 32, + "column": 34 + }, + "end": { + "line": 32, + "column": 40 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 804, + "end": 811, + "loc": { + "start": { + "line": 32, + "column": 41 + }, + "end": { + "line": 32, + "column": 48 + } + }, + "name": "initial" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 812, + "end": 818, + "loc": { + "start": { + "line": 32, + "column": 49 + }, + "end": { + "line": 32, + "column": 55 + } + }, + "name": "tokens" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 819, + "end": 827, + "loc": { + "start": { + "line": 32, + "column": 56 + }, + "end": { + "line": 32, + "column": 64 + } + }, + "name": "timeline" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 828, + "end": 832, + "loc": { + "start": { + "line": 32, + "column": 65 + }, + "end": { + "line": 32, + "column": 69 + } + }, + "name": "flat" + }, + "computed": false + }, + "kind": "init" + } + ] + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 879, + "end": 891, + "loc": { + "start": { + "line": 35, + "column": 12 + }, + "end": { + "line": 35, + "column": 24 + } + }, + "argument": { + "type": "Identifier", + "start": 886, + "end": 891, + "loc": { + "start": { + "line": 35, + "column": 19 + }, + "end": { + "line": 35, + "column": 24 + } + }, + "name": "state" + } + } + ], + "test": { + "type": "MemberExpression", + "start": 511, + "end": 531, + "loc": { + "start": { + "line": 27, + "column": 13 + }, + "end": { + "line": 27, + "column": 33 + } + }, + "object": { + "type": "Identifier", + "start": 511, + "end": 522, + "loc": { + "start": { + "line": 27, + "column": 13 + }, + "end": { + "line": 27, + "column": 24 + } + }, + "name": "UserActions" + }, + "property": { + "type": "Identifier", + "start": 523, + "end": 531, + "loc": { + "start": { + "line": 27, + "column": 25 + }, + "end": { + "line": 27, + "column": 33 + } + }, + "name": "FB_LOGIN" + }, + "computed": false + } + } + ] + }, + { + "type": "ReturnStatement", + "start": 903, + "end": 915, + "loc": { + "start": { + "line": 38, + "column": 4 + }, + "end": { + "line": 38, + "column": 16 + } + }, + "argument": { + "type": "Identifier", + "start": 910, + "end": 915, + "loc": { + "start": { + "line": 38, + "column": 11 + }, + "end": { + "line": 38, + "column": 16 + } + }, + "name": "state" + } + } + ] + }, + "leadingComments": [], + "name": "_", + "trailingComments": [] + }, + { + "type": "Identifier", + "start": 919, + "end": 940, + "loc": { + "start": { + "line": 41, + "column": 0 + }, + "end": { + "line": 41, + "column": 21 + } + }, + "declaration": { + "type": "Identifier", + "start": 934, + "end": 940, + "loc": { + "start": { + "line": 41, + "column": 15 + }, + "end": { + "line": 41, + "column": 21 + } + }, + "name": "Tokens" + }, + "name": "_", + "leadingComments": [], + "trailingComments": [] + }, + { + "type": "ExportDefaultDeclaration", + "start": 919, + "end": 940, + "loc": { + "start": { + "line": 41, + "column": 0 + }, + "end": { + "line": 41, + "column": 21 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 422, + "end": 917, + "loc": { + "start": { + "line": 24, + "column": 0 + }, + "end": { + "line": 39, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 431, + "end": 437, + "loc": { + "start": { + "line": 24, + "column": 9 + }, + "end": { + "line": 24, + "column": 15 + } + }, + "name": "Tokens", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "AssignmentPattern", + "start": 438, + "end": 458, + "loc": { + "start": { + "line": 24, + "column": 16 + }, + "end": { + "line": 24, + "column": 36 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 438, + "end": 443, + "loc": { + "start": { + "line": 24, + "column": 16 + }, + "end": { + "line": 24, + "column": 21 + } + }, + "name": "state" + }, + "right": { + "type": "Identifier", + "start": 446, + "end": 458, + "loc": { + "start": { + "line": 24, + "column": 24 + }, + "end": { + "line": 24, + "column": 36 + } + }, + "name": "initialState" + } + }, + { + "type": "Identifier", + "start": 460, + "end": 466, + "loc": { + "start": { + "line": 24, + "column": 38 + }, + "end": { + "line": 24, + "column": 44 + } + }, + "name": "action" + } + ], + "body": { + "type": "BlockStatement", + "start": 468, + "end": 917, + "loc": { + "start": { + "line": 24, + "column": 46 + }, + "end": { + "line": 39, + "column": 1 + } + }, + "body": [ + { + "type": "SwitchStatement", + "start": 474, + "end": 897, + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 36, + "column": 5 + } + }, + "discriminant": { + "type": "MemberExpression", + "start": 482, + "end": 493, + "loc": { + "start": { + "line": 25, + "column": 12 + }, + "end": { + "line": 25, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 482, + "end": 488, + "loc": { + "start": { + "line": 25, + "column": 12 + }, + "end": { + "line": 25, + "column": 18 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 489, + "end": 493, + "loc": { + "start": { + "line": 25, + "column": 19 + }, + "end": { + "line": 25, + "column": 23 + } + }, + "name": "type" + }, + "computed": false + }, + "cases": [ + { + "type": "SwitchCase", + "start": 506, + "end": 891, + "loc": { + "start": { + "line": 27, + "column": 8 + }, + "end": { + "line": 35, + "column": 24 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 545, + "end": 866, + "loc": { + "start": { + "line": 28, + "column": 12 + }, + "end": { + "line": 34, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 549, + "end": 563, + "loc": { + "start": { + "line": 28, + "column": 16 + }, + "end": { + "line": 28, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 549, + "end": 555, + "loc": { + "start": { + "line": 28, + "column": 16 + }, + "end": { + "line": 28, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 556, + "end": 563, + "loc": { + "start": { + "line": 28, + "column": 23 + }, + "end": { + "line": 28, + "column": 30 + } + }, + "name": "initial" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 565, + "end": 866, + "loc": { + "start": { + "line": 28, + "column": 32 + }, + "end": { + "line": 34, + "column": 13 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 583, + "end": 852, + "loc": { + "start": { + "line": 29, + "column": 16 + }, + "end": { + "line": 33, + "column": 18 + } + }, + "argument": { + "type": "CallExpression", + "start": 590, + "end": 852, + "loc": { + "start": { + "line": 29, + "column": 23 + }, + "end": { + "line": 33, + "column": 18 + } + }, + "callee": { + "type": "MemberExpression", + "start": 590, + "end": 603, + "loc": { + "start": { + "line": 29, + "column": 23 + }, + "end": { + "line": 29, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 590, + "end": 596, + "loc": { + "start": { + "line": 29, + "column": 23 + }, + "end": { + "line": 29, + "column": 29 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 597, + "end": 603, + "loc": { + "start": { + "line": 29, + "column": 30 + }, + "end": { + "line": 29, + "column": 36 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 604, + "end": 606, + "loc": { + "start": { + "line": 29, + "column": 37 + }, + "end": { + "line": 29, + "column": 39 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 608, + "end": 613, + "loc": { + "start": { + "line": 29, + "column": 41 + }, + "end": { + "line": 29, + "column": 46 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 615, + "end": 851, + "loc": { + "start": { + "line": 29, + "column": 48 + }, + "end": { + "line": 33, + "column": 17 + } + }, + "properties": [ + { + "type": "Property", + "start": 637, + "end": 685, + "loc": { + "start": { + "line": 30, + "column": 20 + }, + "end": { + "line": 30, + "column": 68 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 637, + "end": 649, + "loc": { + "start": { + "line": 30, + "column": 20 + }, + "end": { + "line": 30, + "column": 32 + } + }, + "name": "notification" + }, + "value": { + "type": "MemberExpression", + "start": 651, + "end": 685, + "loc": { + "start": { + "line": 30, + "column": 34 + }, + "end": { + "line": 30, + "column": 68 + } + }, + "object": { + "type": "MemberExpression", + "start": 651, + "end": 672, + "loc": { + "start": { + "line": 30, + "column": 34 + }, + "end": { + "line": 30, + "column": 55 + } + }, + "object": { + "type": "MemberExpression", + "start": 651, + "end": 665, + "loc": { + "start": { + "line": 30, + "column": 34 + }, + "end": { + "line": 30, + "column": 48 + } + }, + "object": { + "type": "Identifier", + "start": 651, + "end": 657, + "loc": { + "start": { + "line": 30, + "column": 34 + }, + "end": { + "line": 30, + "column": 40 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 658, + "end": 665, + "loc": { + "start": { + "line": 30, + "column": 41 + }, + "end": { + "line": 30, + "column": 48 + } + }, + "name": "initial" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 666, + "end": 672, + "loc": { + "start": { + "line": 30, + "column": 49 + }, + "end": { + "line": 30, + "column": 55 + } + }, + "name": "tokens" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 673, + "end": 685, + "loc": { + "start": { + "line": 30, + "column": 56 + }, + "end": { + "line": 30, + "column": 68 + } + }, + "name": "notification" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 707, + "end": 761, + "loc": { + "start": { + "line": 31, + "column": 20 + }, + "end": { + "line": 31, + "column": 74 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 707, + "end": 718, + "loc": { + "start": { + "line": 31, + "column": 20 + }, + "end": { + "line": 31, + "column": 31 + } + }, + "name": "timelineAgg" + }, + "value": { + "type": "MemberExpression", + "start": 720, + "end": 761, + "loc": { + "start": { + "line": 31, + "column": 33 + }, + "end": { + "line": 31, + "column": 74 + } + }, + "object": { + "type": "MemberExpression", + "start": 720, + "end": 750, + "loc": { + "start": { + "line": 31, + "column": 33 + }, + "end": { + "line": 31, + "column": 63 + } + }, + "object": { + "type": "MemberExpression", + "start": 720, + "end": 741, + "loc": { + "start": { + "line": 31, + "column": 33 + }, + "end": { + "line": 31, + "column": 54 + } + }, + "object": { + "type": "MemberExpression", + "start": 720, + "end": 734, + "loc": { + "start": { + "line": 31, + "column": 33 + }, + "end": { + "line": 31, + "column": 47 + } + }, + "object": { + "type": "Identifier", + "start": 720, + "end": 726, + "loc": { + "start": { + "line": 31, + "column": 33 + }, + "end": { + "line": 31, + "column": 39 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 727, + "end": 734, + "loc": { + "start": { + "line": 31, + "column": 40 + }, + "end": { + "line": 31, + "column": 47 + } + }, + "name": "initial" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 735, + "end": 741, + "loc": { + "start": { + "line": 31, + "column": 48 + }, + "end": { + "line": 31, + "column": 54 + } + }, + "name": "tokens" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 742, + "end": 750, + "loc": { + "start": { + "line": 31, + "column": 55 + }, + "end": { + "line": 31, + "column": 63 + } + }, + "name": "timeline" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 751, + "end": 761, + "loc": { + "start": { + "line": 31, + "column": 64 + }, + "end": { + "line": 31, + "column": 74 + } + }, + "name": "aggregated" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 783, + "end": 832, + "loc": { + "start": { + "line": 32, + "column": 20 + }, + "end": { + "line": 32, + "column": 69 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 783, + "end": 795, + "loc": { + "start": { + "line": 32, + "column": 20 + }, + "end": { + "line": 32, + "column": 32 + } + }, + "name": "timelineFlat" + }, + "value": { + "type": "MemberExpression", + "start": 797, + "end": 832, + "loc": { + "start": { + "line": 32, + "column": 34 + }, + "end": { + "line": 32, + "column": 69 + } + }, + "object": { + "type": "MemberExpression", + "start": 797, + "end": 827, + "loc": { + "start": { + "line": 32, + "column": 34 + }, + "end": { + "line": 32, + "column": 64 + } + }, + "object": { + "type": "MemberExpression", + "start": 797, + "end": 818, + "loc": { + "start": { + "line": 32, + "column": 34 + }, + "end": { + "line": 32, + "column": 55 + } + }, + "object": { + "type": "MemberExpression", + "start": 797, + "end": 811, + "loc": { + "start": { + "line": 32, + "column": 34 + }, + "end": { + "line": 32, + "column": 48 + } + }, + "object": { + "type": "Identifier", + "start": 797, + "end": 803, + "loc": { + "start": { + "line": 32, + "column": 34 + }, + "end": { + "line": 32, + "column": 40 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 804, + "end": 811, + "loc": { + "start": { + "line": 32, + "column": 41 + }, + "end": { + "line": 32, + "column": 48 + } + }, + "name": "initial" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 812, + "end": 818, + "loc": { + "start": { + "line": 32, + "column": 49 + }, + "end": { + "line": 32, + "column": 55 + } + }, + "name": "tokens" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 819, + "end": 827, + "loc": { + "start": { + "line": 32, + "column": 56 + }, + "end": { + "line": 32, + "column": 64 + } + }, + "name": "timeline" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 828, + "end": 832, + "loc": { + "start": { + "line": 32, + "column": 65 + }, + "end": { + "line": 32, + "column": 69 + } + }, + "name": "flat" + }, + "computed": false + }, + "kind": "init" + } + ] + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 879, + "end": 891, + "loc": { + "start": { + "line": 35, + "column": 12 + }, + "end": { + "line": 35, + "column": 24 + } + }, + "argument": { + "type": "Identifier", + "start": 886, + "end": 891, + "loc": { + "start": { + "line": 35, + "column": 19 + }, + "end": { + "line": 35, + "column": 24 + } + }, + "name": "state" + } + } + ], + "test": { + "type": "MemberExpression", + "start": 511, + "end": 531, + "loc": { + "start": { + "line": 27, + "column": 13 + }, + "end": { + "line": 27, + "column": 33 + } + }, + "object": { + "type": "Identifier", + "start": 511, + "end": 522, + "loc": { + "start": { + "line": 27, + "column": 13 + }, + "end": { + "line": 27, + "column": 24 + } + }, + "name": "UserActions" + }, + "property": { + "type": "Identifier", + "start": 523, + "end": 531, + "loc": { + "start": { + "line": 27, + "column": 25 + }, + "end": { + "line": 27, + "column": 33 + } + }, + "name": "FB_LOGIN" + }, + "computed": false + } + } + ] + }, + { + "type": "ReturnStatement", + "start": 903, + "end": 915, + "loc": { + "start": { + "line": 38, + "column": 4 + }, + "end": { + "line": 38, + "column": 16 + } + }, + "argument": { + "type": "Identifier", + "start": 910, + "end": 915, + "loc": { + "start": { + "line": 38, + "column": 11 + }, + "end": { + "line": 38, + "column": 16 + } + }, + "name": "state" + } + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Tokens\n * Redux Reducer for Tokens action\n * Reference: http://redux.js.org/docs/basics/Reducers.html\n * @param state\n * @param action\n * @returns {*}\n * @constructor\n ", + "start": 244, + "end": 421, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 23, + "column": 3 + } + }, + "range": [ + 244, + 421 + ] + } + ], + "trailingComments": [] + } + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/reducers/Trending.js.json b/app/docs/ast/source/reducers/Trending.js.json new file mode 100644 index 0000000..67c0582 --- /dev/null +++ b/app/docs/ast/source/reducers/Trending.js.json @@ -0,0 +1,1172 @@ +{ + "type": "Program", + "start": 0, + "end": 549, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 30, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 57, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 16 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 13, + "end": 40, + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 31 + } + }, + "imported": { + "type": "Identifier", + "start": 13, + "end": 21, + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 12 + } + }, + "name": "Trending" + }, + "local": { + "type": "Identifier", + "start": 25, + "end": 40, + "loc": { + "start": { + "line": 2, + "column": 16 + }, + "end": { + "line": 2, + "column": 31 + } + }, + "name": "TrendingActions" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 48, + "end": 57, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 16 + } + }, + "value": "actions", + "rawValue": "actions", + "raw": "'actions'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Trending\n * Redux Reducer for Trending action\n * Reference: http://redux.js.org/docs/basics/Reducers.html\n * @param state\n * @param action\n * @returns {*}\n * @constructor\n ", + "start": 59, + "end": 240, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + }, + "range": [ + 59, + 240 + ] + } + ] + }, + { + "type": "Identifier", + "start": 241, + "end": 523, + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 27, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 250, + "end": 258, + "loc": { + "start": { + "line": 14, + "column": 9 + }, + "end": { + "line": 14, + "column": 17 + } + }, + "name": "Trending", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "AssignmentPattern", + "start": 259, + "end": 269, + "loc": { + "start": { + "line": 14, + "column": 18 + }, + "end": { + "line": 14, + "column": 28 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 259, + "end": 264, + "loc": { + "start": { + "line": 14, + "column": 18 + }, + "end": { + "line": 14, + "column": 23 + } + }, + "name": "state" + }, + "right": { + "type": "ArrayExpression", + "start": 267, + "end": 269, + "loc": { + "start": { + "line": 14, + "column": 26 + }, + "end": { + "line": 14, + "column": 28 + } + }, + "elements": [] + } + }, + { + "type": "Identifier", + "start": 271, + "end": 277, + "loc": { + "start": { + "line": 14, + "column": 30 + }, + "end": { + "line": 14, + "column": 36 + } + }, + "name": "action" + } + ], + "body": { + "type": "BlockStatement", + "start": 279, + "end": 523, + "loc": { + "start": { + "line": 14, + "column": 38 + }, + "end": { + "line": 27, + "column": 1 + } + }, + "body": [ + { + "type": "SwitchStatement", + "start": 286, + "end": 503, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 24, + "column": 5 + } + }, + "discriminant": { + "type": "MemberExpression", + "start": 294, + "end": 305, + "loc": { + "start": { + "line": 16, + "column": 12 + }, + "end": { + "line": 16, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 294, + "end": 300, + "loc": { + "start": { + "line": 16, + "column": 12 + }, + "end": { + "line": 16, + "column": 18 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 301, + "end": 305, + "loc": { + "start": { + "line": 16, + "column": 19 + }, + "end": { + "line": 16, + "column": 23 + } + }, + "name": "type" + }, + "computed": false + }, + "cases": [ + { + "type": "SwitchCase", + "start": 317, + "end": 497, + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 23, + "column": 21 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 356, + "end": 475, + "loc": { + "start": { + "line": 18, + "column": 12 + }, + "end": { + "line": 22, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 360, + "end": 375, + "loc": { + "start": { + "line": 18, + "column": 16 + }, + "end": { + "line": 18, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 360, + "end": 366, + "loc": { + "start": { + "line": 18, + "column": 16 + }, + "end": { + "line": 18, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 367, + "end": 375, + "loc": { + "start": { + "line": 18, + "column": 23 + }, + "end": { + "line": 18, + "column": 31 + } + }, + "name": "response" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 377, + "end": 475, + "loc": { + "start": { + "line": 18, + "column": 33 + }, + "end": { + "line": 22, + "column": 13 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 395, + "end": 461, + "loc": { + "start": { + "line": 19, + "column": 16 + }, + "end": { + "line": 21, + "column": 17 + } + }, + "argument": { + "type": "ArrayExpression", + "start": 402, + "end": 461, + "loc": { + "start": { + "line": 19, + "column": 23 + }, + "end": { + "line": 21, + "column": 17 + } + }, + "elements": [ + { + "type": "SpreadElement", + "start": 424, + "end": 442, + "loc": { + "start": { + "line": 20, + "column": 20 + }, + "end": { + "line": 20, + "column": 38 + } + }, + "argument": { + "type": "MemberExpression", + "start": 427, + "end": 442, + "loc": { + "start": { + "line": 20, + "column": 23 + }, + "end": { + "line": 20, + "column": 38 + } + }, + "object": { + "type": "Identifier", + "start": 427, + "end": 433, + "loc": { + "start": { + "line": 20, + "column": 23 + }, + "end": { + "line": 20, + "column": 29 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 434, + "end": 442, + "loc": { + "start": { + "line": 20, + "column": 30 + }, + "end": { + "line": 20, + "column": 38 + } + }, + "name": "response" + }, + "computed": false + } + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 488, + "end": 497, + "loc": { + "start": { + "line": 23, + "column": 12 + }, + "end": { + "line": 23, + "column": 21 + } + }, + "argument": { + "type": "ArrayExpression", + "start": 495, + "end": 497, + "loc": { + "start": { + "line": 23, + "column": 19 + }, + "end": { + "line": 23, + "column": 21 + } + }, + "elements": [] + } + } + ], + "test": { + "type": "MemberExpression", + "start": 322, + "end": 342, + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 17, + "column": 33 + } + }, + "object": { + "type": "Identifier", + "start": 322, + "end": 337, + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 17, + "column": 28 + } + }, + "name": "TrendingActions" + }, + "property": { + "type": "Identifier", + "start": 338, + "end": 342, + "loc": { + "start": { + "line": 17, + "column": 29 + }, + "end": { + "line": 17, + "column": 33 + } + }, + "name": "LOAD" + }, + "computed": false + } + } + ] + }, + { + "type": "ReturnStatement", + "start": 509, + "end": 521, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 16 + } + }, + "argument": { + "type": "Identifier", + "start": 516, + "end": 521, + "loc": { + "start": { + "line": 26, + "column": 11 + }, + "end": { + "line": 26, + "column": 16 + } + }, + "name": "state" + } + } + ] + }, + "leadingComments": [], + "name": "_", + "trailingComments": [] + }, + { + "type": "Identifier", + "start": 525, + "end": 548, + "loc": { + "start": { + "line": 29, + "column": 0 + }, + "end": { + "line": 29, + "column": 23 + } + }, + "declaration": { + "type": "Identifier", + "start": 540, + "end": 548, + "loc": { + "start": { + "line": 29, + "column": 15 + }, + "end": { + "line": 29, + "column": 23 + } + }, + "name": "Trending" + }, + "name": "_", + "leadingComments": [], + "trailingComments": [] + }, + { + "type": "ExportDefaultDeclaration", + "start": 525, + "end": 548, + "loc": { + "start": { + "line": 29, + "column": 0 + }, + "end": { + "line": 29, + "column": 23 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 241, + "end": 523, + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 27, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 250, + "end": 258, + "loc": { + "start": { + "line": 14, + "column": 9 + }, + "end": { + "line": 14, + "column": 17 + } + }, + "name": "Trending", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "AssignmentPattern", + "start": 259, + "end": 269, + "loc": { + "start": { + "line": 14, + "column": 18 + }, + "end": { + "line": 14, + "column": 28 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 259, + "end": 264, + "loc": { + "start": { + "line": 14, + "column": 18 + }, + "end": { + "line": 14, + "column": 23 + } + }, + "name": "state" + }, + "right": { + "type": "ArrayExpression", + "start": 267, + "end": 269, + "loc": { + "start": { + "line": 14, + "column": 26 + }, + "end": { + "line": 14, + "column": 28 + } + }, + "elements": [] + } + }, + { + "type": "Identifier", + "start": 271, + "end": 277, + "loc": { + "start": { + "line": 14, + "column": 30 + }, + "end": { + "line": 14, + "column": 36 + } + }, + "name": "action" + } + ], + "body": { + "type": "BlockStatement", + "start": 279, + "end": 523, + "loc": { + "start": { + "line": 14, + "column": 38 + }, + "end": { + "line": 27, + "column": 1 + } + }, + "body": [ + { + "type": "SwitchStatement", + "start": 286, + "end": 503, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 24, + "column": 5 + } + }, + "discriminant": { + "type": "MemberExpression", + "start": 294, + "end": 305, + "loc": { + "start": { + "line": 16, + "column": 12 + }, + "end": { + "line": 16, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 294, + "end": 300, + "loc": { + "start": { + "line": 16, + "column": 12 + }, + "end": { + "line": 16, + "column": 18 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 301, + "end": 305, + "loc": { + "start": { + "line": 16, + "column": 19 + }, + "end": { + "line": 16, + "column": 23 + } + }, + "name": "type" + }, + "computed": false + }, + "cases": [ + { + "type": "SwitchCase", + "start": 317, + "end": 497, + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 23, + "column": 21 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 356, + "end": 475, + "loc": { + "start": { + "line": 18, + "column": 12 + }, + "end": { + "line": 22, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 360, + "end": 375, + "loc": { + "start": { + "line": 18, + "column": 16 + }, + "end": { + "line": 18, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 360, + "end": 366, + "loc": { + "start": { + "line": 18, + "column": 16 + }, + "end": { + "line": 18, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 367, + "end": 375, + "loc": { + "start": { + "line": 18, + "column": 23 + }, + "end": { + "line": 18, + "column": 31 + } + }, + "name": "response" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 377, + "end": 475, + "loc": { + "start": { + "line": 18, + "column": 33 + }, + "end": { + "line": 22, + "column": 13 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 395, + "end": 461, + "loc": { + "start": { + "line": 19, + "column": 16 + }, + "end": { + "line": 21, + "column": 17 + } + }, + "argument": { + "type": "ArrayExpression", + "start": 402, + "end": 461, + "loc": { + "start": { + "line": 19, + "column": 23 + }, + "end": { + "line": 21, + "column": 17 + } + }, + "elements": [ + { + "type": "SpreadElement", + "start": 424, + "end": 442, + "loc": { + "start": { + "line": 20, + "column": 20 + }, + "end": { + "line": 20, + "column": 38 + } + }, + "argument": { + "type": "MemberExpression", + "start": 427, + "end": 442, + "loc": { + "start": { + "line": 20, + "column": 23 + }, + "end": { + "line": 20, + "column": 38 + } + }, + "object": { + "type": "Identifier", + "start": 427, + "end": 433, + "loc": { + "start": { + "line": 20, + "column": 23 + }, + "end": { + "line": 20, + "column": 29 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 434, + "end": 442, + "loc": { + "start": { + "line": 20, + "column": 30 + }, + "end": { + "line": 20, + "column": 38 + } + }, + "name": "response" + }, + "computed": false + } + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 488, + "end": 497, + "loc": { + "start": { + "line": 23, + "column": 12 + }, + "end": { + "line": 23, + "column": 21 + } + }, + "argument": { + "type": "ArrayExpression", + "start": 495, + "end": 497, + "loc": { + "start": { + "line": 23, + "column": 19 + }, + "end": { + "line": 23, + "column": 21 + } + }, + "elements": [] + } + } + ], + "test": { + "type": "MemberExpression", + "start": 322, + "end": 342, + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 17, + "column": 33 + } + }, + "object": { + "type": "Identifier", + "start": 322, + "end": 337, + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 17, + "column": 28 + } + }, + "name": "TrendingActions" + }, + "property": { + "type": "Identifier", + "start": 338, + "end": 342, + "loc": { + "start": { + "line": 17, + "column": 29 + }, + "end": { + "line": 17, + "column": 33 + } + }, + "name": "LOAD" + }, + "computed": false + } + } + ] + }, + { + "type": "ReturnStatement", + "start": 509, + "end": 521, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 16 + } + }, + "argument": { + "type": "Identifier", + "start": 516, + "end": 521, + "loc": { + "start": { + "line": 26, + "column": 11 + }, + "end": { + "line": 26, + "column": 16 + } + }, + "name": "state" + } + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Trending\n * Redux Reducer for Trending action\n * Reference: http://redux.js.org/docs/basics/Reducers.html\n * @param state\n * @param action\n * @returns {*}\n * @constructor\n ", + "start": 59, + "end": 240, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + }, + "range": [ + 59, + 240 + ] + } + ], + "trailingComments": [] + } + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/reducers/User.js.json b/app/docs/ast/source/reducers/User.js.json new file mode 100644 index 0000000..7f5a968 --- /dev/null +++ b/app/docs/ast/source/reducers/User.js.json @@ -0,0 +1,3605 @@ +{ + "type": "Program", + "start": 0, + "end": 1219, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 53, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 50, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 16 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 13, + "end": 32, + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 23 + } + }, + "imported": { + "type": "Identifier", + "start": 13, + "end": 17, + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 8 + } + }, + "name": "User" + }, + "local": { + "type": "Identifier", + "start": 21, + "end": 32, + "loc": { + "start": { + "line": 2, + "column": 12 + }, + "end": { + "line": 2, + "column": 23 + } + }, + "name": "UserActions" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 41, + "end": 50, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 16 + } + }, + "value": "actions", + "rawValue": "actions", + "raw": "'actions'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * initialState\n * @type {{id: string, fb_uid: string, first_name: string, last_name: string, email: string}}\n ", + "start": 52, + "end": 169, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + }, + "range": [ + 52, + 169 + ] + } + ] + }, + { + "type": "VariableDeclaration", + "start": 170, + "end": 276, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 15, + "column": 1 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 176, + "end": 276, + "loc": { + "start": { + "line": 9, + "column": 6 + }, + "end": { + "line": 15, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 176, + "end": 188, + "loc": { + "start": { + "line": 9, + "column": 6 + }, + "end": { + "line": 9, + "column": 18 + } + }, + "name": "initialState", + "leadingComments": null + }, + "init": { + "type": "ObjectExpression", + "start": 191, + "end": 276, + "loc": { + "start": { + "line": 9, + "column": 21 + }, + "end": { + "line": 15, + "column": 1 + } + }, + "properties": [ + { + "type": "Property", + "start": 197, + "end": 203, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 10, + "column": 10 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 197, + "end": 199, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 10, + "column": 6 + } + }, + "name": "id" + }, + "value": { + "type": "Literal", + "start": 201, + "end": 203, + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 10 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 209, + "end": 219, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 14 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 209, + "end": 215, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 10 + } + }, + "name": "fb_uid" + }, + "value": { + "type": "Literal", + "start": 217, + "end": 219, + "loc": { + "start": { + "line": 11, + "column": 12 + }, + "end": { + "line": 11, + "column": 14 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 225, + "end": 239, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 18 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 225, + "end": 235, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 14 + } + }, + "name": "first_name" + }, + "value": { + "type": "Literal", + "start": 237, + "end": 239, + "loc": { + "start": { + "line": 12, + "column": 16 + }, + "end": { + "line": 12, + "column": 18 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 245, + "end": 258, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 17 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 245, + "end": 254, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 13 + } + }, + "name": "last_name" + }, + "value": { + "type": "Literal", + "start": 256, + "end": 258, + "loc": { + "start": { + "line": 13, + "column": 15 + }, + "end": { + "line": 13, + "column": 17 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 264, + "end": 273, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 13 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 264, + "end": 269, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 9 + } + }, + "name": "email" + }, + "value": { + "type": "Literal", + "start": 271, + "end": 273, + "loc": { + "start": { + "line": 14, + "column": 11 + }, + "end": { + "line": 14, + "column": 13 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + } + ], + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * initialState\n * @type {{id: string, fb_uid: string, first_name: string, last_name: string, email: string}}\n ", + "start": 52, + "end": 169, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + }, + "range": [ + 52, + 169 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * User\n * Redux Reducer for User action\n * Reference: http://redux.js.org/docs/basics/Reducers.html\n * @param state\n * @param action\n * @returns {*}\n * @constructor\n ", + "start": 278, + "end": 451, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 25, + "column": 3 + } + }, + "range": [ + 278, + 451 + ] + } + ] + }, + { + "type": "Identifier", + "start": 452, + "end": 1197, + "loc": { + "start": { + "line": 26, + "column": 0 + }, + "end": { + "line": 50, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 461, + "end": 465, + "loc": { + "start": { + "line": 26, + "column": 9 + }, + "end": { + "line": 26, + "column": 13 + } + }, + "name": "User", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "AssignmentPattern", + "start": 466, + "end": 486, + "loc": { + "start": { + "line": 26, + "column": 14 + }, + "end": { + "line": 26, + "column": 34 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 466, + "end": 471, + "loc": { + "start": { + "line": 26, + "column": 14 + }, + "end": { + "line": 26, + "column": 19 + } + }, + "name": "state" + }, + "right": { + "type": "Identifier", + "start": 474, + "end": 486, + "loc": { + "start": { + "line": 26, + "column": 22 + }, + "end": { + "line": 26, + "column": 34 + } + }, + "name": "initialState" + } + }, + { + "type": "Identifier", + "start": 488, + "end": 494, + "loc": { + "start": { + "line": 26, + "column": 36 + }, + "end": { + "line": 26, + "column": 42 + } + }, + "name": "action" + } + ], + "body": { + "type": "BlockStatement", + "start": 496, + "end": 1197, + "loc": { + "start": { + "line": 26, + "column": 44 + }, + "end": { + "line": 50, + "column": 1 + } + }, + "body": [ + { + "type": "SwitchStatement", + "start": 503, + "end": 1177, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 47, + "column": 5 + } + }, + "discriminant": { + "type": "MemberExpression", + "start": 511, + "end": 522, + "loc": { + "start": { + "line": 28, + "column": 12 + }, + "end": { + "line": 28, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 511, + "end": 517, + "loc": { + "start": { + "line": 28, + "column": 12 + }, + "end": { + "line": 28, + "column": 18 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 518, + "end": 522, + "loc": { + "start": { + "line": 28, + "column": 19 + }, + "end": { + "line": 28, + "column": 23 + } + }, + "name": "type" + }, + "computed": false + }, + "cases": [ + { + "type": "SwitchCase", + "start": 534, + "end": 618, + "loc": { + "start": { + "line": 29, + "column": 8 + }, + "end": { + "line": 30, + "column": 60 + } + }, + "consequent": [ + { + "type": "ReturnStatement", + "start": 570, + "end": 618, + "loc": { + "start": { + "line": 30, + "column": 12 + }, + "end": { + "line": 30, + "column": 60 + } + }, + "argument": { + "type": "CallExpression", + "start": 577, + "end": 618, + "loc": { + "start": { + "line": 30, + "column": 19 + }, + "end": { + "line": 30, + "column": 60 + } + }, + "callee": { + "type": "MemberExpression", + "start": 577, + "end": 590, + "loc": { + "start": { + "line": 30, + "column": 19 + }, + "end": { + "line": 30, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 577, + "end": 583, + "loc": { + "start": { + "line": 30, + "column": 19 + }, + "end": { + "line": 30, + "column": 25 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 584, + "end": 590, + "loc": { + "start": { + "line": 30, + "column": 26 + }, + "end": { + "line": 30, + "column": 32 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 591, + "end": 593, + "loc": { + "start": { + "line": 30, + "column": 33 + }, + "end": { + "line": 30, + "column": 35 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 595, + "end": 600, + "loc": { + "start": { + "line": 30, + "column": 37 + }, + "end": { + "line": 30, + "column": 42 + } + }, + "name": "state" + }, + { + "type": "MemberExpression", + "start": 602, + "end": 617, + "loc": { + "start": { + "line": 30, + "column": 44 + }, + "end": { + "line": 30, + "column": 59 + } + }, + "object": { + "type": "Identifier", + "start": 602, + "end": 608, + "loc": { + "start": { + "line": 30, + "column": 44 + }, + "end": { + "line": 30, + "column": 50 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 609, + "end": 617, + "loc": { + "start": { + "line": 30, + "column": 51 + }, + "end": { + "line": 30, + "column": 59 + } + }, + "name": "response" + }, + "computed": false + } + ] + } + } + ], + "test": { + "type": "MemberExpression", + "start": 539, + "end": 556, + "loc": { + "start": { + "line": 29, + "column": 13 + }, + "end": { + "line": 29, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 539, + "end": 550, + "loc": { + "start": { + "line": 29, + "column": 13 + }, + "end": { + "line": 29, + "column": 24 + } + }, + "name": "UserActions" + }, + "property": { + "type": "Identifier", + "start": 551, + "end": 556, + "loc": { + "start": { + "line": 29, + "column": 25 + }, + "end": { + "line": 29, + "column": 30 + } + }, + "name": "LOGIN" + }, + "computed": false + } + }, + { + "type": "SwitchCase", + "start": 628, + "end": 1078, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 42, + "column": 24 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 667, + "end": 1053, + "loc": { + "start": { + "line": 33, + "column": 12 + }, + "end": { + "line": 41, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 671, + "end": 685, + "loc": { + "start": { + "line": 33, + "column": 16 + }, + "end": { + "line": 33, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 671, + "end": 677, + "loc": { + "start": { + "line": 33, + "column": 16 + }, + "end": { + "line": 33, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 678, + "end": 685, + "loc": { + "start": { + "line": 33, + "column": 23 + }, + "end": { + "line": 33, + "column": 30 + } + }, + "name": "initial" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 687, + "end": 1053, + "loc": { + "start": { + "line": 33, + "column": 32 + }, + "end": { + "line": 41, + "column": 13 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 705, + "end": 1039, + "loc": { + "start": { + "line": 34, + "column": 16 + }, + "end": { + "line": 40, + "column": 18 + } + }, + "argument": { + "type": "CallExpression", + "start": 712, + "end": 1039, + "loc": { + "start": { + "line": 34, + "column": 23 + }, + "end": { + "line": 40, + "column": 18 + } + }, + "callee": { + "type": "MemberExpression", + "start": 712, + "end": 725, + "loc": { + "start": { + "line": 34, + "column": 23 + }, + "end": { + "line": 34, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 712, + "end": 718, + "loc": { + "start": { + "line": 34, + "column": 23 + }, + "end": { + "line": 34, + "column": 29 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 719, + "end": 725, + "loc": { + "start": { + "line": 34, + "column": 30 + }, + "end": { + "line": 34, + "column": 36 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 726, + "end": 728, + "loc": { + "start": { + "line": 34, + "column": 37 + }, + "end": { + "line": 34, + "column": 39 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 730, + "end": 735, + "loc": { + "start": { + "line": 34, + "column": 41 + }, + "end": { + "line": 34, + "column": 46 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 737, + "end": 1038, + "loc": { + "start": { + "line": 34, + "column": 48 + }, + "end": { + "line": 40, + "column": 17 + } + }, + "properties": [ + { + "type": "Property", + "start": 759, + "end": 789, + "loc": { + "start": { + "line": 35, + "column": 20 + }, + "end": { + "line": 35, + "column": 50 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 759, + "end": 761, + "loc": { + "start": { + "line": 35, + "column": 20 + }, + "end": { + "line": 35, + "column": 22 + } + }, + "name": "id" + }, + "value": { + "type": "MemberExpression", + "start": 772, + "end": 789, + "loc": { + "start": { + "line": 35, + "column": 33 + }, + "end": { + "line": 35, + "column": 50 + } + }, + "object": { + "type": "MemberExpression", + "start": 772, + "end": 786, + "loc": { + "start": { + "line": 35, + "column": 33 + }, + "end": { + "line": 35, + "column": 47 + } + }, + "object": { + "type": "Identifier", + "start": 772, + "end": 778, + "loc": { + "start": { + "line": 35, + "column": 33 + }, + "end": { + "line": 35, + "column": 39 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 779, + "end": 786, + "loc": { + "start": { + "line": 35, + "column": 40 + }, + "end": { + "line": 35, + "column": 47 + } + }, + "name": "initial" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 787, + "end": 789, + "loc": { + "start": { + "line": 35, + "column": 48 + }, + "end": { + "line": 35, + "column": 50 + } + }, + "name": "id" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 811, + "end": 845, + "loc": { + "start": { + "line": 36, + "column": 20 + }, + "end": { + "line": 36, + "column": 54 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 811, + "end": 817, + "loc": { + "start": { + "line": 36, + "column": 20 + }, + "end": { + "line": 36, + "column": 26 + } + }, + "name": "fb_uid" + }, + "value": { + "type": "MemberExpression", + "start": 824, + "end": 845, + "loc": { + "start": { + "line": 36, + "column": 33 + }, + "end": { + "line": 36, + "column": 54 + } + }, + "object": { + "type": "MemberExpression", + "start": 824, + "end": 838, + "loc": { + "start": { + "line": 36, + "column": 33 + }, + "end": { + "line": 36, + "column": 47 + } + }, + "object": { + "type": "Identifier", + "start": 824, + "end": 830, + "loc": { + "start": { + "line": 36, + "column": 33 + }, + "end": { + "line": 36, + "column": 39 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 831, + "end": 838, + "loc": { + "start": { + "line": 36, + "column": 40 + }, + "end": { + "line": 36, + "column": 47 + } + }, + "name": "initial" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 839, + "end": 845, + "loc": { + "start": { + "line": 36, + "column": 48 + }, + "end": { + "line": 36, + "column": 54 + } + }, + "name": "fb_uid" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 867, + "end": 905, + "loc": { + "start": { + "line": 37, + "column": 20 + }, + "end": { + "line": 37, + "column": 58 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 867, + "end": 877, + "loc": { + "start": { + "line": 37, + "column": 20 + }, + "end": { + "line": 37, + "column": 30 + } + }, + "name": "first_name" + }, + "value": { + "type": "MemberExpression", + "start": 880, + "end": 905, + "loc": { + "start": { + "line": 37, + "column": 33 + }, + "end": { + "line": 37, + "column": 58 + } + }, + "object": { + "type": "MemberExpression", + "start": 880, + "end": 894, + "loc": { + "start": { + "line": 37, + "column": 33 + }, + "end": { + "line": 37, + "column": 47 + } + }, + "object": { + "type": "Identifier", + "start": 880, + "end": 886, + "loc": { + "start": { + "line": 37, + "column": 33 + }, + "end": { + "line": 37, + "column": 39 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 887, + "end": 894, + "loc": { + "start": { + "line": 37, + "column": 40 + }, + "end": { + "line": 37, + "column": 47 + } + }, + "name": "initial" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 895, + "end": 905, + "loc": { + "start": { + "line": 37, + "column": 48 + }, + "end": { + "line": 37, + "column": 58 + } + }, + "name": "first_name" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 927, + "end": 964, + "loc": { + "start": { + "line": 38, + "column": 20 + }, + "end": { + "line": 38, + "column": 57 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 927, + "end": 936, + "loc": { + "start": { + "line": 38, + "column": 20 + }, + "end": { + "line": 38, + "column": 29 + } + }, + "name": "last_name" + }, + "value": { + "type": "MemberExpression", + "start": 940, + "end": 964, + "loc": { + "start": { + "line": 38, + "column": 33 + }, + "end": { + "line": 38, + "column": 57 + } + }, + "object": { + "type": "MemberExpression", + "start": 940, + "end": 954, + "loc": { + "start": { + "line": 38, + "column": 33 + }, + "end": { + "line": 38, + "column": 47 + } + }, + "object": { + "type": "Identifier", + "start": 940, + "end": 946, + "loc": { + "start": { + "line": 38, + "column": 33 + }, + "end": { + "line": 38, + "column": 39 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 947, + "end": 954, + "loc": { + "start": { + "line": 38, + "column": 40 + }, + "end": { + "line": 38, + "column": 47 + } + }, + "name": "initial" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 955, + "end": 964, + "loc": { + "start": { + "line": 38, + "column": 48 + }, + "end": { + "line": 38, + "column": 57 + } + }, + "name": "last_name" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 986, + "end": 1019, + "loc": { + "start": { + "line": 39, + "column": 20 + }, + "end": { + "line": 39, + "column": 53 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 986, + "end": 991, + "loc": { + "start": { + "line": 39, + "column": 20 + }, + "end": { + "line": 39, + "column": 25 + } + }, + "name": "email" + }, + "value": { + "type": "MemberExpression", + "start": 999, + "end": 1019, + "loc": { + "start": { + "line": 39, + "column": 33 + }, + "end": { + "line": 39, + "column": 53 + } + }, + "object": { + "type": "MemberExpression", + "start": 999, + "end": 1013, + "loc": { + "start": { + "line": 39, + "column": 33 + }, + "end": { + "line": 39, + "column": 47 + } + }, + "object": { + "type": "Identifier", + "start": 999, + "end": 1005, + "loc": { + "start": { + "line": 39, + "column": 33 + }, + "end": { + "line": 39, + "column": 39 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1006, + "end": 1013, + "loc": { + "start": { + "line": 39, + "column": 40 + }, + "end": { + "line": 39, + "column": 47 + } + }, + "name": "initial" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1014, + "end": 1019, + "loc": { + "start": { + "line": 39, + "column": 48 + }, + "end": { + "line": 39, + "column": 53 + } + }, + "name": "email" + }, + "computed": false + }, + "kind": "init" + } + ] + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 1066, + "end": 1078, + "loc": { + "start": { + "line": 42, + "column": 12 + }, + "end": { + "line": 42, + "column": 24 + } + }, + "argument": { + "type": "Identifier", + "start": 1073, + "end": 1078, + "loc": { + "start": { + "line": 42, + "column": 19 + }, + "end": { + "line": 42, + "column": 24 + } + }, + "name": "state" + } + } + ], + "test": { + "type": "MemberExpression", + "start": 633, + "end": 653, + "loc": { + "start": { + "line": 32, + "column": 13 + }, + "end": { + "line": 32, + "column": 33 + } + }, + "object": { + "type": "Identifier", + "start": 633, + "end": 644, + "loc": { + "start": { + "line": 32, + "column": 13 + }, + "end": { + "line": 32, + "column": 24 + } + }, + "name": "UserActions" + }, + "property": { + "type": "Identifier", + "start": 645, + "end": 653, + "loc": { + "start": { + "line": 32, + "column": 25 + }, + "end": { + "line": 32, + "column": 33 + } + }, + "name": "FB_LOGIN" + }, + "computed": false + } + }, + { + "type": "SwitchCase", + "start": 1088, + "end": 1170, + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 45, + "column": 57 + } + }, + "consequent": [ + { + "type": "ReturnStatement", + "start": 1125, + "end": 1170, + "loc": { + "start": { + "line": 45, + "column": 12 + }, + "end": { + "line": 45, + "column": 57 + } + }, + "argument": { + "type": "CallExpression", + "start": 1132, + "end": 1170, + "loc": { + "start": { + "line": 45, + "column": 19 + }, + "end": { + "line": 45, + "column": 57 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1132, + "end": 1145, + "loc": { + "start": { + "line": 45, + "column": 19 + }, + "end": { + "line": 45, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 1132, + "end": 1138, + "loc": { + "start": { + "line": 45, + "column": 19 + }, + "end": { + "line": 45, + "column": 25 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 1139, + "end": 1145, + "loc": { + "start": { + "line": 45, + "column": 26 + }, + "end": { + "line": 45, + "column": 32 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 1146, + "end": 1148, + "loc": { + "start": { + "line": 45, + "column": 33 + }, + "end": { + "line": 45, + "column": 35 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 1150, + "end": 1155, + "loc": { + "start": { + "line": 45, + "column": 37 + }, + "end": { + "line": 45, + "column": 42 + } + }, + "name": "state" + }, + { + "type": "Identifier", + "start": 1157, + "end": 1169, + "loc": { + "start": { + "line": 45, + "column": 44 + }, + "end": { + "line": 45, + "column": 56 + } + }, + "name": "initialState" + } + ] + } + } + ], + "test": { + "type": "MemberExpression", + "start": 1093, + "end": 1111, + "loc": { + "start": { + "line": 44, + "column": 13 + }, + "end": { + "line": 44, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 1093, + "end": 1104, + "loc": { + "start": { + "line": 44, + "column": 13 + }, + "end": { + "line": 44, + "column": 24 + } + }, + "name": "UserActions" + }, + "property": { + "type": "Identifier", + "start": 1105, + "end": 1111, + "loc": { + "start": { + "line": 44, + "column": 25 + }, + "end": { + "line": 44, + "column": 31 + } + }, + "name": "LOGOUT" + }, + "computed": false + } + } + ] + }, + { + "type": "ReturnStatement", + "start": 1183, + "end": 1195, + "loc": { + "start": { + "line": 49, + "column": 4 + }, + "end": { + "line": 49, + "column": 16 + } + }, + "argument": { + "type": "Identifier", + "start": 1190, + "end": 1195, + "loc": { + "start": { + "line": 49, + "column": 11 + }, + "end": { + "line": 49, + "column": 16 + } + }, + "name": "state" + } + } + ] + }, + "leadingComments": [], + "name": "_", + "trailingComments": [] + }, + { + "type": "Identifier", + "start": 1199, + "end": 1218, + "loc": { + "start": { + "line": 52, + "column": 0 + }, + "end": { + "line": 52, + "column": 19 + } + }, + "declaration": { + "type": "Identifier", + "start": 1214, + "end": 1218, + "loc": { + "start": { + "line": 52, + "column": 15 + }, + "end": { + "line": 52, + "column": 19 + } + }, + "name": "User" + }, + "name": "_", + "leadingComments": [], + "trailingComments": [] + }, + { + "type": "ExportDefaultDeclaration", + "start": 1199, + "end": 1218, + "loc": { + "start": { + "line": 52, + "column": 0 + }, + "end": { + "line": 52, + "column": 19 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 452, + "end": 1197, + "loc": { + "start": { + "line": 26, + "column": 0 + }, + "end": { + "line": 50, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 461, + "end": 465, + "loc": { + "start": { + "line": 26, + "column": 9 + }, + "end": { + "line": 26, + "column": 13 + } + }, + "name": "User", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "AssignmentPattern", + "start": 466, + "end": 486, + "loc": { + "start": { + "line": 26, + "column": 14 + }, + "end": { + "line": 26, + "column": 34 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 466, + "end": 471, + "loc": { + "start": { + "line": 26, + "column": 14 + }, + "end": { + "line": 26, + "column": 19 + } + }, + "name": "state" + }, + "right": { + "type": "Identifier", + "start": 474, + "end": 486, + "loc": { + "start": { + "line": 26, + "column": 22 + }, + "end": { + "line": 26, + "column": 34 + } + }, + "name": "initialState" + } + }, + { + "type": "Identifier", + "start": 488, + "end": 494, + "loc": { + "start": { + "line": 26, + "column": 36 + }, + "end": { + "line": 26, + "column": 42 + } + }, + "name": "action" + } + ], + "body": { + "type": "BlockStatement", + "start": 496, + "end": 1197, + "loc": { + "start": { + "line": 26, + "column": 44 + }, + "end": { + "line": 50, + "column": 1 + } + }, + "body": [ + { + "type": "SwitchStatement", + "start": 503, + "end": 1177, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 47, + "column": 5 + } + }, + "discriminant": { + "type": "MemberExpression", + "start": 511, + "end": 522, + "loc": { + "start": { + "line": 28, + "column": 12 + }, + "end": { + "line": 28, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 511, + "end": 517, + "loc": { + "start": { + "line": 28, + "column": 12 + }, + "end": { + "line": 28, + "column": 18 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 518, + "end": 522, + "loc": { + "start": { + "line": 28, + "column": 19 + }, + "end": { + "line": 28, + "column": 23 + } + }, + "name": "type" + }, + "computed": false + }, + "cases": [ + { + "type": "SwitchCase", + "start": 534, + "end": 618, + "loc": { + "start": { + "line": 29, + "column": 8 + }, + "end": { + "line": 30, + "column": 60 + } + }, + "consequent": [ + { + "type": "ReturnStatement", + "start": 570, + "end": 618, + "loc": { + "start": { + "line": 30, + "column": 12 + }, + "end": { + "line": 30, + "column": 60 + } + }, + "argument": { + "type": "CallExpression", + "start": 577, + "end": 618, + "loc": { + "start": { + "line": 30, + "column": 19 + }, + "end": { + "line": 30, + "column": 60 + } + }, + "callee": { + "type": "MemberExpression", + "start": 577, + "end": 590, + "loc": { + "start": { + "line": 30, + "column": 19 + }, + "end": { + "line": 30, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 577, + "end": 583, + "loc": { + "start": { + "line": 30, + "column": 19 + }, + "end": { + "line": 30, + "column": 25 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 584, + "end": 590, + "loc": { + "start": { + "line": 30, + "column": 26 + }, + "end": { + "line": 30, + "column": 32 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 591, + "end": 593, + "loc": { + "start": { + "line": 30, + "column": 33 + }, + "end": { + "line": 30, + "column": 35 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 595, + "end": 600, + "loc": { + "start": { + "line": 30, + "column": 37 + }, + "end": { + "line": 30, + "column": 42 + } + }, + "name": "state" + }, + { + "type": "MemberExpression", + "start": 602, + "end": 617, + "loc": { + "start": { + "line": 30, + "column": 44 + }, + "end": { + "line": 30, + "column": 59 + } + }, + "object": { + "type": "Identifier", + "start": 602, + "end": 608, + "loc": { + "start": { + "line": 30, + "column": 44 + }, + "end": { + "line": 30, + "column": 50 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 609, + "end": 617, + "loc": { + "start": { + "line": 30, + "column": 51 + }, + "end": { + "line": 30, + "column": 59 + } + }, + "name": "response" + }, + "computed": false + } + ] + } + } + ], + "test": { + "type": "MemberExpression", + "start": 539, + "end": 556, + "loc": { + "start": { + "line": 29, + "column": 13 + }, + "end": { + "line": 29, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 539, + "end": 550, + "loc": { + "start": { + "line": 29, + "column": 13 + }, + "end": { + "line": 29, + "column": 24 + } + }, + "name": "UserActions" + }, + "property": { + "type": "Identifier", + "start": 551, + "end": 556, + "loc": { + "start": { + "line": 29, + "column": 25 + }, + "end": { + "line": 29, + "column": 30 + } + }, + "name": "LOGIN" + }, + "computed": false + } + }, + { + "type": "SwitchCase", + "start": 628, + "end": 1078, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 42, + "column": 24 + } + }, + "consequent": [ + { + "type": "IfStatement", + "start": 667, + "end": 1053, + "loc": { + "start": { + "line": 33, + "column": 12 + }, + "end": { + "line": 41, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 671, + "end": 685, + "loc": { + "start": { + "line": 33, + "column": 16 + }, + "end": { + "line": 33, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 671, + "end": 677, + "loc": { + "start": { + "line": 33, + "column": 16 + }, + "end": { + "line": 33, + "column": 22 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 678, + "end": 685, + "loc": { + "start": { + "line": 33, + "column": 23 + }, + "end": { + "line": 33, + "column": 30 + } + }, + "name": "initial" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 687, + "end": 1053, + "loc": { + "start": { + "line": 33, + "column": 32 + }, + "end": { + "line": 41, + "column": 13 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 705, + "end": 1039, + "loc": { + "start": { + "line": 34, + "column": 16 + }, + "end": { + "line": 40, + "column": 18 + } + }, + "argument": { + "type": "CallExpression", + "start": 712, + "end": 1039, + "loc": { + "start": { + "line": 34, + "column": 23 + }, + "end": { + "line": 40, + "column": 18 + } + }, + "callee": { + "type": "MemberExpression", + "start": 712, + "end": 725, + "loc": { + "start": { + "line": 34, + "column": 23 + }, + "end": { + "line": 34, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 712, + "end": 718, + "loc": { + "start": { + "line": 34, + "column": 23 + }, + "end": { + "line": 34, + "column": 29 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 719, + "end": 725, + "loc": { + "start": { + "line": 34, + "column": 30 + }, + "end": { + "line": 34, + "column": 36 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 726, + "end": 728, + "loc": { + "start": { + "line": 34, + "column": 37 + }, + "end": { + "line": 34, + "column": 39 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 730, + "end": 735, + "loc": { + "start": { + "line": 34, + "column": 41 + }, + "end": { + "line": 34, + "column": 46 + } + }, + "name": "state" + }, + { + "type": "ObjectExpression", + "start": 737, + "end": 1038, + "loc": { + "start": { + "line": 34, + "column": 48 + }, + "end": { + "line": 40, + "column": 17 + } + }, + "properties": [ + { + "type": "Property", + "start": 759, + "end": 789, + "loc": { + "start": { + "line": 35, + "column": 20 + }, + "end": { + "line": 35, + "column": 50 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 759, + "end": 761, + "loc": { + "start": { + "line": 35, + "column": 20 + }, + "end": { + "line": 35, + "column": 22 + } + }, + "name": "id" + }, + "value": { + "type": "MemberExpression", + "start": 772, + "end": 789, + "loc": { + "start": { + "line": 35, + "column": 33 + }, + "end": { + "line": 35, + "column": 50 + } + }, + "object": { + "type": "MemberExpression", + "start": 772, + "end": 786, + "loc": { + "start": { + "line": 35, + "column": 33 + }, + "end": { + "line": 35, + "column": 47 + } + }, + "object": { + "type": "Identifier", + "start": 772, + "end": 778, + "loc": { + "start": { + "line": 35, + "column": 33 + }, + "end": { + "line": 35, + "column": 39 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 779, + "end": 786, + "loc": { + "start": { + "line": 35, + "column": 40 + }, + "end": { + "line": 35, + "column": 47 + } + }, + "name": "initial" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 787, + "end": 789, + "loc": { + "start": { + "line": 35, + "column": 48 + }, + "end": { + "line": 35, + "column": 50 + } + }, + "name": "id" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 811, + "end": 845, + "loc": { + "start": { + "line": 36, + "column": 20 + }, + "end": { + "line": 36, + "column": 54 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 811, + "end": 817, + "loc": { + "start": { + "line": 36, + "column": 20 + }, + "end": { + "line": 36, + "column": 26 + } + }, + "name": "fb_uid" + }, + "value": { + "type": "MemberExpression", + "start": 824, + "end": 845, + "loc": { + "start": { + "line": 36, + "column": 33 + }, + "end": { + "line": 36, + "column": 54 + } + }, + "object": { + "type": "MemberExpression", + "start": 824, + "end": 838, + "loc": { + "start": { + "line": 36, + "column": 33 + }, + "end": { + "line": 36, + "column": 47 + } + }, + "object": { + "type": "Identifier", + "start": 824, + "end": 830, + "loc": { + "start": { + "line": 36, + "column": 33 + }, + "end": { + "line": 36, + "column": 39 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 831, + "end": 838, + "loc": { + "start": { + "line": 36, + "column": 40 + }, + "end": { + "line": 36, + "column": 47 + } + }, + "name": "initial" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 839, + "end": 845, + "loc": { + "start": { + "line": 36, + "column": 48 + }, + "end": { + "line": 36, + "column": 54 + } + }, + "name": "fb_uid" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 867, + "end": 905, + "loc": { + "start": { + "line": 37, + "column": 20 + }, + "end": { + "line": 37, + "column": 58 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 867, + "end": 877, + "loc": { + "start": { + "line": 37, + "column": 20 + }, + "end": { + "line": 37, + "column": 30 + } + }, + "name": "first_name" + }, + "value": { + "type": "MemberExpression", + "start": 880, + "end": 905, + "loc": { + "start": { + "line": 37, + "column": 33 + }, + "end": { + "line": 37, + "column": 58 + } + }, + "object": { + "type": "MemberExpression", + "start": 880, + "end": 894, + "loc": { + "start": { + "line": 37, + "column": 33 + }, + "end": { + "line": 37, + "column": 47 + } + }, + "object": { + "type": "Identifier", + "start": 880, + "end": 886, + "loc": { + "start": { + "line": 37, + "column": 33 + }, + "end": { + "line": 37, + "column": 39 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 887, + "end": 894, + "loc": { + "start": { + "line": 37, + "column": 40 + }, + "end": { + "line": 37, + "column": 47 + } + }, + "name": "initial" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 895, + "end": 905, + "loc": { + "start": { + "line": 37, + "column": 48 + }, + "end": { + "line": 37, + "column": 58 + } + }, + "name": "first_name" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 927, + "end": 964, + "loc": { + "start": { + "line": 38, + "column": 20 + }, + "end": { + "line": 38, + "column": 57 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 927, + "end": 936, + "loc": { + "start": { + "line": 38, + "column": 20 + }, + "end": { + "line": 38, + "column": 29 + } + }, + "name": "last_name" + }, + "value": { + "type": "MemberExpression", + "start": 940, + "end": 964, + "loc": { + "start": { + "line": 38, + "column": 33 + }, + "end": { + "line": 38, + "column": 57 + } + }, + "object": { + "type": "MemberExpression", + "start": 940, + "end": 954, + "loc": { + "start": { + "line": 38, + "column": 33 + }, + "end": { + "line": 38, + "column": 47 + } + }, + "object": { + "type": "Identifier", + "start": 940, + "end": 946, + "loc": { + "start": { + "line": 38, + "column": 33 + }, + "end": { + "line": 38, + "column": 39 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 947, + "end": 954, + "loc": { + "start": { + "line": 38, + "column": 40 + }, + "end": { + "line": 38, + "column": 47 + } + }, + "name": "initial" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 955, + "end": 964, + "loc": { + "start": { + "line": 38, + "column": 48 + }, + "end": { + "line": 38, + "column": 57 + } + }, + "name": "last_name" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 986, + "end": 1019, + "loc": { + "start": { + "line": 39, + "column": 20 + }, + "end": { + "line": 39, + "column": 53 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 986, + "end": 991, + "loc": { + "start": { + "line": 39, + "column": 20 + }, + "end": { + "line": 39, + "column": 25 + } + }, + "name": "email" + }, + "value": { + "type": "MemberExpression", + "start": 999, + "end": 1019, + "loc": { + "start": { + "line": 39, + "column": 33 + }, + "end": { + "line": 39, + "column": 53 + } + }, + "object": { + "type": "MemberExpression", + "start": 999, + "end": 1013, + "loc": { + "start": { + "line": 39, + "column": 33 + }, + "end": { + "line": 39, + "column": 47 + } + }, + "object": { + "type": "Identifier", + "start": 999, + "end": 1005, + "loc": { + "start": { + "line": 39, + "column": 33 + }, + "end": { + "line": 39, + "column": 39 + } + }, + "name": "action" + }, + "property": { + "type": "Identifier", + "start": 1006, + "end": 1013, + "loc": { + "start": { + "line": 39, + "column": 40 + }, + "end": { + "line": 39, + "column": 47 + } + }, + "name": "initial" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1014, + "end": 1019, + "loc": { + "start": { + "line": 39, + "column": 48 + }, + "end": { + "line": 39, + "column": 53 + } + }, + "name": "email" + }, + "computed": false + }, + "kind": "init" + } + ] + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 1066, + "end": 1078, + "loc": { + "start": { + "line": 42, + "column": 12 + }, + "end": { + "line": 42, + "column": 24 + } + }, + "argument": { + "type": "Identifier", + "start": 1073, + "end": 1078, + "loc": { + "start": { + "line": 42, + "column": 19 + }, + "end": { + "line": 42, + "column": 24 + } + }, + "name": "state" + } + } + ], + "test": { + "type": "MemberExpression", + "start": 633, + "end": 653, + "loc": { + "start": { + "line": 32, + "column": 13 + }, + "end": { + "line": 32, + "column": 33 + } + }, + "object": { + "type": "Identifier", + "start": 633, + "end": 644, + "loc": { + "start": { + "line": 32, + "column": 13 + }, + "end": { + "line": 32, + "column": 24 + } + }, + "name": "UserActions" + }, + "property": { + "type": "Identifier", + "start": 645, + "end": 653, + "loc": { + "start": { + "line": 32, + "column": 25 + }, + "end": { + "line": 32, + "column": 33 + } + }, + "name": "FB_LOGIN" + }, + "computed": false + } + }, + { + "type": "SwitchCase", + "start": 1088, + "end": 1170, + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 45, + "column": 57 + } + }, + "consequent": [ + { + "type": "ReturnStatement", + "start": 1125, + "end": 1170, + "loc": { + "start": { + "line": 45, + "column": 12 + }, + "end": { + "line": 45, + "column": 57 + } + }, + "argument": { + "type": "CallExpression", + "start": 1132, + "end": 1170, + "loc": { + "start": { + "line": 45, + "column": 19 + }, + "end": { + "line": 45, + "column": 57 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1132, + "end": 1145, + "loc": { + "start": { + "line": 45, + "column": 19 + }, + "end": { + "line": 45, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 1132, + "end": 1138, + "loc": { + "start": { + "line": 45, + "column": 19 + }, + "end": { + "line": 45, + "column": 25 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 1139, + "end": 1145, + "loc": { + "start": { + "line": 45, + "column": 26 + }, + "end": { + "line": 45, + "column": 32 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 1146, + "end": 1148, + "loc": { + "start": { + "line": 45, + "column": 33 + }, + "end": { + "line": 45, + "column": 35 + } + }, + "properties": [] + }, + { + "type": "Identifier", + "start": 1150, + "end": 1155, + "loc": { + "start": { + "line": 45, + "column": 37 + }, + "end": { + "line": 45, + "column": 42 + } + }, + "name": "state" + }, + { + "type": "Identifier", + "start": 1157, + "end": 1169, + "loc": { + "start": { + "line": 45, + "column": 44 + }, + "end": { + "line": 45, + "column": 56 + } + }, + "name": "initialState" + } + ] + } + } + ], + "test": { + "type": "MemberExpression", + "start": 1093, + "end": 1111, + "loc": { + "start": { + "line": 44, + "column": 13 + }, + "end": { + "line": 44, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 1093, + "end": 1104, + "loc": { + "start": { + "line": 44, + "column": 13 + }, + "end": { + "line": 44, + "column": 24 + } + }, + "name": "UserActions" + }, + "property": { + "type": "Identifier", + "start": 1105, + "end": 1111, + "loc": { + "start": { + "line": 44, + "column": 25 + }, + "end": { + "line": 44, + "column": 31 + } + }, + "name": "LOGOUT" + }, + "computed": false + } + } + ] + }, + { + "type": "ReturnStatement", + "start": 1183, + "end": 1195, + "loc": { + "start": { + "line": 49, + "column": 4 + }, + "end": { + "line": 49, + "column": 16 + } + }, + "argument": { + "type": "Identifier", + "start": 1190, + "end": 1195, + "loc": { + "start": { + "line": 49, + "column": 11 + }, + "end": { + "line": 49, + "column": 16 + } + }, + "name": "state" + } + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * User\n * Redux Reducer for User action\n * Reference: http://redux.js.org/docs/basics/Reducers.html\n * @param state\n * @param action\n * @returns {*}\n * @constructor\n ", + "start": 278, + "end": 451, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 25, + "column": 3 + } + }, + "range": [ + 278, + 451 + ] + } + ], + "trailingComments": [] + } + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/reducers/index.js.json b/app/docs/ast/source/reducers/index.js.json new file mode 100644 index 0000000..3c6d2a7 --- /dev/null +++ b/app/docs/ast/source/reducers/index.js.json @@ -0,0 +1,1140 @@ +{ + "type": "Program", + "start": 0, + "end": 536, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 18, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ExportNamedDeclaration", + "start": 0, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "specifiers": [ + { + "type": "Identifier", + "start": 7, + "end": 11, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 11 + } + }, + "exported": { + "type": "Identifier", + "start": 7, + "end": 11, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 11 + } + }, + "name": "User" + } + } + ], + "source": { + "type": "Literal", + "start": 17, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 17 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "value": "./User", + "rawValue": "./User", + "raw": "'./User'" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 26, + "end": 59, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 33 + } + }, + "specifiers": [ + { + "type": "Identifier", + "start": 33, + "end": 41, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 15 + } + }, + "exported": { + "type": "Identifier", + "start": 33, + "end": 41, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 15 + } + }, + "name": "Activity" + } + } + ], + "source": { + "type": "Literal", + "start": 47, + "end": 59, + "loc": { + "start": { + "line": 2, + "column": 21 + }, + "end": { + "line": 2, + "column": 33 + } + }, + "value": "./Activity", + "rawValue": "./Activity", + "raw": "'./Activity'" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 60, + "end": 89, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 29 + } + }, + "specifiers": [ + { + "type": "Identifier", + "start": 67, + "end": 73, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 13 + } + }, + "exported": { + "type": "Identifier", + "start": 67, + "end": 73, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 13 + } + }, + "name": "Photos" + } + } + ], + "source": { + "type": "Literal", + "start": 79, + "end": 89, + "loc": { + "start": { + "line": 3, + "column": 19 + }, + "end": { + "line": 3, + "column": 29 + } + }, + "value": "./Photos", + "rawValue": "./Photos", + "raw": "'./Photos'" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 90, + "end": 123, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 33 + } + }, + "specifiers": [ + { + "type": "Identifier", + "start": 97, + "end": 105, + "loc": { + "start": { + "line": 4, + "column": 7 + }, + "end": { + "line": 4, + "column": 15 + } + }, + "exported": { + "type": "Identifier", + "start": 97, + "end": 105, + "loc": { + "start": { + "line": 4, + "column": 7 + }, + "end": { + "line": 4, + "column": 15 + } + }, + "name": "Comments" + } + } + ], + "source": { + "type": "Literal", + "start": 111, + "end": 123, + "loc": { + "start": { + "line": 4, + "column": 21 + }, + "end": { + "line": 4, + "column": 33 + } + }, + "value": "./Comments", + "rawValue": "./Comments", + "raw": "'./Comments'" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 124, + "end": 151, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 27 + } + }, + "specifiers": [ + { + "type": "Identifier", + "start": 131, + "end": 136, + "loc": { + "start": { + "line": 5, + "column": 7 + }, + "end": { + "line": 5, + "column": 12 + } + }, + "exported": { + "type": "Identifier", + "start": 131, + "end": 136, + "loc": { + "start": { + "line": 5, + "column": 7 + }, + "end": { + "line": 5, + "column": 12 + } + }, + "name": "Likes" + } + } + ], + "source": { + "type": "Literal", + "start": 142, + "end": 151, + "loc": { + "start": { + "line": 5, + "column": 18 + }, + "end": { + "line": 5, + "column": 27 + } + }, + "value": "./Likes", + "rawValue": "./Likes", + "raw": "'./Likes'" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 152, + "end": 179, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 6, + "column": 27 + } + }, + "specifiers": [ + { + "type": "Identifier", + "start": 159, + "end": 164, + "loc": { + "start": { + "line": 6, + "column": 7 + }, + "end": { + "line": 6, + "column": 12 + } + }, + "exported": { + "type": "Identifier", + "start": 159, + "end": 164, + "loc": { + "start": { + "line": 6, + "column": 7 + }, + "end": { + "line": 6, + "column": 12 + } + }, + "name": "Photo" + } + } + ], + "source": { + "type": "Literal", + "start": 170, + "end": 179, + "loc": { + "start": { + "line": 6, + "column": 18 + }, + "end": { + "line": 6, + "column": 27 + } + }, + "value": "./Photo", + "rawValue": "./Photo", + "raw": "'./Photo'" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 180, + "end": 207, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 27 + } + }, + "specifiers": [ + { + "type": "Identifier", + "start": 187, + "end": 192, + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 12 + } + }, + "exported": { + "type": "Identifier", + "start": 187, + "end": 192, + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 12 + } + }, + "name": "Stats" + } + } + ], + "source": { + "type": "Literal", + "start": 198, + "end": 207, + "loc": { + "start": { + "line": 7, + "column": 18 + }, + "end": { + "line": 7, + "column": 27 + } + }, + "value": "./Stats", + "rawValue": "./Stats", + "raw": "'./Stats'" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 208, + "end": 239, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 31 + } + }, + "specifiers": [ + { + "type": "Identifier", + "start": 215, + "end": 222, + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 14 + } + }, + "exported": { + "type": "Identifier", + "start": 215, + "end": 222, + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 14 + } + }, + "name": "Explore" + } + } + ], + "source": { + "type": "Literal", + "start": 228, + "end": 239, + "loc": { + "start": { + "line": 8, + "column": 20 + }, + "end": { + "line": 8, + "column": 31 + } + }, + "value": "./Explore", + "rawValue": "./Explore", + "raw": "'./Explore'" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 240, + "end": 273, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 33 + } + }, + "specifiers": [ + { + "type": "Identifier", + "start": 247, + "end": 255, + "loc": { + "start": { + "line": 9, + "column": 7 + }, + "end": { + "line": 9, + "column": 15 + } + }, + "exported": { + "type": "Identifier", + "start": 247, + "end": 255, + "loc": { + "start": { + "line": 9, + "column": 7 + }, + "end": { + "line": 9, + "column": 15 + } + }, + "name": "Trending" + } + } + ], + "source": { + "type": "Literal", + "start": 261, + "end": 273, + "loc": { + "start": { + "line": 9, + "column": 21 + }, + "end": { + "line": 9, + "column": 33 + } + }, + "value": "./Trending", + "rawValue": "./Trending", + "raw": "'./Trending'" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 274, + "end": 303, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 10, + "column": 29 + } + }, + "specifiers": [ + { + "type": "Identifier", + "start": 281, + "end": 287, + "loc": { + "start": { + "line": 10, + "column": 7 + }, + "end": { + "line": 10, + "column": 13 + } + }, + "exported": { + "type": "Identifier", + "start": 281, + "end": 287, + "loc": { + "start": { + "line": 10, + "column": 7 + }, + "end": { + "line": 10, + "column": 13 + } + }, + "name": "Search" + } + } + ], + "source": { + "type": "Literal", + "start": 293, + "end": 303, + "loc": { + "start": { + "line": 10, + "column": 19 + }, + "end": { + "line": 10, + "column": 29 + } + }, + "value": "./Search", + "rawValue": "./Search", + "raw": "'./Search'" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 304, + "end": 337, + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 11, + "column": 33 + } + }, + "specifiers": [ + { + "type": "Identifier", + "start": 311, + "end": 319, + "loc": { + "start": { + "line": 11, + "column": 7 + }, + "end": { + "line": 11, + "column": 15 + } + }, + "exported": { + "type": "Identifier", + "start": 311, + "end": 319, + "loc": { + "start": { + "line": 11, + "column": 7 + }, + "end": { + "line": 11, + "column": 15 + } + }, + "name": "Location" + } + } + ], + "source": { + "type": "Literal", + "start": 325, + "end": 337, + "loc": { + "start": { + "line": 11, + "column": 21 + }, + "end": { + "line": 11, + "column": 33 + } + }, + "value": "./Location", + "rawValue": "./Location", + "raw": "'./Location'" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 338, + "end": 369, + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 12, + "column": 31 + } + }, + "specifiers": [ + { + "type": "Identifier", + "start": 345, + "end": 352, + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 12, + "column": 14 + } + }, + "exported": { + "type": "Identifier", + "start": 345, + "end": 352, + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 12, + "column": 14 + } + }, + "name": "Profile" + } + } + ], + "source": { + "type": "Literal", + "start": 358, + "end": 369, + "loc": { + "start": { + "line": 12, + "column": 20 + }, + "end": { + "line": 12, + "column": 31 + } + }, + "value": "./Profile", + "rawValue": "./Profile", + "raw": "'./Profile'" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 370, + "end": 399, + "loc": { + "start": { + "line": 13, + "column": 0 + }, + "end": { + "line": 13, + "column": 29 + } + }, + "specifiers": [ + { + "type": "Identifier", + "start": 377, + "end": 383, + "loc": { + "start": { + "line": 13, + "column": 7 + }, + "end": { + "line": 13, + "column": 13 + } + }, + "exported": { + "type": "Identifier", + "start": 377, + "end": 383, + "loc": { + "start": { + "line": 13, + "column": 7 + }, + "end": { + "line": 13, + "column": 13 + } + }, + "name": "Header" + } + } + ], + "source": { + "type": "Literal", + "start": 389, + "end": 399, + "loc": { + "start": { + "line": 13, + "column": 19 + }, + "end": { + "line": 13, + "column": 29 + } + }, + "value": "./Header", + "rawValue": "./Header", + "raw": "'./Header'" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 400, + "end": 443, + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 14, + "column": 43 + } + }, + "specifiers": [ + { + "type": "Identifier", + "start": 407, + "end": 420, + "loc": { + "start": { + "line": 14, + "column": 7 + }, + "end": { + "line": 14, + "column": 20 + } + }, + "exported": { + "type": "Identifier", + "start": 407, + "end": 420, + "loc": { + "start": { + "line": 14, + "column": 7 + }, + "end": { + "line": 14, + "column": 20 + } + }, + "name": "Contributions" + } + } + ], + "source": { + "type": "Literal", + "start": 426, + "end": 443, + "loc": { + "start": { + "line": 14, + "column": 26 + }, + "end": { + "line": 14, + "column": 43 + } + }, + "value": "./Contributions", + "rawValue": "./Contributions", + "raw": "'./Contributions'" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 444, + "end": 481, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 15, + "column": 37 + } + }, + "specifiers": [ + { + "type": "Identifier", + "start": 451, + "end": 461, + "loc": { + "start": { + "line": 15, + "column": 7 + }, + "end": { + "line": 15, + "column": 17 + } + }, + "exported": { + "type": "Identifier", + "start": 451, + "end": 461, + "loc": { + "start": { + "line": 15, + "column": 7 + }, + "end": { + "line": 15, + "column": 17 + } + }, + "name": "Pagination" + } + } + ], + "source": { + "type": "Literal", + "start": 467, + "end": 481, + "loc": { + "start": { + "line": 15, + "column": 23 + }, + "end": { + "line": 15, + "column": 37 + } + }, + "value": "./Pagination", + "rawValue": "./Pagination", + "raw": "'./Pagination'" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 482, + "end": 511, + "loc": { + "start": { + "line": 16, + "column": 0 + }, + "end": { + "line": 16, + "column": 29 + } + }, + "specifiers": [ + { + "type": "Identifier", + "start": 489, + "end": 495, + "loc": { + "start": { + "line": 16, + "column": 7 + }, + "end": { + "line": 16, + "column": 13 + } + }, + "exported": { + "type": "Identifier", + "start": 489, + "end": 495, + "loc": { + "start": { + "line": 16, + "column": 7 + }, + "end": { + "line": 16, + "column": 13 + } + }, + "name": "Tokens" + } + } + ], + "source": { + "type": "Literal", + "start": 501, + "end": 511, + "loc": { + "start": { + "line": 16, + "column": 19 + }, + "end": { + "line": 16, + "column": 29 + } + }, + "value": "./Tokens", + "rawValue": "./Tokens", + "raw": "'./Tokens'" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 512, + "end": 535, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 17, + "column": 23 + } + }, + "specifiers": [ + { + "type": "Identifier", + "start": 519, + "end": 522, + "loc": { + "start": { + "line": 17, + "column": 7 + }, + "end": { + "line": 17, + "column": 10 + } + }, + "exported": { + "type": "Identifier", + "start": 519, + "end": 522, + "loc": { + "start": { + "line": 17, + "column": 7 + }, + "end": { + "line": 17, + "column": 10 + } + }, + "name": "App" + } + } + ], + "source": { + "type": "Literal", + "start": 528, + "end": 535, + "loc": { + "start": { + "line": 17, + "column": 16 + }, + "end": { + "line": 17, + "column": 23 + } + }, + "value": "./App", + "rawValue": "./App", + "raw": "'./App'" + } + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/routes/Contributions/Contributions.js.json b/app/docs/ast/source/routes/Contributions/Contributions.js.json new file mode 100644 index 0000000..9427d15 --- /dev/null +++ b/app/docs/ast/source/routes/Contributions/Contributions.js.json @@ -0,0 +1,2939 @@ +{ + "type": "Program", + "start": 0, + "end": 1646, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 57, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + }, + { + "type": "ImportSpecifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "imported": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + }, + "local": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 33, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 33 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ImportDeclaration", + "start": 41, + "end": 78, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 37 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 50, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "imported": { + "type": "Identifier", + "start": 50, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "name": "connect" + }, + "local": { + "type": "Identifier", + "start": 50, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "name": "connect" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 65, + "end": 78, + "loc": { + "start": { + "line": 2, + "column": 24 + }, + "end": { + "line": 2, + "column": 37 + } + }, + "value": "react-redux", + "rawValue": "react-redux", + "raw": "'react-redux'" + } + }, + { + "type": "ImportDeclaration", + "start": 79, + "end": 114, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 35 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 88, + "end": 92, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 13 + } + }, + "imported": { + "type": "Identifier", + "start": 88, + "end": 92, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 13 + } + }, + "name": "Link" + }, + "local": { + "type": "Identifier", + "start": 88, + "end": 92, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 13 + } + }, + "name": "Link" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 100, + "end": 114, + "loc": { + "start": { + "line": 3, + "column": 21 + }, + "end": { + "line": 3, + "column": 35 + } + }, + "value": "react-router", + "rawValue": "react-router", + "raw": "'react-router'" + } + }, + { + "type": "ImportDeclaration", + "start": 115, + "end": 142, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 27 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 122, + "end": 128, + "loc": { + "start": { + "line": 4, + "column": 7 + }, + "end": { + "line": 4, + "column": 13 + } + }, + "local": { + "type": "Identifier", + "start": 122, + "end": 128, + "loc": { + "start": { + "line": 4, + "column": 7 + }, + "end": { + "line": 4, + "column": 13 + } + }, + "name": "config" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 134, + "end": 142, + "loc": { + "start": { + "line": 4, + "column": 19 + }, + "end": { + "line": 4, + "column": 27 + } + }, + "value": "config", + "rawValue": "config", + "raw": "'config'" + } + }, + { + "type": "ImportDeclaration", + "start": 144, + "end": 210, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 8, + "column": 16 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 157, + "end": 193, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 7, + "column": 40 + } + }, + "imported": { + "type": "Identifier", + "start": 157, + "end": 170, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 7, + "column": 17 + } + }, + "name": "Contributions" + }, + "local": { + "type": "Identifier", + "start": 174, + "end": 193, + "loc": { + "start": { + "line": 7, + "column": 21 + }, + "end": { + "line": 7, + "column": 40 + } + }, + "name": "ContributionActions" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 201, + "end": 210, + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 16 + } + }, + "value": "actions", + "rawValue": "actions", + "raw": "'actions'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Contributions\n * '/profile/:id/contributions'\n * React Route - Documentation: https://github.com/reactjs/react-router/tree/master/docs\n ", + "start": 212, + "end": 357, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + }, + "range": [ + 212, + 357 + ] + } + ] + }, + { + "type": "ClassDeclaration", + "start": 358, + "end": 1344, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 47, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 364, + "end": 377, + "loc": { + "start": { + "line": 15, + "column": 6 + }, + "end": { + "line": 15, + "column": 19 + } + }, + "name": "Contributions", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 386, + "end": 395, + "loc": { + "start": { + "line": 15, + "column": 28 + }, + "end": { + "line": 15, + "column": 37 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 396, + "end": 1344, + "loc": { + "start": { + "line": 15, + "column": 38 + }, + "end": { + "line": 47, + "column": 1 + } + }, + "body": [ + { + "type": "MethodDefinition", + "start": 444, + "end": 547, + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 22, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 444, + "end": 461, + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 21 + } + }, + "name": "componentDidMount", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 461, + "end": 547, + "loc": { + "start": { + "line": 20, + "column": 21 + }, + "end": { + "line": 22, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 464, + "end": 547, + "loc": { + "start": { + "line": 20, + "column": 24 + }, + "end": { + "line": 22, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 474, + "end": 541, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 75 + } + }, + "expression": { + "type": "CallExpression", + "start": 474, + "end": 541, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 75 + } + }, + "callee": { + "type": "MemberExpression", + "start": 474, + "end": 493, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 27 + } + }, + "object": { + "type": "MemberExpression", + "start": 474, + "end": 484, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 18 + } + }, + "object": { + "type": "ThisExpression", + "start": 474, + "end": 478, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 479, + "end": 484, + "loc": { + "start": { + "line": 21, + "column": 13 + }, + "end": { + "line": 21, + "column": 18 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 485, + "end": 493, + "loc": { + "start": { + "line": 21, + "column": 19 + }, + "end": { + "line": 21, + "column": 27 + } + }, + "name": "dispatch" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 494, + "end": 540, + "loc": { + "start": { + "line": 21, + "column": 28 + }, + "end": { + "line": 21, + "column": 74 + } + }, + "callee": { + "type": "MemberExpression", + "start": 494, + "end": 518, + "loc": { + "start": { + "line": 21, + "column": 28 + }, + "end": { + "line": 21, + "column": 52 + } + }, + "object": { + "type": "Identifier", + "start": 494, + "end": 513, + "loc": { + "start": { + "line": 21, + "column": 28 + }, + "end": { + "line": 21, + "column": 47 + } + }, + "name": "ContributionActions" + }, + "property": { + "type": "Identifier", + "start": 514, + "end": 518, + "loc": { + "start": { + "line": 21, + "column": 48 + }, + "end": { + "line": 21, + "column": 52 + } + }, + "name": "load" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 519, + "end": 539, + "loc": { + "start": { + "line": 21, + "column": 53 + }, + "end": { + "line": 21, + "column": 73 + } + }, + "object": { + "type": "MemberExpression", + "start": 519, + "end": 536, + "loc": { + "start": { + "line": 21, + "column": 53 + }, + "end": { + "line": 21, + "column": 70 + } + }, + "object": { + "type": "MemberExpression", + "start": 519, + "end": 529, + "loc": { + "start": { + "line": 21, + "column": 53 + }, + "end": { + "line": 21, + "column": 63 + } + }, + "object": { + "type": "ThisExpression", + "start": 519, + "end": 523, + "loc": { + "start": { + "line": 21, + "column": 53 + }, + "end": { + "line": 21, + "column": 57 + } + } + }, + "property": { + "type": "Identifier", + "start": 524, + "end": 529, + "loc": { + "start": { + "line": 21, + "column": 58 + }, + "end": { + "line": 21, + "column": 63 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 530, + "end": 536, + "loc": { + "start": { + "line": 21, + "column": 64 + }, + "end": { + "line": 21, + "column": 70 + } + }, + "name": "params" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 537, + "end": 539, + "loc": { + "start": { + "line": 21, + "column": 71 + }, + "end": { + "line": 21, + "column": 73 + } + }, + "name": "id" + }, + "computed": false + } + ] + } + ] + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * componentDidMount\n ", + "start": 403, + "end": 439, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 19, + "column": 7 + } + }, + "range": [ + 403, + 439 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 553, + "end": 601, + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 27, + "column": 7 + } + }, + "range": [ + 553, + 601 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 606, + "end": 1341, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 45, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 606, + "end": 612, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 612, + "end": 1341, + "loc": { + "start": { + "line": 28, + "column": 10 + }, + "end": { + "line": 45, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 615, + "end": 1341, + "loc": { + "start": { + "line": 28, + "column": 13 + }, + "end": { + "line": 45, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 625, + "end": 1335, + "loc": { + "start": { + "line": 29, + "column": 8 + }, + "end": { + "line": 44, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 646, + "end": 1325, + "loc": { + "start": { + "line": 30, + "column": 12 + }, + "end": { + "line": 43, + "column": 18 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 646, + "end": 668, + "loc": { + "start": { + "line": 30, + "column": 12 + }, + "end": { + "line": 30, + "column": 34 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 651, + "end": 667, + "loc": { + "start": { + "line": 30, + "column": 17 + }, + "end": { + "line": 30, + "column": 33 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 651, + "end": 660, + "loc": { + "start": { + "line": 30, + "column": 17 + }, + "end": { + "line": 30, + "column": 26 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 661, + "end": 667, + "loc": { + "start": { + "line": 30, + "column": 27 + }, + "end": { + "line": 30, + "column": 33 + } + }, + "value": "page", + "rawValue": null, + "raw": "\"page\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 647, + "end": 650, + "loc": { + "start": { + "line": 30, + "column": 13 + }, + "end": { + "line": 30, + "column": 16 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1319, + "end": 1325, + "loc": { + "start": { + "line": 43, + "column": 12 + }, + "end": { + "line": 43, + "column": 18 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1321, + "end": 1324, + "loc": { + "start": { + "line": 43, + "column": 14 + }, + "end": { + "line": 43, + "column": 17 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 668, + "end": 685, + "loc": { + "start": { + "line": 30, + "column": 34 + }, + "end": { + "line": 31, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 685, + "end": 1306, + "loc": { + "start": { + "line": 31, + "column": 16 + }, + "end": { + "line": 42, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 685, + "end": 716, + "loc": { + "start": { + "line": 31, + "column": 16 + }, + "end": { + "line": 31, + "column": 47 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 690, + "end": 715, + "loc": { + "start": { + "line": 31, + "column": 21 + }, + "end": { + "line": 31, + "column": 46 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 690, + "end": 699, + "loc": { + "start": { + "line": 31, + "column": 21 + }, + "end": { + "line": 31, + "column": 30 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 700, + "end": 715, + "loc": { + "start": { + "line": 31, + "column": 31 + }, + "end": { + "line": 31, + "column": 46 + } + }, + "value": "contributions", + "rawValue": null, + "raw": "\"contributions\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 686, + "end": 689, + "loc": { + "start": { + "line": 31, + "column": 17 + }, + "end": { + "line": 31, + "column": 20 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1300, + "end": 1306, + "loc": { + "start": { + "line": 42, + "column": 16 + }, + "end": { + "line": 42, + "column": 22 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1302, + "end": 1305, + "loc": { + "start": { + "line": 42, + "column": 18 + }, + "end": { + "line": 42, + "column": 21 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 716, + "end": 737, + "loc": { + "start": { + "line": 31, + "column": 47 + }, + "end": { + "line": 32, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 737, + "end": 1283, + "loc": { + "start": { + "line": 32, + "column": 20 + }, + "end": { + "line": 41, + "column": 26 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 737, + "end": 759, + "loc": { + "start": { + "line": 32, + "column": 20 + }, + "end": { + "line": 32, + "column": 42 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 742, + "end": 758, + "loc": { + "start": { + "line": 32, + "column": 25 + }, + "end": { + "line": 32, + "column": 41 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 742, + "end": 751, + "loc": { + "start": { + "line": 32, + "column": 25 + }, + "end": { + "line": 32, + "column": 34 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 752, + "end": 758, + "loc": { + "start": { + "line": 32, + "column": 35 + }, + "end": { + "line": 32, + "column": 41 + } + }, + "value": "grid", + "rawValue": null, + "raw": "\"grid\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 738, + "end": 741, + "loc": { + "start": { + "line": 32, + "column": 21 + }, + "end": { + "line": 32, + "column": 24 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1277, + "end": 1283, + "loc": { + "start": { + "line": 41, + "column": 20 + }, + "end": { + "line": 41, + "column": 26 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1279, + "end": 1282, + "loc": { + "start": { + "line": 41, + "column": 22 + }, + "end": { + "line": 41, + "column": 25 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 759, + "end": 784, + "loc": { + "start": { + "line": 32, + "column": 42 + }, + "end": { + "line": 33, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 784, + "end": 1256, + "loc": { + "start": { + "line": 33, + "column": 24 + }, + "end": { + "line": 40, + "column": 26 + } + }, + "expression": { + "type": "CallExpression", + "start": 785, + "end": 1255, + "loc": { + "start": { + "line": 33, + "column": 25 + }, + "end": { + "line": 40, + "column": 25 + } + }, + "callee": { + "type": "MemberExpression", + "start": 785, + "end": 813, + "loc": { + "start": { + "line": 33, + "column": 25 + }, + "end": { + "line": 33, + "column": 53 + } + }, + "object": { + "type": "MemberExpression", + "start": 785, + "end": 809, + "loc": { + "start": { + "line": 33, + "column": 25 + }, + "end": { + "line": 33, + "column": 49 + } + }, + "object": { + "type": "MemberExpression", + "start": 785, + "end": 795, + "loc": { + "start": { + "line": 33, + "column": 25 + }, + "end": { + "line": 33, + "column": 35 + } + }, + "object": { + "type": "ThisExpression", + "start": 785, + "end": 789, + "loc": { + "start": { + "line": 33, + "column": 25 + }, + "end": { + "line": 33, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "start": 790, + "end": 795, + "loc": { + "start": { + "line": 33, + "column": 30 + }, + "end": { + "line": 33, + "column": 35 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 796, + "end": 809, + "loc": { + "start": { + "line": 33, + "column": 36 + }, + "end": { + "line": 33, + "column": 49 + } + }, + "name": "contributions" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 810, + "end": 813, + "loc": { + "start": { + "line": 33, + "column": 50 + }, + "end": { + "line": 33, + "column": 53 + } + }, + "name": "map" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 814, + "end": 1229, + "loc": { + "start": { + "line": 33, + "column": 54 + }, + "end": { + "line": 39, + "column": 34 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 814, + "end": 818, + "loc": { + "start": { + "line": 33, + "column": 54 + }, + "end": { + "line": 33, + "column": 58 + } + }, + "name": "item" + } + ], + "body": { + "type": "JSXElement", + "start": 850, + "end": 1229, + "loc": { + "start": { + "line": 34, + "column": 28 + }, + "end": { + "line": 39, + "column": 34 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 850, + "end": 910, + "loc": { + "start": { + "line": 34, + "column": 28 + }, + "end": { + "line": 34, + "column": 88 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 855, + "end": 876, + "loc": { + "start": { + "line": 34, + "column": 33 + }, + "end": { + "line": 34, + "column": 54 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 855, + "end": 864, + "loc": { + "start": { + "line": 34, + "column": 33 + }, + "end": { + "line": 34, + "column": 42 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 865, + "end": 876, + "loc": { + "start": { + "line": 34, + "column": 43 + }, + "end": { + "line": 34, + "column": 54 + } + }, + "value": "grid-cell", + "rawValue": null, + "raw": "\"grid-cell\"" + } + }, + { + "type": "JSXAttribute", + "start": 877, + "end": 909, + "loc": { + "start": { + "line": 34, + "column": 55 + }, + "end": { + "line": 34, + "column": 87 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 877, + "end": 880, + "loc": { + "start": { + "line": 34, + "column": 55 + }, + "end": { + "line": 34, + "column": 58 + } + }, + "name": "key" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 881, + "end": 909, + "loc": { + "start": { + "line": 34, + "column": 59 + }, + "end": { + "line": 34, + "column": 87 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 882, + "end": 908, + "loc": { + "start": { + "line": 34, + "column": 60 + }, + "end": { + "line": 34, + "column": 86 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 899, + "end": 906, + "loc": { + "start": { + "line": 34, + "column": 77 + }, + "end": { + "line": 34, + "column": 84 + } + }, + "object": { + "type": "Identifier", + "start": 899, + "end": 903, + "loc": { + "start": { + "line": 34, + "column": 77 + }, + "end": { + "line": 34, + "column": 81 + } + }, + "name": "item" + }, + "property": { + "type": "Identifier", + "start": 904, + "end": 906, + "loc": { + "start": { + "line": 34, + "column": 82 + }, + "end": { + "line": 34, + "column": 84 + } + }, + "name": "id" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 883, + "end": 897, + "loc": { + "start": { + "line": 34, + "column": 61 + }, + "end": { + "line": 34, + "column": 75 + } + }, + "value": { + "raw": "contributions-", + "cooked": "contributions-" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 907, + "end": 907, + "loc": { + "start": { + "line": 34, + "column": 85 + }, + "end": { + "line": 34, + "column": 85 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 851, + "end": 854, + "loc": { + "start": { + "line": 34, + "column": 29 + }, + "end": { + "line": 34, + "column": 32 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1223, + "end": 1229, + "loc": { + "start": { + "line": 39, + "column": 28 + }, + "end": { + "line": 39, + "column": 34 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1225, + "end": 1228, + "loc": { + "start": { + "line": 39, + "column": 30 + }, + "end": { + "line": 39, + "column": 33 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 910, + "end": 943, + "loc": { + "start": { + "line": 34, + "column": 88 + }, + "end": { + "line": 35, + "column": 32 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 943, + "end": 1194, + "loc": { + "start": { + "line": 35, + "column": 32 + }, + "end": { + "line": 38, + "column": 39 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 943, + "end": 975, + "loc": { + "start": { + "line": 35, + "column": 32 + }, + "end": { + "line": 35, + "column": 64 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 949, + "end": 974, + "loc": { + "start": { + "line": 35, + "column": 38 + }, + "end": { + "line": 35, + "column": 63 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 949, + "end": 951, + "loc": { + "start": { + "line": 35, + "column": 38 + }, + "end": { + "line": 35, + "column": 40 + } + }, + "name": "to" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 952, + "end": 974, + "loc": { + "start": { + "line": 35, + "column": 41 + }, + "end": { + "line": 35, + "column": 63 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 953, + "end": 973, + "loc": { + "start": { + "line": 35, + "column": 42 + }, + "end": { + "line": 35, + "column": 62 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 964, + "end": 971, + "loc": { + "start": { + "line": 35, + "column": 53 + }, + "end": { + "line": 35, + "column": 60 + } + }, + "object": { + "type": "Identifier", + "start": 964, + "end": 968, + "loc": { + "start": { + "line": 35, + "column": 53 + }, + "end": { + "line": 35, + "column": 57 + } + }, + "name": "item" + }, + "property": { + "type": "Identifier", + "start": 969, + "end": 971, + "loc": { + "start": { + "line": 35, + "column": 58 + }, + "end": { + "line": 35, + "column": 60 + } + }, + "name": "id" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 954, + "end": 962, + "loc": { + "start": { + "line": 35, + "column": 43 + }, + "end": { + "line": 35, + "column": 51 + } + }, + "value": { + "raw": "/photos/", + "cooked": "/photos/" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 972, + "end": 972, + "loc": { + "start": { + "line": 35, + "column": 61 + }, + "end": { + "line": 35, + "column": 61 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 944, + "end": 948, + "loc": { + "start": { + "line": 35, + "column": 33 + }, + "end": { + "line": 35, + "column": 37 + } + }, + "name": "Link" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1187, + "end": 1194, + "loc": { + "start": { + "line": 38, + "column": 32 + }, + "end": { + "line": 38, + "column": 39 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1189, + "end": 1193, + "loc": { + "start": { + "line": 38, + "column": 34 + }, + "end": { + "line": 38, + "column": 38 + } + }, + "name": "Link" + } + }, + "children": [ + { + "type": "Literal", + "start": 975, + "end": 1012, + "loc": { + "start": { + "line": 35, + "column": 64 + }, + "end": { + "line": 36, + "column": 36 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1012, + "end": 1154, + "loc": { + "start": { + "line": 36, + "column": 36 + }, + "end": { + "line": 37, + "column": 137 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1012, + "end": 1154, + "loc": { + "start": { + "line": 36, + "column": 36 + }, + "end": { + "line": 37, + "column": 137 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1057, + "end": 1152, + "loc": { + "start": { + "line": 37, + "column": 40 + }, + "end": { + "line": 37, + "column": 135 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1057, + "end": 1060, + "loc": { + "start": { + "line": 37, + "column": 40 + }, + "end": { + "line": 37, + "column": 43 + } + }, + "name": "src" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 1061, + "end": 1152, + "loc": { + "start": { + "line": 37, + "column": 44 + }, + "end": { + "line": 37, + "column": 135 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 1062, + "end": 1151, + "loc": { + "start": { + "line": 37, + "column": 45 + }, + "end": { + "line": 37, + "column": 134 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 1065, + "end": 1085, + "loc": { + "start": { + "line": 37, + "column": 48 + }, + "end": { + "line": 37, + "column": 68 + } + }, + "object": { + "type": "MemberExpression", + "start": 1065, + "end": 1077, + "loc": { + "start": { + "line": 37, + "column": 48 + }, + "end": { + "line": 37, + "column": 60 + } + }, + "object": { + "type": "Identifier", + "start": 1065, + "end": 1071, + "loc": { + "start": { + "line": 37, + "column": 48 + }, + "end": { + "line": 37, + "column": 54 + } + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 1072, + "end": 1077, + "loc": { + "start": { + "line": 37, + "column": 55 + }, + "end": { + "line": 37, + "column": 60 + } + }, + "name": "imgix" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1078, + "end": 1085, + "loc": { + "start": { + "line": 37, + "column": 61 + }, + "end": { + "line": 37, + "column": 68 + } + }, + "name": "baseUrl" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 1089, + "end": 1102, + "loc": { + "start": { + "line": 37, + "column": 72 + }, + "end": { + "line": 37, + "column": 85 + } + }, + "object": { + "type": "Identifier", + "start": 1089, + "end": 1093, + "loc": { + "start": { + "line": 37, + "column": 72 + }, + "end": { + "line": 37, + "column": 76 + } + }, + "name": "item" + }, + "property": { + "type": "Identifier", + "start": 1094, + "end": 1102, + "loc": { + "start": { + "line": 37, + "column": 77 + }, + "end": { + "line": 37, + "column": 85 + } + }, + "name": "filename" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 1063, + "end": 1063, + "loc": { + "start": { + "line": 37, + "column": 46 + }, + "end": { + "line": 37, + "column": 46 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 1086, + "end": 1087, + "loc": { + "start": { + "line": 37, + "column": 69 + }, + "end": { + "line": 37, + "column": 70 + } + }, + "value": { + "raw": "/", + "cooked": "/" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 1103, + "end": 1150, + "loc": { + "start": { + "line": 37, + "column": 86 + }, + "end": { + "line": 37, + "column": 133 + } + }, + "value": { + "raw": "?auto=enhance&w=200&h=200&fit=crop&fm=png&dpr=2", + "cooked": "?auto=enhance&w=200&h=200&fit=crop&fm=png&dpr=2" + }, + "tail": true + } + ] + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1013, + "end": 1016, + "loc": { + "start": { + "line": 36, + "column": 37 + }, + "end": { + "line": 36, + "column": 40 + } + }, + "name": "img" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 1154, + "end": 1187, + "loc": { + "start": { + "line": 37, + "column": 137 + }, + "end": { + "line": 38, + "column": 32 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 1194, + "end": 1223, + "loc": { + "start": { + "line": 38, + "column": 39 + }, + "end": { + "line": 39, + "column": 28 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + } + } + ] + } + }, + { + "type": "Literal", + "start": 1256, + "end": 1277, + "loc": { + "start": { + "line": 40, + "column": 26 + }, + "end": { + "line": 41, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 1283, + "end": 1300, + "loc": { + "start": { + "line": 41, + "column": 26 + }, + "end": { + "line": 42, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 1306, + "end": 1319, + "loc": { + "start": { + "line": 42, + "column": 22 + }, + "end": { + "line": 43, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 553, + "end": 601, + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 27, + "column": 7 + } + }, + "range": [ + 553, + 601 + ] + } + ] + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Contributions\n * '/profile/:id/contributions'\n * React Route - Documentation: https://github.com/reactjs/react-router/tree/master/docs\n ", + "start": 212, + "end": 357, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + }, + "range": [ + 212, + 357 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * connect\n * Connects React component to a Redux store\n * Documentation: https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options\n ", + "start": 1346, + "end": 1551, + "loc": { + "start": { + "line": 49, + "column": 0 + }, + "end": { + "line": 53, + "column": 3 + } + }, + "range": [ + 1346, + 1551 + ] + } + ] + }, + { + "type": "ExportDefaultDeclaration", + "start": 1552, + "end": 1645, + "loc": { + "start": { + "line": 54, + "column": 0 + }, + "end": { + "line": 56, + "column": 18 + } + }, + "declaration": { + "type": "CallExpression", + "start": 1567, + "end": 1645, + "loc": { + "start": { + "line": 54, + "column": 15 + }, + "end": { + "line": 56, + "column": 18 + } + }, + "callee": { + "type": "CallExpression", + "start": 1567, + "end": 1630, + "loc": { + "start": { + "line": 54, + "column": 15 + }, + "end": { + "line": 56, + "column": 3 + } + }, + "callee": { + "type": "Identifier", + "start": 1567, + "end": 1574, + "loc": { + "start": { + "line": 54, + "column": 15 + }, + "end": { + "line": 54, + "column": 22 + } + }, + "name": "connect", + "leadingComments": null + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 1575, + "end": 1629, + "loc": { + "start": { + "line": 54, + "column": 23 + }, + "end": { + "line": 56, + "column": 2 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1575, + "end": 1580, + "loc": { + "start": { + "line": 54, + "column": 23 + }, + "end": { + "line": 54, + "column": 28 + } + }, + "name": "state" + } + ], + "body": { + "type": "ObjectExpression", + "start": 1585, + "end": 1628, + "loc": { + "start": { + "line": 54, + "column": 33 + }, + "end": { + "line": 56, + "column": 1 + } + }, + "properties": [ + { + "type": "Property", + "start": 1591, + "end": 1625, + "loc": { + "start": { + "line": 55, + "column": 4 + }, + "end": { + "line": 55, + "column": 38 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1591, + "end": 1604, + "loc": { + "start": { + "line": 55, + "column": 4 + }, + "end": { + "line": 55, + "column": 17 + } + }, + "name": "contributions" + }, + "value": { + "type": "MemberExpression", + "start": 1606, + "end": 1625, + "loc": { + "start": { + "line": 55, + "column": 19 + }, + "end": { + "line": 55, + "column": 38 + } + }, + "object": { + "type": "Identifier", + "start": 1606, + "end": 1611, + "loc": { + "start": { + "line": 55, + "column": 19 + }, + "end": { + "line": 55, + "column": 24 + } + }, + "name": "state" + }, + "property": { + "type": "Identifier", + "start": 1612, + "end": 1625, + "loc": { + "start": { + "line": 55, + "column": 25 + }, + "end": { + "line": 55, + "column": 38 + } + }, + "name": "Contributions" + }, + "computed": false + }, + "kind": "init" + } + ], + "parenthesizedExpression": true + } + } + ], + "leadingComments": null + }, + "arguments": [ + { + "type": "Identifier", + "start": 1631, + "end": 1644, + "loc": { + "start": { + "line": 56, + "column": 4 + }, + "end": { + "line": 56, + "column": 17 + } + }, + "name": "Contributions" + } + ], + "leadingComments": [ + { + "type": "Block", + "value": "*\n * connect\n * Connects React component to a Redux store\n * Documentation: https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options\n ", + "start": 1346, + "end": 1551, + "loc": { + "start": { + "line": 49, + "column": 0 + }, + "end": { + "line": 53, + "column": 3 + } + }, + "range": [ + 1346, + 1551 + ] + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * connect\n * Connects React component to a Redux store\n * Documentation: https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options\n ", + "start": 1346, + "end": 1551, + "loc": { + "start": { + "line": 49, + "column": 0 + }, + "end": { + "line": 53, + "column": 3 + } + }, + "range": [ + 1346, + 1551 + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/routes/Contributions/index.js.json b/app/docs/ast/source/routes/Contributions/index.js.json new file mode 100644 index 0000000..e7ed3ea --- /dev/null +++ b/app/docs/ast/source/routes/Contributions/index.js.json @@ -0,0 +1,1589 @@ +{ + "type": "Program", + "start": 0, + "end": 931, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 45, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 18, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 18 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ImportDeclaration", + "start": 26, + "end": 71, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 45 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 35, + "end": 49, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 23 + } + }, + "imported": { + "type": "Identifier", + "start": 35, + "end": 49, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 23 + } + }, + "name": "browserHistory" + }, + "local": { + "type": "Identifier", + "start": 35, + "end": 49, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 23 + } + }, + "name": "browserHistory" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 57, + "end": 71, + "loc": { + "start": { + "line": 2, + "column": 31 + }, + "end": { + "line": 2, + "column": 45 + } + }, + "value": "react-router", + "rawValue": "react-router", + "raw": "'react-router'" + } + }, + { + "type": "ImportDeclaration", + "start": 72, + "end": 111, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 39 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 81, + "end": 91, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 19 + } + }, + "imported": { + "type": "Identifier", + "start": 81, + "end": 91, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 19 + } + }, + "name": "BackButton" + }, + "local": { + "type": "Identifier", + "start": 81, + "end": 91, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 19 + } + }, + "name": "BackButton" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 99, + "end": 111, + "loc": { + "start": { + "line": 3, + "column": 27 + }, + "end": { + "line": 3, + "column": 39 + } + }, + "value": "components", + "rawValue": "components", + "raw": "'components'" + } + }, + { + "type": "ExpressionStatement", + "start": 113, + "end": 930, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 44, + "column": 1 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 113, + "end": 930, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 44, + "column": 1 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 113, + "end": 127, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 14 + } + }, + "object": { + "type": "Identifier", + "start": 113, + "end": 119, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 6 + } + }, + "name": "module" + }, + "property": { + "type": "Identifier", + "start": 120, + "end": 127, + "loc": { + "start": { + "line": 5, + "column": 7 + }, + "end": { + "line": 5, + "column": 14 + } + }, + "name": "exports" + }, + "computed": false + }, + "right": { + "type": "ObjectExpression", + "start": 130, + "end": 930, + "loc": { + "start": { + "line": 5, + "column": 17 + }, + "end": { + "line": 44, + "column": 1 + } + }, + "properties": [ + { + "type": "Property", + "start": 136, + "end": 170, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 6, + "column": 38 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 136, + "end": 140, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 6, + "column": 8 + } + }, + "name": "path" + }, + "value": { + "type": "Literal", + "start": 142, + "end": 170, + "loc": { + "start": { + "line": 6, + "column": 10 + }, + "end": { + "line": 6, + "column": 38 + } + }, + "value": "/profile/:id/contributions", + "rawValue": "/profile/:id/contributions", + "raw": "'/profile/:id/contributions'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 273, + "end": 360, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 15, + "column": 5 + } + }, + "method": true, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 273, + "end": 285, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 16 + } + }, + "name": "getComponent", + "leadingComments": null + }, + "kind": "init", + "value": { + "type": "FunctionExpression", + "start": 285, + "end": 360, + "loc": { + "start": { + "line": 13, + "column": 16 + }, + "end": { + "line": 15, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 286, + "end": 294, + "loc": { + "start": { + "line": 13, + "column": 17 + }, + "end": { + "line": 13, + "column": 25 + } + }, + "name": "location" + }, + { + "type": "Identifier", + "start": 296, + "end": 298, + "loc": { + "start": { + "line": 13, + "column": 27 + }, + "end": { + "line": 13, + "column": 29 + } + }, + "name": "cb" + } + ], + "body": { + "type": "BlockStatement", + "start": 300, + "end": 360, + "loc": { + "start": { + "line": 13, + "column": 31 + }, + "end": { + "line": 15, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 310, + "end": 354, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 52 + } + }, + "expression": { + "type": "CallExpression", + "start": 310, + "end": 354, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 52 + } + }, + "callee": { + "type": "Identifier", + "start": 310, + "end": 312, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 10 + } + }, + "name": "cb" + }, + "arguments": [ + { + "type": "Literal", + "start": 313, + "end": 317, + "loc": { + "start": { + "line": 14, + "column": 11 + }, + "end": { + "line": 14, + "column": 15 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + { + "type": "MemberExpression", + "start": 319, + "end": 353, + "loc": { + "start": { + "line": 14, + "column": 17 + }, + "end": { + "line": 14, + "column": 51 + } + }, + "object": { + "type": "CallExpression", + "start": 319, + "end": 345, + "loc": { + "start": { + "line": 14, + "column": 17 + }, + "end": { + "line": 14, + "column": 43 + } + }, + "callee": { + "type": "Identifier", + "start": 319, + "end": 326, + "loc": { + "start": { + "line": 14, + "column": 17 + }, + "end": { + "line": 14, + "column": 24 + } + }, + "name": "require" + }, + "arguments": [ + { + "type": "Literal", + "start": 327, + "end": 344, + "loc": { + "start": { + "line": 14, + "column": 25 + }, + "end": { + "line": 14, + "column": 42 + } + }, + "value": "./Contributions", + "rawValue": "./Contributions", + "raw": "'./Contributions'" + } + ] + }, + "property": { + "type": "Identifier", + "start": 346, + "end": 353, + "loc": { + "start": { + "line": 14, + "column": 44 + }, + "end": { + "line": 14, + "column": 51 + } + }, + "name": "default" + }, + "computed": false + } + ] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * getComponent\n * @param location\n * @param cb {Function} callback\n ", + "start": 177, + "end": 268, + "loc": { + "start": { + "line": 8, + "column": 4 + }, + "end": { + "line": 12, + "column": 7 + } + }, + "range": [ + 177, + 268 + ] + } + ] + }, + { + "type": "Property", + "start": 464, + "end": 588, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 24, + "column": 5 + } + }, + "method": true, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 464, + "end": 477, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 17 + } + }, + "name": "getHeaderLeft", + "leadingComments": null + }, + "kind": "init", + "value": { + "type": "FunctionExpression", + "start": 477, + "end": 588, + "loc": { + "start": { + "line": 22, + "column": 17 + }, + "end": { + "line": 24, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 478, + "end": 486, + "loc": { + "start": { + "line": 22, + "column": 18 + }, + "end": { + "line": 22, + "column": 26 + } + }, + "name": "location" + }, + { + "type": "Identifier", + "start": 488, + "end": 490, + "loc": { + "start": { + "line": 22, + "column": 28 + }, + "end": { + "line": 22, + "column": 30 + } + }, + "name": "cb" + } + ], + "body": { + "type": "BlockStatement", + "start": 492, + "end": 588, + "loc": { + "start": { + "line": 22, + "column": 32 + }, + "end": { + "line": 24, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 502, + "end": 582, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 88 + } + }, + "expression": { + "type": "CallExpression", + "start": 502, + "end": 582, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 88 + } + }, + "callee": { + "type": "Identifier", + "start": 502, + "end": 504, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 10 + } + }, + "name": "cb" + }, + "arguments": [ + { + "type": "Literal", + "start": 505, + "end": 509, + "loc": { + "start": { + "line": 23, + "column": 11 + }, + "end": { + "line": 23, + "column": 15 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + { + "type": "JSXElement", + "start": 511, + "end": 581, + "loc": { + "start": { + "line": 23, + "column": 17 + }, + "end": { + "line": 23, + "column": 87 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 511, + "end": 581, + "loc": { + "start": { + "line": 23, + "column": 17 + }, + "end": { + "line": 23, + "column": 87 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 523, + "end": 544, + "loc": { + "start": { + "line": 23, + "column": 29 + }, + "end": { + "line": 23, + "column": 50 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 523, + "end": 528, + "loc": { + "start": { + "line": 23, + "column": 29 + }, + "end": { + "line": 23, + "column": 34 + } + }, + "name": "label" + }, + "value": { + "type": "Literal", + "start": 529, + "end": 544, + "loc": { + "start": { + "line": 23, + "column": 35 + }, + "end": { + "line": 23, + "column": 50 + } + }, + "value": "Contributions", + "rawValue": null, + "raw": "\"Contributions\"" + } + }, + { + "type": "JSXAttribute", + "start": 545, + "end": 579, + "loc": { + "start": { + "line": 23, + "column": 51 + }, + "end": { + "line": 23, + "column": 85 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 545, + "end": 547, + "loc": { + "start": { + "line": 23, + "column": 51 + }, + "end": { + "line": 23, + "column": 53 + } + }, + "name": "to" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 548, + "end": 579, + "loc": { + "start": { + "line": 23, + "column": 54 + }, + "end": { + "line": 23, + "column": 85 + } + }, + "expression": { + "type": "ArrowFunctionExpression", + "start": 549, + "end": 578, + "loc": { + "start": { + "line": 23, + "column": 55 + }, + "end": { + "line": 23, + "column": 84 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [], + "body": { + "type": "CallExpression", + "start": 555, + "end": 578, + "loc": { + "start": { + "line": 23, + "column": 61 + }, + "end": { + "line": 23, + "column": 84 + } + }, + "callee": { + "type": "MemberExpression", + "start": 555, + "end": 576, + "loc": { + "start": { + "line": 23, + "column": 61 + }, + "end": { + "line": 23, + "column": 82 + } + }, + "object": { + "type": "Identifier", + "start": 555, + "end": 569, + "loc": { + "start": { + "line": 23, + "column": 61 + }, + "end": { + "line": 23, + "column": 75 + } + }, + "name": "browserHistory" + }, + "property": { + "type": "Identifier", + "start": 570, + "end": 576, + "loc": { + "start": { + "line": 23, + "column": 76 + }, + "end": { + "line": 23, + "column": 82 + } + }, + "name": "goBack" + }, + "computed": false + }, + "arguments": [] + } + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 512, + "end": 522, + "loc": { + "start": { + "line": 23, + "column": 18 + }, + "end": { + "line": 23, + "column": 28 + } + }, + "name": "BackButton" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + ] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * getHeaderLeft\n * @param location\n * @param cb {Function} callback\n ", + "start": 367, + "end": 459, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 21, + "column": 7 + } + }, + "range": [ + 367, + 459 + ] + } + ] + }, + { + "type": "Property", + "start": 694, + "end": 758, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "method": true, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 694, + "end": 709, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 19 + } + }, + "name": "getHeaderMiddle", + "leadingComments": null + }, + "kind": "init", + "value": { + "type": "FunctionExpression", + "start": 709, + "end": 758, + "loc": { + "start": { + "line": 31, + "column": 19 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 710, + "end": 718, + "loc": { + "start": { + "line": 31, + "column": 20 + }, + "end": { + "line": 31, + "column": 28 + } + }, + "name": "location" + }, + { + "type": "Identifier", + "start": 720, + "end": 722, + "loc": { + "start": { + "line": 31, + "column": 30 + }, + "end": { + "line": 31, + "column": 32 + } + }, + "name": "cb" + } + ], + "body": { + "type": "BlockStatement", + "start": 724, + "end": 758, + "loc": { + "start": { + "line": 31, + "column": 34 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 734, + "end": 752, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 26 + } + }, + "expression": { + "type": "CallExpression", + "start": 734, + "end": 752, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 26 + } + }, + "callee": { + "type": "Identifier", + "start": 734, + "end": 736, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 10 + } + }, + "name": "cb" + }, + "arguments": [ + { + "type": "Literal", + "start": 737, + "end": 741, + "loc": { + "start": { + "line": 32, + "column": 11 + }, + "end": { + "line": 32, + "column": 15 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + { + "type": "JSXElement", + "start": 743, + "end": 751, + "loc": { + "start": { + "line": 32, + "column": 17 + }, + "end": { + "line": 32, + "column": 25 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 743, + "end": 751, + "loc": { + "start": { + "line": 32, + "column": 17 + }, + "end": { + "line": 32, + "column": 25 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 744, + "end": 748, + "loc": { + "start": { + "line": 32, + "column": 18 + }, + "end": { + "line": 32, + "column": 22 + } + }, + "name": "span" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + ] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * getHeaderMiddle\n * @param location\n * @param cb {Function} callback\n ", + "start": 595, + "end": 689, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 30, + "column": 7 + } + }, + "range": [ + 595, + 689 + ] + } + ] + }, + { + "type": "Property", + "start": 863, + "end": 926, + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 42, + "column": 5 + } + }, + "method": true, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 863, + "end": 877, + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 40, + "column": 18 + } + }, + "name": "getHeaderRight", + "leadingComments": null + }, + "kind": "init", + "value": { + "type": "FunctionExpression", + "start": 877, + "end": 926, + "loc": { + "start": { + "line": 40, + "column": 18 + }, + "end": { + "line": 42, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 878, + "end": 886, + "loc": { + "start": { + "line": 40, + "column": 19 + }, + "end": { + "line": 40, + "column": 27 + } + }, + "name": "location" + }, + { + "type": "Identifier", + "start": 888, + "end": 890, + "loc": { + "start": { + "line": 40, + "column": 29 + }, + "end": { + "line": 40, + "column": 31 + } + }, + "name": "cb" + } + ], + "body": { + "type": "BlockStatement", + "start": 892, + "end": 926, + "loc": { + "start": { + "line": 40, + "column": 33 + }, + "end": { + "line": 42, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 902, + "end": 920, + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 41, + "column": 26 + } + }, + "expression": { + "type": "CallExpression", + "start": 902, + "end": 920, + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 41, + "column": 26 + } + }, + "callee": { + "type": "Identifier", + "start": 902, + "end": 904, + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 41, + "column": 10 + } + }, + "name": "cb" + }, + "arguments": [ + { + "type": "Literal", + "start": 905, + "end": 909, + "loc": { + "start": { + "line": 41, + "column": 11 + }, + "end": { + "line": 41, + "column": 15 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + { + "type": "JSXElement", + "start": 911, + "end": 919, + "loc": { + "start": { + "line": 41, + "column": 17 + }, + "end": { + "line": 41, + "column": 25 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 911, + "end": 919, + "loc": { + "start": { + "line": 41, + "column": 17 + }, + "end": { + "line": 41, + "column": 25 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 912, + "end": 916, + "loc": { + "start": { + "line": 41, + "column": 18 + }, + "end": { + "line": 41, + "column": 22 + } + }, + "name": "span" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + ] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * getHeaderRight\n * @param location\n * @param cb {Function} callback\n ", + "start": 765, + "end": 858, + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 39, + "column": 7 + } + }, + "range": [ + 765, + 858 + ] + } + ] + } + ] + } + } + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/routes/Explore/Explore.js.json b/app/docs/ast/source/routes/Explore/Explore.js.json new file mode 100644 index 0000000..6c1be58 --- /dev/null +++ b/app/docs/ast/source/routes/Explore/Explore.js.json @@ -0,0 +1,4302 @@ +{ + "type": "Program", + "start": 0, + "end": 2586, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 79, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + }, + { + "type": "ImportSpecifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "imported": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + }, + "local": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 33, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 33 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ImportDeclaration", + "start": 41, + "end": 78, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 37 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 50, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "imported": { + "type": "Identifier", + "start": 50, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "name": "connect" + }, + "local": { + "type": "Identifier", + "start": 50, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "name": "connect" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 65, + "end": 78, + "loc": { + "start": { + "line": 2, + "column": 24 + }, + "end": { + "line": 2, + "column": 37 + } + }, + "value": "react-redux", + "rawValue": "react-redux", + "raw": "'react-redux'" + } + }, + { + "type": "ImportDeclaration", + "start": 79, + "end": 114, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 35 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 88, + "end": 92, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 13 + } + }, + "imported": { + "type": "Identifier", + "start": 88, + "end": 92, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 13 + } + }, + "name": "Link" + }, + "local": { + "type": "Identifier", + "start": 88, + "end": 92, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 13 + } + }, + "name": "Link" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 100, + "end": 114, + "loc": { + "start": { + "line": 3, + "column": 21 + }, + "end": { + "line": 3, + "column": 35 + } + }, + "value": "react-router", + "rawValue": "react-router", + "raw": "'react-router'" + } + }, + { + "type": "ImportDeclaration", + "start": 115, + "end": 142, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 27 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 122, + "end": 128, + "loc": { + "start": { + "line": 4, + "column": 7 + }, + "end": { + "line": 4, + "column": 13 + } + }, + "local": { + "type": "Identifier", + "start": 122, + "end": 128, + "loc": { + "start": { + "line": 4, + "column": 7 + }, + "end": { + "line": 4, + "column": 13 + } + }, + "name": "config" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 134, + "end": 142, + "loc": { + "start": { + "line": 4, + "column": 19 + }, + "end": { + "line": 4, + "column": 27 + } + }, + "value": "config", + "rawValue": "config", + "raw": "'config'" + } + }, + { + "type": "ImportDeclaration", + "start": 144, + "end": 199, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 8, + "column": 16 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 157, + "end": 182, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 7, + "column": 29 + } + }, + "imported": { + "type": "Identifier", + "start": 157, + "end": 164, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 7, + "column": 11 + } + }, + "name": "Explore" + }, + "local": { + "type": "Identifier", + "start": 168, + "end": 182, + "loc": { + "start": { + "line": 7, + "column": 15 + }, + "end": { + "line": 7, + "column": 29 + } + }, + "name": "ExploreActions" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 190, + "end": 199, + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 16 + } + }, + "value": "actions", + "rawValue": "actions", + "raw": "'actions'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Explore\n * '/explore'\n * React Route - Documentation: https://github.com/reactjs/react-router/tree/master/docs\n ", + "start": 202, + "end": 323, + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 15, + "column": 3 + } + }, + "range": [ + 202, + 323 + ] + } + ] + }, + { + "type": "ClassDeclaration", + "start": 324, + "end": 2302, + "loc": { + "start": { + "line": 16, + "column": 0 + }, + "end": { + "line": 69, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 330, + "end": 337, + "loc": { + "start": { + "line": 16, + "column": 6 + }, + "end": { + "line": 16, + "column": 13 + } + }, + "name": "Explore", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 346, + "end": 355, + "loc": { + "start": { + "line": 16, + "column": 22 + }, + "end": { + "line": 16, + "column": 31 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 356, + "end": 2302, + "loc": { + "start": { + "line": 16, + "column": 32 + }, + "end": { + "line": 69, + "column": 1 + } + }, + "body": [ + { + "type": "MethodDefinition", + "start": 404, + "end": 482, + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 23, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 404, + "end": 421, + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 21 + } + }, + "name": "componentDidMount", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 421, + "end": 482, + "loc": { + "start": { + "line": 21, + "column": 21 + }, + "end": { + "line": 23, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 424, + "end": 482, + "loc": { + "start": { + "line": 21, + "column": 24 + }, + "end": { + "line": 23, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 434, + "end": 476, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 50 + } + }, + "expression": { + "type": "CallExpression", + "start": 434, + "end": 476, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 50 + } + }, + "callee": { + "type": "MemberExpression", + "start": 434, + "end": 453, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 27 + } + }, + "object": { + "type": "MemberExpression", + "start": 434, + "end": 444, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 18 + } + }, + "object": { + "type": "ThisExpression", + "start": 434, + "end": 438, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 439, + "end": 444, + "loc": { + "start": { + "line": 22, + "column": 13 + }, + "end": { + "line": 22, + "column": 18 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 445, + "end": 453, + "loc": { + "start": { + "line": 22, + "column": 19 + }, + "end": { + "line": 22, + "column": 27 + } + }, + "name": "dispatch" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 454, + "end": 475, + "loc": { + "start": { + "line": 22, + "column": 28 + }, + "end": { + "line": 22, + "column": 49 + } + }, + "callee": { + "type": "MemberExpression", + "start": 454, + "end": 473, + "loc": { + "start": { + "line": 22, + "column": 28 + }, + "end": { + "line": 22, + "column": 47 + } + }, + "object": { + "type": "Identifier", + "start": 454, + "end": 468, + "loc": { + "start": { + "line": 22, + "column": 28 + }, + "end": { + "line": 22, + "column": 42 + } + }, + "name": "ExploreActions" + }, + "property": { + "type": "Identifier", + "start": 469, + "end": 473, + "loc": { + "start": { + "line": 22, + "column": 43 + }, + "end": { + "line": 22, + "column": 47 + } + }, + "name": "load" + }, + "computed": false + }, + "arguments": [] + } + ] + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * componentDidMount\n ", + "start": 363, + "end": 399, + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 20, + "column": 7 + } + }, + "range": [ + 363, + 399 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 488, + "end": 536, + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 28, + "column": 7 + } + }, + "range": [ + 488, + 536 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 541, + "end": 2299, + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 67, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 541, + "end": 547, + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 547, + "end": 2299, + "loc": { + "start": { + "line": 29, + "column": 10 + }, + "end": { + "line": 67, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 550, + "end": 2299, + "loc": { + "start": { + "line": 29, + "column": 13 + }, + "end": { + "line": 67, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 560, + "end": 2293, + "loc": { + "start": { + "line": 30, + "column": 8 + }, + "end": { + "line": 66, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 581, + "end": 2283, + "loc": { + "start": { + "line": 31, + "column": 12 + }, + "end": { + "line": 65, + "column": 18 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 581, + "end": 603, + "loc": { + "start": { + "line": 31, + "column": 12 + }, + "end": { + "line": 31, + "column": 34 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 586, + "end": 602, + "loc": { + "start": { + "line": 31, + "column": 17 + }, + "end": { + "line": 31, + "column": 33 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 586, + "end": 595, + "loc": { + "start": { + "line": 31, + "column": 17 + }, + "end": { + "line": 31, + "column": 26 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 596, + "end": 602, + "loc": { + "start": { + "line": 31, + "column": 27 + }, + "end": { + "line": 31, + "column": 33 + } + }, + "value": "page", + "rawValue": null, + "raw": "\"page\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 582, + "end": 585, + "loc": { + "start": { + "line": 31, + "column": 13 + }, + "end": { + "line": 31, + "column": 16 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2277, + "end": 2283, + "loc": { + "start": { + "line": 65, + "column": 12 + }, + "end": { + "line": 65, + "column": 18 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2279, + "end": 2282, + "loc": { + "start": { + "line": 65, + "column": 14 + }, + "end": { + "line": 65, + "column": 17 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 603, + "end": 620, + "loc": { + "start": { + "line": 31, + "column": 34 + }, + "end": { + "line": 32, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 620, + "end": 779, + "loc": { + "start": { + "line": 32, + "column": 16 + }, + "end": { + "line": 36, + "column": 23 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 620, + "end": 643, + "loc": { + "start": { + "line": 32, + "column": 16 + }, + "end": { + "line": 32, + "column": 39 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 626, + "end": 642, + "loc": { + "start": { + "line": 32, + "column": 22 + }, + "end": { + "line": 32, + "column": 38 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 626, + "end": 628, + "loc": { + "start": { + "line": 32, + "column": 22 + }, + "end": { + "line": 32, + "column": 24 + } + }, + "name": "to" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 629, + "end": 642, + "loc": { + "start": { + "line": 32, + "column": 25 + }, + "end": { + "line": 32, + "column": 38 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 630, + "end": 641, + "loc": { + "start": { + "line": 32, + "column": 26 + }, + "end": { + "line": 32, + "column": 37 + } + }, + "expressions": [], + "quasis": [ + { + "type": "TemplateElement", + "start": 631, + "end": 640, + "loc": { + "start": { + "line": 32, + "column": 27 + }, + "end": { + "line": 32, + "column": 36 + } + }, + "value": { + "raw": "/trending", + "cooked": "/trending" + }, + "tail": true + } + ] + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 621, + "end": 625, + "loc": { + "start": { + "line": 32, + "column": 17 + }, + "end": { + "line": 32, + "column": 21 + } + }, + "name": "Link" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 772, + "end": 779, + "loc": { + "start": { + "line": 36, + "column": 16 + }, + "end": { + "line": 36, + "column": 23 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 774, + "end": 778, + "loc": { + "start": { + "line": 36, + "column": 18 + }, + "end": { + "line": 36, + "column": 22 + } + }, + "name": "Link" + } + }, + "children": [ + { + "type": "Literal", + "start": 643, + "end": 664, + "loc": { + "start": { + "line": 32, + "column": 39 + }, + "end": { + "line": 33, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 664, + "end": 755, + "loc": { + "start": { + "line": 33, + "column": 20 + }, + "end": { + "line": 35, + "column": 26 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 664, + "end": 689, + "loc": { + "start": { + "line": 33, + "column": 20 + }, + "end": { + "line": 33, + "column": 45 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 669, + "end": 688, + "loc": { + "start": { + "line": 33, + "column": 25 + }, + "end": { + "line": 33, + "column": 44 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 669, + "end": 678, + "loc": { + "start": { + "line": 33, + "column": 25 + }, + "end": { + "line": 33, + "column": 34 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 679, + "end": 688, + "loc": { + "start": { + "line": 33, + "column": 35 + }, + "end": { + "line": 33, + "column": 44 + } + }, + "value": "see-all", + "rawValue": null, + "raw": "\"see-all\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 665, + "end": 668, + "loc": { + "start": { + "line": 33, + "column": 21 + }, + "end": { + "line": 33, + "column": 24 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 749, + "end": 755, + "loc": { + "start": { + "line": 35, + "column": 20 + }, + "end": { + "line": 35, + "column": 26 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 751, + "end": 754, + "loc": { + "start": { + "line": 35, + "column": 22 + }, + "end": { + "line": 35, + "column": 25 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 689, + "end": 749, + "loc": { + "start": { + "line": 33, + "column": 45 + }, + "end": { + "line": 35, + "column": 20 + } + }, + "value": "\n See All≫\n ", + "rawValue": null, + "raw": "\n See All≫\n " + } + ] + }, + { + "type": "Literal", + "start": 755, + "end": 772, + "loc": { + "start": { + "line": 35, + "column": 26 + }, + "end": { + "line": 36, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 779, + "end": 796, + "loc": { + "start": { + "line": 36, + "column": 23 + }, + "end": { + "line": 37, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 796, + "end": 1602, + "loc": { + "start": { + "line": 37, + "column": 16 + }, + "end": { + "line": 51, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 796, + "end": 821, + "loc": { + "start": { + "line": 37, + "column": 16 + }, + "end": { + "line": 37, + "column": 41 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 801, + "end": 820, + "loc": { + "start": { + "line": 37, + "column": 21 + }, + "end": { + "line": 37, + "column": 40 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 801, + "end": 810, + "loc": { + "start": { + "line": 37, + "column": 21 + }, + "end": { + "line": 37, + "column": 30 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 811, + "end": 820, + "loc": { + "start": { + "line": 37, + "column": 31 + }, + "end": { + "line": 37, + "column": 40 + } + }, + "value": "explore", + "rawValue": null, + "raw": "\"explore\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 797, + "end": 800, + "loc": { + "start": { + "line": 37, + "column": 17 + }, + "end": { + "line": 37, + "column": 20 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1596, + "end": 1602, + "loc": { + "start": { + "line": 51, + "column": 16 + }, + "end": { + "line": 51, + "column": 22 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1598, + "end": 1601, + "loc": { + "start": { + "line": 51, + "column": 18 + }, + "end": { + "line": 51, + "column": 21 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 821, + "end": 842, + "loc": { + "start": { + "line": 37, + "column": 41 + }, + "end": { + "line": 38, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 842, + "end": 859, + "loc": { + "start": { + "line": 38, + "column": 20 + }, + "end": { + "line": 38, + "column": 37 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 842, + "end": 846, + "loc": { + "start": { + "line": 38, + "column": 20 + }, + "end": { + "line": 38, + "column": 24 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 843, + "end": 845, + "loc": { + "start": { + "line": 38, + "column": 21 + }, + "end": { + "line": 38, + "column": 23 + } + }, + "name": "h1" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 854, + "end": 859, + "loc": { + "start": { + "line": 38, + "column": 32 + }, + "end": { + "line": 38, + "column": 37 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 856, + "end": 858, + "loc": { + "start": { + "line": 38, + "column": 34 + }, + "end": { + "line": 38, + "column": 36 + } + }, + "name": "h1" + } + }, + "children": [ + { + "type": "Literal", + "start": 846, + "end": 854, + "loc": { + "start": { + "line": 38, + "column": 24 + }, + "end": { + "line": 38, + "column": 32 + } + }, + "value": "Trending", + "rawValue": null, + "raw": "Trending" + } + ] + }, + { + "type": "Literal", + "start": 859, + "end": 880, + "loc": { + "start": { + "line": 38, + "column": 37 + }, + "end": { + "line": 39, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 880, + "end": 1099, + "loc": { + "start": { + "line": 39, + "column": 20 + }, + "end": { + "line": 42, + "column": 26 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 880, + "end": 885, + "loc": { + "start": { + "line": 39, + "column": 20 + }, + "end": { + "line": 39, + "column": 25 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 881, + "end": 884, + "loc": { + "start": { + "line": 39, + "column": 21 + }, + "end": { + "line": 39, + "column": 24 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1093, + "end": 1099, + "loc": { + "start": { + "line": 42, + "column": 20 + }, + "end": { + "line": 42, + "column": 26 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1095, + "end": 1098, + "loc": { + "start": { + "line": 42, + "column": 22 + }, + "end": { + "line": 42, + "column": 25 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 885, + "end": 910, + "loc": { + "start": { + "line": 39, + "column": 25 + }, + "end": { + "line": 40, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 910, + "end": 1072, + "loc": { + "start": { + "line": 40, + "column": 24 + }, + "end": { + "line": 41, + "column": 157 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 910, + "end": 1072, + "loc": { + "start": { + "line": 40, + "column": 24 + }, + "end": { + "line": 41, + "column": 157 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 943, + "end": 1070, + "loc": { + "start": { + "line": 41, + "column": 28 + }, + "end": { + "line": 41, + "column": 155 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 943, + "end": 946, + "loc": { + "start": { + "line": 41, + "column": 28 + }, + "end": { + "line": 41, + "column": 31 + } + }, + "name": "src" + }, + "value": { + "type": "Literal", + "start": 947, + "end": 1070, + "loc": { + "start": { + "line": 41, + "column": 32 + }, + "end": { + "line": 41, + "column": 155 + } + }, + "value": "//react-example-app.imgix.net/defaults/tumblr_ny9verGf7m1qzwmsso1_1280.jpg?auto=enhance&w=410&h=310&fit=crop&fm=png&dpr=2", + "rawValue": null, + "raw": "\"//react-example-app.imgix.net/defaults/tumblr_ny9verGf7m1qzwmsso1_1280.jpg?auto=enhance&w=410&h=310&fit=crop&fm=png&dpr=2\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 911, + "end": 914, + "loc": { + "start": { + "line": 40, + "column": 25 + }, + "end": { + "line": 40, + "column": 28 + } + }, + "name": "img" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 1072, + "end": 1093, + "loc": { + "start": { + "line": 41, + "column": 157 + }, + "end": { + "line": 42, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 1099, + "end": 1120, + "loc": { + "start": { + "line": 42, + "column": 26 + }, + "end": { + "line": 43, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1120, + "end": 1339, + "loc": { + "start": { + "line": 43, + "column": 20 + }, + "end": { + "line": 46, + "column": 26 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1120, + "end": 1125, + "loc": { + "start": { + "line": 43, + "column": 20 + }, + "end": { + "line": 43, + "column": 25 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 1121, + "end": 1124, + "loc": { + "start": { + "line": 43, + "column": 21 + }, + "end": { + "line": 43, + "column": 24 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1333, + "end": 1339, + "loc": { + "start": { + "line": 46, + "column": 20 + }, + "end": { + "line": 46, + "column": 26 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1335, + "end": 1338, + "loc": { + "start": { + "line": 46, + "column": 22 + }, + "end": { + "line": 46, + "column": 25 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 1125, + "end": 1150, + "loc": { + "start": { + "line": 43, + "column": 25 + }, + "end": { + "line": 44, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1150, + "end": 1312, + "loc": { + "start": { + "line": 44, + "column": 24 + }, + "end": { + "line": 45, + "column": 157 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1150, + "end": 1312, + "loc": { + "start": { + "line": 44, + "column": 24 + }, + "end": { + "line": 45, + "column": 157 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1183, + "end": 1310, + "loc": { + "start": { + "line": 45, + "column": 28 + }, + "end": { + "line": 45, + "column": 155 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1183, + "end": 1186, + "loc": { + "start": { + "line": 45, + "column": 28 + }, + "end": { + "line": 45, + "column": 31 + } + }, + "name": "src" + }, + "value": { + "type": "Literal", + "start": 1187, + "end": 1310, + "loc": { + "start": { + "line": 45, + "column": 32 + }, + "end": { + "line": 45, + "column": 155 + } + }, + "value": "//react-example-app.imgix.net/defaults/tumblr_nxiqjsDFTK1qzwmsso1_1280.jpg?auto=enhance&w=410&h=310&fit=crop&fm=png&dpr=2", + "rawValue": null, + "raw": "\"//react-example-app.imgix.net/defaults/tumblr_nxiqjsDFTK1qzwmsso1_1280.jpg?auto=enhance&w=410&h=310&fit=crop&fm=png&dpr=2\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1151, + "end": 1154, + "loc": { + "start": { + "line": 44, + "column": 25 + }, + "end": { + "line": 44, + "column": 28 + } + }, + "name": "img" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 1312, + "end": 1333, + "loc": { + "start": { + "line": 45, + "column": 157 + }, + "end": { + "line": 46, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 1339, + "end": 1360, + "loc": { + "start": { + "line": 46, + "column": 26 + }, + "end": { + "line": 47, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1360, + "end": 1579, + "loc": { + "start": { + "line": 47, + "column": 20 + }, + "end": { + "line": 50, + "column": 26 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1360, + "end": 1365, + "loc": { + "start": { + "line": 47, + "column": 20 + }, + "end": { + "line": 47, + "column": 25 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 1361, + "end": 1364, + "loc": { + "start": { + "line": 47, + "column": 21 + }, + "end": { + "line": 47, + "column": 24 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1573, + "end": 1579, + "loc": { + "start": { + "line": 50, + "column": 20 + }, + "end": { + "line": 50, + "column": 26 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1575, + "end": 1578, + "loc": { + "start": { + "line": 50, + "column": 22 + }, + "end": { + "line": 50, + "column": 25 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 1365, + "end": 1390, + "loc": { + "start": { + "line": 47, + "column": 25 + }, + "end": { + "line": 48, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1390, + "end": 1552, + "loc": { + "start": { + "line": 48, + "column": 24 + }, + "end": { + "line": 49, + "column": 157 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1390, + "end": 1552, + "loc": { + "start": { + "line": 48, + "column": 24 + }, + "end": { + "line": 49, + "column": 157 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1423, + "end": 1550, + "loc": { + "start": { + "line": 49, + "column": 28 + }, + "end": { + "line": 49, + "column": 155 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1423, + "end": 1426, + "loc": { + "start": { + "line": 49, + "column": 28 + }, + "end": { + "line": 49, + "column": 31 + } + }, + "name": "src" + }, + "value": { + "type": "Literal", + "start": 1427, + "end": 1550, + "loc": { + "start": { + "line": 49, + "column": 32 + }, + "end": { + "line": 49, + "column": 155 + } + }, + "value": "//react-example-app.imgix.net/defaults/tumblr_nylyc2IsOi1qzwmsso1_1280.jpg?auto=enhance&w=410&h=310&fit=crop&fm=png&dpr=2", + "rawValue": null, + "raw": "\"//react-example-app.imgix.net/defaults/tumblr_nylyc2IsOi1qzwmsso1_1280.jpg?auto=enhance&w=410&h=310&fit=crop&fm=png&dpr=2\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1391, + "end": 1394, + "loc": { + "start": { + "line": 48, + "column": 25 + }, + "end": { + "line": 48, + "column": 28 + } + }, + "name": "img" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 1552, + "end": 1573, + "loc": { + "start": { + "line": 49, + "column": 157 + }, + "end": { + "line": 50, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 1579, + "end": 1596, + "loc": { + "start": { + "line": 50, + "column": 26 + }, + "end": { + "line": 51, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 1602, + "end": 1619, + "loc": { + "start": { + "line": 51, + "column": 22 + }, + "end": { + "line": 52, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1619, + "end": 2264, + "loc": { + "start": { + "line": 52, + "column": 16 + }, + "end": { + "line": 64, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1619, + "end": 1649, + "loc": { + "start": { + "line": 52, + "column": 16 + }, + "end": { + "line": 52, + "column": 46 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1624, + "end": 1648, + "loc": { + "start": { + "line": 52, + "column": 21 + }, + "end": { + "line": 52, + "column": 45 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1624, + "end": 1633, + "loc": { + "start": { + "line": 52, + "column": 21 + }, + "end": { + "line": 52, + "column": 30 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 1634, + "end": 1648, + "loc": { + "start": { + "line": 52, + "column": 31 + }, + "end": { + "line": 52, + "column": 45 + } + }, + "value": "explore-grid", + "rawValue": null, + "raw": "\"explore-grid\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1620, + "end": 1623, + "loc": { + "start": { + "line": 52, + "column": 17 + }, + "end": { + "line": 52, + "column": 20 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2258, + "end": 2264, + "loc": { + "start": { + "line": 64, + "column": 16 + }, + "end": { + "line": 64, + "column": 22 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2260, + "end": 2263, + "loc": { + "start": { + "line": 64, + "column": 18 + }, + "end": { + "line": 64, + "column": 21 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 1649, + "end": 1670, + "loc": { + "start": { + "line": 52, + "column": 46 + }, + "end": { + "line": 53, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1670, + "end": 1686, + "loc": { + "start": { + "line": 53, + "column": 20 + }, + "end": { + "line": 53, + "column": 36 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1670, + "end": 1674, + "loc": { + "start": { + "line": 53, + "column": 20 + }, + "end": { + "line": 53, + "column": 24 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 1671, + "end": 1673, + "loc": { + "start": { + "line": 53, + "column": 21 + }, + "end": { + "line": 53, + "column": 23 + } + }, + "name": "h2" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1681, + "end": 1686, + "loc": { + "start": { + "line": 53, + "column": 31 + }, + "end": { + "line": 53, + "column": 36 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1683, + "end": 1685, + "loc": { + "start": { + "line": 53, + "column": 33 + }, + "end": { + "line": 53, + "column": 35 + } + }, + "name": "h2" + } + }, + "children": [ + { + "type": "Literal", + "start": 1674, + "end": 1681, + "loc": { + "start": { + "line": 53, + "column": 24 + }, + "end": { + "line": 53, + "column": 31 + } + }, + "value": "Explore", + "rawValue": null, + "raw": "Explore" + } + ] + }, + { + "type": "Literal", + "start": 1686, + "end": 1707, + "loc": { + "start": { + "line": 53, + "column": 36 + }, + "end": { + "line": 54, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1707, + "end": 2241, + "loc": { + "start": { + "line": 54, + "column": 20 + }, + "end": { + "line": 63, + "column": 26 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1707, + "end": 1729, + "loc": { + "start": { + "line": 54, + "column": 20 + }, + "end": { + "line": 54, + "column": 42 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1712, + "end": 1728, + "loc": { + "start": { + "line": 54, + "column": 25 + }, + "end": { + "line": 54, + "column": 41 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1712, + "end": 1721, + "loc": { + "start": { + "line": 54, + "column": 25 + }, + "end": { + "line": 54, + "column": 34 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 1722, + "end": 1728, + "loc": { + "start": { + "line": 54, + "column": 35 + }, + "end": { + "line": 54, + "column": 41 + } + }, + "value": "grid", + "rawValue": null, + "raw": "\"grid\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1708, + "end": 1711, + "loc": { + "start": { + "line": 54, + "column": 21 + }, + "end": { + "line": 54, + "column": 24 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2235, + "end": 2241, + "loc": { + "start": { + "line": 63, + "column": 20 + }, + "end": { + "line": 63, + "column": 26 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2237, + "end": 2240, + "loc": { + "start": { + "line": 63, + "column": 22 + }, + "end": { + "line": 63, + "column": 25 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 1729, + "end": 1754, + "loc": { + "start": { + "line": 54, + "column": 42 + }, + "end": { + "line": 55, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 1754, + "end": 2214, + "loc": { + "start": { + "line": 55, + "column": 24 + }, + "end": { + "line": 62, + "column": 26 + } + }, + "expression": { + "type": "CallExpression", + "start": 1755, + "end": 2213, + "loc": { + "start": { + "line": 55, + "column": 25 + }, + "end": { + "line": 62, + "column": 25 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1755, + "end": 1777, + "loc": { + "start": { + "line": 55, + "column": 25 + }, + "end": { + "line": 55, + "column": 47 + } + }, + "object": { + "type": "MemberExpression", + "start": 1755, + "end": 1773, + "loc": { + "start": { + "line": 55, + "column": 25 + }, + "end": { + "line": 55, + "column": 43 + } + }, + "object": { + "type": "MemberExpression", + "start": 1755, + "end": 1765, + "loc": { + "start": { + "line": 55, + "column": 25 + }, + "end": { + "line": 55, + "column": 35 + } + }, + "object": { + "type": "ThisExpression", + "start": 1755, + "end": 1759, + "loc": { + "start": { + "line": 55, + "column": 25 + }, + "end": { + "line": 55, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "start": 1760, + "end": 1765, + "loc": { + "start": { + "line": 55, + "column": 30 + }, + "end": { + "line": 55, + "column": 35 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1766, + "end": 1773, + "loc": { + "start": { + "line": 55, + "column": 36 + }, + "end": { + "line": 55, + "column": 43 + } + }, + "name": "explore" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1774, + "end": 1777, + "loc": { + "start": { + "line": 55, + "column": 44 + }, + "end": { + "line": 55, + "column": 47 + } + }, + "name": "map" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 1778, + "end": 2187, + "loc": { + "start": { + "line": 55, + "column": 48 + }, + "end": { + "line": 61, + "column": 34 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1778, + "end": 1782, + "loc": { + "start": { + "line": 55, + "column": 48 + }, + "end": { + "line": 55, + "column": 52 + } + }, + "name": "item" + } + ], + "body": { + "type": "JSXElement", + "start": 1814, + "end": 2187, + "loc": { + "start": { + "line": 56, + "column": 28 + }, + "end": { + "line": 61, + "column": 34 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1814, + "end": 1868, + "loc": { + "start": { + "line": 56, + "column": 28 + }, + "end": { + "line": 56, + "column": 82 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1819, + "end": 1840, + "loc": { + "start": { + "line": 56, + "column": 33 + }, + "end": { + "line": 56, + "column": 54 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1819, + "end": 1828, + "loc": { + "start": { + "line": 56, + "column": 33 + }, + "end": { + "line": 56, + "column": 42 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 1829, + "end": 1840, + "loc": { + "start": { + "line": 56, + "column": 43 + }, + "end": { + "line": 56, + "column": 54 + } + }, + "value": "grid-cell", + "rawValue": null, + "raw": "\"grid-cell\"" + } + }, + { + "type": "JSXAttribute", + "start": 1841, + "end": 1867, + "loc": { + "start": { + "line": 56, + "column": 55 + }, + "end": { + "line": 56, + "column": 81 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1841, + "end": 1844, + "loc": { + "start": { + "line": 56, + "column": 55 + }, + "end": { + "line": 56, + "column": 58 + } + }, + "name": "key" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 1845, + "end": 1867, + "loc": { + "start": { + "line": 56, + "column": 59 + }, + "end": { + "line": 56, + "column": 81 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 1846, + "end": 1866, + "loc": { + "start": { + "line": 56, + "column": 60 + }, + "end": { + "line": 56, + "column": 80 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 1857, + "end": 1864, + "loc": { + "start": { + "line": 56, + "column": 71 + }, + "end": { + "line": 56, + "column": 78 + } + }, + "object": { + "type": "Identifier", + "start": 1857, + "end": 1861, + "loc": { + "start": { + "line": 56, + "column": 71 + }, + "end": { + "line": 56, + "column": 75 + } + }, + "name": "item" + }, + "property": { + "type": "Identifier", + "start": 1862, + "end": 1864, + "loc": { + "start": { + "line": 56, + "column": 76 + }, + "end": { + "line": 56, + "column": 78 + } + }, + "name": "id" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 1847, + "end": 1855, + "loc": { + "start": { + "line": 56, + "column": 61 + }, + "end": { + "line": 56, + "column": 69 + } + }, + "value": { + "raw": "explore-", + "cooked": "explore-" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 1865, + "end": 1865, + "loc": { + "start": { + "line": 56, + "column": 79 + }, + "end": { + "line": 56, + "column": 79 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1815, + "end": 1818, + "loc": { + "start": { + "line": 56, + "column": 29 + }, + "end": { + "line": 56, + "column": 32 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2181, + "end": 2187, + "loc": { + "start": { + "line": 61, + "column": 28 + }, + "end": { + "line": 61, + "column": 34 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2183, + "end": 2186, + "loc": { + "start": { + "line": 61, + "column": 30 + }, + "end": { + "line": 61, + "column": 33 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 1868, + "end": 1901, + "loc": { + "start": { + "line": 56, + "column": 82 + }, + "end": { + "line": 57, + "column": 32 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1901, + "end": 2152, + "loc": { + "start": { + "line": 57, + "column": 32 + }, + "end": { + "line": 60, + "column": 39 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1901, + "end": 1933, + "loc": { + "start": { + "line": 57, + "column": 32 + }, + "end": { + "line": 57, + "column": 64 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1907, + "end": 1932, + "loc": { + "start": { + "line": 57, + "column": 38 + }, + "end": { + "line": 57, + "column": 63 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1907, + "end": 1909, + "loc": { + "start": { + "line": 57, + "column": 38 + }, + "end": { + "line": 57, + "column": 40 + } + }, + "name": "to" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 1910, + "end": 1932, + "loc": { + "start": { + "line": 57, + "column": 41 + }, + "end": { + "line": 57, + "column": 63 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 1911, + "end": 1931, + "loc": { + "start": { + "line": 57, + "column": 42 + }, + "end": { + "line": 57, + "column": 62 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 1922, + "end": 1929, + "loc": { + "start": { + "line": 57, + "column": 53 + }, + "end": { + "line": 57, + "column": 60 + } + }, + "object": { + "type": "Identifier", + "start": 1922, + "end": 1926, + "loc": { + "start": { + "line": 57, + "column": 53 + }, + "end": { + "line": 57, + "column": 57 + } + }, + "name": "item" + }, + "property": { + "type": "Identifier", + "start": 1927, + "end": 1929, + "loc": { + "start": { + "line": 57, + "column": 58 + }, + "end": { + "line": 57, + "column": 60 + } + }, + "name": "id" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 1912, + "end": 1920, + "loc": { + "start": { + "line": 57, + "column": 43 + }, + "end": { + "line": 57, + "column": 51 + } + }, + "value": { + "raw": "/photos/", + "cooked": "/photos/" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 1930, + "end": 1930, + "loc": { + "start": { + "line": 57, + "column": 61 + }, + "end": { + "line": 57, + "column": 61 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1902, + "end": 1906, + "loc": { + "start": { + "line": 57, + "column": 33 + }, + "end": { + "line": 57, + "column": 37 + } + }, + "name": "Link" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2145, + "end": 2152, + "loc": { + "start": { + "line": 60, + "column": 32 + }, + "end": { + "line": 60, + "column": 39 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2147, + "end": 2151, + "loc": { + "start": { + "line": 60, + "column": 34 + }, + "end": { + "line": 60, + "column": 38 + } + }, + "name": "Link" + } + }, + "children": [ + { + "type": "Literal", + "start": 1933, + "end": 1970, + "loc": { + "start": { + "line": 57, + "column": 64 + }, + "end": { + "line": 58, + "column": 36 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1970, + "end": 2112, + "loc": { + "start": { + "line": 58, + "column": 36 + }, + "end": { + "line": 59, + "column": 137 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1970, + "end": 2112, + "loc": { + "start": { + "line": 58, + "column": 36 + }, + "end": { + "line": 59, + "column": 137 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2015, + "end": 2110, + "loc": { + "start": { + "line": 59, + "column": 40 + }, + "end": { + "line": 59, + "column": 135 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2015, + "end": 2018, + "loc": { + "start": { + "line": 59, + "column": 40 + }, + "end": { + "line": 59, + "column": 43 + } + }, + "name": "src" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2019, + "end": 2110, + "loc": { + "start": { + "line": 59, + "column": 44 + }, + "end": { + "line": 59, + "column": 135 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 2020, + "end": 2109, + "loc": { + "start": { + "line": 59, + "column": 45 + }, + "end": { + "line": 59, + "column": 134 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 2023, + "end": 2043, + "loc": { + "start": { + "line": 59, + "column": 48 + }, + "end": { + "line": 59, + "column": 68 + } + }, + "object": { + "type": "MemberExpression", + "start": 2023, + "end": 2035, + "loc": { + "start": { + "line": 59, + "column": 48 + }, + "end": { + "line": 59, + "column": 60 + } + }, + "object": { + "type": "Identifier", + "start": 2023, + "end": 2029, + "loc": { + "start": { + "line": 59, + "column": 48 + }, + "end": { + "line": 59, + "column": 54 + } + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 2030, + "end": 2035, + "loc": { + "start": { + "line": 59, + "column": 55 + }, + "end": { + "line": 59, + "column": 60 + } + }, + "name": "imgix" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2036, + "end": 2043, + "loc": { + "start": { + "line": 59, + "column": 61 + }, + "end": { + "line": 59, + "column": 68 + } + }, + "name": "baseUrl" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 2047, + "end": 2060, + "loc": { + "start": { + "line": 59, + "column": 72 + }, + "end": { + "line": 59, + "column": 85 + } + }, + "object": { + "type": "Identifier", + "start": 2047, + "end": 2051, + "loc": { + "start": { + "line": 59, + "column": 72 + }, + "end": { + "line": 59, + "column": 76 + } + }, + "name": "item" + }, + "property": { + "type": "Identifier", + "start": 2052, + "end": 2060, + "loc": { + "start": { + "line": 59, + "column": 77 + }, + "end": { + "line": 59, + "column": 85 + } + }, + "name": "filename" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 2021, + "end": 2021, + "loc": { + "start": { + "line": 59, + "column": 46 + }, + "end": { + "line": 59, + "column": 46 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 2044, + "end": 2045, + "loc": { + "start": { + "line": 59, + "column": 69 + }, + "end": { + "line": 59, + "column": 70 + } + }, + "value": { + "raw": "/", + "cooked": "/" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 2061, + "end": 2108, + "loc": { + "start": { + "line": 59, + "column": 86 + }, + "end": { + "line": 59, + "column": 133 + } + }, + "value": { + "raw": "?auto=enhance&w=200&h=200&fit=crop&fm=png&dpr=2", + "cooked": "?auto=enhance&w=200&h=200&fit=crop&fm=png&dpr=2" + }, + "tail": true + } + ] + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1971, + "end": 1974, + "loc": { + "start": { + "line": 58, + "column": 37 + }, + "end": { + "line": 58, + "column": 40 + } + }, + "name": "img" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 2112, + "end": 2145, + "loc": { + "start": { + "line": 59, + "column": 137 + }, + "end": { + "line": 60, + "column": 32 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 2152, + "end": 2181, + "loc": { + "start": { + "line": 60, + "column": 39 + }, + "end": { + "line": 61, + "column": 28 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + } + } + ] + } + }, + { + "type": "Literal", + "start": 2214, + "end": 2235, + "loc": { + "start": { + "line": 62, + "column": 26 + }, + "end": { + "line": 63, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 2241, + "end": 2258, + "loc": { + "start": { + "line": 63, + "column": 26 + }, + "end": { + "line": 64, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 2264, + "end": 2277, + "loc": { + "start": { + "line": 64, + "column": 22 + }, + "end": { + "line": 65, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 488, + "end": 536, + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 28, + "column": 7 + } + }, + "range": [ + 488, + 536 + ] + } + ] + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Explore\n * '/explore'\n * React Route - Documentation: https://github.com/reactjs/react-router/tree/master/docs\n ", + "start": 202, + "end": 323, + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 15, + "column": 3 + } + }, + "range": [ + 202, + 323 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * connect\n * Connects React component to a Redux store\n * Documentation: https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options\n ", + "start": 2304, + "end": 2509, + "loc": { + "start": { + "line": 71, + "column": 0 + }, + "end": { + "line": 75, + "column": 3 + } + }, + "range": [ + 2304, + 2509 + ] + } + ] + }, + { + "type": "ExportDefaultDeclaration", + "start": 2510, + "end": 2585, + "loc": { + "start": { + "line": 76, + "column": 0 + }, + "end": { + "line": 78, + "column": 12 + } + }, + "declaration": { + "type": "CallExpression", + "start": 2525, + "end": 2585, + "loc": { + "start": { + "line": 76, + "column": 15 + }, + "end": { + "line": 78, + "column": 12 + } + }, + "callee": { + "type": "CallExpression", + "start": 2525, + "end": 2576, + "loc": { + "start": { + "line": 76, + "column": 15 + }, + "end": { + "line": 78, + "column": 3 + } + }, + "callee": { + "type": "Identifier", + "start": 2525, + "end": 2532, + "loc": { + "start": { + "line": 76, + "column": 15 + }, + "end": { + "line": 76, + "column": 22 + } + }, + "name": "connect", + "leadingComments": null + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 2533, + "end": 2575, + "loc": { + "start": { + "line": 76, + "column": 23 + }, + "end": { + "line": 78, + "column": 2 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2533, + "end": 2538, + "loc": { + "start": { + "line": 76, + "column": 23 + }, + "end": { + "line": 76, + "column": 28 + } + }, + "name": "state" + } + ], + "body": { + "type": "ObjectExpression", + "start": 2543, + "end": 2574, + "loc": { + "start": { + "line": 76, + "column": 33 + }, + "end": { + "line": 78, + "column": 1 + } + }, + "properties": [ + { + "type": "Property", + "start": 2549, + "end": 2571, + "loc": { + "start": { + "line": 77, + "column": 4 + }, + "end": { + "line": 77, + "column": 26 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2549, + "end": 2556, + "loc": { + "start": { + "line": 77, + "column": 4 + }, + "end": { + "line": 77, + "column": 11 + } + }, + "name": "explore" + }, + "value": { + "type": "MemberExpression", + "start": 2558, + "end": 2571, + "loc": { + "start": { + "line": 77, + "column": 13 + }, + "end": { + "line": 77, + "column": 26 + } + }, + "object": { + "type": "Identifier", + "start": 2558, + "end": 2563, + "loc": { + "start": { + "line": 77, + "column": 13 + }, + "end": { + "line": 77, + "column": 18 + } + }, + "name": "state" + }, + "property": { + "type": "Identifier", + "start": 2564, + "end": 2571, + "loc": { + "start": { + "line": 77, + "column": 19 + }, + "end": { + "line": 77, + "column": 26 + } + }, + "name": "Explore" + }, + "computed": false + }, + "kind": "init" + } + ], + "parenthesizedExpression": true + } + } + ], + "leadingComments": null + }, + "arguments": [ + { + "type": "Identifier", + "start": 2577, + "end": 2584, + "loc": { + "start": { + "line": 78, + "column": 4 + }, + "end": { + "line": 78, + "column": 11 + } + }, + "name": "Explore" + } + ], + "leadingComments": [ + { + "type": "Block", + "value": "*\n * connect\n * Connects React component to a Redux store\n * Documentation: https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options\n ", + "start": 2304, + "end": 2509, + "loc": { + "start": { + "line": 71, + "column": 0 + }, + "end": { + "line": 75, + "column": 3 + } + }, + "range": [ + 2304, + 2509 + ] + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * connect\n * Connects React component to a Redux store\n * Documentation: https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options\n ", + "start": 2304, + "end": 2509, + "loc": { + "start": { + "line": 71, + "column": 0 + }, + "end": { + "line": 75, + "column": 3 + } + }, + "range": [ + 2304, + 2509 + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/routes/Explore/index.js.json b/app/docs/ast/source/routes/Explore/index.js.json new file mode 100644 index 0000000..eee767c --- /dev/null +++ b/app/docs/ast/source/routes/Explore/index.js.json @@ -0,0 +1,888 @@ +{ + "type": "Program", + "start": 0, + "end": 473, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 26, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 18, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 18 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ImportDeclaration", + "start": 27, + "end": 59, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 32 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 36, + "end": 39, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 12 + } + }, + "imported": { + "type": "Identifier", + "start": 36, + "end": 39, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 12 + } + }, + "name": "Nav" + }, + "local": { + "type": "Identifier", + "start": 36, + "end": 39, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 12 + } + }, + "name": "Nav" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 47, + "end": 59, + "loc": { + "start": { + "line": 3, + "column": 20 + }, + "end": { + "line": 3, + "column": 32 + } + }, + "value": "components", + "rawValue": "components", + "raw": "'components'" + } + }, + { + "type": "ExpressionStatement", + "start": 61, + "end": 472, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 25, + "column": 1 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 61, + "end": 472, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 25, + "column": 1 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 61, + "end": 75, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 14 + } + }, + "object": { + "type": "Identifier", + "start": 61, + "end": 67, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 6 + } + }, + "name": "module" + }, + "property": { + "type": "Identifier", + "start": 68, + "end": 75, + "loc": { + "start": { + "line": 5, + "column": 7 + }, + "end": { + "line": 5, + "column": 14 + } + }, + "name": "exports" + }, + "computed": false + }, + "right": { + "type": "ObjectExpression", + "start": 78, + "end": 472, + "loc": { + "start": { + "line": 5, + "column": 17 + }, + "end": { + "line": 25, + "column": 1 + } + }, + "properties": [ + { + "type": "Property", + "start": 84, + "end": 100, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 6, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 84, + "end": 88, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 6, + "column": 8 + } + }, + "name": "path" + }, + "value": { + "type": "Literal", + "start": 90, + "end": 100, + "loc": { + "start": { + "line": 6, + "column": 10 + }, + "end": { + "line": 6, + "column": 20 + } + }, + "value": "/explore", + "rawValue": "/explore", + "raw": "'/explore'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 203, + "end": 284, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 15, + "column": 5 + } + }, + "method": true, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 203, + "end": 215, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 16 + } + }, + "name": "getComponent", + "leadingComments": null + }, + "kind": "init", + "value": { + "type": "FunctionExpression", + "start": 215, + "end": 284, + "loc": { + "start": { + "line": 13, + "column": 16 + }, + "end": { + "line": 15, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 216, + "end": 224, + "loc": { + "start": { + "line": 13, + "column": 17 + }, + "end": { + "line": 13, + "column": 25 + } + }, + "name": "location" + }, + { + "type": "Identifier", + "start": 226, + "end": 228, + "loc": { + "start": { + "line": 13, + "column": 27 + }, + "end": { + "line": 13, + "column": 29 + } + }, + "name": "cb" + } + ], + "body": { + "type": "BlockStatement", + "start": 230, + "end": 284, + "loc": { + "start": { + "line": 13, + "column": 31 + }, + "end": { + "line": 15, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 240, + "end": 278, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 46 + } + }, + "expression": { + "type": "CallExpression", + "start": 240, + "end": 278, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 46 + } + }, + "callee": { + "type": "Identifier", + "start": 240, + "end": 242, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 10 + } + }, + "name": "cb" + }, + "arguments": [ + { + "type": "Literal", + "start": 243, + "end": 247, + "loc": { + "start": { + "line": 14, + "column": 11 + }, + "end": { + "line": 14, + "column": 15 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + { + "type": "MemberExpression", + "start": 249, + "end": 277, + "loc": { + "start": { + "line": 14, + "column": 17 + }, + "end": { + "line": 14, + "column": 45 + } + }, + "object": { + "type": "CallExpression", + "start": 249, + "end": 269, + "loc": { + "start": { + "line": 14, + "column": 17 + }, + "end": { + "line": 14, + "column": 37 + } + }, + "callee": { + "type": "Identifier", + "start": 249, + "end": 256, + "loc": { + "start": { + "line": 14, + "column": 17 + }, + "end": { + "line": 14, + "column": 24 + } + }, + "name": "require" + }, + "arguments": [ + { + "type": "Literal", + "start": 257, + "end": 268, + "loc": { + "start": { + "line": 14, + "column": 25 + }, + "end": { + "line": 14, + "column": 36 + } + }, + "value": "./Explore", + "rawValue": "./Explore", + "raw": "'./Explore'" + } + ] + }, + "property": { + "type": "Identifier", + "start": 270, + "end": 277, + "loc": { + "start": { + "line": 14, + "column": 38 + }, + "end": { + "line": 14, + "column": 45 + } + }, + "name": "default" + }, + "computed": false + } + ] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * getComponent\n * @param location\n * @param cb {Function} callback\n ", + "start": 107, + "end": 198, + "loc": { + "start": { + "line": 8, + "column": 4 + }, + "end": { + "line": 12, + "column": 7 + } + }, + "range": [ + 107, + 198 + ] + } + ] + }, + { + "type": "Property", + "start": 390, + "end": 469, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 24, + "column": 5 + } + }, + "method": true, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 390, + "end": 405, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 19 + } + }, + "name": "getHeaderMiddle", + "leadingComments": null + }, + "kind": "init", + "value": { + "type": "FunctionExpression", + "start": 405, + "end": 469, + "loc": { + "start": { + "line": 22, + "column": 19 + }, + "end": { + "line": 24, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 406, + "end": 414, + "loc": { + "start": { + "line": 22, + "column": 20 + }, + "end": { + "line": 22, + "column": 28 + } + }, + "name": "location" + }, + { + "type": "Identifier", + "start": 416, + "end": 418, + "loc": { + "start": { + "line": 22, + "column": 30 + }, + "end": { + "line": 22, + "column": 32 + } + }, + "name": "cb" + } + ], + "body": { + "type": "BlockStatement", + "start": 420, + "end": 469, + "loc": { + "start": { + "line": 22, + "column": 34 + }, + "end": { + "line": 24, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 430, + "end": 463, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 41 + } + }, + "expression": { + "type": "CallExpression", + "start": 430, + "end": 463, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 41 + } + }, + "callee": { + "type": "Identifier", + "start": 430, + "end": 432, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 10 + } + }, + "name": "cb" + }, + "arguments": [ + { + "type": "Literal", + "start": 433, + "end": 437, + "loc": { + "start": { + "line": 23, + "column": 11 + }, + "end": { + "line": 23, + "column": 15 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + { + "type": "JSXElement", + "start": 439, + "end": 462, + "loc": { + "start": { + "line": 23, + "column": 17 + }, + "end": { + "line": 23, + "column": 40 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 439, + "end": 462, + "loc": { + "start": { + "line": 23, + "column": 17 + }, + "end": { + "line": 23, + "column": 40 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 444, + "end": 460, + "loc": { + "start": { + "line": 23, + "column": 22 + }, + "end": { + "line": 23, + "column": 38 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 444, + "end": 450, + "loc": { + "start": { + "line": 23, + "column": 22 + }, + "end": { + "line": 23, + "column": 28 + } + }, + "name": "active" + }, + "value": { + "type": "Literal", + "start": 451, + "end": 460, + "loc": { + "start": { + "line": 23, + "column": 29 + }, + "end": { + "line": 23, + "column": 38 + } + }, + "value": "explore", + "rawValue": null, + "raw": "\"explore\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 440, + "end": 443, + "loc": { + "start": { + "line": 23, + "column": 18 + }, + "end": { + "line": 23, + "column": 21 + } + }, + "name": "Nav" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + ] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * getHeaderMiddle\n * @param location\n * @param cb {Function} callback\n ", + "start": 291, + "end": 385, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 21, + "column": 7 + } + }, + "range": [ + 291, + 385 + ] + } + ] + } + ] + } + } + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/routes/FollowingActivity/FollowingActivity.js.json b/app/docs/ast/source/routes/FollowingActivity/FollowingActivity.js.json new file mode 100644 index 0000000..de14096 --- /dev/null +++ b/app/docs/ast/source/routes/FollowingActivity/FollowingActivity.js.json @@ -0,0 +1,5677 @@ +{ + "type": "Program", + "start": 0, + "end": 3997, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 120, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + }, + { + "type": "ImportSpecifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "imported": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + }, + "local": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 33, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 33 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ImportDeclaration", + "start": 41, + "end": 78, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 37 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 50, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "imported": { + "type": "Identifier", + "start": 50, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "name": "connect" + }, + "local": { + "type": "Identifier", + "start": 50, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "name": "connect" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 65, + "end": 78, + "loc": { + "start": { + "line": 2, + "column": 24 + }, + "end": { + "line": 2, + "column": 37 + } + }, + "value": "react-redux", + "rawValue": "react-redux", + "raw": "'react-redux'" + } + }, + { + "type": "ImportDeclaration", + "start": 79, + "end": 124, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 45 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 88, + "end": 102, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 23 + } + }, + "imported": { + "type": "Identifier", + "start": 88, + "end": 102, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 23 + } + }, + "name": "browserHistory" + }, + "local": { + "type": "Identifier", + "start": 88, + "end": 102, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 23 + } + }, + "name": "browserHistory" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 110, + "end": 124, + "loc": { + "start": { + "line": 3, + "column": 31 + }, + "end": { + "line": 3, + "column": 45 + } + }, + "value": "react-router", + "rawValue": "react-router", + "raw": "'react-router'" + } + }, + { + "type": "ImportDeclaration", + "start": 126, + "end": 168, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 7, + "column": 19 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 139, + "end": 147, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 6, + "column": 12 + } + }, + "imported": { + "type": "Identifier", + "start": 139, + "end": 147, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 6, + "column": 12 + } + }, + "name": "Activity" + }, + "local": { + "type": "Identifier", + "start": 139, + "end": 147, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 6, + "column": 12 + } + }, + "name": "Activity" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 156, + "end": 168, + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 19 + } + }, + "value": "components", + "rawValue": "components", + "raw": "'components'" + } + }, + { + "type": "ImportDeclaration", + "start": 170, + "end": 284, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 13, + "column": 16 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 183, + "end": 210, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 10, + "column": 31 + } + }, + "imported": { + "type": "Identifier", + "start": 183, + "end": 191, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 10, + "column": 12 + } + }, + "name": "Activity" + }, + "local": { + "type": "Identifier", + "start": 195, + "end": 210, + "loc": { + "start": { + "line": 10, + "column": 16 + }, + "end": { + "line": 10, + "column": 31 + } + }, + "name": "ActivityActions" + } + }, + { + "type": "ImportSpecifier", + "start": 216, + "end": 235, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 23 + } + }, + "imported": { + "type": "Identifier", + "start": 216, + "end": 220, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 8 + } + }, + "name": "User" + }, + "local": { + "type": "Identifier", + "start": 224, + "end": 235, + "loc": { + "start": { + "line": 11, + "column": 12 + }, + "end": { + "line": 11, + "column": 23 + } + }, + "name": "UserActions" + } + }, + { + "type": "ImportSpecifier", + "start": 241, + "end": 266, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 29 + } + }, + "imported": { + "type": "Identifier", + "start": 241, + "end": 248, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 11 + } + }, + "name": "Profile" + }, + "local": { + "type": "Identifier", + "start": 252, + "end": 266, + "loc": { + "start": { + "line": 12, + "column": 15 + }, + "end": { + "line": 12, + "column": 29 + } + }, + "name": "ProfileActions" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 275, + "end": 284, + "loc": { + "start": { + "line": 13, + "column": 7 + }, + "end": { + "line": 13, + "column": 16 + } + }, + "value": "actions", + "rawValue": "actions", + "raw": "'actions'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * FollowingActivity\n * '/profile/:id/following-activity'\n * React Route - Documentation: https://github.com/reactjs/react-router/tree/master/docs\n ", + "start": 286, + "end": 440, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 19, + "column": 3 + } + }, + "range": [ + 286, + 440 + ] + } + ] + }, + { + "type": "ClassDeclaration", + "start": 441, + "end": 3679, + "loc": { + "start": { + "line": 20, + "column": 0 + }, + "end": { + "line": 109, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 447, + "end": 464, + "loc": { + "start": { + "line": 20, + "column": 6 + }, + "end": { + "line": 20, + "column": 23 + } + }, + "name": "FollowingActivity", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 473, + "end": 482, + "loc": { + "start": { + "line": 20, + "column": 32 + }, + "end": { + "line": 20, + "column": 41 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 483, + "end": 3679, + "loc": { + "start": { + "line": 20, + "column": 42 + }, + "end": { + "line": 109, + "column": 1 + } + }, + "body": [ + { + "type": "Identifier", + "start": 565, + "end": 664, + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 29, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 565, + "end": 581, + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 27, + "column": 20 + } + }, + "name": "handleFollowBack", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ArrowFunctionExpression", + "start": 584, + "end": 664, + "loc": { + "start": { + "line": 27, + "column": 23 + }, + "end": { + "line": 29, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 585, + "end": 586, + "loc": { + "start": { + "line": 27, + "column": 24 + }, + "end": { + "line": 27, + "column": 25 + } + }, + "name": "e" + }, + { + "type": "Identifier", + "start": 588, + "end": 592, + "loc": { + "start": { + "line": 27, + "column": 27 + }, + "end": { + "line": 27, + "column": 31 + } + }, + "name": "user" + } + ], + "body": { + "type": "BlockStatement", + "start": 597, + "end": 664, + "loc": { + "start": { + "line": 27, + "column": 36 + }, + "end": { + "line": 29, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 607, + "end": 658, + "loc": { + "start": { + "line": 28, + "column": 8 + }, + "end": { + "line": 28, + "column": 59 + } + }, + "expression": { + "type": "CallExpression", + "start": 607, + "end": 658, + "loc": { + "start": { + "line": 28, + "column": 8 + }, + "end": { + "line": 28, + "column": 59 + } + }, + "callee": { + "type": "MemberExpression", + "start": 607, + "end": 626, + "loc": { + "start": { + "line": 28, + "column": 8 + }, + "end": { + "line": 28, + "column": 27 + } + }, + "object": { + "type": "MemberExpression", + "start": 607, + "end": 617, + "loc": { + "start": { + "line": 28, + "column": 8 + }, + "end": { + "line": 28, + "column": 18 + } + }, + "object": { + "type": "ThisExpression", + "start": 607, + "end": 611, + "loc": { + "start": { + "line": 28, + "column": 8 + }, + "end": { + "line": 28, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 612, + "end": 617, + "loc": { + "start": { + "line": 28, + "column": 13 + }, + "end": { + "line": 28, + "column": 18 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 618, + "end": 626, + "loc": { + "start": { + "line": 28, + "column": 19 + }, + "end": { + "line": 28, + "column": 27 + } + }, + "name": "dispatch" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 627, + "end": 657, + "loc": { + "start": { + "line": 28, + "column": 28 + }, + "end": { + "line": 28, + "column": 58 + } + }, + "callee": { + "type": "MemberExpression", + "start": 627, + "end": 648, + "loc": { + "start": { + "line": 28, + "column": 28 + }, + "end": { + "line": 28, + "column": 49 + } + }, + "object": { + "type": "Identifier", + "start": 627, + "end": 641, + "loc": { + "start": { + "line": 28, + "column": 28 + }, + "end": { + "line": 28, + "column": 42 + } + }, + "name": "ProfileActions" + }, + "property": { + "type": "Identifier", + "start": 642, + "end": 648, + "loc": { + "start": { + "line": 28, + "column": 43 + }, + "end": { + "line": 28, + "column": 49 + } + }, + "name": "follow" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 649, + "end": 656, + "loc": { + "start": { + "line": 28, + "column": 50 + }, + "end": { + "line": 28, + "column": 57 + } + }, + "object": { + "type": "Identifier", + "start": 649, + "end": 653, + "loc": { + "start": { + "line": 28, + "column": 50 + }, + "end": { + "line": 28, + "column": 54 + } + }, + "name": "user" + }, + "property": { + "type": "Identifier", + "start": 654, + "end": 656, + "loc": { + "start": { + "line": 28, + "column": 55 + }, + "end": { + "line": 28, + "column": 57 + } + }, + "name": "id" + }, + "computed": false + } + ] + } + ] + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * handleFollowBack\n * @param e\n * @param user\n ", + "start": 490, + "end": 560, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 26, + "column": 7 + } + }, + "range": [ + 490, + 560 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * handleUnfollow\n * @param e\n * @param user\n ", + "start": 670, + "end": 738, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 35, + "column": 7 + } + }, + "range": [ + 670, + 738 + ] + } + ] + }, + { + "type": "Identifier", + "start": 743, + "end": 842, + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 38, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 743, + "end": 757, + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 36, + "column": 18 + } + }, + "name": "handleUnfollow", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ArrowFunctionExpression", + "start": 760, + "end": 842, + "loc": { + "start": { + "line": 36, + "column": 21 + }, + "end": { + "line": 38, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 761, + "end": 762, + "loc": { + "start": { + "line": 36, + "column": 22 + }, + "end": { + "line": 36, + "column": 23 + } + }, + "name": "e" + }, + { + "type": "Identifier", + "start": 764, + "end": 768, + "loc": { + "start": { + "line": 36, + "column": 25 + }, + "end": { + "line": 36, + "column": 29 + } + }, + "name": "user" + } + ], + "body": { + "type": "BlockStatement", + "start": 773, + "end": 842, + "loc": { + "start": { + "line": 36, + "column": 34 + }, + "end": { + "line": 38, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 783, + "end": 836, + "loc": { + "start": { + "line": 37, + "column": 8 + }, + "end": { + "line": 37, + "column": 61 + } + }, + "expression": { + "type": "CallExpression", + "start": 783, + "end": 836, + "loc": { + "start": { + "line": 37, + "column": 8 + }, + "end": { + "line": 37, + "column": 61 + } + }, + "callee": { + "type": "MemberExpression", + "start": 783, + "end": 802, + "loc": { + "start": { + "line": 37, + "column": 8 + }, + "end": { + "line": 37, + "column": 27 + } + }, + "object": { + "type": "MemberExpression", + "start": 783, + "end": 793, + "loc": { + "start": { + "line": 37, + "column": 8 + }, + "end": { + "line": 37, + "column": 18 + } + }, + "object": { + "type": "ThisExpression", + "start": 783, + "end": 787, + "loc": { + "start": { + "line": 37, + "column": 8 + }, + "end": { + "line": 37, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 788, + "end": 793, + "loc": { + "start": { + "line": 37, + "column": 13 + }, + "end": { + "line": 37, + "column": 18 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 794, + "end": 802, + "loc": { + "start": { + "line": 37, + "column": 19 + }, + "end": { + "line": 37, + "column": 27 + } + }, + "name": "dispatch" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 803, + "end": 835, + "loc": { + "start": { + "line": 37, + "column": 28 + }, + "end": { + "line": 37, + "column": 60 + } + }, + "callee": { + "type": "MemberExpression", + "start": 803, + "end": 826, + "loc": { + "start": { + "line": 37, + "column": 28 + }, + "end": { + "line": 37, + "column": 51 + } + }, + "object": { + "type": "Identifier", + "start": 803, + "end": 817, + "loc": { + "start": { + "line": 37, + "column": 28 + }, + "end": { + "line": 37, + "column": 42 + } + }, + "name": "ProfileActions" + }, + "property": { + "type": "Identifier", + "start": 818, + "end": 826, + "loc": { + "start": { + "line": 37, + "column": 43 + }, + "end": { + "line": 37, + "column": 51 + } + }, + "name": "unfollow" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 827, + "end": 834, + "loc": { + "start": { + "line": 37, + "column": 52 + }, + "end": { + "line": 37, + "column": 59 + } + }, + "object": { + "type": "Identifier", + "start": 827, + "end": 831, + "loc": { + "start": { + "line": 37, + "column": 52 + }, + "end": { + "line": 37, + "column": 56 + } + }, + "name": "user" + }, + "property": { + "type": "Identifier", + "start": 832, + "end": 834, + "loc": { + "start": { + "line": 37, + "column": 57 + }, + "end": { + "line": 37, + "column": 59 + } + }, + "name": "id" + }, + "computed": false + } + ] + } + ] + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * handleUnfollow\n * @param e\n * @param user\n ", + "start": 670, + "end": 738, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 35, + "column": 7 + } + }, + "range": [ + 670, + 738 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 848, + "end": 896, + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 43, + "column": 7 + } + }, + "range": [ + 848, + 896 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 901, + "end": 3676, + "loc": { + "start": { + "line": 44, + "column": 4 + }, + "end": { + "line": 107, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 901, + "end": 907, + "loc": { + "start": { + "line": 44, + "column": 4 + }, + "end": { + "line": 44, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 907, + "end": 3676, + "loc": { + "start": { + "line": 44, + "column": 10 + }, + "end": { + "line": 107, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 910, + "end": 3676, + "loc": { + "start": { + "line": 44, + "column": 13 + }, + "end": { + "line": 107, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 920, + "end": 3670, + "loc": { + "start": { + "line": 45, + "column": 8 + }, + "end": { + "line": 106, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 941, + "end": 3660, + "loc": { + "start": { + "line": 46, + "column": 12 + }, + "end": { + "line": 105, + "column": 18 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 941, + "end": 963, + "loc": { + "start": { + "line": 46, + "column": 12 + }, + "end": { + "line": 46, + "column": 34 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 946, + "end": 962, + "loc": { + "start": { + "line": 46, + "column": 17 + }, + "end": { + "line": 46, + "column": 33 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 946, + "end": 955, + "loc": { + "start": { + "line": 46, + "column": 17 + }, + "end": { + "line": 46, + "column": 26 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 956, + "end": 962, + "loc": { + "start": { + "line": 46, + "column": 27 + }, + "end": { + "line": 46, + "column": 33 + } + }, + "value": "page", + "rawValue": null, + "raw": "\"page\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 942, + "end": 945, + "loc": { + "start": { + "line": 46, + "column": 13 + }, + "end": { + "line": 46, + "column": 16 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3654, + "end": 3660, + "loc": { + "start": { + "line": 105, + "column": 12 + }, + "end": { + "line": 105, + "column": 18 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3656, + "end": 3659, + "loc": { + "start": { + "line": 105, + "column": 14 + }, + "end": { + "line": 105, + "column": 17 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 963, + "end": 980, + "loc": { + "start": { + "line": 46, + "column": 34 + }, + "end": { + "line": 47, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 980, + "end": 3641, + "loc": { + "start": { + "line": 47, + "column": 16 + }, + "end": { + "line": 104, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 980, + "end": 1016, + "loc": { + "start": { + "line": 47, + "column": 16 + }, + "end": { + "line": 47, + "column": 52 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 985, + "end": 1015, + "loc": { + "start": { + "line": 47, + "column": 21 + }, + "end": { + "line": 47, + "column": 51 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 985, + "end": 994, + "loc": { + "start": { + "line": 47, + "column": 21 + }, + "end": { + "line": 47, + "column": 30 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 995, + "end": 1015, + "loc": { + "start": { + "line": 47, + "column": 31 + }, + "end": { + "line": 47, + "column": 51 + } + }, + "value": "following-activity", + "rawValue": null, + "raw": "\"following-activity\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 981, + "end": 984, + "loc": { + "start": { + "line": 47, + "column": 17 + }, + "end": { + "line": 47, + "column": 20 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3635, + "end": 3641, + "loc": { + "start": { + "line": 104, + "column": 16 + }, + "end": { + "line": 104, + "column": 22 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3637, + "end": 3640, + "loc": { + "start": { + "line": 104, + "column": 18 + }, + "end": { + "line": 104, + "column": 21 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 1016, + "end": 1037, + "loc": { + "start": { + "line": 47, + "column": 52 + }, + "end": { + "line": 48, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1037, + "end": 3618, + "loc": { + "start": { + "line": 48, + "column": 20 + }, + "end": { + "line": 103, + "column": 25 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1037, + "end": 1062, + "loc": { + "start": { + "line": 48, + "column": 20 + }, + "end": { + "line": 48, + "column": 45 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1041, + "end": 1061, + "loc": { + "start": { + "line": 48, + "column": 24 + }, + "end": { + "line": 48, + "column": 44 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1041, + "end": 1050, + "loc": { + "start": { + "line": 48, + "column": 24 + }, + "end": { + "line": 48, + "column": 33 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 1051, + "end": 1061, + "loc": { + "start": { + "line": 48, + "column": 34 + }, + "end": { + "line": 48, + "column": 44 + } + }, + "value": "timeline", + "rawValue": null, + "raw": "\"timeline\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1038, + "end": 1040, + "loc": { + "start": { + "line": 48, + "column": 21 + }, + "end": { + "line": 48, + "column": 23 + } + }, + "name": "ul" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3613, + "end": 3618, + "loc": { + "start": { + "line": 103, + "column": 20 + }, + "end": { + "line": 103, + "column": 25 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3615, + "end": 3617, + "loc": { + "start": { + "line": 103, + "column": 22 + }, + "end": { + "line": 103, + "column": 24 + } + }, + "name": "ul" + } + }, + "children": [ + { + "type": "Literal", + "start": 1062, + "end": 1088, + "loc": { + "start": { + "line": 48, + "column": 45 + }, + "end": { + "line": 50, + "column": 24 + } + }, + "value": "\n\n ", + "rawValue": null, + "raw": "\n\n " + }, + { + "type": "JSXExpressionContainer", + "start": 1088, + "end": 3592, + "loc": { + "start": { + "line": 50, + "column": 24 + }, + "end": { + "line": 102, + "column": 27 + } + }, + "expression": { + "type": "CallExpression", + "start": 1089, + "end": 3591, + "loc": { + "start": { + "line": 50, + "column": 25 + }, + "end": { + "line": 102, + "column": 26 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1089, + "end": 1112, + "loc": { + "start": { + "line": 50, + "column": 25 + }, + "end": { + "line": 50, + "column": 48 + } + }, + "object": { + "type": "MemberExpression", + "start": 1089, + "end": 1108, + "loc": { + "start": { + "line": 50, + "column": 25 + }, + "end": { + "line": 50, + "column": 44 + } + }, + "object": { + "type": "MemberExpression", + "start": 1089, + "end": 1099, + "loc": { + "start": { + "line": 50, + "column": 25 + }, + "end": { + "line": 50, + "column": 35 + } + }, + "object": { + "type": "ThisExpression", + "start": 1089, + "end": 1093, + "loc": { + "start": { + "line": 50, + "column": 25 + }, + "end": { + "line": 50, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "start": 1094, + "end": 1099, + "loc": { + "start": { + "line": 50, + "column": 30 + }, + "end": { + "line": 50, + "column": 35 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1100, + "end": 1108, + "loc": { + "start": { + "line": 50, + "column": 36 + }, + "end": { + "line": 50, + "column": 44 + } + }, + "name": "activity" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1109, + "end": 1112, + "loc": { + "start": { + "line": 50, + "column": 45 + }, + "end": { + "line": 50, + "column": 48 + } + }, + "name": "map" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 1113, + "end": 3590, + "loc": { + "start": { + "line": 50, + "column": 49 + }, + "end": { + "line": 102, + "column": 25 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1113, + "end": 1117, + "loc": { + "start": { + "line": 50, + "column": 49 + }, + "end": { + "line": 50, + "column": 53 + } + }, + "name": "item" + } + ], + "body": { + "type": "BlockStatement", + "start": 1121, + "end": 3590, + "loc": { + "start": { + "line": 50, + "column": 57 + }, + "end": { + "line": 102, + "column": 25 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 1152, + "end": 1530, + "loc": { + "start": { + "line": 52, + "column": 28 + }, + "end": { + "line": 61, + "column": 40 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1158, + "end": 1530, + "loc": { + "start": { + "line": 52, + "column": 34 + }, + "end": { + "line": 61, + "column": 40 + } + }, + "id": { + "type": "ObjectPattern", + "start": 1158, + "end": 1523, + "loc": { + "start": { + "line": 52, + "column": 34 + }, + "end": { + "line": 61, + "column": 33 + } + }, + "properties": [ + { + "type": "Property", + "start": 1192, + "end": 1197, + "loc": { + "start": { + "line": 53, + "column": 32 + }, + "end": { + "line": 53, + "column": 37 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 1192, + "end": 1197, + "loc": { + "start": { + "line": 53, + "column": 32 + }, + "end": { + "line": 53, + "column": 37 + } + }, + "name": "email" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 1192, + "end": 1197, + "loc": { + "start": { + "line": 53, + "column": 32 + }, + "end": { + "line": 53, + "column": 37 + } + }, + "name": "email" + } + }, + { + "type": "Property", + "start": 1231, + "end": 1241, + "loc": { + "start": { + "line": 54, + "column": 32 + }, + "end": { + "line": 54, + "column": 42 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 1231, + "end": 1241, + "loc": { + "start": { + "line": 54, + "column": 32 + }, + "end": { + "line": 54, + "column": 42 + } + }, + "name": "first_name" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 1231, + "end": 1241, + "loc": { + "start": { + "line": 54, + "column": 32 + }, + "end": { + "line": 54, + "column": 42 + } + }, + "name": "first_name" + } + }, + { + "type": "Property", + "start": 1275, + "end": 1282, + "loc": { + "start": { + "line": 55, + "column": 32 + }, + "end": { + "line": 55, + "column": 39 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 1275, + "end": 1282, + "loc": { + "start": { + "line": 55, + "column": 32 + }, + "end": { + "line": 55, + "column": 39 + } + }, + "name": "last_id" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 1275, + "end": 1282, + "loc": { + "start": { + "line": 55, + "column": 32 + }, + "end": { + "line": 55, + "column": 39 + } + }, + "name": "last_id" + } + }, + { + "type": "Property", + "start": 1316, + "end": 1325, + "loc": { + "start": { + "line": 56, + "column": 32 + }, + "end": { + "line": 56, + "column": 41 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 1316, + "end": 1325, + "loc": { + "start": { + "line": 56, + "column": 32 + }, + "end": { + "line": 56, + "column": 41 + } + }, + "name": "last_name" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 1316, + "end": 1325, + "loc": { + "start": { + "line": 56, + "column": 32 + }, + "end": { + "line": 56, + "column": 41 + } + }, + "name": "last_name" + } + }, + { + "type": "Property", + "start": 1359, + "end": 1368, + "loc": { + "start": { + "line": 57, + "column": 32 + }, + "end": { + "line": 57, + "column": 41 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 1359, + "end": 1368, + "loc": { + "start": { + "line": 57, + "column": 32 + }, + "end": { + "line": 57, + "column": 41 + } + }, + "name": "timestamp" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 1359, + "end": 1368, + "loc": { + "start": { + "line": 57, + "column": 32 + }, + "end": { + "line": 57, + "column": 41 + } + }, + "name": "timestamp" + } + }, + { + "type": "Property", + "start": 1402, + "end": 1406, + "loc": { + "start": { + "line": 58, + "column": 32 + }, + "end": { + "line": 58, + "column": 36 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 1402, + "end": 1406, + "loc": { + "start": { + "line": 58, + "column": 32 + }, + "end": { + "line": 58, + "column": 36 + } + }, + "name": "type" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 1402, + "end": 1406, + "loc": { + "start": { + "line": 58, + "column": 32 + }, + "end": { + "line": 58, + "column": 36 + } + }, + "name": "type" + } + }, + { + "type": "Property", + "start": 1440, + "end": 1447, + "loc": { + "start": { + "line": 59, + "column": 32 + }, + "end": { + "line": 59, + "column": 39 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 1440, + "end": 1447, + "loc": { + "start": { + "line": 59, + "column": 32 + }, + "end": { + "line": 59, + "column": 39 + } + }, + "name": "user_id" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 1440, + "end": 1447, + "loc": { + "start": { + "line": 59, + "column": 32 + }, + "end": { + "line": 59, + "column": 39 + } + }, + "name": "user_id" + } + }, + { + "type": "SpreadProperty", + "start": 1481, + "end": 1488, + "loc": { + "start": { + "line": 60, + "column": 32 + }, + "end": { + "line": 60, + "column": 39 + } + }, + "argument": { + "type": "Identifier", + "start": 1484, + "end": 1488, + "loc": { + "start": { + "line": 60, + "column": 35 + }, + "end": { + "line": 60, + "column": 39 + } + }, + "name": "data" + } + } + ] + }, + "init": { + "type": "Identifier", + "start": 1526, + "end": 1530, + "loc": { + "start": { + "line": 61, + "column": 36 + }, + "end": { + "line": 61, + "column": 40 + } + }, + "name": "item" + } + } + ], + "kind": "const" + }, + { + "type": "VariableDeclaration", + "start": 1560, + "end": 1569, + "loc": { + "start": { + "line": 63, + "column": 28 + }, + "end": { + "line": 63, + "column": 37 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1564, + "end": 1569, + "loc": { + "start": { + "line": 63, + "column": 32 + }, + "end": { + "line": 63, + "column": 37 + } + }, + "id": { + "type": "Identifier", + "start": 1564, + "end": 1569, + "loc": { + "start": { + "line": 63, + "column": 32 + }, + "end": { + "line": 63, + "column": 37 + } + }, + "name": "child" + }, + "init": null + } + ], + "kind": "let" + }, + { + "type": "SwitchStatement", + "start": 1599, + "end": 2849, + "loc": { + "start": { + "line": 65, + "column": 28 + }, + "end": { + "line": 86, + "column": 29 + } + }, + "discriminant": { + "type": "Identifier", + "start": 1607, + "end": 1611, + "loc": { + "start": { + "line": 65, + "column": 36 + }, + "end": { + "line": 65, + "column": 40 + } + }, + "name": "type" + }, + "cases": [ + { + "type": "SwitchCase", + "start": 1647, + "end": 2527, + "loc": { + "start": { + "line": 66, + "column": 32 + }, + "end": { + "line": 79, + "column": 41 + } + }, + "consequent": [ + { + "type": "ExpressionStatement", + "start": 1698, + "end": 2485, + "loc": { + "start": { + "line": 67, + "column": 36 + }, + "end": { + "line": 78, + "column": 37 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1698, + "end": 2485, + "loc": { + "start": { + "line": 67, + "column": 36 + }, + "end": { + "line": 78, + "column": 37 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 1698, + "end": 1703, + "loc": { + "start": { + "line": 67, + "column": 36 + }, + "end": { + "line": 67, + "column": 41 + } + }, + "name": "child" + }, + "right": { + "type": "JSXElement", + "start": 1748, + "end": 2447, + "loc": { + "start": { + "line": 68, + "column": 40 + }, + "end": { + "line": 77, + "column": 48 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1748, + "end": 2447, + "loc": { + "start": { + "line": 68, + "column": 40 + }, + "end": { + "line": 77, + "column": 48 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1812, + "end": 1848, + "loc": { + "start": { + "line": 69, + "column": 44 + }, + "end": { + "line": 69, + "column": 80 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1812, + "end": 1824, + "loc": { + "start": { + "line": 69, + "column": 44 + }, + "end": { + "line": 69, + "column": 56 + } + }, + "name": "onFollowBack" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 1825, + "end": 1848, + "loc": { + "start": { + "line": 69, + "column": 57 + }, + "end": { + "line": 69, + "column": 80 + } + }, + "expression": { + "type": "MemberExpression", + "start": 1826, + "end": 1847, + "loc": { + "start": { + "line": 69, + "column": 58 + }, + "end": { + "line": 69, + "column": 79 + } + }, + "object": { + "type": "ThisExpression", + "start": 1826, + "end": 1830, + "loc": { + "start": { + "line": 69, + "column": 58 + }, + "end": { + "line": 69, + "column": 62 + } + } + }, + "property": { + "type": "Identifier", + "start": 1831, + "end": 1847, + "loc": { + "start": { + "line": 69, + "column": 63 + }, + "end": { + "line": 69, + "column": 79 + } + }, + "name": "handleFollowBack" + }, + "computed": false + } + } + }, + { + "type": "JSXAttribute", + "start": 1893, + "end": 1925, + "loc": { + "start": { + "line": 70, + "column": 44 + }, + "end": { + "line": 70, + "column": 76 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1893, + "end": 1903, + "loc": { + "start": { + "line": 70, + "column": 44 + }, + "end": { + "line": 70, + "column": 54 + } + }, + "name": "onUnfollow" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 1904, + "end": 1925, + "loc": { + "start": { + "line": 70, + "column": 55 + }, + "end": { + "line": 70, + "column": 76 + } + }, + "expression": { + "type": "MemberExpression", + "start": 1905, + "end": 1924, + "loc": { + "start": { + "line": 70, + "column": 56 + }, + "end": { + "line": 70, + "column": 75 + } + }, + "object": { + "type": "ThisExpression", + "start": 1905, + "end": 1909, + "loc": { + "start": { + "line": 70, + "column": 56 + }, + "end": { + "line": 70, + "column": 60 + } + } + }, + "property": { + "type": "Identifier", + "start": 1910, + "end": 1924, + "loc": { + "start": { + "line": 70, + "column": 61 + }, + "end": { + "line": 70, + "column": 75 + } + }, + "name": "handleUnfollow" + }, + "computed": false + } + } + }, + { + "type": "JSXAttribute", + "start": 1970, + "end": 2002, + "loc": { + "start": { + "line": 71, + "column": 44 + }, + "end": { + "line": 71, + "column": 76 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1970, + "end": 1979, + "loc": { + "start": { + "line": 71, + "column": 44 + }, + "end": { + "line": 71, + "column": 53 + } + }, + "name": "following" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 1980, + "end": 2002, + "loc": { + "start": { + "line": 71, + "column": 54 + }, + "end": { + "line": 71, + "column": 76 + } + }, + "expression": { + "type": "BinaryExpression", + "start": 1981, + "end": 2001, + "loc": { + "start": { + "line": 71, + "column": 55 + }, + "end": { + "line": 71, + "column": 75 + } + }, + "left": { + "type": "MemberExpression", + "start": 1981, + "end": 1995, + "loc": { + "start": { + "line": 71, + "column": 55 + }, + "end": { + "line": 71, + "column": 69 + } + }, + "object": { + "type": "Identifier", + "start": 1981, + "end": 1985, + "loc": { + "start": { + "line": 71, + "column": 55 + }, + "end": { + "line": 71, + "column": 59 + } + }, + "name": "data" + }, + "property": { + "type": "Identifier", + "start": 1986, + "end": 1995, + "loc": { + "start": { + "line": 71, + "column": 60 + }, + "end": { + "line": 71, + "column": 69 + } + }, + "name": "following" + }, + "computed": false + }, + "operator": "===", + "right": { + "type": "Literal", + "start": 2000, + "end": 2001, + "loc": { + "start": { + "line": 71, + "column": 74 + }, + "end": { + "line": 71, + "column": 75 + } + }, + "value": 1, + "rawValue": 1, + "raw": "1" + } + } + } + }, + { + "type": "JSXAttribute", + "start": 2047, + "end": 2445, + "loc": { + "start": { + "line": 72, + "column": 44 + }, + "end": { + "line": 77, + "column": 46 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2047, + "end": 2051, + "loc": { + "start": { + "line": 72, + "column": 44 + }, + "end": { + "line": 72, + "column": 48 + } + }, + "name": "user" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2052, + "end": 2445, + "loc": { + "start": { + "line": 72, + "column": 49 + }, + "end": { + "line": 77, + "column": 46 + } + }, + "expression": { + "type": "ObjectExpression", + "start": 2053, + "end": 2444, + "loc": { + "start": { + "line": 72, + "column": 50 + }, + "end": { + "line": 77, + "column": 45 + } + }, + "properties": [ + { + "type": "Property", + "start": 2103, + "end": 2140, + "loc": { + "start": { + "line": 73, + "column": 48 + }, + "end": { + "line": 73, + "column": 85 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2103, + "end": 2112, + "loc": { + "start": { + "line": 73, + "column": 48 + }, + "end": { + "line": 73, + "column": 57 + } + }, + "name": "firstName" + }, + "value": { + "type": "MemberExpression", + "start": 2114, + "end": 2140, + "loc": { + "start": { + "line": 73, + "column": 59 + }, + "end": { + "line": 73, + "column": 85 + } + }, + "object": { + "type": "MemberExpression", + "start": 2114, + "end": 2129, + "loc": { + "start": { + "line": 73, + "column": 59 + }, + "end": { + "line": 73, + "column": 74 + } + }, + "object": { + "type": "MemberExpression", + "start": 2114, + "end": 2124, + "loc": { + "start": { + "line": 73, + "column": 59 + }, + "end": { + "line": 73, + "column": 69 + } + }, + "object": { + "type": "ThisExpression", + "start": 2114, + "end": 2118, + "loc": { + "start": { + "line": 73, + "column": 59 + }, + "end": { + "line": 73, + "column": 63 + } + } + }, + "property": { + "type": "Identifier", + "start": 2119, + "end": 2124, + "loc": { + "start": { + "line": 73, + "column": 64 + }, + "end": { + "line": 73, + "column": 69 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2125, + "end": 2129, + "loc": { + "start": { + "line": 73, + "column": 70 + }, + "end": { + "line": 73, + "column": 74 + } + }, + "name": "user" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2130, + "end": 2140, + "loc": { + "start": { + "line": 73, + "column": 75 + }, + "end": { + "line": 73, + "column": 85 + } + }, + "name": "first_name" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 2190, + "end": 2239, + "loc": { + "start": { + "line": 74, + "column": 48 + }, + "end": { + "line": 74, + "column": 97 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2190, + "end": 2198, + "loc": { + "start": { + "line": 74, + "column": 48 + }, + "end": { + "line": 74, + "column": 56 + } + }, + "name": "lastName" + }, + "value": { + "type": "BinaryExpression", + "start": 2200, + "end": 2239, + "loc": { + "start": { + "line": 74, + "column": 58 + }, + "end": { + "line": 74, + "column": 97 + } + }, + "left": { + "type": "CallExpression", + "start": 2200, + "end": 2235, + "loc": { + "start": { + "line": 74, + "column": 58 + }, + "end": { + "line": 74, + "column": 93 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2200, + "end": 2232, + "loc": { + "start": { + "line": 74, + "column": 58 + }, + "end": { + "line": 74, + "column": 90 + } + }, + "object": { + "type": "MemberExpression", + "start": 2200, + "end": 2225, + "loc": { + "start": { + "line": 74, + "column": 58 + }, + "end": { + "line": 74, + "column": 83 + } + }, + "object": { + "type": "MemberExpression", + "start": 2200, + "end": 2215, + "loc": { + "start": { + "line": 74, + "column": 58 + }, + "end": { + "line": 74, + "column": 73 + } + }, + "object": { + "type": "MemberExpression", + "start": 2200, + "end": 2210, + "loc": { + "start": { + "line": 74, + "column": 58 + }, + "end": { + "line": 74, + "column": 68 + } + }, + "object": { + "type": "ThisExpression", + "start": 2200, + "end": 2204, + "loc": { + "start": { + "line": 74, + "column": 58 + }, + "end": { + "line": 74, + "column": 62 + } + } + }, + "property": { + "type": "Identifier", + "start": 2205, + "end": 2210, + "loc": { + "start": { + "line": 74, + "column": 63 + }, + "end": { + "line": 74, + "column": 68 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2211, + "end": 2215, + "loc": { + "start": { + "line": 74, + "column": 69 + }, + "end": { + "line": 74, + "column": 73 + } + }, + "name": "user" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2216, + "end": 2225, + "loc": { + "start": { + "line": 74, + "column": 74 + }, + "end": { + "line": 74, + "column": 83 + } + }, + "name": "last_name" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2226, + "end": 2232, + "loc": { + "start": { + "line": 74, + "column": 84 + }, + "end": { + "line": 74, + "column": 90 + } + }, + "name": "substr" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 2233, + "end": 2234, + "loc": { + "start": { + "line": 74, + "column": 91 + }, + "end": { + "line": 74, + "column": 92 + } + }, + "value": 0, + "rawValue": 0, + "raw": "0" + } + ] + }, + "operator": "+", + "right": { + "type": "Literal", + "start": 2236, + "end": 2239, + "loc": { + "start": { + "line": 74, + "column": 94 + }, + "end": { + "line": 74, + "column": 97 + } + }, + "value": ".", + "rawValue": ".", + "raw": "'.'" + } + }, + "kind": "init" + }, + { + "type": "Property", + "start": 2289, + "end": 2319, + "loc": { + "start": { + "line": 75, + "column": 48 + }, + "end": { + "line": 75, + "column": 78 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2289, + "end": 2291, + "loc": { + "start": { + "line": 75, + "column": 48 + }, + "end": { + "line": 75, + "column": 50 + } + }, + "name": "id" + }, + "value": { + "type": "MemberExpression", + "start": 2293, + "end": 2319, + "loc": { + "start": { + "line": 75, + "column": 52 + }, + "end": { + "line": 75, + "column": 78 + } + }, + "object": { + "type": "MemberExpression", + "start": 2293, + "end": 2308, + "loc": { + "start": { + "line": 75, + "column": 52 + }, + "end": { + "line": 75, + "column": 67 + } + }, + "object": { + "type": "MemberExpression", + "start": 2293, + "end": 2303, + "loc": { + "start": { + "line": 75, + "column": 52 + }, + "end": { + "line": 75, + "column": 62 + } + }, + "object": { + "type": "ThisExpression", + "start": 2293, + "end": 2297, + "loc": { + "start": { + "line": 75, + "column": 52 + }, + "end": { + "line": 75, + "column": 56 + } + } + }, + "property": { + "type": "Identifier", + "start": 2298, + "end": 2303, + "loc": { + "start": { + "line": 75, + "column": 57 + }, + "end": { + "line": 75, + "column": 62 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2304, + "end": 2308, + "loc": { + "start": { + "line": 75, + "column": 63 + }, + "end": { + "line": 75, + "column": 67 + } + }, + "name": "user" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2309, + "end": 2319, + "loc": { + "start": { + "line": 75, + "column": 68 + }, + "end": { + "line": 75, + "column": 78 + } + }, + "name": "first_name" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 2369, + "end": 2397, + "loc": { + "start": { + "line": 76, + "column": 48 + }, + "end": { + "line": 76, + "column": 76 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2369, + "end": 2374, + "loc": { + "start": { + "line": 76, + "column": 48 + }, + "end": { + "line": 76, + "column": 53 + } + }, + "name": "email" + }, + "value": { + "type": "MemberExpression", + "start": 2376, + "end": 2397, + "loc": { + "start": { + "line": 76, + "column": 55 + }, + "end": { + "line": 76, + "column": 76 + } + }, + "object": { + "type": "MemberExpression", + "start": 2376, + "end": 2391, + "loc": { + "start": { + "line": 76, + "column": 55 + }, + "end": { + "line": 76, + "column": 70 + } + }, + "object": { + "type": "MemberExpression", + "start": 2376, + "end": 2386, + "loc": { + "start": { + "line": 76, + "column": 55 + }, + "end": { + "line": 76, + "column": 65 + } + }, + "object": { + "type": "ThisExpression", + "start": 2376, + "end": 2380, + "loc": { + "start": { + "line": 76, + "column": 55 + }, + "end": { + "line": 76, + "column": 59 + } + } + }, + "property": { + "type": "Identifier", + "start": 2381, + "end": 2386, + "loc": { + "start": { + "line": 76, + "column": 60 + }, + "end": { + "line": 76, + "column": 65 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2387, + "end": 2391, + "loc": { + "start": { + "line": 76, + "column": 66 + }, + "end": { + "line": 76, + "column": 70 + } + }, + "name": "user" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2392, + "end": 2397, + "loc": { + "start": { + "line": 76, + "column": 71 + }, + "end": { + "line": 76, + "column": 76 + } + }, + "name": "email" + }, + "computed": false + }, + "kind": "init" + } + ] + } + } + } + ], + "name": { + "type": "JSXMemberExpression", + "start": 1749, + "end": 1767, + "loc": { + "start": { + "line": 68, + "column": 41 + }, + "end": { + "line": 68, + "column": 59 + } + }, + "object": { + "type": "JSXIdentifier", + "start": 1749, + "end": 1757, + "loc": { + "start": { + "line": 68, + "column": 41 + }, + "end": { + "line": 68, + "column": 49 + } + }, + "name": "Activity" + }, + "property": { + "type": "JSXIdentifier", + "start": 1758, + "end": 1767, + "loc": { + "start": { + "line": 68, + "column": 50 + }, + "end": { + "line": 68, + "column": 59 + } + }, + "name": "Following" + } + }, + "selfClosing": true + }, + "closingElement": null, + "children": [], + "parenthesizedExpression": true + } + } + }, + { + "type": "BreakStatement", + "start": 2522, + "end": 2527, + "loc": { + "start": { + "line": 79, + "column": 36 + }, + "end": { + "line": 79, + "column": 41 + } + }, + "label": null + } + ], + "test": { + "type": "Literal", + "start": 1652, + "end": 1660, + "loc": { + "start": { + "line": 66, + "column": 37 + }, + "end": { + "line": 66, + "column": 45 + } + }, + "value": "follow", + "rawValue": "follow", + "raw": "'follow'" + } + }, + { + "type": "SwitchCase", + "start": 2560, + "end": 2734, + "loc": { + "start": { + "line": 80, + "column": 32 + }, + "end": { + "line": 82, + "column": 41 + } + }, + "consequent": [ + { + "type": "ExpressionStatement", + "start": 2609, + "end": 2692, + "loc": { + "start": { + "line": 81, + "column": 36 + }, + "end": { + "line": 81, + "column": 119 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 2609, + "end": 2692, + "loc": { + "start": { + "line": 81, + "column": 36 + }, + "end": { + "line": 81, + "column": 119 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 2609, + "end": 2614, + "loc": { + "start": { + "line": 81, + "column": 36 + }, + "end": { + "line": 81, + "column": 41 + } + }, + "name": "child" + }, + "right": { + "type": "JSXElement", + "start": 2617, + "end": 2692, + "loc": { + "start": { + "line": 81, + "column": 44 + }, + "end": { + "line": 81, + "column": 119 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2617, + "end": 2692, + "loc": { + "start": { + "line": 81, + "column": 44 + }, + "end": { + "line": 81, + "column": 119 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2633, + "end": 2690, + "loc": { + "start": { + "line": 81, + "column": 60 + }, + "end": { + "line": 81, + "column": 117 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2633, + "end": 2641, + "loc": { + "start": { + "line": 81, + "column": 60 + }, + "end": { + "line": 81, + "column": 68 + } + }, + "name": "pictures" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2642, + "end": 2690, + "loc": { + "start": { + "line": 81, + "column": 69 + }, + "end": { + "line": 81, + "column": 117 + } + }, + "expression": { + "type": "ArrayExpression", + "start": 2643, + "end": 2689, + "loc": { + "start": { + "line": 81, + "column": 70 + }, + "end": { + "line": 81, + "column": 116 + } + }, + "elements": [ + { + "type": "ObjectExpression", + "start": 2644, + "end": 2688, + "loc": { + "start": { + "line": 81, + "column": 71 + }, + "end": { + "line": 81, + "column": 115 + } + }, + "properties": [ + { + "type": "Property", + "start": 2646, + "end": 2664, + "loc": { + "start": { + "line": 81, + "column": 73 + }, + "end": { + "line": 81, + "column": 91 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2646, + "end": 2649, + "loc": { + "start": { + "line": 81, + "column": 73 + }, + "end": { + "line": 81, + "column": 76 + } + }, + "name": "src" + }, + "value": { + "type": "MemberExpression", + "start": 2651, + "end": 2664, + "loc": { + "start": { + "line": 81, + "column": 78 + }, + "end": { + "line": 81, + "column": 91 + } + }, + "object": { + "type": "Identifier", + "start": 2651, + "end": 2655, + "loc": { + "start": { + "line": 81, + "column": 78 + }, + "end": { + "line": 81, + "column": 82 + } + }, + "name": "data" + }, + "property": { + "type": "Identifier", + "start": 2656, + "end": 2664, + "loc": { + "start": { + "line": 81, + "column": 83 + }, + "end": { + "line": 81, + "column": 91 + } + }, + "name": "filename" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 2666, + "end": 2685, + "loc": { + "start": { + "line": 81, + "column": 93 + }, + "end": { + "line": 81, + "column": 112 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2666, + "end": 2668, + "loc": { + "start": { + "line": 81, + "column": 93 + }, + "end": { + "line": 81, + "column": 95 + } + }, + "name": "id" + }, + "value": { + "type": "MemberExpression", + "start": 2671, + "end": 2685, + "loc": { + "start": { + "line": 81, + "column": 98 + }, + "end": { + "line": 81, + "column": 112 + } + }, + "object": { + "type": "Identifier", + "start": 2671, + "end": 2675, + "loc": { + "start": { + "line": 81, + "column": 98 + }, + "end": { + "line": 81, + "column": 102 + } + }, + "name": "data" + }, + "property": { + "type": "Identifier", + "start": 2676, + "end": 2685, + "loc": { + "start": { + "line": 81, + "column": 103 + }, + "end": { + "line": 81, + "column": 112 + } + }, + "name": "upload_id" + }, + "computed": false + }, + "kind": "init" + } + ] + } + ] + } + } + } + ], + "name": { + "type": "JSXMemberExpression", + "start": 2618, + "end": 2632, + "loc": { + "start": { + "line": 81, + "column": 45 + }, + "end": { + "line": 81, + "column": 59 + } + }, + "object": { + "type": "JSXIdentifier", + "start": 2618, + "end": 2626, + "loc": { + "start": { + "line": 81, + "column": 45 + }, + "end": { + "line": 81, + "column": 53 + } + }, + "name": "Activity" + }, + "property": { + "type": "JSXIdentifier", + "start": 2627, + "end": 2632, + "loc": { + "start": { + "line": 81, + "column": 54 + }, + "end": { + "line": 81, + "column": 59 + } + }, + "name": "Liked" + } + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + } + }, + { + "type": "BreakStatement", + "start": 2729, + "end": 2734, + "loc": { + "start": { + "line": 82, + "column": 36 + }, + "end": { + "line": 82, + "column": 41 + } + }, + "label": null + } + ], + "test": { + "type": "Literal", + "start": 2565, + "end": 2571, + "loc": { + "start": { + "line": 80, + "column": 37 + }, + "end": { + "line": 80, + "column": 43 + } + }, + "value": "like", + "rawValue": "like", + "raw": "'like'" + } + }, + { + "type": "SwitchCase", + "start": 2768, + "end": 2819, + "loc": { + "start": { + "line": 84, + "column": 32 + }, + "end": { + "line": 85, + "column": 42 + } + }, + "consequent": [ + { + "type": "ReturnStatement", + "start": 2813, + "end": 2819, + "loc": { + "start": { + "line": 85, + "column": 36 + }, + "end": { + "line": 85, + "column": 42 + } + }, + "argument": null + } + ], + "test": null + } + ] + }, + { + "type": "ReturnStatement", + "start": 2879, + "end": 3564, + "loc": { + "start": { + "line": 88, + "column": 28 + }, + "end": { + "line": 101, + "column": 29 + } + }, + "argument": { + "type": "JSXElement", + "start": 2920, + "end": 3534, + "loc": { + "start": { + "line": 89, + "column": 32 + }, + "end": { + "line": 100, + "column": 48 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2920, + "end": 3441, + "loc": { + "start": { + "line": 89, + "column": 32 + }, + "end": { + "line": 98, + "column": 39 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2971, + "end": 3003, + "loc": { + "start": { + "line": 90, + "column": 36 + }, + "end": { + "line": 90, + "column": 68 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2971, + "end": 2974, + "loc": { + "start": { + "line": 90, + "column": 36 + }, + "end": { + "line": 90, + "column": 39 + } + }, + "name": "key" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2975, + "end": 3003, + "loc": { + "start": { + "line": 90, + "column": 40 + }, + "end": { + "line": 90, + "column": 68 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 2976, + "end": 3002, + "loc": { + "start": { + "line": 90, + "column": 41 + }, + "end": { + "line": 90, + "column": 67 + } + }, + "expressions": [ + { + "type": "Identifier", + "start": 2993, + "end": 3000, + "loc": { + "start": { + "line": 90, + "column": 58 + }, + "end": { + "line": 90, + "column": 65 + } + }, + "name": "last_id" + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 2977, + "end": 2991, + "loc": { + "start": { + "line": 90, + "column": 42 + }, + "end": { + "line": 90, + "column": 56 + } + }, + "value": { + "raw": "activity-item-", + "cooked": "activity-item-" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 3001, + "end": 3001, + "loc": { + "start": { + "line": 90, + "column": 66 + }, + "end": { + "line": 90, + "column": 66 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + }, + { + "type": "JSXAttribute", + "start": 3040, + "end": 3051, + "loc": { + "start": { + "line": 91, + "column": 36 + }, + "end": { + "line": 91, + "column": 47 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3040, + "end": 3044, + "loc": { + "start": { + "line": 91, + "column": 36 + }, + "end": { + "line": 91, + "column": 40 + } + }, + "name": "type" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 3045, + "end": 3051, + "loc": { + "start": { + "line": 91, + "column": 41 + }, + "end": { + "line": 91, + "column": 47 + } + }, + "expression": { + "type": "Identifier", + "start": 3046, + "end": 3050, + "loc": { + "start": { + "line": 91, + "column": 42 + }, + "end": { + "line": 91, + "column": 46 + } + }, + "name": "type" + } + } + }, + { + "type": "JSXAttribute", + "start": 3088, + "end": 3109, + "loc": { + "start": { + "line": 92, + "column": 36 + }, + "end": { + "line": 92, + "column": 57 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3088, + "end": 3097, + "loc": { + "start": { + "line": 92, + "column": 36 + }, + "end": { + "line": 92, + "column": 45 + } + }, + "name": "timestamp" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 3098, + "end": 3109, + "loc": { + "start": { + "line": 92, + "column": 46 + }, + "end": { + "line": 92, + "column": 57 + } + }, + "expression": { + "type": "Identifier", + "start": 3099, + "end": 3108, + "loc": { + "start": { + "line": 92, + "column": 47 + }, + "end": { + "line": 92, + "column": 56 + } + }, + "name": "timestamp" + } + } + }, + { + "type": "JSXAttribute", + "start": 3146, + "end": 3440, + "loc": { + "start": { + "line": 93, + "column": 36 + }, + "end": { + "line": 98, + "column": 38 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3146, + "end": 3151, + "loc": { + "start": { + "line": 93, + "column": 36 + }, + "end": { + "line": 93, + "column": 41 + } + }, + "name": "actor" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 3152, + "end": 3440, + "loc": { + "start": { + "line": 93, + "column": 42 + }, + "end": { + "line": 98, + "column": 38 + } + }, + "expression": { + "type": "ObjectExpression", + "start": 3153, + "end": 3439, + "loc": { + "start": { + "line": 93, + "column": 43 + }, + "end": { + "line": 98, + "column": 37 + } + }, + "properties": [ + { + "type": "Property", + "start": 3195, + "end": 3216, + "loc": { + "start": { + "line": 94, + "column": 40 + }, + "end": { + "line": 94, + "column": 61 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3195, + "end": 3204, + "loc": { + "start": { + "line": 94, + "column": 40 + }, + "end": { + "line": 94, + "column": 49 + } + }, + "name": "firstName" + }, + "value": { + "type": "Identifier", + "start": 3206, + "end": 3216, + "loc": { + "start": { + "line": 94, + "column": 51 + }, + "end": { + "line": 94, + "column": 61 + } + }, + "name": "first_name" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 3258, + "end": 3293, + "loc": { + "start": { + "line": 95, + "column": 40 + }, + "end": { + "line": 95, + "column": 75 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3258, + "end": 3266, + "loc": { + "start": { + "line": 95, + "column": 40 + }, + "end": { + "line": 95, + "column": 48 + } + }, + "name": "lastName" + }, + "value": { + "type": "BinaryExpression", + "start": 3268, + "end": 3293, + "loc": { + "start": { + "line": 95, + "column": 50 + }, + "end": { + "line": 95, + "column": 75 + } + }, + "left": { + "type": "CallExpression", + "start": 3268, + "end": 3287, + "loc": { + "start": { + "line": 95, + "column": 50 + }, + "end": { + "line": 95, + "column": 69 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3268, + "end": 3284, + "loc": { + "start": { + "line": 95, + "column": 50 + }, + "end": { + "line": 95, + "column": 66 + } + }, + "object": { + "type": "Identifier", + "start": 3268, + "end": 3277, + "loc": { + "start": { + "line": 95, + "column": 50 + }, + "end": { + "line": 95, + "column": 59 + } + }, + "name": "last_name" + }, + "property": { + "type": "Identifier", + "start": 3278, + "end": 3284, + "loc": { + "start": { + "line": 95, + "column": 60 + }, + "end": { + "line": 95, + "column": 66 + } + }, + "name": "substr" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 3285, + "end": 3286, + "loc": { + "start": { + "line": 95, + "column": 67 + }, + "end": { + "line": 95, + "column": 68 + } + }, + "value": 0, + "rawValue": 0, + "raw": "0" + } + ] + }, + "operator": "+", + "right": { + "type": "Literal", + "start": 3290, + "end": 3293, + "loc": { + "start": { + "line": 95, + "column": 72 + }, + "end": { + "line": 95, + "column": 75 + } + }, + "value": ".", + "rawValue": ".", + "raw": "'.'" + } + }, + "kind": "init" + }, + { + "type": "Property", + "start": 3335, + "end": 3346, + "loc": { + "start": { + "line": 96, + "column": 40 + }, + "end": { + "line": 96, + "column": 51 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3335, + "end": 3337, + "loc": { + "start": { + "line": 96, + "column": 40 + }, + "end": { + "line": 96, + "column": 42 + } + }, + "name": "id" + }, + "value": { + "type": "Identifier", + "start": 3339, + "end": 3346, + "loc": { + "start": { + "line": 96, + "column": 44 + }, + "end": { + "line": 96, + "column": 51 + } + }, + "name": "user_id" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 3388, + "end": 3400, + "loc": { + "start": { + "line": 97, + "column": 40 + }, + "end": { + "line": 97, + "column": 52 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3388, + "end": 3393, + "loc": { + "start": { + "line": 97, + "column": 40 + }, + "end": { + "line": 97, + "column": 45 + } + }, + "name": "email" + }, + "value": { + "type": "Identifier", + "start": 3395, + "end": 3400, + "loc": { + "start": { + "line": 97, + "column": 47 + }, + "end": { + "line": 97, + "column": 52 + } + }, + "name": "email" + }, + "kind": "init" + } + ] + } + } + } + ], + "name": { + "type": "JSXMemberExpression", + "start": 2921, + "end": 2934, + "loc": { + "start": { + "line": 89, + "column": 33 + }, + "end": { + "line": 89, + "column": 46 + } + }, + "object": { + "type": "JSXIdentifier", + "start": 2921, + "end": 2929, + "loc": { + "start": { + "line": 89, + "column": 33 + }, + "end": { + "line": 89, + "column": 41 + } + }, + "name": "Activity" + }, + "property": { + "type": "JSXIdentifier", + "start": 2930, + "end": 2934, + "loc": { + "start": { + "line": 89, + "column": 42 + }, + "end": { + "line": 89, + "column": 46 + } + }, + "name": "Item" + } + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3518, + "end": 3534, + "loc": { + "start": { + "line": 100, + "column": 32 + }, + "end": { + "line": 100, + "column": 48 + } + }, + "name": { + "type": "JSXMemberExpression", + "start": 3520, + "end": 3533, + "loc": { + "start": { + "line": 100, + "column": 34 + }, + "end": { + "line": 100, + "column": 47 + } + }, + "object": { + "type": "JSXIdentifier", + "start": 3520, + "end": 3528, + "loc": { + "start": { + "line": 100, + "column": 34 + }, + "end": { + "line": 100, + "column": 42 + } + }, + "name": "Activity" + }, + "property": { + "type": "JSXIdentifier", + "start": 3529, + "end": 3533, + "loc": { + "start": { + "line": 100, + "column": 43 + }, + "end": { + "line": 100, + "column": 47 + } + }, + "name": "Item" + } + } + }, + "children": [ + { + "type": "Literal", + "start": 3441, + "end": 3478, + "loc": { + "start": { + "line": 98, + "column": 39 + }, + "end": { + "line": 99, + "column": 36 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 3478, + "end": 3485, + "loc": { + "start": { + "line": 99, + "column": 36 + }, + "end": { + "line": 99, + "column": 43 + } + }, + "expression": { + "type": "Identifier", + "start": 3479, + "end": 3484, + "loc": { + "start": { + "line": 99, + "column": 37 + }, + "end": { + "line": 99, + "column": 42 + } + }, + "name": "child" + } + }, + { + "type": "Literal", + "start": 3485, + "end": 3518, + "loc": { + "start": { + "line": 99, + "column": 43 + }, + "end": { + "line": 100, + "column": 32 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + } + ] + } + }, + { + "type": "Literal", + "start": 3592, + "end": 3613, + "loc": { + "start": { + "line": 102, + "column": 27 + }, + "end": { + "line": 103, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 3618, + "end": 3635, + "loc": { + "start": { + "line": 103, + "column": 25 + }, + "end": { + "line": 104, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 3641, + "end": 3654, + "loc": { + "start": { + "line": 104, + "column": 22 + }, + "end": { + "line": 105, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 848, + "end": 896, + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 43, + "column": 7 + } + }, + "range": [ + 848, + 896 + ] + } + ] + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * FollowingActivity\n * '/profile/:id/following-activity'\n * React Route - Documentation: https://github.com/reactjs/react-router/tree/master/docs\n ", + "start": 286, + "end": 440, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 19, + "column": 3 + } + }, + "range": [ + 286, + 440 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * connect\n * Connects React component to a Redux store\n * Documentation: https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options\n ", + "start": 3681, + "end": 3886, + "loc": { + "start": { + "line": 111, + "column": 0 + }, + "end": { + "line": 115, + "column": 3 + } + }, + "range": [ + 3681, + 3886 + ] + } + ] + }, + { + "type": "ExportDefaultDeclaration", + "start": 3887, + "end": 3996, + "loc": { + "start": { + "line": 116, + "column": 0 + }, + "end": { + "line": 119, + "column": 22 + } + }, + "declaration": { + "type": "CallExpression", + "start": 3902, + "end": 3996, + "loc": { + "start": { + "line": 116, + "column": 15 + }, + "end": { + "line": 119, + "column": 22 + } + }, + "callee": { + "type": "CallExpression", + "start": 3902, + "end": 3977, + "loc": { + "start": { + "line": 116, + "column": 15 + }, + "end": { + "line": 119, + "column": 3 + } + }, + "callee": { + "type": "Identifier", + "start": 3902, + "end": 3909, + "loc": { + "start": { + "line": 116, + "column": 15 + }, + "end": { + "line": 116, + "column": 22 + } + }, + "name": "connect", + "leadingComments": null + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 3910, + "end": 3976, + "loc": { + "start": { + "line": 116, + "column": 23 + }, + "end": { + "line": 119, + "column": 2 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 3910, + "end": 3915, + "loc": { + "start": { + "line": 116, + "column": 23 + }, + "end": { + "line": 116, + "column": 28 + } + }, + "name": "state" + } + ], + "body": { + "type": "ObjectExpression", + "start": 3920, + "end": 3975, + "loc": { + "start": { + "line": 116, + "column": 33 + }, + "end": { + "line": 119, + "column": 1 + } + }, + "properties": [ + { + "type": "Property", + "start": 3926, + "end": 3950, + "loc": { + "start": { + "line": 117, + "column": 4 + }, + "end": { + "line": 117, + "column": 28 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3926, + "end": 3934, + "loc": { + "start": { + "line": 117, + "column": 4 + }, + "end": { + "line": 117, + "column": 12 + } + }, + "name": "activity" + }, + "value": { + "type": "MemberExpression", + "start": 3936, + "end": 3950, + "loc": { + "start": { + "line": 117, + "column": 14 + }, + "end": { + "line": 117, + "column": 28 + } + }, + "object": { + "type": "Identifier", + "start": 3936, + "end": 3941, + "loc": { + "start": { + "line": 117, + "column": 14 + }, + "end": { + "line": 117, + "column": 19 + } + }, + "name": "state" + }, + "property": { + "type": "Identifier", + "start": 3942, + "end": 3950, + "loc": { + "start": { + "line": 117, + "column": 20 + }, + "end": { + "line": 117, + "column": 28 + } + }, + "name": "Activity" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 3956, + "end": 3972, + "loc": { + "start": { + "line": 118, + "column": 4 + }, + "end": { + "line": 118, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3956, + "end": 3960, + "loc": { + "start": { + "line": 118, + "column": 4 + }, + "end": { + "line": 118, + "column": 8 + } + }, + "name": "user" + }, + "value": { + "type": "MemberExpression", + "start": 3962, + "end": 3972, + "loc": { + "start": { + "line": 118, + "column": 10 + }, + "end": { + "line": 118, + "column": 20 + } + }, + "object": { + "type": "Identifier", + "start": 3962, + "end": 3967, + "loc": { + "start": { + "line": 118, + "column": 10 + }, + "end": { + "line": 118, + "column": 15 + } + }, + "name": "state" + }, + "property": { + "type": "Identifier", + "start": 3968, + "end": 3972, + "loc": { + "start": { + "line": 118, + "column": 16 + }, + "end": { + "line": 118, + "column": 20 + } + }, + "name": "User" + }, + "computed": false + }, + "kind": "init" + } + ], + "parenthesizedExpression": true + } + } + ], + "leadingComments": null + }, + "arguments": [ + { + "type": "Identifier", + "start": 3978, + "end": 3995, + "loc": { + "start": { + "line": 119, + "column": 4 + }, + "end": { + "line": 119, + "column": 21 + } + }, + "name": "FollowingActivity" + } + ], + "leadingComments": [ + { + "type": "Block", + "value": "*\n * connect\n * Connects React component to a Redux store\n * Documentation: https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options\n ", + "start": 3681, + "end": 3886, + "loc": { + "start": { + "line": 111, + "column": 0 + }, + "end": { + "line": 115, + "column": 3 + } + }, + "range": [ + 3681, + 3886 + ] + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * connect\n * Connects React component to a Redux store\n * Documentation: https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options\n ", + "start": 3681, + "end": 3886, + "loc": { + "start": { + "line": 111, + "column": 0 + }, + "end": { + "line": 115, + "column": 3 + } + }, + "range": [ + 3681, + 3886 + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/routes/FollowingActivity/index.js.json b/app/docs/ast/source/routes/FollowingActivity/index.js.json new file mode 100644 index 0000000..cca4c9a --- /dev/null +++ b/app/docs/ast/source/routes/FollowingActivity/index.js.json @@ -0,0 +1,1589 @@ +{ + "type": "Program", + "start": 0, + "end": 944, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 44, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 18, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 18 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ImportDeclaration", + "start": 26, + "end": 71, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 45 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 35, + "end": 49, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 23 + } + }, + "imported": { + "type": "Identifier", + "start": 35, + "end": 49, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 23 + } + }, + "name": "browserHistory" + }, + "local": { + "type": "Identifier", + "start": 35, + "end": 49, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 23 + } + }, + "name": "browserHistory" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 57, + "end": 71, + "loc": { + "start": { + "line": 2, + "column": 31 + }, + "end": { + "line": 2, + "column": 45 + } + }, + "value": "react-router", + "rawValue": "react-router", + "raw": "'react-router'" + } + }, + { + "type": "ImportDeclaration", + "start": 72, + "end": 111, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 39 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 81, + "end": 91, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 19 + } + }, + "imported": { + "type": "Identifier", + "start": 81, + "end": 91, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 19 + } + }, + "name": "BackButton" + }, + "local": { + "type": "Identifier", + "start": 81, + "end": 91, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 19 + } + }, + "name": "BackButton" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 99, + "end": 111, + "loc": { + "start": { + "line": 3, + "column": 27 + }, + "end": { + "line": 3, + "column": 39 + } + }, + "value": "components", + "rawValue": "components", + "raw": "'components'" + } + }, + { + "type": "ExpressionStatement", + "start": 113, + "end": 943, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 43, + "column": 1 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 113, + "end": 943, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 43, + "column": 1 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 113, + "end": 127, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 14 + } + }, + "object": { + "type": "Identifier", + "start": 113, + "end": 119, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 6 + } + }, + "name": "module" + }, + "property": { + "type": "Identifier", + "start": 120, + "end": 127, + "loc": { + "start": { + "line": 5, + "column": 7 + }, + "end": { + "line": 5, + "column": 14 + } + }, + "name": "exports" + }, + "computed": false + }, + "right": { + "type": "ObjectExpression", + "start": 130, + "end": 943, + "loc": { + "start": { + "line": 5, + "column": 17 + }, + "end": { + "line": 43, + "column": 1 + } + }, + "properties": [ + { + "type": "Property", + "start": 136, + "end": 175, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 6, + "column": 43 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 136, + "end": 140, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 6, + "column": 8 + } + }, + "name": "path" + }, + "value": { + "type": "Literal", + "start": 142, + "end": 175, + "loc": { + "start": { + "line": 6, + "column": 10 + }, + "end": { + "line": 6, + "column": 43 + } + }, + "value": "/profile/:id/following-activity", + "rawValue": "/profile/:id/following-activity", + "raw": "'/profile/:id/following-activity'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 278, + "end": 369, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 15, + "column": 5 + } + }, + "method": true, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 278, + "end": 290, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 16 + } + }, + "name": "getComponent", + "leadingComments": null + }, + "kind": "init", + "value": { + "type": "FunctionExpression", + "start": 290, + "end": 369, + "loc": { + "start": { + "line": 13, + "column": 16 + }, + "end": { + "line": 15, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 291, + "end": 299, + "loc": { + "start": { + "line": 13, + "column": 17 + }, + "end": { + "line": 13, + "column": 25 + } + }, + "name": "location" + }, + { + "type": "Identifier", + "start": 301, + "end": 303, + "loc": { + "start": { + "line": 13, + "column": 27 + }, + "end": { + "line": 13, + "column": 29 + } + }, + "name": "cb" + } + ], + "body": { + "type": "BlockStatement", + "start": 305, + "end": 369, + "loc": { + "start": { + "line": 13, + "column": 31 + }, + "end": { + "line": 15, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 315, + "end": 363, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 56 + } + }, + "expression": { + "type": "CallExpression", + "start": 315, + "end": 363, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 56 + } + }, + "callee": { + "type": "Identifier", + "start": 315, + "end": 317, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 10 + } + }, + "name": "cb" + }, + "arguments": [ + { + "type": "Literal", + "start": 318, + "end": 322, + "loc": { + "start": { + "line": 14, + "column": 11 + }, + "end": { + "line": 14, + "column": 15 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + { + "type": "MemberExpression", + "start": 324, + "end": 362, + "loc": { + "start": { + "line": 14, + "column": 17 + }, + "end": { + "line": 14, + "column": 55 + } + }, + "object": { + "type": "CallExpression", + "start": 324, + "end": 354, + "loc": { + "start": { + "line": 14, + "column": 17 + }, + "end": { + "line": 14, + "column": 47 + } + }, + "callee": { + "type": "Identifier", + "start": 324, + "end": 331, + "loc": { + "start": { + "line": 14, + "column": 17 + }, + "end": { + "line": 14, + "column": 24 + } + }, + "name": "require" + }, + "arguments": [ + { + "type": "Literal", + "start": 332, + "end": 353, + "loc": { + "start": { + "line": 14, + "column": 25 + }, + "end": { + "line": 14, + "column": 46 + } + }, + "value": "./FollowingActivity", + "rawValue": "./FollowingActivity", + "raw": "'./FollowingActivity'" + } + ] + }, + "property": { + "type": "Identifier", + "start": 355, + "end": 362, + "loc": { + "start": { + "line": 14, + "column": 48 + }, + "end": { + "line": 14, + "column": 55 + } + }, + "name": "default" + }, + "computed": false + } + ] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * getComponent\n * @param location\n * @param cb {Function} callback\n ", + "start": 182, + "end": 273, + "loc": { + "start": { + "line": 8, + "column": 4 + }, + "end": { + "line": 12, + "column": 7 + } + }, + "range": [ + 182, + 273 + ] + } + ] + }, + { + "type": "Property", + "start": 473, + "end": 602, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 24, + "column": 5 + } + }, + "method": true, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 473, + "end": 486, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 17 + } + }, + "name": "getHeaderLeft", + "leadingComments": null + }, + "kind": "init", + "value": { + "type": "FunctionExpression", + "start": 486, + "end": 602, + "loc": { + "start": { + "line": 22, + "column": 17 + }, + "end": { + "line": 24, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 487, + "end": 495, + "loc": { + "start": { + "line": 22, + "column": 18 + }, + "end": { + "line": 22, + "column": 26 + } + }, + "name": "location" + }, + { + "type": "Identifier", + "start": 497, + "end": 499, + "loc": { + "start": { + "line": 22, + "column": 28 + }, + "end": { + "line": 22, + "column": 30 + } + }, + "name": "cb" + } + ], + "body": { + "type": "BlockStatement", + "start": 501, + "end": 602, + "loc": { + "start": { + "line": 22, + "column": 32 + }, + "end": { + "line": 24, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 511, + "end": 596, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 93 + } + }, + "expression": { + "type": "CallExpression", + "start": 511, + "end": 596, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 93 + } + }, + "callee": { + "type": "Identifier", + "start": 511, + "end": 513, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 10 + } + }, + "name": "cb" + }, + "arguments": [ + { + "type": "Literal", + "start": 514, + "end": 518, + "loc": { + "start": { + "line": 23, + "column": 11 + }, + "end": { + "line": 23, + "column": 15 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + { + "type": "JSXElement", + "start": 520, + "end": 595, + "loc": { + "start": { + "line": 23, + "column": 17 + }, + "end": { + "line": 23, + "column": 92 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 520, + "end": 595, + "loc": { + "start": { + "line": 23, + "column": 17 + }, + "end": { + "line": 23, + "column": 92 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 532, + "end": 558, + "loc": { + "start": { + "line": 23, + "column": 29 + }, + "end": { + "line": 23, + "column": 55 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 532, + "end": 537, + "loc": { + "start": { + "line": 23, + "column": 29 + }, + "end": { + "line": 23, + "column": 34 + } + }, + "name": "label" + }, + "value": { + "type": "Literal", + "start": 538, + "end": 558, + "loc": { + "start": { + "line": 23, + "column": 35 + }, + "end": { + "line": 23, + "column": 55 + } + }, + "value": "Following Activity", + "rawValue": null, + "raw": "\"Following Activity\"" + } + }, + { + "type": "JSXAttribute", + "start": 559, + "end": 593, + "loc": { + "start": { + "line": 23, + "column": 56 + }, + "end": { + "line": 23, + "column": 90 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 559, + "end": 561, + "loc": { + "start": { + "line": 23, + "column": 56 + }, + "end": { + "line": 23, + "column": 58 + } + }, + "name": "to" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 562, + "end": 593, + "loc": { + "start": { + "line": 23, + "column": 59 + }, + "end": { + "line": 23, + "column": 90 + } + }, + "expression": { + "type": "ArrowFunctionExpression", + "start": 563, + "end": 592, + "loc": { + "start": { + "line": 23, + "column": 60 + }, + "end": { + "line": 23, + "column": 89 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [], + "body": { + "type": "CallExpression", + "start": 569, + "end": 592, + "loc": { + "start": { + "line": 23, + "column": 66 + }, + "end": { + "line": 23, + "column": 89 + } + }, + "callee": { + "type": "MemberExpression", + "start": 569, + "end": 590, + "loc": { + "start": { + "line": 23, + "column": 66 + }, + "end": { + "line": 23, + "column": 87 + } + }, + "object": { + "type": "Identifier", + "start": 569, + "end": 583, + "loc": { + "start": { + "line": 23, + "column": 66 + }, + "end": { + "line": 23, + "column": 80 + } + }, + "name": "browserHistory" + }, + "property": { + "type": "Identifier", + "start": 584, + "end": 590, + "loc": { + "start": { + "line": 23, + "column": 81 + }, + "end": { + "line": 23, + "column": 87 + } + }, + "name": "goBack" + }, + "computed": false + }, + "arguments": [] + } + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 521, + "end": 531, + "loc": { + "start": { + "line": 23, + "column": 18 + }, + "end": { + "line": 23, + "column": 28 + } + }, + "name": "BackButton" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + ] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * getHeaderLeft\n * @param location\n * @param cb {Function} callback\n ", + "start": 376, + "end": 468, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 21, + "column": 7 + } + }, + "range": [ + 376, + 468 + ] + } + ] + }, + { + "type": "Property", + "start": 708, + "end": 772, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "method": true, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 708, + "end": 723, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 19 + } + }, + "name": "getHeaderMiddle", + "leadingComments": null + }, + "kind": "init", + "value": { + "type": "FunctionExpression", + "start": 723, + "end": 772, + "loc": { + "start": { + "line": 31, + "column": 19 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 724, + "end": 732, + "loc": { + "start": { + "line": 31, + "column": 20 + }, + "end": { + "line": 31, + "column": 28 + } + }, + "name": "location" + }, + { + "type": "Identifier", + "start": 734, + "end": 736, + "loc": { + "start": { + "line": 31, + "column": 30 + }, + "end": { + "line": 31, + "column": 32 + } + }, + "name": "cb" + } + ], + "body": { + "type": "BlockStatement", + "start": 738, + "end": 772, + "loc": { + "start": { + "line": 31, + "column": 34 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 748, + "end": 766, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 26 + } + }, + "expression": { + "type": "CallExpression", + "start": 748, + "end": 766, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 26 + } + }, + "callee": { + "type": "Identifier", + "start": 748, + "end": 750, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 10 + } + }, + "name": "cb" + }, + "arguments": [ + { + "type": "Literal", + "start": 751, + "end": 755, + "loc": { + "start": { + "line": 32, + "column": 11 + }, + "end": { + "line": 32, + "column": 15 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + { + "type": "JSXElement", + "start": 757, + "end": 765, + "loc": { + "start": { + "line": 32, + "column": 17 + }, + "end": { + "line": 32, + "column": 25 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 757, + "end": 765, + "loc": { + "start": { + "line": 32, + "column": 17 + }, + "end": { + "line": 32, + "column": 25 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 758, + "end": 762, + "loc": { + "start": { + "line": 32, + "column": 18 + }, + "end": { + "line": 32, + "column": 22 + } + }, + "name": "span" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + ] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * getHeaderMiddle\n * @param location\n * @param cb {Function} callback\n ", + "start": 609, + "end": 703, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 30, + "column": 7 + } + }, + "range": [ + 609, + 703 + ] + } + ] + }, + { + "type": "Property", + "start": 877, + "end": 940, + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 42, + "column": 5 + } + }, + "method": true, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 877, + "end": 891, + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 40, + "column": 18 + } + }, + "name": "getHeaderRight", + "leadingComments": null + }, + "kind": "init", + "value": { + "type": "FunctionExpression", + "start": 891, + "end": 940, + "loc": { + "start": { + "line": 40, + "column": 18 + }, + "end": { + "line": 42, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 892, + "end": 900, + "loc": { + "start": { + "line": 40, + "column": 19 + }, + "end": { + "line": 40, + "column": 27 + } + }, + "name": "location" + }, + { + "type": "Identifier", + "start": 902, + "end": 904, + "loc": { + "start": { + "line": 40, + "column": 29 + }, + "end": { + "line": 40, + "column": 31 + } + }, + "name": "cb" + } + ], + "body": { + "type": "BlockStatement", + "start": 906, + "end": 940, + "loc": { + "start": { + "line": 40, + "column": 33 + }, + "end": { + "line": 42, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 916, + "end": 934, + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 41, + "column": 26 + } + }, + "expression": { + "type": "CallExpression", + "start": 916, + "end": 934, + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 41, + "column": 26 + } + }, + "callee": { + "type": "Identifier", + "start": 916, + "end": 918, + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 41, + "column": 10 + } + }, + "name": "cb" + }, + "arguments": [ + { + "type": "Literal", + "start": 919, + "end": 923, + "loc": { + "start": { + "line": 41, + "column": 11 + }, + "end": { + "line": 41, + "column": 15 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + { + "type": "JSXElement", + "start": 925, + "end": 933, + "loc": { + "start": { + "line": 41, + "column": 17 + }, + "end": { + "line": 41, + "column": 25 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 925, + "end": 933, + "loc": { + "start": { + "line": 41, + "column": 17 + }, + "end": { + "line": 41, + "column": 25 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 926, + "end": 930, + "loc": { + "start": { + "line": 41, + "column": 18 + }, + "end": { + "line": 41, + "column": 22 + } + }, + "name": "span" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + ] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * getHeaderRight\n * @param location\n * @param cb {Function} callback\n ", + "start": 779, + "end": 872, + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 39, + "column": 7 + } + }, + "range": [ + 779, + 872 + ] + } + ] + } + ] + } + } + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/routes/Home/Home.js.json b/app/docs/ast/source/routes/Home/Home.js.json new file mode 100644 index 0000000..bf061f3 --- /dev/null +++ b/app/docs/ast/source/routes/Home/Home.js.json @@ -0,0 +1,8614 @@ +{ + "type": "Program", + "start": 0, + "end": 4044, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 178, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + }, + { + "type": "ImportSpecifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "imported": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + }, + "local": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 33, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 33 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ImportDeclaration", + "start": 41, + "end": 80, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 39 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 50, + "end": 61, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 20 + } + }, + "imported": { + "type": "Identifier", + "start": 50, + "end": 61, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 20 + } + }, + "name": "findDOMNode" + }, + "local": { + "type": "Identifier", + "start": 50, + "end": 61, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 20 + } + }, + "name": "findDOMNode" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 69, + "end": 80, + "loc": { + "start": { + "line": 2, + "column": 28 + }, + "end": { + "line": 2, + "column": 39 + } + }, + "value": "react-dom", + "rawValue": "react-dom", + "raw": "'react-dom'" + } + }, + { + "type": "ImportDeclaration", + "start": 81, + "end": 118, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 37 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 90, + "end": 97, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 16 + } + }, + "imported": { + "type": "Identifier", + "start": 90, + "end": 97, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 16 + } + }, + "name": "connect" + }, + "local": { + "type": "Identifier", + "start": 90, + "end": 97, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 16 + } + }, + "name": "connect" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 105, + "end": 118, + "loc": { + "start": { + "line": 3, + "column": 24 + }, + "end": { + "line": 3, + "column": 37 + } + }, + "value": "react-redux", + "rawValue": "react-redux", + "raw": "'react-redux'" + } + }, + { + "type": "ImportDeclaration", + "start": 119, + "end": 154, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 35 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 128, + "end": 132, + "loc": { + "start": { + "line": 4, + "column": 9 + }, + "end": { + "line": 4, + "column": 13 + } + }, + "imported": { + "type": "Identifier", + "start": 128, + "end": 132, + "loc": { + "start": { + "line": 4, + "column": 9 + }, + "end": { + "line": 4, + "column": 13 + } + }, + "name": "Link" + }, + "local": { + "type": "Identifier", + "start": 128, + "end": 132, + "loc": { + "start": { + "line": 4, + "column": 9 + }, + "end": { + "line": 4, + "column": 13 + } + }, + "name": "Link" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 140, + "end": 154, + "loc": { + "start": { + "line": 4, + "column": 21 + }, + "end": { + "line": 4, + "column": 35 + } + }, + "value": "react-router", + "rawValue": "react-router", + "raw": "'react-router'" + } + }, + { + "type": "ImportDeclaration", + "start": 155, + "end": 182, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 27 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 162, + "end": 165, + "loc": { + "start": { + "line": 5, + "column": 7 + }, + "end": { + "line": 5, + "column": 10 + } + }, + "local": { + "type": "Identifier", + "start": 162, + "end": 165, + "loc": { + "start": { + "line": 5, + "column": 7 + }, + "end": { + "line": 5, + "column": 10 + } + }, + "name": "Ink" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 171, + "end": 182, + "loc": { + "start": { + "line": 5, + "column": 16 + }, + "end": { + "line": 5, + "column": 27 + } + }, + "value": "react-ink", + "rawValue": "react-ink", + "raw": "'react-ink'" + } + }, + { + "type": "ImportDeclaration", + "start": 183, + "end": 213, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 6, + "column": 30 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 190, + "end": 196, + "loc": { + "start": { + "line": 6, + "column": 7 + }, + "end": { + "line": 6, + "column": 13 + } + }, + "local": { + "type": "Identifier", + "start": 190, + "end": 196, + "loc": { + "start": { + "line": 6, + "column": 7 + }, + "end": { + "line": 6, + "column": 13 + } + }, + "name": "stream" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 202, + "end": 213, + "loc": { + "start": { + "line": 6, + "column": 19 + }, + "end": { + "line": 6, + "column": 30 + } + }, + "value": "getstream", + "rawValue": "getstream", + "raw": "'getstream'" + } + }, + { + "type": "ImportDeclaration", + "start": 214, + "end": 241, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 27 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 221, + "end": 227, + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 13 + } + }, + "local": { + "type": "Identifier", + "start": 221, + "end": 227, + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 13 + } + }, + "name": "config" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 233, + "end": 241, + "loc": { + "start": { + "line": 7, + "column": 19 + }, + "end": { + "line": 7, + "column": 27 + } + }, + "value": "config", + "rawValue": "config", + "raw": "'config'" + } + }, + { + "type": "ImportDeclaration", + "start": 243, + "end": 286, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 19 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 256, + "end": 265, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 10, + "column": 13 + } + }, + "imported": { + "type": "Identifier", + "start": 256, + "end": 265, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 10, + "column": 13 + } + }, + "name": "PhotoList" + }, + "local": { + "type": "Identifier", + "start": 256, + "end": 265, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 10, + "column": 13 + } + }, + "name": "PhotoList" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 274, + "end": 286, + "loc": { + "start": { + "line": 11, + "column": 7 + }, + "end": { + "line": 11, + "column": 19 + } + }, + "value": "components", + "rawValue": "components", + "raw": "'components'" + } + }, + { + "type": "ImportDeclaration", + "start": 288, + "end": 367, + "loc": { + "start": { + "line": 13, + "column": 0 + }, + "end": { + "line": 16, + "column": 16 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 301, + "end": 320, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 23 + } + }, + "imported": { + "type": "Identifier", + "start": 301, + "end": 305, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 8 + } + }, + "name": "User" + }, + "local": { + "type": "Identifier", + "start": 309, + "end": 320, + "loc": { + "start": { + "line": 14, + "column": 12 + }, + "end": { + "line": 14, + "column": 23 + } + }, + "name": "UserActions" + } + }, + { + "type": "ImportSpecifier", + "start": 326, + "end": 349, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 27 + } + }, + "imported": { + "type": "Identifier", + "start": 326, + "end": 332, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 10 + } + }, + "name": "Photos" + }, + "local": { + "type": "Identifier", + "start": 336, + "end": 349, + "loc": { + "start": { + "line": 15, + "column": 14 + }, + "end": { + "line": 15, + "column": 27 + } + }, + "name": "PhotosActions" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 358, + "end": 367, + "loc": { + "start": { + "line": 16, + "column": 7 + }, + "end": { + "line": 16, + "column": 16 + } + }, + "value": "actions", + "rawValue": "actions", + "raw": "'actions'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Landing\n * Landing component used by Home route\n ", + "start": 369, + "end": 427, + "loc": { + "start": { + "line": 18, + "column": 0 + }, + "end": { + "line": 21, + "column": 3 + } + }, + "range": [ + 369, + 427 + ] + } + ] + }, + { + "type": "ClassDeclaration", + "start": 428, + "end": 2987, + "loc": { + "start": { + "line": 22, + "column": 0 + }, + "end": { + "line": 132, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 434, + "end": 441, + "loc": { + "start": { + "line": 22, + "column": 6 + }, + "end": { + "line": 22, + "column": 13 + } + }, + "name": "Landing", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 450, + "end": 459, + "loc": { + "start": { + "line": 22, + "column": 22 + }, + "end": { + "line": 22, + "column": 31 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 460, + "end": 2987, + "loc": { + "start": { + "line": 22, + "column": 32 + }, + "end": { + "line": 132, + "column": 1 + } + }, + "body": [ + { + "type": "Identifier", + "start": 558, + "end": 623, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 31, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 565, + "end": 577, + "loc": { + "start": { + "line": 28, + "column": 11 + }, + "end": { + "line": 28, + "column": 23 + } + }, + "name": "defaultProps" + }, + "static": true, + "value": { + "type": "ObjectExpression", + "start": 580, + "end": 623, + "loc": { + "start": { + "line": 28, + "column": 26 + }, + "end": { + "line": 31, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 590, + "end": 616, + "loc": { + "start": { + "line": 29, + "column": 8 + }, + "end": { + "line": 30, + "column": 9 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 590, + "end": 597, + "loc": { + "start": { + "line": 29, + "column": 8 + }, + "end": { + "line": 29, + "column": 15 + } + }, + "name": "onFetch" + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 599, + "end": 616, + "loc": { + "start": { + "line": 29, + "column": 17 + }, + "end": { + "line": 30, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 605, + "end": 616, + "loc": { + "start": { + "line": 29, + "column": 23 + }, + "end": { + "line": 30, + "column": 9 + } + }, + "body": [] + } + }, + "kind": "init" + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * defaultProps\n * @type {{onFetch: Landing.defaultProps.onFetch}}\n ", + "start": 467, + "end": 553, + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 27, + "column": 7 + } + }, + "range": [ + 467, + 553 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * componentWillMount\n ", + "start": 629, + "end": 666, + "loc": { + "start": { + "line": 33, + "column": 4 + }, + "end": { + "line": 35, + "column": 7 + } + }, + "range": [ + 629, + 666 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 671, + "end": 983, + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 44, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 671, + "end": 689, + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 36, + "column": 22 + } + }, + "name": "componentWillMount", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 689, + "end": 983, + "loc": { + "start": { + "line": 36, + "column": 22 + }, + "end": { + "line": 44, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 692, + "end": 983, + "loc": { + "start": { + "line": 36, + "column": 25 + }, + "end": { + "line": 44, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 753, + "end": 827, + "loc": { + "start": { + "line": 39, + "column": 8 + }, + "end": { + "line": 39, + "column": 82 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 753, + "end": 827, + "loc": { + "start": { + "line": 39, + "column": 8 + }, + "end": { + "line": 39, + "column": 82 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 753, + "end": 764, + "loc": { + "start": { + "line": 39, + "column": 8 + }, + "end": { + "line": 39, + "column": 19 + } + }, + "object": { + "type": "ThisExpression", + "start": 753, + "end": 757, + "loc": { + "start": { + "line": 39, + "column": 8 + }, + "end": { + "line": 39, + "column": 12 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 758, + "end": 764, + "loc": { + "start": { + "line": 39, + "column": 13 + }, + "end": { + "line": 39, + "column": 19 + } + }, + "name": "client" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "CallExpression", + "start": 767, + "end": 827, + "loc": { + "start": { + "line": 39, + "column": 22 + }, + "end": { + "line": 39, + "column": 82 + } + }, + "callee": { + "type": "MemberExpression", + "start": 767, + "end": 781, + "loc": { + "start": { + "line": 39, + "column": 22 + }, + "end": { + "line": 39, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 767, + "end": 773, + "loc": { + "start": { + "line": 39, + "column": 22 + }, + "end": { + "line": 39, + "column": 28 + } + }, + "name": "stream" + }, + "property": { + "type": "Identifier", + "start": 774, + "end": 781, + "loc": { + "start": { + "line": 39, + "column": 29 + }, + "end": { + "line": 39, + "column": 36 + } + }, + "name": "connect" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 782, + "end": 799, + "loc": { + "start": { + "line": 39, + "column": 37 + }, + "end": { + "line": 39, + "column": 54 + } + }, + "object": { + "type": "MemberExpression", + "start": 782, + "end": 795, + "loc": { + "start": { + "line": 39, + "column": 37 + }, + "end": { + "line": 39, + "column": 50 + } + }, + "object": { + "type": "Identifier", + "start": 782, + "end": 788, + "loc": { + "start": { + "line": 39, + "column": 37 + }, + "end": { + "line": 39, + "column": 43 + } + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 789, + "end": 795, + "loc": { + "start": { + "line": 39, + "column": 44 + }, + "end": { + "line": 39, + "column": 50 + } + }, + "name": "stream" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 796, + "end": 799, + "loc": { + "start": { + "line": 39, + "column": 51 + }, + "end": { + "line": 39, + "column": 54 + } + }, + "name": "key" + }, + "computed": false + }, + { + "type": "Literal", + "start": 801, + "end": 805, + "loc": { + "start": { + "line": 39, + "column": 56 + }, + "end": { + "line": 39, + "column": 60 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + { + "type": "MemberExpression", + "start": 807, + "end": 826, + "loc": { + "start": { + "line": 39, + "column": 62 + }, + "end": { + "line": 39, + "column": 81 + } + }, + "object": { + "type": "MemberExpression", + "start": 807, + "end": 820, + "loc": { + "start": { + "line": 39, + "column": 62 + }, + "end": { + "line": 39, + "column": 75 + } + }, + "object": { + "type": "Identifier", + "start": 807, + "end": 813, + "loc": { + "start": { + "line": 39, + "column": 62 + }, + "end": { + "line": 39, + "column": 68 + } + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 814, + "end": 820, + "loc": { + "start": { + "line": 39, + "column": 69 + }, + "end": { + "line": 39, + "column": 75 + } + }, + "name": "stream" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 821, + "end": 826, + "loc": { + "start": { + "line": 39, + "column": 76 + }, + "end": { + "line": 39, + "column": 81 + } + }, + "name": "appId" + }, + "computed": false + } + ], + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " instantiate a new client (client side)", + "start": 703, + "end": 744, + "loc": { + "start": { + "line": 38, + "column": 8 + }, + "end": { + "line": 38, + "column": 49 + } + }, + "range": [ + 703, + 744 + ] + } + ], + "trailingComments": [ + { + "type": "CommentLine", + "value": " follow 'timeline_flat' feed", + "start": 837, + "end": 867, + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 41, + "column": 38 + } + }, + "range": [ + 837, + 867 + ] + } + ] + }, + { + "type": "ExpressionStatement", + "start": 876, + "end": 976, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 108 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 876, + "end": 976, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 108 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 876, + "end": 889, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 21 + } + }, + "object": { + "type": "ThisExpression", + "start": 876, + "end": 880, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 12 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 881, + "end": 889, + "loc": { + "start": { + "line": 42, + "column": 13 + }, + "end": { + "line": 42, + "column": 21 + } + }, + "name": "timeline" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "CallExpression", + "start": 892, + "end": 976, + "loc": { + "start": { + "line": 42, + "column": 24 + }, + "end": { + "line": 42, + "column": 108 + } + }, + "callee": { + "type": "MemberExpression", + "start": 892, + "end": 908, + "loc": { + "start": { + "line": 42, + "column": 24 + }, + "end": { + "line": 42, + "column": 40 + } + }, + "object": { + "type": "MemberExpression", + "start": 892, + "end": 903, + "loc": { + "start": { + "line": 42, + "column": 24 + }, + "end": { + "line": 42, + "column": 35 + } + }, + "object": { + "type": "ThisExpression", + "start": 892, + "end": 896, + "loc": { + "start": { + "line": 42, + "column": 24 + }, + "end": { + "line": 42, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "start": 897, + "end": 903, + "loc": { + "start": { + "line": 42, + "column": 29 + }, + "end": { + "line": 42, + "column": 35 + } + }, + "name": "client" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 904, + "end": 908, + "loc": { + "start": { + "line": 42, + "column": 36 + }, + "end": { + "line": 42, + "column": 40 + } + }, + "name": "feed" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 909, + "end": 924, + "loc": { + "start": { + "line": 42, + "column": 41 + }, + "end": { + "line": 42, + "column": 56 + } + }, + "value": "timeline_flat", + "rawValue": "timeline_flat", + "raw": "'timeline_flat'" + }, + { + "type": "MemberExpression", + "start": 926, + "end": 943, + "loc": { + "start": { + "line": 42, + "column": 58 + }, + "end": { + "line": 42, + "column": 75 + } + }, + "object": { + "type": "MemberExpression", + "start": 926, + "end": 936, + "loc": { + "start": { + "line": 42, + "column": 58 + }, + "end": { + "line": 42, + "column": 68 + } + }, + "object": { + "type": "ThisExpression", + "start": 926, + "end": 930, + "loc": { + "start": { + "line": 42, + "column": 58 + }, + "end": { + "line": 42, + "column": 62 + } + } + }, + "property": { + "type": "Identifier", + "start": 931, + "end": 936, + "loc": { + "start": { + "line": 42, + "column": 63 + }, + "end": { + "line": 42, + "column": 68 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 937, + "end": 943, + "loc": { + "start": { + "line": 42, + "column": 69 + }, + "end": { + "line": 42, + "column": 75 + } + }, + "name": "userID" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 945, + "end": 975, + "loc": { + "start": { + "line": 42, + "column": 77 + }, + "end": { + "line": 42, + "column": 107 + } + }, + "object": { + "type": "MemberExpression", + "start": 945, + "end": 962, + "loc": { + "start": { + "line": 42, + "column": 77 + }, + "end": { + "line": 42, + "column": 94 + } + }, + "object": { + "type": "MemberExpression", + "start": 945, + "end": 955, + "loc": { + "start": { + "line": 42, + "column": 77 + }, + "end": { + "line": 42, + "column": 87 + } + }, + "object": { + "type": "ThisExpression", + "start": 945, + "end": 949, + "loc": { + "start": { + "line": 42, + "column": 77 + }, + "end": { + "line": 42, + "column": 81 + } + } + }, + "property": { + "type": "Identifier", + "start": 950, + "end": 955, + "loc": { + "start": { + "line": 42, + "column": 82 + }, + "end": { + "line": 42, + "column": 87 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 956, + "end": 962, + "loc": { + "start": { + "line": 42, + "column": 88 + }, + "end": { + "line": 42, + "column": 94 + } + }, + "name": "tokens" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 963, + "end": 975, + "loc": { + "start": { + "line": 42, + "column": 95 + }, + "end": { + "line": 42, + "column": 107 + } + }, + "name": "timelineFlat" + }, + "computed": false + } + ] + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " follow 'timeline_flat' feed", + "start": 837, + "end": 867, + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 41, + "column": 38 + } + }, + "range": [ + 837, + 867 + ] + } + ] + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * componentWillMount\n ", + "start": 629, + "end": 666, + "loc": { + "start": { + "line": 33, + "column": 4 + }, + "end": { + "line": 35, + "column": 7 + } + }, + "range": [ + 629, + 666 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * handleScroll\n * @param e event\n ", + "start": 989, + "end": 1042, + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 49, + "column": 7 + } + }, + "range": [ + 989, + 1042 + ] + } + ] + }, + { + "type": "Identifier", + "start": 1047, + "end": 1424, + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 64, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 1047, + "end": 1059, + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 50, + "column": 16 + } + }, + "name": "handleScroll", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ArrowFunctionExpression", + "start": 1062, + "end": 1424, + "loc": { + "start": { + "line": 50, + "column": 19 + }, + "end": { + "line": 64, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1063, + "end": 1064, + "loc": { + "start": { + "line": 50, + "column": 20 + }, + "end": { + "line": 50, + "column": 21 + } + }, + "name": "e" + } + ], + "body": { + "type": "BlockStatement", + "start": 1069, + "end": 1424, + "loc": { + "start": { + "line": 50, + "column": 26 + }, + "end": { + "line": 64, + "column": 5 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 1080, + "end": 1124, + "loc": { + "start": { + "line": 52, + "column": 8 + }, + "end": { + "line": 52, + "column": 52 + } + }, + "test": { + "type": "MemberExpression", + "start": 1084, + "end": 1096, + "loc": { + "start": { + "line": 52, + "column": 12 + }, + "end": { + "line": 52, + "column": 24 + } + }, + "object": { + "type": "ThisExpression", + "start": 1084, + "end": 1088, + "loc": { + "start": { + "line": 52, + "column": 12 + }, + "end": { + "line": 52, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 1089, + "end": 1096, + "loc": { + "start": { + "line": 52, + "column": 17 + }, + "end": { + "line": 52, + "column": 24 + } + }, + "name": "$scroll" + }, + "computed": false + }, + "consequent": { + "type": "ExpressionStatement", + "start": 1098, + "end": 1124, + "loc": { + "start": { + "line": 52, + "column": 26 + }, + "end": { + "line": 52, + "column": 52 + } + }, + "expression": { + "type": "CallExpression", + "start": 1098, + "end": 1124, + "loc": { + "start": { + "line": 52, + "column": 26 + }, + "end": { + "line": 52, + "column": 52 + } + }, + "callee": { + "type": "Identifier", + "start": 1098, + "end": 1110, + "loc": { + "start": { + "line": 52, + "column": 26 + }, + "end": { + "line": 52, + "column": 38 + } + }, + "name": "clearTimeout" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 1111, + "end": 1123, + "loc": { + "start": { + "line": 52, + "column": 39 + }, + "end": { + "line": 52, + "column": 51 + } + }, + "object": { + "type": "ThisExpression", + "start": 1111, + "end": 1115, + "loc": { + "start": { + "line": 52, + "column": 39 + }, + "end": { + "line": 52, + "column": 43 + } + } + }, + "property": { + "type": "Identifier", + "start": 1116, + "end": 1123, + "loc": { + "start": { + "line": 52, + "column": 44 + }, + "end": { + "line": 52, + "column": 51 + } + }, + "name": "$scroll" + }, + "computed": false + } + ] + } + }, + "alternate": null + }, + { + "type": "ExpressionStatement", + "start": 1134, + "end": 1418, + "loc": { + "start": { + "line": 54, + "column": 8 + }, + "end": { + "line": 63, + "column": 14 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1134, + "end": 1418, + "loc": { + "start": { + "line": 54, + "column": 8 + }, + "end": { + "line": 63, + "column": 14 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 1134, + "end": 1146, + "loc": { + "start": { + "line": 54, + "column": 8 + }, + "end": { + "line": 54, + "column": 20 + } + }, + "object": { + "type": "ThisExpression", + "start": 1134, + "end": 1138, + "loc": { + "start": { + "line": 54, + "column": 8 + }, + "end": { + "line": 54, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 1139, + "end": 1146, + "loc": { + "start": { + "line": 54, + "column": 13 + }, + "end": { + "line": 54, + "column": 20 + } + }, + "name": "$scroll" + }, + "computed": false + }, + "right": { + "type": "CallExpression", + "start": 1149, + "end": 1418, + "loc": { + "start": { + "line": 54, + "column": 23 + }, + "end": { + "line": 63, + "column": 14 + } + }, + "callee": { + "type": "Identifier", + "start": 1149, + "end": 1159, + "loc": { + "start": { + "line": 54, + "column": 23 + }, + "end": { + "line": 54, + "column": 33 + } + }, + "name": "setTimeout" + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 1160, + "end": 1413, + "loc": { + "start": { + "line": 54, + "column": 34 + }, + "end": { + "line": 63, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 1166, + "end": 1413, + "loc": { + "start": { + "line": 54, + "column": 40 + }, + "end": { + "line": 63, + "column": 9 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 1181, + "end": 1217, + "loc": { + "start": { + "line": 56, + "column": 12 + }, + "end": { + "line": 56, + "column": 48 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1187, + "end": 1217, + "loc": { + "start": { + "line": 56, + "column": 18 + }, + "end": { + "line": 56, + "column": 48 + } + }, + "id": { + "type": "Identifier", + "start": 1187, + "end": 1188, + "loc": { + "start": { + "line": 56, + "column": 18 + }, + "end": { + "line": 56, + "column": 19 + } + }, + "name": "d" + }, + "init": { + "type": "CallExpression", + "start": 1191, + "end": 1217, + "loc": { + "start": { + "line": 56, + "column": 22 + }, + "end": { + "line": 56, + "column": 48 + } + }, + "callee": { + "type": "Identifier", + "start": 1191, + "end": 1202, + "loc": { + "start": { + "line": 56, + "column": 22 + }, + "end": { + "line": 56, + "column": 33 + } + }, + "name": "findDOMNode" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 1203, + "end": 1216, + "loc": { + "start": { + "line": 56, + "column": 34 + }, + "end": { + "line": 56, + "column": 47 + } + }, + "object": { + "type": "ThisExpression", + "start": 1203, + "end": 1207, + "loc": { + "start": { + "line": 56, + "column": 34 + }, + "end": { + "line": 56, + "column": 38 + } + } + }, + "property": { + "type": "Identifier", + "start": 1208, + "end": 1216, + "loc": { + "start": { + "line": 56, + "column": 39 + }, + "end": { + "line": 56, + "column": 47 + } + }, + "name": "_pageElm" + }, + "computed": false + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "VariableDeclaration", + "start": 1230, + "end": 1268, + "loc": { + "start": { + "line": 57, + "column": 12 + }, + "end": { + "line": 57, + "column": 50 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1236, + "end": 1268, + "loc": { + "start": { + "line": 57, + "column": 18 + }, + "end": { + "line": 57, + "column": 50 + } + }, + "id": { + "type": "Identifier", + "start": 1236, + "end": 1245, + "loc": { + "start": { + "line": 57, + "column": 18 + }, + "end": { + "line": 57, + "column": 27 + } + }, + "name": "threshold" + }, + "init": { + "type": "BinaryExpression", + "start": 1249, + "end": 1267, + "loc": { + "start": { + "line": 57, + "column": 31 + }, + "end": { + "line": 57, + "column": 49 + } + }, + "left": { + "type": "MemberExpression", + "start": 1249, + "end": 1263, + "loc": { + "start": { + "line": 57, + "column": 31 + }, + "end": { + "line": 57, + "column": 45 + } + }, + "object": { + "type": "Identifier", + "start": 1249, + "end": 1250, + "loc": { + "start": { + "line": 57, + "column": 31 + }, + "end": { + "line": 57, + "column": 32 + } + }, + "name": "d" + }, + "property": { + "type": "Identifier", + "start": 1251, + "end": 1263, + "loc": { + "start": { + "line": 57, + "column": 33 + }, + "end": { + "line": 57, + "column": 45 + } + }, + "name": "offsetHeight" + }, + "computed": false + }, + "operator": "/", + "right": { + "type": "Literal", + "start": 1266, + "end": 1267, + "loc": { + "start": { + "line": 57, + "column": 48 + }, + "end": { + "line": 57, + "column": 49 + } + }, + "value": 2, + "rawValue": 2, + "raw": "2" + }, + "parenthesizedExpression": true + } + } + ], + "kind": "const" + }, + { + "type": "IfStatement", + "start": 1282, + "end": 1402, + "loc": { + "start": { + "line": 59, + "column": 12 + }, + "end": { + "line": 61, + "column": 13 + } + }, + "test": { + "type": "BinaryExpression", + "start": 1286, + "end": 1348, + "loc": { + "start": { + "line": 59, + "column": 16 + }, + "end": { + "line": 59, + "column": 78 + } + }, + "left": { + "type": "BinaryExpression", + "start": 1287, + "end": 1315, + "loc": { + "start": { + "line": 59, + "column": 17 + }, + "end": { + "line": 59, + "column": 45 + } + }, + "left": { + "type": "MemberExpression", + "start": 1287, + "end": 1298, + "loc": { + "start": { + "line": 59, + "column": 17 + }, + "end": { + "line": 59, + "column": 28 + } + }, + "object": { + "type": "Identifier", + "start": 1287, + "end": 1288, + "loc": { + "start": { + "line": 59, + "column": 17 + }, + "end": { + "line": 59, + "column": 18 + } + }, + "name": "d" + }, + "property": { + "type": "Identifier", + "start": 1289, + "end": 1298, + "loc": { + "start": { + "line": 59, + "column": 19 + }, + "end": { + "line": 59, + "column": 28 + } + }, + "name": "scrollTop" + }, + "computed": false + }, + "operator": "+", + "right": { + "type": "MemberExpression", + "start": 1301, + "end": 1315, + "loc": { + "start": { + "line": 59, + "column": 31 + }, + "end": { + "line": 59, + "column": 45 + } + }, + "object": { + "type": "Identifier", + "start": 1301, + "end": 1302, + "loc": { + "start": { + "line": 59, + "column": 31 + }, + "end": { + "line": 59, + "column": 32 + } + }, + "name": "d" + }, + "property": { + "type": "Identifier", + "start": 1303, + "end": 1315, + "loc": { + "start": { + "line": 59, + "column": 33 + }, + "end": { + "line": 59, + "column": 45 + } + }, + "name": "offsetHeight" + }, + "computed": false + }, + "parenthesizedExpression": true + }, + "operator": ">=", + "right": { + "type": "BinaryExpression", + "start": 1321, + "end": 1347, + "loc": { + "start": { + "line": 59, + "column": 51 + }, + "end": { + "line": 59, + "column": 77 + } + }, + "left": { + "type": "MemberExpression", + "start": 1321, + "end": 1335, + "loc": { + "start": { + "line": 59, + "column": 51 + }, + "end": { + "line": 59, + "column": 65 + } + }, + "object": { + "type": "Identifier", + "start": 1321, + "end": 1322, + "loc": { + "start": { + "line": 59, + "column": 51 + }, + "end": { + "line": 59, + "column": 52 + } + }, + "name": "d" + }, + "property": { + "type": "Identifier", + "start": 1323, + "end": 1335, + "loc": { + "start": { + "line": 59, + "column": 53 + }, + "end": { + "line": 59, + "column": 65 + } + }, + "name": "scrollHeight" + }, + "computed": false + }, + "operator": "-", + "right": { + "type": "Identifier", + "start": 1338, + "end": 1347, + "loc": { + "start": { + "line": 59, + "column": 68 + }, + "end": { + "line": 59, + "column": 77 + } + }, + "name": "threshold" + }, + "parenthesizedExpression": true + } + }, + "consequent": { + "type": "BlockStatement", + "start": 1350, + "end": 1402, + "loc": { + "start": { + "line": 59, + "column": 80 + }, + "end": { + "line": 61, + "column": 13 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1368, + "end": 1388, + "loc": { + "start": { + "line": 60, + "column": 16 + }, + "end": { + "line": 60, + "column": 36 + } + }, + "expression": { + "type": "CallExpression", + "start": 1368, + "end": 1388, + "loc": { + "start": { + "line": 60, + "column": 16 + }, + "end": { + "line": 60, + "column": 36 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1368, + "end": 1386, + "loc": { + "start": { + "line": 60, + "column": 16 + }, + "end": { + "line": 60, + "column": 34 + } + }, + "object": { + "type": "MemberExpression", + "start": 1368, + "end": 1378, + "loc": { + "start": { + "line": 60, + "column": 16 + }, + "end": { + "line": 60, + "column": 26 + } + }, + "object": { + "type": "ThisExpression", + "start": 1368, + "end": 1372, + "loc": { + "start": { + "line": 60, + "column": 16 + }, + "end": { + "line": 60, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "start": 1373, + "end": 1378, + "loc": { + "start": { + "line": 60, + "column": 21 + }, + "end": { + "line": 60, + "column": 26 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1379, + "end": 1386, + "loc": { + "start": { + "line": 60, + "column": 27 + }, + "end": { + "line": 60, + "column": 34 + } + }, + "name": "onFetch" + }, + "computed": false + }, + "arguments": [] + } + } + ] + }, + "alternate": null + } + ] + } + }, + { + "type": "Literal", + "start": 1415, + "end": 1417, + "loc": { + "start": { + "line": 63, + "column": 11 + }, + "end": { + "line": 63, + "column": 13 + } + }, + "value": 25, + "rawValue": 25, + "raw": "25" + } + ] + } + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * handleScroll\n * @param e event\n ", + "start": 989, + "end": 1042, + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 49, + "column": 7 + } + }, + "range": [ + 989, + 1042 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * componentDidMount\n ", + "start": 1430, + "end": 1466, + "loc": { + "start": { + "line": 66, + "column": 4 + }, + "end": { + "line": 68, + "column": 7 + } + }, + "range": [ + 1430, + 1466 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 1471, + "end": 1579, + "loc": { + "start": { + "line": 69, + "column": 4 + }, + "end": { + "line": 71, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 1471, + "end": 1488, + "loc": { + "start": { + "line": 69, + "column": 4 + }, + "end": { + "line": 69, + "column": 21 + } + }, + "name": "componentDidMount", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 1488, + "end": 1579, + "loc": { + "start": { + "line": 69, + "column": 21 + }, + "end": { + "line": 71, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 1491, + "end": 1579, + "loc": { + "start": { + "line": 69, + "column": 24 + }, + "end": { + "line": 71, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1501, + "end": 1573, + "loc": { + "start": { + "line": 70, + "column": 8 + }, + "end": { + "line": 70, + "column": 80 + } + }, + "expression": { + "type": "CallExpression", + "start": 1501, + "end": 1573, + "loc": { + "start": { + "line": 70, + "column": 8 + }, + "end": { + "line": 70, + "column": 80 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1501, + "end": 1544, + "loc": { + "start": { + "line": 70, + "column": 8 + }, + "end": { + "line": 70, + "column": 51 + } + }, + "object": { + "type": "CallExpression", + "start": 1501, + "end": 1527, + "loc": { + "start": { + "line": 70, + "column": 8 + }, + "end": { + "line": 70, + "column": 34 + } + }, + "callee": { + "type": "Identifier", + "start": 1501, + "end": 1512, + "loc": { + "start": { + "line": 70, + "column": 8 + }, + "end": { + "line": 70, + "column": 19 + } + }, + "name": "findDOMNode" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 1513, + "end": 1526, + "loc": { + "start": { + "line": 70, + "column": 20 + }, + "end": { + "line": 70, + "column": 33 + } + }, + "object": { + "type": "ThisExpression", + "start": 1513, + "end": 1517, + "loc": { + "start": { + "line": 70, + "column": 20 + }, + "end": { + "line": 70, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "start": 1518, + "end": 1526, + "loc": { + "start": { + "line": 70, + "column": 25 + }, + "end": { + "line": 70, + "column": 33 + } + }, + "name": "_pageElm" + }, + "computed": false + } + ] + }, + "property": { + "type": "Identifier", + "start": 1528, + "end": 1544, + "loc": { + "start": { + "line": 70, + "column": 35 + }, + "end": { + "line": 70, + "column": 51 + } + }, + "name": "addEventListener" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 1545, + "end": 1553, + "loc": { + "start": { + "line": 70, + "column": 52 + }, + "end": { + "line": 70, + "column": 60 + } + }, + "value": "scroll", + "rawValue": "scroll", + "raw": "'scroll'" + }, + { + "type": "MemberExpression", + "start": 1555, + "end": 1572, + "loc": { + "start": { + "line": 70, + "column": 62 + }, + "end": { + "line": 70, + "column": 79 + } + }, + "object": { + "type": "ThisExpression", + "start": 1555, + "end": 1559, + "loc": { + "start": { + "line": 70, + "column": 62 + }, + "end": { + "line": 70, + "column": 66 + } + } + }, + "property": { + "type": "Identifier", + "start": 1560, + "end": 1572, + "loc": { + "start": { + "line": 70, + "column": 67 + }, + "end": { + "line": 70, + "column": 79 + } + }, + "name": "handleScroll" + }, + "computed": false + } + ] + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * componentDidMount\n ", + "start": 1430, + "end": 1466, + "loc": { + "start": { + "line": 66, + "column": 4 + }, + "end": { + "line": 68, + "column": 7 + } + }, + "range": [ + 1430, + 1466 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * componentWillUnmount\n ", + "start": 1585, + "end": 1624, + "loc": { + "start": { + "line": 73, + "column": 4 + }, + "end": { + "line": 75, + "column": 7 + } + }, + "range": [ + 1585, + 1624 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 1629, + "end": 1743, + "loc": { + "start": { + "line": 76, + "column": 4 + }, + "end": { + "line": 78, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 1629, + "end": 1649, + "loc": { + "start": { + "line": 76, + "column": 4 + }, + "end": { + "line": 76, + "column": 24 + } + }, + "name": "componentWillUnmount", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 1649, + "end": 1743, + "loc": { + "start": { + "line": 76, + "column": 24 + }, + "end": { + "line": 78, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 1652, + "end": 1743, + "loc": { + "start": { + "line": 76, + "column": 27 + }, + "end": { + "line": 78, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1662, + "end": 1737, + "loc": { + "start": { + "line": 77, + "column": 8 + }, + "end": { + "line": 77, + "column": 83 + } + }, + "expression": { + "type": "CallExpression", + "start": 1662, + "end": 1737, + "loc": { + "start": { + "line": 77, + "column": 8 + }, + "end": { + "line": 77, + "column": 83 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1662, + "end": 1708, + "loc": { + "start": { + "line": 77, + "column": 8 + }, + "end": { + "line": 77, + "column": 54 + } + }, + "object": { + "type": "CallExpression", + "start": 1662, + "end": 1688, + "loc": { + "start": { + "line": 77, + "column": 8 + }, + "end": { + "line": 77, + "column": 34 + } + }, + "callee": { + "type": "Identifier", + "start": 1662, + "end": 1673, + "loc": { + "start": { + "line": 77, + "column": 8 + }, + "end": { + "line": 77, + "column": 19 + } + }, + "name": "findDOMNode" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 1674, + "end": 1687, + "loc": { + "start": { + "line": 77, + "column": 20 + }, + "end": { + "line": 77, + "column": 33 + } + }, + "object": { + "type": "ThisExpression", + "start": 1674, + "end": 1678, + "loc": { + "start": { + "line": 77, + "column": 20 + }, + "end": { + "line": 77, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "start": 1679, + "end": 1687, + "loc": { + "start": { + "line": 77, + "column": 25 + }, + "end": { + "line": 77, + "column": 33 + } + }, + "name": "_pageElm" + }, + "computed": false + } + ] + }, + "property": { + "type": "Identifier", + "start": 1689, + "end": 1708, + "loc": { + "start": { + "line": 77, + "column": 35 + }, + "end": { + "line": 77, + "column": 54 + } + }, + "name": "removeEventListener" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 1709, + "end": 1717, + "loc": { + "start": { + "line": 77, + "column": 55 + }, + "end": { + "line": 77, + "column": 63 + } + }, + "value": "scroll", + "rawValue": "scroll", + "raw": "'scroll'" + }, + { + "type": "MemberExpression", + "start": 1719, + "end": 1736, + "loc": { + "start": { + "line": 77, + "column": 65 + }, + "end": { + "line": 77, + "column": 82 + } + }, + "object": { + "type": "ThisExpression", + "start": 1719, + "end": 1723, + "loc": { + "start": { + "line": 77, + "column": 65 + }, + "end": { + "line": 77, + "column": 69 + } + } + }, + "property": { + "type": "Identifier", + "start": 1724, + "end": 1736, + "loc": { + "start": { + "line": 77, + "column": 70 + }, + "end": { + "line": 77, + "column": 82 + } + }, + "name": "handleScroll" + }, + "computed": false + } + ] + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * componentWillUnmount\n ", + "start": 1585, + "end": 1624, + "loc": { + "start": { + "line": 73, + "column": 4 + }, + "end": { + "line": 75, + "column": 7 + } + }, + "range": [ + 1585, + 1624 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * handleRefresh\n * @param e event\n ", + "start": 1750, + "end": 1804, + "loc": { + "start": { + "line": 81, + "column": 4 + }, + "end": { + "line": 84, + "column": 7 + } + }, + "range": [ + 1750, + 1804 + ] + } + ] + }, + { + "type": "Identifier", + "start": 1809, + "end": 1872, + "loc": { + "start": { + "line": 85, + "column": 4 + }, + "end": { + "line": 87, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 1809, + "end": 1822, + "loc": { + "start": { + "line": 85, + "column": 4 + }, + "end": { + "line": 85, + "column": 17 + } + }, + "name": "handleRefresh", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ArrowFunctionExpression", + "start": 1825, + "end": 1872, + "loc": { + "start": { + "line": 85, + "column": 20 + }, + "end": { + "line": 87, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1826, + "end": 1827, + "loc": { + "start": { + "line": 85, + "column": 21 + }, + "end": { + "line": 85, + "column": 22 + } + }, + "name": "e" + } + ], + "body": { + "type": "BlockStatement", + "start": 1832, + "end": 1872, + "loc": { + "start": { + "line": 85, + "column": 27 + }, + "end": { + "line": 87, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1842, + "end": 1866, + "loc": { + "start": { + "line": 86, + "column": 8 + }, + "end": { + "line": 86, + "column": 32 + } + }, + "expression": { + "type": "CallExpression", + "start": 1842, + "end": 1866, + "loc": { + "start": { + "line": 86, + "column": 8 + }, + "end": { + "line": 86, + "column": 32 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1842, + "end": 1864, + "loc": { + "start": { + "line": 86, + "column": 8 + }, + "end": { + "line": 86, + "column": 30 + } + }, + "object": { + "type": "MemberExpression", + "start": 1842, + "end": 1857, + "loc": { + "start": { + "line": 86, + "column": 8 + }, + "end": { + "line": 86, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 1842, + "end": 1848, + "loc": { + "start": { + "line": 86, + "column": 8 + }, + "end": { + "line": 86, + "column": 14 + } + }, + "name": "window" + }, + "property": { + "type": "Identifier", + "start": 1849, + "end": 1857, + "loc": { + "start": { + "line": 86, + "column": 15 + }, + "end": { + "line": 86, + "column": 23 + } + }, + "name": "location" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1858, + "end": 1864, + "loc": { + "start": { + "line": 86, + "column": 24 + }, + "end": { + "line": 86, + "column": 30 + } + }, + "name": "reload" + }, + "computed": false + }, + "arguments": [] + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * handleRefresh\n * @param e event\n ", + "start": 1750, + "end": 1804, + "loc": { + "start": { + "line": 81, + "column": 4 + }, + "end": { + "line": 84, + "column": 7 + } + }, + "range": [ + 1750, + 1804 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n *\n * @returns markup\n ", + "start": 1878, + "end": 1919, + "loc": { + "start": { + "line": 89, + "column": 4 + }, + "end": { + "line": 92, + "column": 7 + } + }, + "range": [ + 1878, + 1919 + ] + } + ] + }, + { + "type": "Identifier", + "start": 1924, + "end": 2533, + "loc": { + "start": { + "line": 93, + "column": 4 + }, + "end": { + "line": 113, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 1924, + "end": 1943, + "loc": { + "start": { + "line": 93, + "column": 4 + }, + "end": { + "line": 93, + "column": 23 + } + }, + "name": "renderListOrMessage", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ArrowFunctionExpression", + "start": 1946, + "end": 2533, + "loc": { + "start": { + "line": 93, + "column": 26 + }, + "end": { + "line": 113, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 1952, + "end": 2533, + "loc": { + "start": { + "line": 93, + "column": 32 + }, + "end": { + "line": 113, + "column": 5 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 1963, + "end": 2212, + "loc": { + "start": { + "line": 95, + "column": 8 + }, + "end": { + "line": 101, + "column": 9 + } + }, + "test": { + "type": "UnaryExpression", + "start": 1967, + "end": 1992, + "loc": { + "start": { + "line": 95, + "column": 12 + }, + "end": { + "line": 95, + "column": 37 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 1968, + "end": 1992, + "loc": { + "start": { + "line": 95, + "column": 13 + }, + "end": { + "line": 95, + "column": 37 + } + }, + "object": { + "type": "MemberExpression", + "start": 1968, + "end": 1985, + "loc": { + "start": { + "line": 95, + "column": 13 + }, + "end": { + "line": 95, + "column": 30 + } + }, + "object": { + "type": "MemberExpression", + "start": 1968, + "end": 1978, + "loc": { + "start": { + "line": 95, + "column": 13 + }, + "end": { + "line": 95, + "column": 23 + } + }, + "object": { + "type": "ThisExpression", + "start": 1968, + "end": 1972, + "loc": { + "start": { + "line": 95, + "column": 13 + }, + "end": { + "line": 95, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "start": 1973, + "end": 1978, + "loc": { + "start": { + "line": 95, + "column": 18 + }, + "end": { + "line": 95, + "column": 23 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1979, + "end": 1985, + "loc": { + "start": { + "line": 95, + "column": 24 + }, + "end": { + "line": 95, + "column": 30 + } + }, + "name": "photos" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1986, + "end": 1992, + "loc": { + "start": { + "line": 95, + "column": 31 + }, + "end": { + "line": 95, + "column": 37 + } + }, + "name": "length" + }, + "computed": false + } + }, + "consequent": { + "type": "BlockStatement", + "start": 1994, + "end": 2212, + "loc": { + "start": { + "line": 95, + "column": 39 + }, + "end": { + "line": 101, + "column": 9 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 2008, + "end": 2202, + "loc": { + "start": { + "line": 96, + "column": 12 + }, + "end": { + "line": 100, + "column": 13 + } + }, + "argument": { + "type": "JSXElement", + "start": 2033, + "end": 2188, + "loc": { + "start": { + "line": 97, + "column": 16 + }, + "end": { + "line": 99, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2033, + "end": 2064, + "loc": { + "start": { + "line": 97, + "column": 16 + }, + "end": { + "line": 97, + "column": 47 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2038, + "end": 2063, + "loc": { + "start": { + "line": 97, + "column": 21 + }, + "end": { + "line": 97, + "column": 46 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2038, + "end": 2047, + "loc": { + "start": { + "line": 97, + "column": 21 + }, + "end": { + "line": 97, + "column": 30 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 2048, + "end": 2063, + "loc": { + "start": { + "line": 97, + "column": 31 + }, + "end": { + "line": 97, + "column": 46 + } + }, + "value": "empty-message", + "rawValue": null, + "raw": "\"empty-message\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2034, + "end": 2037, + "loc": { + "start": { + "line": 97, + "column": 17 + }, + "end": { + "line": 97, + "column": 20 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2182, + "end": 2188, + "loc": { + "start": { + "line": 99, + "column": 16 + }, + "end": { + "line": 99, + "column": 22 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2184, + "end": 2187, + "loc": { + "start": { + "line": 99, + "column": 18 + }, + "end": { + "line": 99, + "column": 21 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 2064, + "end": 2085, + "loc": { + "start": { + "line": 97, + "column": 47 + }, + "end": { + "line": 98, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 2085, + "end": 2165, + "loc": { + "start": { + "line": 98, + "column": 20 + }, + "end": { + "line": 98, + "column": 100 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2085, + "end": 2090, + "loc": { + "start": { + "line": 98, + "column": 20 + }, + "end": { + "line": 98, + "column": 25 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 2086, + "end": 2089, + "loc": { + "start": { + "line": 98, + "column": 21 + }, + "end": { + "line": 98, + "column": 24 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2159, + "end": 2165, + "loc": { + "start": { + "line": 98, + "column": 94 + }, + "end": { + "line": 98, + "column": 100 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2161, + "end": 2164, + "loc": { + "start": { + "line": 98, + "column": 96 + }, + "end": { + "line": 98, + "column": 99 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 2090, + "end": 2104, + "loc": { + "start": { + "line": 98, + "column": 25 + }, + "end": { + "line": 98, + "column": 39 + } + }, + "value": "Check out the ", + "rawValue": null, + "raw": "Check out the " + }, + { + "type": "JSXElement", + "start": 2104, + "end": 2143, + "loc": { + "start": { + "line": 98, + "column": 39 + }, + "end": { + "line": 98, + "column": 78 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2104, + "end": 2124, + "loc": { + "start": { + "line": 98, + "column": 39 + }, + "end": { + "line": 98, + "column": 59 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2110, + "end": 2123, + "loc": { + "start": { + "line": 98, + "column": 45 + }, + "end": { + "line": 98, + "column": 58 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2110, + "end": 2112, + "loc": { + "start": { + "line": 98, + "column": 45 + }, + "end": { + "line": 98, + "column": 47 + } + }, + "name": "to" + }, + "value": { + "type": "Literal", + "start": 2113, + "end": 2123, + "loc": { + "start": { + "line": 98, + "column": 48 + }, + "end": { + "line": 98, + "column": 58 + } + }, + "value": "/explore", + "rawValue": null, + "raw": "\"/explore\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2105, + "end": 2109, + "loc": { + "start": { + "line": 98, + "column": 40 + }, + "end": { + "line": 98, + "column": 44 + } + }, + "name": "Link" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2136, + "end": 2143, + "loc": { + "start": { + "line": 98, + "column": 71 + }, + "end": { + "line": 98, + "column": 78 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2138, + "end": 2142, + "loc": { + "start": { + "line": 98, + "column": 73 + }, + "end": { + "line": 98, + "column": 77 + } + }, + "name": "Link" + } + }, + "children": [ + { + "type": "Literal", + "start": 2124, + "end": 2136, + "loc": { + "start": { + "line": 98, + "column": 59 + }, + "end": { + "line": 98, + "column": 71 + } + }, + "value": "explore page", + "rawValue": null, + "raw": "explore page" + } + ] + }, + { + "type": "Literal", + "start": 2143, + "end": 2159, + "loc": { + "start": { + "line": 98, + "column": 78 + }, + "end": { + "line": 98, + "column": 94 + } + }, + "value": " to get started!", + "rawValue": null, + "raw": " to get started!" + } + ] + }, + { + "type": "Literal", + "start": 2165, + "end": 2182, + "loc": { + "start": { + "line": 98, + "column": 100 + }, + "end": { + "line": 99, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 2222, + "end": 2526, + "loc": { + "start": { + "line": 103, + "column": 8 + }, + "end": { + "line": 111, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 2243, + "end": 2516, + "loc": { + "start": { + "line": 104, + "column": 12 + }, + "end": { + "line": 110, + "column": 18 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2243, + "end": 2248, + "loc": { + "start": { + "line": 104, + "column": 12 + }, + "end": { + "line": 104, + "column": 17 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 2244, + "end": 2247, + "loc": { + "start": { + "line": 104, + "column": 13 + }, + "end": { + "line": 104, + "column": 16 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2510, + "end": 2516, + "loc": { + "start": { + "line": 110, + "column": 12 + }, + "end": { + "line": 110, + "column": 18 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2512, + "end": 2515, + "loc": { + "start": { + "line": 110, + "column": 14 + }, + "end": { + "line": 110, + "column": 17 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 2248, + "end": 2265, + "loc": { + "start": { + "line": 104, + "column": 17 + }, + "end": { + "line": 105, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 2265, + "end": 2331, + "loc": { + "start": { + "line": 105, + "column": 16 + }, + "end": { + "line": 105, + "column": 82 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2265, + "end": 2331, + "loc": { + "start": { + "line": 105, + "column": 16 + }, + "end": { + "line": 105, + "column": 82 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2276, + "end": 2302, + "loc": { + "start": { + "line": 105, + "column": 27 + }, + "end": { + "line": 105, + "column": 53 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2276, + "end": 2282, + "loc": { + "start": { + "line": 105, + "column": 27 + }, + "end": { + "line": 105, + "column": 33 + } + }, + "name": "onLike" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2283, + "end": 2302, + "loc": { + "start": { + "line": 105, + "column": 34 + }, + "end": { + "line": 105, + "column": 53 + } + }, + "expression": { + "type": "MemberExpression", + "start": 2284, + "end": 2301, + "loc": { + "start": { + "line": 105, + "column": 35 + }, + "end": { + "line": 105, + "column": 52 + } + }, + "object": { + "type": "MemberExpression", + "start": 2284, + "end": 2294, + "loc": { + "start": { + "line": 105, + "column": 35 + }, + "end": { + "line": 105, + "column": 45 + } + }, + "object": { + "type": "ThisExpression", + "start": 2284, + "end": 2288, + "loc": { + "start": { + "line": 105, + "column": 35 + }, + "end": { + "line": 105, + "column": 39 + } + } + }, + "property": { + "type": "Identifier", + "start": 2289, + "end": 2294, + "loc": { + "start": { + "line": 105, + "column": 40 + }, + "end": { + "line": 105, + "column": 45 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2295, + "end": 2301, + "loc": { + "start": { + "line": 105, + "column": 46 + }, + "end": { + "line": 105, + "column": 52 + } + }, + "name": "onLike" + }, + "computed": false + } + } + }, + { + "type": "JSXAttribute", + "start": 2303, + "end": 2329, + "loc": { + "start": { + "line": 105, + "column": 54 + }, + "end": { + "line": 105, + "column": 80 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2303, + "end": 2309, + "loc": { + "start": { + "line": 105, + "column": 54 + }, + "end": { + "line": 105, + "column": 60 + } + }, + "name": "photos" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2310, + "end": 2329, + "loc": { + "start": { + "line": 105, + "column": 61 + }, + "end": { + "line": 105, + "column": 80 + } + }, + "expression": { + "type": "MemberExpression", + "start": 2311, + "end": 2328, + "loc": { + "start": { + "line": 105, + "column": 62 + }, + "end": { + "line": 105, + "column": 79 + } + }, + "object": { + "type": "MemberExpression", + "start": 2311, + "end": 2321, + "loc": { + "start": { + "line": 105, + "column": 62 + }, + "end": { + "line": 105, + "column": 72 + } + }, + "object": { + "type": "ThisExpression", + "start": 2311, + "end": 2315, + "loc": { + "start": { + "line": 105, + "column": 62 + }, + "end": { + "line": 105, + "column": 66 + } + } + }, + "property": { + "type": "Identifier", + "start": 2316, + "end": 2321, + "loc": { + "start": { + "line": 105, + "column": 67 + }, + "end": { + "line": 105, + "column": 72 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2322, + "end": 2328, + "loc": { + "start": { + "line": 105, + "column": 73 + }, + "end": { + "line": 105, + "column": 79 + } + }, + "name": "photos" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2266, + "end": 2275, + "loc": { + "start": { + "line": 105, + "column": 17 + }, + "end": { + "line": 105, + "column": 26 + } + }, + "name": "PhotoList" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 2331, + "end": 2348, + "loc": { + "start": { + "line": 105, + "column": 82 + }, + "end": { + "line": 106, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 2348, + "end": 2497, + "loc": { + "start": { + "line": 106, + "column": 16 + }, + "end": { + "line": 109, + "column": 25 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2348, + "end": 2408, + "loc": { + "start": { + "line": 106, + "column": 16 + }, + "end": { + "line": 106, + "column": 76 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2356, + "end": 2378, + "loc": { + "start": { + "line": 106, + "column": 24 + }, + "end": { + "line": 106, + "column": 46 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2356, + "end": 2365, + "loc": { + "start": { + "line": 106, + "column": 24 + }, + "end": { + "line": 106, + "column": 33 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 2366, + "end": 2378, + "loc": { + "start": { + "line": 106, + "column": 34 + }, + "end": { + "line": 106, + "column": 46 + } + }, + "value": "load-posts", + "rawValue": null, + "raw": "\"load-posts\"" + } + }, + { + "type": "JSXAttribute", + "start": 2379, + "end": 2407, + "loc": { + "start": { + "line": 106, + "column": 47 + }, + "end": { + "line": 106, + "column": 75 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2379, + "end": 2386, + "loc": { + "start": { + "line": 106, + "column": 47 + }, + "end": { + "line": 106, + "column": 54 + } + }, + "name": "onClick" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2387, + "end": 2407, + "loc": { + "start": { + "line": 106, + "column": 55 + }, + "end": { + "line": 106, + "column": 75 + } + }, + "expression": { + "type": "MemberExpression", + "start": 2388, + "end": 2406, + "loc": { + "start": { + "line": 106, + "column": 56 + }, + "end": { + "line": 106, + "column": 74 + } + }, + "object": { + "type": "ThisExpression", + "start": 2388, + "end": 2392, + "loc": { + "start": { + "line": 106, + "column": 56 + }, + "end": { + "line": 106, + "column": 60 + } + } + }, + "property": { + "type": "Identifier", + "start": 2393, + "end": 2406, + "loc": { + "start": { + "line": 106, + "column": 61 + }, + "end": { + "line": 106, + "column": 74 + } + }, + "name": "handleRefresh" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2349, + "end": 2355, + "loc": { + "start": { + "line": 106, + "column": 17 + }, + "end": { + "line": 106, + "column": 23 + } + }, + "name": "button" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2488, + "end": 2497, + "loc": { + "start": { + "line": 109, + "column": 16 + }, + "end": { + "line": 109, + "column": 25 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2490, + "end": 2496, + "loc": { + "start": { + "line": 109, + "column": 18 + }, + "end": { + "line": 109, + "column": 24 + } + }, + "name": "button" + } + }, + "children": [ + { + "type": "Literal", + "start": 2408, + "end": 2464, + "loc": { + "start": { + "line": 106, + "column": 76 + }, + "end": { + "line": 108, + "column": 20 + } + }, + "value": "\n Load New Posts\n ", + "rawValue": null, + "raw": "\n Load New Posts\n " + }, + { + "type": "JSXElement", + "start": 2464, + "end": 2471, + "loc": { + "start": { + "line": 108, + "column": 20 + }, + "end": { + "line": 108, + "column": 27 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2464, + "end": 2471, + "loc": { + "start": { + "line": 108, + "column": 20 + }, + "end": { + "line": 108, + "column": 27 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 2465, + "end": 2468, + "loc": { + "start": { + "line": 108, + "column": 21 + }, + "end": { + "line": 108, + "column": 24 + } + }, + "name": "Ink" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 2471, + "end": 2488, + "loc": { + "start": { + "line": 108, + "column": 27 + }, + "end": { + "line": 109, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 2497, + "end": 2510, + "loc": { + "start": { + "line": 109, + "column": 25 + }, + "end": { + "line": 110, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n *\n * @returns markup\n ", + "start": 1878, + "end": 1919, + "loc": { + "start": { + "line": 89, + "column": 4 + }, + "end": { + "line": 92, + "column": 7 + } + }, + "range": [ + 1878, + 1919 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n *\n * @returns markup\n ", + "start": 2539, + "end": 2580, + "loc": { + "start": { + "line": 115, + "column": 4 + }, + "end": { + "line": 118, + "column": 7 + } + }, + "range": [ + 2539, + 2580 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 2585, + "end": 2985, + "loc": { + "start": { + "line": 119, + "column": 4 + }, + "end": { + "line": 131, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 2585, + "end": 2591, + "loc": { + "start": { + "line": 119, + "column": 4 + }, + "end": { + "line": 119, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 2591, + "end": 2985, + "loc": { + "start": { + "line": 119, + "column": 10 + }, + "end": { + "line": 131, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 2594, + "end": 2985, + "loc": { + "start": { + "line": 119, + "column": 13 + }, + "end": { + "line": 131, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 2604, + "end": 2979, + "loc": { + "start": { + "line": 120, + "column": 8 + }, + "end": { + "line": 130, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 2625, + "end": 2969, + "loc": { + "start": { + "line": 121, + "column": 12 + }, + "end": { + "line": 129, + "column": 18 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2625, + "end": 2686, + "loc": { + "start": { + "line": 121, + "column": 12 + }, + "end": { + "line": 121, + "column": 73 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2630, + "end": 2656, + "loc": { + "start": { + "line": 121, + "column": 17 + }, + "end": { + "line": 121, + "column": 43 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2630, + "end": 2639, + "loc": { + "start": { + "line": 121, + "column": 17 + }, + "end": { + "line": 121, + "column": 26 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 2640, + "end": 2656, + "loc": { + "start": { + "line": 121, + "column": 27 + }, + "end": { + "line": 121, + "column": 43 + } + }, + "value": "page full-page", + "rawValue": null, + "raw": "\"page full-page\"" + } + }, + { + "type": "JSXAttribute", + "start": 2657, + "end": 2685, + "loc": { + "start": { + "line": 121, + "column": 44 + }, + "end": { + "line": 121, + "column": 72 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2657, + "end": 2660, + "loc": { + "start": { + "line": 121, + "column": 44 + }, + "end": { + "line": 121, + "column": 47 + } + }, + "name": "ref" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2661, + "end": 2685, + "loc": { + "start": { + "line": 121, + "column": 48 + }, + "end": { + "line": 121, + "column": 72 + } + }, + "expression": { + "type": "ArrowFunctionExpression", + "start": 2662, + "end": 2684, + "loc": { + "start": { + "line": 121, + "column": 49 + }, + "end": { + "line": 121, + "column": 71 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2662, + "end": 2663, + "loc": { + "start": { + "line": 121, + "column": 49 + }, + "end": { + "line": 121, + "column": 50 + } + }, + "name": "c" + } + ], + "body": { + "type": "AssignmentExpression", + "start": 2667, + "end": 2684, + "loc": { + "start": { + "line": 121, + "column": 54 + }, + "end": { + "line": 121, + "column": 71 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 2667, + "end": 2680, + "loc": { + "start": { + "line": 121, + "column": 54 + }, + "end": { + "line": 121, + "column": 67 + } + }, + "object": { + "type": "ThisExpression", + "start": 2667, + "end": 2671, + "loc": { + "start": { + "line": 121, + "column": 54 + }, + "end": { + "line": 121, + "column": 58 + } + } + }, + "property": { + "type": "Identifier", + "start": 2672, + "end": 2680, + "loc": { + "start": { + "line": 121, + "column": 59 + }, + "end": { + "line": 121, + "column": 67 + } + }, + "name": "_pageElm" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 2683, + "end": 2684, + "loc": { + "start": { + "line": 121, + "column": 70 + }, + "end": { + "line": 121, + "column": 71 + } + }, + "name": "c" + } + } + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2626, + "end": 2629, + "loc": { + "start": { + "line": 121, + "column": 13 + }, + "end": { + "line": 121, + "column": 16 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2963, + "end": 2969, + "loc": { + "start": { + "line": 129, + "column": 12 + }, + "end": { + "line": 129, + "column": 18 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2965, + "end": 2968, + "loc": { + "start": { + "line": 129, + "column": 14 + }, + "end": { + "line": 129, + "column": 17 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 2686, + "end": 2703, + "loc": { + "start": { + "line": 121, + "column": 73 + }, + "end": { + "line": 122, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 2703, + "end": 2731, + "loc": { + "start": { + "line": 122, + "column": 16 + }, + "end": { + "line": 122, + "column": 44 + } + }, + "expression": { + "type": "CallExpression", + "start": 2704, + "end": 2730, + "loc": { + "start": { + "line": 122, + "column": 17 + }, + "end": { + "line": 122, + "column": 43 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2704, + "end": 2728, + "loc": { + "start": { + "line": 122, + "column": 17 + }, + "end": { + "line": 122, + "column": 41 + } + }, + "object": { + "type": "ThisExpression", + "start": 2704, + "end": 2708, + "loc": { + "start": { + "line": 122, + "column": 17 + }, + "end": { + "line": 122, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "start": 2709, + "end": 2728, + "loc": { + "start": { + "line": 122, + "column": 22 + }, + "end": { + "line": 122, + "column": 41 + } + }, + "name": "renderListOrMessage" + }, + "computed": false + }, + "arguments": [] + } + }, + { + "type": "Literal", + "start": 2731, + "end": 2748, + "loc": { + "start": { + "line": 122, + "column": 44 + }, + "end": { + "line": 123, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 2748, + "end": 2950, + "loc": { + "start": { + "line": 123, + "column": 16 + }, + "end": { + "line": 128, + "column": 23 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2748, + "end": 2769, + "loc": { + "start": { + "line": 123, + "column": 16 + }, + "end": { + "line": 123, + "column": 37 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2754, + "end": 2768, + "loc": { + "start": { + "line": 123, + "column": 22 + }, + "end": { + "line": 123, + "column": 36 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2754, + "end": 2756, + "loc": { + "start": { + "line": 123, + "column": 22 + }, + "end": { + "line": 123, + "column": 24 + } + }, + "name": "to" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2757, + "end": 2768, + "loc": { + "start": { + "line": 123, + "column": 25 + }, + "end": { + "line": 123, + "column": 36 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 2758, + "end": 2767, + "loc": { + "start": { + "line": 123, + "column": 26 + }, + "end": { + "line": 123, + "column": 35 + } + }, + "expressions": [], + "quasis": [ + { + "type": "TemplateElement", + "start": 2759, + "end": 2766, + "loc": { + "start": { + "line": 123, + "column": 27 + }, + "end": { + "line": 123, + "column": 34 + } + }, + "value": { + "raw": "/upload", + "cooked": "/upload" + }, + "tail": true + } + ] + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2749, + "end": 2753, + "loc": { + "start": { + "line": 123, + "column": 17 + }, + "end": { + "line": 123, + "column": 21 + } + }, + "name": "Link" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2943, + "end": 2950, + "loc": { + "start": { + "line": 128, + "column": 16 + }, + "end": { + "line": 128, + "column": 23 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2945, + "end": 2949, + "loc": { + "start": { + "line": 128, + "column": 18 + }, + "end": { + "line": 128, + "column": 22 + } + }, + "name": "Link" + } + }, + "children": [ + { + "type": "Literal", + "start": 2769, + "end": 2790, + "loc": { + "start": { + "line": 123, + "column": 37 + }, + "end": { + "line": 124, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 2790, + "end": 2926, + "loc": { + "start": { + "line": 124, + "column": 20 + }, + "end": { + "line": 127, + "column": 26 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2790, + "end": 2817, + "loc": { + "start": { + "line": 124, + "column": 20 + }, + "end": { + "line": 124, + "column": 47 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2795, + "end": 2816, + "loc": { + "start": { + "line": 124, + "column": 25 + }, + "end": { + "line": 124, + "column": 46 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2795, + "end": 2804, + "loc": { + "start": { + "line": 124, + "column": 25 + }, + "end": { + "line": 124, + "column": 34 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 2805, + "end": 2816, + "loc": { + "start": { + "line": 124, + "column": 35 + }, + "end": { + "line": 124, + "column": 46 + } + }, + "value": "add-photo", + "rawValue": null, + "raw": "\"add-photo\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2791, + "end": 2794, + "loc": { + "start": { + "line": 124, + "column": 21 + }, + "end": { + "line": 124, + "column": 24 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2920, + "end": 2926, + "loc": { + "start": { + "line": 127, + "column": 20 + }, + "end": { + "line": 127, + "column": 26 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2922, + "end": 2925, + "loc": { + "start": { + "line": 127, + "column": 22 + }, + "end": { + "line": 127, + "column": 25 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 2817, + "end": 2842, + "loc": { + "start": { + "line": 124, + "column": 47 + }, + "end": { + "line": 125, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 2842, + "end": 2867, + "loc": { + "start": { + "line": 125, + "column": 24 + }, + "end": { + "line": 125, + "column": 49 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2842, + "end": 2867, + "loc": { + "start": { + "line": 125, + "column": 24 + }, + "end": { + "line": 125, + "column": 49 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2845, + "end": 2865, + "loc": { + "start": { + "line": 125, + "column": 27 + }, + "end": { + "line": 125, + "column": 47 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2845, + "end": 2854, + "loc": { + "start": { + "line": 125, + "column": 27 + }, + "end": { + "line": 125, + "column": 36 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 2855, + "end": 2865, + "loc": { + "start": { + "line": 125, + "column": 37 + }, + "end": { + "line": 125, + "column": 47 + } + }, + "value": "ion-plus", + "rawValue": null, + "raw": "\"ion-plus\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2843, + "end": 2844, + "loc": { + "start": { + "line": 125, + "column": 25 + }, + "end": { + "line": 125, + "column": 26 + } + }, + "name": "i" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 2867, + "end": 2892, + "loc": { + "start": { + "line": 125, + "column": 49 + }, + "end": { + "line": 126, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 2892, + "end": 2899, + "loc": { + "start": { + "line": 126, + "column": 24 + }, + "end": { + "line": 126, + "column": 31 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2892, + "end": 2899, + "loc": { + "start": { + "line": 126, + "column": 24 + }, + "end": { + "line": 126, + "column": 31 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 2893, + "end": 2896, + "loc": { + "start": { + "line": 126, + "column": 25 + }, + "end": { + "line": 126, + "column": 28 + } + }, + "name": "Ink" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 2899, + "end": 2920, + "loc": { + "start": { + "line": 126, + "column": 31 + }, + "end": { + "line": 127, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 2926, + "end": 2943, + "loc": { + "start": { + "line": 127, + "column": 26 + }, + "end": { + "line": 128, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 2950, + "end": 2963, + "loc": { + "start": { + "line": 128, + "column": 23 + }, + "end": { + "line": 129, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n *\n * @returns markup\n ", + "start": 2539, + "end": 2580, + "loc": { + "start": { + "line": 115, + "column": 4 + }, + "end": { + "line": 118, + "column": 7 + } + }, + "range": [ + 2539, + 2580 + ] + } + ] + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Landing\n * Landing component used by Home route\n ", + "start": 369, + "end": 427, + "loc": { + "start": { + "line": 18, + "column": 0 + }, + "end": { + "line": 21, + "column": 3 + } + }, + "range": [ + 369, + 427 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Home\n * '/'\n * React Route - Documentation: https://github.com/reactjs/react-router/tree/master/docs\n ", + "start": 2989, + "end": 3100, + "loc": { + "start": { + "line": 134, + "column": 0 + }, + "end": { + "line": 138, + "column": 3 + } + }, + "range": [ + 2989, + 3100 + ] + } + ] + }, + { + "type": "ClassDeclaration", + "start": 3101, + "end": 3717, + "loc": { + "start": { + "line": 139, + "column": 0 + }, + "end": { + "line": 166, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 3107, + "end": 3111, + "loc": { + "start": { + "line": 139, + "column": 6 + }, + "end": { + "line": 139, + "column": 10 + } + }, + "name": "Home", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 3120, + "end": 3129, + "loc": { + "start": { + "line": 139, + "column": 19 + }, + "end": { + "line": 139, + "column": 28 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 3130, + "end": 3717, + "loc": { + "start": { + "line": 139, + "column": 29 + }, + "end": { + "line": 166, + "column": 1 + } + }, + "body": [ + { + "type": "Identifier", + "start": 3190, + "end": 3304, + "loc": { + "start": { + "line": 145, + "column": 4 + }, + "end": { + "line": 147, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 3190, + "end": 3200, + "loc": { + "start": { + "line": 145, + "column": 4 + }, + "end": { + "line": 145, + "column": 14 + } + }, + "name": "handleLike", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ArrowFunctionExpression", + "start": 3203, + "end": 3304, + "loc": { + "start": { + "line": 145, + "column": 17 + }, + "end": { + "line": 147, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 3204, + "end": 3208, + "loc": { + "start": { + "line": 145, + "column": 18 + }, + "end": { + "line": 145, + "column": 22 + } + }, + "name": "data" + } + ], + "body": { + "type": "BlockStatement", + "start": 3213, + "end": 3304, + "loc": { + "start": { + "line": 145, + "column": 27 + }, + "end": { + "line": 147, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 3223, + "end": 3298, + "loc": { + "start": { + "line": 146, + "column": 8 + }, + "end": { + "line": 146, + "column": 83 + } + }, + "expression": { + "type": "CallExpression", + "start": 3223, + "end": 3298, + "loc": { + "start": { + "line": 146, + "column": 8 + }, + "end": { + "line": 146, + "column": 83 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3223, + "end": 3242, + "loc": { + "start": { + "line": 146, + "column": 8 + }, + "end": { + "line": 146, + "column": 27 + } + }, + "object": { + "type": "MemberExpression", + "start": 3223, + "end": 3233, + "loc": { + "start": { + "line": 146, + "column": 8 + }, + "end": { + "line": 146, + "column": 18 + } + }, + "object": { + "type": "ThisExpression", + "start": 3223, + "end": 3227, + "loc": { + "start": { + "line": 146, + "column": 8 + }, + "end": { + "line": 146, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 3228, + "end": 3233, + "loc": { + "start": { + "line": 146, + "column": 13 + }, + "end": { + "line": 146, + "column": 18 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3234, + "end": 3242, + "loc": { + "start": { + "line": 146, + "column": 19 + }, + "end": { + "line": 146, + "column": 27 + } + }, + "name": "dispatch" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 3243, + "end": 3297, + "loc": { + "start": { + "line": 146, + "column": 28 + }, + "end": { + "line": 146, + "column": 82 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3243, + "end": 3288, + "loc": { + "start": { + "line": 146, + "column": 28 + }, + "end": { + "line": 146, + "column": 73 + } + }, + "object": { + "type": "Identifier", + "start": 3243, + "end": 3256, + "loc": { + "start": { + "line": 146, + "column": 28 + }, + "end": { + "line": 146, + "column": 41 + } + }, + "name": "PhotosActions" + }, + "property": { + "type": "ConditionalExpression", + "start": 3257, + "end": 3287, + "loc": { + "start": { + "line": 146, + "column": 42 + }, + "end": { + "line": 146, + "column": 72 + } + }, + "test": { + "type": "MemberExpression", + "start": 3257, + "end": 3267, + "loc": { + "start": { + "line": 146, + "column": 42 + }, + "end": { + "line": 146, + "column": 52 + } + }, + "object": { + "type": "Identifier", + "start": 3257, + "end": 3261, + "loc": { + "start": { + "line": 146, + "column": 42 + }, + "end": { + "line": 146, + "column": 46 + } + }, + "name": "data" + }, + "property": { + "type": "Identifier", + "start": 3262, + "end": 3267, + "loc": { + "start": { + "line": 146, + "column": 47 + }, + "end": { + "line": 146, + "column": 52 + } + }, + "name": "liked" + }, + "computed": false + }, + "consequent": { + "type": "Literal", + "start": 3270, + "end": 3276, + "loc": { + "start": { + "line": 146, + "column": 55 + }, + "end": { + "line": 146, + "column": 61 + } + }, + "value": "like", + "rawValue": "like", + "raw": "'like'" + }, + "alternate": { + "type": "Literal", + "start": 3279, + "end": 3287, + "loc": { + "start": { + "line": 146, + "column": 64 + }, + "end": { + "line": 146, + "column": 72 + } + }, + "value": "unlike", + "rawValue": "unlike", + "raw": "'unlike'" + } + }, + "computed": true + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 3289, + "end": 3296, + "loc": { + "start": { + "line": 146, + "column": 74 + }, + "end": { + "line": 146, + "column": 81 + } + }, + "object": { + "type": "Identifier", + "start": 3289, + "end": 3293, + "loc": { + "start": { + "line": 146, + "column": 74 + }, + "end": { + "line": 146, + "column": 78 + } + }, + "name": "data" + }, + "property": { + "type": "Identifier", + "start": 3294, + "end": 3296, + "loc": { + "start": { + "line": 146, + "column": 79 + }, + "end": { + "line": 146, + "column": 81 + } + }, + "name": "id" + }, + "computed": false + } + ] + } + ] + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * handleLike\n * @param data\n ", + "start": 3137, + "end": 3185, + "loc": { + "start": { + "line": 141, + "column": 4 + }, + "end": { + "line": 144, + "column": 7 + } + }, + "range": [ + 3137, + 3185 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * handleFetch\n ", + "start": 3310, + "end": 3340, + "loc": { + "start": { + "line": 149, + "column": 4 + }, + "end": { + "line": 151, + "column": 7 + } + }, + "range": [ + 3310, + 3340 + ] + } + ] + }, + { + "type": "Identifier", + "start": 3345, + "end": 3426, + "loc": { + "start": { + "line": 152, + "column": 4 + }, + "end": { + "line": 154, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 3345, + "end": 3356, + "loc": { + "start": { + "line": 152, + "column": 4 + }, + "end": { + "line": 152, + "column": 15 + } + }, + "name": "handleFetch", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ArrowFunctionExpression", + "start": 3359, + "end": 3426, + "loc": { + "start": { + "line": 152, + "column": 18 + }, + "end": { + "line": 154, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 3365, + "end": 3426, + "loc": { + "start": { + "line": 152, + "column": 24 + }, + "end": { + "line": 154, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 3375, + "end": 3420, + "loc": { + "start": { + "line": 153, + "column": 8 + }, + "end": { + "line": 153, + "column": 53 + } + }, + "expression": { + "type": "CallExpression", + "start": 3375, + "end": 3420, + "loc": { + "start": { + "line": 153, + "column": 8 + }, + "end": { + "line": 153, + "column": 53 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3375, + "end": 3394, + "loc": { + "start": { + "line": 153, + "column": 8 + }, + "end": { + "line": 153, + "column": 27 + } + }, + "object": { + "type": "MemberExpression", + "start": 3375, + "end": 3385, + "loc": { + "start": { + "line": 153, + "column": 8 + }, + "end": { + "line": 153, + "column": 18 + } + }, + "object": { + "type": "ThisExpression", + "start": 3375, + "end": 3379, + "loc": { + "start": { + "line": 153, + "column": 8 + }, + "end": { + "line": 153, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 3380, + "end": 3385, + "loc": { + "start": { + "line": 153, + "column": 13 + }, + "end": { + "line": 153, + "column": 18 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3386, + "end": 3394, + "loc": { + "start": { + "line": 153, + "column": 19 + }, + "end": { + "line": 153, + "column": 27 + } + }, + "name": "dispatch" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 3395, + "end": 3419, + "loc": { + "start": { + "line": 153, + "column": 28 + }, + "end": { + "line": 153, + "column": 52 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3395, + "end": 3417, + "loc": { + "start": { + "line": 153, + "column": 28 + }, + "end": { + "line": 153, + "column": 50 + } + }, + "object": { + "type": "Identifier", + "start": 3395, + "end": 3408, + "loc": { + "start": { + "line": 153, + "column": 28 + }, + "end": { + "line": 153, + "column": 41 + } + }, + "name": "PhotosActions" + }, + "property": { + "type": "Identifier", + "start": 3409, + "end": 3417, + "loc": { + "start": { + "line": 153, + "column": 42 + }, + "end": { + "line": 153, + "column": 50 + } + }, + "name": "paginate" + }, + "computed": false + }, + "arguments": [] + } + ] + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * handleFetch\n ", + "start": 3310, + "end": 3340, + "loc": { + "start": { + "line": 149, + "column": 4 + }, + "end": { + "line": 151, + "column": 7 + } + }, + "range": [ + 3310, + 3340 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns {*|markup}\n ", + "start": 3432, + "end": 3484, + "loc": { + "start": { + "line": 156, + "column": 4 + }, + "end": { + "line": 159, + "column": 7 + } + }, + "range": [ + 3432, + 3484 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 3489, + "end": 3714, + "loc": { + "start": { + "line": 160, + "column": 4 + }, + "end": { + "line": 164, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 3489, + "end": 3495, + "loc": { + "start": { + "line": 160, + "column": 4 + }, + "end": { + "line": 160, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 3495, + "end": 3714, + "loc": { + "start": { + "line": 160, + "column": 10 + }, + "end": { + "line": 164, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 3498, + "end": 3714, + "loc": { + "start": { + "line": 160, + "column": 13 + }, + "end": { + "line": 164, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 3508, + "end": 3708, + "loc": { + "start": { + "line": 161, + "column": 8 + }, + "end": { + "line": 163, + "column": 71 + } + }, + "argument": { + "type": "LogicalExpression", + "start": 3516, + "end": 3707, + "loc": { + "start": { + "line": 161, + "column": 16 + }, + "end": { + "line": 163, + "column": 70 + } + }, + "left": { + "type": "MemberExpression", + "start": 3516, + "end": 3535, + "loc": { + "start": { + "line": 161, + "column": 16 + }, + "end": { + "line": 161, + "column": 35 + } + }, + "object": { + "type": "MemberExpression", + "start": 3516, + "end": 3526, + "loc": { + "start": { + "line": 161, + "column": 16 + }, + "end": { + "line": 161, + "column": 26 + } + }, + "object": { + "type": "ThisExpression", + "start": 3516, + "end": 3520, + "loc": { + "start": { + "line": 161, + "column": 16 + }, + "end": { + "line": 161, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "start": 3521, + "end": 3526, + "loc": { + "start": { + "line": 161, + "column": 21 + }, + "end": { + "line": 161, + "column": 26 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3527, + "end": 3535, + "loc": { + "start": { + "line": 161, + "column": 27 + }, + "end": { + "line": 161, + "column": 35 + } + }, + "name": "children" + }, + "computed": false + }, + "operator": "||", + "right": { + "type": "JSXElement", + "start": 3547, + "end": 3707, + "loc": { + "start": { + "line": 162, + "column": 8 + }, + "end": { + "line": 163, + "column": 70 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3547, + "end": 3707, + "loc": { + "start": { + "line": 162, + "column": 8 + }, + "end": { + "line": 163, + "column": 70 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3556, + "end": 3582, + "loc": { + "start": { + "line": 162, + "column": 17 + }, + "end": { + "line": 162, + "column": 43 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3556, + "end": 3562, + "loc": { + "start": { + "line": 162, + "column": 17 + }, + "end": { + "line": 162, + "column": 23 + } + }, + "name": "tokens" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 3563, + "end": 3582, + "loc": { + "start": { + "line": 162, + "column": 24 + }, + "end": { + "line": 162, + "column": 43 + } + }, + "expression": { + "type": "MemberExpression", + "start": 3564, + "end": 3581, + "loc": { + "start": { + "line": 162, + "column": 25 + }, + "end": { + "line": 162, + "column": 42 + } + }, + "object": { + "type": "MemberExpression", + "start": 3564, + "end": 3574, + "loc": { + "start": { + "line": 162, + "column": 25 + }, + "end": { + "line": 162, + "column": 35 + } + }, + "object": { + "type": "ThisExpression", + "start": 3564, + "end": 3568, + "loc": { + "start": { + "line": 162, + "column": 25 + }, + "end": { + "line": 162, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "start": 3569, + "end": 3574, + "loc": { + "start": { + "line": 162, + "column": 30 + }, + "end": { + "line": 162, + "column": 35 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3575, + "end": 3581, + "loc": { + "start": { + "line": 162, + "column": 36 + }, + "end": { + "line": 162, + "column": 42 + } + }, + "name": "tokens" + }, + "computed": false + } + } + }, + { + "type": "JSXAttribute", + "start": 3583, + "end": 3609, + "loc": { + "start": { + "line": 162, + "column": 44 + }, + "end": { + "line": 162, + "column": 70 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3583, + "end": 3590, + "loc": { + "start": { + "line": 162, + "column": 44 + }, + "end": { + "line": 162, + "column": 51 + } + }, + "name": "onFetch" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 3591, + "end": 3609, + "loc": { + "start": { + "line": 162, + "column": 52 + }, + "end": { + "line": 162, + "column": 70 + } + }, + "expression": { + "type": "MemberExpression", + "start": 3592, + "end": 3608, + "loc": { + "start": { + "line": 162, + "column": 53 + }, + "end": { + "line": 162, + "column": 69 + } + }, + "object": { + "type": "ThisExpression", + "start": 3592, + "end": 3596, + "loc": { + "start": { + "line": 162, + "column": 53 + }, + "end": { + "line": 162, + "column": 57 + } + } + }, + "property": { + "type": "Identifier", + "start": 3597, + "end": 3608, + "loc": { + "start": { + "line": 162, + "column": 58 + }, + "end": { + "line": 162, + "column": 69 + } + }, + "name": "handleFetch" + }, + "computed": false + } + } + }, + { + "type": "JSXAttribute", + "start": 3610, + "end": 3636, + "loc": { + "start": { + "line": 162, + "column": 71 + }, + "end": { + "line": 162, + "column": 97 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3610, + "end": 3616, + "loc": { + "start": { + "line": 162, + "column": 71 + }, + "end": { + "line": 162, + "column": 77 + } + }, + "name": "photos" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 3617, + "end": 3636, + "loc": { + "start": { + "line": 162, + "column": 78 + }, + "end": { + "line": 162, + "column": 97 + } + }, + "expression": { + "type": "MemberExpression", + "start": 3618, + "end": 3635, + "loc": { + "start": { + "line": 162, + "column": 79 + }, + "end": { + "line": 162, + "column": 96 + } + }, + "object": { + "type": "MemberExpression", + "start": 3618, + "end": 3628, + "loc": { + "start": { + "line": 162, + "column": 79 + }, + "end": { + "line": 162, + "column": 89 + } + }, + "object": { + "type": "ThisExpression", + "start": 3618, + "end": 3622, + "loc": { + "start": { + "line": 162, + "column": 79 + }, + "end": { + "line": 162, + "column": 83 + } + } + }, + "property": { + "type": "Identifier", + "start": 3623, + "end": 3628, + "loc": { + "start": { + "line": 162, + "column": 84 + }, + "end": { + "line": 162, + "column": 89 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3629, + "end": 3635, + "loc": { + "start": { + "line": 162, + "column": 90 + }, + "end": { + "line": 162, + "column": 96 + } + }, + "name": "photos" + }, + "computed": false + } + } + }, + { + "type": "JSXAttribute", + "start": 3654, + "end": 3680, + "loc": { + "start": { + "line": 163, + "column": 17 + }, + "end": { + "line": 163, + "column": 43 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3654, + "end": 3660, + "loc": { + "start": { + "line": 163, + "column": 17 + }, + "end": { + "line": 163, + "column": 23 + } + }, + "name": "userID" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 3661, + "end": 3680, + "loc": { + "start": { + "line": 163, + "column": 24 + }, + "end": { + "line": 163, + "column": 43 + } + }, + "expression": { + "type": "MemberExpression", + "start": 3662, + "end": 3679, + "loc": { + "start": { + "line": 163, + "column": 25 + }, + "end": { + "line": 163, + "column": 42 + } + }, + "object": { + "type": "MemberExpression", + "start": 3662, + "end": 3672, + "loc": { + "start": { + "line": 163, + "column": 25 + }, + "end": { + "line": 163, + "column": 35 + } + }, + "object": { + "type": "ThisExpression", + "start": 3662, + "end": 3666, + "loc": { + "start": { + "line": 163, + "column": 25 + }, + "end": { + "line": 163, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "start": 3667, + "end": 3672, + "loc": { + "start": { + "line": 163, + "column": 30 + }, + "end": { + "line": 163, + "column": 35 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3673, + "end": 3679, + "loc": { + "start": { + "line": 163, + "column": 36 + }, + "end": { + "line": 163, + "column": 42 + } + }, + "name": "userID" + }, + "computed": false + } + } + }, + { + "type": "JSXAttribute", + "start": 3681, + "end": 3705, + "loc": { + "start": { + "line": 163, + "column": 44 + }, + "end": { + "line": 163, + "column": 68 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3681, + "end": 3687, + "loc": { + "start": { + "line": 163, + "column": 44 + }, + "end": { + "line": 163, + "column": 50 + } + }, + "name": "onLike" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 3688, + "end": 3705, + "loc": { + "start": { + "line": 163, + "column": 51 + }, + "end": { + "line": 163, + "column": 68 + } + }, + "expression": { + "type": "MemberExpression", + "start": 3689, + "end": 3704, + "loc": { + "start": { + "line": 163, + "column": 52 + }, + "end": { + "line": 163, + "column": 67 + } + }, + "object": { + "type": "ThisExpression", + "start": 3689, + "end": 3693, + "loc": { + "start": { + "line": 163, + "column": 52 + }, + "end": { + "line": 163, + "column": 56 + } + } + }, + "property": { + "type": "Identifier", + "start": 3694, + "end": 3704, + "loc": { + "start": { + "line": 163, + "column": 57 + }, + "end": { + "line": 163, + "column": 67 + } + }, + "name": "handleLike" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3548, + "end": 3555, + "loc": { + "start": { + "line": 162, + "column": 9 + }, + "end": { + "line": 162, + "column": 16 + } + }, + "name": "Landing" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + "parenthesizedExpression": true + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns {*|markup}\n ", + "start": 3432, + "end": 3484, + "loc": { + "start": { + "line": 156, + "column": 4 + }, + "end": { + "line": 159, + "column": 7 + } + }, + "range": [ + 3432, + 3484 + ] + } + ] + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Home\n * '/'\n * React Route - Documentation: https://github.com/reactjs/react-router/tree/master/docs\n ", + "start": 2989, + "end": 3100, + "loc": { + "start": { + "line": 134, + "column": 0 + }, + "end": { + "line": 138, + "column": 3 + } + }, + "range": [ + 2989, + 3100 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * connect\n * Connects React component to a Redux store\n * Documentation: https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options\n ", + "start": 3719, + "end": 3924, + "loc": { + "start": { + "line": 168, + "column": 0 + }, + "end": { + "line": 172, + "column": 3 + } + }, + "range": [ + 3719, + 3924 + ] + } + ] + }, + { + "type": "ExportDefaultDeclaration", + "start": 3925, + "end": 4043, + "loc": { + "start": { + "line": 173, + "column": 0 + }, + "end": { + "line": 177, + "column": 9 + } + }, + "declaration": { + "type": "CallExpression", + "start": 3940, + "end": 4043, + "loc": { + "start": { + "line": 173, + "column": 15 + }, + "end": { + "line": 177, + "column": 9 + } + }, + "callee": { + "type": "CallExpression", + "start": 3940, + "end": 4037, + "loc": { + "start": { + "line": 173, + "column": 15 + }, + "end": { + "line": 177, + "column": 3 + } + }, + "callee": { + "type": "Identifier", + "start": 3940, + "end": 3947, + "loc": { + "start": { + "line": 173, + "column": 15 + }, + "end": { + "line": 173, + "column": 22 + } + }, + "name": "connect", + "leadingComments": null + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 3948, + "end": 4036, + "loc": { + "start": { + "line": 173, + "column": 23 + }, + "end": { + "line": 177, + "column": 2 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 3948, + "end": 3953, + "loc": { + "start": { + "line": 173, + "column": 23 + }, + "end": { + "line": 173, + "column": 28 + } + }, + "name": "state" + } + ], + "body": { + "type": "ObjectExpression", + "start": 3958, + "end": 4035, + "loc": { + "start": { + "line": 173, + "column": 33 + }, + "end": { + "line": 177, + "column": 1 + } + }, + "properties": [ + { + "type": "Property", + "start": 3964, + "end": 3980, + "loc": { + "start": { + "line": 174, + "column": 4 + }, + "end": { + "line": 174, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3964, + "end": 3968, + "loc": { + "start": { + "line": 174, + "column": 4 + }, + "end": { + "line": 174, + "column": 8 + } + }, + "name": "user" + }, + "value": { + "type": "MemberExpression", + "start": 3970, + "end": 3980, + "loc": { + "start": { + "line": 174, + "column": 10 + }, + "end": { + "line": 174, + "column": 20 + } + }, + "object": { + "type": "Identifier", + "start": 3970, + "end": 3975, + "loc": { + "start": { + "line": 174, + "column": 10 + }, + "end": { + "line": 174, + "column": 15 + } + }, + "name": "state" + }, + "property": { + "type": "Identifier", + "start": 3976, + "end": 3980, + "loc": { + "start": { + "line": 174, + "column": 16 + }, + "end": { + "line": 174, + "column": 20 + } + }, + "name": "User" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 3986, + "end": 4006, + "loc": { + "start": { + "line": 175, + "column": 4 + }, + "end": { + "line": 175, + "column": 24 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3986, + "end": 3992, + "loc": { + "start": { + "line": 175, + "column": 4 + }, + "end": { + "line": 175, + "column": 10 + } + }, + "name": "tokens" + }, + "value": { + "type": "MemberExpression", + "start": 3994, + "end": 4006, + "loc": { + "start": { + "line": 175, + "column": 12 + }, + "end": { + "line": 175, + "column": 24 + } + }, + "object": { + "type": "Identifier", + "start": 3994, + "end": 3999, + "loc": { + "start": { + "line": 175, + "column": 12 + }, + "end": { + "line": 175, + "column": 17 + } + }, + "name": "state" + }, + "property": { + "type": "Identifier", + "start": 4000, + "end": 4006, + "loc": { + "start": { + "line": 175, + "column": 18 + }, + "end": { + "line": 175, + "column": 24 + } + }, + "name": "Tokens" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 4012, + "end": 4032, + "loc": { + "start": { + "line": 176, + "column": 4 + }, + "end": { + "line": 176, + "column": 24 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 4012, + "end": 4018, + "loc": { + "start": { + "line": 176, + "column": 4 + }, + "end": { + "line": 176, + "column": 10 + } + }, + "name": "photos" + }, + "value": { + "type": "MemberExpression", + "start": 4020, + "end": 4032, + "loc": { + "start": { + "line": 176, + "column": 12 + }, + "end": { + "line": 176, + "column": 24 + } + }, + "object": { + "type": "Identifier", + "start": 4020, + "end": 4025, + "loc": { + "start": { + "line": 176, + "column": 12 + }, + "end": { + "line": 176, + "column": 17 + } + }, + "name": "state" + }, + "property": { + "type": "Identifier", + "start": 4026, + "end": 4032, + "loc": { + "start": { + "line": 176, + "column": 18 + }, + "end": { + "line": 176, + "column": 24 + } + }, + "name": "Photos" + }, + "computed": false + }, + "kind": "init" + } + ], + "parenthesizedExpression": true + } + } + ], + "leadingComments": null + }, + "arguments": [ + { + "type": "Identifier", + "start": 4038, + "end": 4042, + "loc": { + "start": { + "line": 177, + "column": 4 + }, + "end": { + "line": 177, + "column": 8 + } + }, + "name": "Home" + } + ], + "leadingComments": [ + { + "type": "Block", + "value": "*\n * connect\n * Connects React component to a Redux store\n * Documentation: https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options\n ", + "start": 3719, + "end": 3924, + "loc": { + "start": { + "line": 168, + "column": 0 + }, + "end": { + "line": 172, + "column": 3 + } + }, + "range": [ + 3719, + 3924 + ] + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * connect\n * Connects React component to a Redux store\n * Documentation: https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options\n ", + "start": 3719, + "end": 3924, + "loc": { + "start": { + "line": 168, + "column": 0 + }, + "end": { + "line": 172, + "column": 3 + } + }, + "range": [ + 3719, + 3924 + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/routes/Home/index.js.json b/app/docs/ast/source/routes/Home/index.js.json new file mode 100644 index 0000000..42a32a8 --- /dev/null +++ b/app/docs/ast/source/routes/Home/index.js.json @@ -0,0 +1,706 @@ +{ + "type": "Program", + "start": 0, + "end": 428, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 25, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ExpressionStatement", + "start": 0, + "end": 427, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 24, + "column": 1 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 0, + "end": 427, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 24, + "column": 1 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 0, + "end": 14, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 14 + } + }, + "object": { + "type": "Identifier", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + }, + "name": "module" + }, + "property": { + "type": "Identifier", + "start": 7, + "end": 14, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 14 + } + }, + "name": "exports" + }, + "computed": false + }, + "right": { + "type": "ObjectExpression", + "start": 17, + "end": 427, + "loc": { + "start": { + "line": 1, + "column": 17 + }, + "end": { + "line": 24, + "column": 1 + } + }, + "properties": [ + { + "type": "Property", + "start": 23, + "end": 32, + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 23, + "end": 27, + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 8 + } + }, + "name": "path" + }, + "value": { + "type": "Literal", + "start": 29, + "end": 32, + "loc": { + "start": { + "line": 2, + "column": 10 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "value": "/", + "rawValue": "/", + "raw": "'/'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 137, + "end": 242, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 13, + "column": 5 + } + }, + "method": true, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 137, + "end": 151, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 9, + "column": 18 + } + }, + "name": "getChildRoutes", + "leadingComments": null + }, + "kind": "init", + "value": { + "type": "FunctionExpression", + "start": 151, + "end": 242, + "loc": { + "start": { + "line": 9, + "column": 18 + }, + "end": { + "line": 13, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 152, + "end": 160, + "loc": { + "start": { + "line": 9, + "column": 19 + }, + "end": { + "line": 9, + "column": 27 + } + }, + "name": "location" + }, + { + "type": "Identifier", + "start": 162, + "end": 164, + "loc": { + "start": { + "line": 9, + "column": 29 + }, + "end": { + "line": 9, + "column": 31 + } + }, + "name": "cb" + } + ], + "body": { + "type": "BlockStatement", + "start": 166, + "end": 242, + "loc": { + "start": { + "line": 9, + "column": 33 + }, + "end": { + "line": 13, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 176, + "end": 236, + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 12, + "column": 10 + } + }, + "expression": { + "type": "CallExpression", + "start": 176, + "end": 236, + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 12, + "column": 10 + } + }, + "callee": { + "type": "Identifier", + "start": 176, + "end": 178, + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 10 + } + }, + "name": "cb" + }, + "arguments": [ + { + "type": "Literal", + "start": 179, + "end": 183, + "loc": { + "start": { + "line": 10, + "column": 11 + }, + "end": { + "line": 10, + "column": 15 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + { + "type": "ArrayExpression", + "start": 185, + "end": 235, + "loc": { + "start": { + "line": 10, + "column": 17 + }, + "end": { + "line": 12, + "column": 9 + } + }, + "elements": [ + { + "type": "CallExpression", + "start": 199, + "end": 224, + "loc": { + "start": { + "line": 11, + "column": 12 + }, + "end": { + "line": 11, + "column": 37 + } + }, + "callee": { + "type": "Identifier", + "start": 199, + "end": 206, + "loc": { + "start": { + "line": 11, + "column": 12 + }, + "end": { + "line": 11, + "column": 19 + } + }, + "name": "require" + }, + "arguments": [ + { + "type": "Literal", + "start": 207, + "end": 223, + "loc": { + "start": { + "line": 11, + "column": 20 + }, + "end": { + "line": 11, + "column": 36 + } + }, + "value": "./routes/Photo", + "rawValue": "./routes/Photo", + "raw": "'./routes/Photo'" + } + ] + } + ] + } + ] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * getChildRoutes\n * @param location\n * @param cb {Function} callback\n ", + "start": 39, + "end": 132, + "loc": { + "start": { + "line": 4, + "column": 4 + }, + "end": { + "line": 8, + "column": 7 + } + }, + "range": [ + 39, + 132 + ] + } + ] + }, + { + "type": "Property", + "start": 345, + "end": 423, + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 22, + "column": 5 + } + }, + "method": true, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 345, + "end": 357, + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 16 + } + }, + "name": "getComponent", + "leadingComments": null + }, + "kind": "init", + "value": { + "type": "FunctionExpression", + "start": 357, + "end": 423, + "loc": { + "start": { + "line": 20, + "column": 16 + }, + "end": { + "line": 22, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 358, + "end": 366, + "loc": { + "start": { + "line": 20, + "column": 17 + }, + "end": { + "line": 20, + "column": 25 + } + }, + "name": "location" + }, + { + "type": "Identifier", + "start": 368, + "end": 370, + "loc": { + "start": { + "line": 20, + "column": 27 + }, + "end": { + "line": 20, + "column": 29 + } + }, + "name": "cb" + } + ], + "body": { + "type": "BlockStatement", + "start": 372, + "end": 423, + "loc": { + "start": { + "line": 20, + "column": 31 + }, + "end": { + "line": 22, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 382, + "end": 417, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 43 + } + }, + "expression": { + "type": "CallExpression", + "start": 382, + "end": 417, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 43 + } + }, + "callee": { + "type": "Identifier", + "start": 382, + "end": 384, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 10 + } + }, + "name": "cb" + }, + "arguments": [ + { + "type": "Literal", + "start": 385, + "end": 389, + "loc": { + "start": { + "line": 21, + "column": 11 + }, + "end": { + "line": 21, + "column": 15 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + { + "type": "MemberExpression", + "start": 391, + "end": 416, + "loc": { + "start": { + "line": 21, + "column": 17 + }, + "end": { + "line": 21, + "column": 42 + } + }, + "object": { + "type": "CallExpression", + "start": 391, + "end": 408, + "loc": { + "start": { + "line": 21, + "column": 17 + }, + "end": { + "line": 21, + "column": 34 + } + }, + "callee": { + "type": "Identifier", + "start": 391, + "end": 398, + "loc": { + "start": { + "line": 21, + "column": 17 + }, + "end": { + "line": 21, + "column": 24 + } + }, + "name": "require" + }, + "arguments": [ + { + "type": "Literal", + "start": 399, + "end": 407, + "loc": { + "start": { + "line": 21, + "column": 25 + }, + "end": { + "line": 21, + "column": 33 + } + }, + "value": "./Home", + "rawValue": "./Home", + "raw": "'./Home'" + } + ] + }, + "property": { + "type": "Identifier", + "start": 409, + "end": 416, + "loc": { + "start": { + "line": 21, + "column": 35 + }, + "end": { + "line": 21, + "column": 42 + } + }, + "name": "default" + }, + "computed": false + } + ] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * getComponent\n * @param location\n * @param cb {Function} callback\n ", + "start": 249, + "end": 340, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 19, + "column": 7 + } + }, + "range": [ + 249, + 340 + ] + } + ] + } + ] + } + } + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/routes/Home/routes/Photo/Photo.js.json b/app/docs/ast/source/routes/Home/routes/Photo/Photo.js.json new file mode 100644 index 0000000..0565205 --- /dev/null +++ b/app/docs/ast/source/routes/Home/routes/Photo/Photo.js.json @@ -0,0 +1,6643 @@ +{ + "type": "Program", + "start": 0, + "end": 3013, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 113, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + }, + { + "type": "ImportSpecifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "imported": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + }, + "local": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 33, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 33 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ImportDeclaration", + "start": 41, + "end": 78, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 37 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 50, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "imported": { + "type": "Identifier", + "start": 50, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "name": "connect" + }, + "local": { + "type": "Identifier", + "start": 50, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "name": "connect" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 65, + "end": 78, + "loc": { + "start": { + "line": 2, + "column": 24 + }, + "end": { + "line": 2, + "column": 37 + } + }, + "value": "react-redux", + "rawValue": "react-redux", + "raw": "'react-redux'" + } + }, + { + "type": "ImportDeclaration", + "start": 79, + "end": 106, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 27 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 86, + "end": 92, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 13 + } + }, + "local": { + "type": "Identifier", + "start": 86, + "end": 92, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 13 + } + }, + "name": "config" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 98, + "end": 106, + "loc": { + "start": { + "line": 3, + "column": 19 + }, + "end": { + "line": 3, + "column": 27 + } + }, + "value": "config", + "rawValue": "config", + "raw": "'config'" + } + }, + { + "type": "ImportDeclaration", + "start": 108, + "end": 151, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 43 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 117, + "end": 126, + "loc": { + "start": { + "line": 5, + "column": 9 + }, + "end": { + "line": 5, + "column": 18 + } + }, + "imported": { + "type": "Identifier", + "start": 117, + "end": 126, + "loc": { + "start": { + "line": 5, + "column": 9 + }, + "end": { + "line": 5, + "column": 18 + } + }, + "name": "viewPhoto" + }, + "local": { + "type": "Identifier", + "start": 117, + "end": 126, + "loc": { + "start": { + "line": 5, + "column": 9 + }, + "end": { + "line": 5, + "column": 18 + } + }, + "name": "viewPhoto" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 134, + "end": 151, + "loc": { + "start": { + "line": 5, + "column": 26 + }, + "end": { + "line": 5, + "column": 43 + } + }, + "value": "utils/analytics", + "rawValue": "utils/analytics", + "raw": "'utils/analytics'" + } + }, + { + "type": "ImportDeclaration", + "start": 153, + "end": 203, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 50 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 162, + "end": 173, + "loc": { + "start": { + "line": 7, + "column": 9 + }, + "end": { + "line": 7, + "column": 20 + } + }, + "imported": { + "type": "Identifier", + "start": 162, + "end": 173, + "loc": { + "start": { + "line": 7, + "column": 9 + }, + "end": { + "line": 7, + "column": 20 + } + }, + "name": "PhotoFooter" + }, + "local": { + "type": "Identifier", + "start": 162, + "end": 173, + "loc": { + "start": { + "line": 7, + "column": 9 + }, + "end": { + "line": 7, + "column": 20 + } + }, + "name": "PhotoFooter" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 181, + "end": 203, + "loc": { + "start": { + "line": 7, + "column": 28 + }, + "end": { + "line": 7, + "column": 50 + } + }, + "value": "components/PhotoList", + "rawValue": "components/PhotoList", + "raw": "'components/PhotoList'" + } + }, + { + "type": "ImportDeclaration", + "start": 204, + "end": 258, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 54 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 211, + "end": 224, + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 20 + } + }, + "local": { + "type": "Identifier", + "start": 211, + "end": 224, + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 20 + } + }, + "name": "PhotoMetadata" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 230, + "end": 258, + "loc": { + "start": { + "line": 8, + "column": 26 + }, + "end": { + "line": 8, + "column": 54 + } + }, + "value": "./components/PhotoMetadata", + "rawValue": "./components/PhotoMetadata", + "raw": "'./components/PhotoMetadata'" + } + }, + { + "type": "ImportDeclaration", + "start": 259, + "end": 313, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 54 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 266, + "end": 279, + "loc": { + "start": { + "line": 9, + "column": 7 + }, + "end": { + "line": 9, + "column": 20 + } + }, + "local": { + "type": "Identifier", + "start": 266, + "end": 279, + "loc": { + "start": { + "line": 9, + "column": 7 + }, + "end": { + "line": 9, + "column": 20 + } + }, + "name": "PhotoComments" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 285, + "end": 313, + "loc": { + "start": { + "line": 9, + "column": 26 + }, + "end": { + "line": 9, + "column": 54 + } + }, + "value": "./components/PhotoComments", + "rawValue": "./components/PhotoComments", + "raw": "'./components/PhotoComments'" + } + }, + { + "type": "ImportDeclaration", + "start": 315, + "end": 424, + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 15, + "column": 16 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 328, + "end": 349, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 25 + } + }, + "imported": { + "type": "Identifier", + "start": 328, + "end": 333, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 9 + } + }, + "name": "Photo" + }, + "local": { + "type": "Identifier", + "start": 337, + "end": 349, + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 25 + } + }, + "name": "PhotoActions" + } + }, + { + "type": "ImportSpecifier", + "start": 355, + "end": 381, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 30 + } + }, + "imported": { + "type": "Identifier", + "start": 355, + "end": 363, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 12 + } + }, + "name": "Comments" + }, + "local": { + "type": "Identifier", + "start": 367, + "end": 381, + "loc": { + "start": { + "line": 13, + "column": 16 + }, + "end": { + "line": 13, + "column": 30 + } + }, + "name": "CommentActions" + } + }, + { + "type": "ImportSpecifier", + "start": 387, + "end": 406, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 23 + } + }, + "imported": { + "type": "Identifier", + "start": 387, + "end": 391, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 8 + } + }, + "name": "Like" + }, + "local": { + "type": "Identifier", + "start": 395, + "end": 406, + "loc": { + "start": { + "line": 14, + "column": 12 + }, + "end": { + "line": 14, + "column": 23 + } + }, + "name": "LikeActions" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 415, + "end": 424, + "loc": { + "start": { + "line": 15, + "column": 7 + }, + "end": { + "line": 15, + "column": 16 + } + }, + "value": "actions", + "rawValue": "actions", + "raw": "'actions'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * PhotoPage component used by Home route\n ", + "start": 426, + "end": 475, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 19, + "column": 3 + } + }, + "range": [ + 426, + 475 + ] + } + ] + }, + { + "type": "ClassDeclaration", + "start": 476, + "end": 2655, + "loc": { + "start": { + "line": 20, + "column": 0 + }, + "end": { + "line": 100, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 482, + "end": 491, + "loc": { + "start": { + "line": 20, + "column": 6 + }, + "end": { + "line": 20, + "column": 15 + } + }, + "name": "PhotoPage", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 500, + "end": 509, + "loc": { + "start": { + "line": 20, + "column": 24 + }, + "end": { + "line": 20, + "column": 33 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 510, + "end": 2655, + "loc": { + "start": { + "line": 20, + "column": 34 + }, + "end": { + "line": 100, + "column": 1 + } + }, + "body": [ + { + "type": "Identifier", + "start": 596, + "end": 680, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 30, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 603, + "end": 615, + "loc": { + "start": { + "line": 26, + "column": 11 + }, + "end": { + "line": 26, + "column": 23 + } + }, + "name": "defaultProps" + }, + "static": true, + "value": { + "type": "ObjectExpression", + "start": 618, + "end": 680, + "loc": { + "start": { + "line": 26, + "column": 26 + }, + "end": { + "line": 30, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 628, + "end": 673, + "loc": { + "start": { + "line": 27, + "column": 8 + }, + "end": { + "line": 29, + "column": 9 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 628, + "end": 633, + "loc": { + "start": { + "line": 27, + "column": 8 + }, + "end": { + "line": 27, + "column": 13 + } + }, + "name": "photo" + }, + "value": { + "type": "ObjectExpression", + "start": 635, + "end": 673, + "loc": { + "start": { + "line": 27, + "column": 15 + }, + "end": { + "line": 29, + "column": 9 + } + }, + "properties": [ + { + "type": "Property", + "start": 649, + "end": 662, + "loc": { + "start": { + "line": 28, + "column": 12 + }, + "end": { + "line": 28, + "column": 25 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 649, + "end": 656, + "loc": { + "start": { + "line": 28, + "column": 12 + }, + "end": { + "line": 28, + "column": 19 + } + }, + "name": "loading" + }, + "value": { + "type": "Literal", + "start": 658, + "end": 662, + "loc": { + "start": { + "line": 28, + "column": 21 + }, + "end": { + "line": 28, + "column": 25 + } + }, + "value": true, + "rawValue": true, + "raw": "true" + }, + "kind": "init" + } + ] + }, + "kind": "init" + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * defaultProps\n * @type {{photo: {loading: boolean}}}\n ", + "start": 517, + "end": 591, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 25, + "column": 7 + } + }, + "range": [ + 517, + 591 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * componentDidUpdate\n * @param oldProps\n ", + "start": 686, + "end": 746, + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 35, + "column": 7 + } + }, + "range": [ + 686, + 746 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 751, + "end": 943, + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 40, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 751, + "end": 769, + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 36, + "column": 22 + } + }, + "name": "componentDidUpdate", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 769, + "end": 943, + "loc": { + "start": { + "line": 36, + "column": 22 + }, + "end": { + "line": 40, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 770, + "end": 778, + "loc": { + "start": { + "line": 36, + "column": 23 + }, + "end": { + "line": 36, + "column": 31 + } + }, + "name": "oldProps" + } + ], + "body": { + "type": "BlockStatement", + "start": 780, + "end": 943, + "loc": { + "start": { + "line": 36, + "column": 33 + }, + "end": { + "line": 40, + "column": 5 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 790, + "end": 937, + "loc": { + "start": { + "line": 37, + "column": 8 + }, + "end": { + "line": 39, + "column": 9 + } + }, + "test": { + "type": "BinaryExpression", + "start": 794, + "end": 834, + "loc": { + "start": { + "line": 37, + "column": 12 + }, + "end": { + "line": 37, + "column": 52 + } + }, + "left": { + "type": "MemberExpression", + "start": 794, + "end": 811, + "loc": { + "start": { + "line": 37, + "column": 12 + }, + "end": { + "line": 37, + "column": 29 + } + }, + "object": { + "type": "MemberExpression", + "start": 794, + "end": 808, + "loc": { + "start": { + "line": 37, + "column": 12 + }, + "end": { + "line": 37, + "column": 26 + } + }, + "object": { + "type": "Identifier", + "start": 794, + "end": 802, + "loc": { + "start": { + "line": 37, + "column": 12 + }, + "end": { + "line": 37, + "column": 20 + } + }, + "name": "oldProps" + }, + "property": { + "type": "Identifier", + "start": 803, + "end": 808, + "loc": { + "start": { + "line": 37, + "column": 21 + }, + "end": { + "line": 37, + "column": 26 + } + }, + "name": "photo" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 809, + "end": 811, + "loc": { + "start": { + "line": 37, + "column": 27 + }, + "end": { + "line": 37, + "column": 29 + } + }, + "name": "id" + }, + "computed": false + }, + "operator": "!=", + "right": { + "type": "MemberExpression", + "start": 815, + "end": 834, + "loc": { + "start": { + "line": 37, + "column": 33 + }, + "end": { + "line": 37, + "column": 52 + } + }, + "object": { + "type": "MemberExpression", + "start": 815, + "end": 831, + "loc": { + "start": { + "line": 37, + "column": 33 + }, + "end": { + "line": 37, + "column": 49 + } + }, + "object": { + "type": "MemberExpression", + "start": 815, + "end": 825, + "loc": { + "start": { + "line": 37, + "column": 33 + }, + "end": { + "line": 37, + "column": 43 + } + }, + "object": { + "type": "ThisExpression", + "start": 815, + "end": 819, + "loc": { + "start": { + "line": 37, + "column": 33 + }, + "end": { + "line": 37, + "column": 37 + } + } + }, + "property": { + "type": "Identifier", + "start": 820, + "end": 825, + "loc": { + "start": { + "line": 37, + "column": 38 + }, + "end": { + "line": 37, + "column": 43 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 826, + "end": 831, + "loc": { + "start": { + "line": 37, + "column": 44 + }, + "end": { + "line": 37, + "column": 49 + } + }, + "name": "photo" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 832, + "end": 834, + "loc": { + "start": { + "line": 37, + "column": 50 + }, + "end": { + "line": 37, + "column": 52 + } + }, + "name": "id" + }, + "computed": false + } + }, + "consequent": { + "type": "BlockStatement", + "start": 836, + "end": 937, + "loc": { + "start": { + "line": 37, + "column": 54 + }, + "end": { + "line": 39, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 850, + "end": 927, + "loc": { + "start": { + "line": 38, + "column": 12 + }, + "end": { + "line": 38, + "column": 89 + } + }, + "expression": { + "type": "CallExpression", + "start": 850, + "end": 927, + "loc": { + "start": { + "line": 38, + "column": 12 + }, + "end": { + "line": 38, + "column": 89 + } + }, + "callee": { + "type": "Identifier", + "start": 850, + "end": 859, + "loc": { + "start": { + "line": 38, + "column": 12 + }, + "end": { + "line": 38, + "column": 21 + } + }, + "name": "viewPhoto" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 860, + "end": 878, + "loc": { + "start": { + "line": 38, + "column": 22 + }, + "end": { + "line": 38, + "column": 40 + } + }, + "object": { + "type": "MemberExpression", + "start": 860, + "end": 875, + "loc": { + "start": { + "line": 38, + "column": 22 + }, + "end": { + "line": 38, + "column": 37 + } + }, + "object": { + "type": "MemberExpression", + "start": 860, + "end": 870, + "loc": { + "start": { + "line": 38, + "column": 22 + }, + "end": { + "line": 38, + "column": 32 + } + }, + "object": { + "type": "ThisExpression", + "start": 860, + "end": 864, + "loc": { + "start": { + "line": 38, + "column": 22 + }, + "end": { + "line": 38, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "start": 865, + "end": 870, + "loc": { + "start": { + "line": 38, + "column": 27 + }, + "end": { + "line": 38, + "column": 32 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 871, + "end": 875, + "loc": { + "start": { + "line": 38, + "column": 33 + }, + "end": { + "line": 38, + "column": 37 + } + }, + "name": "user" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 876, + "end": 878, + "loc": { + "start": { + "line": 38, + "column": 38 + }, + "end": { + "line": 38, + "column": 40 + } + }, + "name": "id" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 880, + "end": 900, + "loc": { + "start": { + "line": 38, + "column": 42 + }, + "end": { + "line": 38, + "column": 62 + } + }, + "object": { + "type": "MemberExpression", + "start": 880, + "end": 897, + "loc": { + "start": { + "line": 38, + "column": 42 + }, + "end": { + "line": 38, + "column": 59 + } + }, + "object": { + "type": "MemberExpression", + "start": 880, + "end": 890, + "loc": { + "start": { + "line": 38, + "column": 42 + }, + "end": { + "line": 38, + "column": 52 + } + }, + "object": { + "type": "ThisExpression", + "start": 880, + "end": 884, + "loc": { + "start": { + "line": 38, + "column": 42 + }, + "end": { + "line": 38, + "column": 46 + } + } + }, + "property": { + "type": "Identifier", + "start": 885, + "end": 890, + "loc": { + "start": { + "line": 38, + "column": 47 + }, + "end": { + "line": 38, + "column": 52 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 891, + "end": 897, + "loc": { + "start": { + "line": 38, + "column": 53 + }, + "end": { + "line": 38, + "column": 59 + } + }, + "name": "params" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 898, + "end": 900, + "loc": { + "start": { + "line": 38, + "column": 60 + }, + "end": { + "line": 38, + "column": 62 + } + }, + "name": "id" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 902, + "end": 926, + "loc": { + "start": { + "line": 38, + "column": 64 + }, + "end": { + "line": 38, + "column": 88 + } + }, + "object": { + "type": "MemberExpression", + "start": 902, + "end": 918, + "loc": { + "start": { + "line": 38, + "column": 64 + }, + "end": { + "line": 38, + "column": 80 + } + }, + "object": { + "type": "MemberExpression", + "start": 902, + "end": 912, + "loc": { + "start": { + "line": 38, + "column": 64 + }, + "end": { + "line": 38, + "column": 74 + } + }, + "object": { + "type": "ThisExpression", + "start": 902, + "end": 906, + "loc": { + "start": { + "line": 38, + "column": 64 + }, + "end": { + "line": 38, + "column": 68 + } + } + }, + "property": { + "type": "Identifier", + "start": 907, + "end": 912, + "loc": { + "start": { + "line": 38, + "column": 69 + }, + "end": { + "line": 38, + "column": 74 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 913, + "end": 918, + "loc": { + "start": { + "line": 38, + "column": 75 + }, + "end": { + "line": 38, + "column": 80 + } + }, + "name": "photo" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 919, + "end": 926, + "loc": { + "start": { + "line": 38, + "column": 81 + }, + "end": { + "line": 38, + "column": 88 + } + }, + "name": "user_id" + }, + "computed": false + } + ] + } + } + ] + }, + "alternate": null + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * componentDidUpdate\n * @param oldProps\n ", + "start": 686, + "end": 746, + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 35, + "column": 7 + } + }, + "range": [ + 686, + 746 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * componentDidMount\n ", + "start": 949, + "end": 985, + "loc": { + "start": { + "line": 42, + "column": 4 + }, + "end": { + "line": 44, + "column": 7 + } + }, + "range": [ + 949, + 985 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 990, + "end": 1086, + "loc": { + "start": { + "line": 45, + "column": 4 + }, + "end": { + "line": 47, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 990, + "end": 1007, + "loc": { + "start": { + "line": 45, + "column": 4 + }, + "end": { + "line": 45, + "column": 21 + } + }, + "name": "componentDidMount", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 1007, + "end": 1086, + "loc": { + "start": { + "line": 45, + "column": 21 + }, + "end": { + "line": 47, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 1010, + "end": 1086, + "loc": { + "start": { + "line": 45, + "column": 24 + }, + "end": { + "line": 47, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1020, + "end": 1080, + "loc": { + "start": { + "line": 46, + "column": 8 + }, + "end": { + "line": 46, + "column": 68 + } + }, + "expression": { + "type": "CallExpression", + "start": 1020, + "end": 1080, + "loc": { + "start": { + "line": 46, + "column": 8 + }, + "end": { + "line": 46, + "column": 68 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1020, + "end": 1039, + "loc": { + "start": { + "line": 46, + "column": 8 + }, + "end": { + "line": 46, + "column": 27 + } + }, + "object": { + "type": "MemberExpression", + "start": 1020, + "end": 1030, + "loc": { + "start": { + "line": 46, + "column": 8 + }, + "end": { + "line": 46, + "column": 18 + } + }, + "object": { + "type": "ThisExpression", + "start": 1020, + "end": 1024, + "loc": { + "start": { + "line": 46, + "column": 8 + }, + "end": { + "line": 46, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 1025, + "end": 1030, + "loc": { + "start": { + "line": 46, + "column": 13 + }, + "end": { + "line": 46, + "column": 18 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1031, + "end": 1039, + "loc": { + "start": { + "line": 46, + "column": 19 + }, + "end": { + "line": 46, + "column": 27 + } + }, + "name": "dispatch" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1040, + "end": 1079, + "loc": { + "start": { + "line": 46, + "column": 28 + }, + "end": { + "line": 46, + "column": 67 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1040, + "end": 1057, + "loc": { + "start": { + "line": 46, + "column": 28 + }, + "end": { + "line": 46, + "column": 45 + } + }, + "object": { + "type": "Identifier", + "start": 1040, + "end": 1052, + "loc": { + "start": { + "line": 46, + "column": 28 + }, + "end": { + "line": 46, + "column": 40 + } + }, + "name": "PhotoActions" + }, + "property": { + "type": "Identifier", + "start": 1053, + "end": 1057, + "loc": { + "start": { + "line": 46, + "column": 41 + }, + "end": { + "line": 46, + "column": 45 + } + }, + "name": "load" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 1058, + "end": 1078, + "loc": { + "start": { + "line": 46, + "column": 46 + }, + "end": { + "line": 46, + "column": 66 + } + }, + "object": { + "type": "MemberExpression", + "start": 1058, + "end": 1075, + "loc": { + "start": { + "line": 46, + "column": 46 + }, + "end": { + "line": 46, + "column": 63 + } + }, + "object": { + "type": "MemberExpression", + "start": 1058, + "end": 1068, + "loc": { + "start": { + "line": 46, + "column": 46 + }, + "end": { + "line": 46, + "column": 56 + } + }, + "object": { + "type": "ThisExpression", + "start": 1058, + "end": 1062, + "loc": { + "start": { + "line": 46, + "column": 46 + }, + "end": { + "line": 46, + "column": 50 + } + } + }, + "property": { + "type": "Identifier", + "start": 1063, + "end": 1068, + "loc": { + "start": { + "line": 46, + "column": 51 + }, + "end": { + "line": 46, + "column": 56 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1069, + "end": 1075, + "loc": { + "start": { + "line": 46, + "column": 57 + }, + "end": { + "line": 46, + "column": 63 + } + }, + "name": "params" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1076, + "end": 1078, + "loc": { + "start": { + "line": 46, + "column": 64 + }, + "end": { + "line": 46, + "column": 66 + } + }, + "name": "id" + }, + "computed": false + } + ] + } + ] + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * componentDidMount\n ", + "start": 949, + "end": 985, + "loc": { + "start": { + "line": 42, + "column": 4 + }, + "end": { + "line": 44, + "column": 7 + } + }, + "range": [ + 949, + 985 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * handleLike\n * @param data\n * @returns {*}\n ", + "start": 1092, + "end": 1160, + "loc": { + "start": { + "line": 49, + "column": 4 + }, + "end": { + "line": 53, + "column": 7 + } + }, + "range": [ + 1092, + 1160 + ] + } + ] + }, + { + "type": "Identifier", + "start": 1165, + "end": 1370, + "loc": { + "start": { + "line": 54, + "column": 4 + }, + "end": { + "line": 59, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 1165, + "end": 1175, + "loc": { + "start": { + "line": 54, + "column": 4 + }, + "end": { + "line": 54, + "column": 14 + } + }, + "name": "handleLike", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ArrowFunctionExpression", + "start": 1178, + "end": 1370, + "loc": { + "start": { + "line": 54, + "column": 17 + }, + "end": { + "line": 59, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1179, + "end": 1183, + "loc": { + "start": { + "line": 54, + "column": 18 + }, + "end": { + "line": 54, + "column": 22 + } + }, + "name": "data" + } + ], + "body": { + "type": "BlockStatement", + "start": 1188, + "end": 1370, + "loc": { + "start": { + "line": 54, + "column": 27 + }, + "end": { + "line": 59, + "column": 5 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 1198, + "end": 1309, + "loc": { + "start": { + "line": 55, + "column": 8 + }, + "end": { + "line": 57, + "column": 9 + } + }, + "test": { + "type": "MemberExpression", + "start": 1202, + "end": 1224, + "loc": { + "start": { + "line": 55, + "column": 12 + }, + "end": { + "line": 55, + "column": 34 + } + }, + "object": { + "type": "MemberExpression", + "start": 1202, + "end": 1218, + "loc": { + "start": { + "line": 55, + "column": 12 + }, + "end": { + "line": 55, + "column": 28 + } + }, + "object": { + "type": "MemberExpression", + "start": 1202, + "end": 1212, + "loc": { + "start": { + "line": 55, + "column": 12 + }, + "end": { + "line": 55, + "column": 22 + } + }, + "object": { + "type": "ThisExpression", + "start": 1202, + "end": 1206, + "loc": { + "start": { + "line": 55, + "column": 12 + }, + "end": { + "line": 55, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 1207, + "end": 1212, + "loc": { + "start": { + "line": 55, + "column": 17 + }, + "end": { + "line": 55, + "column": 22 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1213, + "end": 1218, + "loc": { + "start": { + "line": 55, + "column": 23 + }, + "end": { + "line": 55, + "column": 28 + } + }, + "name": "likes" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1219, + "end": 1224, + "loc": { + "start": { + "line": 55, + "column": 29 + }, + "end": { + "line": 55, + "column": 34 + } + }, + "name": "liked" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 1226, + "end": 1309, + "loc": { + "start": { + "line": 55, + "column": 36 + }, + "end": { + "line": 57, + "column": 9 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 1240, + "end": 1299, + "loc": { + "start": { + "line": 56, + "column": 12 + }, + "end": { + "line": 56, + "column": 71 + } + }, + "argument": { + "type": "CallExpression", + "start": 1247, + "end": 1299, + "loc": { + "start": { + "line": 56, + "column": 19 + }, + "end": { + "line": 56, + "column": 71 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1247, + "end": 1266, + "loc": { + "start": { + "line": 56, + "column": 19 + }, + "end": { + "line": 56, + "column": 38 + } + }, + "object": { + "type": "MemberExpression", + "start": 1247, + "end": 1257, + "loc": { + "start": { + "line": 56, + "column": 19 + }, + "end": { + "line": 56, + "column": 29 + } + }, + "object": { + "type": "ThisExpression", + "start": 1247, + "end": 1251, + "loc": { + "start": { + "line": 56, + "column": 19 + }, + "end": { + "line": 56, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "start": 1252, + "end": 1257, + "loc": { + "start": { + "line": 56, + "column": 24 + }, + "end": { + "line": 56, + "column": 29 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1258, + "end": 1266, + "loc": { + "start": { + "line": 56, + "column": 30 + }, + "end": { + "line": 56, + "column": 38 + } + }, + "name": "dispatch" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1267, + "end": 1298, + "loc": { + "start": { + "line": 56, + "column": 39 + }, + "end": { + "line": 56, + "column": 70 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1267, + "end": 1289, + "loc": { + "start": { + "line": 56, + "column": 39 + }, + "end": { + "line": 56, + "column": 61 + } + }, + "object": { + "type": "Identifier", + "start": 1267, + "end": 1278, + "loc": { + "start": { + "line": 56, + "column": 39 + }, + "end": { + "line": 56, + "column": 50 + } + }, + "name": "LikeActions" + }, + "property": { + "type": "Identifier", + "start": 1279, + "end": 1289, + "loc": { + "start": { + "line": 56, + "column": 51 + }, + "end": { + "line": 56, + "column": 61 + } + }, + "name": "deleteLike" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 1290, + "end": 1297, + "loc": { + "start": { + "line": 56, + "column": 62 + }, + "end": { + "line": 56, + "column": 69 + } + }, + "object": { + "type": "Identifier", + "start": 1290, + "end": 1294, + "loc": { + "start": { + "line": 56, + "column": 62 + }, + "end": { + "line": 56, + "column": 66 + } + }, + "name": "data" + }, + "property": { + "type": "Identifier", + "start": 1295, + "end": 1297, + "loc": { + "start": { + "line": 56, + "column": 67 + }, + "end": { + "line": 56, + "column": 69 + } + }, + "name": "id" + }, + "computed": false + } + ] + } + ] + } + } + ] + }, + "alternate": null + }, + { + "type": "ExpressionStatement", + "start": 1318, + "end": 1364, + "loc": { + "start": { + "line": 58, + "column": 8 + }, + "end": { + "line": 58, + "column": 54 + } + }, + "expression": { + "type": "CallExpression", + "start": 1318, + "end": 1364, + "loc": { + "start": { + "line": 58, + "column": 8 + }, + "end": { + "line": 58, + "column": 54 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1318, + "end": 1337, + "loc": { + "start": { + "line": 58, + "column": 8 + }, + "end": { + "line": 58, + "column": 27 + } + }, + "object": { + "type": "MemberExpression", + "start": 1318, + "end": 1328, + "loc": { + "start": { + "line": 58, + "column": 8 + }, + "end": { + "line": 58, + "column": 18 + } + }, + "object": { + "type": "ThisExpression", + "start": 1318, + "end": 1322, + "loc": { + "start": { + "line": 58, + "column": 8 + }, + "end": { + "line": 58, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 1323, + "end": 1328, + "loc": { + "start": { + "line": 58, + "column": 13 + }, + "end": { + "line": 58, + "column": 18 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1329, + "end": 1337, + "loc": { + "start": { + "line": 58, + "column": 19 + }, + "end": { + "line": 58, + "column": 27 + } + }, + "name": "dispatch" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1338, + "end": 1363, + "loc": { + "start": { + "line": 58, + "column": 28 + }, + "end": { + "line": 58, + "column": 53 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1338, + "end": 1354, + "loc": { + "start": { + "line": 58, + "column": 28 + }, + "end": { + "line": 58, + "column": 44 + } + }, + "object": { + "type": "Identifier", + "start": 1338, + "end": 1349, + "loc": { + "start": { + "line": 58, + "column": 28 + }, + "end": { + "line": 58, + "column": 39 + } + }, + "name": "LikeActions" + }, + "property": { + "type": "Identifier", + "start": 1350, + "end": 1354, + "loc": { + "start": { + "line": 58, + "column": 40 + }, + "end": { + "line": 58, + "column": 44 + } + }, + "name": "like" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 1355, + "end": 1362, + "loc": { + "start": { + "line": 58, + "column": 45 + }, + "end": { + "line": 58, + "column": 52 + } + }, + "object": { + "type": "Identifier", + "start": 1355, + "end": 1359, + "loc": { + "start": { + "line": 58, + "column": 45 + }, + "end": { + "line": 58, + "column": 49 + } + }, + "name": "data" + }, + "property": { + "type": "Identifier", + "start": 1360, + "end": 1362, + "loc": { + "start": { + "line": 58, + "column": 50 + }, + "end": { + "line": 58, + "column": 52 + } + }, + "name": "id" + }, + "computed": false + } + ] + } + ] + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * handleLike\n * @param data\n * @returns {*}\n ", + "start": 1092, + "end": 1160, + "loc": { + "start": { + "line": 49, + "column": 4 + }, + "end": { + "line": 53, + "column": 7 + } + }, + "range": [ + 1092, + 1160 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * handleComment\n * @param post\n * @param data\n ", + "start": 1376, + "end": 1446, + "loc": { + "start": { + "line": 61, + "column": 4 + }, + "end": { + "line": 65, + "column": 7 + } + }, + "range": [ + 1376, + 1446 + ] + } + ] + }, + { + "type": "Identifier", + "start": 1451, + "end": 1557, + "loc": { + "start": { + "line": 66, + "column": 4 + }, + "end": { + "line": 68, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 1451, + "end": 1464, + "loc": { + "start": { + "line": 66, + "column": 4 + }, + "end": { + "line": 66, + "column": 17 + } + }, + "name": "handleComment", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ArrowFunctionExpression", + "start": 1467, + "end": 1557, + "loc": { + "start": { + "line": 66, + "column": 20 + }, + "end": { + "line": 68, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1468, + "end": 1472, + "loc": { + "start": { + "line": 66, + "column": 21 + }, + "end": { + "line": 66, + "column": 25 + } + }, + "name": "post" + }, + { + "type": "Identifier", + "start": 1474, + "end": 1478, + "loc": { + "start": { + "line": 66, + "column": 27 + }, + "end": { + "line": 66, + "column": 31 + } + }, + "name": "data" + } + ], + "body": { + "type": "BlockStatement", + "start": 1483, + "end": 1557, + "loc": { + "start": { + "line": 66, + "column": 36 + }, + "end": { + "line": 68, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1493, + "end": 1551, + "loc": { + "start": { + "line": 67, + "column": 8 + }, + "end": { + "line": 67, + "column": 66 + } + }, + "expression": { + "type": "CallExpression", + "start": 1493, + "end": 1551, + "loc": { + "start": { + "line": 67, + "column": 8 + }, + "end": { + "line": 67, + "column": 66 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1493, + "end": 1512, + "loc": { + "start": { + "line": 67, + "column": 8 + }, + "end": { + "line": 67, + "column": 27 + } + }, + "object": { + "type": "MemberExpression", + "start": 1493, + "end": 1503, + "loc": { + "start": { + "line": 67, + "column": 8 + }, + "end": { + "line": 67, + "column": 18 + } + }, + "object": { + "type": "ThisExpression", + "start": 1493, + "end": 1497, + "loc": { + "start": { + "line": 67, + "column": 8 + }, + "end": { + "line": 67, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 1498, + "end": 1503, + "loc": { + "start": { + "line": 67, + "column": 13 + }, + "end": { + "line": 67, + "column": 18 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1504, + "end": 1512, + "loc": { + "start": { + "line": 67, + "column": 19 + }, + "end": { + "line": 67, + "column": 27 + } + }, + "name": "dispatch" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1513, + "end": 1550, + "loc": { + "start": { + "line": 67, + "column": 28 + }, + "end": { + "line": 67, + "column": 65 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1513, + "end": 1538, + "loc": { + "start": { + "line": 67, + "column": 28 + }, + "end": { + "line": 67, + "column": 53 + } + }, + "object": { + "type": "Identifier", + "start": 1513, + "end": 1527, + "loc": { + "start": { + "line": 67, + "column": 28 + }, + "end": { + "line": 67, + "column": 42 + } + }, + "name": "CommentActions" + }, + "property": { + "type": "Identifier", + "start": 1528, + "end": 1538, + "loc": { + "start": { + "line": 67, + "column": 43 + }, + "end": { + "line": 67, + "column": 53 + } + }, + "name": "addComment" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 1539, + "end": 1543, + "loc": { + "start": { + "line": 67, + "column": 54 + }, + "end": { + "line": 67, + "column": 58 + } + }, + "name": "post" + }, + { + "type": "Identifier", + "start": 1545, + "end": 1549, + "loc": { + "start": { + "line": 67, + "column": 60 + }, + "end": { + "line": 67, + "column": 64 + } + }, + "name": "data" + } + ] + } + ] + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * handleComment\n * @param post\n * @param data\n ", + "start": 1376, + "end": 1446, + "loc": { + "start": { + "line": 61, + "column": 4 + }, + "end": { + "line": 65, + "column": 7 + } + }, + "range": [ + 1376, + 1446 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 1563, + "end": 1611, + "loc": { + "start": { + "line": 70, + "column": 4 + }, + "end": { + "line": 73, + "column": 7 + } + }, + "range": [ + 1563, + 1611 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 1616, + "end": 2652, + "loc": { + "start": { + "line": 74, + "column": 4 + }, + "end": { + "line": 98, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 1616, + "end": 1622, + "loc": { + "start": { + "line": 74, + "column": 4 + }, + "end": { + "line": 74, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 1622, + "end": 2652, + "loc": { + "start": { + "line": 74, + "column": 10 + }, + "end": { + "line": 98, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 1625, + "end": 2652, + "loc": { + "start": { + "line": 74, + "column": 13 + }, + "end": { + "line": 98, + "column": 5 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 1635, + "end": 1742, + "loc": { + "start": { + "line": 75, + "column": 8 + }, + "end": { + "line": 75, + "column": 115 + } + }, + "test": { + "type": "LogicalExpression", + "start": 1639, + "end": 1693, + "loc": { + "start": { + "line": 75, + "column": 12 + }, + "end": { + "line": 75, + "column": 66 + } + }, + "left": { + "type": "MemberExpression", + "start": 1639, + "end": 1663, + "loc": { + "start": { + "line": 75, + "column": 12 + }, + "end": { + "line": 75, + "column": 36 + } + }, + "object": { + "type": "MemberExpression", + "start": 1639, + "end": 1655, + "loc": { + "start": { + "line": 75, + "column": 12 + }, + "end": { + "line": 75, + "column": 28 + } + }, + "object": { + "type": "MemberExpression", + "start": 1639, + "end": 1649, + "loc": { + "start": { + "line": 75, + "column": 12 + }, + "end": { + "line": 75, + "column": 22 + } + }, + "object": { + "type": "ThisExpression", + "start": 1639, + "end": 1643, + "loc": { + "start": { + "line": 75, + "column": 12 + }, + "end": { + "line": 75, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 1644, + "end": 1649, + "loc": { + "start": { + "line": 75, + "column": 17 + }, + "end": { + "line": 75, + "column": 22 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1650, + "end": 1655, + "loc": { + "start": { + "line": 75, + "column": 23 + }, + "end": { + "line": 75, + "column": 28 + } + }, + "name": "photo" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1656, + "end": 1663, + "loc": { + "start": { + "line": 75, + "column": 29 + }, + "end": { + "line": 75, + "column": 36 + } + }, + "name": "loading" + }, + "computed": false + }, + "operator": "||", + "right": { + "type": "UnaryExpression", + "start": 1667, + "end": 1693, + "loc": { + "start": { + "line": 75, + "column": 40 + }, + "end": { + "line": 75, + "column": 66 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 1668, + "end": 1693, + "loc": { + "start": { + "line": 75, + "column": 41 + }, + "end": { + "line": 75, + "column": 66 + } + }, + "object": { + "type": "MemberExpression", + "start": 1668, + "end": 1684, + "loc": { + "start": { + "line": 75, + "column": 41 + }, + "end": { + "line": 75, + "column": 57 + } + }, + "object": { + "type": "MemberExpression", + "start": 1668, + "end": 1678, + "loc": { + "start": { + "line": 75, + "column": 41 + }, + "end": { + "line": 75, + "column": 51 + } + }, + "object": { + "type": "ThisExpression", + "start": 1668, + "end": 1672, + "loc": { + "start": { + "line": 75, + "column": 41 + }, + "end": { + "line": 75, + "column": 45 + } + } + }, + "property": { + "type": "Identifier", + "start": 1673, + "end": 1678, + "loc": { + "start": { + "line": 75, + "column": 46 + }, + "end": { + "line": 75, + "column": 51 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1679, + "end": 1684, + "loc": { + "start": { + "line": 75, + "column": 52 + }, + "end": { + "line": 75, + "column": 57 + } + }, + "name": "photo" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1685, + "end": 1693, + "loc": { + "start": { + "line": 75, + "column": 58 + }, + "end": { + "line": 75, + "column": 66 + } + }, + "name": "filename" + }, + "computed": false + } + } + }, + "consequent": { + "type": "ReturnStatement", + "start": 1695, + "end": 1742, + "loc": { + "start": { + "line": 75, + "column": 68 + }, + "end": { + "line": 75, + "column": 115 + } + }, + "argument": { + "type": "JSXElement", + "start": 1702, + "end": 1742, + "loc": { + "start": { + "line": 75, + "column": 75 + }, + "end": { + "line": 75, + "column": 115 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1702, + "end": 1726, + "loc": { + "start": { + "line": 75, + "column": 75 + }, + "end": { + "line": 75, + "column": 99 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1707, + "end": 1725, + "loc": { + "start": { + "line": 75, + "column": 80 + }, + "end": { + "line": 75, + "column": 98 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1707, + "end": 1716, + "loc": { + "start": { + "line": 75, + "column": 80 + }, + "end": { + "line": 75, + "column": 89 + } + }, + "name": "clsssName" + }, + "value": { + "type": "Literal", + "start": 1717, + "end": 1725, + "loc": { + "start": { + "line": 75, + "column": 90 + }, + "end": { + "line": 75, + "column": 98 + } + }, + "value": "loader", + "rawValue": null, + "raw": "\"loader\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1703, + "end": 1706, + "loc": { + "start": { + "line": 75, + "column": 76 + }, + "end": { + "line": 75, + "column": 79 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1736, + "end": 1742, + "loc": { + "start": { + "line": 75, + "column": 109 + }, + "end": { + "line": 75, + "column": 115 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1738, + "end": 1741, + "loc": { + "start": { + "line": 75, + "column": 111 + }, + "end": { + "line": 75, + "column": 114 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 1726, + "end": 1736, + "loc": { + "start": { + "line": 75, + "column": 99 + }, + "end": { + "line": 75, + "column": 109 + } + }, + "value": "Loading...", + "rawValue": null, + "raw": "Loading..." + } + ] + } + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 1752, + "end": 2646, + "loc": { + "start": { + "line": 77, + "column": 8 + }, + "end": { + "line": 97, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 1773, + "end": 2636, + "loc": { + "start": { + "line": 78, + "column": 12 + }, + "end": { + "line": 96, + "column": 18 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1773, + "end": 1795, + "loc": { + "start": { + "line": 78, + "column": 12 + }, + "end": { + "line": 78, + "column": 34 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1778, + "end": 1794, + "loc": { + "start": { + "line": 78, + "column": 17 + }, + "end": { + "line": 78, + "column": 33 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1778, + "end": 1787, + "loc": { + "start": { + "line": 78, + "column": 17 + }, + "end": { + "line": 78, + "column": 26 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 1788, + "end": 1794, + "loc": { + "start": { + "line": 78, + "column": 27 + }, + "end": { + "line": 78, + "column": 33 + } + }, + "value": "page", + "rawValue": null, + "raw": "\"page\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1774, + "end": 1777, + "loc": { + "start": { + "line": 78, + "column": 13 + }, + "end": { + "line": 78, + "column": 16 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2630, + "end": 2636, + "loc": { + "start": { + "line": 96, + "column": 12 + }, + "end": { + "line": 96, + "column": 18 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2632, + "end": 2635, + "loc": { + "start": { + "line": 96, + "column": 14 + }, + "end": { + "line": 96, + "column": 17 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 1795, + "end": 1812, + "loc": { + "start": { + "line": 78, + "column": 34 + }, + "end": { + "line": 79, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1812, + "end": 1989, + "loc": { + "start": { + "line": 79, + "column": 16 + }, + "end": { + "line": 81, + "column": 44 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1812, + "end": 1989, + "loc": { + "start": { + "line": 79, + "column": 16 + }, + "end": { + "line": 81, + "column": 44 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1837, + "end": 1944, + "loc": { + "start": { + "line": 80, + "column": 20 + }, + "end": { + "line": 80, + "column": 127 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1837, + "end": 1840, + "loc": { + "start": { + "line": 80, + "column": 20 + }, + "end": { + "line": 80, + "column": 23 + } + }, + "name": "src" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 1841, + "end": 1944, + "loc": { + "start": { + "line": 80, + "column": 24 + }, + "end": { + "line": 80, + "column": 127 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 1842, + "end": 1943, + "loc": { + "start": { + "line": 80, + "column": 25 + }, + "end": { + "line": 80, + "column": 126 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 1845, + "end": 1865, + "loc": { + "start": { + "line": 80, + "column": 28 + }, + "end": { + "line": 80, + "column": 48 + } + }, + "object": { + "type": "MemberExpression", + "start": 1845, + "end": 1857, + "loc": { + "start": { + "line": 80, + "column": 28 + }, + "end": { + "line": 80, + "column": 40 + } + }, + "object": { + "type": "Identifier", + "start": 1845, + "end": 1851, + "loc": { + "start": { + "line": 80, + "column": 28 + }, + "end": { + "line": 80, + "column": 34 + } + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 1852, + "end": 1857, + "loc": { + "start": { + "line": 80, + "column": 35 + }, + "end": { + "line": 80, + "column": 40 + } + }, + "name": "imgix" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1858, + "end": 1865, + "loc": { + "start": { + "line": 80, + "column": 41 + }, + "end": { + "line": 80, + "column": 48 + } + }, + "name": "baseUrl" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 1869, + "end": 1894, + "loc": { + "start": { + "line": 80, + "column": 52 + }, + "end": { + "line": 80, + "column": 77 + } + }, + "object": { + "type": "MemberExpression", + "start": 1869, + "end": 1885, + "loc": { + "start": { + "line": 80, + "column": 52 + }, + "end": { + "line": 80, + "column": 68 + } + }, + "object": { + "type": "MemberExpression", + "start": 1869, + "end": 1879, + "loc": { + "start": { + "line": 80, + "column": 52 + }, + "end": { + "line": 80, + "column": 62 + } + }, + "object": { + "type": "ThisExpression", + "start": 1869, + "end": 1873, + "loc": { + "start": { + "line": 80, + "column": 52 + }, + "end": { + "line": 80, + "column": 56 + } + } + }, + "property": { + "type": "Identifier", + "start": 1874, + "end": 1879, + "loc": { + "start": { + "line": 80, + "column": 57 + }, + "end": { + "line": 80, + "column": 62 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1880, + "end": 1885, + "loc": { + "start": { + "line": 80, + "column": 63 + }, + "end": { + "line": 80, + "column": 68 + } + }, + "name": "photo" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1886, + "end": 1894, + "loc": { + "start": { + "line": 80, + "column": 69 + }, + "end": { + "line": 80, + "column": 77 + } + }, + "name": "filename" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 1843, + "end": 1843, + "loc": { + "start": { + "line": 80, + "column": 26 + }, + "end": { + "line": 80, + "column": 26 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 1866, + "end": 1867, + "loc": { + "start": { + "line": 80, + "column": 49 + }, + "end": { + "line": 80, + "column": 50 + } + }, + "value": { + "raw": "/", + "cooked": "/" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 1895, + "end": 1942, + "loc": { + "start": { + "line": 80, + "column": 78 + }, + "end": { + "line": 80, + "column": 125 + } + }, + "value": { + "raw": "?auto=enhance&w=200&h=200&fit=crop&fm=png&dpr=2", + "cooked": "?auto=enhance&w=200&h=200&fit=crop&fm=png&dpr=2" + }, + "tail": true + } + ] + } + } + }, + { + "type": "JSXAttribute", + "start": 1965, + "end": 1987, + "loc": { + "start": { + "line": 81, + "column": 20 + }, + "end": { + "line": 81, + "column": 42 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1965, + "end": 1974, + "loc": { + "start": { + "line": 81, + "column": 20 + }, + "end": { + "line": 81, + "column": 29 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 1975, + "end": 1987, + "loc": { + "start": { + "line": 81, + "column": 30 + }, + "end": { + "line": 81, + "column": 42 + } + }, + "value": "full-width", + "rawValue": null, + "raw": "\"full-width\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1813, + "end": 1816, + "loc": { + "start": { + "line": 79, + "column": 17 + }, + "end": { + "line": 79, + "column": 20 + } + }, + "name": "img" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 1989, + "end": 2006, + "loc": { + "start": { + "line": 81, + "column": 44 + }, + "end": { + "line": 82, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 2006, + "end": 2158, + "loc": { + "start": { + "line": 82, + "column": 16 + }, + "end": { + "line": 85, + "column": 52 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2006, + "end": 2158, + "loc": { + "start": { + "line": 82, + "column": 16 + }, + "end": { + "line": 85, + "column": 52 + } + }, + "attributes": [ + { + "type": "JSXSpreadAttribute", + "start": 2039, + "end": 2060, + "loc": { + "start": { + "line": 83, + "column": 20 + }, + "end": { + "line": 83, + "column": 41 + } + }, + "argument": { + "type": "MemberExpression", + "start": 2043, + "end": 2059, + "loc": { + "start": { + "line": 83, + "column": 24 + }, + "end": { + "line": 83, + "column": 40 + } + }, + "object": { + "type": "MemberExpression", + "start": 2043, + "end": 2053, + "loc": { + "start": { + "line": 83, + "column": 24 + }, + "end": { + "line": 83, + "column": 34 + } + }, + "object": { + "type": "ThisExpression", + "start": 2043, + "end": 2047, + "loc": { + "start": { + "line": 83, + "column": 24 + }, + "end": { + "line": 83, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "start": 2048, + "end": 2053, + "loc": { + "start": { + "line": 83, + "column": 29 + }, + "end": { + "line": 83, + "column": 34 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2054, + "end": 2059, + "loc": { + "start": { + "line": 83, + "column": 35 + }, + "end": { + "line": 83, + "column": 40 + } + }, + "name": "photo" + }, + "computed": false + } + }, + { + "type": "JSXAttribute", + "start": 2081, + "end": 2105, + "loc": { + "start": { + "line": 84, + "column": 20 + }, + "end": { + "line": 84, + "column": 44 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2081, + "end": 2087, + "loc": { + "start": { + "line": 84, + "column": 20 + }, + "end": { + "line": 84, + "column": 26 + } + }, + "name": "onLike" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2088, + "end": 2105, + "loc": { + "start": { + "line": 84, + "column": 27 + }, + "end": { + "line": 84, + "column": 44 + } + }, + "expression": { + "type": "MemberExpression", + "start": 2089, + "end": 2104, + "loc": { + "start": { + "line": 84, + "column": 28 + }, + "end": { + "line": 84, + "column": 43 + } + }, + "object": { + "type": "ThisExpression", + "start": 2089, + "end": 2093, + "loc": { + "start": { + "line": 84, + "column": 28 + }, + "end": { + "line": 84, + "column": 32 + } + } + }, + "property": { + "type": "Identifier", + "start": 2094, + "end": 2104, + "loc": { + "start": { + "line": 84, + "column": 33 + }, + "end": { + "line": 84, + "column": 43 + } + }, + "name": "handleLike" + }, + "computed": false + } + } + }, + { + "type": "JSXAttribute", + "start": 2126, + "end": 2156, + "loc": { + "start": { + "line": 85, + "column": 20 + }, + "end": { + "line": 85, + "column": 50 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2126, + "end": 2131, + "loc": { + "start": { + "line": 85, + "column": 20 + }, + "end": { + "line": 85, + "column": 25 + } + }, + "name": "liked" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2132, + "end": 2156, + "loc": { + "start": { + "line": 85, + "column": 26 + }, + "end": { + "line": 85, + "column": 50 + } + }, + "expression": { + "type": "MemberExpression", + "start": 2133, + "end": 2155, + "loc": { + "start": { + "line": 85, + "column": 27 + }, + "end": { + "line": 85, + "column": 49 + } + }, + "object": { + "type": "MemberExpression", + "start": 2133, + "end": 2149, + "loc": { + "start": { + "line": 85, + "column": 27 + }, + "end": { + "line": 85, + "column": 43 + } + }, + "object": { + "type": "MemberExpression", + "start": 2133, + "end": 2143, + "loc": { + "start": { + "line": 85, + "column": 27 + }, + "end": { + "line": 85, + "column": 37 + } + }, + "object": { + "type": "ThisExpression", + "start": 2133, + "end": 2137, + "loc": { + "start": { + "line": 85, + "column": 27 + }, + "end": { + "line": 85, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "start": 2138, + "end": 2143, + "loc": { + "start": { + "line": 85, + "column": 32 + }, + "end": { + "line": 85, + "column": 37 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2144, + "end": 2149, + "loc": { + "start": { + "line": 85, + "column": 38 + }, + "end": { + "line": 85, + "column": 43 + } + }, + "name": "likes" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2150, + "end": 2155, + "loc": { + "start": { + "line": 85, + "column": 44 + }, + "end": { + "line": 85, + "column": 49 + } + }, + "name": "liked" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2007, + "end": 2018, + "loc": { + "start": { + "line": 82, + "column": 17 + }, + "end": { + "line": 82, + "column": 28 + } + }, + "name": "PhotoFooter" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 2158, + "end": 2175, + "loc": { + "start": { + "line": 85, + "column": 52 + }, + "end": { + "line": 86, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 2175, + "end": 2204, + "loc": { + "start": { + "line": 86, + "column": 16 + }, + "end": { + "line": 86, + "column": 45 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2175, + "end": 2198, + "loc": { + "start": { + "line": 86, + "column": 16 + }, + "end": { + "line": 86, + "column": 39 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2180, + "end": 2197, + "loc": { + "start": { + "line": 86, + "column": 21 + }, + "end": { + "line": 86, + "column": 38 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2180, + "end": 2189, + "loc": { + "start": { + "line": 86, + "column": 21 + }, + "end": { + "line": 86, + "column": 30 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 2190, + "end": 2197, + "loc": { + "start": { + "line": 86, + "column": 31 + }, + "end": { + "line": 86, + "column": 38 + } + }, + "value": "clear", + "rawValue": null, + "raw": "\"clear\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2176, + "end": 2179, + "loc": { + "start": { + "line": 86, + "column": 17 + }, + "end": { + "line": 86, + "column": 20 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2198, + "end": 2204, + "loc": { + "start": { + "line": 86, + "column": 39 + }, + "end": { + "line": 86, + "column": 45 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2200, + "end": 2203, + "loc": { + "start": { + "line": 86, + "column": 41 + }, + "end": { + "line": 86, + "column": 44 + } + }, + "name": "div" + } + }, + "children": [] + }, + { + "type": "Literal", + "start": 2204, + "end": 2221, + "loc": { + "start": { + "line": 86, + "column": 45 + }, + "end": { + "line": 87, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 2221, + "end": 2382, + "loc": { + "start": { + "line": 87, + "column": 16 + }, + "end": { + "line": 90, + "column": 44 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2221, + "end": 2382, + "loc": { + "start": { + "line": 87, + "column": 16 + }, + "end": { + "line": 90, + "column": 44 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2256, + "end": 2286, + "loc": { + "start": { + "line": 88, + "column": 20 + }, + "end": { + "line": 88, + "column": 50 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2256, + "end": 2261, + "loc": { + "start": { + "line": 88, + "column": 20 + }, + "end": { + "line": 88, + "column": 25 + } + }, + "name": "likes" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2262, + "end": 2286, + "loc": { + "start": { + "line": 88, + "column": 26 + }, + "end": { + "line": 88, + "column": 50 + } + }, + "expression": { + "type": "MemberExpression", + "start": 2263, + "end": 2285, + "loc": { + "start": { + "line": 88, + "column": 27 + }, + "end": { + "line": 88, + "column": 49 + } + }, + "object": { + "type": "MemberExpression", + "start": 2263, + "end": 2279, + "loc": { + "start": { + "line": 88, + "column": 27 + }, + "end": { + "line": 88, + "column": 43 + } + }, + "object": { + "type": "MemberExpression", + "start": 2263, + "end": 2273, + "loc": { + "start": { + "line": 88, + "column": 27 + }, + "end": { + "line": 88, + "column": 37 + } + }, + "object": { + "type": "ThisExpression", + "start": 2263, + "end": 2267, + "loc": { + "start": { + "line": 88, + "column": 27 + }, + "end": { + "line": 88, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "start": 2268, + "end": 2273, + "loc": { + "start": { + "line": 88, + "column": 32 + }, + "end": { + "line": 88, + "column": 37 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2274, + "end": 2279, + "loc": { + "start": { + "line": 88, + "column": 38 + }, + "end": { + "line": 88, + "column": 43 + } + }, + "name": "likes" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2280, + "end": 2285, + "loc": { + "start": { + "line": 88, + "column": 44 + }, + "end": { + "line": 88, + "column": 49 + } + }, + "name": "likes" + }, + "computed": false + } + } + }, + { + "type": "JSXAttribute", + "start": 2307, + "end": 2337, + "loc": { + "start": { + "line": 89, + "column": 20 + }, + "end": { + "line": 89, + "column": 50 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2307, + "end": 2312, + "loc": { + "start": { + "line": 89, + "column": 20 + }, + "end": { + "line": 89, + "column": 25 + } + }, + "name": "liked" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2313, + "end": 2337, + "loc": { + "start": { + "line": 89, + "column": 26 + }, + "end": { + "line": 89, + "column": 50 + } + }, + "expression": { + "type": "MemberExpression", + "start": 2314, + "end": 2336, + "loc": { + "start": { + "line": 89, + "column": 27 + }, + "end": { + "line": 89, + "column": 49 + } + }, + "object": { + "type": "MemberExpression", + "start": 2314, + "end": 2330, + "loc": { + "start": { + "line": 89, + "column": 27 + }, + "end": { + "line": 89, + "column": 43 + } + }, + "object": { + "type": "MemberExpression", + "start": 2314, + "end": 2324, + "loc": { + "start": { + "line": 89, + "column": 27 + }, + "end": { + "line": 89, + "column": 37 + } + }, + "object": { + "type": "ThisExpression", + "start": 2314, + "end": 2318, + "loc": { + "start": { + "line": 89, + "column": 27 + }, + "end": { + "line": 89, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "start": 2319, + "end": 2324, + "loc": { + "start": { + "line": 89, + "column": 32 + }, + "end": { + "line": 89, + "column": 37 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2325, + "end": 2330, + "loc": { + "start": { + "line": 89, + "column": 38 + }, + "end": { + "line": 89, + "column": 43 + } + }, + "name": "likes" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2331, + "end": 2336, + "loc": { + "start": { + "line": 89, + "column": 44 + }, + "end": { + "line": 89, + "column": 49 + } + }, + "name": "liked" + }, + "computed": false + } + } + }, + { + "type": "JSXSpreadAttribute", + "start": 2358, + "end": 2379, + "loc": { + "start": { + "line": 90, + "column": 20 + }, + "end": { + "line": 90, + "column": 41 + } + }, + "argument": { + "type": "MemberExpression", + "start": 2362, + "end": 2378, + "loc": { + "start": { + "line": 90, + "column": 24 + }, + "end": { + "line": 90, + "column": 40 + } + }, + "object": { + "type": "MemberExpression", + "start": 2362, + "end": 2372, + "loc": { + "start": { + "line": 90, + "column": 24 + }, + "end": { + "line": 90, + "column": 34 + } + }, + "object": { + "type": "ThisExpression", + "start": 2362, + "end": 2366, + "loc": { + "start": { + "line": 90, + "column": 24 + }, + "end": { + "line": 90, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "start": 2367, + "end": 2372, + "loc": { + "start": { + "line": 90, + "column": 29 + }, + "end": { + "line": 90, + "column": 34 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2373, + "end": 2378, + "loc": { + "start": { + "line": 90, + "column": 35 + }, + "end": { + "line": 90, + "column": 40 + } + }, + "name": "photo" + }, + "computed": false + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2222, + "end": 2235, + "loc": { + "start": { + "line": 87, + "column": 17 + }, + "end": { + "line": 87, + "column": 30 + } + }, + "name": "PhotoMetadata" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 2382, + "end": 2399, + "loc": { + "start": { + "line": 90, + "column": 44 + }, + "end": { + "line": 91, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 2399, + "end": 2428, + "loc": { + "start": { + "line": 91, + "column": 16 + }, + "end": { + "line": 91, + "column": 45 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2399, + "end": 2422, + "loc": { + "start": { + "line": 91, + "column": 16 + }, + "end": { + "line": 91, + "column": 39 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2404, + "end": 2421, + "loc": { + "start": { + "line": 91, + "column": 21 + }, + "end": { + "line": 91, + "column": 38 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2404, + "end": 2413, + "loc": { + "start": { + "line": 91, + "column": 21 + }, + "end": { + "line": 91, + "column": 30 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 2414, + "end": 2421, + "loc": { + "start": { + "line": 91, + "column": 31 + }, + "end": { + "line": 91, + "column": 38 + } + }, + "value": "clear", + "rawValue": null, + "raw": "\"clear\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2400, + "end": 2403, + "loc": { + "start": { + "line": 91, + "column": 17 + }, + "end": { + "line": 91, + "column": 20 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2422, + "end": 2428, + "loc": { + "start": { + "line": 91, + "column": 39 + }, + "end": { + "line": 91, + "column": 45 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2424, + "end": 2427, + "loc": { + "start": { + "line": 91, + "column": 41 + }, + "end": { + "line": 91, + "column": 44 + } + }, + "name": "div" + } + }, + "children": [] + }, + { + "type": "Literal", + "start": 2428, + "end": 2445, + "loc": { + "start": { + "line": 91, + "column": 45 + }, + "end": { + "line": 92, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 2445, + "end": 2617, + "loc": { + "start": { + "line": 92, + "column": 16 + }, + "end": { + "line": 95, + "column": 52 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2445, + "end": 2617, + "loc": { + "start": { + "line": 92, + "column": 16 + }, + "end": { + "line": 95, + "column": 52 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2480, + "end": 2504, + "loc": { + "start": { + "line": 93, + "column": 20 + }, + "end": { + "line": 93, + "column": 44 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2480, + "end": 2482, + "loc": { + "start": { + "line": 93, + "column": 20 + }, + "end": { + "line": 93, + "column": 22 + } + }, + "name": "id" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2483, + "end": 2504, + "loc": { + "start": { + "line": 93, + "column": 23 + }, + "end": { + "line": 93, + "column": 44 + } + }, + "expression": { + "type": "MemberExpression", + "start": 2484, + "end": 2503, + "loc": { + "start": { + "line": 93, + "column": 24 + }, + "end": { + "line": 93, + "column": 43 + } + }, + "object": { + "type": "MemberExpression", + "start": 2484, + "end": 2500, + "loc": { + "start": { + "line": 93, + "column": 24 + }, + "end": { + "line": 93, + "column": 40 + } + }, + "object": { + "type": "MemberExpression", + "start": 2484, + "end": 2494, + "loc": { + "start": { + "line": 93, + "column": 24 + }, + "end": { + "line": 93, + "column": 34 + } + }, + "object": { + "type": "ThisExpression", + "start": 2484, + "end": 2488, + "loc": { + "start": { + "line": 93, + "column": 24 + }, + "end": { + "line": 93, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "start": 2489, + "end": 2494, + "loc": { + "start": { + "line": 93, + "column": 29 + }, + "end": { + "line": 93, + "column": 34 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2495, + "end": 2500, + "loc": { + "start": { + "line": 93, + "column": 35 + }, + "end": { + "line": 93, + "column": 40 + } + }, + "name": "photo" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2501, + "end": 2503, + "loc": { + "start": { + "line": 93, + "column": 41 + }, + "end": { + "line": 93, + "column": 43 + } + }, + "name": "id" + }, + "computed": false + } + } + }, + { + "type": "JSXAttribute", + "start": 2525, + "end": 2564, + "loc": { + "start": { + "line": 94, + "column": 20 + }, + "end": { + "line": 94, + "column": 59 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2525, + "end": 2533, + "loc": { + "start": { + "line": 94, + "column": 20 + }, + "end": { + "line": 94, + "column": 28 + } + }, + "name": "comments" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2534, + "end": 2564, + "loc": { + "start": { + "line": 94, + "column": 29 + }, + "end": { + "line": 94, + "column": 59 + } + }, + "expression": { + "type": "MemberExpression", + "start": 2535, + "end": 2563, + "loc": { + "start": { + "line": 94, + "column": 30 + }, + "end": { + "line": 94, + "column": 58 + } + }, + "object": { + "type": "MemberExpression", + "start": 2535, + "end": 2554, + "loc": { + "start": { + "line": 94, + "column": 30 + }, + "end": { + "line": 94, + "column": 49 + } + }, + "object": { + "type": "MemberExpression", + "start": 2535, + "end": 2545, + "loc": { + "start": { + "line": 94, + "column": 30 + }, + "end": { + "line": 94, + "column": 40 + } + }, + "object": { + "type": "ThisExpression", + "start": 2535, + "end": 2539, + "loc": { + "start": { + "line": 94, + "column": 30 + }, + "end": { + "line": 94, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "start": 2540, + "end": 2545, + "loc": { + "start": { + "line": 94, + "column": 35 + }, + "end": { + "line": 94, + "column": 40 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2546, + "end": 2554, + "loc": { + "start": { + "line": 94, + "column": 41 + }, + "end": { + "line": 94, + "column": 49 + } + }, + "name": "comments" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2555, + "end": 2563, + "loc": { + "start": { + "line": 94, + "column": 50 + }, + "end": { + "line": 94, + "column": 58 + } + }, + "name": "comments" + }, + "computed": false + } + } + }, + { + "type": "JSXAttribute", + "start": 2585, + "end": 2615, + "loc": { + "start": { + "line": 95, + "column": 20 + }, + "end": { + "line": 95, + "column": 50 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2585, + "end": 2594, + "loc": { + "start": { + "line": 95, + "column": 20 + }, + "end": { + "line": 95, + "column": 29 + } + }, + "name": "onComment" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2595, + "end": 2615, + "loc": { + "start": { + "line": 95, + "column": 30 + }, + "end": { + "line": 95, + "column": 50 + } + }, + "expression": { + "type": "MemberExpression", + "start": 2596, + "end": 2614, + "loc": { + "start": { + "line": 95, + "column": 31 + }, + "end": { + "line": 95, + "column": 49 + } + }, + "object": { + "type": "ThisExpression", + "start": 2596, + "end": 2600, + "loc": { + "start": { + "line": 95, + "column": 31 + }, + "end": { + "line": 95, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "start": 2601, + "end": 2614, + "loc": { + "start": { + "line": 95, + "column": 36 + }, + "end": { + "line": 95, + "column": 49 + } + }, + "name": "handleComment" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2446, + "end": 2459, + "loc": { + "start": { + "line": 92, + "column": 17 + }, + "end": { + "line": 92, + "column": 30 + } + }, + "name": "PhotoComments" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 2617, + "end": 2630, + "loc": { + "start": { + "line": 95, + "column": 52 + }, + "end": { + "line": 96, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 1563, + "end": 1611, + "loc": { + "start": { + "line": 70, + "column": 4 + }, + "end": { + "line": 73, + "column": 7 + } + }, + "range": [ + 1563, + 1611 + ] + } + ] + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * PhotoPage component used by Home route\n ", + "start": 426, + "end": 475, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 19, + "column": 3 + } + }, + "range": [ + 426, + 475 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * connect\n * Connects React component to a Redux store\n * Documentation: https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options\n ", + "start": 2657, + "end": 2862, + "loc": { + "start": { + "line": 102, + "column": 0 + }, + "end": { + "line": 106, + "column": 3 + } + }, + "range": [ + 2657, + 2862 + ] + } + ] + }, + { + "type": "ExportDefaultDeclaration", + "start": 2863, + "end": 3012, + "loc": { + "start": { + "line": 107, + "column": 0 + }, + "end": { + "line": 112, + "column": 14 + } + }, + "declaration": { + "type": "CallExpression", + "start": 2878, + "end": 3012, + "loc": { + "start": { + "line": 107, + "column": 15 + }, + "end": { + "line": 112, + "column": 14 + } + }, + "callee": { + "type": "CallExpression", + "start": 2878, + "end": 3001, + "loc": { + "start": { + "line": 107, + "column": 15 + }, + "end": { + "line": 112, + "column": 3 + } + }, + "callee": { + "type": "Identifier", + "start": 2878, + "end": 2885, + "loc": { + "start": { + "line": 107, + "column": 15 + }, + "end": { + "line": 107, + "column": 22 + } + }, + "name": "connect", + "leadingComments": null + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 2886, + "end": 3000, + "loc": { + "start": { + "line": 107, + "column": 23 + }, + "end": { + "line": 112, + "column": 2 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2886, + "end": 2891, + "loc": { + "start": { + "line": 107, + "column": 23 + }, + "end": { + "line": 107, + "column": 28 + } + }, + "name": "state" + } + ], + "body": { + "type": "ObjectExpression", + "start": 2896, + "end": 2999, + "loc": { + "start": { + "line": 107, + "column": 33 + }, + "end": { + "line": 112, + "column": 1 + } + }, + "properties": [ + { + "type": "Property", + "start": 2902, + "end": 2920, + "loc": { + "start": { + "line": 108, + "column": 4 + }, + "end": { + "line": 108, + "column": 22 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2902, + "end": 2907, + "loc": { + "start": { + "line": 108, + "column": 4 + }, + "end": { + "line": 108, + "column": 9 + } + }, + "name": "photo" + }, + "value": { + "type": "MemberExpression", + "start": 2909, + "end": 2920, + "loc": { + "start": { + "line": 108, + "column": 11 + }, + "end": { + "line": 108, + "column": 22 + } + }, + "object": { + "type": "Identifier", + "start": 2909, + "end": 2914, + "loc": { + "start": { + "line": 108, + "column": 11 + }, + "end": { + "line": 108, + "column": 16 + } + }, + "name": "state" + }, + "property": { + "type": "Identifier", + "start": 2915, + "end": 2920, + "loc": { + "start": { + "line": 108, + "column": 17 + }, + "end": { + "line": 108, + "column": 22 + } + }, + "name": "Photo" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 2926, + "end": 2950, + "loc": { + "start": { + "line": 109, + "column": 4 + }, + "end": { + "line": 109, + "column": 28 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2926, + "end": 2934, + "loc": { + "start": { + "line": 109, + "column": 4 + }, + "end": { + "line": 109, + "column": 12 + } + }, + "name": "comments" + }, + "value": { + "type": "MemberExpression", + "start": 2936, + "end": 2950, + "loc": { + "start": { + "line": 109, + "column": 14 + }, + "end": { + "line": 109, + "column": 28 + } + }, + "object": { + "type": "Identifier", + "start": 2936, + "end": 2941, + "loc": { + "start": { + "line": 109, + "column": 14 + }, + "end": { + "line": 109, + "column": 19 + } + }, + "name": "state" + }, + "property": { + "type": "Identifier", + "start": 2942, + "end": 2950, + "loc": { + "start": { + "line": 109, + "column": 20 + }, + "end": { + "line": 109, + "column": 28 + } + }, + "name": "Comments" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 2956, + "end": 2974, + "loc": { + "start": { + "line": 110, + "column": 4 + }, + "end": { + "line": 110, + "column": 22 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2956, + "end": 2961, + "loc": { + "start": { + "line": 110, + "column": 4 + }, + "end": { + "line": 110, + "column": 9 + } + }, + "name": "likes" + }, + "value": { + "type": "MemberExpression", + "start": 2963, + "end": 2974, + "loc": { + "start": { + "line": 110, + "column": 11 + }, + "end": { + "line": 110, + "column": 22 + } + }, + "object": { + "type": "Identifier", + "start": 2963, + "end": 2968, + "loc": { + "start": { + "line": 110, + "column": 11 + }, + "end": { + "line": 110, + "column": 16 + } + }, + "name": "state" + }, + "property": { + "type": "Identifier", + "start": 2969, + "end": 2974, + "loc": { + "start": { + "line": 110, + "column": 17 + }, + "end": { + "line": 110, + "column": 22 + } + }, + "name": "Likes" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 2980, + "end": 2996, + "loc": { + "start": { + "line": 111, + "column": 4 + }, + "end": { + "line": 111, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2980, + "end": 2984, + "loc": { + "start": { + "line": 111, + "column": 4 + }, + "end": { + "line": 111, + "column": 8 + } + }, + "name": "user" + }, + "value": { + "type": "MemberExpression", + "start": 2986, + "end": 2996, + "loc": { + "start": { + "line": 111, + "column": 10 + }, + "end": { + "line": 111, + "column": 20 + } + }, + "object": { + "type": "Identifier", + "start": 2986, + "end": 2991, + "loc": { + "start": { + "line": 111, + "column": 10 + }, + "end": { + "line": 111, + "column": 15 + } + }, + "name": "state" + }, + "property": { + "type": "Identifier", + "start": 2992, + "end": 2996, + "loc": { + "start": { + "line": 111, + "column": 16 + }, + "end": { + "line": 111, + "column": 20 + } + }, + "name": "User" + }, + "computed": false + }, + "kind": "init" + } + ], + "parenthesizedExpression": true + } + } + ], + "leadingComments": null + }, + "arguments": [ + { + "type": "Identifier", + "start": 3002, + "end": 3011, + "loc": { + "start": { + "line": 112, + "column": 4 + }, + "end": { + "line": 112, + "column": 13 + } + }, + "name": "PhotoPage" + } + ], + "leadingComments": [ + { + "type": "Block", + "value": "*\n * connect\n * Connects React component to a Redux store\n * Documentation: https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options\n ", + "start": 2657, + "end": 2862, + "loc": { + "start": { + "line": 102, + "column": 0 + }, + "end": { + "line": 106, + "column": 3 + } + }, + "range": [ + 2657, + 2862 + ] + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * connect\n * Connects React component to a Redux store\n * Documentation: https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options\n ", + "start": 2657, + "end": 2862, + "loc": { + "start": { + "line": 102, + "column": 0 + }, + "end": { + "line": 106, + "column": 3 + } + }, + "range": [ + 2657, + 2862 + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/routes/Home/routes/Photo/components/PhotoComments.js.json b/app/docs/ast/source/routes/Home/routes/Photo/components/PhotoComments.js.json new file mode 100644 index 0000000..3b02bfd --- /dev/null +++ b/app/docs/ast/source/routes/Home/routes/Photo/components/PhotoComments.js.json @@ -0,0 +1,6747 @@ +{ + "type": "Program", + "start": 0, + "end": 1566, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 66, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + }, + { + "type": "ImportSpecifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "imported": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + }, + "local": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 33, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 33 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ImportDeclaration", + "start": 42, + "end": 80, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 38 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 49, + "end": 55, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 13 + } + }, + "local": { + "type": "Identifier", + "start": 49, + "end": 55, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 13 + } + }, + "name": "Header" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 61, + "end": 80, + "loc": { + "start": { + "line": 3, + "column": 19 + }, + "end": { + "line": 3, + "column": 38 + } + }, + "value": "components/Header", + "rawValue": "components/Header", + "raw": "'components/Header'" + } + }, + { + "type": "ImportDeclaration", + "start": 81, + "end": 131, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 50 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 90, + "end": 101, + "loc": { + "start": { + "line": 4, + "column": 9 + }, + "end": { + "line": 4, + "column": 20 + } + }, + "imported": { + "type": "Identifier", + "start": 90, + "end": 101, + "loc": { + "start": { + "line": 4, + "column": 9 + }, + "end": { + "line": 4, + "column": 20 + } + }, + "name": "PhotoFooter" + }, + "local": { + "type": "Identifier", + "start": 90, + "end": 101, + "loc": { + "start": { + "line": 4, + "column": 9 + }, + "end": { + "line": 4, + "column": 20 + } + }, + "name": "PhotoFooter" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 109, + "end": 131, + "loc": { + "start": { + "line": 4, + "column": 28 + }, + "end": { + "line": 4, + "column": 50 + } + }, + "value": "components/PhotoList", + "rawValue": "components/PhotoList", + "raw": "'components/PhotoList'" + } + }, + { + "type": "ImportDeclaration", + "start": 132, + "end": 175, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 43 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 139, + "end": 152, + "loc": { + "start": { + "line": 5, + "column": 7 + }, + "end": { + "line": 5, + "column": 20 + } + }, + "local": { + "type": "Identifier", + "start": 139, + "end": 152, + "loc": { + "start": { + "line": 5, + "column": 7 + }, + "end": { + "line": 5, + "column": 20 + } + }, + "name": "PhotoMetadata" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 158, + "end": 175, + "loc": { + "start": { + "line": 5, + "column": 26 + }, + "end": { + "line": 5, + "column": 43 + } + }, + "value": "./PhotoMetadata", + "rawValue": "./PhotoMetadata", + "raw": "'./PhotoMetadata'" + } + }, + { + "type": "ImportDeclaration", + "start": 177, + "end": 218, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 9, + "column": 19 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 190, + "end": 197, + "loc": { + "start": { + "line": 8, + "column": 4 + }, + "end": { + "line": 8, + "column": 11 + } + }, + "imported": { + "type": "Identifier", + "start": 190, + "end": 197, + "loc": { + "start": { + "line": 8, + "column": 4 + }, + "end": { + "line": 8, + "column": 11 + } + }, + "name": "Comment" + }, + "local": { + "type": "Identifier", + "start": 190, + "end": 197, + "loc": { + "start": { + "line": 8, + "column": 4 + }, + "end": { + "line": 8, + "column": 11 + } + }, + "name": "Comment" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 206, + "end": 218, + "loc": { + "start": { + "line": 9, + "column": 7 + }, + "end": { + "line": 9, + "column": 19 + } + }, + "value": "components", + "rawValue": "components", + "raw": "'components'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * PhotoPage\n * React component to be used by PhotoPage component\n ", + "start": 220, + "end": 293, + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + }, + "range": [ + 220, + 293 + ] + } + ] + }, + { + "type": "Identifier", + "start": 294, + "end": 1539, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 63, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 300, + "end": 309, + "loc": { + "start": { + "line": 15, + "column": 6 + }, + "end": { + "line": 15, + "column": 15 + } + }, + "name": "PhotoPage", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 318, + "end": 327, + "loc": { + "start": { + "line": 15, + "column": 24 + }, + "end": { + "line": 15, + "column": 33 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 328, + "end": 1539, + "loc": { + "start": { + "line": 15, + "column": 34 + }, + "end": { + "line": 63, + "column": 1 + } + }, + "body": [ + { + "type": "Identifier", + "start": 395, + "end": 429, + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 23, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 395, + "end": 400, + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 9 + } + }, + "name": "state", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ObjectExpression", + "start": 403, + "end": 429, + "loc": { + "start": { + "line": 21, + "column": 12 + }, + "end": { + "line": 23, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 413, + "end": 422, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 17 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 413, + "end": 418, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 13 + } + }, + "name": "value" + }, + "value": { + "type": "Literal", + "start": 420, + "end": 422, + "loc": { + "start": { + "line": 22, + "column": 15 + }, + "end": { + "line": 22, + "column": 17 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * state\n * @type {{value: string}}\n ", + "start": 335, + "end": 390, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 20, + "column": 7 + } + }, + "range": [ + 335, + 390 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * handleSubmit\n * @param e event\n ", + "start": 435, + "end": 488, + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 28, + "column": 7 + } + }, + "range": [ + 435, + 488 + ] + } + ] + }, + { + "type": "Identifier", + "start": 493, + "end": 648, + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 34, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 493, + "end": 505, + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 16 + } + }, + "name": "handleSubmit", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ArrowFunctionExpression", + "start": 508, + "end": 648, + "loc": { + "start": { + "line": 29, + "column": 19 + }, + "end": { + "line": 34, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 509, + "end": 510, + "loc": { + "start": { + "line": 29, + "column": 20 + }, + "end": { + "line": 29, + "column": 21 + } + }, + "name": "e" + } + ], + "body": { + "type": "BlockStatement", + "start": 515, + "end": 648, + "loc": { + "start": { + "line": 29, + "column": 26 + }, + "end": { + "line": 34, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 525, + "end": 543, + "loc": { + "start": { + "line": 30, + "column": 8 + }, + "end": { + "line": 30, + "column": 26 + } + }, + "expression": { + "type": "CallExpression", + "start": 525, + "end": 543, + "loc": { + "start": { + "line": 30, + "column": 8 + }, + "end": { + "line": 30, + "column": 26 + } + }, + "callee": { + "type": "MemberExpression", + "start": 525, + "end": 541, + "loc": { + "start": { + "line": 30, + "column": 8 + }, + "end": { + "line": 30, + "column": 24 + } + }, + "object": { + "type": "Identifier", + "start": 525, + "end": 526, + "loc": { + "start": { + "line": 30, + "column": 8 + }, + "end": { + "line": 30, + "column": 9 + } + }, + "name": "e" + }, + "property": { + "type": "Identifier", + "start": 527, + "end": 541, + "loc": { + "start": { + "line": 30, + "column": 10 + }, + "end": { + "line": 30, + "column": 24 + } + }, + "name": "preventDefault" + }, + "computed": false + }, + "arguments": [] + } + }, + { + "type": "ExpressionStatement", + "start": 553, + "end": 606, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 61 + } + }, + "expression": { + "type": "CallExpression", + "start": 553, + "end": 606, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 61 + } + }, + "callee": { + "type": "MemberExpression", + "start": 553, + "end": 573, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 28 + } + }, + "object": { + "type": "MemberExpression", + "start": 553, + "end": 563, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 18 + } + }, + "object": { + "type": "ThisExpression", + "start": 553, + "end": 557, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 558, + "end": 563, + "loc": { + "start": { + "line": 32, + "column": 13 + }, + "end": { + "line": 32, + "column": 18 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 564, + "end": 573, + "loc": { + "start": { + "line": 32, + "column": 19 + }, + "end": { + "line": 32, + "column": 28 + } + }, + "name": "onComment" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 574, + "end": 587, + "loc": { + "start": { + "line": 32, + "column": 29 + }, + "end": { + "line": 32, + "column": 42 + } + }, + "object": { + "type": "MemberExpression", + "start": 574, + "end": 584, + "loc": { + "start": { + "line": 32, + "column": 29 + }, + "end": { + "line": 32, + "column": 39 + } + }, + "object": { + "type": "ThisExpression", + "start": 574, + "end": 578, + "loc": { + "start": { + "line": 32, + "column": 29 + }, + "end": { + "line": 32, + "column": 33 + } + } + }, + "property": { + "type": "Identifier", + "start": 579, + "end": 584, + "loc": { + "start": { + "line": 32, + "column": 34 + }, + "end": { + "line": 32, + "column": 39 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 585, + "end": 587, + "loc": { + "start": { + "line": 32, + "column": 40 + }, + "end": { + "line": 32, + "column": 42 + } + }, + "name": "id" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 589, + "end": 605, + "loc": { + "start": { + "line": 32, + "column": 44 + }, + "end": { + "line": 32, + "column": 60 + } + }, + "object": { + "type": "MemberExpression", + "start": 589, + "end": 599, + "loc": { + "start": { + "line": 32, + "column": 44 + }, + "end": { + "line": 32, + "column": 54 + } + }, + "object": { + "type": "ThisExpression", + "start": 589, + "end": 593, + "loc": { + "start": { + "line": 32, + "column": 44 + }, + "end": { + "line": 32, + "column": 48 + } + } + }, + "property": { + "type": "Identifier", + "start": 594, + "end": 599, + "loc": { + "start": { + "line": 32, + "column": 49 + }, + "end": { + "line": 32, + "column": 54 + } + }, + "name": "state" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 600, + "end": 605, + "loc": { + "start": { + "line": 32, + "column": 55 + }, + "end": { + "line": 32, + "column": 60 + } + }, + "name": "value" + }, + "computed": false + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 615, + "end": 642, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 35 + } + }, + "expression": { + "type": "CallExpression", + "start": 615, + "end": 642, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 35 + } + }, + "callee": { + "type": "MemberExpression", + "start": 615, + "end": 628, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 21 + } + }, + "object": { + "type": "ThisExpression", + "start": 615, + "end": 619, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 620, + "end": 628, + "loc": { + "start": { + "line": 33, + "column": 13 + }, + "end": { + "line": 33, + "column": 21 + } + }, + "name": "setState" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 629, + "end": 641, + "loc": { + "start": { + "line": 33, + "column": 22 + }, + "end": { + "line": 33, + "column": 34 + } + }, + "properties": [ + { + "type": "Property", + "start": 630, + "end": 639, + "loc": { + "start": { + "line": 33, + "column": 23 + }, + "end": { + "line": 33, + "column": 32 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 630, + "end": 635, + "loc": { + "start": { + "line": 33, + "column": 23 + }, + "end": { + "line": 33, + "column": 28 + } + }, + "name": "value" + }, + "value": { + "type": "Literal", + "start": 637, + "end": 639, + "loc": { + "start": { + "line": 33, + "column": 30 + }, + "end": { + "line": 33, + "column": 32 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + } + ] + } + ] + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * handleSubmit\n * @param e event\n ", + "start": 435, + "end": 488, + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 28, + "column": 7 + } + }, + "range": [ + 435, + 488 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * handleChange\n * @param e event\n ", + "start": 654, + "end": 707, + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 39, + "column": 7 + } + }, + "range": [ + 654, + 707 + ] + } + ] + }, + { + "type": "Identifier", + "start": 712, + "end": 773, + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 40, + "column": 65 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 712, + "end": 724, + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 40, + "column": 16 + } + }, + "name": "handleChange", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ArrowFunctionExpression", + "start": 727, + "end": 773, + "loc": { + "start": { + "line": 40, + "column": 19 + }, + "end": { + "line": 40, + "column": 65 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 728, + "end": 729, + "loc": { + "start": { + "line": 40, + "column": 20 + }, + "end": { + "line": 40, + "column": 21 + } + }, + "name": "e" + } + ], + "body": { + "type": "CallExpression", + "start": 734, + "end": 773, + "loc": { + "start": { + "line": 40, + "column": 26 + }, + "end": { + "line": 40, + "column": 65 + } + }, + "callee": { + "type": "MemberExpression", + "start": 734, + "end": 747, + "loc": { + "start": { + "line": 40, + "column": 26 + }, + "end": { + "line": 40, + "column": 39 + } + }, + "object": { + "type": "ThisExpression", + "start": 734, + "end": 738, + "loc": { + "start": { + "line": 40, + "column": 26 + }, + "end": { + "line": 40, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "start": 739, + "end": 747, + "loc": { + "start": { + "line": 40, + "column": 31 + }, + "end": { + "line": 40, + "column": 39 + } + }, + "name": "setState" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 748, + "end": 772, + "loc": { + "start": { + "line": 40, + "column": 40 + }, + "end": { + "line": 40, + "column": 64 + } + }, + "properties": [ + { + "type": "Property", + "start": 749, + "end": 770, + "loc": { + "start": { + "line": 40, + "column": 41 + }, + "end": { + "line": 40, + "column": 62 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 749, + "end": 754, + "loc": { + "start": { + "line": 40, + "column": 41 + }, + "end": { + "line": 40, + "column": 46 + } + }, + "name": "value" + }, + "value": { + "type": "MemberExpression", + "start": 756, + "end": 770, + "loc": { + "start": { + "line": 40, + "column": 48 + }, + "end": { + "line": 40, + "column": 62 + } + }, + "object": { + "type": "MemberExpression", + "start": 756, + "end": 764, + "loc": { + "start": { + "line": 40, + "column": 48 + }, + "end": { + "line": 40, + "column": 56 + } + }, + "object": { + "type": "Identifier", + "start": 756, + "end": 757, + "loc": { + "start": { + "line": 40, + "column": 48 + }, + "end": { + "line": 40, + "column": 49 + } + }, + "name": "e" + }, + "property": { + "type": "Identifier", + "start": 758, + "end": 764, + "loc": { + "start": { + "line": 40, + "column": 50 + }, + "end": { + "line": 40, + "column": 56 + } + }, + "name": "target" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 765, + "end": 770, + "loc": { + "start": { + "line": 40, + "column": 57 + }, + "end": { + "line": 40, + "column": 62 + } + }, + "name": "value" + }, + "computed": false + }, + "kind": "init" + } + ] + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * handleChange\n * @param e event\n ", + "start": 654, + "end": 707, + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 39, + "column": 7 + } + }, + "range": [ + 654, + 707 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 779, + "end": 827, + "loc": { + "start": { + "line": 42, + "column": 4 + }, + "end": { + "line": 45, + "column": 7 + } + }, + "range": [ + 779, + 827 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 832, + "end": 1536, + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 61, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 832, + "end": 838, + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 46, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 838, + "end": 1536, + "loc": { + "start": { + "line": 46, + "column": 10 + }, + "end": { + "line": 61, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 841, + "end": 1536, + "loc": { + "start": { + "line": 46, + "column": 13 + }, + "end": { + "line": 61, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 851, + "end": 1530, + "loc": { + "start": { + "line": 47, + "column": 8 + }, + "end": { + "line": 60, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 872, + "end": 1520, + "loc": { + "start": { + "line": 48, + "column": 12 + }, + "end": { + "line": 59, + "column": 18 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 872, + "end": 877, + "loc": { + "start": { + "line": 48, + "column": 12 + }, + "end": { + "line": 48, + "column": 17 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 873, + "end": 876, + "loc": { + "start": { + "line": 48, + "column": 13 + }, + "end": { + "line": 48, + "column": 16 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1514, + "end": 1520, + "loc": { + "start": { + "line": 59, + "column": 12 + }, + "end": { + "line": 59, + "column": 18 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1516, + "end": 1519, + "loc": { + "start": { + "line": 59, + "column": 14 + }, + "end": { + "line": 59, + "column": 17 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 877, + "end": 894, + "loc": { + "start": { + "line": 48, + "column": 17 + }, + "end": { + "line": 49, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 894, + "end": 1062, + "loc": { + "start": { + "line": 49, + "column": 16 + }, + "end": { + "line": 51, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 894, + "end": 926, + "loc": { + "start": { + "line": 49, + "column": 16 + }, + "end": { + "line": 49, + "column": 48 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 899, + "end": 925, + "loc": { + "start": { + "line": 49, + "column": 21 + }, + "end": { + "line": 49, + "column": 47 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 899, + "end": 908, + "loc": { + "start": { + "line": 49, + "column": 21 + }, + "end": { + "line": 49, + "column": 30 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 909, + "end": 925, + "loc": { + "start": { + "line": 49, + "column": 31 + }, + "end": { + "line": 49, + "column": 47 + } + }, + "value": "photo-comments", + "rawValue": null, + "raw": "\"photo-comments\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 895, + "end": 898, + "loc": { + "start": { + "line": 49, + "column": 17 + }, + "end": { + "line": 49, + "column": 20 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1056, + "end": 1062, + "loc": { + "start": { + "line": 51, + "column": 16 + }, + "end": { + "line": 51, + "column": 22 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1058, + "end": 1061, + "loc": { + "start": { + "line": 51, + "column": 18 + }, + "end": { + "line": 51, + "column": 21 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 926, + "end": 947, + "loc": { + "start": { + "line": 49, + "column": 48 + }, + "end": { + "line": 50, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 947, + "end": 1039, + "loc": { + "start": { + "line": 50, + "column": 20 + }, + "end": { + "line": 50, + "column": 112 + } + }, + "expression": { + "type": "CallExpression", + "start": 948, + "end": 1038, + "loc": { + "start": { + "line": 50, + "column": 21 + }, + "end": { + "line": 50, + "column": 111 + } + }, + "callee": { + "type": "MemberExpression", + "start": 948, + "end": 971, + "loc": { + "start": { + "line": 50, + "column": 21 + }, + "end": { + "line": 50, + "column": 44 + } + }, + "object": { + "type": "MemberExpression", + "start": 948, + "end": 967, + "loc": { + "start": { + "line": 50, + "column": 21 + }, + "end": { + "line": 50, + "column": 40 + } + }, + "object": { + "type": "MemberExpression", + "start": 948, + "end": 958, + "loc": { + "start": { + "line": 50, + "column": 21 + }, + "end": { + "line": 50, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 948, + "end": 952, + "loc": { + "start": { + "line": 50, + "column": 21 + }, + "end": { + "line": 50, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "start": 953, + "end": 958, + "loc": { + "start": { + "line": 50, + "column": 26 + }, + "end": { + "line": 50, + "column": 31 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 959, + "end": 967, + "loc": { + "start": { + "line": 50, + "column": 32 + }, + "end": { + "line": 50, + "column": 40 + } + }, + "name": "comments" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 968, + "end": 971, + "loc": { + "start": { + "line": 50, + "column": 41 + }, + "end": { + "line": 50, + "column": 44 + } + }, + "name": "map" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 972, + "end": 1037, + "loc": { + "start": { + "line": 50, + "column": 45 + }, + "end": { + "line": 50, + "column": 110 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 972, + "end": 979, + "loc": { + "start": { + "line": 50, + "column": 45 + }, + "end": { + "line": 50, + "column": 52 + } + }, + "name": "comment" + } + ], + "body": { + "type": "JSXElement", + "start": 983, + "end": 1037, + "loc": { + "start": { + "line": 50, + "column": 56 + }, + "end": { + "line": 50, + "column": 110 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 983, + "end": 1037, + "loc": { + "start": { + "line": 50, + "column": 56 + }, + "end": { + "line": 50, + "column": 110 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 992, + "end": 1021, + "loc": { + "start": { + "line": 50, + "column": 65 + }, + "end": { + "line": 50, + "column": 94 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 992, + "end": 995, + "loc": { + "start": { + "line": 50, + "column": 65 + }, + "end": { + "line": 50, + "column": 68 + } + }, + "name": "key" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 996, + "end": 1021, + "loc": { + "start": { + "line": 50, + "column": 69 + }, + "end": { + "line": 50, + "column": 94 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 997, + "end": 1020, + "loc": { + "start": { + "line": 50, + "column": 70 + }, + "end": { + "line": 50, + "column": 93 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 1008, + "end": 1018, + "loc": { + "start": { + "line": 50, + "column": 81 + }, + "end": { + "line": 50, + "column": 91 + } + }, + "object": { + "type": "Identifier", + "start": 1008, + "end": 1015, + "loc": { + "start": { + "line": 50, + "column": 81 + }, + "end": { + "line": 50, + "column": 88 + } + }, + "name": "comment" + }, + "property": { + "type": "Identifier", + "start": 1016, + "end": 1018, + "loc": { + "start": { + "line": 50, + "column": 89 + }, + "end": { + "line": 50, + "column": 91 + } + }, + "name": "id" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 998, + "end": 1006, + "loc": { + "start": { + "line": 50, + "column": 71 + }, + "end": { + "line": 50, + "column": 79 + } + }, + "value": { + "raw": "comment-", + "cooked": "comment-" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 1019, + "end": 1019, + "loc": { + "start": { + "line": 50, + "column": 92 + }, + "end": { + "line": 50, + "column": 92 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + }, + { + "type": "JSXSpreadAttribute", + "start": 1022, + "end": 1034, + "loc": { + "start": { + "line": 50, + "column": 95 + }, + "end": { + "line": 50, + "column": 107 + } + }, + "argument": { + "type": "Identifier", + "start": 1026, + "end": 1033, + "loc": { + "start": { + "line": 50, + "column": 99 + }, + "end": { + "line": 50, + "column": 106 + } + }, + "name": "comment" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 984, + "end": 991, + "loc": { + "start": { + "line": 50, + "column": 57 + }, + "end": { + "line": 50, + "column": 64 + } + }, + "name": "Comment" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + } + ] + } + }, + { + "type": "Literal", + "start": 1039, + "end": 1056, + "loc": { + "start": { + "line": 50, + "column": 112 + }, + "end": { + "line": 51, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 1062, + "end": 1079, + "loc": { + "start": { + "line": 51, + "column": 22 + }, + "end": { + "line": 52, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1079, + "end": 1501, + "loc": { + "start": { + "line": 52, + "column": 16 + }, + "end": { + "line": 58, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1079, + "end": 1108, + "loc": { + "start": { + "line": 52, + "column": 16 + }, + "end": { + "line": 52, + "column": 45 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1084, + "end": 1107, + "loc": { + "start": { + "line": 52, + "column": 21 + }, + "end": { + "line": 52, + "column": 44 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1084, + "end": 1093, + "loc": { + "start": { + "line": 52, + "column": 21 + }, + "end": { + "line": 52, + "column": 30 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 1094, + "end": 1107, + "loc": { + "start": { + "line": 52, + "column": 31 + }, + "end": { + "line": 52, + "column": 44 + } + }, + "value": "add-comment", + "rawValue": null, + "raw": "\"add-comment\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1080, + "end": 1083, + "loc": { + "start": { + "line": 52, + "column": 17 + }, + "end": { + "line": 52, + "column": 20 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1495, + "end": 1501, + "loc": { + "start": { + "line": 58, + "column": 16 + }, + "end": { + "line": 58, + "column": 22 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1497, + "end": 1500, + "loc": { + "start": { + "line": 58, + "column": 18 + }, + "end": { + "line": 58, + "column": 21 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 1108, + "end": 1129, + "loc": { + "start": { + "line": 52, + "column": 45 + }, + "end": { + "line": 53, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1129, + "end": 1478, + "loc": { + "start": { + "line": 53, + "column": 20 + }, + "end": { + "line": 57, + "column": 27 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1129, + "end": 1175, + "loc": { + "start": { + "line": 53, + "column": 20 + }, + "end": { + "line": 53, + "column": 66 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1135, + "end": 1145, + "loc": { + "start": { + "line": 53, + "column": 26 + }, + "end": { + "line": 53, + "column": 36 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1135, + "end": 1141, + "loc": { + "start": { + "line": 53, + "column": 26 + }, + "end": { + "line": 53, + "column": 32 + } + }, + "name": "action" + }, + "value": { + "type": "Literal", + "start": 1142, + "end": 1145, + "loc": { + "start": { + "line": 53, + "column": 33 + }, + "end": { + "line": 53, + "column": 36 + } + }, + "value": "#", + "rawValue": null, + "raw": "\"#\"" + } + }, + { + "type": "JSXAttribute", + "start": 1146, + "end": 1174, + "loc": { + "start": { + "line": 53, + "column": 37 + }, + "end": { + "line": 53, + "column": 65 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1146, + "end": 1154, + "loc": { + "start": { + "line": 53, + "column": 37 + }, + "end": { + "line": 53, + "column": 45 + } + }, + "name": "onSubmit" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 1155, + "end": 1174, + "loc": { + "start": { + "line": 53, + "column": 46 + }, + "end": { + "line": 53, + "column": 65 + } + }, + "expression": { + "type": "MemberExpression", + "start": 1156, + "end": 1173, + "loc": { + "start": { + "line": 53, + "column": 47 + }, + "end": { + "line": 53, + "column": 64 + } + }, + "object": { + "type": "ThisExpression", + "start": 1156, + "end": 1160, + "loc": { + "start": { + "line": 53, + "column": 47 + }, + "end": { + "line": 53, + "column": 51 + } + } + }, + "property": { + "type": "Identifier", + "start": 1161, + "end": 1173, + "loc": { + "start": { + "line": 53, + "column": 52 + }, + "end": { + "line": 53, + "column": 64 + } + }, + "name": "handleSubmit" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1130, + "end": 1134, + "loc": { + "start": { + "line": 53, + "column": 21 + }, + "end": { + "line": 53, + "column": 25 + } + }, + "name": "form" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1471, + "end": 1478, + "loc": { + "start": { + "line": 57, + "column": 20 + }, + "end": { + "line": 57, + "column": 27 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1473, + "end": 1477, + "loc": { + "start": { + "line": 57, + "column": 22 + }, + "end": { + "line": 57, + "column": 26 + } + }, + "name": "form" + } + }, + "children": [ + { + "type": "Literal", + "start": 1175, + "end": 1200, + "loc": { + "start": { + "line": 53, + "column": 66 + }, + "end": { + "line": 54, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1200, + "end": 1349, + "loc": { + "start": { + "line": 54, + "column": 24 + }, + "end": { + "line": 55, + "column": 57 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1200, + "end": 1349, + "loc": { + "start": { + "line": 54, + "column": 24 + }, + "end": { + "line": 55, + "column": 57 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1207, + "end": 1218, + "loc": { + "start": { + "line": 54, + "column": 31 + }, + "end": { + "line": 54, + "column": 42 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1207, + "end": 1211, + "loc": { + "start": { + "line": 54, + "column": 31 + }, + "end": { + "line": 54, + "column": 35 + } + }, + "name": "type" + }, + "value": { + "type": "Literal", + "start": 1212, + "end": 1218, + "loc": { + "start": { + "line": 54, + "column": 36 + }, + "end": { + "line": 54, + "column": 42 + } + }, + "value": "text", + "rawValue": null, + "raw": "\"text\"" + } + }, + { + "type": "JSXAttribute", + "start": 1219, + "end": 1247, + "loc": { + "start": { + "line": 54, + "column": 43 + }, + "end": { + "line": 54, + "column": 71 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1219, + "end": 1227, + "loc": { + "start": { + "line": 54, + "column": 43 + }, + "end": { + "line": 54, + "column": 51 + } + }, + "name": "onChange" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 1228, + "end": 1247, + "loc": { + "start": { + "line": 54, + "column": 52 + }, + "end": { + "line": 54, + "column": 71 + } + }, + "expression": { + "type": "MemberExpression", + "start": 1229, + "end": 1246, + "loc": { + "start": { + "line": 54, + "column": 53 + }, + "end": { + "line": 54, + "column": 70 + } + }, + "object": { + "type": "ThisExpression", + "start": 1229, + "end": 1233, + "loc": { + "start": { + "line": 54, + "column": 53 + }, + "end": { + "line": 54, + "column": 57 + } + } + }, + "property": { + "type": "Identifier", + "start": 1234, + "end": 1246, + "loc": { + "start": { + "line": 54, + "column": 58 + }, + "end": { + "line": 54, + "column": 70 + } + }, + "name": "handleChange" + }, + "computed": false + } + } + }, + { + "type": "JSXAttribute", + "start": 1248, + "end": 1276, + "loc": { + "start": { + "line": 54, + "column": 72 + }, + "end": { + "line": 54, + "column": 100 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1248, + "end": 1259, + "loc": { + "start": { + "line": 54, + "column": 72 + }, + "end": { + "line": 54, + "column": 83 + } + }, + "name": "placeholder" + }, + "value": { + "type": "Literal", + "start": 1260, + "end": 1276, + "loc": { + "start": { + "line": 54, + "column": 84 + }, + "end": { + "line": 54, + "column": 100 + } + }, + "value": "Add comment...", + "rawValue": null, + "raw": "\"Add comment...\"" + } + }, + { + "type": "JSXAttribute", + "start": 1277, + "end": 1291, + "loc": { + "start": { + "line": 54, + "column": 101 + }, + "end": { + "line": 54, + "column": 115 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1277, + "end": 1286, + "loc": { + "start": { + "line": 54, + "column": 101 + }, + "end": { + "line": 54, + "column": 110 + } + }, + "name": "maxLength" + }, + "value": { + "type": "Literal", + "start": 1287, + "end": 1291, + "loc": { + "start": { + "line": 54, + "column": 111 + }, + "end": { + "line": 54, + "column": 115 + } + }, + "value": "60", + "rawValue": null, + "raw": "\"60\"" + } + }, + { + "type": "JSXAttribute", + "start": 1323, + "end": 1347, + "loc": { + "start": { + "line": 55, + "column": 31 + }, + "end": { + "line": 55, + "column": 55 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1323, + "end": 1328, + "loc": { + "start": { + "line": 55, + "column": 31 + }, + "end": { + "line": 55, + "column": 36 + } + }, + "name": "value" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 1329, + "end": 1347, + "loc": { + "start": { + "line": 55, + "column": 37 + }, + "end": { + "line": 55, + "column": 55 + } + }, + "expression": { + "type": "MemberExpression", + "start": 1330, + "end": 1346, + "loc": { + "start": { + "line": 55, + "column": 38 + }, + "end": { + "line": 55, + "column": 54 + } + }, + "object": { + "type": "MemberExpression", + "start": 1330, + "end": 1340, + "loc": { + "start": { + "line": 55, + "column": 38 + }, + "end": { + "line": 55, + "column": 48 + } + }, + "object": { + "type": "ThisExpression", + "start": 1330, + "end": 1334, + "loc": { + "start": { + "line": 55, + "column": 38 + }, + "end": { + "line": 55, + "column": 42 + } + } + }, + "property": { + "type": "Identifier", + "start": 1335, + "end": 1340, + "loc": { + "start": { + "line": 55, + "column": 43 + }, + "end": { + "line": 55, + "column": 48 + } + }, + "name": "state" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1341, + "end": 1346, + "loc": { + "start": { + "line": 55, + "column": 49 + }, + "end": { + "line": 55, + "column": 54 + } + }, + "name": "value" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1201, + "end": 1206, + "loc": { + "start": { + "line": 54, + "column": 25 + }, + "end": { + "line": 54, + "column": 30 + } + }, + "name": "input" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 1349, + "end": 1374, + "loc": { + "start": { + "line": 55, + "column": 57 + }, + "end": { + "line": 56, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1374, + "end": 1450, + "loc": { + "start": { + "line": 56, + "column": 24 + }, + "end": { + "line": 56, + "column": 100 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1374, + "end": 1396, + "loc": { + "start": { + "line": 56, + "column": 24 + }, + "end": { + "line": 56, + "column": 46 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1382, + "end": 1395, + "loc": { + "start": { + "line": 56, + "column": 32 + }, + "end": { + "line": 56, + "column": 45 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1382, + "end": 1386, + "loc": { + "start": { + "line": 56, + "column": 32 + }, + "end": { + "line": 56, + "column": 36 + } + }, + "name": "type" + }, + "value": { + "type": "Literal", + "start": 1387, + "end": 1395, + "loc": { + "start": { + "line": 56, + "column": 37 + }, + "end": { + "line": 56, + "column": 45 + } + }, + "value": "submit", + "rawValue": null, + "raw": "\"submit\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1375, + "end": 1381, + "loc": { + "start": { + "line": 56, + "column": 25 + }, + "end": { + "line": 56, + "column": 31 + } + }, + "name": "button" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1441, + "end": 1450, + "loc": { + "start": { + "line": 56, + "column": 91 + }, + "end": { + "line": 56, + "column": 100 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1443, + "end": 1449, + "loc": { + "start": { + "line": 56, + "column": 93 + }, + "end": { + "line": 56, + "column": 99 + } + }, + "name": "button" + } + }, + "children": [ + { + "type": "JSXElement", + "start": 1396, + "end": 1441, + "loc": { + "start": { + "line": 56, + "column": 46 + }, + "end": { + "line": 56, + "column": 91 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1396, + "end": 1437, + "loc": { + "start": { + "line": 56, + "column": 46 + }, + "end": { + "line": 56, + "column": 87 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1399, + "end": 1436, + "loc": { + "start": { + "line": 56, + "column": 49 + }, + "end": { + "line": 56, + "column": 86 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1399, + "end": 1408, + "loc": { + "start": { + "line": 56, + "column": 49 + }, + "end": { + "line": 56, + "column": 58 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 1409, + "end": 1436, + "loc": { + "start": { + "line": 56, + "column": 59 + }, + "end": { + "line": 56, + "column": 86 + } + }, + "value": "ion-android-arrow-forward", + "rawValue": null, + "raw": "\"ion-android-arrow-forward\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1397, + "end": 1398, + "loc": { + "start": { + "line": 56, + "column": 47 + }, + "end": { + "line": 56, + "column": 48 + } + }, + "name": "i" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1437, + "end": 1441, + "loc": { + "start": { + "line": 56, + "column": 87 + }, + "end": { + "line": 56, + "column": 91 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1439, + "end": 1440, + "loc": { + "start": { + "line": 56, + "column": 89 + }, + "end": { + "line": 56, + "column": 90 + } + }, + "name": "i" + } + }, + "children": [] + } + ] + }, + { + "type": "Literal", + "start": 1450, + "end": 1471, + "loc": { + "start": { + "line": 56, + "column": 100 + }, + "end": { + "line": 57, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 1478, + "end": 1495, + "loc": { + "start": { + "line": 57, + "column": 27 + }, + "end": { + "line": 58, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 1501, + "end": 1514, + "loc": { + "start": { + "line": 58, + "column": 22 + }, + "end": { + "line": 59, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 779, + "end": 827, + "loc": { + "start": { + "line": 42, + "column": 4 + }, + "end": { + "line": 45, + "column": 7 + } + }, + "range": [ + 779, + 827 + ] + } + ] + } + ] + }, + "leadingComments": [], + "name": "_", + "trailingComments": [] + }, + { + "type": "Identifier", + "start": 1541, + "end": 1565, + "loc": { + "start": { + "line": 65, + "column": 0 + }, + "end": { + "line": 65, + "column": 24 + } + }, + "declaration": { + "type": "Identifier", + "start": 1556, + "end": 1565, + "loc": { + "start": { + "line": 65, + "column": 15 + }, + "end": { + "line": 65, + "column": 24 + } + }, + "name": "PhotoPage" + }, + "name": "_", + "leadingComments": [], + "trailingComments": [] + }, + { + "type": "ExportDefaultDeclaration", + "start": 1541, + "end": 1565, + "loc": { + "start": { + "line": 65, + "column": 0 + }, + "end": { + "line": 65, + "column": 24 + } + }, + "declaration": { + "type": "ClassDeclaration", + "start": 294, + "end": 1539, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 63, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 300, + "end": 309, + "loc": { + "start": { + "line": 15, + "column": 6 + }, + "end": { + "line": 15, + "column": 15 + } + }, + "name": "PhotoPage", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 318, + "end": 327, + "loc": { + "start": { + "line": 15, + "column": 24 + }, + "end": { + "line": 15, + "column": 33 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 328, + "end": 1539, + "loc": { + "start": { + "line": 15, + "column": 34 + }, + "end": { + "line": 63, + "column": 1 + } + }, + "body": [ + { + "type": "Identifier", + "start": 395, + "end": 429, + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 23, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 395, + "end": 400, + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 9 + } + }, + "name": "state", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ObjectExpression", + "start": 403, + "end": 429, + "loc": { + "start": { + "line": 21, + "column": 12 + }, + "end": { + "line": 23, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 413, + "end": 422, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 17 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 413, + "end": 418, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 13 + } + }, + "name": "value" + }, + "value": { + "type": "Literal", + "start": 420, + "end": 422, + "loc": { + "start": { + "line": 22, + "column": 15 + }, + "end": { + "line": 22, + "column": 17 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * state\n * @type {{value: string}}\n ", + "start": 335, + "end": 390, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 20, + "column": 7 + } + }, + "range": [ + 335, + 390 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * handleSubmit\n * @param e event\n ", + "start": 435, + "end": 488, + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 28, + "column": 7 + } + }, + "range": [ + 435, + 488 + ] + } + ] + }, + { + "type": "Identifier", + "start": 493, + "end": 648, + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 34, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 493, + "end": 505, + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 16 + } + }, + "name": "handleSubmit", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ArrowFunctionExpression", + "start": 508, + "end": 648, + "loc": { + "start": { + "line": 29, + "column": 19 + }, + "end": { + "line": 34, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 509, + "end": 510, + "loc": { + "start": { + "line": 29, + "column": 20 + }, + "end": { + "line": 29, + "column": 21 + } + }, + "name": "e" + } + ], + "body": { + "type": "BlockStatement", + "start": 515, + "end": 648, + "loc": { + "start": { + "line": 29, + "column": 26 + }, + "end": { + "line": 34, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 525, + "end": 543, + "loc": { + "start": { + "line": 30, + "column": 8 + }, + "end": { + "line": 30, + "column": 26 + } + }, + "expression": { + "type": "CallExpression", + "start": 525, + "end": 543, + "loc": { + "start": { + "line": 30, + "column": 8 + }, + "end": { + "line": 30, + "column": 26 + } + }, + "callee": { + "type": "MemberExpression", + "start": 525, + "end": 541, + "loc": { + "start": { + "line": 30, + "column": 8 + }, + "end": { + "line": 30, + "column": 24 + } + }, + "object": { + "type": "Identifier", + "start": 525, + "end": 526, + "loc": { + "start": { + "line": 30, + "column": 8 + }, + "end": { + "line": 30, + "column": 9 + } + }, + "name": "e" + }, + "property": { + "type": "Identifier", + "start": 527, + "end": 541, + "loc": { + "start": { + "line": 30, + "column": 10 + }, + "end": { + "line": 30, + "column": 24 + } + }, + "name": "preventDefault" + }, + "computed": false + }, + "arguments": [] + } + }, + { + "type": "ExpressionStatement", + "start": 553, + "end": 606, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 61 + } + }, + "expression": { + "type": "CallExpression", + "start": 553, + "end": 606, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 61 + } + }, + "callee": { + "type": "MemberExpression", + "start": 553, + "end": 573, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 28 + } + }, + "object": { + "type": "MemberExpression", + "start": 553, + "end": 563, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 18 + } + }, + "object": { + "type": "ThisExpression", + "start": 553, + "end": 557, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 558, + "end": 563, + "loc": { + "start": { + "line": 32, + "column": 13 + }, + "end": { + "line": 32, + "column": 18 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 564, + "end": 573, + "loc": { + "start": { + "line": 32, + "column": 19 + }, + "end": { + "line": 32, + "column": 28 + } + }, + "name": "onComment" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 574, + "end": 587, + "loc": { + "start": { + "line": 32, + "column": 29 + }, + "end": { + "line": 32, + "column": 42 + } + }, + "object": { + "type": "MemberExpression", + "start": 574, + "end": 584, + "loc": { + "start": { + "line": 32, + "column": 29 + }, + "end": { + "line": 32, + "column": 39 + } + }, + "object": { + "type": "ThisExpression", + "start": 574, + "end": 578, + "loc": { + "start": { + "line": 32, + "column": 29 + }, + "end": { + "line": 32, + "column": 33 + } + } + }, + "property": { + "type": "Identifier", + "start": 579, + "end": 584, + "loc": { + "start": { + "line": 32, + "column": 34 + }, + "end": { + "line": 32, + "column": 39 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 585, + "end": 587, + "loc": { + "start": { + "line": 32, + "column": 40 + }, + "end": { + "line": 32, + "column": 42 + } + }, + "name": "id" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 589, + "end": 605, + "loc": { + "start": { + "line": 32, + "column": 44 + }, + "end": { + "line": 32, + "column": 60 + } + }, + "object": { + "type": "MemberExpression", + "start": 589, + "end": 599, + "loc": { + "start": { + "line": 32, + "column": 44 + }, + "end": { + "line": 32, + "column": 54 + } + }, + "object": { + "type": "ThisExpression", + "start": 589, + "end": 593, + "loc": { + "start": { + "line": 32, + "column": 44 + }, + "end": { + "line": 32, + "column": 48 + } + } + }, + "property": { + "type": "Identifier", + "start": 594, + "end": 599, + "loc": { + "start": { + "line": 32, + "column": 49 + }, + "end": { + "line": 32, + "column": 54 + } + }, + "name": "state" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 600, + "end": 605, + "loc": { + "start": { + "line": 32, + "column": 55 + }, + "end": { + "line": 32, + "column": 60 + } + }, + "name": "value" + }, + "computed": false + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 615, + "end": 642, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 35 + } + }, + "expression": { + "type": "CallExpression", + "start": 615, + "end": 642, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 35 + } + }, + "callee": { + "type": "MemberExpression", + "start": 615, + "end": 628, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 21 + } + }, + "object": { + "type": "ThisExpression", + "start": 615, + "end": 619, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 620, + "end": 628, + "loc": { + "start": { + "line": 33, + "column": 13 + }, + "end": { + "line": 33, + "column": 21 + } + }, + "name": "setState" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 629, + "end": 641, + "loc": { + "start": { + "line": 33, + "column": 22 + }, + "end": { + "line": 33, + "column": 34 + } + }, + "properties": [ + { + "type": "Property", + "start": 630, + "end": 639, + "loc": { + "start": { + "line": 33, + "column": 23 + }, + "end": { + "line": 33, + "column": 32 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 630, + "end": 635, + "loc": { + "start": { + "line": 33, + "column": 23 + }, + "end": { + "line": 33, + "column": 28 + } + }, + "name": "value" + }, + "value": { + "type": "Literal", + "start": 637, + "end": 639, + "loc": { + "start": { + "line": 33, + "column": 30 + }, + "end": { + "line": 33, + "column": 32 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + } + ] + } + ] + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * handleSubmit\n * @param e event\n ", + "start": 435, + "end": 488, + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 28, + "column": 7 + } + }, + "range": [ + 435, + 488 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * handleChange\n * @param e event\n ", + "start": 654, + "end": 707, + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 39, + "column": 7 + } + }, + "range": [ + 654, + 707 + ] + } + ] + }, + { + "type": "Identifier", + "start": 712, + "end": 773, + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 40, + "column": 65 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 712, + "end": 724, + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 40, + "column": 16 + } + }, + "name": "handleChange", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ArrowFunctionExpression", + "start": 727, + "end": 773, + "loc": { + "start": { + "line": 40, + "column": 19 + }, + "end": { + "line": 40, + "column": 65 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 728, + "end": 729, + "loc": { + "start": { + "line": 40, + "column": 20 + }, + "end": { + "line": 40, + "column": 21 + } + }, + "name": "e" + } + ], + "body": { + "type": "CallExpression", + "start": 734, + "end": 773, + "loc": { + "start": { + "line": 40, + "column": 26 + }, + "end": { + "line": 40, + "column": 65 + } + }, + "callee": { + "type": "MemberExpression", + "start": 734, + "end": 747, + "loc": { + "start": { + "line": 40, + "column": 26 + }, + "end": { + "line": 40, + "column": 39 + } + }, + "object": { + "type": "ThisExpression", + "start": 734, + "end": 738, + "loc": { + "start": { + "line": 40, + "column": 26 + }, + "end": { + "line": 40, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "start": 739, + "end": 747, + "loc": { + "start": { + "line": 40, + "column": 31 + }, + "end": { + "line": 40, + "column": 39 + } + }, + "name": "setState" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 748, + "end": 772, + "loc": { + "start": { + "line": 40, + "column": 40 + }, + "end": { + "line": 40, + "column": 64 + } + }, + "properties": [ + { + "type": "Property", + "start": 749, + "end": 770, + "loc": { + "start": { + "line": 40, + "column": 41 + }, + "end": { + "line": 40, + "column": 62 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 749, + "end": 754, + "loc": { + "start": { + "line": 40, + "column": 41 + }, + "end": { + "line": 40, + "column": 46 + } + }, + "name": "value" + }, + "value": { + "type": "MemberExpression", + "start": 756, + "end": 770, + "loc": { + "start": { + "line": 40, + "column": 48 + }, + "end": { + "line": 40, + "column": 62 + } + }, + "object": { + "type": "MemberExpression", + "start": 756, + "end": 764, + "loc": { + "start": { + "line": 40, + "column": 48 + }, + "end": { + "line": 40, + "column": 56 + } + }, + "object": { + "type": "Identifier", + "start": 756, + "end": 757, + "loc": { + "start": { + "line": 40, + "column": 48 + }, + "end": { + "line": 40, + "column": 49 + } + }, + "name": "e" + }, + "property": { + "type": "Identifier", + "start": 758, + "end": 764, + "loc": { + "start": { + "line": 40, + "column": 50 + }, + "end": { + "line": 40, + "column": 56 + } + }, + "name": "target" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 765, + "end": 770, + "loc": { + "start": { + "line": 40, + "column": 57 + }, + "end": { + "line": 40, + "column": 62 + } + }, + "name": "value" + }, + "computed": false + }, + "kind": "init" + } + ] + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * handleChange\n * @param e event\n ", + "start": 654, + "end": 707, + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 39, + "column": 7 + } + }, + "range": [ + 654, + 707 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 779, + "end": 827, + "loc": { + "start": { + "line": 42, + "column": 4 + }, + "end": { + "line": 45, + "column": 7 + } + }, + "range": [ + 779, + 827 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 832, + "end": 1536, + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 61, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 832, + "end": 838, + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 46, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 838, + "end": 1536, + "loc": { + "start": { + "line": 46, + "column": 10 + }, + "end": { + "line": 61, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 841, + "end": 1536, + "loc": { + "start": { + "line": 46, + "column": 13 + }, + "end": { + "line": 61, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 851, + "end": 1530, + "loc": { + "start": { + "line": 47, + "column": 8 + }, + "end": { + "line": 60, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 872, + "end": 1520, + "loc": { + "start": { + "line": 48, + "column": 12 + }, + "end": { + "line": 59, + "column": 18 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 872, + "end": 877, + "loc": { + "start": { + "line": 48, + "column": 12 + }, + "end": { + "line": 48, + "column": 17 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 873, + "end": 876, + "loc": { + "start": { + "line": 48, + "column": 13 + }, + "end": { + "line": 48, + "column": 16 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1514, + "end": 1520, + "loc": { + "start": { + "line": 59, + "column": 12 + }, + "end": { + "line": 59, + "column": 18 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1516, + "end": 1519, + "loc": { + "start": { + "line": 59, + "column": 14 + }, + "end": { + "line": 59, + "column": 17 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 877, + "end": 894, + "loc": { + "start": { + "line": 48, + "column": 17 + }, + "end": { + "line": 49, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 894, + "end": 1062, + "loc": { + "start": { + "line": 49, + "column": 16 + }, + "end": { + "line": 51, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 894, + "end": 926, + "loc": { + "start": { + "line": 49, + "column": 16 + }, + "end": { + "line": 49, + "column": 48 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 899, + "end": 925, + "loc": { + "start": { + "line": 49, + "column": 21 + }, + "end": { + "line": 49, + "column": 47 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 899, + "end": 908, + "loc": { + "start": { + "line": 49, + "column": 21 + }, + "end": { + "line": 49, + "column": 30 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 909, + "end": 925, + "loc": { + "start": { + "line": 49, + "column": 31 + }, + "end": { + "line": 49, + "column": 47 + } + }, + "value": "photo-comments", + "rawValue": null, + "raw": "\"photo-comments\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 895, + "end": 898, + "loc": { + "start": { + "line": 49, + "column": 17 + }, + "end": { + "line": 49, + "column": 20 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1056, + "end": 1062, + "loc": { + "start": { + "line": 51, + "column": 16 + }, + "end": { + "line": 51, + "column": 22 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1058, + "end": 1061, + "loc": { + "start": { + "line": 51, + "column": 18 + }, + "end": { + "line": 51, + "column": 21 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 926, + "end": 947, + "loc": { + "start": { + "line": 49, + "column": 48 + }, + "end": { + "line": 50, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 947, + "end": 1039, + "loc": { + "start": { + "line": 50, + "column": 20 + }, + "end": { + "line": 50, + "column": 112 + } + }, + "expression": { + "type": "CallExpression", + "start": 948, + "end": 1038, + "loc": { + "start": { + "line": 50, + "column": 21 + }, + "end": { + "line": 50, + "column": 111 + } + }, + "callee": { + "type": "MemberExpression", + "start": 948, + "end": 971, + "loc": { + "start": { + "line": 50, + "column": 21 + }, + "end": { + "line": 50, + "column": 44 + } + }, + "object": { + "type": "MemberExpression", + "start": 948, + "end": 967, + "loc": { + "start": { + "line": 50, + "column": 21 + }, + "end": { + "line": 50, + "column": 40 + } + }, + "object": { + "type": "MemberExpression", + "start": 948, + "end": 958, + "loc": { + "start": { + "line": 50, + "column": 21 + }, + "end": { + "line": 50, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 948, + "end": 952, + "loc": { + "start": { + "line": 50, + "column": 21 + }, + "end": { + "line": 50, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "start": 953, + "end": 958, + "loc": { + "start": { + "line": 50, + "column": 26 + }, + "end": { + "line": 50, + "column": 31 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 959, + "end": 967, + "loc": { + "start": { + "line": 50, + "column": 32 + }, + "end": { + "line": 50, + "column": 40 + } + }, + "name": "comments" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 968, + "end": 971, + "loc": { + "start": { + "line": 50, + "column": 41 + }, + "end": { + "line": 50, + "column": 44 + } + }, + "name": "map" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 972, + "end": 1037, + "loc": { + "start": { + "line": 50, + "column": 45 + }, + "end": { + "line": 50, + "column": 110 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 972, + "end": 979, + "loc": { + "start": { + "line": 50, + "column": 45 + }, + "end": { + "line": 50, + "column": 52 + } + }, + "name": "comment" + } + ], + "body": { + "type": "JSXElement", + "start": 983, + "end": 1037, + "loc": { + "start": { + "line": 50, + "column": 56 + }, + "end": { + "line": 50, + "column": 110 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 983, + "end": 1037, + "loc": { + "start": { + "line": 50, + "column": 56 + }, + "end": { + "line": 50, + "column": 110 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 992, + "end": 1021, + "loc": { + "start": { + "line": 50, + "column": 65 + }, + "end": { + "line": 50, + "column": 94 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 992, + "end": 995, + "loc": { + "start": { + "line": 50, + "column": 65 + }, + "end": { + "line": 50, + "column": 68 + } + }, + "name": "key" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 996, + "end": 1021, + "loc": { + "start": { + "line": 50, + "column": 69 + }, + "end": { + "line": 50, + "column": 94 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 997, + "end": 1020, + "loc": { + "start": { + "line": 50, + "column": 70 + }, + "end": { + "line": 50, + "column": 93 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 1008, + "end": 1018, + "loc": { + "start": { + "line": 50, + "column": 81 + }, + "end": { + "line": 50, + "column": 91 + } + }, + "object": { + "type": "Identifier", + "start": 1008, + "end": 1015, + "loc": { + "start": { + "line": 50, + "column": 81 + }, + "end": { + "line": 50, + "column": 88 + } + }, + "name": "comment" + }, + "property": { + "type": "Identifier", + "start": 1016, + "end": 1018, + "loc": { + "start": { + "line": 50, + "column": 89 + }, + "end": { + "line": 50, + "column": 91 + } + }, + "name": "id" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 998, + "end": 1006, + "loc": { + "start": { + "line": 50, + "column": 71 + }, + "end": { + "line": 50, + "column": 79 + } + }, + "value": { + "raw": "comment-", + "cooked": "comment-" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 1019, + "end": 1019, + "loc": { + "start": { + "line": 50, + "column": 92 + }, + "end": { + "line": 50, + "column": 92 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + }, + { + "type": "JSXSpreadAttribute", + "start": 1022, + "end": 1034, + "loc": { + "start": { + "line": 50, + "column": 95 + }, + "end": { + "line": 50, + "column": 107 + } + }, + "argument": { + "type": "Identifier", + "start": 1026, + "end": 1033, + "loc": { + "start": { + "line": 50, + "column": 99 + }, + "end": { + "line": 50, + "column": 106 + } + }, + "name": "comment" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 984, + "end": 991, + "loc": { + "start": { + "line": 50, + "column": 57 + }, + "end": { + "line": 50, + "column": 64 + } + }, + "name": "Comment" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + } + ] + } + }, + { + "type": "Literal", + "start": 1039, + "end": 1056, + "loc": { + "start": { + "line": 50, + "column": 112 + }, + "end": { + "line": 51, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 1062, + "end": 1079, + "loc": { + "start": { + "line": 51, + "column": 22 + }, + "end": { + "line": 52, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1079, + "end": 1501, + "loc": { + "start": { + "line": 52, + "column": 16 + }, + "end": { + "line": 58, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1079, + "end": 1108, + "loc": { + "start": { + "line": 52, + "column": 16 + }, + "end": { + "line": 52, + "column": 45 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1084, + "end": 1107, + "loc": { + "start": { + "line": 52, + "column": 21 + }, + "end": { + "line": 52, + "column": 44 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1084, + "end": 1093, + "loc": { + "start": { + "line": 52, + "column": 21 + }, + "end": { + "line": 52, + "column": 30 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 1094, + "end": 1107, + "loc": { + "start": { + "line": 52, + "column": 31 + }, + "end": { + "line": 52, + "column": 44 + } + }, + "value": "add-comment", + "rawValue": null, + "raw": "\"add-comment\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1080, + "end": 1083, + "loc": { + "start": { + "line": 52, + "column": 17 + }, + "end": { + "line": 52, + "column": 20 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1495, + "end": 1501, + "loc": { + "start": { + "line": 58, + "column": 16 + }, + "end": { + "line": 58, + "column": 22 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1497, + "end": 1500, + "loc": { + "start": { + "line": 58, + "column": 18 + }, + "end": { + "line": 58, + "column": 21 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 1108, + "end": 1129, + "loc": { + "start": { + "line": 52, + "column": 45 + }, + "end": { + "line": 53, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1129, + "end": 1478, + "loc": { + "start": { + "line": 53, + "column": 20 + }, + "end": { + "line": 57, + "column": 27 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1129, + "end": 1175, + "loc": { + "start": { + "line": 53, + "column": 20 + }, + "end": { + "line": 53, + "column": 66 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1135, + "end": 1145, + "loc": { + "start": { + "line": 53, + "column": 26 + }, + "end": { + "line": 53, + "column": 36 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1135, + "end": 1141, + "loc": { + "start": { + "line": 53, + "column": 26 + }, + "end": { + "line": 53, + "column": 32 + } + }, + "name": "action" + }, + "value": { + "type": "Literal", + "start": 1142, + "end": 1145, + "loc": { + "start": { + "line": 53, + "column": 33 + }, + "end": { + "line": 53, + "column": 36 + } + }, + "value": "#", + "rawValue": null, + "raw": "\"#\"" + } + }, + { + "type": "JSXAttribute", + "start": 1146, + "end": 1174, + "loc": { + "start": { + "line": 53, + "column": 37 + }, + "end": { + "line": 53, + "column": 65 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1146, + "end": 1154, + "loc": { + "start": { + "line": 53, + "column": 37 + }, + "end": { + "line": 53, + "column": 45 + } + }, + "name": "onSubmit" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 1155, + "end": 1174, + "loc": { + "start": { + "line": 53, + "column": 46 + }, + "end": { + "line": 53, + "column": 65 + } + }, + "expression": { + "type": "MemberExpression", + "start": 1156, + "end": 1173, + "loc": { + "start": { + "line": 53, + "column": 47 + }, + "end": { + "line": 53, + "column": 64 + } + }, + "object": { + "type": "ThisExpression", + "start": 1156, + "end": 1160, + "loc": { + "start": { + "line": 53, + "column": 47 + }, + "end": { + "line": 53, + "column": 51 + } + } + }, + "property": { + "type": "Identifier", + "start": 1161, + "end": 1173, + "loc": { + "start": { + "line": 53, + "column": 52 + }, + "end": { + "line": 53, + "column": 64 + } + }, + "name": "handleSubmit" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1130, + "end": 1134, + "loc": { + "start": { + "line": 53, + "column": 21 + }, + "end": { + "line": 53, + "column": 25 + } + }, + "name": "form" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1471, + "end": 1478, + "loc": { + "start": { + "line": 57, + "column": 20 + }, + "end": { + "line": 57, + "column": 27 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1473, + "end": 1477, + "loc": { + "start": { + "line": 57, + "column": 22 + }, + "end": { + "line": 57, + "column": 26 + } + }, + "name": "form" + } + }, + "children": [ + { + "type": "Literal", + "start": 1175, + "end": 1200, + "loc": { + "start": { + "line": 53, + "column": 66 + }, + "end": { + "line": 54, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1200, + "end": 1349, + "loc": { + "start": { + "line": 54, + "column": 24 + }, + "end": { + "line": 55, + "column": 57 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1200, + "end": 1349, + "loc": { + "start": { + "line": 54, + "column": 24 + }, + "end": { + "line": 55, + "column": 57 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1207, + "end": 1218, + "loc": { + "start": { + "line": 54, + "column": 31 + }, + "end": { + "line": 54, + "column": 42 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1207, + "end": 1211, + "loc": { + "start": { + "line": 54, + "column": 31 + }, + "end": { + "line": 54, + "column": 35 + } + }, + "name": "type" + }, + "value": { + "type": "Literal", + "start": 1212, + "end": 1218, + "loc": { + "start": { + "line": 54, + "column": 36 + }, + "end": { + "line": 54, + "column": 42 + } + }, + "value": "text", + "rawValue": null, + "raw": "\"text\"" + } + }, + { + "type": "JSXAttribute", + "start": 1219, + "end": 1247, + "loc": { + "start": { + "line": 54, + "column": 43 + }, + "end": { + "line": 54, + "column": 71 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1219, + "end": 1227, + "loc": { + "start": { + "line": 54, + "column": 43 + }, + "end": { + "line": 54, + "column": 51 + } + }, + "name": "onChange" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 1228, + "end": 1247, + "loc": { + "start": { + "line": 54, + "column": 52 + }, + "end": { + "line": 54, + "column": 71 + } + }, + "expression": { + "type": "MemberExpression", + "start": 1229, + "end": 1246, + "loc": { + "start": { + "line": 54, + "column": 53 + }, + "end": { + "line": 54, + "column": 70 + } + }, + "object": { + "type": "ThisExpression", + "start": 1229, + "end": 1233, + "loc": { + "start": { + "line": 54, + "column": 53 + }, + "end": { + "line": 54, + "column": 57 + } + } + }, + "property": { + "type": "Identifier", + "start": 1234, + "end": 1246, + "loc": { + "start": { + "line": 54, + "column": 58 + }, + "end": { + "line": 54, + "column": 70 + } + }, + "name": "handleChange" + }, + "computed": false + } + } + }, + { + "type": "JSXAttribute", + "start": 1248, + "end": 1276, + "loc": { + "start": { + "line": 54, + "column": 72 + }, + "end": { + "line": 54, + "column": 100 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1248, + "end": 1259, + "loc": { + "start": { + "line": 54, + "column": 72 + }, + "end": { + "line": 54, + "column": 83 + } + }, + "name": "placeholder" + }, + "value": { + "type": "Literal", + "start": 1260, + "end": 1276, + "loc": { + "start": { + "line": 54, + "column": 84 + }, + "end": { + "line": 54, + "column": 100 + } + }, + "value": "Add comment...", + "rawValue": null, + "raw": "\"Add comment...\"" + } + }, + { + "type": "JSXAttribute", + "start": 1277, + "end": 1291, + "loc": { + "start": { + "line": 54, + "column": 101 + }, + "end": { + "line": 54, + "column": 115 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1277, + "end": 1286, + "loc": { + "start": { + "line": 54, + "column": 101 + }, + "end": { + "line": 54, + "column": 110 + } + }, + "name": "maxLength" + }, + "value": { + "type": "Literal", + "start": 1287, + "end": 1291, + "loc": { + "start": { + "line": 54, + "column": 111 + }, + "end": { + "line": 54, + "column": 115 + } + }, + "value": "60", + "rawValue": null, + "raw": "\"60\"" + } + }, + { + "type": "JSXAttribute", + "start": 1323, + "end": 1347, + "loc": { + "start": { + "line": 55, + "column": 31 + }, + "end": { + "line": 55, + "column": 55 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1323, + "end": 1328, + "loc": { + "start": { + "line": 55, + "column": 31 + }, + "end": { + "line": 55, + "column": 36 + } + }, + "name": "value" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 1329, + "end": 1347, + "loc": { + "start": { + "line": 55, + "column": 37 + }, + "end": { + "line": 55, + "column": 55 + } + }, + "expression": { + "type": "MemberExpression", + "start": 1330, + "end": 1346, + "loc": { + "start": { + "line": 55, + "column": 38 + }, + "end": { + "line": 55, + "column": 54 + } + }, + "object": { + "type": "MemberExpression", + "start": 1330, + "end": 1340, + "loc": { + "start": { + "line": 55, + "column": 38 + }, + "end": { + "line": 55, + "column": 48 + } + }, + "object": { + "type": "ThisExpression", + "start": 1330, + "end": 1334, + "loc": { + "start": { + "line": 55, + "column": 38 + }, + "end": { + "line": 55, + "column": 42 + } + } + }, + "property": { + "type": "Identifier", + "start": 1335, + "end": 1340, + "loc": { + "start": { + "line": 55, + "column": 43 + }, + "end": { + "line": 55, + "column": 48 + } + }, + "name": "state" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1341, + "end": 1346, + "loc": { + "start": { + "line": 55, + "column": 49 + }, + "end": { + "line": 55, + "column": 54 + } + }, + "name": "value" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1201, + "end": 1206, + "loc": { + "start": { + "line": 54, + "column": 25 + }, + "end": { + "line": 54, + "column": 30 + } + }, + "name": "input" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 1349, + "end": 1374, + "loc": { + "start": { + "line": 55, + "column": 57 + }, + "end": { + "line": 56, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1374, + "end": 1450, + "loc": { + "start": { + "line": 56, + "column": 24 + }, + "end": { + "line": 56, + "column": 100 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1374, + "end": 1396, + "loc": { + "start": { + "line": 56, + "column": 24 + }, + "end": { + "line": 56, + "column": 46 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1382, + "end": 1395, + "loc": { + "start": { + "line": 56, + "column": 32 + }, + "end": { + "line": 56, + "column": 45 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1382, + "end": 1386, + "loc": { + "start": { + "line": 56, + "column": 32 + }, + "end": { + "line": 56, + "column": 36 + } + }, + "name": "type" + }, + "value": { + "type": "Literal", + "start": 1387, + "end": 1395, + "loc": { + "start": { + "line": 56, + "column": 37 + }, + "end": { + "line": 56, + "column": 45 + } + }, + "value": "submit", + "rawValue": null, + "raw": "\"submit\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1375, + "end": 1381, + "loc": { + "start": { + "line": 56, + "column": 25 + }, + "end": { + "line": 56, + "column": 31 + } + }, + "name": "button" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1441, + "end": 1450, + "loc": { + "start": { + "line": 56, + "column": 91 + }, + "end": { + "line": 56, + "column": 100 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1443, + "end": 1449, + "loc": { + "start": { + "line": 56, + "column": 93 + }, + "end": { + "line": 56, + "column": 99 + } + }, + "name": "button" + } + }, + "children": [ + { + "type": "JSXElement", + "start": 1396, + "end": 1441, + "loc": { + "start": { + "line": 56, + "column": 46 + }, + "end": { + "line": 56, + "column": 91 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1396, + "end": 1437, + "loc": { + "start": { + "line": 56, + "column": 46 + }, + "end": { + "line": 56, + "column": 87 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1399, + "end": 1436, + "loc": { + "start": { + "line": 56, + "column": 49 + }, + "end": { + "line": 56, + "column": 86 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1399, + "end": 1408, + "loc": { + "start": { + "line": 56, + "column": 49 + }, + "end": { + "line": 56, + "column": 58 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 1409, + "end": 1436, + "loc": { + "start": { + "line": 56, + "column": 59 + }, + "end": { + "line": 56, + "column": 86 + } + }, + "value": "ion-android-arrow-forward", + "rawValue": null, + "raw": "\"ion-android-arrow-forward\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1397, + "end": 1398, + "loc": { + "start": { + "line": 56, + "column": 47 + }, + "end": { + "line": 56, + "column": 48 + } + }, + "name": "i" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1437, + "end": 1441, + "loc": { + "start": { + "line": 56, + "column": 87 + }, + "end": { + "line": 56, + "column": 91 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1439, + "end": 1440, + "loc": { + "start": { + "line": 56, + "column": 89 + }, + "end": { + "line": 56, + "column": 90 + } + }, + "name": "i" + } + }, + "children": [] + } + ] + }, + { + "type": "Literal", + "start": 1450, + "end": 1471, + "loc": { + "start": { + "line": 56, + "column": 100 + }, + "end": { + "line": 57, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 1478, + "end": 1495, + "loc": { + "start": { + "line": 57, + "column": 27 + }, + "end": { + "line": 58, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 1501, + "end": 1514, + "loc": { + "start": { + "line": 58, + "column": 22 + }, + "end": { + "line": 59, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 779, + "end": 827, + "loc": { + "start": { + "line": 42, + "column": 4 + }, + "end": { + "line": 45, + "column": 7 + } + }, + "range": [ + 779, + 827 + ] + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * PhotoPage\n * React component to be used by PhotoPage component\n ", + "start": 220, + "end": 293, + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + }, + "range": [ + 220, + 293 + ] + } + ], + "__esdoc__pseudo_export": false, + "trailingComments": [] + }, + "leadingComments": null + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/routes/Home/routes/Photo/components/PhotoMetadata.js.json b/app/docs/ast/source/routes/Home/routes/Photo/components/PhotoMetadata.js.json new file mode 100644 index 0000000..f4216d6 --- /dev/null +++ b/app/docs/ast/source/routes/Home/routes/Photo/components/PhotoMetadata.js.json @@ -0,0 +1,4758 @@ +{ + "type": "Program", + "start": 0, + "end": 997, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 38, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + }, + { + "type": "ImportSpecifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "imported": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + }, + "local": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 33, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 33 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ImportDeclaration", + "start": 41, + "end": 76, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 35 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 50, + "end": 54, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "imported": { + "type": "Identifier", + "start": 50, + "end": 54, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "name": "Link" + }, + "local": { + "type": "Identifier", + "start": 50, + "end": 54, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "name": "Link" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 62, + "end": 76, + "loc": { + "start": { + "line": 2, + "column": 21 + }, + "end": { + "line": 2, + "column": 35 + } + }, + "value": "react-router", + "rawValue": "react-router", + "raw": "'react-router'" + } + }, + { + "type": "ImportDeclaration", + "start": 77, + "end": 106, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 29 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 84, + "end": 91, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 14 + } + }, + "local": { + "type": "Identifier", + "start": 84, + "end": 91, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 14 + } + }, + "name": "numeral" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 97, + "end": 106, + "loc": { + "start": { + "line": 3, + "column": 20 + }, + "end": { + "line": 3, + "column": 29 + } + }, + "value": "numeral", + "rawValue": "numeral", + "raw": "'numeral'" + } + }, + { + "type": "ImportDeclaration", + "start": 108, + "end": 148, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 7, + "column": 19 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 121, + "end": 127, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 6, + "column": 10 + } + }, + "imported": { + "type": "Identifier", + "start": 121, + "end": 127, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 6, + "column": 10 + } + }, + "name": "Avatar" + }, + "local": { + "type": "Identifier", + "start": 121, + "end": 127, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 6, + "column": 10 + } + }, + "name": "Avatar" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 136, + "end": 148, + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 19 + } + }, + "value": "components", + "rawValue": "components", + "raw": "'components'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * PhotoMetadata\n * React component to be used by PhotoPage component\n ", + "start": 150, + "end": 227, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + }, + "range": [ + 150, + 227 + ] + } + ] + }, + { + "type": "Identifier", + "start": 228, + "end": 966, + "loc": { + "start": { + "line": 13, + "column": 0 + }, + "end": { + "line": 35, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 234, + "end": 247, + "loc": { + "start": { + "line": 13, + "column": 6 + }, + "end": { + "line": 13, + "column": 19 + } + }, + "name": "PhotoMetadata", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 256, + "end": 265, + "loc": { + "start": { + "line": 13, + "column": 28 + }, + "end": { + "line": 13, + "column": 37 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 266, + "end": 966, + "loc": { + "start": { + "line": 13, + "column": 38 + }, + "end": { + "line": 35, + "column": 1 + } + }, + "body": [ + { + "type": "MethodDefinition", + "start": 326, + "end": 963, + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 326, + "end": 332, + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 332, + "end": 963, + "loc": { + "start": { + "line": 19, + "column": 10 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 335, + "end": 963, + "loc": { + "start": { + "line": 19, + "column": 13 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 345, + "end": 957, + "loc": { + "start": { + "line": 20, + "column": 8 + }, + "end": { + "line": 32, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 366, + "end": 947, + "loc": { + "start": { + "line": 21, + "column": 12 + }, + "end": { + "line": 31, + "column": 18 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 366, + "end": 398, + "loc": { + "start": { + "line": 21, + "column": 12 + }, + "end": { + "line": 21, + "column": 44 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 371, + "end": 397, + "loc": { + "start": { + "line": 21, + "column": 17 + }, + "end": { + "line": 21, + "column": 43 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 371, + "end": 380, + "loc": { + "start": { + "line": 21, + "column": 17 + }, + "end": { + "line": 21, + "column": 26 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 381, + "end": 397, + "loc": { + "start": { + "line": 21, + "column": 27 + }, + "end": { + "line": 21, + "column": 43 + } + }, + "value": "photo-metadata", + "rawValue": null, + "raw": "\"photo-metadata\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 367, + "end": 370, + "loc": { + "start": { + "line": 21, + "column": 13 + }, + "end": { + "line": 21, + "column": 16 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 941, + "end": 947, + "loc": { + "start": { + "line": 31, + "column": 12 + }, + "end": { + "line": 31, + "column": 18 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 943, + "end": 946, + "loc": { + "start": { + "line": 31, + "column": 14 + }, + "end": { + "line": 31, + "column": 17 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 398, + "end": 415, + "loc": { + "start": { + "line": 21, + "column": 44 + }, + "end": { + "line": 22, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 415, + "end": 719, + "loc": { + "start": { + "line": 22, + "column": 16 + }, + "end": { + "line": 27, + "column": 23 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 415, + "end": 459, + "loc": { + "start": { + "line": 22, + "column": 16 + }, + "end": { + "line": 22, + "column": 60 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 421, + "end": 458, + "loc": { + "start": { + "line": 22, + "column": 22 + }, + "end": { + "line": 22, + "column": 59 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 421, + "end": 423, + "loc": { + "start": { + "line": 22, + "column": 22 + }, + "end": { + "line": 22, + "column": 24 + } + }, + "name": "to" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 424, + "end": 458, + "loc": { + "start": { + "line": 22, + "column": 25 + }, + "end": { + "line": 22, + "column": 59 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 425, + "end": 457, + "loc": { + "start": { + "line": 22, + "column": 26 + }, + "end": { + "line": 22, + "column": 58 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 437, + "end": 455, + "loc": { + "start": { + "line": 22, + "column": 38 + }, + "end": { + "line": 22, + "column": 56 + } + }, + "object": { + "type": "MemberExpression", + "start": 437, + "end": 447, + "loc": { + "start": { + "line": 22, + "column": 38 + }, + "end": { + "line": 22, + "column": 48 + } + }, + "object": { + "type": "ThisExpression", + "start": 437, + "end": 441, + "loc": { + "start": { + "line": 22, + "column": 38 + }, + "end": { + "line": 22, + "column": 42 + } + } + }, + "property": { + "type": "Identifier", + "start": 442, + "end": 447, + "loc": { + "start": { + "line": 22, + "column": 43 + }, + "end": { + "line": 22, + "column": 48 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 448, + "end": 455, + "loc": { + "start": { + "line": 22, + "column": 49 + }, + "end": { + "line": 22, + "column": 56 + } + }, + "name": "user_id" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 426, + "end": 435, + "loc": { + "start": { + "line": 22, + "column": 27 + }, + "end": { + "line": 22, + "column": 36 + } + }, + "value": { + "raw": "/profile/", + "cooked": "/profile/" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 456, + "end": 456, + "loc": { + "start": { + "line": 22, + "column": 57 + }, + "end": { + "line": 22, + "column": 57 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 416, + "end": 420, + "loc": { + "start": { + "line": 22, + "column": 17 + }, + "end": { + "line": 22, + "column": 21 + } + }, + "name": "Link" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 712, + "end": 719, + "loc": { + "start": { + "line": 27, + "column": 16 + }, + "end": { + "line": 27, + "column": 23 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 714, + "end": 718, + "loc": { + "start": { + "line": 27, + "column": 18 + }, + "end": { + "line": 27, + "column": 22 + } + }, + "name": "Link" + } + }, + "children": [ + { + "type": "Literal", + "start": 459, + "end": 480, + "loc": { + "start": { + "line": 22, + "column": 60 + }, + "end": { + "line": 23, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 480, + "end": 695, + "loc": { + "start": { + "line": 23, + "column": 20 + }, + "end": { + "line": 26, + "column": 26 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 480, + "end": 504, + "loc": { + "start": { + "line": 23, + "column": 20 + }, + "end": { + "line": 23, + "column": 44 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 485, + "end": 503, + "loc": { + "start": { + "line": 23, + "column": 25 + }, + "end": { + "line": 23, + "column": 43 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 485, + "end": 494, + "loc": { + "start": { + "line": 23, + "column": 25 + }, + "end": { + "line": 23, + "column": 34 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 495, + "end": 503, + "loc": { + "start": { + "line": 23, + "column": 35 + }, + "end": { + "line": 23, + "column": 43 + } + }, + "value": "artist", + "rawValue": null, + "raw": "\"artist\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 481, + "end": 484, + "loc": { + "start": { + "line": 23, + "column": 21 + }, + "end": { + "line": 23, + "column": 24 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 689, + "end": 695, + "loc": { + "start": { + "line": 26, + "column": 20 + }, + "end": { + "line": 26, + "column": 26 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 691, + "end": 694, + "loc": { + "start": { + "line": 26, + "column": 22 + }, + "end": { + "line": 26, + "column": 25 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 504, + "end": 529, + "loc": { + "start": { + "line": 23, + "column": 44 + }, + "end": { + "line": 24, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 529, + "end": 575, + "loc": { + "start": { + "line": 24, + "column": 24 + }, + "end": { + "line": 24, + "column": 70 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 529, + "end": 575, + "loc": { + "start": { + "line": 24, + "column": 24 + }, + "end": { + "line": 24, + "column": 70 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 537, + "end": 561, + "loc": { + "start": { + "line": 24, + "column": 32 + }, + "end": { + "line": 24, + "column": 56 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 537, + "end": 542, + "loc": { + "start": { + "line": 24, + "column": 32 + }, + "end": { + "line": 24, + "column": 37 + } + }, + "name": "email" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 543, + "end": 561, + "loc": { + "start": { + "line": 24, + "column": 38 + }, + "end": { + "line": 24, + "column": 56 + } + }, + "expression": { + "type": "MemberExpression", + "start": 544, + "end": 560, + "loc": { + "start": { + "line": 24, + "column": 39 + }, + "end": { + "line": 24, + "column": 55 + } + }, + "object": { + "type": "MemberExpression", + "start": 544, + "end": 554, + "loc": { + "start": { + "line": 24, + "column": 39 + }, + "end": { + "line": 24, + "column": 49 + } + }, + "object": { + "type": "ThisExpression", + "start": 544, + "end": 548, + "loc": { + "start": { + "line": 24, + "column": 39 + }, + "end": { + "line": 24, + "column": 43 + } + } + }, + "property": { + "type": "Identifier", + "start": 549, + "end": 554, + "loc": { + "start": { + "line": 24, + "column": 44 + }, + "end": { + "line": 24, + "column": 49 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 555, + "end": 560, + "loc": { + "start": { + "line": 24, + "column": 50 + }, + "end": { + "line": 24, + "column": 55 + } + }, + "name": "email" + }, + "computed": false + } + } + }, + { + "type": "JSXAttribute", + "start": 562, + "end": 573, + "loc": { + "start": { + "line": 24, + "column": 57 + }, + "end": { + "line": 24, + "column": 68 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 562, + "end": 568, + "loc": { + "start": { + "line": 24, + "column": 57 + }, + "end": { + "line": 24, + "column": 63 + } + }, + "name": "height" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 569, + "end": 573, + "loc": { + "start": { + "line": 24, + "column": 64 + }, + "end": { + "line": 24, + "column": 68 + } + }, + "expression": { + "type": "Literal", + "start": 570, + "end": 572, + "loc": { + "start": { + "line": 24, + "column": 65 + }, + "end": { + "line": 24, + "column": 67 + } + }, + "value": 50, + "rawValue": 50, + "raw": "50" + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 530, + "end": 536, + "loc": { + "start": { + "line": 24, + "column": 25 + }, + "end": { + "line": 24, + "column": 31 + } + }, + "name": "Avatar" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 575, + "end": 600, + "loc": { + "start": { + "line": 24, + "column": 70 + }, + "end": { + "line": 25, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 600, + "end": 668, + "loc": { + "start": { + "line": 25, + "column": 24 + }, + "end": { + "line": 25, + "column": 92 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 601, + "end": 667, + "loc": { + "start": { + "line": 25, + "column": 25 + }, + "end": { + "line": 25, + "column": 91 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 604, + "end": 625, + "loc": { + "start": { + "line": 25, + "column": 28 + }, + "end": { + "line": 25, + "column": 49 + } + }, + "object": { + "type": "MemberExpression", + "start": 604, + "end": 614, + "loc": { + "start": { + "line": 25, + "column": 28 + }, + "end": { + "line": 25, + "column": 38 + } + }, + "object": { + "type": "ThisExpression", + "start": 604, + "end": 608, + "loc": { + "start": { + "line": 25, + "column": 28 + }, + "end": { + "line": 25, + "column": 32 + } + } + }, + "property": { + "type": "Identifier", + "start": 609, + "end": 614, + "loc": { + "start": { + "line": 25, + "column": 33 + }, + "end": { + "line": 25, + "column": 38 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 615, + "end": 625, + "loc": { + "start": { + "line": 25, + "column": 39 + }, + "end": { + "line": 25, + "column": 49 + } + }, + "name": "first_name" + }, + "computed": false + }, + { + "type": "BinaryExpression", + "start": 629, + "end": 665, + "loc": { + "start": { + "line": 25, + "column": 53 + }, + "end": { + "line": 25, + "column": 89 + } + }, + "left": { + "type": "CallExpression", + "start": 629, + "end": 659, + "loc": { + "start": { + "line": 25, + "column": 53 + }, + "end": { + "line": 25, + "column": 83 + } + }, + "callee": { + "type": "MemberExpression", + "start": 629, + "end": 656, + "loc": { + "start": { + "line": 25, + "column": 53 + }, + "end": { + "line": 25, + "column": 80 + } + }, + "object": { + "type": "MemberExpression", + "start": 629, + "end": 649, + "loc": { + "start": { + "line": 25, + "column": 53 + }, + "end": { + "line": 25, + "column": 73 + } + }, + "object": { + "type": "MemberExpression", + "start": 629, + "end": 639, + "loc": { + "start": { + "line": 25, + "column": 53 + }, + "end": { + "line": 25, + "column": 63 + } + }, + "object": { + "type": "ThisExpression", + "start": 629, + "end": 633, + "loc": { + "start": { + "line": 25, + "column": 53 + }, + "end": { + "line": 25, + "column": 57 + } + } + }, + "property": { + "type": "Identifier", + "start": 634, + "end": 639, + "loc": { + "start": { + "line": 25, + "column": 58 + }, + "end": { + "line": 25, + "column": 63 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 640, + "end": 649, + "loc": { + "start": { + "line": 25, + "column": 64 + }, + "end": { + "line": 25, + "column": 73 + } + }, + "name": "last_name" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 650, + "end": 656, + "loc": { + "start": { + "line": 25, + "column": 74 + }, + "end": { + "line": 25, + "column": 80 + } + }, + "name": "charAt" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 657, + "end": 658, + "loc": { + "start": { + "line": 25, + "column": 81 + }, + "end": { + "line": 25, + "column": 82 + } + }, + "value": 0, + "rawValue": 0, + "raw": "0" + } + ] + }, + "operator": "+", + "right": { + "type": "Literal", + "start": 662, + "end": 665, + "loc": { + "start": { + "line": 25, + "column": 86 + }, + "end": { + "line": 25, + "column": 89 + } + }, + "value": ".", + "rawValue": ".", + "raw": "'.'" + } + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 602, + "end": 602, + "loc": { + "start": { + "line": 25, + "column": 26 + }, + "end": { + "line": 25, + "column": 26 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 626, + "end": 627, + "loc": { + "start": { + "line": 25, + "column": 50 + }, + "end": { + "line": 25, + "column": 51 + } + }, + "value": { + "raw": " ", + "cooked": " " + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 666, + "end": 666, + "loc": { + "start": { + "line": 25, + "column": 90 + }, + "end": { + "line": 25, + "column": 90 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + }, + { + "type": "Literal", + "start": 668, + "end": 689, + "loc": { + "start": { + "line": 25, + "column": 92 + }, + "end": { + "line": 26, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 695, + "end": 712, + "loc": { + "start": { + "line": 26, + "column": 26 + }, + "end": { + "line": 27, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 719, + "end": 736, + "loc": { + "start": { + "line": 27, + "column": 23 + }, + "end": { + "line": 28, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 736, + "end": 928, + "loc": { + "start": { + "line": 28, + "column": 16 + }, + "end": { + "line": 30, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 736, + "end": 764, + "loc": { + "start": { + "line": 28, + "column": 16 + }, + "end": { + "line": 28, + "column": 44 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 741, + "end": 763, + "loc": { + "start": { + "line": 28, + "column": 21 + }, + "end": { + "line": 28, + "column": 43 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 741, + "end": 750, + "loc": { + "start": { + "line": 28, + "column": 21 + }, + "end": { + "line": 28, + "column": 30 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 751, + "end": 763, + "loc": { + "start": { + "line": 28, + "column": 31 + }, + "end": { + "line": 28, + "column": 43 + } + }, + "value": "like-count", + "rawValue": null, + "raw": "\"like-count\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 737, + "end": 740, + "loc": { + "start": { + "line": 28, + "column": 17 + }, + "end": { + "line": 28, + "column": 20 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 922, + "end": 928, + "loc": { + "start": { + "line": 30, + "column": 16 + }, + "end": { + "line": 30, + "column": 22 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 924, + "end": 927, + "loc": { + "start": { + "line": 30, + "column": 18 + }, + "end": { + "line": 30, + "column": 21 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 764, + "end": 785, + "loc": { + "start": { + "line": 28, + "column": 44 + }, + "end": { + "line": 29, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 785, + "end": 818, + "loc": { + "start": { + "line": 29, + "column": 20 + }, + "end": { + "line": 29, + "column": 53 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 785, + "end": 814, + "loc": { + "start": { + "line": 29, + "column": 20 + }, + "end": { + "line": 29, + "column": 49 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 788, + "end": 813, + "loc": { + "start": { + "line": 29, + "column": 23 + }, + "end": { + "line": 29, + "column": 48 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 788, + "end": 797, + "loc": { + "start": { + "line": 29, + "column": 23 + }, + "end": { + "line": 29, + "column": 32 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 798, + "end": 813, + "loc": { + "start": { + "line": 29, + "column": 33 + }, + "end": { + "line": 29, + "column": 48 + } + }, + "value": "ion-ios-heart", + "rawValue": null, + "raw": "\"ion-ios-heart\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 786, + "end": 787, + "loc": { + "start": { + "line": 29, + "column": 21 + }, + "end": { + "line": 29, + "column": 22 + } + }, + "name": "i" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 814, + "end": 818, + "loc": { + "start": { + "line": 29, + "column": 49 + }, + "end": { + "line": 29, + "column": 53 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 816, + "end": 817, + "loc": { + "start": { + "line": 29, + "column": 51 + }, + "end": { + "line": 29, + "column": 52 + } + }, + "name": "i" + } + }, + "children": [] + }, + { + "type": "Literal", + "start": 818, + "end": 819, + "loc": { + "start": { + "line": 29, + "column": 53 + }, + "end": { + "line": 29, + "column": 54 + } + }, + "value": " ", + "rawValue": null, + "raw": " " + }, + { + "type": "JSXExpressionContainer", + "start": 819, + "end": 860, + "loc": { + "start": { + "line": 29, + "column": 54 + }, + "end": { + "line": 29, + "column": 95 + } + }, + "expression": { + "type": "CallExpression", + "start": 820, + "end": 859, + "loc": { + "start": { + "line": 29, + "column": 55 + }, + "end": { + "line": 29, + "column": 94 + } + }, + "callee": { + "type": "MemberExpression", + "start": 820, + "end": 852, + "loc": { + "start": { + "line": 29, + "column": 55 + }, + "end": { + "line": 29, + "column": 87 + } + }, + "object": { + "type": "CallExpression", + "start": 820, + "end": 845, + "loc": { + "start": { + "line": 29, + "column": 55 + }, + "end": { + "line": 29, + "column": 80 + } + }, + "callee": { + "type": "Identifier", + "start": 820, + "end": 827, + "loc": { + "start": { + "line": 29, + "column": 55 + }, + "end": { + "line": 29, + "column": 62 + } + }, + "name": "numeral" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 828, + "end": 844, + "loc": { + "start": { + "line": 29, + "column": 63 + }, + "end": { + "line": 29, + "column": 79 + } + }, + "object": { + "type": "MemberExpression", + "start": 828, + "end": 838, + "loc": { + "start": { + "line": 29, + "column": 63 + }, + "end": { + "line": 29, + "column": 73 + } + }, + "object": { + "type": "ThisExpression", + "start": 828, + "end": 832, + "loc": { + "start": { + "line": 29, + "column": 63 + }, + "end": { + "line": 29, + "column": 67 + } + } + }, + "property": { + "type": "Identifier", + "start": 833, + "end": 838, + "loc": { + "start": { + "line": 29, + "column": 68 + }, + "end": { + "line": 29, + "column": 73 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 839, + "end": 844, + "loc": { + "start": { + "line": 29, + "column": 74 + }, + "end": { + "line": 29, + "column": 79 + } + }, + "name": "likes" + }, + "computed": false + } + ] + }, + "property": { + "type": "Identifier", + "start": 846, + "end": 852, + "loc": { + "start": { + "line": 29, + "column": 81 + }, + "end": { + "line": 29, + "column": 87 + } + }, + "name": "format" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 853, + "end": 858, + "loc": { + "start": { + "line": 29, + "column": 88 + }, + "end": { + "line": 29, + "column": 93 + } + }, + "value": "0,0", + "rawValue": "0,0", + "raw": "'0,0'" + } + ] + } + }, + { + "type": "Literal", + "start": 860, + "end": 861, + "loc": { + "start": { + "line": 29, + "column": 95 + }, + "end": { + "line": 29, + "column": 96 + } + }, + "value": " ", + "rawValue": null, + "raw": " " + }, + { + "type": "JSXExpressionContainer", + "start": 861, + "end": 905, + "loc": { + "start": { + "line": 29, + "column": 96 + }, + "end": { + "line": 29, + "column": 140 + } + }, + "expression": { + "type": "ConditionalExpression", + "start": 862, + "end": 903, + "loc": { + "start": { + "line": 29, + "column": 97 + }, + "end": { + "line": 29, + "column": 138 + } + }, + "test": { + "type": "BinaryExpression", + "start": 862, + "end": 884, + "loc": { + "start": { + "line": 29, + "column": 97 + }, + "end": { + "line": 29, + "column": 119 + } + }, + "left": { + "type": "MemberExpression", + "start": 862, + "end": 878, + "loc": { + "start": { + "line": 29, + "column": 97 + }, + "end": { + "line": 29, + "column": 113 + } + }, + "object": { + "type": "MemberExpression", + "start": 862, + "end": 872, + "loc": { + "start": { + "line": 29, + "column": 97 + }, + "end": { + "line": 29, + "column": 107 + } + }, + "object": { + "type": "ThisExpression", + "start": 862, + "end": 866, + "loc": { + "start": { + "line": 29, + "column": 97 + }, + "end": { + "line": 29, + "column": 101 + } + } + }, + "property": { + "type": "Identifier", + "start": 867, + "end": 872, + "loc": { + "start": { + "line": 29, + "column": 102 + }, + "end": { + "line": 29, + "column": 107 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 873, + "end": 878, + "loc": { + "start": { + "line": 29, + "column": 108 + }, + "end": { + "line": 29, + "column": 113 + } + }, + "name": "likes" + }, + "computed": false + }, + "operator": "===", + "right": { + "type": "Literal", + "start": 883, + "end": 884, + "loc": { + "start": { + "line": 29, + "column": 118 + }, + "end": { + "line": 29, + "column": 119 + } + }, + "value": 1, + "rawValue": 1, + "raw": "1" + } + }, + "consequent": { + "type": "Literal", + "start": 887, + "end": 893, + "loc": { + "start": { + "line": 29, + "column": 122 + }, + "end": { + "line": 29, + "column": 128 + } + }, + "value": "Like", + "rawValue": "Like", + "raw": "'Like'" + }, + "alternate": { + "type": "Literal", + "start": 896, + "end": 903, + "loc": { + "start": { + "line": 29, + "column": 131 + }, + "end": { + "line": 29, + "column": 138 + } + }, + "value": "Likes", + "rawValue": "Likes", + "raw": "'Likes'" + } + } + }, + { + "type": "Literal", + "start": 905, + "end": 922, + "loc": { + "start": { + "line": 29, + "column": 140 + }, + "end": { + "line": 30, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 928, + "end": 941, + "loc": { + "start": { + "line": 30, + "column": 22 + }, + "end": { + "line": 31, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 273, + "end": 321, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 18, + "column": 7 + } + }, + "range": [ + 273, + 321 + ] + } + ] + } + ] + }, + "leadingComments": [], + "name": "_", + "trailingComments": [] + }, + { + "type": "Identifier", + "start": 968, + "end": 996, + "loc": { + "start": { + "line": 37, + "column": 0 + }, + "end": { + "line": 37, + "column": 28 + } + }, + "declaration": { + "type": "Identifier", + "start": 983, + "end": 996, + "loc": { + "start": { + "line": 37, + "column": 15 + }, + "end": { + "line": 37, + "column": 28 + } + }, + "name": "PhotoMetadata" + }, + "name": "_", + "leadingComments": [], + "trailingComments": [] + }, + { + "type": "ExportDefaultDeclaration", + "start": 968, + "end": 996, + "loc": { + "start": { + "line": 37, + "column": 0 + }, + "end": { + "line": 37, + "column": 28 + } + }, + "declaration": { + "type": "ClassDeclaration", + "start": 228, + "end": 966, + "loc": { + "start": { + "line": 13, + "column": 0 + }, + "end": { + "line": 35, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 234, + "end": 247, + "loc": { + "start": { + "line": 13, + "column": 6 + }, + "end": { + "line": 13, + "column": 19 + } + }, + "name": "PhotoMetadata", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 256, + "end": 265, + "loc": { + "start": { + "line": 13, + "column": 28 + }, + "end": { + "line": 13, + "column": 37 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 266, + "end": 966, + "loc": { + "start": { + "line": 13, + "column": 38 + }, + "end": { + "line": 35, + "column": 1 + } + }, + "body": [ + { + "type": "MethodDefinition", + "start": 326, + "end": 963, + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 326, + "end": 332, + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 332, + "end": 963, + "loc": { + "start": { + "line": 19, + "column": 10 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 335, + "end": 963, + "loc": { + "start": { + "line": 19, + "column": 13 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 345, + "end": 957, + "loc": { + "start": { + "line": 20, + "column": 8 + }, + "end": { + "line": 32, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 366, + "end": 947, + "loc": { + "start": { + "line": 21, + "column": 12 + }, + "end": { + "line": 31, + "column": 18 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 366, + "end": 398, + "loc": { + "start": { + "line": 21, + "column": 12 + }, + "end": { + "line": 21, + "column": 44 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 371, + "end": 397, + "loc": { + "start": { + "line": 21, + "column": 17 + }, + "end": { + "line": 21, + "column": 43 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 371, + "end": 380, + "loc": { + "start": { + "line": 21, + "column": 17 + }, + "end": { + "line": 21, + "column": 26 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 381, + "end": 397, + "loc": { + "start": { + "line": 21, + "column": 27 + }, + "end": { + "line": 21, + "column": 43 + } + }, + "value": "photo-metadata", + "rawValue": null, + "raw": "\"photo-metadata\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 367, + "end": 370, + "loc": { + "start": { + "line": 21, + "column": 13 + }, + "end": { + "line": 21, + "column": 16 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 941, + "end": 947, + "loc": { + "start": { + "line": 31, + "column": 12 + }, + "end": { + "line": 31, + "column": 18 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 943, + "end": 946, + "loc": { + "start": { + "line": 31, + "column": 14 + }, + "end": { + "line": 31, + "column": 17 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 398, + "end": 415, + "loc": { + "start": { + "line": 21, + "column": 44 + }, + "end": { + "line": 22, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 415, + "end": 719, + "loc": { + "start": { + "line": 22, + "column": 16 + }, + "end": { + "line": 27, + "column": 23 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 415, + "end": 459, + "loc": { + "start": { + "line": 22, + "column": 16 + }, + "end": { + "line": 22, + "column": 60 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 421, + "end": 458, + "loc": { + "start": { + "line": 22, + "column": 22 + }, + "end": { + "line": 22, + "column": 59 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 421, + "end": 423, + "loc": { + "start": { + "line": 22, + "column": 22 + }, + "end": { + "line": 22, + "column": 24 + } + }, + "name": "to" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 424, + "end": 458, + "loc": { + "start": { + "line": 22, + "column": 25 + }, + "end": { + "line": 22, + "column": 59 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 425, + "end": 457, + "loc": { + "start": { + "line": 22, + "column": 26 + }, + "end": { + "line": 22, + "column": 58 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 437, + "end": 455, + "loc": { + "start": { + "line": 22, + "column": 38 + }, + "end": { + "line": 22, + "column": 56 + } + }, + "object": { + "type": "MemberExpression", + "start": 437, + "end": 447, + "loc": { + "start": { + "line": 22, + "column": 38 + }, + "end": { + "line": 22, + "column": 48 + } + }, + "object": { + "type": "ThisExpression", + "start": 437, + "end": 441, + "loc": { + "start": { + "line": 22, + "column": 38 + }, + "end": { + "line": 22, + "column": 42 + } + } + }, + "property": { + "type": "Identifier", + "start": 442, + "end": 447, + "loc": { + "start": { + "line": 22, + "column": 43 + }, + "end": { + "line": 22, + "column": 48 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 448, + "end": 455, + "loc": { + "start": { + "line": 22, + "column": 49 + }, + "end": { + "line": 22, + "column": 56 + } + }, + "name": "user_id" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 426, + "end": 435, + "loc": { + "start": { + "line": 22, + "column": 27 + }, + "end": { + "line": 22, + "column": 36 + } + }, + "value": { + "raw": "/profile/", + "cooked": "/profile/" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 456, + "end": 456, + "loc": { + "start": { + "line": 22, + "column": 57 + }, + "end": { + "line": 22, + "column": 57 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 416, + "end": 420, + "loc": { + "start": { + "line": 22, + "column": 17 + }, + "end": { + "line": 22, + "column": 21 + } + }, + "name": "Link" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 712, + "end": 719, + "loc": { + "start": { + "line": 27, + "column": 16 + }, + "end": { + "line": 27, + "column": 23 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 714, + "end": 718, + "loc": { + "start": { + "line": 27, + "column": 18 + }, + "end": { + "line": 27, + "column": 22 + } + }, + "name": "Link" + } + }, + "children": [ + { + "type": "Literal", + "start": 459, + "end": 480, + "loc": { + "start": { + "line": 22, + "column": 60 + }, + "end": { + "line": 23, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 480, + "end": 695, + "loc": { + "start": { + "line": 23, + "column": 20 + }, + "end": { + "line": 26, + "column": 26 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 480, + "end": 504, + "loc": { + "start": { + "line": 23, + "column": 20 + }, + "end": { + "line": 23, + "column": 44 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 485, + "end": 503, + "loc": { + "start": { + "line": 23, + "column": 25 + }, + "end": { + "line": 23, + "column": 43 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 485, + "end": 494, + "loc": { + "start": { + "line": 23, + "column": 25 + }, + "end": { + "line": 23, + "column": 34 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 495, + "end": 503, + "loc": { + "start": { + "line": 23, + "column": 35 + }, + "end": { + "line": 23, + "column": 43 + } + }, + "value": "artist", + "rawValue": null, + "raw": "\"artist\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 481, + "end": 484, + "loc": { + "start": { + "line": 23, + "column": 21 + }, + "end": { + "line": 23, + "column": 24 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 689, + "end": 695, + "loc": { + "start": { + "line": 26, + "column": 20 + }, + "end": { + "line": 26, + "column": 26 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 691, + "end": 694, + "loc": { + "start": { + "line": 26, + "column": 22 + }, + "end": { + "line": 26, + "column": 25 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 504, + "end": 529, + "loc": { + "start": { + "line": 23, + "column": 44 + }, + "end": { + "line": 24, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 529, + "end": 575, + "loc": { + "start": { + "line": 24, + "column": 24 + }, + "end": { + "line": 24, + "column": 70 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 529, + "end": 575, + "loc": { + "start": { + "line": 24, + "column": 24 + }, + "end": { + "line": 24, + "column": 70 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 537, + "end": 561, + "loc": { + "start": { + "line": 24, + "column": 32 + }, + "end": { + "line": 24, + "column": 56 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 537, + "end": 542, + "loc": { + "start": { + "line": 24, + "column": 32 + }, + "end": { + "line": 24, + "column": 37 + } + }, + "name": "email" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 543, + "end": 561, + "loc": { + "start": { + "line": 24, + "column": 38 + }, + "end": { + "line": 24, + "column": 56 + } + }, + "expression": { + "type": "MemberExpression", + "start": 544, + "end": 560, + "loc": { + "start": { + "line": 24, + "column": 39 + }, + "end": { + "line": 24, + "column": 55 + } + }, + "object": { + "type": "MemberExpression", + "start": 544, + "end": 554, + "loc": { + "start": { + "line": 24, + "column": 39 + }, + "end": { + "line": 24, + "column": 49 + } + }, + "object": { + "type": "ThisExpression", + "start": 544, + "end": 548, + "loc": { + "start": { + "line": 24, + "column": 39 + }, + "end": { + "line": 24, + "column": 43 + } + } + }, + "property": { + "type": "Identifier", + "start": 549, + "end": 554, + "loc": { + "start": { + "line": 24, + "column": 44 + }, + "end": { + "line": 24, + "column": 49 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 555, + "end": 560, + "loc": { + "start": { + "line": 24, + "column": 50 + }, + "end": { + "line": 24, + "column": 55 + } + }, + "name": "email" + }, + "computed": false + } + } + }, + { + "type": "JSXAttribute", + "start": 562, + "end": 573, + "loc": { + "start": { + "line": 24, + "column": 57 + }, + "end": { + "line": 24, + "column": 68 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 562, + "end": 568, + "loc": { + "start": { + "line": 24, + "column": 57 + }, + "end": { + "line": 24, + "column": 63 + } + }, + "name": "height" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 569, + "end": 573, + "loc": { + "start": { + "line": 24, + "column": 64 + }, + "end": { + "line": 24, + "column": 68 + } + }, + "expression": { + "type": "Literal", + "start": 570, + "end": 572, + "loc": { + "start": { + "line": 24, + "column": 65 + }, + "end": { + "line": 24, + "column": 67 + } + }, + "value": 50, + "rawValue": 50, + "raw": "50" + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 530, + "end": 536, + "loc": { + "start": { + "line": 24, + "column": 25 + }, + "end": { + "line": 24, + "column": 31 + } + }, + "name": "Avatar" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 575, + "end": 600, + "loc": { + "start": { + "line": 24, + "column": 70 + }, + "end": { + "line": 25, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 600, + "end": 668, + "loc": { + "start": { + "line": 25, + "column": 24 + }, + "end": { + "line": 25, + "column": 92 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 601, + "end": 667, + "loc": { + "start": { + "line": 25, + "column": 25 + }, + "end": { + "line": 25, + "column": 91 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 604, + "end": 625, + "loc": { + "start": { + "line": 25, + "column": 28 + }, + "end": { + "line": 25, + "column": 49 + } + }, + "object": { + "type": "MemberExpression", + "start": 604, + "end": 614, + "loc": { + "start": { + "line": 25, + "column": 28 + }, + "end": { + "line": 25, + "column": 38 + } + }, + "object": { + "type": "ThisExpression", + "start": 604, + "end": 608, + "loc": { + "start": { + "line": 25, + "column": 28 + }, + "end": { + "line": 25, + "column": 32 + } + } + }, + "property": { + "type": "Identifier", + "start": 609, + "end": 614, + "loc": { + "start": { + "line": 25, + "column": 33 + }, + "end": { + "line": 25, + "column": 38 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 615, + "end": 625, + "loc": { + "start": { + "line": 25, + "column": 39 + }, + "end": { + "line": 25, + "column": 49 + } + }, + "name": "first_name" + }, + "computed": false + }, + { + "type": "BinaryExpression", + "start": 629, + "end": 665, + "loc": { + "start": { + "line": 25, + "column": 53 + }, + "end": { + "line": 25, + "column": 89 + } + }, + "left": { + "type": "CallExpression", + "start": 629, + "end": 659, + "loc": { + "start": { + "line": 25, + "column": 53 + }, + "end": { + "line": 25, + "column": 83 + } + }, + "callee": { + "type": "MemberExpression", + "start": 629, + "end": 656, + "loc": { + "start": { + "line": 25, + "column": 53 + }, + "end": { + "line": 25, + "column": 80 + } + }, + "object": { + "type": "MemberExpression", + "start": 629, + "end": 649, + "loc": { + "start": { + "line": 25, + "column": 53 + }, + "end": { + "line": 25, + "column": 73 + } + }, + "object": { + "type": "MemberExpression", + "start": 629, + "end": 639, + "loc": { + "start": { + "line": 25, + "column": 53 + }, + "end": { + "line": 25, + "column": 63 + } + }, + "object": { + "type": "ThisExpression", + "start": 629, + "end": 633, + "loc": { + "start": { + "line": 25, + "column": 53 + }, + "end": { + "line": 25, + "column": 57 + } + } + }, + "property": { + "type": "Identifier", + "start": 634, + "end": 639, + "loc": { + "start": { + "line": 25, + "column": 58 + }, + "end": { + "line": 25, + "column": 63 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 640, + "end": 649, + "loc": { + "start": { + "line": 25, + "column": 64 + }, + "end": { + "line": 25, + "column": 73 + } + }, + "name": "last_name" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 650, + "end": 656, + "loc": { + "start": { + "line": 25, + "column": 74 + }, + "end": { + "line": 25, + "column": 80 + } + }, + "name": "charAt" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 657, + "end": 658, + "loc": { + "start": { + "line": 25, + "column": 81 + }, + "end": { + "line": 25, + "column": 82 + } + }, + "value": 0, + "rawValue": 0, + "raw": "0" + } + ] + }, + "operator": "+", + "right": { + "type": "Literal", + "start": 662, + "end": 665, + "loc": { + "start": { + "line": 25, + "column": 86 + }, + "end": { + "line": 25, + "column": 89 + } + }, + "value": ".", + "rawValue": ".", + "raw": "'.'" + } + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 602, + "end": 602, + "loc": { + "start": { + "line": 25, + "column": 26 + }, + "end": { + "line": 25, + "column": 26 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 626, + "end": 627, + "loc": { + "start": { + "line": 25, + "column": 50 + }, + "end": { + "line": 25, + "column": 51 + } + }, + "value": { + "raw": " ", + "cooked": " " + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 666, + "end": 666, + "loc": { + "start": { + "line": 25, + "column": 90 + }, + "end": { + "line": 25, + "column": 90 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + }, + { + "type": "Literal", + "start": 668, + "end": 689, + "loc": { + "start": { + "line": 25, + "column": 92 + }, + "end": { + "line": 26, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 695, + "end": 712, + "loc": { + "start": { + "line": 26, + "column": 26 + }, + "end": { + "line": 27, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 719, + "end": 736, + "loc": { + "start": { + "line": 27, + "column": 23 + }, + "end": { + "line": 28, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 736, + "end": 928, + "loc": { + "start": { + "line": 28, + "column": 16 + }, + "end": { + "line": 30, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 736, + "end": 764, + "loc": { + "start": { + "line": 28, + "column": 16 + }, + "end": { + "line": 28, + "column": 44 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 741, + "end": 763, + "loc": { + "start": { + "line": 28, + "column": 21 + }, + "end": { + "line": 28, + "column": 43 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 741, + "end": 750, + "loc": { + "start": { + "line": 28, + "column": 21 + }, + "end": { + "line": 28, + "column": 30 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 751, + "end": 763, + "loc": { + "start": { + "line": 28, + "column": 31 + }, + "end": { + "line": 28, + "column": 43 + } + }, + "value": "like-count", + "rawValue": null, + "raw": "\"like-count\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 737, + "end": 740, + "loc": { + "start": { + "line": 28, + "column": 17 + }, + "end": { + "line": 28, + "column": 20 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 922, + "end": 928, + "loc": { + "start": { + "line": 30, + "column": 16 + }, + "end": { + "line": 30, + "column": 22 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 924, + "end": 927, + "loc": { + "start": { + "line": 30, + "column": 18 + }, + "end": { + "line": 30, + "column": 21 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 764, + "end": 785, + "loc": { + "start": { + "line": 28, + "column": 44 + }, + "end": { + "line": 29, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 785, + "end": 818, + "loc": { + "start": { + "line": 29, + "column": 20 + }, + "end": { + "line": 29, + "column": 53 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 785, + "end": 814, + "loc": { + "start": { + "line": 29, + "column": 20 + }, + "end": { + "line": 29, + "column": 49 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 788, + "end": 813, + "loc": { + "start": { + "line": 29, + "column": 23 + }, + "end": { + "line": 29, + "column": 48 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 788, + "end": 797, + "loc": { + "start": { + "line": 29, + "column": 23 + }, + "end": { + "line": 29, + "column": 32 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 798, + "end": 813, + "loc": { + "start": { + "line": 29, + "column": 33 + }, + "end": { + "line": 29, + "column": 48 + } + }, + "value": "ion-ios-heart", + "rawValue": null, + "raw": "\"ion-ios-heart\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 786, + "end": 787, + "loc": { + "start": { + "line": 29, + "column": 21 + }, + "end": { + "line": 29, + "column": 22 + } + }, + "name": "i" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 814, + "end": 818, + "loc": { + "start": { + "line": 29, + "column": 49 + }, + "end": { + "line": 29, + "column": 53 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 816, + "end": 817, + "loc": { + "start": { + "line": 29, + "column": 51 + }, + "end": { + "line": 29, + "column": 52 + } + }, + "name": "i" + } + }, + "children": [] + }, + { + "type": "Literal", + "start": 818, + "end": 819, + "loc": { + "start": { + "line": 29, + "column": 53 + }, + "end": { + "line": 29, + "column": 54 + } + }, + "value": " ", + "rawValue": null, + "raw": " " + }, + { + "type": "JSXExpressionContainer", + "start": 819, + "end": 860, + "loc": { + "start": { + "line": 29, + "column": 54 + }, + "end": { + "line": 29, + "column": 95 + } + }, + "expression": { + "type": "CallExpression", + "start": 820, + "end": 859, + "loc": { + "start": { + "line": 29, + "column": 55 + }, + "end": { + "line": 29, + "column": 94 + } + }, + "callee": { + "type": "MemberExpression", + "start": 820, + "end": 852, + "loc": { + "start": { + "line": 29, + "column": 55 + }, + "end": { + "line": 29, + "column": 87 + } + }, + "object": { + "type": "CallExpression", + "start": 820, + "end": 845, + "loc": { + "start": { + "line": 29, + "column": 55 + }, + "end": { + "line": 29, + "column": 80 + } + }, + "callee": { + "type": "Identifier", + "start": 820, + "end": 827, + "loc": { + "start": { + "line": 29, + "column": 55 + }, + "end": { + "line": 29, + "column": 62 + } + }, + "name": "numeral" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 828, + "end": 844, + "loc": { + "start": { + "line": 29, + "column": 63 + }, + "end": { + "line": 29, + "column": 79 + } + }, + "object": { + "type": "MemberExpression", + "start": 828, + "end": 838, + "loc": { + "start": { + "line": 29, + "column": 63 + }, + "end": { + "line": 29, + "column": 73 + } + }, + "object": { + "type": "ThisExpression", + "start": 828, + "end": 832, + "loc": { + "start": { + "line": 29, + "column": 63 + }, + "end": { + "line": 29, + "column": 67 + } + } + }, + "property": { + "type": "Identifier", + "start": 833, + "end": 838, + "loc": { + "start": { + "line": 29, + "column": 68 + }, + "end": { + "line": 29, + "column": 73 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 839, + "end": 844, + "loc": { + "start": { + "line": 29, + "column": 74 + }, + "end": { + "line": 29, + "column": 79 + } + }, + "name": "likes" + }, + "computed": false + } + ] + }, + "property": { + "type": "Identifier", + "start": 846, + "end": 852, + "loc": { + "start": { + "line": 29, + "column": 81 + }, + "end": { + "line": 29, + "column": 87 + } + }, + "name": "format" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 853, + "end": 858, + "loc": { + "start": { + "line": 29, + "column": 88 + }, + "end": { + "line": 29, + "column": 93 + } + }, + "value": "0,0", + "rawValue": "0,0", + "raw": "'0,0'" + } + ] + } + }, + { + "type": "Literal", + "start": 860, + "end": 861, + "loc": { + "start": { + "line": 29, + "column": 95 + }, + "end": { + "line": 29, + "column": 96 + } + }, + "value": " ", + "rawValue": null, + "raw": " " + }, + { + "type": "JSXExpressionContainer", + "start": 861, + "end": 905, + "loc": { + "start": { + "line": 29, + "column": 96 + }, + "end": { + "line": 29, + "column": 140 + } + }, + "expression": { + "type": "ConditionalExpression", + "start": 862, + "end": 903, + "loc": { + "start": { + "line": 29, + "column": 97 + }, + "end": { + "line": 29, + "column": 138 + } + }, + "test": { + "type": "BinaryExpression", + "start": 862, + "end": 884, + "loc": { + "start": { + "line": 29, + "column": 97 + }, + "end": { + "line": 29, + "column": 119 + } + }, + "left": { + "type": "MemberExpression", + "start": 862, + "end": 878, + "loc": { + "start": { + "line": 29, + "column": 97 + }, + "end": { + "line": 29, + "column": 113 + } + }, + "object": { + "type": "MemberExpression", + "start": 862, + "end": 872, + "loc": { + "start": { + "line": 29, + "column": 97 + }, + "end": { + "line": 29, + "column": 107 + } + }, + "object": { + "type": "ThisExpression", + "start": 862, + "end": 866, + "loc": { + "start": { + "line": 29, + "column": 97 + }, + "end": { + "line": 29, + "column": 101 + } + } + }, + "property": { + "type": "Identifier", + "start": 867, + "end": 872, + "loc": { + "start": { + "line": 29, + "column": 102 + }, + "end": { + "line": 29, + "column": 107 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 873, + "end": 878, + "loc": { + "start": { + "line": 29, + "column": 108 + }, + "end": { + "line": 29, + "column": 113 + } + }, + "name": "likes" + }, + "computed": false + }, + "operator": "===", + "right": { + "type": "Literal", + "start": 883, + "end": 884, + "loc": { + "start": { + "line": 29, + "column": 118 + }, + "end": { + "line": 29, + "column": 119 + } + }, + "value": 1, + "rawValue": 1, + "raw": "1" + } + }, + "consequent": { + "type": "Literal", + "start": 887, + "end": 893, + "loc": { + "start": { + "line": 29, + "column": 122 + }, + "end": { + "line": 29, + "column": 128 + } + }, + "value": "Like", + "rawValue": "Like", + "raw": "'Like'" + }, + "alternate": { + "type": "Literal", + "start": 896, + "end": 903, + "loc": { + "start": { + "line": 29, + "column": 131 + }, + "end": { + "line": 29, + "column": 138 + } + }, + "value": "Likes", + "rawValue": "Likes", + "raw": "'Likes'" + } + } + }, + { + "type": "Literal", + "start": 905, + "end": 922, + "loc": { + "start": { + "line": 29, + "column": 140 + }, + "end": { + "line": 30, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 928, + "end": 941, + "loc": { + "start": { + "line": 30, + "column": 22 + }, + "end": { + "line": 31, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 273, + "end": 321, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 18, + "column": 7 + } + }, + "range": [ + 273, + 321 + ] + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * PhotoMetadata\n * React component to be used by PhotoPage component\n ", + "start": 150, + "end": 227, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + }, + "range": [ + 150, + 227 + ] + } + ], + "__esdoc__pseudo_export": false, + "trailingComments": [] + }, + "leadingComments": null + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/routes/Home/routes/Photo/index.js.json b/app/docs/ast/source/routes/Home/routes/Photo/index.js.json new file mode 100644 index 0000000..4e2d577 --- /dev/null +++ b/app/docs/ast/source/routes/Home/routes/Photo/index.js.json @@ -0,0 +1,1296 @@ +{ + "type": "Program", + "start": 0, + "end": 718, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 37, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 18, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 18 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ImportDeclaration", + "start": 26, + "end": 71, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 45 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 35, + "end": 49, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 23 + } + }, + "imported": { + "type": "Identifier", + "start": 35, + "end": 49, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 23 + } + }, + "name": "browserHistory" + }, + "local": { + "type": "Identifier", + "start": 35, + "end": 49, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 23 + } + }, + "name": "browserHistory" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 57, + "end": 71, + "loc": { + "start": { + "line": 2, + "column": 31 + }, + "end": { + "line": 2, + "column": 45 + } + }, + "value": "react-router", + "rawValue": "react-router", + "raw": "'react-router'" + } + }, + { + "type": "ImportDeclaration", + "start": 73, + "end": 112, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 39 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 82, + "end": 92, + "loc": { + "start": { + "line": 4, + "column": 9 + }, + "end": { + "line": 4, + "column": 19 + } + }, + "imported": { + "type": "Identifier", + "start": 82, + "end": 92, + "loc": { + "start": { + "line": 4, + "column": 9 + }, + "end": { + "line": 4, + "column": 19 + } + }, + "name": "BackButton" + }, + "local": { + "type": "Identifier", + "start": 82, + "end": 92, + "loc": { + "start": { + "line": 4, + "column": 9 + }, + "end": { + "line": 4, + "column": 19 + } + }, + "name": "BackButton" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 100, + "end": 112, + "loc": { + "start": { + "line": 4, + "column": 27 + }, + "end": { + "line": 4, + "column": 39 + } + }, + "value": "components", + "rawValue": "components", + "raw": "'components'" + } + }, + { + "type": "ExpressionStatement", + "start": 114, + "end": 717, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 36, + "column": 1 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 114, + "end": 717, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 36, + "column": 1 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 114, + "end": 128, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 6, + "column": 14 + } + }, + "object": { + "type": "Identifier", + "start": 114, + "end": 120, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 6, + "column": 6 + } + }, + "name": "module" + }, + "property": { + "type": "Identifier", + "start": 121, + "end": 128, + "loc": { + "start": { + "line": 6, + "column": 7 + }, + "end": { + "line": 6, + "column": 14 + } + }, + "name": "exports" + }, + "computed": false + }, + "right": { + "type": "ObjectExpression", + "start": 131, + "end": 717, + "loc": { + "start": { + "line": 6, + "column": 17 + }, + "end": { + "line": 36, + "column": 1 + } + }, + "properties": [ + { + "type": "Property", + "start": 137, + "end": 155, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 7, + "column": 22 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 137, + "end": 141, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 7, + "column": 8 + } + }, + "name": "path" + }, + "value": { + "type": "Literal", + "start": 143, + "end": 155, + "loc": { + "start": { + "line": 7, + "column": 10 + }, + "end": { + "line": 7, + "column": 22 + } + }, + "value": "photos/:id", + "rawValue": "photos/:id", + "raw": "'photos/:id'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 258, + "end": 337, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 16, + "column": 5 + } + }, + "method": true, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 258, + "end": 270, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 16 + } + }, + "name": "getComponent", + "leadingComments": null + }, + "kind": "init", + "value": { + "type": "FunctionExpression", + "start": 270, + "end": 337, + "loc": { + "start": { + "line": 14, + "column": 16 + }, + "end": { + "line": 16, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 271, + "end": 279, + "loc": { + "start": { + "line": 14, + "column": 17 + }, + "end": { + "line": 14, + "column": 25 + } + }, + "name": "location" + }, + { + "type": "Identifier", + "start": 281, + "end": 283, + "loc": { + "start": { + "line": 14, + "column": 27 + }, + "end": { + "line": 14, + "column": 29 + } + }, + "name": "cb" + } + ], + "body": { + "type": "BlockStatement", + "start": 285, + "end": 337, + "loc": { + "start": { + "line": 14, + "column": 31 + }, + "end": { + "line": 16, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 295, + "end": 331, + "loc": { + "start": { + "line": 15, + "column": 8 + }, + "end": { + "line": 15, + "column": 44 + } + }, + "expression": { + "type": "CallExpression", + "start": 295, + "end": 331, + "loc": { + "start": { + "line": 15, + "column": 8 + }, + "end": { + "line": 15, + "column": 44 + } + }, + "callee": { + "type": "Identifier", + "start": 295, + "end": 297, + "loc": { + "start": { + "line": 15, + "column": 8 + }, + "end": { + "line": 15, + "column": 10 + } + }, + "name": "cb" + }, + "arguments": [ + { + "type": "Literal", + "start": 298, + "end": 302, + "loc": { + "start": { + "line": 15, + "column": 11 + }, + "end": { + "line": 15, + "column": 15 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + { + "type": "MemberExpression", + "start": 304, + "end": 330, + "loc": { + "start": { + "line": 15, + "column": 17 + }, + "end": { + "line": 15, + "column": 43 + } + }, + "object": { + "type": "CallExpression", + "start": 304, + "end": 322, + "loc": { + "start": { + "line": 15, + "column": 17 + }, + "end": { + "line": 15, + "column": 35 + } + }, + "callee": { + "type": "Identifier", + "start": 304, + "end": 311, + "loc": { + "start": { + "line": 15, + "column": 17 + }, + "end": { + "line": 15, + "column": 24 + } + }, + "name": "require" + }, + "arguments": [ + { + "type": "Literal", + "start": 312, + "end": 321, + "loc": { + "start": { + "line": 15, + "column": 25 + }, + "end": { + "line": 15, + "column": 34 + } + }, + "value": "./Photo", + "rawValue": "./Photo", + "raw": "'./Photo'" + } + ] + }, + "property": { + "type": "Identifier", + "start": 323, + "end": 330, + "loc": { + "start": { + "line": 15, + "column": 36 + }, + "end": { + "line": 15, + "column": 43 + } + }, + "name": "default" + }, + "computed": false + } + ] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * getComponent\n * @param location\n * @param cb {Function} callback\n ", + "start": 162, + "end": 253, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 13, + "column": 7 + } + }, + "range": [ + 162, + 253 + ] + } + ] + }, + { + "type": "Property", + "start": 441, + "end": 543, + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 25, + "column": 5 + } + }, + "method": true, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 441, + "end": 454, + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 17 + } + }, + "name": "getHeaderLeft", + "leadingComments": null + }, + "kind": "init", + "value": { + "type": "FunctionExpression", + "start": 454, + "end": 543, + "loc": { + "start": { + "line": 23, + "column": 17 + }, + "end": { + "line": 25, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 455, + "end": 463, + "loc": { + "start": { + "line": 23, + "column": 18 + }, + "end": { + "line": 23, + "column": 26 + } + }, + "name": "location" + }, + { + "type": "Identifier", + "start": 465, + "end": 467, + "loc": { + "start": { + "line": 23, + "column": 28 + }, + "end": { + "line": 23, + "column": 30 + } + }, + "name": "cb" + } + ], + "body": { + "type": "BlockStatement", + "start": 469, + "end": 543, + "loc": { + "start": { + "line": 23, + "column": 32 + }, + "end": { + "line": 25, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 479, + "end": 537, + "loc": { + "start": { + "line": 24, + "column": 8 + }, + "end": { + "line": 24, + "column": 66 + } + }, + "expression": { + "type": "CallExpression", + "start": 479, + "end": 537, + "loc": { + "start": { + "line": 24, + "column": 8 + }, + "end": { + "line": 24, + "column": 66 + } + }, + "callee": { + "type": "Identifier", + "start": 479, + "end": 481, + "loc": { + "start": { + "line": 24, + "column": 8 + }, + "end": { + "line": 24, + "column": 10 + } + }, + "name": "cb" + }, + "arguments": [ + { + "type": "Literal", + "start": 482, + "end": 486, + "loc": { + "start": { + "line": 24, + "column": 11 + }, + "end": { + "line": 24, + "column": 15 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + { + "type": "JSXElement", + "start": 488, + "end": 536, + "loc": { + "start": { + "line": 24, + "column": 17 + }, + "end": { + "line": 24, + "column": 65 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 488, + "end": 536, + "loc": { + "start": { + "line": 24, + "column": 17 + }, + "end": { + "line": 24, + "column": 65 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 500, + "end": 534, + "loc": { + "start": { + "line": 24, + "column": 29 + }, + "end": { + "line": 24, + "column": 63 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 500, + "end": 502, + "loc": { + "start": { + "line": 24, + "column": 29 + }, + "end": { + "line": 24, + "column": 31 + } + }, + "name": "to" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 503, + "end": 534, + "loc": { + "start": { + "line": 24, + "column": 32 + }, + "end": { + "line": 24, + "column": 63 + } + }, + "expression": { + "type": "ArrowFunctionExpression", + "start": 504, + "end": 533, + "loc": { + "start": { + "line": 24, + "column": 33 + }, + "end": { + "line": 24, + "column": 62 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [], + "body": { + "type": "CallExpression", + "start": 510, + "end": 533, + "loc": { + "start": { + "line": 24, + "column": 39 + }, + "end": { + "line": 24, + "column": 62 + } + }, + "callee": { + "type": "MemberExpression", + "start": 510, + "end": 531, + "loc": { + "start": { + "line": 24, + "column": 39 + }, + "end": { + "line": 24, + "column": 60 + } + }, + "object": { + "type": "Identifier", + "start": 510, + "end": 524, + "loc": { + "start": { + "line": 24, + "column": 39 + }, + "end": { + "line": 24, + "column": 53 + } + }, + "name": "browserHistory" + }, + "property": { + "type": "Identifier", + "start": 525, + "end": 531, + "loc": { + "start": { + "line": 24, + "column": 54 + }, + "end": { + "line": 24, + "column": 60 + } + }, + "name": "goBack" + }, + "computed": false + }, + "arguments": [] + } + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 489, + "end": 499, + "loc": { + "start": { + "line": 24, + "column": 18 + }, + "end": { + "line": 24, + "column": 28 + } + }, + "name": "BackButton" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + ] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * getHeaderLeft\n * @param location\n * @param cb {Function} callback\n ", + "start": 344, + "end": 436, + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 22, + "column": 7 + } + }, + "range": [ + 344, + 436 + ] + } + ] + }, + { + "type": "Property", + "start": 649, + "end": 713, + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 34, + "column": 5 + } + }, + "method": true, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 649, + "end": 664, + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 19 + } + }, + "name": "getHeaderMiddle", + "leadingComments": null + }, + "kind": "init", + "value": { + "type": "FunctionExpression", + "start": 664, + "end": 713, + "loc": { + "start": { + "line": 32, + "column": 19 + }, + "end": { + "line": 34, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 665, + "end": 673, + "loc": { + "start": { + "line": 32, + "column": 20 + }, + "end": { + "line": 32, + "column": 28 + } + }, + "name": "location" + }, + { + "type": "Identifier", + "start": 675, + "end": 677, + "loc": { + "start": { + "line": 32, + "column": 30 + }, + "end": { + "line": 32, + "column": 32 + } + }, + "name": "cb" + } + ], + "body": { + "type": "BlockStatement", + "start": 679, + "end": 713, + "loc": { + "start": { + "line": 32, + "column": 34 + }, + "end": { + "line": 34, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 689, + "end": 707, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 26 + } + }, + "expression": { + "type": "CallExpression", + "start": 689, + "end": 707, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 26 + } + }, + "callee": { + "type": "Identifier", + "start": 689, + "end": 691, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 10 + } + }, + "name": "cb" + }, + "arguments": [ + { + "type": "Literal", + "start": 692, + "end": 696, + "loc": { + "start": { + "line": 33, + "column": 11 + }, + "end": { + "line": 33, + "column": 15 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + { + "type": "JSXElement", + "start": 698, + "end": 706, + "loc": { + "start": { + "line": 33, + "column": 17 + }, + "end": { + "line": 33, + "column": 25 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 698, + "end": 706, + "loc": { + "start": { + "line": 33, + "column": 17 + }, + "end": { + "line": 33, + "column": 25 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 699, + "end": 703, + "loc": { + "start": { + "line": 33, + "column": 18 + }, + "end": { + "line": 33, + "column": 22 + } + }, + "name": "span" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + ] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * getHeaderMiddle\n * @param location\n * @param cb {Function} callback\n ", + "start": 550, + "end": 644, + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 31, + "column": 7 + } + }, + "range": [ + 550, + 644 + ] + } + ] + } + ] + } + } + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/routes/Landing/Landing.js.json b/app/docs/ast/source/routes/Landing/Landing.js.json new file mode 100644 index 0000000..2647a97 --- /dev/null +++ b/app/docs/ast/source/routes/Landing/Landing.js.json @@ -0,0 +1,2506 @@ +{ + "type": "Program", + "start": 0, + "end": 1490, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 60, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + }, + { + "type": "ImportSpecifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "imported": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + }, + "local": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 33, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 33 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ImportDeclaration", + "start": 41, + "end": 78, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 37 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 50, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "imported": { + "type": "Identifier", + "start": 50, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "name": "connect" + }, + "local": { + "type": "Identifier", + "start": 50, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "name": "connect" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 65, + "end": 78, + "loc": { + "start": { + "line": 2, + "column": 24 + }, + "end": { + "line": 2, + "column": 37 + } + }, + "value": "react-redux", + "rawValue": "react-redux", + "raw": "'react-redux'" + } + }, + { + "type": "ImportDeclaration", + "start": 79, + "end": 124, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 45 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 88, + "end": 102, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 23 + } + }, + "imported": { + "type": "Identifier", + "start": 88, + "end": 102, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 23 + } + }, + "name": "browserHistory" + }, + "local": { + "type": "Identifier", + "start": 88, + "end": 102, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 23 + } + }, + "name": "browserHistory" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 110, + "end": 124, + "loc": { + "start": { + "line": 3, + "column": 31 + }, + "end": { + "line": 3, + "column": 45 + } + }, + "value": "react-router", + "rawValue": "react-router", + "raw": "'react-router'" + } + }, + { + "type": "ImportDeclaration", + "start": 126, + "end": 175, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 7, + "column": 16 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 139, + "end": 158, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 6, + "column": 23 + } + }, + "imported": { + "type": "Identifier", + "start": 139, + "end": 143, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 6, + "column": 8 + } + }, + "name": "User" + }, + "local": { + "type": "Identifier", + "start": 147, + "end": 158, + "loc": { + "start": { + "line": 6, + "column": 12 + }, + "end": { + "line": 6, + "column": 23 + } + }, + "name": "UserActions" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 166, + "end": 175, + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 16 + } + }, + "value": "actions", + "rawValue": "actions", + "raw": "'actions'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Landing\n * '/landing'\n * React Route - Documentation: https://github.com/reactjs/react-router/tree/master/docs\n ", + "start": 177, + "end": 298, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + }, + "range": [ + 177, + 298 + ] + } + ] + }, + { + "type": "ClassDeclaration", + "start": 299, + "end": 1212, + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 50, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 305, + "end": 312, + "loc": { + "start": { + "line": 14, + "column": 6 + }, + "end": { + "line": 14, + "column": 13 + } + }, + "name": "Landing", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 321, + "end": 330, + "loc": { + "start": { + "line": 14, + "column": 22 + }, + "end": { + "line": 14, + "column": 31 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 331, + "end": 1212, + "loc": { + "start": { + "line": 14, + "column": 32 + }, + "end": { + "line": 50, + "column": 1 + } + }, + "body": [ + { + "type": "Identifier", + "start": 397, + "end": 771, + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 32, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 397, + "end": 410, + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 17 + } + }, + "name": "handleFBLogin", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ArrowFunctionExpression", + "start": 413, + "end": 771, + "loc": { + "start": { + "line": 20, + "column": 20 + }, + "end": { + "line": 32, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 414, + "end": 415, + "loc": { + "start": { + "line": 20, + "column": 21 + }, + "end": { + "line": 20, + "column": 22 + } + }, + "name": "e" + } + ], + "body": { + "type": "BlockStatement", + "start": 420, + "end": 771, + "loc": { + "start": { + "line": 20, + "column": 27 + }, + "end": { + "line": 32, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 430, + "end": 448, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 26 + } + }, + "expression": { + "type": "CallExpression", + "start": 430, + "end": 448, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 26 + } + }, + "callee": { + "type": "MemberExpression", + "start": 430, + "end": 446, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 24 + } + }, + "object": { + "type": "Identifier", + "start": 430, + "end": 431, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 9 + } + }, + "name": "e" + }, + "property": { + "type": "Identifier", + "start": 432, + "end": 446, + "loc": { + "start": { + "line": 21, + "column": 10 + }, + "end": { + "line": 21, + "column": 24 + } + }, + "name": "preventDefault" + }, + "computed": false + }, + "arguments": [] + } + }, + { + "type": "ExpressionStatement", + "start": 457, + "end": 765, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 31, + "column": 10 + } + }, + "expression": { + "type": "CallExpression", + "start": 457, + "end": 765, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 31, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 457, + "end": 465, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 16 + } + }, + "object": { + "type": "Identifier", + "start": 457, + "end": 459, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 10 + } + }, + "name": "FB" + }, + "property": { + "type": "Identifier", + "start": 460, + "end": 465, + "loc": { + "start": { + "line": 22, + "column": 11 + }, + "end": { + "line": 22, + "column": 16 + } + }, + "name": "login" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 466, + "end": 673, + "loc": { + "start": { + "line": 22, + "column": 17 + }, + "end": { + "line": 28, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 466, + "end": 469, + "loc": { + "start": { + "line": 22, + "column": 17 + }, + "end": { + "line": 22, + "column": 20 + } + }, + "name": "res" + } + ], + "body": { + "type": "BlockStatement", + "start": 473, + "end": 673, + "loc": { + "start": { + "line": 22, + "column": 24 + }, + "end": { + "line": 28, + "column": 9 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 487, + "end": 663, + "loc": { + "start": { + "line": 23, + "column": 12 + }, + "end": { + "line": 27, + "column": 13 + } + }, + "test": { + "type": "BinaryExpression", + "start": 491, + "end": 517, + "loc": { + "start": { + "line": 23, + "column": 16 + }, + "end": { + "line": 23, + "column": 42 + } + }, + "left": { + "type": "MemberExpression", + "start": 491, + "end": 501, + "loc": { + "start": { + "line": 23, + "column": 16 + }, + "end": { + "line": 23, + "column": 26 + } + }, + "object": { + "type": "Identifier", + "start": 491, + "end": 494, + "loc": { + "start": { + "line": 23, + "column": 16 + }, + "end": { + "line": 23, + "column": 19 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 495, + "end": 501, + "loc": { + "start": { + "line": 23, + "column": 20 + }, + "end": { + "line": 23, + "column": 26 + } + }, + "name": "status" + }, + "computed": false + }, + "operator": "===", + "right": { + "type": "Literal", + "start": 506, + "end": 517, + "loc": { + "start": { + "line": 23, + "column": 31 + }, + "end": { + "line": 23, + "column": 42 + } + }, + "value": "connected", + "rawValue": "connected", + "raw": "'connected'" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 519, + "end": 663, + "loc": { + "start": { + "line": 23, + "column": 44 + }, + "end": { + "line": 27, + "column": 13 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 537, + "end": 564, + "loc": { + "start": { + "line": 24, + "column": 16 + }, + "end": { + "line": 24, + "column": 43 + } + }, + "expression": { + "type": "CallExpression", + "start": 537, + "end": 564, + "loc": { + "start": { + "line": 24, + "column": 16 + }, + "end": { + "line": 24, + "column": 43 + } + }, + "callee": { + "type": "MemberExpression", + "start": 537, + "end": 559, + "loc": { + "start": { + "line": 24, + "column": 16 + }, + "end": { + "line": 24, + "column": 38 + } + }, + "object": { + "type": "Identifier", + "start": 537, + "end": 551, + "loc": { + "start": { + "line": 24, + "column": 16 + }, + "end": { + "line": 24, + "column": 30 + } + }, + "name": "browserHistory" + }, + "property": { + "type": "Identifier", + "start": 552, + "end": 559, + "loc": { + "start": { + "line": 24, + "column": 31 + }, + "end": { + "line": 24, + "column": 38 + } + }, + "name": "replace" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 560, + "end": 563, + "loc": { + "start": { + "line": 24, + "column": 39 + }, + "end": { + "line": 24, + "column": 42 + } + }, + "value": "/", + "rawValue": "/", + "raw": "'/'" + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 581, + "end": 626, + "loc": { + "start": { + "line": 25, + "column": 16 + }, + "end": { + "line": 25, + "column": 61 + } + }, + "expression": { + "type": "CallExpression", + "start": 581, + "end": 626, + "loc": { + "start": { + "line": 25, + "column": 16 + }, + "end": { + "line": 25, + "column": 61 + } + }, + "callee": { + "type": "MemberExpression", + "start": 581, + "end": 600, + "loc": { + "start": { + "line": 25, + "column": 16 + }, + "end": { + "line": 25, + "column": 35 + } + }, + "object": { + "type": "MemberExpression", + "start": 581, + "end": 591, + "loc": { + "start": { + "line": 25, + "column": 16 + }, + "end": { + "line": 25, + "column": 26 + } + }, + "object": { + "type": "ThisExpression", + "start": 581, + "end": 585, + "loc": { + "start": { + "line": 25, + "column": 16 + }, + "end": { + "line": 25, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "start": 586, + "end": 591, + "loc": { + "start": { + "line": 25, + "column": 21 + }, + "end": { + "line": 25, + "column": 26 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 592, + "end": 600, + "loc": { + "start": { + "line": 25, + "column": 27 + }, + "end": { + "line": 25, + "column": 35 + } + }, + "name": "dispatch" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 601, + "end": 625, + "loc": { + "start": { + "line": 25, + "column": 36 + }, + "end": { + "line": 25, + "column": 60 + } + }, + "callee": { + "type": "MemberExpression", + "start": 601, + "end": 620, + "loc": { + "start": { + "line": 25, + "column": 36 + }, + "end": { + "line": 25, + "column": 55 + } + }, + "object": { + "type": "Identifier", + "start": 601, + "end": 612, + "loc": { + "start": { + "line": 25, + "column": 36 + }, + "end": { + "line": 25, + "column": 47 + } + }, + "name": "UserActions" + }, + "property": { + "type": "Identifier", + "start": 613, + "end": 620, + "loc": { + "start": { + "line": 25, + "column": 48 + }, + "end": { + "line": 25, + "column": 55 + } + }, + "name": "fbLogin" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 621, + "end": 624, + "loc": { + "start": { + "line": 25, + "column": 56 + }, + "end": { + "line": 25, + "column": 59 + } + }, + "name": "res" + } + ] + } + ] + } + }, + { + "type": "ReturnStatement", + "start": 643, + "end": 649, + "loc": { + "start": { + "line": 26, + "column": 16 + }, + "end": { + "line": 26, + "column": 22 + } + }, + "argument": null + } + ] + }, + "alternate": null + } + ] + } + }, + { + "type": "ObjectExpression", + "start": 675, + "end": 764, + "loc": { + "start": { + "line": 28, + "column": 11 + }, + "end": { + "line": 31, + "column": 9 + } + }, + "properties": [ + { + "type": "Property", + "start": 689, + "end": 718, + "loc": { + "start": { + "line": 29, + "column": 12 + }, + "end": { + "line": 29, + "column": 41 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 689, + "end": 694, + "loc": { + "start": { + "line": 29, + "column": 12 + }, + "end": { + "line": 29, + "column": 17 + } + }, + "name": "scope" + }, + "value": { + "type": "Literal", + "start": 696, + "end": 718, + "loc": { + "start": { + "line": 29, + "column": 19 + }, + "end": { + "line": 29, + "column": 41 + } + }, + "value": "public_profile,email", + "rawValue": "public_profile,email", + "raw": "'public_profile,email'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 732, + "end": 754, + "loc": { + "start": { + "line": 30, + "column": 12 + }, + "end": { + "line": 30, + "column": 34 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 732, + "end": 741, + "loc": { + "start": { + "line": 30, + "column": 12 + }, + "end": { + "line": 30, + "column": 21 + } + }, + "name": "auth_type" + }, + "value": { + "type": "Literal", + "start": 743, + "end": 754, + "loc": { + "start": { + "line": 30, + "column": 23 + }, + "end": { + "line": 30, + "column": 34 + } + }, + "value": "rerequest", + "rawValue": "rerequest", + "raw": "'rerequest'" + }, + "kind": "init" + } + ] + } + ] + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * handleFBLogin\n * @param e event\n ", + "start": 338, + "end": 392, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 19, + "column": 7 + } + }, + "range": [ + 338, + 392 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 777, + "end": 825, + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 37, + "column": 7 + } + }, + "range": [ + 777, + 825 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 830, + "end": 1209, + "loc": { + "start": { + "line": 38, + "column": 4 + }, + "end": { + "line": 48, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 830, + "end": 836, + "loc": { + "start": { + "line": 38, + "column": 4 + }, + "end": { + "line": 38, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 836, + "end": 1209, + "loc": { + "start": { + "line": 38, + "column": 10 + }, + "end": { + "line": 48, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 839, + "end": 1209, + "loc": { + "start": { + "line": 38, + "column": 13 + }, + "end": { + "line": 48, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 849, + "end": 1203, + "loc": { + "start": { + "line": 39, + "column": 8 + }, + "end": { + "line": 47, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 870, + "end": 1193, + "loc": { + "start": { + "line": 40, + "column": 12 + }, + "end": { + "line": 46, + "column": 18 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 870, + "end": 895, + "loc": { + "start": { + "line": 40, + "column": 12 + }, + "end": { + "line": 40, + "column": 37 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 875, + "end": 894, + "loc": { + "start": { + "line": 40, + "column": 17 + }, + "end": { + "line": 40, + "column": 36 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 875, + "end": 884, + "loc": { + "start": { + "line": 40, + "column": 17 + }, + "end": { + "line": 40, + "column": 26 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 885, + "end": 894, + "loc": { + "start": { + "line": 40, + "column": 27 + }, + "end": { + "line": 40, + "column": 36 + } + }, + "value": "landing", + "rawValue": null, + "raw": "\"landing\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 871, + "end": 874, + "loc": { + "start": { + "line": 40, + "column": 13 + }, + "end": { + "line": 40, + "column": 16 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1187, + "end": 1193, + "loc": { + "start": { + "line": 46, + "column": 12 + }, + "end": { + "line": 46, + "column": 18 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1189, + "end": 1192, + "loc": { + "start": { + "line": 46, + "column": 14 + }, + "end": { + "line": 46, + "column": 17 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 895, + "end": 912, + "loc": { + "start": { + "line": 40, + "column": 37 + }, + "end": { + "line": 41, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 912, + "end": 1174, + "loc": { + "start": { + "line": 41, + "column": 16 + }, + "end": { + "line": 45, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 912, + "end": 949, + "loc": { + "start": { + "line": 41, + "column": 16 + }, + "end": { + "line": 41, + "column": 53 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 917, + "end": 948, + "loc": { + "start": { + "line": 41, + "column": 21 + }, + "end": { + "line": 41, + "column": 52 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 917, + "end": 926, + "loc": { + "start": { + "line": 41, + "column": 21 + }, + "end": { + "line": 41, + "column": 30 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 927, + "end": 948, + "loc": { + "start": { + "line": 41, + "column": 31 + }, + "end": { + "line": 41, + "column": 52 + } + }, + "value": "facebook-login-root", + "rawValue": null, + "raw": "\"facebook-login-root\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 913, + "end": 916, + "loc": { + "start": { + "line": 41, + "column": 17 + }, + "end": { + "line": 41, + "column": 20 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1168, + "end": 1174, + "loc": { + "start": { + "line": 45, + "column": 16 + }, + "end": { + "line": 45, + "column": 22 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1170, + "end": 1173, + "loc": { + "start": { + "line": 45, + "column": 18 + }, + "end": { + "line": 45, + "column": 21 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 949, + "end": 970, + "loc": { + "start": { + "line": 41, + "column": 53 + }, + "end": { + "line": 42, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 970, + "end": 1151, + "loc": { + "start": { + "line": 42, + "column": 20 + }, + "end": { + "line": 44, + "column": 29 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 970, + "end": 1034, + "loc": { + "start": { + "line": 42, + "column": 20 + }, + "end": { + "line": 42, + "column": 84 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 978, + "end": 1004, + "loc": { + "start": { + "line": 42, + "column": 28 + }, + "end": { + "line": 42, + "column": 54 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 978, + "end": 987, + "loc": { + "start": { + "line": 42, + "column": 28 + }, + "end": { + "line": 42, + "column": 37 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 988, + "end": 1004, + "loc": { + "start": { + "line": 42, + "column": 38 + }, + "end": { + "line": 42, + "column": 54 + } + }, + "value": "facebook-login", + "rawValue": null, + "raw": "\"facebook-login\"" + } + }, + { + "type": "JSXAttribute", + "start": 1005, + "end": 1033, + "loc": { + "start": { + "line": 42, + "column": 55 + }, + "end": { + "line": 42, + "column": 83 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1005, + "end": 1012, + "loc": { + "start": { + "line": 42, + "column": 55 + }, + "end": { + "line": 42, + "column": 62 + } + }, + "name": "onClick" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 1013, + "end": 1033, + "loc": { + "start": { + "line": 42, + "column": 63 + }, + "end": { + "line": 42, + "column": 83 + } + }, + "expression": { + "type": "MemberExpression", + "start": 1014, + "end": 1032, + "loc": { + "start": { + "line": 42, + "column": 64 + }, + "end": { + "line": 42, + "column": 82 + } + }, + "object": { + "type": "ThisExpression", + "start": 1014, + "end": 1018, + "loc": { + "start": { + "line": 42, + "column": 64 + }, + "end": { + "line": 42, + "column": 68 + } + } + }, + "property": { + "type": "Identifier", + "start": 1019, + "end": 1032, + "loc": { + "start": { + "line": 42, + "column": 69 + }, + "end": { + "line": 42, + "column": 82 + } + }, + "name": "handleFBLogin" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 971, + "end": 977, + "loc": { + "start": { + "line": 42, + "column": 21 + }, + "end": { + "line": 42, + "column": 27 + } + }, + "name": "button" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1142, + "end": 1151, + "loc": { + "start": { + "line": 44, + "column": 20 + }, + "end": { + "line": 44, + "column": 29 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1144, + "end": 1150, + "loc": { + "start": { + "line": 44, + "column": 22 + }, + "end": { + "line": 44, + "column": 28 + } + }, + "name": "button" + } + }, + "children": [ + { + "type": "Literal", + "start": 1034, + "end": 1059, + "loc": { + "start": { + "line": 42, + "column": 84 + }, + "end": { + "line": 43, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1059, + "end": 1098, + "loc": { + "start": { + "line": 43, + "column": 24 + }, + "end": { + "line": 43, + "column": 63 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1059, + "end": 1094, + "loc": { + "start": { + "line": 43, + "column": 24 + }, + "end": { + "line": 43, + "column": 59 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1062, + "end": 1093, + "loc": { + "start": { + "line": 43, + "column": 27 + }, + "end": { + "line": 43, + "column": 58 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1062, + "end": 1071, + "loc": { + "start": { + "line": 43, + "column": 27 + }, + "end": { + "line": 43, + "column": 36 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 1072, + "end": 1093, + "loc": { + "start": { + "line": 43, + "column": 37 + }, + "end": { + "line": 43, + "column": 58 + } + }, + "value": "ion-social-facebook", + "rawValue": null, + "raw": "\"ion-social-facebook\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1060, + "end": 1061, + "loc": { + "start": { + "line": 43, + "column": 25 + }, + "end": { + "line": 43, + "column": 26 + } + }, + "name": "i" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1094, + "end": 1098, + "loc": { + "start": { + "line": 43, + "column": 59 + }, + "end": { + "line": 43, + "column": 63 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1096, + "end": 1097, + "loc": { + "start": { + "line": 43, + "column": 61 + }, + "end": { + "line": 43, + "column": 62 + } + }, + "name": "i" + } + }, + "children": [] + }, + { + "type": "Literal", + "start": 1098, + "end": 1142, + "loc": { + "start": { + "line": 43, + "column": 63 + }, + "end": { + "line": 44, + "column": 20 + } + }, + "value": " Continue With Facebook\n ", + "rawValue": null, + "raw": " Continue With Facebook\n " + } + ] + }, + { + "type": "Literal", + "start": 1151, + "end": 1168, + "loc": { + "start": { + "line": 44, + "column": 29 + }, + "end": { + "line": 45, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 1174, + "end": 1187, + "loc": { + "start": { + "line": 45, + "column": 22 + }, + "end": { + "line": 46, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 777, + "end": 825, + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 37, + "column": 7 + } + }, + "range": [ + 777, + 825 + ] + } + ] + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Landing\n * '/landing'\n * React Route - Documentation: https://github.com/reactjs/react-router/tree/master/docs\n ", + "start": 177, + "end": 298, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + }, + "range": [ + 177, + 298 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * connect\n * Connects React component to a Redux store\n * Documentation: https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options\n ", + "start": 1214, + "end": 1419, + "loc": { + "start": { + "line": 52, + "column": 0 + }, + "end": { + "line": 56, + "column": 3 + } + }, + "range": [ + 1214, + 1419 + ] + } + ] + }, + { + "type": "ExportDefaultDeclaration", + "start": 1420, + "end": 1489, + "loc": { + "start": { + "line": 57, + "column": 0 + }, + "end": { + "line": 59, + "column": 12 + } + }, + "declaration": { + "type": "CallExpression", + "start": 1435, + "end": 1489, + "loc": { + "start": { + "line": 57, + "column": 15 + }, + "end": { + "line": 59, + "column": 12 + } + }, + "callee": { + "type": "CallExpression", + "start": 1435, + "end": 1480, + "loc": { + "start": { + "line": 57, + "column": 15 + }, + "end": { + "line": 59, + "column": 3 + } + }, + "callee": { + "type": "Identifier", + "start": 1435, + "end": 1442, + "loc": { + "start": { + "line": 57, + "column": 15 + }, + "end": { + "line": 57, + "column": 22 + } + }, + "name": "connect", + "leadingComments": null + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 1443, + "end": 1479, + "loc": { + "start": { + "line": 57, + "column": 23 + }, + "end": { + "line": 59, + "column": 2 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1443, + "end": 1448, + "loc": { + "start": { + "line": 57, + "column": 23 + }, + "end": { + "line": 57, + "column": 28 + } + }, + "name": "state" + } + ], + "body": { + "type": "ObjectExpression", + "start": 1453, + "end": 1478, + "loc": { + "start": { + "line": 57, + "column": 33 + }, + "end": { + "line": 59, + "column": 1 + } + }, + "properties": [ + { + "type": "Property", + "start": 1459, + "end": 1475, + "loc": { + "start": { + "line": 58, + "column": 4 + }, + "end": { + "line": 58, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1459, + "end": 1463, + "loc": { + "start": { + "line": 58, + "column": 4 + }, + "end": { + "line": 58, + "column": 8 + } + }, + "name": "user" + }, + "value": { + "type": "MemberExpression", + "start": 1465, + "end": 1475, + "loc": { + "start": { + "line": 58, + "column": 10 + }, + "end": { + "line": 58, + "column": 20 + } + }, + "object": { + "type": "Identifier", + "start": 1465, + "end": 1470, + "loc": { + "start": { + "line": 58, + "column": 10 + }, + "end": { + "line": 58, + "column": 15 + } + }, + "name": "state" + }, + "property": { + "type": "Identifier", + "start": 1471, + "end": 1475, + "loc": { + "start": { + "line": 58, + "column": 16 + }, + "end": { + "line": 58, + "column": 20 + } + }, + "name": "User" + }, + "computed": false + }, + "kind": "init" + } + ], + "parenthesizedExpression": true + } + } + ], + "leadingComments": null + }, + "arguments": [ + { + "type": "Identifier", + "start": 1481, + "end": 1488, + "loc": { + "start": { + "line": 59, + "column": 4 + }, + "end": { + "line": 59, + "column": 11 + } + }, + "name": "Landing" + } + ], + "leadingComments": [ + { + "type": "Block", + "value": "*\n * connect\n * Connects React component to a Redux store\n * Documentation: https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options\n ", + "start": 1214, + "end": 1419, + "loc": { + "start": { + "line": 52, + "column": 0 + }, + "end": { + "line": 56, + "column": 3 + } + }, + "range": [ + 1214, + 1419 + ] + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * connect\n * Connects React component to a Redux store\n * Documentation: https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options\n ", + "start": 1214, + "end": 1419, + "loc": { + "start": { + "line": 52, + "column": 0 + }, + "end": { + "line": 56, + "column": 3 + } + }, + "range": [ + 1214, + 1419 + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/routes/Landing/index.js.json b/app/docs/ast/source/routes/Landing/index.js.json new file mode 100644 index 0000000..cacba63 --- /dev/null +++ b/app/docs/ast/source/routes/Landing/index.js.json @@ -0,0 +1,444 @@ +{ + "type": "Program", + "start": 0, + "end": 227, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 13, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ExpressionStatement", + "start": 0, + "end": 226, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 12, + "column": 1 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 0, + "end": 226, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 12, + "column": 1 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 0, + "end": 14, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 14 + } + }, + "object": { + "type": "Identifier", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + }, + "name": "module" + }, + "property": { + "type": "Identifier", + "start": 7, + "end": 14, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 14 + } + }, + "name": "exports" + }, + "computed": false + }, + "right": { + "type": "ObjectExpression", + "start": 17, + "end": 226, + "loc": { + "start": { + "line": 1, + "column": 17 + }, + "end": { + "line": 12, + "column": 1 + } + }, + "properties": [ + { + "type": "Property", + "start": 23, + "end": 39, + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 23, + "end": 27, + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 8 + } + }, + "name": "path" + }, + "value": { + "type": "Literal", + "start": 29, + "end": 39, + "loc": { + "start": { + "line": 2, + "column": 10 + }, + "end": { + "line": 2, + "column": 20 + } + }, + "value": "/landing", + "rawValue": "/landing", + "raw": "'/landing'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 142, + "end": 223, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 11, + "column": 5 + } + }, + "method": true, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 142, + "end": 154, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 9, + "column": 16 + } + }, + "name": "getComponent", + "leadingComments": null + }, + "kind": "init", + "value": { + "type": "FunctionExpression", + "start": 154, + "end": 223, + "loc": { + "start": { + "line": 9, + "column": 16 + }, + "end": { + "line": 11, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 155, + "end": 163, + "loc": { + "start": { + "line": 9, + "column": 17 + }, + "end": { + "line": 9, + "column": 25 + } + }, + "name": "location" + }, + { + "type": "Identifier", + "start": 165, + "end": 167, + "loc": { + "start": { + "line": 9, + "column": 27 + }, + "end": { + "line": 9, + "column": 29 + } + }, + "name": "cb" + } + ], + "body": { + "type": "BlockStatement", + "start": 169, + "end": 223, + "loc": { + "start": { + "line": 9, + "column": 31 + }, + "end": { + "line": 11, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 179, + "end": 217, + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 46 + } + }, + "expression": { + "type": "CallExpression", + "start": 179, + "end": 217, + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 46 + } + }, + "callee": { + "type": "Identifier", + "start": 179, + "end": 181, + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 10 + } + }, + "name": "cb" + }, + "arguments": [ + { + "type": "Literal", + "start": 182, + "end": 186, + "loc": { + "start": { + "line": 10, + "column": 11 + }, + "end": { + "line": 10, + "column": 15 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + { + "type": "MemberExpression", + "start": 188, + "end": 216, + "loc": { + "start": { + "line": 10, + "column": 17 + }, + "end": { + "line": 10, + "column": 45 + } + }, + "object": { + "type": "CallExpression", + "start": 188, + "end": 208, + "loc": { + "start": { + "line": 10, + "column": 17 + }, + "end": { + "line": 10, + "column": 37 + } + }, + "callee": { + "type": "Identifier", + "start": 188, + "end": 195, + "loc": { + "start": { + "line": 10, + "column": 17 + }, + "end": { + "line": 10, + "column": 24 + } + }, + "name": "require" + }, + "arguments": [ + { + "type": "Literal", + "start": 196, + "end": 207, + "loc": { + "start": { + "line": 10, + "column": 25 + }, + "end": { + "line": 10, + "column": 36 + } + }, + "value": "./Landing", + "rawValue": "./Landing", + "raw": "'./Landing'" + } + ] + }, + "property": { + "type": "Identifier", + "start": 209, + "end": 216, + "loc": { + "start": { + "line": 10, + "column": 38 + }, + "end": { + "line": 10, + "column": 45 + } + }, + "name": "default" + }, + "computed": false + } + ] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * getComponent\n * @param location\n * @param cb {Function} callback\n ", + "start": 46, + "end": 137, + "loc": { + "start": { + "line": 4, + "column": 4 + }, + "end": { + "line": 8, + "column": 7 + } + }, + "range": [ + 46, + 137 + ] + } + ] + } + ] + } + } + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/routes/Location/Location.js.json b/app/docs/ast/source/routes/Location/Location.js.json new file mode 100644 index 0000000..b2e6af2 --- /dev/null +++ b/app/docs/ast/source/routes/Location/Location.js.json @@ -0,0 +1,6775 @@ +{ + "type": "Program", + "start": 0, + "end": 3774, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 134, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + }, + { + "type": "ImportSpecifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "imported": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + }, + "local": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 33, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 33 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ImportDeclaration", + "start": 41, + "end": 78, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 37 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 50, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "imported": { + "type": "Identifier", + "start": 50, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "name": "connect" + }, + "local": { + "type": "Identifier", + "start": 50, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "name": "connect" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 65, + "end": 78, + "loc": { + "start": { + "line": 2, + "column": 24 + }, + "end": { + "line": 2, + "column": 37 + } + }, + "value": "react-redux", + "rawValue": "react-redux", + "raw": "'react-redux'" + } + }, + { + "type": "ImportDeclaration", + "start": 79, + "end": 114, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 35 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 88, + "end": 92, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 13 + } + }, + "imported": { + "type": "Identifier", + "start": 88, + "end": 92, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 13 + } + }, + "name": "Link" + }, + "local": { + "type": "Identifier", + "start": 88, + "end": 92, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 13 + } + }, + "name": "Link" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 100, + "end": 114, + "loc": { + "start": { + "line": 3, + "column": 21 + }, + "end": { + "line": 3, + "column": 35 + } + }, + "value": "react-router", + "rawValue": "react-router", + "raw": "'react-router'" + } + }, + { + "type": "ImportDeclaration", + "start": 115, + "end": 142, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 27 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 122, + "end": 128, + "loc": { + "start": { + "line": 4, + "column": 7 + }, + "end": { + "line": 4, + "column": 13 + } + }, + "local": { + "type": "Identifier", + "start": 122, + "end": 128, + "loc": { + "start": { + "line": 4, + "column": 7 + }, + "end": { + "line": 4, + "column": 13 + } + }, + "name": "config" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 134, + "end": 142, + "loc": { + "start": { + "line": 4, + "column": 19 + }, + "end": { + "line": 4, + "column": 27 + } + }, + "value": "config", + "rawValue": "config", + "raw": "'config'" + } + }, + { + "type": "ImportDeclaration", + "start": 144, + "end": 202, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 8, + "column": 16 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 157, + "end": 184, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 7, + "column": 31 + } + }, + "imported": { + "type": "Identifier", + "start": 157, + "end": 165, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 7, + "column": 12 + } + }, + "name": "Location" + }, + "local": { + "type": "Identifier", + "start": 169, + "end": 184, + "loc": { + "start": { + "line": 7, + "column": 16 + }, + "end": { + "line": 7, + "column": 31 + } + }, + "name": "LocationActions" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 193, + "end": 202, + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 16 + } + }, + "value": "actions", + "rawValue": "actions", + "raw": "'actions'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Location\n * '/location'\n * React Route - Documentation: https://github.com/reactjs/react-router/tree/master/docs\n ", + "start": 204, + "end": 327, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + }, + "range": [ + 204, + 327 + ] + } + ] + }, + { + "type": "ClassDeclaration", + "start": 328, + "end": 3498, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 126, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 334, + "end": 342, + "loc": { + "start": { + "line": 15, + "column": 6 + }, + "end": { + "line": 15, + "column": 14 + } + }, + "name": "Location", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 351, + "end": 360, + "loc": { + "start": { + "line": 15, + "column": 23 + }, + "end": { + "line": 15, + "column": 32 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 361, + "end": 3498, + "loc": { + "start": { + "line": 15, + "column": 33 + }, + "end": { + "line": 126, + "column": 1 + } + }, + "body": [ + { + "type": "Identifier", + "start": 431, + "end": 468, + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 23, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 431, + "end": 436, + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 9 + } + }, + "name": "state", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ObjectExpression", + "start": 439, + "end": 468, + "loc": { + "start": { + "line": 21, + "column": 12 + }, + "end": { + "line": 23, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 449, + "end": 461, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 449, + "end": 457, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 16 + } + }, + "name": "location" + }, + "value": { + "type": "Literal", + "start": 459, + "end": 461, + "loc": { + "start": { + "line": 22, + "column": 18 + }, + "end": { + "line": 22, + "column": 20 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * state\n * @type {{location: string}}\n ", + "start": 368, + "end": 426, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 20, + "column": 7 + } + }, + "range": [ + 368, + 426 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * componentDidUpdate\n * @param oldProps\n ", + "start": 474, + "end": 534, + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 28, + "column": 7 + } + }, + "range": [ + 474, + 534 + ] + } + ] + }, + { + "type": "Identifier", + "start": 539, + "end": 753, + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 34, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 539, + "end": 557, + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 22 + } + }, + "name": "componentDidUpdate", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ArrowFunctionExpression", + "start": 560, + "end": 753, + "loc": { + "start": { + "line": 29, + "column": 25 + }, + "end": { + "line": 34, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 561, + "end": 569, + "loc": { + "start": { + "line": 29, + "column": 26 + }, + "end": { + "line": 29, + "column": 34 + } + }, + "name": "oldProps" + } + ], + "body": { + "type": "BlockStatement", + "start": 574, + "end": 753, + "loc": { + "start": { + "line": 29, + "column": 39 + }, + "end": { + "line": 34, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 584, + "end": 644, + "loc": { + "start": { + "line": 30, + "column": 8 + }, + "end": { + "line": 30, + "column": 68 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 590, + "end": 643, + "loc": { + "start": { + "line": 30, + "column": 14 + }, + "end": { + "line": 30, + "column": 67 + } + }, + "id": { + "type": "ObjectPattern", + "start": 590, + "end": 623, + "loc": { + "start": { + "line": 30, + "column": 14 + }, + "end": { + "line": 30, + "column": 47 + } + }, + "properties": [ + { + "type": "Property", + "start": 592, + "end": 601, + "loc": { + "start": { + "line": 30, + "column": 16 + }, + "end": { + "line": 30, + "column": 25 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 592, + "end": 601, + "loc": { + "start": { + "line": 30, + "column": 16 + }, + "end": { + "line": 30, + "column": 25 + } + }, + "name": "longitude" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 592, + "end": 601, + "loc": { + "start": { + "line": 30, + "column": 16 + }, + "end": { + "line": 30, + "column": 25 + } + }, + "name": "longitude" + } + }, + { + "type": "Property", + "start": 603, + "end": 611, + "loc": { + "start": { + "line": 30, + "column": 27 + }, + "end": { + "line": 30, + "column": 35 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 603, + "end": 611, + "loc": { + "start": { + "line": 30, + "column": 27 + }, + "end": { + "line": 30, + "column": 35 + } + }, + "name": "latitude" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 603, + "end": 611, + "loc": { + "start": { + "line": 30, + "column": 27 + }, + "end": { + "line": 30, + "column": 35 + } + }, + "name": "latitude" + } + }, + { + "type": "Property", + "start": 613, + "end": 621, + "loc": { + "start": { + "line": 30, + "column": 37 + }, + "end": { + "line": 30, + "column": 45 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 613, + "end": 621, + "loc": { + "start": { + "line": 30, + "column": 37 + }, + "end": { + "line": 30, + "column": 45 + } + }, + "name": "location" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 613, + "end": 621, + "loc": { + "start": { + "line": 30, + "column": 37 + }, + "end": { + "line": 30, + "column": 45 + } + }, + "name": "location" + } + } + ] + }, + "init": { + "type": "MemberExpression", + "start": 626, + "end": 643, + "loc": { + "start": { + "line": 30, + "column": 50 + }, + "end": { + "line": 30, + "column": 67 + } + }, + "object": { + "type": "MemberExpression", + "start": 626, + "end": 640, + "loc": { + "start": { + "line": 30, + "column": 50 + }, + "end": { + "line": 30, + "column": 64 + } + }, + "object": { + "type": "MemberExpression", + "start": 626, + "end": 636, + "loc": { + "start": { + "line": 30, + "column": 50 + }, + "end": { + "line": 30, + "column": 60 + } + }, + "object": { + "type": "ThisExpression", + "start": 626, + "end": 630, + "loc": { + "start": { + "line": 30, + "column": 50 + }, + "end": { + "line": 30, + "column": 54 + } + } + }, + "property": { + "type": "Identifier", + "start": 631, + "end": 636, + "loc": { + "start": { + "line": 30, + "column": 55 + }, + "end": { + "line": 30, + "column": 60 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 637, + "end": 640, + "loc": { + "start": { + "line": 30, + "column": 61 + }, + "end": { + "line": 30, + "column": 64 + } + }, + "name": "loc" + }, + "computed": false + }, + "property": { + "type": "Literal", + "start": 641, + "end": 642, + "loc": { + "start": { + "line": 30, + "column": 65 + }, + "end": { + "line": 30, + "column": 66 + } + }, + "value": 0, + "rawValue": 0, + "raw": "0" + }, + "computed": true + } + } + ], + "kind": "const" + }, + { + "type": "IfStatement", + "start": 653, + "end": 747, + "loc": { + "start": { + "line": 31, + "column": 8 + }, + "end": { + "line": 33, + "column": 9 + } + }, + "test": { + "type": "BinaryExpression", + "start": 657, + "end": 672, + "loc": { + "start": { + "line": 31, + "column": 12 + }, + "end": { + "line": 31, + "column": 27 + } + }, + "left": { + "type": "Identifier", + "start": 657, + "end": 665, + "loc": { + "start": { + "line": 31, + "column": 12 + }, + "end": { + "line": 31, + "column": 20 + } + }, + "name": "location" + }, + "operator": "!==", + "right": { + "type": "Literal", + "start": 670, + "end": 672, + "loc": { + "start": { + "line": 31, + "column": 25 + }, + "end": { + "line": 31, + "column": 27 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 674, + "end": 747, + "loc": { + "start": { + "line": 31, + "column": 29 + }, + "end": { + "line": 33, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 688, + "end": 737, + "loc": { + "start": { + "line": 32, + "column": 12 + }, + "end": { + "line": 32, + "column": 61 + } + }, + "expression": { + "type": "CallExpression", + "start": 688, + "end": 737, + "loc": { + "start": { + "line": 32, + "column": 12 + }, + "end": { + "line": 32, + "column": 61 + } + }, + "callee": { + "type": "MemberExpression", + "start": 688, + "end": 706, + "loc": { + "start": { + "line": 32, + "column": 12 + }, + "end": { + "line": 32, + "column": 30 + } + }, + "object": { + "type": "ThisExpression", + "start": 688, + "end": 692, + "loc": { + "start": { + "line": 32, + "column": 12 + }, + "end": { + "line": 32, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 693, + "end": 706, + "loc": { + "start": { + "line": 32, + "column": 17 + }, + "end": { + "line": 32, + "column": 30 + } + }, + "name": "loadMapboxMap" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 707, + "end": 716, + "loc": { + "start": { + "line": 32, + "column": 31 + }, + "end": { + "line": 32, + "column": 40 + } + }, + "name": "longitude" + }, + { + "type": "Identifier", + "start": 718, + "end": 726, + "loc": { + "start": { + "line": 32, + "column": 42 + }, + "end": { + "line": 32, + "column": 50 + } + }, + "name": "latitude" + }, + { + "type": "Identifier", + "start": 728, + "end": 736, + "loc": { + "start": { + "line": 32, + "column": 52 + }, + "end": { + "line": 32, + "column": 60 + } + }, + "name": "location" + } + ] + } + } + ] + }, + "alternate": null + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * componentDidUpdate\n * @param oldProps\n ", + "start": 474, + "end": 534, + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 28, + "column": 7 + } + }, + "range": [ + 474, + 534 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * componentDidMount\n ", + "start": 759, + "end": 795, + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 38, + "column": 7 + } + }, + "range": [ + 759, + 795 + ] + } + ] + }, + { + "type": "Identifier", + "start": 800, + "end": 970, + "loc": { + "start": { + "line": 39, + "column": 4 + }, + "end": { + "line": 46, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 800, + "end": 817, + "loc": { + "start": { + "line": 39, + "column": 4 + }, + "end": { + "line": 39, + "column": 21 + } + }, + "name": "componentDidMount", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ArrowFunctionExpression", + "start": 820, + "end": 970, + "loc": { + "start": { + "line": 39, + "column": 24 + }, + "end": { + "line": 46, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 826, + "end": 970, + "loc": { + "start": { + "line": 39, + "column": 30 + }, + "end": { + "line": 46, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 837, + "end": 872, + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 41, + "column": 43 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 841, + "end": 872, + "loc": { + "start": { + "line": 41, + "column": 12 + }, + "end": { + "line": 41, + "column": 43 + } + }, + "id": { + "type": "Identifier", + "start": 841, + "end": 842, + "loc": { + "start": { + "line": 41, + "column": 12 + }, + "end": { + "line": 41, + "column": 13 + } + }, + "name": "l" + }, + "init": { + "type": "MemberExpression", + "start": 845, + "end": 872, + "loc": { + "start": { + "line": 41, + "column": 16 + }, + "end": { + "line": 41, + "column": 43 + } + }, + "object": { + "type": "MemberExpression", + "start": 845, + "end": 870, + "loc": { + "start": { + "line": 41, + "column": 16 + }, + "end": { + "line": 41, + "column": 41 + } + }, + "object": { + "type": "MemberExpression", + "start": 845, + "end": 864, + "loc": { + "start": { + "line": 41, + "column": 16 + }, + "end": { + "line": 41, + "column": 35 + } + }, + "object": { + "type": "MemberExpression", + "start": 845, + "end": 855, + "loc": { + "start": { + "line": 41, + "column": 16 + }, + "end": { + "line": 41, + "column": 26 + } + }, + "object": { + "type": "ThisExpression", + "start": 845, + "end": 849, + "loc": { + "start": { + "line": 41, + "column": 16 + }, + "end": { + "line": 41, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "start": 850, + "end": 855, + "loc": { + "start": { + "line": 41, + "column": 21 + }, + "end": { + "line": 41, + "column": 26 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 856, + "end": 864, + "loc": { + "start": { + "line": 41, + "column": 27 + }, + "end": { + "line": 41, + "column": 35 + } + }, + "name": "location" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 865, + "end": 870, + "loc": { + "start": { + "line": 41, + "column": 36 + }, + "end": { + "line": 41, + "column": 41 + } + }, + "name": "query" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 871, + "end": 872, + "loc": { + "start": { + "line": 41, + "column": 42 + }, + "end": { + "line": 41, + "column": 43 + } + }, + "name": "q" + }, + "computed": false + } + } + ], + "kind": "let" + }, + { + "type": "ExpressionStatement", + "start": 882, + "end": 910, + "loc": { + "start": { + "line": 43, + "column": 8 + }, + "end": { + "line": 43, + "column": 36 + } + }, + "expression": { + "type": "CallExpression", + "start": 882, + "end": 910, + "loc": { + "start": { + "line": 43, + "column": 8 + }, + "end": { + "line": 43, + "column": 36 + } + }, + "callee": { + "type": "MemberExpression", + "start": 882, + "end": 895, + "loc": { + "start": { + "line": 43, + "column": 8 + }, + "end": { + "line": 43, + "column": 21 + } + }, + "object": { + "type": "ThisExpression", + "start": 882, + "end": 886, + "loc": { + "start": { + "line": 43, + "column": 8 + }, + "end": { + "line": 43, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 887, + "end": 895, + "loc": { + "start": { + "line": 43, + "column": 13 + }, + "end": { + "line": 43, + "column": 21 + } + }, + "name": "setState" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 896, + "end": 909, + "loc": { + "start": { + "line": 43, + "column": 22 + }, + "end": { + "line": 43, + "column": 35 + } + }, + "properties": [ + { + "type": "Property", + "start": 897, + "end": 908, + "loc": { + "start": { + "line": 43, + "column": 23 + }, + "end": { + "line": 43, + "column": 34 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 897, + "end": 905, + "loc": { + "start": { + "line": 43, + "column": 23 + }, + "end": { + "line": 43, + "column": 31 + } + }, + "name": "location" + }, + "value": { + "type": "Identifier", + "start": 907, + "end": 908, + "loc": { + "start": { + "line": 43, + "column": 33 + }, + "end": { + "line": 43, + "column": 34 + } + }, + "name": "l" + }, + "kind": "init" + } + ] + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 919, + "end": 963, + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 44, + "column": 52 + } + }, + "expression": { + "type": "CallExpression", + "start": 919, + "end": 963, + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 44, + "column": 52 + } + }, + "callee": { + "type": "MemberExpression", + "start": 919, + "end": 938, + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 44, + "column": 27 + } + }, + "object": { + "type": "MemberExpression", + "start": 919, + "end": 929, + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 44, + "column": 18 + } + }, + "object": { + "type": "ThisExpression", + "start": 919, + "end": 923, + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 44, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 924, + "end": 929, + "loc": { + "start": { + "line": 44, + "column": 13 + }, + "end": { + "line": 44, + "column": 18 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 930, + "end": 938, + "loc": { + "start": { + "line": 44, + "column": 19 + }, + "end": { + "line": 44, + "column": 27 + } + }, + "name": "dispatch" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 939, + "end": 962, + "loc": { + "start": { + "line": 44, + "column": 28 + }, + "end": { + "line": 44, + "column": 51 + } + }, + "callee": { + "type": "MemberExpression", + "start": 939, + "end": 959, + "loc": { + "start": { + "line": 44, + "column": 28 + }, + "end": { + "line": 44, + "column": 48 + } + }, + "object": { + "type": "Identifier", + "start": 939, + "end": 954, + "loc": { + "start": { + "line": 44, + "column": 28 + }, + "end": { + "line": 44, + "column": 43 + } + }, + "name": "LocationActions" + }, + "property": { + "type": "Identifier", + "start": 955, + "end": 959, + "loc": { + "start": { + "line": 44, + "column": 44 + }, + "end": { + "line": 44, + "column": 48 + } + }, + "name": "load" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 960, + "end": 961, + "loc": { + "start": { + "line": 44, + "column": 49 + }, + "end": { + "line": 44, + "column": 50 + } + }, + "name": "l" + } + ] + } + ] + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * componentDidMount\n ", + "start": 759, + "end": 795, + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 38, + "column": 7 + } + }, + "range": [ + 759, + 795 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * loadMapboxMap\n * @param lng {Number}\n * @param lat {Number}\n * @param name {String}\n ", + "start": 976, + "end": 1090, + "loc": { + "start": { + "line": 48, + "column": 4 + }, + "end": { + "line": 53, + "column": 7 + } + }, + "range": [ + 976, + 1090 + ] + } + ] + }, + { + "type": "Identifier", + "start": 1095, + "end": 2497, + "loc": { + "start": { + "line": 54, + "column": 4 + }, + "end": { + "line": 97, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 1095, + "end": 1108, + "loc": { + "start": { + "line": 54, + "column": 4 + }, + "end": { + "line": 54, + "column": 17 + } + }, + "name": "loadMapboxMap", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ArrowFunctionExpression", + "start": 1111, + "end": 2497, + "loc": { + "start": { + "line": 54, + "column": 20 + }, + "end": { + "line": 97, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1112, + "end": 1115, + "loc": { + "start": { + "line": 54, + "column": 21 + }, + "end": { + "line": 54, + "column": 24 + } + }, + "name": "lng" + }, + { + "type": "Identifier", + "start": 1117, + "end": 1120, + "loc": { + "start": { + "line": 54, + "column": 26 + }, + "end": { + "line": 54, + "column": 29 + } + }, + "name": "lat" + }, + { + "type": "Identifier", + "start": 1122, + "end": 1126, + "loc": { + "start": { + "line": 54, + "column": 31 + }, + "end": { + "line": 54, + "column": 35 + } + }, + "name": "name" + } + ], + "body": { + "type": "BlockStatement", + "start": 1131, + "end": 2497, + "loc": { + "start": { + "line": 54, + "column": 40 + }, + "end": { + "line": 97, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1142, + "end": 1190, + "loc": { + "start": { + "line": 56, + "column": 8 + }, + "end": { + "line": 56, + "column": 56 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1142, + "end": 1190, + "loc": { + "start": { + "line": 56, + "column": 8 + }, + "end": { + "line": 56, + "column": 56 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 1142, + "end": 1162, + "loc": { + "start": { + "line": 56, + "column": 8 + }, + "end": { + "line": 56, + "column": 28 + } + }, + "object": { + "type": "Identifier", + "start": 1142, + "end": 1150, + "loc": { + "start": { + "line": 56, + "column": 8 + }, + "end": { + "line": 56, + "column": 16 + } + }, + "name": "mapboxgl" + }, + "property": { + "type": "Identifier", + "start": 1151, + "end": 1162, + "loc": { + "start": { + "line": 56, + "column": 17 + }, + "end": { + "line": 56, + "column": 28 + } + }, + "name": "accessToken" + }, + "computed": false + }, + "right": { + "type": "MemberExpression", + "start": 1165, + "end": 1190, + "loc": { + "start": { + "line": 56, + "column": 31 + }, + "end": { + "line": 56, + "column": 56 + } + }, + "object": { + "type": "MemberExpression", + "start": 1165, + "end": 1178, + "loc": { + "start": { + "line": 56, + "column": 31 + }, + "end": { + "line": 56, + "column": 44 + } + }, + "object": { + "type": "Identifier", + "start": 1165, + "end": 1171, + "loc": { + "start": { + "line": 56, + "column": 31 + }, + "end": { + "line": 56, + "column": 37 + } + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 1172, + "end": 1178, + "loc": { + "start": { + "line": 56, + "column": 38 + }, + "end": { + "line": 56, + "column": 44 + } + }, + "name": "mapbox" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1179, + "end": 1190, + "loc": { + "start": { + "line": 56, + "column": 45 + }, + "end": { + "line": 56, + "column": 56 + } + }, + "name": "accessToken" + }, + "computed": false + } + } + }, + { + "type": "VariableDeclaration", + "start": 1199, + "end": 1398, + "loc": { + "start": { + "line": 57, + "column": 8 + }, + "end": { + "line": 62, + "column": 10 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1203, + "end": 1398, + "loc": { + "start": { + "line": 57, + "column": 12 + }, + "end": { + "line": 62, + "column": 10 + } + }, + "id": { + "type": "Identifier", + "start": 1203, + "end": 1206, + "loc": { + "start": { + "line": 57, + "column": 12 + }, + "end": { + "line": 57, + "column": 15 + } + }, + "name": "map" + }, + "init": { + "type": "NewExpression", + "start": 1209, + "end": 1398, + "loc": { + "start": { + "line": 57, + "column": 18 + }, + "end": { + "line": 62, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1213, + "end": 1225, + "loc": { + "start": { + "line": 57, + "column": 22 + }, + "end": { + "line": 57, + "column": 34 + } + }, + "object": { + "type": "Identifier", + "start": 1213, + "end": 1221, + "loc": { + "start": { + "line": 57, + "column": 22 + }, + "end": { + "line": 57, + "column": 30 + } + }, + "name": "mapboxgl" + }, + "property": { + "type": "Identifier", + "start": 1222, + "end": 1225, + "loc": { + "start": { + "line": 57, + "column": 31 + }, + "end": { + "line": 57, + "column": 34 + } + }, + "name": "Map" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 1226, + "end": 1397, + "loc": { + "start": { + "line": 57, + "column": 35 + }, + "end": { + "line": 62, + "column": 9 + } + }, + "properties": [ + { + "type": "Property", + "start": 1240, + "end": 1256, + "loc": { + "start": { + "line": 58, + "column": 12 + }, + "end": { + "line": 58, + "column": 28 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1240, + "end": 1249, + "loc": { + "start": { + "line": 58, + "column": 12 + }, + "end": { + "line": 58, + "column": 21 + } + }, + "name": "container" + }, + "value": { + "type": "Literal", + "start": 1251, + "end": 1256, + "loc": { + "start": { + "line": 58, + "column": 23 + }, + "end": { + "line": 58, + "column": 28 + } + }, + "value": "map", + "rawValue": "map", + "raw": "'map'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1270, + "end": 1333, + "loc": { + "start": { + "line": 59, + "column": 12 + }, + "end": { + "line": 59, + "column": 75 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1270, + "end": 1275, + "loc": { + "start": { + "line": 59, + "column": 12 + }, + "end": { + "line": 59, + "column": 17 + } + }, + "name": "style" + }, + "value": { + "type": "Literal", + "start": 1277, + "end": 1333, + "loc": { + "start": { + "line": 59, + "column": 19 + }, + "end": { + "line": 59, + "column": 75 + } + }, + "value": "mapbox://styles/nickatstream/cinj7vvpf000ib7mbzpyhkw38", + "rawValue": "mapbox://styles/nickatstream/cinj7vvpf000ib7mbzpyhkw38", + "raw": "'mapbox://styles/nickatstream/cinj7vvpf000ib7mbzpyhkw38'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1347, + "end": 1365, + "loc": { + "start": { + "line": 60, + "column": 12 + }, + "end": { + "line": 60, + "column": 30 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1347, + "end": 1353, + "loc": { + "start": { + "line": 60, + "column": 12 + }, + "end": { + "line": 60, + "column": 18 + } + }, + "name": "center" + }, + "value": { + "type": "ArrayExpression", + "start": 1355, + "end": 1365, + "loc": { + "start": { + "line": 60, + "column": 20 + }, + "end": { + "line": 60, + "column": 30 + } + }, + "elements": [ + { + "type": "Identifier", + "start": 1356, + "end": 1359, + "loc": { + "start": { + "line": 60, + "column": 21 + }, + "end": { + "line": 60, + "column": 24 + } + }, + "name": "lng" + }, + { + "type": "Identifier", + "start": 1361, + "end": 1364, + "loc": { + "start": { + "line": 60, + "column": 26 + }, + "end": { + "line": 60, + "column": 29 + } + }, + "name": "lat" + } + ] + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1379, + "end": 1386, + "loc": { + "start": { + "line": 61, + "column": 12 + }, + "end": { + "line": 61, + "column": 19 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1379, + "end": 1383, + "loc": { + "start": { + "line": 61, + "column": 12 + }, + "end": { + "line": 61, + "column": 16 + } + }, + "name": "zoom" + }, + "value": { + "type": "Literal", + "start": 1385, + "end": 1386, + "loc": { + "start": { + "line": 61, + "column": 18 + }, + "end": { + "line": 61, + "column": 19 + } + }, + "value": 9, + "rawValue": 9, + "raw": "9" + }, + "kind": "init" + } + ] + } + ] + } + } + ], + "kind": "let" + }, + { + "type": "ExpressionStatement", + "start": 1408, + "end": 2490, + "loc": { + "start": { + "line": 64, + "column": 8 + }, + "end": { + "line": 95, + "column": 10 + } + }, + "expression": { + "type": "CallExpression", + "start": 1408, + "end": 2490, + "loc": { + "start": { + "line": 64, + "column": 8 + }, + "end": { + "line": 95, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1408, + "end": 1414, + "loc": { + "start": { + "line": 64, + "column": 8 + }, + "end": { + "line": 64, + "column": 14 + } + }, + "object": { + "type": "Identifier", + "start": 1408, + "end": 1411, + "loc": { + "start": { + "line": 64, + "column": 8 + }, + "end": { + "line": 64, + "column": 11 + } + }, + "name": "map" + }, + "property": { + "type": "Identifier", + "start": 1412, + "end": 1414, + "loc": { + "start": { + "line": 64, + "column": 12 + }, + "end": { + "line": 64, + "column": 14 + } + }, + "name": "on" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 1415, + "end": 1421, + "loc": { + "start": { + "line": 64, + "column": 15 + }, + "end": { + "line": 64, + "column": 21 + } + }, + "value": "load", + "rawValue": "load", + "raw": "'load'" + }, + { + "type": "FunctionExpression", + "start": 1423, + "end": 2489, + "loc": { + "start": { + "line": 64, + "column": 23 + }, + "end": { + "line": 95, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 1435, + "end": 2489, + "loc": { + "start": { + "line": 64, + "column": 35 + }, + "end": { + "line": 95, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1449, + "end": 2034, + "loc": { + "start": { + "line": 65, + "column": 12 + }, + "end": { + "line": 81, + "column": 14 + } + }, + "expression": { + "type": "CallExpression", + "start": 1449, + "end": 2034, + "loc": { + "start": { + "line": 65, + "column": 12 + }, + "end": { + "line": 81, + "column": 14 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1449, + "end": 1462, + "loc": { + "start": { + "line": 65, + "column": 12 + }, + "end": { + "line": 65, + "column": 25 + } + }, + "object": { + "type": "Identifier", + "start": 1449, + "end": 1452, + "loc": { + "start": { + "line": 65, + "column": 12 + }, + "end": { + "line": 65, + "column": 15 + } + }, + "name": "map" + }, + "property": { + "type": "Identifier", + "start": 1453, + "end": 1462, + "loc": { + "start": { + "line": 65, + "column": 16 + }, + "end": { + "line": 65, + "column": 25 + } + }, + "name": "addSource" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 1463, + "end": 1472, + "loc": { + "start": { + "line": 65, + "column": 26 + }, + "end": { + "line": 65, + "column": 35 + } + }, + "value": "markers", + "rawValue": "markers", + "raw": "'markers'" + }, + { + "type": "ObjectExpression", + "start": 1474, + "end": 2033, + "loc": { + "start": { + "line": 65, + "column": 37 + }, + "end": { + "line": 81, + "column": 13 + } + }, + "properties": [ + { + "type": "Property", + "start": 1492, + "end": 1507, + "loc": { + "start": { + "line": 66, + "column": 16 + }, + "end": { + "line": 66, + "column": 31 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1492, + "end": 1496, + "loc": { + "start": { + "line": 66, + "column": 16 + }, + "end": { + "line": 66, + "column": 20 + } + }, + "name": "type" + }, + "value": { + "type": "Literal", + "start": 1498, + "end": 1507, + "loc": { + "start": { + "line": 66, + "column": 22 + }, + "end": { + "line": 66, + "column": 31 + } + }, + "value": "geojson", + "rawValue": "geojson", + "raw": "'geojson'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1525, + "end": 2019, + "loc": { + "start": { + "line": 67, + "column": 16 + }, + "end": { + "line": 80, + "column": 17 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1525, + "end": 1529, + "loc": { + "start": { + "line": 67, + "column": 16 + }, + "end": { + "line": 67, + "column": 20 + } + }, + "name": "data" + }, + "value": { + "type": "ObjectExpression", + "start": 1531, + "end": 2019, + "loc": { + "start": { + "line": 67, + "column": 22 + }, + "end": { + "line": 80, + "column": 17 + } + }, + "properties": [ + { + "type": "Property", + "start": 1553, + "end": 1578, + "loc": { + "start": { + "line": 68, + "column": 20 + }, + "end": { + "line": 68, + "column": 45 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1553, + "end": 1557, + "loc": { + "start": { + "line": 68, + "column": 20 + }, + "end": { + "line": 68, + "column": 24 + } + }, + "name": "type" + }, + "value": { + "type": "Literal", + "start": 1559, + "end": 1578, + "loc": { + "start": { + "line": 68, + "column": 26 + }, + "end": { + "line": 68, + "column": 45 + } + }, + "value": "FeatureCollection", + "rawValue": "FeatureCollection", + "raw": "'FeatureCollection'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1600, + "end": 2001, + "loc": { + "start": { + "line": 69, + "column": 20 + }, + "end": { + "line": 79, + "column": 22 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1600, + "end": 1608, + "loc": { + "start": { + "line": 69, + "column": 20 + }, + "end": { + "line": 69, + "column": 28 + } + }, + "name": "features" + }, + "value": { + "type": "ArrayExpression", + "start": 1610, + "end": 2001, + "loc": { + "start": { + "line": 69, + "column": 30 + }, + "end": { + "line": 79, + "column": 22 + } + }, + "elements": [ + { + "type": "ObjectExpression", + "start": 1611, + "end": 2000, + "loc": { + "start": { + "line": 69, + "column": 31 + }, + "end": { + "line": 79, + "column": 21 + } + }, + "properties": [ + { + "type": "Property", + "start": 1637, + "end": 1652, + "loc": { + "start": { + "line": 70, + "column": 24 + }, + "end": { + "line": 70, + "column": 39 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1637, + "end": 1641, + "loc": { + "start": { + "line": 70, + "column": 24 + }, + "end": { + "line": 70, + "column": 28 + } + }, + "name": "type" + }, + "value": { + "type": "Literal", + "start": 1643, + "end": 1652, + "loc": { + "start": { + "line": 70, + "column": 30 + }, + "end": { + "line": 70, + "column": 39 + } + }, + "value": "Feature", + "rawValue": "Feature", + "raw": "'Feature'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1678, + "end": 1810, + "loc": { + "start": { + "line": 71, + "column": 24 + }, + "end": { + "line": 74, + "column": 25 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1678, + "end": 1686, + "loc": { + "start": { + "line": 71, + "column": 24 + }, + "end": { + "line": 71, + "column": 32 + } + }, + "name": "geometry" + }, + "value": { + "type": "ObjectExpression", + "start": 1688, + "end": 1810, + "loc": { + "start": { + "line": 71, + "column": 34 + }, + "end": { + "line": 74, + "column": 25 + } + }, + "properties": [ + { + "type": "Property", + "start": 1718, + "end": 1731, + "loc": { + "start": { + "line": 72, + "column": 28 + }, + "end": { + "line": 72, + "column": 41 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1718, + "end": 1722, + "loc": { + "start": { + "line": 72, + "column": 28 + }, + "end": { + "line": 72, + "column": 32 + } + }, + "name": "type" + }, + "value": { + "type": "Literal", + "start": 1724, + "end": 1731, + "loc": { + "start": { + "line": 72, + "column": 34 + }, + "end": { + "line": 72, + "column": 41 + } + }, + "value": "Point", + "rawValue": "Point", + "raw": "'Point'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1761, + "end": 1784, + "loc": { + "start": { + "line": 73, + "column": 28 + }, + "end": { + "line": 73, + "column": 51 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1761, + "end": 1772, + "loc": { + "start": { + "line": 73, + "column": 28 + }, + "end": { + "line": 73, + "column": 39 + } + }, + "name": "coordinates" + }, + "value": { + "type": "ArrayExpression", + "start": 1774, + "end": 1784, + "loc": { + "start": { + "line": 73, + "column": 41 + }, + "end": { + "line": 73, + "column": 51 + } + }, + "elements": [ + { + "type": "Identifier", + "start": 1775, + "end": 1778, + "loc": { + "start": { + "line": 73, + "column": 42 + }, + "end": { + "line": 73, + "column": 45 + } + }, + "name": "lng" + }, + { + "type": "Identifier", + "start": 1780, + "end": 1783, + "loc": { + "start": { + "line": 73, + "column": 47 + }, + "end": { + "line": 73, + "column": 50 + } + }, + "name": "lat" + } + ] + }, + "kind": "init" + } + ] + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1836, + "end": 1978, + "loc": { + "start": { + "line": 75, + "column": 24 + }, + "end": { + "line": 78, + "column": 25 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1836, + "end": 1846, + "loc": { + "start": { + "line": 75, + "column": 24 + }, + "end": { + "line": 75, + "column": 34 + } + }, + "name": "properties" + }, + "value": { + "type": "ObjectExpression", + "start": 1848, + "end": 1978, + "loc": { + "start": { + "line": 75, + "column": 36 + }, + "end": { + "line": 78, + "column": 25 + } + }, + "properties": [ + { + "type": "Property", + "start": 1878, + "end": 1889, + "loc": { + "start": { + "line": 76, + "column": 28 + }, + "end": { + "line": 76, + "column": 39 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1878, + "end": 1883, + "loc": { + "start": { + "line": 76, + "column": 28 + }, + "end": { + "line": 76, + "column": 33 + } + }, + "name": "title" + }, + "value": { + "type": "Identifier", + "start": 1885, + "end": 1889, + "loc": { + "start": { + "line": 76, + "column": 35 + }, + "end": { + "line": 76, + "column": 39 + } + }, + "name": "name" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1919, + "end": 1952, + "loc": { + "start": { + "line": 77, + "column": 28 + }, + "end": { + "line": 77, + "column": 61 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Literal", + "start": 1919, + "end": 1934, + "loc": { + "start": { + "line": 77, + "column": 28 + }, + "end": { + "line": 77, + "column": 43 + } + }, + "value": "marker-symbol", + "rawValue": "marker-symbol", + "raw": "'marker-symbol'" + }, + "value": { + "type": "Literal", + "start": 1936, + "end": 1952, + "loc": { + "start": { + "line": 77, + "column": 45 + }, + "end": { + "line": 77, + "column": 61 + } + }, + "value": "default_marker", + "rawValue": "default_marker", + "raw": "'default_marker'" + }, + "kind": "init" + } + ] + }, + "kind": "init" + } + ] + } + ] + }, + "kind": "init" + } + ] + }, + "kind": "init" + } + ] + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 2048, + "end": 2479, + "loc": { + "start": { + "line": 83, + "column": 12 + }, + "end": { + "line": 94, + "column": 14 + } + }, + "expression": { + "type": "CallExpression", + "start": 2048, + "end": 2479, + "loc": { + "start": { + "line": 83, + "column": 12 + }, + "end": { + "line": 94, + "column": 14 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2048, + "end": 2060, + "loc": { + "start": { + "line": 83, + "column": 12 + }, + "end": { + "line": 83, + "column": 24 + } + }, + "object": { + "type": "Identifier", + "start": 2048, + "end": 2051, + "loc": { + "start": { + "line": 83, + "column": 12 + }, + "end": { + "line": 83, + "column": 15 + } + }, + "name": "map" + }, + "property": { + "type": "Identifier", + "start": 2052, + "end": 2060, + "loc": { + "start": { + "line": 83, + "column": 16 + }, + "end": { + "line": 83, + "column": 24 + } + }, + "name": "addLayer" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 2061, + "end": 2478, + "loc": { + "start": { + "line": 83, + "column": 25 + }, + "end": { + "line": 94, + "column": 13 + } + }, + "properties": [ + { + "type": "Property", + "start": 2079, + "end": 2092, + "loc": { + "start": { + "line": 84, + "column": 16 + }, + "end": { + "line": 84, + "column": 29 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2079, + "end": 2081, + "loc": { + "start": { + "line": 84, + "column": 16 + }, + "end": { + "line": 84, + "column": 18 + } + }, + "name": "id" + }, + "value": { + "type": "Literal", + "start": 2083, + "end": 2092, + "loc": { + "start": { + "line": 84, + "column": 20 + }, + "end": { + "line": 84, + "column": 29 + } + }, + "value": "markers", + "rawValue": "markers", + "raw": "'markers'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 2110, + "end": 2124, + "loc": { + "start": { + "line": 85, + "column": 16 + }, + "end": { + "line": 85, + "column": 30 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2110, + "end": 2114, + "loc": { + "start": { + "line": 85, + "column": 16 + }, + "end": { + "line": 85, + "column": 20 + } + }, + "name": "type" + }, + "value": { + "type": "Literal", + "start": 2116, + "end": 2124, + "loc": { + "start": { + "line": 85, + "column": 22 + }, + "end": { + "line": 85, + "column": 30 + } + }, + "value": "symbol", + "rawValue": "symbol", + "raw": "'symbol'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 2142, + "end": 2159, + "loc": { + "start": { + "line": 86, + "column": 16 + }, + "end": { + "line": 86, + "column": 33 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2142, + "end": 2148, + "loc": { + "start": { + "line": 86, + "column": 16 + }, + "end": { + "line": 86, + "column": 22 + } + }, + "name": "source" + }, + "value": { + "type": "Literal", + "start": 2150, + "end": 2159, + "loc": { + "start": { + "line": 86, + "column": 24 + }, + "end": { + "line": 86, + "column": 33 + } + }, + "value": "markers", + "rawValue": "markers", + "raw": "'markers'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 2177, + "end": 2464, + "loc": { + "start": { + "line": 87, + "column": 16 + }, + "end": { + "line": 93, + "column": 17 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2177, + "end": 2183, + "loc": { + "start": { + "line": 87, + "column": 16 + }, + "end": { + "line": 87, + "column": 22 + } + }, + "name": "layout" + }, + "value": { + "type": "ObjectExpression", + "start": 2185, + "end": 2464, + "loc": { + "start": { + "line": 87, + "column": 24 + }, + "end": { + "line": 93, + "column": 17 + } + }, + "properties": [ + { + "type": "Property", + "start": 2207, + "end": 2237, + "loc": { + "start": { + "line": 88, + "column": 20 + }, + "end": { + "line": 88, + "column": 50 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Literal", + "start": 2207, + "end": 2219, + "loc": { + "start": { + "line": 88, + "column": 20 + }, + "end": { + "line": 88, + "column": 32 + } + }, + "value": "icon-image", + "rawValue": "icon-image", + "raw": "'icon-image'" + }, + "value": { + "type": "Literal", + "start": 2221, + "end": 2237, + "loc": { + "start": { + "line": 88, + "column": 34 + }, + "end": { + "line": 88, + "column": 50 + } + }, + "value": "default_marker", + "rawValue": "default_marker", + "raw": "'default_marker'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 2259, + "end": 2277, + "loc": { + "start": { + "line": 89, + "column": 20 + }, + "end": { + "line": 89, + "column": 38 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Literal", + "start": 2259, + "end": 2271, + "loc": { + "start": { + "line": 89, + "column": 20 + }, + "end": { + "line": 89, + "column": 32 + } + }, + "value": "text-field", + "rawValue": "text-field", + "raw": "'text-field'" + }, + "value": { + "type": "Identifier", + "start": 2273, + "end": 2277, + "loc": { + "start": { + "line": 89, + "column": 34 + }, + "end": { + "line": 89, + "column": 38 + } + }, + "name": "name" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 2299, + "end": 2359, + "loc": { + "start": { + "line": 90, + "column": 20 + }, + "end": { + "line": 90, + "column": 80 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Literal", + "start": 2299, + "end": 2310, + "loc": { + "start": { + "line": 90, + "column": 20 + }, + "end": { + "line": 90, + "column": 31 + } + }, + "value": "text-font", + "rawValue": "text-font", + "raw": "'text-font'" + }, + "value": { + "type": "ArrayExpression", + "start": 2312, + "end": 2359, + "loc": { + "start": { + "line": 90, + "column": 33 + }, + "end": { + "line": 90, + "column": 80 + } + }, + "elements": [ + { + "type": "Literal", + "start": 2313, + "end": 2333, + "loc": { + "start": { + "line": 90, + "column": 34 + }, + "end": { + "line": 90, + "column": 54 + } + }, + "value": "Open Sans Semibold", + "rawValue": "Open Sans Semibold", + "raw": "'Open Sans Semibold'" + }, + { + "type": "Literal", + "start": 2335, + "end": 2358, + "loc": { + "start": { + "line": 90, + "column": 56 + }, + "end": { + "line": 90, + "column": 79 + } + }, + "value": "Arial Unicode MS Bold", + "rawValue": "Arial Unicode MS Bold", + "raw": "'Arial Unicode MS Bold'" + } + ] + }, + "kind": "init" + }, + { + "type": "Property", + "start": 2381, + "end": 2404, + "loc": { + "start": { + "line": 91, + "column": 20 + }, + "end": { + "line": 91, + "column": 43 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Literal", + "start": 2381, + "end": 2394, + "loc": { + "start": { + "line": 91, + "column": 20 + }, + "end": { + "line": 91, + "column": 33 + } + }, + "value": "text-offset", + "rawValue": "text-offset", + "raw": "'text-offset'" + }, + "value": { + "type": "ArrayExpression", + "start": 2396, + "end": 2404, + "loc": { + "start": { + "line": 91, + "column": 35 + }, + "end": { + "line": 91, + "column": 43 + } + }, + "elements": [ + { + "type": "Literal", + "start": 2397, + "end": 2398, + "loc": { + "start": { + "line": 91, + "column": 36 + }, + "end": { + "line": 91, + "column": 37 + } + }, + "value": 0, + "rawValue": 0, + "raw": "0" + }, + { + "type": "Literal", + "start": 2400, + "end": 2403, + "loc": { + "start": { + "line": 91, + "column": 39 + }, + "end": { + "line": 91, + "column": 42 + } + }, + "value": 0.6, + "rawValue": 0.6, + "raw": "0.6" + } + ] + }, + "kind": "init" + }, + { + "type": "Property", + "start": 2426, + "end": 2446, + "loc": { + "start": { + "line": 92, + "column": 20 + }, + "end": { + "line": 92, + "column": 40 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Literal", + "start": 2426, + "end": 2439, + "loc": { + "start": { + "line": 92, + "column": 20 + }, + "end": { + "line": 92, + "column": 33 + } + }, + "value": "text-anchor", + "rawValue": "text-anchor", + "raw": "'text-anchor'" + }, + "value": { + "type": "Literal", + "start": 2441, + "end": 2446, + "loc": { + "start": { + "line": 92, + "column": 35 + }, + "end": { + "line": 92, + "column": 40 + } + }, + "value": "top", + "rawValue": "top", + "raw": "'top'" + }, + "kind": "init" + } + ] + }, + "kind": "init" + } + ] + } + ] + } + } + ] + } + } + ] + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * loadMapboxMap\n * @param lng {Number}\n * @param lat {Number}\n * @param name {String}\n ", + "start": 976, + "end": 1090, + "loc": { + "start": { + "line": 48, + "column": 4 + }, + "end": { + "line": 53, + "column": 7 + } + }, + "range": [ + 976, + 1090 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 2503, + "end": 2551, + "loc": { + "start": { + "line": 99, + "column": 4 + }, + "end": { + "line": 102, + "column": 7 + } + }, + "range": [ + 2503, + 2551 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 2556, + "end": 3495, + "loc": { + "start": { + "line": 103, + "column": 4 + }, + "end": { + "line": 124, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 2556, + "end": 2562, + "loc": { + "start": { + "line": 103, + "column": 4 + }, + "end": { + "line": 103, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 2562, + "end": 3495, + "loc": { + "start": { + "line": 103, + "column": 10 + }, + "end": { + "line": 124, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 2565, + "end": 3495, + "loc": { + "start": { + "line": 103, + "column": 13 + }, + "end": { + "line": 124, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 2575, + "end": 3489, + "loc": { + "start": { + "line": 104, + "column": 8 + }, + "end": { + "line": 123, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 2596, + "end": 3479, + "loc": { + "start": { + "line": 105, + "column": 12 + }, + "end": { + "line": 122, + "column": 18 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2596, + "end": 2618, + "loc": { + "start": { + "line": 105, + "column": 12 + }, + "end": { + "line": 105, + "column": 34 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2601, + "end": 2617, + "loc": { + "start": { + "line": 105, + "column": 17 + }, + "end": { + "line": 105, + "column": 33 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2601, + "end": 2610, + "loc": { + "start": { + "line": 105, + "column": 17 + }, + "end": { + "line": 105, + "column": 26 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 2611, + "end": 2617, + "loc": { + "start": { + "line": 105, + "column": 27 + }, + "end": { + "line": 105, + "column": 33 + } + }, + "value": "page", + "rawValue": null, + "raw": "\"page\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2597, + "end": 2600, + "loc": { + "start": { + "line": 105, + "column": 13 + }, + "end": { + "line": 105, + "column": 16 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3473, + "end": 3479, + "loc": { + "start": { + "line": 122, + "column": 12 + }, + "end": { + "line": 122, + "column": 18 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3475, + "end": 3478, + "loc": { + "start": { + "line": 122, + "column": 14 + }, + "end": { + "line": 122, + "column": 17 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 2618, + "end": 2635, + "loc": { + "start": { + "line": 105, + "column": 34 + }, + "end": { + "line": 106, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 2635, + "end": 3460, + "loc": { + "start": { + "line": 106, + "column": 16 + }, + "end": { + "line": 121, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2635, + "end": 2661, + "loc": { + "start": { + "line": 106, + "column": 16 + }, + "end": { + "line": 106, + "column": 42 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2640, + "end": 2660, + "loc": { + "start": { + "line": 106, + "column": 21 + }, + "end": { + "line": 106, + "column": 41 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2640, + "end": 2649, + "loc": { + "start": { + "line": 106, + "column": 21 + }, + "end": { + "line": 106, + "column": 30 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 2650, + "end": 2660, + "loc": { + "start": { + "line": 106, + "column": 31 + }, + "end": { + "line": 106, + "column": 41 + } + }, + "value": "location", + "rawValue": null, + "raw": "\"location\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2636, + "end": 2639, + "loc": { + "start": { + "line": 106, + "column": 17 + }, + "end": { + "line": 106, + "column": 20 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3454, + "end": 3460, + "loc": { + "start": { + "line": 121, + "column": 16 + }, + "end": { + "line": 121, + "column": 22 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3456, + "end": 3459, + "loc": { + "start": { + "line": 121, + "column": 18 + }, + "end": { + "line": 121, + "column": 21 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 2661, + "end": 2682, + "loc": { + "start": { + "line": 106, + "column": 42 + }, + "end": { + "line": 107, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 2682, + "end": 2718, + "loc": { + "start": { + "line": 107, + "column": 20 + }, + "end": { + "line": 107, + "column": 56 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2682, + "end": 2712, + "loc": { + "start": { + "line": 107, + "column": 20 + }, + "end": { + "line": 107, + "column": 50 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2687, + "end": 2702, + "loc": { + "start": { + "line": 107, + "column": 25 + }, + "end": { + "line": 107, + "column": 40 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2687, + "end": 2696, + "loc": { + "start": { + "line": 107, + "column": 25 + }, + "end": { + "line": 107, + "column": 34 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 2697, + "end": 2702, + "loc": { + "start": { + "line": 107, + "column": 35 + }, + "end": { + "line": 107, + "column": 40 + } + }, + "value": "map", + "rawValue": null, + "raw": "\"map\"" + } + }, + { + "type": "JSXAttribute", + "start": 2703, + "end": 2711, + "loc": { + "start": { + "line": 107, + "column": 41 + }, + "end": { + "line": 107, + "column": 49 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2703, + "end": 2705, + "loc": { + "start": { + "line": 107, + "column": 41 + }, + "end": { + "line": 107, + "column": 43 + } + }, + "name": "id" + }, + "value": { + "type": "Literal", + "start": 2706, + "end": 2711, + "loc": { + "start": { + "line": 107, + "column": 44 + }, + "end": { + "line": 107, + "column": 49 + } + }, + "value": "map", + "rawValue": null, + "raw": "\"map\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2683, + "end": 2686, + "loc": { + "start": { + "line": 107, + "column": 21 + }, + "end": { + "line": 107, + "column": 24 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2712, + "end": 2718, + "loc": { + "start": { + "line": 107, + "column": 50 + }, + "end": { + "line": 107, + "column": 56 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2714, + "end": 2717, + "loc": { + "start": { + "line": 107, + "column": 52 + }, + "end": { + "line": 107, + "column": 55 + } + }, + "name": "div" + } + }, + "children": [] + }, + { + "type": "Literal", + "start": 2718, + "end": 2739, + "loc": { + "start": { + "line": 107, + "column": 56 + }, + "end": { + "line": 108, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 2739, + "end": 3437, + "loc": { + "start": { + "line": 108, + "column": 20 + }, + "end": { + "line": 120, + "column": 26 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2739, + "end": 2763, + "loc": { + "start": { + "line": 108, + "column": 20 + }, + "end": { + "line": 108, + "column": 44 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2744, + "end": 2762, + "loc": { + "start": { + "line": 108, + "column": 25 + }, + "end": { + "line": 108, + "column": 43 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2744, + "end": 2753, + "loc": { + "start": { + "line": 108, + "column": 25 + }, + "end": { + "line": 108, + "column": 34 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 2754, + "end": 2762, + "loc": { + "start": { + "line": 108, + "column": 35 + }, + "end": { + "line": 108, + "column": 43 + } + }, + "value": "images", + "rawValue": null, + "raw": "\"images\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2740, + "end": 2743, + "loc": { + "start": { + "line": 108, + "column": 21 + }, + "end": { + "line": 108, + "column": 24 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3431, + "end": 3437, + "loc": { + "start": { + "line": 120, + "column": 20 + }, + "end": { + "line": 120, + "column": 26 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3433, + "end": 3436, + "loc": { + "start": { + "line": 120, + "column": 22 + }, + "end": { + "line": 120, + "column": 25 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 2763, + "end": 2788, + "loc": { + "start": { + "line": 108, + "column": 44 + }, + "end": { + "line": 109, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 2788, + "end": 2818, + "loc": { + "start": { + "line": 109, + "column": 24 + }, + "end": { + "line": 109, + "column": 54 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2788, + "end": 2792, + "loc": { + "start": { + "line": 109, + "column": 24 + }, + "end": { + "line": 109, + "column": 28 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 2789, + "end": 2791, + "loc": { + "start": { + "line": 109, + "column": 25 + }, + "end": { + "line": 109, + "column": 27 + } + }, + "name": "h1" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2813, + "end": 2818, + "loc": { + "start": { + "line": 109, + "column": 49 + }, + "end": { + "line": 109, + "column": 54 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2815, + "end": 2817, + "loc": { + "start": { + "line": 109, + "column": 51 + }, + "end": { + "line": 109, + "column": 53 + } + }, + "name": "h1" + } + }, + "children": [ + { + "type": "JSXExpressionContainer", + "start": 2792, + "end": 2813, + "loc": { + "start": { + "line": 109, + "column": 28 + }, + "end": { + "line": 109, + "column": 49 + } + }, + "expression": { + "type": "MemberExpression", + "start": 2793, + "end": 2812, + "loc": { + "start": { + "line": 109, + "column": 29 + }, + "end": { + "line": 109, + "column": 48 + } + }, + "object": { + "type": "MemberExpression", + "start": 2793, + "end": 2803, + "loc": { + "start": { + "line": 109, + "column": 29 + }, + "end": { + "line": 109, + "column": 39 + } + }, + "object": { + "type": "ThisExpression", + "start": 2793, + "end": 2797, + "loc": { + "start": { + "line": 109, + "column": 29 + }, + "end": { + "line": 109, + "column": 33 + } + } + }, + "property": { + "type": "Identifier", + "start": 2798, + "end": 2803, + "loc": { + "start": { + "line": 109, + "column": 34 + }, + "end": { + "line": 109, + "column": 39 + } + }, + "name": "state" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2804, + "end": 2812, + "loc": { + "start": { + "line": 109, + "column": 40 + }, + "end": { + "line": 109, + "column": 48 + } + }, + "name": "location" + }, + "computed": false + } + } + ] + }, + { + "type": "Literal", + "start": 2818, + "end": 2843, + "loc": { + "start": { + "line": 109, + "column": 54 + }, + "end": { + "line": 110, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 2843, + "end": 3410, + "loc": { + "start": { + "line": 110, + "column": 24 + }, + "end": { + "line": 119, + "column": 30 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2843, + "end": 2865, + "loc": { + "start": { + "line": 110, + "column": 24 + }, + "end": { + "line": 110, + "column": 46 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2848, + "end": 2864, + "loc": { + "start": { + "line": 110, + "column": 29 + }, + "end": { + "line": 110, + "column": 45 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2848, + "end": 2857, + "loc": { + "start": { + "line": 110, + "column": 29 + }, + "end": { + "line": 110, + "column": 38 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 2858, + "end": 2864, + "loc": { + "start": { + "line": 110, + "column": 39 + }, + "end": { + "line": 110, + "column": 45 + } + }, + "value": "grid", + "rawValue": null, + "raw": "\"grid\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2844, + "end": 2847, + "loc": { + "start": { + "line": 110, + "column": 25 + }, + "end": { + "line": 110, + "column": 28 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3404, + "end": 3410, + "loc": { + "start": { + "line": 119, + "column": 24 + }, + "end": { + "line": 119, + "column": 30 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3406, + "end": 3409, + "loc": { + "start": { + "line": 119, + "column": 26 + }, + "end": { + "line": 119, + "column": 29 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 2865, + "end": 2894, + "loc": { + "start": { + "line": 110, + "column": 46 + }, + "end": { + "line": 111, + "column": 28 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 2894, + "end": 3379, + "loc": { + "start": { + "line": 111, + "column": 28 + }, + "end": { + "line": 118, + "column": 30 + } + }, + "expression": { + "type": "CallExpression", + "start": 2895, + "end": 3378, + "loc": { + "start": { + "line": 111, + "column": 29 + }, + "end": { + "line": 118, + "column": 29 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2895, + "end": 2913, + "loc": { + "start": { + "line": 111, + "column": 29 + }, + "end": { + "line": 111, + "column": 47 + } + }, + "object": { + "type": "MemberExpression", + "start": 2895, + "end": 2909, + "loc": { + "start": { + "line": 111, + "column": 29 + }, + "end": { + "line": 111, + "column": 43 + } + }, + "object": { + "type": "MemberExpression", + "start": 2895, + "end": 2905, + "loc": { + "start": { + "line": 111, + "column": 29 + }, + "end": { + "line": 111, + "column": 39 + } + }, + "object": { + "type": "ThisExpression", + "start": 2895, + "end": 2899, + "loc": { + "start": { + "line": 111, + "column": 29 + }, + "end": { + "line": 111, + "column": 33 + } + } + }, + "property": { + "type": "Identifier", + "start": 2900, + "end": 2905, + "loc": { + "start": { + "line": 111, + "column": 34 + }, + "end": { + "line": 111, + "column": 39 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2906, + "end": 2909, + "loc": { + "start": { + "line": 111, + "column": 40 + }, + "end": { + "line": 111, + "column": 43 + } + }, + "name": "loc" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2910, + "end": 2913, + "loc": { + "start": { + "line": 111, + "column": 44 + }, + "end": { + "line": 111, + "column": 47 + } + }, + "name": "map" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 2914, + "end": 3348, + "loc": { + "start": { + "line": 111, + "column": 48 + }, + "end": { + "line": 117, + "column": 38 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2914, + "end": 2918, + "loc": { + "start": { + "line": 111, + "column": 48 + }, + "end": { + "line": 111, + "column": 52 + } + }, + "name": "item" + } + ], + "body": { + "type": "JSXElement", + "start": 2954, + "end": 3348, + "loc": { + "start": { + "line": 112, + "column": 32 + }, + "end": { + "line": 117, + "column": 38 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2954, + "end": 3009, + "loc": { + "start": { + "line": 112, + "column": 32 + }, + "end": { + "line": 112, + "column": 87 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2959, + "end": 2980, + "loc": { + "start": { + "line": 112, + "column": 37 + }, + "end": { + "line": 112, + "column": 58 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2959, + "end": 2968, + "loc": { + "start": { + "line": 112, + "column": 37 + }, + "end": { + "line": 112, + "column": 46 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 2969, + "end": 2980, + "loc": { + "start": { + "line": 112, + "column": 47 + }, + "end": { + "line": 112, + "column": 58 + } + }, + "value": "grid-cell", + "rawValue": null, + "raw": "\"grid-cell\"" + } + }, + { + "type": "JSXAttribute", + "start": 2981, + "end": 3008, + "loc": { + "start": { + "line": 112, + "column": 59 + }, + "end": { + "line": 112, + "column": 86 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2981, + "end": 2984, + "loc": { + "start": { + "line": 112, + "column": 59 + }, + "end": { + "line": 112, + "column": 62 + } + }, + "name": "key" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2985, + "end": 3008, + "loc": { + "start": { + "line": 112, + "column": 63 + }, + "end": { + "line": 112, + "column": 86 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 2986, + "end": 3007, + "loc": { + "start": { + "line": 112, + "column": 64 + }, + "end": { + "line": 112, + "column": 85 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 2998, + "end": 3005, + "loc": { + "start": { + "line": 112, + "column": 76 + }, + "end": { + "line": 112, + "column": 83 + } + }, + "object": { + "type": "Identifier", + "start": 2998, + "end": 3002, + "loc": { + "start": { + "line": 112, + "column": 76 + }, + "end": { + "line": 112, + "column": 80 + } + }, + "name": "item" + }, + "property": { + "type": "Identifier", + "start": 3003, + "end": 3005, + "loc": { + "start": { + "line": 112, + "column": 81 + }, + "end": { + "line": 112, + "column": 83 + } + }, + "name": "id" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 2987, + "end": 2996, + "loc": { + "start": { + "line": 112, + "column": 65 + }, + "end": { + "line": 112, + "column": 74 + } + }, + "value": { + "raw": "location-", + "cooked": "location-" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 3006, + "end": 3006, + "loc": { + "start": { + "line": 112, + "column": 84 + }, + "end": { + "line": 112, + "column": 84 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2955, + "end": 2958, + "loc": { + "start": { + "line": 112, + "column": 33 + }, + "end": { + "line": 112, + "column": 36 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3342, + "end": 3348, + "loc": { + "start": { + "line": 117, + "column": 32 + }, + "end": { + "line": 117, + "column": 38 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3344, + "end": 3347, + "loc": { + "start": { + "line": 117, + "column": 34 + }, + "end": { + "line": 117, + "column": 37 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 3009, + "end": 3046, + "loc": { + "start": { + "line": 112, + "column": 87 + }, + "end": { + "line": 113, + "column": 36 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 3046, + "end": 3309, + "loc": { + "start": { + "line": 113, + "column": 36 + }, + "end": { + "line": 116, + "column": 43 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3046, + "end": 3078, + "loc": { + "start": { + "line": 113, + "column": 36 + }, + "end": { + "line": 113, + "column": 68 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3052, + "end": 3077, + "loc": { + "start": { + "line": 113, + "column": 42 + }, + "end": { + "line": 113, + "column": 67 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3052, + "end": 3054, + "loc": { + "start": { + "line": 113, + "column": 42 + }, + "end": { + "line": 113, + "column": 44 + } + }, + "name": "to" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 3055, + "end": 3077, + "loc": { + "start": { + "line": 113, + "column": 45 + }, + "end": { + "line": 113, + "column": 67 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 3056, + "end": 3076, + "loc": { + "start": { + "line": 113, + "column": 46 + }, + "end": { + "line": 113, + "column": 66 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 3067, + "end": 3074, + "loc": { + "start": { + "line": 113, + "column": 57 + }, + "end": { + "line": 113, + "column": 64 + } + }, + "object": { + "type": "Identifier", + "start": 3067, + "end": 3071, + "loc": { + "start": { + "line": 113, + "column": 57 + }, + "end": { + "line": 113, + "column": 61 + } + }, + "name": "item" + }, + "property": { + "type": "Identifier", + "start": 3072, + "end": 3074, + "loc": { + "start": { + "line": 113, + "column": 62 + }, + "end": { + "line": 113, + "column": 64 + } + }, + "name": "id" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 3057, + "end": 3065, + "loc": { + "start": { + "line": 113, + "column": 47 + }, + "end": { + "line": 113, + "column": 55 + } + }, + "value": { + "raw": "/photos/", + "cooked": "/photos/" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 3075, + "end": 3075, + "loc": { + "start": { + "line": 113, + "column": 65 + }, + "end": { + "line": 113, + "column": 65 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3047, + "end": 3051, + "loc": { + "start": { + "line": 113, + "column": 37 + }, + "end": { + "line": 113, + "column": 41 + } + }, + "name": "Link" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3302, + "end": 3309, + "loc": { + "start": { + "line": 116, + "column": 36 + }, + "end": { + "line": 116, + "column": 43 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3304, + "end": 3308, + "loc": { + "start": { + "line": 116, + "column": 38 + }, + "end": { + "line": 116, + "column": 42 + } + }, + "name": "Link" + } + }, + "children": [ + { + "type": "Literal", + "start": 3078, + "end": 3119, + "loc": { + "start": { + "line": 113, + "column": 68 + }, + "end": { + "line": 114, + "column": 40 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 3119, + "end": 3265, + "loc": { + "start": { + "line": 114, + "column": 40 + }, + "end": { + "line": 115, + "column": 141 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3119, + "end": 3265, + "loc": { + "start": { + "line": 114, + "column": 40 + }, + "end": { + "line": 115, + "column": 141 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3168, + "end": 3263, + "loc": { + "start": { + "line": 115, + "column": 44 + }, + "end": { + "line": 115, + "column": 139 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3168, + "end": 3171, + "loc": { + "start": { + "line": 115, + "column": 44 + }, + "end": { + "line": 115, + "column": 47 + } + }, + "name": "src" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 3172, + "end": 3263, + "loc": { + "start": { + "line": 115, + "column": 48 + }, + "end": { + "line": 115, + "column": 139 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 3173, + "end": 3262, + "loc": { + "start": { + "line": 115, + "column": 49 + }, + "end": { + "line": 115, + "column": 138 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 3176, + "end": 3196, + "loc": { + "start": { + "line": 115, + "column": 52 + }, + "end": { + "line": 115, + "column": 72 + } + }, + "object": { + "type": "MemberExpression", + "start": 3176, + "end": 3188, + "loc": { + "start": { + "line": 115, + "column": 52 + }, + "end": { + "line": 115, + "column": 64 + } + }, + "object": { + "type": "Identifier", + "start": 3176, + "end": 3182, + "loc": { + "start": { + "line": 115, + "column": 52 + }, + "end": { + "line": 115, + "column": 58 + } + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 3183, + "end": 3188, + "loc": { + "start": { + "line": 115, + "column": 59 + }, + "end": { + "line": 115, + "column": 64 + } + }, + "name": "imgix" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3189, + "end": 3196, + "loc": { + "start": { + "line": 115, + "column": 65 + }, + "end": { + "line": 115, + "column": 72 + } + }, + "name": "baseUrl" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 3200, + "end": 3213, + "loc": { + "start": { + "line": 115, + "column": 76 + }, + "end": { + "line": 115, + "column": 89 + } + }, + "object": { + "type": "Identifier", + "start": 3200, + "end": 3204, + "loc": { + "start": { + "line": 115, + "column": 76 + }, + "end": { + "line": 115, + "column": 80 + } + }, + "name": "item" + }, + "property": { + "type": "Identifier", + "start": 3205, + "end": 3213, + "loc": { + "start": { + "line": 115, + "column": 81 + }, + "end": { + "line": 115, + "column": 89 + } + }, + "name": "filename" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 3174, + "end": 3174, + "loc": { + "start": { + "line": 115, + "column": 50 + }, + "end": { + "line": 115, + "column": 50 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 3197, + "end": 3198, + "loc": { + "start": { + "line": 115, + "column": 73 + }, + "end": { + "line": 115, + "column": 74 + } + }, + "value": { + "raw": "/", + "cooked": "/" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 3214, + "end": 3261, + "loc": { + "start": { + "line": 115, + "column": 90 + }, + "end": { + "line": 115, + "column": 137 + } + }, + "value": { + "raw": "?auto=enhance&w=200&h=200&fit=crop&fm=png&dpr=2", + "cooked": "?auto=enhance&w=200&h=200&fit=crop&fm=png&dpr=2" + }, + "tail": true + } + ] + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3120, + "end": 3123, + "loc": { + "start": { + "line": 114, + "column": 41 + }, + "end": { + "line": 114, + "column": 44 + } + }, + "name": "img" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 3265, + "end": 3302, + "loc": { + "start": { + "line": 115, + "column": 141 + }, + "end": { + "line": 116, + "column": 36 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 3309, + "end": 3342, + "loc": { + "start": { + "line": 116, + "column": 43 + }, + "end": { + "line": 117, + "column": 32 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + } + } + ] + } + }, + { + "type": "Literal", + "start": 3379, + "end": 3404, + "loc": { + "start": { + "line": 118, + "column": 30 + }, + "end": { + "line": 119, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 3410, + "end": 3431, + "loc": { + "start": { + "line": 119, + "column": 30 + }, + "end": { + "line": 120, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 3437, + "end": 3454, + "loc": { + "start": { + "line": 120, + "column": 26 + }, + "end": { + "line": 121, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 3460, + "end": 3473, + "loc": { + "start": { + "line": 121, + "column": 22 + }, + "end": { + "line": 122, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 2503, + "end": 2551, + "loc": { + "start": { + "line": 99, + "column": 4 + }, + "end": { + "line": 102, + "column": 7 + } + }, + "range": [ + 2503, + 2551 + ] + } + ] + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Location\n * '/location'\n * React Route - Documentation: https://github.com/reactjs/react-router/tree/master/docs\n ", + "start": 204, + "end": 327, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + }, + "range": [ + 204, + 327 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * connect\n * Connects React component to a Redux store\n * Documentation: https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options\n ", + "start": 3500, + "end": 3705, + "loc": { + "start": { + "line": 128, + "column": 0 + }, + "end": { + "line": 132, + "column": 3 + } + }, + "range": [ + 3500, + 3705 + ] + } + ] + }, + { + "type": "ExportDefaultDeclaration", + "start": 3706, + "end": 3773, + "loc": { + "start": { + "line": 133, + "column": 0 + }, + "end": { + "line": 133, + "column": 67 + } + }, + "declaration": { + "type": "CallExpression", + "start": 3721, + "end": 3773, + "loc": { + "start": { + "line": 133, + "column": 15 + }, + "end": { + "line": 133, + "column": 67 + } + }, + "callee": { + "type": "CallExpression", + "start": 3721, + "end": 3763, + "loc": { + "start": { + "line": 133, + "column": 15 + }, + "end": { + "line": 133, + "column": 57 + } + }, + "callee": { + "type": "Identifier", + "start": 3721, + "end": 3728, + "loc": { + "start": { + "line": 133, + "column": 15 + }, + "end": { + "line": 133, + "column": 22 + } + }, + "name": "connect", + "leadingComments": null + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 3729, + "end": 3762, + "loc": { + "start": { + "line": 133, + "column": 23 + }, + "end": { + "line": 133, + "column": 56 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 3729, + "end": 3734, + "loc": { + "start": { + "line": 133, + "column": 23 + }, + "end": { + "line": 133, + "column": 28 + } + }, + "name": "state" + } + ], + "body": { + "type": "ObjectExpression", + "start": 3739, + "end": 3761, + "loc": { + "start": { + "line": 133, + "column": 33 + }, + "end": { + "line": 133, + "column": 55 + } + }, + "properties": [ + { + "type": "Property", + "start": 3740, + "end": 3759, + "loc": { + "start": { + "line": 133, + "column": 34 + }, + "end": { + "line": 133, + "column": 53 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3740, + "end": 3743, + "loc": { + "start": { + "line": 133, + "column": 34 + }, + "end": { + "line": 133, + "column": 37 + } + }, + "name": "loc" + }, + "value": { + "type": "MemberExpression", + "start": 3745, + "end": 3759, + "loc": { + "start": { + "line": 133, + "column": 39 + }, + "end": { + "line": 133, + "column": 53 + } + }, + "object": { + "type": "Identifier", + "start": 3745, + "end": 3750, + "loc": { + "start": { + "line": 133, + "column": 39 + }, + "end": { + "line": 133, + "column": 44 + } + }, + "name": "state" + }, + "property": { + "type": "Identifier", + "start": 3751, + "end": 3759, + "loc": { + "start": { + "line": 133, + "column": 45 + }, + "end": { + "line": 133, + "column": 53 + } + }, + "name": "Location" + }, + "computed": false + }, + "kind": "init" + } + ], + "parenthesizedExpression": true + } + } + ], + "leadingComments": null + }, + "arguments": [ + { + "type": "Identifier", + "start": 3764, + "end": 3772, + "loc": { + "start": { + "line": 133, + "column": 58 + }, + "end": { + "line": 133, + "column": 66 + } + }, + "name": "Location" + } + ], + "leadingComments": [ + { + "type": "Block", + "value": "*\n * connect\n * Connects React component to a Redux store\n * Documentation: https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options\n ", + "start": 3500, + "end": 3705, + "loc": { + "start": { + "line": 128, + "column": 0 + }, + "end": { + "line": 132, + "column": 3 + } + }, + "range": [ + 3500, + 3705 + ] + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * connect\n * Connects React component to a Redux store\n * Documentation: https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options\n ", + "start": 3500, + "end": 3705, + "loc": { + "start": { + "line": 128, + "column": 0 + }, + "end": { + "line": 132, + "column": 3 + } + }, + "range": [ + 3500, + 3705 + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/routes/Location/index.js.json b/app/docs/ast/source/routes/Location/index.js.json new file mode 100644 index 0000000..1e2609e --- /dev/null +++ b/app/docs/ast/source/routes/Location/index.js.json @@ -0,0 +1,1209 @@ +{ + "type": "Program", + "start": 0, + "end": 663, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 35, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 18, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 18 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ImportDeclaration", + "start": 27, + "end": 66, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 39 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 36, + "end": 46, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 19 + } + }, + "imported": { + "type": "Identifier", + "start": 36, + "end": 46, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 19 + } + }, + "name": "BackButton" + }, + "local": { + "type": "Identifier", + "start": 36, + "end": 46, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 19 + } + }, + "name": "BackButton" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 54, + "end": 66, + "loc": { + "start": { + "line": 3, + "column": 27 + }, + "end": { + "line": 3, + "column": 39 + } + }, + "value": "components", + "rawValue": "components", + "raw": "'components'" + } + }, + { + "type": "ExpressionStatement", + "start": 68, + "end": 662, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 34, + "column": 1 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 68, + "end": 662, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 34, + "column": 1 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 68, + "end": 82, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 14 + } + }, + "object": { + "type": "Identifier", + "start": 68, + "end": 74, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 6 + } + }, + "name": "module" + }, + "property": { + "type": "Identifier", + "start": 75, + "end": 82, + "loc": { + "start": { + "line": 5, + "column": 7 + }, + "end": { + "line": 5, + "column": 14 + } + }, + "name": "exports" + }, + "computed": false + }, + "right": { + "type": "ObjectExpression", + "start": 85, + "end": 662, + "loc": { + "start": { + "line": 5, + "column": 17 + }, + "end": { + "line": 34, + "column": 1 + } + }, + "properties": [ + { + "type": "Property", + "start": 91, + "end": 108, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 6, + "column": 21 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 91, + "end": 95, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 6, + "column": 8 + } + }, + "name": "path" + }, + "value": { + "type": "Literal", + "start": 97, + "end": 108, + "loc": { + "start": { + "line": 6, + "column": 10 + }, + "end": { + "line": 6, + "column": 21 + } + }, + "value": "/location", + "rawValue": "/location", + "raw": "'/location'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 211, + "end": 293, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 15, + "column": 5 + } + }, + "method": true, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 211, + "end": 223, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 16 + } + }, + "name": "getComponent", + "leadingComments": null + }, + "kind": "init", + "value": { + "type": "FunctionExpression", + "start": 223, + "end": 293, + "loc": { + "start": { + "line": 13, + "column": 16 + }, + "end": { + "line": 15, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 224, + "end": 232, + "loc": { + "start": { + "line": 13, + "column": 17 + }, + "end": { + "line": 13, + "column": 25 + } + }, + "name": "location" + }, + { + "type": "Identifier", + "start": 234, + "end": 236, + "loc": { + "start": { + "line": 13, + "column": 27 + }, + "end": { + "line": 13, + "column": 29 + } + }, + "name": "cb" + } + ], + "body": { + "type": "BlockStatement", + "start": 238, + "end": 293, + "loc": { + "start": { + "line": 13, + "column": 31 + }, + "end": { + "line": 15, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 248, + "end": 287, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 47 + } + }, + "expression": { + "type": "CallExpression", + "start": 248, + "end": 287, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 47 + } + }, + "callee": { + "type": "Identifier", + "start": 248, + "end": 250, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 10 + } + }, + "name": "cb" + }, + "arguments": [ + { + "type": "Literal", + "start": 251, + "end": 255, + "loc": { + "start": { + "line": 14, + "column": 11 + }, + "end": { + "line": 14, + "column": 15 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + { + "type": "MemberExpression", + "start": 257, + "end": 286, + "loc": { + "start": { + "line": 14, + "column": 17 + }, + "end": { + "line": 14, + "column": 46 + } + }, + "object": { + "type": "CallExpression", + "start": 257, + "end": 278, + "loc": { + "start": { + "line": 14, + "column": 17 + }, + "end": { + "line": 14, + "column": 38 + } + }, + "callee": { + "type": "Identifier", + "start": 257, + "end": 264, + "loc": { + "start": { + "line": 14, + "column": 17 + }, + "end": { + "line": 14, + "column": 24 + } + }, + "name": "require" + }, + "arguments": [ + { + "type": "Literal", + "start": 265, + "end": 277, + "loc": { + "start": { + "line": 14, + "column": 25 + }, + "end": { + "line": 14, + "column": 37 + } + }, + "value": "./Location", + "rawValue": "./Location", + "raw": "'./Location'" + } + ] + }, + "property": { + "type": "Identifier", + "start": 279, + "end": 286, + "loc": { + "start": { + "line": 14, + "column": 39 + }, + "end": { + "line": 14, + "column": 46 + } + }, + "name": "default" + }, + "computed": false + } + ] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * getComponent\n * @param location\n * @param cb {Function} callback\n ", + "start": 115, + "end": 206, + "loc": { + "start": { + "line": 8, + "column": 4 + }, + "end": { + "line": 12, + "column": 7 + } + }, + "range": [ + 115, + 206 + ] + } + ] + }, + { + "type": "Property", + "start": 397, + "end": 489, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 24, + "column": 5 + } + }, + "method": true, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 397, + "end": 410, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 17 + } + }, + "name": "getHeaderLeft", + "leadingComments": null + }, + "kind": "init", + "value": { + "type": "FunctionExpression", + "start": 410, + "end": 489, + "loc": { + "start": { + "line": 22, + "column": 17 + }, + "end": { + "line": 24, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 411, + "end": 419, + "loc": { + "start": { + "line": 22, + "column": 18 + }, + "end": { + "line": 22, + "column": 26 + } + }, + "name": "location" + }, + { + "type": "Identifier", + "start": 421, + "end": 423, + "loc": { + "start": { + "line": 22, + "column": 28 + }, + "end": { + "line": 22, + "column": 30 + } + }, + "name": "cb" + } + ], + "body": { + "type": "BlockStatement", + "start": 425, + "end": 489, + "loc": { + "start": { + "line": 22, + "column": 32 + }, + "end": { + "line": 24, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 435, + "end": 483, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 56 + } + }, + "expression": { + "type": "CallExpression", + "start": 435, + "end": 483, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 56 + } + }, + "callee": { + "type": "Identifier", + "start": 435, + "end": 437, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 10 + } + }, + "name": "cb" + }, + "arguments": [ + { + "type": "Literal", + "start": 438, + "end": 442, + "loc": { + "start": { + "line": 23, + "column": 11 + }, + "end": { + "line": 23, + "column": 15 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + { + "type": "JSXElement", + "start": 444, + "end": 482, + "loc": { + "start": { + "line": 23, + "column": 17 + }, + "end": { + "line": 23, + "column": 55 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 444, + "end": 482, + "loc": { + "start": { + "line": 23, + "column": 17 + }, + "end": { + "line": 23, + "column": 55 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 456, + "end": 480, + "loc": { + "start": { + "line": 23, + "column": 29 + }, + "end": { + "line": 23, + "column": 53 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 456, + "end": 461, + "loc": { + "start": { + "line": 23, + "column": 29 + }, + "end": { + "line": 23, + "column": 34 + } + }, + "name": "label" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 462, + "end": 480, + "loc": { + "start": { + "line": 23, + "column": 35 + }, + "end": { + "line": 23, + "column": 53 + } + }, + "expression": { + "type": "MemberExpression", + "start": 463, + "end": 479, + "loc": { + "start": { + "line": 23, + "column": 36 + }, + "end": { + "line": 23, + "column": 52 + } + }, + "object": { + "type": "MemberExpression", + "start": 463, + "end": 477, + "loc": { + "start": { + "line": 23, + "column": 36 + }, + "end": { + "line": 23, + "column": 50 + } + }, + "object": { + "type": "Identifier", + "start": 463, + "end": 471, + "loc": { + "start": { + "line": 23, + "column": 36 + }, + "end": { + "line": 23, + "column": 44 + } + }, + "name": "location" + }, + "property": { + "type": "Identifier", + "start": 472, + "end": 477, + "loc": { + "start": { + "line": 23, + "column": 45 + }, + "end": { + "line": 23, + "column": 50 + } + }, + "name": "query" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 478, + "end": 479, + "loc": { + "start": { + "line": 23, + "column": 51 + }, + "end": { + "line": 23, + "column": 52 + } + }, + "name": "q" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 445, + "end": 455, + "loc": { + "start": { + "line": 23, + "column": 18 + }, + "end": { + "line": 23, + "column": 28 + } + }, + "name": "BackButton" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + ] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * getHeaderLeft\n * @param location\n * @param cb {Function} callback\n ", + "start": 300, + "end": 392, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 21, + "column": 7 + } + }, + "range": [ + 300, + 392 + ] + } + ] + }, + { + "type": "Property", + "start": 595, + "end": 659, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "method": true, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 595, + "end": 610, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 19 + } + }, + "name": "getHeaderMiddle", + "leadingComments": null + }, + "kind": "init", + "value": { + "type": "FunctionExpression", + "start": 610, + "end": 659, + "loc": { + "start": { + "line": 31, + "column": 19 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 611, + "end": 619, + "loc": { + "start": { + "line": 31, + "column": 20 + }, + "end": { + "line": 31, + "column": 28 + } + }, + "name": "location" + }, + { + "type": "Identifier", + "start": 621, + "end": 623, + "loc": { + "start": { + "line": 31, + "column": 30 + }, + "end": { + "line": 31, + "column": 32 + } + }, + "name": "cb" + } + ], + "body": { + "type": "BlockStatement", + "start": 625, + "end": 659, + "loc": { + "start": { + "line": 31, + "column": 34 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 635, + "end": 653, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 26 + } + }, + "expression": { + "type": "CallExpression", + "start": 635, + "end": 653, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 26 + } + }, + "callee": { + "type": "Identifier", + "start": 635, + "end": 637, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 10 + } + }, + "name": "cb" + }, + "arguments": [ + { + "type": "Literal", + "start": 638, + "end": 642, + "loc": { + "start": { + "line": 32, + "column": 11 + }, + "end": { + "line": 32, + "column": 15 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + { + "type": "JSXElement", + "start": 644, + "end": 652, + "loc": { + "start": { + "line": 32, + "column": 17 + }, + "end": { + "line": 32, + "column": 25 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 644, + "end": 652, + "loc": { + "start": { + "line": 32, + "column": 17 + }, + "end": { + "line": 32, + "column": 25 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 645, + "end": 649, + "loc": { + "start": { + "line": 32, + "column": 18 + }, + "end": { + "line": 32, + "column": 22 + } + }, + "name": "span" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + ] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * getHeaderMiddle\n * @param location\n * @param cb {Function} callback\n ", + "start": 496, + "end": 590, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 30, + "column": 7 + } + }, + "range": [ + 496, + 590 + ] + } + ] + } + ] + } + } + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/routes/Notifications/Notifications.js.json b/app/docs/ast/source/routes/Notifications/Notifications.js.json new file mode 100644 index 0000000..36dc978 --- /dev/null +++ b/app/docs/ast/source/routes/Notifications/Notifications.js.json @@ -0,0 +1,4789 @@ +{ + "type": "Program", + "start": 0, + "end": 3169, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 110, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + }, + { + "type": "ImportSpecifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "imported": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + }, + "local": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 33, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 33 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ImportDeclaration", + "start": 41, + "end": 78, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 37 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 50, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "imported": { + "type": "Identifier", + "start": 50, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "name": "connect" + }, + "local": { + "type": "Identifier", + "start": 50, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "name": "connect" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 65, + "end": 78, + "loc": { + "start": { + "line": 2, + "column": 24 + }, + "end": { + "line": 2, + "column": 37 + } + }, + "value": "react-redux", + "rawValue": "react-redux", + "raw": "'react-redux'" + } + }, + { + "type": "ImportDeclaration", + "start": 79, + "end": 114, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 35 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 88, + "end": 92, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 13 + } + }, + "imported": { + "type": "Identifier", + "start": 88, + "end": 92, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 13 + } + }, + "name": "Link" + }, + "local": { + "type": "Identifier", + "start": 88, + "end": 92, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 13 + } + }, + "name": "Link" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 100, + "end": 114, + "loc": { + "start": { + "line": 3, + "column": 21 + }, + "end": { + "line": 3, + "column": 35 + } + }, + "value": "react-router", + "rawValue": "react-router", + "raw": "'react-router'" + } + }, + { + "type": "ImportDeclaration", + "start": 115, + "end": 142, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 27 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 122, + "end": 128, + "loc": { + "start": { + "line": 4, + "column": 7 + }, + "end": { + "line": 4, + "column": 13 + } + }, + "local": { + "type": "Identifier", + "start": 122, + "end": 128, + "loc": { + "start": { + "line": 4, + "column": 7 + }, + "end": { + "line": 4, + "column": 13 + } + }, + "name": "config" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 134, + "end": 142, + "loc": { + "start": { + "line": 4, + "column": 19 + }, + "end": { + "line": 4, + "column": 27 + } + }, + "value": "config", + "rawValue": "config", + "raw": "'config'" + } + }, + { + "type": "ImportDeclaration", + "start": 144, + "end": 186, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 8, + "column": 19 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 157, + "end": 165, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 7, + "column": 12 + } + }, + "imported": { + "type": "Identifier", + "start": 157, + "end": 165, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 7, + "column": 12 + } + }, + "name": "Activity" + }, + "local": { + "type": "Identifier", + "start": 157, + "end": 165, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 7, + "column": 12 + } + }, + "name": "Activity" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 174, + "end": 186, + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 19 + } + }, + "value": "components", + "rawValue": "components", + "raw": "'components'" + } + }, + { + "type": "ImportDeclaration", + "start": 188, + "end": 246, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 16 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 201, + "end": 228, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 31 + } + }, + "imported": { + "type": "Identifier", + "start": 201, + "end": 209, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 12 + } + }, + "name": "Activity" + }, + "local": { + "type": "Identifier", + "start": 213, + "end": 228, + "loc": { + "start": { + "line": 11, + "column": 16 + }, + "end": { + "line": 11, + "column": 31 + } + }, + "name": "ActivityActions" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 237, + "end": 246, + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 12, + "column": 16 + } + }, + "value": "actions", + "rawValue": "actions", + "raw": "'actions'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Notifications\n * '/profile/notifications'\n * React Route - Documentation: https://github.com/reactjs/react-router/tree/master/docs\n ", + "start": 248, + "end": 389, + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 18, + "column": 3 + } + }, + "range": [ + 248, + 389 + ] + } + ] + }, + { + "type": "ClassDeclaration", + "start": 390, + "end": 2877, + "loc": { + "start": { + "line": 19, + "column": 0 + }, + "end": { + "line": 100, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 396, + "end": 409, + "loc": { + "start": { + "line": 19, + "column": 6 + }, + "end": { + "line": 19, + "column": 19 + } + }, + "name": "Notifications", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 418, + "end": 427, + "loc": { + "start": { + "line": 19, + "column": 28 + }, + "end": { + "line": 19, + "column": 37 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 428, + "end": 2877, + "loc": { + "start": { + "line": 19, + "column": 38 + }, + "end": { + "line": 100, + "column": 1 + } + }, + "body": [ + { + "type": "MethodDefinition", + "start": 476, + "end": 498, + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 26 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 476, + "end": 493, + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 21 + } + }, + "name": "componentDidMount", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 493, + "end": 498, + "loc": { + "start": { + "line": 24, + "column": 21 + }, + "end": { + "line": 24, + "column": 26 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 496, + "end": 498, + "loc": { + "start": { + "line": 24, + "column": 24 + }, + "end": { + "line": 24, + "column": 26 + } + }, + "body": [], + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * componentDidMount\n ", + "start": 435, + "end": 471, + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 23, + "column": 7 + } + }, + "range": [ + 435, + 471 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * renderFeedOrMessage\n * @returns markup\n ", + "start": 504, + "end": 565, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 29, + "column": 7 + } + }, + "range": [ + 504, + 565 + ] + } + ] + }, + { + "type": "Identifier", + "start": 570, + "end": 2662, + "loc": { + "start": { + "line": 30, + "column": 4 + }, + "end": { + "line": 85, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 570, + "end": 589, + "loc": { + "start": { + "line": 30, + "column": 4 + }, + "end": { + "line": 30, + "column": 23 + } + }, + "name": "renderFeedOrMessage", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ArrowFunctionExpression", + "start": 592, + "end": 2662, + "loc": { + "start": { + "line": 30, + "column": 26 + }, + "end": { + "line": 85, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 598, + "end": 2662, + "loc": { + "start": { + "line": 30, + "column": 32 + }, + "end": { + "line": 85, + "column": 5 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 608, + "end": 859, + "loc": { + "start": { + "line": 31, + "column": 8 + }, + "end": { + "line": 37, + "column": 9 + } + }, + "test": { + "type": "UnaryExpression", + "start": 612, + "end": 639, + "loc": { + "start": { + "line": 31, + "column": 12 + }, + "end": { + "line": 31, + "column": 39 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 613, + "end": 639, + "loc": { + "start": { + "line": 31, + "column": 13 + }, + "end": { + "line": 31, + "column": 39 + } + }, + "object": { + "type": "MemberExpression", + "start": 613, + "end": 632, + "loc": { + "start": { + "line": 31, + "column": 13 + }, + "end": { + "line": 31, + "column": 32 + } + }, + "object": { + "type": "MemberExpression", + "start": 613, + "end": 623, + "loc": { + "start": { + "line": 31, + "column": 13 + }, + "end": { + "line": 31, + "column": 23 + } + }, + "object": { + "type": "ThisExpression", + "start": 613, + "end": 617, + "loc": { + "start": { + "line": 31, + "column": 13 + }, + "end": { + "line": 31, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "start": 618, + "end": 623, + "loc": { + "start": { + "line": 31, + "column": 18 + }, + "end": { + "line": 31, + "column": 23 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 624, + "end": 632, + "loc": { + "start": { + "line": 31, + "column": 24 + }, + "end": { + "line": 31, + "column": 32 + } + }, + "name": "activity" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 633, + "end": 639, + "loc": { + "start": { + "line": 31, + "column": 33 + }, + "end": { + "line": 31, + "column": 39 + } + }, + "name": "length" + }, + "computed": false + } + }, + "consequent": { + "type": "BlockStatement", + "start": 641, + "end": 859, + "loc": { + "start": { + "line": 31, + "column": 41 + }, + "end": { + "line": 37, + "column": 9 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 655, + "end": 849, + "loc": { + "start": { + "line": 32, + "column": 12 + }, + "end": { + "line": 36, + "column": 13 + } + }, + "argument": { + "type": "JSXElement", + "start": 680, + "end": 835, + "loc": { + "start": { + "line": 33, + "column": 16 + }, + "end": { + "line": 35, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 680, + "end": 711, + "loc": { + "start": { + "line": 33, + "column": 16 + }, + "end": { + "line": 33, + "column": 47 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 685, + "end": 710, + "loc": { + "start": { + "line": 33, + "column": 21 + }, + "end": { + "line": 33, + "column": 46 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 685, + "end": 694, + "loc": { + "start": { + "line": 33, + "column": 21 + }, + "end": { + "line": 33, + "column": 30 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 695, + "end": 710, + "loc": { + "start": { + "line": 33, + "column": 31 + }, + "end": { + "line": 33, + "column": 46 + } + }, + "value": "empty-message", + "rawValue": null, + "raw": "\"empty-message\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 681, + "end": 684, + "loc": { + "start": { + "line": 33, + "column": 17 + }, + "end": { + "line": 33, + "column": 20 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 829, + "end": 835, + "loc": { + "start": { + "line": 35, + "column": 16 + }, + "end": { + "line": 35, + "column": 22 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 831, + "end": 834, + "loc": { + "start": { + "line": 35, + "column": 18 + }, + "end": { + "line": 35, + "column": 21 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 711, + "end": 732, + "loc": { + "start": { + "line": 33, + "column": 47 + }, + "end": { + "line": 34, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 732, + "end": 812, + "loc": { + "start": { + "line": 34, + "column": 20 + }, + "end": { + "line": 34, + "column": 100 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 732, + "end": 737, + "loc": { + "start": { + "line": 34, + "column": 20 + }, + "end": { + "line": 34, + "column": 25 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 733, + "end": 736, + "loc": { + "start": { + "line": 34, + "column": 21 + }, + "end": { + "line": 34, + "column": 24 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 806, + "end": 812, + "loc": { + "start": { + "line": 34, + "column": 94 + }, + "end": { + "line": 34, + "column": 100 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 808, + "end": 811, + "loc": { + "start": { + "line": 34, + "column": 96 + }, + "end": { + "line": 34, + "column": 99 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 737, + "end": 751, + "loc": { + "start": { + "line": 34, + "column": 25 + }, + "end": { + "line": 34, + "column": 39 + } + }, + "value": "Check out the ", + "rawValue": null, + "raw": "Check out the " + }, + { + "type": "JSXElement", + "start": 751, + "end": 790, + "loc": { + "start": { + "line": 34, + "column": 39 + }, + "end": { + "line": 34, + "column": 78 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 751, + "end": 771, + "loc": { + "start": { + "line": 34, + "column": 39 + }, + "end": { + "line": 34, + "column": 59 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 757, + "end": 770, + "loc": { + "start": { + "line": 34, + "column": 45 + }, + "end": { + "line": 34, + "column": 58 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 757, + "end": 759, + "loc": { + "start": { + "line": 34, + "column": 45 + }, + "end": { + "line": 34, + "column": 47 + } + }, + "name": "to" + }, + "value": { + "type": "Literal", + "start": 760, + "end": 770, + "loc": { + "start": { + "line": 34, + "column": 48 + }, + "end": { + "line": 34, + "column": 58 + } + }, + "value": "/explore", + "rawValue": null, + "raw": "\"/explore\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 752, + "end": 756, + "loc": { + "start": { + "line": 34, + "column": 40 + }, + "end": { + "line": 34, + "column": 44 + } + }, + "name": "Link" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 783, + "end": 790, + "loc": { + "start": { + "line": 34, + "column": 71 + }, + "end": { + "line": 34, + "column": 78 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 785, + "end": 789, + "loc": { + "start": { + "line": 34, + "column": 73 + }, + "end": { + "line": 34, + "column": 77 + } + }, + "name": "Link" + } + }, + "children": [ + { + "type": "Literal", + "start": 771, + "end": 783, + "loc": { + "start": { + "line": 34, + "column": 59 + }, + "end": { + "line": 34, + "column": 71 + } + }, + "value": "explore page", + "rawValue": null, + "raw": "explore page" + } + ] + }, + { + "type": "Literal", + "start": 790, + "end": 806, + "loc": { + "start": { + "line": 34, + "column": 78 + }, + "end": { + "line": 34, + "column": 94 + } + }, + "value": " to get started!", + "rawValue": null, + "raw": " to get started!" + } + ] + }, + { + "type": "Literal", + "start": 812, + "end": 829, + "loc": { + "start": { + "line": 34, + "column": 100 + }, + "end": { + "line": 35, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 868, + "end": 2656, + "loc": { + "start": { + "line": 38, + "column": 8 + }, + "end": { + "line": 84, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 889, + "end": 2646, + "loc": { + "start": { + "line": 39, + "column": 12 + }, + "end": { + "line": 83, + "column": 18 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 889, + "end": 920, + "loc": { + "start": { + "line": 39, + "column": 12 + }, + "end": { + "line": 39, + "column": 43 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 894, + "end": 919, + "loc": { + "start": { + "line": 39, + "column": 17 + }, + "end": { + "line": 39, + "column": 42 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 894, + "end": 903, + "loc": { + "start": { + "line": 39, + "column": 17 + }, + "end": { + "line": 39, + "column": 26 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 904, + "end": 919, + "loc": { + "start": { + "line": 39, + "column": 27 + }, + "end": { + "line": 39, + "column": 42 + } + }, + "value": "notifications", + "rawValue": null, + "raw": "\"notifications\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 890, + "end": 893, + "loc": { + "start": { + "line": 39, + "column": 13 + }, + "end": { + "line": 39, + "column": 16 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2640, + "end": 2646, + "loc": { + "start": { + "line": 83, + "column": 12 + }, + "end": { + "line": 83, + "column": 18 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2642, + "end": 2645, + "loc": { + "start": { + "line": 83, + "column": 14 + }, + "end": { + "line": 83, + "column": 17 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 920, + "end": 937, + "loc": { + "start": { + "line": 39, + "column": 43 + }, + "end": { + "line": 40, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 937, + "end": 2627, + "loc": { + "start": { + "line": 40, + "column": 16 + }, + "end": { + "line": 82, + "column": 21 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 937, + "end": 962, + "loc": { + "start": { + "line": 40, + "column": 16 + }, + "end": { + "line": 40, + "column": 41 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 941, + "end": 961, + "loc": { + "start": { + "line": 40, + "column": 20 + }, + "end": { + "line": 40, + "column": 40 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 941, + "end": 950, + "loc": { + "start": { + "line": 40, + "column": 20 + }, + "end": { + "line": 40, + "column": 29 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 951, + "end": 961, + "loc": { + "start": { + "line": 40, + "column": 30 + }, + "end": { + "line": 40, + "column": 40 + } + }, + "value": "timeline", + "rawValue": null, + "raw": "\"timeline\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 938, + "end": 940, + "loc": { + "start": { + "line": 40, + "column": 17 + }, + "end": { + "line": 40, + "column": 19 + } + }, + "name": "ul" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2622, + "end": 2627, + "loc": { + "start": { + "line": 82, + "column": 16 + }, + "end": { + "line": 82, + "column": 21 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2624, + "end": 2626, + "loc": { + "start": { + "line": 82, + "column": 18 + }, + "end": { + "line": 82, + "column": 20 + } + }, + "name": "ul" + } + }, + "children": [ + { + "type": "Literal", + "start": 962, + "end": 983, + "loc": { + "start": { + "line": 40, + "column": 41 + }, + "end": { + "line": 41, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 983, + "end": 2605, + "loc": { + "start": { + "line": 41, + "column": 20 + }, + "end": { + "line": 81, + "column": 23 + } + }, + "expression": { + "type": "CallExpression", + "start": 984, + "end": 2604, + "loc": { + "start": { + "line": 41, + "column": 21 + }, + "end": { + "line": 81, + "column": 22 + } + }, + "callee": { + "type": "MemberExpression", + "start": 984, + "end": 1007, + "loc": { + "start": { + "line": 41, + "column": 21 + }, + "end": { + "line": 41, + "column": 44 + } + }, + "object": { + "type": "MemberExpression", + "start": 984, + "end": 1003, + "loc": { + "start": { + "line": 41, + "column": 21 + }, + "end": { + "line": 41, + "column": 40 + } + }, + "object": { + "type": "MemberExpression", + "start": 984, + "end": 994, + "loc": { + "start": { + "line": 41, + "column": 21 + }, + "end": { + "line": 41, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 984, + "end": 988, + "loc": { + "start": { + "line": 41, + "column": 21 + }, + "end": { + "line": 41, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "start": 989, + "end": 994, + "loc": { + "start": { + "line": 41, + "column": 26 + }, + "end": { + "line": 41, + "column": 31 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 995, + "end": 1003, + "loc": { + "start": { + "line": 41, + "column": 32 + }, + "end": { + "line": 41, + "column": 40 + } + }, + "name": "activity" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1004, + "end": 1007, + "loc": { + "start": { + "line": 41, + "column": 41 + }, + "end": { + "line": 41, + "column": 44 + } + }, + "name": "map" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 1008, + "end": 2603, + "loc": { + "start": { + "line": 41, + "column": 45 + }, + "end": { + "line": 81, + "column": 21 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1008, + "end": 1012, + "loc": { + "start": { + "line": 41, + "column": 45 + }, + "end": { + "line": 41, + "column": 49 + } + }, + "name": "item" + } + ], + "body": { + "type": "BlockStatement", + "start": 1016, + "end": 2603, + "loc": { + "start": { + "line": 41, + "column": 53 + }, + "end": { + "line": 81, + "column": 21 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 1043, + "end": 1385, + "loc": { + "start": { + "line": 43, + "column": 24 + }, + "end": { + "line": 52, + "column": 36 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1049, + "end": 1385, + "loc": { + "start": { + "line": 43, + "column": 30 + }, + "end": { + "line": 52, + "column": 36 + } + }, + "id": { + "type": "ObjectPattern", + "start": 1049, + "end": 1378, + "loc": { + "start": { + "line": 43, + "column": 30 + }, + "end": { + "line": 52, + "column": 29 + } + }, + "properties": [ + { + "type": "Property", + "start": 1079, + "end": 1084, + "loc": { + "start": { + "line": 44, + "column": 28 + }, + "end": { + "line": 44, + "column": 33 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 1079, + "end": 1084, + "loc": { + "start": { + "line": 44, + "column": 28 + }, + "end": { + "line": 44, + "column": 33 + } + }, + "name": "email" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 1079, + "end": 1084, + "loc": { + "start": { + "line": 44, + "column": 28 + }, + "end": { + "line": 44, + "column": 33 + } + }, + "name": "email" + } + }, + { + "type": "Property", + "start": 1114, + "end": 1124, + "loc": { + "start": { + "line": 45, + "column": 28 + }, + "end": { + "line": 45, + "column": 38 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 1114, + "end": 1124, + "loc": { + "start": { + "line": 45, + "column": 28 + }, + "end": { + "line": 45, + "column": 38 + } + }, + "name": "first_name" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 1114, + "end": 1124, + "loc": { + "start": { + "line": 45, + "column": 28 + }, + "end": { + "line": 45, + "column": 38 + } + }, + "name": "first_name" + } + }, + { + "type": "Property", + "start": 1154, + "end": 1161, + "loc": { + "start": { + "line": 46, + "column": 28 + }, + "end": { + "line": 46, + "column": 35 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 1154, + "end": 1161, + "loc": { + "start": { + "line": 46, + "column": 28 + }, + "end": { + "line": 46, + "column": 35 + } + }, + "name": "last_id" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 1154, + "end": 1161, + "loc": { + "start": { + "line": 46, + "column": 28 + }, + "end": { + "line": 46, + "column": 35 + } + }, + "name": "last_id" + } + }, + { + "type": "Property", + "start": 1191, + "end": 1200, + "loc": { + "start": { + "line": 47, + "column": 28 + }, + "end": { + "line": 47, + "column": 37 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 1191, + "end": 1200, + "loc": { + "start": { + "line": 47, + "column": 28 + }, + "end": { + "line": 47, + "column": 37 + } + }, + "name": "last_name" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 1191, + "end": 1200, + "loc": { + "start": { + "line": 47, + "column": 28 + }, + "end": { + "line": 47, + "column": 37 + } + }, + "name": "last_name" + } + }, + { + "type": "Property", + "start": 1230, + "end": 1239, + "loc": { + "start": { + "line": 48, + "column": 28 + }, + "end": { + "line": 48, + "column": 37 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 1230, + "end": 1239, + "loc": { + "start": { + "line": 48, + "column": 28 + }, + "end": { + "line": 48, + "column": 37 + } + }, + "name": "timestamp" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 1230, + "end": 1239, + "loc": { + "start": { + "line": 48, + "column": 28 + }, + "end": { + "line": 48, + "column": 37 + } + }, + "name": "timestamp" + } + }, + { + "type": "Property", + "start": 1269, + "end": 1273, + "loc": { + "start": { + "line": 49, + "column": 28 + }, + "end": { + "line": 49, + "column": 32 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 1269, + "end": 1273, + "loc": { + "start": { + "line": 49, + "column": 28 + }, + "end": { + "line": 49, + "column": 32 + } + }, + "name": "type" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 1269, + "end": 1273, + "loc": { + "start": { + "line": 49, + "column": 28 + }, + "end": { + "line": 49, + "column": 32 + } + }, + "name": "type" + } + }, + { + "type": "Property", + "start": 1303, + "end": 1310, + "loc": { + "start": { + "line": 50, + "column": 28 + }, + "end": { + "line": 50, + "column": 35 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 1303, + "end": 1310, + "loc": { + "start": { + "line": 50, + "column": 28 + }, + "end": { + "line": 50, + "column": 35 + } + }, + "name": "user_id" + }, + "kind": "init", + "value": { + "type": "Identifier", + "start": 1303, + "end": 1310, + "loc": { + "start": { + "line": 50, + "column": 28 + }, + "end": { + "line": 50, + "column": 35 + } + }, + "name": "user_id" + } + }, + { + "type": "SpreadProperty", + "start": 1340, + "end": 1347, + "loc": { + "start": { + "line": 51, + "column": 28 + }, + "end": { + "line": 51, + "column": 35 + } + }, + "argument": { + "type": "Identifier", + "start": 1343, + "end": 1347, + "loc": { + "start": { + "line": 51, + "column": 31 + }, + "end": { + "line": 51, + "column": 35 + } + }, + "name": "data" + } + } + ] + }, + "init": { + "type": "Identifier", + "start": 1381, + "end": 1385, + "loc": { + "start": { + "line": 52, + "column": 32 + }, + "end": { + "line": 52, + "column": 36 + } + }, + "name": "item" + } + } + ], + "kind": "const" + }, + { + "type": "VariableDeclaration", + "start": 1411, + "end": 1420, + "loc": { + "start": { + "line": 54, + "column": 24 + }, + "end": { + "line": 54, + "column": 33 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1415, + "end": 1420, + "loc": { + "start": { + "line": 54, + "column": 28 + }, + "end": { + "line": 54, + "column": 33 + } + }, + "id": { + "type": "Identifier", + "start": 1415, + "end": 1420, + "loc": { + "start": { + "line": 54, + "column": 28 + }, + "end": { + "line": 54, + "column": 33 + } + }, + "name": "child" + }, + "init": null + } + ], + "kind": "let" + }, + { + "type": "SwitchStatement", + "start": 1446, + "end": 1922, + "loc": { + "start": { + "line": 56, + "column": 24 + }, + "end": { + "line": 65, + "column": 25 + } + }, + "discriminant": { + "type": "Identifier", + "start": 1454, + "end": 1458, + "loc": { + "start": { + "line": 56, + "column": 32 + }, + "end": { + "line": 56, + "column": 36 + } + }, + "name": "type" + }, + "cases": [ + { + "type": "SwitchCase", + "start": 1490, + "end": 1625, + "loc": { + "start": { + "line": 57, + "column": 28 + }, + "end": { + "line": 59, + "column": 37 + } + }, + "consequent": [ + { + "type": "ExpressionStatement", + "start": 1538, + "end": 1587, + "loc": { + "start": { + "line": 58, + "column": 32 + }, + "end": { + "line": 58, + "column": 81 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1538, + "end": 1587, + "loc": { + "start": { + "line": 58, + "column": 32 + }, + "end": { + "line": 58, + "column": 81 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 1538, + "end": 1543, + "loc": { + "start": { + "line": 58, + "column": 32 + }, + "end": { + "line": 58, + "column": 37 + } + }, + "name": "child" + }, + "right": { + "type": "JSXElement", + "start": 1546, + "end": 1587, + "loc": { + "start": { + "line": 58, + "column": 40 + }, + "end": { + "line": 58, + "column": 81 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1546, + "end": 1587, + "loc": { + "start": { + "line": 58, + "column": 40 + }, + "end": { + "line": 58, + "column": 81 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1566, + "end": 1585, + "loc": { + "start": { + "line": 58, + "column": 60 + }, + "end": { + "line": 58, + "column": 79 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1566, + "end": 1570, + "loc": { + "start": { + "line": 58, + "column": 60 + }, + "end": { + "line": 58, + "column": 64 + } + }, + "name": "text" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 1571, + "end": 1585, + "loc": { + "start": { + "line": 58, + "column": 65 + }, + "end": { + "line": 58, + "column": 79 + } + }, + "expression": { + "type": "MemberExpression", + "start": 1572, + "end": 1584, + "loc": { + "start": { + "line": 58, + "column": 66 + }, + "end": { + "line": 58, + "column": 78 + } + }, + "object": { + "type": "Identifier", + "start": 1572, + "end": 1576, + "loc": { + "start": { + "line": 58, + "column": 66 + }, + "end": { + "line": 58, + "column": 70 + } + }, + "name": "data" + }, + "property": { + "type": "Identifier", + "start": 1577, + "end": 1584, + "loc": { + "start": { + "line": 58, + "column": 71 + }, + "end": { + "line": 58, + "column": 78 + } + }, + "name": "comment" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXMemberExpression", + "start": 1547, + "end": 1565, + "loc": { + "start": { + "line": 58, + "column": 41 + }, + "end": { + "line": 58, + "column": 59 + } + }, + "object": { + "type": "JSXIdentifier", + "start": 1547, + "end": 1555, + "loc": { + "start": { + "line": 58, + "column": 41 + }, + "end": { + "line": 58, + "column": 49 + } + }, + "name": "Activity" + }, + "property": { + "type": "JSXIdentifier", + "start": 1556, + "end": 1565, + "loc": { + "start": { + "line": 58, + "column": 50 + }, + "end": { + "line": 58, + "column": 59 + } + }, + "name": "Commented" + } + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + } + }, + { + "type": "BreakStatement", + "start": 1620, + "end": 1625, + "loc": { + "start": { + "line": 59, + "column": 32 + }, + "end": { + "line": 59, + "column": 37 + } + }, + "label": null + } + ], + "test": { + "type": "Literal", + "start": 1495, + "end": 1504, + "loc": { + "start": { + "line": 57, + "column": 33 + }, + "end": { + "line": 57, + "column": 42 + } + }, + "value": "comment", + "rawValue": "comment", + "raw": "'comment'" + } + }, + { + "type": "SwitchCase", + "start": 1654, + "end": 1820, + "loc": { + "start": { + "line": 60, + "column": 28 + }, + "end": { + "line": 62, + "column": 37 + } + }, + "consequent": [ + { + "type": "ExpressionStatement", + "start": 1699, + "end": 1782, + "loc": { + "start": { + "line": 61, + "column": 32 + }, + "end": { + "line": 61, + "column": 115 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1699, + "end": 1782, + "loc": { + "start": { + "line": 61, + "column": 32 + }, + "end": { + "line": 61, + "column": 115 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 1699, + "end": 1704, + "loc": { + "start": { + "line": 61, + "column": 32 + }, + "end": { + "line": 61, + "column": 37 + } + }, + "name": "child" + }, + "right": { + "type": "JSXElement", + "start": 1707, + "end": 1782, + "loc": { + "start": { + "line": 61, + "column": 40 + }, + "end": { + "line": 61, + "column": 115 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1707, + "end": 1782, + "loc": { + "start": { + "line": 61, + "column": 40 + }, + "end": { + "line": 61, + "column": 115 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1723, + "end": 1780, + "loc": { + "start": { + "line": 61, + "column": 56 + }, + "end": { + "line": 61, + "column": 113 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1723, + "end": 1731, + "loc": { + "start": { + "line": 61, + "column": 56 + }, + "end": { + "line": 61, + "column": 64 + } + }, + "name": "pictures" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 1732, + "end": 1780, + "loc": { + "start": { + "line": 61, + "column": 65 + }, + "end": { + "line": 61, + "column": 113 + } + }, + "expression": { + "type": "ArrayExpression", + "start": 1733, + "end": 1779, + "loc": { + "start": { + "line": 61, + "column": 66 + }, + "end": { + "line": 61, + "column": 112 + } + }, + "elements": [ + { + "type": "ObjectExpression", + "start": 1734, + "end": 1778, + "loc": { + "start": { + "line": 61, + "column": 67 + }, + "end": { + "line": 61, + "column": 111 + } + }, + "properties": [ + { + "type": "Property", + "start": 1736, + "end": 1754, + "loc": { + "start": { + "line": 61, + "column": 69 + }, + "end": { + "line": 61, + "column": 87 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1736, + "end": 1739, + "loc": { + "start": { + "line": 61, + "column": 69 + }, + "end": { + "line": 61, + "column": 72 + } + }, + "name": "src" + }, + "value": { + "type": "MemberExpression", + "start": 1741, + "end": 1754, + "loc": { + "start": { + "line": 61, + "column": 74 + }, + "end": { + "line": 61, + "column": 87 + } + }, + "object": { + "type": "Identifier", + "start": 1741, + "end": 1745, + "loc": { + "start": { + "line": 61, + "column": 74 + }, + "end": { + "line": 61, + "column": 78 + } + }, + "name": "data" + }, + "property": { + "type": "Identifier", + "start": 1746, + "end": 1754, + "loc": { + "start": { + "line": 61, + "column": 79 + }, + "end": { + "line": 61, + "column": 87 + } + }, + "name": "filename" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1756, + "end": 1775, + "loc": { + "start": { + "line": 61, + "column": 89 + }, + "end": { + "line": 61, + "column": 108 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1756, + "end": 1758, + "loc": { + "start": { + "line": 61, + "column": 89 + }, + "end": { + "line": 61, + "column": 91 + } + }, + "name": "id" + }, + "value": { + "type": "MemberExpression", + "start": 1761, + "end": 1775, + "loc": { + "start": { + "line": 61, + "column": 94 + }, + "end": { + "line": 61, + "column": 108 + } + }, + "object": { + "type": "Identifier", + "start": 1761, + "end": 1765, + "loc": { + "start": { + "line": 61, + "column": 94 + }, + "end": { + "line": 61, + "column": 98 + } + }, + "name": "data" + }, + "property": { + "type": "Identifier", + "start": 1766, + "end": 1775, + "loc": { + "start": { + "line": 61, + "column": 99 + }, + "end": { + "line": 61, + "column": 108 + } + }, + "name": "upload_id" + }, + "computed": false + }, + "kind": "init" + } + ] + } + ] + } + } + } + ], + "name": { + "type": "JSXMemberExpression", + "start": 1708, + "end": 1722, + "loc": { + "start": { + "line": 61, + "column": 41 + }, + "end": { + "line": 61, + "column": 55 + } + }, + "object": { + "type": "JSXIdentifier", + "start": 1708, + "end": 1716, + "loc": { + "start": { + "line": 61, + "column": 41 + }, + "end": { + "line": 61, + "column": 49 + } + }, + "name": "Activity" + }, + "property": { + "type": "JSXIdentifier", + "start": 1717, + "end": 1722, + "loc": { + "start": { + "line": 61, + "column": 50 + }, + "end": { + "line": 61, + "column": 55 + } + }, + "name": "Liked" + } + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + } + }, + { + "type": "BreakStatement", + "start": 1815, + "end": 1820, + "loc": { + "start": { + "line": 62, + "column": 32 + }, + "end": { + "line": 62, + "column": 37 + } + }, + "label": null + } + ], + "test": { + "type": "Literal", + "start": 1659, + "end": 1665, + "loc": { + "start": { + "line": 60, + "column": 33 + }, + "end": { + "line": 60, + "column": 39 + } + }, + "value": "like", + "rawValue": "like", + "raw": "'like'" + } + }, + { + "type": "SwitchCase", + "start": 1849, + "end": 1896, + "loc": { + "start": { + "line": 63, + "column": 28 + }, + "end": { + "line": 64, + "column": 38 + } + }, + "consequent": [ + { + "type": "ReturnStatement", + "start": 1890, + "end": 1896, + "loc": { + "start": { + "line": 64, + "column": 32 + }, + "end": { + "line": 64, + "column": 38 + } + }, + "argument": null + } + ], + "test": null + } + ] + }, + { + "type": "ReturnStatement", + "start": 1948, + "end": 2581, + "loc": { + "start": { + "line": 67, + "column": 24 + }, + "end": { + "line": 80, + "column": 25 + } + }, + "argument": { + "type": "JSXElement", + "start": 1985, + "end": 2555, + "loc": { + "start": { + "line": 68, + "column": 28 + }, + "end": { + "line": 79, + "column": 44 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1985, + "end": 2470, + "loc": { + "start": { + "line": 68, + "column": 28 + }, + "end": { + "line": 77, + "column": 35 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2032, + "end": 2064, + "loc": { + "start": { + "line": 69, + "column": 32 + }, + "end": { + "line": 69, + "column": 64 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2032, + "end": 2035, + "loc": { + "start": { + "line": 69, + "column": 32 + }, + "end": { + "line": 69, + "column": 35 + } + }, + "name": "key" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2036, + "end": 2064, + "loc": { + "start": { + "line": 69, + "column": 36 + }, + "end": { + "line": 69, + "column": 64 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 2037, + "end": 2063, + "loc": { + "start": { + "line": 69, + "column": 37 + }, + "end": { + "line": 69, + "column": 63 + } + }, + "expressions": [ + { + "type": "Identifier", + "start": 2054, + "end": 2061, + "loc": { + "start": { + "line": 69, + "column": 54 + }, + "end": { + "line": 69, + "column": 61 + } + }, + "name": "last_id" + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 2038, + "end": 2052, + "loc": { + "start": { + "line": 69, + "column": 38 + }, + "end": { + "line": 69, + "column": 52 + } + }, + "value": { + "raw": "activity-item-", + "cooked": "activity-item-" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 2062, + "end": 2062, + "loc": { + "start": { + "line": 69, + "column": 62 + }, + "end": { + "line": 69, + "column": 62 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + }, + { + "type": "JSXAttribute", + "start": 2097, + "end": 2108, + "loc": { + "start": { + "line": 70, + "column": 32 + }, + "end": { + "line": 70, + "column": 43 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2097, + "end": 2101, + "loc": { + "start": { + "line": 70, + "column": 32 + }, + "end": { + "line": 70, + "column": 36 + } + }, + "name": "type" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2102, + "end": 2108, + "loc": { + "start": { + "line": 70, + "column": 37 + }, + "end": { + "line": 70, + "column": 43 + } + }, + "expression": { + "type": "Identifier", + "start": 2103, + "end": 2107, + "loc": { + "start": { + "line": 70, + "column": 38 + }, + "end": { + "line": 70, + "column": 42 + } + }, + "name": "type" + } + } + }, + { + "type": "JSXAttribute", + "start": 2141, + "end": 2162, + "loc": { + "start": { + "line": 71, + "column": 32 + }, + "end": { + "line": 71, + "column": 53 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2141, + "end": 2150, + "loc": { + "start": { + "line": 71, + "column": 32 + }, + "end": { + "line": 71, + "column": 41 + } + }, + "name": "timestamp" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2151, + "end": 2162, + "loc": { + "start": { + "line": 71, + "column": 42 + }, + "end": { + "line": 71, + "column": 53 + } + }, + "expression": { + "type": "Identifier", + "start": 2152, + "end": 2161, + "loc": { + "start": { + "line": 71, + "column": 43 + }, + "end": { + "line": 71, + "column": 52 + } + }, + "name": "timestamp" + } + } + }, + { + "type": "JSXAttribute", + "start": 2195, + "end": 2469, + "loc": { + "start": { + "line": 72, + "column": 32 + }, + "end": { + "line": 77, + "column": 34 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2195, + "end": 2200, + "loc": { + "start": { + "line": 72, + "column": 32 + }, + "end": { + "line": 72, + "column": 37 + } + }, + "name": "actor" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2201, + "end": 2469, + "loc": { + "start": { + "line": 72, + "column": 38 + }, + "end": { + "line": 77, + "column": 34 + } + }, + "expression": { + "type": "ObjectExpression", + "start": 2202, + "end": 2468, + "loc": { + "start": { + "line": 72, + "column": 39 + }, + "end": { + "line": 77, + "column": 33 + } + }, + "properties": [ + { + "type": "Property", + "start": 2240, + "end": 2261, + "loc": { + "start": { + "line": 73, + "column": 36 + }, + "end": { + "line": 73, + "column": 57 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2240, + "end": 2249, + "loc": { + "start": { + "line": 73, + "column": 36 + }, + "end": { + "line": 73, + "column": 45 + } + }, + "name": "firstName" + }, + "value": { + "type": "Identifier", + "start": 2251, + "end": 2261, + "loc": { + "start": { + "line": 73, + "column": 47 + }, + "end": { + "line": 73, + "column": 57 + } + }, + "name": "first_name" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 2299, + "end": 2334, + "loc": { + "start": { + "line": 74, + "column": 36 + }, + "end": { + "line": 74, + "column": 71 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2299, + "end": 2307, + "loc": { + "start": { + "line": 74, + "column": 36 + }, + "end": { + "line": 74, + "column": 44 + } + }, + "name": "lastName" + }, + "value": { + "type": "BinaryExpression", + "start": 2309, + "end": 2334, + "loc": { + "start": { + "line": 74, + "column": 46 + }, + "end": { + "line": 74, + "column": 71 + } + }, + "left": { + "type": "CallExpression", + "start": 2309, + "end": 2328, + "loc": { + "start": { + "line": 74, + "column": 46 + }, + "end": { + "line": 74, + "column": 65 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2309, + "end": 2325, + "loc": { + "start": { + "line": 74, + "column": 46 + }, + "end": { + "line": 74, + "column": 62 + } + }, + "object": { + "type": "Identifier", + "start": 2309, + "end": 2318, + "loc": { + "start": { + "line": 74, + "column": 46 + }, + "end": { + "line": 74, + "column": 55 + } + }, + "name": "last_name" + }, + "property": { + "type": "Identifier", + "start": 2319, + "end": 2325, + "loc": { + "start": { + "line": 74, + "column": 56 + }, + "end": { + "line": 74, + "column": 62 + } + }, + "name": "substr" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 2326, + "end": 2327, + "loc": { + "start": { + "line": 74, + "column": 63 + }, + "end": { + "line": 74, + "column": 64 + } + }, + "value": 0, + "rawValue": 0, + "raw": "0" + } + ] + }, + "operator": "+", + "right": { + "type": "Literal", + "start": 2331, + "end": 2334, + "loc": { + "start": { + "line": 74, + "column": 68 + }, + "end": { + "line": 74, + "column": 71 + } + }, + "value": ".", + "rawValue": ".", + "raw": "'.'" + } + }, + "kind": "init" + }, + { + "type": "Property", + "start": 2372, + "end": 2383, + "loc": { + "start": { + "line": 75, + "column": 36 + }, + "end": { + "line": 75, + "column": 47 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2372, + "end": 2374, + "loc": { + "start": { + "line": 75, + "column": 36 + }, + "end": { + "line": 75, + "column": 38 + } + }, + "name": "id" + }, + "value": { + "type": "Identifier", + "start": 2376, + "end": 2383, + "loc": { + "start": { + "line": 75, + "column": 40 + }, + "end": { + "line": 75, + "column": 47 + } + }, + "name": "user_id" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 2421, + "end": 2433, + "loc": { + "start": { + "line": 76, + "column": 36 + }, + "end": { + "line": 76, + "column": 48 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2421, + "end": 2426, + "loc": { + "start": { + "line": 76, + "column": 36 + }, + "end": { + "line": 76, + "column": 41 + } + }, + "name": "email" + }, + "value": { + "type": "Identifier", + "start": 2428, + "end": 2433, + "loc": { + "start": { + "line": 76, + "column": 43 + }, + "end": { + "line": 76, + "column": 48 + } + }, + "name": "email" + }, + "kind": "init" + } + ] + } + } + } + ], + "name": { + "type": "JSXMemberExpression", + "start": 1986, + "end": 1999, + "loc": { + "start": { + "line": 68, + "column": 29 + }, + "end": { + "line": 68, + "column": 42 + } + }, + "object": { + "type": "JSXIdentifier", + "start": 1986, + "end": 1994, + "loc": { + "start": { + "line": 68, + "column": 29 + }, + "end": { + "line": 68, + "column": 37 + } + }, + "name": "Activity" + }, + "property": { + "type": "JSXIdentifier", + "start": 1995, + "end": 1999, + "loc": { + "start": { + "line": 68, + "column": 38 + }, + "end": { + "line": 68, + "column": 42 + } + }, + "name": "Item" + } + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2539, + "end": 2555, + "loc": { + "start": { + "line": 79, + "column": 28 + }, + "end": { + "line": 79, + "column": 44 + } + }, + "name": { + "type": "JSXMemberExpression", + "start": 2541, + "end": 2554, + "loc": { + "start": { + "line": 79, + "column": 30 + }, + "end": { + "line": 79, + "column": 43 + } + }, + "object": { + "type": "JSXIdentifier", + "start": 2541, + "end": 2549, + "loc": { + "start": { + "line": 79, + "column": 30 + }, + "end": { + "line": 79, + "column": 38 + } + }, + "name": "Activity" + }, + "property": { + "type": "JSXIdentifier", + "start": 2550, + "end": 2554, + "loc": { + "start": { + "line": 79, + "column": 39 + }, + "end": { + "line": 79, + "column": 43 + } + }, + "name": "Item" + } + } + }, + "children": [ + { + "type": "Literal", + "start": 2470, + "end": 2503, + "loc": { + "start": { + "line": 77, + "column": 35 + }, + "end": { + "line": 78, + "column": 32 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 2503, + "end": 2510, + "loc": { + "start": { + "line": 78, + "column": 32 + }, + "end": { + "line": 78, + "column": 39 + } + }, + "expression": { + "type": "Identifier", + "start": 2504, + "end": 2509, + "loc": { + "start": { + "line": 78, + "column": 33 + }, + "end": { + "line": 78, + "column": 38 + } + }, + "name": "child" + } + }, + { + "type": "Literal", + "start": 2510, + "end": 2539, + "loc": { + "start": { + "line": 78, + "column": 39 + }, + "end": { + "line": 79, + "column": 28 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + } + ] + } + }, + { + "type": "Literal", + "start": 2605, + "end": 2622, + "loc": { + "start": { + "line": 81, + "column": 23 + }, + "end": { + "line": 82, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 2627, + "end": 2640, + "loc": { + "start": { + "line": 82, + "column": 21 + }, + "end": { + "line": 83, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * renderFeedOrMessage\n * @returns markup\n ", + "start": 504, + "end": 565, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 29, + "column": 7 + } + }, + "range": [ + 504, + 565 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 2668, + "end": 2716, + "loc": { + "start": { + "line": 87, + "column": 4 + }, + "end": { + "line": 90, + "column": 7 + } + }, + "range": [ + 2668, + 2716 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 2721, + "end": 2874, + "loc": { + "start": { + "line": 91, + "column": 4 + }, + "end": { + "line": 98, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 2721, + "end": 2727, + "loc": { + "start": { + "line": 91, + "column": 4 + }, + "end": { + "line": 91, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 2727, + "end": 2874, + "loc": { + "start": { + "line": 91, + "column": 10 + }, + "end": { + "line": 98, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 2730, + "end": 2874, + "loc": { + "start": { + "line": 91, + "column": 13 + }, + "end": { + "line": 98, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 2740, + "end": 2868, + "loc": { + "start": { + "line": 92, + "column": 8 + }, + "end": { + "line": 97, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 2761, + "end": 2858, + "loc": { + "start": { + "line": 93, + "column": 12 + }, + "end": { + "line": 96, + "column": 18 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2761, + "end": 2793, + "loc": { + "start": { + "line": 93, + "column": 12 + }, + "end": { + "line": 93, + "column": 44 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2766, + "end": 2792, + "loc": { + "start": { + "line": 93, + "column": 17 + }, + "end": { + "line": 93, + "column": 43 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2766, + "end": 2775, + "loc": { + "start": { + "line": 93, + "column": 17 + }, + "end": { + "line": 93, + "column": 26 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 2776, + "end": 2792, + "loc": { + "start": { + "line": 93, + "column": 27 + }, + "end": { + "line": 93, + "column": 43 + } + }, + "value": "page full-page", + "rawValue": null, + "raw": "\"page full-page\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2762, + "end": 2765, + "loc": { + "start": { + "line": 93, + "column": 13 + }, + "end": { + "line": 93, + "column": 16 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2852, + "end": 2858, + "loc": { + "start": { + "line": 96, + "column": 12 + }, + "end": { + "line": 96, + "column": 18 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2854, + "end": 2857, + "loc": { + "start": { + "line": 96, + "column": 14 + }, + "end": { + "line": 96, + "column": 17 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 2793, + "end": 2810, + "loc": { + "start": { + "line": 93, + "column": 44 + }, + "end": { + "line": 94, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 2810, + "end": 2838, + "loc": { + "start": { + "line": 94, + "column": 16 + }, + "end": { + "line": 94, + "column": 44 + } + }, + "expression": { + "type": "CallExpression", + "start": 2811, + "end": 2837, + "loc": { + "start": { + "line": 94, + "column": 17 + }, + "end": { + "line": 94, + "column": 43 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2811, + "end": 2835, + "loc": { + "start": { + "line": 94, + "column": 17 + }, + "end": { + "line": 94, + "column": 41 + } + }, + "object": { + "type": "ThisExpression", + "start": 2811, + "end": 2815, + "loc": { + "start": { + "line": 94, + "column": 17 + }, + "end": { + "line": 94, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "start": 2816, + "end": 2835, + "loc": { + "start": { + "line": 94, + "column": 22 + }, + "end": { + "line": 94, + "column": 41 + } + }, + "name": "renderFeedOrMessage" + }, + "computed": false + }, + "arguments": [] + } + }, + { + "type": "Literal", + "start": 2838, + "end": 2852, + "loc": { + "start": { + "line": 94, + "column": 44 + }, + "end": { + "line": 96, + "column": 12 + } + }, + "value": "\n\n ", + "rawValue": null, + "raw": "\n\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 2668, + "end": 2716, + "loc": { + "start": { + "line": 87, + "column": 4 + }, + "end": { + "line": 90, + "column": 7 + } + }, + "range": [ + 2668, + 2716 + ] + } + ] + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Notifications\n * '/profile/notifications'\n * React Route - Documentation: https://github.com/reactjs/react-router/tree/master/docs\n ", + "start": 248, + "end": 389, + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 18, + "column": 3 + } + }, + "range": [ + 248, + 389 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * connect\n * Connects React component to a Redux store\n * Documentation: https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options\n ", + "start": 2879, + "end": 3084, + "loc": { + "start": { + "line": 102, + "column": 0 + }, + "end": { + "line": 106, + "column": 3 + } + }, + "range": [ + 2879, + 3084 + ] + } + ] + }, + { + "type": "ExportDefaultDeclaration", + "start": 3085, + "end": 3168, + "loc": { + "start": { + "line": 107, + "column": 0 + }, + "end": { + "line": 109, + "column": 18 + } + }, + "declaration": { + "type": "CallExpression", + "start": 3100, + "end": 3168, + "loc": { + "start": { + "line": 107, + "column": 15 + }, + "end": { + "line": 109, + "column": 18 + } + }, + "callee": { + "type": "CallExpression", + "start": 3100, + "end": 3153, + "loc": { + "start": { + "line": 107, + "column": 15 + }, + "end": { + "line": 109, + "column": 3 + } + }, + "callee": { + "type": "Identifier", + "start": 3100, + "end": 3107, + "loc": { + "start": { + "line": 107, + "column": 15 + }, + "end": { + "line": 107, + "column": 22 + } + }, + "name": "connect", + "leadingComments": null + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 3108, + "end": 3152, + "loc": { + "start": { + "line": 107, + "column": 23 + }, + "end": { + "line": 109, + "column": 2 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 3108, + "end": 3113, + "loc": { + "start": { + "line": 107, + "column": 23 + }, + "end": { + "line": 107, + "column": 28 + } + }, + "name": "state" + } + ], + "body": { + "type": "ObjectExpression", + "start": 3118, + "end": 3151, + "loc": { + "start": { + "line": 107, + "column": 33 + }, + "end": { + "line": 109, + "column": 1 + } + }, + "properties": [ + { + "type": "Property", + "start": 3124, + "end": 3148, + "loc": { + "start": { + "line": 108, + "column": 4 + }, + "end": { + "line": 108, + "column": 28 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3124, + "end": 3132, + "loc": { + "start": { + "line": 108, + "column": 4 + }, + "end": { + "line": 108, + "column": 12 + } + }, + "name": "activity" + }, + "value": { + "type": "MemberExpression", + "start": 3134, + "end": 3148, + "loc": { + "start": { + "line": 108, + "column": 14 + }, + "end": { + "line": 108, + "column": 28 + } + }, + "object": { + "type": "Identifier", + "start": 3134, + "end": 3139, + "loc": { + "start": { + "line": 108, + "column": 14 + }, + "end": { + "line": 108, + "column": 19 + } + }, + "name": "state" + }, + "property": { + "type": "Identifier", + "start": 3140, + "end": 3148, + "loc": { + "start": { + "line": 108, + "column": 20 + }, + "end": { + "line": 108, + "column": 28 + } + }, + "name": "Activity" + }, + "computed": false + }, + "kind": "init" + } + ], + "parenthesizedExpression": true + } + } + ], + "leadingComments": null + }, + "arguments": [ + { + "type": "Identifier", + "start": 3154, + "end": 3167, + "loc": { + "start": { + "line": 109, + "column": 4 + }, + "end": { + "line": 109, + "column": 17 + } + }, + "name": "Notifications" + } + ], + "leadingComments": [ + { + "type": "Block", + "value": "*\n * connect\n * Connects React component to a Redux store\n * Documentation: https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options\n ", + "start": 2879, + "end": 3084, + "loc": { + "start": { + "line": 102, + "column": 0 + }, + "end": { + "line": 106, + "column": 3 + } + }, + "range": [ + 2879, + 3084 + ] + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * connect\n * Connects React component to a Redux store\n * Documentation: https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options\n ", + "start": 2879, + "end": 3084, + "loc": { + "start": { + "line": 102, + "column": 0 + }, + "end": { + "line": 106, + "column": 3 + } + }, + "range": [ + 2879, + 3084 + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/routes/Notifications/index.js.json b/app/docs/ast/source/routes/Notifications/index.js.json new file mode 100644 index 0000000..64684e3 --- /dev/null +++ b/app/docs/ast/source/routes/Notifications/index.js.json @@ -0,0 +1,888 @@ +{ + "type": "Program", + "start": 0, + "end": 504, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 28, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 18, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 18 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ImportDeclaration", + "start": 27, + "end": 64, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 5, + "column": 19 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 40, + "end": 43, + "loc": { + "start": { + "line": 4, + "column": 4 + }, + "end": { + "line": 4, + "column": 7 + } + }, + "imported": { + "type": "Identifier", + "start": 40, + "end": 43, + "loc": { + "start": { + "line": 4, + "column": 4 + }, + "end": { + "line": 4, + "column": 7 + } + }, + "name": "Nav" + }, + "local": { + "type": "Identifier", + "start": 40, + "end": 43, + "loc": { + "start": { + "line": 4, + "column": 4 + }, + "end": { + "line": 4, + "column": 7 + } + }, + "name": "Nav" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 52, + "end": 64, + "loc": { + "start": { + "line": 5, + "column": 7 + }, + "end": { + "line": 5, + "column": 19 + } + }, + "value": "components", + "rawValue": "components", + "raw": "'components'" + } + }, + { + "type": "ExpressionStatement", + "start": 66, + "end": 503, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 27, + "column": 1 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 66, + "end": 503, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 27, + "column": 1 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 66, + "end": 80, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 14 + } + }, + "object": { + "type": "Identifier", + "start": 66, + "end": 72, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 6 + } + }, + "name": "module" + }, + "property": { + "type": "Identifier", + "start": 73, + "end": 80, + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 14 + } + }, + "name": "exports" + }, + "computed": false + }, + "right": { + "type": "ObjectExpression", + "start": 83, + "end": 503, + "loc": { + "start": { + "line": 7, + "column": 17 + }, + "end": { + "line": 27, + "column": 1 + } + }, + "properties": [ + { + "type": "Property", + "start": 89, + "end": 119, + "loc": { + "start": { + "line": 8, + "column": 4 + }, + "end": { + "line": 8, + "column": 34 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 89, + "end": 93, + "loc": { + "start": { + "line": 8, + "column": 4 + }, + "end": { + "line": 8, + "column": 8 + } + }, + "name": "path" + }, + "value": { + "type": "Literal", + "start": 95, + "end": 119, + "loc": { + "start": { + "line": 8, + "column": 10 + }, + "end": { + "line": 8, + "column": 34 + } + }, + "value": "/profile/notifications", + "rawValue": "/profile/notifications", + "raw": "'/profile/notifications'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 222, + "end": 309, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 17, + "column": 5 + } + }, + "method": true, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 222, + "end": 234, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 16 + } + }, + "name": "getComponent", + "leadingComments": null + }, + "kind": "init", + "value": { + "type": "FunctionExpression", + "start": 234, + "end": 309, + "loc": { + "start": { + "line": 15, + "column": 16 + }, + "end": { + "line": 17, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 235, + "end": 243, + "loc": { + "start": { + "line": 15, + "column": 17 + }, + "end": { + "line": 15, + "column": 25 + } + }, + "name": "location" + }, + { + "type": "Identifier", + "start": 245, + "end": 247, + "loc": { + "start": { + "line": 15, + "column": 27 + }, + "end": { + "line": 15, + "column": 29 + } + }, + "name": "cb" + } + ], + "body": { + "type": "BlockStatement", + "start": 249, + "end": 309, + "loc": { + "start": { + "line": 15, + "column": 31 + }, + "end": { + "line": 17, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 259, + "end": 303, + "loc": { + "start": { + "line": 16, + "column": 8 + }, + "end": { + "line": 16, + "column": 52 + } + }, + "expression": { + "type": "CallExpression", + "start": 259, + "end": 303, + "loc": { + "start": { + "line": 16, + "column": 8 + }, + "end": { + "line": 16, + "column": 52 + } + }, + "callee": { + "type": "Identifier", + "start": 259, + "end": 261, + "loc": { + "start": { + "line": 16, + "column": 8 + }, + "end": { + "line": 16, + "column": 10 + } + }, + "name": "cb" + }, + "arguments": [ + { + "type": "Literal", + "start": 262, + "end": 266, + "loc": { + "start": { + "line": 16, + "column": 11 + }, + "end": { + "line": 16, + "column": 15 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + { + "type": "MemberExpression", + "start": 268, + "end": 302, + "loc": { + "start": { + "line": 16, + "column": 17 + }, + "end": { + "line": 16, + "column": 51 + } + }, + "object": { + "type": "CallExpression", + "start": 268, + "end": 294, + "loc": { + "start": { + "line": 16, + "column": 17 + }, + "end": { + "line": 16, + "column": 43 + } + }, + "callee": { + "type": "Identifier", + "start": 268, + "end": 275, + "loc": { + "start": { + "line": 16, + "column": 17 + }, + "end": { + "line": 16, + "column": 24 + } + }, + "name": "require" + }, + "arguments": [ + { + "type": "Literal", + "start": 276, + "end": 293, + "loc": { + "start": { + "line": 16, + "column": 25 + }, + "end": { + "line": 16, + "column": 42 + } + }, + "value": "./Notifications", + "rawValue": "./Notifications", + "raw": "'./Notifications'" + } + ] + }, + "property": { + "type": "Identifier", + "start": 295, + "end": 302, + "loc": { + "start": { + "line": 16, + "column": 44 + }, + "end": { + "line": 16, + "column": 51 + } + }, + "name": "default" + }, + "computed": false + } + ] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * getComponent\n * @param location\n * @param cb {Function} callback\n ", + "start": 126, + "end": 217, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 14, + "column": 7 + } + }, + "range": [ + 126, + 217 + ] + } + ] + }, + { + "type": "Property", + "start": 415, + "end": 500, + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 26, + "column": 5 + } + }, + "method": true, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 415, + "end": 430, + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 19 + } + }, + "name": "getHeaderMiddle", + "leadingComments": null + }, + "kind": "init", + "value": { + "type": "FunctionExpression", + "start": 430, + "end": 500, + "loc": { + "start": { + "line": 24, + "column": 19 + }, + "end": { + "line": 26, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 431, + "end": 439, + "loc": { + "start": { + "line": 24, + "column": 20 + }, + "end": { + "line": 24, + "column": 28 + } + }, + "name": "location" + }, + { + "type": "Identifier", + "start": 441, + "end": 443, + "loc": { + "start": { + "line": 24, + "column": 30 + }, + "end": { + "line": 24, + "column": 32 + } + }, + "name": "cb" + } + ], + "body": { + "type": "BlockStatement", + "start": 445, + "end": 500, + "loc": { + "start": { + "line": 24, + "column": 34 + }, + "end": { + "line": 26, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 455, + "end": 494, + "loc": { + "start": { + "line": 25, + "column": 8 + }, + "end": { + "line": 25, + "column": 47 + } + }, + "expression": { + "type": "CallExpression", + "start": 455, + "end": 494, + "loc": { + "start": { + "line": 25, + "column": 8 + }, + "end": { + "line": 25, + "column": 47 + } + }, + "callee": { + "type": "Identifier", + "start": 455, + "end": 457, + "loc": { + "start": { + "line": 25, + "column": 8 + }, + "end": { + "line": 25, + "column": 10 + } + }, + "name": "cb" + }, + "arguments": [ + { + "type": "Literal", + "start": 458, + "end": 462, + "loc": { + "start": { + "line": 25, + "column": 11 + }, + "end": { + "line": 25, + "column": 15 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + { + "type": "JSXElement", + "start": 464, + "end": 493, + "loc": { + "start": { + "line": 25, + "column": 17 + }, + "end": { + "line": 25, + "column": 46 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 464, + "end": 493, + "loc": { + "start": { + "line": 25, + "column": 17 + }, + "end": { + "line": 25, + "column": 46 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 469, + "end": 491, + "loc": { + "start": { + "line": 25, + "column": 22 + }, + "end": { + "line": 25, + "column": 44 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 469, + "end": 475, + "loc": { + "start": { + "line": 25, + "column": 22 + }, + "end": { + "line": 25, + "column": 28 + } + }, + "name": "active" + }, + "value": { + "type": "Literal", + "start": 476, + "end": 491, + "loc": { + "start": { + "line": 25, + "column": 29 + }, + "end": { + "line": 25, + "column": 44 + } + }, + "value": "notifications", + "rawValue": null, + "raw": "\"notifications\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 465, + "end": 468, + "loc": { + "start": { + "line": 25, + "column": 18 + }, + "end": { + "line": 25, + "column": 21 + } + }, + "name": "Nav" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + ] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * getHeaderMiddle\n * @param location\n * @param cb {Function} callback\n ", + "start": 316, + "end": 410, + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 23, + "column": 7 + } + }, + "range": [ + 316, + 410 + ] + } + ] + } + ] + } + } + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/routes/Profile/Profile.js.json b/app/docs/ast/source/routes/Profile/Profile.js.json new file mode 100644 index 0000000..2f314c6 --- /dev/null +++ b/app/docs/ast/source/routes/Profile/Profile.js.json @@ -0,0 +1,10726 @@ +{ + "type": "Program", + "start": 0, + "end": 4648, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 154, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + }, + { + "type": "ImportSpecifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "imported": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + }, + "local": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 33, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 33 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ImportDeclaration", + "start": 41, + "end": 78, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 37 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 50, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "imported": { + "type": "Identifier", + "start": 50, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "name": "connect" + }, + "local": { + "type": "Identifier", + "start": 50, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "name": "connect" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 65, + "end": 78, + "loc": { + "start": { + "line": 2, + "column": 24 + }, + "end": { + "line": 2, + "column": 37 + } + }, + "value": "react-redux", + "rawValue": "react-redux", + "raw": "'react-redux'" + } + }, + { + "type": "ImportDeclaration", + "start": 79, + "end": 114, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 35 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 88, + "end": 92, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 13 + } + }, + "imported": { + "type": "Identifier", + "start": 88, + "end": 92, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 13 + } + }, + "name": "Link" + }, + "local": { + "type": "Identifier", + "start": 88, + "end": 92, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 13 + } + }, + "name": "Link" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 100, + "end": 114, + "loc": { + "start": { + "line": 3, + "column": 21 + }, + "end": { + "line": 3, + "column": 35 + } + }, + "value": "react-router", + "rawValue": "react-router", + "raw": "'react-router'" + } + }, + { + "type": "ImportDeclaration", + "start": 115, + "end": 144, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 29 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 122, + "end": 129, + "loc": { + "start": { + "line": 4, + "column": 7 + }, + "end": { + "line": 4, + "column": 14 + } + }, + "local": { + "type": "Identifier", + "start": 122, + "end": 129, + "loc": { + "start": { + "line": 4, + "column": 7 + }, + "end": { + "line": 4, + "column": 14 + } + }, + "name": "numeral" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 135, + "end": 144, + "loc": { + "start": { + "line": 4, + "column": 20 + }, + "end": { + "line": 4, + "column": 29 + } + }, + "value": "numeral", + "rawValue": "numeral", + "raw": "'numeral'" + } + }, + { + "type": "ImportDeclaration", + "start": 145, + "end": 172, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 27 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 152, + "end": 155, + "loc": { + "start": { + "line": 5, + "column": 7 + }, + "end": { + "line": 5, + "column": 10 + } + }, + "local": { + "type": "Identifier", + "start": 152, + "end": 155, + "loc": { + "start": { + "line": 5, + "column": 7 + }, + "end": { + "line": 5, + "column": 10 + } + }, + "name": "Ink" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 161, + "end": 172, + "loc": { + "start": { + "line": 5, + "column": 16 + }, + "end": { + "line": 5, + "column": 27 + } + }, + "value": "react-ink", + "rawValue": "react-ink", + "raw": "'react-ink'" + } + }, + { + "type": "ImportDeclaration", + "start": 173, + "end": 230, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 6, + "column": 57 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 182, + "end": 193, + "loc": { + "start": { + "line": 6, + "column": 9 + }, + "end": { + "line": 6, + "column": 20 + } + }, + "imported": { + "type": "Identifier", + "start": 182, + "end": 193, + "loc": { + "start": { + "line": 6, + "column": 9 + }, + "end": { + "line": 6, + "column": 20 + } + }, + "name": "viewProfile" + }, + "local": { + "type": "Identifier", + "start": 182, + "end": 193, + "loc": { + "start": { + "line": 6, + "column": 9 + }, + "end": { + "line": 6, + "column": 20 + } + }, + "name": "viewProfile" + } + }, + { + "type": "ImportSpecifier", + "start": 195, + "end": 205, + "loc": { + "start": { + "line": 6, + "column": 22 + }, + "end": { + "line": 6, + "column": 32 + } + }, + "imported": { + "type": "Identifier", + "start": 195, + "end": 205, + "loc": { + "start": { + "line": 6, + "column": 22 + }, + "end": { + "line": 6, + "column": 32 + } + }, + "name": "followUser" + }, + "local": { + "type": "Identifier", + "start": 195, + "end": 205, + "loc": { + "start": { + "line": 6, + "column": 22 + }, + "end": { + "line": 6, + "column": 32 + } + }, + "name": "followUser" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 213, + "end": 230, + "loc": { + "start": { + "line": 6, + "column": 40 + }, + "end": { + "line": 6, + "column": 57 + } + }, + "value": "utils/analytics", + "rawValue": "utils/analytics", + "raw": "'utils/analytics'" + } + }, + { + "type": "ImportDeclaration", + "start": 232, + "end": 272, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 10, + "column": 19 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 245, + "end": 251, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 9, + "column": 10 + } + }, + "imported": { + "type": "Identifier", + "start": 245, + "end": 251, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 9, + "column": 10 + } + }, + "name": "Avatar" + }, + "local": { + "type": "Identifier", + "start": 245, + "end": 251, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 9, + "column": 10 + } + }, + "name": "Avatar" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 260, + "end": 272, + "loc": { + "start": { + "line": 10, + "column": 7 + }, + "end": { + "line": 10, + "column": 19 + } + }, + "value": "components", + "rawValue": "components", + "raw": "'components'" + } + }, + { + "type": "ImportDeclaration", + "start": 274, + "end": 397, + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 16, + "column": 16 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 287, + "end": 306, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 23 + } + }, + "imported": { + "type": "Identifier", + "start": 287, + "end": 291, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 8 + } + }, + "name": "User" + }, + "local": { + "type": "Identifier", + "start": 295, + "end": 306, + "loc": { + "start": { + "line": 13, + "column": 12 + }, + "end": { + "line": 13, + "column": 23 + } + }, + "name": "UserActions" + } + }, + { + "type": "ImportSpecifier", + "start": 312, + "end": 337, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 29 + } + }, + "imported": { + "type": "Identifier", + "start": 312, + "end": 319, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 11 + } + }, + "name": "Profile" + }, + "local": { + "type": "Identifier", + "start": 323, + "end": 337, + "loc": { + "start": { + "line": 14, + "column": 15 + }, + "end": { + "line": 14, + "column": 29 + } + }, + "name": "ProfileActions" + } + }, + { + "type": "ImportSpecifier", + "start": 343, + "end": 379, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 40 + } + }, + "imported": { + "type": "Identifier", + "start": 343, + "end": 356, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 17 + } + }, + "name": "Contributions" + }, + "local": { + "type": "Identifier", + "start": 360, + "end": 379, + "loc": { + "start": { + "line": 15, + "column": 21 + }, + "end": { + "line": 15, + "column": 40 + } + }, + "name": "ContributionActions" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 388, + "end": 397, + "loc": { + "start": { + "line": 16, + "column": 7 + }, + "end": { + "line": 16, + "column": 16 + } + }, + "value": "actions", + "rawValue": "actions", + "raw": "'actions'" + } + }, + { + "type": "ImportDeclaration", + "start": 399, + "end": 436, + "loc": { + "start": { + "line": 18, + "column": 0 + }, + "end": { + "line": 18, + "column": 37 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 406, + "end": 416, + "loc": { + "start": { + "line": 18, + "column": 7 + }, + "end": { + "line": 18, + "column": 17 + } + }, + "local": { + "type": "Identifier", + "start": 406, + "end": 416, + "loc": { + "start": { + "line": 18, + "column": 7 + }, + "end": { + "line": 18, + "column": 17 + } + }, + "name": "Navigation" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 422, + "end": 436, + "loc": { + "start": { + "line": 18, + "column": 23 + }, + "end": { + "line": 18, + "column": 37 + } + }, + "value": "./navigation", + "rawValue": "./navigation", + "raw": "'./navigation'" + } + }, + { + "type": "ImportDeclaration", + "start": 437, + "end": 480, + "loc": { + "start": { + "line": 19, + "column": 0 + }, + "end": { + "line": 19, + "column": 43 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 444, + "end": 457, + "loc": { + "start": { + "line": 19, + "column": 7 + }, + "end": { + "line": 19, + "column": 20 + } + }, + "local": { + "type": "Identifier", + "start": 444, + "end": 457, + "loc": { + "start": { + "line": 19, + "column": 7 + }, + "end": { + "line": 19, + "column": 20 + } + }, + "name": "Contributions" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 463, + "end": 480, + "loc": { + "start": { + "line": 19, + "column": 26 + }, + "end": { + "line": 19, + "column": 43 + } + }, + "value": "./contributions", + "rawValue": "./contributions", + "raw": "'./contributions'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Profile\n * '/profile/:id'\n * React Route - Documentation: https://github.com/reactjs/react-router/tree/master/docs\n ", + "start": 482, + "end": 607, + "loc": { + "start": { + "line": 21, + "column": 0 + }, + "end": { + "line": 25, + "column": 3 + } + }, + "range": [ + 482, + 607 + ] + } + ] + }, + { + "type": "ClassDeclaration", + "start": 608, + "end": 4272, + "loc": { + "start": { + "line": 26, + "column": 0 + }, + "end": { + "line": 141, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 614, + "end": 621, + "loc": { + "start": { + "line": 26, + "column": 6 + }, + "end": { + "line": 26, + "column": 13 + } + }, + "name": "Profile", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 630, + "end": 639, + "loc": { + "start": { + "line": 26, + "column": 22 + }, + "end": { + "line": 26, + "column": 31 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 640, + "end": 4272, + "loc": { + "start": { + "line": 26, + "column": 32 + }, + "end": { + "line": 141, + "column": 1 + } + }, + "body": [ + { + "type": "Identifier", + "start": 690, + "end": 1107, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 41, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 690, + "end": 709, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 23 + } + }, + "name": "handleFollowProfile", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ArrowFunctionExpression", + "start": 712, + "end": 1107, + "loc": { + "start": { + "line": 31, + "column": 26 + }, + "end": { + "line": 41, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 718, + "end": 1107, + "loc": { + "start": { + "line": 31, + "column": 32 + }, + "end": { + "line": 41, + "column": 5 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 729, + "end": 1100, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 39, + "column": 9 + } + }, + "test": { + "type": "UnaryExpression", + "start": 733, + "end": 762, + "loc": { + "start": { + "line": 33, + "column": 12 + }, + "end": { + "line": 33, + "column": 41 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 734, + "end": 762, + "loc": { + "start": { + "line": 33, + "column": 13 + }, + "end": { + "line": 33, + "column": 41 + } + }, + "object": { + "type": "MemberExpression", + "start": 734, + "end": 752, + "loc": { + "start": { + "line": 33, + "column": 13 + }, + "end": { + "line": 33, + "column": 31 + } + }, + "object": { + "type": "MemberExpression", + "start": 734, + "end": 744, + "loc": { + "start": { + "line": 33, + "column": 13 + }, + "end": { + "line": 33, + "column": 23 + } + }, + "object": { + "type": "ThisExpression", + "start": 734, + "end": 738, + "loc": { + "start": { + "line": 33, + "column": 13 + }, + "end": { + "line": 33, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "start": 739, + "end": 744, + "loc": { + "start": { + "line": 33, + "column": 18 + }, + "end": { + "line": 33, + "column": 23 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 745, + "end": 752, + "loc": { + "start": { + "line": 33, + "column": 24 + }, + "end": { + "line": 33, + "column": 31 + } + }, + "name": "profile" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 753, + "end": 762, + "loc": { + "start": { + "line": 33, + "column": 32 + }, + "end": { + "line": 33, + "column": 41 + } + }, + "name": "following" + }, + "computed": false + } + }, + "consequent": { + "type": "BlockStatement", + "start": 764, + "end": 927, + "loc": { + "start": { + "line": 33, + "column": 43 + }, + "end": { + "line": 36, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 778, + "end": 842, + "loc": { + "start": { + "line": 34, + "column": 12 + }, + "end": { + "line": 34, + "column": 76 + } + }, + "expression": { + "type": "CallExpression", + "start": 778, + "end": 842, + "loc": { + "start": { + "line": 34, + "column": 12 + }, + "end": { + "line": 34, + "column": 76 + } + }, + "callee": { + "type": "MemberExpression", + "start": 778, + "end": 797, + "loc": { + "start": { + "line": 34, + "column": 12 + }, + "end": { + "line": 34, + "column": 31 + } + }, + "object": { + "type": "MemberExpression", + "start": 778, + "end": 788, + "loc": { + "start": { + "line": 34, + "column": 12 + }, + "end": { + "line": 34, + "column": 22 + } + }, + "object": { + "type": "ThisExpression", + "start": 778, + "end": 782, + "loc": { + "start": { + "line": 34, + "column": 12 + }, + "end": { + "line": 34, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 783, + "end": 788, + "loc": { + "start": { + "line": 34, + "column": 17 + }, + "end": { + "line": 34, + "column": 22 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 789, + "end": 797, + "loc": { + "start": { + "line": 34, + "column": 23 + }, + "end": { + "line": 34, + "column": 31 + } + }, + "name": "dispatch" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 798, + "end": 841, + "loc": { + "start": { + "line": 34, + "column": 32 + }, + "end": { + "line": 34, + "column": 75 + } + }, + "callee": { + "type": "MemberExpression", + "start": 798, + "end": 819, + "loc": { + "start": { + "line": 34, + "column": 32 + }, + "end": { + "line": 34, + "column": 53 + } + }, + "object": { + "type": "Identifier", + "start": 798, + "end": 812, + "loc": { + "start": { + "line": 34, + "column": 32 + }, + "end": { + "line": 34, + "column": 46 + } + }, + "name": "ProfileActions" + }, + "property": { + "type": "Identifier", + "start": 813, + "end": 819, + "loc": { + "start": { + "line": 34, + "column": 47 + }, + "end": { + "line": 34, + "column": 53 + } + }, + "name": "follow" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 820, + "end": 840, + "loc": { + "start": { + "line": 34, + "column": 54 + }, + "end": { + "line": 34, + "column": 74 + } + }, + "object": { + "type": "MemberExpression", + "start": 820, + "end": 837, + "loc": { + "start": { + "line": 34, + "column": 54 + }, + "end": { + "line": 34, + "column": 71 + } + }, + "object": { + "type": "MemberExpression", + "start": 820, + "end": 830, + "loc": { + "start": { + "line": 34, + "column": 54 + }, + "end": { + "line": 34, + "column": 64 + } + }, + "object": { + "type": "ThisExpression", + "start": 820, + "end": 824, + "loc": { + "start": { + "line": 34, + "column": 54 + }, + "end": { + "line": 34, + "column": 58 + } + } + }, + "property": { + "type": "Identifier", + "start": 825, + "end": 830, + "loc": { + "start": { + "line": 34, + "column": 59 + }, + "end": { + "line": 34, + "column": 64 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 831, + "end": 837, + "loc": { + "start": { + "line": 34, + "column": 65 + }, + "end": { + "line": 34, + "column": 71 + } + }, + "name": "params" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 838, + "end": 840, + "loc": { + "start": { + "line": 34, + "column": 72 + }, + "end": { + "line": 34, + "column": 74 + } + }, + "name": "id" + }, + "computed": false + } + ] + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 855, + "end": 917, + "loc": { + "start": { + "line": 35, + "column": 12 + }, + "end": { + "line": 35, + "column": 74 + } + }, + "expression": { + "type": "CallExpression", + "start": 855, + "end": 917, + "loc": { + "start": { + "line": 35, + "column": 12 + }, + "end": { + "line": 35, + "column": 74 + } + }, + "callee": { + "type": "Identifier", + "start": 855, + "end": 865, + "loc": { + "start": { + "line": 35, + "column": 12 + }, + "end": { + "line": 35, + "column": 22 + } + }, + "name": "followUser" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 866, + "end": 884, + "loc": { + "start": { + "line": 35, + "column": 23 + }, + "end": { + "line": 35, + "column": 41 + } + }, + "object": { + "type": "MemberExpression", + "start": 866, + "end": 881, + "loc": { + "start": { + "line": 35, + "column": 23 + }, + "end": { + "line": 35, + "column": 38 + } + }, + "object": { + "type": "MemberExpression", + "start": 866, + "end": 876, + "loc": { + "start": { + "line": 35, + "column": 23 + }, + "end": { + "line": 35, + "column": 33 + } + }, + "object": { + "type": "ThisExpression", + "start": 866, + "end": 870, + "loc": { + "start": { + "line": 35, + "column": 23 + }, + "end": { + "line": 35, + "column": 27 + } + } + }, + "property": { + "type": "Identifier", + "start": 871, + "end": 876, + "loc": { + "start": { + "line": 35, + "column": 28 + }, + "end": { + "line": 35, + "column": 33 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 877, + "end": 881, + "loc": { + "start": { + "line": 35, + "column": 34 + }, + "end": { + "line": 35, + "column": 38 + } + }, + "name": "user" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 882, + "end": 884, + "loc": { + "start": { + "line": 35, + "column": 39 + }, + "end": { + "line": 35, + "column": 41 + } + }, + "name": "id" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 886, + "end": 906, + "loc": { + "start": { + "line": 35, + "column": 43 + }, + "end": { + "line": 35, + "column": 63 + } + }, + "object": { + "type": "MemberExpression", + "start": 886, + "end": 903, + "loc": { + "start": { + "line": 35, + "column": 43 + }, + "end": { + "line": 35, + "column": 60 + } + }, + "object": { + "type": "MemberExpression", + "start": 886, + "end": 896, + "loc": { + "start": { + "line": 35, + "column": 43 + }, + "end": { + "line": 35, + "column": 53 + } + }, + "object": { + "type": "ThisExpression", + "start": 886, + "end": 890, + "loc": { + "start": { + "line": 35, + "column": 43 + }, + "end": { + "line": 35, + "column": 47 + } + } + }, + "property": { + "type": "Identifier", + "start": 891, + "end": 896, + "loc": { + "start": { + "line": 35, + "column": 48 + }, + "end": { + "line": 35, + "column": 53 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 897, + "end": 903, + "loc": { + "start": { + "line": 35, + "column": 54 + }, + "end": { + "line": 35, + "column": 60 + } + }, + "name": "params" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 904, + "end": 906, + "loc": { + "start": { + "line": 35, + "column": 61 + }, + "end": { + "line": 35, + "column": 63 + } + }, + "name": "id" + }, + "computed": false + }, + { + "type": "Literal", + "start": 908, + "end": 916, + "loc": { + "start": { + "line": 35, + "column": 65 + }, + "end": { + "line": 35, + "column": 73 + } + }, + "value": "follow", + "rawValue": "follow", + "raw": "'follow'" + } + ] + } + } + ] + }, + "alternate": { + "type": "BlockStatement", + "start": 933, + "end": 1100, + "loc": { + "start": { + "line": 36, + "column": 15 + }, + "end": { + "line": 39, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 947, + "end": 1011, + "loc": { + "start": { + "line": 37, + "column": 12 + }, + "end": { + "line": 37, + "column": 76 + } + }, + "expression": { + "type": "CallExpression", + "start": 947, + "end": 1011, + "loc": { + "start": { + "line": 37, + "column": 12 + }, + "end": { + "line": 37, + "column": 76 + } + }, + "callee": { + "type": "Identifier", + "start": 947, + "end": 957, + "loc": { + "start": { + "line": 37, + "column": 12 + }, + "end": { + "line": 37, + "column": 22 + } + }, + "name": "followUser" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 958, + "end": 976, + "loc": { + "start": { + "line": 37, + "column": 23 + }, + "end": { + "line": 37, + "column": 41 + } + }, + "object": { + "type": "MemberExpression", + "start": 958, + "end": 973, + "loc": { + "start": { + "line": 37, + "column": 23 + }, + "end": { + "line": 37, + "column": 38 + } + }, + "object": { + "type": "MemberExpression", + "start": 958, + "end": 968, + "loc": { + "start": { + "line": 37, + "column": 23 + }, + "end": { + "line": 37, + "column": 33 + } + }, + "object": { + "type": "ThisExpression", + "start": 958, + "end": 962, + "loc": { + "start": { + "line": 37, + "column": 23 + }, + "end": { + "line": 37, + "column": 27 + } + } + }, + "property": { + "type": "Identifier", + "start": 963, + "end": 968, + "loc": { + "start": { + "line": 37, + "column": 28 + }, + "end": { + "line": 37, + "column": 33 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 969, + "end": 973, + "loc": { + "start": { + "line": 37, + "column": 34 + }, + "end": { + "line": 37, + "column": 38 + } + }, + "name": "user" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 974, + "end": 976, + "loc": { + "start": { + "line": 37, + "column": 39 + }, + "end": { + "line": 37, + "column": 41 + } + }, + "name": "id" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 978, + "end": 998, + "loc": { + "start": { + "line": 37, + "column": 43 + }, + "end": { + "line": 37, + "column": 63 + } + }, + "object": { + "type": "MemberExpression", + "start": 978, + "end": 995, + "loc": { + "start": { + "line": 37, + "column": 43 + }, + "end": { + "line": 37, + "column": 60 + } + }, + "object": { + "type": "MemberExpression", + "start": 978, + "end": 988, + "loc": { + "start": { + "line": 37, + "column": 43 + }, + "end": { + "line": 37, + "column": 53 + } + }, + "object": { + "type": "ThisExpression", + "start": 978, + "end": 982, + "loc": { + "start": { + "line": 37, + "column": 43 + }, + "end": { + "line": 37, + "column": 47 + } + } + }, + "property": { + "type": "Identifier", + "start": 983, + "end": 988, + "loc": { + "start": { + "line": 37, + "column": 48 + }, + "end": { + "line": 37, + "column": 53 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 989, + "end": 995, + "loc": { + "start": { + "line": 37, + "column": 54 + }, + "end": { + "line": 37, + "column": 60 + } + }, + "name": "params" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 996, + "end": 998, + "loc": { + "start": { + "line": 37, + "column": 61 + }, + "end": { + "line": 37, + "column": 63 + } + }, + "name": "id" + }, + "computed": false + }, + { + "type": "Literal", + "start": 1000, + "end": 1010, + "loc": { + "start": { + "line": 37, + "column": 65 + }, + "end": { + "line": 37, + "column": 75 + } + }, + "value": "unfollow", + "rawValue": "unfollow", + "raw": "'unfollow'" + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 1024, + "end": 1090, + "loc": { + "start": { + "line": 38, + "column": 12 + }, + "end": { + "line": 38, + "column": 78 + } + }, + "expression": { + "type": "CallExpression", + "start": 1024, + "end": 1090, + "loc": { + "start": { + "line": 38, + "column": 12 + }, + "end": { + "line": 38, + "column": 78 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1024, + "end": 1043, + "loc": { + "start": { + "line": 38, + "column": 12 + }, + "end": { + "line": 38, + "column": 31 + } + }, + "object": { + "type": "MemberExpression", + "start": 1024, + "end": 1034, + "loc": { + "start": { + "line": 38, + "column": 12 + }, + "end": { + "line": 38, + "column": 22 + } + }, + "object": { + "type": "ThisExpression", + "start": 1024, + "end": 1028, + "loc": { + "start": { + "line": 38, + "column": 12 + }, + "end": { + "line": 38, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 1029, + "end": 1034, + "loc": { + "start": { + "line": 38, + "column": 17 + }, + "end": { + "line": 38, + "column": 22 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1035, + "end": 1043, + "loc": { + "start": { + "line": 38, + "column": 23 + }, + "end": { + "line": 38, + "column": 31 + } + }, + "name": "dispatch" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1044, + "end": 1089, + "loc": { + "start": { + "line": 38, + "column": 32 + }, + "end": { + "line": 38, + "column": 77 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1044, + "end": 1067, + "loc": { + "start": { + "line": 38, + "column": 32 + }, + "end": { + "line": 38, + "column": 55 + } + }, + "object": { + "type": "Identifier", + "start": 1044, + "end": 1058, + "loc": { + "start": { + "line": 38, + "column": 32 + }, + "end": { + "line": 38, + "column": 46 + } + }, + "name": "ProfileActions" + }, + "property": { + "type": "Identifier", + "start": 1059, + "end": 1067, + "loc": { + "start": { + "line": 38, + "column": 47 + }, + "end": { + "line": 38, + "column": 55 + } + }, + "name": "unfollow" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 1068, + "end": 1088, + "loc": { + "start": { + "line": 38, + "column": 56 + }, + "end": { + "line": 38, + "column": 76 + } + }, + "object": { + "type": "MemberExpression", + "start": 1068, + "end": 1085, + "loc": { + "start": { + "line": 38, + "column": 56 + }, + "end": { + "line": 38, + "column": 73 + } + }, + "object": { + "type": "MemberExpression", + "start": 1068, + "end": 1078, + "loc": { + "start": { + "line": 38, + "column": 56 + }, + "end": { + "line": 38, + "column": 66 + } + }, + "object": { + "type": "ThisExpression", + "start": 1068, + "end": 1072, + "loc": { + "start": { + "line": 38, + "column": 56 + }, + "end": { + "line": 38, + "column": 60 + } + } + }, + "property": { + "type": "Identifier", + "start": 1073, + "end": 1078, + "loc": { + "start": { + "line": 38, + "column": 61 + }, + "end": { + "line": 38, + "column": 66 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1079, + "end": 1085, + "loc": { + "start": { + "line": 38, + "column": 67 + }, + "end": { + "line": 38, + "column": 73 + } + }, + "name": "params" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1086, + "end": 1088, + "loc": { + "start": { + "line": 38, + "column": 74 + }, + "end": { + "line": 38, + "column": 76 + } + }, + "name": "id" + }, + "computed": false + } + ] + } + ] + } + } + ] + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * handleFollowProfile\n ", + "start": 647, + "end": 685, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 30, + "column": 7 + } + }, + "range": [ + 647, + 685 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * handleLogout\n ", + "start": 1113, + "end": 1144, + "loc": { + "start": { + "line": 43, + "column": 4 + }, + "end": { + "line": 45, + "column": 7 + } + }, + "range": [ + 1113, + 1144 + ] + } + ] + }, + { + "type": "Identifier", + "start": 1149, + "end": 1227, + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 48, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 1149, + "end": 1161, + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 46, + "column": 16 + } + }, + "name": "handleLogout", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ArrowFunctionExpression", + "start": 1164, + "end": 1227, + "loc": { + "start": { + "line": 46, + "column": 19 + }, + "end": { + "line": 48, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 1170, + "end": 1227, + "loc": { + "start": { + "line": 46, + "column": 25 + }, + "end": { + "line": 48, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1180, + "end": 1221, + "loc": { + "start": { + "line": 47, + "column": 8 + }, + "end": { + "line": 47, + "column": 49 + } + }, + "expression": { + "type": "CallExpression", + "start": 1180, + "end": 1221, + "loc": { + "start": { + "line": 47, + "column": 8 + }, + "end": { + "line": 47, + "column": 49 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1180, + "end": 1199, + "loc": { + "start": { + "line": 47, + "column": 8 + }, + "end": { + "line": 47, + "column": 27 + } + }, + "object": { + "type": "MemberExpression", + "start": 1180, + "end": 1190, + "loc": { + "start": { + "line": 47, + "column": 8 + }, + "end": { + "line": 47, + "column": 18 + } + }, + "object": { + "type": "ThisExpression", + "start": 1180, + "end": 1184, + "loc": { + "start": { + "line": 47, + "column": 8 + }, + "end": { + "line": 47, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 1185, + "end": 1190, + "loc": { + "start": { + "line": 47, + "column": 13 + }, + "end": { + "line": 47, + "column": 18 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1191, + "end": 1199, + "loc": { + "start": { + "line": 47, + "column": 19 + }, + "end": { + "line": 47, + "column": 27 + } + }, + "name": "dispatch" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1200, + "end": 1220, + "loc": { + "start": { + "line": 47, + "column": 28 + }, + "end": { + "line": 47, + "column": 48 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1200, + "end": 1218, + "loc": { + "start": { + "line": 47, + "column": 28 + }, + "end": { + "line": 47, + "column": 46 + } + }, + "object": { + "type": "Identifier", + "start": 1200, + "end": 1211, + "loc": { + "start": { + "line": 47, + "column": 28 + }, + "end": { + "line": 47, + "column": 39 + } + }, + "name": "UserActions" + }, + "property": { + "type": "Identifier", + "start": 1212, + "end": 1218, + "loc": { + "start": { + "line": 47, + "column": 40 + }, + "end": { + "line": 47, + "column": 46 + } + }, + "name": "logout" + }, + "computed": false + }, + "arguments": [] + } + ] + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * handleLogout\n ", + "start": 1113, + "end": 1144, + "loc": { + "start": { + "line": 43, + "column": 4 + }, + "end": { + "line": 45, + "column": 7 + } + }, + "range": [ + 1113, + 1144 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * componentDidMount\n ", + "start": 1233, + "end": 1269, + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 52, + "column": 7 + } + }, + "range": [ + 1233, + 1269 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 1274, + "end": 1510, + "loc": { + "start": { + "line": 53, + "column": 4 + }, + "end": { + "line": 57, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 1274, + "end": 1291, + "loc": { + "start": { + "line": 53, + "column": 4 + }, + "end": { + "line": 53, + "column": 21 + } + }, + "name": "componentDidMount", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 1291, + "end": 1510, + "loc": { + "start": { + "line": 53, + "column": 21 + }, + "end": { + "line": 57, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 1294, + "end": 1510, + "loc": { + "start": { + "line": 53, + "column": 24 + }, + "end": { + "line": 57, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1304, + "end": 1366, + "loc": { + "start": { + "line": 54, + "column": 8 + }, + "end": { + "line": 54, + "column": 70 + } + }, + "expression": { + "type": "CallExpression", + "start": 1304, + "end": 1366, + "loc": { + "start": { + "line": 54, + "column": 8 + }, + "end": { + "line": 54, + "column": 70 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1304, + "end": 1323, + "loc": { + "start": { + "line": 54, + "column": 8 + }, + "end": { + "line": 54, + "column": 27 + } + }, + "object": { + "type": "MemberExpression", + "start": 1304, + "end": 1314, + "loc": { + "start": { + "line": 54, + "column": 8 + }, + "end": { + "line": 54, + "column": 18 + } + }, + "object": { + "type": "ThisExpression", + "start": 1304, + "end": 1308, + "loc": { + "start": { + "line": 54, + "column": 8 + }, + "end": { + "line": 54, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 1309, + "end": 1314, + "loc": { + "start": { + "line": 54, + "column": 13 + }, + "end": { + "line": 54, + "column": 18 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1315, + "end": 1323, + "loc": { + "start": { + "line": 54, + "column": 19 + }, + "end": { + "line": 54, + "column": 27 + } + }, + "name": "dispatch" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1324, + "end": 1365, + "loc": { + "start": { + "line": 54, + "column": 28 + }, + "end": { + "line": 54, + "column": 69 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1324, + "end": 1343, + "loc": { + "start": { + "line": 54, + "column": 28 + }, + "end": { + "line": 54, + "column": 47 + } + }, + "object": { + "type": "Identifier", + "start": 1324, + "end": 1338, + "loc": { + "start": { + "line": 54, + "column": 28 + }, + "end": { + "line": 54, + "column": 42 + } + }, + "name": "ProfileActions" + }, + "property": { + "type": "Identifier", + "start": 1339, + "end": 1343, + "loc": { + "start": { + "line": 54, + "column": 43 + }, + "end": { + "line": 54, + "column": 47 + } + }, + "name": "load" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 1344, + "end": 1364, + "loc": { + "start": { + "line": 54, + "column": 48 + }, + "end": { + "line": 54, + "column": 68 + } + }, + "object": { + "type": "MemberExpression", + "start": 1344, + "end": 1361, + "loc": { + "start": { + "line": 54, + "column": 48 + }, + "end": { + "line": 54, + "column": 65 + } + }, + "object": { + "type": "MemberExpression", + "start": 1344, + "end": 1354, + "loc": { + "start": { + "line": 54, + "column": 48 + }, + "end": { + "line": 54, + "column": 58 + } + }, + "object": { + "type": "ThisExpression", + "start": 1344, + "end": 1348, + "loc": { + "start": { + "line": 54, + "column": 48 + }, + "end": { + "line": 54, + "column": 52 + } + } + }, + "property": { + "type": "Identifier", + "start": 1349, + "end": 1354, + "loc": { + "start": { + "line": 54, + "column": 53 + }, + "end": { + "line": 54, + "column": 58 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1355, + "end": 1361, + "loc": { + "start": { + "line": 54, + "column": 59 + }, + "end": { + "line": 54, + "column": 65 + } + }, + "name": "params" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1362, + "end": 1364, + "loc": { + "start": { + "line": 54, + "column": 66 + }, + "end": { + "line": 54, + "column": 68 + } + }, + "name": "id" + }, + "computed": false + } + ] + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 1375, + "end": 1442, + "loc": { + "start": { + "line": 55, + "column": 8 + }, + "end": { + "line": 55, + "column": 75 + } + }, + "expression": { + "type": "CallExpression", + "start": 1375, + "end": 1442, + "loc": { + "start": { + "line": 55, + "column": 8 + }, + "end": { + "line": 55, + "column": 75 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1375, + "end": 1394, + "loc": { + "start": { + "line": 55, + "column": 8 + }, + "end": { + "line": 55, + "column": 27 + } + }, + "object": { + "type": "MemberExpression", + "start": 1375, + "end": 1385, + "loc": { + "start": { + "line": 55, + "column": 8 + }, + "end": { + "line": 55, + "column": 18 + } + }, + "object": { + "type": "ThisExpression", + "start": 1375, + "end": 1379, + "loc": { + "start": { + "line": 55, + "column": 8 + }, + "end": { + "line": 55, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 1380, + "end": 1385, + "loc": { + "start": { + "line": 55, + "column": 13 + }, + "end": { + "line": 55, + "column": 18 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1386, + "end": 1394, + "loc": { + "start": { + "line": 55, + "column": 19 + }, + "end": { + "line": 55, + "column": 27 + } + }, + "name": "dispatch" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1395, + "end": 1441, + "loc": { + "start": { + "line": 55, + "column": 28 + }, + "end": { + "line": 55, + "column": 74 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1395, + "end": 1419, + "loc": { + "start": { + "line": 55, + "column": 28 + }, + "end": { + "line": 55, + "column": 52 + } + }, + "object": { + "type": "Identifier", + "start": 1395, + "end": 1414, + "loc": { + "start": { + "line": 55, + "column": 28 + }, + "end": { + "line": 55, + "column": 47 + } + }, + "name": "ContributionActions" + }, + "property": { + "type": "Identifier", + "start": 1415, + "end": 1419, + "loc": { + "start": { + "line": 55, + "column": 48 + }, + "end": { + "line": 55, + "column": 52 + } + }, + "name": "load" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 1420, + "end": 1440, + "loc": { + "start": { + "line": 55, + "column": 53 + }, + "end": { + "line": 55, + "column": 73 + } + }, + "object": { + "type": "MemberExpression", + "start": 1420, + "end": 1437, + "loc": { + "start": { + "line": 55, + "column": 53 + }, + "end": { + "line": 55, + "column": 70 + } + }, + "object": { + "type": "MemberExpression", + "start": 1420, + "end": 1430, + "loc": { + "start": { + "line": 55, + "column": 53 + }, + "end": { + "line": 55, + "column": 63 + } + }, + "object": { + "type": "ThisExpression", + "start": 1420, + "end": 1424, + "loc": { + "start": { + "line": 55, + "column": 53 + }, + "end": { + "line": 55, + "column": 57 + } + } + }, + "property": { + "type": "Identifier", + "start": 1425, + "end": 1430, + "loc": { + "start": { + "line": 55, + "column": 58 + }, + "end": { + "line": 55, + "column": 63 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1431, + "end": 1437, + "loc": { + "start": { + "line": 55, + "column": 64 + }, + "end": { + "line": 55, + "column": 70 + } + }, + "name": "params" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1438, + "end": 1440, + "loc": { + "start": { + "line": 55, + "column": 71 + }, + "end": { + "line": 55, + "column": 73 + } + }, + "name": "id" + }, + "computed": false + } + ] + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 1451, + "end": 1504, + "loc": { + "start": { + "line": 56, + "column": 8 + }, + "end": { + "line": 56, + "column": 61 + } + }, + "expression": { + "type": "CallExpression", + "start": 1451, + "end": 1504, + "loc": { + "start": { + "line": 56, + "column": 8 + }, + "end": { + "line": 56, + "column": 61 + } + }, + "callee": { + "type": "Identifier", + "start": 1451, + "end": 1462, + "loc": { + "start": { + "line": 56, + "column": 8 + }, + "end": { + "line": 56, + "column": 19 + } + }, + "name": "viewProfile" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 1463, + "end": 1481, + "loc": { + "start": { + "line": 56, + "column": 20 + }, + "end": { + "line": 56, + "column": 38 + } + }, + "object": { + "type": "MemberExpression", + "start": 1463, + "end": 1478, + "loc": { + "start": { + "line": 56, + "column": 20 + }, + "end": { + "line": 56, + "column": 35 + } + }, + "object": { + "type": "MemberExpression", + "start": 1463, + "end": 1473, + "loc": { + "start": { + "line": 56, + "column": 20 + }, + "end": { + "line": 56, + "column": 30 + } + }, + "object": { + "type": "ThisExpression", + "start": 1463, + "end": 1467, + "loc": { + "start": { + "line": 56, + "column": 20 + }, + "end": { + "line": 56, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "start": 1468, + "end": 1473, + "loc": { + "start": { + "line": 56, + "column": 25 + }, + "end": { + "line": 56, + "column": 30 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1474, + "end": 1478, + "loc": { + "start": { + "line": 56, + "column": 31 + }, + "end": { + "line": 56, + "column": 35 + } + }, + "name": "user" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1479, + "end": 1481, + "loc": { + "start": { + "line": 56, + "column": 36 + }, + "end": { + "line": 56, + "column": 38 + } + }, + "name": "id" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 1483, + "end": 1503, + "loc": { + "start": { + "line": 56, + "column": 40 + }, + "end": { + "line": 56, + "column": 60 + } + }, + "object": { + "type": "MemberExpression", + "start": 1483, + "end": 1500, + "loc": { + "start": { + "line": 56, + "column": 40 + }, + "end": { + "line": 56, + "column": 57 + } + }, + "object": { + "type": "MemberExpression", + "start": 1483, + "end": 1493, + "loc": { + "start": { + "line": 56, + "column": 40 + }, + "end": { + "line": 56, + "column": 50 + } + }, + "object": { + "type": "ThisExpression", + "start": 1483, + "end": 1487, + "loc": { + "start": { + "line": 56, + "column": 40 + }, + "end": { + "line": 56, + "column": 44 + } + } + }, + "property": { + "type": "Identifier", + "start": 1488, + "end": 1493, + "loc": { + "start": { + "line": 56, + "column": 45 + }, + "end": { + "line": 56, + "column": 50 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1494, + "end": 1500, + "loc": { + "start": { + "line": 56, + "column": 51 + }, + "end": { + "line": 56, + "column": 57 + } + }, + "name": "params" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1501, + "end": 1503, + "loc": { + "start": { + "line": 56, + "column": 58 + }, + "end": { + "line": 56, + "column": 60 + } + }, + "name": "id" + }, + "computed": false + } + ] + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * componentDidMount\n ", + "start": 1233, + "end": 1269, + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 52, + "column": 7 + } + }, + "range": [ + 1233, + 1269 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * renderFollowingButton\n * @returns {*}\n ", + "start": 1516, + "end": 1576, + "loc": { + "start": { + "line": 59, + "column": 4 + }, + "end": { + "line": 62, + "column": 7 + } + }, + "range": [ + 1516, + 1576 + ] + } + ] + }, + { + "type": "Identifier", + "start": 1581, + "end": 2090, + "loc": { + "start": { + "line": 63, + "column": 4 + }, + "end": { + "line": 80, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 1581, + "end": 1602, + "loc": { + "start": { + "line": 63, + "column": 4 + }, + "end": { + "line": 63, + "column": 25 + } + }, + "name": "renderFollowingButton", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ArrowFunctionExpression", + "start": 1605, + "end": 2090, + "loc": { + "start": { + "line": 63, + "column": 28 + }, + "end": { + "line": 80, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 1611, + "end": 2090, + "loc": { + "start": { + "line": 63, + "column": 34 + }, + "end": { + "line": 80, + "column": 5 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 1621, + "end": 1680, + "loc": { + "start": { + "line": 64, + "column": 8 + }, + "end": { + "line": 64, + "column": 67 + } + }, + "test": { + "type": "BinaryExpression", + "start": 1625, + "end": 1667, + "loc": { + "start": { + "line": 64, + "column": 12 + }, + "end": { + "line": 64, + "column": 54 + } + }, + "left": { + "type": "MemberExpression", + "start": 1625, + "end": 1643, + "loc": { + "start": { + "line": 64, + "column": 12 + }, + "end": { + "line": 64, + "column": 30 + } + }, + "object": { + "type": "MemberExpression", + "start": 1625, + "end": 1640, + "loc": { + "start": { + "line": 64, + "column": 12 + }, + "end": { + "line": 64, + "column": 27 + } + }, + "object": { + "type": "MemberExpression", + "start": 1625, + "end": 1635, + "loc": { + "start": { + "line": 64, + "column": 12 + }, + "end": { + "line": 64, + "column": 22 + } + }, + "object": { + "type": "ThisExpression", + "start": 1625, + "end": 1629, + "loc": { + "start": { + "line": 64, + "column": 12 + }, + "end": { + "line": 64, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 1630, + "end": 1635, + "loc": { + "start": { + "line": 64, + "column": 17 + }, + "end": { + "line": 64, + "column": 22 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1636, + "end": 1640, + "loc": { + "start": { + "line": 64, + "column": 23 + }, + "end": { + "line": 64, + "column": 27 + } + }, + "name": "user" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1641, + "end": 1643, + "loc": { + "start": { + "line": 64, + "column": 28 + }, + "end": { + "line": 64, + "column": 30 + } + }, + "name": "id" + }, + "computed": false + }, + "operator": "==", + "right": { + "type": "MemberExpression", + "start": 1647, + "end": 1667, + "loc": { + "start": { + "line": 64, + "column": 34 + }, + "end": { + "line": 64, + "column": 54 + } + }, + "object": { + "type": "MemberExpression", + "start": 1647, + "end": 1664, + "loc": { + "start": { + "line": 64, + "column": 34 + }, + "end": { + "line": 64, + "column": 51 + } + }, + "object": { + "type": "MemberExpression", + "start": 1647, + "end": 1657, + "loc": { + "start": { + "line": 64, + "column": 34 + }, + "end": { + "line": 64, + "column": 44 + } + }, + "object": { + "type": "ThisExpression", + "start": 1647, + "end": 1651, + "loc": { + "start": { + "line": 64, + "column": 34 + }, + "end": { + "line": 64, + "column": 38 + } + } + }, + "property": { + "type": "Identifier", + "start": 1652, + "end": 1657, + "loc": { + "start": { + "line": 64, + "column": 39 + }, + "end": { + "line": 64, + "column": 44 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1658, + "end": 1664, + "loc": { + "start": { + "line": 64, + "column": 45 + }, + "end": { + "line": 64, + "column": 51 + } + }, + "name": "params" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1665, + "end": 1667, + "loc": { + "start": { + "line": 64, + "column": 52 + }, + "end": { + "line": 64, + "column": 54 + } + }, + "name": "id" + }, + "computed": false + } + }, + "consequent": { + "type": "ReturnStatement", + "start": 1669, + "end": 1680, + "loc": { + "start": { + "line": 64, + "column": 56 + }, + "end": { + "line": 64, + "column": 67 + } + }, + "argument": { + "type": "Literal", + "start": 1676, + "end": 1680, + "loc": { + "start": { + "line": 64, + "column": 63 + }, + "end": { + "line": 64, + "column": 67 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + } + }, + "alternate": null + }, + { + "type": "VariableDeclaration", + "start": 1690, + "end": 1722, + "loc": { + "start": { + "line": 66, + "column": 8 + }, + "end": { + "line": 66, + "column": 40 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1694, + "end": 1722, + "loc": { + "start": { + "line": 66, + "column": 12 + }, + "end": { + "line": 66, + "column": 40 + } + }, + "id": { + "type": "Identifier", + "start": 1694, + "end": 1701, + "loc": { + "start": { + "line": 66, + "column": 12 + }, + "end": { + "line": 66, + "column": 19 + } + }, + "name": "classes" + }, + "init": { + "type": "ArrayExpression", + "start": 1704, + "end": 1722, + "loc": { + "start": { + "line": 66, + "column": 22 + }, + "end": { + "line": 66, + "column": 40 + } + }, + "elements": [ + { + "type": "Literal", + "start": 1705, + "end": 1721, + "loc": { + "start": { + "line": 66, + "column": 23 + }, + "end": { + "line": 66, + "column": 39 + } + }, + "value": "follow-profile", + "rawValue": "follow-profile", + "raw": "'follow-profile'" + } + ] + } + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 1731, + "end": 1758, + "loc": { + "start": { + "line": 67, + "column": 8 + }, + "end": { + "line": 67, + "column": 35 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1735, + "end": 1758, + "loc": { + "start": { + "line": 67, + "column": 12 + }, + "end": { + "line": 67, + "column": 35 + } + }, + "id": { + "type": "Identifier", + "start": 1735, + "end": 1739, + "loc": { + "start": { + "line": 67, + "column": 12 + }, + "end": { + "line": 67, + "column": 16 + } + }, + "name": "icon" + }, + "init": { + "type": "Literal", + "start": 1742, + "end": 1758, + "loc": { + "start": { + "line": 67, + "column": 19 + }, + "end": { + "line": 67, + "column": 35 + } + }, + "value": "ion-person-add", + "rawValue": "ion-person-add", + "raw": "'ion-person-add'" + } + } + ], + "kind": "let" + }, + { + "type": "IfStatement", + "start": 1768, + "end": 1892, + "loc": { + "start": { + "line": 69, + "column": 8 + }, + "end": { + "line": 72, + "column": 9 + } + }, + "test": { + "type": "MemberExpression", + "start": 1772, + "end": 1800, + "loc": { + "start": { + "line": 69, + "column": 12 + }, + "end": { + "line": 69, + "column": 40 + } + }, + "object": { + "type": "MemberExpression", + "start": 1772, + "end": 1790, + "loc": { + "start": { + "line": 69, + "column": 12 + }, + "end": { + "line": 69, + "column": 30 + } + }, + "object": { + "type": "MemberExpression", + "start": 1772, + "end": 1782, + "loc": { + "start": { + "line": 69, + "column": 12 + }, + "end": { + "line": 69, + "column": 22 + } + }, + "object": { + "type": "ThisExpression", + "start": 1772, + "end": 1776, + "loc": { + "start": { + "line": 69, + "column": 12 + }, + "end": { + "line": 69, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 1777, + "end": 1782, + "loc": { + "start": { + "line": 69, + "column": 17 + }, + "end": { + "line": 69, + "column": 22 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1783, + "end": 1790, + "loc": { + "start": { + "line": 69, + "column": 23 + }, + "end": { + "line": 69, + "column": 30 + } + }, + "name": "profile" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1791, + "end": 1800, + "loc": { + "start": { + "line": 69, + "column": 31 + }, + "end": { + "line": 69, + "column": 40 + } + }, + "name": "following" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 1802, + "end": 1892, + "loc": { + "start": { + "line": 69, + "column": 42 + }, + "end": { + "line": 72, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1816, + "end": 1847, + "loc": { + "start": { + "line": 70, + "column": 12 + }, + "end": { + "line": 70, + "column": 43 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1816, + "end": 1847, + "loc": { + "start": { + "line": 70, + "column": 12 + }, + "end": { + "line": 70, + "column": 43 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 1816, + "end": 1823, + "loc": { + "start": { + "line": 70, + "column": 12 + }, + "end": { + "line": 70, + "column": 19 + } + }, + "name": "classes" + }, + "right": { + "type": "ArrayExpression", + "start": 1826, + "end": 1847, + "loc": { + "start": { + "line": 70, + "column": 22 + }, + "end": { + "line": 70, + "column": 43 + } + }, + "elements": [ + { + "type": "Literal", + "start": 1827, + "end": 1846, + "loc": { + "start": { + "line": 70, + "column": 23 + }, + "end": { + "line": 70, + "column": 42 + } + }, + "value": "following-profile", + "rawValue": "following-profile", + "raw": "'following-profile'" + } + ] + } + } + }, + { + "type": "ExpressionStatement", + "start": 1860, + "end": 1882, + "loc": { + "start": { + "line": 71, + "column": 12 + }, + "end": { + "line": 71, + "column": 34 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1860, + "end": 1882, + "loc": { + "start": { + "line": 71, + "column": 12 + }, + "end": { + "line": 71, + "column": 34 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 1860, + "end": 1864, + "loc": { + "start": { + "line": 71, + "column": 12 + }, + "end": { + "line": 71, + "column": 16 + } + }, + "name": "icon" + }, + "right": { + "type": "Literal", + "start": 1867, + "end": 1882, + "loc": { + "start": { + "line": 71, + "column": 19 + }, + "end": { + "line": 71, + "column": 34 + } + }, + "value": "ion-checkmark", + "rawValue": "ion-checkmark", + "raw": "'ion-checkmark'" + } + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 1902, + "end": 2084, + "loc": { + "start": { + "line": 74, + "column": 8 + }, + "end": { + "line": 79, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 1923, + "end": 2074, + "loc": { + "start": { + "line": 75, + "column": 12 + }, + "end": { + "line": 78, + "column": 18 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1923, + "end": 1993, + "loc": { + "start": { + "line": 75, + "column": 12 + }, + "end": { + "line": 75, + "column": 82 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1928, + "end": 1957, + "loc": { + "start": { + "line": 75, + "column": 17 + }, + "end": { + "line": 75, + "column": 46 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1928, + "end": 1937, + "loc": { + "start": { + "line": 75, + "column": 17 + }, + "end": { + "line": 75, + "column": 26 + } + }, + "name": "className" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 1938, + "end": 1957, + "loc": { + "start": { + "line": 75, + "column": 27 + }, + "end": { + "line": 75, + "column": 46 + } + }, + "expression": { + "type": "CallExpression", + "start": 1939, + "end": 1956, + "loc": { + "start": { + "line": 75, + "column": 28 + }, + "end": { + "line": 75, + "column": 45 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1939, + "end": 1951, + "loc": { + "start": { + "line": 75, + "column": 28 + }, + "end": { + "line": 75, + "column": 40 + } + }, + "object": { + "type": "Identifier", + "start": 1939, + "end": 1946, + "loc": { + "start": { + "line": 75, + "column": 28 + }, + "end": { + "line": 75, + "column": 35 + } + }, + "name": "classes" + }, + "property": { + "type": "Identifier", + "start": 1947, + "end": 1951, + "loc": { + "start": { + "line": 75, + "column": 36 + }, + "end": { + "line": 75, + "column": 40 + } + }, + "name": "join" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 1952, + "end": 1955, + "loc": { + "start": { + "line": 75, + "column": 41 + }, + "end": { + "line": 75, + "column": 44 + } + }, + "value": " ", + "rawValue": " ", + "raw": "' '" + } + ] + } + } + }, + { + "type": "JSXAttribute", + "start": 1958, + "end": 1992, + "loc": { + "start": { + "line": 75, + "column": 47 + }, + "end": { + "line": 75, + "column": 81 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1958, + "end": 1965, + "loc": { + "start": { + "line": 75, + "column": 47 + }, + "end": { + "line": 75, + "column": 54 + } + }, + "name": "onClick" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 1966, + "end": 1992, + "loc": { + "start": { + "line": 75, + "column": 55 + }, + "end": { + "line": 75, + "column": 81 + } + }, + "expression": { + "type": "MemberExpression", + "start": 1967, + "end": 1991, + "loc": { + "start": { + "line": 75, + "column": 56 + }, + "end": { + "line": 75, + "column": 80 + } + }, + "object": { + "type": "ThisExpression", + "start": 1967, + "end": 1971, + "loc": { + "start": { + "line": 75, + "column": 56 + }, + "end": { + "line": 75, + "column": 60 + } + } + }, + "property": { + "type": "Identifier", + "start": 1972, + "end": 1991, + "loc": { + "start": { + "line": 75, + "column": 61 + }, + "end": { + "line": 75, + "column": 80 + } + }, + "name": "handleFollowProfile" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1924, + "end": 1927, + "loc": { + "start": { + "line": 75, + "column": 13 + }, + "end": { + "line": 75, + "column": 16 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2068, + "end": 2074, + "loc": { + "start": { + "line": 78, + "column": 12 + }, + "end": { + "line": 78, + "column": 18 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2070, + "end": 2073, + "loc": { + "start": { + "line": 78, + "column": 14 + }, + "end": { + "line": 78, + "column": 17 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 1993, + "end": 2010, + "loc": { + "start": { + "line": 75, + "column": 82 + }, + "end": { + "line": 76, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 2010, + "end": 2031, + "loc": { + "start": { + "line": 76, + "column": 16 + }, + "end": { + "line": 76, + "column": 37 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2010, + "end": 2031, + "loc": { + "start": { + "line": 76, + "column": 16 + }, + "end": { + "line": 76, + "column": 37 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2013, + "end": 2029, + "loc": { + "start": { + "line": 76, + "column": 19 + }, + "end": { + "line": 76, + "column": 35 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2013, + "end": 2022, + "loc": { + "start": { + "line": 76, + "column": 19 + }, + "end": { + "line": 76, + "column": 28 + } + }, + "name": "className" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2023, + "end": 2029, + "loc": { + "start": { + "line": 76, + "column": 29 + }, + "end": { + "line": 76, + "column": 35 + } + }, + "expression": { + "type": "Identifier", + "start": 2024, + "end": 2028, + "loc": { + "start": { + "line": 76, + "column": 30 + }, + "end": { + "line": 76, + "column": 34 + } + }, + "name": "icon" + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2011, + "end": 2012, + "loc": { + "start": { + "line": 76, + "column": 17 + }, + "end": { + "line": 76, + "column": 18 + } + }, + "name": "i" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 2031, + "end": 2048, + "loc": { + "start": { + "line": 76, + "column": 37 + }, + "end": { + "line": 77, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 2048, + "end": 2055, + "loc": { + "start": { + "line": 77, + "column": 16 + }, + "end": { + "line": 77, + "column": 23 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2048, + "end": 2055, + "loc": { + "start": { + "line": 77, + "column": 16 + }, + "end": { + "line": 77, + "column": 23 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 2049, + "end": 2052, + "loc": { + "start": { + "line": 77, + "column": 17 + }, + "end": { + "line": 77, + "column": 20 + } + }, + "name": "Ink" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 2055, + "end": 2068, + "loc": { + "start": { + "line": 77, + "column": 23 + }, + "end": { + "line": 78, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * renderFollowingButton\n * @returns {*}\n ", + "start": 1516, + "end": 1576, + "loc": { + "start": { + "line": 59, + "column": 4 + }, + "end": { + "line": 62, + "column": 7 + } + }, + "range": [ + 1516, + 1576 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * renderNavigationOrStats\n * @returns markup\n ", + "start": 2096, + "end": 2161, + "loc": { + "start": { + "line": 82, + "column": 4 + }, + "end": { + "line": 85, + "column": 7 + } + }, + "range": [ + 2096, + 2161 + ] + } + ] + }, + { + "type": "Identifier", + "start": 2166, + "end": 2706, + "loc": { + "start": { + "line": 86, + "column": 4 + }, + "end": { + "line": 100, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 2166, + "end": 2189, + "loc": { + "start": { + "line": 86, + "column": 4 + }, + "end": { + "line": 86, + "column": 27 + } + }, + "name": "renderNavigationOrStats", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ArrowFunctionExpression", + "start": 2192, + "end": 2706, + "loc": { + "start": { + "line": 86, + "column": 30 + }, + "end": { + "line": 100, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 2198, + "end": 2706, + "loc": { + "start": { + "line": 86, + "column": 36 + }, + "end": { + "line": 100, + "column": 5 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 2208, + "end": 2541, + "loc": { + "start": { + "line": 87, + "column": 8 + }, + "end": { + "line": 94, + "column": 9 + } + }, + "test": { + "type": "BinaryExpression", + "start": 2212, + "end": 2254, + "loc": { + "start": { + "line": 87, + "column": 12 + }, + "end": { + "line": 87, + "column": 54 + } + }, + "left": { + "type": "MemberExpression", + "start": 2212, + "end": 2230, + "loc": { + "start": { + "line": 87, + "column": 12 + }, + "end": { + "line": 87, + "column": 30 + } + }, + "object": { + "type": "MemberExpression", + "start": 2212, + "end": 2227, + "loc": { + "start": { + "line": 87, + "column": 12 + }, + "end": { + "line": 87, + "column": 27 + } + }, + "object": { + "type": "MemberExpression", + "start": 2212, + "end": 2222, + "loc": { + "start": { + "line": 87, + "column": 12 + }, + "end": { + "line": 87, + "column": 22 + } + }, + "object": { + "type": "ThisExpression", + "start": 2212, + "end": 2216, + "loc": { + "start": { + "line": 87, + "column": 12 + }, + "end": { + "line": 87, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 2217, + "end": 2222, + "loc": { + "start": { + "line": 87, + "column": 17 + }, + "end": { + "line": 87, + "column": 22 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2223, + "end": 2227, + "loc": { + "start": { + "line": 87, + "column": 23 + }, + "end": { + "line": 87, + "column": 27 + } + }, + "name": "user" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2228, + "end": 2230, + "loc": { + "start": { + "line": 87, + "column": 28 + }, + "end": { + "line": 87, + "column": 30 + } + }, + "name": "id" + }, + "computed": false + }, + "operator": "==", + "right": { + "type": "MemberExpression", + "start": 2234, + "end": 2254, + "loc": { + "start": { + "line": 87, + "column": 34 + }, + "end": { + "line": 87, + "column": 54 + } + }, + "object": { + "type": "MemberExpression", + "start": 2234, + "end": 2251, + "loc": { + "start": { + "line": 87, + "column": 34 + }, + "end": { + "line": 87, + "column": 51 + } + }, + "object": { + "type": "MemberExpression", + "start": 2234, + "end": 2244, + "loc": { + "start": { + "line": 87, + "column": 34 + }, + "end": { + "line": 87, + "column": 44 + } + }, + "object": { + "type": "ThisExpression", + "start": 2234, + "end": 2238, + "loc": { + "start": { + "line": 87, + "column": 34 + }, + "end": { + "line": 87, + "column": 38 + } + } + }, + "property": { + "type": "Identifier", + "start": 2239, + "end": 2244, + "loc": { + "start": { + "line": 87, + "column": 39 + }, + "end": { + "line": 87, + "column": 44 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2245, + "end": 2251, + "loc": { + "start": { + "line": 87, + "column": 45 + }, + "end": { + "line": 87, + "column": 51 + } + }, + "name": "params" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2252, + "end": 2254, + "loc": { + "start": { + "line": 87, + "column": 52 + }, + "end": { + "line": 87, + "column": 54 + } + }, + "name": "id" + }, + "computed": false + } + }, + "consequent": { + "type": "BlockStatement", + "start": 2256, + "end": 2541, + "loc": { + "start": { + "line": 87, + "column": 56 + }, + "end": { + "line": 94, + "column": 9 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 2270, + "end": 2531, + "loc": { + "start": { + "line": 88, + "column": 12 + }, + "end": { + "line": 93, + "column": 13 + } + }, + "argument": { + "type": "JSXElement", + "start": 2295, + "end": 2517, + "loc": { + "start": { + "line": 89, + "column": 16 + }, + "end": { + "line": 92, + "column": 65 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2295, + "end": 2517, + "loc": { + "start": { + "line": 89, + "column": 16 + }, + "end": { + "line": 92, + "column": 65 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2327, + "end": 2356, + "loc": { + "start": { + "line": 90, + "column": 20 + }, + "end": { + "line": 90, + "column": 49 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2327, + "end": 2333, + "loc": { + "start": { + "line": 90, + "column": 20 + }, + "end": { + "line": 90, + "column": 26 + } + }, + "name": "userID" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2334, + "end": 2356, + "loc": { + "start": { + "line": 90, + "column": 27 + }, + "end": { + "line": 90, + "column": 49 + } + }, + "expression": { + "type": "MemberExpression", + "start": 2335, + "end": 2355, + "loc": { + "start": { + "line": 90, + "column": 28 + }, + "end": { + "line": 90, + "column": 48 + } + }, + "object": { + "type": "MemberExpression", + "start": 2335, + "end": 2352, + "loc": { + "start": { + "line": 90, + "column": 28 + }, + "end": { + "line": 90, + "column": 45 + } + }, + "object": { + "type": "MemberExpression", + "start": 2335, + "end": 2345, + "loc": { + "start": { + "line": 90, + "column": 28 + }, + "end": { + "line": 90, + "column": 38 + } + }, + "object": { + "type": "ThisExpression", + "start": 2335, + "end": 2339, + "loc": { + "start": { + "line": 90, + "column": 28 + }, + "end": { + "line": 90, + "column": 32 + } + } + }, + "property": { + "type": "Identifier", + "start": 2340, + "end": 2345, + "loc": { + "start": { + "line": 90, + "column": 33 + }, + "end": { + "line": 90, + "column": 38 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2346, + "end": 2352, + "loc": { + "start": { + "line": 90, + "column": 39 + }, + "end": { + "line": 90, + "column": 45 + } + }, + "name": "params" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2353, + "end": 2355, + "loc": { + "start": { + "line": 90, + "column": 46 + }, + "end": { + "line": 90, + "column": 48 + } + }, + "name": "id" + }, + "computed": false + } + } + }, + { + "type": "JSXAttribute", + "start": 2377, + "end": 2451, + "loc": { + "start": { + "line": 91, + "column": 20 + }, + "end": { + "line": 91, + "column": 94 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2377, + "end": 2390, + "loc": { + "start": { + "line": 91, + "column": 20 + }, + "end": { + "line": 91, + "column": 33 + } + }, + "name": "incomingCount" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2391, + "end": 2451, + "loc": { + "start": { + "line": 91, + "column": 34 + }, + "end": { + "line": 91, + "column": 94 + } + }, + "expression": { + "type": "MemberExpression", + "start": 2392, + "end": 2450, + "loc": { + "start": { + "line": 91, + "column": 35 + }, + "end": { + "line": 91, + "column": 93 + } + }, + "object": { + "type": "CallExpression", + "start": 2392, + "end": 2443, + "loc": { + "start": { + "line": 91, + "column": 35 + }, + "end": { + "line": 91, + "column": 86 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2392, + "end": 2418, + "loc": { + "start": { + "line": 91, + "column": 35 + }, + "end": { + "line": 91, + "column": 61 + } + }, + "object": { + "type": "MemberExpression", + "start": 2392, + "end": 2411, + "loc": { + "start": { + "line": 91, + "column": 35 + }, + "end": { + "line": 91, + "column": 54 + } + }, + "object": { + "type": "MemberExpression", + "start": 2392, + "end": 2402, + "loc": { + "start": { + "line": 91, + "column": 35 + }, + "end": { + "line": 91, + "column": 45 + } + }, + "object": { + "type": "ThisExpression", + "start": 2392, + "end": 2396, + "loc": { + "start": { + "line": 91, + "column": 35 + }, + "end": { + "line": 91, + "column": 39 + } + } + }, + "property": { + "type": "Identifier", + "start": 2397, + "end": 2402, + "loc": { + "start": { + "line": 91, + "column": 40 + }, + "end": { + "line": 91, + "column": 45 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2403, + "end": 2411, + "loc": { + "start": { + "line": 91, + "column": 46 + }, + "end": { + "line": 91, + "column": 54 + } + }, + "name": "activity" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2412, + "end": 2418, + "loc": { + "start": { + "line": 91, + "column": 55 + }, + "end": { + "line": 91, + "column": 61 + } + }, + "name": "filter" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 2419, + "end": 2442, + "loc": { + "start": { + "line": 91, + "column": 62 + }, + "end": { + "line": 91, + "column": 85 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2419, + "end": 2420, + "loc": { + "start": { + "line": 91, + "column": 62 + }, + "end": { + "line": 91, + "column": 63 + } + }, + "name": "a" + } + ], + "body": { + "type": "BinaryExpression", + "start": 2424, + "end": 2442, + "loc": { + "start": { + "line": 91, + "column": 67 + }, + "end": { + "line": 91, + "column": 85 + } + }, + "left": { + "type": "MemberExpression", + "start": 2424, + "end": 2430, + "loc": { + "start": { + "line": 91, + "column": 67 + }, + "end": { + "line": 91, + "column": 73 + } + }, + "object": { + "type": "Identifier", + "start": 2424, + "end": 2425, + "loc": { + "start": { + "line": 91, + "column": 67 + }, + "end": { + "line": 91, + "column": 68 + } + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 2426, + "end": 2430, + "loc": { + "start": { + "line": 91, + "column": 69 + }, + "end": { + "line": 91, + "column": 73 + } + }, + "name": "type" + }, + "computed": false + }, + "operator": "!=", + "right": { + "type": "Literal", + "start": 2434, + "end": 2442, + "loc": { + "start": { + "line": 91, + "column": 77 + }, + "end": { + "line": 91, + "column": 85 + } + }, + "value": "follow", + "rawValue": "follow", + "raw": "'follow'" + } + } + } + ] + }, + "property": { + "type": "Identifier", + "start": 2444, + "end": 2450, + "loc": { + "start": { + "line": 91, + "column": 87 + }, + "end": { + "line": 91, + "column": 93 + } + }, + "name": "length" + }, + "computed": false + } + } + }, + { + "type": "JSXAttribute", + "start": 2472, + "end": 2515, + "loc": { + "start": { + "line": 92, + "column": 20 + }, + "end": { + "line": 92, + "column": 63 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2472, + "end": 2486, + "loc": { + "start": { + "line": 92, + "column": 20 + }, + "end": { + "line": 92, + "column": 34 + } + }, + "name": "followingCount" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2487, + "end": 2515, + "loc": { + "start": { + "line": 92, + "column": 35 + }, + "end": { + "line": 92, + "column": 63 + } + }, + "expression": { + "type": "MemberExpression", + "start": 2488, + "end": 2514, + "loc": { + "start": { + "line": 92, + "column": 36 + }, + "end": { + "line": 92, + "column": 62 + } + }, + "object": { + "type": "MemberExpression", + "start": 2488, + "end": 2507, + "loc": { + "start": { + "line": 92, + "column": 36 + }, + "end": { + "line": 92, + "column": 55 + } + }, + "object": { + "type": "MemberExpression", + "start": 2488, + "end": 2498, + "loc": { + "start": { + "line": 92, + "column": 36 + }, + "end": { + "line": 92, + "column": 46 + } + }, + "object": { + "type": "ThisExpression", + "start": 2488, + "end": 2492, + "loc": { + "start": { + "line": 92, + "column": 36 + }, + "end": { + "line": 92, + "column": 40 + } + } + }, + "property": { + "type": "Identifier", + "start": 2493, + "end": 2498, + "loc": { + "start": { + "line": 92, + "column": 41 + }, + "end": { + "line": 92, + "column": 46 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2499, + "end": 2507, + "loc": { + "start": { + "line": 92, + "column": 47 + }, + "end": { + "line": 92, + "column": 55 + } + }, + "name": "activity" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2508, + "end": 2514, + "loc": { + "start": { + "line": 92, + "column": 56 + }, + "end": { + "line": 92, + "column": 62 + } + }, + "name": "length" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2296, + "end": 2306, + "loc": { + "start": { + "line": 89, + "column": 17 + }, + "end": { + "line": 89, + "column": 27 + } + }, + "name": "Navigation" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [], + "parenthesizedExpression": true + } + } + ] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 2550, + "end": 2700, + "loc": { + "start": { + "line": 95, + "column": 8 + }, + "end": { + "line": 99, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 2571, + "end": 2690, + "loc": { + "start": { + "line": 96, + "column": 12 + }, + "end": { + "line": 98, + "column": 58 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2571, + "end": 2690, + "loc": { + "start": { + "line": 96, + "column": 12 + }, + "end": { + "line": 98, + "column": 58 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2602, + "end": 2631, + "loc": { + "start": { + "line": 97, + "column": 16 + }, + "end": { + "line": 97, + "column": 45 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2602, + "end": 2608, + "loc": { + "start": { + "line": 97, + "column": 16 + }, + "end": { + "line": 97, + "column": 22 + } + }, + "name": "userID" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2609, + "end": 2631, + "loc": { + "start": { + "line": 97, + "column": 23 + }, + "end": { + "line": 97, + "column": 45 + } + }, + "expression": { + "type": "MemberExpression", + "start": 2610, + "end": 2630, + "loc": { + "start": { + "line": 97, + "column": 24 + }, + "end": { + "line": 97, + "column": 44 + } + }, + "object": { + "type": "MemberExpression", + "start": 2610, + "end": 2627, + "loc": { + "start": { + "line": 97, + "column": 24 + }, + "end": { + "line": 97, + "column": 41 + } + }, + "object": { + "type": "MemberExpression", + "start": 2610, + "end": 2620, + "loc": { + "start": { + "line": 97, + "column": 24 + }, + "end": { + "line": 97, + "column": 34 + } + }, + "object": { + "type": "ThisExpression", + "start": 2610, + "end": 2614, + "loc": { + "start": { + "line": 97, + "column": 24 + }, + "end": { + "line": 97, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "start": 2615, + "end": 2620, + "loc": { + "start": { + "line": 97, + "column": 29 + }, + "end": { + "line": 97, + "column": 34 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2621, + "end": 2627, + "loc": { + "start": { + "line": 97, + "column": 35 + }, + "end": { + "line": 97, + "column": 41 + } + }, + "name": "params" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2628, + "end": 2630, + "loc": { + "start": { + "line": 97, + "column": 42 + }, + "end": { + "line": 97, + "column": 44 + } + }, + "name": "id" + }, + "computed": false + } + } + }, + { + "type": "JSXAttribute", + "start": 2648, + "end": 2688, + "loc": { + "start": { + "line": 98, + "column": 16 + }, + "end": { + "line": 98, + "column": 56 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2648, + "end": 2661, + "loc": { + "start": { + "line": 98, + "column": 16 + }, + "end": { + "line": 98, + "column": 29 + } + }, + "name": "contributions" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2662, + "end": 2688, + "loc": { + "start": { + "line": 98, + "column": 30 + }, + "end": { + "line": 98, + "column": 56 + } + }, + "expression": { + "type": "MemberExpression", + "start": 2663, + "end": 2687, + "loc": { + "start": { + "line": 98, + "column": 31 + }, + "end": { + "line": 98, + "column": 55 + } + }, + "object": { + "type": "MemberExpression", + "start": 2663, + "end": 2673, + "loc": { + "start": { + "line": 98, + "column": 31 + }, + "end": { + "line": 98, + "column": 41 + } + }, + "object": { + "type": "ThisExpression", + "start": 2663, + "end": 2667, + "loc": { + "start": { + "line": 98, + "column": 31 + }, + "end": { + "line": 98, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "start": 2668, + "end": 2673, + "loc": { + "start": { + "line": 98, + "column": 36 + }, + "end": { + "line": 98, + "column": 41 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2674, + "end": 2687, + "loc": { + "start": { + "line": 98, + "column": 42 + }, + "end": { + "line": 98, + "column": 55 + } + }, + "name": "contributions" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2572, + "end": 2585, + "loc": { + "start": { + "line": 96, + "column": 13 + }, + "end": { + "line": 96, + "column": 26 + } + }, + "name": "Contributions" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [], + "parenthesizedExpression": true + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * renderNavigationOrStats\n * @returns markup\n ", + "start": 2096, + "end": 2161, + "loc": { + "start": { + "line": 82, + "column": 4 + }, + "end": { + "line": 85, + "column": 7 + } + }, + "range": [ + 2096, + 2161 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 2712, + "end": 2760, + "loc": { + "start": { + "line": 102, + "column": 4 + }, + "end": { + "line": 105, + "column": 7 + } + }, + "range": [ + 2712, + 2760 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 2765, + "end": 4269, + "loc": { + "start": { + "line": 106, + "column": 4 + }, + "end": { + "line": 139, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 2765, + "end": 2771, + "loc": { + "start": { + "line": 106, + "column": 4 + }, + "end": { + "line": 106, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 2771, + "end": 4269, + "loc": { + "start": { + "line": 106, + "column": 10 + }, + "end": { + "line": 139, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 2774, + "end": 4269, + "loc": { + "start": { + "line": 106, + "column": 13 + }, + "end": { + "line": 139, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 2784, + "end": 4263, + "loc": { + "start": { + "line": 107, + "column": 8 + }, + "end": { + "line": 138, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 2805, + "end": 4253, + "loc": { + "start": { + "line": 108, + "column": 12 + }, + "end": { + "line": 137, + "column": 18 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2805, + "end": 2827, + "loc": { + "start": { + "line": 108, + "column": 12 + }, + "end": { + "line": 108, + "column": 34 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2810, + "end": 2826, + "loc": { + "start": { + "line": 108, + "column": 17 + }, + "end": { + "line": 108, + "column": 33 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2810, + "end": 2819, + "loc": { + "start": { + "line": 108, + "column": 17 + }, + "end": { + "line": 108, + "column": 26 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 2820, + "end": 2826, + "loc": { + "start": { + "line": 108, + "column": 27 + }, + "end": { + "line": 108, + "column": 33 + } + }, + "value": "page", + "rawValue": null, + "raw": "\"page\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2806, + "end": 2809, + "loc": { + "start": { + "line": 108, + "column": 13 + }, + "end": { + "line": 108, + "column": 16 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 4247, + "end": 4253, + "loc": { + "start": { + "line": 137, + "column": 12 + }, + "end": { + "line": 137, + "column": 18 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4249, + "end": 4252, + "loc": { + "start": { + "line": 137, + "column": 14 + }, + "end": { + "line": 137, + "column": 17 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 2827, + "end": 2844, + "loc": { + "start": { + "line": 108, + "column": 34 + }, + "end": { + "line": 109, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 2844, + "end": 2874, + "loc": { + "start": { + "line": 109, + "column": 16 + }, + "end": { + "line": 109, + "column": 46 + } + }, + "expression": { + "type": "CallExpression", + "start": 2845, + "end": 2873, + "loc": { + "start": { + "line": 109, + "column": 17 + }, + "end": { + "line": 109, + "column": 45 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2845, + "end": 2871, + "loc": { + "start": { + "line": 109, + "column": 17 + }, + "end": { + "line": 109, + "column": 43 + } + }, + "object": { + "type": "ThisExpression", + "start": 2845, + "end": 2849, + "loc": { + "start": { + "line": 109, + "column": 17 + }, + "end": { + "line": 109, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "start": 2850, + "end": 2871, + "loc": { + "start": { + "line": 109, + "column": 22 + }, + "end": { + "line": 109, + "column": 43 + } + }, + "name": "renderFollowingButton" + }, + "computed": false + }, + "arguments": [] + } + }, + { + "type": "Literal", + "start": 2874, + "end": 2891, + "loc": { + "start": { + "line": 109, + "column": 46 + }, + "end": { + "line": 110, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 2891, + "end": 4234, + "loc": { + "start": { + "line": 110, + "column": 16 + }, + "end": { + "line": 136, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2891, + "end": 2916, + "loc": { + "start": { + "line": 110, + "column": 16 + }, + "end": { + "line": 110, + "column": 41 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2896, + "end": 2915, + "loc": { + "start": { + "line": 110, + "column": 21 + }, + "end": { + "line": 110, + "column": 40 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2896, + "end": 2905, + "loc": { + "start": { + "line": 110, + "column": 21 + }, + "end": { + "line": 110, + "column": 30 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 2906, + "end": 2915, + "loc": { + "start": { + "line": 110, + "column": 31 + }, + "end": { + "line": 110, + "column": 40 + } + }, + "value": "profile", + "rawValue": null, + "raw": "\"profile\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2892, + "end": 2895, + "loc": { + "start": { + "line": 110, + "column": 17 + }, + "end": { + "line": 110, + "column": 20 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 4228, + "end": 4234, + "loc": { + "start": { + "line": 136, + "column": 16 + }, + "end": { + "line": 136, + "column": 22 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4230, + "end": 4233, + "loc": { + "start": { + "line": 136, + "column": 18 + }, + "end": { + "line": 136, + "column": 21 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 2916, + "end": 2937, + "loc": { + "start": { + "line": 110, + "column": 41 + }, + "end": { + "line": 111, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 2937, + "end": 2953, + "loc": { + "start": { + "line": 111, + "column": 20 + }, + "end": { + "line": 111, + "column": 36 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2937, + "end": 2941, + "loc": { + "start": { + "line": 111, + "column": 20 + }, + "end": { + "line": 111, + "column": 24 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 2938, + "end": 2940, + "loc": { + "start": { + "line": 111, + "column": 21 + }, + "end": { + "line": 111, + "column": 23 + } + }, + "name": "h1" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2948, + "end": 2953, + "loc": { + "start": { + "line": 111, + "column": 31 + }, + "end": { + "line": 111, + "column": 36 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2950, + "end": 2952, + "loc": { + "start": { + "line": 111, + "column": 33 + }, + "end": { + "line": 111, + "column": 35 + } + }, + "name": "h1" + } + }, + "children": [ + { + "type": "Literal", + "start": 2941, + "end": 2948, + "loc": { + "start": { + "line": 111, + "column": 24 + }, + "end": { + "line": 111, + "column": 31 + } + }, + "value": "Profile", + "rawValue": null, + "raw": "Profile" + } + ] + }, + { + "type": "Literal", + "start": 2953, + "end": 2974, + "loc": { + "start": { + "line": 111, + "column": 36 + }, + "end": { + "line": 112, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 2974, + "end": 3957, + "loc": { + "start": { + "line": 112, + "column": 20 + }, + "end": { + "line": 129, + "column": 26 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2974, + "end": 2998, + "loc": { + "start": { + "line": 112, + "column": 20 + }, + "end": { + "line": 112, + "column": 44 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2979, + "end": 2997, + "loc": { + "start": { + "line": 112, + "column": 25 + }, + "end": { + "line": 112, + "column": 43 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2979, + "end": 2988, + "loc": { + "start": { + "line": 112, + "column": 25 + }, + "end": { + "line": 112, + "column": 34 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 2989, + "end": 2997, + "loc": { + "start": { + "line": 112, + "column": 35 + }, + "end": { + "line": 112, + "column": 43 + } + }, + "value": "artist", + "rawValue": null, + "raw": "\"artist\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2975, + "end": 2978, + "loc": { + "start": { + "line": 112, + "column": 21 + }, + "end": { + "line": 112, + "column": 24 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3951, + "end": 3957, + "loc": { + "start": { + "line": 129, + "column": 20 + }, + "end": { + "line": 129, + "column": 26 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3953, + "end": 3956, + "loc": { + "start": { + "line": 129, + "column": 22 + }, + "end": { + "line": 129, + "column": 25 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 2998, + "end": 3023, + "loc": { + "start": { + "line": 112, + "column": 44 + }, + "end": { + "line": 113, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 3023, + "end": 3149, + "loc": { + "start": { + "line": 113, + "column": 24 + }, + "end": { + "line": 115, + "column": 30 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3023, + "end": 3047, + "loc": { + "start": { + "line": 113, + "column": 24 + }, + "end": { + "line": 113, + "column": 48 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3028, + "end": 3046, + "loc": { + "start": { + "line": 113, + "column": 29 + }, + "end": { + "line": 113, + "column": 47 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3028, + "end": 3037, + "loc": { + "start": { + "line": 113, + "column": 29 + }, + "end": { + "line": 113, + "column": 38 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 3038, + "end": 3046, + "loc": { + "start": { + "line": 113, + "column": 39 + }, + "end": { + "line": 113, + "column": 47 + } + }, + "value": "avatar", + "rawValue": null, + "raw": "\"avatar\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3024, + "end": 3027, + "loc": { + "start": { + "line": 113, + "column": 25 + }, + "end": { + "line": 113, + "column": 28 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3143, + "end": 3149, + "loc": { + "start": { + "line": 115, + "column": 24 + }, + "end": { + "line": 115, + "column": 30 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3145, + "end": 3148, + "loc": { + "start": { + "line": 115, + "column": 26 + }, + "end": { + "line": 115, + "column": 29 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 3047, + "end": 3076, + "loc": { + "start": { + "line": 113, + "column": 48 + }, + "end": { + "line": 114, + "column": 28 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 3076, + "end": 3118, + "loc": { + "start": { + "line": 114, + "column": 28 + }, + "end": { + "line": 114, + "column": 70 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3076, + "end": 3118, + "loc": { + "start": { + "line": 114, + "column": 28 + }, + "end": { + "line": 114, + "column": 70 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3084, + "end": 3116, + "loc": { + "start": { + "line": 114, + "column": 36 + }, + "end": { + "line": 114, + "column": 68 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3084, + "end": 3089, + "loc": { + "start": { + "line": 114, + "column": 36 + }, + "end": { + "line": 114, + "column": 41 + } + }, + "name": "email" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 3090, + "end": 3116, + "loc": { + "start": { + "line": 114, + "column": 42 + }, + "end": { + "line": 114, + "column": 68 + } + }, + "expression": { + "type": "MemberExpression", + "start": 3091, + "end": 3115, + "loc": { + "start": { + "line": 114, + "column": 43 + }, + "end": { + "line": 114, + "column": 67 + } + }, + "object": { + "type": "MemberExpression", + "start": 3091, + "end": 3109, + "loc": { + "start": { + "line": 114, + "column": 43 + }, + "end": { + "line": 114, + "column": 61 + } + }, + "object": { + "type": "MemberExpression", + "start": 3091, + "end": 3101, + "loc": { + "start": { + "line": 114, + "column": 43 + }, + "end": { + "line": 114, + "column": 53 + } + }, + "object": { + "type": "ThisExpression", + "start": 3091, + "end": 3095, + "loc": { + "start": { + "line": 114, + "column": 43 + }, + "end": { + "line": 114, + "column": 47 + } + } + }, + "property": { + "type": "Identifier", + "start": 3096, + "end": 3101, + "loc": { + "start": { + "line": 114, + "column": 48 + }, + "end": { + "line": 114, + "column": 53 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3102, + "end": 3109, + "loc": { + "start": { + "line": 114, + "column": 54 + }, + "end": { + "line": 114, + "column": 61 + } + }, + "name": "profile" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3110, + "end": 3115, + "loc": { + "start": { + "line": 114, + "column": 62 + }, + "end": { + "line": 114, + "column": 67 + } + }, + "name": "email" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3077, + "end": 3083, + "loc": { + "start": { + "line": 114, + "column": 29 + }, + "end": { + "line": 114, + "column": 35 + } + }, + "name": "Avatar" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 3118, + "end": 3143, + "loc": { + "start": { + "line": 114, + "column": 70 + }, + "end": { + "line": 115, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 3149, + "end": 3174, + "loc": { + "start": { + "line": 115, + "column": 30 + }, + "end": { + "line": 116, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 3174, + "end": 3341, + "loc": { + "start": { + "line": 116, + "column": 24 + }, + "end": { + "line": 118, + "column": 30 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3174, + "end": 3196, + "loc": { + "start": { + "line": 116, + "column": 24 + }, + "end": { + "line": 116, + "column": 46 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3179, + "end": 3195, + "loc": { + "start": { + "line": 116, + "column": 29 + }, + "end": { + "line": 116, + "column": 45 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3179, + "end": 3188, + "loc": { + "start": { + "line": 116, + "column": 29 + }, + "end": { + "line": 116, + "column": 38 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 3189, + "end": 3195, + "loc": { + "start": { + "line": 116, + "column": 39 + }, + "end": { + "line": 116, + "column": 45 + } + }, + "value": "name", + "rawValue": null, + "raw": "\"name\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3175, + "end": 3178, + "loc": { + "start": { + "line": 116, + "column": 25 + }, + "end": { + "line": 116, + "column": 28 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3335, + "end": 3341, + "loc": { + "start": { + "line": 118, + "column": 24 + }, + "end": { + "line": 118, + "column": 30 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3337, + "end": 3340, + "loc": { + "start": { + "line": 118, + "column": 26 + }, + "end": { + "line": 118, + "column": 29 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 3196, + "end": 3225, + "loc": { + "start": { + "line": 116, + "column": 46 + }, + "end": { + "line": 117, + "column": 28 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 3225, + "end": 3256, + "loc": { + "start": { + "line": 117, + "column": 28 + }, + "end": { + "line": 117, + "column": 59 + } + }, + "expression": { + "type": "MemberExpression", + "start": 3226, + "end": 3255, + "loc": { + "start": { + "line": 117, + "column": 29 + }, + "end": { + "line": 117, + "column": 58 + } + }, + "object": { + "type": "MemberExpression", + "start": 3226, + "end": 3244, + "loc": { + "start": { + "line": 117, + "column": 29 + }, + "end": { + "line": 117, + "column": 47 + } + }, + "object": { + "type": "MemberExpression", + "start": 3226, + "end": 3236, + "loc": { + "start": { + "line": 117, + "column": 29 + }, + "end": { + "line": 117, + "column": 39 + } + }, + "object": { + "type": "ThisExpression", + "start": 3226, + "end": 3230, + "loc": { + "start": { + "line": 117, + "column": 29 + }, + "end": { + "line": 117, + "column": 33 + } + } + }, + "property": { + "type": "Identifier", + "start": 3231, + "end": 3236, + "loc": { + "start": { + "line": 117, + "column": 34 + }, + "end": { + "line": 117, + "column": 39 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3237, + "end": 3244, + "loc": { + "start": { + "line": 117, + "column": 40 + }, + "end": { + "line": 117, + "column": 47 + } + }, + "name": "profile" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3245, + "end": 3255, + "loc": { + "start": { + "line": 117, + "column": 48 + }, + "end": { + "line": 117, + "column": 58 + } + }, + "name": "first_name" + }, + "computed": false + } + }, + { + "type": "Literal", + "start": 3256, + "end": 3257, + "loc": { + "start": { + "line": 117, + "column": 59 + }, + "end": { + "line": 117, + "column": 60 + } + }, + "value": " ", + "rawValue": null, + "raw": " " + }, + { + "type": "JSXElement", + "start": 3257, + "end": 3263, + "loc": { + "start": { + "line": 117, + "column": 60 + }, + "end": { + "line": 117, + "column": 66 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3257, + "end": 3263, + "loc": { + "start": { + "line": 117, + "column": 60 + }, + "end": { + "line": 117, + "column": 66 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 3258, + "end": 3260, + "loc": { + "start": { + "line": 117, + "column": 61 + }, + "end": { + "line": 117, + "column": 63 + } + }, + "name": "br" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 3263, + "end": 3264, + "loc": { + "start": { + "line": 117, + "column": 66 + }, + "end": { + "line": 117, + "column": 67 + } + }, + "value": " ", + "rawValue": null, + "raw": " " + }, + { + "type": "JSXExpressionContainer", + "start": 3264, + "end": 3310, + "loc": { + "start": { + "line": 117, + "column": 67 + }, + "end": { + "line": 117, + "column": 113 + } + }, + "expression": { + "type": "BinaryExpression", + "start": 3265, + "end": 3309, + "loc": { + "start": { + "line": 117, + "column": 68 + }, + "end": { + "line": 117, + "column": 112 + } + }, + "left": { + "type": "CallExpression", + "start": 3265, + "end": 3303, + "loc": { + "start": { + "line": 117, + "column": 68 + }, + "end": { + "line": 117, + "column": 106 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3265, + "end": 3300, + "loc": { + "start": { + "line": 117, + "column": 68 + }, + "end": { + "line": 117, + "column": 103 + } + }, + "object": { + "type": "MemberExpression", + "start": 3265, + "end": 3293, + "loc": { + "start": { + "line": 117, + "column": 68 + }, + "end": { + "line": 117, + "column": 96 + } + }, + "object": { + "type": "MemberExpression", + "start": 3265, + "end": 3283, + "loc": { + "start": { + "line": 117, + "column": 68 + }, + "end": { + "line": 117, + "column": 86 + } + }, + "object": { + "type": "MemberExpression", + "start": 3265, + "end": 3275, + "loc": { + "start": { + "line": 117, + "column": 68 + }, + "end": { + "line": 117, + "column": 78 + } + }, + "object": { + "type": "ThisExpression", + "start": 3265, + "end": 3269, + "loc": { + "start": { + "line": 117, + "column": 68 + }, + "end": { + "line": 117, + "column": 72 + } + } + }, + "property": { + "type": "Identifier", + "start": 3270, + "end": 3275, + "loc": { + "start": { + "line": 117, + "column": 73 + }, + "end": { + "line": 117, + "column": 78 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3276, + "end": 3283, + "loc": { + "start": { + "line": 117, + "column": 79 + }, + "end": { + "line": 117, + "column": 86 + } + }, + "name": "profile" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3284, + "end": 3293, + "loc": { + "start": { + "line": 117, + "column": 87 + }, + "end": { + "line": 117, + "column": 96 + } + }, + "name": "last_name" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3294, + "end": 3300, + "loc": { + "start": { + "line": 117, + "column": 97 + }, + "end": { + "line": 117, + "column": 103 + } + }, + "name": "charAt" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 3301, + "end": 3302, + "loc": { + "start": { + "line": 117, + "column": 104 + }, + "end": { + "line": 117, + "column": 105 + } + }, + "value": 0, + "rawValue": 0, + "raw": "0" + } + ] + }, + "operator": "+", + "right": { + "type": "Literal", + "start": 3306, + "end": 3309, + "loc": { + "start": { + "line": 117, + "column": 109 + }, + "end": { + "line": 117, + "column": 112 + } + }, + "value": ".", + "rawValue": ".", + "raw": "'.'" + } + } + }, + { + "type": "Literal", + "start": 3310, + "end": 3335, + "loc": { + "start": { + "line": 117, + "column": 113 + }, + "end": { + "line": 118, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 3341, + "end": 3366, + "loc": { + "start": { + "line": 118, + "column": 30 + }, + "end": { + "line": 119, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 3366, + "end": 3930, + "loc": { + "start": { + "line": 119, + "column": 24 + }, + "end": { + "line": 128, + "column": 30 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3366, + "end": 3396, + "loc": { + "start": { + "line": 119, + "column": 24 + }, + "end": { + "line": 119, + "column": 54 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3371, + "end": 3395, + "loc": { + "start": { + "line": 119, + "column": 29 + }, + "end": { + "line": 119, + "column": 53 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3371, + "end": 3380, + "loc": { + "start": { + "line": 119, + "column": 29 + }, + "end": { + "line": 119, + "column": 38 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 3381, + "end": 3395, + "loc": { + "start": { + "line": 119, + "column": 39 + }, + "end": { + "line": 119, + "column": 53 + } + }, + "value": "follow-count", + "rawValue": null, + "raw": "\"follow-count\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3367, + "end": 3370, + "loc": { + "start": { + "line": 119, + "column": 25 + }, + "end": { + "line": 119, + "column": 28 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3924, + "end": 3930, + "loc": { + "start": { + "line": 128, + "column": 24 + }, + "end": { + "line": 128, + "column": 30 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3926, + "end": 3929, + "loc": { + "start": { + "line": 128, + "column": 26 + }, + "end": { + "line": 128, + "column": 29 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 3396, + "end": 3425, + "loc": { + "start": { + "line": 119, + "column": 54 + }, + "end": { + "line": 120, + "column": 28 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 3425, + "end": 3648, + "loc": { + "start": { + "line": 120, + "column": 28 + }, + "end": { + "line": 123, + "column": 34 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3425, + "end": 3452, + "loc": { + "start": { + "line": 120, + "column": 28 + }, + "end": { + "line": 120, + "column": 55 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3430, + "end": 3451, + "loc": { + "start": { + "line": 120, + "column": 33 + }, + "end": { + "line": 120, + "column": 54 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3430, + "end": 3439, + "loc": { + "start": { + "line": 120, + "column": 33 + }, + "end": { + "line": 120, + "column": 42 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 3440, + "end": 3451, + "loc": { + "start": { + "line": 120, + "column": 43 + }, + "end": { + "line": 120, + "column": 54 + } + }, + "value": "following", + "rawValue": null, + "raw": "\"following\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3426, + "end": 3429, + "loc": { + "start": { + "line": 120, + "column": 29 + }, + "end": { + "line": 120, + "column": 32 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3642, + "end": 3648, + "loc": { + "start": { + "line": 123, + "column": 28 + }, + "end": { + "line": 123, + "column": 34 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3644, + "end": 3647, + "loc": { + "start": { + "line": 123, + "column": 30 + }, + "end": { + "line": 123, + "column": 33 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 3452, + "end": 3485, + "loc": { + "start": { + "line": 120, + "column": 55 + }, + "end": { + "line": 121, + "column": 32 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 3485, + "end": 3571, + "loc": { + "start": { + "line": 121, + "column": 32 + }, + "end": { + "line": 121, + "column": 118 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3485, + "end": 3505, + "loc": { + "start": { + "line": 121, + "column": 32 + }, + "end": { + "line": 121, + "column": 52 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3491, + "end": 3504, + "loc": { + "start": { + "line": 121, + "column": 38 + }, + "end": { + "line": 121, + "column": 51 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3491, + "end": 3496, + "loc": { + "start": { + "line": 121, + "column": 38 + }, + "end": { + "line": 121, + "column": 43 + } + }, + "name": "class" + }, + "value": { + "type": "Literal", + "start": 3497, + "end": 3504, + "loc": { + "start": { + "line": 121, + "column": 44 + }, + "end": { + "line": 121, + "column": 51 + } + }, + "value": "count", + "rawValue": null, + "raw": "\"count\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3486, + "end": 3490, + "loc": { + "start": { + "line": 121, + "column": 33 + }, + "end": { + "line": 121, + "column": 37 + } + }, + "name": "span" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3564, + "end": 3571, + "loc": { + "start": { + "line": 121, + "column": 111 + }, + "end": { + "line": 121, + "column": 118 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3566, + "end": 3570, + "loc": { + "start": { + "line": 121, + "column": 113 + }, + "end": { + "line": 121, + "column": 117 + } + }, + "name": "span" + } + }, + "children": [ + { + "type": "JSXExpressionContainer", + "start": 3505, + "end": 3564, + "loc": { + "start": { + "line": 121, + "column": 52 + }, + "end": { + "line": 121, + "column": 111 + } + }, + "expression": { + "type": "CallExpression", + "start": 3506, + "end": 3563, + "loc": { + "start": { + "line": 121, + "column": 53 + }, + "end": { + "line": 121, + "column": 110 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3506, + "end": 3556, + "loc": { + "start": { + "line": 121, + "column": 53 + }, + "end": { + "line": 121, + "column": 103 + } + }, + "object": { + "type": "CallExpression", + "start": 3506, + "end": 3549, + "loc": { + "start": { + "line": 121, + "column": 53 + }, + "end": { + "line": 121, + "column": 96 + } + }, + "callee": { + "type": "Identifier", + "start": 3506, + "end": 3513, + "loc": { + "start": { + "line": 121, + "column": 53 + }, + "end": { + "line": 121, + "column": 60 + } + }, + "name": "numeral" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 3514, + "end": 3548, + "loc": { + "start": { + "line": 121, + "column": 61 + }, + "end": { + "line": 121, + "column": 95 + } + }, + "object": { + "type": "MemberExpression", + "start": 3514, + "end": 3532, + "loc": { + "start": { + "line": 121, + "column": 61 + }, + "end": { + "line": 121, + "column": 79 + } + }, + "object": { + "type": "MemberExpression", + "start": 3514, + "end": 3524, + "loc": { + "start": { + "line": 121, + "column": 61 + }, + "end": { + "line": 121, + "column": 71 + } + }, + "object": { + "type": "ThisExpression", + "start": 3514, + "end": 3518, + "loc": { + "start": { + "line": 121, + "column": 61 + }, + "end": { + "line": 121, + "column": 65 + } + } + }, + "property": { + "type": "Identifier", + "start": 3519, + "end": 3524, + "loc": { + "start": { + "line": 121, + "column": 66 + }, + "end": { + "line": 121, + "column": 71 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3525, + "end": 3532, + "loc": { + "start": { + "line": 121, + "column": 72 + }, + "end": { + "line": 121, + "column": 79 + } + }, + "name": "profile" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3533, + "end": 3548, + "loc": { + "start": { + "line": 121, + "column": 80 + }, + "end": { + "line": 121, + "column": 95 + } + }, + "name": "following_count" + }, + "computed": false + } + ] + }, + "property": { + "type": "Identifier", + "start": 3550, + "end": 3556, + "loc": { + "start": { + "line": 121, + "column": 97 + }, + "end": { + "line": 121, + "column": 103 + } + }, + "name": "format" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 3557, + "end": 3562, + "loc": { + "start": { + "line": 121, + "column": 104 + }, + "end": { + "line": 121, + "column": 109 + } + }, + "value": "0,0", + "rawValue": "0,0", + "raw": "'0,0'" + } + ] + } + } + ] + }, + { + "type": "Literal", + "start": 3571, + "end": 3642, + "loc": { + "start": { + "line": 121, + "column": 118 + }, + "end": { + "line": 123, + "column": 28 + } + }, + "value": "\n Following\n ", + "rawValue": null, + "raw": "\n Following\n " + } + ] + }, + { + "type": "Literal", + "start": 3648, + "end": 3677, + "loc": { + "start": { + "line": 123, + "column": 34 + }, + "end": { + "line": 124, + "column": 28 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 3677, + "end": 3899, + "loc": { + "start": { + "line": 124, + "column": 28 + }, + "end": { + "line": 127, + "column": 34 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3677, + "end": 3704, + "loc": { + "start": { + "line": 124, + "column": 28 + }, + "end": { + "line": 124, + "column": 55 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3682, + "end": 3703, + "loc": { + "start": { + "line": 124, + "column": 33 + }, + "end": { + "line": 124, + "column": 54 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3682, + "end": 3691, + "loc": { + "start": { + "line": 124, + "column": 33 + }, + "end": { + "line": 124, + "column": 42 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 3692, + "end": 3703, + "loc": { + "start": { + "line": 124, + "column": 43 + }, + "end": { + "line": 124, + "column": 54 + } + }, + "value": "followers", + "rawValue": null, + "raw": "\"followers\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3678, + "end": 3681, + "loc": { + "start": { + "line": 124, + "column": 29 + }, + "end": { + "line": 124, + "column": 32 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3893, + "end": 3899, + "loc": { + "start": { + "line": 127, + "column": 28 + }, + "end": { + "line": 127, + "column": 34 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3895, + "end": 3898, + "loc": { + "start": { + "line": 127, + "column": 30 + }, + "end": { + "line": 127, + "column": 33 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 3704, + "end": 3737, + "loc": { + "start": { + "line": 124, + "column": 55 + }, + "end": { + "line": 125, + "column": 32 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 3737, + "end": 3822, + "loc": { + "start": { + "line": 125, + "column": 32 + }, + "end": { + "line": 125, + "column": 117 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3737, + "end": 3757, + "loc": { + "start": { + "line": 125, + "column": 32 + }, + "end": { + "line": 125, + "column": 52 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3743, + "end": 3756, + "loc": { + "start": { + "line": 125, + "column": 38 + }, + "end": { + "line": 125, + "column": 51 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3743, + "end": 3748, + "loc": { + "start": { + "line": 125, + "column": 38 + }, + "end": { + "line": 125, + "column": 43 + } + }, + "name": "class" + }, + "value": { + "type": "Literal", + "start": 3749, + "end": 3756, + "loc": { + "start": { + "line": 125, + "column": 44 + }, + "end": { + "line": 125, + "column": 51 + } + }, + "value": "count", + "rawValue": null, + "raw": "\"count\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3738, + "end": 3742, + "loc": { + "start": { + "line": 125, + "column": 33 + }, + "end": { + "line": 125, + "column": 37 + } + }, + "name": "span" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3815, + "end": 3822, + "loc": { + "start": { + "line": 125, + "column": 110 + }, + "end": { + "line": 125, + "column": 117 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3817, + "end": 3821, + "loc": { + "start": { + "line": 125, + "column": 112 + }, + "end": { + "line": 125, + "column": 116 + } + }, + "name": "span" + } + }, + "children": [ + { + "type": "JSXExpressionContainer", + "start": 3757, + "end": 3815, + "loc": { + "start": { + "line": 125, + "column": 52 + }, + "end": { + "line": 125, + "column": 110 + } + }, + "expression": { + "type": "CallExpression", + "start": 3758, + "end": 3814, + "loc": { + "start": { + "line": 125, + "column": 53 + }, + "end": { + "line": 125, + "column": 109 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3758, + "end": 3807, + "loc": { + "start": { + "line": 125, + "column": 53 + }, + "end": { + "line": 125, + "column": 102 + } + }, + "object": { + "type": "CallExpression", + "start": 3758, + "end": 3800, + "loc": { + "start": { + "line": 125, + "column": 53 + }, + "end": { + "line": 125, + "column": 95 + } + }, + "callee": { + "type": "Identifier", + "start": 3758, + "end": 3765, + "loc": { + "start": { + "line": 125, + "column": 53 + }, + "end": { + "line": 125, + "column": 60 + } + }, + "name": "numeral" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 3766, + "end": 3799, + "loc": { + "start": { + "line": 125, + "column": 61 + }, + "end": { + "line": 125, + "column": 94 + } + }, + "object": { + "type": "MemberExpression", + "start": 3766, + "end": 3784, + "loc": { + "start": { + "line": 125, + "column": 61 + }, + "end": { + "line": 125, + "column": 79 + } + }, + "object": { + "type": "MemberExpression", + "start": 3766, + "end": 3776, + "loc": { + "start": { + "line": 125, + "column": 61 + }, + "end": { + "line": 125, + "column": 71 + } + }, + "object": { + "type": "ThisExpression", + "start": 3766, + "end": 3770, + "loc": { + "start": { + "line": 125, + "column": 61 + }, + "end": { + "line": 125, + "column": 65 + } + } + }, + "property": { + "type": "Identifier", + "start": 3771, + "end": 3776, + "loc": { + "start": { + "line": 125, + "column": 66 + }, + "end": { + "line": 125, + "column": 71 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3777, + "end": 3784, + "loc": { + "start": { + "line": 125, + "column": 72 + }, + "end": { + "line": 125, + "column": 79 + } + }, + "name": "profile" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3785, + "end": 3799, + "loc": { + "start": { + "line": 125, + "column": 80 + }, + "end": { + "line": 125, + "column": 94 + } + }, + "name": "follower_count" + }, + "computed": false + } + ] + }, + "property": { + "type": "Identifier", + "start": 3801, + "end": 3807, + "loc": { + "start": { + "line": 125, + "column": 96 + }, + "end": { + "line": 125, + "column": 102 + } + }, + "name": "format" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 3808, + "end": 3813, + "loc": { + "start": { + "line": 125, + "column": 103 + }, + "end": { + "line": 125, + "column": 108 + } + }, + "value": "0,0", + "rawValue": "0,0", + "raw": "'0,0'" + } + ] + } + } + ] + }, + { + "type": "Literal", + "start": 3822, + "end": 3893, + "loc": { + "start": { + "line": 125, + "column": 117 + }, + "end": { + "line": 127, + "column": 28 + } + }, + "value": "\n Followers\n ", + "rawValue": null, + "raw": "\n Followers\n " + } + ] + }, + { + "type": "Literal", + "start": 3899, + "end": 3924, + "loc": { + "start": { + "line": 127, + "column": 34 + }, + "end": { + "line": 128, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 3930, + "end": 3951, + "loc": { + "start": { + "line": 128, + "column": 30 + }, + "end": { + "line": 129, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 3957, + "end": 3978, + "loc": { + "start": { + "line": 129, + "column": 26 + }, + "end": { + "line": 130, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 3978, + "end": 4007, + "loc": { + "start": { + "line": 130, + "column": 20 + }, + "end": { + "line": 130, + "column": 49 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3978, + "end": 4001, + "loc": { + "start": { + "line": 130, + "column": 20 + }, + "end": { + "line": 130, + "column": 43 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3983, + "end": 4000, + "loc": { + "start": { + "line": 130, + "column": 25 + }, + "end": { + "line": 130, + "column": 42 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3983, + "end": 3992, + "loc": { + "start": { + "line": 130, + "column": 25 + }, + "end": { + "line": 130, + "column": 34 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 3993, + "end": 4000, + "loc": { + "start": { + "line": 130, + "column": 35 + }, + "end": { + "line": 130, + "column": 42 + } + }, + "value": "clear", + "rawValue": null, + "raw": "\"clear\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3979, + "end": 3982, + "loc": { + "start": { + "line": 130, + "column": 21 + }, + "end": { + "line": 130, + "column": 24 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 4001, + "end": 4007, + "loc": { + "start": { + "line": 130, + "column": 43 + }, + "end": { + "line": 130, + "column": 49 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4003, + "end": 4006, + "loc": { + "start": { + "line": 130, + "column": 45 + }, + "end": { + "line": 130, + "column": 48 + } + }, + "name": "div" + } + }, + "children": [] + }, + { + "type": "Literal", + "start": 4007, + "end": 4028, + "loc": { + "start": { + "line": 130, + "column": 49 + }, + "end": { + "line": 131, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 4028, + "end": 4060, + "loc": { + "start": { + "line": 131, + "column": 20 + }, + "end": { + "line": 131, + "column": 52 + } + }, + "expression": { + "type": "CallExpression", + "start": 4029, + "end": 4059, + "loc": { + "start": { + "line": 131, + "column": 21 + }, + "end": { + "line": 131, + "column": 51 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4029, + "end": 4057, + "loc": { + "start": { + "line": 131, + "column": 21 + }, + "end": { + "line": 131, + "column": 49 + } + }, + "object": { + "type": "ThisExpression", + "start": 4029, + "end": 4033, + "loc": { + "start": { + "line": 131, + "column": 21 + }, + "end": { + "line": 131, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "start": 4034, + "end": 4057, + "loc": { + "start": { + "line": 131, + "column": 26 + }, + "end": { + "line": 131, + "column": 49 + } + }, + "name": "renderNavigationOrStats" + }, + "computed": false + }, + "arguments": [] + } + }, + { + "type": "Literal", + "start": 4060, + "end": 4081, + "loc": { + "start": { + "line": 131, + "column": 52 + }, + "end": { + "line": 132, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 4081, + "end": 4211, + "loc": { + "start": { + "line": 132, + "column": 20 + }, + "end": { + "line": 135, + "column": 29 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 4081, + "end": 4117, + "loc": { + "start": { + "line": 132, + "column": 20 + }, + "end": { + "line": 132, + "column": 56 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 4089, + "end": 4116, + "loc": { + "start": { + "line": 132, + "column": 28 + }, + "end": { + "line": 132, + "column": 55 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4089, + "end": 4096, + "loc": { + "start": { + "line": 132, + "column": 28 + }, + "end": { + "line": 132, + "column": 35 + } + }, + "name": "onClick" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 4097, + "end": 4116, + "loc": { + "start": { + "line": 132, + "column": 36 + }, + "end": { + "line": 132, + "column": 55 + } + }, + "expression": { + "type": "MemberExpression", + "start": 4098, + "end": 4115, + "loc": { + "start": { + "line": 132, + "column": 37 + }, + "end": { + "line": 132, + "column": 54 + } + }, + "object": { + "type": "ThisExpression", + "start": 4098, + "end": 4102, + "loc": { + "start": { + "line": 132, + "column": 37 + }, + "end": { + "line": 132, + "column": 41 + } + } + }, + "property": { + "type": "Identifier", + "start": 4103, + "end": 4115, + "loc": { + "start": { + "line": 132, + "column": 42 + }, + "end": { + "line": 132, + "column": 54 + } + }, + "name": "handleLogout" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 4082, + "end": 4088, + "loc": { + "start": { + "line": 132, + "column": 21 + }, + "end": { + "line": 132, + "column": 27 + } + }, + "name": "button" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 4202, + "end": 4211, + "loc": { + "start": { + "line": 135, + "column": 20 + }, + "end": { + "line": 135, + "column": 29 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4204, + "end": 4210, + "loc": { + "start": { + "line": 135, + "column": 22 + }, + "end": { + "line": 135, + "column": 28 + } + }, + "name": "button" + } + }, + "children": [ + { + "type": "Literal", + "start": 4117, + "end": 4174, + "loc": { + "start": { + "line": 132, + "column": 56 + }, + "end": { + "line": 134, + "column": 24 + } + }, + "value": "\n Log Out\n ", + "rawValue": null, + "raw": "\n Log Out\n " + }, + { + "type": "JSXElement", + "start": 4174, + "end": 4181, + "loc": { + "start": { + "line": 134, + "column": 24 + }, + "end": { + "line": 134, + "column": 31 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 4174, + "end": 4181, + "loc": { + "start": { + "line": 134, + "column": 24 + }, + "end": { + "line": 134, + "column": 31 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 4175, + "end": 4178, + "loc": { + "start": { + "line": 134, + "column": 25 + }, + "end": { + "line": 134, + "column": 28 + } + }, + "name": "Ink" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 4181, + "end": 4202, + "loc": { + "start": { + "line": 134, + "column": 31 + }, + "end": { + "line": 135, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 4211, + "end": 4228, + "loc": { + "start": { + "line": 135, + "column": 29 + }, + "end": { + "line": 136, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 4234, + "end": 4247, + "loc": { + "start": { + "line": 136, + "column": 22 + }, + "end": { + "line": 137, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 2712, + "end": 2760, + "loc": { + "start": { + "line": 102, + "column": 4 + }, + "end": { + "line": 105, + "column": 7 + } + }, + "range": [ + 2712, + 2760 + ] + } + ] + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Profile\n * '/profile/:id'\n * React Route - Documentation: https://github.com/reactjs/react-router/tree/master/docs\n ", + "start": 482, + "end": 607, + "loc": { + "start": { + "line": 21, + "column": 0 + }, + "end": { + "line": 25, + "column": 3 + } + }, + "range": [ + 482, + 607 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * connect\n * Connects React component to a Redux store\n * Documentation: https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options\n ", + "start": 4274, + "end": 4479, + "loc": { + "start": { + "line": 143, + "column": 0 + }, + "end": { + "line": 147, + "column": 3 + } + }, + "range": [ + 4274, + 4479 + ] + } + ] + }, + { + "type": "ExportDefaultDeclaration", + "start": 4480, + "end": 4647, + "loc": { + "start": { + "line": 148, + "column": 0 + }, + "end": { + "line": 153, + "column": 12 + } + }, + "declaration": { + "type": "CallExpression", + "start": 4495, + "end": 4647, + "loc": { + "start": { + "line": 148, + "column": 15 + }, + "end": { + "line": 153, + "column": 12 + } + }, + "callee": { + "type": "CallExpression", + "start": 4495, + "end": 4638, + "loc": { + "start": { + "line": 148, + "column": 15 + }, + "end": { + "line": 153, + "column": 3 + } + }, + "callee": { + "type": "Identifier", + "start": 4495, + "end": 4502, + "loc": { + "start": { + "line": 148, + "column": 15 + }, + "end": { + "line": 148, + "column": 22 + } + }, + "name": "connect", + "leadingComments": null + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 4503, + "end": 4637, + "loc": { + "start": { + "line": 148, + "column": 23 + }, + "end": { + "line": 153, + "column": 2 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 4503, + "end": 4508, + "loc": { + "start": { + "line": 148, + "column": 23 + }, + "end": { + "line": 148, + "column": 28 + } + }, + "name": "state" + } + ], + "body": { + "type": "ObjectExpression", + "start": 4513, + "end": 4636, + "loc": { + "start": { + "line": 148, + "column": 33 + }, + "end": { + "line": 153, + "column": 1 + } + }, + "properties": [ + { + "type": "Property", + "start": 4519, + "end": 4535, + "loc": { + "start": { + "line": 149, + "column": 4 + }, + "end": { + "line": 149, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 4519, + "end": 4523, + "loc": { + "start": { + "line": 149, + "column": 4 + }, + "end": { + "line": 149, + "column": 8 + } + }, + "name": "user" + }, + "value": { + "type": "MemberExpression", + "start": 4525, + "end": 4535, + "loc": { + "start": { + "line": 149, + "column": 10 + }, + "end": { + "line": 149, + "column": 20 + } + }, + "object": { + "type": "Identifier", + "start": 4525, + "end": 4530, + "loc": { + "start": { + "line": 149, + "column": 10 + }, + "end": { + "line": 149, + "column": 15 + } + }, + "name": "state" + }, + "property": { + "type": "Identifier", + "start": 4531, + "end": 4535, + "loc": { + "start": { + "line": 149, + "column": 16 + }, + "end": { + "line": 149, + "column": 20 + } + }, + "name": "User" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 4541, + "end": 4563, + "loc": { + "start": { + "line": 150, + "column": 4 + }, + "end": { + "line": 150, + "column": 26 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 4541, + "end": 4548, + "loc": { + "start": { + "line": 150, + "column": 4 + }, + "end": { + "line": 150, + "column": 11 + } + }, + "name": "profile" + }, + "value": { + "type": "MemberExpression", + "start": 4550, + "end": 4563, + "loc": { + "start": { + "line": 150, + "column": 13 + }, + "end": { + "line": 150, + "column": 26 + } + }, + "object": { + "type": "Identifier", + "start": 4550, + "end": 4555, + "loc": { + "start": { + "line": 150, + "column": 13 + }, + "end": { + "line": 150, + "column": 18 + } + }, + "name": "state" + }, + "property": { + "type": "Identifier", + "start": 4556, + "end": 4563, + "loc": { + "start": { + "line": 150, + "column": 19 + }, + "end": { + "line": 150, + "column": 26 + } + }, + "name": "Profile" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 4569, + "end": 4603, + "loc": { + "start": { + "line": 151, + "column": 4 + }, + "end": { + "line": 151, + "column": 38 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 4569, + "end": 4582, + "loc": { + "start": { + "line": 151, + "column": 4 + }, + "end": { + "line": 151, + "column": 17 + } + }, + "name": "contributions" + }, + "value": { + "type": "MemberExpression", + "start": 4584, + "end": 4603, + "loc": { + "start": { + "line": 151, + "column": 19 + }, + "end": { + "line": 151, + "column": 38 + } + }, + "object": { + "type": "Identifier", + "start": 4584, + "end": 4589, + "loc": { + "start": { + "line": 151, + "column": 19 + }, + "end": { + "line": 151, + "column": 24 + } + }, + "name": "state" + }, + "property": { + "type": "Identifier", + "start": 4590, + "end": 4603, + "loc": { + "start": { + "line": 151, + "column": 25 + }, + "end": { + "line": 151, + "column": 38 + } + }, + "name": "Contributions" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 4609, + "end": 4633, + "loc": { + "start": { + "line": 152, + "column": 4 + }, + "end": { + "line": 152, + "column": 28 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 4609, + "end": 4617, + "loc": { + "start": { + "line": 152, + "column": 4 + }, + "end": { + "line": 152, + "column": 12 + } + }, + "name": "activity" + }, + "value": { + "type": "MemberExpression", + "start": 4619, + "end": 4633, + "loc": { + "start": { + "line": 152, + "column": 14 + }, + "end": { + "line": 152, + "column": 28 + } + }, + "object": { + "type": "Identifier", + "start": 4619, + "end": 4624, + "loc": { + "start": { + "line": 152, + "column": 14 + }, + "end": { + "line": 152, + "column": 19 + } + }, + "name": "state" + }, + "property": { + "type": "Identifier", + "start": 4625, + "end": 4633, + "loc": { + "start": { + "line": 152, + "column": 20 + }, + "end": { + "line": 152, + "column": 28 + } + }, + "name": "Activity" + }, + "computed": false + }, + "kind": "init" + } + ], + "parenthesizedExpression": true + } + } + ], + "leadingComments": null + }, + "arguments": [ + { + "type": "Identifier", + "start": 4639, + "end": 4646, + "loc": { + "start": { + "line": 153, + "column": 4 + }, + "end": { + "line": 153, + "column": 11 + } + }, + "name": "Profile" + } + ], + "leadingComments": [ + { + "type": "Block", + "value": "*\n * connect\n * Connects React component to a Redux store\n * Documentation: https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options\n ", + "start": 4274, + "end": 4479, + "loc": { + "start": { + "line": 143, + "column": 0 + }, + "end": { + "line": 147, + "column": 3 + } + }, + "range": [ + 4274, + 4479 + ] + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * connect\n * Connects React component to a Redux store\n * Documentation: https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options\n ", + "start": 4274, + "end": 4479, + "loc": { + "start": { + "line": 143, + "column": 0 + }, + "end": { + "line": 147, + "column": 3 + } + }, + "range": [ + 4274, + 4479 + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/routes/Profile/contributions/index.js.json b/app/docs/ast/source/routes/Profile/contributions/index.js.json new file mode 100644 index 0000000..268467e --- /dev/null +++ b/app/docs/ast/source/routes/Profile/contributions/index.js.json @@ -0,0 +1,2067 @@ +{ + "type": "Program", + "start": 0, + "end": 971, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 34, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + }, + { + "type": "ImportSpecifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "imported": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + }, + "local": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 33, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 33 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ImportDeclaration", + "start": 41, + "end": 76, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 35 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 50, + "end": 54, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "imported": { + "type": "Identifier", + "start": 50, + "end": 54, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "name": "Link" + }, + "local": { + "type": "Identifier", + "start": 50, + "end": 54, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "name": "Link" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 62, + "end": 76, + "loc": { + "start": { + "line": 2, + "column": 21 + }, + "end": { + "line": 2, + "column": 35 + } + }, + "value": "react-router", + "rawValue": "react-router", + "raw": "'react-router'" + } + }, + { + "type": "ImportDeclaration", + "start": 77, + "end": 104, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 27 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 84, + "end": 90, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 13 + } + }, + "local": { + "type": "Identifier", + "start": 84, + "end": 90, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 13 + } + }, + "name": "config" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 96, + "end": 104, + "loc": { + "start": { + "line": 3, + "column": 19 + }, + "end": { + "line": 3, + "column": 27 + } + }, + "value": "config", + "rawValue": "config", + "raw": "'config'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Contributions\n * React component to be used by Profile component\n ", + "start": 106, + "end": 181, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + }, + "range": [ + 106, + 181 + ] + } + ] + }, + { + "type": "ExportDefaultDeclaration", + "start": 182, + "end": 970, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 33, + "column": 1 + } + }, + "declaration": { + "type": "ClassDeclaration", + "start": 197, + "end": 970, + "loc": { + "start": { + "line": 9, + "column": 15 + }, + "end": { + "line": 33, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 203, + "end": 216, + "loc": { + "start": { + "line": 9, + "column": 21 + }, + "end": { + "line": 9, + "column": 34 + } + }, + "name": "Contributions", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 225, + "end": 234, + "loc": { + "start": { + "line": 9, + "column": 43 + }, + "end": { + "line": 9, + "column": 52 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 235, + "end": 970, + "loc": { + "start": { + "line": 9, + "column": 53 + }, + "end": { + "line": 33, + "column": 1 + } + }, + "body": [ + { + "type": "MethodDefinition", + "start": 295, + "end": 967, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 31, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 295, + "end": 301, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 301, + "end": 967, + "loc": { + "start": { + "line": 15, + "column": 10 + }, + "end": { + "line": 31, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 304, + "end": 967, + "loc": { + "start": { + "line": 15, + "column": 13 + }, + "end": { + "line": 31, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 314, + "end": 961, + "loc": { + "start": { + "line": 16, + "column": 8 + }, + "end": { + "line": 30, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 335, + "end": 951, + "loc": { + "start": { + "line": 17, + "column": 12 + }, + "end": { + "line": 29, + "column": 18 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 335, + "end": 366, + "loc": { + "start": { + "line": 17, + "column": 12 + }, + "end": { + "line": 17, + "column": 43 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 340, + "end": 365, + "loc": { + "start": { + "line": 17, + "column": 17 + }, + "end": { + "line": 17, + "column": 42 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 340, + "end": 349, + "loc": { + "start": { + "line": 17, + "column": 17 + }, + "end": { + "line": 17, + "column": 26 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 350, + "end": 365, + "loc": { + "start": { + "line": 17, + "column": 27 + }, + "end": { + "line": 17, + "column": 42 + } + }, + "value": "contributions", + "rawValue": null, + "raw": "\"contributions\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 336, + "end": 339, + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 17, + "column": 16 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 945, + "end": 951, + "loc": { + "start": { + "line": 29, + "column": 12 + }, + "end": { + "line": 29, + "column": 18 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 947, + "end": 950, + "loc": { + "start": { + "line": 29, + "column": 14 + }, + "end": { + "line": 29, + "column": 17 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 366, + "end": 383, + "loc": { + "start": { + "line": 17, + "column": 43 + }, + "end": { + "line": 18, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 383, + "end": 405, + "loc": { + "start": { + "line": 18, + "column": 16 + }, + "end": { + "line": 18, + "column": 38 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 383, + "end": 387, + "loc": { + "start": { + "line": 18, + "column": 16 + }, + "end": { + "line": 18, + "column": 20 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 384, + "end": 386, + "loc": { + "start": { + "line": 18, + "column": 17 + }, + "end": { + "line": 18, + "column": 19 + } + }, + "name": "h2" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 400, + "end": 405, + "loc": { + "start": { + "line": 18, + "column": 33 + }, + "end": { + "line": 18, + "column": 38 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 402, + "end": 404, + "loc": { + "start": { + "line": 18, + "column": 35 + }, + "end": { + "line": 18, + "column": 37 + } + }, + "name": "h2" + } + }, + "children": [ + { + "type": "Literal", + "start": 387, + "end": 400, + "loc": { + "start": { + "line": 18, + "column": 20 + }, + "end": { + "line": 18, + "column": 33 + } + }, + "value": "Contributions", + "rawValue": null, + "raw": "Contributions" + } + ] + }, + { + "type": "Literal", + "start": 405, + "end": 422, + "loc": { + "start": { + "line": 18, + "column": 38 + }, + "end": { + "line": 19, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 422, + "end": 932, + "loc": { + "start": { + "line": 19, + "column": 16 + }, + "end": { + "line": 28, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 422, + "end": 444, + "loc": { + "start": { + "line": 19, + "column": 16 + }, + "end": { + "line": 19, + "column": 38 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 427, + "end": 443, + "loc": { + "start": { + "line": 19, + "column": 21 + }, + "end": { + "line": 19, + "column": 37 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 427, + "end": 436, + "loc": { + "start": { + "line": 19, + "column": 21 + }, + "end": { + "line": 19, + "column": 30 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 437, + "end": 443, + "loc": { + "start": { + "line": 19, + "column": 31 + }, + "end": { + "line": 19, + "column": 37 + } + }, + "value": "grid", + "rawValue": null, + "raw": "\"grid\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 423, + "end": 426, + "loc": { + "start": { + "line": 19, + "column": 17 + }, + "end": { + "line": 19, + "column": 20 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 926, + "end": 932, + "loc": { + "start": { + "line": 28, + "column": 16 + }, + "end": { + "line": 28, + "column": 22 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 928, + "end": 931, + "loc": { + "start": { + "line": 28, + "column": 18 + }, + "end": { + "line": 28, + "column": 21 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 444, + "end": 465, + "loc": { + "start": { + "line": 19, + "column": 38 + }, + "end": { + "line": 20, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 465, + "end": 909, + "loc": { + "start": { + "line": 20, + "column": 20 + }, + "end": { + "line": 27, + "column": 22 + } + }, + "expression": { + "type": "CallExpression", + "start": 466, + "end": 908, + "loc": { + "start": { + "line": 20, + "column": 21 + }, + "end": { + "line": 27, + "column": 21 + } + }, + "callee": { + "type": "MemberExpression", + "start": 466, + "end": 494, + "loc": { + "start": { + "line": 20, + "column": 21 + }, + "end": { + "line": 20, + "column": 49 + } + }, + "object": { + "type": "MemberExpression", + "start": 466, + "end": 490, + "loc": { + "start": { + "line": 20, + "column": 21 + }, + "end": { + "line": 20, + "column": 45 + } + }, + "object": { + "type": "MemberExpression", + "start": 466, + "end": 476, + "loc": { + "start": { + "line": 20, + "column": 21 + }, + "end": { + "line": 20, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 466, + "end": 470, + "loc": { + "start": { + "line": 20, + "column": 21 + }, + "end": { + "line": 20, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "start": 471, + "end": 476, + "loc": { + "start": { + "line": 20, + "column": 26 + }, + "end": { + "line": 20, + "column": 31 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 477, + "end": 490, + "loc": { + "start": { + "line": 20, + "column": 32 + }, + "end": { + "line": 20, + "column": 45 + } + }, + "name": "contributions" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 491, + "end": 494, + "loc": { + "start": { + "line": 20, + "column": 46 + }, + "end": { + "line": 20, + "column": 49 + } + }, + "name": "map" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 495, + "end": 886, + "loc": { + "start": { + "line": 20, + "column": 50 + }, + "end": { + "line": 26, + "column": 30 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 495, + "end": 499, + "loc": { + "start": { + "line": 20, + "column": 50 + }, + "end": { + "line": 20, + "column": 54 + } + }, + "name": "item" + } + ], + "body": { + "type": "JSXElement", + "start": 527, + "end": 886, + "loc": { + "start": { + "line": 21, + "column": 24 + }, + "end": { + "line": 26, + "column": 30 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 527, + "end": 587, + "loc": { + "start": { + "line": 21, + "column": 24 + }, + "end": { + "line": 21, + "column": 84 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 532, + "end": 553, + "loc": { + "start": { + "line": 21, + "column": 29 + }, + "end": { + "line": 21, + "column": 50 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 532, + "end": 541, + "loc": { + "start": { + "line": 21, + "column": 29 + }, + "end": { + "line": 21, + "column": 38 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 542, + "end": 553, + "loc": { + "start": { + "line": 21, + "column": 39 + }, + "end": { + "line": 21, + "column": 50 + } + }, + "value": "grid-cell", + "rawValue": null, + "raw": "\"grid-cell\"" + } + }, + { + "type": "JSXAttribute", + "start": 554, + "end": 586, + "loc": { + "start": { + "line": 21, + "column": 51 + }, + "end": { + "line": 21, + "column": 83 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 554, + "end": 557, + "loc": { + "start": { + "line": 21, + "column": 51 + }, + "end": { + "line": 21, + "column": 54 + } + }, + "name": "key" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 558, + "end": 586, + "loc": { + "start": { + "line": 21, + "column": 55 + }, + "end": { + "line": 21, + "column": 83 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 559, + "end": 585, + "loc": { + "start": { + "line": 21, + "column": 56 + }, + "end": { + "line": 21, + "column": 82 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 576, + "end": 583, + "loc": { + "start": { + "line": 21, + "column": 73 + }, + "end": { + "line": 21, + "column": 80 + } + }, + "object": { + "type": "Identifier", + "start": 576, + "end": 580, + "loc": { + "start": { + "line": 21, + "column": 73 + }, + "end": { + "line": 21, + "column": 77 + } + }, + "name": "item" + }, + "property": { + "type": "Identifier", + "start": 581, + "end": 583, + "loc": { + "start": { + "line": 21, + "column": 78 + }, + "end": { + "line": 21, + "column": 80 + } + }, + "name": "id" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 560, + "end": 574, + "loc": { + "start": { + "line": 21, + "column": 57 + }, + "end": { + "line": 21, + "column": 71 + } + }, + "value": { + "raw": "contributions-", + "cooked": "contributions-" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 584, + "end": 584, + "loc": { + "start": { + "line": 21, + "column": 81 + }, + "end": { + "line": 21, + "column": 81 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 528, + "end": 531, + "loc": { + "start": { + "line": 21, + "column": 25 + }, + "end": { + "line": 21, + "column": 28 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 880, + "end": 886, + "loc": { + "start": { + "line": 26, + "column": 24 + }, + "end": { + "line": 26, + "column": 30 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 882, + "end": 885, + "loc": { + "start": { + "line": 26, + "column": 26 + }, + "end": { + "line": 26, + "column": 29 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 587, + "end": 616, + "loc": { + "start": { + "line": 21, + "column": 84 + }, + "end": { + "line": 22, + "column": 28 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 616, + "end": 855, + "loc": { + "start": { + "line": 22, + "column": 28 + }, + "end": { + "line": 25, + "column": 35 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 616, + "end": 648, + "loc": { + "start": { + "line": 22, + "column": 28 + }, + "end": { + "line": 22, + "column": 60 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 622, + "end": 647, + "loc": { + "start": { + "line": 22, + "column": 34 + }, + "end": { + "line": 22, + "column": 59 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 622, + "end": 624, + "loc": { + "start": { + "line": 22, + "column": 34 + }, + "end": { + "line": 22, + "column": 36 + } + }, + "name": "to" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 625, + "end": 647, + "loc": { + "start": { + "line": 22, + "column": 37 + }, + "end": { + "line": 22, + "column": 59 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 626, + "end": 646, + "loc": { + "start": { + "line": 22, + "column": 38 + }, + "end": { + "line": 22, + "column": 58 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 637, + "end": 644, + "loc": { + "start": { + "line": 22, + "column": 49 + }, + "end": { + "line": 22, + "column": 56 + } + }, + "object": { + "type": "Identifier", + "start": 637, + "end": 641, + "loc": { + "start": { + "line": 22, + "column": 49 + }, + "end": { + "line": 22, + "column": 53 + } + }, + "name": "item" + }, + "property": { + "type": "Identifier", + "start": 642, + "end": 644, + "loc": { + "start": { + "line": 22, + "column": 54 + }, + "end": { + "line": 22, + "column": 56 + } + }, + "name": "id" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 627, + "end": 635, + "loc": { + "start": { + "line": 22, + "column": 39 + }, + "end": { + "line": 22, + "column": 47 + } + }, + "value": { + "raw": "/photos/", + "cooked": "/photos/" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 645, + "end": 645, + "loc": { + "start": { + "line": 22, + "column": 57 + }, + "end": { + "line": 22, + "column": 57 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 617, + "end": 621, + "loc": { + "start": { + "line": 22, + "column": 29 + }, + "end": { + "line": 22, + "column": 33 + } + }, + "name": "Link" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 848, + "end": 855, + "loc": { + "start": { + "line": 25, + "column": 28 + }, + "end": { + "line": 25, + "column": 35 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 850, + "end": 854, + "loc": { + "start": { + "line": 25, + "column": 30 + }, + "end": { + "line": 25, + "column": 34 + } + }, + "name": "Link" + } + }, + "children": [ + { + "type": "Literal", + "start": 648, + "end": 681, + "loc": { + "start": { + "line": 22, + "column": 60 + }, + "end": { + "line": 23, + "column": 32 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 681, + "end": 819, + "loc": { + "start": { + "line": 23, + "column": 32 + }, + "end": { + "line": 24, + "column": 133 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 681, + "end": 819, + "loc": { + "start": { + "line": 23, + "column": 32 + }, + "end": { + "line": 24, + "column": 133 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 722, + "end": 817, + "loc": { + "start": { + "line": 24, + "column": 36 + }, + "end": { + "line": 24, + "column": 131 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 722, + "end": 725, + "loc": { + "start": { + "line": 24, + "column": 36 + }, + "end": { + "line": 24, + "column": 39 + } + }, + "name": "src" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 726, + "end": 817, + "loc": { + "start": { + "line": 24, + "column": 40 + }, + "end": { + "line": 24, + "column": 131 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 727, + "end": 816, + "loc": { + "start": { + "line": 24, + "column": 41 + }, + "end": { + "line": 24, + "column": 130 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 730, + "end": 750, + "loc": { + "start": { + "line": 24, + "column": 44 + }, + "end": { + "line": 24, + "column": 64 + } + }, + "object": { + "type": "MemberExpression", + "start": 730, + "end": 742, + "loc": { + "start": { + "line": 24, + "column": 44 + }, + "end": { + "line": 24, + "column": 56 + } + }, + "object": { + "type": "Identifier", + "start": 730, + "end": 736, + "loc": { + "start": { + "line": 24, + "column": 44 + }, + "end": { + "line": 24, + "column": 50 + } + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 737, + "end": 742, + "loc": { + "start": { + "line": 24, + "column": 51 + }, + "end": { + "line": 24, + "column": 56 + } + }, + "name": "imgix" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 743, + "end": 750, + "loc": { + "start": { + "line": 24, + "column": 57 + }, + "end": { + "line": 24, + "column": 64 + } + }, + "name": "baseUrl" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 754, + "end": 767, + "loc": { + "start": { + "line": 24, + "column": 68 + }, + "end": { + "line": 24, + "column": 81 + } + }, + "object": { + "type": "Identifier", + "start": 754, + "end": 758, + "loc": { + "start": { + "line": 24, + "column": 68 + }, + "end": { + "line": 24, + "column": 72 + } + }, + "name": "item" + }, + "property": { + "type": "Identifier", + "start": 759, + "end": 767, + "loc": { + "start": { + "line": 24, + "column": 73 + }, + "end": { + "line": 24, + "column": 81 + } + }, + "name": "filename" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 728, + "end": 728, + "loc": { + "start": { + "line": 24, + "column": 42 + }, + "end": { + "line": 24, + "column": 42 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 751, + "end": 752, + "loc": { + "start": { + "line": 24, + "column": 65 + }, + "end": { + "line": 24, + "column": 66 + } + }, + "value": { + "raw": "/", + "cooked": "/" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 768, + "end": 815, + "loc": { + "start": { + "line": 24, + "column": 82 + }, + "end": { + "line": 24, + "column": 129 + } + }, + "value": { + "raw": "?auto=enhance&w=200&h=200&fit=crop&fm=png&dpr=2", + "cooked": "?auto=enhance&w=200&h=200&fit=crop&fm=png&dpr=2" + }, + "tail": true + } + ] + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 682, + "end": 685, + "loc": { + "start": { + "line": 23, + "column": 33 + }, + "end": { + "line": 23, + "column": 36 + } + }, + "name": "img" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 819, + "end": 848, + "loc": { + "start": { + "line": 24, + "column": 133 + }, + "end": { + "line": 25, + "column": 28 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 855, + "end": 880, + "loc": { + "start": { + "line": 25, + "column": 35 + }, + "end": { + "line": 26, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + } + } + ] + } + }, + { + "type": "Literal", + "start": 909, + "end": 926, + "loc": { + "start": { + "line": 27, + "column": 22 + }, + "end": { + "line": 28, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 932, + "end": 945, + "loc": { + "start": { + "line": 28, + "column": 22 + }, + "end": { + "line": 29, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 242, + "end": 290, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 14, + "column": 7 + } + }, + "range": [ + 242, + 290 + ] + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Contributions\n * React component to be used by Profile component\n ", + "start": 106, + "end": 181, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + }, + "range": [ + 106, + 181 + ] + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Contributions\n * React component to be used by Profile component\n ", + "start": 106, + "end": 181, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + }, + "range": [ + 106, + 181 + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/routes/Profile/index.js.json b/app/docs/ast/source/routes/Profile/index.js.json new file mode 100644 index 0000000..a5e21a9 --- /dev/null +++ b/app/docs/ast/source/routes/Profile/index.js.json @@ -0,0 +1,1376 @@ +{ + "type": "Program", + "start": 0, + "end": 824, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 44, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 18, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 18 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ImportDeclaration", + "start": 27, + "end": 66, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 39 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 36, + "end": 46, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 19 + } + }, + "imported": { + "type": "Identifier", + "start": 36, + "end": 46, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 19 + } + }, + "name": "BackButton" + }, + "local": { + "type": "Identifier", + "start": 36, + "end": 46, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 19 + } + }, + "name": "BackButton" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 54, + "end": 66, + "loc": { + "start": { + "line": 3, + "column": 27 + }, + "end": { + "line": 3, + "column": 39 + } + }, + "value": "components", + "rawValue": "components", + "raw": "'components'" + } + }, + { + "type": "ExpressionStatement", + "start": 68, + "end": 823, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 43, + "column": 1 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 68, + "end": 823, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 43, + "column": 1 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 68, + "end": 82, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 14 + } + }, + "object": { + "type": "Identifier", + "start": 68, + "end": 74, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 6 + } + }, + "name": "module" + }, + "property": { + "type": "Identifier", + "start": 75, + "end": 82, + "loc": { + "start": { + "line": 5, + "column": 7 + }, + "end": { + "line": 5, + "column": 14 + } + }, + "name": "exports" + }, + "computed": false + }, + "right": { + "type": "ObjectExpression", + "start": 85, + "end": 823, + "loc": { + "start": { + "line": 5, + "column": 17 + }, + "end": { + "line": 43, + "column": 1 + } + }, + "properties": [ + { + "type": "Property", + "start": 91, + "end": 111, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 6, + "column": 24 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 91, + "end": 95, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 6, + "column": 8 + } + }, + "name": "path" + }, + "value": { + "type": "Literal", + "start": 97, + "end": 111, + "loc": { + "start": { + "line": 6, + "column": 10 + }, + "end": { + "line": 6, + "column": 24 + } + }, + "value": "/profile/:id", + "rawValue": "/profile/:id", + "raw": "'/profile/:id'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 214, + "end": 295, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 15, + "column": 5 + } + }, + "method": true, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 214, + "end": 226, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 16 + } + }, + "name": "getComponent", + "leadingComments": null + }, + "kind": "init", + "value": { + "type": "FunctionExpression", + "start": 226, + "end": 295, + "loc": { + "start": { + "line": 13, + "column": 16 + }, + "end": { + "line": 15, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 227, + "end": 235, + "loc": { + "start": { + "line": 13, + "column": 17 + }, + "end": { + "line": 13, + "column": 25 + } + }, + "name": "location" + }, + { + "type": "Identifier", + "start": 237, + "end": 239, + "loc": { + "start": { + "line": 13, + "column": 27 + }, + "end": { + "line": 13, + "column": 29 + } + }, + "name": "cb" + } + ], + "body": { + "type": "BlockStatement", + "start": 241, + "end": 295, + "loc": { + "start": { + "line": 13, + "column": 31 + }, + "end": { + "line": 15, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 251, + "end": 289, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 46 + } + }, + "expression": { + "type": "CallExpression", + "start": 251, + "end": 289, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 46 + } + }, + "callee": { + "type": "Identifier", + "start": 251, + "end": 253, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 10 + } + }, + "name": "cb" + }, + "arguments": [ + { + "type": "Literal", + "start": 254, + "end": 258, + "loc": { + "start": { + "line": 14, + "column": 11 + }, + "end": { + "line": 14, + "column": 15 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + { + "type": "MemberExpression", + "start": 260, + "end": 288, + "loc": { + "start": { + "line": 14, + "column": 17 + }, + "end": { + "line": 14, + "column": 45 + } + }, + "object": { + "type": "CallExpression", + "start": 260, + "end": 280, + "loc": { + "start": { + "line": 14, + "column": 17 + }, + "end": { + "line": 14, + "column": 37 + } + }, + "callee": { + "type": "Identifier", + "start": 260, + "end": 267, + "loc": { + "start": { + "line": 14, + "column": 17 + }, + "end": { + "line": 14, + "column": 24 + } + }, + "name": "require" + }, + "arguments": [ + { + "type": "Literal", + "start": 268, + "end": 279, + "loc": { + "start": { + "line": 14, + "column": 25 + }, + "end": { + "line": 14, + "column": 36 + } + }, + "value": "./Profile", + "rawValue": "./Profile", + "raw": "'./Profile'" + } + ] + }, + "property": { + "type": "Identifier", + "start": 281, + "end": 288, + "loc": { + "start": { + "line": 14, + "column": 38 + }, + "end": { + "line": 14, + "column": 45 + } + }, + "name": "default" + }, + "computed": false + } + ] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * getComponent\n * @param location\n * @param cb {Function} callback\n ", + "start": 118, + "end": 209, + "loc": { + "start": { + "line": 8, + "column": 4 + }, + "end": { + "line": 12, + "column": 7 + } + }, + "range": [ + 118, + 209 + ] + } + ] + }, + { + "type": "Property", + "start": 399, + "end": 482, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 24, + "column": 5 + } + }, + "method": true, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 399, + "end": 412, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 17 + } + }, + "name": "getHeaderLeft", + "leadingComments": null + }, + "kind": "init", + "value": { + "type": "FunctionExpression", + "start": 412, + "end": 482, + "loc": { + "start": { + "line": 22, + "column": 17 + }, + "end": { + "line": 24, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 413, + "end": 421, + "loc": { + "start": { + "line": 22, + "column": 18 + }, + "end": { + "line": 22, + "column": 26 + } + }, + "name": "location" + }, + { + "type": "Identifier", + "start": 423, + "end": 425, + "loc": { + "start": { + "line": 22, + "column": 28 + }, + "end": { + "line": 22, + "column": 30 + } + }, + "name": "cb" + } + ], + "body": { + "type": "BlockStatement", + "start": 427, + "end": 482, + "loc": { + "start": { + "line": 22, + "column": 32 + }, + "end": { + "line": 24, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 437, + "end": 476, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 47 + } + }, + "expression": { + "type": "CallExpression", + "start": 437, + "end": 476, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 47 + } + }, + "callee": { + "type": "Identifier", + "start": 437, + "end": 439, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 10 + } + }, + "name": "cb" + }, + "arguments": [ + { + "type": "Literal", + "start": 440, + "end": 444, + "loc": { + "start": { + "line": 23, + "column": 11 + }, + "end": { + "line": 23, + "column": 15 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + { + "type": "JSXElement", + "start": 446, + "end": 475, + "loc": { + "start": { + "line": 23, + "column": 17 + }, + "end": { + "line": 23, + "column": 46 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 446, + "end": 475, + "loc": { + "start": { + "line": 23, + "column": 17 + }, + "end": { + "line": 23, + "column": 46 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 458, + "end": 473, + "loc": { + "start": { + "line": 23, + "column": 29 + }, + "end": { + "line": 23, + "column": 44 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 458, + "end": 463, + "loc": { + "start": { + "line": 23, + "column": 29 + }, + "end": { + "line": 23, + "column": 34 + } + }, + "name": "label" + }, + "value": { + "type": "Literal", + "start": 464, + "end": 473, + "loc": { + "start": { + "line": 23, + "column": 35 + }, + "end": { + "line": 23, + "column": 44 + } + }, + "value": "Profile", + "rawValue": null, + "raw": "\"Profile\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 447, + "end": 457, + "loc": { + "start": { + "line": 23, + "column": 18 + }, + "end": { + "line": 23, + "column": 28 + } + }, + "name": "BackButton" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + ] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * getHeaderLeft\n * @param location\n * @param cb {Function} callback\n ", + "start": 302, + "end": 394, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 21, + "column": 7 + } + }, + "range": [ + 302, + 394 + ] + } + ] + }, + { + "type": "Property", + "start": 588, + "end": 652, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "method": true, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 588, + "end": 603, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 19 + } + }, + "name": "getHeaderMiddle", + "leadingComments": null + }, + "kind": "init", + "value": { + "type": "FunctionExpression", + "start": 603, + "end": 652, + "loc": { + "start": { + "line": 31, + "column": 19 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 604, + "end": 612, + "loc": { + "start": { + "line": 31, + "column": 20 + }, + "end": { + "line": 31, + "column": 28 + } + }, + "name": "location" + }, + { + "type": "Identifier", + "start": 614, + "end": 616, + "loc": { + "start": { + "line": 31, + "column": 30 + }, + "end": { + "line": 31, + "column": 32 + } + }, + "name": "cb" + } + ], + "body": { + "type": "BlockStatement", + "start": 618, + "end": 652, + "loc": { + "start": { + "line": 31, + "column": 34 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 628, + "end": 646, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 26 + } + }, + "expression": { + "type": "CallExpression", + "start": 628, + "end": 646, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 26 + } + }, + "callee": { + "type": "Identifier", + "start": 628, + "end": 630, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 10 + } + }, + "name": "cb" + }, + "arguments": [ + { + "type": "Literal", + "start": 631, + "end": 635, + "loc": { + "start": { + "line": 32, + "column": 11 + }, + "end": { + "line": 32, + "column": 15 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + { + "type": "JSXElement", + "start": 637, + "end": 645, + "loc": { + "start": { + "line": 32, + "column": 17 + }, + "end": { + "line": 32, + "column": 25 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 637, + "end": 645, + "loc": { + "start": { + "line": 32, + "column": 17 + }, + "end": { + "line": 32, + "column": 25 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 638, + "end": 642, + "loc": { + "start": { + "line": 32, + "column": 18 + }, + "end": { + "line": 32, + "column": 22 + } + }, + "name": "span" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + ] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * getHeaderMiddle\n * @param location\n * @param cb {Function} callback\n ", + "start": 489, + "end": 583, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 30, + "column": 7 + } + }, + "range": [ + 489, + 583 + ] + } + ] + }, + { + "type": "Property", + "start": 757, + "end": 820, + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 42, + "column": 5 + } + }, + "method": true, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 757, + "end": 771, + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 40, + "column": 18 + } + }, + "name": "getHeaderRight", + "leadingComments": null + }, + "kind": "init", + "value": { + "type": "FunctionExpression", + "start": 771, + "end": 820, + "loc": { + "start": { + "line": 40, + "column": 18 + }, + "end": { + "line": 42, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 772, + "end": 780, + "loc": { + "start": { + "line": 40, + "column": 19 + }, + "end": { + "line": 40, + "column": 27 + } + }, + "name": "location" + }, + { + "type": "Identifier", + "start": 782, + "end": 784, + "loc": { + "start": { + "line": 40, + "column": 29 + }, + "end": { + "line": 40, + "column": 31 + } + }, + "name": "cb" + } + ], + "body": { + "type": "BlockStatement", + "start": 786, + "end": 820, + "loc": { + "start": { + "line": 40, + "column": 33 + }, + "end": { + "line": 42, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 796, + "end": 814, + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 41, + "column": 26 + } + }, + "expression": { + "type": "CallExpression", + "start": 796, + "end": 814, + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 41, + "column": 26 + } + }, + "callee": { + "type": "Identifier", + "start": 796, + "end": 798, + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 41, + "column": 10 + } + }, + "name": "cb" + }, + "arguments": [ + { + "type": "Literal", + "start": 799, + "end": 803, + "loc": { + "start": { + "line": 41, + "column": 11 + }, + "end": { + "line": 41, + "column": 15 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + { + "type": "JSXElement", + "start": 805, + "end": 813, + "loc": { + "start": { + "line": 41, + "column": 17 + }, + "end": { + "line": 41, + "column": 25 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 805, + "end": 813, + "loc": { + "start": { + "line": 41, + "column": 17 + }, + "end": { + "line": 41, + "column": 25 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 806, + "end": 810, + "loc": { + "start": { + "line": 41, + "column": 18 + }, + "end": { + "line": 41, + "column": 22 + } + }, + "name": "span" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + ] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * getHeaderRight\n * @param location\n * @param cb {Function} callback\n ", + "start": 659, + "end": 752, + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 39, + "column": 7 + } + }, + "range": [ + 659, + 752 + ] + } + ] + } + ] + } + } + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/routes/Profile/navigation/index.js.json b/app/docs/ast/source/routes/Profile/navigation/index.js.json new file mode 100644 index 0000000..b36e1e4 --- /dev/null +++ b/app/docs/ast/source/routes/Profile/navigation/index.js.json @@ -0,0 +1,5440 @@ +{ + "type": "Program", + "start": 0, + "end": 2306, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 72, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + }, + { + "type": "ImportSpecifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "imported": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + }, + "local": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 33, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 33 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ImportDeclaration", + "start": 41, + "end": 78, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 37 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 50, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "imported": { + "type": "Identifier", + "start": 50, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "name": "connect" + }, + "local": { + "type": "Identifier", + "start": 50, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "name": "connect" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 65, + "end": 78, + "loc": { + "start": { + "line": 2, + "column": 24 + }, + "end": { + "line": 2, + "column": 37 + } + }, + "value": "react-redux", + "rawValue": "react-redux", + "raw": "'react-redux'" + } + }, + { + "type": "ImportDeclaration", + "start": 79, + "end": 114, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 35 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 88, + "end": 92, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 13 + } + }, + "imported": { + "type": "Identifier", + "start": 88, + "end": 92, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 13 + } + }, + "name": "Link" + }, + "local": { + "type": "Identifier", + "start": 88, + "end": 92, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 13 + } + }, + "name": "Link" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 100, + "end": 114, + "loc": { + "start": { + "line": 3, + "column": 21 + }, + "end": { + "line": 3, + "column": 35 + } + }, + "value": "react-router", + "rawValue": "react-router", + "raw": "'react-router'" + } + }, + { + "type": "ImportDeclaration", + "start": 115, + "end": 144, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 29 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 122, + "end": 129, + "loc": { + "start": { + "line": 4, + "column": 7 + }, + "end": { + "line": 4, + "column": 14 + } + }, + "local": { + "type": "Identifier", + "start": 122, + "end": 129, + "loc": { + "start": { + "line": 4, + "column": 7 + }, + "end": { + "line": 4, + "column": 14 + } + }, + "name": "numeral" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 135, + "end": 144, + "loc": { + "start": { + "line": 4, + "column": 20 + }, + "end": { + "line": 4, + "column": 29 + } + }, + "value": "numeral", + "rawValue": "numeral", + "raw": "'numeral'" + } + }, + { + "type": "ImportDeclaration", + "start": 146, + "end": 241, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 9, + "column": 16 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 159, + "end": 181, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 7, + "column": 26 + } + }, + "imported": { + "type": "Identifier", + "start": 159, + "end": 165, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 7, + "column": 10 + } + }, + "name": "Photos" + }, + "local": { + "type": "Identifier", + "start": 169, + "end": 181, + "loc": { + "start": { + "line": 7, + "column": 14 + }, + "end": { + "line": 7, + "column": 26 + } + }, + "name": "PhotoActions" + } + }, + { + "type": "ImportSpecifier", + "start": 187, + "end": 223, + "loc": { + "start": { + "line": 8, + "column": 4 + }, + "end": { + "line": 8, + "column": 40 + } + }, + "imported": { + "type": "Identifier", + "start": 187, + "end": 200, + "loc": { + "start": { + "line": 8, + "column": 4 + }, + "end": { + "line": 8, + "column": 17 + } + }, + "name": "Contributions" + }, + "local": { + "type": "Identifier", + "start": 204, + "end": 223, + "loc": { + "start": { + "line": 8, + "column": 21 + }, + "end": { + "line": 8, + "column": 40 + } + }, + "name": "ContributionActions" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 232, + "end": 241, + "loc": { + "start": { + "line": 9, + "column": 7 + }, + "end": { + "line": 9, + "column": 16 + } + }, + "value": "actions", + "rawValue": "actions", + "raw": "'actions'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Navigation\n * React component used by Profile route\n ", + "start": 243, + "end": 305, + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + }, + "range": [ + 243, + 305 + ] + } + ] + }, + { + "type": "ClassDeclaration", + "start": 306, + "end": 2187, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 66, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 312, + "end": 322, + "loc": { + "start": { + "line": 15, + "column": 6 + }, + "end": { + "line": 15, + "column": 16 + } + }, + "name": "Navigation", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 331, + "end": 340, + "loc": { + "start": { + "line": 15, + "column": 25 + }, + "end": { + "line": 15, + "column": 34 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 341, + "end": 2187, + "loc": { + "start": { + "line": 15, + "column": 35 + }, + "end": { + "line": 66, + "column": 1 + } + }, + "body": [ + { + "type": "MethodDefinition", + "start": 389, + "end": 489, + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 22, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 389, + "end": 406, + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 21 + } + }, + "name": "componentDidMount", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 406, + "end": 489, + "loc": { + "start": { + "line": 20, + "column": 21 + }, + "end": { + "line": 22, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 409, + "end": 489, + "loc": { + "start": { + "line": 20, + "column": 24 + }, + "end": { + "line": 22, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 419, + "end": 483, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 72 + } + }, + "expression": { + "type": "CallExpression", + "start": 419, + "end": 483, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 72 + } + }, + "callee": { + "type": "MemberExpression", + "start": 419, + "end": 438, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 27 + } + }, + "object": { + "type": "MemberExpression", + "start": 419, + "end": 429, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 18 + } + }, + "object": { + "type": "ThisExpression", + "start": 419, + "end": 423, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 424, + "end": 429, + "loc": { + "start": { + "line": 21, + "column": 13 + }, + "end": { + "line": 21, + "column": 18 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 430, + "end": 438, + "loc": { + "start": { + "line": 21, + "column": 19 + }, + "end": { + "line": 21, + "column": 27 + } + }, + "name": "dispatch" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 439, + "end": 482, + "loc": { + "start": { + "line": 21, + "column": 28 + }, + "end": { + "line": 21, + "column": 71 + } + }, + "callee": { + "type": "MemberExpression", + "start": 439, + "end": 463, + "loc": { + "start": { + "line": 21, + "column": 28 + }, + "end": { + "line": 21, + "column": 52 + } + }, + "object": { + "type": "Identifier", + "start": 439, + "end": 458, + "loc": { + "start": { + "line": 21, + "column": 28 + }, + "end": { + "line": 21, + "column": 47 + } + }, + "name": "ContributionActions" + }, + "property": { + "type": "Identifier", + "start": 459, + "end": 463, + "loc": { + "start": { + "line": 21, + "column": 48 + }, + "end": { + "line": 21, + "column": 52 + } + }, + "name": "load" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 464, + "end": 481, + "loc": { + "start": { + "line": 21, + "column": 53 + }, + "end": { + "line": 21, + "column": 70 + } + }, + "object": { + "type": "MemberExpression", + "start": 464, + "end": 474, + "loc": { + "start": { + "line": 21, + "column": 53 + }, + "end": { + "line": 21, + "column": 63 + } + }, + "object": { + "type": "ThisExpression", + "start": 464, + "end": 468, + "loc": { + "start": { + "line": 21, + "column": 53 + }, + "end": { + "line": 21, + "column": 57 + } + } + }, + "property": { + "type": "Identifier", + "start": 469, + "end": 474, + "loc": { + "start": { + "line": 21, + "column": 58 + }, + "end": { + "line": 21, + "column": 63 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 475, + "end": 481, + "loc": { + "start": { + "line": 21, + "column": 64 + }, + "end": { + "line": 21, + "column": 70 + } + }, + "name": "userID" + }, + "computed": false + } + ] + } + ] + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * componentDidMount\n ", + "start": 348, + "end": 384, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 19, + "column": 7 + } + }, + "range": [ + 348, + 384 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 495, + "end": 543, + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 27, + "column": 7 + } + }, + "range": [ + 495, + 543 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 548, + "end": 2184, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 64, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 548, + "end": 554, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 554, + "end": 2184, + "loc": { + "start": { + "line": 28, + "column": 10 + }, + "end": { + "line": 64, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 557, + "end": 2184, + "loc": { + "start": { + "line": 28, + "column": 13 + }, + "end": { + "line": 64, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 567, + "end": 2178, + "loc": { + "start": { + "line": 29, + "column": 8 + }, + "end": { + "line": 63, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 588, + "end": 2168, + "loc": { + "start": { + "line": 30, + "column": 12 + }, + "end": { + "line": 62, + "column": 18 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 588, + "end": 593, + "loc": { + "start": { + "line": 30, + "column": 12 + }, + "end": { + "line": 30, + "column": 17 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 589, + "end": 592, + "loc": { + "start": { + "line": 30, + "column": 13 + }, + "end": { + "line": 30, + "column": 16 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2162, + "end": 2168, + "loc": { + "start": { + "line": 62, + "column": 12 + }, + "end": { + "line": 62, + "column": 18 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2164, + "end": 2167, + "loc": { + "start": { + "line": 62, + "column": 14 + }, + "end": { + "line": 62, + "column": 17 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 593, + "end": 610, + "loc": { + "start": { + "line": 30, + "column": 17 + }, + "end": { + "line": 31, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 610, + "end": 629, + "loc": { + "start": { + "line": 31, + "column": 16 + }, + "end": { + "line": 31, + "column": 35 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 610, + "end": 614, + "loc": { + "start": { + "line": 31, + "column": 16 + }, + "end": { + "line": 31, + "column": 20 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 611, + "end": 613, + "loc": { + "start": { + "line": 31, + "column": 17 + }, + "end": { + "line": 31, + "column": 19 + } + }, + "name": "h2" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 624, + "end": 629, + "loc": { + "start": { + "line": 31, + "column": 30 + }, + "end": { + "line": 31, + "column": 35 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 626, + "end": 628, + "loc": { + "start": { + "line": 31, + "column": 32 + }, + "end": { + "line": 31, + "column": 34 + } + }, + "name": "h2" + } + }, + "children": [ + { + "type": "Literal", + "start": 614, + "end": 624, + "loc": { + "start": { + "line": 31, + "column": 20 + }, + "end": { + "line": 31, + "column": 30 + } + }, + "value": "Navigation", + "rawValue": null, + "raw": "Navigation" + } + ] + }, + { + "type": "Literal", + "start": 629, + "end": 646, + "loc": { + "start": { + "line": 31, + "column": 35 + }, + "end": { + "line": 32, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 646, + "end": 2149, + "loc": { + "start": { + "line": 32, + "column": 16 + }, + "end": { + "line": 61, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 646, + "end": 674, + "loc": { + "start": { + "line": 32, + "column": 16 + }, + "end": { + "line": 32, + "column": 44 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 651, + "end": 673, + "loc": { + "start": { + "line": 32, + "column": 21 + }, + "end": { + "line": 32, + "column": 43 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 651, + "end": 660, + "loc": { + "start": { + "line": 32, + "column": 21 + }, + "end": { + "line": 32, + "column": 30 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 661, + "end": 673, + "loc": { + "start": { + "line": 32, + "column": 31 + }, + "end": { + "line": 32, + "column": 43 + } + }, + "value": "navigation", + "rawValue": null, + "raw": "\"navigation\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 647, + "end": 650, + "loc": { + "start": { + "line": 32, + "column": 17 + }, + "end": { + "line": 32, + "column": 20 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2143, + "end": 2149, + "loc": { + "start": { + "line": 61, + "column": 16 + }, + "end": { + "line": 61, + "column": 22 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2145, + "end": 2148, + "loc": { + "start": { + "line": 61, + "column": 18 + }, + "end": { + "line": 61, + "column": 21 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 674, + "end": 695, + "loc": { + "start": { + "line": 32, + "column": 44 + }, + "end": { + "line": 33, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 695, + "end": 1070, + "loc": { + "start": { + "line": 33, + "column": 20 + }, + "end": { + "line": 39, + "column": 27 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 695, + "end": 752, + "loc": { + "start": { + "line": 33, + "column": 20 + }, + "end": { + "line": 33, + "column": 77 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 701, + "end": 751, + "loc": { + "start": { + "line": 33, + "column": 26 + }, + "end": { + "line": 33, + "column": 76 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 701, + "end": 703, + "loc": { + "start": { + "line": 33, + "column": 26 + }, + "end": { + "line": 33, + "column": 28 + } + }, + "name": "to" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 704, + "end": 751, + "loc": { + "start": { + "line": 33, + "column": 29 + }, + "end": { + "line": 33, + "column": 76 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 705, + "end": 750, + "loc": { + "start": { + "line": 33, + "column": 30 + }, + "end": { + "line": 33, + "column": 75 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 717, + "end": 734, + "loc": { + "start": { + "line": 33, + "column": 42 + }, + "end": { + "line": 33, + "column": 59 + } + }, + "object": { + "type": "MemberExpression", + "start": 717, + "end": 727, + "loc": { + "start": { + "line": 33, + "column": 42 + }, + "end": { + "line": 33, + "column": 52 + } + }, + "object": { + "type": "ThisExpression", + "start": 717, + "end": 721, + "loc": { + "start": { + "line": 33, + "column": 42 + }, + "end": { + "line": 33, + "column": 46 + } + } + }, + "property": { + "type": "Identifier", + "start": 722, + "end": 727, + "loc": { + "start": { + "line": 33, + "column": 47 + }, + "end": { + "line": 33, + "column": 52 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 728, + "end": 734, + "loc": { + "start": { + "line": 33, + "column": 53 + }, + "end": { + "line": 33, + "column": 59 + } + }, + "name": "userID" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 706, + "end": 715, + "loc": { + "start": { + "line": 33, + "column": 31 + }, + "end": { + "line": 33, + "column": 40 + } + }, + "value": { + "raw": "/profile/", + "cooked": "/profile/" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 735, + "end": 749, + "loc": { + "start": { + "line": 33, + "column": 60 + }, + "end": { + "line": 33, + "column": 74 + } + }, + "value": { + "raw": "/contributions", + "cooked": "/contributions" + }, + "tail": true + } + ] + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 696, + "end": 700, + "loc": { + "start": { + "line": 33, + "column": 21 + }, + "end": { + "line": 33, + "column": 25 + } + }, + "name": "Link" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1063, + "end": 1070, + "loc": { + "start": { + "line": 39, + "column": 20 + }, + "end": { + "line": 39, + "column": 27 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1065, + "end": 1069, + "loc": { + "start": { + "line": 39, + "column": 22 + }, + "end": { + "line": 39, + "column": 26 + } + }, + "name": "Link" + } + }, + "children": [ + { + "type": "Literal", + "start": 752, + "end": 777, + "loc": { + "start": { + "line": 33, + "column": 77 + }, + "end": { + "line": 34, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 777, + "end": 1042, + "loc": { + "start": { + "line": 34, + "column": 24 + }, + "end": { + "line": 38, + "column": 30 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 777, + "end": 799, + "loc": { + "start": { + "line": 34, + "column": 24 + }, + "end": { + "line": 34, + "column": 46 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 782, + "end": 798, + "loc": { + "start": { + "line": 34, + "column": 29 + }, + "end": { + "line": 34, + "column": 45 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 782, + "end": 791, + "loc": { + "start": { + "line": 34, + "column": 29 + }, + "end": { + "line": 34, + "column": 38 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 792, + "end": 798, + "loc": { + "start": { + "line": 34, + "column": 39 + }, + "end": { + "line": 34, + "column": 45 + } + }, + "value": "item", + "rawValue": null, + "raw": "\"item\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 778, + "end": 781, + "loc": { + "start": { + "line": 34, + "column": 25 + }, + "end": { + "line": 34, + "column": 28 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1036, + "end": 1042, + "loc": { + "start": { + "line": 38, + "column": 24 + }, + "end": { + "line": 38, + "column": 30 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1038, + "end": 1041, + "loc": { + "start": { + "line": 38, + "column": 26 + }, + "end": { + "line": 38, + "column": 29 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 799, + "end": 828, + "loc": { + "start": { + "line": 34, + "column": 46 + }, + "end": { + "line": 35, + "column": 28 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 828, + "end": 854, + "loc": { + "start": { + "line": 35, + "column": 28 + }, + "end": { + "line": 35, + "column": 54 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 828, + "end": 834, + "loc": { + "start": { + "line": 35, + "column": 28 + }, + "end": { + "line": 35, + "column": 34 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 829, + "end": 833, + "loc": { + "start": { + "line": 35, + "column": 29 + }, + "end": { + "line": 35, + "column": 33 + } + }, + "name": "span" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 847, + "end": 854, + "loc": { + "start": { + "line": 35, + "column": 47 + }, + "end": { + "line": 35, + "column": 54 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 849, + "end": 853, + "loc": { + "start": { + "line": 35, + "column": 49 + }, + "end": { + "line": 35, + "column": 53 + } + }, + "name": "span" + } + }, + "children": [ + { + "type": "Literal", + "start": 834, + "end": 847, + "loc": { + "start": { + "line": 35, + "column": 34 + }, + "end": { + "line": 35, + "column": 47 + } + }, + "value": "Contributions", + "rawValue": null, + "raw": "Contributions" + } + ] + }, + { + "type": "Literal", + "start": 854, + "end": 883, + "loc": { + "start": { + "line": 35, + "column": 54 + }, + "end": { + "line": 36, + "column": 28 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 883, + "end": 913, + "loc": { + "start": { + "line": 36, + "column": 28 + }, + "end": { + "line": 36, + "column": 58 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 883, + "end": 906, + "loc": { + "start": { + "line": 36, + "column": 28 + }, + "end": { + "line": 36, + "column": 51 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 889, + "end": 905, + "loc": { + "start": { + "line": 36, + "column": 34 + }, + "end": { + "line": 36, + "column": 50 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 889, + "end": 898, + "loc": { + "start": { + "line": 36, + "column": 34 + }, + "end": { + "line": 36, + "column": 43 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 899, + "end": 905, + "loc": { + "start": { + "line": 36, + "column": 44 + }, + "end": { + "line": 36, + "column": 50 + } + }, + "value": "fill", + "rawValue": null, + "raw": "\"fill\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 884, + "end": 888, + "loc": { + "start": { + "line": 36, + "column": 29 + }, + "end": { + "line": 36, + "column": 33 + } + }, + "name": "span" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 906, + "end": 913, + "loc": { + "start": { + "line": 36, + "column": 51 + }, + "end": { + "line": 36, + "column": 58 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 908, + "end": 912, + "loc": { + "start": { + "line": 36, + "column": 53 + }, + "end": { + "line": 36, + "column": 57 + } + }, + "name": "span" + } + }, + "children": [] + }, + { + "type": "Literal", + "start": 913, + "end": 942, + "loc": { + "start": { + "line": 36, + "column": 58 + }, + "end": { + "line": 37, + "column": 28 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 942, + "end": 1011, + "loc": { + "start": { + "line": 37, + "column": 28 + }, + "end": { + "line": 37, + "column": 97 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 942, + "end": 948, + "loc": { + "start": { + "line": 37, + "column": 28 + }, + "end": { + "line": 37, + "column": 34 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 943, + "end": 947, + "loc": { + "start": { + "line": 37, + "column": 29 + }, + "end": { + "line": 37, + "column": 33 + } + }, + "name": "span" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1004, + "end": 1011, + "loc": { + "start": { + "line": 37, + "column": 90 + }, + "end": { + "line": 37, + "column": 97 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1006, + "end": 1010, + "loc": { + "start": { + "line": 37, + "column": 92 + }, + "end": { + "line": 37, + "column": 96 + } + }, + "name": "span" + } + }, + "children": [ + { + "type": "JSXExpressionContainer", + "start": 948, + "end": 1004, + "loc": { + "start": { + "line": 37, + "column": 34 + }, + "end": { + "line": 37, + "column": 90 + } + }, + "expression": { + "type": "CallExpression", + "start": 949, + "end": 1003, + "loc": { + "start": { + "line": 37, + "column": 35 + }, + "end": { + "line": 37, + "column": 89 + } + }, + "callee": { + "type": "MemberExpression", + "start": 949, + "end": 996, + "loc": { + "start": { + "line": 37, + "column": 35 + }, + "end": { + "line": 37, + "column": 82 + } + }, + "object": { + "type": "CallExpression", + "start": 949, + "end": 989, + "loc": { + "start": { + "line": 37, + "column": 35 + }, + "end": { + "line": 37, + "column": 75 + } + }, + "callee": { + "type": "Identifier", + "start": 949, + "end": 956, + "loc": { + "start": { + "line": 37, + "column": 35 + }, + "end": { + "line": 37, + "column": 42 + } + }, + "name": "numeral" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 957, + "end": 988, + "loc": { + "start": { + "line": 37, + "column": 43 + }, + "end": { + "line": 37, + "column": 74 + } + }, + "object": { + "type": "MemberExpression", + "start": 957, + "end": 981, + "loc": { + "start": { + "line": 37, + "column": 43 + }, + "end": { + "line": 37, + "column": 67 + } + }, + "object": { + "type": "MemberExpression", + "start": 957, + "end": 967, + "loc": { + "start": { + "line": 37, + "column": 43 + }, + "end": { + "line": 37, + "column": 53 + } + }, + "object": { + "type": "ThisExpression", + "start": 957, + "end": 961, + "loc": { + "start": { + "line": 37, + "column": 43 + }, + "end": { + "line": 37, + "column": 47 + } + } + }, + "property": { + "type": "Identifier", + "start": 962, + "end": 967, + "loc": { + "start": { + "line": 37, + "column": 48 + }, + "end": { + "line": 37, + "column": 53 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 968, + "end": 981, + "loc": { + "start": { + "line": 37, + "column": 54 + }, + "end": { + "line": 37, + "column": 67 + } + }, + "name": "contributions" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 982, + "end": 988, + "loc": { + "start": { + "line": 37, + "column": 68 + }, + "end": { + "line": 37, + "column": 74 + } + }, + "name": "length" + }, + "computed": false + } + ] + }, + "property": { + "type": "Identifier", + "start": 990, + "end": 996, + "loc": { + "start": { + "line": 37, + "column": 76 + }, + "end": { + "line": 37, + "column": 82 + } + }, + "name": "format" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 997, + "end": 1002, + "loc": { + "start": { + "line": 37, + "column": 83 + }, + "end": { + "line": 37, + "column": 88 + } + }, + "value": "0,0", + "rawValue": "0,0", + "raw": "'0,0'" + } + ] + } + } + ] + }, + { + "type": "Literal", + "start": 1011, + "end": 1036, + "loc": { + "start": { + "line": 37, + "column": 97 + }, + "end": { + "line": 38, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 1042, + "end": 1063, + "loc": { + "start": { + "line": 38, + "column": 30 + }, + "end": { + "line": 39, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 1070, + "end": 1091, + "loc": { + "start": { + "line": 39, + "column": 27 + }, + "end": { + "line": 40, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1091, + "end": 1447, + "loc": { + "start": { + "line": 40, + "column": 20 + }, + "end": { + "line": 46, + "column": 27 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1091, + "end": 1153, + "loc": { + "start": { + "line": 40, + "column": 20 + }, + "end": { + "line": 40, + "column": 82 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1097, + "end": 1152, + "loc": { + "start": { + "line": 40, + "column": 26 + }, + "end": { + "line": 40, + "column": 81 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1097, + "end": 1099, + "loc": { + "start": { + "line": 40, + "column": 26 + }, + "end": { + "line": 40, + "column": 28 + } + }, + "name": "to" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 1100, + "end": 1152, + "loc": { + "start": { + "line": 40, + "column": 29 + }, + "end": { + "line": 40, + "column": 81 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 1101, + "end": 1151, + "loc": { + "start": { + "line": 40, + "column": 30 + }, + "end": { + "line": 40, + "column": 80 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 1113, + "end": 1130, + "loc": { + "start": { + "line": 40, + "column": 42 + }, + "end": { + "line": 40, + "column": 59 + } + }, + "object": { + "type": "MemberExpression", + "start": 1113, + "end": 1123, + "loc": { + "start": { + "line": 40, + "column": 42 + }, + "end": { + "line": 40, + "column": 52 + } + }, + "object": { + "type": "ThisExpression", + "start": 1113, + "end": 1117, + "loc": { + "start": { + "line": 40, + "column": 42 + }, + "end": { + "line": 40, + "column": 46 + } + } + }, + "property": { + "type": "Identifier", + "start": 1118, + "end": 1123, + "loc": { + "start": { + "line": 40, + "column": 47 + }, + "end": { + "line": 40, + "column": 52 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1124, + "end": 1130, + "loc": { + "start": { + "line": 40, + "column": 53 + }, + "end": { + "line": 40, + "column": 59 + } + }, + "name": "userID" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 1102, + "end": 1111, + "loc": { + "start": { + "line": 40, + "column": 31 + }, + "end": { + "line": 40, + "column": 40 + } + }, + "value": { + "raw": "/profile/", + "cooked": "/profile/" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 1131, + "end": 1150, + "loc": { + "start": { + "line": 40, + "column": 60 + }, + "end": { + "line": 40, + "column": 79 + } + }, + "value": { + "raw": "/following-activity", + "cooked": "/following-activity" + }, + "tail": true + } + ] + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1092, + "end": 1096, + "loc": { + "start": { + "line": 40, + "column": 21 + }, + "end": { + "line": 40, + "column": 25 + } + }, + "name": "Link" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1440, + "end": 1447, + "loc": { + "start": { + "line": 46, + "column": 20 + }, + "end": { + "line": 46, + "column": 27 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1442, + "end": 1446, + "loc": { + "start": { + "line": 46, + "column": 22 + }, + "end": { + "line": 46, + "column": 26 + } + }, + "name": "Link" + } + }, + "children": [ + { + "type": "Literal", + "start": 1153, + "end": 1178, + "loc": { + "start": { + "line": 40, + "column": 82 + }, + "end": { + "line": 41, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1178, + "end": 1419, + "loc": { + "start": { + "line": 41, + "column": 24 + }, + "end": { + "line": 45, + "column": 30 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1178, + "end": 1200, + "loc": { + "start": { + "line": 41, + "column": 24 + }, + "end": { + "line": 41, + "column": 46 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1183, + "end": 1199, + "loc": { + "start": { + "line": 41, + "column": 29 + }, + "end": { + "line": 41, + "column": 45 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1183, + "end": 1192, + "loc": { + "start": { + "line": 41, + "column": 29 + }, + "end": { + "line": 41, + "column": 38 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 1193, + "end": 1199, + "loc": { + "start": { + "line": 41, + "column": 39 + }, + "end": { + "line": 41, + "column": 45 + } + }, + "value": "item", + "rawValue": null, + "raw": "\"item\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1179, + "end": 1182, + "loc": { + "start": { + "line": 41, + "column": 25 + }, + "end": { + "line": 41, + "column": 28 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1413, + "end": 1419, + "loc": { + "start": { + "line": 45, + "column": 24 + }, + "end": { + "line": 45, + "column": 30 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1415, + "end": 1418, + "loc": { + "start": { + "line": 45, + "column": 26 + }, + "end": { + "line": 45, + "column": 29 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 1200, + "end": 1229, + "loc": { + "start": { + "line": 41, + "column": 46 + }, + "end": { + "line": 42, + "column": 28 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1229, + "end": 1260, + "loc": { + "start": { + "line": 42, + "column": 28 + }, + "end": { + "line": 42, + "column": 59 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1229, + "end": 1235, + "loc": { + "start": { + "line": 42, + "column": 28 + }, + "end": { + "line": 42, + "column": 34 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 1230, + "end": 1234, + "loc": { + "start": { + "line": 42, + "column": 29 + }, + "end": { + "line": 42, + "column": 33 + } + }, + "name": "span" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1253, + "end": 1260, + "loc": { + "start": { + "line": 42, + "column": 52 + }, + "end": { + "line": 42, + "column": 59 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1255, + "end": 1259, + "loc": { + "start": { + "line": 42, + "column": 54 + }, + "end": { + "line": 42, + "column": 58 + } + }, + "name": "span" + } + }, + "children": [ + { + "type": "Literal", + "start": 1235, + "end": 1253, + "loc": { + "start": { + "line": 42, + "column": 34 + }, + "end": { + "line": 42, + "column": 52 + } + }, + "value": "Following Activity", + "rawValue": null, + "raw": "Following Activity" + } + ] + }, + { + "type": "Literal", + "start": 1260, + "end": 1289, + "loc": { + "start": { + "line": 42, + "column": 59 + }, + "end": { + "line": 43, + "column": 28 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1289, + "end": 1319, + "loc": { + "start": { + "line": 43, + "column": 28 + }, + "end": { + "line": 43, + "column": 58 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1289, + "end": 1312, + "loc": { + "start": { + "line": 43, + "column": 28 + }, + "end": { + "line": 43, + "column": 51 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1295, + "end": 1311, + "loc": { + "start": { + "line": 43, + "column": 34 + }, + "end": { + "line": 43, + "column": 50 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1295, + "end": 1304, + "loc": { + "start": { + "line": 43, + "column": 34 + }, + "end": { + "line": 43, + "column": 43 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 1305, + "end": 1311, + "loc": { + "start": { + "line": 43, + "column": 44 + }, + "end": { + "line": 43, + "column": 50 + } + }, + "value": "fill", + "rawValue": null, + "raw": "\"fill\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1290, + "end": 1294, + "loc": { + "start": { + "line": 43, + "column": 29 + }, + "end": { + "line": 43, + "column": 33 + } + }, + "name": "span" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1312, + "end": 1319, + "loc": { + "start": { + "line": 43, + "column": 51 + }, + "end": { + "line": 43, + "column": 58 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1314, + "end": 1318, + "loc": { + "start": { + "line": 43, + "column": 53 + }, + "end": { + "line": 43, + "column": 57 + } + }, + "name": "span" + } + }, + "children": [] + }, + { + "type": "Literal", + "start": 1319, + "end": 1348, + "loc": { + "start": { + "line": 43, + "column": 58 + }, + "end": { + "line": 44, + "column": 28 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1348, + "end": 1388, + "loc": { + "start": { + "line": 44, + "column": 28 + }, + "end": { + "line": 44, + "column": 68 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1348, + "end": 1354, + "loc": { + "start": { + "line": 44, + "column": 28 + }, + "end": { + "line": 44, + "column": 34 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 1349, + "end": 1353, + "loc": { + "start": { + "line": 44, + "column": 29 + }, + "end": { + "line": 44, + "column": 33 + } + }, + "name": "span" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1381, + "end": 1388, + "loc": { + "start": { + "line": 44, + "column": 61 + }, + "end": { + "line": 44, + "column": 68 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1383, + "end": 1387, + "loc": { + "start": { + "line": 44, + "column": 63 + }, + "end": { + "line": 44, + "column": 67 + } + }, + "name": "span" + } + }, + "children": [ + { + "type": "JSXExpressionContainer", + "start": 1354, + "end": 1381, + "loc": { + "start": { + "line": 44, + "column": 34 + }, + "end": { + "line": 44, + "column": 61 + } + }, + "expression": { + "type": "MemberExpression", + "start": 1355, + "end": 1380, + "loc": { + "start": { + "line": 44, + "column": 35 + }, + "end": { + "line": 44, + "column": 60 + } + }, + "object": { + "type": "MemberExpression", + "start": 1355, + "end": 1365, + "loc": { + "start": { + "line": 44, + "column": 35 + }, + "end": { + "line": 44, + "column": 45 + } + }, + "object": { + "type": "ThisExpression", + "start": 1355, + "end": 1359, + "loc": { + "start": { + "line": 44, + "column": 35 + }, + "end": { + "line": 44, + "column": 39 + } + } + }, + "property": { + "type": "Identifier", + "start": 1360, + "end": 1365, + "loc": { + "start": { + "line": 44, + "column": 40 + }, + "end": { + "line": 44, + "column": 45 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1366, + "end": 1380, + "loc": { + "start": { + "line": 44, + "column": 46 + }, + "end": { + "line": 44, + "column": 60 + } + }, + "name": "followingCount" + }, + "computed": false + } + } + ] + }, + { + "type": "Literal", + "start": 1388, + "end": 1413, + "loc": { + "start": { + "line": 44, + "column": 68 + }, + "end": { + "line": 45, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 1419, + "end": 1440, + "loc": { + "start": { + "line": 45, + "column": 30 + }, + "end": { + "line": 46, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 1447, + "end": 1468, + "loc": { + "start": { + "line": 46, + "column": 27 + }, + "end": { + "line": 47, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1468, + "end": 1796, + "loc": { + "start": { + "line": 47, + "column": 20 + }, + "end": { + "line": 53, + "column": 27 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1468, + "end": 1504, + "loc": { + "start": { + "line": 47, + "column": 20 + }, + "end": { + "line": 47, + "column": 56 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1474, + "end": 1503, + "loc": { + "start": { + "line": 47, + "column": 26 + }, + "end": { + "line": 47, + "column": 55 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1474, + "end": 1476, + "loc": { + "start": { + "line": 47, + "column": 26 + }, + "end": { + "line": 47, + "column": 28 + } + }, + "name": "to" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 1477, + "end": 1503, + "loc": { + "start": { + "line": 47, + "column": 29 + }, + "end": { + "line": 47, + "column": 55 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 1478, + "end": 1502, + "loc": { + "start": { + "line": 47, + "column": 30 + }, + "end": { + "line": 47, + "column": 54 + } + }, + "expressions": [], + "quasis": [ + { + "type": "TemplateElement", + "start": 1479, + "end": 1501, + "loc": { + "start": { + "line": 47, + "column": 31 + }, + "end": { + "line": 47, + "column": 53 + } + }, + "value": { + "raw": "/profile/notifications", + "cooked": "/profile/notifications" + }, + "tail": true + } + ] + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1469, + "end": 1473, + "loc": { + "start": { + "line": 47, + "column": 21 + }, + "end": { + "line": 47, + "column": 25 + } + }, + "name": "Link" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1789, + "end": 1796, + "loc": { + "start": { + "line": 53, + "column": 20 + }, + "end": { + "line": 53, + "column": 27 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1791, + "end": 1795, + "loc": { + "start": { + "line": 53, + "column": 22 + }, + "end": { + "line": 53, + "column": 26 + } + }, + "name": "Link" + } + }, + "children": [ + { + "type": "Literal", + "start": 1504, + "end": 1529, + "loc": { + "start": { + "line": 47, + "column": 56 + }, + "end": { + "line": 48, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1529, + "end": 1768, + "loc": { + "start": { + "line": 48, + "column": 24 + }, + "end": { + "line": 52, + "column": 30 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1529, + "end": 1551, + "loc": { + "start": { + "line": 48, + "column": 24 + }, + "end": { + "line": 48, + "column": 46 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1534, + "end": 1550, + "loc": { + "start": { + "line": 48, + "column": 29 + }, + "end": { + "line": 48, + "column": 45 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1534, + "end": 1543, + "loc": { + "start": { + "line": 48, + "column": 29 + }, + "end": { + "line": 48, + "column": 38 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 1544, + "end": 1550, + "loc": { + "start": { + "line": 48, + "column": 39 + }, + "end": { + "line": 48, + "column": 45 + } + }, + "value": "item", + "rawValue": null, + "raw": "\"item\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1530, + "end": 1533, + "loc": { + "start": { + "line": 48, + "column": 25 + }, + "end": { + "line": 48, + "column": 28 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1762, + "end": 1768, + "loc": { + "start": { + "line": 52, + "column": 24 + }, + "end": { + "line": 52, + "column": 30 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1764, + "end": 1767, + "loc": { + "start": { + "line": 52, + "column": 26 + }, + "end": { + "line": 52, + "column": 29 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 1551, + "end": 1580, + "loc": { + "start": { + "line": 48, + "column": 46 + }, + "end": { + "line": 49, + "column": 28 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1580, + "end": 1610, + "loc": { + "start": { + "line": 49, + "column": 28 + }, + "end": { + "line": 49, + "column": 58 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1580, + "end": 1586, + "loc": { + "start": { + "line": 49, + "column": 28 + }, + "end": { + "line": 49, + "column": 34 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 1581, + "end": 1585, + "loc": { + "start": { + "line": 49, + "column": 29 + }, + "end": { + "line": 49, + "column": 33 + } + }, + "name": "span" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1603, + "end": 1610, + "loc": { + "start": { + "line": 49, + "column": 51 + }, + "end": { + "line": 49, + "column": 58 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1605, + "end": 1609, + "loc": { + "start": { + "line": 49, + "column": 53 + }, + "end": { + "line": 49, + "column": 57 + } + }, + "name": "span" + } + }, + "children": [ + { + "type": "Literal", + "start": 1586, + "end": 1603, + "loc": { + "start": { + "line": 49, + "column": 34 + }, + "end": { + "line": 49, + "column": 51 + } + }, + "value": "Incoming Activity", + "rawValue": null, + "raw": "Incoming Activity" + } + ] + }, + { + "type": "Literal", + "start": 1610, + "end": 1639, + "loc": { + "start": { + "line": 49, + "column": 58 + }, + "end": { + "line": 50, + "column": 28 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1639, + "end": 1669, + "loc": { + "start": { + "line": 50, + "column": 28 + }, + "end": { + "line": 50, + "column": 58 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1639, + "end": 1662, + "loc": { + "start": { + "line": 50, + "column": 28 + }, + "end": { + "line": 50, + "column": 51 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1645, + "end": 1661, + "loc": { + "start": { + "line": 50, + "column": 34 + }, + "end": { + "line": 50, + "column": 50 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1645, + "end": 1654, + "loc": { + "start": { + "line": 50, + "column": 34 + }, + "end": { + "line": 50, + "column": 43 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 1655, + "end": 1661, + "loc": { + "start": { + "line": 50, + "column": 44 + }, + "end": { + "line": 50, + "column": 50 + } + }, + "value": "fill", + "rawValue": null, + "raw": "\"fill\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1640, + "end": 1644, + "loc": { + "start": { + "line": 50, + "column": 29 + }, + "end": { + "line": 50, + "column": 33 + } + }, + "name": "span" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1662, + "end": 1669, + "loc": { + "start": { + "line": 50, + "column": 51 + }, + "end": { + "line": 50, + "column": 58 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1664, + "end": 1668, + "loc": { + "start": { + "line": 50, + "column": 53 + }, + "end": { + "line": 50, + "column": 57 + } + }, + "name": "span" + } + }, + "children": [] + }, + { + "type": "Literal", + "start": 1669, + "end": 1698, + "loc": { + "start": { + "line": 50, + "column": 58 + }, + "end": { + "line": 51, + "column": 28 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1698, + "end": 1737, + "loc": { + "start": { + "line": 51, + "column": 28 + }, + "end": { + "line": 51, + "column": 67 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1698, + "end": 1704, + "loc": { + "start": { + "line": 51, + "column": 28 + }, + "end": { + "line": 51, + "column": 34 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 1699, + "end": 1703, + "loc": { + "start": { + "line": 51, + "column": 29 + }, + "end": { + "line": 51, + "column": 33 + } + }, + "name": "span" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1730, + "end": 1737, + "loc": { + "start": { + "line": 51, + "column": 60 + }, + "end": { + "line": 51, + "column": 67 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1732, + "end": 1736, + "loc": { + "start": { + "line": 51, + "column": 62 + }, + "end": { + "line": 51, + "column": 66 + } + }, + "name": "span" + } + }, + "children": [ + { + "type": "JSXExpressionContainer", + "start": 1704, + "end": 1730, + "loc": { + "start": { + "line": 51, + "column": 34 + }, + "end": { + "line": 51, + "column": 60 + } + }, + "expression": { + "type": "MemberExpression", + "start": 1705, + "end": 1729, + "loc": { + "start": { + "line": 51, + "column": 35 + }, + "end": { + "line": 51, + "column": 59 + } + }, + "object": { + "type": "MemberExpression", + "start": 1705, + "end": 1715, + "loc": { + "start": { + "line": 51, + "column": 35 + }, + "end": { + "line": 51, + "column": 45 + } + }, + "object": { + "type": "ThisExpression", + "start": 1705, + "end": 1709, + "loc": { + "start": { + "line": 51, + "column": 35 + }, + "end": { + "line": 51, + "column": 39 + } + } + }, + "property": { + "type": "Identifier", + "start": 1710, + "end": 1715, + "loc": { + "start": { + "line": 51, + "column": 40 + }, + "end": { + "line": 51, + "column": 45 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1716, + "end": 1729, + "loc": { + "start": { + "line": 51, + "column": 46 + }, + "end": { + "line": 51, + "column": 59 + } + }, + "name": "incomingCount" + }, + "computed": false + } + } + ] + }, + { + "type": "Literal", + "start": 1737, + "end": 1762, + "loc": { + "start": { + "line": 51, + "column": 67 + }, + "end": { + "line": 52, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 1768, + "end": 1789, + "loc": { + "start": { + "line": 52, + "column": 30 + }, + "end": { + "line": 53, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 1796, + "end": 1817, + "loc": { + "start": { + "line": 53, + "column": 27 + }, + "end": { + "line": 54, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1817, + "end": 2126, + "loc": { + "start": { + "line": 54, + "column": 20 + }, + "end": { + "line": 60, + "column": 27 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1817, + "end": 1866, + "loc": { + "start": { + "line": 54, + "column": 20 + }, + "end": { + "line": 54, + "column": 69 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1823, + "end": 1865, + "loc": { + "start": { + "line": 54, + "column": 26 + }, + "end": { + "line": 54, + "column": 68 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1823, + "end": 1825, + "loc": { + "start": { + "line": 54, + "column": 26 + }, + "end": { + "line": 54, + "column": 28 + } + }, + "name": "to" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 1826, + "end": 1865, + "loc": { + "start": { + "line": 54, + "column": 29 + }, + "end": { + "line": 54, + "column": 68 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 1827, + "end": 1864, + "loc": { + "start": { + "line": 54, + "column": 30 + }, + "end": { + "line": 54, + "column": 67 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 1839, + "end": 1856, + "loc": { + "start": { + "line": 54, + "column": 42 + }, + "end": { + "line": 54, + "column": 59 + } + }, + "object": { + "type": "MemberExpression", + "start": 1839, + "end": 1849, + "loc": { + "start": { + "line": 54, + "column": 42 + }, + "end": { + "line": 54, + "column": 52 + } + }, + "object": { + "type": "ThisExpression", + "start": 1839, + "end": 1843, + "loc": { + "start": { + "line": 54, + "column": 42 + }, + "end": { + "line": 54, + "column": 46 + } + } + }, + "property": { + "type": "Identifier", + "start": 1844, + "end": 1849, + "loc": { + "start": { + "line": 54, + "column": 47 + }, + "end": { + "line": 54, + "column": 52 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1850, + "end": 1856, + "loc": { + "start": { + "line": 54, + "column": 53 + }, + "end": { + "line": 54, + "column": 59 + } + }, + "name": "userID" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 1828, + "end": 1837, + "loc": { + "start": { + "line": 54, + "column": 31 + }, + "end": { + "line": 54, + "column": 40 + } + }, + "value": { + "raw": "/profile/", + "cooked": "/profile/" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 1857, + "end": 1863, + "loc": { + "start": { + "line": 54, + "column": 60 + }, + "end": { + "line": 54, + "column": 66 + } + }, + "value": { + "raw": "/stats", + "cooked": "/stats" + }, + "tail": true + } + ] + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1818, + "end": 1822, + "loc": { + "start": { + "line": 54, + "column": 21 + }, + "end": { + "line": 54, + "column": 25 + } + }, + "name": "Link" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2119, + "end": 2126, + "loc": { + "start": { + "line": 60, + "column": 20 + }, + "end": { + "line": 60, + "column": 27 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2121, + "end": 2125, + "loc": { + "start": { + "line": 60, + "column": 22 + }, + "end": { + "line": 60, + "column": 26 + } + }, + "name": "Link" + } + }, + "children": [ + { + "type": "Literal", + "start": 1866, + "end": 1891, + "loc": { + "start": { + "line": 54, + "column": 69 + }, + "end": { + "line": 55, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1891, + "end": 2098, + "loc": { + "start": { + "line": 55, + "column": 24 + }, + "end": { + "line": 59, + "column": 30 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1891, + "end": 1913, + "loc": { + "start": { + "line": 55, + "column": 24 + }, + "end": { + "line": 55, + "column": 46 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1896, + "end": 1912, + "loc": { + "start": { + "line": 55, + "column": 29 + }, + "end": { + "line": 55, + "column": 45 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1896, + "end": 1905, + "loc": { + "start": { + "line": 55, + "column": 29 + }, + "end": { + "line": 55, + "column": 38 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 1906, + "end": 1912, + "loc": { + "start": { + "line": 55, + "column": 39 + }, + "end": { + "line": 55, + "column": 45 + } + }, + "value": "item", + "rawValue": null, + "raw": "\"item\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1892, + "end": 1895, + "loc": { + "start": { + "line": 55, + "column": 25 + }, + "end": { + "line": 55, + "column": 28 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2092, + "end": 2098, + "loc": { + "start": { + "line": 59, + "column": 24 + }, + "end": { + "line": 59, + "column": 30 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2094, + "end": 2097, + "loc": { + "start": { + "line": 59, + "column": 26 + }, + "end": { + "line": 59, + "column": 29 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 1913, + "end": 1942, + "loc": { + "start": { + "line": 55, + "column": 46 + }, + "end": { + "line": 56, + "column": 28 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1942, + "end": 1960, + "loc": { + "start": { + "line": 56, + "column": 28 + }, + "end": { + "line": 56, + "column": 46 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1942, + "end": 1948, + "loc": { + "start": { + "line": 56, + "column": 28 + }, + "end": { + "line": 56, + "column": 34 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 1943, + "end": 1947, + "loc": { + "start": { + "line": 56, + "column": 29 + }, + "end": { + "line": 56, + "column": 33 + } + }, + "name": "span" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1953, + "end": 1960, + "loc": { + "start": { + "line": 56, + "column": 39 + }, + "end": { + "line": 56, + "column": 46 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1955, + "end": 1959, + "loc": { + "start": { + "line": 56, + "column": 41 + }, + "end": { + "line": 56, + "column": 45 + } + }, + "name": "span" + } + }, + "children": [ + { + "type": "Literal", + "start": 1948, + "end": 1953, + "loc": { + "start": { + "line": 56, + "column": 34 + }, + "end": { + "line": 56, + "column": 39 + } + }, + "value": "Stats", + "rawValue": null, + "raw": "Stats" + } + ] + }, + { + "type": "Literal", + "start": 1960, + "end": 1989, + "loc": { + "start": { + "line": 56, + "column": 46 + }, + "end": { + "line": 57, + "column": 28 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1989, + "end": 2019, + "loc": { + "start": { + "line": 57, + "column": 28 + }, + "end": { + "line": 57, + "column": 58 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1989, + "end": 2012, + "loc": { + "start": { + "line": 57, + "column": 28 + }, + "end": { + "line": 57, + "column": 51 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1995, + "end": 2011, + "loc": { + "start": { + "line": 57, + "column": 34 + }, + "end": { + "line": 57, + "column": 50 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1995, + "end": 2004, + "loc": { + "start": { + "line": 57, + "column": 34 + }, + "end": { + "line": 57, + "column": 43 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 2005, + "end": 2011, + "loc": { + "start": { + "line": 57, + "column": 44 + }, + "end": { + "line": 57, + "column": 50 + } + }, + "value": "fill", + "rawValue": null, + "raw": "\"fill\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1990, + "end": 1994, + "loc": { + "start": { + "line": 57, + "column": 29 + }, + "end": { + "line": 57, + "column": 33 + } + }, + "name": "span" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2012, + "end": 2019, + "loc": { + "start": { + "line": 57, + "column": 51 + }, + "end": { + "line": 57, + "column": 58 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2014, + "end": 2018, + "loc": { + "start": { + "line": 57, + "column": 53 + }, + "end": { + "line": 57, + "column": 57 + } + }, + "name": "span" + } + }, + "children": [] + }, + { + "type": "Literal", + "start": 2019, + "end": 2048, + "loc": { + "start": { + "line": 57, + "column": 58 + }, + "end": { + "line": 58, + "column": 28 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 2048, + "end": 2067, + "loc": { + "start": { + "line": 58, + "column": 28 + }, + "end": { + "line": 58, + "column": 47 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2048, + "end": 2054, + "loc": { + "start": { + "line": 58, + "column": 28 + }, + "end": { + "line": 58, + "column": 34 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 2049, + "end": 2053, + "loc": { + "start": { + "line": 58, + "column": 29 + }, + "end": { + "line": 58, + "column": 33 + } + }, + "name": "span" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2060, + "end": 2067, + "loc": { + "start": { + "line": 58, + "column": 40 + }, + "end": { + "line": 58, + "column": 47 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2062, + "end": 2066, + "loc": { + "start": { + "line": 58, + "column": 42 + }, + "end": { + "line": 58, + "column": 46 + } + }, + "name": "span" + } + }, + "children": [ + { + "type": "Literal", + "start": 2054, + "end": 2060, + "loc": { + "start": { + "line": 58, + "column": 34 + }, + "end": { + "line": 58, + "column": 40 + } + }, + "value": "+15.3%", + "rawValue": null, + "raw": "+15.3%" + } + ] + }, + { + "type": "Literal", + "start": 2067, + "end": 2092, + "loc": { + "start": { + "line": 58, + "column": 47 + }, + "end": { + "line": 59, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 2098, + "end": 2119, + "loc": { + "start": { + "line": 59, + "column": 30 + }, + "end": { + "line": 60, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 2126, + "end": 2143, + "loc": { + "start": { + "line": 60, + "column": 27 + }, + "end": { + "line": 61, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 2149, + "end": 2162, + "loc": { + "start": { + "line": 61, + "column": 22 + }, + "end": { + "line": 62, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 495, + "end": 543, + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 27, + "column": 7 + } + }, + "range": [ + 495, + 543 + ] + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Navigation\n * React component used by Profile route\n ", + "start": 243, + "end": 305, + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + }, + "range": [ + 243, + 305 + ] + } + ] + }, + { + "type": "ExportDefaultDeclaration", + "start": 2189, + "end": 2305, + "loc": { + "start": { + "line": 68, + "column": 0 + }, + "end": { + "line": 71, + "column": 15 + } + }, + "declaration": { + "type": "CallExpression", + "start": 2204, + "end": 2305, + "loc": { + "start": { + "line": 68, + "column": 15 + }, + "end": { + "line": 71, + "column": 15 + } + }, + "callee": { + "type": "CallExpression", + "start": 2204, + "end": 2293, + "loc": { + "start": { + "line": 68, + "column": 15 + }, + "end": { + "line": 71, + "column": 3 + } + }, + "callee": { + "type": "Identifier", + "start": 2204, + "end": 2211, + "loc": { + "start": { + "line": 68, + "column": 15 + }, + "end": { + "line": 68, + "column": 22 + } + }, + "name": "connect" + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 2212, + "end": 2292, + "loc": { + "start": { + "line": 68, + "column": 23 + }, + "end": { + "line": 71, + "column": 2 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2212, + "end": 2217, + "loc": { + "start": { + "line": 68, + "column": 23 + }, + "end": { + "line": 68, + "column": 28 + } + }, + "name": "state" + } + ], + "body": { + "type": "ObjectExpression", + "start": 2222, + "end": 2291, + "loc": { + "start": { + "line": 68, + "column": 33 + }, + "end": { + "line": 71, + "column": 1 + } + }, + "properties": [ + { + "type": "Property", + "start": 2228, + "end": 2248, + "loc": { + "start": { + "line": 69, + "column": 4 + }, + "end": { + "line": 69, + "column": 24 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2228, + "end": 2234, + "loc": { + "start": { + "line": 69, + "column": 4 + }, + "end": { + "line": 69, + "column": 10 + } + }, + "name": "photos" + }, + "value": { + "type": "MemberExpression", + "start": 2236, + "end": 2248, + "loc": { + "start": { + "line": 69, + "column": 12 + }, + "end": { + "line": 69, + "column": 24 + } + }, + "object": { + "type": "Identifier", + "start": 2236, + "end": 2241, + "loc": { + "start": { + "line": 69, + "column": 12 + }, + "end": { + "line": 69, + "column": 17 + } + }, + "name": "state" + }, + "property": { + "type": "Identifier", + "start": 2242, + "end": 2248, + "loc": { + "start": { + "line": 69, + "column": 18 + }, + "end": { + "line": 69, + "column": 24 + } + }, + "name": "Photos" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 2254, + "end": 2288, + "loc": { + "start": { + "line": 70, + "column": 4 + }, + "end": { + "line": 70, + "column": 38 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2254, + "end": 2267, + "loc": { + "start": { + "line": 70, + "column": 4 + }, + "end": { + "line": 70, + "column": 17 + } + }, + "name": "contributions" + }, + "value": { + "type": "MemberExpression", + "start": 2269, + "end": 2288, + "loc": { + "start": { + "line": 70, + "column": 19 + }, + "end": { + "line": 70, + "column": 38 + } + }, + "object": { + "type": "Identifier", + "start": 2269, + "end": 2274, + "loc": { + "start": { + "line": 70, + "column": 19 + }, + "end": { + "line": 70, + "column": 24 + } + }, + "name": "state" + }, + "property": { + "type": "Identifier", + "start": 2275, + "end": 2288, + "loc": { + "start": { + "line": 70, + "column": 25 + }, + "end": { + "line": 70, + "column": 38 + } + }, + "name": "Contributions" + }, + "computed": false + }, + "kind": "init" + } + ], + "parenthesizedExpression": true + } + } + ] + }, + "arguments": [ + { + "type": "Identifier", + "start": 2294, + "end": 2304, + "loc": { + "start": { + "line": 71, + "column": 4 + }, + "end": { + "line": 71, + "column": 14 + } + }, + "name": "Navigation" + } + ], + "leadingComments": [], + "trailingComments": [] + } + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/routes/Search/Search.js.json b/app/docs/ast/source/routes/Search/Search.js.json new file mode 100644 index 0000000..f97c588 --- /dev/null +++ b/app/docs/ast/source/routes/Search/Search.js.json @@ -0,0 +1,10654 @@ +{ + "type": "Program", + "start": 0, + "end": 4572, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 186, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + }, + { + "type": "ImportSpecifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "imported": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + }, + "local": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 33, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 33 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ImportDeclaration", + "start": 41, + "end": 78, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 37 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 50, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "imported": { + "type": "Identifier", + "start": 50, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "name": "connect" + }, + "local": { + "type": "Identifier", + "start": 50, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "name": "connect" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 65, + "end": 78, + "loc": { + "start": { + "line": 2, + "column": 24 + }, + "end": { + "line": 2, + "column": 37 + } + }, + "value": "react-redux", + "rawValue": "react-redux", + "raw": "'react-redux'" + } + }, + { + "type": "ImportDeclaration", + "start": 79, + "end": 124, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 45 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 88, + "end": 102, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 23 + } + }, + "imported": { + "type": "Identifier", + "start": 88, + "end": 102, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 23 + } + }, + "name": "browserHistory" + }, + "local": { + "type": "Identifier", + "start": 88, + "end": 102, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 23 + } + }, + "name": "browserHistory" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 110, + "end": 124, + "loc": { + "start": { + "line": 3, + "column": 31 + }, + "end": { + "line": 3, + "column": 45 + } + }, + "value": "react-router", + "rawValue": "react-router", + "raw": "'react-router'" + } + }, + { + "type": "ImportDeclaration", + "start": 125, + "end": 164, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 39 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 134, + "end": 145, + "loc": { + "start": { + "line": 4, + "column": 9 + }, + "end": { + "line": 4, + "column": 20 + } + }, + "imported": { + "type": "Identifier", + "start": 134, + "end": 145, + "loc": { + "start": { + "line": 4, + "column": 9 + }, + "end": { + "line": 4, + "column": 20 + } + }, + "name": "findDOMNode" + }, + "local": { + "type": "Identifier", + "start": 134, + "end": 145, + "loc": { + "start": { + "line": 4, + "column": 9 + }, + "end": { + "line": 4, + "column": 20 + } + }, + "name": "findDOMNode" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 153, + "end": 164, + "loc": { + "start": { + "line": 4, + "column": 28 + }, + "end": { + "line": 4, + "column": 39 + } + }, + "value": "react-dom", + "rawValue": "react-dom", + "raw": "'react-dom'" + } + }, + { + "type": "ImportDeclaration", + "start": 165, + "end": 192, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 27 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 172, + "end": 178, + "loc": { + "start": { + "line": 5, + "column": 7 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "local": { + "type": "Identifier", + "start": 172, + "end": 178, + "loc": { + "start": { + "line": 5, + "column": 7 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "name": "config" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 184, + "end": 192, + "loc": { + "start": { + "line": 5, + "column": 19 + }, + "end": { + "line": 5, + "column": 27 + } + }, + "value": "config", + "rawValue": "config", + "raw": "'config'" + } + }, + { + "type": "ImportDeclaration", + "start": 194, + "end": 237, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 9, + "column": 21 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 207, + "end": 214, + "loc": { + "start": { + "line": 8, + "column": 4 + }, + "end": { + "line": 8, + "column": 11 + } + }, + "imported": { + "type": "Identifier", + "start": 207, + "end": 214, + "loc": { + "start": { + "line": 8, + "column": 4 + }, + "end": { + "line": 8, + "column": 11 + } + }, + "name": "Filters" + }, + "local": { + "type": "Identifier", + "start": 207, + "end": 214, + "loc": { + "start": { + "line": 8, + "column": 4 + }, + "end": { + "line": 8, + "column": 11 + } + }, + "name": "Filters" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 223, + "end": 237, + "loc": { + "start": { + "line": 9, + "column": 7 + }, + "end": { + "line": 9, + "column": 21 + } + }, + "value": "./components", + "rawValue": "./components", + "raw": "'./components'" + } + }, + { + "type": "ImportDeclaration", + "start": 239, + "end": 293, + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 13, + "column": 16 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 252, + "end": 275, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 27 + } + }, + "imported": { + "type": "Identifier", + "start": 252, + "end": 258, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 10 + } + }, + "name": "Search" + }, + "local": { + "type": "Identifier", + "start": 262, + "end": 275, + "loc": { + "start": { + "line": 12, + "column": 14 + }, + "end": { + "line": 12, + "column": 27 + } + }, + "name": "SearchActions" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 284, + "end": 293, + "loc": { + "start": { + "line": 13, + "column": 7 + }, + "end": { + "line": 13, + "column": 16 + } + }, + "value": "actions", + "rawValue": "actions", + "raw": "'actions'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Search\n * '/search'\n * React Route - Documentation: https://github.com/reactjs/react-router/tree/master/docs\n ", + "start": 295, + "end": 414, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 19, + "column": 3 + } + }, + "range": [ + 295, + 414 + ] + } + ] + }, + { + "type": "ClassDeclaration", + "start": 415, + "end": 4297, + "loc": { + "start": { + "line": 20, + "column": 0 + }, + "end": { + "line": 178, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 421, + "end": 427, + "loc": { + "start": { + "line": 20, + "column": 6 + }, + "end": { + "line": 20, + "column": 12 + } + }, + "name": "Search", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 436, + "end": 445, + "loc": { + "start": { + "line": 20, + "column": 21 + }, + "end": { + "line": 20, + "column": 30 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 446, + "end": 4297, + "loc": { + "start": { + "line": 20, + "column": 31 + }, + "end": { + "line": 178, + "column": 1 + } + }, + "body": [ + { + "type": "Identifier", + "start": 530, + "end": 587, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 29, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 530, + "end": 535, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 9 + } + }, + "name": "state", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ObjectExpression", + "start": 538, + "end": 587, + "loc": { + "start": { + "line": 26, + "column": 12 + }, + "end": { + "line": 29, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 548, + "end": 557, + "loc": { + "start": { + "line": 27, + "column": 8 + }, + "end": { + "line": 27, + "column": 17 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 548, + "end": 553, + "loc": { + "start": { + "line": 27, + "column": 8 + }, + "end": { + "line": 27, + "column": 13 + } + }, + "name": "value" + }, + "value": { + "type": "Literal", + "start": 555, + "end": 557, + "loc": { + "start": { + "line": 27, + "column": 15 + }, + "end": { + "line": 27, + "column": 17 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 567, + "end": 580, + "loc": { + "start": { + "line": 28, + "column": 8 + }, + "end": { + "line": 28, + "column": 21 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 567, + "end": 573, + "loc": { + "start": { + "line": 28, + "column": 8 + }, + "end": { + "line": 28, + "column": 14 + } + }, + "name": "active" + }, + "value": { + "type": "Literal", + "start": 575, + "end": 580, + "loc": { + "start": { + "line": 28, + "column": 16 + }, + "end": { + "line": 28, + "column": 21 + } + }, + "value": false, + "rawValue": false, + "raw": "false" + }, + "kind": "init" + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * state\n * @type {{value: string, active: boolean}}\n ", + "start": 453, + "end": 525, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 25, + "column": 7 + } + }, + "range": [ + 453, + 525 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * componentDidMount\n ", + "start": 593, + "end": 629, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 33, + "column": 7 + } + }, + "range": [ + 593, + 629 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 634, + "end": 760, + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 37, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 634, + "end": 651, + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 34, + "column": 21 + } + }, + "name": "componentDidMount", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 651, + "end": 760, + "loc": { + "start": { + "line": 34, + "column": 21 + }, + "end": { + "line": 37, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 654, + "end": 760, + "loc": { + "start": { + "line": 34, + "column": 24 + }, + "end": { + "line": 37, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 664, + "end": 702, + "loc": { + "start": { + "line": 35, + "column": 8 + }, + "end": { + "line": 35, + "column": 46 + } + }, + "expression": { + "type": "CallExpression", + "start": 664, + "end": 702, + "loc": { + "start": { + "line": 35, + "column": 8 + }, + "end": { + "line": 35, + "column": 46 + } + }, + "callee": { + "type": "MemberExpression", + "start": 664, + "end": 700, + "loc": { + "start": { + "line": 35, + "column": 8 + }, + "end": { + "line": 35, + "column": 44 + } + }, + "object": { + "type": "CallExpression", + "start": 664, + "end": 694, + "loc": { + "start": { + "line": 35, + "column": 8 + }, + "end": { + "line": 35, + "column": 38 + } + }, + "callee": { + "type": "Identifier", + "start": 664, + "end": 675, + "loc": { + "start": { + "line": 35, + "column": 8 + }, + "end": { + "line": 35, + "column": 19 + } + }, + "name": "findDOMNode" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 676, + "end": 693, + "loc": { + "start": { + "line": 35, + "column": 20 + }, + "end": { + "line": 35, + "column": 37 + } + }, + "object": { + "type": "ThisExpression", + "start": 676, + "end": 680, + "loc": { + "start": { + "line": 35, + "column": 20 + }, + "end": { + "line": 35, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "start": 681, + "end": 693, + "loc": { + "start": { + "line": 35, + "column": 25 + }, + "end": { + "line": 35, + "column": 37 + } + }, + "name": "_searchField" + }, + "computed": false + } + ] + }, + "property": { + "type": "Identifier", + "start": 695, + "end": 700, + "loc": { + "start": { + "line": 35, + "column": 39 + }, + "end": { + "line": 35, + "column": 44 + } + }, + "name": "focus" + }, + "computed": false + }, + "arguments": [] + } + }, + { + "type": "ExpressionStatement", + "start": 711, + "end": 754, + "loc": { + "start": { + "line": 36, + "column": 8 + }, + "end": { + "line": 36, + "column": 51 + } + }, + "expression": { + "type": "CallExpression", + "start": 711, + "end": 754, + "loc": { + "start": { + "line": 36, + "column": 8 + }, + "end": { + "line": 36, + "column": 51 + } + }, + "callee": { + "type": "MemberExpression", + "start": 711, + "end": 730, + "loc": { + "start": { + "line": 36, + "column": 8 + }, + "end": { + "line": 36, + "column": 27 + } + }, + "object": { + "type": "MemberExpression", + "start": 711, + "end": 721, + "loc": { + "start": { + "line": 36, + "column": 8 + }, + "end": { + "line": 36, + "column": 18 + } + }, + "object": { + "type": "ThisExpression", + "start": 711, + "end": 715, + "loc": { + "start": { + "line": 36, + "column": 8 + }, + "end": { + "line": 36, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 716, + "end": 721, + "loc": { + "start": { + "line": 36, + "column": 13 + }, + "end": { + "line": 36, + "column": 18 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 722, + "end": 730, + "loc": { + "start": { + "line": 36, + "column": 19 + }, + "end": { + "line": 36, + "column": 27 + } + }, + "name": "dispatch" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 731, + "end": 753, + "loc": { + "start": { + "line": 36, + "column": 28 + }, + "end": { + "line": 36, + "column": 50 + } + }, + "callee": { + "type": "MemberExpression", + "start": 731, + "end": 751, + "loc": { + "start": { + "line": 36, + "column": 28 + }, + "end": { + "line": 36, + "column": 48 + } + }, + "object": { + "type": "Identifier", + "start": 731, + "end": 744, + "loc": { + "start": { + "line": 36, + "column": 28 + }, + "end": { + "line": 36, + "column": 41 + } + }, + "name": "SearchActions" + }, + "property": { + "type": "Identifier", + "start": 745, + "end": 751, + "loc": { + "start": { + "line": 36, + "column": 42 + }, + "end": { + "line": 36, + "column": 48 + } + }, + "name": "recent" + }, + "computed": false + }, + "arguments": [] + } + ] + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * componentDidMount\n ", + "start": 593, + "end": 629, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 33, + "column": 7 + } + }, + "range": [ + 593, + 629 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * componentDidUpdate\n * @param oldProps\n ", + "start": 766, + "end": 826, + "loc": { + "start": { + "line": 39, + "column": 4 + }, + "end": { + "line": 42, + "column": 7 + } + }, + "range": [ + 766, + 826 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 831, + "end": 1087, + "loc": { + "start": { + "line": 43, + "column": 4 + }, + "end": { + "line": 47, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 831, + "end": 849, + "loc": { + "start": { + "line": 43, + "column": 4 + }, + "end": { + "line": 43, + "column": 22 + } + }, + "name": "componentDidUpdate", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 849, + "end": 1087, + "loc": { + "start": { + "line": 43, + "column": 22 + }, + "end": { + "line": 47, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 850, + "end": 858, + "loc": { + "start": { + "line": 43, + "column": 23 + }, + "end": { + "line": 43, + "column": 31 + } + }, + "name": "oldProps" + } + ], + "body": { + "type": "BlockStatement", + "start": 860, + "end": 1087, + "loc": { + "start": { + "line": 43, + "column": 33 + }, + "end": { + "line": 47, + "column": 5 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 870, + "end": 1081, + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 46, + "column": 9 + } + }, + "test": { + "type": "BinaryExpression", + "start": 874, + "end": 924, + "loc": { + "start": { + "line": 44, + "column": 12 + }, + "end": { + "line": 44, + "column": 62 + } + }, + "left": { + "type": "MemberExpression", + "start": 874, + "end": 898, + "loc": { + "start": { + "line": 44, + "column": 12 + }, + "end": { + "line": 44, + "column": 36 + } + }, + "object": { + "type": "MemberExpression", + "start": 874, + "end": 891, + "loc": { + "start": { + "line": 44, + "column": 12 + }, + "end": { + "line": 44, + "column": 29 + } + }, + "object": { + "type": "MemberExpression", + "start": 874, + "end": 884, + "loc": { + "start": { + "line": 44, + "column": 12 + }, + "end": { + "line": 44, + "column": 22 + } + }, + "object": { + "type": "ThisExpression", + "start": 874, + "end": 878, + "loc": { + "start": { + "line": 44, + "column": 12 + }, + "end": { + "line": 44, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 879, + "end": 884, + "loc": { + "start": { + "line": 44, + "column": 17 + }, + "end": { + "line": 44, + "column": 22 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 885, + "end": 891, + "loc": { + "start": { + "line": 44, + "column": 23 + }, + "end": { + "line": 44, + "column": 29 + } + }, + "name": "search" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 892, + "end": 898, + "loc": { + "start": { + "line": 44, + "column": 30 + }, + "end": { + "line": 44, + "column": 36 + } + }, + "name": "active" + }, + "computed": false + }, + "operator": "!=", + "right": { + "type": "MemberExpression", + "start": 902, + "end": 924, + "loc": { + "start": { + "line": 44, + "column": 40 + }, + "end": { + "line": 44, + "column": 62 + } + }, + "object": { + "type": "MemberExpression", + "start": 902, + "end": 917, + "loc": { + "start": { + "line": 44, + "column": 40 + }, + "end": { + "line": 44, + "column": 55 + } + }, + "object": { + "type": "Identifier", + "start": 902, + "end": 910, + "loc": { + "start": { + "line": 44, + "column": 40 + }, + "end": { + "line": 44, + "column": 48 + } + }, + "name": "oldProps" + }, + "property": { + "type": "Identifier", + "start": 911, + "end": 917, + "loc": { + "start": { + "line": 44, + "column": 49 + }, + "end": { + "line": 44, + "column": 55 + } + }, + "name": "search" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 918, + "end": 924, + "loc": { + "start": { + "line": 44, + "column": 56 + }, + "end": { + "line": 44, + "column": 62 + } + }, + "name": "active" + }, + "computed": false + } + }, + "consequent": { + "type": "BlockStatement", + "start": 926, + "end": 1081, + "loc": { + "start": { + "line": 44, + "column": 64 + }, + "end": { + "line": 46, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 940, + "end": 1071, + "loc": { + "start": { + "line": 45, + "column": 12 + }, + "end": { + "line": 45, + "column": 143 + } + }, + "expression": { + "type": "CallExpression", + "start": 940, + "end": 1071, + "loc": { + "start": { + "line": 45, + "column": 12 + }, + "end": { + "line": 45, + "column": 143 + } + }, + "callee": { + "type": "MemberExpression", + "start": 940, + "end": 959, + "loc": { + "start": { + "line": 45, + "column": 12 + }, + "end": { + "line": 45, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 940, + "end": 954, + "loc": { + "start": { + "line": 45, + "column": 12 + }, + "end": { + "line": 45, + "column": 26 + } + }, + "name": "browserHistory" + }, + "property": { + "type": "Identifier", + "start": 955, + "end": 959, + "loc": { + "start": { + "line": 45, + "column": 27 + }, + "end": { + "line": 45, + "column": 31 + } + }, + "name": "push" + }, + "computed": false + }, + "arguments": [ + { + "type": "TemplateLiteral", + "start": 960, + "end": 1070, + "loc": { + "start": { + "line": 45, + "column": 32 + }, + "end": { + "line": 45, + "column": 142 + } + }, + "expressions": [ + { + "type": "CallExpression", + "start": 981, + "end": 1030, + "loc": { + "start": { + "line": 45, + "column": 53 + }, + "end": { + "line": 45, + "column": 102 + } + }, + "callee": { + "type": "Identifier", + "start": 981, + "end": 999, + "loc": { + "start": { + "line": 45, + "column": 53 + }, + "end": { + "line": 45, + "column": 71 + } + }, + "name": "encodeURIComponent" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 1000, + "end": 1029, + "loc": { + "start": { + "line": 45, + "column": 72 + }, + "end": { + "line": 45, + "column": 101 + } + }, + "object": { + "type": "MemberExpression", + "start": 1000, + "end": 1024, + "loc": { + "start": { + "line": 45, + "column": 72 + }, + "end": { + "line": 45, + "column": 96 + } + }, + "object": { + "type": "MemberExpression", + "start": 1000, + "end": 1017, + "loc": { + "start": { + "line": 45, + "column": 72 + }, + "end": { + "line": 45, + "column": 89 + } + }, + "object": { + "type": "MemberExpression", + "start": 1000, + "end": 1010, + "loc": { + "start": { + "line": 45, + "column": 72 + }, + "end": { + "line": 45, + "column": 82 + } + }, + "object": { + "type": "ThisExpression", + "start": 1000, + "end": 1004, + "loc": { + "start": { + "line": 45, + "column": 72 + }, + "end": { + "line": 45, + "column": 76 + } + } + }, + "property": { + "type": "Identifier", + "start": 1005, + "end": 1010, + "loc": { + "start": { + "line": 45, + "column": 77 + }, + "end": { + "line": 45, + "column": 82 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1011, + "end": 1017, + "loc": { + "start": { + "line": 45, + "column": 83 + }, + "end": { + "line": 45, + "column": 89 + } + }, + "name": "search" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1018, + "end": 1024, + "loc": { + "start": { + "line": 45, + "column": 90 + }, + "end": { + "line": 45, + "column": 96 + } + }, + "name": "active" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1025, + "end": 1029, + "loc": { + "start": { + "line": 45, + "column": 97 + }, + "end": { + "line": 45, + "column": 101 + } + }, + "name": "word" + }, + "computed": false + } + ] + }, + { + "type": "MemberExpression", + "start": 1039, + "end": 1068, + "loc": { + "start": { + "line": 45, + "column": 111 + }, + "end": { + "line": 45, + "column": 140 + } + }, + "object": { + "type": "MemberExpression", + "start": 1039, + "end": 1063, + "loc": { + "start": { + "line": 45, + "column": 111 + }, + "end": { + "line": 45, + "column": 135 + } + }, + "object": { + "type": "MemberExpression", + "start": 1039, + "end": 1056, + "loc": { + "start": { + "line": 45, + "column": 111 + }, + "end": { + "line": 45, + "column": 128 + } + }, + "object": { + "type": "MemberExpression", + "start": 1039, + "end": 1049, + "loc": { + "start": { + "line": 45, + "column": 111 + }, + "end": { + "line": 45, + "column": 121 + } + }, + "object": { + "type": "ThisExpression", + "start": 1039, + "end": 1043, + "loc": { + "start": { + "line": 45, + "column": 111 + }, + "end": { + "line": 45, + "column": 115 + } + } + }, + "property": { + "type": "Identifier", + "start": 1044, + "end": 1049, + "loc": { + "start": { + "line": 45, + "column": 116 + }, + "end": { + "line": 45, + "column": 121 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1050, + "end": 1056, + "loc": { + "start": { + "line": 45, + "column": 122 + }, + "end": { + "line": 45, + "column": 128 + } + }, + "name": "search" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1057, + "end": 1063, + "loc": { + "start": { + "line": 45, + "column": 129 + }, + "end": { + "line": 45, + "column": 135 + } + }, + "name": "active" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1064, + "end": 1068, + "loc": { + "start": { + "line": 45, + "column": 136 + }, + "end": { + "line": 45, + "column": 140 + } + }, + "name": "type" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 961, + "end": 979, + "loc": { + "start": { + "line": 45, + "column": 33 + }, + "end": { + "line": 45, + "column": 51 + } + }, + "value": { + "raw": "/search-results?q=", + "cooked": "/search-results?q=" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 1031, + "end": 1037, + "loc": { + "start": { + "line": 45, + "column": 103 + }, + "end": { + "line": 45, + "column": 109 + } + }, + "value": { + "raw": "&type=", + "cooked": "&type=" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 1069, + "end": 1069, + "loc": { + "start": { + "line": 45, + "column": 141 + }, + "end": { + "line": 45, + "column": 141 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + ] + } + } + ] + }, + "alternate": null + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * componentDidUpdate\n * @param oldProps\n ", + "start": 766, + "end": 826, + "loc": { + "start": { + "line": 39, + "column": 4 + }, + "end": { + "line": 42, + "column": 7 + } + }, + "range": [ + 766, + 826 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * handleSearchChange\n * @param e event\n ", + "start": 1093, + "end": 1152, + "loc": { + "start": { + "line": 49, + "column": 4 + }, + "end": { + "line": 52, + "column": 7 + } + }, + "range": [ + 1093, + 1152 + ] + } + ] + }, + { + "type": "Identifier", + "start": 1157, + "end": 1611, + "loc": { + "start": { + "line": 53, + "column": 4 + }, + "end": { + "line": 72, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 1157, + "end": 1175, + "loc": { + "start": { + "line": 53, + "column": 4 + }, + "end": { + "line": 53, + "column": 22 + } + }, + "name": "handleSearchChange", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ArrowFunctionExpression", + "start": 1178, + "end": 1611, + "loc": { + "start": { + "line": 53, + "column": 25 + }, + "end": { + "line": 72, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1179, + "end": 1180, + "loc": { + "start": { + "line": 53, + "column": 26 + }, + "end": { + "line": 53, + "column": 27 + } + }, + "name": "e" + } + ], + "body": { + "type": "BlockStatement", + "start": 1185, + "end": 1611, + "loc": { + "start": { + "line": 53, + "column": 32 + }, + "end": { + "line": 72, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1196, + "end": 1257, + "loc": { + "start": { + "line": 55, + "column": 8 + }, + "end": { + "line": 57, + "column": 10 + } + }, + "expression": { + "type": "CallExpression", + "start": 1196, + "end": 1257, + "loc": { + "start": { + "line": 55, + "column": 8 + }, + "end": { + "line": 57, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1196, + "end": 1209, + "loc": { + "start": { + "line": 55, + "column": 8 + }, + "end": { + "line": 55, + "column": 21 + } + }, + "object": { + "type": "ThisExpression", + "start": 1196, + "end": 1200, + "loc": { + "start": { + "line": 55, + "column": 8 + }, + "end": { + "line": 55, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 1201, + "end": 1209, + "loc": { + "start": { + "line": 55, + "column": 13 + }, + "end": { + "line": 55, + "column": 21 + } + }, + "name": "setState" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 1210, + "end": 1256, + "loc": { + "start": { + "line": 55, + "column": 22 + }, + "end": { + "line": 57, + "column": 9 + } + }, + "properties": [ + { + "type": "Property", + "start": 1224, + "end": 1245, + "loc": { + "start": { + "line": 56, + "column": 12 + }, + "end": { + "line": 56, + "column": 33 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1224, + "end": 1229, + "loc": { + "start": { + "line": 56, + "column": 12 + }, + "end": { + "line": 56, + "column": 17 + } + }, + "name": "value" + }, + "value": { + "type": "MemberExpression", + "start": 1231, + "end": 1245, + "loc": { + "start": { + "line": 56, + "column": 19 + }, + "end": { + "line": 56, + "column": 33 + } + }, + "object": { + "type": "MemberExpression", + "start": 1231, + "end": 1239, + "loc": { + "start": { + "line": 56, + "column": 19 + }, + "end": { + "line": 56, + "column": 27 + } + }, + "object": { + "type": "Identifier", + "start": 1231, + "end": 1232, + "loc": { + "start": { + "line": 56, + "column": 19 + }, + "end": { + "line": 56, + "column": 20 + } + }, + "name": "e" + }, + "property": { + "type": "Identifier", + "start": 1233, + "end": 1239, + "loc": { + "start": { + "line": 56, + "column": 21 + }, + "end": { + "line": 56, + "column": 27 + } + }, + "name": "target" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1240, + "end": 1245, + "loc": { + "start": { + "line": 56, + "column": 28 + }, + "end": { + "line": 56, + "column": 33 + } + }, + "name": "value" + }, + "computed": false + }, + "kind": "init" + } + ] + } + ] + } + }, + { + "type": "IfStatement", + "start": 1267, + "end": 1301, + "loc": { + "start": { + "line": 59, + "column": 8 + }, + "end": { + "line": 59, + "column": 42 + } + }, + "test": { + "type": "MemberExpression", + "start": 1271, + "end": 1278, + "loc": { + "start": { + "line": 59, + "column": 12 + }, + "end": { + "line": 59, + "column": 19 + } + }, + "object": { + "type": "ThisExpression", + "start": 1271, + "end": 1275, + "loc": { + "start": { + "line": 59, + "column": 12 + }, + "end": { + "line": 59, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 1276, + "end": 1278, + "loc": { + "start": { + "line": 59, + "column": 17 + }, + "end": { + "line": 59, + "column": 19 + } + }, + "name": "$i" + }, + "computed": false + }, + "consequent": { + "type": "ExpressionStatement", + "start": 1280, + "end": 1301, + "loc": { + "start": { + "line": 59, + "column": 21 + }, + "end": { + "line": 59, + "column": 42 + } + }, + "expression": { + "type": "CallExpression", + "start": 1280, + "end": 1301, + "loc": { + "start": { + "line": 59, + "column": 21 + }, + "end": { + "line": 59, + "column": 42 + } + }, + "callee": { + "type": "Identifier", + "start": 1280, + "end": 1292, + "loc": { + "start": { + "line": 59, + "column": 21 + }, + "end": { + "line": 59, + "column": 33 + } + }, + "name": "clearTimeout" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 1293, + "end": 1300, + "loc": { + "start": { + "line": 59, + "column": 34 + }, + "end": { + "line": 59, + "column": 41 + } + }, + "object": { + "type": "ThisExpression", + "start": 1293, + "end": 1297, + "loc": { + "start": { + "line": 59, + "column": 34 + }, + "end": { + "line": 59, + "column": 38 + } + } + }, + "property": { + "type": "Identifier", + "start": 1298, + "end": 1300, + "loc": { + "start": { + "line": 59, + "column": 39 + }, + "end": { + "line": 59, + "column": 41 + } + }, + "name": "$i" + }, + "computed": false + } + ] + } + }, + "alternate": null + }, + { + "type": "ExpressionStatement", + "start": 1311, + "end": 1605, + "loc": { + "start": { + "line": 61, + "column": 8 + }, + "end": { + "line": 71, + "column": 15 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1311, + "end": 1605, + "loc": { + "start": { + "line": 61, + "column": 8 + }, + "end": { + "line": 71, + "column": 15 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 1311, + "end": 1318, + "loc": { + "start": { + "line": 61, + "column": 8 + }, + "end": { + "line": 61, + "column": 15 + } + }, + "object": { + "type": "ThisExpression", + "start": 1311, + "end": 1315, + "loc": { + "start": { + "line": 61, + "column": 8 + }, + "end": { + "line": 61, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 1316, + "end": 1318, + "loc": { + "start": { + "line": 61, + "column": 13 + }, + "end": { + "line": 61, + "column": 15 + } + }, + "name": "$i" + }, + "computed": false + }, + "right": { + "type": "CallExpression", + "start": 1321, + "end": 1605, + "loc": { + "start": { + "line": 61, + "column": 18 + }, + "end": { + "line": 71, + "column": 15 + } + }, + "callee": { + "type": "Identifier", + "start": 1321, + "end": 1331, + "loc": { + "start": { + "line": 61, + "column": 18 + }, + "end": { + "line": 61, + "column": 28 + } + }, + "name": "setTimeout" + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 1332, + "end": 1599, + "loc": { + "start": { + "line": 61, + "column": 29 + }, + "end": { + "line": 71, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 1338, + "end": 1599, + "loc": { + "start": { + "line": 61, + "column": 35 + }, + "end": { + "line": 71, + "column": 9 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 1353, + "end": 1466, + "loc": { + "start": { + "line": 63, + "column": 12 + }, + "end": { + "line": 66, + "column": 13 + } + }, + "test": { + "type": "BinaryExpression", + "start": 1357, + "end": 1379, + "loc": { + "start": { + "line": 63, + "column": 16 + }, + "end": { + "line": 63, + "column": 38 + } + }, + "left": { + "type": "MemberExpression", + "start": 1357, + "end": 1373, + "loc": { + "start": { + "line": 63, + "column": 16 + }, + "end": { + "line": 63, + "column": 32 + } + }, + "object": { + "type": "MemberExpression", + "start": 1357, + "end": 1367, + "loc": { + "start": { + "line": 63, + "column": 16 + }, + "end": { + "line": 63, + "column": 26 + } + }, + "object": { + "type": "ThisExpression", + "start": 1357, + "end": 1361, + "loc": { + "start": { + "line": 63, + "column": 16 + }, + "end": { + "line": 63, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "start": 1362, + "end": 1367, + "loc": { + "start": { + "line": 63, + "column": 21 + }, + "end": { + "line": 63, + "column": 26 + } + }, + "name": "state" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1368, + "end": 1373, + "loc": { + "start": { + "line": 63, + "column": 27 + }, + "end": { + "line": 63, + "column": 32 + } + }, + "name": "value" + }, + "computed": false + }, + "operator": "==", + "right": { + "type": "Literal", + "start": 1377, + "end": 1379, + "loc": { + "start": { + "line": 63, + "column": 36 + }, + "end": { + "line": 63, + "column": 38 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 1381, + "end": 1466, + "loc": { + "start": { + "line": 63, + "column": 40 + }, + "end": { + "line": 66, + "column": 13 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1399, + "end": 1429, + "loc": { + "start": { + "line": 64, + "column": 16 + }, + "end": { + "line": 64, + "column": 46 + } + }, + "expression": { + "type": "CallExpression", + "start": 1399, + "end": 1429, + "loc": { + "start": { + "line": 64, + "column": 16 + }, + "end": { + "line": 64, + "column": 46 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1399, + "end": 1412, + "loc": { + "start": { + "line": 64, + "column": 16 + }, + "end": { + "line": 64, + "column": 29 + } + }, + "object": { + "type": "ThisExpression", + "start": 1399, + "end": 1403, + "loc": { + "start": { + "line": 64, + "column": 16 + }, + "end": { + "line": 64, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "start": 1404, + "end": 1412, + "loc": { + "start": { + "line": 64, + "column": 21 + }, + "end": { + "line": 64, + "column": 29 + } + }, + "name": "setState" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 1413, + "end": 1428, + "loc": { + "start": { + "line": 64, + "column": 30 + }, + "end": { + "line": 64, + "column": 45 + } + }, + "properties": [ + { + "type": "Property", + "start": 1414, + "end": 1427, + "loc": { + "start": { + "line": 64, + "column": 31 + }, + "end": { + "line": 64, + "column": 44 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1414, + "end": 1420, + "loc": { + "start": { + "line": 64, + "column": 31 + }, + "end": { + "line": 64, + "column": 37 + } + }, + "name": "active" + }, + "value": { + "type": "Literal", + "start": 1422, + "end": 1427, + "loc": { + "start": { + "line": 64, + "column": 39 + }, + "end": { + "line": 64, + "column": 44 + } + }, + "value": false, + "rawValue": false, + "raw": "false" + }, + "kind": "init" + } + ] + } + ] + } + }, + { + "type": "ReturnStatement", + "start": 1446, + "end": 1452, + "loc": { + "start": { + "line": 65, + "column": 16 + }, + "end": { + "line": 65, + "column": 22 + } + }, + "argument": null + } + ] + }, + "alternate": null + }, + { + "type": "ExpressionStatement", + "start": 1480, + "end": 1509, + "loc": { + "start": { + "line": 68, + "column": 12 + }, + "end": { + "line": 68, + "column": 41 + } + }, + "expression": { + "type": "CallExpression", + "start": 1480, + "end": 1509, + "loc": { + "start": { + "line": 68, + "column": 12 + }, + "end": { + "line": 68, + "column": 41 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1480, + "end": 1493, + "loc": { + "start": { + "line": 68, + "column": 12 + }, + "end": { + "line": 68, + "column": 25 + } + }, + "object": { + "type": "ThisExpression", + "start": 1480, + "end": 1484, + "loc": { + "start": { + "line": 68, + "column": 12 + }, + "end": { + "line": 68, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 1485, + "end": 1493, + "loc": { + "start": { + "line": 68, + "column": 17 + }, + "end": { + "line": 68, + "column": 25 + } + }, + "name": "setState" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 1494, + "end": 1508, + "loc": { + "start": { + "line": 68, + "column": 26 + }, + "end": { + "line": 68, + "column": 40 + } + }, + "properties": [ + { + "type": "Property", + "start": 1495, + "end": 1507, + "loc": { + "start": { + "line": 68, + "column": 27 + }, + "end": { + "line": 68, + "column": 39 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1495, + "end": 1501, + "loc": { + "start": { + "line": 68, + "column": 27 + }, + "end": { + "line": 68, + "column": 33 + } + }, + "name": "active" + }, + "value": { + "type": "Literal", + "start": 1503, + "end": 1507, + "loc": { + "start": { + "line": 68, + "column": 35 + }, + "end": { + "line": 68, + "column": 39 + } + }, + "value": true, + "rawValue": true, + "raw": "true" + }, + "kind": "init" + } + ] + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 1522, + "end": 1588, + "loc": { + "start": { + "line": 69, + "column": 12 + }, + "end": { + "line": 69, + "column": 78 + } + }, + "expression": { + "type": "CallExpression", + "start": 1522, + "end": 1588, + "loc": { + "start": { + "line": 69, + "column": 12 + }, + "end": { + "line": 69, + "column": 78 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1522, + "end": 1541, + "loc": { + "start": { + "line": 69, + "column": 12 + }, + "end": { + "line": 69, + "column": 31 + } + }, + "object": { + "type": "MemberExpression", + "start": 1522, + "end": 1532, + "loc": { + "start": { + "line": 69, + "column": 12 + }, + "end": { + "line": 69, + "column": 22 + } + }, + "object": { + "type": "ThisExpression", + "start": 1522, + "end": 1526, + "loc": { + "start": { + "line": 69, + "column": 12 + }, + "end": { + "line": 69, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 1527, + "end": 1532, + "loc": { + "start": { + "line": 69, + "column": 17 + }, + "end": { + "line": 69, + "column": 22 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1533, + "end": 1541, + "loc": { + "start": { + "line": 69, + "column": 23 + }, + "end": { + "line": 69, + "column": 31 + } + }, + "name": "dispatch" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1542, + "end": 1587, + "loc": { + "start": { + "line": 69, + "column": 32 + }, + "end": { + "line": 69, + "column": 77 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1542, + "end": 1562, + "loc": { + "start": { + "line": 69, + "column": 32 + }, + "end": { + "line": 69, + "column": 52 + } + }, + "object": { + "type": "Identifier", + "start": 1542, + "end": 1555, + "loc": { + "start": { + "line": 69, + "column": 32 + }, + "end": { + "line": 69, + "column": 45 + } + }, + "name": "SearchActions" + }, + "property": { + "type": "Identifier", + "start": 1556, + "end": 1562, + "loc": { + "start": { + "line": 69, + "column": 46 + }, + "end": { + "line": 69, + "column": 52 + } + }, + "name": "search" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 1563, + "end": 1579, + "loc": { + "start": { + "line": 69, + "column": 53 + }, + "end": { + "line": 69, + "column": 69 + } + }, + "object": { + "type": "MemberExpression", + "start": 1563, + "end": 1573, + "loc": { + "start": { + "line": 69, + "column": 53 + }, + "end": { + "line": 69, + "column": 63 + } + }, + "object": { + "type": "ThisExpression", + "start": 1563, + "end": 1567, + "loc": { + "start": { + "line": 69, + "column": 53 + }, + "end": { + "line": 69, + "column": 57 + } + } + }, + "property": { + "type": "Identifier", + "start": 1568, + "end": 1573, + "loc": { + "start": { + "line": 69, + "column": 58 + }, + "end": { + "line": 69, + "column": 63 + } + }, + "name": "state" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1574, + "end": 1579, + "loc": { + "start": { + "line": 69, + "column": 64 + }, + "end": { + "line": 69, + "column": 69 + } + }, + "name": "value" + }, + "computed": false + }, + { + "type": "Literal", + "start": 1581, + "end": 1586, + "loc": { + "start": { + "line": 69, + "column": 71 + }, + "end": { + "line": 69, + "column": 76 + } + }, + "value": "all", + "rawValue": "all", + "raw": "'all'" + } + ] + } + ] + } + } + ] + } + }, + { + "type": "Literal", + "start": 1601, + "end": 1604, + "loc": { + "start": { + "line": 71, + "column": 11 + }, + "end": { + "line": 71, + "column": 14 + } + }, + "value": 200, + "rawValue": 200, + "raw": "200" + } + ] + } + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * handleSearchChange\n * @param e event\n ", + "start": 1093, + "end": 1152, + "loc": { + "start": { + "line": 49, + "column": 4 + }, + "end": { + "line": 52, + "column": 7 + } + }, + "range": [ + 1093, + 1152 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * handleSubmit\n * @param e event\n ", + "start": 1617, + "end": 1670, + "loc": { + "start": { + "line": 74, + "column": 4 + }, + "end": { + "line": 77, + "column": 7 + } + }, + "range": [ + 1617, + 1670 + ] + } + ] + }, + { + "type": "Identifier", + "start": 1675, + "end": 1900, + "loc": { + "start": { + "line": 78, + "column": 4 + }, + "end": { + "line": 86, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 1675, + "end": 1687, + "loc": { + "start": { + "line": 78, + "column": 4 + }, + "end": { + "line": 78, + "column": 16 + } + }, + "name": "handleSubmit", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ArrowFunctionExpression", + "start": 1690, + "end": 1900, + "loc": { + "start": { + "line": 78, + "column": 19 + }, + "end": { + "line": 86, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1691, + "end": 1692, + "loc": { + "start": { + "line": 78, + "column": 20 + }, + "end": { + "line": 78, + "column": 21 + } + }, + "name": "e" + } + ], + "body": { + "type": "BlockStatement", + "start": 1697, + "end": 1900, + "loc": { + "start": { + "line": 78, + "column": 26 + }, + "end": { + "line": 86, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1707, + "end": 1725, + "loc": { + "start": { + "line": 79, + "column": 8 + }, + "end": { + "line": 79, + "column": 26 + } + }, + "expression": { + "type": "CallExpression", + "start": 1707, + "end": 1725, + "loc": { + "start": { + "line": 79, + "column": 8 + }, + "end": { + "line": 79, + "column": 26 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1707, + "end": 1723, + "loc": { + "start": { + "line": 79, + "column": 8 + }, + "end": { + "line": 79, + "column": 24 + } + }, + "object": { + "type": "Identifier", + "start": 1707, + "end": 1708, + "loc": { + "start": { + "line": 79, + "column": 8 + }, + "end": { + "line": 79, + "column": 9 + } + }, + "name": "e" + }, + "property": { + "type": "Identifier", + "start": 1709, + "end": 1723, + "loc": { + "start": { + "line": 79, + "column": 10 + }, + "end": { + "line": 79, + "column": 24 + } + }, + "name": "preventDefault" + }, + "computed": false + }, + "arguments": [] + } + }, + { + "type": "ExpressionStatement", + "start": 1735, + "end": 1818, + "loc": { + "start": { + "line": 81, + "column": 8 + }, + "end": { + "line": 83, + "column": 10 + } + }, + "expression": { + "type": "CallExpression", + "start": 1735, + "end": 1818, + "loc": { + "start": { + "line": 81, + "column": 8 + }, + "end": { + "line": 83, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1735, + "end": 1748, + "loc": { + "start": { + "line": 81, + "column": 8 + }, + "end": { + "line": 81, + "column": 21 + } + }, + "object": { + "type": "ThisExpression", + "start": 1735, + "end": 1739, + "loc": { + "start": { + "line": 81, + "column": 8 + }, + "end": { + "line": 81, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 1740, + "end": 1748, + "loc": { + "start": { + "line": 81, + "column": 13 + }, + "end": { + "line": 81, + "column": 21 + } + }, + "name": "setState" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 1749, + "end": 1817, + "loc": { + "start": { + "line": 81, + "column": 22 + }, + "end": { + "line": 83, + "column": 9 + } + }, + "properties": [ + { + "type": "Property", + "start": 1763, + "end": 1806, + "loc": { + "start": { + "line": 82, + "column": 12 + }, + "end": { + "line": 82, + "column": 55 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1763, + "end": 1769, + "loc": { + "start": { + "line": 82, + "column": 12 + }, + "end": { + "line": 82, + "column": 18 + } + }, + "name": "active" + }, + "value": { + "type": "ConditionalExpression", + "start": 1771, + "end": 1806, + "loc": { + "start": { + "line": 82, + "column": 20 + }, + "end": { + "line": 82, + "column": 55 + } + }, + "test": { + "type": "BinaryExpression", + "start": 1771, + "end": 1791, + "loc": { + "start": { + "line": 82, + "column": 20 + }, + "end": { + "line": 82, + "column": 40 + } + }, + "left": { + "type": "MemberExpression", + "start": 1771, + "end": 1785, + "loc": { + "start": { + "line": 82, + "column": 20 + }, + "end": { + "line": 82, + "column": 34 + } + }, + "object": { + "type": "MemberExpression", + "start": 1771, + "end": 1779, + "loc": { + "start": { + "line": 82, + "column": 20 + }, + "end": { + "line": 82, + "column": 28 + } + }, + "object": { + "type": "Identifier", + "start": 1771, + "end": 1772, + "loc": { + "start": { + "line": 82, + "column": 20 + }, + "end": { + "line": 82, + "column": 21 + } + }, + "name": "e" + }, + "property": { + "type": "Identifier", + "start": 1773, + "end": 1779, + "loc": { + "start": { + "line": 82, + "column": 22 + }, + "end": { + "line": 82, + "column": 28 + } + }, + "name": "target" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1780, + "end": 1785, + "loc": { + "start": { + "line": 82, + "column": 29 + }, + "end": { + "line": 82, + "column": 34 + } + }, + "name": "value" + }, + "computed": false + }, + "operator": "==", + "right": { + "type": "Literal", + "start": 1789, + "end": 1791, + "loc": { + "start": { + "line": 82, + "column": 38 + }, + "end": { + "line": 82, + "column": 40 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + } + }, + "consequent": { + "type": "Literal", + "start": 1794, + "end": 1799, + "loc": { + "start": { + "line": 82, + "column": 43 + }, + "end": { + "line": 82, + "column": 48 + } + }, + "value": false, + "rawValue": false, + "raw": "false" + }, + "alternate": { + "type": "Literal", + "start": 1802, + "end": 1806, + "loc": { + "start": { + "line": 82, + "column": 51 + }, + "end": { + "line": 82, + "column": 55 + } + }, + "value": true, + "rawValue": true, + "raw": "true" + } + }, + "kind": "init" + } + ] + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 1828, + "end": 1894, + "loc": { + "start": { + "line": 85, + "column": 8 + }, + "end": { + "line": 85, + "column": 74 + } + }, + "expression": { + "type": "CallExpression", + "start": 1828, + "end": 1894, + "loc": { + "start": { + "line": 85, + "column": 8 + }, + "end": { + "line": 85, + "column": 74 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1828, + "end": 1847, + "loc": { + "start": { + "line": 85, + "column": 8 + }, + "end": { + "line": 85, + "column": 27 + } + }, + "object": { + "type": "MemberExpression", + "start": 1828, + "end": 1838, + "loc": { + "start": { + "line": 85, + "column": 8 + }, + "end": { + "line": 85, + "column": 18 + } + }, + "object": { + "type": "ThisExpression", + "start": 1828, + "end": 1832, + "loc": { + "start": { + "line": 85, + "column": 8 + }, + "end": { + "line": 85, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 1833, + "end": 1838, + "loc": { + "start": { + "line": 85, + "column": 13 + }, + "end": { + "line": 85, + "column": 18 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1839, + "end": 1847, + "loc": { + "start": { + "line": 85, + "column": 19 + }, + "end": { + "line": 85, + "column": 27 + } + }, + "name": "dispatch" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1848, + "end": 1893, + "loc": { + "start": { + "line": 85, + "column": 28 + }, + "end": { + "line": 85, + "column": 73 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1848, + "end": 1868, + "loc": { + "start": { + "line": 85, + "column": 28 + }, + "end": { + "line": 85, + "column": 48 + } + }, + "object": { + "type": "Identifier", + "start": 1848, + "end": 1861, + "loc": { + "start": { + "line": 85, + "column": 28 + }, + "end": { + "line": 85, + "column": 41 + } + }, + "name": "SearchActions" + }, + "property": { + "type": "Identifier", + "start": 1862, + "end": 1868, + "loc": { + "start": { + "line": 85, + "column": 42 + }, + "end": { + "line": 85, + "column": 48 + } + }, + "name": "search" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 1869, + "end": 1885, + "loc": { + "start": { + "line": 85, + "column": 49 + }, + "end": { + "line": 85, + "column": 65 + } + }, + "object": { + "type": "MemberExpression", + "start": 1869, + "end": 1879, + "loc": { + "start": { + "line": 85, + "column": 49 + }, + "end": { + "line": 85, + "column": 59 + } + }, + "object": { + "type": "ThisExpression", + "start": 1869, + "end": 1873, + "loc": { + "start": { + "line": 85, + "column": 49 + }, + "end": { + "line": 85, + "column": 53 + } + } + }, + "property": { + "type": "Identifier", + "start": 1874, + "end": 1879, + "loc": { + "start": { + "line": 85, + "column": 54 + }, + "end": { + "line": 85, + "column": 59 + } + }, + "name": "state" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1880, + "end": 1885, + "loc": { + "start": { + "line": 85, + "column": 60 + }, + "end": { + "line": 85, + "column": 65 + } + }, + "name": "value" + }, + "computed": false + }, + { + "type": "Literal", + "start": 1887, + "end": 1892, + "loc": { + "start": { + "line": 85, + "column": 67 + }, + "end": { + "line": 85, + "column": 72 + } + }, + "value": "all", + "rawValue": "all", + "raw": "'all'" + } + ] + } + ] + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * handleSubmit\n * @param e event\n ", + "start": 1617, + "end": 1670, + "loc": { + "start": { + "line": 74, + "column": 4 + }, + "end": { + "line": 77, + "column": 7 + } + }, + "range": [ + 1617, + 1670 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * handleFilterClick\n * @param e\n * @param i\n * @param result\n ", + "start": 1906, + "end": 1995, + "loc": { + "start": { + "line": 88, + "column": 4 + }, + "end": { + "line": 93, + "column": 7 + } + }, + "range": [ + 1906, + 1995 + ] + } + ] + }, + { + "type": "Identifier", + "start": 2000, + "end": 2653, + "loc": { + "start": { + "line": 94, + "column": 4 + }, + "end": { + "line": 120, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 2000, + "end": 2017, + "loc": { + "start": { + "line": 94, + "column": 4 + }, + "end": { + "line": 94, + "column": 21 + } + }, + "name": "handleFilterClick", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ArrowFunctionExpression", + "start": 2020, + "end": 2653, + "loc": { + "start": { + "line": 94, + "column": 24 + }, + "end": { + "line": 120, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2021, + "end": 2022, + "loc": { + "start": { + "line": 94, + "column": 25 + }, + "end": { + "line": 94, + "column": 26 + } + }, + "name": "e" + }, + { + "type": "Identifier", + "start": 2024, + "end": 2025, + "loc": { + "start": { + "line": 94, + "column": 28 + }, + "end": { + "line": 94, + "column": 29 + } + }, + "name": "i" + }, + { + "type": "Identifier", + "start": 2027, + "end": 2033, + "loc": { + "start": { + "line": 94, + "column": 31 + }, + "end": { + "line": 94, + "column": 37 + } + }, + "name": "result" + } + ], + "body": { + "type": "BlockStatement", + "start": 2038, + "end": 2653, + "loc": { + "start": { + "line": 94, + "column": 42 + }, + "end": { + "line": 120, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 2049, + "end": 2063, + "loc": { + "start": { + "line": 96, + "column": 8 + }, + "end": { + "line": 96, + "column": 22 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 2053, + "end": 2063, + "loc": { + "start": { + "line": 96, + "column": 12 + }, + "end": { + "line": 96, + "column": 22 + } + }, + "id": { + "type": "Identifier", + "start": 2053, + "end": 2054, + "loc": { + "start": { + "line": 96, + "column": 12 + }, + "end": { + "line": 96, + "column": 13 + } + }, + "name": "r" + }, + "init": { + "type": "Identifier", + "start": 2057, + "end": 2063, + "loc": { + "start": { + "line": 96, + "column": 16 + }, + "end": { + "line": 96, + "column": 22 + } + }, + "name": "result" + } + } + ], + "kind": "let" + }, + { + "type": "IfStatement", + "start": 2072, + "end": 2535, + "loc": { + "start": { + "line": 97, + "column": 8 + }, + "end": { + "line": 115, + "column": 9 + } + }, + "test": { + "type": "BinaryExpression", + "start": 2076, + "end": 2101, + "loc": { + "start": { + "line": 97, + "column": 12 + }, + "end": { + "line": 97, + "column": 37 + } + }, + "left": { + "type": "UnaryExpression", + "start": 2076, + "end": 2089, + "loc": { + "start": { + "line": 97, + "column": 12 + }, + "end": { + "line": 97, + "column": 25 + } + }, + "operator": "typeof", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 2083, + "end": 2089, + "loc": { + "start": { + "line": 97, + "column": 19 + }, + "end": { + "line": 97, + "column": 25 + } + }, + "name": "result" + } + }, + "operator": "==", + "right": { + "type": "Literal", + "start": 2093, + "end": 2101, + "loc": { + "start": { + "line": 97, + "column": 29 + }, + "end": { + "line": 97, + "column": 37 + } + }, + "value": "string", + "rawValue": "string", + "raw": "'string'" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 2103, + "end": 2388, + "loc": { + "start": { + "line": 97, + "column": 39 + }, + "end": { + "line": 110, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 2118, + "end": 2124, + "loc": { + "start": { + "line": 99, + "column": 12 + }, + "end": { + "line": 99, + "column": 18 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 2118, + "end": 2124, + "loc": { + "start": { + "line": 99, + "column": 12 + }, + "end": { + "line": 99, + "column": 18 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 2118, + "end": 2119, + "loc": { + "start": { + "line": 99, + "column": 12 + }, + "end": { + "line": 99, + "column": 13 + } + }, + "name": "r" + }, + "right": { + "type": "ObjectExpression", + "start": 2122, + "end": 2124, + "loc": { + "start": { + "line": 99, + "column": 16 + }, + "end": { + "line": 99, + "column": 18 + } + }, + "properties": [] + } + } + }, + { + "type": "IfStatement", + "start": 2137, + "end": 2267, + "loc": { + "start": { + "line": 100, + "column": 12 + }, + "end": { + "line": 103, + "column": 13 + } + }, + "test": { + "type": "BinaryExpression", + "start": 2141, + "end": 2165, + "loc": { + "start": { + "line": 100, + "column": 16 + }, + "end": { + "line": 100, + "column": 40 + } + }, + "left": { + "type": "CallExpression", + "start": 2141, + "end": 2160, + "loc": { + "start": { + "line": 100, + "column": 16 + }, + "end": { + "line": 100, + "column": 35 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2141, + "end": 2155, + "loc": { + "start": { + "line": 100, + "column": 16 + }, + "end": { + "line": 100, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 2141, + "end": 2147, + "loc": { + "start": { + "line": 100, + "column": 16 + }, + "end": { + "line": 100, + "column": 22 + } + }, + "name": "result" + }, + "property": { + "type": "Identifier", + "start": 2148, + "end": 2155, + "loc": { + "start": { + "line": 100, + "column": 23 + }, + "end": { + "line": 100, + "column": 30 + } + }, + "name": "indexOf" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 2156, + "end": 2159, + "loc": { + "start": { + "line": 100, + "column": 31 + }, + "end": { + "line": 100, + "column": 34 + } + }, + "value": "#", + "rawValue": "#", + "raw": "'#'" + } + ] + }, + "operator": ">=", + "right": { + "type": "Literal", + "start": 2164, + "end": 2165, + "loc": { + "start": { + "line": 100, + "column": 39 + }, + "end": { + "line": 100, + "column": 40 + } + }, + "value": 0, + "rawValue": 0, + "raw": "0" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 2167, + "end": 2267, + "loc": { + "start": { + "line": 100, + "column": 42 + }, + "end": { + "line": 103, + "column": 13 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 2185, + "end": 2204, + "loc": { + "start": { + "line": 101, + "column": 16 + }, + "end": { + "line": 101, + "column": 35 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 2185, + "end": 2204, + "loc": { + "start": { + "line": 101, + "column": 16 + }, + "end": { + "line": 101, + "column": 35 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 2185, + "end": 2191, + "loc": { + "start": { + "line": 101, + "column": 16 + }, + "end": { + "line": 101, + "column": 22 + } + }, + "object": { + "type": "Identifier", + "start": 2185, + "end": 2186, + "loc": { + "start": { + "line": 101, + "column": 16 + }, + "end": { + "line": 101, + "column": 17 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 2187, + "end": 2191, + "loc": { + "start": { + "line": 101, + "column": 18 + }, + "end": { + "line": 101, + "column": 22 + } + }, + "name": "type" + }, + "computed": false + }, + "right": { + "type": "Literal", + "start": 2194, + "end": 2204, + "loc": { + "start": { + "line": 101, + "column": 25 + }, + "end": { + "line": 101, + "column": 35 + } + }, + "value": "hashtags", + "rawValue": "hashtags", + "raw": "'hashtags'" + } + } + }, + { + "type": "ExpressionStatement", + "start": 2221, + "end": 2253, + "loc": { + "start": { + "line": 102, + "column": 16 + }, + "end": { + "line": 102, + "column": 48 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 2221, + "end": 2253, + "loc": { + "start": { + "line": 102, + "column": 16 + }, + "end": { + "line": 102, + "column": 48 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 2221, + "end": 2227, + "loc": { + "start": { + "line": 102, + "column": 16 + }, + "end": { + "line": 102, + "column": 22 + } + }, + "object": { + "type": "Identifier", + "start": 2221, + "end": 2222, + "loc": { + "start": { + "line": 102, + "column": 16 + }, + "end": { + "line": 102, + "column": 17 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 2223, + "end": 2227, + "loc": { + "start": { + "line": 102, + "column": 18 + }, + "end": { + "line": 102, + "column": 22 + } + }, + "name": "word" + }, + "computed": false + }, + "right": { + "type": "CallExpression", + "start": 2230, + "end": 2253, + "loc": { + "start": { + "line": 102, + "column": 25 + }, + "end": { + "line": 102, + "column": 48 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2230, + "end": 2244, + "loc": { + "start": { + "line": 102, + "column": 25 + }, + "end": { + "line": 102, + "column": 39 + } + }, + "object": { + "type": "Identifier", + "start": 2230, + "end": 2236, + "loc": { + "start": { + "line": 102, + "column": 25 + }, + "end": { + "line": 102, + "column": 31 + } + }, + "name": "result" + }, + "property": { + "type": "Identifier", + "start": 2237, + "end": 2244, + "loc": { + "start": { + "line": 102, + "column": 32 + }, + "end": { + "line": 102, + "column": 39 + } + }, + "name": "replace" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 2245, + "end": 2248, + "loc": { + "start": { + "line": 102, + "column": 40 + }, + "end": { + "line": 102, + "column": 43 + } + }, + "value": "#", + "rawValue": "#", + "raw": "'#'" + }, + { + "type": "Literal", + "start": 2250, + "end": 2252, + "loc": { + "start": { + "line": 102, + "column": 45 + }, + "end": { + "line": 102, + "column": 47 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + } + ] + } + } + } + ] + }, + "alternate": null + }, + { + "type": "IfStatement", + "start": 2281, + "end": 2377, + "loc": { + "start": { + "line": 105, + "column": 12 + }, + "end": { + "line": 108, + "column": 13 + } + }, + "test": { + "type": "UnaryExpression", + "start": 2285, + "end": 2292, + "loc": { + "start": { + "line": 105, + "column": 16 + }, + "end": { + "line": 105, + "column": 23 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 2286, + "end": 2292, + "loc": { + "start": { + "line": 105, + "column": 17 + }, + "end": { + "line": 105, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 2286, + "end": 2287, + "loc": { + "start": { + "line": 105, + "column": 17 + }, + "end": { + "line": 105, + "column": 18 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 2288, + "end": 2292, + "loc": { + "start": { + "line": 105, + "column": 19 + }, + "end": { + "line": 105, + "column": 23 + } + }, + "name": "type" + }, + "computed": false + } + }, + "consequent": { + "type": "BlockStatement", + "start": 2294, + "end": 2377, + "loc": { + "start": { + "line": 105, + "column": 25 + }, + "end": { + "line": 108, + "column": 13 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 2312, + "end": 2331, + "loc": { + "start": { + "line": 106, + "column": 16 + }, + "end": { + "line": 106, + "column": 35 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 2312, + "end": 2331, + "loc": { + "start": { + "line": 106, + "column": 16 + }, + "end": { + "line": 106, + "column": 35 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 2312, + "end": 2318, + "loc": { + "start": { + "line": 106, + "column": 16 + }, + "end": { + "line": 106, + "column": 22 + } + }, + "object": { + "type": "Identifier", + "start": 2312, + "end": 2313, + "loc": { + "start": { + "line": 106, + "column": 16 + }, + "end": { + "line": 106, + "column": 17 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 2314, + "end": 2318, + "loc": { + "start": { + "line": 106, + "column": 18 + }, + "end": { + "line": 106, + "column": 22 + } + }, + "name": "type" + }, + "computed": false + }, + "right": { + "type": "Literal", + "start": 2321, + "end": 2331, + "loc": { + "start": { + "line": 106, + "column": 25 + }, + "end": { + "line": 106, + "column": 35 + } + }, + "value": "location", + "rawValue": "location", + "raw": "'location'" + } + } + }, + { + "type": "ExpressionStatement", + "start": 2348, + "end": 2363, + "loc": { + "start": { + "line": 107, + "column": 16 + }, + "end": { + "line": 107, + "column": 31 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 2348, + "end": 2363, + "loc": { + "start": { + "line": 107, + "column": 16 + }, + "end": { + "line": 107, + "column": 31 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 2348, + "end": 2354, + "loc": { + "start": { + "line": 107, + "column": 16 + }, + "end": { + "line": 107, + "column": 22 + } + }, + "object": { + "type": "Identifier", + "start": 2348, + "end": 2349, + "loc": { + "start": { + "line": 107, + "column": 16 + }, + "end": { + "line": 107, + "column": 17 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 2350, + "end": 2354, + "loc": { + "start": { + "line": 107, + "column": 18 + }, + "end": { + "line": 107, + "column": 22 + } + }, + "name": "word" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 2357, + "end": 2363, + "loc": { + "start": { + "line": 107, + "column": 25 + }, + "end": { + "line": 107, + "column": 31 + } + }, + "name": "result" + } + } + } + ] + }, + "alternate": null + } + ] + }, + "alternate": { + "type": "BlockStatement", + "start": 2394, + "end": 2535, + "loc": { + "start": { + "line": 110, + "column": 15 + }, + "end": { + "line": 115, + "column": 9 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 2408, + "end": 2525, + "loc": { + "start": { + "line": 111, + "column": 12 + }, + "end": { + "line": 114, + "column": 13 + } + }, + "test": { + "type": "BinaryExpression", + "start": 2412, + "end": 2433, + "loc": { + "start": { + "line": 111, + "column": 16 + }, + "end": { + "line": 111, + "column": 37 + } + }, + "left": { + "type": "MemberExpression", + "start": 2412, + "end": 2423, + "loc": { + "start": { + "line": 111, + "column": 16 + }, + "end": { + "line": 111, + "column": 27 + } + }, + "object": { + "type": "Identifier", + "start": 2412, + "end": 2418, + "loc": { + "start": { + "line": 111, + "column": 16 + }, + "end": { + "line": 111, + "column": 22 + } + }, + "name": "result" + }, + "property": { + "type": "Identifier", + "start": 2419, + "end": 2423, + "loc": { + "start": { + "line": 111, + "column": 23 + }, + "end": { + "line": 111, + "column": 27 + } + }, + "name": "type" + }, + "computed": false + }, + "operator": "==", + "right": { + "type": "Literal", + "start": 2427, + "end": 2433, + "loc": { + "start": { + "line": 111, + "column": 31 + }, + "end": { + "line": 111, + "column": 37 + } + }, + "value": "user", + "rawValue": "user", + "raw": "'user'" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 2435, + "end": 2525, + "loc": { + "start": { + "line": 111, + "column": 39 + }, + "end": { + "line": 114, + "column": 13 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 2453, + "end": 2468, + "loc": { + "start": { + "line": 112, + "column": 16 + }, + "end": { + "line": 112, + "column": 31 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 2453, + "end": 2468, + "loc": { + "start": { + "line": 112, + "column": 16 + }, + "end": { + "line": 112, + "column": 31 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 2453, + "end": 2459, + "loc": { + "start": { + "line": 112, + "column": 16 + }, + "end": { + "line": 112, + "column": 22 + } + }, + "object": { + "type": "Identifier", + "start": 2453, + "end": 2454, + "loc": { + "start": { + "line": 112, + "column": 16 + }, + "end": { + "line": 112, + "column": 17 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 2455, + "end": 2459, + "loc": { + "start": { + "line": 112, + "column": 18 + }, + "end": { + "line": 112, + "column": 22 + } + }, + "name": "type" + }, + "computed": false + }, + "right": { + "type": "Literal", + "start": 2462, + "end": 2468, + "loc": { + "start": { + "line": 112, + "column": 25 + }, + "end": { + "line": 112, + "column": 31 + } + }, + "value": "user", + "rawValue": "user", + "raw": "'user'" + } + } + }, + { + "type": "ExpressionStatement", + "start": 2485, + "end": 2511, + "loc": { + "start": { + "line": 113, + "column": 16 + }, + "end": { + "line": 113, + "column": 42 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 2485, + "end": 2511, + "loc": { + "start": { + "line": 113, + "column": 16 + }, + "end": { + "line": 113, + "column": 42 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 2485, + "end": 2491, + "loc": { + "start": { + "line": 113, + "column": 16 + }, + "end": { + "line": 113, + "column": 22 + } + }, + "object": { + "type": "Identifier", + "start": 2485, + "end": 2486, + "loc": { + "start": { + "line": 113, + "column": 16 + }, + "end": { + "line": 113, + "column": 17 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 2487, + "end": 2491, + "loc": { + "start": { + "line": 113, + "column": 18 + }, + "end": { + "line": 113, + "column": 22 + } + }, + "name": "word" + }, + "computed": false + }, + "right": { + "type": "MemberExpression", + "start": 2494, + "end": 2511, + "loc": { + "start": { + "line": 113, + "column": 25 + }, + "end": { + "line": 113, + "column": 42 + } + }, + "object": { + "type": "MemberExpression", + "start": 2494, + "end": 2505, + "loc": { + "start": { + "line": 113, + "column": 25 + }, + "end": { + "line": 113, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 2494, + "end": 2500, + "loc": { + "start": { + "line": 113, + "column": 25 + }, + "end": { + "line": 113, + "column": 31 + } + }, + "name": "result" + }, + "property": { + "type": "Identifier", + "start": 2501, + "end": 2505, + "loc": { + "start": { + "line": 113, + "column": 32 + }, + "end": { + "line": 113, + "column": 36 + } + }, + "name": "word" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2506, + "end": 2511, + "loc": { + "start": { + "line": 113, + "column": 37 + }, + "end": { + "line": 113, + "column": 42 + } + }, + "name": "email" + }, + "computed": false + } + } + } + ] + }, + "alternate": null + } + ] + } + }, + { + "type": "IfStatement", + "start": 2545, + "end": 2592, + "loc": { + "start": { + "line": 117, + "column": 8 + }, + "end": { + "line": 117, + "column": 55 + } + }, + "test": { + "type": "BinaryExpression", + "start": 2549, + "end": 2569, + "loc": { + "start": { + "line": 117, + "column": 12 + }, + "end": { + "line": 117, + "column": 32 + } + }, + "left": { + "type": "MemberExpression", + "start": 2549, + "end": 2555, + "loc": { + "start": { + "line": 117, + "column": 12 + }, + "end": { + "line": 117, + "column": 18 + } + }, + "object": { + "type": "Identifier", + "start": 2549, + "end": 2550, + "loc": { + "start": { + "line": 117, + "column": 12 + }, + "end": { + "line": 117, + "column": 13 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 2551, + "end": 2555, + "loc": { + "start": { + "line": 117, + "column": 14 + }, + "end": { + "line": 117, + "column": 18 + } + }, + "name": "type" + }, + "computed": false + }, + "operator": "==", + "right": { + "type": "Literal", + "start": 2559, + "end": 2569, + "loc": { + "start": { + "line": 117, + "column": 22 + }, + "end": { + "line": 117, + "column": 32 + } + }, + "value": "hashtags", + "rawValue": "hashtags", + "raw": "'hashtags'" + } + }, + "consequent": { + "type": "ExpressionStatement", + "start": 2571, + "end": 2592, + "loc": { + "start": { + "line": 117, + "column": 34 + }, + "end": { + "line": 117, + "column": 55 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 2571, + "end": 2592, + "loc": { + "start": { + "line": 117, + "column": 34 + }, + "end": { + "line": 117, + "column": 55 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 2571, + "end": 2577, + "loc": { + "start": { + "line": 117, + "column": 34 + }, + "end": { + "line": 117, + "column": 40 + } + }, + "object": { + "type": "Identifier", + "start": 2571, + "end": 2572, + "loc": { + "start": { + "line": 117, + "column": 34 + }, + "end": { + "line": 117, + "column": 35 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 2573, + "end": 2577, + "loc": { + "start": { + "line": 117, + "column": 36 + }, + "end": { + "line": 117, + "column": 40 + } + }, + "name": "word" + }, + "computed": false + }, + "right": { + "type": "TemplateLiteral", + "start": 2580, + "end": 2592, + "loc": { + "start": { + "line": 117, + "column": 43 + }, + "end": { + "line": 117, + "column": 55 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 2584, + "end": 2590, + "loc": { + "start": { + "line": 117, + "column": 47 + }, + "end": { + "line": 117, + "column": 53 + } + }, + "object": { + "type": "Identifier", + "start": 2584, + "end": 2585, + "loc": { + "start": { + "line": 117, + "column": 47 + }, + "end": { + "line": 117, + "column": 48 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 2586, + "end": 2590, + "loc": { + "start": { + "line": 117, + "column": 49 + }, + "end": { + "line": 117, + "column": 53 + } + }, + "name": "word" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 2581, + "end": 2582, + "loc": { + "start": { + "line": 117, + "column": 44 + }, + "end": { + "line": 117, + "column": 45 + } + }, + "value": { + "raw": "#", + "cooked": "#" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 2591, + "end": 2591, + "loc": { + "start": { + "line": 117, + "column": 54 + }, + "end": { + "line": 117, + "column": 54 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + }, + "alternate": null + }, + { + "type": "ExpressionStatement", + "start": 2602, + "end": 2647, + "loc": { + "start": { + "line": 119, + "column": 8 + }, + "end": { + "line": 119, + "column": 53 + } + }, + "expression": { + "type": "CallExpression", + "start": 2602, + "end": 2647, + "loc": { + "start": { + "line": 119, + "column": 8 + }, + "end": { + "line": 119, + "column": 53 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2602, + "end": 2621, + "loc": { + "start": { + "line": 119, + "column": 8 + }, + "end": { + "line": 119, + "column": 27 + } + }, + "object": { + "type": "MemberExpression", + "start": 2602, + "end": 2612, + "loc": { + "start": { + "line": 119, + "column": 8 + }, + "end": { + "line": 119, + "column": 18 + } + }, + "object": { + "type": "ThisExpression", + "start": 2602, + "end": 2606, + "loc": { + "start": { + "line": 119, + "column": 8 + }, + "end": { + "line": 119, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 2607, + "end": 2612, + "loc": { + "start": { + "line": 119, + "column": 13 + }, + "end": { + "line": 119, + "column": 18 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2613, + "end": 2621, + "loc": { + "start": { + "line": 119, + "column": 19 + }, + "end": { + "line": 119, + "column": 27 + } + }, + "name": "dispatch" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 2622, + "end": 2646, + "loc": { + "start": { + "line": 119, + "column": 28 + }, + "end": { + "line": 119, + "column": 52 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2622, + "end": 2643, + "loc": { + "start": { + "line": 119, + "column": 28 + }, + "end": { + "line": 119, + "column": 49 + } + }, + "object": { + "type": "Identifier", + "start": 2622, + "end": 2635, + "loc": { + "start": { + "line": 119, + "column": 28 + }, + "end": { + "line": 119, + "column": 41 + } + }, + "name": "SearchActions" + }, + "property": { + "type": "Identifier", + "start": 2636, + "end": 2643, + "loc": { + "start": { + "line": 119, + "column": 42 + }, + "end": { + "line": 119, + "column": 49 + } + }, + "name": "trigger" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 2644, + "end": 2645, + "loc": { + "start": { + "line": 119, + "column": 50 + }, + "end": { + "line": 119, + "column": 51 + } + }, + "name": "r" + } + ] + } + ] + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * handleFilterClick\n * @param e\n * @param i\n * @param result\n ", + "start": 1906, + "end": 1995, + "loc": { + "start": { + "line": 88, + "column": 4 + }, + "end": { + "line": 93, + "column": 7 + } + }, + "range": [ + 1906, + 1995 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * renderActiveMode\n * @returns markup\n ", + "start": 2659, + "end": 2717, + "loc": { + "start": { + "line": 122, + "column": 4 + }, + "end": { + "line": 125, + "column": 7 + } + }, + "range": [ + 2659, + 2717 + ] + } + ] + }, + { + "type": "Identifier", + "start": 2722, + "end": 3035, + "loc": { + "start": { + "line": 126, + "column": 4 + }, + "end": { + "line": 135, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 2722, + "end": 2738, + "loc": { + "start": { + "line": 126, + "column": 4 + }, + "end": { + "line": 126, + "column": 20 + } + }, + "name": "renderActiveMode", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ArrowFunctionExpression", + "start": 2741, + "end": 3035, + "loc": { + "start": { + "line": 126, + "column": 23 + }, + "end": { + "line": 135, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 2747, + "end": 3035, + "loc": { + "start": { + "line": 126, + "column": 29 + }, + "end": { + "line": 135, + "column": 5 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 2757, + "end": 2787, + "loc": { + "start": { + "line": 127, + "column": 8 + }, + "end": { + "line": 127, + "column": 38 + } + }, + "test": { + "type": "UnaryExpression", + "start": 2761, + "end": 2779, + "loc": { + "start": { + "line": 127, + "column": 12 + }, + "end": { + "line": 127, + "column": 30 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 2762, + "end": 2779, + "loc": { + "start": { + "line": 127, + "column": 13 + }, + "end": { + "line": 127, + "column": 30 + } + }, + "object": { + "type": "MemberExpression", + "start": 2762, + "end": 2772, + "loc": { + "start": { + "line": 127, + "column": 13 + }, + "end": { + "line": 127, + "column": 23 + } + }, + "object": { + "type": "ThisExpression", + "start": 2762, + "end": 2766, + "loc": { + "start": { + "line": 127, + "column": 13 + }, + "end": { + "line": 127, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "start": 2767, + "end": 2772, + "loc": { + "start": { + "line": 127, + "column": 18 + }, + "end": { + "line": 127, + "column": 23 + } + }, + "name": "state" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2773, + "end": 2779, + "loc": { + "start": { + "line": 127, + "column": 24 + }, + "end": { + "line": 127, + "column": 30 + } + }, + "name": "active" + }, + "computed": false + } + }, + "consequent": { + "type": "ReturnStatement", + "start": 2781, + "end": 2787, + "loc": { + "start": { + "line": 127, + "column": 32 + }, + "end": { + "line": 127, + "column": 38 + } + }, + "argument": null + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 2796, + "end": 3029, + "loc": { + "start": { + "line": 128, + "column": 8 + }, + "end": { + "line": 134, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 2817, + "end": 3019, + "loc": { + "start": { + "line": 129, + "column": 12 + }, + "end": { + "line": 133, + "column": 47 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2817, + "end": 3019, + "loc": { + "start": { + "line": 129, + "column": 12 + }, + "end": { + "line": 133, + "column": 47 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2842, + "end": 2874, + "loc": { + "start": { + "line": 130, + "column": 16 + }, + "end": { + "line": 130, + "column": 48 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2842, + "end": 2849, + "loc": { + "start": { + "line": 130, + "column": 16 + }, + "end": { + "line": 130, + "column": 23 + } + }, + "name": "onClick" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2850, + "end": 2874, + "loc": { + "start": { + "line": 130, + "column": 24 + }, + "end": { + "line": 130, + "column": 48 + } + }, + "expression": { + "type": "MemberExpression", + "start": 2851, + "end": 2873, + "loc": { + "start": { + "line": 130, + "column": 25 + }, + "end": { + "line": 130, + "column": 47 + } + }, + "object": { + "type": "ThisExpression", + "start": 2851, + "end": 2855, + "loc": { + "start": { + "line": 130, + "column": 25 + }, + "end": { + "line": 130, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "start": 2856, + "end": 2873, + "loc": { + "start": { + "line": 130, + "column": 30 + }, + "end": { + "line": 130, + "column": 47 + } + }, + "name": "handleFilterClick" + }, + "computed": false + } + } + }, + { + "type": "JSXAttribute", + "start": 2891, + "end": 2923, + "loc": { + "start": { + "line": 131, + "column": 16 + }, + "end": { + "line": 131, + "column": 48 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2891, + "end": 2898, + "loc": { + "start": { + "line": 131, + "column": 16 + }, + "end": { + "line": 131, + "column": 23 + } + }, + "name": "results" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2899, + "end": 2923, + "loc": { + "start": { + "line": 131, + "column": 24 + }, + "end": { + "line": 131, + "column": 48 + } + }, + "expression": { + "type": "MemberExpression", + "start": 2900, + "end": 2922, + "loc": { + "start": { + "line": 131, + "column": 25 + }, + "end": { + "line": 131, + "column": 47 + } + }, + "object": { + "type": "MemberExpression", + "start": 2900, + "end": 2917, + "loc": { + "start": { + "line": 131, + "column": 25 + }, + "end": { + "line": 131, + "column": 42 + } + }, + "object": { + "type": "MemberExpression", + "start": 2900, + "end": 2910, + "loc": { + "start": { + "line": 131, + "column": 25 + }, + "end": { + "line": 131, + "column": 35 + } + }, + "object": { + "type": "ThisExpression", + "start": 2900, + "end": 2904, + "loc": { + "start": { + "line": 131, + "column": 25 + }, + "end": { + "line": 131, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "start": 2905, + "end": 2910, + "loc": { + "start": { + "line": 131, + "column": 30 + }, + "end": { + "line": 131, + "column": 35 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2911, + "end": 2917, + "loc": { + "start": { + "line": 131, + "column": 36 + }, + "end": { + "line": 131, + "column": 42 + } + }, + "name": "search" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2918, + "end": 2922, + "loc": { + "start": { + "line": 131, + "column": 43 + }, + "end": { + "line": 131, + "column": 47 + } + }, + "name": "hits" + }, + "computed": false + } + } + }, + { + "type": "JSXAttribute", + "start": 2940, + "end": 2971, + "loc": { + "start": { + "line": 132, + "column": 16 + }, + "end": { + "line": 132, + "column": 47 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2940, + "end": 2945, + "loc": { + "start": { + "line": 132, + "column": 16 + }, + "end": { + "line": 132, + "column": 21 + } + }, + "name": "total" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2946, + "end": 2971, + "loc": { + "start": { + "line": 132, + "column": 22 + }, + "end": { + "line": 132, + "column": 47 + } + }, + "expression": { + "type": "MemberExpression", + "start": 2947, + "end": 2970, + "loc": { + "start": { + "line": 132, + "column": 23 + }, + "end": { + "line": 132, + "column": 46 + } + }, + "object": { + "type": "MemberExpression", + "start": 2947, + "end": 2964, + "loc": { + "start": { + "line": 132, + "column": 23 + }, + "end": { + "line": 132, + "column": 40 + } + }, + "object": { + "type": "MemberExpression", + "start": 2947, + "end": 2957, + "loc": { + "start": { + "line": 132, + "column": 23 + }, + "end": { + "line": 132, + "column": 33 + } + }, + "object": { + "type": "ThisExpression", + "start": 2947, + "end": 2951, + "loc": { + "start": { + "line": 132, + "column": 23 + }, + "end": { + "line": 132, + "column": 27 + } + } + }, + "property": { + "type": "Identifier", + "start": 2952, + "end": 2957, + "loc": { + "start": { + "line": 132, + "column": 28 + }, + "end": { + "line": 132, + "column": 33 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2958, + "end": 2964, + "loc": { + "start": { + "line": 132, + "column": 34 + }, + "end": { + "line": 132, + "column": 40 + } + }, + "name": "search" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2965, + "end": 2970, + "loc": { + "start": { + "line": 132, + "column": 41 + }, + "end": { + "line": 132, + "column": 46 + } + }, + "name": "total" + }, + "computed": false + } + } + }, + { + "type": "JSXAttribute", + "start": 2988, + "end": 3017, + "loc": { + "start": { + "line": 133, + "column": 16 + }, + "end": { + "line": 133, + "column": 45 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2988, + "end": 2992, + "loc": { + "start": { + "line": 133, + "column": 16 + }, + "end": { + "line": 133, + "column": 20 + } + }, + "name": "term" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2993, + "end": 3017, + "loc": { + "start": { + "line": 133, + "column": 21 + }, + "end": { + "line": 133, + "column": 45 + } + }, + "expression": { + "type": "MemberExpression", + "start": 2994, + "end": 3016, + "loc": { + "start": { + "line": 133, + "column": 22 + }, + "end": { + "line": 133, + "column": 44 + } + }, + "object": { + "type": "MemberExpression", + "start": 2994, + "end": 3011, + "loc": { + "start": { + "line": 133, + "column": 22 + }, + "end": { + "line": 133, + "column": 39 + } + }, + "object": { + "type": "MemberExpression", + "start": 2994, + "end": 3004, + "loc": { + "start": { + "line": 133, + "column": 22 + }, + "end": { + "line": 133, + "column": 32 + } + }, + "object": { + "type": "ThisExpression", + "start": 2994, + "end": 2998, + "loc": { + "start": { + "line": 133, + "column": 22 + }, + "end": { + "line": 133, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "start": 2999, + "end": 3004, + "loc": { + "start": { + "line": 133, + "column": 27 + }, + "end": { + "line": 133, + "column": 32 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3005, + "end": 3011, + "loc": { + "start": { + "line": 133, + "column": 33 + }, + "end": { + "line": 133, + "column": 39 + } + }, + "name": "search" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3012, + "end": 3016, + "loc": { + "start": { + "line": 133, + "column": 40 + }, + "end": { + "line": 133, + "column": 44 + } + }, + "name": "term" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2818, + "end": 2825, + "loc": { + "start": { + "line": 129, + "column": 13 + }, + "end": { + "line": 129, + "column": 20 + } + }, + "name": "Filters" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [], + "parenthesizedExpression": true + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * renderActiveMode\n * @returns markup\n ", + "start": 2659, + "end": 2717, + "loc": { + "start": { + "line": 122, + "column": 4 + }, + "end": { + "line": 125, + "column": 7 + } + }, + "range": [ + 2659, + 2717 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * renderIdleMode\n * @returns markup\n ", + "start": 3041, + "end": 3097, + "loc": { + "start": { + "line": 137, + "column": 4 + }, + "end": { + "line": 140, + "column": 7 + } + }, + "range": [ + 3041, + 3097 + ] + } + ] + }, + { + "type": "Identifier", + "start": 3102, + "end": 3523, + "loc": { + "start": { + "line": 141, + "column": 4 + }, + "end": { + "line": 153, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 3102, + "end": 3116, + "loc": { + "start": { + "line": 141, + "column": 4 + }, + "end": { + "line": 141, + "column": 18 + } + }, + "name": "renderIdleMode", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ArrowFunctionExpression", + "start": 3119, + "end": 3523, + "loc": { + "start": { + "line": 141, + "column": 21 + }, + "end": { + "line": 153, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 3125, + "end": 3523, + "loc": { + "start": { + "line": 141, + "column": 27 + }, + "end": { + "line": 153, + "column": 5 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 3135, + "end": 3164, + "loc": { + "start": { + "line": 142, + "column": 8 + }, + "end": { + "line": 142, + "column": 37 + } + }, + "test": { + "type": "MemberExpression", + "start": 3139, + "end": 3156, + "loc": { + "start": { + "line": 142, + "column": 12 + }, + "end": { + "line": 142, + "column": 29 + } + }, + "object": { + "type": "MemberExpression", + "start": 3139, + "end": 3149, + "loc": { + "start": { + "line": 142, + "column": 12 + }, + "end": { + "line": 142, + "column": 22 + } + }, + "object": { + "type": "ThisExpression", + "start": 3139, + "end": 3143, + "loc": { + "start": { + "line": 142, + "column": 12 + }, + "end": { + "line": 142, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 3144, + "end": 3149, + "loc": { + "start": { + "line": 142, + "column": 17 + }, + "end": { + "line": 142, + "column": 22 + } + }, + "name": "state" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3150, + "end": 3156, + "loc": { + "start": { + "line": 142, + "column": 23 + }, + "end": { + "line": 142, + "column": 29 + } + }, + "name": "active" + }, + "computed": false + }, + "consequent": { + "type": "ReturnStatement", + "start": 3158, + "end": 3164, + "loc": { + "start": { + "line": 142, + "column": 31 + }, + "end": { + "line": 142, + "column": 37 + } + }, + "argument": null + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 3174, + "end": 3517, + "loc": { + "start": { + "line": 144, + "column": 8 + }, + "end": { + "line": 152, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 3195, + "end": 3507, + "loc": { + "start": { + "line": 145, + "column": 12 + }, + "end": { + "line": 151, + "column": 18 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3195, + "end": 3220, + "loc": { + "start": { + "line": 145, + "column": 12 + }, + "end": { + "line": 145, + "column": 37 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3200, + "end": 3219, + "loc": { + "start": { + "line": 145, + "column": 17 + }, + "end": { + "line": 145, + "column": 36 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3200, + "end": 3209, + "loc": { + "start": { + "line": 145, + "column": 17 + }, + "end": { + "line": 145, + "column": 26 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 3210, + "end": 3219, + "loc": { + "start": { + "line": 145, + "column": 27 + }, + "end": { + "line": 145, + "column": 36 + } + }, + "value": "history", + "rawValue": null, + "raw": "\"history\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3196, + "end": 3199, + "loc": { + "start": { + "line": 145, + "column": 13 + }, + "end": { + "line": 145, + "column": 16 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3501, + "end": 3507, + "loc": { + "start": { + "line": 151, + "column": 12 + }, + "end": { + "line": 151, + "column": 18 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3503, + "end": 3506, + "loc": { + "start": { + "line": 151, + "column": 14 + }, + "end": { + "line": 151, + "column": 17 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 3220, + "end": 3237, + "loc": { + "start": { + "line": 145, + "column": 37 + }, + "end": { + "line": 146, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 3237, + "end": 3488, + "loc": { + "start": { + "line": 146, + "column": 16 + }, + "end": { + "line": 150, + "column": 21 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3237, + "end": 3241, + "loc": { + "start": { + "line": 146, + "column": 16 + }, + "end": { + "line": 146, + "column": 20 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 3238, + "end": 3240, + "loc": { + "start": { + "line": 146, + "column": 17 + }, + "end": { + "line": 146, + "column": 19 + } + }, + "name": "ul" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3483, + "end": 3488, + "loc": { + "start": { + "line": 150, + "column": 16 + }, + "end": { + "line": 150, + "column": 21 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3485, + "end": 3487, + "loc": { + "start": { + "line": 150, + "column": 18 + }, + "end": { + "line": 150, + "column": 20 + } + }, + "name": "ul" + } + }, + "children": [ + { + "type": "Literal", + "start": 3241, + "end": 3262, + "loc": { + "start": { + "line": 146, + "column": 20 + }, + "end": { + "line": 147, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 3262, + "end": 3466, + "loc": { + "start": { + "line": 147, + "column": 20 + }, + "end": { + "line": 149, + "column": 101 + } + }, + "expression": { + "type": "CallExpression", + "start": 3263, + "end": 3465, + "loc": { + "start": { + "line": 147, + "column": 21 + }, + "end": { + "line": 149, + "column": 100 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3263, + "end": 3291, + "loc": { + "start": { + "line": 147, + "column": 21 + }, + "end": { + "line": 147, + "column": 49 + } + }, + "object": { + "type": "MemberExpression", + "start": 3263, + "end": 3287, + "loc": { + "start": { + "line": 147, + "column": 21 + }, + "end": { + "line": 147, + "column": 45 + } + }, + "object": { + "type": "MemberExpression", + "start": 3263, + "end": 3280, + "loc": { + "start": { + "line": 147, + "column": 21 + }, + "end": { + "line": 147, + "column": 38 + } + }, + "object": { + "type": "MemberExpression", + "start": 3263, + "end": 3273, + "loc": { + "start": { + "line": 147, + "column": 21 + }, + "end": { + "line": 147, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 3263, + "end": 3267, + "loc": { + "start": { + "line": 147, + "column": 21 + }, + "end": { + "line": 147, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "start": 3268, + "end": 3273, + "loc": { + "start": { + "line": 147, + "column": 26 + }, + "end": { + "line": 147, + "column": 31 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3274, + "end": 3280, + "loc": { + "start": { + "line": 147, + "column": 32 + }, + "end": { + "line": 147, + "column": 38 + } + }, + "name": "search" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3281, + "end": 3287, + "loc": { + "start": { + "line": 147, + "column": 39 + }, + "end": { + "line": 147, + "column": 45 + } + }, + "name": "recent" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3288, + "end": 3291, + "loc": { + "start": { + "line": 147, + "column": 46 + }, + "end": { + "line": 147, + "column": 49 + } + }, + "name": "map" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 3292, + "end": 3464, + "loc": { + "start": { + "line": 147, + "column": 50 + }, + "end": { + "line": 149, + "column": 99 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 3293, + "end": 3294, + "loc": { + "start": { + "line": 147, + "column": 51 + }, + "end": { + "line": 147, + "column": 52 + } + }, + "name": "r" + }, + { + "type": "Identifier", + "start": 3296, + "end": 3297, + "loc": { + "start": { + "line": 147, + "column": 54 + }, + "end": { + "line": 147, + "column": 55 + } + }, + "name": "i" + } + ], + "body": { + "type": "JSXElement", + "start": 3326, + "end": 3464, + "loc": { + "start": { + "line": 148, + "column": 24 + }, + "end": { + "line": 149, + "column": 99 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3326, + "end": 3449, + "loc": { + "start": { + "line": 148, + "column": 24 + }, + "end": { + "line": 149, + "column": 84 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3330, + "end": 3364, + "loc": { + "start": { + "line": 148, + "column": 28 + }, + "end": { + "line": 148, + "column": 62 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3330, + "end": 3333, + "loc": { + "start": { + "line": 148, + "column": 28 + }, + "end": { + "line": 148, + "column": 31 + } + }, + "name": "key" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 3334, + "end": 3364, + "loc": { + "start": { + "line": 148, + "column": 32 + }, + "end": { + "line": 148, + "column": 62 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 3335, + "end": 3363, + "loc": { + "start": { + "line": 148, + "column": 33 + }, + "end": { + "line": 148, + "column": 61 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 3353, + "end": 3361, + "loc": { + "start": { + "line": 148, + "column": 51 + }, + "end": { + "line": 148, + "column": 59 + } + }, + "object": { + "type": "Identifier", + "start": 3353, + "end": 3354, + "loc": { + "start": { + "line": 148, + "column": 51 + }, + "end": { + "line": 148, + "column": 52 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 3355, + "end": 3361, + "loc": { + "start": { + "line": 148, + "column": 53 + }, + "end": { + "line": 148, + "column": 59 + } + }, + "name": "search" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 3336, + "end": 3351, + "loc": { + "start": { + "line": 148, + "column": 34 + }, + "end": { + "line": 148, + "column": 49 + } + }, + "value": { + "raw": "search-history-", + "cooked": "search-history-" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 3362, + "end": 3362, + "loc": { + "start": { + "line": 148, + "column": 60 + }, + "end": { + "line": 148, + "column": 60 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + }, + { + "type": "JSXAttribute", + "start": 3393, + "end": 3448, + "loc": { + "start": { + "line": 149, + "column": 28 + }, + "end": { + "line": 149, + "column": 83 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3393, + "end": 3400, + "loc": { + "start": { + "line": 149, + "column": 28 + }, + "end": { + "line": 149, + "column": 35 + } + }, + "name": "onClick" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 3401, + "end": 3448, + "loc": { + "start": { + "line": 149, + "column": 36 + }, + "end": { + "line": 149, + "column": 83 + } + }, + "expression": { + "type": "ArrowFunctionExpression", + "start": 3402, + "end": 3447, + "loc": { + "start": { + "line": 149, + "column": 37 + }, + "end": { + "line": 149, + "column": 82 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 3403, + "end": 3404, + "loc": { + "start": { + "line": 149, + "column": 38 + }, + "end": { + "line": 149, + "column": 39 + } + }, + "name": "e" + } + ], + "body": { + "type": "CallExpression", + "start": 3409, + "end": 3447, + "loc": { + "start": { + "line": 149, + "column": 44 + }, + "end": { + "line": 149, + "column": 82 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3409, + "end": 3431, + "loc": { + "start": { + "line": 149, + "column": 44 + }, + "end": { + "line": 149, + "column": 66 + } + }, + "object": { + "type": "ThisExpression", + "start": 3409, + "end": 3413, + "loc": { + "start": { + "line": 149, + "column": 44 + }, + "end": { + "line": 149, + "column": 48 + } + } + }, + "property": { + "type": "Identifier", + "start": 3414, + "end": 3431, + "loc": { + "start": { + "line": 149, + "column": 49 + }, + "end": { + "line": 149, + "column": 66 + } + }, + "name": "handleFilterClick" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 3432, + "end": 3433, + "loc": { + "start": { + "line": 149, + "column": 67 + }, + "end": { + "line": 149, + "column": 68 + } + }, + "name": "e" + }, + { + "type": "Identifier", + "start": 3435, + "end": 3436, + "loc": { + "start": { + "line": 149, + "column": 70 + }, + "end": { + "line": 149, + "column": 71 + } + }, + "name": "i" + }, + { + "type": "MemberExpression", + "start": 3438, + "end": 3446, + "loc": { + "start": { + "line": 149, + "column": 73 + }, + "end": { + "line": 149, + "column": 81 + } + }, + "object": { + "type": "Identifier", + "start": 3438, + "end": 3439, + "loc": { + "start": { + "line": 149, + "column": 73 + }, + "end": { + "line": 149, + "column": 74 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 3440, + "end": 3446, + "loc": { + "start": { + "line": 149, + "column": 75 + }, + "end": { + "line": 149, + "column": 81 + } + }, + "name": "search" + }, + "computed": false + } + ] + } + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3327, + "end": 3329, + "loc": { + "start": { + "line": 148, + "column": 25 + }, + "end": { + "line": 148, + "column": 27 + } + }, + "name": "li" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3459, + "end": 3464, + "loc": { + "start": { + "line": 149, + "column": 94 + }, + "end": { + "line": 149, + "column": 99 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3461, + "end": 3463, + "loc": { + "start": { + "line": 149, + "column": 96 + }, + "end": { + "line": 149, + "column": 98 + } + }, + "name": "li" + } + }, + "children": [ + { + "type": "JSXExpressionContainer", + "start": 3449, + "end": 3459, + "loc": { + "start": { + "line": 149, + "column": 84 + }, + "end": { + "line": 149, + "column": 94 + } + }, + "expression": { + "type": "MemberExpression", + "start": 3450, + "end": 3458, + "loc": { + "start": { + "line": 149, + "column": 85 + }, + "end": { + "line": 149, + "column": 93 + } + }, + "object": { + "type": "Identifier", + "start": 3450, + "end": 3451, + "loc": { + "start": { + "line": 149, + "column": 85 + }, + "end": { + "line": 149, + "column": 86 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 3452, + "end": 3458, + "loc": { + "start": { + "line": 149, + "column": 87 + }, + "end": { + "line": 149, + "column": 93 + } + }, + "name": "search" + }, + "computed": false + } + } + ] + } + } + ] + } + }, + { + "type": "Literal", + "start": 3466, + "end": 3483, + "loc": { + "start": { + "line": 149, + "column": 101 + }, + "end": { + "line": 150, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 3488, + "end": 3501, + "loc": { + "start": { + "line": 150, + "column": 21 + }, + "end": { + "line": 151, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * renderIdleMode\n * @returns markup\n ", + "start": 3041, + "end": 3097, + "loc": { + "start": { + "line": 137, + "column": 4 + }, + "end": { + "line": 140, + "column": 7 + } + }, + "range": [ + 3041, + 3097 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 3529, + "end": 3577, + "loc": { + "start": { + "line": 155, + "column": 4 + }, + "end": { + "line": 158, + "column": 7 + } + }, + "range": [ + 3529, + 3577 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 3582, + "end": 4294, + "loc": { + "start": { + "line": 159, + "column": 4 + }, + "end": { + "line": 176, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 3582, + "end": 3588, + "loc": { + "start": { + "line": 159, + "column": 4 + }, + "end": { + "line": 159, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 3588, + "end": 4294, + "loc": { + "start": { + "line": 159, + "column": 10 + }, + "end": { + "line": 176, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 3591, + "end": 4294, + "loc": { + "start": { + "line": 159, + "column": 13 + }, + "end": { + "line": 176, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 3601, + "end": 4288, + "loc": { + "start": { + "line": 160, + "column": 8 + }, + "end": { + "line": 175, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 3622, + "end": 4278, + "loc": { + "start": { + "line": 161, + "column": 12 + }, + "end": { + "line": 174, + "column": 18 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3622, + "end": 3644, + "loc": { + "start": { + "line": 161, + "column": 12 + }, + "end": { + "line": 161, + "column": 34 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3627, + "end": 3643, + "loc": { + "start": { + "line": 161, + "column": 17 + }, + "end": { + "line": 161, + "column": 33 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3627, + "end": 3636, + "loc": { + "start": { + "line": 161, + "column": 17 + }, + "end": { + "line": 161, + "column": 26 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 3637, + "end": 3643, + "loc": { + "start": { + "line": 161, + "column": 27 + }, + "end": { + "line": 161, + "column": 33 + } + }, + "value": "page", + "rawValue": null, + "raw": "\"page\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3623, + "end": 3626, + "loc": { + "start": { + "line": 161, + "column": 13 + }, + "end": { + "line": 161, + "column": 16 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 4272, + "end": 4278, + "loc": { + "start": { + "line": 174, + "column": 12 + }, + "end": { + "line": 174, + "column": 18 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4274, + "end": 4277, + "loc": { + "start": { + "line": 174, + "column": 14 + }, + "end": { + "line": 174, + "column": 17 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 3644, + "end": 3661, + "loc": { + "start": { + "line": 161, + "column": 34 + }, + "end": { + "line": 162, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 3661, + "end": 4259, + "loc": { + "start": { + "line": 162, + "column": 16 + }, + "end": { + "line": 173, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3661, + "end": 3685, + "loc": { + "start": { + "line": 162, + "column": 16 + }, + "end": { + "line": 162, + "column": 40 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3666, + "end": 3684, + "loc": { + "start": { + "line": 162, + "column": 21 + }, + "end": { + "line": 162, + "column": 39 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3666, + "end": 3675, + "loc": { + "start": { + "line": 162, + "column": 21 + }, + "end": { + "line": 162, + "column": 30 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 3676, + "end": 3684, + "loc": { + "start": { + "line": 162, + "column": 31 + }, + "end": { + "line": 162, + "column": 39 + } + }, + "value": "search", + "rawValue": null, + "raw": "\"search\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3662, + "end": 3665, + "loc": { + "start": { + "line": 162, + "column": 17 + }, + "end": { + "line": 162, + "column": 20 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 4253, + "end": 4259, + "loc": { + "start": { + "line": 173, + "column": 16 + }, + "end": { + "line": 173, + "column": 22 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4255, + "end": 4258, + "loc": { + "start": { + "line": 173, + "column": 18 + }, + "end": { + "line": 173, + "column": 21 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 3685, + "end": 3706, + "loc": { + "start": { + "line": 162, + "column": 40 + }, + "end": { + "line": 163, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 3706, + "end": 3723, + "loc": { + "start": { + "line": 163, + "column": 20 + }, + "end": { + "line": 163, + "column": 37 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3706, + "end": 3710, + "loc": { + "start": { + "line": 163, + "column": 20 + }, + "end": { + "line": 163, + "column": 24 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 3707, + "end": 3709, + "loc": { + "start": { + "line": 163, + "column": 21 + }, + "end": { + "line": 163, + "column": 23 + } + }, + "name": "h1" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3718, + "end": 3723, + "loc": { + "start": { + "line": 163, + "column": 32 + }, + "end": { + "line": 163, + "column": 37 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3720, + "end": 3722, + "loc": { + "start": { + "line": 163, + "column": 34 + }, + "end": { + "line": 163, + "column": 36 + } + }, + "name": "h1" + } + }, + "children": [ + { + "type": "Literal", + "start": 3710, + "end": 3718, + "loc": { + "start": { + "line": 163, + "column": 24 + }, + "end": { + "line": 163, + "column": 32 + } + }, + "value": "Discover", + "rawValue": null, + "raw": "Discover" + } + ] + }, + { + "type": "Literal", + "start": 3723, + "end": 3744, + "loc": { + "start": { + "line": 163, + "column": 37 + }, + "end": { + "line": 164, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 3744, + "end": 4146, + "loc": { + "start": { + "line": 164, + "column": 20 + }, + "end": { + "line": 170, + "column": 27 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3744, + "end": 3789, + "loc": { + "start": { + "line": 164, + "column": 20 + }, + "end": { + "line": 164, + "column": 65 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3750, + "end": 3788, + "loc": { + "start": { + "line": 164, + "column": 26 + }, + "end": { + "line": 164, + "column": 64 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3750, + "end": 3758, + "loc": { + "start": { + "line": 164, + "column": 26 + }, + "end": { + "line": 164, + "column": 34 + } + }, + "name": "onSubmit" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 3759, + "end": 3788, + "loc": { + "start": { + "line": 164, + "column": 35 + }, + "end": { + "line": 164, + "column": 64 + } + }, + "expression": { + "type": "ArrowFunctionExpression", + "start": 3760, + "end": 3787, + "loc": { + "start": { + "line": 164, + "column": 36 + }, + "end": { + "line": 164, + "column": 63 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 3761, + "end": 3762, + "loc": { + "start": { + "line": 164, + "column": 37 + }, + "end": { + "line": 164, + "column": 38 + } + }, + "name": "e" + } + ], + "body": { + "type": "CallExpression", + "start": 3767, + "end": 3787, + "loc": { + "start": { + "line": 164, + "column": 43 + }, + "end": { + "line": 164, + "column": 63 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3767, + "end": 3784, + "loc": { + "start": { + "line": 164, + "column": 43 + }, + "end": { + "line": 164, + "column": 60 + } + }, + "object": { + "type": "ThisExpression", + "start": 3767, + "end": 3771, + "loc": { + "start": { + "line": 164, + "column": 43 + }, + "end": { + "line": 164, + "column": 47 + } + } + }, + "property": { + "type": "Identifier", + "start": 3772, + "end": 3784, + "loc": { + "start": { + "line": 164, + "column": 48 + }, + "end": { + "line": 164, + "column": 60 + } + }, + "name": "handleSubmit" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 3785, + "end": 3786, + "loc": { + "start": { + "line": 164, + "column": 61 + }, + "end": { + "line": 164, + "column": 62 + } + }, + "name": "e" + } + ] + } + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3745, + "end": 3749, + "loc": { + "start": { + "line": 164, + "column": 21 + }, + "end": { + "line": 164, + "column": 25 + } + }, + "name": "form" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 4139, + "end": 4146, + "loc": { + "start": { + "line": 170, + "column": 20 + }, + "end": { + "line": 170, + "column": 27 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4141, + "end": 4145, + "loc": { + "start": { + "line": 170, + "column": 22 + }, + "end": { + "line": 170, + "column": 26 + } + }, + "name": "form" + } + }, + "children": [ + { + "type": "Literal", + "start": 3789, + "end": 3814, + "loc": { + "start": { + "line": 164, + "column": 65 + }, + "end": { + "line": 165, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 3814, + "end": 3978, + "loc": { + "start": { + "line": 165, + "column": 24 + }, + "end": { + "line": 166, + "column": 67 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3814, + "end": 3978, + "loc": { + "start": { + "line": 165, + "column": 24 + }, + "end": { + "line": 166, + "column": 67 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3821, + "end": 3832, + "loc": { + "start": { + "line": 165, + "column": 31 + }, + "end": { + "line": 165, + "column": 42 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3821, + "end": 3825, + "loc": { + "start": { + "line": 165, + "column": 31 + }, + "end": { + "line": 165, + "column": 35 + } + }, + "name": "type" + }, + "value": { + "type": "Literal", + "start": 3826, + "end": 3832, + "loc": { + "start": { + "line": 165, + "column": 36 + }, + "end": { + "line": 165, + "column": 42 + } + }, + "value": "text", + "rawValue": null, + "raw": "\"text\"" + } + }, + { + "type": "JSXAttribute", + "start": 3833, + "end": 3865, + "loc": { + "start": { + "line": 165, + "column": 43 + }, + "end": { + "line": 165, + "column": 75 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3833, + "end": 3836, + "loc": { + "start": { + "line": 165, + "column": 43 + }, + "end": { + "line": 165, + "column": 46 + } + }, + "name": "ref" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 3837, + "end": 3865, + "loc": { + "start": { + "line": 165, + "column": 47 + }, + "end": { + "line": 165, + "column": 75 + } + }, + "expression": { + "type": "ArrowFunctionExpression", + "start": 3838, + "end": 3864, + "loc": { + "start": { + "line": 165, + "column": 48 + }, + "end": { + "line": 165, + "column": 74 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 3838, + "end": 3839, + "loc": { + "start": { + "line": 165, + "column": 48 + }, + "end": { + "line": 165, + "column": 49 + } + }, + "name": "c" + } + ], + "body": { + "type": "AssignmentExpression", + "start": 3843, + "end": 3864, + "loc": { + "start": { + "line": 165, + "column": 53 + }, + "end": { + "line": 165, + "column": 74 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 3843, + "end": 3860, + "loc": { + "start": { + "line": 165, + "column": 53 + }, + "end": { + "line": 165, + "column": 70 + } + }, + "object": { + "type": "ThisExpression", + "start": 3843, + "end": 3847, + "loc": { + "start": { + "line": 165, + "column": 53 + }, + "end": { + "line": 165, + "column": 57 + } + } + }, + "property": { + "type": "Identifier", + "start": 3848, + "end": 3860, + "loc": { + "start": { + "line": 165, + "column": 58 + }, + "end": { + "line": 165, + "column": 70 + } + }, + "name": "_searchField" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 3863, + "end": 3864, + "loc": { + "start": { + "line": 165, + "column": 73 + }, + "end": { + "line": 165, + "column": 74 + } + }, + "name": "c" + } + } + } + } + }, + { + "type": "JSXAttribute", + "start": 3866, + "end": 3886, + "loc": { + "start": { + "line": 165, + "column": 76 + }, + "end": { + "line": 165, + "column": 96 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3866, + "end": 3877, + "loc": { + "start": { + "line": 165, + "column": 76 + }, + "end": { + "line": 165, + "column": 87 + } + }, + "name": "placeholder" + }, + "value": { + "type": "Literal", + "start": 3878, + "end": 3886, + "loc": { + "start": { + "line": 165, + "column": 88 + }, + "end": { + "line": 165, + "column": 96 + } + }, + "value": "Search", + "rawValue": null, + "raw": "\"Search\"" + } + }, + { + "type": "JSXAttribute", + "start": 3887, + "end": 3901, + "loc": { + "start": { + "line": 165, + "column": 97 + }, + "end": { + "line": 165, + "column": 111 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3887, + "end": 3896, + "loc": { + "start": { + "line": 165, + "column": 97 + }, + "end": { + "line": 165, + "column": 106 + } + }, + "name": "maxLength" + }, + "value": { + "type": "Literal", + "start": 3897, + "end": 3901, + "loc": { + "start": { + "line": 165, + "column": 107 + }, + "end": { + "line": 165, + "column": 111 + } + }, + "value": "40", + "rawValue": null, + "raw": "\"40\"" + } + }, + { + "type": "JSXAttribute", + "start": 3902, + "end": 3910, + "loc": { + "start": { + "line": 165, + "column": 112 + }, + "end": { + "line": 165, + "column": 120 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3902, + "end": 3910, + "loc": { + "start": { + "line": 165, + "column": 112 + }, + "end": { + "line": 165, + "column": 120 + } + }, + "name": "required" + }, + "value": null + }, + { + "type": "JSXAttribute", + "start": 3942, + "end": 3976, + "loc": { + "start": { + "line": 166, + "column": 31 + }, + "end": { + "line": 166, + "column": 65 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3942, + "end": 3950, + "loc": { + "start": { + "line": 166, + "column": 31 + }, + "end": { + "line": 166, + "column": 39 + } + }, + "name": "onChange" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 3951, + "end": 3976, + "loc": { + "start": { + "line": 166, + "column": 40 + }, + "end": { + "line": 166, + "column": 65 + } + }, + "expression": { + "type": "MemberExpression", + "start": 3952, + "end": 3975, + "loc": { + "start": { + "line": 166, + "column": 41 + }, + "end": { + "line": 166, + "column": 64 + } + }, + "object": { + "type": "ThisExpression", + "start": 3952, + "end": 3956, + "loc": { + "start": { + "line": 166, + "column": 41 + }, + "end": { + "line": 166, + "column": 45 + } + } + }, + "property": { + "type": "Identifier", + "start": 3957, + "end": 3975, + "loc": { + "start": { + "line": 166, + "column": 46 + }, + "end": { + "line": 166, + "column": 64 + } + }, + "name": "handleSearchChange" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3815, + "end": 3820, + "loc": { + "start": { + "line": 165, + "column": 25 + }, + "end": { + "line": 165, + "column": 30 + } + }, + "name": "input" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 3978, + "end": 4003, + "loc": { + "start": { + "line": 166, + "column": 67 + }, + "end": { + "line": 167, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 4003, + "end": 4118, + "loc": { + "start": { + "line": 167, + "column": 24 + }, + "end": { + "line": 169, + "column": 33 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 4003, + "end": 4025, + "loc": { + "start": { + "line": 167, + "column": 24 + }, + "end": { + "line": 167, + "column": 46 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 4011, + "end": 4024, + "loc": { + "start": { + "line": 167, + "column": 32 + }, + "end": { + "line": 167, + "column": 45 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4011, + "end": 4015, + "loc": { + "start": { + "line": 167, + "column": 32 + }, + "end": { + "line": 167, + "column": 36 + } + }, + "name": "type" + }, + "value": { + "type": "Literal", + "start": 4016, + "end": 4024, + "loc": { + "start": { + "line": 167, + "column": 37 + }, + "end": { + "line": 167, + "column": 45 + } + }, + "value": "submit", + "rawValue": null, + "raw": "\"submit\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 4004, + "end": 4010, + "loc": { + "start": { + "line": 167, + "column": 25 + }, + "end": { + "line": 167, + "column": 31 + } + }, + "name": "button" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 4109, + "end": 4118, + "loc": { + "start": { + "line": 169, + "column": 24 + }, + "end": { + "line": 169, + "column": 33 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4111, + "end": 4117, + "loc": { + "start": { + "line": 169, + "column": 26 + }, + "end": { + "line": 169, + "column": 32 + } + }, + "name": "button" + } + }, + "children": [ + { + "type": "Literal", + "start": 4025, + "end": 4054, + "loc": { + "start": { + "line": 167, + "column": 46 + }, + "end": { + "line": 168, + "column": 28 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 4054, + "end": 4084, + "loc": { + "start": { + "line": 168, + "column": 28 + }, + "end": { + "line": 168, + "column": 58 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 4054, + "end": 4080, + "loc": { + "start": { + "line": 168, + "column": 28 + }, + "end": { + "line": 168, + "column": 54 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 4057, + "end": 4079, + "loc": { + "start": { + "line": 168, + "column": 31 + }, + "end": { + "line": 168, + "column": 53 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4057, + "end": 4066, + "loc": { + "start": { + "line": 168, + "column": 31 + }, + "end": { + "line": 168, + "column": 40 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 4067, + "end": 4079, + "loc": { + "start": { + "line": 168, + "column": 41 + }, + "end": { + "line": 168, + "column": 53 + } + }, + "value": "ion-search", + "rawValue": null, + "raw": "\"ion-search\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 4055, + "end": 4056, + "loc": { + "start": { + "line": 168, + "column": 29 + }, + "end": { + "line": 168, + "column": 30 + } + }, + "name": "i" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 4080, + "end": 4084, + "loc": { + "start": { + "line": 168, + "column": 54 + }, + "end": { + "line": 168, + "column": 58 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4082, + "end": 4083, + "loc": { + "start": { + "line": 168, + "column": 56 + }, + "end": { + "line": 168, + "column": 57 + } + }, + "name": "i" + } + }, + "children": [] + }, + { + "type": "Literal", + "start": 4084, + "end": 4109, + "loc": { + "start": { + "line": 168, + "column": 58 + }, + "end": { + "line": 169, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 4118, + "end": 4139, + "loc": { + "start": { + "line": 169, + "column": 33 + }, + "end": { + "line": 170, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 4146, + "end": 4167, + "loc": { + "start": { + "line": 170, + "column": 27 + }, + "end": { + "line": 171, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 4167, + "end": 4192, + "loc": { + "start": { + "line": 171, + "column": 20 + }, + "end": { + "line": 171, + "column": 45 + } + }, + "expression": { + "type": "CallExpression", + "start": 4168, + "end": 4191, + "loc": { + "start": { + "line": 171, + "column": 21 + }, + "end": { + "line": 171, + "column": 44 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4168, + "end": 4189, + "loc": { + "start": { + "line": 171, + "column": 21 + }, + "end": { + "line": 171, + "column": 42 + } + }, + "object": { + "type": "ThisExpression", + "start": 4168, + "end": 4172, + "loc": { + "start": { + "line": 171, + "column": 21 + }, + "end": { + "line": 171, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "start": 4173, + "end": 4189, + "loc": { + "start": { + "line": 171, + "column": 26 + }, + "end": { + "line": 171, + "column": 42 + } + }, + "name": "renderActiveMode" + }, + "computed": false + }, + "arguments": [] + } + }, + { + "type": "Literal", + "start": 4192, + "end": 4213, + "loc": { + "start": { + "line": 171, + "column": 45 + }, + "end": { + "line": 172, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 4213, + "end": 4236, + "loc": { + "start": { + "line": 172, + "column": 20 + }, + "end": { + "line": 172, + "column": 43 + } + }, + "expression": { + "type": "CallExpression", + "start": 4214, + "end": 4235, + "loc": { + "start": { + "line": 172, + "column": 21 + }, + "end": { + "line": 172, + "column": 42 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4214, + "end": 4233, + "loc": { + "start": { + "line": 172, + "column": 21 + }, + "end": { + "line": 172, + "column": 40 + } + }, + "object": { + "type": "ThisExpression", + "start": 4214, + "end": 4218, + "loc": { + "start": { + "line": 172, + "column": 21 + }, + "end": { + "line": 172, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "start": 4219, + "end": 4233, + "loc": { + "start": { + "line": 172, + "column": 26 + }, + "end": { + "line": 172, + "column": 40 + } + }, + "name": "renderIdleMode" + }, + "computed": false + }, + "arguments": [] + } + }, + { + "type": "Literal", + "start": 4236, + "end": 4253, + "loc": { + "start": { + "line": 172, + "column": 43 + }, + "end": { + "line": 173, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 4259, + "end": 4272, + "loc": { + "start": { + "line": 173, + "column": 22 + }, + "end": { + "line": 174, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 3529, + "end": 3577, + "loc": { + "start": { + "line": 155, + "column": 4 + }, + "end": { + "line": 158, + "column": 7 + } + }, + "range": [ + 3529, + 3577 + ] + } + ] + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Search\n * '/search'\n * React Route - Documentation: https://github.com/reactjs/react-router/tree/master/docs\n ", + "start": 295, + "end": 414, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 19, + "column": 3 + } + }, + "range": [ + 295, + 414 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * connect\n * Connects React component to a Redux store\n * Documentation: https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options\n ", + "start": 4299, + "end": 4504, + "loc": { + "start": { + "line": 180, + "column": 0 + }, + "end": { + "line": 184, + "column": 3 + } + }, + "range": [ + 4299, + 4504 + ] + } + ] + }, + { + "type": "ExportDefaultDeclaration", + "start": 4505, + "end": 4571, + "loc": { + "start": { + "line": 185, + "column": 0 + }, + "end": { + "line": 185, + "column": 66 + } + }, + "declaration": { + "type": "CallExpression", + "start": 4520, + "end": 4571, + "loc": { + "start": { + "line": 185, + "column": 15 + }, + "end": { + "line": 185, + "column": 66 + } + }, + "callee": { + "type": "CallExpression", + "start": 4520, + "end": 4563, + "loc": { + "start": { + "line": 185, + "column": 15 + }, + "end": { + "line": 185, + "column": 58 + } + }, + "callee": { + "type": "Identifier", + "start": 4520, + "end": 4527, + "loc": { + "start": { + "line": 185, + "column": 15 + }, + "end": { + "line": 185, + "column": 22 + } + }, + "name": "connect", + "leadingComments": null + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 4528, + "end": 4562, + "loc": { + "start": { + "line": 185, + "column": 23 + }, + "end": { + "line": 185, + "column": 57 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 4528, + "end": 4533, + "loc": { + "start": { + "line": 185, + "column": 23 + }, + "end": { + "line": 185, + "column": 28 + } + }, + "name": "state" + } + ], + "body": { + "type": "ObjectExpression", + "start": 4538, + "end": 4561, + "loc": { + "start": { + "line": 185, + "column": 33 + }, + "end": { + "line": 185, + "column": 56 + } + }, + "properties": [ + { + "type": "Property", + "start": 4539, + "end": 4559, + "loc": { + "start": { + "line": 185, + "column": 34 + }, + "end": { + "line": 185, + "column": 54 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 4539, + "end": 4545, + "loc": { + "start": { + "line": 185, + "column": 34 + }, + "end": { + "line": 185, + "column": 40 + } + }, + "name": "search" + }, + "value": { + "type": "MemberExpression", + "start": 4547, + "end": 4559, + "loc": { + "start": { + "line": 185, + "column": 42 + }, + "end": { + "line": 185, + "column": 54 + } + }, + "object": { + "type": "Identifier", + "start": 4547, + "end": 4552, + "loc": { + "start": { + "line": 185, + "column": 42 + }, + "end": { + "line": 185, + "column": 47 + } + }, + "name": "state" + }, + "property": { + "type": "Identifier", + "start": 4553, + "end": 4559, + "loc": { + "start": { + "line": 185, + "column": 48 + }, + "end": { + "line": 185, + "column": 54 + } + }, + "name": "Search" + }, + "computed": false + }, + "kind": "init" + } + ], + "parenthesizedExpression": true + } + } + ], + "leadingComments": null + }, + "arguments": [ + { + "type": "Identifier", + "start": 4564, + "end": 4570, + "loc": { + "start": { + "line": 185, + "column": 59 + }, + "end": { + "line": 185, + "column": 65 + } + }, + "name": "Search" + } + ], + "leadingComments": [ + { + "type": "Block", + "value": "*\n * connect\n * Connects React component to a Redux store\n * Documentation: https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options\n ", + "start": 4299, + "end": 4504, + "loc": { + "start": { + "line": 180, + "column": 0 + }, + "end": { + "line": 184, + "column": 3 + } + }, + "range": [ + 4299, + 4504 + ] + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * connect\n * Connects React component to a Redux store\n * Documentation: https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options\n ", + "start": 4299, + "end": 4504, + "loc": { + "start": { + "line": 180, + "column": 0 + }, + "end": { + "line": 184, + "column": 3 + } + }, + "range": [ + 4299, + 4504 + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/routes/Search/components/Filters/index.js.json b/app/docs/ast/source/routes/Search/components/Filters/index.js.json new file mode 100644 index 0000000..7a8ae04 --- /dev/null +++ b/app/docs/ast/source/routes/Search/components/Filters/index.js.json @@ -0,0 +1,20625 @@ +{ + "type": "Program", + "start": 0, + "end": 5299, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 136, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + }, + { + "type": "ImportSpecifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "imported": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + }, + "local": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 33, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 33 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ImportDeclaration", + "start": 41, + "end": 70, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 29 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 48, + "end": 55, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 14 + } + }, + "local": { + "type": "Identifier", + "start": 48, + "end": 55, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 14 + } + }, + "name": "numeral" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 61, + "end": 70, + "loc": { + "start": { + "line": 2, + "column": 20 + }, + "end": { + "line": 2, + "column": 29 + } + }, + "value": "numeral", + "rawValue": "numeral", + "raw": "'numeral'" + } + }, + { + "type": "ImportDeclaration", + "start": 72, + "end": 131, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 8, + "column": 19 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 85, + "end": 88, + "loc": { + "start": { + "line": 5, + "column": 4 + }, + "end": { + "line": 5, + "column": 7 + } + }, + "imported": { + "type": "Identifier", + "start": 85, + "end": 88, + "loc": { + "start": { + "line": 5, + "column": 4 + }, + "end": { + "line": 5, + "column": 7 + } + }, + "name": "Tab" + }, + "local": { + "type": "Identifier", + "start": 85, + "end": 88, + "loc": { + "start": { + "line": 5, + "column": 4 + }, + "end": { + "line": 5, + "column": 7 + } + }, + "name": "Tab" + } + }, + { + "type": "ImportSpecifier", + "start": 94, + "end": 98, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 6, + "column": 8 + } + }, + "imported": { + "type": "Identifier", + "start": 94, + "end": 98, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 6, + "column": 8 + } + }, + "name": "Tabs" + }, + "local": { + "type": "Identifier", + "start": 94, + "end": 98, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 6, + "column": 8 + } + }, + "name": "Tabs" + } + }, + { + "type": "ImportSpecifier", + "start": 104, + "end": 110, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 7, + "column": 10 + } + }, + "imported": { + "type": "Identifier", + "start": 104, + "end": 110, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 7, + "column": 10 + } + }, + "name": "Avatar" + }, + "local": { + "type": "Identifier", + "start": 104, + "end": 110, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 7, + "column": 10 + } + }, + "name": "Avatar" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 119, + "end": 131, + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 19 + } + }, + "value": "components", + "rawValue": "components", + "raw": "'components'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Filters component used by Search route\n ", + "start": 133, + "end": 182, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + }, + "range": [ + 133, + 182 + ] + } + ] + }, + { + "type": "Identifier", + "start": 183, + "end": 5274, + "loc": { + "start": { + "line": 13, + "column": 0 + }, + "end": { + "line": 133, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 189, + "end": 196, + "loc": { + "start": { + "line": 13, + "column": 6 + }, + "end": { + "line": 13, + "column": 13 + } + }, + "name": "Filters", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 205, + "end": 214, + "loc": { + "start": { + "line": 13, + "column": 22 + }, + "end": { + "line": 13, + "column": 31 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 215, + "end": 5274, + "loc": { + "start": { + "line": 13, + "column": 32 + }, + "end": { + "line": 133, + "column": 1 + } + }, + "body": [ + { + "type": "Identifier", + "start": 329, + "end": 415, + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 23, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 336, + "end": 348, + "loc": { + "start": { + "line": 19, + "column": 11 + }, + "end": { + "line": 19, + "column": 23 + } + }, + "name": "defaultProps" + }, + "static": true, + "value": { + "type": "ObjectExpression", + "start": 351, + "end": 415, + "loc": { + "start": { + "line": 19, + "column": 26 + }, + "end": { + "line": 23, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 361, + "end": 387, + "loc": { + "start": { + "line": 20, + "column": 8 + }, + "end": { + "line": 21, + "column": 9 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 361, + "end": 368, + "loc": { + "start": { + "line": 20, + "column": 8 + }, + "end": { + "line": 20, + "column": 15 + } + }, + "name": "onClick" + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 370, + "end": 387, + "loc": { + "start": { + "line": 20, + "column": 17 + }, + "end": { + "line": 21, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 376, + "end": 387, + "loc": { + "start": { + "line": 20, + "column": 23 + }, + "end": { + "line": 21, + "column": 9 + } + }, + "body": [] + } + }, + "kind": "init" + }, + { + "type": "Property", + "start": 397, + "end": 408, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 19 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 397, + "end": 404, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 15 + } + }, + "name": "results" + }, + "value": { + "type": "ArrayExpression", + "start": 406, + "end": 408, + "loc": { + "start": { + "line": 22, + "column": 17 + }, + "end": { + "line": 22, + "column": 19 + } + }, + "elements": [] + }, + "kind": "init" + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * defaultProps\n * @type {{onClick: Filters.defaultProps.onClick, results: Array}}\n ", + "start": 222, + "end": 324, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 18, + "column": 7 + } + }, + "range": [ + 222, + 324 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * renderResults\n * @param fn\n * @param comp\n * @returns {*}\n ", + "start": 421, + "end": 509, + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 30, + "column": 7 + } + }, + "range": [ + 421, + 509 + ] + } + ] + }, + { + "type": "Identifier", + "start": 514, + "end": 745, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 35, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 514, + "end": 527, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 17 + } + }, + "name": "renderResults", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ArrowFunctionExpression", + "start": 530, + "end": 745, + "loc": { + "start": { + "line": 31, + "column": 20 + }, + "end": { + "line": 35, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 531, + "end": 533, + "loc": { + "start": { + "line": 31, + "column": 21 + }, + "end": { + "line": 31, + "column": 23 + } + }, + "name": "fn" + }, + { + "type": "Identifier", + "start": 535, + "end": 539, + "loc": { + "start": { + "line": 31, + "column": 25 + }, + "end": { + "line": 31, + "column": 29 + } + }, + "name": "comp" + } + ], + "body": { + "type": "BlockStatement", + "start": 544, + "end": 745, + "loc": { + "start": { + "line": 31, + "column": 34 + }, + "end": { + "line": 35, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 554, + "end": 623, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 77 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 560, + "end": 623, + "loc": { + "start": { + "line": 32, + "column": 14 + }, + "end": { + "line": 32, + "column": 77 + } + }, + "id": { + "type": "Identifier", + "start": 560, + "end": 565, + "loc": { + "start": { + "line": 32, + "column": 14 + }, + "end": { + "line": 32, + "column": 19 + } + }, + "name": "items" + }, + "init": { + "type": "ConditionalExpression", + "start": 568, + "end": 623, + "loc": { + "start": { + "line": 32, + "column": 22 + }, + "end": { + "line": 32, + "column": 77 + } + }, + "test": { + "type": "Identifier", + "start": 568, + "end": 570, + "loc": { + "start": { + "line": 32, + "column": 22 + }, + "end": { + "line": 32, + "column": 24 + } + }, + "name": "fn" + }, + "consequent": { + "type": "CallExpression", + "start": 573, + "end": 602, + "loc": { + "start": { + "line": 32, + "column": 27 + }, + "end": { + "line": 32, + "column": 56 + } + }, + "callee": { + "type": "MemberExpression", + "start": 573, + "end": 598, + "loc": { + "start": { + "line": 32, + "column": 27 + }, + "end": { + "line": 32, + "column": 52 + } + }, + "object": { + "type": "MemberExpression", + "start": 573, + "end": 591, + "loc": { + "start": { + "line": 32, + "column": 27 + }, + "end": { + "line": 32, + "column": 45 + } + }, + "object": { + "type": "MemberExpression", + "start": 573, + "end": 583, + "loc": { + "start": { + "line": 32, + "column": 27 + }, + "end": { + "line": 32, + "column": 37 + } + }, + "object": { + "type": "ThisExpression", + "start": 573, + "end": 577, + "loc": { + "start": { + "line": 32, + "column": 27 + }, + "end": { + "line": 32, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "start": 578, + "end": 583, + "loc": { + "start": { + "line": 32, + "column": 32 + }, + "end": { + "line": 32, + "column": 37 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 584, + "end": 591, + "loc": { + "start": { + "line": 32, + "column": 38 + }, + "end": { + "line": 32, + "column": 45 + } + }, + "name": "results" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 592, + "end": 598, + "loc": { + "start": { + "line": 32, + "column": 46 + }, + "end": { + "line": 32, + "column": 52 + } + }, + "name": "filter" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 599, + "end": 601, + "loc": { + "start": { + "line": 32, + "column": 53 + }, + "end": { + "line": 32, + "column": 55 + } + }, + "name": "fn" + } + ] + }, + "alternate": { + "type": "MemberExpression", + "start": 605, + "end": 623, + "loc": { + "start": { + "line": 32, + "column": 59 + }, + "end": { + "line": 32, + "column": 77 + } + }, + "object": { + "type": "MemberExpression", + "start": 605, + "end": 615, + "loc": { + "start": { + "line": 32, + "column": 59 + }, + "end": { + "line": 32, + "column": 69 + } + }, + "object": { + "type": "ThisExpression", + "start": 605, + "end": 609, + "loc": { + "start": { + "line": 32, + "column": 59 + }, + "end": { + "line": 32, + "column": 63 + } + } + }, + "property": { + "type": "Identifier", + "start": 610, + "end": 615, + "loc": { + "start": { + "line": 32, + "column": 64 + }, + "end": { + "line": 32, + "column": 69 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 616, + "end": 623, + "loc": { + "start": { + "line": 32, + "column": 70 + }, + "end": { + "line": 32, + "column": 77 + } + }, + "name": "results" + }, + "computed": false + } + } + } + ], + "kind": "const" + }, + { + "type": "IfStatement", + "start": 632, + "end": 708, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 84 + } + }, + "test": { + "type": "UnaryExpression", + "start": 636, + "end": 649, + "loc": { + "start": { + "line": 33, + "column": 12 + }, + "end": { + "line": 33, + "column": 25 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 637, + "end": 649, + "loc": { + "start": { + "line": 33, + "column": 13 + }, + "end": { + "line": 33, + "column": 25 + } + }, + "object": { + "type": "Identifier", + "start": 637, + "end": 642, + "loc": { + "start": { + "line": 33, + "column": 13 + }, + "end": { + "line": 33, + "column": 18 + } + }, + "name": "items" + }, + "property": { + "type": "Identifier", + "start": 643, + "end": 649, + "loc": { + "start": { + "line": 33, + "column": 19 + }, + "end": { + "line": 33, + "column": 25 + } + }, + "name": "length" + }, + "computed": false + } + }, + "consequent": { + "type": "ReturnStatement", + "start": 651, + "end": 708, + "loc": { + "start": { + "line": 33, + "column": 27 + }, + "end": { + "line": 33, + "column": 84 + } + }, + "argument": { + "type": "JSXElement", + "start": 658, + "end": 708, + "loc": { + "start": { + "line": 33, + "column": 34 + }, + "end": { + "line": 33, + "column": 84 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 658, + "end": 686, + "loc": { + "start": { + "line": 33, + "column": 34 + }, + "end": { + "line": 33, + "column": 62 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 663, + "end": 685, + "loc": { + "start": { + "line": 33, + "column": 39 + }, + "end": { + "line": 33, + "column": 61 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 663, + "end": 672, + "loc": { + "start": { + "line": 33, + "column": 39 + }, + "end": { + "line": 33, + "column": 48 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 673, + "end": 685, + "loc": { + "start": { + "line": 33, + "column": 49 + }, + "end": { + "line": 33, + "column": 61 + } + }, + "value": "no-results", + "rawValue": null, + "raw": "\"no-results\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 659, + "end": 662, + "loc": { + "start": { + "line": 33, + "column": 35 + }, + "end": { + "line": 33, + "column": 38 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 702, + "end": 708, + "loc": { + "start": { + "line": 33, + "column": 78 + }, + "end": { + "line": 33, + "column": 84 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 704, + "end": 707, + "loc": { + "start": { + "line": 33, + "column": 80 + }, + "end": { + "line": 33, + "column": 83 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 686, + "end": 702, + "loc": { + "start": { + "line": 33, + "column": 62 + }, + "end": { + "line": 33, + "column": 78 + } + }, + "value": "No results found", + "rawValue": null, + "raw": "No results found" + } + ] + } + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 717, + "end": 739, + "loc": { + "start": { + "line": 34, + "column": 8 + }, + "end": { + "line": 34, + "column": 30 + } + }, + "argument": { + "type": "CallExpression", + "start": 724, + "end": 739, + "loc": { + "start": { + "line": 34, + "column": 15 + }, + "end": { + "line": 34, + "column": 30 + } + }, + "callee": { + "type": "MemberExpression", + "start": 724, + "end": 733, + "loc": { + "start": { + "line": 34, + "column": 15 + }, + "end": { + "line": 34, + "column": 24 + } + }, + "object": { + "type": "Identifier", + "start": 724, + "end": 729, + "loc": { + "start": { + "line": 34, + "column": 15 + }, + "end": { + "line": 34, + "column": 20 + } + }, + "name": "items" + }, + "property": { + "type": "Identifier", + "start": 730, + "end": 733, + "loc": { + "start": { + "line": 34, + "column": 21 + }, + "end": { + "line": 34, + "column": 24 + } + }, + "name": "map" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 734, + "end": 738, + "loc": { + "start": { + "line": 34, + "column": 25 + }, + "end": { + "line": 34, + "column": 29 + } + }, + "name": "comp" + } + ] + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * renderResults\n * @param fn\n * @param comp\n * @returns {*}\n ", + "start": 421, + "end": 509, + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 30, + "column": 7 + } + }, + "range": [ + 421, + 509 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 751, + "end": 799, + "loc": { + "start": { + "line": 37, + "column": 4 + }, + "end": { + "line": 40, + "column": 7 + } + }, + "range": [ + 751, + 799 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 804, + "end": 5272, + "loc": { + "start": { + "line": 41, + "column": 4 + }, + "end": { + "line": 132, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 804, + "end": 810, + "loc": { + "start": { + "line": 41, + "column": 4 + }, + "end": { + "line": 41, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 810, + "end": 5272, + "loc": { + "start": { + "line": 41, + "column": 10 + }, + "end": { + "line": 132, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 813, + "end": 5272, + "loc": { + "start": { + "line": 41, + "column": 13 + }, + "end": { + "line": 132, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 824, + "end": 5266, + "loc": { + "start": { + "line": 43, + "column": 8 + }, + "end": { + "line": 131, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 845, + "end": 5256, + "loc": { + "start": { + "line": 44, + "column": 12 + }, + "end": { + "line": 130, + "column": 19 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 845, + "end": 868, + "loc": { + "start": { + "line": 44, + "column": 12 + }, + "end": { + "line": 44, + "column": 35 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 851, + "end": 867, + "loc": { + "start": { + "line": 44, + "column": 18 + }, + "end": { + "line": 44, + "column": 34 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 851, + "end": 860, + "loc": { + "start": { + "line": 44, + "column": 18 + }, + "end": { + "line": 44, + "column": 27 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 861, + "end": 867, + "loc": { + "start": { + "line": 44, + "column": 28 + }, + "end": { + "line": 44, + "column": 34 + } + }, + "value": "tabs", + "rawValue": null, + "raw": "\"tabs\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 846, + "end": 850, + "loc": { + "start": { + "line": 44, + "column": 13 + }, + "end": { + "line": 44, + "column": 17 + } + }, + "name": "Tabs" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 5249, + "end": 5256, + "loc": { + "start": { + "line": 130, + "column": 12 + }, + "end": { + "line": 130, + "column": 19 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 5251, + "end": 5255, + "loc": { + "start": { + "line": 130, + "column": 14 + }, + "end": { + "line": 130, + "column": 18 + } + }, + "name": "Tabs" + } + }, + "children": [ + { + "type": "Literal", + "start": 868, + "end": 885, + "loc": { + "start": { + "line": 44, + "column": 35 + }, + "end": { + "line": 45, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 885, + "end": 2940, + "loc": { + "start": { + "line": 45, + "column": 16 + }, + "end": { + "line": 81, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 885, + "end": 919, + "loc": { + "start": { + "line": 45, + "column": 16 + }, + "end": { + "line": 45, + "column": 50 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 890, + "end": 906, + "loc": { + "start": { + "line": 45, + "column": 21 + }, + "end": { + "line": 45, + "column": 37 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 890, + "end": 893, + "loc": { + "start": { + "line": 45, + "column": 21 + }, + "end": { + "line": 45, + "column": 24 + } + }, + "name": "key" + }, + "value": { + "type": "Literal", + "start": 894, + "end": 906, + "loc": { + "start": { + "line": 45, + "column": 25 + }, + "end": { + "line": 45, + "column": 37 + } + }, + "value": "filter-all", + "rawValue": null, + "raw": "\"filter-all\"" + } + }, + { + "type": "JSXAttribute", + "start": 907, + "end": 918, + "loc": { + "start": { + "line": 45, + "column": 38 + }, + "end": { + "line": 45, + "column": 49 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 907, + "end": 912, + "loc": { + "start": { + "line": 45, + "column": 38 + }, + "end": { + "line": 45, + "column": 43 + } + }, + "name": "label" + }, + "value": { + "type": "Literal", + "start": 913, + "end": 918, + "loc": { + "start": { + "line": 45, + "column": 44 + }, + "end": { + "line": 45, + "column": 49 + } + }, + "value": "All", + "rawValue": null, + "raw": "\"All\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 886, + "end": 889, + "loc": { + "start": { + "line": 45, + "column": 17 + }, + "end": { + "line": 45, + "column": 20 + } + }, + "name": "Tab" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2934, + "end": 2940, + "loc": { + "start": { + "line": 81, + "column": 16 + }, + "end": { + "line": 81, + "column": 22 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2936, + "end": 2939, + "loc": { + "start": { + "line": 81, + "column": 18 + }, + "end": { + "line": 81, + "column": 21 + } + }, + "name": "Tab" + } + }, + "children": [ + { + "type": "Literal", + "start": 919, + "end": 940, + "loc": { + "start": { + "line": 45, + "column": 50 + }, + "end": { + "line": 46, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 940, + "end": 2917, + "loc": { + "start": { + "line": 46, + "column": 20 + }, + "end": { + "line": 80, + "column": 26 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 940, + "end": 965, + "loc": { + "start": { + "line": 46, + "column": 20 + }, + "end": { + "line": 46, + "column": 45 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 945, + "end": 964, + "loc": { + "start": { + "line": 46, + "column": 25 + }, + "end": { + "line": 46, + "column": 44 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 945, + "end": 954, + "loc": { + "start": { + "line": 46, + "column": 25 + }, + "end": { + "line": 46, + "column": 34 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 955, + "end": 964, + "loc": { + "start": { + "line": 46, + "column": 35 + }, + "end": { + "line": 46, + "column": 44 + } + }, + "value": "results", + "rawValue": null, + "raw": "\"results\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 941, + "end": 944, + "loc": { + "start": { + "line": 46, + "column": 21 + }, + "end": { + "line": 46, + "column": 24 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2911, + "end": 2917, + "loc": { + "start": { + "line": 80, + "column": 20 + }, + "end": { + "line": 80, + "column": 26 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2913, + "end": 2916, + "loc": { + "start": { + "line": 80, + "column": 22 + }, + "end": { + "line": 80, + "column": 25 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 965, + "end": 990, + "loc": { + "start": { + "line": 46, + "column": 45 + }, + "end": { + "line": 47, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 990, + "end": 2890, + "loc": { + "start": { + "line": 47, + "column": 24 + }, + "end": { + "line": 79, + "column": 29 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 990, + "end": 994, + "loc": { + "start": { + "line": 47, + "column": 24 + }, + "end": { + "line": 47, + "column": 28 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 991, + "end": 993, + "loc": { + "start": { + "line": 47, + "column": 25 + }, + "end": { + "line": 47, + "column": 27 + } + }, + "name": "ul" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2885, + "end": 2890, + "loc": { + "start": { + "line": 79, + "column": 24 + }, + "end": { + "line": 79, + "column": 29 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2887, + "end": 2889, + "loc": { + "start": { + "line": 79, + "column": 26 + }, + "end": { + "line": 79, + "column": 28 + } + }, + "name": "ul" + } + }, + "children": [ + { + "type": "Literal", + "start": 994, + "end": 1023, + "loc": { + "start": { + "line": 47, + "column": 28 + }, + "end": { + "line": 48, + "column": 28 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 1023, + "end": 2860, + "loc": { + "start": { + "line": 48, + "column": 28 + }, + "end": { + "line": 78, + "column": 35 + } + }, + "expression": { + "type": "CallExpression", + "start": 1024, + "end": 2859, + "loc": { + "start": { + "line": 48, + "column": 29 + }, + "end": { + "line": 78, + "column": 34 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1024, + "end": 1042, + "loc": { + "start": { + "line": 48, + "column": 29 + }, + "end": { + "line": 48, + "column": 47 + } + }, + "object": { + "type": "ThisExpression", + "start": 1024, + "end": 1028, + "loc": { + "start": { + "line": 48, + "column": 29 + }, + "end": { + "line": 48, + "column": 33 + } + } + }, + "property": { + "type": "Identifier", + "start": 1029, + "end": 1042, + "loc": { + "start": { + "line": 48, + "column": 34 + }, + "end": { + "line": 48, + "column": 47 + } + }, + "name": "renderResults" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 1076, + "end": 1080, + "loc": { + "start": { + "line": 49, + "column": 32 + }, + "end": { + "line": 49, + "column": 36 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + { + "type": "ArrowFunctionExpression", + "start": 1114, + "end": 2858, + "loc": { + "start": { + "line": 50, + "column": 32 + }, + "end": { + "line": 78, + "column": 33 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1115, + "end": 1116, + "loc": { + "start": { + "line": 50, + "column": 33 + }, + "end": { + "line": 50, + "column": 34 + } + }, + "name": "r" + }, + { + "type": "Identifier", + "start": 1118, + "end": 1119, + "loc": { + "start": { + "line": 50, + "column": 36 + }, + "end": { + "line": 50, + "column": 37 + } + }, + "name": "i" + } + ], + "body": { + "type": "BlockStatement", + "start": 1124, + "end": 2858, + "loc": { + "start": { + "line": 50, + "column": 42 + }, + "end": { + "line": 78, + "column": 33 + } + }, + "body": [ + { + "type": "SwitchStatement", + "start": 1163, + "end": 2823, + "loc": { + "start": { + "line": 52, + "column": 36 + }, + "end": { + "line": 76, + "column": 37 + } + }, + "discriminant": { + "type": "MemberExpression", + "start": 1171, + "end": 1177, + "loc": { + "start": { + "line": 52, + "column": 44 + }, + "end": { + "line": 52, + "column": 50 + } + }, + "object": { + "type": "Identifier", + "start": 1171, + "end": 1172, + "loc": { + "start": { + "line": 52, + "column": 44 + }, + "end": { + "line": 52, + "column": 45 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 1173, + "end": 1177, + "loc": { + "start": { + "line": 52, + "column": 46 + }, + "end": { + "line": 52, + "column": 50 + } + }, + "name": "type" + }, + "computed": false + }, + "cases": [ + { + "type": "SwitchCase", + "start": 1221, + "end": 1795, + "loc": { + "start": { + "line": 53, + "column": 40 + }, + "end": { + "line": 60, + "column": 49 + } + }, + "consequent": [ + { + "type": "ReturnStatement", + "start": 1282, + "end": 1795, + "loc": { + "start": { + "line": 54, + "column": 44 + }, + "end": { + "line": 60, + "column": 49 + } + }, + "argument": { + "type": "JSXElement", + "start": 1289, + "end": 1795, + "loc": { + "start": { + "line": 54, + "column": 51 + }, + "end": { + "line": 60, + "column": 49 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1289, + "end": 1427, + "loc": { + "start": { + "line": 54, + "column": 51 + }, + "end": { + "line": 55, + "column": 100 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1293, + "end": 1326, + "loc": { + "start": { + "line": 54, + "column": 55 + }, + "end": { + "line": 54, + "column": 88 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1293, + "end": 1296, + "loc": { + "start": { + "line": 54, + "column": 55 + }, + "end": { + "line": 54, + "column": 58 + } + }, + "name": "key" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 1297, + "end": 1326, + "loc": { + "start": { + "line": 54, + "column": 59 + }, + "end": { + "line": 54, + "column": 88 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 1298, + "end": 1325, + "loc": { + "start": { + "line": 54, + "column": 60 + }, + "end": { + "line": 54, + "column": 87 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 1317, + "end": 1323, + "loc": { + "start": { + "line": 54, + "column": 79 + }, + "end": { + "line": 54, + "column": 85 + } + }, + "object": { + "type": "Identifier", + "start": 1317, + "end": 1318, + "loc": { + "start": { + "line": 54, + "column": 79 + }, + "end": { + "line": 54, + "column": 80 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 1319, + "end": 1323, + "loc": { + "start": { + "line": 54, + "column": 81 + }, + "end": { + "line": 54, + "column": 85 + } + }, + "name": "word" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 1299, + "end": 1315, + "loc": { + "start": { + "line": 54, + "column": 61 + }, + "end": { + "line": 54, + "column": 77 + } + }, + "value": { + "raw": "result-hashtags-", + "cooked": "result-hashtags-" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 1324, + "end": 1324, + "loc": { + "start": { + "line": 54, + "column": 86 + }, + "end": { + "line": 54, + "column": 86 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + }, + { + "type": "JSXAttribute", + "start": 1382, + "end": 1426, + "loc": { + "start": { + "line": 55, + "column": 55 + }, + "end": { + "line": 55, + "column": 99 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1382, + "end": 1389, + "loc": { + "start": { + "line": 55, + "column": 55 + }, + "end": { + "line": 55, + "column": 62 + } + }, + "name": "onClick" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 1390, + "end": 1426, + "loc": { + "start": { + "line": 55, + "column": 63 + }, + "end": { + "line": 55, + "column": 99 + } + }, + "expression": { + "type": "ArrowFunctionExpression", + "start": 1391, + "end": 1425, + "loc": { + "start": { + "line": 55, + "column": 64 + }, + "end": { + "line": 55, + "column": 98 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1392, + "end": 1393, + "loc": { + "start": { + "line": 55, + "column": 65 + }, + "end": { + "line": 55, + "column": 66 + } + }, + "name": "e" + } + ], + "body": { + "type": "CallExpression", + "start": 1398, + "end": 1425, + "loc": { + "start": { + "line": 55, + "column": 71 + }, + "end": { + "line": 55, + "column": 98 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1398, + "end": 1416, + "loc": { + "start": { + "line": 55, + "column": 71 + }, + "end": { + "line": 55, + "column": 89 + } + }, + "object": { + "type": "MemberExpression", + "start": 1398, + "end": 1408, + "loc": { + "start": { + "line": 55, + "column": 71 + }, + "end": { + "line": 55, + "column": 81 + } + }, + "object": { + "type": "ThisExpression", + "start": 1398, + "end": 1402, + "loc": { + "start": { + "line": 55, + "column": 71 + }, + "end": { + "line": 55, + "column": 75 + } + } + }, + "property": { + "type": "Identifier", + "start": 1403, + "end": 1408, + "loc": { + "start": { + "line": 55, + "column": 76 + }, + "end": { + "line": 55, + "column": 81 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1409, + "end": 1416, + "loc": { + "start": { + "line": 55, + "column": 82 + }, + "end": { + "line": 55, + "column": 89 + } + }, + "name": "onClick" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 1417, + "end": 1418, + "loc": { + "start": { + "line": 55, + "column": 90 + }, + "end": { + "line": 55, + "column": 91 + } + }, + "name": "e" + }, + { + "type": "Identifier", + "start": 1420, + "end": 1421, + "loc": { + "start": { + "line": 55, + "column": 93 + }, + "end": { + "line": 55, + "column": 94 + } + }, + "name": "i" + }, + { + "type": "Identifier", + "start": 1423, + "end": 1424, + "loc": { + "start": { + "line": 55, + "column": 96 + }, + "end": { + "line": 55, + "column": 97 + } + }, + "name": "r" + } + ] + } + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1290, + "end": 1292, + "loc": { + "start": { + "line": 54, + "column": 52 + }, + "end": { + "line": 54, + "column": 54 + } + }, + "name": "li" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1790, + "end": 1795, + "loc": { + "start": { + "line": 60, + "column": 44 + }, + "end": { + "line": 60, + "column": 49 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1792, + "end": 1794, + "loc": { + "start": { + "line": 60, + "column": 46 + }, + "end": { + "line": 60, + "column": 48 + } + }, + "name": "li" + } + }, + "children": [ + { + "type": "Literal", + "start": 1427, + "end": 1476, + "loc": { + "start": { + "line": 55, + "column": 100 + }, + "end": { + "line": 56, + "column": 48 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1476, + "end": 1745, + "loc": { + "start": { + "line": 56, + "column": 48 + }, + "end": { + "line": 59, + "column": 54 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1476, + "end": 1506, + "loc": { + "start": { + "line": 56, + "column": 48 + }, + "end": { + "line": 56, + "column": 78 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1481, + "end": 1505, + "loc": { + "start": { + "line": 56, + "column": 53 + }, + "end": { + "line": 56, + "column": 77 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1481, + "end": 1490, + "loc": { + "start": { + "line": 56, + "column": 53 + }, + "end": { + "line": 56, + "column": 62 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 1491, + "end": 1505, + "loc": { + "start": { + "line": 56, + "column": 63 + }, + "end": { + "line": 56, + "column": 77 + } + }, + "value": "result-inner", + "rawValue": null, + "raw": "\"result-inner\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1477, + "end": 1480, + "loc": { + "start": { + "line": 56, + "column": 49 + }, + "end": { + "line": 56, + "column": 52 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1739, + "end": 1745, + "loc": { + "start": { + "line": 59, + "column": 48 + }, + "end": { + "line": 59, + "column": 54 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1741, + "end": 1744, + "loc": { + "start": { + "line": 59, + "column": 50 + }, + "end": { + "line": 59, + "column": 53 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 1506, + "end": 1559, + "loc": { + "start": { + "line": 56, + "column": 78 + }, + "end": { + "line": 57, + "column": 52 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1559, + "end": 1585, + "loc": { + "start": { + "line": 57, + "column": 52 + }, + "end": { + "line": 57, + "column": 78 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1559, + "end": 1567, + "loc": { + "start": { + "line": 57, + "column": 52 + }, + "end": { + "line": 57, + "column": 60 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 1560, + "end": 1566, + "loc": { + "start": { + "line": 57, + "column": 53 + }, + "end": { + "line": 57, + "column": 59 + } + }, + "name": "strong" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1576, + "end": 1585, + "loc": { + "start": { + "line": 57, + "column": 69 + }, + "end": { + "line": 57, + "column": 78 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1578, + "end": 1584, + "loc": { + "start": { + "line": 57, + "column": 71 + }, + "end": { + "line": 57, + "column": 77 + } + }, + "name": "strong" + } + }, + "children": [ + { + "type": "Literal", + "start": 1567, + "end": 1568, + "loc": { + "start": { + "line": 57, + "column": 60 + }, + "end": { + "line": 57, + "column": 61 + } + }, + "value": "#", + "rawValue": null, + "raw": "#" + }, + { + "type": "JSXExpressionContainer", + "start": 1568, + "end": 1576, + "loc": { + "start": { + "line": 57, + "column": 61 + }, + "end": { + "line": 57, + "column": 69 + } + }, + "expression": { + "type": "MemberExpression", + "start": 1569, + "end": 1575, + "loc": { + "start": { + "line": 57, + "column": 62 + }, + "end": { + "line": 57, + "column": 68 + } + }, + "object": { + "type": "Identifier", + "start": 1569, + "end": 1570, + "loc": { + "start": { + "line": 57, + "column": 62 + }, + "end": { + "line": 57, + "column": 63 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 1571, + "end": 1575, + "loc": { + "start": { + "line": 57, + "column": 64 + }, + "end": { + "line": 57, + "column": 68 + } + }, + "name": "word" + }, + "computed": false + } + } + ] + }, + { + "type": "Literal", + "start": 1585, + "end": 1638, + "loc": { + "start": { + "line": 57, + "column": 78 + }, + "end": { + "line": 58, + "column": 52 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1638, + "end": 1690, + "loc": { + "start": { + "line": 58, + "column": 52 + }, + "end": { + "line": 58, + "column": 104 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1638, + "end": 1644, + "loc": { + "start": { + "line": 58, + "column": 52 + }, + "end": { + "line": 58, + "column": 58 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 1639, + "end": 1643, + "loc": { + "start": { + "line": 58, + "column": 53 + }, + "end": { + "line": 58, + "column": 57 + } + }, + "name": "span" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1683, + "end": 1690, + "loc": { + "start": { + "line": 58, + "column": 97 + }, + "end": { + "line": 58, + "column": 104 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1685, + "end": 1689, + "loc": { + "start": { + "line": 58, + "column": 99 + }, + "end": { + "line": 58, + "column": 103 + } + }, + "name": "span" + } + }, + "children": [ + { + "type": "JSXExpressionContainer", + "start": 1644, + "end": 1676, + "loc": { + "start": { + "line": 58, + "column": 58 + }, + "end": { + "line": 58, + "column": 90 + } + }, + "expression": { + "type": "CallExpression", + "start": 1645, + "end": 1675, + "loc": { + "start": { + "line": 58, + "column": 59 + }, + "end": { + "line": 58, + "column": 89 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1645, + "end": 1668, + "loc": { + "start": { + "line": 58, + "column": 59 + }, + "end": { + "line": 58, + "column": 82 + } + }, + "object": { + "type": "CallExpression", + "start": 1645, + "end": 1661, + "loc": { + "start": { + "line": 58, + "column": 59 + }, + "end": { + "line": 58, + "column": 75 + } + }, + "callee": { + "type": "Identifier", + "start": 1645, + "end": 1652, + "loc": { + "start": { + "line": 58, + "column": 59 + }, + "end": { + "line": 58, + "column": 66 + } + }, + "name": "numeral" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 1653, + "end": 1660, + "loc": { + "start": { + "line": 58, + "column": 67 + }, + "end": { + "line": 58, + "column": 74 + } + }, + "object": { + "type": "Identifier", + "start": 1653, + "end": 1654, + "loc": { + "start": { + "line": 58, + "column": 67 + }, + "end": { + "line": 58, + "column": 68 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 1655, + "end": 1660, + "loc": { + "start": { + "line": 58, + "column": 69 + }, + "end": { + "line": 58, + "column": 74 + } + }, + "name": "count" + }, + "computed": false + } + ] + }, + "property": { + "type": "Identifier", + "start": 1662, + "end": 1668, + "loc": { + "start": { + "line": 58, + "column": 76 + }, + "end": { + "line": 58, + "column": 82 + } + }, + "name": "format" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 1669, + "end": 1674, + "loc": { + "start": { + "line": 58, + "column": 83 + }, + "end": { + "line": 58, + "column": 88 + } + }, + "value": "0,0", + "rawValue": "0,0", + "raw": "'0,0'" + } + ] + } + }, + { + "type": "Literal", + "start": 1676, + "end": 1683, + "loc": { + "start": { + "line": 58, + "column": 90 + }, + "end": { + "line": 58, + "column": 97 + } + }, + "value": " Photos", + "rawValue": null, + "raw": " Photos" + } + ] + }, + { + "type": "Literal", + "start": 1690, + "end": 1739, + "loc": { + "start": { + "line": 58, + "column": 104 + }, + "end": { + "line": 59, + "column": 48 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 1745, + "end": 1790, + "loc": { + "start": { + "line": 59, + "column": 54 + }, + "end": { + "line": 60, + "column": 44 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + } + } + ], + "test": { + "type": "Literal", + "start": 1226, + "end": 1236, + "loc": { + "start": { + "line": 53, + "column": 45 + }, + "end": { + "line": 53, + "column": 55 + } + }, + "value": "hashtags", + "rawValue": "hashtags", + "raw": "'hashtags'" + } + }, + { + "type": "SwitchCase", + "start": 1837, + "end": 2056, + "loc": { + "start": { + "line": 62, + "column": 40 + }, + "end": { + "line": 64, + "column": 113 + } + }, + "consequent": [ + { + "type": "ReturnStatement", + "start": 1898, + "end": 2056, + "loc": { + "start": { + "line": 63, + "column": 44 + }, + "end": { + "line": 64, + "column": 113 + } + }, + "argument": { + "type": "JSXElement", + "start": 1905, + "end": 2056, + "loc": { + "start": { + "line": 63, + "column": 51 + }, + "end": { + "line": 64, + "column": 113 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1905, + "end": 2043, + "loc": { + "start": { + "line": 63, + "column": 51 + }, + "end": { + "line": 64, + "column": 100 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1909, + "end": 1942, + "loc": { + "start": { + "line": 63, + "column": 55 + }, + "end": { + "line": 63, + "column": 88 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1909, + "end": 1912, + "loc": { + "start": { + "line": 63, + "column": 55 + }, + "end": { + "line": 63, + "column": 58 + } + }, + "name": "key" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 1913, + "end": 1942, + "loc": { + "start": { + "line": 63, + "column": 59 + }, + "end": { + "line": 63, + "column": 88 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 1914, + "end": 1941, + "loc": { + "start": { + "line": 63, + "column": 60 + }, + "end": { + "line": 63, + "column": 87 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 1933, + "end": 1939, + "loc": { + "start": { + "line": 63, + "column": 79 + }, + "end": { + "line": 63, + "column": 85 + } + }, + "object": { + "type": "Identifier", + "start": 1933, + "end": 1934, + "loc": { + "start": { + "line": 63, + "column": 79 + }, + "end": { + "line": 63, + "column": 80 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 1935, + "end": 1939, + "loc": { + "start": { + "line": 63, + "column": 81 + }, + "end": { + "line": 63, + "column": 85 + } + }, + "name": "word" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 1915, + "end": 1931, + "loc": { + "start": { + "line": 63, + "column": 61 + }, + "end": { + "line": 63, + "column": 77 + } + }, + "value": { + "raw": "result-location-", + "cooked": "result-location-" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 1940, + "end": 1940, + "loc": { + "start": { + "line": 63, + "column": 86 + }, + "end": { + "line": 63, + "column": 86 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + }, + { + "type": "JSXAttribute", + "start": 1998, + "end": 2042, + "loc": { + "start": { + "line": 64, + "column": 55 + }, + "end": { + "line": 64, + "column": 99 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1998, + "end": 2005, + "loc": { + "start": { + "line": 64, + "column": 55 + }, + "end": { + "line": 64, + "column": 62 + } + }, + "name": "onClick" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2006, + "end": 2042, + "loc": { + "start": { + "line": 64, + "column": 63 + }, + "end": { + "line": 64, + "column": 99 + } + }, + "expression": { + "type": "ArrowFunctionExpression", + "start": 2007, + "end": 2041, + "loc": { + "start": { + "line": 64, + "column": 64 + }, + "end": { + "line": 64, + "column": 98 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2008, + "end": 2009, + "loc": { + "start": { + "line": 64, + "column": 65 + }, + "end": { + "line": 64, + "column": 66 + } + }, + "name": "e" + } + ], + "body": { + "type": "CallExpression", + "start": 2014, + "end": 2041, + "loc": { + "start": { + "line": 64, + "column": 71 + }, + "end": { + "line": 64, + "column": 98 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2014, + "end": 2032, + "loc": { + "start": { + "line": 64, + "column": 71 + }, + "end": { + "line": 64, + "column": 89 + } + }, + "object": { + "type": "MemberExpression", + "start": 2014, + "end": 2024, + "loc": { + "start": { + "line": 64, + "column": 71 + }, + "end": { + "line": 64, + "column": 81 + } + }, + "object": { + "type": "ThisExpression", + "start": 2014, + "end": 2018, + "loc": { + "start": { + "line": 64, + "column": 71 + }, + "end": { + "line": 64, + "column": 75 + } + } + }, + "property": { + "type": "Identifier", + "start": 2019, + "end": 2024, + "loc": { + "start": { + "line": 64, + "column": 76 + }, + "end": { + "line": 64, + "column": 81 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2025, + "end": 2032, + "loc": { + "start": { + "line": 64, + "column": 82 + }, + "end": { + "line": 64, + "column": 89 + } + }, + "name": "onClick" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 2033, + "end": 2034, + "loc": { + "start": { + "line": 64, + "column": 90 + }, + "end": { + "line": 64, + "column": 91 + } + }, + "name": "e" + }, + { + "type": "Identifier", + "start": 2036, + "end": 2037, + "loc": { + "start": { + "line": 64, + "column": 93 + }, + "end": { + "line": 64, + "column": 94 + } + }, + "name": "i" + }, + { + "type": "Identifier", + "start": 2039, + "end": 2040, + "loc": { + "start": { + "line": 64, + "column": 96 + }, + "end": { + "line": 64, + "column": 97 + } + }, + "name": "r" + } + ] + } + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1906, + "end": 1908, + "loc": { + "start": { + "line": 63, + "column": 52 + }, + "end": { + "line": 63, + "column": 54 + } + }, + "name": "li" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2051, + "end": 2056, + "loc": { + "start": { + "line": 64, + "column": 108 + }, + "end": { + "line": 64, + "column": 113 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2053, + "end": 2055, + "loc": { + "start": { + "line": 64, + "column": 110 + }, + "end": { + "line": 64, + "column": 112 + } + }, + "name": "li" + } + }, + "children": [ + { + "type": "JSXExpressionContainer", + "start": 2043, + "end": 2051, + "loc": { + "start": { + "line": 64, + "column": 100 + }, + "end": { + "line": 64, + "column": 108 + } + }, + "expression": { + "type": "MemberExpression", + "start": 2044, + "end": 2050, + "loc": { + "start": { + "line": 64, + "column": 101 + }, + "end": { + "line": 64, + "column": 107 + } + }, + "object": { + "type": "Identifier", + "start": 2044, + "end": 2045, + "loc": { + "start": { + "line": 64, + "column": 101 + }, + "end": { + "line": 64, + "column": 102 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 2046, + "end": 2050, + "loc": { + "start": { + "line": 64, + "column": 103 + }, + "end": { + "line": 64, + "column": 107 + } + }, + "name": "word" + }, + "computed": false + } + } + ] + } + } + ], + "test": { + "type": "Literal", + "start": 1842, + "end": 1852, + "loc": { + "start": { + "line": 62, + "column": 45 + }, + "end": { + "line": 62, + "column": 55 + } + }, + "value": "location", + "rawValue": "location", + "raw": "'location'" + } + }, + { + "type": "SwitchCase", + "start": 2098, + "end": 2785, + "loc": { + "start": { + "line": 66, + "column": 40 + }, + "end": { + "line": 75, + "column": 45 + } + }, + "consequent": [ + { + "type": "ReturnStatement", + "start": 2155, + "end": 2785, + "loc": { + "start": { + "line": 67, + "column": 44 + }, + "end": { + "line": 75, + "column": 45 + } + }, + "argument": { + "type": "JSXElement", + "start": 2212, + "end": 2739, + "loc": { + "start": { + "line": 68, + "column": 48 + }, + "end": { + "line": 74, + "column": 53 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2212, + "end": 2349, + "loc": { + "start": { + "line": 68, + "column": 48 + }, + "end": { + "line": 69, + "column": 97 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2216, + "end": 2251, + "loc": { + "start": { + "line": 68, + "column": 52 + }, + "end": { + "line": 68, + "column": 87 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2216, + "end": 2219, + "loc": { + "start": { + "line": 68, + "column": 52 + }, + "end": { + "line": 68, + "column": 55 + } + }, + "name": "key" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2220, + "end": 2251, + "loc": { + "start": { + "line": 68, + "column": 56 + }, + "end": { + "line": 68, + "column": 87 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 2221, + "end": 2250, + "loc": { + "start": { + "line": 68, + "column": 57 + }, + "end": { + "line": 68, + "column": 86 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 2236, + "end": 2248, + "loc": { + "start": { + "line": 68, + "column": 72 + }, + "end": { + "line": 68, + "column": 84 + } + }, + "object": { + "type": "MemberExpression", + "start": 2236, + "end": 2242, + "loc": { + "start": { + "line": 68, + "column": 72 + }, + "end": { + "line": 68, + "column": 78 + } + }, + "object": { + "type": "Identifier", + "start": 2236, + "end": 2237, + "loc": { + "start": { + "line": 68, + "column": 72 + }, + "end": { + "line": 68, + "column": 73 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 2238, + "end": 2242, + "loc": { + "start": { + "line": 68, + "column": 74 + }, + "end": { + "line": 68, + "column": 78 + } + }, + "name": "word" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2243, + "end": 2248, + "loc": { + "start": { + "line": 68, + "column": 79 + }, + "end": { + "line": 68, + "column": 84 + } + }, + "name": "email" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 2222, + "end": 2234, + "loc": { + "start": { + "line": 68, + "column": 58 + }, + "end": { + "line": 68, + "column": 70 + } + }, + "value": { + "raw": "result-user-", + "cooked": "result-user-" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 2249, + "end": 2249, + "loc": { + "start": { + "line": 68, + "column": 85 + }, + "end": { + "line": 68, + "column": 85 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + }, + { + "type": "JSXAttribute", + "start": 2304, + "end": 2348, + "loc": { + "start": { + "line": 69, + "column": 52 + }, + "end": { + "line": 69, + "column": 96 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2304, + "end": 2311, + "loc": { + "start": { + "line": 69, + "column": 52 + }, + "end": { + "line": 69, + "column": 59 + } + }, + "name": "onClick" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2312, + "end": 2348, + "loc": { + "start": { + "line": 69, + "column": 60 + }, + "end": { + "line": 69, + "column": 96 + } + }, + "expression": { + "type": "ArrowFunctionExpression", + "start": 2313, + "end": 2347, + "loc": { + "start": { + "line": 69, + "column": 61 + }, + "end": { + "line": 69, + "column": 95 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2314, + "end": 2315, + "loc": { + "start": { + "line": 69, + "column": 62 + }, + "end": { + "line": 69, + "column": 63 + } + }, + "name": "e" + } + ], + "body": { + "type": "CallExpression", + "start": 2320, + "end": 2347, + "loc": { + "start": { + "line": 69, + "column": 68 + }, + "end": { + "line": 69, + "column": 95 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2320, + "end": 2338, + "loc": { + "start": { + "line": 69, + "column": 68 + }, + "end": { + "line": 69, + "column": 86 + } + }, + "object": { + "type": "MemberExpression", + "start": 2320, + "end": 2330, + "loc": { + "start": { + "line": 69, + "column": 68 + }, + "end": { + "line": 69, + "column": 78 + } + }, + "object": { + "type": "ThisExpression", + "start": 2320, + "end": 2324, + "loc": { + "start": { + "line": 69, + "column": 68 + }, + "end": { + "line": 69, + "column": 72 + } + } + }, + "property": { + "type": "Identifier", + "start": 2325, + "end": 2330, + "loc": { + "start": { + "line": 69, + "column": 73 + }, + "end": { + "line": 69, + "column": 78 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2331, + "end": 2338, + "loc": { + "start": { + "line": 69, + "column": 79 + }, + "end": { + "line": 69, + "column": 86 + } + }, + "name": "onClick" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 2339, + "end": 2340, + "loc": { + "start": { + "line": 69, + "column": 87 + }, + "end": { + "line": 69, + "column": 88 + } + }, + "name": "e" + }, + { + "type": "Identifier", + "start": 2342, + "end": 2343, + "loc": { + "start": { + "line": 69, + "column": 90 + }, + "end": { + "line": 69, + "column": 91 + } + }, + "name": "i" + }, + { + "type": "Identifier", + "start": 2345, + "end": 2346, + "loc": { + "start": { + "line": 69, + "column": 93 + }, + "end": { + "line": 69, + "column": 94 + } + }, + "name": "r" + } + ] + } + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2213, + "end": 2215, + "loc": { + "start": { + "line": 68, + "column": 49 + }, + "end": { + "line": 68, + "column": 51 + } + }, + "name": "li" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2734, + "end": 2739, + "loc": { + "start": { + "line": 74, + "column": 48 + }, + "end": { + "line": 74, + "column": 53 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2736, + "end": 2738, + "loc": { + "start": { + "line": 74, + "column": 50 + }, + "end": { + "line": 74, + "column": 52 + } + }, + "name": "li" + } + }, + "children": [ + { + "type": "Literal", + "start": 2349, + "end": 2402, + "loc": { + "start": { + "line": 69, + "column": 97 + }, + "end": { + "line": 70, + "column": 52 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 2402, + "end": 2685, + "loc": { + "start": { + "line": 70, + "column": 52 + }, + "end": { + "line": 73, + "column": 58 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2402, + "end": 2444, + "loc": { + "start": { + "line": 70, + "column": 52 + }, + "end": { + "line": 70, + "column": 94 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2407, + "end": 2443, + "loc": { + "start": { + "line": 70, + "column": 57 + }, + "end": { + "line": 70, + "column": 93 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2407, + "end": 2416, + "loc": { + "start": { + "line": 70, + "column": 57 + }, + "end": { + "line": 70, + "column": 66 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 2417, + "end": 2443, + "loc": { + "start": { + "line": 70, + "column": 67 + }, + "end": { + "line": 70, + "column": 93 + } + }, + "value": "result-inner result-user", + "rawValue": null, + "raw": "\"result-inner result-user\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2403, + "end": 2406, + "loc": { + "start": { + "line": 70, + "column": 53 + }, + "end": { + "line": 70, + "column": 56 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2679, + "end": 2685, + "loc": { + "start": { + "line": 73, + "column": 52 + }, + "end": { + "line": 73, + "column": 58 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2681, + "end": 2684, + "loc": { + "start": { + "line": 73, + "column": 54 + }, + "end": { + "line": 73, + "column": 57 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 2444, + "end": 2501, + "loc": { + "start": { + "line": 70, + "column": 94 + }, + "end": { + "line": 71, + "column": 56 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 2501, + "end": 2543, + "loc": { + "start": { + "line": 71, + "column": 56 + }, + "end": { + "line": 71, + "column": 98 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2501, + "end": 2543, + "loc": { + "start": { + "line": 71, + "column": 56 + }, + "end": { + "line": 71, + "column": 98 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2509, + "end": 2529, + "loc": { + "start": { + "line": 71, + "column": 64 + }, + "end": { + "line": 71, + "column": 84 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2509, + "end": 2514, + "loc": { + "start": { + "line": 71, + "column": 64 + }, + "end": { + "line": 71, + "column": 69 + } + }, + "name": "email" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2515, + "end": 2529, + "loc": { + "start": { + "line": 71, + "column": 70 + }, + "end": { + "line": 71, + "column": 84 + } + }, + "expression": { + "type": "MemberExpression", + "start": 2516, + "end": 2528, + "loc": { + "start": { + "line": 71, + "column": 71 + }, + "end": { + "line": 71, + "column": 83 + } + }, + "object": { + "type": "MemberExpression", + "start": 2516, + "end": 2522, + "loc": { + "start": { + "line": 71, + "column": 71 + }, + "end": { + "line": 71, + "column": 77 + } + }, + "object": { + "type": "Identifier", + "start": 2516, + "end": 2517, + "loc": { + "start": { + "line": 71, + "column": 71 + }, + "end": { + "line": 71, + "column": 72 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 2518, + "end": 2522, + "loc": { + "start": { + "line": 71, + "column": 73 + }, + "end": { + "line": 71, + "column": 77 + } + }, + "name": "word" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2523, + "end": 2528, + "loc": { + "start": { + "line": 71, + "column": 78 + }, + "end": { + "line": 71, + "column": 83 + } + }, + "name": "email" + }, + "computed": false + } + } + }, + { + "type": "JSXAttribute", + "start": 2530, + "end": 2541, + "loc": { + "start": { + "line": 71, + "column": 85 + }, + "end": { + "line": 71, + "column": 96 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2530, + "end": 2536, + "loc": { + "start": { + "line": 71, + "column": 85 + }, + "end": { + "line": 71, + "column": 91 + } + }, + "name": "height" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2537, + "end": 2541, + "loc": { + "start": { + "line": 71, + "column": 92 + }, + "end": { + "line": 71, + "column": 96 + } + }, + "expression": { + "type": "Literal", + "start": 2538, + "end": 2540, + "loc": { + "start": { + "line": 71, + "column": 93 + }, + "end": { + "line": 71, + "column": 95 + } + }, + "value": 50, + "rawValue": 50, + "raw": "50" + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2502, + "end": 2508, + "loc": { + "start": { + "line": 71, + "column": 57 + }, + "end": { + "line": 71, + "column": 63 + } + }, + "name": "Avatar" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 2543, + "end": 2600, + "loc": { + "start": { + "line": 71, + "column": 98 + }, + "end": { + "line": 72, + "column": 56 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 2600, + "end": 2626, + "loc": { + "start": { + "line": 72, + "column": 56 + }, + "end": { + "line": 72, + "column": 82 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2600, + "end": 2606, + "loc": { + "start": { + "line": 72, + "column": 56 + }, + "end": { + "line": 72, + "column": 62 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 2601, + "end": 2605, + "loc": { + "start": { + "line": 72, + "column": 57 + }, + "end": { + "line": 72, + "column": 61 + } + }, + "name": "span" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2619, + "end": 2626, + "loc": { + "start": { + "line": 72, + "column": 75 + }, + "end": { + "line": 72, + "column": 82 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2621, + "end": 2625, + "loc": { + "start": { + "line": 72, + "column": 77 + }, + "end": { + "line": 72, + "column": 81 + } + }, + "name": "span" + } + }, + "children": [ + { + "type": "JSXExpressionContainer", + "start": 2606, + "end": 2619, + "loc": { + "start": { + "line": 72, + "column": 62 + }, + "end": { + "line": 72, + "column": 75 + } + }, + "expression": { + "type": "MemberExpression", + "start": 2607, + "end": 2618, + "loc": { + "start": { + "line": 72, + "column": 63 + }, + "end": { + "line": 72, + "column": 74 + } + }, + "object": { + "type": "MemberExpression", + "start": 2607, + "end": 2613, + "loc": { + "start": { + "line": 72, + "column": 63 + }, + "end": { + "line": 72, + "column": 69 + } + }, + "object": { + "type": "Identifier", + "start": 2607, + "end": 2608, + "loc": { + "start": { + "line": 72, + "column": 63 + }, + "end": { + "line": 72, + "column": 64 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 2609, + "end": 2613, + "loc": { + "start": { + "line": 72, + "column": 65 + }, + "end": { + "line": 72, + "column": 69 + } + }, + "name": "word" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2614, + "end": 2618, + "loc": { + "start": { + "line": 72, + "column": 70 + }, + "end": { + "line": 72, + "column": 74 + } + }, + "name": "name" + }, + "computed": false + } + } + ] + }, + { + "type": "Literal", + "start": 2626, + "end": 2679, + "loc": { + "start": { + "line": 72, + "column": 82 + }, + "end": { + "line": 73, + "column": 52 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 2685, + "end": 2734, + "loc": { + "start": { + "line": 73, + "column": 58 + }, + "end": { + "line": 74, + "column": 48 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ], + "test": { + "type": "Literal", + "start": 2103, + "end": 2109, + "loc": { + "start": { + "line": 66, + "column": 45 + }, + "end": { + "line": 66, + "column": 51 + } + }, + "value": "user", + "rawValue": "user", + "raw": "'user'" + } + } + ] + } + ] + } + } + ] + } + }, + { + "type": "Literal", + "start": 2860, + "end": 2885, + "loc": { + "start": { + "line": 78, + "column": 35 + }, + "end": { + "line": 79, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 2890, + "end": 2911, + "loc": { + "start": { + "line": 79, + "column": 29 + }, + "end": { + "line": 80, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 2917, + "end": 2934, + "loc": { + "start": { + "line": 80, + "column": 26 + }, + "end": { + "line": 81, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 2940, + "end": 2958, + "loc": { + "start": { + "line": 81, + "column": 22 + }, + "end": { + "line": 83, + "column": 16 + } + }, + "value": "\n\n ", + "rawValue": null, + "raw": "\n\n " + }, + { + "type": "JSXElement", + "start": 2958, + "end": 3812, + "loc": { + "start": { + "line": 83, + "column": 16 + }, + "end": { + "line": 99, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2958, + "end": 2996, + "loc": { + "start": { + "line": 83, + "column": 16 + }, + "end": { + "line": 83, + "column": 54 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2963, + "end": 2981, + "loc": { + "start": { + "line": 83, + "column": 21 + }, + "end": { + "line": 83, + "column": 39 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2963, + "end": 2966, + "loc": { + "start": { + "line": 83, + "column": 21 + }, + "end": { + "line": 83, + "column": 24 + } + }, + "name": "key" + }, + "value": { + "type": "Literal", + "start": 2967, + "end": 2981, + "loc": { + "start": { + "line": 83, + "column": 25 + }, + "end": { + "line": 83, + "column": 39 + } + }, + "value": "filter-users", + "rawValue": null, + "raw": "\"filter-users\"" + } + }, + { + "type": "JSXAttribute", + "start": 2982, + "end": 2995, + "loc": { + "start": { + "line": 83, + "column": 40 + }, + "end": { + "line": 83, + "column": 53 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2982, + "end": 2987, + "loc": { + "start": { + "line": 83, + "column": 40 + }, + "end": { + "line": 83, + "column": 45 + } + }, + "name": "label" + }, + "value": { + "type": "Literal", + "start": 2988, + "end": 2995, + "loc": { + "start": { + "line": 83, + "column": 46 + }, + "end": { + "line": 83, + "column": 53 + } + }, + "value": "Users", + "rawValue": null, + "raw": "\"Users\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2959, + "end": 2962, + "loc": { + "start": { + "line": 83, + "column": 17 + }, + "end": { + "line": 83, + "column": 20 + } + }, + "name": "Tab" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3806, + "end": 3812, + "loc": { + "start": { + "line": 99, + "column": 16 + }, + "end": { + "line": 99, + "column": 22 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3808, + "end": 3811, + "loc": { + "start": { + "line": 99, + "column": 18 + }, + "end": { + "line": 99, + "column": 21 + } + }, + "name": "Tab" + } + }, + "children": [ + { + "type": "Literal", + "start": 2996, + "end": 3017, + "loc": { + "start": { + "line": 83, + "column": 54 + }, + "end": { + "line": 84, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 3017, + "end": 3789, + "loc": { + "start": { + "line": 84, + "column": 20 + }, + "end": { + "line": 98, + "column": 26 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3017, + "end": 3042, + "loc": { + "start": { + "line": 84, + "column": 20 + }, + "end": { + "line": 84, + "column": 45 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3022, + "end": 3041, + "loc": { + "start": { + "line": 84, + "column": 25 + }, + "end": { + "line": 84, + "column": 44 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3022, + "end": 3031, + "loc": { + "start": { + "line": 84, + "column": 25 + }, + "end": { + "line": 84, + "column": 34 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 3032, + "end": 3041, + "loc": { + "start": { + "line": 84, + "column": 35 + }, + "end": { + "line": 84, + "column": 44 + } + }, + "value": "results", + "rawValue": null, + "raw": "\"results\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3018, + "end": 3021, + "loc": { + "start": { + "line": 84, + "column": 21 + }, + "end": { + "line": 84, + "column": 24 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3783, + "end": 3789, + "loc": { + "start": { + "line": 98, + "column": 20 + }, + "end": { + "line": 98, + "column": 26 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3785, + "end": 3788, + "loc": { + "start": { + "line": 98, + "column": 22 + }, + "end": { + "line": 98, + "column": 25 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 3042, + "end": 3067, + "loc": { + "start": { + "line": 84, + "column": 45 + }, + "end": { + "line": 85, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 3067, + "end": 3762, + "loc": { + "start": { + "line": 85, + "column": 24 + }, + "end": { + "line": 97, + "column": 29 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3067, + "end": 3071, + "loc": { + "start": { + "line": 85, + "column": 24 + }, + "end": { + "line": 85, + "column": 28 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 3068, + "end": 3070, + "loc": { + "start": { + "line": 85, + "column": 25 + }, + "end": { + "line": 85, + "column": 27 + } + }, + "name": "ul" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3757, + "end": 3762, + "loc": { + "start": { + "line": 97, + "column": 24 + }, + "end": { + "line": 97, + "column": 29 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3759, + "end": 3761, + "loc": { + "start": { + "line": 97, + "column": 26 + }, + "end": { + "line": 97, + "column": 28 + } + }, + "name": "ul" + } + }, + "children": [ + { + "type": "Literal", + "start": 3071, + "end": 3100, + "loc": { + "start": { + "line": 85, + "column": 28 + }, + "end": { + "line": 86, + "column": 28 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 3100, + "end": 3732, + "loc": { + "start": { + "line": 86, + "column": 28 + }, + "end": { + "line": 96, + "column": 30 + } + }, + "expression": { + "type": "CallExpression", + "start": 3101, + "end": 3731, + "loc": { + "start": { + "line": 86, + "column": 29 + }, + "end": { + "line": 96, + "column": 29 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3101, + "end": 3119, + "loc": { + "start": { + "line": 86, + "column": 29 + }, + "end": { + "line": 86, + "column": 47 + } + }, + "object": { + "type": "ThisExpression", + "start": 3101, + "end": 3105, + "loc": { + "start": { + "line": 86, + "column": 29 + }, + "end": { + "line": 86, + "column": 33 + } + } + }, + "property": { + "type": "Identifier", + "start": 3106, + "end": 3119, + "loc": { + "start": { + "line": 86, + "column": 34 + }, + "end": { + "line": 86, + "column": 47 + } + }, + "name": "renderResults" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 3153, + "end": 3174, + "loc": { + "start": { + "line": 87, + "column": 32 + }, + "end": { + "line": 87, + "column": 53 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 3153, + "end": 3154, + "loc": { + "start": { + "line": 87, + "column": 32 + }, + "end": { + "line": 87, + "column": 33 + } + }, + "name": "r" + } + ], + "body": { + "type": "BinaryExpression", + "start": 3158, + "end": 3174, + "loc": { + "start": { + "line": 87, + "column": 37 + }, + "end": { + "line": 87, + "column": 53 + } + }, + "left": { + "type": "MemberExpression", + "start": 3158, + "end": 3164, + "loc": { + "start": { + "line": 87, + "column": 37 + }, + "end": { + "line": 87, + "column": 43 + } + }, + "object": { + "type": "Identifier", + "start": 3158, + "end": 3159, + "loc": { + "start": { + "line": 87, + "column": 37 + }, + "end": { + "line": 87, + "column": 38 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 3160, + "end": 3164, + "loc": { + "start": { + "line": 87, + "column": 39 + }, + "end": { + "line": 87, + "column": 43 + } + }, + "name": "type" + }, + "computed": false + }, + "operator": "==", + "right": { + "type": "Literal", + "start": 3168, + "end": 3174, + "loc": { + "start": { + "line": 87, + "column": 47 + }, + "end": { + "line": 87, + "column": 53 + } + }, + "value": "user", + "rawValue": "user", + "raw": "'user'" + } + } + }, + { + "type": "ArrowFunctionExpression", + "start": 3208, + "end": 3701, + "loc": { + "start": { + "line": 88, + "column": 32 + }, + "end": { + "line": 95, + "column": 33 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 3209, + "end": 3210, + "loc": { + "start": { + "line": 88, + "column": 33 + }, + "end": { + "line": 88, + "column": 34 + } + }, + "name": "r" + }, + { + "type": "Identifier", + "start": 3212, + "end": 3213, + "loc": { + "start": { + "line": 88, + "column": 36 + }, + "end": { + "line": 88, + "column": 37 + } + }, + "name": "i" + } + ], + "body": { + "type": "JSXElement", + "start": 3256, + "end": 3667, + "loc": { + "start": { + "line": 89, + "column": 36 + }, + "end": { + "line": 94, + "column": 41 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3256, + "end": 3381, + "loc": { + "start": { + "line": 89, + "column": 36 + }, + "end": { + "line": 90, + "column": 85 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3260, + "end": 3295, + "loc": { + "start": { + "line": 89, + "column": 40 + }, + "end": { + "line": 89, + "column": 75 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3260, + "end": 3263, + "loc": { + "start": { + "line": 89, + "column": 40 + }, + "end": { + "line": 89, + "column": 43 + } + }, + "name": "key" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 3264, + "end": 3295, + "loc": { + "start": { + "line": 89, + "column": 44 + }, + "end": { + "line": 89, + "column": 75 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 3265, + "end": 3294, + "loc": { + "start": { + "line": 89, + "column": 45 + }, + "end": { + "line": 89, + "column": 74 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 3280, + "end": 3292, + "loc": { + "start": { + "line": 89, + "column": 60 + }, + "end": { + "line": 89, + "column": 72 + } + }, + "object": { + "type": "MemberExpression", + "start": 3280, + "end": 3286, + "loc": { + "start": { + "line": 89, + "column": 60 + }, + "end": { + "line": 89, + "column": 66 + } + }, + "object": { + "type": "Identifier", + "start": 3280, + "end": 3281, + "loc": { + "start": { + "line": 89, + "column": 60 + }, + "end": { + "line": 89, + "column": 61 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 3282, + "end": 3286, + "loc": { + "start": { + "line": 89, + "column": 62 + }, + "end": { + "line": 89, + "column": 66 + } + }, + "name": "word" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3287, + "end": 3292, + "loc": { + "start": { + "line": 89, + "column": 67 + }, + "end": { + "line": 89, + "column": 72 + } + }, + "name": "email" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 3266, + "end": 3278, + "loc": { + "start": { + "line": 89, + "column": 46 + }, + "end": { + "line": 89, + "column": 58 + } + }, + "value": { + "raw": "result-user-", + "cooked": "result-user-" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 3293, + "end": 3293, + "loc": { + "start": { + "line": 89, + "column": 73 + }, + "end": { + "line": 89, + "column": 73 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + }, + { + "type": "JSXAttribute", + "start": 3336, + "end": 3380, + "loc": { + "start": { + "line": 90, + "column": 40 + }, + "end": { + "line": 90, + "column": 84 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3336, + "end": 3343, + "loc": { + "start": { + "line": 90, + "column": 40 + }, + "end": { + "line": 90, + "column": 47 + } + }, + "name": "onClick" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 3344, + "end": 3380, + "loc": { + "start": { + "line": 90, + "column": 48 + }, + "end": { + "line": 90, + "column": 84 + } + }, + "expression": { + "type": "ArrowFunctionExpression", + "start": 3345, + "end": 3379, + "loc": { + "start": { + "line": 90, + "column": 49 + }, + "end": { + "line": 90, + "column": 83 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 3346, + "end": 3347, + "loc": { + "start": { + "line": 90, + "column": 50 + }, + "end": { + "line": 90, + "column": 51 + } + }, + "name": "e" + } + ], + "body": { + "type": "CallExpression", + "start": 3352, + "end": 3379, + "loc": { + "start": { + "line": 90, + "column": 56 + }, + "end": { + "line": 90, + "column": 83 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3352, + "end": 3370, + "loc": { + "start": { + "line": 90, + "column": 56 + }, + "end": { + "line": 90, + "column": 74 + } + }, + "object": { + "type": "MemberExpression", + "start": 3352, + "end": 3362, + "loc": { + "start": { + "line": 90, + "column": 56 + }, + "end": { + "line": 90, + "column": 66 + } + }, + "object": { + "type": "ThisExpression", + "start": 3352, + "end": 3356, + "loc": { + "start": { + "line": 90, + "column": 56 + }, + "end": { + "line": 90, + "column": 60 + } + } + }, + "property": { + "type": "Identifier", + "start": 3357, + "end": 3362, + "loc": { + "start": { + "line": 90, + "column": 61 + }, + "end": { + "line": 90, + "column": 66 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3363, + "end": 3370, + "loc": { + "start": { + "line": 90, + "column": 67 + }, + "end": { + "line": 90, + "column": 74 + } + }, + "name": "onClick" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 3371, + "end": 3372, + "loc": { + "start": { + "line": 90, + "column": 75 + }, + "end": { + "line": 90, + "column": 76 + } + }, + "name": "e" + }, + { + "type": "Identifier", + "start": 3374, + "end": 3375, + "loc": { + "start": { + "line": 90, + "column": 78 + }, + "end": { + "line": 90, + "column": 79 + } + }, + "name": "i" + }, + { + "type": "Identifier", + "start": 3377, + "end": 3378, + "loc": { + "start": { + "line": 90, + "column": 81 + }, + "end": { + "line": 90, + "column": 82 + } + }, + "name": "r" + } + ] + } + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3257, + "end": 3259, + "loc": { + "start": { + "line": 89, + "column": 37 + }, + "end": { + "line": 89, + "column": 39 + } + }, + "name": "li" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3662, + "end": 3667, + "loc": { + "start": { + "line": 94, + "column": 36 + }, + "end": { + "line": 94, + "column": 41 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3664, + "end": 3666, + "loc": { + "start": { + "line": 94, + "column": 38 + }, + "end": { + "line": 94, + "column": 40 + } + }, + "name": "li" + } + }, + "children": [ + { + "type": "Literal", + "start": 3381, + "end": 3422, + "loc": { + "start": { + "line": 90, + "column": 85 + }, + "end": { + "line": 91, + "column": 40 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 3422, + "end": 3625, + "loc": { + "start": { + "line": 91, + "column": 40 + }, + "end": { + "line": 93, + "column": 46 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3422, + "end": 3464, + "loc": { + "start": { + "line": 91, + "column": 40 + }, + "end": { + "line": 91, + "column": 82 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3427, + "end": 3463, + "loc": { + "start": { + "line": 91, + "column": 45 + }, + "end": { + "line": 91, + "column": 81 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3427, + "end": 3436, + "loc": { + "start": { + "line": 91, + "column": 45 + }, + "end": { + "line": 91, + "column": 54 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 3437, + "end": 3463, + "loc": { + "start": { + "line": 91, + "column": 55 + }, + "end": { + "line": 91, + "column": 81 + } + }, + "value": "result-inner result-user", + "rawValue": null, + "raw": "\"result-inner result-user\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3423, + "end": 3426, + "loc": { + "start": { + "line": 91, + "column": 41 + }, + "end": { + "line": 91, + "column": 44 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3619, + "end": 3625, + "loc": { + "start": { + "line": 93, + "column": 40 + }, + "end": { + "line": 93, + "column": 46 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3621, + "end": 3624, + "loc": { + "start": { + "line": 93, + "column": 42 + }, + "end": { + "line": 93, + "column": 45 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 3464, + "end": 3509, + "loc": { + "start": { + "line": 91, + "column": 82 + }, + "end": { + "line": 92, + "column": 44 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 3509, + "end": 3551, + "loc": { + "start": { + "line": 92, + "column": 44 + }, + "end": { + "line": 92, + "column": 86 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3509, + "end": 3551, + "loc": { + "start": { + "line": 92, + "column": 44 + }, + "end": { + "line": 92, + "column": 86 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3517, + "end": 3537, + "loc": { + "start": { + "line": 92, + "column": 52 + }, + "end": { + "line": 92, + "column": 72 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3517, + "end": 3522, + "loc": { + "start": { + "line": 92, + "column": 52 + }, + "end": { + "line": 92, + "column": 57 + } + }, + "name": "email" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 3523, + "end": 3537, + "loc": { + "start": { + "line": 92, + "column": 58 + }, + "end": { + "line": 92, + "column": 72 + } + }, + "expression": { + "type": "MemberExpression", + "start": 3524, + "end": 3536, + "loc": { + "start": { + "line": 92, + "column": 59 + }, + "end": { + "line": 92, + "column": 71 + } + }, + "object": { + "type": "MemberExpression", + "start": 3524, + "end": 3530, + "loc": { + "start": { + "line": 92, + "column": 59 + }, + "end": { + "line": 92, + "column": 65 + } + }, + "object": { + "type": "Identifier", + "start": 3524, + "end": 3525, + "loc": { + "start": { + "line": 92, + "column": 59 + }, + "end": { + "line": 92, + "column": 60 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 3526, + "end": 3530, + "loc": { + "start": { + "line": 92, + "column": 61 + }, + "end": { + "line": 92, + "column": 65 + } + }, + "name": "word" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3531, + "end": 3536, + "loc": { + "start": { + "line": 92, + "column": 66 + }, + "end": { + "line": 92, + "column": 71 + } + }, + "name": "email" + }, + "computed": false + } + } + }, + { + "type": "JSXAttribute", + "start": 3538, + "end": 3549, + "loc": { + "start": { + "line": 92, + "column": 73 + }, + "end": { + "line": 92, + "column": 84 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3538, + "end": 3544, + "loc": { + "start": { + "line": 92, + "column": 73 + }, + "end": { + "line": 92, + "column": 79 + } + }, + "name": "height" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 3545, + "end": 3549, + "loc": { + "start": { + "line": 92, + "column": 80 + }, + "end": { + "line": 92, + "column": 84 + } + }, + "expression": { + "type": "Literal", + "start": 3546, + "end": 3548, + "loc": { + "start": { + "line": 92, + "column": 81 + }, + "end": { + "line": 92, + "column": 83 + } + }, + "value": 50, + "rawValue": 50, + "raw": "50" + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3510, + "end": 3516, + "loc": { + "start": { + "line": 92, + "column": 45 + }, + "end": { + "line": 92, + "column": 51 + } + }, + "name": "Avatar" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 3551, + "end": 3552, + "loc": { + "start": { + "line": 92, + "column": 86 + }, + "end": { + "line": 92, + "column": 87 + } + }, + "value": " ", + "rawValue": null, + "raw": " " + }, + { + "type": "JSXElement", + "start": 3552, + "end": 3578, + "loc": { + "start": { + "line": 92, + "column": 87 + }, + "end": { + "line": 92, + "column": 113 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3552, + "end": 3558, + "loc": { + "start": { + "line": 92, + "column": 87 + }, + "end": { + "line": 92, + "column": 93 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 3553, + "end": 3557, + "loc": { + "start": { + "line": 92, + "column": 88 + }, + "end": { + "line": 92, + "column": 92 + } + }, + "name": "span" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3571, + "end": 3578, + "loc": { + "start": { + "line": 92, + "column": 106 + }, + "end": { + "line": 92, + "column": 113 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3573, + "end": 3577, + "loc": { + "start": { + "line": 92, + "column": 108 + }, + "end": { + "line": 92, + "column": 112 + } + }, + "name": "span" + } + }, + "children": [ + { + "type": "JSXExpressionContainer", + "start": 3558, + "end": 3571, + "loc": { + "start": { + "line": 92, + "column": 93 + }, + "end": { + "line": 92, + "column": 106 + } + }, + "expression": { + "type": "MemberExpression", + "start": 3559, + "end": 3570, + "loc": { + "start": { + "line": 92, + "column": 94 + }, + "end": { + "line": 92, + "column": 105 + } + }, + "object": { + "type": "MemberExpression", + "start": 3559, + "end": 3565, + "loc": { + "start": { + "line": 92, + "column": 94 + }, + "end": { + "line": 92, + "column": 100 + } + }, + "object": { + "type": "Identifier", + "start": 3559, + "end": 3560, + "loc": { + "start": { + "line": 92, + "column": 94 + }, + "end": { + "line": 92, + "column": 95 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 3561, + "end": 3565, + "loc": { + "start": { + "line": 92, + "column": 96 + }, + "end": { + "line": 92, + "column": 100 + } + }, + "name": "word" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3566, + "end": 3570, + "loc": { + "start": { + "line": 92, + "column": 101 + }, + "end": { + "line": 92, + "column": 105 + } + }, + "name": "name" + }, + "computed": false + } + } + ] + }, + { + "type": "Literal", + "start": 3578, + "end": 3619, + "loc": { + "start": { + "line": 92, + "column": 113 + }, + "end": { + "line": 93, + "column": 40 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 3625, + "end": 3662, + "loc": { + "start": { + "line": 93, + "column": 46 + }, + "end": { + "line": 94, + "column": 36 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + { + "type": "Literal", + "start": 3732, + "end": 3757, + "loc": { + "start": { + "line": 96, + "column": 30 + }, + "end": { + "line": 97, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 3762, + "end": 3783, + "loc": { + "start": { + "line": 97, + "column": 29 + }, + "end": { + "line": 98, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 3789, + "end": 3806, + "loc": { + "start": { + "line": 98, + "column": 26 + }, + "end": { + "line": 99, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 3812, + "end": 3830, + "loc": { + "start": { + "line": 99, + "column": 22 + }, + "end": { + "line": 101, + "column": 16 + } + }, + "value": "\n\n ", + "rawValue": null, + "raw": "\n\n " + }, + { + "type": "JSXElement", + "start": 3830, + "end": 4391, + "loc": { + "start": { + "line": 101, + "column": 16 + }, + "end": { + "line": 112, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3830, + "end": 3875, + "loc": { + "start": { + "line": 101, + "column": 16 + }, + "end": { + "line": 101, + "column": 61 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3835, + "end": 3857, + "loc": { + "start": { + "line": 101, + "column": 21 + }, + "end": { + "line": 101, + "column": 43 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3835, + "end": 3838, + "loc": { + "start": { + "line": 101, + "column": 21 + }, + "end": { + "line": 101, + "column": 24 + } + }, + "name": "key" + }, + "value": { + "type": "Literal", + "start": 3839, + "end": 3857, + "loc": { + "start": { + "line": 101, + "column": 25 + }, + "end": { + "line": 101, + "column": 43 + } + }, + "value": "filter-locations", + "rawValue": null, + "raw": "\"filter-locations\"" + } + }, + { + "type": "JSXAttribute", + "start": 3858, + "end": 3874, + "loc": { + "start": { + "line": 101, + "column": 44 + }, + "end": { + "line": 101, + "column": 60 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3858, + "end": 3863, + "loc": { + "start": { + "line": 101, + "column": 44 + }, + "end": { + "line": 101, + "column": 49 + } + }, + "name": "label" + }, + "value": { + "type": "Literal", + "start": 3864, + "end": 3874, + "loc": { + "start": { + "line": 101, + "column": 50 + }, + "end": { + "line": 101, + "column": 60 + } + }, + "value": "Location", + "rawValue": null, + "raw": "\"Location\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3831, + "end": 3834, + "loc": { + "start": { + "line": 101, + "column": 17 + }, + "end": { + "line": 101, + "column": 20 + } + }, + "name": "Tab" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 4385, + "end": 4391, + "loc": { + "start": { + "line": 112, + "column": 16 + }, + "end": { + "line": 112, + "column": 22 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4387, + "end": 4390, + "loc": { + "start": { + "line": 112, + "column": 18 + }, + "end": { + "line": 112, + "column": 21 + } + }, + "name": "Tab" + } + }, + "children": [ + { + "type": "Literal", + "start": 3875, + "end": 3896, + "loc": { + "start": { + "line": 101, + "column": 61 + }, + "end": { + "line": 102, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 3896, + "end": 4368, + "loc": { + "start": { + "line": 102, + "column": 20 + }, + "end": { + "line": 111, + "column": 26 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3896, + "end": 3921, + "loc": { + "start": { + "line": 102, + "column": 20 + }, + "end": { + "line": 102, + "column": 45 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3901, + "end": 3920, + "loc": { + "start": { + "line": 102, + "column": 25 + }, + "end": { + "line": 102, + "column": 44 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3901, + "end": 3910, + "loc": { + "start": { + "line": 102, + "column": 25 + }, + "end": { + "line": 102, + "column": 34 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 3911, + "end": 3920, + "loc": { + "start": { + "line": 102, + "column": 35 + }, + "end": { + "line": 102, + "column": 44 + } + }, + "value": "results", + "rawValue": null, + "raw": "\"results\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3897, + "end": 3900, + "loc": { + "start": { + "line": 102, + "column": 21 + }, + "end": { + "line": 102, + "column": 24 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 4362, + "end": 4368, + "loc": { + "start": { + "line": 111, + "column": 20 + }, + "end": { + "line": 111, + "column": 26 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4364, + "end": 4367, + "loc": { + "start": { + "line": 111, + "column": 22 + }, + "end": { + "line": 111, + "column": 25 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 3921, + "end": 3946, + "loc": { + "start": { + "line": 102, + "column": 45 + }, + "end": { + "line": 103, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 3946, + "end": 4341, + "loc": { + "start": { + "line": 103, + "column": 24 + }, + "end": { + "line": 110, + "column": 29 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3946, + "end": 3950, + "loc": { + "start": { + "line": 103, + "column": 24 + }, + "end": { + "line": 103, + "column": 28 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 3947, + "end": 3949, + "loc": { + "start": { + "line": 103, + "column": 25 + }, + "end": { + "line": 103, + "column": 27 + } + }, + "name": "ul" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 4336, + "end": 4341, + "loc": { + "start": { + "line": 110, + "column": 24 + }, + "end": { + "line": 110, + "column": 29 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4338, + "end": 4340, + "loc": { + "start": { + "line": 110, + "column": 26 + }, + "end": { + "line": 110, + "column": 28 + } + }, + "name": "ul" + } + }, + "children": [ + { + "type": "Literal", + "start": 3950, + "end": 3979, + "loc": { + "start": { + "line": 103, + "column": 28 + }, + "end": { + "line": 104, + "column": 28 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 3979, + "end": 4311, + "loc": { + "start": { + "line": 104, + "column": 28 + }, + "end": { + "line": 109, + "column": 35 + } + }, + "expression": { + "type": "CallExpression", + "start": 3980, + "end": 4310, + "loc": { + "start": { + "line": 104, + "column": 29 + }, + "end": { + "line": 109, + "column": 34 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3980, + "end": 3998, + "loc": { + "start": { + "line": 104, + "column": 29 + }, + "end": { + "line": 104, + "column": 47 + } + }, + "object": { + "type": "ThisExpression", + "start": 3980, + "end": 3984, + "loc": { + "start": { + "line": 104, + "column": 29 + }, + "end": { + "line": 104, + "column": 33 + } + } + }, + "property": { + "type": "Identifier", + "start": 3985, + "end": 3998, + "loc": { + "start": { + "line": 104, + "column": 34 + }, + "end": { + "line": 104, + "column": 47 + } + }, + "name": "renderResults" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 4032, + "end": 4057, + "loc": { + "start": { + "line": 105, + "column": 32 + }, + "end": { + "line": 105, + "column": 57 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 4032, + "end": 4033, + "loc": { + "start": { + "line": 105, + "column": 32 + }, + "end": { + "line": 105, + "column": 33 + } + }, + "name": "r" + } + ], + "body": { + "type": "BinaryExpression", + "start": 4037, + "end": 4057, + "loc": { + "start": { + "line": 105, + "column": 37 + }, + "end": { + "line": 105, + "column": 57 + } + }, + "left": { + "type": "MemberExpression", + "start": 4037, + "end": 4043, + "loc": { + "start": { + "line": 105, + "column": 37 + }, + "end": { + "line": 105, + "column": 43 + } + }, + "object": { + "type": "Identifier", + "start": 4037, + "end": 4038, + "loc": { + "start": { + "line": 105, + "column": 37 + }, + "end": { + "line": 105, + "column": 38 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 4039, + "end": 4043, + "loc": { + "start": { + "line": 105, + "column": 39 + }, + "end": { + "line": 105, + "column": 43 + } + }, + "name": "type" + }, + "computed": false + }, + "operator": "==", + "right": { + "type": "Literal", + "start": 4047, + "end": 4057, + "loc": { + "start": { + "line": 105, + "column": 47 + }, + "end": { + "line": 105, + "column": 57 + } + }, + "value": "location", + "rawValue": "location", + "raw": "'location'" + } + } + }, + { + "type": "ArrowFunctionExpression", + "start": 4091, + "end": 4309, + "loc": { + "start": { + "line": 106, + "column": 32 + }, + "end": { + "line": 109, + "column": 33 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 4092, + "end": 4093, + "loc": { + "start": { + "line": 106, + "column": 33 + }, + "end": { + "line": 106, + "column": 34 + } + }, + "name": "r" + }, + { + "type": "Identifier", + "start": 4095, + "end": 4096, + "loc": { + "start": { + "line": 106, + "column": 36 + }, + "end": { + "line": 106, + "column": 37 + } + }, + "name": "i" + } + ], + "body": { + "type": "JSXElement", + "start": 4139, + "end": 4275, + "loc": { + "start": { + "line": 107, + "column": 36 + }, + "end": { + "line": 108, + "column": 98 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 4139, + "end": 4262, + "loc": { + "start": { + "line": 107, + "column": 36 + }, + "end": { + "line": 108, + "column": 85 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 4143, + "end": 4176, + "loc": { + "start": { + "line": 107, + "column": 40 + }, + "end": { + "line": 107, + "column": 73 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4143, + "end": 4146, + "loc": { + "start": { + "line": 107, + "column": 40 + }, + "end": { + "line": 107, + "column": 43 + } + }, + "name": "key" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 4147, + "end": 4176, + "loc": { + "start": { + "line": 107, + "column": 44 + }, + "end": { + "line": 107, + "column": 73 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 4148, + "end": 4175, + "loc": { + "start": { + "line": 107, + "column": 45 + }, + "end": { + "line": 107, + "column": 72 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 4167, + "end": 4173, + "loc": { + "start": { + "line": 107, + "column": 64 + }, + "end": { + "line": 107, + "column": 70 + } + }, + "object": { + "type": "Identifier", + "start": 4167, + "end": 4168, + "loc": { + "start": { + "line": 107, + "column": 64 + }, + "end": { + "line": 107, + "column": 65 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 4169, + "end": 4173, + "loc": { + "start": { + "line": 107, + "column": 66 + }, + "end": { + "line": 107, + "column": 70 + } + }, + "name": "word" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 4149, + "end": 4165, + "loc": { + "start": { + "line": 107, + "column": 46 + }, + "end": { + "line": 107, + "column": 62 + } + }, + "value": { + "raw": "result-location-", + "cooked": "result-location-" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 4174, + "end": 4174, + "loc": { + "start": { + "line": 107, + "column": 71 + }, + "end": { + "line": 107, + "column": 71 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + }, + { + "type": "JSXAttribute", + "start": 4217, + "end": 4261, + "loc": { + "start": { + "line": 108, + "column": 40 + }, + "end": { + "line": 108, + "column": 84 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4217, + "end": 4224, + "loc": { + "start": { + "line": 108, + "column": 40 + }, + "end": { + "line": 108, + "column": 47 + } + }, + "name": "onClick" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 4225, + "end": 4261, + "loc": { + "start": { + "line": 108, + "column": 48 + }, + "end": { + "line": 108, + "column": 84 + } + }, + "expression": { + "type": "ArrowFunctionExpression", + "start": 4226, + "end": 4260, + "loc": { + "start": { + "line": 108, + "column": 49 + }, + "end": { + "line": 108, + "column": 83 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 4227, + "end": 4228, + "loc": { + "start": { + "line": 108, + "column": 50 + }, + "end": { + "line": 108, + "column": 51 + } + }, + "name": "e" + } + ], + "body": { + "type": "CallExpression", + "start": 4233, + "end": 4260, + "loc": { + "start": { + "line": 108, + "column": 56 + }, + "end": { + "line": 108, + "column": 83 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4233, + "end": 4251, + "loc": { + "start": { + "line": 108, + "column": 56 + }, + "end": { + "line": 108, + "column": 74 + } + }, + "object": { + "type": "MemberExpression", + "start": 4233, + "end": 4243, + "loc": { + "start": { + "line": 108, + "column": 56 + }, + "end": { + "line": 108, + "column": 66 + } + }, + "object": { + "type": "ThisExpression", + "start": 4233, + "end": 4237, + "loc": { + "start": { + "line": 108, + "column": 56 + }, + "end": { + "line": 108, + "column": 60 + } + } + }, + "property": { + "type": "Identifier", + "start": 4238, + "end": 4243, + "loc": { + "start": { + "line": 108, + "column": 61 + }, + "end": { + "line": 108, + "column": 66 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 4244, + "end": 4251, + "loc": { + "start": { + "line": 108, + "column": 67 + }, + "end": { + "line": 108, + "column": 74 + } + }, + "name": "onClick" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 4252, + "end": 4253, + "loc": { + "start": { + "line": 108, + "column": 75 + }, + "end": { + "line": 108, + "column": 76 + } + }, + "name": "e" + }, + { + "type": "Identifier", + "start": 4255, + "end": 4256, + "loc": { + "start": { + "line": 108, + "column": 78 + }, + "end": { + "line": 108, + "column": 79 + } + }, + "name": "i" + }, + { + "type": "Identifier", + "start": 4258, + "end": 4259, + "loc": { + "start": { + "line": 108, + "column": 81 + }, + "end": { + "line": 108, + "column": 82 + } + }, + "name": "r" + } + ] + } + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 4140, + "end": 4142, + "loc": { + "start": { + "line": 107, + "column": 37 + }, + "end": { + "line": 107, + "column": 39 + } + }, + "name": "li" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 4270, + "end": 4275, + "loc": { + "start": { + "line": 108, + "column": 93 + }, + "end": { + "line": 108, + "column": 98 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4272, + "end": 4274, + "loc": { + "start": { + "line": 108, + "column": 95 + }, + "end": { + "line": 108, + "column": 97 + } + }, + "name": "li" + } + }, + "children": [ + { + "type": "JSXExpressionContainer", + "start": 4262, + "end": 4270, + "loc": { + "start": { + "line": 108, + "column": 85 + }, + "end": { + "line": 108, + "column": 93 + } + }, + "expression": { + "type": "MemberExpression", + "start": 4263, + "end": 4269, + "loc": { + "start": { + "line": 108, + "column": 86 + }, + "end": { + "line": 108, + "column": 92 + } + }, + "object": { + "type": "Identifier", + "start": 4263, + "end": 4264, + "loc": { + "start": { + "line": 108, + "column": 86 + }, + "end": { + "line": 108, + "column": 87 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 4265, + "end": 4269, + "loc": { + "start": { + "line": 108, + "column": 88 + }, + "end": { + "line": 108, + "column": 92 + } + }, + "name": "word" + }, + "computed": false + } + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + { + "type": "Literal", + "start": 4311, + "end": 4336, + "loc": { + "start": { + "line": 109, + "column": 35 + }, + "end": { + "line": 110, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 4341, + "end": 4362, + "loc": { + "start": { + "line": 110, + "column": 29 + }, + "end": { + "line": 111, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 4368, + "end": 4385, + "loc": { + "start": { + "line": 111, + "column": 26 + }, + "end": { + "line": 112, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 4391, + "end": 4409, + "loc": { + "start": { + "line": 112, + "column": 22 + }, + "end": { + "line": 114, + "column": 16 + } + }, + "value": "\n\n ", + "rawValue": null, + "raw": "\n\n " + }, + { + "type": "JSXElement", + "start": 4409, + "end": 5236, + "loc": { + "start": { + "line": 114, + "column": 16 + }, + "end": { + "line": 129, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 4409, + "end": 4445, + "loc": { + "start": { + "line": 114, + "column": 16 + }, + "end": { + "line": 114, + "column": 52 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 4414, + "end": 4431, + "loc": { + "start": { + "line": 114, + "column": 21 + }, + "end": { + "line": 114, + "column": 38 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4414, + "end": 4417, + "loc": { + "start": { + "line": 114, + "column": 21 + }, + "end": { + "line": 114, + "column": 24 + } + }, + "name": "key" + }, + "value": { + "type": "Literal", + "start": 4418, + "end": 4431, + "loc": { + "start": { + "line": 114, + "column": 25 + }, + "end": { + "line": 114, + "column": 38 + } + }, + "value": "filter-tags", + "rawValue": null, + "raw": "\"filter-tags\"" + } + }, + { + "type": "JSXAttribute", + "start": 4432, + "end": 4444, + "loc": { + "start": { + "line": 114, + "column": 39 + }, + "end": { + "line": 114, + "column": 51 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4432, + "end": 4437, + "loc": { + "start": { + "line": 114, + "column": 39 + }, + "end": { + "line": 114, + "column": 44 + } + }, + "name": "label" + }, + "value": { + "type": "Literal", + "start": 4438, + "end": 4444, + "loc": { + "start": { + "line": 114, + "column": 45 + }, + "end": { + "line": 114, + "column": 51 + } + }, + "value": "Tags", + "rawValue": null, + "raw": "\"Tags\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 4410, + "end": 4413, + "loc": { + "start": { + "line": 114, + "column": 17 + }, + "end": { + "line": 114, + "column": 20 + } + }, + "name": "Tab" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 5230, + "end": 5236, + "loc": { + "start": { + "line": 129, + "column": 16 + }, + "end": { + "line": 129, + "column": 22 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 5232, + "end": 5235, + "loc": { + "start": { + "line": 129, + "column": 18 + }, + "end": { + "line": 129, + "column": 21 + } + }, + "name": "Tab" + } + }, + "children": [ + { + "type": "Literal", + "start": 4445, + "end": 4466, + "loc": { + "start": { + "line": 114, + "column": 52 + }, + "end": { + "line": 115, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 4466, + "end": 5213, + "loc": { + "start": { + "line": 115, + "column": 20 + }, + "end": { + "line": 128, + "column": 26 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 4466, + "end": 4491, + "loc": { + "start": { + "line": 115, + "column": 20 + }, + "end": { + "line": 115, + "column": 45 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 4471, + "end": 4490, + "loc": { + "start": { + "line": 115, + "column": 25 + }, + "end": { + "line": 115, + "column": 44 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4471, + "end": 4480, + "loc": { + "start": { + "line": 115, + "column": 25 + }, + "end": { + "line": 115, + "column": 34 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 4481, + "end": 4490, + "loc": { + "start": { + "line": 115, + "column": 35 + }, + "end": { + "line": 115, + "column": 44 + } + }, + "value": "results", + "rawValue": null, + "raw": "\"results\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 4467, + "end": 4470, + "loc": { + "start": { + "line": 115, + "column": 21 + }, + "end": { + "line": 115, + "column": 24 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 5207, + "end": 5213, + "loc": { + "start": { + "line": 128, + "column": 20 + }, + "end": { + "line": 128, + "column": 26 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 5209, + "end": 5212, + "loc": { + "start": { + "line": 128, + "column": 22 + }, + "end": { + "line": 128, + "column": 25 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 4491, + "end": 4516, + "loc": { + "start": { + "line": 115, + "column": 45 + }, + "end": { + "line": 116, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 4516, + "end": 5186, + "loc": { + "start": { + "line": 116, + "column": 24 + }, + "end": { + "line": 127, + "column": 29 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 4516, + "end": 4520, + "loc": { + "start": { + "line": 116, + "column": 24 + }, + "end": { + "line": 116, + "column": 28 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 4517, + "end": 4519, + "loc": { + "start": { + "line": 116, + "column": 25 + }, + "end": { + "line": 116, + "column": 27 + } + }, + "name": "ul" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 5181, + "end": 5186, + "loc": { + "start": { + "line": 127, + "column": 24 + }, + "end": { + "line": 127, + "column": 29 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 5183, + "end": 5185, + "loc": { + "start": { + "line": 127, + "column": 26 + }, + "end": { + "line": 127, + "column": 28 + } + }, + "name": "ul" + } + }, + "children": [ + { + "type": "Literal", + "start": 4520, + "end": 4549, + "loc": { + "start": { + "line": 116, + "column": 28 + }, + "end": { + "line": 117, + "column": 28 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 4549, + "end": 5156, + "loc": { + "start": { + "line": 117, + "column": 28 + }, + "end": { + "line": 126, + "column": 35 + } + }, + "expression": { + "type": "CallExpression", + "start": 4550, + "end": 5155, + "loc": { + "start": { + "line": 117, + "column": 29 + }, + "end": { + "line": 126, + "column": 34 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4550, + "end": 4568, + "loc": { + "start": { + "line": 117, + "column": 29 + }, + "end": { + "line": 117, + "column": 47 + } + }, + "object": { + "type": "ThisExpression", + "start": 4550, + "end": 4554, + "loc": { + "start": { + "line": 117, + "column": 29 + }, + "end": { + "line": 117, + "column": 33 + } + } + }, + "property": { + "type": "Identifier", + "start": 4555, + "end": 4568, + "loc": { + "start": { + "line": 117, + "column": 34 + }, + "end": { + "line": 117, + "column": 47 + } + }, + "name": "renderResults" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 4602, + "end": 4627, + "loc": { + "start": { + "line": 118, + "column": 32 + }, + "end": { + "line": 118, + "column": 57 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 4602, + "end": 4603, + "loc": { + "start": { + "line": 118, + "column": 32 + }, + "end": { + "line": 118, + "column": 33 + } + }, + "name": "r" + } + ], + "body": { + "type": "BinaryExpression", + "start": 4607, + "end": 4627, + "loc": { + "start": { + "line": 118, + "column": 37 + }, + "end": { + "line": 118, + "column": 57 + } + }, + "left": { + "type": "MemberExpression", + "start": 4607, + "end": 4613, + "loc": { + "start": { + "line": 118, + "column": 37 + }, + "end": { + "line": 118, + "column": 43 + } + }, + "object": { + "type": "Identifier", + "start": 4607, + "end": 4608, + "loc": { + "start": { + "line": 118, + "column": 37 + }, + "end": { + "line": 118, + "column": 38 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 4609, + "end": 4613, + "loc": { + "start": { + "line": 118, + "column": 39 + }, + "end": { + "line": 118, + "column": 43 + } + }, + "name": "type" + }, + "computed": false + }, + "operator": "==", + "right": { + "type": "Literal", + "start": 4617, + "end": 4627, + "loc": { + "start": { + "line": 118, + "column": 47 + }, + "end": { + "line": 118, + "column": 57 + } + }, + "value": "hashtags", + "rawValue": "hashtags", + "raw": "'hashtags'" + } + } + }, + { + "type": "ArrowFunctionExpression", + "start": 4661, + "end": 5154, + "loc": { + "start": { + "line": 119, + "column": 32 + }, + "end": { + "line": 126, + "column": 33 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 4662, + "end": 4663, + "loc": { + "start": { + "line": 119, + "column": 33 + }, + "end": { + "line": 119, + "column": 34 + } + }, + "name": "r" + }, + { + "type": "Identifier", + "start": 4665, + "end": 4666, + "loc": { + "start": { + "line": 119, + "column": 36 + }, + "end": { + "line": 119, + "column": 37 + } + }, + "name": "i" + } + ], + "body": { + "type": "JSXElement", + "start": 4709, + "end": 5120, + "loc": { + "start": { + "line": 120, + "column": 36 + }, + "end": { + "line": 125, + "column": 41 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 4709, + "end": 4792, + "loc": { + "start": { + "line": 120, + "column": 36 + }, + "end": { + "line": 120, + "column": 119 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 4713, + "end": 4746, + "loc": { + "start": { + "line": 120, + "column": 40 + }, + "end": { + "line": 120, + "column": 73 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4713, + "end": 4716, + "loc": { + "start": { + "line": 120, + "column": 40 + }, + "end": { + "line": 120, + "column": 43 + } + }, + "name": "key" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 4717, + "end": 4746, + "loc": { + "start": { + "line": 120, + "column": 44 + }, + "end": { + "line": 120, + "column": 73 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 4718, + "end": 4745, + "loc": { + "start": { + "line": 120, + "column": 45 + }, + "end": { + "line": 120, + "column": 72 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 4737, + "end": 4743, + "loc": { + "start": { + "line": 120, + "column": 64 + }, + "end": { + "line": 120, + "column": 70 + } + }, + "object": { + "type": "Identifier", + "start": 4737, + "end": 4738, + "loc": { + "start": { + "line": 120, + "column": 64 + }, + "end": { + "line": 120, + "column": 65 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 4739, + "end": 4743, + "loc": { + "start": { + "line": 120, + "column": 66 + }, + "end": { + "line": 120, + "column": 70 + } + }, + "name": "word" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 4719, + "end": 4735, + "loc": { + "start": { + "line": 120, + "column": 46 + }, + "end": { + "line": 120, + "column": 62 + } + }, + "value": { + "raw": "result-hashtags-", + "cooked": "result-hashtags-" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 4744, + "end": 4744, + "loc": { + "start": { + "line": 120, + "column": 71 + }, + "end": { + "line": 120, + "column": 71 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + }, + { + "type": "JSXAttribute", + "start": 4747, + "end": 4791, + "loc": { + "start": { + "line": 120, + "column": 74 + }, + "end": { + "line": 120, + "column": 118 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4747, + "end": 4754, + "loc": { + "start": { + "line": 120, + "column": 74 + }, + "end": { + "line": 120, + "column": 81 + } + }, + "name": "onClick" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 4755, + "end": 4791, + "loc": { + "start": { + "line": 120, + "column": 82 + }, + "end": { + "line": 120, + "column": 118 + } + }, + "expression": { + "type": "ArrowFunctionExpression", + "start": 4756, + "end": 4790, + "loc": { + "start": { + "line": 120, + "column": 83 + }, + "end": { + "line": 120, + "column": 117 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 4757, + "end": 4758, + "loc": { + "start": { + "line": 120, + "column": 84 + }, + "end": { + "line": 120, + "column": 85 + } + }, + "name": "e" + } + ], + "body": { + "type": "CallExpression", + "start": 4763, + "end": 4790, + "loc": { + "start": { + "line": 120, + "column": 90 + }, + "end": { + "line": 120, + "column": 117 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4763, + "end": 4781, + "loc": { + "start": { + "line": 120, + "column": 90 + }, + "end": { + "line": 120, + "column": 108 + } + }, + "object": { + "type": "MemberExpression", + "start": 4763, + "end": 4773, + "loc": { + "start": { + "line": 120, + "column": 90 + }, + "end": { + "line": 120, + "column": 100 + } + }, + "object": { + "type": "ThisExpression", + "start": 4763, + "end": 4767, + "loc": { + "start": { + "line": 120, + "column": 90 + }, + "end": { + "line": 120, + "column": 94 + } + } + }, + "property": { + "type": "Identifier", + "start": 4768, + "end": 4773, + "loc": { + "start": { + "line": 120, + "column": 95 + }, + "end": { + "line": 120, + "column": 100 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 4774, + "end": 4781, + "loc": { + "start": { + "line": 120, + "column": 101 + }, + "end": { + "line": 120, + "column": 108 + } + }, + "name": "onClick" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 4782, + "end": 4783, + "loc": { + "start": { + "line": 120, + "column": 109 + }, + "end": { + "line": 120, + "column": 110 + } + }, + "name": "e" + }, + { + "type": "Identifier", + "start": 4785, + "end": 4786, + "loc": { + "start": { + "line": 120, + "column": 112 + }, + "end": { + "line": 120, + "column": 113 + } + }, + "name": "i" + }, + { + "type": "Identifier", + "start": 4788, + "end": 4789, + "loc": { + "start": { + "line": 120, + "column": 115 + }, + "end": { + "line": 120, + "column": 116 + } + }, + "name": "r" + } + ] + } + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 4710, + "end": 4712, + "loc": { + "start": { + "line": 120, + "column": 37 + }, + "end": { + "line": 120, + "column": 39 + } + }, + "name": "li" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 5115, + "end": 5120, + "loc": { + "start": { + "line": 125, + "column": 36 + }, + "end": { + "line": 125, + "column": 41 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 5117, + "end": 5119, + "loc": { + "start": { + "line": 125, + "column": 38 + }, + "end": { + "line": 125, + "column": 40 + } + }, + "name": "li" + } + }, + "children": [ + { + "type": "Literal", + "start": 4792, + "end": 4833, + "loc": { + "start": { + "line": 120, + "column": 119 + }, + "end": { + "line": 121, + "column": 40 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 4833, + "end": 5078, + "loc": { + "start": { + "line": 121, + "column": 40 + }, + "end": { + "line": 124, + "column": 46 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 4833, + "end": 4863, + "loc": { + "start": { + "line": 121, + "column": 40 + }, + "end": { + "line": 121, + "column": 70 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 4838, + "end": 4862, + "loc": { + "start": { + "line": 121, + "column": 45 + }, + "end": { + "line": 121, + "column": 69 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4838, + "end": 4847, + "loc": { + "start": { + "line": 121, + "column": 45 + }, + "end": { + "line": 121, + "column": 54 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 4848, + "end": 4862, + "loc": { + "start": { + "line": 121, + "column": 55 + }, + "end": { + "line": 121, + "column": 69 + } + }, + "value": "result-inner", + "rawValue": null, + "raw": "\"result-inner\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 4834, + "end": 4837, + "loc": { + "start": { + "line": 121, + "column": 41 + }, + "end": { + "line": 121, + "column": 44 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 5072, + "end": 5078, + "loc": { + "start": { + "line": 124, + "column": 40 + }, + "end": { + "line": 124, + "column": 46 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 5074, + "end": 5077, + "loc": { + "start": { + "line": 124, + "column": 42 + }, + "end": { + "line": 124, + "column": 45 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 4863, + "end": 4908, + "loc": { + "start": { + "line": 121, + "column": 70 + }, + "end": { + "line": 122, + "column": 44 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 4908, + "end": 4934, + "loc": { + "start": { + "line": 122, + "column": 44 + }, + "end": { + "line": 122, + "column": 70 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 4908, + "end": 4916, + "loc": { + "start": { + "line": 122, + "column": 44 + }, + "end": { + "line": 122, + "column": 52 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 4909, + "end": 4915, + "loc": { + "start": { + "line": 122, + "column": 45 + }, + "end": { + "line": 122, + "column": 51 + } + }, + "name": "strong" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 4925, + "end": 4934, + "loc": { + "start": { + "line": 122, + "column": 61 + }, + "end": { + "line": 122, + "column": 70 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4927, + "end": 4933, + "loc": { + "start": { + "line": 122, + "column": 63 + }, + "end": { + "line": 122, + "column": 69 + } + }, + "name": "strong" + } + }, + "children": [ + { + "type": "Literal", + "start": 4916, + "end": 4917, + "loc": { + "start": { + "line": 122, + "column": 52 + }, + "end": { + "line": 122, + "column": 53 + } + }, + "value": "#", + "rawValue": null, + "raw": "#" + }, + { + "type": "JSXExpressionContainer", + "start": 4917, + "end": 4925, + "loc": { + "start": { + "line": 122, + "column": 53 + }, + "end": { + "line": 122, + "column": 61 + } + }, + "expression": { + "type": "MemberExpression", + "start": 4918, + "end": 4924, + "loc": { + "start": { + "line": 122, + "column": 54 + }, + "end": { + "line": 122, + "column": 60 + } + }, + "object": { + "type": "Identifier", + "start": 4918, + "end": 4919, + "loc": { + "start": { + "line": 122, + "column": 54 + }, + "end": { + "line": 122, + "column": 55 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 4920, + "end": 4924, + "loc": { + "start": { + "line": 122, + "column": 56 + }, + "end": { + "line": 122, + "column": 60 + } + }, + "name": "word" + }, + "computed": false + } + } + ] + }, + { + "type": "Literal", + "start": 4934, + "end": 4979, + "loc": { + "start": { + "line": 122, + "column": 70 + }, + "end": { + "line": 123, + "column": 44 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 4979, + "end": 5031, + "loc": { + "start": { + "line": 123, + "column": 44 + }, + "end": { + "line": 123, + "column": 96 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 4979, + "end": 4985, + "loc": { + "start": { + "line": 123, + "column": 44 + }, + "end": { + "line": 123, + "column": 50 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 4980, + "end": 4984, + "loc": { + "start": { + "line": 123, + "column": 45 + }, + "end": { + "line": 123, + "column": 49 + } + }, + "name": "span" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 5024, + "end": 5031, + "loc": { + "start": { + "line": 123, + "column": 89 + }, + "end": { + "line": 123, + "column": 96 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 5026, + "end": 5030, + "loc": { + "start": { + "line": 123, + "column": 91 + }, + "end": { + "line": 123, + "column": 95 + } + }, + "name": "span" + } + }, + "children": [ + { + "type": "JSXExpressionContainer", + "start": 4985, + "end": 5017, + "loc": { + "start": { + "line": 123, + "column": 50 + }, + "end": { + "line": 123, + "column": 82 + } + }, + "expression": { + "type": "CallExpression", + "start": 4986, + "end": 5016, + "loc": { + "start": { + "line": 123, + "column": 51 + }, + "end": { + "line": 123, + "column": 81 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4986, + "end": 5009, + "loc": { + "start": { + "line": 123, + "column": 51 + }, + "end": { + "line": 123, + "column": 74 + } + }, + "object": { + "type": "CallExpression", + "start": 4986, + "end": 5002, + "loc": { + "start": { + "line": 123, + "column": 51 + }, + "end": { + "line": 123, + "column": 67 + } + }, + "callee": { + "type": "Identifier", + "start": 4986, + "end": 4993, + "loc": { + "start": { + "line": 123, + "column": 51 + }, + "end": { + "line": 123, + "column": 58 + } + }, + "name": "numeral" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 4994, + "end": 5001, + "loc": { + "start": { + "line": 123, + "column": 59 + }, + "end": { + "line": 123, + "column": 66 + } + }, + "object": { + "type": "Identifier", + "start": 4994, + "end": 4995, + "loc": { + "start": { + "line": 123, + "column": 59 + }, + "end": { + "line": 123, + "column": 60 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 4996, + "end": 5001, + "loc": { + "start": { + "line": 123, + "column": 61 + }, + "end": { + "line": 123, + "column": 66 + } + }, + "name": "count" + }, + "computed": false + } + ] + }, + "property": { + "type": "Identifier", + "start": 5003, + "end": 5009, + "loc": { + "start": { + "line": 123, + "column": 68 + }, + "end": { + "line": 123, + "column": 74 + } + }, + "name": "format" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 5010, + "end": 5015, + "loc": { + "start": { + "line": 123, + "column": 75 + }, + "end": { + "line": 123, + "column": 80 + } + }, + "value": "0,0", + "rawValue": "0,0", + "raw": "'0,0'" + } + ] + } + }, + { + "type": "Literal", + "start": 5017, + "end": 5024, + "loc": { + "start": { + "line": 123, + "column": 82 + }, + "end": { + "line": 123, + "column": 89 + } + }, + "value": " Photos", + "rawValue": null, + "raw": " Photos" + } + ] + }, + { + "type": "Literal", + "start": 5031, + "end": 5072, + "loc": { + "start": { + "line": 123, + "column": 96 + }, + "end": { + "line": 124, + "column": 40 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 5078, + "end": 5115, + "loc": { + "start": { + "line": 124, + "column": 46 + }, + "end": { + "line": 125, + "column": 36 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + { + "type": "Literal", + "start": 5156, + "end": 5181, + "loc": { + "start": { + "line": 126, + "column": 35 + }, + "end": { + "line": 127, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 5186, + "end": 5207, + "loc": { + "start": { + "line": 127, + "column": 29 + }, + "end": { + "line": 128, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 5213, + "end": 5230, + "loc": { + "start": { + "line": 128, + "column": 26 + }, + "end": { + "line": 129, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 5236, + "end": 5249, + "loc": { + "start": { + "line": 129, + "column": 22 + }, + "end": { + "line": 130, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 751, + "end": 799, + "loc": { + "start": { + "line": 37, + "column": 4 + }, + "end": { + "line": 40, + "column": 7 + } + }, + "range": [ + 751, + 799 + ] + } + ] + } + ] + }, + "leadingComments": [], + "name": "_", + "trailingComments": [] + }, + { + "type": "Identifier", + "start": 5276, + "end": 5298, + "loc": { + "start": { + "line": 135, + "column": 0 + }, + "end": { + "line": 135, + "column": 22 + } + }, + "declaration": { + "type": "Identifier", + "start": 5291, + "end": 5298, + "loc": { + "start": { + "line": 135, + "column": 15 + }, + "end": { + "line": 135, + "column": 22 + } + }, + "name": "Filters" + }, + "name": "_", + "leadingComments": [], + "trailingComments": [] + }, + { + "type": "ExportDefaultDeclaration", + "start": 5276, + "end": 5298, + "loc": { + "start": { + "line": 135, + "column": 0 + }, + "end": { + "line": 135, + "column": 22 + } + }, + "declaration": { + "type": "ClassDeclaration", + "start": 183, + "end": 5274, + "loc": { + "start": { + "line": 13, + "column": 0 + }, + "end": { + "line": 133, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 189, + "end": 196, + "loc": { + "start": { + "line": 13, + "column": 6 + }, + "end": { + "line": 13, + "column": 13 + } + }, + "name": "Filters", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 205, + "end": 214, + "loc": { + "start": { + "line": 13, + "column": 22 + }, + "end": { + "line": 13, + "column": 31 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 215, + "end": 5274, + "loc": { + "start": { + "line": 13, + "column": 32 + }, + "end": { + "line": 133, + "column": 1 + } + }, + "body": [ + { + "type": "Identifier", + "start": 329, + "end": 415, + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 23, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 336, + "end": 348, + "loc": { + "start": { + "line": 19, + "column": 11 + }, + "end": { + "line": 19, + "column": 23 + } + }, + "name": "defaultProps" + }, + "static": true, + "value": { + "type": "ObjectExpression", + "start": 351, + "end": 415, + "loc": { + "start": { + "line": 19, + "column": 26 + }, + "end": { + "line": 23, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 361, + "end": 387, + "loc": { + "start": { + "line": 20, + "column": 8 + }, + "end": { + "line": 21, + "column": 9 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 361, + "end": 368, + "loc": { + "start": { + "line": 20, + "column": 8 + }, + "end": { + "line": 20, + "column": 15 + } + }, + "name": "onClick" + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 370, + "end": 387, + "loc": { + "start": { + "line": 20, + "column": 17 + }, + "end": { + "line": 21, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 376, + "end": 387, + "loc": { + "start": { + "line": 20, + "column": 23 + }, + "end": { + "line": 21, + "column": 9 + } + }, + "body": [] + } + }, + "kind": "init" + }, + { + "type": "Property", + "start": 397, + "end": 408, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 19 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 397, + "end": 404, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 15 + } + }, + "name": "results" + }, + "value": { + "type": "ArrayExpression", + "start": 406, + "end": 408, + "loc": { + "start": { + "line": 22, + "column": 17 + }, + "end": { + "line": 22, + "column": 19 + } + }, + "elements": [] + }, + "kind": "init" + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * defaultProps\n * @type {{onClick: Filters.defaultProps.onClick, results: Array}}\n ", + "start": 222, + "end": 324, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 18, + "column": 7 + } + }, + "range": [ + 222, + 324 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * renderResults\n * @param fn\n * @param comp\n * @returns {*}\n ", + "start": 421, + "end": 509, + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 30, + "column": 7 + } + }, + "range": [ + 421, + 509 + ] + } + ] + }, + { + "type": "Identifier", + "start": 514, + "end": 745, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 35, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 514, + "end": 527, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 17 + } + }, + "name": "renderResults", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ArrowFunctionExpression", + "start": 530, + "end": 745, + "loc": { + "start": { + "line": 31, + "column": 20 + }, + "end": { + "line": 35, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 531, + "end": 533, + "loc": { + "start": { + "line": 31, + "column": 21 + }, + "end": { + "line": 31, + "column": 23 + } + }, + "name": "fn" + }, + { + "type": "Identifier", + "start": 535, + "end": 539, + "loc": { + "start": { + "line": 31, + "column": 25 + }, + "end": { + "line": 31, + "column": 29 + } + }, + "name": "comp" + } + ], + "body": { + "type": "BlockStatement", + "start": 544, + "end": 745, + "loc": { + "start": { + "line": 31, + "column": 34 + }, + "end": { + "line": 35, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 554, + "end": 623, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 77 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 560, + "end": 623, + "loc": { + "start": { + "line": 32, + "column": 14 + }, + "end": { + "line": 32, + "column": 77 + } + }, + "id": { + "type": "Identifier", + "start": 560, + "end": 565, + "loc": { + "start": { + "line": 32, + "column": 14 + }, + "end": { + "line": 32, + "column": 19 + } + }, + "name": "items" + }, + "init": { + "type": "ConditionalExpression", + "start": 568, + "end": 623, + "loc": { + "start": { + "line": 32, + "column": 22 + }, + "end": { + "line": 32, + "column": 77 + } + }, + "test": { + "type": "Identifier", + "start": 568, + "end": 570, + "loc": { + "start": { + "line": 32, + "column": 22 + }, + "end": { + "line": 32, + "column": 24 + } + }, + "name": "fn" + }, + "consequent": { + "type": "CallExpression", + "start": 573, + "end": 602, + "loc": { + "start": { + "line": 32, + "column": 27 + }, + "end": { + "line": 32, + "column": 56 + } + }, + "callee": { + "type": "MemberExpression", + "start": 573, + "end": 598, + "loc": { + "start": { + "line": 32, + "column": 27 + }, + "end": { + "line": 32, + "column": 52 + } + }, + "object": { + "type": "MemberExpression", + "start": 573, + "end": 591, + "loc": { + "start": { + "line": 32, + "column": 27 + }, + "end": { + "line": 32, + "column": 45 + } + }, + "object": { + "type": "MemberExpression", + "start": 573, + "end": 583, + "loc": { + "start": { + "line": 32, + "column": 27 + }, + "end": { + "line": 32, + "column": 37 + } + }, + "object": { + "type": "ThisExpression", + "start": 573, + "end": 577, + "loc": { + "start": { + "line": 32, + "column": 27 + }, + "end": { + "line": 32, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "start": 578, + "end": 583, + "loc": { + "start": { + "line": 32, + "column": 32 + }, + "end": { + "line": 32, + "column": 37 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 584, + "end": 591, + "loc": { + "start": { + "line": 32, + "column": 38 + }, + "end": { + "line": 32, + "column": 45 + } + }, + "name": "results" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 592, + "end": 598, + "loc": { + "start": { + "line": 32, + "column": 46 + }, + "end": { + "line": 32, + "column": 52 + } + }, + "name": "filter" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 599, + "end": 601, + "loc": { + "start": { + "line": 32, + "column": 53 + }, + "end": { + "line": 32, + "column": 55 + } + }, + "name": "fn" + } + ] + }, + "alternate": { + "type": "MemberExpression", + "start": 605, + "end": 623, + "loc": { + "start": { + "line": 32, + "column": 59 + }, + "end": { + "line": 32, + "column": 77 + } + }, + "object": { + "type": "MemberExpression", + "start": 605, + "end": 615, + "loc": { + "start": { + "line": 32, + "column": 59 + }, + "end": { + "line": 32, + "column": 69 + } + }, + "object": { + "type": "ThisExpression", + "start": 605, + "end": 609, + "loc": { + "start": { + "line": 32, + "column": 59 + }, + "end": { + "line": 32, + "column": 63 + } + } + }, + "property": { + "type": "Identifier", + "start": 610, + "end": 615, + "loc": { + "start": { + "line": 32, + "column": 64 + }, + "end": { + "line": 32, + "column": 69 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 616, + "end": 623, + "loc": { + "start": { + "line": 32, + "column": 70 + }, + "end": { + "line": 32, + "column": 77 + } + }, + "name": "results" + }, + "computed": false + } + } + } + ], + "kind": "const" + }, + { + "type": "IfStatement", + "start": 632, + "end": 708, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 84 + } + }, + "test": { + "type": "UnaryExpression", + "start": 636, + "end": 649, + "loc": { + "start": { + "line": 33, + "column": 12 + }, + "end": { + "line": 33, + "column": 25 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 637, + "end": 649, + "loc": { + "start": { + "line": 33, + "column": 13 + }, + "end": { + "line": 33, + "column": 25 + } + }, + "object": { + "type": "Identifier", + "start": 637, + "end": 642, + "loc": { + "start": { + "line": 33, + "column": 13 + }, + "end": { + "line": 33, + "column": 18 + } + }, + "name": "items" + }, + "property": { + "type": "Identifier", + "start": 643, + "end": 649, + "loc": { + "start": { + "line": 33, + "column": 19 + }, + "end": { + "line": 33, + "column": 25 + } + }, + "name": "length" + }, + "computed": false + } + }, + "consequent": { + "type": "ReturnStatement", + "start": 651, + "end": 708, + "loc": { + "start": { + "line": 33, + "column": 27 + }, + "end": { + "line": 33, + "column": 84 + } + }, + "argument": { + "type": "JSXElement", + "start": 658, + "end": 708, + "loc": { + "start": { + "line": 33, + "column": 34 + }, + "end": { + "line": 33, + "column": 84 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 658, + "end": 686, + "loc": { + "start": { + "line": 33, + "column": 34 + }, + "end": { + "line": 33, + "column": 62 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 663, + "end": 685, + "loc": { + "start": { + "line": 33, + "column": 39 + }, + "end": { + "line": 33, + "column": 61 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 663, + "end": 672, + "loc": { + "start": { + "line": 33, + "column": 39 + }, + "end": { + "line": 33, + "column": 48 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 673, + "end": 685, + "loc": { + "start": { + "line": 33, + "column": 49 + }, + "end": { + "line": 33, + "column": 61 + } + }, + "value": "no-results", + "rawValue": null, + "raw": "\"no-results\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 659, + "end": 662, + "loc": { + "start": { + "line": 33, + "column": 35 + }, + "end": { + "line": 33, + "column": 38 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 702, + "end": 708, + "loc": { + "start": { + "line": 33, + "column": 78 + }, + "end": { + "line": 33, + "column": 84 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 704, + "end": 707, + "loc": { + "start": { + "line": 33, + "column": 80 + }, + "end": { + "line": 33, + "column": 83 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 686, + "end": 702, + "loc": { + "start": { + "line": 33, + "column": 62 + }, + "end": { + "line": 33, + "column": 78 + } + }, + "value": "No results found", + "rawValue": null, + "raw": "No results found" + } + ] + } + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 717, + "end": 739, + "loc": { + "start": { + "line": 34, + "column": 8 + }, + "end": { + "line": 34, + "column": 30 + } + }, + "argument": { + "type": "CallExpression", + "start": 724, + "end": 739, + "loc": { + "start": { + "line": 34, + "column": 15 + }, + "end": { + "line": 34, + "column": 30 + } + }, + "callee": { + "type": "MemberExpression", + "start": 724, + "end": 733, + "loc": { + "start": { + "line": 34, + "column": 15 + }, + "end": { + "line": 34, + "column": 24 + } + }, + "object": { + "type": "Identifier", + "start": 724, + "end": 729, + "loc": { + "start": { + "line": 34, + "column": 15 + }, + "end": { + "line": 34, + "column": 20 + } + }, + "name": "items" + }, + "property": { + "type": "Identifier", + "start": 730, + "end": 733, + "loc": { + "start": { + "line": 34, + "column": 21 + }, + "end": { + "line": 34, + "column": 24 + } + }, + "name": "map" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 734, + "end": 738, + "loc": { + "start": { + "line": 34, + "column": 25 + }, + "end": { + "line": 34, + "column": 29 + } + }, + "name": "comp" + } + ] + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * renderResults\n * @param fn\n * @param comp\n * @returns {*}\n ", + "start": 421, + "end": 509, + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 30, + "column": 7 + } + }, + "range": [ + 421, + 509 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 751, + "end": 799, + "loc": { + "start": { + "line": 37, + "column": 4 + }, + "end": { + "line": 40, + "column": 7 + } + }, + "range": [ + 751, + 799 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 804, + "end": 5272, + "loc": { + "start": { + "line": 41, + "column": 4 + }, + "end": { + "line": 132, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 804, + "end": 810, + "loc": { + "start": { + "line": 41, + "column": 4 + }, + "end": { + "line": 41, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 810, + "end": 5272, + "loc": { + "start": { + "line": 41, + "column": 10 + }, + "end": { + "line": 132, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 813, + "end": 5272, + "loc": { + "start": { + "line": 41, + "column": 13 + }, + "end": { + "line": 132, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 824, + "end": 5266, + "loc": { + "start": { + "line": 43, + "column": 8 + }, + "end": { + "line": 131, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 845, + "end": 5256, + "loc": { + "start": { + "line": 44, + "column": 12 + }, + "end": { + "line": 130, + "column": 19 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 845, + "end": 868, + "loc": { + "start": { + "line": 44, + "column": 12 + }, + "end": { + "line": 44, + "column": 35 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 851, + "end": 867, + "loc": { + "start": { + "line": 44, + "column": 18 + }, + "end": { + "line": 44, + "column": 34 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 851, + "end": 860, + "loc": { + "start": { + "line": 44, + "column": 18 + }, + "end": { + "line": 44, + "column": 27 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 861, + "end": 867, + "loc": { + "start": { + "line": 44, + "column": 28 + }, + "end": { + "line": 44, + "column": 34 + } + }, + "value": "tabs", + "rawValue": null, + "raw": "\"tabs\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 846, + "end": 850, + "loc": { + "start": { + "line": 44, + "column": 13 + }, + "end": { + "line": 44, + "column": 17 + } + }, + "name": "Tabs" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 5249, + "end": 5256, + "loc": { + "start": { + "line": 130, + "column": 12 + }, + "end": { + "line": 130, + "column": 19 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 5251, + "end": 5255, + "loc": { + "start": { + "line": 130, + "column": 14 + }, + "end": { + "line": 130, + "column": 18 + } + }, + "name": "Tabs" + } + }, + "children": [ + { + "type": "Literal", + "start": 868, + "end": 885, + "loc": { + "start": { + "line": 44, + "column": 35 + }, + "end": { + "line": 45, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 885, + "end": 2940, + "loc": { + "start": { + "line": 45, + "column": 16 + }, + "end": { + "line": 81, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 885, + "end": 919, + "loc": { + "start": { + "line": 45, + "column": 16 + }, + "end": { + "line": 45, + "column": 50 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 890, + "end": 906, + "loc": { + "start": { + "line": 45, + "column": 21 + }, + "end": { + "line": 45, + "column": 37 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 890, + "end": 893, + "loc": { + "start": { + "line": 45, + "column": 21 + }, + "end": { + "line": 45, + "column": 24 + } + }, + "name": "key" + }, + "value": { + "type": "Literal", + "start": 894, + "end": 906, + "loc": { + "start": { + "line": 45, + "column": 25 + }, + "end": { + "line": 45, + "column": 37 + } + }, + "value": "filter-all", + "rawValue": null, + "raw": "\"filter-all\"" + } + }, + { + "type": "JSXAttribute", + "start": 907, + "end": 918, + "loc": { + "start": { + "line": 45, + "column": 38 + }, + "end": { + "line": 45, + "column": 49 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 907, + "end": 912, + "loc": { + "start": { + "line": 45, + "column": 38 + }, + "end": { + "line": 45, + "column": 43 + } + }, + "name": "label" + }, + "value": { + "type": "Literal", + "start": 913, + "end": 918, + "loc": { + "start": { + "line": 45, + "column": 44 + }, + "end": { + "line": 45, + "column": 49 + } + }, + "value": "All", + "rawValue": null, + "raw": "\"All\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 886, + "end": 889, + "loc": { + "start": { + "line": 45, + "column": 17 + }, + "end": { + "line": 45, + "column": 20 + } + }, + "name": "Tab" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2934, + "end": 2940, + "loc": { + "start": { + "line": 81, + "column": 16 + }, + "end": { + "line": 81, + "column": 22 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2936, + "end": 2939, + "loc": { + "start": { + "line": 81, + "column": 18 + }, + "end": { + "line": 81, + "column": 21 + } + }, + "name": "Tab" + } + }, + "children": [ + { + "type": "Literal", + "start": 919, + "end": 940, + "loc": { + "start": { + "line": 45, + "column": 50 + }, + "end": { + "line": 46, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 940, + "end": 2917, + "loc": { + "start": { + "line": 46, + "column": 20 + }, + "end": { + "line": 80, + "column": 26 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 940, + "end": 965, + "loc": { + "start": { + "line": 46, + "column": 20 + }, + "end": { + "line": 46, + "column": 45 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 945, + "end": 964, + "loc": { + "start": { + "line": 46, + "column": 25 + }, + "end": { + "line": 46, + "column": 44 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 945, + "end": 954, + "loc": { + "start": { + "line": 46, + "column": 25 + }, + "end": { + "line": 46, + "column": 34 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 955, + "end": 964, + "loc": { + "start": { + "line": 46, + "column": 35 + }, + "end": { + "line": 46, + "column": 44 + } + }, + "value": "results", + "rawValue": null, + "raw": "\"results\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 941, + "end": 944, + "loc": { + "start": { + "line": 46, + "column": 21 + }, + "end": { + "line": 46, + "column": 24 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2911, + "end": 2917, + "loc": { + "start": { + "line": 80, + "column": 20 + }, + "end": { + "line": 80, + "column": 26 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2913, + "end": 2916, + "loc": { + "start": { + "line": 80, + "column": 22 + }, + "end": { + "line": 80, + "column": 25 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 965, + "end": 990, + "loc": { + "start": { + "line": 46, + "column": 45 + }, + "end": { + "line": 47, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 990, + "end": 2890, + "loc": { + "start": { + "line": 47, + "column": 24 + }, + "end": { + "line": 79, + "column": 29 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 990, + "end": 994, + "loc": { + "start": { + "line": 47, + "column": 24 + }, + "end": { + "line": 47, + "column": 28 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 991, + "end": 993, + "loc": { + "start": { + "line": 47, + "column": 25 + }, + "end": { + "line": 47, + "column": 27 + } + }, + "name": "ul" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2885, + "end": 2890, + "loc": { + "start": { + "line": 79, + "column": 24 + }, + "end": { + "line": 79, + "column": 29 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2887, + "end": 2889, + "loc": { + "start": { + "line": 79, + "column": 26 + }, + "end": { + "line": 79, + "column": 28 + } + }, + "name": "ul" + } + }, + "children": [ + { + "type": "Literal", + "start": 994, + "end": 1023, + "loc": { + "start": { + "line": 47, + "column": 28 + }, + "end": { + "line": 48, + "column": 28 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 1023, + "end": 2860, + "loc": { + "start": { + "line": 48, + "column": 28 + }, + "end": { + "line": 78, + "column": 35 + } + }, + "expression": { + "type": "CallExpression", + "start": 1024, + "end": 2859, + "loc": { + "start": { + "line": 48, + "column": 29 + }, + "end": { + "line": 78, + "column": 34 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1024, + "end": 1042, + "loc": { + "start": { + "line": 48, + "column": 29 + }, + "end": { + "line": 48, + "column": 47 + } + }, + "object": { + "type": "ThisExpression", + "start": 1024, + "end": 1028, + "loc": { + "start": { + "line": 48, + "column": 29 + }, + "end": { + "line": 48, + "column": 33 + } + } + }, + "property": { + "type": "Identifier", + "start": 1029, + "end": 1042, + "loc": { + "start": { + "line": 48, + "column": 34 + }, + "end": { + "line": 48, + "column": 47 + } + }, + "name": "renderResults" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 1076, + "end": 1080, + "loc": { + "start": { + "line": 49, + "column": 32 + }, + "end": { + "line": 49, + "column": 36 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + { + "type": "ArrowFunctionExpression", + "start": 1114, + "end": 2858, + "loc": { + "start": { + "line": 50, + "column": 32 + }, + "end": { + "line": 78, + "column": 33 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1115, + "end": 1116, + "loc": { + "start": { + "line": 50, + "column": 33 + }, + "end": { + "line": 50, + "column": 34 + } + }, + "name": "r" + }, + { + "type": "Identifier", + "start": 1118, + "end": 1119, + "loc": { + "start": { + "line": 50, + "column": 36 + }, + "end": { + "line": 50, + "column": 37 + } + }, + "name": "i" + } + ], + "body": { + "type": "BlockStatement", + "start": 1124, + "end": 2858, + "loc": { + "start": { + "line": 50, + "column": 42 + }, + "end": { + "line": 78, + "column": 33 + } + }, + "body": [ + { + "type": "SwitchStatement", + "start": 1163, + "end": 2823, + "loc": { + "start": { + "line": 52, + "column": 36 + }, + "end": { + "line": 76, + "column": 37 + } + }, + "discriminant": { + "type": "MemberExpression", + "start": 1171, + "end": 1177, + "loc": { + "start": { + "line": 52, + "column": 44 + }, + "end": { + "line": 52, + "column": 50 + } + }, + "object": { + "type": "Identifier", + "start": 1171, + "end": 1172, + "loc": { + "start": { + "line": 52, + "column": 44 + }, + "end": { + "line": 52, + "column": 45 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 1173, + "end": 1177, + "loc": { + "start": { + "line": 52, + "column": 46 + }, + "end": { + "line": 52, + "column": 50 + } + }, + "name": "type" + }, + "computed": false + }, + "cases": [ + { + "type": "SwitchCase", + "start": 1221, + "end": 1795, + "loc": { + "start": { + "line": 53, + "column": 40 + }, + "end": { + "line": 60, + "column": 49 + } + }, + "consequent": [ + { + "type": "ReturnStatement", + "start": 1282, + "end": 1795, + "loc": { + "start": { + "line": 54, + "column": 44 + }, + "end": { + "line": 60, + "column": 49 + } + }, + "argument": { + "type": "JSXElement", + "start": 1289, + "end": 1795, + "loc": { + "start": { + "line": 54, + "column": 51 + }, + "end": { + "line": 60, + "column": 49 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1289, + "end": 1427, + "loc": { + "start": { + "line": 54, + "column": 51 + }, + "end": { + "line": 55, + "column": 100 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1293, + "end": 1326, + "loc": { + "start": { + "line": 54, + "column": 55 + }, + "end": { + "line": 54, + "column": 88 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1293, + "end": 1296, + "loc": { + "start": { + "line": 54, + "column": 55 + }, + "end": { + "line": 54, + "column": 58 + } + }, + "name": "key" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 1297, + "end": 1326, + "loc": { + "start": { + "line": 54, + "column": 59 + }, + "end": { + "line": 54, + "column": 88 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 1298, + "end": 1325, + "loc": { + "start": { + "line": 54, + "column": 60 + }, + "end": { + "line": 54, + "column": 87 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 1317, + "end": 1323, + "loc": { + "start": { + "line": 54, + "column": 79 + }, + "end": { + "line": 54, + "column": 85 + } + }, + "object": { + "type": "Identifier", + "start": 1317, + "end": 1318, + "loc": { + "start": { + "line": 54, + "column": 79 + }, + "end": { + "line": 54, + "column": 80 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 1319, + "end": 1323, + "loc": { + "start": { + "line": 54, + "column": 81 + }, + "end": { + "line": 54, + "column": 85 + } + }, + "name": "word" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 1299, + "end": 1315, + "loc": { + "start": { + "line": 54, + "column": 61 + }, + "end": { + "line": 54, + "column": 77 + } + }, + "value": { + "raw": "result-hashtags-", + "cooked": "result-hashtags-" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 1324, + "end": 1324, + "loc": { + "start": { + "line": 54, + "column": 86 + }, + "end": { + "line": 54, + "column": 86 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + }, + { + "type": "JSXAttribute", + "start": 1382, + "end": 1426, + "loc": { + "start": { + "line": 55, + "column": 55 + }, + "end": { + "line": 55, + "column": 99 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1382, + "end": 1389, + "loc": { + "start": { + "line": 55, + "column": 55 + }, + "end": { + "line": 55, + "column": 62 + } + }, + "name": "onClick" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 1390, + "end": 1426, + "loc": { + "start": { + "line": 55, + "column": 63 + }, + "end": { + "line": 55, + "column": 99 + } + }, + "expression": { + "type": "ArrowFunctionExpression", + "start": 1391, + "end": 1425, + "loc": { + "start": { + "line": 55, + "column": 64 + }, + "end": { + "line": 55, + "column": 98 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1392, + "end": 1393, + "loc": { + "start": { + "line": 55, + "column": 65 + }, + "end": { + "line": 55, + "column": 66 + } + }, + "name": "e" + } + ], + "body": { + "type": "CallExpression", + "start": 1398, + "end": 1425, + "loc": { + "start": { + "line": 55, + "column": 71 + }, + "end": { + "line": 55, + "column": 98 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1398, + "end": 1416, + "loc": { + "start": { + "line": 55, + "column": 71 + }, + "end": { + "line": 55, + "column": 89 + } + }, + "object": { + "type": "MemberExpression", + "start": 1398, + "end": 1408, + "loc": { + "start": { + "line": 55, + "column": 71 + }, + "end": { + "line": 55, + "column": 81 + } + }, + "object": { + "type": "ThisExpression", + "start": 1398, + "end": 1402, + "loc": { + "start": { + "line": 55, + "column": 71 + }, + "end": { + "line": 55, + "column": 75 + } + } + }, + "property": { + "type": "Identifier", + "start": 1403, + "end": 1408, + "loc": { + "start": { + "line": 55, + "column": 76 + }, + "end": { + "line": 55, + "column": 81 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1409, + "end": 1416, + "loc": { + "start": { + "line": 55, + "column": 82 + }, + "end": { + "line": 55, + "column": 89 + } + }, + "name": "onClick" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 1417, + "end": 1418, + "loc": { + "start": { + "line": 55, + "column": 90 + }, + "end": { + "line": 55, + "column": 91 + } + }, + "name": "e" + }, + { + "type": "Identifier", + "start": 1420, + "end": 1421, + "loc": { + "start": { + "line": 55, + "column": 93 + }, + "end": { + "line": 55, + "column": 94 + } + }, + "name": "i" + }, + { + "type": "Identifier", + "start": 1423, + "end": 1424, + "loc": { + "start": { + "line": 55, + "column": 96 + }, + "end": { + "line": 55, + "column": 97 + } + }, + "name": "r" + } + ] + } + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1290, + "end": 1292, + "loc": { + "start": { + "line": 54, + "column": 52 + }, + "end": { + "line": 54, + "column": 54 + } + }, + "name": "li" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1790, + "end": 1795, + "loc": { + "start": { + "line": 60, + "column": 44 + }, + "end": { + "line": 60, + "column": 49 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1792, + "end": 1794, + "loc": { + "start": { + "line": 60, + "column": 46 + }, + "end": { + "line": 60, + "column": 48 + } + }, + "name": "li" + } + }, + "children": [ + { + "type": "Literal", + "start": 1427, + "end": 1476, + "loc": { + "start": { + "line": 55, + "column": 100 + }, + "end": { + "line": 56, + "column": 48 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1476, + "end": 1745, + "loc": { + "start": { + "line": 56, + "column": 48 + }, + "end": { + "line": 59, + "column": 54 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1476, + "end": 1506, + "loc": { + "start": { + "line": 56, + "column": 48 + }, + "end": { + "line": 56, + "column": 78 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1481, + "end": 1505, + "loc": { + "start": { + "line": 56, + "column": 53 + }, + "end": { + "line": 56, + "column": 77 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1481, + "end": 1490, + "loc": { + "start": { + "line": 56, + "column": 53 + }, + "end": { + "line": 56, + "column": 62 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 1491, + "end": 1505, + "loc": { + "start": { + "line": 56, + "column": 63 + }, + "end": { + "line": 56, + "column": 77 + } + }, + "value": "result-inner", + "rawValue": null, + "raw": "\"result-inner\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1477, + "end": 1480, + "loc": { + "start": { + "line": 56, + "column": 49 + }, + "end": { + "line": 56, + "column": 52 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1739, + "end": 1745, + "loc": { + "start": { + "line": 59, + "column": 48 + }, + "end": { + "line": 59, + "column": 54 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1741, + "end": 1744, + "loc": { + "start": { + "line": 59, + "column": 50 + }, + "end": { + "line": 59, + "column": 53 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 1506, + "end": 1559, + "loc": { + "start": { + "line": 56, + "column": 78 + }, + "end": { + "line": 57, + "column": 52 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1559, + "end": 1585, + "loc": { + "start": { + "line": 57, + "column": 52 + }, + "end": { + "line": 57, + "column": 78 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1559, + "end": 1567, + "loc": { + "start": { + "line": 57, + "column": 52 + }, + "end": { + "line": 57, + "column": 60 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 1560, + "end": 1566, + "loc": { + "start": { + "line": 57, + "column": 53 + }, + "end": { + "line": 57, + "column": 59 + } + }, + "name": "strong" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1576, + "end": 1585, + "loc": { + "start": { + "line": 57, + "column": 69 + }, + "end": { + "line": 57, + "column": 78 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1578, + "end": 1584, + "loc": { + "start": { + "line": 57, + "column": 71 + }, + "end": { + "line": 57, + "column": 77 + } + }, + "name": "strong" + } + }, + "children": [ + { + "type": "Literal", + "start": 1567, + "end": 1568, + "loc": { + "start": { + "line": 57, + "column": 60 + }, + "end": { + "line": 57, + "column": 61 + } + }, + "value": "#", + "rawValue": null, + "raw": "#" + }, + { + "type": "JSXExpressionContainer", + "start": 1568, + "end": 1576, + "loc": { + "start": { + "line": 57, + "column": 61 + }, + "end": { + "line": 57, + "column": 69 + } + }, + "expression": { + "type": "MemberExpression", + "start": 1569, + "end": 1575, + "loc": { + "start": { + "line": 57, + "column": 62 + }, + "end": { + "line": 57, + "column": 68 + } + }, + "object": { + "type": "Identifier", + "start": 1569, + "end": 1570, + "loc": { + "start": { + "line": 57, + "column": 62 + }, + "end": { + "line": 57, + "column": 63 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 1571, + "end": 1575, + "loc": { + "start": { + "line": 57, + "column": 64 + }, + "end": { + "line": 57, + "column": 68 + } + }, + "name": "word" + }, + "computed": false + } + } + ] + }, + { + "type": "Literal", + "start": 1585, + "end": 1638, + "loc": { + "start": { + "line": 57, + "column": 78 + }, + "end": { + "line": 58, + "column": 52 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1638, + "end": 1690, + "loc": { + "start": { + "line": 58, + "column": 52 + }, + "end": { + "line": 58, + "column": 104 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1638, + "end": 1644, + "loc": { + "start": { + "line": 58, + "column": 52 + }, + "end": { + "line": 58, + "column": 58 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 1639, + "end": 1643, + "loc": { + "start": { + "line": 58, + "column": 53 + }, + "end": { + "line": 58, + "column": 57 + } + }, + "name": "span" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1683, + "end": 1690, + "loc": { + "start": { + "line": 58, + "column": 97 + }, + "end": { + "line": 58, + "column": 104 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1685, + "end": 1689, + "loc": { + "start": { + "line": 58, + "column": 99 + }, + "end": { + "line": 58, + "column": 103 + } + }, + "name": "span" + } + }, + "children": [ + { + "type": "JSXExpressionContainer", + "start": 1644, + "end": 1676, + "loc": { + "start": { + "line": 58, + "column": 58 + }, + "end": { + "line": 58, + "column": 90 + } + }, + "expression": { + "type": "CallExpression", + "start": 1645, + "end": 1675, + "loc": { + "start": { + "line": 58, + "column": 59 + }, + "end": { + "line": 58, + "column": 89 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1645, + "end": 1668, + "loc": { + "start": { + "line": 58, + "column": 59 + }, + "end": { + "line": 58, + "column": 82 + } + }, + "object": { + "type": "CallExpression", + "start": 1645, + "end": 1661, + "loc": { + "start": { + "line": 58, + "column": 59 + }, + "end": { + "line": 58, + "column": 75 + } + }, + "callee": { + "type": "Identifier", + "start": 1645, + "end": 1652, + "loc": { + "start": { + "line": 58, + "column": 59 + }, + "end": { + "line": 58, + "column": 66 + } + }, + "name": "numeral" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 1653, + "end": 1660, + "loc": { + "start": { + "line": 58, + "column": 67 + }, + "end": { + "line": 58, + "column": 74 + } + }, + "object": { + "type": "Identifier", + "start": 1653, + "end": 1654, + "loc": { + "start": { + "line": 58, + "column": 67 + }, + "end": { + "line": 58, + "column": 68 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 1655, + "end": 1660, + "loc": { + "start": { + "line": 58, + "column": 69 + }, + "end": { + "line": 58, + "column": 74 + } + }, + "name": "count" + }, + "computed": false + } + ] + }, + "property": { + "type": "Identifier", + "start": 1662, + "end": 1668, + "loc": { + "start": { + "line": 58, + "column": 76 + }, + "end": { + "line": 58, + "column": 82 + } + }, + "name": "format" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 1669, + "end": 1674, + "loc": { + "start": { + "line": 58, + "column": 83 + }, + "end": { + "line": 58, + "column": 88 + } + }, + "value": "0,0", + "rawValue": "0,0", + "raw": "'0,0'" + } + ] + } + }, + { + "type": "Literal", + "start": 1676, + "end": 1683, + "loc": { + "start": { + "line": 58, + "column": 90 + }, + "end": { + "line": 58, + "column": 97 + } + }, + "value": " Photos", + "rawValue": null, + "raw": " Photos" + } + ] + }, + { + "type": "Literal", + "start": 1690, + "end": 1739, + "loc": { + "start": { + "line": 58, + "column": 104 + }, + "end": { + "line": 59, + "column": 48 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 1745, + "end": 1790, + "loc": { + "start": { + "line": 59, + "column": 54 + }, + "end": { + "line": 60, + "column": 44 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + } + } + ], + "test": { + "type": "Literal", + "start": 1226, + "end": 1236, + "loc": { + "start": { + "line": 53, + "column": 45 + }, + "end": { + "line": 53, + "column": 55 + } + }, + "value": "hashtags", + "rawValue": "hashtags", + "raw": "'hashtags'" + } + }, + { + "type": "SwitchCase", + "start": 1837, + "end": 2056, + "loc": { + "start": { + "line": 62, + "column": 40 + }, + "end": { + "line": 64, + "column": 113 + } + }, + "consequent": [ + { + "type": "ReturnStatement", + "start": 1898, + "end": 2056, + "loc": { + "start": { + "line": 63, + "column": 44 + }, + "end": { + "line": 64, + "column": 113 + } + }, + "argument": { + "type": "JSXElement", + "start": 1905, + "end": 2056, + "loc": { + "start": { + "line": 63, + "column": 51 + }, + "end": { + "line": 64, + "column": 113 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1905, + "end": 2043, + "loc": { + "start": { + "line": 63, + "column": 51 + }, + "end": { + "line": 64, + "column": 100 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1909, + "end": 1942, + "loc": { + "start": { + "line": 63, + "column": 55 + }, + "end": { + "line": 63, + "column": 88 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1909, + "end": 1912, + "loc": { + "start": { + "line": 63, + "column": 55 + }, + "end": { + "line": 63, + "column": 58 + } + }, + "name": "key" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 1913, + "end": 1942, + "loc": { + "start": { + "line": 63, + "column": 59 + }, + "end": { + "line": 63, + "column": 88 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 1914, + "end": 1941, + "loc": { + "start": { + "line": 63, + "column": 60 + }, + "end": { + "line": 63, + "column": 87 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 1933, + "end": 1939, + "loc": { + "start": { + "line": 63, + "column": 79 + }, + "end": { + "line": 63, + "column": 85 + } + }, + "object": { + "type": "Identifier", + "start": 1933, + "end": 1934, + "loc": { + "start": { + "line": 63, + "column": 79 + }, + "end": { + "line": 63, + "column": 80 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 1935, + "end": 1939, + "loc": { + "start": { + "line": 63, + "column": 81 + }, + "end": { + "line": 63, + "column": 85 + } + }, + "name": "word" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 1915, + "end": 1931, + "loc": { + "start": { + "line": 63, + "column": 61 + }, + "end": { + "line": 63, + "column": 77 + } + }, + "value": { + "raw": "result-location-", + "cooked": "result-location-" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 1940, + "end": 1940, + "loc": { + "start": { + "line": 63, + "column": 86 + }, + "end": { + "line": 63, + "column": 86 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + }, + { + "type": "JSXAttribute", + "start": 1998, + "end": 2042, + "loc": { + "start": { + "line": 64, + "column": 55 + }, + "end": { + "line": 64, + "column": 99 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1998, + "end": 2005, + "loc": { + "start": { + "line": 64, + "column": 55 + }, + "end": { + "line": 64, + "column": 62 + } + }, + "name": "onClick" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2006, + "end": 2042, + "loc": { + "start": { + "line": 64, + "column": 63 + }, + "end": { + "line": 64, + "column": 99 + } + }, + "expression": { + "type": "ArrowFunctionExpression", + "start": 2007, + "end": 2041, + "loc": { + "start": { + "line": 64, + "column": 64 + }, + "end": { + "line": 64, + "column": 98 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2008, + "end": 2009, + "loc": { + "start": { + "line": 64, + "column": 65 + }, + "end": { + "line": 64, + "column": 66 + } + }, + "name": "e" + } + ], + "body": { + "type": "CallExpression", + "start": 2014, + "end": 2041, + "loc": { + "start": { + "line": 64, + "column": 71 + }, + "end": { + "line": 64, + "column": 98 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2014, + "end": 2032, + "loc": { + "start": { + "line": 64, + "column": 71 + }, + "end": { + "line": 64, + "column": 89 + } + }, + "object": { + "type": "MemberExpression", + "start": 2014, + "end": 2024, + "loc": { + "start": { + "line": 64, + "column": 71 + }, + "end": { + "line": 64, + "column": 81 + } + }, + "object": { + "type": "ThisExpression", + "start": 2014, + "end": 2018, + "loc": { + "start": { + "line": 64, + "column": 71 + }, + "end": { + "line": 64, + "column": 75 + } + } + }, + "property": { + "type": "Identifier", + "start": 2019, + "end": 2024, + "loc": { + "start": { + "line": 64, + "column": 76 + }, + "end": { + "line": 64, + "column": 81 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2025, + "end": 2032, + "loc": { + "start": { + "line": 64, + "column": 82 + }, + "end": { + "line": 64, + "column": 89 + } + }, + "name": "onClick" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 2033, + "end": 2034, + "loc": { + "start": { + "line": 64, + "column": 90 + }, + "end": { + "line": 64, + "column": 91 + } + }, + "name": "e" + }, + { + "type": "Identifier", + "start": 2036, + "end": 2037, + "loc": { + "start": { + "line": 64, + "column": 93 + }, + "end": { + "line": 64, + "column": 94 + } + }, + "name": "i" + }, + { + "type": "Identifier", + "start": 2039, + "end": 2040, + "loc": { + "start": { + "line": 64, + "column": 96 + }, + "end": { + "line": 64, + "column": 97 + } + }, + "name": "r" + } + ] + } + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1906, + "end": 1908, + "loc": { + "start": { + "line": 63, + "column": 52 + }, + "end": { + "line": 63, + "column": 54 + } + }, + "name": "li" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2051, + "end": 2056, + "loc": { + "start": { + "line": 64, + "column": 108 + }, + "end": { + "line": 64, + "column": 113 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2053, + "end": 2055, + "loc": { + "start": { + "line": 64, + "column": 110 + }, + "end": { + "line": 64, + "column": 112 + } + }, + "name": "li" + } + }, + "children": [ + { + "type": "JSXExpressionContainer", + "start": 2043, + "end": 2051, + "loc": { + "start": { + "line": 64, + "column": 100 + }, + "end": { + "line": 64, + "column": 108 + } + }, + "expression": { + "type": "MemberExpression", + "start": 2044, + "end": 2050, + "loc": { + "start": { + "line": 64, + "column": 101 + }, + "end": { + "line": 64, + "column": 107 + } + }, + "object": { + "type": "Identifier", + "start": 2044, + "end": 2045, + "loc": { + "start": { + "line": 64, + "column": 101 + }, + "end": { + "line": 64, + "column": 102 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 2046, + "end": 2050, + "loc": { + "start": { + "line": 64, + "column": 103 + }, + "end": { + "line": 64, + "column": 107 + } + }, + "name": "word" + }, + "computed": false + } + } + ] + } + } + ], + "test": { + "type": "Literal", + "start": 1842, + "end": 1852, + "loc": { + "start": { + "line": 62, + "column": 45 + }, + "end": { + "line": 62, + "column": 55 + } + }, + "value": "location", + "rawValue": "location", + "raw": "'location'" + } + }, + { + "type": "SwitchCase", + "start": 2098, + "end": 2785, + "loc": { + "start": { + "line": 66, + "column": 40 + }, + "end": { + "line": 75, + "column": 45 + } + }, + "consequent": [ + { + "type": "ReturnStatement", + "start": 2155, + "end": 2785, + "loc": { + "start": { + "line": 67, + "column": 44 + }, + "end": { + "line": 75, + "column": 45 + } + }, + "argument": { + "type": "JSXElement", + "start": 2212, + "end": 2739, + "loc": { + "start": { + "line": 68, + "column": 48 + }, + "end": { + "line": 74, + "column": 53 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2212, + "end": 2349, + "loc": { + "start": { + "line": 68, + "column": 48 + }, + "end": { + "line": 69, + "column": 97 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2216, + "end": 2251, + "loc": { + "start": { + "line": 68, + "column": 52 + }, + "end": { + "line": 68, + "column": 87 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2216, + "end": 2219, + "loc": { + "start": { + "line": 68, + "column": 52 + }, + "end": { + "line": 68, + "column": 55 + } + }, + "name": "key" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2220, + "end": 2251, + "loc": { + "start": { + "line": 68, + "column": 56 + }, + "end": { + "line": 68, + "column": 87 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 2221, + "end": 2250, + "loc": { + "start": { + "line": 68, + "column": 57 + }, + "end": { + "line": 68, + "column": 86 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 2236, + "end": 2248, + "loc": { + "start": { + "line": 68, + "column": 72 + }, + "end": { + "line": 68, + "column": 84 + } + }, + "object": { + "type": "MemberExpression", + "start": 2236, + "end": 2242, + "loc": { + "start": { + "line": 68, + "column": 72 + }, + "end": { + "line": 68, + "column": 78 + } + }, + "object": { + "type": "Identifier", + "start": 2236, + "end": 2237, + "loc": { + "start": { + "line": 68, + "column": 72 + }, + "end": { + "line": 68, + "column": 73 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 2238, + "end": 2242, + "loc": { + "start": { + "line": 68, + "column": 74 + }, + "end": { + "line": 68, + "column": 78 + } + }, + "name": "word" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2243, + "end": 2248, + "loc": { + "start": { + "line": 68, + "column": 79 + }, + "end": { + "line": 68, + "column": 84 + } + }, + "name": "email" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 2222, + "end": 2234, + "loc": { + "start": { + "line": 68, + "column": 58 + }, + "end": { + "line": 68, + "column": 70 + } + }, + "value": { + "raw": "result-user-", + "cooked": "result-user-" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 2249, + "end": 2249, + "loc": { + "start": { + "line": 68, + "column": 85 + }, + "end": { + "line": 68, + "column": 85 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + }, + { + "type": "JSXAttribute", + "start": 2304, + "end": 2348, + "loc": { + "start": { + "line": 69, + "column": 52 + }, + "end": { + "line": 69, + "column": 96 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2304, + "end": 2311, + "loc": { + "start": { + "line": 69, + "column": 52 + }, + "end": { + "line": 69, + "column": 59 + } + }, + "name": "onClick" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2312, + "end": 2348, + "loc": { + "start": { + "line": 69, + "column": 60 + }, + "end": { + "line": 69, + "column": 96 + } + }, + "expression": { + "type": "ArrowFunctionExpression", + "start": 2313, + "end": 2347, + "loc": { + "start": { + "line": 69, + "column": 61 + }, + "end": { + "line": 69, + "column": 95 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2314, + "end": 2315, + "loc": { + "start": { + "line": 69, + "column": 62 + }, + "end": { + "line": 69, + "column": 63 + } + }, + "name": "e" + } + ], + "body": { + "type": "CallExpression", + "start": 2320, + "end": 2347, + "loc": { + "start": { + "line": 69, + "column": 68 + }, + "end": { + "line": 69, + "column": 95 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2320, + "end": 2338, + "loc": { + "start": { + "line": 69, + "column": 68 + }, + "end": { + "line": 69, + "column": 86 + } + }, + "object": { + "type": "MemberExpression", + "start": 2320, + "end": 2330, + "loc": { + "start": { + "line": 69, + "column": 68 + }, + "end": { + "line": 69, + "column": 78 + } + }, + "object": { + "type": "ThisExpression", + "start": 2320, + "end": 2324, + "loc": { + "start": { + "line": 69, + "column": 68 + }, + "end": { + "line": 69, + "column": 72 + } + } + }, + "property": { + "type": "Identifier", + "start": 2325, + "end": 2330, + "loc": { + "start": { + "line": 69, + "column": 73 + }, + "end": { + "line": 69, + "column": 78 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2331, + "end": 2338, + "loc": { + "start": { + "line": 69, + "column": 79 + }, + "end": { + "line": 69, + "column": 86 + } + }, + "name": "onClick" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 2339, + "end": 2340, + "loc": { + "start": { + "line": 69, + "column": 87 + }, + "end": { + "line": 69, + "column": 88 + } + }, + "name": "e" + }, + { + "type": "Identifier", + "start": 2342, + "end": 2343, + "loc": { + "start": { + "line": 69, + "column": 90 + }, + "end": { + "line": 69, + "column": 91 + } + }, + "name": "i" + }, + { + "type": "Identifier", + "start": 2345, + "end": 2346, + "loc": { + "start": { + "line": 69, + "column": 93 + }, + "end": { + "line": 69, + "column": 94 + } + }, + "name": "r" + } + ] + } + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2213, + "end": 2215, + "loc": { + "start": { + "line": 68, + "column": 49 + }, + "end": { + "line": 68, + "column": 51 + } + }, + "name": "li" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2734, + "end": 2739, + "loc": { + "start": { + "line": 74, + "column": 48 + }, + "end": { + "line": 74, + "column": 53 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2736, + "end": 2738, + "loc": { + "start": { + "line": 74, + "column": 50 + }, + "end": { + "line": 74, + "column": 52 + } + }, + "name": "li" + } + }, + "children": [ + { + "type": "Literal", + "start": 2349, + "end": 2402, + "loc": { + "start": { + "line": 69, + "column": 97 + }, + "end": { + "line": 70, + "column": 52 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 2402, + "end": 2685, + "loc": { + "start": { + "line": 70, + "column": 52 + }, + "end": { + "line": 73, + "column": 58 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2402, + "end": 2444, + "loc": { + "start": { + "line": 70, + "column": 52 + }, + "end": { + "line": 70, + "column": 94 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2407, + "end": 2443, + "loc": { + "start": { + "line": 70, + "column": 57 + }, + "end": { + "line": 70, + "column": 93 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2407, + "end": 2416, + "loc": { + "start": { + "line": 70, + "column": 57 + }, + "end": { + "line": 70, + "column": 66 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 2417, + "end": 2443, + "loc": { + "start": { + "line": 70, + "column": 67 + }, + "end": { + "line": 70, + "column": 93 + } + }, + "value": "result-inner result-user", + "rawValue": null, + "raw": "\"result-inner result-user\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2403, + "end": 2406, + "loc": { + "start": { + "line": 70, + "column": 53 + }, + "end": { + "line": 70, + "column": 56 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2679, + "end": 2685, + "loc": { + "start": { + "line": 73, + "column": 52 + }, + "end": { + "line": 73, + "column": 58 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2681, + "end": 2684, + "loc": { + "start": { + "line": 73, + "column": 54 + }, + "end": { + "line": 73, + "column": 57 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 2444, + "end": 2501, + "loc": { + "start": { + "line": 70, + "column": 94 + }, + "end": { + "line": 71, + "column": 56 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 2501, + "end": 2543, + "loc": { + "start": { + "line": 71, + "column": 56 + }, + "end": { + "line": 71, + "column": 98 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2501, + "end": 2543, + "loc": { + "start": { + "line": 71, + "column": 56 + }, + "end": { + "line": 71, + "column": 98 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2509, + "end": 2529, + "loc": { + "start": { + "line": 71, + "column": 64 + }, + "end": { + "line": 71, + "column": 84 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2509, + "end": 2514, + "loc": { + "start": { + "line": 71, + "column": 64 + }, + "end": { + "line": 71, + "column": 69 + } + }, + "name": "email" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2515, + "end": 2529, + "loc": { + "start": { + "line": 71, + "column": 70 + }, + "end": { + "line": 71, + "column": 84 + } + }, + "expression": { + "type": "MemberExpression", + "start": 2516, + "end": 2528, + "loc": { + "start": { + "line": 71, + "column": 71 + }, + "end": { + "line": 71, + "column": 83 + } + }, + "object": { + "type": "MemberExpression", + "start": 2516, + "end": 2522, + "loc": { + "start": { + "line": 71, + "column": 71 + }, + "end": { + "line": 71, + "column": 77 + } + }, + "object": { + "type": "Identifier", + "start": 2516, + "end": 2517, + "loc": { + "start": { + "line": 71, + "column": 71 + }, + "end": { + "line": 71, + "column": 72 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 2518, + "end": 2522, + "loc": { + "start": { + "line": 71, + "column": 73 + }, + "end": { + "line": 71, + "column": 77 + } + }, + "name": "word" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2523, + "end": 2528, + "loc": { + "start": { + "line": 71, + "column": 78 + }, + "end": { + "line": 71, + "column": 83 + } + }, + "name": "email" + }, + "computed": false + } + } + }, + { + "type": "JSXAttribute", + "start": 2530, + "end": 2541, + "loc": { + "start": { + "line": 71, + "column": 85 + }, + "end": { + "line": 71, + "column": 96 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2530, + "end": 2536, + "loc": { + "start": { + "line": 71, + "column": 85 + }, + "end": { + "line": 71, + "column": 91 + } + }, + "name": "height" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2537, + "end": 2541, + "loc": { + "start": { + "line": 71, + "column": 92 + }, + "end": { + "line": 71, + "column": 96 + } + }, + "expression": { + "type": "Literal", + "start": 2538, + "end": 2540, + "loc": { + "start": { + "line": 71, + "column": 93 + }, + "end": { + "line": 71, + "column": 95 + } + }, + "value": 50, + "rawValue": 50, + "raw": "50" + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2502, + "end": 2508, + "loc": { + "start": { + "line": 71, + "column": 57 + }, + "end": { + "line": 71, + "column": 63 + } + }, + "name": "Avatar" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 2543, + "end": 2600, + "loc": { + "start": { + "line": 71, + "column": 98 + }, + "end": { + "line": 72, + "column": 56 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 2600, + "end": 2626, + "loc": { + "start": { + "line": 72, + "column": 56 + }, + "end": { + "line": 72, + "column": 82 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2600, + "end": 2606, + "loc": { + "start": { + "line": 72, + "column": 56 + }, + "end": { + "line": 72, + "column": 62 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 2601, + "end": 2605, + "loc": { + "start": { + "line": 72, + "column": 57 + }, + "end": { + "line": 72, + "column": 61 + } + }, + "name": "span" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2619, + "end": 2626, + "loc": { + "start": { + "line": 72, + "column": 75 + }, + "end": { + "line": 72, + "column": 82 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2621, + "end": 2625, + "loc": { + "start": { + "line": 72, + "column": 77 + }, + "end": { + "line": 72, + "column": 81 + } + }, + "name": "span" + } + }, + "children": [ + { + "type": "JSXExpressionContainer", + "start": 2606, + "end": 2619, + "loc": { + "start": { + "line": 72, + "column": 62 + }, + "end": { + "line": 72, + "column": 75 + } + }, + "expression": { + "type": "MemberExpression", + "start": 2607, + "end": 2618, + "loc": { + "start": { + "line": 72, + "column": 63 + }, + "end": { + "line": 72, + "column": 74 + } + }, + "object": { + "type": "MemberExpression", + "start": 2607, + "end": 2613, + "loc": { + "start": { + "line": 72, + "column": 63 + }, + "end": { + "line": 72, + "column": 69 + } + }, + "object": { + "type": "Identifier", + "start": 2607, + "end": 2608, + "loc": { + "start": { + "line": 72, + "column": 63 + }, + "end": { + "line": 72, + "column": 64 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 2609, + "end": 2613, + "loc": { + "start": { + "line": 72, + "column": 65 + }, + "end": { + "line": 72, + "column": 69 + } + }, + "name": "word" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2614, + "end": 2618, + "loc": { + "start": { + "line": 72, + "column": 70 + }, + "end": { + "line": 72, + "column": 74 + } + }, + "name": "name" + }, + "computed": false + } + } + ] + }, + { + "type": "Literal", + "start": 2626, + "end": 2679, + "loc": { + "start": { + "line": 72, + "column": 82 + }, + "end": { + "line": 73, + "column": 52 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 2685, + "end": 2734, + "loc": { + "start": { + "line": 73, + "column": 58 + }, + "end": { + "line": 74, + "column": 48 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ], + "test": { + "type": "Literal", + "start": 2103, + "end": 2109, + "loc": { + "start": { + "line": 66, + "column": 45 + }, + "end": { + "line": 66, + "column": 51 + } + }, + "value": "user", + "rawValue": "user", + "raw": "'user'" + } + } + ] + } + ] + } + } + ] + } + }, + { + "type": "Literal", + "start": 2860, + "end": 2885, + "loc": { + "start": { + "line": 78, + "column": 35 + }, + "end": { + "line": 79, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 2890, + "end": 2911, + "loc": { + "start": { + "line": 79, + "column": 29 + }, + "end": { + "line": 80, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 2917, + "end": 2934, + "loc": { + "start": { + "line": 80, + "column": 26 + }, + "end": { + "line": 81, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 2940, + "end": 2958, + "loc": { + "start": { + "line": 81, + "column": 22 + }, + "end": { + "line": 83, + "column": 16 + } + }, + "value": "\n\n ", + "rawValue": null, + "raw": "\n\n " + }, + { + "type": "JSXElement", + "start": 2958, + "end": 3812, + "loc": { + "start": { + "line": 83, + "column": 16 + }, + "end": { + "line": 99, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2958, + "end": 2996, + "loc": { + "start": { + "line": 83, + "column": 16 + }, + "end": { + "line": 83, + "column": 54 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2963, + "end": 2981, + "loc": { + "start": { + "line": 83, + "column": 21 + }, + "end": { + "line": 83, + "column": 39 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2963, + "end": 2966, + "loc": { + "start": { + "line": 83, + "column": 21 + }, + "end": { + "line": 83, + "column": 24 + } + }, + "name": "key" + }, + "value": { + "type": "Literal", + "start": 2967, + "end": 2981, + "loc": { + "start": { + "line": 83, + "column": 25 + }, + "end": { + "line": 83, + "column": 39 + } + }, + "value": "filter-users", + "rawValue": null, + "raw": "\"filter-users\"" + } + }, + { + "type": "JSXAttribute", + "start": 2982, + "end": 2995, + "loc": { + "start": { + "line": 83, + "column": 40 + }, + "end": { + "line": 83, + "column": 53 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2982, + "end": 2987, + "loc": { + "start": { + "line": 83, + "column": 40 + }, + "end": { + "line": 83, + "column": 45 + } + }, + "name": "label" + }, + "value": { + "type": "Literal", + "start": 2988, + "end": 2995, + "loc": { + "start": { + "line": 83, + "column": 46 + }, + "end": { + "line": 83, + "column": 53 + } + }, + "value": "Users", + "rawValue": null, + "raw": "\"Users\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2959, + "end": 2962, + "loc": { + "start": { + "line": 83, + "column": 17 + }, + "end": { + "line": 83, + "column": 20 + } + }, + "name": "Tab" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3806, + "end": 3812, + "loc": { + "start": { + "line": 99, + "column": 16 + }, + "end": { + "line": 99, + "column": 22 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3808, + "end": 3811, + "loc": { + "start": { + "line": 99, + "column": 18 + }, + "end": { + "line": 99, + "column": 21 + } + }, + "name": "Tab" + } + }, + "children": [ + { + "type": "Literal", + "start": 2996, + "end": 3017, + "loc": { + "start": { + "line": 83, + "column": 54 + }, + "end": { + "line": 84, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 3017, + "end": 3789, + "loc": { + "start": { + "line": 84, + "column": 20 + }, + "end": { + "line": 98, + "column": 26 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3017, + "end": 3042, + "loc": { + "start": { + "line": 84, + "column": 20 + }, + "end": { + "line": 84, + "column": 45 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3022, + "end": 3041, + "loc": { + "start": { + "line": 84, + "column": 25 + }, + "end": { + "line": 84, + "column": 44 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3022, + "end": 3031, + "loc": { + "start": { + "line": 84, + "column": 25 + }, + "end": { + "line": 84, + "column": 34 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 3032, + "end": 3041, + "loc": { + "start": { + "line": 84, + "column": 35 + }, + "end": { + "line": 84, + "column": 44 + } + }, + "value": "results", + "rawValue": null, + "raw": "\"results\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3018, + "end": 3021, + "loc": { + "start": { + "line": 84, + "column": 21 + }, + "end": { + "line": 84, + "column": 24 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3783, + "end": 3789, + "loc": { + "start": { + "line": 98, + "column": 20 + }, + "end": { + "line": 98, + "column": 26 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3785, + "end": 3788, + "loc": { + "start": { + "line": 98, + "column": 22 + }, + "end": { + "line": 98, + "column": 25 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 3042, + "end": 3067, + "loc": { + "start": { + "line": 84, + "column": 45 + }, + "end": { + "line": 85, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 3067, + "end": 3762, + "loc": { + "start": { + "line": 85, + "column": 24 + }, + "end": { + "line": 97, + "column": 29 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3067, + "end": 3071, + "loc": { + "start": { + "line": 85, + "column": 24 + }, + "end": { + "line": 85, + "column": 28 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 3068, + "end": 3070, + "loc": { + "start": { + "line": 85, + "column": 25 + }, + "end": { + "line": 85, + "column": 27 + } + }, + "name": "ul" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3757, + "end": 3762, + "loc": { + "start": { + "line": 97, + "column": 24 + }, + "end": { + "line": 97, + "column": 29 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3759, + "end": 3761, + "loc": { + "start": { + "line": 97, + "column": 26 + }, + "end": { + "line": 97, + "column": 28 + } + }, + "name": "ul" + } + }, + "children": [ + { + "type": "Literal", + "start": 3071, + "end": 3100, + "loc": { + "start": { + "line": 85, + "column": 28 + }, + "end": { + "line": 86, + "column": 28 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 3100, + "end": 3732, + "loc": { + "start": { + "line": 86, + "column": 28 + }, + "end": { + "line": 96, + "column": 30 + } + }, + "expression": { + "type": "CallExpression", + "start": 3101, + "end": 3731, + "loc": { + "start": { + "line": 86, + "column": 29 + }, + "end": { + "line": 96, + "column": 29 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3101, + "end": 3119, + "loc": { + "start": { + "line": 86, + "column": 29 + }, + "end": { + "line": 86, + "column": 47 + } + }, + "object": { + "type": "ThisExpression", + "start": 3101, + "end": 3105, + "loc": { + "start": { + "line": 86, + "column": 29 + }, + "end": { + "line": 86, + "column": 33 + } + } + }, + "property": { + "type": "Identifier", + "start": 3106, + "end": 3119, + "loc": { + "start": { + "line": 86, + "column": 34 + }, + "end": { + "line": 86, + "column": 47 + } + }, + "name": "renderResults" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 3153, + "end": 3174, + "loc": { + "start": { + "line": 87, + "column": 32 + }, + "end": { + "line": 87, + "column": 53 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 3153, + "end": 3154, + "loc": { + "start": { + "line": 87, + "column": 32 + }, + "end": { + "line": 87, + "column": 33 + } + }, + "name": "r" + } + ], + "body": { + "type": "BinaryExpression", + "start": 3158, + "end": 3174, + "loc": { + "start": { + "line": 87, + "column": 37 + }, + "end": { + "line": 87, + "column": 53 + } + }, + "left": { + "type": "MemberExpression", + "start": 3158, + "end": 3164, + "loc": { + "start": { + "line": 87, + "column": 37 + }, + "end": { + "line": 87, + "column": 43 + } + }, + "object": { + "type": "Identifier", + "start": 3158, + "end": 3159, + "loc": { + "start": { + "line": 87, + "column": 37 + }, + "end": { + "line": 87, + "column": 38 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 3160, + "end": 3164, + "loc": { + "start": { + "line": 87, + "column": 39 + }, + "end": { + "line": 87, + "column": 43 + } + }, + "name": "type" + }, + "computed": false + }, + "operator": "==", + "right": { + "type": "Literal", + "start": 3168, + "end": 3174, + "loc": { + "start": { + "line": 87, + "column": 47 + }, + "end": { + "line": 87, + "column": 53 + } + }, + "value": "user", + "rawValue": "user", + "raw": "'user'" + } + } + }, + { + "type": "ArrowFunctionExpression", + "start": 3208, + "end": 3701, + "loc": { + "start": { + "line": 88, + "column": 32 + }, + "end": { + "line": 95, + "column": 33 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 3209, + "end": 3210, + "loc": { + "start": { + "line": 88, + "column": 33 + }, + "end": { + "line": 88, + "column": 34 + } + }, + "name": "r" + }, + { + "type": "Identifier", + "start": 3212, + "end": 3213, + "loc": { + "start": { + "line": 88, + "column": 36 + }, + "end": { + "line": 88, + "column": 37 + } + }, + "name": "i" + } + ], + "body": { + "type": "JSXElement", + "start": 3256, + "end": 3667, + "loc": { + "start": { + "line": 89, + "column": 36 + }, + "end": { + "line": 94, + "column": 41 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3256, + "end": 3381, + "loc": { + "start": { + "line": 89, + "column": 36 + }, + "end": { + "line": 90, + "column": 85 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3260, + "end": 3295, + "loc": { + "start": { + "line": 89, + "column": 40 + }, + "end": { + "line": 89, + "column": 75 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3260, + "end": 3263, + "loc": { + "start": { + "line": 89, + "column": 40 + }, + "end": { + "line": 89, + "column": 43 + } + }, + "name": "key" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 3264, + "end": 3295, + "loc": { + "start": { + "line": 89, + "column": 44 + }, + "end": { + "line": 89, + "column": 75 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 3265, + "end": 3294, + "loc": { + "start": { + "line": 89, + "column": 45 + }, + "end": { + "line": 89, + "column": 74 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 3280, + "end": 3292, + "loc": { + "start": { + "line": 89, + "column": 60 + }, + "end": { + "line": 89, + "column": 72 + } + }, + "object": { + "type": "MemberExpression", + "start": 3280, + "end": 3286, + "loc": { + "start": { + "line": 89, + "column": 60 + }, + "end": { + "line": 89, + "column": 66 + } + }, + "object": { + "type": "Identifier", + "start": 3280, + "end": 3281, + "loc": { + "start": { + "line": 89, + "column": 60 + }, + "end": { + "line": 89, + "column": 61 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 3282, + "end": 3286, + "loc": { + "start": { + "line": 89, + "column": 62 + }, + "end": { + "line": 89, + "column": 66 + } + }, + "name": "word" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3287, + "end": 3292, + "loc": { + "start": { + "line": 89, + "column": 67 + }, + "end": { + "line": 89, + "column": 72 + } + }, + "name": "email" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 3266, + "end": 3278, + "loc": { + "start": { + "line": 89, + "column": 46 + }, + "end": { + "line": 89, + "column": 58 + } + }, + "value": { + "raw": "result-user-", + "cooked": "result-user-" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 3293, + "end": 3293, + "loc": { + "start": { + "line": 89, + "column": 73 + }, + "end": { + "line": 89, + "column": 73 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + }, + { + "type": "JSXAttribute", + "start": 3336, + "end": 3380, + "loc": { + "start": { + "line": 90, + "column": 40 + }, + "end": { + "line": 90, + "column": 84 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3336, + "end": 3343, + "loc": { + "start": { + "line": 90, + "column": 40 + }, + "end": { + "line": 90, + "column": 47 + } + }, + "name": "onClick" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 3344, + "end": 3380, + "loc": { + "start": { + "line": 90, + "column": 48 + }, + "end": { + "line": 90, + "column": 84 + } + }, + "expression": { + "type": "ArrowFunctionExpression", + "start": 3345, + "end": 3379, + "loc": { + "start": { + "line": 90, + "column": 49 + }, + "end": { + "line": 90, + "column": 83 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 3346, + "end": 3347, + "loc": { + "start": { + "line": 90, + "column": 50 + }, + "end": { + "line": 90, + "column": 51 + } + }, + "name": "e" + } + ], + "body": { + "type": "CallExpression", + "start": 3352, + "end": 3379, + "loc": { + "start": { + "line": 90, + "column": 56 + }, + "end": { + "line": 90, + "column": 83 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3352, + "end": 3370, + "loc": { + "start": { + "line": 90, + "column": 56 + }, + "end": { + "line": 90, + "column": 74 + } + }, + "object": { + "type": "MemberExpression", + "start": 3352, + "end": 3362, + "loc": { + "start": { + "line": 90, + "column": 56 + }, + "end": { + "line": 90, + "column": 66 + } + }, + "object": { + "type": "ThisExpression", + "start": 3352, + "end": 3356, + "loc": { + "start": { + "line": 90, + "column": 56 + }, + "end": { + "line": 90, + "column": 60 + } + } + }, + "property": { + "type": "Identifier", + "start": 3357, + "end": 3362, + "loc": { + "start": { + "line": 90, + "column": 61 + }, + "end": { + "line": 90, + "column": 66 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3363, + "end": 3370, + "loc": { + "start": { + "line": 90, + "column": 67 + }, + "end": { + "line": 90, + "column": 74 + } + }, + "name": "onClick" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 3371, + "end": 3372, + "loc": { + "start": { + "line": 90, + "column": 75 + }, + "end": { + "line": 90, + "column": 76 + } + }, + "name": "e" + }, + { + "type": "Identifier", + "start": 3374, + "end": 3375, + "loc": { + "start": { + "line": 90, + "column": 78 + }, + "end": { + "line": 90, + "column": 79 + } + }, + "name": "i" + }, + { + "type": "Identifier", + "start": 3377, + "end": 3378, + "loc": { + "start": { + "line": 90, + "column": 81 + }, + "end": { + "line": 90, + "column": 82 + } + }, + "name": "r" + } + ] + } + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3257, + "end": 3259, + "loc": { + "start": { + "line": 89, + "column": 37 + }, + "end": { + "line": 89, + "column": 39 + } + }, + "name": "li" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3662, + "end": 3667, + "loc": { + "start": { + "line": 94, + "column": 36 + }, + "end": { + "line": 94, + "column": 41 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3664, + "end": 3666, + "loc": { + "start": { + "line": 94, + "column": 38 + }, + "end": { + "line": 94, + "column": 40 + } + }, + "name": "li" + } + }, + "children": [ + { + "type": "Literal", + "start": 3381, + "end": 3422, + "loc": { + "start": { + "line": 90, + "column": 85 + }, + "end": { + "line": 91, + "column": 40 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 3422, + "end": 3625, + "loc": { + "start": { + "line": 91, + "column": 40 + }, + "end": { + "line": 93, + "column": 46 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3422, + "end": 3464, + "loc": { + "start": { + "line": 91, + "column": 40 + }, + "end": { + "line": 91, + "column": 82 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3427, + "end": 3463, + "loc": { + "start": { + "line": 91, + "column": 45 + }, + "end": { + "line": 91, + "column": 81 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3427, + "end": 3436, + "loc": { + "start": { + "line": 91, + "column": 45 + }, + "end": { + "line": 91, + "column": 54 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 3437, + "end": 3463, + "loc": { + "start": { + "line": 91, + "column": 55 + }, + "end": { + "line": 91, + "column": 81 + } + }, + "value": "result-inner result-user", + "rawValue": null, + "raw": "\"result-inner result-user\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3423, + "end": 3426, + "loc": { + "start": { + "line": 91, + "column": 41 + }, + "end": { + "line": 91, + "column": 44 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3619, + "end": 3625, + "loc": { + "start": { + "line": 93, + "column": 40 + }, + "end": { + "line": 93, + "column": 46 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3621, + "end": 3624, + "loc": { + "start": { + "line": 93, + "column": 42 + }, + "end": { + "line": 93, + "column": 45 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 3464, + "end": 3509, + "loc": { + "start": { + "line": 91, + "column": 82 + }, + "end": { + "line": 92, + "column": 44 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 3509, + "end": 3551, + "loc": { + "start": { + "line": 92, + "column": 44 + }, + "end": { + "line": 92, + "column": 86 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3509, + "end": 3551, + "loc": { + "start": { + "line": 92, + "column": 44 + }, + "end": { + "line": 92, + "column": 86 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3517, + "end": 3537, + "loc": { + "start": { + "line": 92, + "column": 52 + }, + "end": { + "line": 92, + "column": 72 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3517, + "end": 3522, + "loc": { + "start": { + "line": 92, + "column": 52 + }, + "end": { + "line": 92, + "column": 57 + } + }, + "name": "email" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 3523, + "end": 3537, + "loc": { + "start": { + "line": 92, + "column": 58 + }, + "end": { + "line": 92, + "column": 72 + } + }, + "expression": { + "type": "MemberExpression", + "start": 3524, + "end": 3536, + "loc": { + "start": { + "line": 92, + "column": 59 + }, + "end": { + "line": 92, + "column": 71 + } + }, + "object": { + "type": "MemberExpression", + "start": 3524, + "end": 3530, + "loc": { + "start": { + "line": 92, + "column": 59 + }, + "end": { + "line": 92, + "column": 65 + } + }, + "object": { + "type": "Identifier", + "start": 3524, + "end": 3525, + "loc": { + "start": { + "line": 92, + "column": 59 + }, + "end": { + "line": 92, + "column": 60 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 3526, + "end": 3530, + "loc": { + "start": { + "line": 92, + "column": 61 + }, + "end": { + "line": 92, + "column": 65 + } + }, + "name": "word" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3531, + "end": 3536, + "loc": { + "start": { + "line": 92, + "column": 66 + }, + "end": { + "line": 92, + "column": 71 + } + }, + "name": "email" + }, + "computed": false + } + } + }, + { + "type": "JSXAttribute", + "start": 3538, + "end": 3549, + "loc": { + "start": { + "line": 92, + "column": 73 + }, + "end": { + "line": 92, + "column": 84 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3538, + "end": 3544, + "loc": { + "start": { + "line": 92, + "column": 73 + }, + "end": { + "line": 92, + "column": 79 + } + }, + "name": "height" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 3545, + "end": 3549, + "loc": { + "start": { + "line": 92, + "column": 80 + }, + "end": { + "line": 92, + "column": 84 + } + }, + "expression": { + "type": "Literal", + "start": 3546, + "end": 3548, + "loc": { + "start": { + "line": 92, + "column": 81 + }, + "end": { + "line": 92, + "column": 83 + } + }, + "value": 50, + "rawValue": 50, + "raw": "50" + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3510, + "end": 3516, + "loc": { + "start": { + "line": 92, + "column": 45 + }, + "end": { + "line": 92, + "column": 51 + } + }, + "name": "Avatar" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 3551, + "end": 3552, + "loc": { + "start": { + "line": 92, + "column": 86 + }, + "end": { + "line": 92, + "column": 87 + } + }, + "value": " ", + "rawValue": null, + "raw": " " + }, + { + "type": "JSXElement", + "start": 3552, + "end": 3578, + "loc": { + "start": { + "line": 92, + "column": 87 + }, + "end": { + "line": 92, + "column": 113 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3552, + "end": 3558, + "loc": { + "start": { + "line": 92, + "column": 87 + }, + "end": { + "line": 92, + "column": 93 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 3553, + "end": 3557, + "loc": { + "start": { + "line": 92, + "column": 88 + }, + "end": { + "line": 92, + "column": 92 + } + }, + "name": "span" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3571, + "end": 3578, + "loc": { + "start": { + "line": 92, + "column": 106 + }, + "end": { + "line": 92, + "column": 113 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3573, + "end": 3577, + "loc": { + "start": { + "line": 92, + "column": 108 + }, + "end": { + "line": 92, + "column": 112 + } + }, + "name": "span" + } + }, + "children": [ + { + "type": "JSXExpressionContainer", + "start": 3558, + "end": 3571, + "loc": { + "start": { + "line": 92, + "column": 93 + }, + "end": { + "line": 92, + "column": 106 + } + }, + "expression": { + "type": "MemberExpression", + "start": 3559, + "end": 3570, + "loc": { + "start": { + "line": 92, + "column": 94 + }, + "end": { + "line": 92, + "column": 105 + } + }, + "object": { + "type": "MemberExpression", + "start": 3559, + "end": 3565, + "loc": { + "start": { + "line": 92, + "column": 94 + }, + "end": { + "line": 92, + "column": 100 + } + }, + "object": { + "type": "Identifier", + "start": 3559, + "end": 3560, + "loc": { + "start": { + "line": 92, + "column": 94 + }, + "end": { + "line": 92, + "column": 95 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 3561, + "end": 3565, + "loc": { + "start": { + "line": 92, + "column": 96 + }, + "end": { + "line": 92, + "column": 100 + } + }, + "name": "word" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3566, + "end": 3570, + "loc": { + "start": { + "line": 92, + "column": 101 + }, + "end": { + "line": 92, + "column": 105 + } + }, + "name": "name" + }, + "computed": false + } + } + ] + }, + { + "type": "Literal", + "start": 3578, + "end": 3619, + "loc": { + "start": { + "line": 92, + "column": 113 + }, + "end": { + "line": 93, + "column": 40 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 3625, + "end": 3662, + "loc": { + "start": { + "line": 93, + "column": 46 + }, + "end": { + "line": 94, + "column": 36 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + { + "type": "Literal", + "start": 3732, + "end": 3757, + "loc": { + "start": { + "line": 96, + "column": 30 + }, + "end": { + "line": 97, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 3762, + "end": 3783, + "loc": { + "start": { + "line": 97, + "column": 29 + }, + "end": { + "line": 98, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 3789, + "end": 3806, + "loc": { + "start": { + "line": 98, + "column": 26 + }, + "end": { + "line": 99, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 3812, + "end": 3830, + "loc": { + "start": { + "line": 99, + "column": 22 + }, + "end": { + "line": 101, + "column": 16 + } + }, + "value": "\n\n ", + "rawValue": null, + "raw": "\n\n " + }, + { + "type": "JSXElement", + "start": 3830, + "end": 4391, + "loc": { + "start": { + "line": 101, + "column": 16 + }, + "end": { + "line": 112, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3830, + "end": 3875, + "loc": { + "start": { + "line": 101, + "column": 16 + }, + "end": { + "line": 101, + "column": 61 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3835, + "end": 3857, + "loc": { + "start": { + "line": 101, + "column": 21 + }, + "end": { + "line": 101, + "column": 43 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3835, + "end": 3838, + "loc": { + "start": { + "line": 101, + "column": 21 + }, + "end": { + "line": 101, + "column": 24 + } + }, + "name": "key" + }, + "value": { + "type": "Literal", + "start": 3839, + "end": 3857, + "loc": { + "start": { + "line": 101, + "column": 25 + }, + "end": { + "line": 101, + "column": 43 + } + }, + "value": "filter-locations", + "rawValue": null, + "raw": "\"filter-locations\"" + } + }, + { + "type": "JSXAttribute", + "start": 3858, + "end": 3874, + "loc": { + "start": { + "line": 101, + "column": 44 + }, + "end": { + "line": 101, + "column": 60 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3858, + "end": 3863, + "loc": { + "start": { + "line": 101, + "column": 44 + }, + "end": { + "line": 101, + "column": 49 + } + }, + "name": "label" + }, + "value": { + "type": "Literal", + "start": 3864, + "end": 3874, + "loc": { + "start": { + "line": 101, + "column": 50 + }, + "end": { + "line": 101, + "column": 60 + } + }, + "value": "Location", + "rawValue": null, + "raw": "\"Location\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3831, + "end": 3834, + "loc": { + "start": { + "line": 101, + "column": 17 + }, + "end": { + "line": 101, + "column": 20 + } + }, + "name": "Tab" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 4385, + "end": 4391, + "loc": { + "start": { + "line": 112, + "column": 16 + }, + "end": { + "line": 112, + "column": 22 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4387, + "end": 4390, + "loc": { + "start": { + "line": 112, + "column": 18 + }, + "end": { + "line": 112, + "column": 21 + } + }, + "name": "Tab" + } + }, + "children": [ + { + "type": "Literal", + "start": 3875, + "end": 3896, + "loc": { + "start": { + "line": 101, + "column": 61 + }, + "end": { + "line": 102, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 3896, + "end": 4368, + "loc": { + "start": { + "line": 102, + "column": 20 + }, + "end": { + "line": 111, + "column": 26 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3896, + "end": 3921, + "loc": { + "start": { + "line": 102, + "column": 20 + }, + "end": { + "line": 102, + "column": 45 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3901, + "end": 3920, + "loc": { + "start": { + "line": 102, + "column": 25 + }, + "end": { + "line": 102, + "column": 44 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3901, + "end": 3910, + "loc": { + "start": { + "line": 102, + "column": 25 + }, + "end": { + "line": 102, + "column": 34 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 3911, + "end": 3920, + "loc": { + "start": { + "line": 102, + "column": 35 + }, + "end": { + "line": 102, + "column": 44 + } + }, + "value": "results", + "rawValue": null, + "raw": "\"results\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3897, + "end": 3900, + "loc": { + "start": { + "line": 102, + "column": 21 + }, + "end": { + "line": 102, + "column": 24 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 4362, + "end": 4368, + "loc": { + "start": { + "line": 111, + "column": 20 + }, + "end": { + "line": 111, + "column": 26 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4364, + "end": 4367, + "loc": { + "start": { + "line": 111, + "column": 22 + }, + "end": { + "line": 111, + "column": 25 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 3921, + "end": 3946, + "loc": { + "start": { + "line": 102, + "column": 45 + }, + "end": { + "line": 103, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 3946, + "end": 4341, + "loc": { + "start": { + "line": 103, + "column": 24 + }, + "end": { + "line": 110, + "column": 29 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3946, + "end": 3950, + "loc": { + "start": { + "line": 103, + "column": 24 + }, + "end": { + "line": 103, + "column": 28 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 3947, + "end": 3949, + "loc": { + "start": { + "line": 103, + "column": 25 + }, + "end": { + "line": 103, + "column": 27 + } + }, + "name": "ul" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 4336, + "end": 4341, + "loc": { + "start": { + "line": 110, + "column": 24 + }, + "end": { + "line": 110, + "column": 29 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4338, + "end": 4340, + "loc": { + "start": { + "line": 110, + "column": 26 + }, + "end": { + "line": 110, + "column": 28 + } + }, + "name": "ul" + } + }, + "children": [ + { + "type": "Literal", + "start": 3950, + "end": 3979, + "loc": { + "start": { + "line": 103, + "column": 28 + }, + "end": { + "line": 104, + "column": 28 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 3979, + "end": 4311, + "loc": { + "start": { + "line": 104, + "column": 28 + }, + "end": { + "line": 109, + "column": 35 + } + }, + "expression": { + "type": "CallExpression", + "start": 3980, + "end": 4310, + "loc": { + "start": { + "line": 104, + "column": 29 + }, + "end": { + "line": 109, + "column": 34 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3980, + "end": 3998, + "loc": { + "start": { + "line": 104, + "column": 29 + }, + "end": { + "line": 104, + "column": 47 + } + }, + "object": { + "type": "ThisExpression", + "start": 3980, + "end": 3984, + "loc": { + "start": { + "line": 104, + "column": 29 + }, + "end": { + "line": 104, + "column": 33 + } + } + }, + "property": { + "type": "Identifier", + "start": 3985, + "end": 3998, + "loc": { + "start": { + "line": 104, + "column": 34 + }, + "end": { + "line": 104, + "column": 47 + } + }, + "name": "renderResults" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 4032, + "end": 4057, + "loc": { + "start": { + "line": 105, + "column": 32 + }, + "end": { + "line": 105, + "column": 57 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 4032, + "end": 4033, + "loc": { + "start": { + "line": 105, + "column": 32 + }, + "end": { + "line": 105, + "column": 33 + } + }, + "name": "r" + } + ], + "body": { + "type": "BinaryExpression", + "start": 4037, + "end": 4057, + "loc": { + "start": { + "line": 105, + "column": 37 + }, + "end": { + "line": 105, + "column": 57 + } + }, + "left": { + "type": "MemberExpression", + "start": 4037, + "end": 4043, + "loc": { + "start": { + "line": 105, + "column": 37 + }, + "end": { + "line": 105, + "column": 43 + } + }, + "object": { + "type": "Identifier", + "start": 4037, + "end": 4038, + "loc": { + "start": { + "line": 105, + "column": 37 + }, + "end": { + "line": 105, + "column": 38 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 4039, + "end": 4043, + "loc": { + "start": { + "line": 105, + "column": 39 + }, + "end": { + "line": 105, + "column": 43 + } + }, + "name": "type" + }, + "computed": false + }, + "operator": "==", + "right": { + "type": "Literal", + "start": 4047, + "end": 4057, + "loc": { + "start": { + "line": 105, + "column": 47 + }, + "end": { + "line": 105, + "column": 57 + } + }, + "value": "location", + "rawValue": "location", + "raw": "'location'" + } + } + }, + { + "type": "ArrowFunctionExpression", + "start": 4091, + "end": 4309, + "loc": { + "start": { + "line": 106, + "column": 32 + }, + "end": { + "line": 109, + "column": 33 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 4092, + "end": 4093, + "loc": { + "start": { + "line": 106, + "column": 33 + }, + "end": { + "line": 106, + "column": 34 + } + }, + "name": "r" + }, + { + "type": "Identifier", + "start": 4095, + "end": 4096, + "loc": { + "start": { + "line": 106, + "column": 36 + }, + "end": { + "line": 106, + "column": 37 + } + }, + "name": "i" + } + ], + "body": { + "type": "JSXElement", + "start": 4139, + "end": 4275, + "loc": { + "start": { + "line": 107, + "column": 36 + }, + "end": { + "line": 108, + "column": 98 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 4139, + "end": 4262, + "loc": { + "start": { + "line": 107, + "column": 36 + }, + "end": { + "line": 108, + "column": 85 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 4143, + "end": 4176, + "loc": { + "start": { + "line": 107, + "column": 40 + }, + "end": { + "line": 107, + "column": 73 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4143, + "end": 4146, + "loc": { + "start": { + "line": 107, + "column": 40 + }, + "end": { + "line": 107, + "column": 43 + } + }, + "name": "key" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 4147, + "end": 4176, + "loc": { + "start": { + "line": 107, + "column": 44 + }, + "end": { + "line": 107, + "column": 73 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 4148, + "end": 4175, + "loc": { + "start": { + "line": 107, + "column": 45 + }, + "end": { + "line": 107, + "column": 72 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 4167, + "end": 4173, + "loc": { + "start": { + "line": 107, + "column": 64 + }, + "end": { + "line": 107, + "column": 70 + } + }, + "object": { + "type": "Identifier", + "start": 4167, + "end": 4168, + "loc": { + "start": { + "line": 107, + "column": 64 + }, + "end": { + "line": 107, + "column": 65 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 4169, + "end": 4173, + "loc": { + "start": { + "line": 107, + "column": 66 + }, + "end": { + "line": 107, + "column": 70 + } + }, + "name": "word" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 4149, + "end": 4165, + "loc": { + "start": { + "line": 107, + "column": 46 + }, + "end": { + "line": 107, + "column": 62 + } + }, + "value": { + "raw": "result-location-", + "cooked": "result-location-" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 4174, + "end": 4174, + "loc": { + "start": { + "line": 107, + "column": 71 + }, + "end": { + "line": 107, + "column": 71 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + }, + { + "type": "JSXAttribute", + "start": 4217, + "end": 4261, + "loc": { + "start": { + "line": 108, + "column": 40 + }, + "end": { + "line": 108, + "column": 84 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4217, + "end": 4224, + "loc": { + "start": { + "line": 108, + "column": 40 + }, + "end": { + "line": 108, + "column": 47 + } + }, + "name": "onClick" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 4225, + "end": 4261, + "loc": { + "start": { + "line": 108, + "column": 48 + }, + "end": { + "line": 108, + "column": 84 + } + }, + "expression": { + "type": "ArrowFunctionExpression", + "start": 4226, + "end": 4260, + "loc": { + "start": { + "line": 108, + "column": 49 + }, + "end": { + "line": 108, + "column": 83 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 4227, + "end": 4228, + "loc": { + "start": { + "line": 108, + "column": 50 + }, + "end": { + "line": 108, + "column": 51 + } + }, + "name": "e" + } + ], + "body": { + "type": "CallExpression", + "start": 4233, + "end": 4260, + "loc": { + "start": { + "line": 108, + "column": 56 + }, + "end": { + "line": 108, + "column": 83 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4233, + "end": 4251, + "loc": { + "start": { + "line": 108, + "column": 56 + }, + "end": { + "line": 108, + "column": 74 + } + }, + "object": { + "type": "MemberExpression", + "start": 4233, + "end": 4243, + "loc": { + "start": { + "line": 108, + "column": 56 + }, + "end": { + "line": 108, + "column": 66 + } + }, + "object": { + "type": "ThisExpression", + "start": 4233, + "end": 4237, + "loc": { + "start": { + "line": 108, + "column": 56 + }, + "end": { + "line": 108, + "column": 60 + } + } + }, + "property": { + "type": "Identifier", + "start": 4238, + "end": 4243, + "loc": { + "start": { + "line": 108, + "column": 61 + }, + "end": { + "line": 108, + "column": 66 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 4244, + "end": 4251, + "loc": { + "start": { + "line": 108, + "column": 67 + }, + "end": { + "line": 108, + "column": 74 + } + }, + "name": "onClick" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 4252, + "end": 4253, + "loc": { + "start": { + "line": 108, + "column": 75 + }, + "end": { + "line": 108, + "column": 76 + } + }, + "name": "e" + }, + { + "type": "Identifier", + "start": 4255, + "end": 4256, + "loc": { + "start": { + "line": 108, + "column": 78 + }, + "end": { + "line": 108, + "column": 79 + } + }, + "name": "i" + }, + { + "type": "Identifier", + "start": 4258, + "end": 4259, + "loc": { + "start": { + "line": 108, + "column": 81 + }, + "end": { + "line": 108, + "column": 82 + } + }, + "name": "r" + } + ] + } + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 4140, + "end": 4142, + "loc": { + "start": { + "line": 107, + "column": 37 + }, + "end": { + "line": 107, + "column": 39 + } + }, + "name": "li" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 4270, + "end": 4275, + "loc": { + "start": { + "line": 108, + "column": 93 + }, + "end": { + "line": 108, + "column": 98 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4272, + "end": 4274, + "loc": { + "start": { + "line": 108, + "column": 95 + }, + "end": { + "line": 108, + "column": 97 + } + }, + "name": "li" + } + }, + "children": [ + { + "type": "JSXExpressionContainer", + "start": 4262, + "end": 4270, + "loc": { + "start": { + "line": 108, + "column": 85 + }, + "end": { + "line": 108, + "column": 93 + } + }, + "expression": { + "type": "MemberExpression", + "start": 4263, + "end": 4269, + "loc": { + "start": { + "line": 108, + "column": 86 + }, + "end": { + "line": 108, + "column": 92 + } + }, + "object": { + "type": "Identifier", + "start": 4263, + "end": 4264, + "loc": { + "start": { + "line": 108, + "column": 86 + }, + "end": { + "line": 108, + "column": 87 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 4265, + "end": 4269, + "loc": { + "start": { + "line": 108, + "column": 88 + }, + "end": { + "line": 108, + "column": 92 + } + }, + "name": "word" + }, + "computed": false + } + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + { + "type": "Literal", + "start": 4311, + "end": 4336, + "loc": { + "start": { + "line": 109, + "column": 35 + }, + "end": { + "line": 110, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 4341, + "end": 4362, + "loc": { + "start": { + "line": 110, + "column": 29 + }, + "end": { + "line": 111, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 4368, + "end": 4385, + "loc": { + "start": { + "line": 111, + "column": 26 + }, + "end": { + "line": 112, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 4391, + "end": 4409, + "loc": { + "start": { + "line": 112, + "column": 22 + }, + "end": { + "line": 114, + "column": 16 + } + }, + "value": "\n\n ", + "rawValue": null, + "raw": "\n\n " + }, + { + "type": "JSXElement", + "start": 4409, + "end": 5236, + "loc": { + "start": { + "line": 114, + "column": 16 + }, + "end": { + "line": 129, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 4409, + "end": 4445, + "loc": { + "start": { + "line": 114, + "column": 16 + }, + "end": { + "line": 114, + "column": 52 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 4414, + "end": 4431, + "loc": { + "start": { + "line": 114, + "column": 21 + }, + "end": { + "line": 114, + "column": 38 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4414, + "end": 4417, + "loc": { + "start": { + "line": 114, + "column": 21 + }, + "end": { + "line": 114, + "column": 24 + } + }, + "name": "key" + }, + "value": { + "type": "Literal", + "start": 4418, + "end": 4431, + "loc": { + "start": { + "line": 114, + "column": 25 + }, + "end": { + "line": 114, + "column": 38 + } + }, + "value": "filter-tags", + "rawValue": null, + "raw": "\"filter-tags\"" + } + }, + { + "type": "JSXAttribute", + "start": 4432, + "end": 4444, + "loc": { + "start": { + "line": 114, + "column": 39 + }, + "end": { + "line": 114, + "column": 51 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4432, + "end": 4437, + "loc": { + "start": { + "line": 114, + "column": 39 + }, + "end": { + "line": 114, + "column": 44 + } + }, + "name": "label" + }, + "value": { + "type": "Literal", + "start": 4438, + "end": 4444, + "loc": { + "start": { + "line": 114, + "column": 45 + }, + "end": { + "line": 114, + "column": 51 + } + }, + "value": "Tags", + "rawValue": null, + "raw": "\"Tags\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 4410, + "end": 4413, + "loc": { + "start": { + "line": 114, + "column": 17 + }, + "end": { + "line": 114, + "column": 20 + } + }, + "name": "Tab" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 5230, + "end": 5236, + "loc": { + "start": { + "line": 129, + "column": 16 + }, + "end": { + "line": 129, + "column": 22 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 5232, + "end": 5235, + "loc": { + "start": { + "line": 129, + "column": 18 + }, + "end": { + "line": 129, + "column": 21 + } + }, + "name": "Tab" + } + }, + "children": [ + { + "type": "Literal", + "start": 4445, + "end": 4466, + "loc": { + "start": { + "line": 114, + "column": 52 + }, + "end": { + "line": 115, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 4466, + "end": 5213, + "loc": { + "start": { + "line": 115, + "column": 20 + }, + "end": { + "line": 128, + "column": 26 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 4466, + "end": 4491, + "loc": { + "start": { + "line": 115, + "column": 20 + }, + "end": { + "line": 115, + "column": 45 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 4471, + "end": 4490, + "loc": { + "start": { + "line": 115, + "column": 25 + }, + "end": { + "line": 115, + "column": 44 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4471, + "end": 4480, + "loc": { + "start": { + "line": 115, + "column": 25 + }, + "end": { + "line": 115, + "column": 34 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 4481, + "end": 4490, + "loc": { + "start": { + "line": 115, + "column": 35 + }, + "end": { + "line": 115, + "column": 44 + } + }, + "value": "results", + "rawValue": null, + "raw": "\"results\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 4467, + "end": 4470, + "loc": { + "start": { + "line": 115, + "column": 21 + }, + "end": { + "line": 115, + "column": 24 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 5207, + "end": 5213, + "loc": { + "start": { + "line": 128, + "column": 20 + }, + "end": { + "line": 128, + "column": 26 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 5209, + "end": 5212, + "loc": { + "start": { + "line": 128, + "column": 22 + }, + "end": { + "line": 128, + "column": 25 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 4491, + "end": 4516, + "loc": { + "start": { + "line": 115, + "column": 45 + }, + "end": { + "line": 116, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 4516, + "end": 5186, + "loc": { + "start": { + "line": 116, + "column": 24 + }, + "end": { + "line": 127, + "column": 29 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 4516, + "end": 4520, + "loc": { + "start": { + "line": 116, + "column": 24 + }, + "end": { + "line": 116, + "column": 28 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 4517, + "end": 4519, + "loc": { + "start": { + "line": 116, + "column": 25 + }, + "end": { + "line": 116, + "column": 27 + } + }, + "name": "ul" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 5181, + "end": 5186, + "loc": { + "start": { + "line": 127, + "column": 24 + }, + "end": { + "line": 127, + "column": 29 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 5183, + "end": 5185, + "loc": { + "start": { + "line": 127, + "column": 26 + }, + "end": { + "line": 127, + "column": 28 + } + }, + "name": "ul" + } + }, + "children": [ + { + "type": "Literal", + "start": 4520, + "end": 4549, + "loc": { + "start": { + "line": 116, + "column": 28 + }, + "end": { + "line": 117, + "column": 28 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 4549, + "end": 5156, + "loc": { + "start": { + "line": 117, + "column": 28 + }, + "end": { + "line": 126, + "column": 35 + } + }, + "expression": { + "type": "CallExpression", + "start": 4550, + "end": 5155, + "loc": { + "start": { + "line": 117, + "column": 29 + }, + "end": { + "line": 126, + "column": 34 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4550, + "end": 4568, + "loc": { + "start": { + "line": 117, + "column": 29 + }, + "end": { + "line": 117, + "column": 47 + } + }, + "object": { + "type": "ThisExpression", + "start": 4550, + "end": 4554, + "loc": { + "start": { + "line": 117, + "column": 29 + }, + "end": { + "line": 117, + "column": 33 + } + } + }, + "property": { + "type": "Identifier", + "start": 4555, + "end": 4568, + "loc": { + "start": { + "line": 117, + "column": 34 + }, + "end": { + "line": 117, + "column": 47 + } + }, + "name": "renderResults" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 4602, + "end": 4627, + "loc": { + "start": { + "line": 118, + "column": 32 + }, + "end": { + "line": 118, + "column": 57 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 4602, + "end": 4603, + "loc": { + "start": { + "line": 118, + "column": 32 + }, + "end": { + "line": 118, + "column": 33 + } + }, + "name": "r" + } + ], + "body": { + "type": "BinaryExpression", + "start": 4607, + "end": 4627, + "loc": { + "start": { + "line": 118, + "column": 37 + }, + "end": { + "line": 118, + "column": 57 + } + }, + "left": { + "type": "MemberExpression", + "start": 4607, + "end": 4613, + "loc": { + "start": { + "line": 118, + "column": 37 + }, + "end": { + "line": 118, + "column": 43 + } + }, + "object": { + "type": "Identifier", + "start": 4607, + "end": 4608, + "loc": { + "start": { + "line": 118, + "column": 37 + }, + "end": { + "line": 118, + "column": 38 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 4609, + "end": 4613, + "loc": { + "start": { + "line": 118, + "column": 39 + }, + "end": { + "line": 118, + "column": 43 + } + }, + "name": "type" + }, + "computed": false + }, + "operator": "==", + "right": { + "type": "Literal", + "start": 4617, + "end": 4627, + "loc": { + "start": { + "line": 118, + "column": 47 + }, + "end": { + "line": 118, + "column": 57 + } + }, + "value": "hashtags", + "rawValue": "hashtags", + "raw": "'hashtags'" + } + } + }, + { + "type": "ArrowFunctionExpression", + "start": 4661, + "end": 5154, + "loc": { + "start": { + "line": 119, + "column": 32 + }, + "end": { + "line": 126, + "column": 33 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 4662, + "end": 4663, + "loc": { + "start": { + "line": 119, + "column": 33 + }, + "end": { + "line": 119, + "column": 34 + } + }, + "name": "r" + }, + { + "type": "Identifier", + "start": 4665, + "end": 4666, + "loc": { + "start": { + "line": 119, + "column": 36 + }, + "end": { + "line": 119, + "column": 37 + } + }, + "name": "i" + } + ], + "body": { + "type": "JSXElement", + "start": 4709, + "end": 5120, + "loc": { + "start": { + "line": 120, + "column": 36 + }, + "end": { + "line": 125, + "column": 41 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 4709, + "end": 4792, + "loc": { + "start": { + "line": 120, + "column": 36 + }, + "end": { + "line": 120, + "column": 119 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 4713, + "end": 4746, + "loc": { + "start": { + "line": 120, + "column": 40 + }, + "end": { + "line": 120, + "column": 73 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4713, + "end": 4716, + "loc": { + "start": { + "line": 120, + "column": 40 + }, + "end": { + "line": 120, + "column": 43 + } + }, + "name": "key" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 4717, + "end": 4746, + "loc": { + "start": { + "line": 120, + "column": 44 + }, + "end": { + "line": 120, + "column": 73 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 4718, + "end": 4745, + "loc": { + "start": { + "line": 120, + "column": 45 + }, + "end": { + "line": 120, + "column": 72 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 4737, + "end": 4743, + "loc": { + "start": { + "line": 120, + "column": 64 + }, + "end": { + "line": 120, + "column": 70 + } + }, + "object": { + "type": "Identifier", + "start": 4737, + "end": 4738, + "loc": { + "start": { + "line": 120, + "column": 64 + }, + "end": { + "line": 120, + "column": 65 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 4739, + "end": 4743, + "loc": { + "start": { + "line": 120, + "column": 66 + }, + "end": { + "line": 120, + "column": 70 + } + }, + "name": "word" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 4719, + "end": 4735, + "loc": { + "start": { + "line": 120, + "column": 46 + }, + "end": { + "line": 120, + "column": 62 + } + }, + "value": { + "raw": "result-hashtags-", + "cooked": "result-hashtags-" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 4744, + "end": 4744, + "loc": { + "start": { + "line": 120, + "column": 71 + }, + "end": { + "line": 120, + "column": 71 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + }, + { + "type": "JSXAttribute", + "start": 4747, + "end": 4791, + "loc": { + "start": { + "line": 120, + "column": 74 + }, + "end": { + "line": 120, + "column": 118 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4747, + "end": 4754, + "loc": { + "start": { + "line": 120, + "column": 74 + }, + "end": { + "line": 120, + "column": 81 + } + }, + "name": "onClick" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 4755, + "end": 4791, + "loc": { + "start": { + "line": 120, + "column": 82 + }, + "end": { + "line": 120, + "column": 118 + } + }, + "expression": { + "type": "ArrowFunctionExpression", + "start": 4756, + "end": 4790, + "loc": { + "start": { + "line": 120, + "column": 83 + }, + "end": { + "line": 120, + "column": 117 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 4757, + "end": 4758, + "loc": { + "start": { + "line": 120, + "column": 84 + }, + "end": { + "line": 120, + "column": 85 + } + }, + "name": "e" + } + ], + "body": { + "type": "CallExpression", + "start": 4763, + "end": 4790, + "loc": { + "start": { + "line": 120, + "column": 90 + }, + "end": { + "line": 120, + "column": 117 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4763, + "end": 4781, + "loc": { + "start": { + "line": 120, + "column": 90 + }, + "end": { + "line": 120, + "column": 108 + } + }, + "object": { + "type": "MemberExpression", + "start": 4763, + "end": 4773, + "loc": { + "start": { + "line": 120, + "column": 90 + }, + "end": { + "line": 120, + "column": 100 + } + }, + "object": { + "type": "ThisExpression", + "start": 4763, + "end": 4767, + "loc": { + "start": { + "line": 120, + "column": 90 + }, + "end": { + "line": 120, + "column": 94 + } + } + }, + "property": { + "type": "Identifier", + "start": 4768, + "end": 4773, + "loc": { + "start": { + "line": 120, + "column": 95 + }, + "end": { + "line": 120, + "column": 100 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 4774, + "end": 4781, + "loc": { + "start": { + "line": 120, + "column": 101 + }, + "end": { + "line": 120, + "column": 108 + } + }, + "name": "onClick" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 4782, + "end": 4783, + "loc": { + "start": { + "line": 120, + "column": 109 + }, + "end": { + "line": 120, + "column": 110 + } + }, + "name": "e" + }, + { + "type": "Identifier", + "start": 4785, + "end": 4786, + "loc": { + "start": { + "line": 120, + "column": 112 + }, + "end": { + "line": 120, + "column": 113 + } + }, + "name": "i" + }, + { + "type": "Identifier", + "start": 4788, + "end": 4789, + "loc": { + "start": { + "line": 120, + "column": 115 + }, + "end": { + "line": 120, + "column": 116 + } + }, + "name": "r" + } + ] + } + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 4710, + "end": 4712, + "loc": { + "start": { + "line": 120, + "column": 37 + }, + "end": { + "line": 120, + "column": 39 + } + }, + "name": "li" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 5115, + "end": 5120, + "loc": { + "start": { + "line": 125, + "column": 36 + }, + "end": { + "line": 125, + "column": 41 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 5117, + "end": 5119, + "loc": { + "start": { + "line": 125, + "column": 38 + }, + "end": { + "line": 125, + "column": 40 + } + }, + "name": "li" + } + }, + "children": [ + { + "type": "Literal", + "start": 4792, + "end": 4833, + "loc": { + "start": { + "line": 120, + "column": 119 + }, + "end": { + "line": 121, + "column": 40 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 4833, + "end": 5078, + "loc": { + "start": { + "line": 121, + "column": 40 + }, + "end": { + "line": 124, + "column": 46 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 4833, + "end": 4863, + "loc": { + "start": { + "line": 121, + "column": 40 + }, + "end": { + "line": 121, + "column": 70 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 4838, + "end": 4862, + "loc": { + "start": { + "line": 121, + "column": 45 + }, + "end": { + "line": 121, + "column": 69 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4838, + "end": 4847, + "loc": { + "start": { + "line": 121, + "column": 45 + }, + "end": { + "line": 121, + "column": 54 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 4848, + "end": 4862, + "loc": { + "start": { + "line": 121, + "column": 55 + }, + "end": { + "line": 121, + "column": 69 + } + }, + "value": "result-inner", + "rawValue": null, + "raw": "\"result-inner\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 4834, + "end": 4837, + "loc": { + "start": { + "line": 121, + "column": 41 + }, + "end": { + "line": 121, + "column": 44 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 5072, + "end": 5078, + "loc": { + "start": { + "line": 124, + "column": 40 + }, + "end": { + "line": 124, + "column": 46 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 5074, + "end": 5077, + "loc": { + "start": { + "line": 124, + "column": 42 + }, + "end": { + "line": 124, + "column": 45 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 4863, + "end": 4908, + "loc": { + "start": { + "line": 121, + "column": 70 + }, + "end": { + "line": 122, + "column": 44 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 4908, + "end": 4934, + "loc": { + "start": { + "line": 122, + "column": 44 + }, + "end": { + "line": 122, + "column": 70 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 4908, + "end": 4916, + "loc": { + "start": { + "line": 122, + "column": 44 + }, + "end": { + "line": 122, + "column": 52 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 4909, + "end": 4915, + "loc": { + "start": { + "line": 122, + "column": 45 + }, + "end": { + "line": 122, + "column": 51 + } + }, + "name": "strong" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 4925, + "end": 4934, + "loc": { + "start": { + "line": 122, + "column": 61 + }, + "end": { + "line": 122, + "column": 70 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4927, + "end": 4933, + "loc": { + "start": { + "line": 122, + "column": 63 + }, + "end": { + "line": 122, + "column": 69 + } + }, + "name": "strong" + } + }, + "children": [ + { + "type": "Literal", + "start": 4916, + "end": 4917, + "loc": { + "start": { + "line": 122, + "column": 52 + }, + "end": { + "line": 122, + "column": 53 + } + }, + "value": "#", + "rawValue": null, + "raw": "#" + }, + { + "type": "JSXExpressionContainer", + "start": 4917, + "end": 4925, + "loc": { + "start": { + "line": 122, + "column": 53 + }, + "end": { + "line": 122, + "column": 61 + } + }, + "expression": { + "type": "MemberExpression", + "start": 4918, + "end": 4924, + "loc": { + "start": { + "line": 122, + "column": 54 + }, + "end": { + "line": 122, + "column": 60 + } + }, + "object": { + "type": "Identifier", + "start": 4918, + "end": 4919, + "loc": { + "start": { + "line": 122, + "column": 54 + }, + "end": { + "line": 122, + "column": 55 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 4920, + "end": 4924, + "loc": { + "start": { + "line": 122, + "column": 56 + }, + "end": { + "line": 122, + "column": 60 + } + }, + "name": "word" + }, + "computed": false + } + } + ] + }, + { + "type": "Literal", + "start": 4934, + "end": 4979, + "loc": { + "start": { + "line": 122, + "column": 70 + }, + "end": { + "line": 123, + "column": 44 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 4979, + "end": 5031, + "loc": { + "start": { + "line": 123, + "column": 44 + }, + "end": { + "line": 123, + "column": 96 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 4979, + "end": 4985, + "loc": { + "start": { + "line": 123, + "column": 44 + }, + "end": { + "line": 123, + "column": 50 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 4980, + "end": 4984, + "loc": { + "start": { + "line": 123, + "column": 45 + }, + "end": { + "line": 123, + "column": 49 + } + }, + "name": "span" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 5024, + "end": 5031, + "loc": { + "start": { + "line": 123, + "column": 89 + }, + "end": { + "line": 123, + "column": 96 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 5026, + "end": 5030, + "loc": { + "start": { + "line": 123, + "column": 91 + }, + "end": { + "line": 123, + "column": 95 + } + }, + "name": "span" + } + }, + "children": [ + { + "type": "JSXExpressionContainer", + "start": 4985, + "end": 5017, + "loc": { + "start": { + "line": 123, + "column": 50 + }, + "end": { + "line": 123, + "column": 82 + } + }, + "expression": { + "type": "CallExpression", + "start": 4986, + "end": 5016, + "loc": { + "start": { + "line": 123, + "column": 51 + }, + "end": { + "line": 123, + "column": 81 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4986, + "end": 5009, + "loc": { + "start": { + "line": 123, + "column": 51 + }, + "end": { + "line": 123, + "column": 74 + } + }, + "object": { + "type": "CallExpression", + "start": 4986, + "end": 5002, + "loc": { + "start": { + "line": 123, + "column": 51 + }, + "end": { + "line": 123, + "column": 67 + } + }, + "callee": { + "type": "Identifier", + "start": 4986, + "end": 4993, + "loc": { + "start": { + "line": 123, + "column": 51 + }, + "end": { + "line": 123, + "column": 58 + } + }, + "name": "numeral" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 4994, + "end": 5001, + "loc": { + "start": { + "line": 123, + "column": 59 + }, + "end": { + "line": 123, + "column": 66 + } + }, + "object": { + "type": "Identifier", + "start": 4994, + "end": 4995, + "loc": { + "start": { + "line": 123, + "column": 59 + }, + "end": { + "line": 123, + "column": 60 + } + }, + "name": "r" + }, + "property": { + "type": "Identifier", + "start": 4996, + "end": 5001, + "loc": { + "start": { + "line": 123, + "column": 61 + }, + "end": { + "line": 123, + "column": 66 + } + }, + "name": "count" + }, + "computed": false + } + ] + }, + "property": { + "type": "Identifier", + "start": 5003, + "end": 5009, + "loc": { + "start": { + "line": 123, + "column": 68 + }, + "end": { + "line": 123, + "column": 74 + } + }, + "name": "format" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 5010, + "end": 5015, + "loc": { + "start": { + "line": 123, + "column": 75 + }, + "end": { + "line": 123, + "column": 80 + } + }, + "value": "0,0", + "rawValue": "0,0", + "raw": "'0,0'" + } + ] + } + }, + { + "type": "Literal", + "start": 5017, + "end": 5024, + "loc": { + "start": { + "line": 123, + "column": 82 + }, + "end": { + "line": 123, + "column": 89 + } + }, + "value": " Photos", + "rawValue": null, + "raw": " Photos" + } + ] + }, + { + "type": "Literal", + "start": 5031, + "end": 5072, + "loc": { + "start": { + "line": 123, + "column": 96 + }, + "end": { + "line": 124, + "column": 40 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 5078, + "end": 5115, + "loc": { + "start": { + "line": 124, + "column": 46 + }, + "end": { + "line": 125, + "column": 36 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + { + "type": "Literal", + "start": 5156, + "end": 5181, + "loc": { + "start": { + "line": 126, + "column": 35 + }, + "end": { + "line": 127, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 5186, + "end": 5207, + "loc": { + "start": { + "line": 127, + "column": 29 + }, + "end": { + "line": 128, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 5213, + "end": 5230, + "loc": { + "start": { + "line": 128, + "column": 26 + }, + "end": { + "line": 129, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 5236, + "end": 5249, + "loc": { + "start": { + "line": 129, + "column": 22 + }, + "end": { + "line": 130, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 751, + "end": 799, + "loc": { + "start": { + "line": 37, + "column": 4 + }, + "end": { + "line": 40, + "column": 7 + } + }, + "range": [ + 751, + 799 + ] + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Filters component used by Search route\n ", + "start": 133, + "end": 182, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + }, + "range": [ + 133, + 182 + ] + } + ], + "__esdoc__pseudo_export": false, + "trailingComments": [] + }, + "leadingComments": null + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/routes/Search/components/index.js.json b/app/docs/ast/source/routes/Search/components/index.js.json new file mode 100644 index 0000000..f26dc13 --- /dev/null +++ b/app/docs/ast/source/routes/Search/components/index.js.json @@ -0,0 +1,84 @@ +{ + "type": "Program", + "start": 0, + "end": 32, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 2, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ExportNamedDeclaration", + "start": 0, + "end": 31, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 31 + } + }, + "specifiers": [ + { + "type": "Identifier", + "start": 7, + "end": 14, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 14 + } + }, + "exported": { + "type": "Identifier", + "start": 7, + "end": 14, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 14 + } + }, + "name": "Filters" + } + } + ], + "source": { + "type": "Literal", + "start": 20, + "end": 31, + "loc": { + "start": { + "line": 1, + "column": 20 + }, + "end": { + "line": 1, + "column": 31 + } + }, + "value": "./Filters", + "rawValue": "./Filters", + "raw": "'./Filters'" + } + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/routes/Search/index.js.json b/app/docs/ast/source/routes/Search/index.js.json new file mode 100644 index 0000000..0a374f3 --- /dev/null +++ b/app/docs/ast/source/routes/Search/index.js.json @@ -0,0 +1,888 @@ +{ + "type": "Program", + "start": 0, + "end": 470, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 26, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 18, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 18 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ImportDeclaration", + "start": 27, + "end": 60, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 33 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 36, + "end": 39, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 12 + } + }, + "imported": { + "type": "Identifier", + "start": 36, + "end": 39, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 12 + } + }, + "name": "Nav" + }, + "local": { + "type": "Identifier", + "start": 36, + "end": 39, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 12 + } + }, + "name": "Nav" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 48, + "end": 60, + "loc": { + "start": { + "line": 3, + "column": 21 + }, + "end": { + "line": 3, + "column": 33 + } + }, + "value": "components", + "rawValue": "components", + "raw": "'components'" + } + }, + { + "type": "ExpressionStatement", + "start": 62, + "end": 469, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 25, + "column": 1 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 62, + "end": 469, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 25, + "column": 1 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 62, + "end": 76, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 14 + } + }, + "object": { + "type": "Identifier", + "start": 62, + "end": 68, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 6 + } + }, + "name": "module" + }, + "property": { + "type": "Identifier", + "start": 69, + "end": 76, + "loc": { + "start": { + "line": 5, + "column": 7 + }, + "end": { + "line": 5, + "column": 14 + } + }, + "name": "exports" + }, + "computed": false + }, + "right": { + "type": "ObjectExpression", + "start": 79, + "end": 469, + "loc": { + "start": { + "line": 5, + "column": 17 + }, + "end": { + "line": 25, + "column": 1 + } + }, + "properties": [ + { + "type": "Property", + "start": 85, + "end": 100, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 6, + "column": 19 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 85, + "end": 89, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 6, + "column": 8 + } + }, + "name": "path" + }, + "value": { + "type": "Literal", + "start": 91, + "end": 100, + "loc": { + "start": { + "line": 6, + "column": 10 + }, + "end": { + "line": 6, + "column": 19 + } + }, + "value": "/search", + "rawValue": "/search", + "raw": "'/search'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 203, + "end": 283, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 15, + "column": 5 + } + }, + "method": true, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 203, + "end": 215, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 16 + } + }, + "name": "getComponent", + "leadingComments": null + }, + "kind": "init", + "value": { + "type": "FunctionExpression", + "start": 215, + "end": 283, + "loc": { + "start": { + "line": 13, + "column": 16 + }, + "end": { + "line": 15, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 216, + "end": 224, + "loc": { + "start": { + "line": 13, + "column": 17 + }, + "end": { + "line": 13, + "column": 25 + } + }, + "name": "location" + }, + { + "type": "Identifier", + "start": 226, + "end": 228, + "loc": { + "start": { + "line": 13, + "column": 27 + }, + "end": { + "line": 13, + "column": 29 + } + }, + "name": "cb" + } + ], + "body": { + "type": "BlockStatement", + "start": 230, + "end": 283, + "loc": { + "start": { + "line": 13, + "column": 31 + }, + "end": { + "line": 15, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 240, + "end": 277, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 45 + } + }, + "expression": { + "type": "CallExpression", + "start": 240, + "end": 277, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 45 + } + }, + "callee": { + "type": "Identifier", + "start": 240, + "end": 242, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 10 + } + }, + "name": "cb" + }, + "arguments": [ + { + "type": "Literal", + "start": 243, + "end": 247, + "loc": { + "start": { + "line": 14, + "column": 11 + }, + "end": { + "line": 14, + "column": 15 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + { + "type": "MemberExpression", + "start": 249, + "end": 276, + "loc": { + "start": { + "line": 14, + "column": 17 + }, + "end": { + "line": 14, + "column": 44 + } + }, + "object": { + "type": "CallExpression", + "start": 249, + "end": 268, + "loc": { + "start": { + "line": 14, + "column": 17 + }, + "end": { + "line": 14, + "column": 36 + } + }, + "callee": { + "type": "Identifier", + "start": 249, + "end": 256, + "loc": { + "start": { + "line": 14, + "column": 17 + }, + "end": { + "line": 14, + "column": 24 + } + }, + "name": "require" + }, + "arguments": [ + { + "type": "Literal", + "start": 257, + "end": 267, + "loc": { + "start": { + "line": 14, + "column": 25 + }, + "end": { + "line": 14, + "column": 35 + } + }, + "value": "./Search", + "rawValue": "./Search", + "raw": "'./Search'" + } + ] + }, + "property": { + "type": "Identifier", + "start": 269, + "end": 276, + "loc": { + "start": { + "line": 14, + "column": 37 + }, + "end": { + "line": 14, + "column": 44 + } + }, + "name": "default" + }, + "computed": false + } + ] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * getComponent\n * @param location\n * @param cb {Function} callback\n ", + "start": 107, + "end": 198, + "loc": { + "start": { + "line": 8, + "column": 4 + }, + "end": { + "line": 12, + "column": 7 + } + }, + "range": [ + 107, + 198 + ] + } + ] + }, + { + "type": "Property", + "start": 389, + "end": 467, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 24, + "column": 5 + } + }, + "method": true, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 389, + "end": 404, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 19 + } + }, + "name": "getHeaderMiddle", + "leadingComments": null + }, + "kind": "init", + "value": { + "type": "FunctionExpression", + "start": 404, + "end": 467, + "loc": { + "start": { + "line": 22, + "column": 19 + }, + "end": { + "line": 24, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 405, + "end": 413, + "loc": { + "start": { + "line": 22, + "column": 20 + }, + "end": { + "line": 22, + "column": 28 + } + }, + "name": "location" + }, + { + "type": "Identifier", + "start": 415, + "end": 417, + "loc": { + "start": { + "line": 22, + "column": 30 + }, + "end": { + "line": 22, + "column": 32 + } + }, + "name": "cb" + } + ], + "body": { + "type": "BlockStatement", + "start": 419, + "end": 467, + "loc": { + "start": { + "line": 22, + "column": 34 + }, + "end": { + "line": 24, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 429, + "end": 461, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 40 + } + }, + "expression": { + "type": "CallExpression", + "start": 429, + "end": 461, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 40 + } + }, + "callee": { + "type": "Identifier", + "start": 429, + "end": 431, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 10 + } + }, + "name": "cb" + }, + "arguments": [ + { + "type": "Literal", + "start": 432, + "end": 436, + "loc": { + "start": { + "line": 23, + "column": 11 + }, + "end": { + "line": 23, + "column": 15 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + { + "type": "JSXElement", + "start": 438, + "end": 460, + "loc": { + "start": { + "line": 23, + "column": 17 + }, + "end": { + "line": 23, + "column": 39 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 438, + "end": 460, + "loc": { + "start": { + "line": 23, + "column": 17 + }, + "end": { + "line": 23, + "column": 39 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 443, + "end": 458, + "loc": { + "start": { + "line": 23, + "column": 22 + }, + "end": { + "line": 23, + "column": 37 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 443, + "end": 449, + "loc": { + "start": { + "line": 23, + "column": 22 + }, + "end": { + "line": 23, + "column": 28 + } + }, + "name": "active" + }, + "value": { + "type": "Literal", + "start": 450, + "end": 458, + "loc": { + "start": { + "line": 23, + "column": 29 + }, + "end": { + "line": 23, + "column": 37 + } + }, + "value": "search", + "rawValue": null, + "raw": "\"search\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 439, + "end": 442, + "loc": { + "start": { + "line": 23, + "column": 18 + }, + "end": { + "line": 23, + "column": 21 + } + }, + "name": "Nav" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + ] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * getHeaderMiddle\n * @param location\n * @param cb {Function} callback\n ", + "start": 290, + "end": 384, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 21, + "column": 7 + } + }, + "range": [ + 290, + 384 + ] + } + ] + } + ] + } + } + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/routes/SearchResults/SearchResults.js.json b/app/docs/ast/source/routes/SearchResults/SearchResults.js.json new file mode 100644 index 0000000..8e7b9bb --- /dev/null +++ b/app/docs/ast/source/routes/SearchResults/SearchResults.js.json @@ -0,0 +1,3570 @@ +{ + "type": "Program", + "start": 0, + "end": 1772, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 65, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + }, + { + "type": "ImportSpecifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "imported": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + }, + "local": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 33, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 33 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ImportDeclaration", + "start": 41, + "end": 78, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 37 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 50, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "imported": { + "type": "Identifier", + "start": 50, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "name": "connect" + }, + "local": { + "type": "Identifier", + "start": 50, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "name": "connect" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 65, + "end": 78, + "loc": { + "start": { + "line": 2, + "column": 24 + }, + "end": { + "line": 2, + "column": 37 + } + }, + "value": "react-redux", + "rawValue": "react-redux", + "raw": "'react-redux'" + } + }, + { + "type": "ImportDeclaration", + "start": 79, + "end": 114, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 35 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 88, + "end": 92, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 13 + } + }, + "imported": { + "type": "Identifier", + "start": 88, + "end": 92, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 13 + } + }, + "name": "Link" + }, + "local": { + "type": "Identifier", + "start": 88, + "end": 92, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 13 + } + }, + "name": "Link" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 100, + "end": 114, + "loc": { + "start": { + "line": 3, + "column": 21 + }, + "end": { + "line": 3, + "column": 35 + } + }, + "value": "react-router", + "rawValue": "react-router", + "raw": "'react-router'" + } + }, + { + "type": "ImportDeclaration", + "start": 115, + "end": 142, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 27 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 122, + "end": 128, + "loc": { + "start": { + "line": 4, + "column": 7 + }, + "end": { + "line": 4, + "column": 13 + } + }, + "local": { + "type": "Identifier", + "start": 122, + "end": 128, + "loc": { + "start": { + "line": 4, + "column": 7 + }, + "end": { + "line": 4, + "column": 13 + } + }, + "name": "config" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 134, + "end": 142, + "loc": { + "start": { + "line": 4, + "column": 19 + }, + "end": { + "line": 4, + "column": 27 + } + }, + "value": "config", + "rawValue": "config", + "raw": "'config'" + } + }, + { + "type": "ImportDeclaration", + "start": 144, + "end": 198, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 8, + "column": 16 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 157, + "end": 180, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 7, + "column": 27 + } + }, + "imported": { + "type": "Identifier", + "start": 157, + "end": 163, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 7, + "column": 10 + } + }, + "name": "Search" + }, + "local": { + "type": "Identifier", + "start": 167, + "end": 180, + "loc": { + "start": { + "line": 7, + "column": 14 + }, + "end": { + "line": 7, + "column": 27 + } + }, + "name": "SearchActions" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 189, + "end": 198, + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 16 + } + }, + "value": "actions", + "rawValue": "actions", + "raw": "'actions'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * SearchResults\n * '/search-results'\n * React Route - Documentation: https://github.com/reactjs/react-router/tree/master/docs\n ", + "start": 200, + "end": 334, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + }, + "range": [ + 200, + 334 + ] + } + ] + }, + { + "type": "ClassDeclaration", + "start": 335, + "end": 1484, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 55, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 341, + "end": 354, + "loc": { + "start": { + "line": 15, + "column": 6 + }, + "end": { + "line": 15, + "column": 19 + } + }, + "name": "SearchResults", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 363, + "end": 372, + "loc": { + "start": { + "line": 15, + "column": 28 + }, + "end": { + "line": 15, + "column": 37 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 373, + "end": 1484, + "loc": { + "start": { + "line": 15, + "column": 38 + }, + "end": { + "line": 55, + "column": 1 + } + }, + "body": [ + { + "type": "MethodDefinition", + "start": 413, + "end": 588, + "loc": { + "start": { + "line": 20, + "column": 2 + }, + "end": { + "line": 27, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 413, + "end": 430, + "loc": { + "start": { + "line": 20, + "column": 2 + }, + "end": { + "line": 20, + "column": 19 + } + }, + "name": "componentDidMount", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 430, + "end": 588, + "loc": { + "start": { + "line": 20, + "column": 19 + }, + "end": { + "line": 27, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 433, + "end": 588, + "loc": { + "start": { + "line": 20, + "column": 22 + }, + "end": { + "line": 27, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 444, + "end": 581, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 25, + "column": 10 + } + }, + "expression": { + "type": "CallExpression", + "start": 444, + "end": 581, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 25, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 444, + "end": 463, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 27 + } + }, + "object": { + "type": "MemberExpression", + "start": 444, + "end": 454, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 18 + } + }, + "object": { + "type": "ThisExpression", + "start": 444, + "end": 448, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 449, + "end": 454, + "loc": { + "start": { + "line": 22, + "column": 13 + }, + "end": { + "line": 22, + "column": 18 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 455, + "end": 463, + "loc": { + "start": { + "line": 22, + "column": 19 + }, + "end": { + "line": 22, + "column": 27 + } + }, + "name": "dispatch" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 464, + "end": 580, + "loc": { + "start": { + "line": 22, + "column": 28 + }, + "end": { + "line": 25, + "column": 9 + } + }, + "callee": { + "type": "MemberExpression", + "start": 464, + "end": 485, + "loc": { + "start": { + "line": 22, + "column": 28 + }, + "end": { + "line": 22, + "column": 49 + } + }, + "object": { + "type": "Identifier", + "start": 464, + "end": 477, + "loc": { + "start": { + "line": 22, + "column": 28 + }, + "end": { + "line": 22, + "column": 41 + } + }, + "name": "SearchActions" + }, + "property": { + "type": "Identifier", + "start": 478, + "end": 485, + "loc": { + "start": { + "line": 22, + "column": 42 + }, + "end": { + "line": 22, + "column": 49 + } + }, + "name": "results" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 499, + "end": 529, + "loc": { + "start": { + "line": 23, + "column": 12 + }, + "end": { + "line": 23, + "column": 42 + } + }, + "object": { + "type": "MemberExpression", + "start": 499, + "end": 524, + "loc": { + "start": { + "line": 23, + "column": 12 + }, + "end": { + "line": 23, + "column": 37 + } + }, + "object": { + "type": "MemberExpression", + "start": 499, + "end": 518, + "loc": { + "start": { + "line": 23, + "column": 12 + }, + "end": { + "line": 23, + "column": 31 + } + }, + "object": { + "type": "MemberExpression", + "start": 499, + "end": 509, + "loc": { + "start": { + "line": 23, + "column": 12 + }, + "end": { + "line": 23, + "column": 22 + } + }, + "object": { + "type": "ThisExpression", + "start": 499, + "end": 503, + "loc": { + "start": { + "line": 23, + "column": 12 + }, + "end": { + "line": 23, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 504, + "end": 509, + "loc": { + "start": { + "line": 23, + "column": 17 + }, + "end": { + "line": 23, + "column": 22 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 510, + "end": 518, + "loc": { + "start": { + "line": 23, + "column": 23 + }, + "end": { + "line": 23, + "column": 31 + } + }, + "name": "location" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 519, + "end": 524, + "loc": { + "start": { + "line": 23, + "column": 32 + }, + "end": { + "line": 23, + "column": 37 + } + }, + "name": "query" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 525, + "end": 529, + "loc": { + "start": { + "line": 23, + "column": 38 + }, + "end": { + "line": 23, + "column": 42 + } + }, + "name": "type" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 543, + "end": 570, + "loc": { + "start": { + "line": 24, + "column": 12 + }, + "end": { + "line": 24, + "column": 39 + } + }, + "object": { + "type": "MemberExpression", + "start": 543, + "end": 568, + "loc": { + "start": { + "line": 24, + "column": 12 + }, + "end": { + "line": 24, + "column": 37 + } + }, + "object": { + "type": "MemberExpression", + "start": 543, + "end": 562, + "loc": { + "start": { + "line": 24, + "column": 12 + }, + "end": { + "line": 24, + "column": 31 + } + }, + "object": { + "type": "MemberExpression", + "start": 543, + "end": 553, + "loc": { + "start": { + "line": 24, + "column": 12 + }, + "end": { + "line": 24, + "column": 22 + } + }, + "object": { + "type": "ThisExpression", + "start": 543, + "end": 547, + "loc": { + "start": { + "line": 24, + "column": 12 + }, + "end": { + "line": 24, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 548, + "end": 553, + "loc": { + "start": { + "line": 24, + "column": 17 + }, + "end": { + "line": 24, + "column": 22 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 554, + "end": 562, + "loc": { + "start": { + "line": 24, + "column": 23 + }, + "end": { + "line": 24, + "column": 31 + } + }, + "name": "location" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 563, + "end": 568, + "loc": { + "start": { + "line": 24, + "column": 32 + }, + "end": { + "line": 24, + "column": 37 + } + }, + "name": "query" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 569, + "end": 570, + "loc": { + "start": { + "line": 24, + "column": 38 + }, + "end": { + "line": 24, + "column": 39 + } + }, + "name": "q" + }, + "computed": false + } + ] + } + ] + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * componentDidMount\n ", + "start": 378, + "end": 410, + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 19, + "column": 5 + } + }, + "range": [ + 378, + 410 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 592, + "end": 634, + "loc": { + "start": { + "line": 29, + "column": 2 + }, + "end": { + "line": 32, + "column": 5 + } + }, + "range": [ + 592, + 634 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 637, + "end": 1481, + "loc": { + "start": { + "line": 33, + "column": 2 + }, + "end": { + "line": 53, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 637, + "end": 643, + "loc": { + "start": { + "line": 33, + "column": 2 + }, + "end": { + "line": 33, + "column": 8 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 643, + "end": 1481, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 53, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 646, + "end": 1481, + "loc": { + "start": { + "line": 33, + "column": 11 + }, + "end": { + "line": 53, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 657, + "end": 1475, + "loc": { + "start": { + "line": 35, + "column": 8 + }, + "end": { + "line": 52, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 678, + "end": 1465, + "loc": { + "start": { + "line": 36, + "column": 12 + }, + "end": { + "line": 51, + "column": 18 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 678, + "end": 700, + "loc": { + "start": { + "line": 36, + "column": 12 + }, + "end": { + "line": 36, + "column": 34 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 683, + "end": 699, + "loc": { + "start": { + "line": 36, + "column": 17 + }, + "end": { + "line": 36, + "column": 33 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 683, + "end": 692, + "loc": { + "start": { + "line": 36, + "column": 17 + }, + "end": { + "line": 36, + "column": 26 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 693, + "end": 699, + "loc": { + "start": { + "line": 36, + "column": 27 + }, + "end": { + "line": 36, + "column": 33 + } + }, + "value": "page", + "rawValue": null, + "raw": "\"page\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 679, + "end": 682, + "loc": { + "start": { + "line": 36, + "column": 13 + }, + "end": { + "line": 36, + "column": 16 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1459, + "end": 1465, + "loc": { + "start": { + "line": 51, + "column": 12 + }, + "end": { + "line": 51, + "column": 18 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1461, + "end": 1464, + "loc": { + "start": { + "line": 51, + "column": 14 + }, + "end": { + "line": 51, + "column": 17 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 700, + "end": 717, + "loc": { + "start": { + "line": 36, + "column": 34 + }, + "end": { + "line": 37, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 717, + "end": 1308, + "loc": { + "start": { + "line": 37, + "column": 16 + }, + "end": { + "line": 48, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 717, + "end": 749, + "loc": { + "start": { + "line": 37, + "column": 16 + }, + "end": { + "line": 37, + "column": 48 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 722, + "end": 748, + "loc": { + "start": { + "line": 37, + "column": 21 + }, + "end": { + "line": 37, + "column": 47 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 722, + "end": 731, + "loc": { + "start": { + "line": 37, + "column": 21 + }, + "end": { + "line": 37, + "column": 30 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 732, + "end": 748, + "loc": { + "start": { + "line": 37, + "column": 31 + }, + "end": { + "line": 37, + "column": 47 + } + }, + "value": "search-results", + "rawValue": null, + "raw": "\"search-results\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 718, + "end": 721, + "loc": { + "start": { + "line": 37, + "column": 17 + }, + "end": { + "line": 37, + "column": 20 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1302, + "end": 1308, + "loc": { + "start": { + "line": 48, + "column": 16 + }, + "end": { + "line": 48, + "column": 22 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1304, + "end": 1307, + "loc": { + "start": { + "line": 48, + "column": 18 + }, + "end": { + "line": 48, + "column": 21 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 749, + "end": 770, + "loc": { + "start": { + "line": 37, + "column": 48 + }, + "end": { + "line": 38, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 770, + "end": 1285, + "loc": { + "start": { + "line": 38, + "column": 20 + }, + "end": { + "line": 47, + "column": 26 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 770, + "end": 792, + "loc": { + "start": { + "line": 38, + "column": 20 + }, + "end": { + "line": 38, + "column": 42 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 775, + "end": 791, + "loc": { + "start": { + "line": 38, + "column": 25 + }, + "end": { + "line": 38, + "column": 41 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 775, + "end": 784, + "loc": { + "start": { + "line": 38, + "column": 25 + }, + "end": { + "line": 38, + "column": 34 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 785, + "end": 791, + "loc": { + "start": { + "line": 38, + "column": 35 + }, + "end": { + "line": 38, + "column": 41 + } + }, + "value": "grid", + "rawValue": null, + "raw": "\"grid\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 771, + "end": 774, + "loc": { + "start": { + "line": 38, + "column": 21 + }, + "end": { + "line": 38, + "column": 24 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1279, + "end": 1285, + "loc": { + "start": { + "line": 47, + "column": 20 + }, + "end": { + "line": 47, + "column": 26 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1281, + "end": 1284, + "loc": { + "start": { + "line": 47, + "column": 22 + }, + "end": { + "line": 47, + "column": 25 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 792, + "end": 817, + "loc": { + "start": { + "line": 38, + "column": 42 + }, + "end": { + "line": 39, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 817, + "end": 1257, + "loc": { + "start": { + "line": 39, + "column": 24 + }, + "end": { + "line": 45, + "column": 26 + } + }, + "expression": { + "type": "CallExpression", + "start": 818, + "end": 1256, + "loc": { + "start": { + "line": 39, + "column": 25 + }, + "end": { + "line": 45, + "column": 25 + } + }, + "callee": { + "type": "MemberExpression", + "start": 818, + "end": 847, + "loc": { + "start": { + "line": 39, + "column": 25 + }, + "end": { + "line": 39, + "column": 54 + } + }, + "object": { + "type": "MemberExpression", + "start": 818, + "end": 843, + "loc": { + "start": { + "line": 39, + "column": 25 + }, + "end": { + "line": 39, + "column": 50 + } + }, + "object": { + "type": "MemberExpression", + "start": 818, + "end": 835, + "loc": { + "start": { + "line": 39, + "column": 25 + }, + "end": { + "line": 39, + "column": 42 + } + }, + "object": { + "type": "MemberExpression", + "start": 818, + "end": 828, + "loc": { + "start": { + "line": 39, + "column": 25 + }, + "end": { + "line": 39, + "column": 35 + } + }, + "object": { + "type": "ThisExpression", + "start": 818, + "end": 822, + "loc": { + "start": { + "line": 39, + "column": 25 + }, + "end": { + "line": 39, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "start": 823, + "end": 828, + "loc": { + "start": { + "line": 39, + "column": 30 + }, + "end": { + "line": 39, + "column": 35 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 829, + "end": 835, + "loc": { + "start": { + "line": 39, + "column": 36 + }, + "end": { + "line": 39, + "column": 42 + } + }, + "name": "search" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 836, + "end": 843, + "loc": { + "start": { + "line": 39, + "column": 43 + }, + "end": { + "line": 39, + "column": 50 + } + }, + "name": "results" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 844, + "end": 847, + "loc": { + "start": { + "line": 39, + "column": 51 + }, + "end": { + "line": 39, + "column": 54 + } + }, + "name": "map" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 848, + "end": 1230, + "loc": { + "start": { + "line": 39, + "column": 55 + }, + "end": { + "line": 44, + "column": 34 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 848, + "end": 852, + "loc": { + "start": { + "line": 39, + "column": 55 + }, + "end": { + "line": 39, + "column": 59 + } + }, + "name": "item" + } + ], + "body": { + "type": "JSXElement", + "start": 884, + "end": 1230, + "loc": { + "start": { + "line": 40, + "column": 28 + }, + "end": { + "line": 44, + "column": 34 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 884, + "end": 950, + "loc": { + "start": { + "line": 40, + "column": 28 + }, + "end": { + "line": 40, + "column": 94 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 889, + "end": 910, + "loc": { + "start": { + "line": 40, + "column": 33 + }, + "end": { + "line": 40, + "column": 54 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 889, + "end": 898, + "loc": { + "start": { + "line": 40, + "column": 33 + }, + "end": { + "line": 40, + "column": 42 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 899, + "end": 910, + "loc": { + "start": { + "line": 40, + "column": 43 + }, + "end": { + "line": 40, + "column": 54 + } + }, + "value": "grid-cell", + "rawValue": null, + "raw": "\"grid-cell\"" + } + }, + { + "type": "JSXAttribute", + "start": 911, + "end": 949, + "loc": { + "start": { + "line": 40, + "column": 55 + }, + "end": { + "line": 40, + "column": 93 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 911, + "end": 914, + "loc": { + "start": { + "line": 40, + "column": 55 + }, + "end": { + "line": 40, + "column": 58 + } + }, + "name": "key" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 915, + "end": 949, + "loc": { + "start": { + "line": 40, + "column": 59 + }, + "end": { + "line": 40, + "column": 93 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 916, + "end": 948, + "loc": { + "start": { + "line": 40, + "column": 60 + }, + "end": { + "line": 40, + "column": 92 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 933, + "end": 946, + "loc": { + "start": { + "line": 40, + "column": 77 + }, + "end": { + "line": 40, + "column": 90 + } + }, + "object": { + "type": "Identifier", + "start": 933, + "end": 937, + "loc": { + "start": { + "line": 40, + "column": 77 + }, + "end": { + "line": 40, + "column": 81 + } + }, + "name": "item" + }, + "property": { + "type": "Identifier", + "start": 938, + "end": 946, + "loc": { + "start": { + "line": 40, + "column": 82 + }, + "end": { + "line": 40, + "column": 90 + } + }, + "name": "filename" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 917, + "end": 931, + "loc": { + "start": { + "line": 40, + "column": 61 + }, + "end": { + "line": 40, + "column": 75 + } + }, + "value": { + "raw": "search-result-", + "cooked": "search-result-" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 947, + "end": 947, + "loc": { + "start": { + "line": 40, + "column": 91 + }, + "end": { + "line": 40, + "column": 91 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 885, + "end": 888, + "loc": { + "start": { + "line": 40, + "column": 29 + }, + "end": { + "line": 40, + "column": 32 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1224, + "end": 1230, + "loc": { + "start": { + "line": 44, + "column": 28 + }, + "end": { + "line": 44, + "column": 34 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1226, + "end": 1229, + "loc": { + "start": { + "line": 44, + "column": 30 + }, + "end": { + "line": 44, + "column": 33 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 950, + "end": 983, + "loc": { + "start": { + "line": 40, + "column": 94 + }, + "end": { + "line": 41, + "column": 32 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 983, + "end": 1195, + "loc": { + "start": { + "line": 41, + "column": 32 + }, + "end": { + "line": 43, + "column": 39 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 983, + "end": 1015, + "loc": { + "start": { + "line": 41, + "column": 32 + }, + "end": { + "line": 41, + "column": 64 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 989, + "end": 1014, + "loc": { + "start": { + "line": 41, + "column": 38 + }, + "end": { + "line": 41, + "column": 63 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 989, + "end": 991, + "loc": { + "start": { + "line": 41, + "column": 38 + }, + "end": { + "line": 41, + "column": 40 + } + }, + "name": "to" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 992, + "end": 1014, + "loc": { + "start": { + "line": 41, + "column": 41 + }, + "end": { + "line": 41, + "column": 63 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 993, + "end": 1013, + "loc": { + "start": { + "line": 41, + "column": 42 + }, + "end": { + "line": 41, + "column": 62 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 1004, + "end": 1011, + "loc": { + "start": { + "line": 41, + "column": 53 + }, + "end": { + "line": 41, + "column": 60 + } + }, + "object": { + "type": "Identifier", + "start": 1004, + "end": 1008, + "loc": { + "start": { + "line": 41, + "column": 53 + }, + "end": { + "line": 41, + "column": 57 + } + }, + "name": "item" + }, + "property": { + "type": "Identifier", + "start": 1009, + "end": 1011, + "loc": { + "start": { + "line": 41, + "column": 58 + }, + "end": { + "line": 41, + "column": 60 + } + }, + "name": "id" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 994, + "end": 1002, + "loc": { + "start": { + "line": 41, + "column": 43 + }, + "end": { + "line": 41, + "column": 51 + } + }, + "value": { + "raw": "/photos/", + "cooked": "/photos/" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 1012, + "end": 1012, + "loc": { + "start": { + "line": 41, + "column": 61 + }, + "end": { + "line": 41, + "column": 61 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 984, + "end": 988, + "loc": { + "start": { + "line": 41, + "column": 33 + }, + "end": { + "line": 41, + "column": 37 + } + }, + "name": "Link" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1188, + "end": 1195, + "loc": { + "start": { + "line": 43, + "column": 32 + }, + "end": { + "line": 43, + "column": 39 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1190, + "end": 1194, + "loc": { + "start": { + "line": 43, + "column": 34 + }, + "end": { + "line": 43, + "column": 38 + } + }, + "name": "Link" + } + }, + "children": [ + { + "type": "Literal", + "start": 1015, + "end": 1052, + "loc": { + "start": { + "line": 41, + "column": 64 + }, + "end": { + "line": 42, + "column": 36 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1052, + "end": 1155, + "loc": { + "start": { + "line": 42, + "column": 36 + }, + "end": { + "line": 42, + "column": 139 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1052, + "end": 1155, + "loc": { + "start": { + "line": 42, + "column": 36 + }, + "end": { + "line": 42, + "column": 139 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1057, + "end": 1152, + "loc": { + "start": { + "line": 42, + "column": 41 + }, + "end": { + "line": 42, + "column": 136 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1057, + "end": 1060, + "loc": { + "start": { + "line": 42, + "column": 41 + }, + "end": { + "line": 42, + "column": 44 + } + }, + "name": "src" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 1061, + "end": 1152, + "loc": { + "start": { + "line": 42, + "column": 45 + }, + "end": { + "line": 42, + "column": 136 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 1062, + "end": 1151, + "loc": { + "start": { + "line": 42, + "column": 46 + }, + "end": { + "line": 42, + "column": 135 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 1065, + "end": 1085, + "loc": { + "start": { + "line": 42, + "column": 49 + }, + "end": { + "line": 42, + "column": 69 + } + }, + "object": { + "type": "MemberExpression", + "start": 1065, + "end": 1077, + "loc": { + "start": { + "line": 42, + "column": 49 + }, + "end": { + "line": 42, + "column": 61 + } + }, + "object": { + "type": "Identifier", + "start": 1065, + "end": 1071, + "loc": { + "start": { + "line": 42, + "column": 49 + }, + "end": { + "line": 42, + "column": 55 + } + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 1072, + "end": 1077, + "loc": { + "start": { + "line": 42, + "column": 56 + }, + "end": { + "line": 42, + "column": 61 + } + }, + "name": "imgix" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1078, + "end": 1085, + "loc": { + "start": { + "line": 42, + "column": 62 + }, + "end": { + "line": 42, + "column": 69 + } + }, + "name": "baseUrl" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 1089, + "end": 1102, + "loc": { + "start": { + "line": 42, + "column": 73 + }, + "end": { + "line": 42, + "column": 86 + } + }, + "object": { + "type": "Identifier", + "start": 1089, + "end": 1093, + "loc": { + "start": { + "line": 42, + "column": 73 + }, + "end": { + "line": 42, + "column": 77 + } + }, + "name": "item" + }, + "property": { + "type": "Identifier", + "start": 1094, + "end": 1102, + "loc": { + "start": { + "line": 42, + "column": 78 + }, + "end": { + "line": 42, + "column": 86 + } + }, + "name": "filename" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 1063, + "end": 1063, + "loc": { + "start": { + "line": 42, + "column": 47 + }, + "end": { + "line": 42, + "column": 47 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 1086, + "end": 1087, + "loc": { + "start": { + "line": 42, + "column": 70 + }, + "end": { + "line": 42, + "column": 71 + } + }, + "value": { + "raw": "/", + "cooked": "/" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 1103, + "end": 1150, + "loc": { + "start": { + "line": 42, + "column": 87 + }, + "end": { + "line": 42, + "column": 134 + } + }, + "value": { + "raw": "?auto=enhance&w=200&h=200&fit=crop&fm=png&dpr=2", + "cooked": "?auto=enhance&w=200&h=200&fit=crop&fm=png&dpr=2" + }, + "tail": true + } + ] + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1053, + "end": 1056, + "loc": { + "start": { + "line": 42, + "column": 37 + }, + "end": { + "line": 42, + "column": 40 + } + }, + "name": "img" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 1155, + "end": 1188, + "loc": { + "start": { + "line": 42, + "column": 139 + }, + "end": { + "line": 43, + "column": 32 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 1195, + "end": 1224, + "loc": { + "start": { + "line": 43, + "column": 39 + }, + "end": { + "line": 44, + "column": 28 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + } + } + ] + } + }, + { + "type": "Literal", + "start": 1257, + "end": 1279, + "loc": { + "start": { + "line": 45, + "column": 26 + }, + "end": { + "line": 47, + "column": 20 + } + }, + "value": "\n\n ", + "rawValue": null, + "raw": "\n\n " + } + ] + }, + { + "type": "Literal", + "start": 1285, + "end": 1302, + "loc": { + "start": { + "line": 47, + "column": 26 + }, + "end": { + "line": 48, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 1308, + "end": 1325, + "loc": { + "start": { + "line": 48, + "column": 22 + }, + "end": { + "line": 49, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 1325, + "end": 1446, + "loc": { + "start": { + "line": 49, + "column": 16 + }, + "end": { + "line": 50, + "column": 94 + } + }, + "expression": { + "type": "ConditionalExpression", + "start": 1326, + "end": 1445, + "loc": { + "start": { + "line": 49, + "column": 17 + }, + "end": { + "line": 50, + "column": 93 + } + }, + "test": { + "type": "UnaryExpression", + "start": 1326, + "end": 1351, + "loc": { + "start": { + "line": 49, + "column": 17 + }, + "end": { + "line": 49, + "column": 42 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 1327, + "end": 1351, + "loc": { + "start": { + "line": 49, + "column": 18 + }, + "end": { + "line": 49, + "column": 42 + } + }, + "object": { + "type": "MemberExpression", + "start": 1327, + "end": 1344, + "loc": { + "start": { + "line": 49, + "column": 18 + }, + "end": { + "line": 49, + "column": 35 + } + }, + "object": { + "type": "MemberExpression", + "start": 1327, + "end": 1337, + "loc": { + "start": { + "line": 49, + "column": 18 + }, + "end": { + "line": 49, + "column": 28 + } + }, + "object": { + "type": "ThisExpression", + "start": 1327, + "end": 1331, + "loc": { + "start": { + "line": 49, + "column": 18 + }, + "end": { + "line": 49, + "column": 22 + } + } + }, + "property": { + "type": "Identifier", + "start": 1332, + "end": 1337, + "loc": { + "start": { + "line": 49, + "column": 23 + }, + "end": { + "line": 49, + "column": 28 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1338, + "end": 1344, + "loc": { + "start": { + "line": 49, + "column": 29 + }, + "end": { + "line": 49, + "column": 35 + } + }, + "name": "search" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1345, + "end": 1351, + "loc": { + "start": { + "line": 49, + "column": 36 + }, + "end": { + "line": 49, + "column": 42 + } + }, + "name": "length" + }, + "computed": false + } + }, + "consequent": { + "type": "JSXElement", + "start": 1374, + "end": 1438, + "loc": { + "start": { + "line": 50, + "column": 22 + }, + "end": { + "line": 50, + "column": 86 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1374, + "end": 1405, + "loc": { + "start": { + "line": 50, + "column": 22 + }, + "end": { + "line": 50, + "column": 53 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 1379, + "end": 1404, + "loc": { + "start": { + "line": 50, + "column": 27 + }, + "end": { + "line": 50, + "column": 52 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1379, + "end": 1388, + "loc": { + "start": { + "line": 50, + "column": 27 + }, + "end": { + "line": 50, + "column": 36 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 1389, + "end": 1404, + "loc": { + "start": { + "line": 50, + "column": 37 + }, + "end": { + "line": 50, + "column": 52 + } + }, + "value": "empty-message", + "rawValue": null, + "raw": "\"empty-message\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 1375, + "end": 1378, + "loc": { + "start": { + "line": 50, + "column": 23 + }, + "end": { + "line": 50, + "column": 26 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1432, + "end": 1438, + "loc": { + "start": { + "line": 50, + "column": 80 + }, + "end": { + "line": 50, + "column": 86 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1434, + "end": 1437, + "loc": { + "start": { + "line": 50, + "column": 82 + }, + "end": { + "line": 50, + "column": 85 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "JSXElement", + "start": 1405, + "end": 1432, + "loc": { + "start": { + "line": 50, + "column": 53 + }, + "end": { + "line": 50, + "column": 80 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1405, + "end": 1410, + "loc": { + "start": { + "line": 50, + "column": 53 + }, + "end": { + "line": 50, + "column": 58 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 1406, + "end": 1409, + "loc": { + "start": { + "line": 50, + "column": 54 + }, + "end": { + "line": 50, + "column": 57 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1426, + "end": 1432, + "loc": { + "start": { + "line": 50, + "column": 74 + }, + "end": { + "line": 50, + "column": 80 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1428, + "end": 1431, + "loc": { + "start": { + "line": 50, + "column": 76 + }, + "end": { + "line": 50, + "column": 79 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 1410, + "end": 1426, + "loc": { + "start": { + "line": 50, + "column": 58 + }, + "end": { + "line": 50, + "column": 74 + } + }, + "value": "No results found", + "rawValue": null, + "raw": "No results found" + } + ] + } + ] + }, + "alternate": { + "type": "Literal", + "start": 1441, + "end": 1445, + "loc": { + "start": { + "line": 50, + "column": 89 + }, + "end": { + "line": 50, + "column": 93 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + } + } + }, + { + "type": "Literal", + "start": 1446, + "end": 1459, + "loc": { + "start": { + "line": 50, + "column": 94 + }, + "end": { + "line": 51, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 592, + "end": 634, + "loc": { + "start": { + "line": 29, + "column": 2 + }, + "end": { + "line": 32, + "column": 5 + } + }, + "range": [ + 592, + 634 + ] + } + ] + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * SearchResults\n * '/search-results'\n * React Route - Documentation: https://github.com/reactjs/react-router/tree/master/docs\n ", + "start": 200, + "end": 334, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + }, + "range": [ + 200, + 334 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * connect\n * Connects React component to a Redux store\n * Documentation: https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options\n ", + "start": 1486, + "end": 1691, + "loc": { + "start": { + "line": 57, + "column": 0 + }, + "end": { + "line": 61, + "column": 3 + } + }, + "range": [ + 1486, + 1691 + ] + } + ] + }, + { + "type": "ExportDefaultDeclaration", + "start": 1692, + "end": 1771, + "loc": { + "start": { + "line": 62, + "column": 0 + }, + "end": { + "line": 64, + "column": 18 + } + }, + "declaration": { + "type": "CallExpression", + "start": 1707, + "end": 1771, + "loc": { + "start": { + "line": 62, + "column": 15 + }, + "end": { + "line": 64, + "column": 18 + } + }, + "callee": { + "type": "CallExpression", + "start": 1707, + "end": 1756, + "loc": { + "start": { + "line": 62, + "column": 15 + }, + "end": { + "line": 64, + "column": 3 + } + }, + "callee": { + "type": "Identifier", + "start": 1707, + "end": 1714, + "loc": { + "start": { + "line": 62, + "column": 15 + }, + "end": { + "line": 62, + "column": 22 + } + }, + "name": "connect", + "leadingComments": null + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 1715, + "end": 1755, + "loc": { + "start": { + "line": 62, + "column": 23 + }, + "end": { + "line": 64, + "column": 2 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1715, + "end": 1720, + "loc": { + "start": { + "line": 62, + "column": 23 + }, + "end": { + "line": 62, + "column": 28 + } + }, + "name": "state" + } + ], + "body": { + "type": "ObjectExpression", + "start": 1725, + "end": 1754, + "loc": { + "start": { + "line": 62, + "column": 33 + }, + "end": { + "line": 64, + "column": 1 + } + }, + "properties": [ + { + "type": "Property", + "start": 1731, + "end": 1751, + "loc": { + "start": { + "line": 63, + "column": 4 + }, + "end": { + "line": 63, + "column": 24 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1731, + "end": 1737, + "loc": { + "start": { + "line": 63, + "column": 4 + }, + "end": { + "line": 63, + "column": 10 + } + }, + "name": "search" + }, + "value": { + "type": "MemberExpression", + "start": 1739, + "end": 1751, + "loc": { + "start": { + "line": 63, + "column": 12 + }, + "end": { + "line": 63, + "column": 24 + } + }, + "object": { + "type": "Identifier", + "start": 1739, + "end": 1744, + "loc": { + "start": { + "line": 63, + "column": 12 + }, + "end": { + "line": 63, + "column": 17 + } + }, + "name": "state" + }, + "property": { + "type": "Identifier", + "start": 1745, + "end": 1751, + "loc": { + "start": { + "line": 63, + "column": 18 + }, + "end": { + "line": 63, + "column": 24 + } + }, + "name": "Search" + }, + "computed": false + }, + "kind": "init" + } + ], + "parenthesizedExpression": true + } + } + ], + "leadingComments": null + }, + "arguments": [ + { + "type": "Identifier", + "start": 1757, + "end": 1770, + "loc": { + "start": { + "line": 64, + "column": 4 + }, + "end": { + "line": 64, + "column": 17 + } + }, + "name": "SearchResults" + } + ], + "leadingComments": [ + { + "type": "Block", + "value": "*\n * connect\n * Connects React component to a Redux store\n * Documentation: https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options\n ", + "start": 1486, + "end": 1691, + "loc": { + "start": { + "line": 57, + "column": 0 + }, + "end": { + "line": 61, + "column": 3 + } + }, + "range": [ + 1486, + 1691 + ] + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * connect\n * Connects React component to a Redux store\n * Documentation: https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options\n ", + "start": 1486, + "end": 1691, + "loc": { + "start": { + "line": 57, + "column": 0 + }, + "end": { + "line": 61, + "column": 3 + } + }, + "range": [ + 1486, + 1691 + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/routes/SearchResults/index.js.json b/app/docs/ast/source/routes/SearchResults/index.js.json new file mode 100644 index 0000000..7d43dd0 --- /dev/null +++ b/app/docs/ast/source/routes/SearchResults/index.js.json @@ -0,0 +1,1589 @@ +{ + "type": "Program", + "start": 0, + "end": 911, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 44, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 18, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 18 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ImportDeclaration", + "start": 26, + "end": 71, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 45 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 35, + "end": 49, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 23 + } + }, + "imported": { + "type": "Identifier", + "start": 35, + "end": 49, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 23 + } + }, + "name": "browserHistory" + }, + "local": { + "type": "Identifier", + "start": 35, + "end": 49, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 23 + } + }, + "name": "browserHistory" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 57, + "end": 71, + "loc": { + "start": { + "line": 2, + "column": 31 + }, + "end": { + "line": 2, + "column": 45 + } + }, + "value": "react-router", + "rawValue": "react-router", + "raw": "'react-router'" + } + }, + { + "type": "ImportDeclaration", + "start": 72, + "end": 111, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 39 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 81, + "end": 91, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 19 + } + }, + "imported": { + "type": "Identifier", + "start": 81, + "end": 91, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 19 + } + }, + "name": "BackButton" + }, + "local": { + "type": "Identifier", + "start": 81, + "end": 91, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 19 + } + }, + "name": "BackButton" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 99, + "end": 111, + "loc": { + "start": { + "line": 3, + "column": 27 + }, + "end": { + "line": 3, + "column": 39 + } + }, + "value": "components", + "rawValue": "components", + "raw": "'components'" + } + }, + { + "type": "ExpressionStatement", + "start": 113, + "end": 910, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 43, + "column": 1 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 113, + "end": 910, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 43, + "column": 1 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 113, + "end": 127, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 14 + } + }, + "object": { + "type": "Identifier", + "start": 113, + "end": 119, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 6 + } + }, + "name": "module" + }, + "property": { + "type": "Identifier", + "start": 120, + "end": 127, + "loc": { + "start": { + "line": 5, + "column": 7 + }, + "end": { + "line": 5, + "column": 14 + } + }, + "name": "exports" + }, + "computed": false + }, + "right": { + "type": "ObjectExpression", + "start": 130, + "end": 910, + "loc": { + "start": { + "line": 5, + "column": 17 + }, + "end": { + "line": 43, + "column": 1 + } + }, + "properties": [ + { + "type": "Property", + "start": 136, + "end": 159, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 6, + "column": 27 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 136, + "end": 140, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 6, + "column": 8 + } + }, + "name": "path" + }, + "value": { + "type": "Literal", + "start": 142, + "end": 159, + "loc": { + "start": { + "line": 6, + "column": 10 + }, + "end": { + "line": 6, + "column": 27 + } + }, + "value": "/search-results", + "rawValue": "/search-results", + "raw": "'/search-results'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 262, + "end": 349, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 15, + "column": 5 + } + }, + "method": true, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 262, + "end": 274, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 16 + } + }, + "name": "getComponent", + "leadingComments": null + }, + "kind": "init", + "value": { + "type": "FunctionExpression", + "start": 274, + "end": 349, + "loc": { + "start": { + "line": 13, + "column": 16 + }, + "end": { + "line": 15, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 275, + "end": 283, + "loc": { + "start": { + "line": 13, + "column": 17 + }, + "end": { + "line": 13, + "column": 25 + } + }, + "name": "location" + }, + { + "type": "Identifier", + "start": 285, + "end": 287, + "loc": { + "start": { + "line": 13, + "column": 27 + }, + "end": { + "line": 13, + "column": 29 + } + }, + "name": "cb" + } + ], + "body": { + "type": "BlockStatement", + "start": 289, + "end": 349, + "loc": { + "start": { + "line": 13, + "column": 31 + }, + "end": { + "line": 15, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 299, + "end": 343, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 52 + } + }, + "expression": { + "type": "CallExpression", + "start": 299, + "end": 343, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 52 + } + }, + "callee": { + "type": "Identifier", + "start": 299, + "end": 301, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 10 + } + }, + "name": "cb" + }, + "arguments": [ + { + "type": "Literal", + "start": 302, + "end": 306, + "loc": { + "start": { + "line": 14, + "column": 11 + }, + "end": { + "line": 14, + "column": 15 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + { + "type": "MemberExpression", + "start": 308, + "end": 342, + "loc": { + "start": { + "line": 14, + "column": 17 + }, + "end": { + "line": 14, + "column": 51 + } + }, + "object": { + "type": "CallExpression", + "start": 308, + "end": 334, + "loc": { + "start": { + "line": 14, + "column": 17 + }, + "end": { + "line": 14, + "column": 43 + } + }, + "callee": { + "type": "Identifier", + "start": 308, + "end": 315, + "loc": { + "start": { + "line": 14, + "column": 17 + }, + "end": { + "line": 14, + "column": 24 + } + }, + "name": "require" + }, + "arguments": [ + { + "type": "Literal", + "start": 316, + "end": 333, + "loc": { + "start": { + "line": 14, + "column": 25 + }, + "end": { + "line": 14, + "column": 42 + } + }, + "value": "./SearchResults", + "rawValue": "./SearchResults", + "raw": "'./SearchResults'" + } + ] + }, + "property": { + "type": "Identifier", + "start": 335, + "end": 342, + "loc": { + "start": { + "line": 14, + "column": 44 + }, + "end": { + "line": 14, + "column": 51 + } + }, + "name": "default" + }, + "computed": false + } + ] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * getComponent\n * @param location\n * @param cb {Function} callback\n ", + "start": 166, + "end": 257, + "loc": { + "start": { + "line": 8, + "column": 4 + }, + "end": { + "line": 12, + "column": 7 + } + }, + "range": [ + 166, + 257 + ] + } + ] + }, + { + "type": "Property", + "start": 453, + "end": 570, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 24, + "column": 5 + } + }, + "method": true, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 453, + "end": 466, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 17 + } + }, + "name": "getHeaderLeft", + "leadingComments": null + }, + "kind": "init", + "value": { + "type": "FunctionExpression", + "start": 466, + "end": 570, + "loc": { + "start": { + "line": 22, + "column": 17 + }, + "end": { + "line": 24, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 467, + "end": 475, + "loc": { + "start": { + "line": 22, + "column": 18 + }, + "end": { + "line": 22, + "column": 26 + } + }, + "name": "location" + }, + { + "type": "Identifier", + "start": 477, + "end": 479, + "loc": { + "start": { + "line": 22, + "column": 28 + }, + "end": { + "line": 22, + "column": 30 + } + }, + "name": "cb" + } + ], + "body": { + "type": "BlockStatement", + "start": 481, + "end": 570, + "loc": { + "start": { + "line": 22, + "column": 32 + }, + "end": { + "line": 24, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 491, + "end": 564, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 81 + } + }, + "expression": { + "type": "CallExpression", + "start": 491, + "end": 564, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 81 + } + }, + "callee": { + "type": "Identifier", + "start": 491, + "end": 493, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 10 + } + }, + "name": "cb" + }, + "arguments": [ + { + "type": "Literal", + "start": 494, + "end": 498, + "loc": { + "start": { + "line": 23, + "column": 11 + }, + "end": { + "line": 23, + "column": 15 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + { + "type": "JSXElement", + "start": 500, + "end": 563, + "loc": { + "start": { + "line": 23, + "column": 17 + }, + "end": { + "line": 23, + "column": 80 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 500, + "end": 563, + "loc": { + "start": { + "line": 23, + "column": 17 + }, + "end": { + "line": 23, + "column": 80 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 512, + "end": 526, + "loc": { + "start": { + "line": 23, + "column": 29 + }, + "end": { + "line": 23, + "column": 43 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 512, + "end": 517, + "loc": { + "start": { + "line": 23, + "column": 29 + }, + "end": { + "line": 23, + "column": 34 + } + }, + "name": "label" + }, + "value": { + "type": "Literal", + "start": 518, + "end": 526, + "loc": { + "start": { + "line": 23, + "column": 35 + }, + "end": { + "line": 23, + "column": 43 + } + }, + "value": "Search", + "rawValue": null, + "raw": "\"Search\"" + } + }, + { + "type": "JSXAttribute", + "start": 527, + "end": 561, + "loc": { + "start": { + "line": 23, + "column": 44 + }, + "end": { + "line": 23, + "column": 78 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 527, + "end": 529, + "loc": { + "start": { + "line": 23, + "column": 44 + }, + "end": { + "line": 23, + "column": 46 + } + }, + "name": "to" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 530, + "end": 561, + "loc": { + "start": { + "line": 23, + "column": 47 + }, + "end": { + "line": 23, + "column": 78 + } + }, + "expression": { + "type": "ArrowFunctionExpression", + "start": 531, + "end": 560, + "loc": { + "start": { + "line": 23, + "column": 48 + }, + "end": { + "line": 23, + "column": 77 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [], + "body": { + "type": "CallExpression", + "start": 537, + "end": 560, + "loc": { + "start": { + "line": 23, + "column": 54 + }, + "end": { + "line": 23, + "column": 77 + } + }, + "callee": { + "type": "MemberExpression", + "start": 537, + "end": 558, + "loc": { + "start": { + "line": 23, + "column": 54 + }, + "end": { + "line": 23, + "column": 75 + } + }, + "object": { + "type": "Identifier", + "start": 537, + "end": 551, + "loc": { + "start": { + "line": 23, + "column": 54 + }, + "end": { + "line": 23, + "column": 68 + } + }, + "name": "browserHistory" + }, + "property": { + "type": "Identifier", + "start": 552, + "end": 558, + "loc": { + "start": { + "line": 23, + "column": 69 + }, + "end": { + "line": 23, + "column": 75 + } + }, + "name": "goBack" + }, + "computed": false + }, + "arguments": [] + } + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 501, + "end": 511, + "loc": { + "start": { + "line": 23, + "column": 18 + }, + "end": { + "line": 23, + "column": 28 + } + }, + "name": "BackButton" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + ] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * getHeaderLeft\n * @param location\n * @param cb {Function} callback\n ", + "start": 356, + "end": 448, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 21, + "column": 7 + } + }, + "range": [ + 356, + 448 + ] + } + ] + }, + { + "type": "Property", + "start": 676, + "end": 740, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "method": true, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 676, + "end": 691, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 19 + } + }, + "name": "getHeaderMiddle", + "leadingComments": null + }, + "kind": "init", + "value": { + "type": "FunctionExpression", + "start": 691, + "end": 740, + "loc": { + "start": { + "line": 31, + "column": 19 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 692, + "end": 700, + "loc": { + "start": { + "line": 31, + "column": 20 + }, + "end": { + "line": 31, + "column": 28 + } + }, + "name": "location" + }, + { + "type": "Identifier", + "start": 702, + "end": 704, + "loc": { + "start": { + "line": 31, + "column": 30 + }, + "end": { + "line": 31, + "column": 32 + } + }, + "name": "cb" + } + ], + "body": { + "type": "BlockStatement", + "start": 706, + "end": 740, + "loc": { + "start": { + "line": 31, + "column": 34 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 716, + "end": 734, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 26 + } + }, + "expression": { + "type": "CallExpression", + "start": 716, + "end": 734, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 26 + } + }, + "callee": { + "type": "Identifier", + "start": 716, + "end": 718, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 10 + } + }, + "name": "cb" + }, + "arguments": [ + { + "type": "Literal", + "start": 719, + "end": 723, + "loc": { + "start": { + "line": 32, + "column": 11 + }, + "end": { + "line": 32, + "column": 15 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + { + "type": "JSXElement", + "start": 725, + "end": 733, + "loc": { + "start": { + "line": 32, + "column": 17 + }, + "end": { + "line": 32, + "column": 25 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 725, + "end": 733, + "loc": { + "start": { + "line": 32, + "column": 17 + }, + "end": { + "line": 32, + "column": 25 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 726, + "end": 730, + "loc": { + "start": { + "line": 32, + "column": 18 + }, + "end": { + "line": 32, + "column": 22 + } + }, + "name": "span" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + ] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * getHeaderMiddle\n * @param location\n * @param cb {Function} callback\n ", + "start": 577, + "end": 671, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 30, + "column": 7 + } + }, + "range": [ + 577, + 671 + ] + } + ] + }, + { + "type": "Property", + "start": 845, + "end": 908, + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 42, + "column": 5 + } + }, + "method": true, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 845, + "end": 859, + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 40, + "column": 18 + } + }, + "name": "getHeaderRight", + "leadingComments": null + }, + "kind": "init", + "value": { + "type": "FunctionExpression", + "start": 859, + "end": 908, + "loc": { + "start": { + "line": 40, + "column": 18 + }, + "end": { + "line": 42, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 860, + "end": 868, + "loc": { + "start": { + "line": 40, + "column": 19 + }, + "end": { + "line": 40, + "column": 27 + } + }, + "name": "location" + }, + { + "type": "Identifier", + "start": 870, + "end": 872, + "loc": { + "start": { + "line": 40, + "column": 29 + }, + "end": { + "line": 40, + "column": 31 + } + }, + "name": "cb" + } + ], + "body": { + "type": "BlockStatement", + "start": 874, + "end": 908, + "loc": { + "start": { + "line": 40, + "column": 33 + }, + "end": { + "line": 42, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 884, + "end": 902, + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 41, + "column": 26 + } + }, + "expression": { + "type": "CallExpression", + "start": 884, + "end": 902, + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 41, + "column": 26 + } + }, + "callee": { + "type": "Identifier", + "start": 884, + "end": 886, + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 41, + "column": 10 + } + }, + "name": "cb" + }, + "arguments": [ + { + "type": "Literal", + "start": 887, + "end": 891, + "loc": { + "start": { + "line": 41, + "column": 11 + }, + "end": { + "line": 41, + "column": 15 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + { + "type": "JSXElement", + "start": 893, + "end": 901, + "loc": { + "start": { + "line": 41, + "column": 17 + }, + "end": { + "line": 41, + "column": 25 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 893, + "end": 901, + "loc": { + "start": { + "line": 41, + "column": 17 + }, + "end": { + "line": 41, + "column": 25 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 894, + "end": 898, + "loc": { + "start": { + "line": 41, + "column": 18 + }, + "end": { + "line": 41, + "column": 22 + } + }, + "name": "span" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + ] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * getHeaderRight\n * @param location\n * @param cb {Function} callback\n ", + "start": 747, + "end": 840, + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 39, + "column": 7 + } + }, + "range": [ + 747, + 840 + ] + } + ] + } + ] + } + } + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/routes/Stats/Stats.js.json b/app/docs/ast/source/routes/Stats/Stats.js.json new file mode 100644 index 0000000..7d6edd2 --- /dev/null +++ b/app/docs/ast/source/routes/Stats/Stats.js.json @@ -0,0 +1,11431 @@ +{ + "type": "Program", + "start": 0, + "end": 5140, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 140, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + }, + { + "type": "ImportSpecifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "imported": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + }, + "local": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 33, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 33 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ImportDeclaration", + "start": 41, + "end": 78, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 37 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 50, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "imported": { + "type": "Identifier", + "start": 50, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "name": "connect" + }, + "local": { + "type": "Identifier", + "start": 50, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "name": "connect" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 65, + "end": 78, + "loc": { + "start": { + "line": 2, + "column": 24 + }, + "end": { + "line": 2, + "column": 37 + } + }, + "value": "react-redux", + "rawValue": "react-redux", + "raw": "'react-redux'" + } + }, + { + "type": "ImportDeclaration", + "start": 79, + "end": 106, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 27 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 86, + "end": 92, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 13 + } + }, + "local": { + "type": "Identifier", + "start": 86, + "end": 92, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 13 + } + }, + "name": "config" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 98, + "end": 106, + "loc": { + "start": { + "line": 3, + "column": 19 + }, + "end": { + "line": 3, + "column": 27 + } + }, + "value": "config", + "rawValue": "config", + "raw": "'config'" + } + }, + { + "type": "ImportDeclaration", + "start": 108, + "end": 191, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 8, + "column": 16 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 121, + "end": 142, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 6, + "column": 25 + } + }, + "imported": { + "type": "Identifier", + "start": 121, + "end": 126, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 6, + "column": 9 + } + }, + "name": "Stats" + }, + "local": { + "type": "Identifier", + "start": 130, + "end": 142, + "loc": { + "start": { + "line": 6, + "column": 13 + }, + "end": { + "line": 6, + "column": 25 + } + }, + "name": "StatsActions" + } + }, + { + "type": "ImportSpecifier", + "start": 148, + "end": 173, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 7, + "column": 29 + } + }, + "imported": { + "type": "Identifier", + "start": 148, + "end": 155, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 7, + "column": 11 + } + }, + "name": "Profile" + }, + "local": { + "type": "Identifier", + "start": 159, + "end": 173, + "loc": { + "start": { + "line": 7, + "column": 15 + }, + "end": { + "line": 7, + "column": 29 + } + }, + "name": "ProfileActions" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 182, + "end": 191, + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 16 + } + }, + "value": "actions", + "rawValue": "actions", + "raw": "'actions'" + } + }, + { + "type": "ImportDeclaration", + "start": 193, + "end": 228, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 10, + "column": 35 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 202, + "end": 206, + "loc": { + "start": { + "line": 10, + "column": 9 + }, + "end": { + "line": 10, + "column": 13 + } + }, + "imported": { + "type": "Identifier", + "start": 202, + "end": 206, + "loc": { + "start": { + "line": 10, + "column": 9 + }, + "end": { + "line": 10, + "column": 13 + } + }, + "name": "Link" + }, + "local": { + "type": "Identifier", + "start": 202, + "end": 206, + "loc": { + "start": { + "line": 10, + "column": 9 + }, + "end": { + "line": 10, + "column": 13 + } + }, + "name": "Link" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 214, + "end": 228, + "loc": { + "start": { + "line": 10, + "column": 21 + }, + "end": { + "line": 10, + "column": 35 + } + }, + "value": "react-router", + "rawValue": "react-router", + "raw": "'react-router'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * UploadStats\n * React component used by Stats route\n ", + "start": 230, + "end": 291, + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 15, + "column": 3 + } + }, + "range": [ + 230, + 291 + ] + } + ] + }, + { + "type": "ClassDeclaration", + "start": 292, + "end": 1042, + "loc": { + "start": { + "line": 16, + "column": 0 + }, + "end": { + "line": 33, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 298, + "end": 309, + "loc": { + "start": { + "line": 16, + "column": 6 + }, + "end": { + "line": 16, + "column": 17 + } + }, + "name": "UploadStats", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 318, + "end": 327, + "loc": { + "start": { + "line": 16, + "column": 26 + }, + "end": { + "line": 16, + "column": 35 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 328, + "end": 1042, + "loc": { + "start": { + "line": 16, + "column": 36 + }, + "end": { + "line": 33, + "column": 1 + } + }, + "body": [ + { + "type": "MethodDefinition", + "start": 334, + "end": 1040, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 32, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 334, + "end": 340, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 10 + } + }, + "name": "render" + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 340, + "end": 1040, + "loc": { + "start": { + "line": 17, + "column": 10 + }, + "end": { + "line": 32, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 343, + "end": 1040, + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 32, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 353, + "end": 1034, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 31, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 374, + "end": 1024, + "loc": { + "start": { + "line": 19, + "column": 12 + }, + "end": { + "line": 30, + "column": 18 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 374, + "end": 379, + "loc": { + "start": { + "line": 19, + "column": 12 + }, + "end": { + "line": 19, + "column": 17 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 375, + "end": 378, + "loc": { + "start": { + "line": 19, + "column": 13 + }, + "end": { + "line": 19, + "column": 16 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1018, + "end": 1024, + "loc": { + "start": { + "line": 30, + "column": 12 + }, + "end": { + "line": 30, + "column": 18 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1020, + "end": 1023, + "loc": { + "start": { + "line": 30, + "column": 14 + }, + "end": { + "line": 30, + "column": 17 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 379, + "end": 396, + "loc": { + "start": { + "line": 19, + "column": 17 + }, + "end": { + "line": 20, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 396, + "end": 1005, + "loc": { + "start": { + "line": 20, + "column": 16 + }, + "end": { + "line": 29, + "column": 23 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 396, + "end": 434, + "loc": { + "start": { + "line": 20, + "column": 16 + }, + "end": { + "line": 20, + "column": 54 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 402, + "end": 433, + "loc": { + "start": { + "line": 20, + "column": 22 + }, + "end": { + "line": 20, + "column": 53 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 402, + "end": 404, + "loc": { + "start": { + "line": 20, + "column": 22 + }, + "end": { + "line": 20, + "column": 24 + } + }, + "name": "to" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 405, + "end": 433, + "loc": { + "start": { + "line": 20, + "column": 25 + }, + "end": { + "line": 20, + "column": 53 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 406, + "end": 432, + "loc": { + "start": { + "line": 20, + "column": 26 + }, + "end": { + "line": 20, + "column": 52 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 417, + "end": 430, + "loc": { + "start": { + "line": 20, + "column": 37 + }, + "end": { + "line": 20, + "column": 50 + } + }, + "object": { + "type": "MemberExpression", + "start": 417, + "end": 427, + "loc": { + "start": { + "line": 20, + "column": 37 + }, + "end": { + "line": 20, + "column": 47 + } + }, + "object": { + "type": "ThisExpression", + "start": 417, + "end": 421, + "loc": { + "start": { + "line": 20, + "column": 37 + }, + "end": { + "line": 20, + "column": 41 + } + } + }, + "property": { + "type": "Identifier", + "start": 422, + "end": 427, + "loc": { + "start": { + "line": 20, + "column": 42 + }, + "end": { + "line": 20, + "column": 47 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 428, + "end": 430, + "loc": { + "start": { + "line": 20, + "column": 48 + }, + "end": { + "line": 20, + "column": 50 + } + }, + "name": "id" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 407, + "end": 415, + "loc": { + "start": { + "line": 20, + "column": 27 + }, + "end": { + "line": 20, + "column": 35 + } + }, + "value": { + "raw": "/photos/", + "cooked": "/photos/" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 431, + "end": 431, + "loc": { + "start": { + "line": 20, + "column": 51 + }, + "end": { + "line": 20, + "column": 51 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 397, + "end": 401, + "loc": { + "start": { + "line": 20, + "column": 17 + }, + "end": { + "line": 20, + "column": 21 + } + }, + "name": "Link" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 998, + "end": 1005, + "loc": { + "start": { + "line": 29, + "column": 16 + }, + "end": { + "line": 29, + "column": 23 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1000, + "end": 1004, + "loc": { + "start": { + "line": 29, + "column": 18 + }, + "end": { + "line": 29, + "column": 22 + } + }, + "name": "Link" + } + }, + "children": [ + { + "type": "Literal", + "start": 434, + "end": 455, + "loc": { + "start": { + "line": 20, + "column": 54 + }, + "end": { + "line": 21, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 455, + "end": 644, + "loc": { + "start": { + "line": 21, + "column": 20 + }, + "end": { + "line": 23, + "column": 26 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 455, + "end": 460, + "loc": { + "start": { + "line": 21, + "column": 20 + }, + "end": { + "line": 21, + "column": 25 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 456, + "end": 459, + "loc": { + "start": { + "line": 21, + "column": 21 + }, + "end": { + "line": 21, + "column": 24 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 638, + "end": 644, + "loc": { + "start": { + "line": 23, + "column": 20 + }, + "end": { + "line": 23, + "column": 26 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 640, + "end": 643, + "loc": { + "start": { + "line": 23, + "column": 22 + }, + "end": { + "line": 23, + "column": 25 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 460, + "end": 485, + "loc": { + "start": { + "line": 21, + "column": 25 + }, + "end": { + "line": 22, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 485, + "end": 617, + "loc": { + "start": { + "line": 22, + "column": 24 + }, + "end": { + "line": 22, + "column": 156 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 485, + "end": 617, + "loc": { + "start": { + "line": 22, + "column": 24 + }, + "end": { + "line": 22, + "column": 156 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 490, + "end": 591, + "loc": { + "start": { + "line": 22, + "column": 29 + }, + "end": { + "line": 22, + "column": 130 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 490, + "end": 493, + "loc": { + "start": { + "line": 22, + "column": 29 + }, + "end": { + "line": 22, + "column": 32 + } + }, + "name": "src" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 494, + "end": 591, + "loc": { + "start": { + "line": 22, + "column": 33 + }, + "end": { + "line": 22, + "column": 130 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 495, + "end": 590, + "loc": { + "start": { + "line": 22, + "column": 34 + }, + "end": { + "line": 22, + "column": 129 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 498, + "end": 518, + "loc": { + "start": { + "line": 22, + "column": 37 + }, + "end": { + "line": 22, + "column": 57 + } + }, + "object": { + "type": "MemberExpression", + "start": 498, + "end": 510, + "loc": { + "start": { + "line": 22, + "column": 37 + }, + "end": { + "line": 22, + "column": 49 + } + }, + "object": { + "type": "Identifier", + "start": 498, + "end": 504, + "loc": { + "start": { + "line": 22, + "column": 37 + }, + "end": { + "line": 22, + "column": 43 + } + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 505, + "end": 510, + "loc": { + "start": { + "line": 22, + "column": 44 + }, + "end": { + "line": 22, + "column": 49 + } + }, + "name": "imgix" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 511, + "end": 518, + "loc": { + "start": { + "line": 22, + "column": 50 + }, + "end": { + "line": 22, + "column": 57 + } + }, + "name": "baseUrl" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 522, + "end": 541, + "loc": { + "start": { + "line": 22, + "column": 61 + }, + "end": { + "line": 22, + "column": 80 + } + }, + "object": { + "type": "MemberExpression", + "start": 522, + "end": 532, + "loc": { + "start": { + "line": 22, + "column": 61 + }, + "end": { + "line": 22, + "column": 71 + } + }, + "object": { + "type": "ThisExpression", + "start": 522, + "end": 526, + "loc": { + "start": { + "line": 22, + "column": 61 + }, + "end": { + "line": 22, + "column": 65 + } + } + }, + "property": { + "type": "Identifier", + "start": 527, + "end": 532, + "loc": { + "start": { + "line": 22, + "column": 66 + }, + "end": { + "line": 22, + "column": 71 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 533, + "end": 541, + "loc": { + "start": { + "line": 22, + "column": 72 + }, + "end": { + "line": 22, + "column": 80 + } + }, + "name": "filename" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 496, + "end": 496, + "loc": { + "start": { + "line": 22, + "column": 35 + }, + "end": { + "line": 22, + "column": 35 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 519, + "end": 520, + "loc": { + "start": { + "line": 22, + "column": 58 + }, + "end": { + "line": 22, + "column": 59 + } + }, + "value": { + "raw": "/", + "cooked": "/" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 542, + "end": 589, + "loc": { + "start": { + "line": 22, + "column": 81 + }, + "end": { + "line": 22, + "column": 128 + } + }, + "value": { + "raw": "?auto=enhance&w=200&h=200&fit=crop&fm=png&dpr=2", + "cooked": "?auto=enhance&w=200&h=200&fit=crop&fm=png&dpr=2" + }, + "tail": true + } + ] + } + } + }, + { + "type": "JSXAttribute", + "start": 592, + "end": 614, + "loc": { + "start": { + "line": 22, + "column": 131 + }, + "end": { + "line": 22, + "column": 153 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 592, + "end": 601, + "loc": { + "start": { + "line": 22, + "column": 131 + }, + "end": { + "line": 22, + "column": 140 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 602, + "end": 614, + "loc": { + "start": { + "line": 22, + "column": 141 + }, + "end": { + "line": 22, + "column": 153 + } + }, + "value": "full-width", + "rawValue": null, + "raw": "\"full-width\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 486, + "end": 489, + "loc": { + "start": { + "line": 22, + "column": 25 + }, + "end": { + "line": 22, + "column": 28 + } + }, + "name": "img" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 617, + "end": 638, + "loc": { + "start": { + "line": 22, + "column": 156 + }, + "end": { + "line": 23, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 644, + "end": 665, + "loc": { + "start": { + "line": 23, + "column": 26 + }, + "end": { + "line": 24, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 665, + "end": 981, + "loc": { + "start": { + "line": 24, + "column": 20 + }, + "end": { + "line": 28, + "column": 26 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 665, + "end": 697, + "loc": { + "start": { + "line": 24, + "column": 20 + }, + "end": { + "line": 24, + "column": 52 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 670, + "end": 696, + "loc": { + "start": { + "line": 24, + "column": 25 + }, + "end": { + "line": 24, + "column": 51 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 670, + "end": 679, + "loc": { + "start": { + "line": 24, + "column": 25 + }, + "end": { + "line": 24, + "column": 34 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 680, + "end": 696, + "loc": { + "start": { + "line": 24, + "column": 35 + }, + "end": { + "line": 24, + "column": 51 + } + }, + "value": "footer-content", + "rawValue": null, + "raw": "\"footer-content\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 666, + "end": 669, + "loc": { + "start": { + "line": 24, + "column": 21 + }, + "end": { + "line": 24, + "column": 24 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 975, + "end": 981, + "loc": { + "start": { + "line": 28, + "column": 20 + }, + "end": { + "line": 28, + "column": 26 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 977, + "end": 980, + "loc": { + "start": { + "line": 28, + "column": 22 + }, + "end": { + "line": 28, + "column": 25 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 697, + "end": 722, + "loc": { + "start": { + "line": 24, + "column": 52 + }, + "end": { + "line": 25, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 722, + "end": 742, + "loc": { + "start": { + "line": 25, + "column": 24 + }, + "end": { + "line": 25, + "column": 44 + } + }, + "expression": { + "type": "MemberExpression", + "start": 723, + "end": 741, + "loc": { + "start": { + "line": 25, + "column": 25 + }, + "end": { + "line": 25, + "column": 43 + } + }, + "object": { + "type": "MemberExpression", + "start": 723, + "end": 733, + "loc": { + "start": { + "line": 25, + "column": 25 + }, + "end": { + "line": 25, + "column": 35 + } + }, + "object": { + "type": "ThisExpression", + "start": 723, + "end": 727, + "loc": { + "start": { + "line": 25, + "column": 25 + }, + "end": { + "line": 25, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "start": 728, + "end": 733, + "loc": { + "start": { + "line": 25, + "column": 30 + }, + "end": { + "line": 25, + "column": 35 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 734, + "end": 741, + "loc": { + "start": { + "line": 25, + "column": 36 + }, + "end": { + "line": 25, + "column": 43 + } + }, + "name": "caption" + }, + "computed": false + } + }, + { + "type": "Literal", + "start": 742, + "end": 746, + "loc": { + "start": { + "line": 25, + "column": 44 + }, + "end": { + "line": 25, + "column": 48 + } + }, + "value": " in ", + "rawValue": null, + "raw": " in " + }, + { + "type": "JSXElement", + "start": 746, + "end": 784, + "loc": { + "start": { + "line": 25, + "column": 48 + }, + "end": { + "line": 25, + "column": 86 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 746, + "end": 754, + "loc": { + "start": { + "line": 25, + "column": 48 + }, + "end": { + "line": 25, + "column": 56 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 747, + "end": 753, + "loc": { + "start": { + "line": 25, + "column": 49 + }, + "end": { + "line": 25, + "column": 55 + } + }, + "name": "strong" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 775, + "end": 784, + "loc": { + "start": { + "line": 25, + "column": 77 + }, + "end": { + "line": 25, + "column": 86 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 777, + "end": 783, + "loc": { + "start": { + "line": 25, + "column": 79 + }, + "end": { + "line": 25, + "column": 85 + } + }, + "name": "strong" + } + }, + "children": [ + { + "type": "JSXExpressionContainer", + "start": 754, + "end": 775, + "loc": { + "start": { + "line": 25, + "column": 56 + }, + "end": { + "line": 25, + "column": 77 + } + }, + "expression": { + "type": "MemberExpression", + "start": 755, + "end": 774, + "loc": { + "start": { + "line": 25, + "column": 57 + }, + "end": { + "line": 25, + "column": 76 + } + }, + "object": { + "type": "MemberExpression", + "start": 755, + "end": 765, + "loc": { + "start": { + "line": 25, + "column": 57 + }, + "end": { + "line": 25, + "column": 67 + } + }, + "object": { + "type": "ThisExpression", + "start": 755, + "end": 759, + "loc": { + "start": { + "line": 25, + "column": 57 + }, + "end": { + "line": 25, + "column": 61 + } + } + }, + "property": { + "type": "Identifier", + "start": 760, + "end": 765, + "loc": { + "start": { + "line": 25, + "column": 62 + }, + "end": { + "line": 25, + "column": 67 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 766, + "end": 774, + "loc": { + "start": { + "line": 25, + "column": 68 + }, + "end": { + "line": 25, + "column": 76 + } + }, + "name": "location" + }, + "computed": false + } + } + ] + }, + { + "type": "Literal", + "start": 784, + "end": 809, + "loc": { + "start": { + "line": 25, + "column": 86 + }, + "end": { + "line": 26, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 809, + "end": 838, + "loc": { + "start": { + "line": 26, + "column": 24 + }, + "end": { + "line": 26, + "column": 53 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 809, + "end": 832, + "loc": { + "start": { + "line": 26, + "column": 24 + }, + "end": { + "line": 26, + "column": 47 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 814, + "end": 831, + "loc": { + "start": { + "line": 26, + "column": 29 + }, + "end": { + "line": 26, + "column": 46 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 814, + "end": 823, + "loc": { + "start": { + "line": 26, + "column": 29 + }, + "end": { + "line": 26, + "column": 38 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 824, + "end": 831, + "loc": { + "start": { + "line": 26, + "column": 39 + }, + "end": { + "line": 26, + "column": 46 + } + }, + "value": "clear", + "rawValue": null, + "raw": "\"clear\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 810, + "end": 813, + "loc": { + "start": { + "line": 26, + "column": 25 + }, + "end": { + "line": 26, + "column": 28 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 832, + "end": 838, + "loc": { + "start": { + "line": 26, + "column": 47 + }, + "end": { + "line": 26, + "column": 53 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 834, + "end": 837, + "loc": { + "start": { + "line": 26, + "column": 49 + }, + "end": { + "line": 26, + "column": 52 + } + }, + "name": "div" + } + }, + "children": [] + }, + { + "type": "Literal", + "start": 838, + "end": 863, + "loc": { + "start": { + "line": 26, + "column": 53 + }, + "end": { + "line": 27, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 863, + "end": 896, + "loc": { + "start": { + "line": 27, + "column": 24 + }, + "end": { + "line": 27, + "column": 57 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 863, + "end": 892, + "loc": { + "start": { + "line": 27, + "column": 24 + }, + "end": { + "line": 27, + "column": 53 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 866, + "end": 891, + "loc": { + "start": { + "line": 27, + "column": 27 + }, + "end": { + "line": 27, + "column": 52 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 866, + "end": 875, + "loc": { + "start": { + "line": 27, + "column": 27 + }, + "end": { + "line": 27, + "column": 36 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 876, + "end": 891, + "loc": { + "start": { + "line": 27, + "column": 37 + }, + "end": { + "line": 27, + "column": 52 + } + }, + "value": "ion-ios-heart", + "rawValue": null, + "raw": "\"ion-ios-heart\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 864, + "end": 865, + "loc": { + "start": { + "line": 27, + "column": 25 + }, + "end": { + "line": 27, + "column": 26 + } + }, + "name": "i" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 892, + "end": 896, + "loc": { + "start": { + "line": 27, + "column": 53 + }, + "end": { + "line": 27, + "column": 57 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 894, + "end": 895, + "loc": { + "start": { + "line": 27, + "column": 55 + }, + "end": { + "line": 27, + "column": 56 + } + }, + "name": "i" + } + }, + "children": [] + }, + { + "type": "Literal", + "start": 896, + "end": 897, + "loc": { + "start": { + "line": 27, + "column": 57 + }, + "end": { + "line": 27, + "column": 58 + } + }, + "value": " ", + "rawValue": null, + "raw": " " + }, + { + "type": "JSXElement", + "start": 897, + "end": 954, + "loc": { + "start": { + "line": 27, + "column": 58 + }, + "end": { + "line": 27, + "column": 115 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 897, + "end": 919, + "loc": { + "start": { + "line": 27, + "column": 58 + }, + "end": { + "line": 27, + "column": 80 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 903, + "end": 918, + "loc": { + "start": { + "line": 27, + "column": 64 + }, + "end": { + "line": 27, + "column": 79 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 903, + "end": 912, + "loc": { + "start": { + "line": 27, + "column": 64 + }, + "end": { + "line": 27, + "column": 73 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 913, + "end": 918, + "loc": { + "start": { + "line": 27, + "column": 74 + }, + "end": { + "line": 27, + "column": 79 + } + }, + "value": "red", + "rawValue": null, + "raw": "\"red\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 898, + "end": 902, + "loc": { + "start": { + "line": 27, + "column": 59 + }, + "end": { + "line": 27, + "column": 63 + } + }, + "name": "span" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 947, + "end": 954, + "loc": { + "start": { + "line": 27, + "column": 108 + }, + "end": { + "line": 27, + "column": 115 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 949, + "end": 953, + "loc": { + "start": { + "line": 27, + "column": 110 + }, + "end": { + "line": 27, + "column": 114 + } + }, + "name": "span" + } + }, + "children": [ + { + "type": "JSXExpressionContainer", + "start": 919, + "end": 941, + "loc": { + "start": { + "line": 27, + "column": 80 + }, + "end": { + "line": 27, + "column": 102 + } + }, + "expression": { + "type": "MemberExpression", + "start": 920, + "end": 940, + "loc": { + "start": { + "line": 27, + "column": 81 + }, + "end": { + "line": 27, + "column": 101 + } + }, + "object": { + "type": "MemberExpression", + "start": 920, + "end": 930, + "loc": { + "start": { + "line": 27, + "column": 81 + }, + "end": { + "line": 27, + "column": 91 + } + }, + "object": { + "type": "ThisExpression", + "start": 920, + "end": 924, + "loc": { + "start": { + "line": 27, + "column": 81 + }, + "end": { + "line": 27, + "column": 85 + } + } + }, + "property": { + "type": "Identifier", + "start": 925, + "end": 930, + "loc": { + "start": { + "line": 27, + "column": 86 + }, + "end": { + "line": 27, + "column": 91 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 931, + "end": 940, + "loc": { + "start": { + "line": 27, + "column": 92 + }, + "end": { + "line": 27, + "column": 101 + } + }, + "name": "viewCount" + }, + "computed": false + } + }, + { + "type": "Literal", + "start": 941, + "end": 947, + "loc": { + "start": { + "line": 27, + "column": 102 + }, + "end": { + "line": 27, + "column": 108 + } + }, + "value": " Views", + "rawValue": null, + "raw": " Views" + } + ] + }, + { + "type": "Literal", + "start": 954, + "end": 975, + "loc": { + "start": { + "line": 27, + "column": 115 + }, + "end": { + "line": 28, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 981, + "end": 998, + "loc": { + "start": { + "line": 28, + "column": 26 + }, + "end": { + "line": 29, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 1005, + "end": 1018, + "loc": { + "start": { + "line": 29, + "column": 23 + }, + "end": { + "line": 30, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + } + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * UploadStats\n * React component used by Stats route\n ", + "start": 230, + "end": 291, + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 15, + "column": 3 + } + }, + "range": [ + 230, + 291 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * GeoStats\n * React component used by Stats route\n ", + "start": 1044, + "end": 1102, + "loc": { + "start": { + "line": 35, + "column": 0 + }, + "end": { + "line": 38, + "column": 3 + } + }, + "range": [ + 1044, + 1102 + ] + } + ] + }, + { + "type": "ClassDeclaration", + "start": 1103, + "end": 1563, + "loc": { + "start": { + "line": 39, + "column": 0 + }, + "end": { + "line": 53, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 1109, + "end": 1117, + "loc": { + "start": { + "line": 39, + "column": 6 + }, + "end": { + "line": 39, + "column": 14 + } + }, + "name": "GeoStats", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 1126, + "end": 1135, + "loc": { + "start": { + "line": 39, + "column": 23 + }, + "end": { + "line": 39, + "column": 32 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 1136, + "end": 1563, + "loc": { + "start": { + "line": 39, + "column": 33 + }, + "end": { + "line": 53, + "column": 1 + } + }, + "body": [ + { + "type": "MethodDefinition", + "start": 1142, + "end": 1561, + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 52, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 1142, + "end": 1148, + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 40, + "column": 10 + } + }, + "name": "render" + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 1148, + "end": 1561, + "loc": { + "start": { + "line": 40, + "column": 10 + }, + "end": { + "line": 52, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 1151, + "end": 1561, + "loc": { + "start": { + "line": 40, + "column": 13 + }, + "end": { + "line": 52, + "column": 5 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 1161, + "end": 1220, + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 41, + "column": 67 + } + }, + "test": { + "type": "BinaryExpression", + "start": 1165, + "end": 1212, + "loc": { + "start": { + "line": 41, + "column": 12 + }, + "end": { + "line": 41, + "column": 59 + } + }, + "left": { + "type": "UnaryExpression", + "start": 1165, + "end": 1202, + "loc": { + "start": { + "line": 41, + "column": 12 + }, + "end": { + "line": 41, + "column": 49 + } + }, + "operator": "typeof", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 1172, + "end": 1202, + "loc": { + "start": { + "line": 41, + "column": 19 + }, + "end": { + "line": 41, + "column": 49 + } + }, + "object": { + "type": "MemberExpression", + "start": 1172, + "end": 1182, + "loc": { + "start": { + "line": 41, + "column": 19 + }, + "end": { + "line": 41, + "column": 29 + } + }, + "object": { + "type": "ThisExpression", + "start": 1172, + "end": 1176, + "loc": { + "start": { + "line": 41, + "column": 19 + }, + "end": { + "line": 41, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "start": 1177, + "end": 1182, + "loc": { + "start": { + "line": 41, + "column": 24 + }, + "end": { + "line": 41, + "column": 29 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Literal", + "start": 1183, + "end": 1201, + "loc": { + "start": { + "line": 41, + "column": 30 + }, + "end": { + "line": 41, + "column": 48 + } + }, + "value": "ip_geo_info.city", + "rawValue": "ip_geo_info.city", + "raw": "'ip_geo_info.city'" + }, + "computed": true + } + }, + "operator": "==", + "right": { + "type": "Literal", + "start": 1206, + "end": 1212, + "loc": { + "start": { + "line": 41, + "column": 53 + }, + "end": { + "line": 41, + "column": 59 + } + }, + "value": "null", + "rawValue": "null", + "raw": "'null'" + } + }, + "consequent": { + "type": "ReturnStatement", + "start": 1214, + "end": 1220, + "loc": { + "start": { + "line": 41, + "column": 61 + }, + "end": { + "line": 41, + "column": 67 + } + }, + "argument": null + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 1229, + "end": 1555, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 51, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 1250, + "end": 1545, + "loc": { + "start": { + "line": 43, + "column": 12 + }, + "end": { + "line": 50, + "column": 18 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1250, + "end": 1255, + "loc": { + "start": { + "line": 43, + "column": 12 + }, + "end": { + "line": 43, + "column": 17 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 1251, + "end": 1254, + "loc": { + "start": { + "line": 43, + "column": 13 + }, + "end": { + "line": 43, + "column": 16 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1539, + "end": 1545, + "loc": { + "start": { + "line": 50, + "column": 12 + }, + "end": { + "line": 50, + "column": 18 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1541, + "end": 1544, + "loc": { + "start": { + "line": 50, + "column": 14 + }, + "end": { + "line": 50, + "column": 17 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 1255, + "end": 1272, + "loc": { + "start": { + "line": 43, + "column": 17 + }, + "end": { + "line": 44, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1272, + "end": 1526, + "loc": { + "start": { + "line": 44, + "column": 16 + }, + "end": { + "line": 49, + "column": 21 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1272, + "end": 1276, + "loc": { + "start": { + "line": 44, + "column": 16 + }, + "end": { + "line": 44, + "column": 20 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 1273, + "end": 1275, + "loc": { + "start": { + "line": 44, + "column": 17 + }, + "end": { + "line": 44, + "column": 19 + } + }, + "name": "ol" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1521, + "end": 1526, + "loc": { + "start": { + "line": 49, + "column": 16 + }, + "end": { + "line": 49, + "column": 21 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1523, + "end": 1525, + "loc": { + "start": { + "line": 49, + "column": 18 + }, + "end": { + "line": 49, + "column": 20 + } + }, + "name": "ol" + } + }, + "children": [ + { + "type": "Literal", + "start": 1276, + "end": 1297, + "loc": { + "start": { + "line": 44, + "column": 20 + }, + "end": { + "line": 45, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 1297, + "end": 1504, + "loc": { + "start": { + "line": 45, + "column": 20 + }, + "end": { + "line": 48, + "column": 25 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 1297, + "end": 1301, + "loc": { + "start": { + "line": 45, + "column": 20 + }, + "end": { + "line": 45, + "column": 24 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 1298, + "end": 1300, + "loc": { + "start": { + "line": 45, + "column": 21 + }, + "end": { + "line": 45, + "column": 23 + } + }, + "name": "li" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1499, + "end": 1504, + "loc": { + "start": { + "line": 48, + "column": 20 + }, + "end": { + "line": 48, + "column": 25 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1501, + "end": 1503, + "loc": { + "start": { + "line": 48, + "column": 22 + }, + "end": { + "line": 48, + "column": 24 + } + }, + "name": "li" + } + }, + "children": [ + { + "type": "Literal", + "start": 1301, + "end": 1326, + "loc": { + "start": { + "line": 45, + "column": 24 + }, + "end": { + "line": 46, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 1326, + "end": 1358, + "loc": { + "start": { + "line": 46, + "column": 24 + }, + "end": { + "line": 46, + "column": 56 + } + }, + "expression": { + "type": "MemberExpression", + "start": 1327, + "end": 1357, + "loc": { + "start": { + "line": 46, + "column": 25 + }, + "end": { + "line": 46, + "column": 55 + } + }, + "object": { + "type": "MemberExpression", + "start": 1327, + "end": 1337, + "loc": { + "start": { + "line": 46, + "column": 25 + }, + "end": { + "line": 46, + "column": 35 + } + }, + "object": { + "type": "ThisExpression", + "start": 1327, + "end": 1331, + "loc": { + "start": { + "line": 46, + "column": 25 + }, + "end": { + "line": 46, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "start": 1332, + "end": 1337, + "loc": { + "start": { + "line": 46, + "column": 30 + }, + "end": { + "line": 46, + "column": 35 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Literal", + "start": 1338, + "end": 1356, + "loc": { + "start": { + "line": 46, + "column": 36 + }, + "end": { + "line": 46, + "column": 54 + } + }, + "value": "ip_geo_info.city", + "rawValue": "ip_geo_info.city", + "raw": "'ip_geo_info.city'" + }, + "computed": true + } + }, + { + "type": "Literal", + "start": 1358, + "end": 1360, + "loc": { + "start": { + "line": 46, + "column": 56 + }, + "end": { + "line": 46, + "column": 58 + } + }, + "value": ", ", + "rawValue": null, + "raw": ", " + }, + { + "type": "JSXExpressionContainer", + "start": 1360, + "end": 1396, + "loc": { + "start": { + "line": 46, + "column": 58 + }, + "end": { + "line": 46, + "column": 94 + } + }, + "expression": { + "type": "MemberExpression", + "start": 1361, + "end": 1395, + "loc": { + "start": { + "line": 46, + "column": 59 + }, + "end": { + "line": 46, + "column": 93 + } + }, + "object": { + "type": "MemberExpression", + "start": 1361, + "end": 1371, + "loc": { + "start": { + "line": 46, + "column": 59 + }, + "end": { + "line": 46, + "column": 69 + } + }, + "object": { + "type": "ThisExpression", + "start": 1361, + "end": 1365, + "loc": { + "start": { + "line": 46, + "column": 59 + }, + "end": { + "line": 46, + "column": 63 + } + } + }, + "property": { + "type": "Identifier", + "start": 1366, + "end": 1371, + "loc": { + "start": { + "line": 46, + "column": 64 + }, + "end": { + "line": 46, + "column": 69 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Literal", + "start": 1372, + "end": 1394, + "loc": { + "start": { + "line": 46, + "column": 70 + }, + "end": { + "line": 46, + "column": 92 + } + }, + "value": "ip_geo_info.province", + "rawValue": "ip_geo_info.province", + "raw": "'ip_geo_info.province'" + }, + "computed": true + } + }, + { + "type": "Literal", + "start": 1396, + "end": 1422, + "loc": { + "start": { + "line": 46, + "column": 94 + }, + "end": { + "line": 47, + "column": 24 + } + }, + "value": ",\n ", + "rawValue": null, + "raw": ",\n " + }, + { + "type": "JSXExpressionContainer", + "start": 1422, + "end": 1457, + "loc": { + "start": { + "line": 47, + "column": 24 + }, + "end": { + "line": 47, + "column": 59 + } + }, + "expression": { + "type": "MemberExpression", + "start": 1423, + "end": 1456, + "loc": { + "start": { + "line": 47, + "column": 25 + }, + "end": { + "line": 47, + "column": 58 + } + }, + "object": { + "type": "MemberExpression", + "start": 1423, + "end": 1433, + "loc": { + "start": { + "line": 47, + "column": 25 + }, + "end": { + "line": 47, + "column": 35 + } + }, + "object": { + "type": "ThisExpression", + "start": 1423, + "end": 1427, + "loc": { + "start": { + "line": 47, + "column": 25 + }, + "end": { + "line": 47, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "start": 1428, + "end": 1433, + "loc": { + "start": { + "line": 47, + "column": 30 + }, + "end": { + "line": 47, + "column": 35 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Literal", + "start": 1434, + "end": 1455, + "loc": { + "start": { + "line": 47, + "column": 36 + }, + "end": { + "line": 47, + "column": 57 + } + }, + "value": "ip_geo_info.country", + "rawValue": "ip_geo_info.country", + "raw": "'ip_geo_info.country'" + }, + "computed": true + } + }, + { + "type": "Literal", + "start": 1457, + "end": 1459, + "loc": { + "start": { + "line": 47, + "column": 59 + }, + "end": { + "line": 47, + "column": 61 + } + }, + "value": ": ", + "rawValue": null, + "raw": ": " + }, + { + "type": "JSXExpressionContainer", + "start": 1459, + "end": 1478, + "loc": { + "start": { + "line": 47, + "column": 61 + }, + "end": { + "line": 47, + "column": 80 + } + }, + "expression": { + "type": "MemberExpression", + "start": 1460, + "end": 1477, + "loc": { + "start": { + "line": 47, + "column": 62 + }, + "end": { + "line": 47, + "column": 79 + } + }, + "object": { + "type": "MemberExpression", + "start": 1460, + "end": 1470, + "loc": { + "start": { + "line": 47, + "column": 62 + }, + "end": { + "line": 47, + "column": 72 + } + }, + "object": { + "type": "ThisExpression", + "start": 1460, + "end": 1464, + "loc": { + "start": { + "line": 47, + "column": 62 + }, + "end": { + "line": 47, + "column": 66 + } + } + }, + "property": { + "type": "Identifier", + "start": 1465, + "end": 1470, + "loc": { + "start": { + "line": 47, + "column": 67 + }, + "end": { + "line": 47, + "column": 72 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1471, + "end": 1477, + "loc": { + "start": { + "line": 47, + "column": 73 + }, + "end": { + "line": 47, + "column": 79 + } + }, + "name": "result" + }, + "computed": false + } + }, + { + "type": "Literal", + "start": 1478, + "end": 1499, + "loc": { + "start": { + "line": 47, + "column": 80 + }, + "end": { + "line": 48, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 1504, + "end": 1521, + "loc": { + "start": { + "line": 48, + "column": 25 + }, + "end": { + "line": 49, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 1526, + "end": 1539, + "loc": { + "start": { + "line": 49, + "column": 21 + }, + "end": { + "line": 50, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + } + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * GeoStats\n * React component used by Stats route\n ", + "start": 1044, + "end": 1102, + "loc": { + "start": { + "line": 35, + "column": 0 + }, + "end": { + "line": 38, + "column": 3 + } + }, + "range": [ + 1044, + 1102 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Stats\n * '/profile/:id/stats'\n * React Route - Documentation: https://github.com/reactjs/react-router/tree/master/docs\n ", + "start": 1565, + "end": 1694, + "loc": { + "start": { + "line": 55, + "column": 0 + }, + "end": { + "line": 59, + "column": 3 + } + }, + "range": [ + 1565, + 1694 + ] + } + ] + }, + { + "type": "ClassDeclaration", + "start": 1695, + "end": 4834, + "loc": { + "start": { + "line": 60, + "column": 0 + }, + "end": { + "line": 129, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 1701, + "end": 1706, + "loc": { + "start": { + "line": 60, + "column": 6 + }, + "end": { + "line": 60, + "column": 11 + } + }, + "name": "Stats", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 1715, + "end": 1724, + "loc": { + "start": { + "line": 60, + "column": 20 + }, + "end": { + "line": 60, + "column": 29 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 1725, + "end": 4834, + "loc": { + "start": { + "line": 60, + "column": 30 + }, + "end": { + "line": 129, + "column": 1 + } + }, + "body": [ + { + "type": "MethodDefinition", + "start": 1773, + "end": 1940, + "loc": { + "start": { + "line": 65, + "column": 4 + }, + "end": { + "line": 68, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 1773, + "end": 1790, + "loc": { + "start": { + "line": 65, + "column": 4 + }, + "end": { + "line": 65, + "column": 21 + } + }, + "name": "componentDidMount", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 1790, + "end": 1940, + "loc": { + "start": { + "line": 65, + "column": 21 + }, + "end": { + "line": 68, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 1793, + "end": 1940, + "loc": { + "start": { + "line": 65, + "column": 24 + }, + "end": { + "line": 68, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1803, + "end": 1863, + "loc": { + "start": { + "line": 66, + "column": 8 + }, + "end": { + "line": 66, + "column": 68 + } + }, + "expression": { + "type": "CallExpression", + "start": 1803, + "end": 1863, + "loc": { + "start": { + "line": 66, + "column": 8 + }, + "end": { + "line": 66, + "column": 68 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1803, + "end": 1822, + "loc": { + "start": { + "line": 66, + "column": 8 + }, + "end": { + "line": 66, + "column": 27 + } + }, + "object": { + "type": "MemberExpression", + "start": 1803, + "end": 1813, + "loc": { + "start": { + "line": 66, + "column": 8 + }, + "end": { + "line": 66, + "column": 18 + } + }, + "object": { + "type": "ThisExpression", + "start": 1803, + "end": 1807, + "loc": { + "start": { + "line": 66, + "column": 8 + }, + "end": { + "line": 66, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 1808, + "end": 1813, + "loc": { + "start": { + "line": 66, + "column": 13 + }, + "end": { + "line": 66, + "column": 18 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1814, + "end": 1822, + "loc": { + "start": { + "line": 66, + "column": 19 + }, + "end": { + "line": 66, + "column": 27 + } + }, + "name": "dispatch" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1823, + "end": 1862, + "loc": { + "start": { + "line": 66, + "column": 28 + }, + "end": { + "line": 66, + "column": 67 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1823, + "end": 1840, + "loc": { + "start": { + "line": 66, + "column": 28 + }, + "end": { + "line": 66, + "column": 45 + } + }, + "object": { + "type": "Identifier", + "start": 1823, + "end": 1835, + "loc": { + "start": { + "line": 66, + "column": 28 + }, + "end": { + "line": 66, + "column": 40 + } + }, + "name": "StatsActions" + }, + "property": { + "type": "Identifier", + "start": 1836, + "end": 1840, + "loc": { + "start": { + "line": 66, + "column": 41 + }, + "end": { + "line": 66, + "column": 45 + } + }, + "name": "load" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 1841, + "end": 1861, + "loc": { + "start": { + "line": 66, + "column": 46 + }, + "end": { + "line": 66, + "column": 66 + } + }, + "object": { + "type": "MemberExpression", + "start": 1841, + "end": 1858, + "loc": { + "start": { + "line": 66, + "column": 46 + }, + "end": { + "line": 66, + "column": 63 + } + }, + "object": { + "type": "MemberExpression", + "start": 1841, + "end": 1851, + "loc": { + "start": { + "line": 66, + "column": 46 + }, + "end": { + "line": 66, + "column": 56 + } + }, + "object": { + "type": "ThisExpression", + "start": 1841, + "end": 1845, + "loc": { + "start": { + "line": 66, + "column": 46 + }, + "end": { + "line": 66, + "column": 50 + } + } + }, + "property": { + "type": "Identifier", + "start": 1846, + "end": 1851, + "loc": { + "start": { + "line": 66, + "column": 51 + }, + "end": { + "line": 66, + "column": 56 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1852, + "end": 1858, + "loc": { + "start": { + "line": 66, + "column": 57 + }, + "end": { + "line": 66, + "column": 63 + } + }, + "name": "params" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1859, + "end": 1861, + "loc": { + "start": { + "line": 66, + "column": 64 + }, + "end": { + "line": 66, + "column": 66 + } + }, + "name": "id" + }, + "computed": false + } + ] + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 1872, + "end": 1934, + "loc": { + "start": { + "line": 67, + "column": 8 + }, + "end": { + "line": 67, + "column": 70 + } + }, + "expression": { + "type": "CallExpression", + "start": 1872, + "end": 1934, + "loc": { + "start": { + "line": 67, + "column": 8 + }, + "end": { + "line": 67, + "column": 70 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1872, + "end": 1891, + "loc": { + "start": { + "line": 67, + "column": 8 + }, + "end": { + "line": 67, + "column": 27 + } + }, + "object": { + "type": "MemberExpression", + "start": 1872, + "end": 1882, + "loc": { + "start": { + "line": 67, + "column": 8 + }, + "end": { + "line": 67, + "column": 18 + } + }, + "object": { + "type": "ThisExpression", + "start": 1872, + "end": 1876, + "loc": { + "start": { + "line": 67, + "column": 8 + }, + "end": { + "line": 67, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 1877, + "end": 1882, + "loc": { + "start": { + "line": 67, + "column": 13 + }, + "end": { + "line": 67, + "column": 18 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1883, + "end": 1891, + "loc": { + "start": { + "line": 67, + "column": 19 + }, + "end": { + "line": 67, + "column": 27 + } + }, + "name": "dispatch" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1892, + "end": 1933, + "loc": { + "start": { + "line": 67, + "column": 28 + }, + "end": { + "line": 67, + "column": 69 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1892, + "end": 1911, + "loc": { + "start": { + "line": 67, + "column": 28 + }, + "end": { + "line": 67, + "column": 47 + } + }, + "object": { + "type": "Identifier", + "start": 1892, + "end": 1906, + "loc": { + "start": { + "line": 67, + "column": 28 + }, + "end": { + "line": 67, + "column": 42 + } + }, + "name": "ProfileActions" + }, + "property": { + "type": "Identifier", + "start": 1907, + "end": 1911, + "loc": { + "start": { + "line": 67, + "column": 43 + }, + "end": { + "line": 67, + "column": 47 + } + }, + "name": "load" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 1912, + "end": 1932, + "loc": { + "start": { + "line": 67, + "column": 48 + }, + "end": { + "line": 67, + "column": 68 + } + }, + "object": { + "type": "MemberExpression", + "start": 1912, + "end": 1929, + "loc": { + "start": { + "line": 67, + "column": 48 + }, + "end": { + "line": 67, + "column": 65 + } + }, + "object": { + "type": "MemberExpression", + "start": 1912, + "end": 1922, + "loc": { + "start": { + "line": 67, + "column": 48 + }, + "end": { + "line": 67, + "column": 58 + } + }, + "object": { + "type": "ThisExpression", + "start": 1912, + "end": 1916, + "loc": { + "start": { + "line": 67, + "column": 48 + }, + "end": { + "line": 67, + "column": 52 + } + } + }, + "property": { + "type": "Identifier", + "start": 1917, + "end": 1922, + "loc": { + "start": { + "line": 67, + "column": 53 + }, + "end": { + "line": 67, + "column": 58 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1923, + "end": 1929, + "loc": { + "start": { + "line": 67, + "column": 59 + }, + "end": { + "line": 67, + "column": 65 + } + }, + "name": "params" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1930, + "end": 1932, + "loc": { + "start": { + "line": 67, + "column": 66 + }, + "end": { + "line": 67, + "column": 68 + } + }, + "name": "id" + }, + "computed": false + } + ] + } + ] + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * componentDidMount\n ", + "start": 1732, + "end": 1768, + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 64, + "column": 7 + } + }, + "range": [ + 1732, + 1768 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 1946, + "end": 1994, + "loc": { + "start": { + "line": 70, + "column": 4 + }, + "end": { + "line": 73, + "column": 7 + } + }, + "range": [ + 1946, + 1994 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 1999, + "end": 4831, + "loc": { + "start": { + "line": 74, + "column": 4 + }, + "end": { + "line": 127, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 1999, + "end": 2005, + "loc": { + "start": { + "line": 74, + "column": 4 + }, + "end": { + "line": 74, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 2005, + "end": 4831, + "loc": { + "start": { + "line": 74, + "column": 10 + }, + "end": { + "line": 127, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 2008, + "end": 4831, + "loc": { + "start": { + "line": 74, + "column": 13 + }, + "end": { + "line": 127, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 2018, + "end": 4825, + "loc": { + "start": { + "line": 75, + "column": 8 + }, + "end": { + "line": 126, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 2039, + "end": 4815, + "loc": { + "start": { + "line": 76, + "column": 12 + }, + "end": { + "line": 125, + "column": 18 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2039, + "end": 2061, + "loc": { + "start": { + "line": 76, + "column": 12 + }, + "end": { + "line": 76, + "column": 34 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2044, + "end": 2060, + "loc": { + "start": { + "line": 76, + "column": 17 + }, + "end": { + "line": 76, + "column": 33 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2044, + "end": 2053, + "loc": { + "start": { + "line": 76, + "column": 17 + }, + "end": { + "line": 76, + "column": 26 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 2054, + "end": 2060, + "loc": { + "start": { + "line": 76, + "column": 27 + }, + "end": { + "line": 76, + "column": 33 + } + }, + "value": "page", + "rawValue": null, + "raw": "\"page\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2040, + "end": 2043, + "loc": { + "start": { + "line": 76, + "column": 13 + }, + "end": { + "line": 76, + "column": 16 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 4809, + "end": 4815, + "loc": { + "start": { + "line": 125, + "column": 12 + }, + "end": { + "line": 125, + "column": 18 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4811, + "end": 4814, + "loc": { + "start": { + "line": 125, + "column": 14 + }, + "end": { + "line": 125, + "column": 17 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 2061, + "end": 2078, + "loc": { + "start": { + "line": 76, + "column": 34 + }, + "end": { + "line": 77, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 2078, + "end": 4796, + "loc": { + "start": { + "line": 77, + "column": 16 + }, + "end": { + "line": 124, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2078, + "end": 2101, + "loc": { + "start": { + "line": 77, + "column": 16 + }, + "end": { + "line": 77, + "column": 39 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2083, + "end": 2100, + "loc": { + "start": { + "line": 77, + "column": 21 + }, + "end": { + "line": 77, + "column": 38 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2083, + "end": 2092, + "loc": { + "start": { + "line": 77, + "column": 21 + }, + "end": { + "line": 77, + "column": 30 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 2093, + "end": 2100, + "loc": { + "start": { + "line": 77, + "column": 31 + }, + "end": { + "line": 77, + "column": 38 + } + }, + "value": "stats", + "rawValue": null, + "raw": "\"stats\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2079, + "end": 2082, + "loc": { + "start": { + "line": 77, + "column": 17 + }, + "end": { + "line": 77, + "column": 20 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 4790, + "end": 4796, + "loc": { + "start": { + "line": 124, + "column": 16 + }, + "end": { + "line": 124, + "column": 22 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4792, + "end": 4795, + "loc": { + "start": { + "line": 124, + "column": 18 + }, + "end": { + "line": 124, + "column": 21 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 2101, + "end": 2122, + "loc": { + "start": { + "line": 77, + "column": 39 + }, + "end": { + "line": 78, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 2122, + "end": 4260, + "loc": { + "start": { + "line": 78, + "column": 20 + }, + "end": { + "line": 115, + "column": 26 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2122, + "end": 2144, + "loc": { + "start": { + "line": 78, + "column": 20 + }, + "end": { + "line": 78, + "column": 42 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2127, + "end": 2143, + "loc": { + "start": { + "line": 78, + "column": 25 + }, + "end": { + "line": 78, + "column": 41 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2127, + "end": 2136, + "loc": { + "start": { + "line": 78, + "column": 25 + }, + "end": { + "line": 78, + "column": 34 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 2137, + "end": 2143, + "loc": { + "start": { + "line": 78, + "column": 35 + }, + "end": { + "line": 78, + "column": 41 + } + }, + "value": "grid", + "rawValue": null, + "raw": "\"grid\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2123, + "end": 2126, + "loc": { + "start": { + "line": 78, + "column": 21 + }, + "end": { + "line": 78, + "column": 24 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 4254, + "end": 4260, + "loc": { + "start": { + "line": 115, + "column": 20 + }, + "end": { + "line": 115, + "column": 26 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4256, + "end": 4259, + "loc": { + "start": { + "line": 115, + "column": 22 + }, + "end": { + "line": 115, + "column": 25 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 2144, + "end": 2169, + "loc": { + "start": { + "line": 78, + "column": 42 + }, + "end": { + "line": 79, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 2169, + "end": 3195, + "loc": { + "start": { + "line": 79, + "column": 24 + }, + "end": { + "line": 96, + "column": 30 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2169, + "end": 2190, + "loc": { + "start": { + "line": 79, + "column": 24 + }, + "end": { + "line": 79, + "column": 45 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2174, + "end": 2189, + "loc": { + "start": { + "line": 79, + "column": 29 + }, + "end": { + "line": 79, + "column": 44 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2174, + "end": 2183, + "loc": { + "start": { + "line": 79, + "column": 29 + }, + "end": { + "line": 79, + "column": 38 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 2184, + "end": 2189, + "loc": { + "start": { + "line": 79, + "column": 39 + }, + "end": { + "line": 79, + "column": 44 + } + }, + "value": "row", + "rawValue": null, + "raw": "\"row\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2170, + "end": 2173, + "loc": { + "start": { + "line": 79, + "column": 25 + }, + "end": { + "line": 79, + "column": 28 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3189, + "end": 3195, + "loc": { + "start": { + "line": 96, + "column": 24 + }, + "end": { + "line": 96, + "column": 30 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3191, + "end": 3194, + "loc": { + "start": { + "line": 96, + "column": 26 + }, + "end": { + "line": 96, + "column": 29 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 2190, + "end": 2219, + "loc": { + "start": { + "line": 79, + "column": 45 + }, + "end": { + "line": 80, + "column": 28 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 2219, + "end": 3164, + "loc": { + "start": { + "line": 80, + "column": 28 + }, + "end": { + "line": 95, + "column": 34 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2219, + "end": 2240, + "loc": { + "start": { + "line": 80, + "column": 28 + }, + "end": { + "line": 80, + "column": 49 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2224, + "end": 2239, + "loc": { + "start": { + "line": 80, + "column": 33 + }, + "end": { + "line": 80, + "column": 48 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2224, + "end": 2233, + "loc": { + "start": { + "line": 80, + "column": 33 + }, + "end": { + "line": 80, + "column": 42 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 2234, + "end": 2239, + "loc": { + "start": { + "line": 80, + "column": 43 + }, + "end": { + "line": 80, + "column": 48 + } + }, + "value": "col", + "rawValue": null, + "raw": "\"col\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2220, + "end": 2223, + "loc": { + "start": { + "line": 80, + "column": 29 + }, + "end": { + "line": 80, + "column": 32 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3158, + "end": 3164, + "loc": { + "start": { + "line": 95, + "column": 28 + }, + "end": { + "line": 95, + "column": 34 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3160, + "end": 3163, + "loc": { + "start": { + "line": 95, + "column": 30 + }, + "end": { + "line": 95, + "column": 33 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 2240, + "end": 2273, + "loc": { + "start": { + "line": 80, + "column": 49 + }, + "end": { + "line": 81, + "column": 32 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 2273, + "end": 2690, + "loc": { + "start": { + "line": 81, + "column": 32 + }, + "end": { + "line": 87, + "column": 38 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2273, + "end": 2295, + "loc": { + "start": { + "line": 81, + "column": 32 + }, + "end": { + "line": 81, + "column": 54 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2278, + "end": 2294, + "loc": { + "start": { + "line": 81, + "column": 37 + }, + "end": { + "line": 81, + "column": 53 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2278, + "end": 2287, + "loc": { + "start": { + "line": 81, + "column": 37 + }, + "end": { + "line": 81, + "column": 46 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 2288, + "end": 2294, + "loc": { + "start": { + "line": 81, + "column": 47 + }, + "end": { + "line": 81, + "column": 53 + } + }, + "value": "item", + "rawValue": null, + "raw": "\"item\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2274, + "end": 2277, + "loc": { + "start": { + "line": 81, + "column": 33 + }, + "end": { + "line": 81, + "column": 36 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2684, + "end": 2690, + "loc": { + "start": { + "line": 87, + "column": 32 + }, + "end": { + "line": 87, + "column": 38 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2686, + "end": 2689, + "loc": { + "start": { + "line": 87, + "column": 34 + }, + "end": { + "line": 87, + "column": 37 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 2295, + "end": 2332, + "loc": { + "start": { + "line": 81, + "column": 54 + }, + "end": { + "line": 82, + "column": 36 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 2332, + "end": 2354, + "loc": { + "start": { + "line": 82, + "column": 36 + }, + "end": { + "line": 82, + "column": 58 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2332, + "end": 2336, + "loc": { + "start": { + "line": 82, + "column": 36 + }, + "end": { + "line": 82, + "column": 40 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 2333, + "end": 2335, + "loc": { + "start": { + "line": 82, + "column": 37 + }, + "end": { + "line": 82, + "column": 39 + } + }, + "name": "h1" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2349, + "end": 2354, + "loc": { + "start": { + "line": 82, + "column": 53 + }, + "end": { + "line": 82, + "column": 58 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2351, + "end": 2353, + "loc": { + "start": { + "line": 82, + "column": 55 + }, + "end": { + "line": 82, + "column": 57 + } + }, + "name": "h1" + } + }, + "children": [ + { + "type": "Literal", + "start": 2336, + "end": 2349, + "loc": { + "start": { + "line": 82, + "column": 40 + }, + "end": { + "line": 82, + "column": 53 + } + }, + "value": "Profile Views", + "rawValue": null, + "raw": "Profile Views" + } + ] + }, + { + "type": "Literal", + "start": 2354, + "end": 2391, + "loc": { + "start": { + "line": 82, + "column": 58 + }, + "end": { + "line": 83, + "column": 36 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 2391, + "end": 2428, + "loc": { + "start": { + "line": 83, + "column": 36 + }, + "end": { + "line": 83, + "column": 73 + } + }, + "expression": { + "type": "MemberExpression", + "start": 2392, + "end": 2427, + "loc": { + "start": { + "line": 83, + "column": 37 + }, + "end": { + "line": 83, + "column": 72 + } + }, + "object": { + "type": "MemberExpression", + "start": 2392, + "end": 2421, + "loc": { + "start": { + "line": 83, + "column": 37 + }, + "end": { + "line": 83, + "column": 66 + } + }, + "object": { + "type": "MemberExpression", + "start": 2392, + "end": 2408, + "loc": { + "start": { + "line": 83, + "column": 37 + }, + "end": { + "line": 83, + "column": 53 + } + }, + "object": { + "type": "MemberExpression", + "start": 2392, + "end": 2402, + "loc": { + "start": { + "line": 83, + "column": 37 + }, + "end": { + "line": 83, + "column": 47 + } + }, + "object": { + "type": "ThisExpression", + "start": 2392, + "end": 2396, + "loc": { + "start": { + "line": 83, + "column": 37 + }, + "end": { + "line": 83, + "column": 41 + } + } + }, + "property": { + "type": "Identifier", + "start": 2397, + "end": 2402, + "loc": { + "start": { + "line": 83, + "column": 42 + }, + "end": { + "line": 83, + "column": 47 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2403, + "end": 2408, + "loc": { + "start": { + "line": 83, + "column": 48 + }, + "end": { + "line": 83, + "column": 53 + } + }, + "name": "stats" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2409, + "end": 2421, + "loc": { + "start": { + "line": 83, + "column": 54 + }, + "end": { + "line": 83, + "column": 66 + } + }, + "name": "profileViews" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2422, + "end": 2427, + "loc": { + "start": { + "line": 83, + "column": 67 + }, + "end": { + "line": 83, + "column": 72 + } + }, + "name": "count" + }, + "computed": false + } + }, + { + "type": "Literal", + "start": 2428, + "end": 2471, + "loc": { + "start": { + "line": 83, + "column": 73 + }, + "end": { + "line": 84, + "column": 36 + } + }, + "value": " \n ", + "rawValue": null, + "raw": " \n " + }, + { + "type": "JSXElement", + "start": 2471, + "end": 2651, + "loc": { + "start": { + "line": 84, + "column": 36 + }, + "end": { + "line": 86, + "column": 43 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2471, + "end": 2525, + "loc": { + "start": { + "line": 84, + "column": 36 + }, + "end": { + "line": 84, + "column": 90 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2477, + "end": 2524, + "loc": { + "start": { + "line": 84, + "column": 42 + }, + "end": { + "line": 84, + "column": 89 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2477, + "end": 2486, + "loc": { + "start": { + "line": 84, + "column": 42 + }, + "end": { + "line": 84, + "column": 51 + } + }, + "name": "className" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2487, + "end": 2524, + "loc": { + "start": { + "line": 84, + "column": 52 + }, + "end": { + "line": 84, + "column": 89 + } + }, + "expression": { + "type": "MemberExpression", + "start": 2488, + "end": 2523, + "loc": { + "start": { + "line": 84, + "column": 53 + }, + "end": { + "line": 84, + "column": 88 + } + }, + "object": { + "type": "MemberExpression", + "start": 2488, + "end": 2517, + "loc": { + "start": { + "line": 84, + "column": 53 + }, + "end": { + "line": 84, + "column": 82 + } + }, + "object": { + "type": "MemberExpression", + "start": 2488, + "end": 2504, + "loc": { + "start": { + "line": 84, + "column": 53 + }, + "end": { + "line": 84, + "column": 69 + } + }, + "object": { + "type": "MemberExpression", + "start": 2488, + "end": 2498, + "loc": { + "start": { + "line": 84, + "column": 53 + }, + "end": { + "line": 84, + "column": 63 + } + }, + "object": { + "type": "ThisExpression", + "start": 2488, + "end": 2492, + "loc": { + "start": { + "line": 84, + "column": 53 + }, + "end": { + "line": 84, + "column": 57 + } + } + }, + "property": { + "type": "Identifier", + "start": 2493, + "end": 2498, + "loc": { + "start": { + "line": 84, + "column": 58 + }, + "end": { + "line": 84, + "column": 63 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2499, + "end": 2504, + "loc": { + "start": { + "line": 84, + "column": 64 + }, + "end": { + "line": 84, + "column": 69 + } + }, + "name": "stats" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2505, + "end": 2517, + "loc": { + "start": { + "line": 84, + "column": 70 + }, + "end": { + "line": 84, + "column": 82 + } + }, + "name": "profileViews" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2518, + "end": 2523, + "loc": { + "start": { + "line": 84, + "column": 83 + }, + "end": { + "line": 84, + "column": 88 + } + }, + "name": "color" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2472, + "end": 2476, + "loc": { + "start": { + "line": 84, + "column": 37 + }, + "end": { + "line": 84, + "column": 41 + } + }, + "name": "span" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2644, + "end": 2651, + "loc": { + "start": { + "line": 86, + "column": 36 + }, + "end": { + "line": 86, + "column": 43 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2646, + "end": 2650, + "loc": { + "start": { + "line": 86, + "column": 38 + }, + "end": { + "line": 86, + "column": 42 + } + }, + "name": "span" + } + }, + "children": [ + { + "type": "Literal", + "start": 2525, + "end": 2566, + "loc": { + "start": { + "line": 84, + "column": 90 + }, + "end": { + "line": 85, + "column": 40 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 2566, + "end": 2607, + "loc": { + "start": { + "line": 85, + "column": 40 + }, + "end": { + "line": 85, + "column": 81 + } + }, + "expression": { + "type": "MemberExpression", + "start": 2567, + "end": 2606, + "loc": { + "start": { + "line": 85, + "column": 41 + }, + "end": { + "line": 85, + "column": 80 + } + }, + "object": { + "type": "MemberExpression", + "start": 2567, + "end": 2596, + "loc": { + "start": { + "line": 85, + "column": 41 + }, + "end": { + "line": 85, + "column": 70 + } + }, + "object": { + "type": "MemberExpression", + "start": 2567, + "end": 2583, + "loc": { + "start": { + "line": 85, + "column": 41 + }, + "end": { + "line": 85, + "column": 57 + } + }, + "object": { + "type": "MemberExpression", + "start": 2567, + "end": 2577, + "loc": { + "start": { + "line": 85, + "column": 41 + }, + "end": { + "line": 85, + "column": 51 + } + }, + "object": { + "type": "ThisExpression", + "start": 2567, + "end": 2571, + "loc": { + "start": { + "line": 85, + "column": 41 + }, + "end": { + "line": 85, + "column": 45 + } + } + }, + "property": { + "type": "Identifier", + "start": 2572, + "end": 2577, + "loc": { + "start": { + "line": 85, + "column": 46 + }, + "end": { + "line": 85, + "column": 51 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2578, + "end": 2583, + "loc": { + "start": { + "line": 85, + "column": 52 + }, + "end": { + "line": 85, + "column": 57 + } + }, + "name": "stats" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2584, + "end": 2596, + "loc": { + "start": { + "line": 85, + "column": 58 + }, + "end": { + "line": 85, + "column": 70 + } + }, + "name": "profileViews" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2597, + "end": 2606, + "loc": { + "start": { + "line": 85, + "column": 71 + }, + "end": { + "line": 85, + "column": 80 + } + }, + "name": "increment" + }, + "computed": false + } + }, + { + "type": "Literal", + "start": 2607, + "end": 2644, + "loc": { + "start": { + "line": 85, + "column": 81 + }, + "end": { + "line": 86, + "column": 36 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 2651, + "end": 2684, + "loc": { + "start": { + "line": 86, + "column": 43 + }, + "end": { + "line": 87, + "column": 32 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 2690, + "end": 2723, + "loc": { + "start": { + "line": 87, + "column": 38 + }, + "end": { + "line": 88, + "column": 32 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 2723, + "end": 3129, + "loc": { + "start": { + "line": 88, + "column": 32 + }, + "end": { + "line": 94, + "column": 38 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2723, + "end": 2745, + "loc": { + "start": { + "line": 88, + "column": 32 + }, + "end": { + "line": 88, + "column": 54 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2728, + "end": 2744, + "loc": { + "start": { + "line": 88, + "column": 37 + }, + "end": { + "line": 88, + "column": 53 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2728, + "end": 2737, + "loc": { + "start": { + "line": 88, + "column": 37 + }, + "end": { + "line": 88, + "column": 46 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 2738, + "end": 2744, + "loc": { + "start": { + "line": 88, + "column": 47 + }, + "end": { + "line": 88, + "column": 53 + } + }, + "value": "item", + "rawValue": null, + "raw": "\"item\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2724, + "end": 2727, + "loc": { + "start": { + "line": 88, + "column": 33 + }, + "end": { + "line": 88, + "column": 36 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3123, + "end": 3129, + "loc": { + "start": { + "line": 94, + "column": 32 + }, + "end": { + "line": 94, + "column": 38 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3125, + "end": 3128, + "loc": { + "start": { + "line": 94, + "column": 34 + }, + "end": { + "line": 94, + "column": 37 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 2745, + "end": 2782, + "loc": { + "start": { + "line": 88, + "column": 54 + }, + "end": { + "line": 89, + "column": 36 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 2782, + "end": 2800, + "loc": { + "start": { + "line": 89, + "column": 36 + }, + "end": { + "line": 89, + "column": 54 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2782, + "end": 2786, + "loc": { + "start": { + "line": 89, + "column": 36 + }, + "end": { + "line": 89, + "column": 40 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 2783, + "end": 2785, + "loc": { + "start": { + "line": 89, + "column": 37 + }, + "end": { + "line": 89, + "column": 39 + } + }, + "name": "h1" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 2795, + "end": 2800, + "loc": { + "start": { + "line": 89, + "column": 49 + }, + "end": { + "line": 89, + "column": 54 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2797, + "end": 2799, + "loc": { + "start": { + "line": 89, + "column": 51 + }, + "end": { + "line": 89, + "column": 53 + } + }, + "name": "h1" + } + }, + "children": [ + { + "type": "Literal", + "start": 2786, + "end": 2795, + "loc": { + "start": { + "line": 89, + "column": 40 + }, + "end": { + "line": 89, + "column": 49 + } + }, + "value": "Following", + "rawValue": null, + "raw": "Following" + } + ] + }, + { + "type": "Literal", + "start": 2800, + "end": 2837, + "loc": { + "start": { + "line": 89, + "column": 54 + }, + "end": { + "line": 90, + "column": 36 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 2837, + "end": 2873, + "loc": { + "start": { + "line": 90, + "column": 36 + }, + "end": { + "line": 90, + "column": 72 + } + }, + "expression": { + "type": "MemberExpression", + "start": 2838, + "end": 2872, + "loc": { + "start": { + "line": 90, + "column": 37 + }, + "end": { + "line": 90, + "column": 71 + } + }, + "object": { + "type": "MemberExpression", + "start": 2838, + "end": 2856, + "loc": { + "start": { + "line": 90, + "column": 37 + }, + "end": { + "line": 90, + "column": 55 + } + }, + "object": { + "type": "MemberExpression", + "start": 2838, + "end": 2848, + "loc": { + "start": { + "line": 90, + "column": 37 + }, + "end": { + "line": 90, + "column": 47 + } + }, + "object": { + "type": "ThisExpression", + "start": 2838, + "end": 2842, + "loc": { + "start": { + "line": 90, + "column": 37 + }, + "end": { + "line": 90, + "column": 41 + } + } + }, + "property": { + "type": "Identifier", + "start": 2843, + "end": 2848, + "loc": { + "start": { + "line": 90, + "column": 42 + }, + "end": { + "line": 90, + "column": 47 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2849, + "end": 2856, + "loc": { + "start": { + "line": 90, + "column": 48 + }, + "end": { + "line": 90, + "column": 55 + } + }, + "name": "profile" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2857, + "end": 2872, + "loc": { + "start": { + "line": 90, + "column": 56 + }, + "end": { + "line": 90, + "column": 71 + } + }, + "name": "following_count" + }, + "computed": false + } + }, + { + "type": "Literal", + "start": 2873, + "end": 2916, + "loc": { + "start": { + "line": 90, + "column": 72 + }, + "end": { + "line": 91, + "column": 36 + } + }, + "value": " \n ", + "rawValue": null, + "raw": " \n " + }, + { + "type": "JSXElement", + "start": 2916, + "end": 3090, + "loc": { + "start": { + "line": 91, + "column": 36 + }, + "end": { + "line": 93, + "column": 43 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2916, + "end": 2967, + "loc": { + "start": { + "line": 91, + "column": 36 + }, + "end": { + "line": 91, + "column": 87 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2922, + "end": 2966, + "loc": { + "start": { + "line": 91, + "column": 42 + }, + "end": { + "line": 91, + "column": 86 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2922, + "end": 2931, + "loc": { + "start": { + "line": 91, + "column": 42 + }, + "end": { + "line": 91, + "column": 51 + } + }, + "name": "className" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2932, + "end": 2966, + "loc": { + "start": { + "line": 91, + "column": 52 + }, + "end": { + "line": 91, + "column": 86 + } + }, + "expression": { + "type": "MemberExpression", + "start": 2933, + "end": 2965, + "loc": { + "start": { + "line": 91, + "column": 53 + }, + "end": { + "line": 91, + "column": 85 + } + }, + "object": { + "type": "MemberExpression", + "start": 2933, + "end": 2959, + "loc": { + "start": { + "line": 91, + "column": 53 + }, + "end": { + "line": 91, + "column": 79 + } + }, + "object": { + "type": "MemberExpression", + "start": 2933, + "end": 2949, + "loc": { + "start": { + "line": 91, + "column": 53 + }, + "end": { + "line": 91, + "column": 69 + } + }, + "object": { + "type": "MemberExpression", + "start": 2933, + "end": 2943, + "loc": { + "start": { + "line": 91, + "column": 53 + }, + "end": { + "line": 91, + "column": 63 + } + }, + "object": { + "type": "ThisExpression", + "start": 2933, + "end": 2937, + "loc": { + "start": { + "line": 91, + "column": 53 + }, + "end": { + "line": 91, + "column": 57 + } + } + }, + "property": { + "type": "Identifier", + "start": 2938, + "end": 2943, + "loc": { + "start": { + "line": 91, + "column": 58 + }, + "end": { + "line": 91, + "column": 63 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2944, + "end": 2949, + "loc": { + "start": { + "line": 91, + "column": 64 + }, + "end": { + "line": 91, + "column": 69 + } + }, + "name": "stats" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2950, + "end": 2959, + "loc": { + "start": { + "line": 91, + "column": 70 + }, + "end": { + "line": 91, + "column": 79 + } + }, + "name": "following" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2960, + "end": 2965, + "loc": { + "start": { + "line": 91, + "column": 80 + }, + "end": { + "line": 91, + "column": 85 + } + }, + "name": "color" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2917, + "end": 2921, + "loc": { + "start": { + "line": 91, + "column": 37 + }, + "end": { + "line": 91, + "column": 41 + } + }, + "name": "span" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3083, + "end": 3090, + "loc": { + "start": { + "line": 93, + "column": 36 + }, + "end": { + "line": 93, + "column": 43 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3085, + "end": 3089, + "loc": { + "start": { + "line": 93, + "column": 38 + }, + "end": { + "line": 93, + "column": 42 + } + }, + "name": "span" + } + }, + "children": [ + { + "type": "Literal", + "start": 2967, + "end": 3008, + "loc": { + "start": { + "line": 91, + "column": 87 + }, + "end": { + "line": 92, + "column": 40 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 3008, + "end": 3046, + "loc": { + "start": { + "line": 92, + "column": 40 + }, + "end": { + "line": 92, + "column": 78 + } + }, + "expression": { + "type": "MemberExpression", + "start": 3009, + "end": 3045, + "loc": { + "start": { + "line": 92, + "column": 41 + }, + "end": { + "line": 92, + "column": 77 + } + }, + "object": { + "type": "MemberExpression", + "start": 3009, + "end": 3035, + "loc": { + "start": { + "line": 92, + "column": 41 + }, + "end": { + "line": 92, + "column": 67 + } + }, + "object": { + "type": "MemberExpression", + "start": 3009, + "end": 3025, + "loc": { + "start": { + "line": 92, + "column": 41 + }, + "end": { + "line": 92, + "column": 57 + } + }, + "object": { + "type": "MemberExpression", + "start": 3009, + "end": 3019, + "loc": { + "start": { + "line": 92, + "column": 41 + }, + "end": { + "line": 92, + "column": 51 + } + }, + "object": { + "type": "ThisExpression", + "start": 3009, + "end": 3013, + "loc": { + "start": { + "line": 92, + "column": 41 + }, + "end": { + "line": 92, + "column": 45 + } + } + }, + "property": { + "type": "Identifier", + "start": 3014, + "end": 3019, + "loc": { + "start": { + "line": 92, + "column": 46 + }, + "end": { + "line": 92, + "column": 51 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3020, + "end": 3025, + "loc": { + "start": { + "line": 92, + "column": 52 + }, + "end": { + "line": 92, + "column": 57 + } + }, + "name": "stats" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3026, + "end": 3035, + "loc": { + "start": { + "line": 92, + "column": 58 + }, + "end": { + "line": 92, + "column": 67 + } + }, + "name": "following" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3036, + "end": 3045, + "loc": { + "start": { + "line": 92, + "column": 68 + }, + "end": { + "line": 92, + "column": 77 + } + }, + "name": "increment" + }, + "computed": false + } + }, + { + "type": "Literal", + "start": 3046, + "end": 3083, + "loc": { + "start": { + "line": 92, + "column": 78 + }, + "end": { + "line": 93, + "column": 36 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 3090, + "end": 3123, + "loc": { + "start": { + "line": 93, + "column": 43 + }, + "end": { + "line": 94, + "column": 32 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 3129, + "end": 3158, + "loc": { + "start": { + "line": 94, + "column": 38 + }, + "end": { + "line": 95, + "column": 28 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 3164, + "end": 3189, + "loc": { + "start": { + "line": 95, + "column": 34 + }, + "end": { + "line": 96, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 3195, + "end": 3220, + "loc": { + "start": { + "line": 96, + "column": 30 + }, + "end": { + "line": 97, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 3220, + "end": 4233, + "loc": { + "start": { + "line": 97, + "column": 24 + }, + "end": { + "line": 114, + "column": 30 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3220, + "end": 3241, + "loc": { + "start": { + "line": 97, + "column": 24 + }, + "end": { + "line": 97, + "column": 45 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3225, + "end": 3240, + "loc": { + "start": { + "line": 97, + "column": 29 + }, + "end": { + "line": 97, + "column": 44 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3225, + "end": 3234, + "loc": { + "start": { + "line": 97, + "column": 29 + }, + "end": { + "line": 97, + "column": 38 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 3235, + "end": 3240, + "loc": { + "start": { + "line": 97, + "column": 39 + }, + "end": { + "line": 97, + "column": 44 + } + }, + "value": "row", + "rawValue": null, + "raw": "\"row\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3221, + "end": 3224, + "loc": { + "start": { + "line": 97, + "column": 25 + }, + "end": { + "line": 97, + "column": 28 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 4227, + "end": 4233, + "loc": { + "start": { + "line": 114, + "column": 24 + }, + "end": { + "line": 114, + "column": 30 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4229, + "end": 4232, + "loc": { + "start": { + "line": 114, + "column": 26 + }, + "end": { + "line": 114, + "column": 29 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 3241, + "end": 3270, + "loc": { + "start": { + "line": 97, + "column": 45 + }, + "end": { + "line": 98, + "column": 28 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 3270, + "end": 4202, + "loc": { + "start": { + "line": 98, + "column": 28 + }, + "end": { + "line": 113, + "column": 34 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3270, + "end": 3291, + "loc": { + "start": { + "line": 98, + "column": 28 + }, + "end": { + "line": 98, + "column": 49 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3275, + "end": 3290, + "loc": { + "start": { + "line": 98, + "column": 33 + }, + "end": { + "line": 98, + "column": 48 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3275, + "end": 3284, + "loc": { + "start": { + "line": 98, + "column": 33 + }, + "end": { + "line": 98, + "column": 42 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 3285, + "end": 3290, + "loc": { + "start": { + "line": 98, + "column": 43 + }, + "end": { + "line": 98, + "column": 48 + } + }, + "value": "col", + "rawValue": null, + "raw": "\"col\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3271, + "end": 3274, + "loc": { + "start": { + "line": 98, + "column": 29 + }, + "end": { + "line": 98, + "column": 32 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 4196, + "end": 4202, + "loc": { + "start": { + "line": 113, + "column": 28 + }, + "end": { + "line": 113, + "column": 34 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4198, + "end": 4201, + "loc": { + "start": { + "line": 113, + "column": 30 + }, + "end": { + "line": 113, + "column": 33 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 3291, + "end": 3324, + "loc": { + "start": { + "line": 98, + "column": 49 + }, + "end": { + "line": 99, + "column": 32 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 3324, + "end": 3729, + "loc": { + "start": { + "line": 99, + "column": 32 + }, + "end": { + "line": 105, + "column": 38 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3324, + "end": 3346, + "loc": { + "start": { + "line": 99, + "column": 32 + }, + "end": { + "line": 99, + "column": 54 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3329, + "end": 3345, + "loc": { + "start": { + "line": 99, + "column": 37 + }, + "end": { + "line": 99, + "column": 53 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3329, + "end": 3338, + "loc": { + "start": { + "line": 99, + "column": 37 + }, + "end": { + "line": 99, + "column": 46 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 3339, + "end": 3345, + "loc": { + "start": { + "line": 99, + "column": 47 + }, + "end": { + "line": 99, + "column": 53 + } + }, + "value": "item", + "rawValue": null, + "raw": "\"item\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3325, + "end": 3328, + "loc": { + "start": { + "line": 99, + "column": 33 + }, + "end": { + "line": 99, + "column": 36 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3723, + "end": 3729, + "loc": { + "start": { + "line": 105, + "column": 32 + }, + "end": { + "line": 105, + "column": 38 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3725, + "end": 3728, + "loc": { + "start": { + "line": 105, + "column": 34 + }, + "end": { + "line": 105, + "column": 37 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 3346, + "end": 3383, + "loc": { + "start": { + "line": 99, + "column": 54 + }, + "end": { + "line": 100, + "column": 36 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 3383, + "end": 3402, + "loc": { + "start": { + "line": 100, + "column": 36 + }, + "end": { + "line": 100, + "column": 55 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3383, + "end": 3387, + "loc": { + "start": { + "line": 100, + "column": 36 + }, + "end": { + "line": 100, + "column": 40 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 3384, + "end": 3386, + "loc": { + "start": { + "line": 100, + "column": 37 + }, + "end": { + "line": 100, + "column": 39 + } + }, + "name": "h1" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3397, + "end": 3402, + "loc": { + "start": { + "line": 100, + "column": 50 + }, + "end": { + "line": 100, + "column": 55 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3399, + "end": 3401, + "loc": { + "start": { + "line": 100, + "column": 52 + }, + "end": { + "line": 100, + "column": 54 + } + }, + "name": "h1" + } + }, + "children": [ + { + "type": "Literal", + "start": 3387, + "end": 3397, + "loc": { + "start": { + "line": 100, + "column": 40 + }, + "end": { + "line": 100, + "column": 50 + } + }, + "value": "Item Views", + "rawValue": null, + "raw": "Item Views" + } + ] + }, + { + "type": "Literal", + "start": 3402, + "end": 3439, + "loc": { + "start": { + "line": 100, + "column": 55 + }, + "end": { + "line": 101, + "column": 36 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 3439, + "end": 3473, + "loc": { + "start": { + "line": 101, + "column": 36 + }, + "end": { + "line": 101, + "column": 70 + } + }, + "expression": { + "type": "MemberExpression", + "start": 3440, + "end": 3472, + "loc": { + "start": { + "line": 101, + "column": 37 + }, + "end": { + "line": 101, + "column": 69 + } + }, + "object": { + "type": "MemberExpression", + "start": 3440, + "end": 3466, + "loc": { + "start": { + "line": 101, + "column": 37 + }, + "end": { + "line": 101, + "column": 63 + } + }, + "object": { + "type": "MemberExpression", + "start": 3440, + "end": 3456, + "loc": { + "start": { + "line": 101, + "column": 37 + }, + "end": { + "line": 101, + "column": 53 + } + }, + "object": { + "type": "MemberExpression", + "start": 3440, + "end": 3450, + "loc": { + "start": { + "line": 101, + "column": 37 + }, + "end": { + "line": 101, + "column": 47 + } + }, + "object": { + "type": "ThisExpression", + "start": 3440, + "end": 3444, + "loc": { + "start": { + "line": 101, + "column": 37 + }, + "end": { + "line": 101, + "column": 41 + } + } + }, + "property": { + "type": "Identifier", + "start": 3445, + "end": 3450, + "loc": { + "start": { + "line": 101, + "column": 42 + }, + "end": { + "line": 101, + "column": 47 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3451, + "end": 3456, + "loc": { + "start": { + "line": 101, + "column": 48 + }, + "end": { + "line": 101, + "column": 53 + } + }, + "name": "stats" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3457, + "end": 3466, + "loc": { + "start": { + "line": 101, + "column": 54 + }, + "end": { + "line": 101, + "column": 63 + } + }, + "name": "itemViews" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3467, + "end": 3472, + "loc": { + "start": { + "line": 101, + "column": 64 + }, + "end": { + "line": 101, + "column": 69 + } + }, + "name": "count" + }, + "computed": false + } + }, + { + "type": "Literal", + "start": 3473, + "end": 3516, + "loc": { + "start": { + "line": 101, + "column": 70 + }, + "end": { + "line": 102, + "column": 36 + } + }, + "value": " \n ", + "rawValue": null, + "raw": " \n " + }, + { + "type": "JSXElement", + "start": 3516, + "end": 3690, + "loc": { + "start": { + "line": 102, + "column": 36 + }, + "end": { + "line": 104, + "column": 43 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3516, + "end": 3567, + "loc": { + "start": { + "line": 102, + "column": 36 + }, + "end": { + "line": 102, + "column": 87 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3522, + "end": 3566, + "loc": { + "start": { + "line": 102, + "column": 42 + }, + "end": { + "line": 102, + "column": 86 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3522, + "end": 3531, + "loc": { + "start": { + "line": 102, + "column": 42 + }, + "end": { + "line": 102, + "column": 51 + } + }, + "name": "className" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 3532, + "end": 3566, + "loc": { + "start": { + "line": 102, + "column": 52 + }, + "end": { + "line": 102, + "column": 86 + } + }, + "expression": { + "type": "MemberExpression", + "start": 3533, + "end": 3565, + "loc": { + "start": { + "line": 102, + "column": 53 + }, + "end": { + "line": 102, + "column": 85 + } + }, + "object": { + "type": "MemberExpression", + "start": 3533, + "end": 3559, + "loc": { + "start": { + "line": 102, + "column": 53 + }, + "end": { + "line": 102, + "column": 79 + } + }, + "object": { + "type": "MemberExpression", + "start": 3533, + "end": 3549, + "loc": { + "start": { + "line": 102, + "column": 53 + }, + "end": { + "line": 102, + "column": 69 + } + }, + "object": { + "type": "MemberExpression", + "start": 3533, + "end": 3543, + "loc": { + "start": { + "line": 102, + "column": 53 + }, + "end": { + "line": 102, + "column": 63 + } + }, + "object": { + "type": "ThisExpression", + "start": 3533, + "end": 3537, + "loc": { + "start": { + "line": 102, + "column": 53 + }, + "end": { + "line": 102, + "column": 57 + } + } + }, + "property": { + "type": "Identifier", + "start": 3538, + "end": 3543, + "loc": { + "start": { + "line": 102, + "column": 58 + }, + "end": { + "line": 102, + "column": 63 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3544, + "end": 3549, + "loc": { + "start": { + "line": 102, + "column": 64 + }, + "end": { + "line": 102, + "column": 69 + } + }, + "name": "stats" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3550, + "end": 3559, + "loc": { + "start": { + "line": 102, + "column": 70 + }, + "end": { + "line": 102, + "column": 79 + } + }, + "name": "itemViews" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3560, + "end": 3565, + "loc": { + "start": { + "line": 102, + "column": 80 + }, + "end": { + "line": 102, + "column": 85 + } + }, + "name": "color" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3517, + "end": 3521, + "loc": { + "start": { + "line": 102, + "column": 37 + }, + "end": { + "line": 102, + "column": 41 + } + }, + "name": "span" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3683, + "end": 3690, + "loc": { + "start": { + "line": 104, + "column": 36 + }, + "end": { + "line": 104, + "column": 43 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3685, + "end": 3689, + "loc": { + "start": { + "line": 104, + "column": 38 + }, + "end": { + "line": 104, + "column": 42 + } + }, + "name": "span" + } + }, + "children": [ + { + "type": "Literal", + "start": 3567, + "end": 3608, + "loc": { + "start": { + "line": 102, + "column": 87 + }, + "end": { + "line": 103, + "column": 40 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 3608, + "end": 3646, + "loc": { + "start": { + "line": 103, + "column": 40 + }, + "end": { + "line": 103, + "column": 78 + } + }, + "expression": { + "type": "MemberExpression", + "start": 3609, + "end": 3645, + "loc": { + "start": { + "line": 103, + "column": 41 + }, + "end": { + "line": 103, + "column": 77 + } + }, + "object": { + "type": "MemberExpression", + "start": 3609, + "end": 3635, + "loc": { + "start": { + "line": 103, + "column": 41 + }, + "end": { + "line": 103, + "column": 67 + } + }, + "object": { + "type": "MemberExpression", + "start": 3609, + "end": 3625, + "loc": { + "start": { + "line": 103, + "column": 41 + }, + "end": { + "line": 103, + "column": 57 + } + }, + "object": { + "type": "MemberExpression", + "start": 3609, + "end": 3619, + "loc": { + "start": { + "line": 103, + "column": 41 + }, + "end": { + "line": 103, + "column": 51 + } + }, + "object": { + "type": "ThisExpression", + "start": 3609, + "end": 3613, + "loc": { + "start": { + "line": 103, + "column": 41 + }, + "end": { + "line": 103, + "column": 45 + } + } + }, + "property": { + "type": "Identifier", + "start": 3614, + "end": 3619, + "loc": { + "start": { + "line": 103, + "column": 46 + }, + "end": { + "line": 103, + "column": 51 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3620, + "end": 3625, + "loc": { + "start": { + "line": 103, + "column": 52 + }, + "end": { + "line": 103, + "column": 57 + } + }, + "name": "stats" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3626, + "end": 3635, + "loc": { + "start": { + "line": 103, + "column": 58 + }, + "end": { + "line": 103, + "column": 67 + } + }, + "name": "itemViews" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3636, + "end": 3645, + "loc": { + "start": { + "line": 103, + "column": 68 + }, + "end": { + "line": 103, + "column": 77 + } + }, + "name": "increment" + }, + "computed": false + } + }, + { + "type": "Literal", + "start": 3646, + "end": 3683, + "loc": { + "start": { + "line": 103, + "column": 78 + }, + "end": { + "line": 104, + "column": 36 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 3690, + "end": 3723, + "loc": { + "start": { + "line": 104, + "column": 43 + }, + "end": { + "line": 105, + "column": 32 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 3729, + "end": 3762, + "loc": { + "start": { + "line": 105, + "column": 38 + }, + "end": { + "line": 106, + "column": 32 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 3762, + "end": 4167, + "loc": { + "start": { + "line": 106, + "column": 32 + }, + "end": { + "line": 112, + "column": 38 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3762, + "end": 3784, + "loc": { + "start": { + "line": 106, + "column": 32 + }, + "end": { + "line": 106, + "column": 54 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3767, + "end": 3783, + "loc": { + "start": { + "line": 106, + "column": 37 + }, + "end": { + "line": 106, + "column": 53 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3767, + "end": 3776, + "loc": { + "start": { + "line": 106, + "column": 37 + }, + "end": { + "line": 106, + "column": 46 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 3777, + "end": 3783, + "loc": { + "start": { + "line": 106, + "column": 47 + }, + "end": { + "line": 106, + "column": 53 + } + }, + "value": "item", + "rawValue": null, + "raw": "\"item\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3763, + "end": 3766, + "loc": { + "start": { + "line": 106, + "column": 33 + }, + "end": { + "line": 106, + "column": 36 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 4161, + "end": 4167, + "loc": { + "start": { + "line": 112, + "column": 32 + }, + "end": { + "line": 112, + "column": 38 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4163, + "end": 4166, + "loc": { + "start": { + "line": 112, + "column": 34 + }, + "end": { + "line": 112, + "column": 37 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 3784, + "end": 3821, + "loc": { + "start": { + "line": 106, + "column": 54 + }, + "end": { + "line": 107, + "column": 36 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 3821, + "end": 3839, + "loc": { + "start": { + "line": 107, + "column": 36 + }, + "end": { + "line": 107, + "column": 54 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3821, + "end": 3825, + "loc": { + "start": { + "line": 107, + "column": 36 + }, + "end": { + "line": 107, + "column": 40 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 3822, + "end": 3824, + "loc": { + "start": { + "line": 107, + "column": 37 + }, + "end": { + "line": 107, + "column": 39 + } + }, + "name": "h1" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3834, + "end": 3839, + "loc": { + "start": { + "line": 107, + "column": 49 + }, + "end": { + "line": 107, + "column": 54 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3836, + "end": 3838, + "loc": { + "start": { + "line": 107, + "column": 51 + }, + "end": { + "line": 107, + "column": 53 + } + }, + "name": "h1" + } + }, + "children": [ + { + "type": "Literal", + "start": 3825, + "end": 3834, + "loc": { + "start": { + "line": 107, + "column": 40 + }, + "end": { + "line": 107, + "column": 49 + } + }, + "value": "Followers", + "rawValue": null, + "raw": "Followers" + } + ] + }, + { + "type": "Literal", + "start": 3839, + "end": 3876, + "loc": { + "start": { + "line": 107, + "column": 54 + }, + "end": { + "line": 108, + "column": 36 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 3876, + "end": 3911, + "loc": { + "start": { + "line": 108, + "column": 36 + }, + "end": { + "line": 108, + "column": 71 + } + }, + "expression": { + "type": "MemberExpression", + "start": 3877, + "end": 3910, + "loc": { + "start": { + "line": 108, + "column": 37 + }, + "end": { + "line": 108, + "column": 70 + } + }, + "object": { + "type": "MemberExpression", + "start": 3877, + "end": 3895, + "loc": { + "start": { + "line": 108, + "column": 37 + }, + "end": { + "line": 108, + "column": 55 + } + }, + "object": { + "type": "MemberExpression", + "start": 3877, + "end": 3887, + "loc": { + "start": { + "line": 108, + "column": 37 + }, + "end": { + "line": 108, + "column": 47 + } + }, + "object": { + "type": "ThisExpression", + "start": 3877, + "end": 3881, + "loc": { + "start": { + "line": 108, + "column": 37 + }, + "end": { + "line": 108, + "column": 41 + } + } + }, + "property": { + "type": "Identifier", + "start": 3882, + "end": 3887, + "loc": { + "start": { + "line": 108, + "column": 42 + }, + "end": { + "line": 108, + "column": 47 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3888, + "end": 3895, + "loc": { + "start": { + "line": 108, + "column": 48 + }, + "end": { + "line": 108, + "column": 55 + } + }, + "name": "profile" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3896, + "end": 3910, + "loc": { + "start": { + "line": 108, + "column": 56 + }, + "end": { + "line": 108, + "column": 70 + } + }, + "name": "follower_count" + }, + "computed": false + } + }, + { + "type": "Literal", + "start": 3911, + "end": 3954, + "loc": { + "start": { + "line": 108, + "column": 71 + }, + "end": { + "line": 109, + "column": 36 + } + }, + "value": " \n ", + "rawValue": null, + "raw": " \n " + }, + { + "type": "JSXElement", + "start": 3954, + "end": 4128, + "loc": { + "start": { + "line": 109, + "column": 36 + }, + "end": { + "line": 111, + "column": 43 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3954, + "end": 4005, + "loc": { + "start": { + "line": 109, + "column": 36 + }, + "end": { + "line": 109, + "column": 87 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3960, + "end": 4004, + "loc": { + "start": { + "line": 109, + "column": 42 + }, + "end": { + "line": 109, + "column": 86 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3960, + "end": 3969, + "loc": { + "start": { + "line": 109, + "column": 42 + }, + "end": { + "line": 109, + "column": 51 + } + }, + "name": "className" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 3970, + "end": 4004, + "loc": { + "start": { + "line": 109, + "column": 52 + }, + "end": { + "line": 109, + "column": 86 + } + }, + "expression": { + "type": "MemberExpression", + "start": 3971, + "end": 4003, + "loc": { + "start": { + "line": 109, + "column": 53 + }, + "end": { + "line": 109, + "column": 85 + } + }, + "object": { + "type": "MemberExpression", + "start": 3971, + "end": 3997, + "loc": { + "start": { + "line": 109, + "column": 53 + }, + "end": { + "line": 109, + "column": 79 + } + }, + "object": { + "type": "MemberExpression", + "start": 3971, + "end": 3987, + "loc": { + "start": { + "line": 109, + "column": 53 + }, + "end": { + "line": 109, + "column": 69 + } + }, + "object": { + "type": "MemberExpression", + "start": 3971, + "end": 3981, + "loc": { + "start": { + "line": 109, + "column": 53 + }, + "end": { + "line": 109, + "column": 63 + } + }, + "object": { + "type": "ThisExpression", + "start": 3971, + "end": 3975, + "loc": { + "start": { + "line": 109, + "column": 53 + }, + "end": { + "line": 109, + "column": 57 + } + } + }, + "property": { + "type": "Identifier", + "start": 3976, + "end": 3981, + "loc": { + "start": { + "line": 109, + "column": 58 + }, + "end": { + "line": 109, + "column": 63 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3982, + "end": 3987, + "loc": { + "start": { + "line": 109, + "column": 64 + }, + "end": { + "line": 109, + "column": 69 + } + }, + "name": "stats" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3988, + "end": 3997, + "loc": { + "start": { + "line": 109, + "column": 70 + }, + "end": { + "line": 109, + "column": 79 + } + }, + "name": "followers" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3998, + "end": 4003, + "loc": { + "start": { + "line": 109, + "column": 80 + }, + "end": { + "line": 109, + "column": 85 + } + }, + "name": "color" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3955, + "end": 3959, + "loc": { + "start": { + "line": 109, + "column": 37 + }, + "end": { + "line": 109, + "column": 41 + } + }, + "name": "span" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 4121, + "end": 4128, + "loc": { + "start": { + "line": 111, + "column": 36 + }, + "end": { + "line": 111, + "column": 43 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4123, + "end": 4127, + "loc": { + "start": { + "line": 111, + "column": 38 + }, + "end": { + "line": 111, + "column": 42 + } + }, + "name": "span" + } + }, + "children": [ + { + "type": "Literal", + "start": 4005, + "end": 4046, + "loc": { + "start": { + "line": 109, + "column": 87 + }, + "end": { + "line": 110, + "column": 40 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 4046, + "end": 4084, + "loc": { + "start": { + "line": 110, + "column": 40 + }, + "end": { + "line": 110, + "column": 78 + } + }, + "expression": { + "type": "MemberExpression", + "start": 4047, + "end": 4083, + "loc": { + "start": { + "line": 110, + "column": 41 + }, + "end": { + "line": 110, + "column": 77 + } + }, + "object": { + "type": "MemberExpression", + "start": 4047, + "end": 4073, + "loc": { + "start": { + "line": 110, + "column": 41 + }, + "end": { + "line": 110, + "column": 67 + } + }, + "object": { + "type": "MemberExpression", + "start": 4047, + "end": 4063, + "loc": { + "start": { + "line": 110, + "column": 41 + }, + "end": { + "line": 110, + "column": 57 + } + }, + "object": { + "type": "MemberExpression", + "start": 4047, + "end": 4057, + "loc": { + "start": { + "line": 110, + "column": 41 + }, + "end": { + "line": 110, + "column": 51 + } + }, + "object": { + "type": "ThisExpression", + "start": 4047, + "end": 4051, + "loc": { + "start": { + "line": 110, + "column": 41 + }, + "end": { + "line": 110, + "column": 45 + } + } + }, + "property": { + "type": "Identifier", + "start": 4052, + "end": 4057, + "loc": { + "start": { + "line": 110, + "column": 46 + }, + "end": { + "line": 110, + "column": 51 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 4058, + "end": 4063, + "loc": { + "start": { + "line": 110, + "column": 52 + }, + "end": { + "line": 110, + "column": 57 + } + }, + "name": "stats" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 4064, + "end": 4073, + "loc": { + "start": { + "line": 110, + "column": 58 + }, + "end": { + "line": 110, + "column": 67 + } + }, + "name": "followers" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 4074, + "end": 4083, + "loc": { + "start": { + "line": 110, + "column": 68 + }, + "end": { + "line": 110, + "column": 77 + } + }, + "name": "increment" + }, + "computed": false + } + }, + { + "type": "Literal", + "start": 4084, + "end": 4121, + "loc": { + "start": { + "line": 110, + "column": 78 + }, + "end": { + "line": 111, + "column": 36 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 4128, + "end": 4161, + "loc": { + "start": { + "line": 111, + "column": 43 + }, + "end": { + "line": 112, + "column": 32 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 4167, + "end": 4196, + "loc": { + "start": { + "line": 112, + "column": 38 + }, + "end": { + "line": 113, + "column": 28 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 4202, + "end": 4227, + "loc": { + "start": { + "line": 113, + "column": 34 + }, + "end": { + "line": 114, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 4233, + "end": 4254, + "loc": { + "start": { + "line": 114, + "column": 30 + }, + "end": { + "line": 115, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 4260, + "end": 4281, + "loc": { + "start": { + "line": 115, + "column": 26 + }, + "end": { + "line": 116, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 4281, + "end": 4515, + "loc": { + "start": { + "line": 116, + "column": 20 + }, + "end": { + "line": 119, + "column": 26 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 4281, + "end": 4327, + "loc": { + "start": { + "line": 116, + "column": 20 + }, + "end": { + "line": 116, + "column": 66 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 4286, + "end": 4326, + "loc": { + "start": { + "line": 116, + "column": 25 + }, + "end": { + "line": 116, + "column": 65 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4286, + "end": 4295, + "loc": { + "start": { + "line": 116, + "column": 25 + }, + "end": { + "line": 116, + "column": 34 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 4296, + "end": 4326, + "loc": { + "start": { + "line": 116, + "column": 35 + }, + "end": { + "line": 116, + "column": 65 + } + }, + "value": "most most-views-from content", + "rawValue": null, + "raw": "\"most most-views-from content\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 4282, + "end": 4285, + "loc": { + "start": { + "line": 116, + "column": 21 + }, + "end": { + "line": 116, + "column": 24 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 4509, + "end": 4515, + "loc": { + "start": { + "line": 119, + "column": 20 + }, + "end": { + "line": 119, + "column": 26 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4511, + "end": 4514, + "loc": { + "start": { + "line": 119, + "column": 22 + }, + "end": { + "line": 119, + "column": 25 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 4327, + "end": 4352, + "loc": { + "start": { + "line": 116, + "column": 66 + }, + "end": { + "line": 117, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 4352, + "end": 4376, + "loc": { + "start": { + "line": 117, + "column": 24 + }, + "end": { + "line": 117, + "column": 48 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 4352, + "end": 4356, + "loc": { + "start": { + "line": 117, + "column": 24 + }, + "end": { + "line": 117, + "column": 28 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 4353, + "end": 4355, + "loc": { + "start": { + "line": 117, + "column": 25 + }, + "end": { + "line": 117, + "column": 27 + } + }, + "name": "h1" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 4371, + "end": 4376, + "loc": { + "start": { + "line": 117, + "column": 43 + }, + "end": { + "line": 117, + "column": 48 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4373, + "end": 4375, + "loc": { + "start": { + "line": 117, + "column": 45 + }, + "end": { + "line": 117, + "column": 47 + } + }, + "name": "h1" + } + }, + "children": [ + { + "type": "Literal", + "start": 4356, + "end": 4371, + "loc": { + "start": { + "line": 117, + "column": 28 + }, + "end": { + "line": 117, + "column": 43 + } + }, + "value": "Most Views from", + "rawValue": null, + "raw": "Most Views from" + } + ] + }, + { + "type": "Literal", + "start": 4376, + "end": 4401, + "loc": { + "start": { + "line": 117, + "column": 48 + }, + "end": { + "line": 118, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 4401, + "end": 4488, + "loc": { + "start": { + "line": 118, + "column": 24 + }, + "end": { + "line": 118, + "column": 111 + } + }, + "expression": { + "type": "CallExpression", + "start": 4402, + "end": 4487, + "loc": { + "start": { + "line": 118, + "column": 25 + }, + "end": { + "line": 118, + "column": 110 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4402, + "end": 4431, + "loc": { + "start": { + "line": 118, + "column": 25 + }, + "end": { + "line": 118, + "column": 54 + } + }, + "object": { + "type": "MemberExpression", + "start": 4402, + "end": 4427, + "loc": { + "start": { + "line": 118, + "column": 25 + }, + "end": { + "line": 118, + "column": 50 + } + }, + "object": { + "type": "MemberExpression", + "start": 4402, + "end": 4418, + "loc": { + "start": { + "line": 118, + "column": 25 + }, + "end": { + "line": 118, + "column": 41 + } + }, + "object": { + "type": "MemberExpression", + "start": 4402, + "end": 4412, + "loc": { + "start": { + "line": 118, + "column": 25 + }, + "end": { + "line": 118, + "column": 35 + } + }, + "object": { + "type": "ThisExpression", + "start": 4402, + "end": 4406, + "loc": { + "start": { + "line": 118, + "column": 25 + }, + "end": { + "line": 118, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "start": 4407, + "end": 4412, + "loc": { + "start": { + "line": 118, + "column": 30 + }, + "end": { + "line": 118, + "column": 35 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 4413, + "end": 4418, + "loc": { + "start": { + "line": 118, + "column": 36 + }, + "end": { + "line": 118, + "column": 41 + } + }, + "name": "stats" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 4419, + "end": 4427, + "loc": { + "start": { + "line": 118, + "column": 42 + }, + "end": { + "line": 118, + "column": 50 + } + }, + "name": "geoViews" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 4428, + "end": 4431, + "loc": { + "start": { + "line": 118, + "column": 51 + }, + "end": { + "line": 118, + "column": 54 + } + }, + "name": "map" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 4432, + "end": 4486, + "loc": { + "start": { + "line": 118, + "column": 55 + }, + "end": { + "line": 118, + "column": 109 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 4432, + "end": 4435, + "loc": { + "start": { + "line": 118, + "column": 55 + }, + "end": { + "line": 118, + "column": 58 + } + }, + "name": "geo" + } + ], + "body": { + "type": "JSXElement", + "start": 4439, + "end": 4486, + "loc": { + "start": { + "line": 118, + "column": 62 + }, + "end": { + "line": 118, + "column": 109 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 4439, + "end": 4486, + "loc": { + "start": { + "line": 118, + "column": 62 + }, + "end": { + "line": 118, + "column": 109 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 4449, + "end": 4474, + "loc": { + "start": { + "line": 118, + "column": 72 + }, + "end": { + "line": 118, + "column": 97 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4449, + "end": 4452, + "loc": { + "start": { + "line": 118, + "column": 72 + }, + "end": { + "line": 118, + "column": 75 + } + }, + "name": "key" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 4453, + "end": 4474, + "loc": { + "start": { + "line": 118, + "column": 76 + }, + "end": { + "line": 118, + "column": 97 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 4454, + "end": 4473, + "loc": { + "start": { + "line": 118, + "column": 77 + }, + "end": { + "line": 118, + "column": 96 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 4461, + "end": 4471, + "loc": { + "start": { + "line": 118, + "column": 84 + }, + "end": { + "line": 118, + "column": 94 + } + }, + "object": { + "type": "Identifier", + "start": 4461, + "end": 4464, + "loc": { + "start": { + "line": 118, + "column": 84 + }, + "end": { + "line": 118, + "column": 87 + } + }, + "name": "geo" + }, + "property": { + "type": "Identifier", + "start": 4465, + "end": 4471, + "loc": { + "start": { + "line": 118, + "column": 88 + }, + "end": { + "line": 118, + "column": 94 + } + }, + "name": "result" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 4455, + "end": 4459, + "loc": { + "start": { + "line": 118, + "column": 78 + }, + "end": { + "line": 118, + "column": 82 + } + }, + "value": { + "raw": "geo-", + "cooked": "geo-" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 4472, + "end": 4472, + "loc": { + "start": { + "line": 118, + "column": 95 + }, + "end": { + "line": 118, + "column": 95 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + }, + { + "type": "JSXSpreadAttribute", + "start": 4475, + "end": 4483, + "loc": { + "start": { + "line": 118, + "column": 98 + }, + "end": { + "line": 118, + "column": 106 + } + }, + "argument": { + "type": "Identifier", + "start": 4479, + "end": 4482, + "loc": { + "start": { + "line": 118, + "column": 102 + }, + "end": { + "line": 118, + "column": 105 + } + }, + "name": "geo" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 4440, + "end": 4448, + "loc": { + "start": { + "line": 118, + "column": 63 + }, + "end": { + "line": 118, + "column": 71 + } + }, + "name": "GeoStats" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + } + ] + } + }, + { + "type": "Literal", + "start": 4488, + "end": 4509, + "loc": { + "start": { + "line": 118, + "column": 111 + }, + "end": { + "line": 119, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 4515, + "end": 4536, + "loc": { + "start": { + "line": 119, + "column": 26 + }, + "end": { + "line": 120, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 4536, + "end": 4773, + "loc": { + "start": { + "line": 120, + "column": 20 + }, + "end": { + "line": 123, + "column": 26 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 4536, + "end": 4577, + "loc": { + "start": { + "line": 120, + "column": 20 + }, + "end": { + "line": 120, + "column": 61 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 4541, + "end": 4576, + "loc": { + "start": { + "line": 120, + "column": 25 + }, + "end": { + "line": 120, + "column": 60 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4541, + "end": 4550, + "loc": { + "start": { + "line": 120, + "column": 25 + }, + "end": { + "line": 120, + "column": 34 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 4551, + "end": 4576, + "loc": { + "start": { + "line": 120, + "column": 35 + }, + "end": { + "line": 120, + "column": 60 + } + }, + "value": "most most-views content", + "rawValue": null, + "raw": "\"most most-views content\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 4537, + "end": 4540, + "loc": { + "start": { + "line": 120, + "column": 21 + }, + "end": { + "line": 120, + "column": 24 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 4767, + "end": 4773, + "loc": { + "start": { + "line": 123, + "column": 20 + }, + "end": { + "line": 123, + "column": 26 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4769, + "end": 4772, + "loc": { + "start": { + "line": 123, + "column": 22 + }, + "end": { + "line": 123, + "column": 25 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 4577, + "end": 4602, + "loc": { + "start": { + "line": 120, + "column": 61 + }, + "end": { + "line": 121, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 4602, + "end": 4621, + "loc": { + "start": { + "line": 121, + "column": 24 + }, + "end": { + "line": 121, + "column": 43 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 4602, + "end": 4606, + "loc": { + "start": { + "line": 121, + "column": 24 + }, + "end": { + "line": 121, + "column": 28 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 4603, + "end": 4605, + "loc": { + "start": { + "line": 121, + "column": 25 + }, + "end": { + "line": 121, + "column": 27 + } + }, + "name": "h1" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 4616, + "end": 4621, + "loc": { + "start": { + "line": 121, + "column": 38 + }, + "end": { + "line": 121, + "column": 43 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4618, + "end": 4620, + "loc": { + "start": { + "line": 121, + "column": 40 + }, + "end": { + "line": 121, + "column": 42 + } + }, + "name": "h1" + } + }, + "children": [ + { + "type": "Literal", + "start": 4606, + "end": 4616, + "loc": { + "start": { + "line": 121, + "column": 28 + }, + "end": { + "line": 121, + "column": 38 + } + }, + "value": "Most Views", + "rawValue": null, + "raw": "Most Views" + } + ] + }, + { + "type": "Literal", + "start": 4621, + "end": 4646, + "loc": { + "start": { + "line": 121, + "column": 43 + }, + "end": { + "line": 122, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 4646, + "end": 4746, + "loc": { + "start": { + "line": 122, + "column": 24 + }, + "end": { + "line": 122, + "column": 124 + } + }, + "expression": { + "type": "CallExpression", + "start": 4647, + "end": 4745, + "loc": { + "start": { + "line": 122, + "column": 25 + }, + "end": { + "line": 122, + "column": 123 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4647, + "end": 4678, + "loc": { + "start": { + "line": 122, + "column": 25 + }, + "end": { + "line": 122, + "column": 56 + } + }, + "object": { + "type": "MemberExpression", + "start": 4647, + "end": 4674, + "loc": { + "start": { + "line": 122, + "column": 25 + }, + "end": { + "line": 122, + "column": 52 + } + }, + "object": { + "type": "MemberExpression", + "start": 4647, + "end": 4663, + "loc": { + "start": { + "line": 122, + "column": 25 + }, + "end": { + "line": 122, + "column": 41 + } + }, + "object": { + "type": "MemberExpression", + "start": 4647, + "end": 4657, + "loc": { + "start": { + "line": 122, + "column": 25 + }, + "end": { + "line": 122, + "column": 35 + } + }, + "object": { + "type": "ThisExpression", + "start": 4647, + "end": 4651, + "loc": { + "start": { + "line": 122, + "column": 25 + }, + "end": { + "line": 122, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "start": 4652, + "end": 4657, + "loc": { + "start": { + "line": 122, + "column": 30 + }, + "end": { + "line": 122, + "column": 35 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 4658, + "end": 4663, + "loc": { + "start": { + "line": 122, + "column": 36 + }, + "end": { + "line": 122, + "column": 41 + } + }, + "name": "stats" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 4664, + "end": 4674, + "loc": { + "start": { + "line": 122, + "column": 42 + }, + "end": { + "line": 122, + "column": 52 + } + }, + "name": "mostViewed" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 4675, + "end": 4678, + "loc": { + "start": { + "line": 122, + "column": 53 + }, + "end": { + "line": 122, + "column": 56 + } + }, + "name": "map" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 4679, + "end": 4744, + "loc": { + "start": { + "line": 122, + "column": 57 + }, + "end": { + "line": 122, + "column": 122 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 4679, + "end": 4685, + "loc": { + "start": { + "line": 122, + "column": 57 + }, + "end": { + "line": 122, + "column": 63 + } + }, + "name": "upload" + } + ], + "body": { + "type": "JSXElement", + "start": 4689, + "end": 4744, + "loc": { + "start": { + "line": 122, + "column": 67 + }, + "end": { + "line": 122, + "column": 122 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 4689, + "end": 4744, + "loc": { + "start": { + "line": 122, + "column": 67 + }, + "end": { + "line": 122, + "column": 122 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 4702, + "end": 4729, + "loc": { + "start": { + "line": 122, + "column": 80 + }, + "end": { + "line": 122, + "column": 107 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4702, + "end": 4705, + "loc": { + "start": { + "line": 122, + "column": 80 + }, + "end": { + "line": 122, + "column": 83 + } + }, + "name": "key" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 4706, + "end": 4729, + "loc": { + "start": { + "line": 122, + "column": 84 + }, + "end": { + "line": 122, + "column": 107 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 4707, + "end": 4728, + "loc": { + "start": { + "line": 122, + "column": 85 + }, + "end": { + "line": 122, + "column": 106 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 4717, + "end": 4726, + "loc": { + "start": { + "line": 122, + "column": 95 + }, + "end": { + "line": 122, + "column": 104 + } + }, + "object": { + "type": "Identifier", + "start": 4717, + "end": 4723, + "loc": { + "start": { + "line": 122, + "column": 95 + }, + "end": { + "line": 122, + "column": 101 + } + }, + "name": "upload" + }, + "property": { + "type": "Identifier", + "start": 4724, + "end": 4726, + "loc": { + "start": { + "line": 122, + "column": 102 + }, + "end": { + "line": 122, + "column": 104 + } + }, + "name": "id" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 4708, + "end": 4715, + "loc": { + "start": { + "line": 122, + "column": 86 + }, + "end": { + "line": 122, + "column": 93 + } + }, + "value": { + "raw": "upload-", + "cooked": "upload-" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 4727, + "end": 4727, + "loc": { + "start": { + "line": 122, + "column": 105 + }, + "end": { + "line": 122, + "column": 105 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + }, + { + "type": "JSXSpreadAttribute", + "start": 4730, + "end": 4741, + "loc": { + "start": { + "line": 122, + "column": 108 + }, + "end": { + "line": 122, + "column": 119 + } + }, + "argument": { + "type": "Identifier", + "start": 4734, + "end": 4740, + "loc": { + "start": { + "line": 122, + "column": 112 + }, + "end": { + "line": 122, + "column": 118 + } + }, + "name": "upload" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 4690, + "end": 4701, + "loc": { + "start": { + "line": 122, + "column": 68 + }, + "end": { + "line": 122, + "column": 79 + } + }, + "name": "UploadStats" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + } + ] + } + }, + { + "type": "Literal", + "start": 4746, + "end": 4767, + "loc": { + "start": { + "line": 122, + "column": 124 + }, + "end": { + "line": 123, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 4773, + "end": 4790, + "loc": { + "start": { + "line": 123, + "column": 26 + }, + "end": { + "line": 124, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 4796, + "end": 4809, + "loc": { + "start": { + "line": 124, + "column": 22 + }, + "end": { + "line": 125, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 1946, + "end": 1994, + "loc": { + "start": { + "line": 70, + "column": 4 + }, + "end": { + "line": 73, + "column": 7 + } + }, + "range": [ + 1946, + 1994 + ] + } + ] + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Stats\n * '/profile/:id/stats'\n * React Route - Documentation: https://github.com/reactjs/react-router/tree/master/docs\n ", + "start": 1565, + "end": 1694, + "loc": { + "start": { + "line": 55, + "column": 0 + }, + "end": { + "line": 59, + "column": 3 + } + }, + "range": [ + 1565, + 1694 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * connect\n * Connects React component to a Redux store\n * Documentation: https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options\n ", + "start": 4836, + "end": 5041, + "loc": { + "start": { + "line": 131, + "column": 0 + }, + "end": { + "line": 135, + "column": 3 + } + }, + "range": [ + 4836, + 5041 + ] + } + ] + }, + { + "type": "ExportDefaultDeclaration", + "start": 5042, + "end": 5139, + "loc": { + "start": { + "line": 136, + "column": 0 + }, + "end": { + "line": 139, + "column": 10 + } + }, + "declaration": { + "type": "CallExpression", + "start": 5057, + "end": 5139, + "loc": { + "start": { + "line": 136, + "column": 15 + }, + "end": { + "line": 139, + "column": 10 + } + }, + "callee": { + "type": "CallExpression", + "start": 5057, + "end": 5132, + "loc": { + "start": { + "line": 136, + "column": 15 + }, + "end": { + "line": 139, + "column": 3 + } + }, + "callee": { + "type": "Identifier", + "start": 5057, + "end": 5064, + "loc": { + "start": { + "line": 136, + "column": 15 + }, + "end": { + "line": 136, + "column": 22 + } + }, + "name": "connect", + "leadingComments": null + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 5065, + "end": 5131, + "loc": { + "start": { + "line": 136, + "column": 23 + }, + "end": { + "line": 139, + "column": 2 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 5065, + "end": 5070, + "loc": { + "start": { + "line": 136, + "column": 23 + }, + "end": { + "line": 136, + "column": 28 + } + }, + "name": "state" + } + ], + "body": { + "type": "ObjectExpression", + "start": 5075, + "end": 5130, + "loc": { + "start": { + "line": 136, + "column": 33 + }, + "end": { + "line": 139, + "column": 1 + } + }, + "properties": [ + { + "type": "Property", + "start": 5081, + "end": 5099, + "loc": { + "start": { + "line": 137, + "column": 4 + }, + "end": { + "line": 137, + "column": 22 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 5081, + "end": 5086, + "loc": { + "start": { + "line": 137, + "column": 4 + }, + "end": { + "line": 137, + "column": 9 + } + }, + "name": "stats" + }, + "value": { + "type": "MemberExpression", + "start": 5088, + "end": 5099, + "loc": { + "start": { + "line": 137, + "column": 11 + }, + "end": { + "line": 137, + "column": 22 + } + }, + "object": { + "type": "Identifier", + "start": 5088, + "end": 5093, + "loc": { + "start": { + "line": 137, + "column": 11 + }, + "end": { + "line": 137, + "column": 16 + } + }, + "name": "state" + }, + "property": { + "type": "Identifier", + "start": 5094, + "end": 5099, + "loc": { + "start": { + "line": 137, + "column": 17 + }, + "end": { + "line": 137, + "column": 22 + } + }, + "name": "Stats" + }, + "computed": false + }, + "kind": "init" + }, + { + "type": "Property", + "start": 5105, + "end": 5127, + "loc": { + "start": { + "line": 138, + "column": 4 + }, + "end": { + "line": 138, + "column": 26 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 5105, + "end": 5112, + "loc": { + "start": { + "line": 138, + "column": 4 + }, + "end": { + "line": 138, + "column": 11 + } + }, + "name": "profile" + }, + "value": { + "type": "MemberExpression", + "start": 5114, + "end": 5127, + "loc": { + "start": { + "line": 138, + "column": 13 + }, + "end": { + "line": 138, + "column": 26 + } + }, + "object": { + "type": "Identifier", + "start": 5114, + "end": 5119, + "loc": { + "start": { + "line": 138, + "column": 13 + }, + "end": { + "line": 138, + "column": 18 + } + }, + "name": "state" + }, + "property": { + "type": "Identifier", + "start": 5120, + "end": 5127, + "loc": { + "start": { + "line": 138, + "column": 19 + }, + "end": { + "line": 138, + "column": 26 + } + }, + "name": "Profile" + }, + "computed": false + }, + "kind": "init" + } + ], + "parenthesizedExpression": true + } + } + ], + "leadingComments": null + }, + "arguments": [ + { + "type": "Identifier", + "start": 5133, + "end": 5138, + "loc": { + "start": { + "line": 139, + "column": 4 + }, + "end": { + "line": 139, + "column": 9 + } + }, + "name": "Stats" + } + ], + "leadingComments": [ + { + "type": "Block", + "value": "*\n * connect\n * Connects React component to a Redux store\n * Documentation: https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options\n ", + "start": 4836, + "end": 5041, + "loc": { + "start": { + "line": 131, + "column": 0 + }, + "end": { + "line": 135, + "column": 3 + } + }, + "range": [ + 4836, + 5041 + ] + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * connect\n * Connects React component to a Redux store\n * Documentation: https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options\n ", + "start": 4836, + "end": 5041, + "loc": { + "start": { + "line": 131, + "column": 0 + }, + "end": { + "line": 135, + "column": 3 + } + }, + "range": [ + 4836, + 5041 + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/routes/Stats/index.js.json b/app/docs/ast/source/routes/Stats/index.js.json new file mode 100644 index 0000000..c2c8676 --- /dev/null +++ b/app/docs/ast/source/routes/Stats/index.js.json @@ -0,0 +1,1589 @@ +{ + "type": "Program", + "start": 0, + "end": 923, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 44, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 18, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 18 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ImportDeclaration", + "start": 26, + "end": 71, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 45 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 35, + "end": 49, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 23 + } + }, + "imported": { + "type": "Identifier", + "start": 35, + "end": 49, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 23 + } + }, + "name": "browserHistory" + }, + "local": { + "type": "Identifier", + "start": 35, + "end": 49, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 23 + } + }, + "name": "browserHistory" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 57, + "end": 71, + "loc": { + "start": { + "line": 2, + "column": 31 + }, + "end": { + "line": 2, + "column": 45 + } + }, + "value": "react-router", + "rawValue": "react-router", + "raw": "'react-router'" + } + }, + { + "type": "ImportDeclaration", + "start": 72, + "end": 111, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 39 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 81, + "end": 91, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 19 + } + }, + "imported": { + "type": "Identifier", + "start": 81, + "end": 91, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 19 + } + }, + "name": "BackButton" + }, + "local": { + "type": "Identifier", + "start": 81, + "end": 91, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 19 + } + }, + "name": "BackButton" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 99, + "end": 111, + "loc": { + "start": { + "line": 3, + "column": 27 + }, + "end": { + "line": 3, + "column": 39 + } + }, + "value": "components", + "rawValue": "components", + "raw": "'components'" + } + }, + { + "type": "ExpressionStatement", + "start": 113, + "end": 922, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 43, + "column": 1 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 113, + "end": 922, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 43, + "column": 1 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 113, + "end": 127, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 14 + } + }, + "object": { + "type": "Identifier", + "start": 113, + "end": 119, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 6 + } + }, + "name": "module" + }, + "property": { + "type": "Identifier", + "start": 120, + "end": 127, + "loc": { + "start": { + "line": 5, + "column": 7 + }, + "end": { + "line": 5, + "column": 14 + } + }, + "name": "exports" + }, + "computed": false + }, + "right": { + "type": "ObjectExpression", + "start": 130, + "end": 922, + "loc": { + "start": { + "line": 5, + "column": 17 + }, + "end": { + "line": 43, + "column": 1 + } + }, + "properties": [ + { + "type": "Property", + "start": 136, + "end": 162, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 6, + "column": 30 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 136, + "end": 140, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 6, + "column": 8 + } + }, + "name": "path" + }, + "value": { + "type": "Literal", + "start": 142, + "end": 162, + "loc": { + "start": { + "line": 6, + "column": 10 + }, + "end": { + "line": 6, + "column": 30 + } + }, + "value": "/profile/:id/stats", + "rawValue": "/profile/:id/stats", + "raw": "'/profile/:id/stats'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 265, + "end": 344, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 15, + "column": 5 + } + }, + "method": true, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 265, + "end": 277, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 16 + } + }, + "name": "getComponent", + "leadingComments": null + }, + "kind": "init", + "value": { + "type": "FunctionExpression", + "start": 277, + "end": 344, + "loc": { + "start": { + "line": 13, + "column": 16 + }, + "end": { + "line": 15, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 278, + "end": 286, + "loc": { + "start": { + "line": 13, + "column": 17 + }, + "end": { + "line": 13, + "column": 25 + } + }, + "name": "location" + }, + { + "type": "Identifier", + "start": 288, + "end": 290, + "loc": { + "start": { + "line": 13, + "column": 27 + }, + "end": { + "line": 13, + "column": 29 + } + }, + "name": "cb" + } + ], + "body": { + "type": "BlockStatement", + "start": 292, + "end": 344, + "loc": { + "start": { + "line": 13, + "column": 31 + }, + "end": { + "line": 15, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 302, + "end": 338, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 44 + } + }, + "expression": { + "type": "CallExpression", + "start": 302, + "end": 338, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 44 + } + }, + "callee": { + "type": "Identifier", + "start": 302, + "end": 304, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 10 + } + }, + "name": "cb" + }, + "arguments": [ + { + "type": "Literal", + "start": 305, + "end": 309, + "loc": { + "start": { + "line": 14, + "column": 11 + }, + "end": { + "line": 14, + "column": 15 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + { + "type": "MemberExpression", + "start": 311, + "end": 337, + "loc": { + "start": { + "line": 14, + "column": 17 + }, + "end": { + "line": 14, + "column": 43 + } + }, + "object": { + "type": "CallExpression", + "start": 311, + "end": 329, + "loc": { + "start": { + "line": 14, + "column": 17 + }, + "end": { + "line": 14, + "column": 35 + } + }, + "callee": { + "type": "Identifier", + "start": 311, + "end": 318, + "loc": { + "start": { + "line": 14, + "column": 17 + }, + "end": { + "line": 14, + "column": 24 + } + }, + "name": "require" + }, + "arguments": [ + { + "type": "Literal", + "start": 319, + "end": 328, + "loc": { + "start": { + "line": 14, + "column": 25 + }, + "end": { + "line": 14, + "column": 34 + } + }, + "value": "./Stats", + "rawValue": "./Stats", + "raw": "'./Stats'" + } + ] + }, + "property": { + "type": "Identifier", + "start": 330, + "end": 337, + "loc": { + "start": { + "line": 14, + "column": 36 + }, + "end": { + "line": 14, + "column": 43 + } + }, + "name": "default" + }, + "computed": false + } + ] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * getComponent\n * @param location\n * @param cb {Function} callback\n ", + "start": 169, + "end": 260, + "loc": { + "start": { + "line": 8, + "column": 4 + }, + "end": { + "line": 12, + "column": 7 + } + }, + "range": [ + 169, + 260 + ] + } + ] + }, + { + "type": "Property", + "start": 448, + "end": 581, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 24, + "column": 5 + } + }, + "method": true, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 448, + "end": 461, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 17 + } + }, + "name": "getHeaderLeft", + "leadingComments": null + }, + "kind": "init", + "value": { + "type": "FunctionExpression", + "start": 461, + "end": 581, + "loc": { + "start": { + "line": 22, + "column": 17 + }, + "end": { + "line": 24, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 462, + "end": 470, + "loc": { + "start": { + "line": 22, + "column": 18 + }, + "end": { + "line": 22, + "column": 26 + } + }, + "name": "location" + }, + { + "type": "Identifier", + "start": 472, + "end": 474, + "loc": { + "start": { + "line": 22, + "column": 28 + }, + "end": { + "line": 22, + "column": 30 + } + }, + "name": "cb" + } + ], + "body": { + "type": "BlockStatement", + "start": 476, + "end": 581, + "loc": { + "start": { + "line": 22, + "column": 32 + }, + "end": { + "line": 24, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 486, + "end": 575, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 97 + } + }, + "expression": { + "type": "CallExpression", + "start": 486, + "end": 575, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 97 + } + }, + "callee": { + "type": "Identifier", + "start": 486, + "end": 488, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 10 + } + }, + "name": "cb" + }, + "arguments": [ + { + "type": "Literal", + "start": 489, + "end": 493, + "loc": { + "start": { + "line": 23, + "column": 11 + }, + "end": { + "line": 23, + "column": 15 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + { + "type": "JSXElement", + "start": 495, + "end": 574, + "loc": { + "start": { + "line": 23, + "column": 17 + }, + "end": { + "line": 23, + "column": 96 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 495, + "end": 574, + "loc": { + "start": { + "line": 23, + "column": 17 + }, + "end": { + "line": 23, + "column": 96 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 507, + "end": 536, + "loc": { + "start": { + "line": 23, + "column": 29 + }, + "end": { + "line": 23, + "column": 58 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 507, + "end": 512, + "loc": { + "start": { + "line": 23, + "column": 29 + }, + "end": { + "line": 23, + "column": 34 + } + }, + "name": "label" + }, + "value": { + "type": "Literal", + "start": 513, + "end": 536, + "loc": { + "start": { + "line": 23, + "column": 35 + }, + "end": { + "line": 23, + "column": 58 + } + }, + "value": "Stats (30 day period)", + "rawValue": null, + "raw": "\"Stats (30 day period)\"" + } + }, + { + "type": "JSXAttribute", + "start": 537, + "end": 571, + "loc": { + "start": { + "line": 23, + "column": 59 + }, + "end": { + "line": 23, + "column": 93 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 537, + "end": 539, + "loc": { + "start": { + "line": 23, + "column": 59 + }, + "end": { + "line": 23, + "column": 61 + } + }, + "name": "to" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 540, + "end": 571, + "loc": { + "start": { + "line": 23, + "column": 62 + }, + "end": { + "line": 23, + "column": 93 + } + }, + "expression": { + "type": "ArrowFunctionExpression", + "start": 541, + "end": 570, + "loc": { + "start": { + "line": 23, + "column": 63 + }, + "end": { + "line": 23, + "column": 92 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [], + "body": { + "type": "CallExpression", + "start": 547, + "end": 570, + "loc": { + "start": { + "line": 23, + "column": 69 + }, + "end": { + "line": 23, + "column": 92 + } + }, + "callee": { + "type": "MemberExpression", + "start": 547, + "end": 568, + "loc": { + "start": { + "line": 23, + "column": 69 + }, + "end": { + "line": 23, + "column": 90 + } + }, + "object": { + "type": "Identifier", + "start": 547, + "end": 561, + "loc": { + "start": { + "line": 23, + "column": 69 + }, + "end": { + "line": 23, + "column": 83 + } + }, + "name": "browserHistory" + }, + "property": { + "type": "Identifier", + "start": 562, + "end": 568, + "loc": { + "start": { + "line": 23, + "column": 84 + }, + "end": { + "line": 23, + "column": 90 + } + }, + "name": "goBack" + }, + "computed": false + }, + "arguments": [] + } + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 496, + "end": 506, + "loc": { + "start": { + "line": 23, + "column": 18 + }, + "end": { + "line": 23, + "column": 28 + } + }, + "name": "BackButton" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + ] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * getHeaderLeft\n * @param location\n * @param cb {Function} callback\n ", + "start": 351, + "end": 443, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 21, + "column": 7 + } + }, + "range": [ + 351, + 443 + ] + } + ] + }, + { + "type": "Property", + "start": 687, + "end": 751, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "method": true, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 687, + "end": 702, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 19 + } + }, + "name": "getHeaderMiddle", + "leadingComments": null + }, + "kind": "init", + "value": { + "type": "FunctionExpression", + "start": 702, + "end": 751, + "loc": { + "start": { + "line": 31, + "column": 19 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 703, + "end": 711, + "loc": { + "start": { + "line": 31, + "column": 20 + }, + "end": { + "line": 31, + "column": 28 + } + }, + "name": "location" + }, + { + "type": "Identifier", + "start": 713, + "end": 715, + "loc": { + "start": { + "line": 31, + "column": 30 + }, + "end": { + "line": 31, + "column": 32 + } + }, + "name": "cb" + } + ], + "body": { + "type": "BlockStatement", + "start": 717, + "end": 751, + "loc": { + "start": { + "line": 31, + "column": 34 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 727, + "end": 745, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 26 + } + }, + "expression": { + "type": "CallExpression", + "start": 727, + "end": 745, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 26 + } + }, + "callee": { + "type": "Identifier", + "start": 727, + "end": 729, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 10 + } + }, + "name": "cb" + }, + "arguments": [ + { + "type": "Literal", + "start": 730, + "end": 734, + "loc": { + "start": { + "line": 32, + "column": 11 + }, + "end": { + "line": 32, + "column": 15 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + { + "type": "JSXElement", + "start": 736, + "end": 744, + "loc": { + "start": { + "line": 32, + "column": 17 + }, + "end": { + "line": 32, + "column": 25 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 736, + "end": 744, + "loc": { + "start": { + "line": 32, + "column": 17 + }, + "end": { + "line": 32, + "column": 25 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 737, + "end": 741, + "loc": { + "start": { + "line": 32, + "column": 18 + }, + "end": { + "line": 32, + "column": 22 + } + }, + "name": "span" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + ] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * getHeaderMiddle\n * @param location\n * @param cb {Function} callback\n ", + "start": 588, + "end": 682, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 30, + "column": 7 + } + }, + "range": [ + 588, + 682 + ] + } + ] + }, + { + "type": "Property", + "start": 856, + "end": 919, + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 42, + "column": 5 + } + }, + "method": true, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 856, + "end": 870, + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 40, + "column": 18 + } + }, + "name": "getHeaderRight", + "leadingComments": null + }, + "kind": "init", + "value": { + "type": "FunctionExpression", + "start": 870, + "end": 919, + "loc": { + "start": { + "line": 40, + "column": 18 + }, + "end": { + "line": 42, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 871, + "end": 879, + "loc": { + "start": { + "line": 40, + "column": 19 + }, + "end": { + "line": 40, + "column": 27 + } + }, + "name": "location" + }, + { + "type": "Identifier", + "start": 881, + "end": 883, + "loc": { + "start": { + "line": 40, + "column": 29 + }, + "end": { + "line": 40, + "column": 31 + } + }, + "name": "cb" + } + ], + "body": { + "type": "BlockStatement", + "start": 885, + "end": 919, + "loc": { + "start": { + "line": 40, + "column": 33 + }, + "end": { + "line": 42, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 895, + "end": 913, + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 41, + "column": 26 + } + }, + "expression": { + "type": "CallExpression", + "start": 895, + "end": 913, + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 41, + "column": 26 + } + }, + "callee": { + "type": "Identifier", + "start": 895, + "end": 897, + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 41, + "column": 10 + } + }, + "name": "cb" + }, + "arguments": [ + { + "type": "Literal", + "start": 898, + "end": 902, + "loc": { + "start": { + "line": 41, + "column": 11 + }, + "end": { + "line": 41, + "column": 15 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + { + "type": "JSXElement", + "start": 904, + "end": 912, + "loc": { + "start": { + "line": 41, + "column": 17 + }, + "end": { + "line": 41, + "column": 25 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 904, + "end": 912, + "loc": { + "start": { + "line": 41, + "column": 17 + }, + "end": { + "line": 41, + "column": 25 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 905, + "end": 909, + "loc": { + "start": { + "line": 41, + "column": 18 + }, + "end": { + "line": 41, + "column": 22 + } + }, + "name": "span" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + ] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * getHeaderRight\n * @param location\n * @param cb {Function} callback\n ", + "start": 758, + "end": 851, + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 39, + "column": 7 + } + }, + "range": [ + 758, + 851 + ] + } + ] + } + ] + } + } + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/routes/Trending/Trending.js.json b/app/docs/ast/source/routes/Trending/Trending.js.json new file mode 100644 index 0000000..a0c7260 --- /dev/null +++ b/app/docs/ast/source/routes/Trending/Trending.js.json @@ -0,0 +1,2827 @@ +{ + "type": "Program", + "start": 0, + "end": 1515, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 55, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + }, + { + "type": "ImportSpecifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "imported": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + }, + "local": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 33, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 33 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ImportDeclaration", + "start": 41, + "end": 78, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 37 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 50, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "imported": { + "type": "Identifier", + "start": 50, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "name": "connect" + }, + "local": { + "type": "Identifier", + "start": 50, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "name": "connect" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 65, + "end": 78, + "loc": { + "start": { + "line": 2, + "column": 24 + }, + "end": { + "line": 2, + "column": 37 + } + }, + "value": "react-redux", + "rawValue": "react-redux", + "raw": "'react-redux'" + } + }, + { + "type": "ImportDeclaration", + "start": 79, + "end": 114, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 35 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 88, + "end": 92, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 13 + } + }, + "imported": { + "type": "Identifier", + "start": 88, + "end": 92, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 13 + } + }, + "name": "Link" + }, + "local": { + "type": "Identifier", + "start": 88, + "end": 92, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 13 + } + }, + "name": "Link" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 100, + "end": 114, + "loc": { + "start": { + "line": 3, + "column": 21 + }, + "end": { + "line": 3, + "column": 35 + } + }, + "value": "react-router", + "rawValue": "react-router", + "raw": "'react-router'" + } + }, + { + "type": "ImportDeclaration", + "start": 115, + "end": 142, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 27 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 122, + "end": 128, + "loc": { + "start": { + "line": 4, + "column": 7 + }, + "end": { + "line": 4, + "column": 13 + } + }, + "local": { + "type": "Identifier", + "start": 122, + "end": 128, + "loc": { + "start": { + "line": 4, + "column": 7 + }, + "end": { + "line": 4, + "column": 13 + } + }, + "name": "config" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 134, + "end": 142, + "loc": { + "start": { + "line": 4, + "column": 19 + }, + "end": { + "line": 4, + "column": 27 + } + }, + "value": "config", + "rawValue": "config", + "raw": "'config'" + } + }, + { + "type": "ImportDeclaration", + "start": 144, + "end": 202, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 8, + "column": 16 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 157, + "end": 184, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 7, + "column": 31 + } + }, + "imported": { + "type": "Identifier", + "start": 157, + "end": 165, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 7, + "column": 12 + } + }, + "name": "Trending" + }, + "local": { + "type": "Identifier", + "start": 169, + "end": 184, + "loc": { + "start": { + "line": 7, + "column": 16 + }, + "end": { + "line": 7, + "column": 31 + } + }, + "name": "TrendingActions" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 193, + "end": 202, + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 16 + } + }, + "value": "actions", + "rawValue": "actions", + "raw": "'actions'", + "leadingComments": null, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Trending\n * '/trending'\n * React Route - Documentation: https://github.com/reactjs/react-router/tree/master/docs\n ", + "start": 204, + "end": 327, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + }, + "range": [ + 204, + 327 + ] + } + ] + }, + { + "type": "ClassDeclaration", + "start": 328, + "end": 1232, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 47, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 334, + "end": 342, + "loc": { + "start": { + "line": 15, + "column": 6 + }, + "end": { + "line": 15, + "column": 14 + } + }, + "name": "Trending", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 351, + "end": 360, + "loc": { + "start": { + "line": 15, + "column": 23 + }, + "end": { + "line": 15, + "column": 32 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 361, + "end": 1232, + "loc": { + "start": { + "line": 15, + "column": 33 + }, + "end": { + "line": 47, + "column": 1 + } + }, + "body": [ + { + "type": "MethodDefinition", + "start": 409, + "end": 488, + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 22, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 409, + "end": 426, + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 21 + } + }, + "name": "componentDidMount", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 426, + "end": 488, + "loc": { + "start": { + "line": 20, + "column": 21 + }, + "end": { + "line": 22, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 429, + "end": 488, + "loc": { + "start": { + "line": 20, + "column": 24 + }, + "end": { + "line": 22, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 439, + "end": 482, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 51 + } + }, + "expression": { + "type": "CallExpression", + "start": 439, + "end": 482, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 51 + } + }, + "callee": { + "type": "MemberExpression", + "start": 439, + "end": 458, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 27 + } + }, + "object": { + "type": "MemberExpression", + "start": 439, + "end": 449, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 18 + } + }, + "object": { + "type": "ThisExpression", + "start": 439, + "end": 443, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 444, + "end": 449, + "loc": { + "start": { + "line": 21, + "column": 13 + }, + "end": { + "line": 21, + "column": 18 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 450, + "end": 458, + "loc": { + "start": { + "line": 21, + "column": 19 + }, + "end": { + "line": 21, + "column": 27 + } + }, + "name": "dispatch" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 459, + "end": 481, + "loc": { + "start": { + "line": 21, + "column": 28 + }, + "end": { + "line": 21, + "column": 50 + } + }, + "callee": { + "type": "MemberExpression", + "start": 459, + "end": 479, + "loc": { + "start": { + "line": 21, + "column": 28 + }, + "end": { + "line": 21, + "column": 48 + } + }, + "object": { + "type": "Identifier", + "start": 459, + "end": 474, + "loc": { + "start": { + "line": 21, + "column": 28 + }, + "end": { + "line": 21, + "column": 43 + } + }, + "name": "TrendingActions" + }, + "property": { + "type": "Identifier", + "start": 475, + "end": 479, + "loc": { + "start": { + "line": 21, + "column": 44 + }, + "end": { + "line": 21, + "column": 48 + } + }, + "name": "load" + }, + "computed": false + }, + "arguments": [] + } + ] + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * componentDidMount\n ", + "start": 368, + "end": 404, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 19, + "column": 7 + } + }, + "range": [ + 368, + 404 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 494, + "end": 542, + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 27, + "column": 7 + } + }, + "range": [ + 494, + 542 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 547, + "end": 1229, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 45, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 547, + "end": 553, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 553, + "end": 1229, + "loc": { + "start": { + "line": 28, + "column": 10 + }, + "end": { + "line": 45, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 556, + "end": 1229, + "loc": { + "start": { + "line": 28, + "column": 13 + }, + "end": { + "line": 45, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 566, + "end": 1223, + "loc": { + "start": { + "line": 29, + "column": 8 + }, + "end": { + "line": 44, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 587, + "end": 1213, + "loc": { + "start": { + "line": 30, + "column": 12 + }, + "end": { + "line": 43, + "column": 18 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 587, + "end": 609, + "loc": { + "start": { + "line": 30, + "column": 12 + }, + "end": { + "line": 30, + "column": 34 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 592, + "end": 608, + "loc": { + "start": { + "line": 30, + "column": 17 + }, + "end": { + "line": 30, + "column": 33 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 592, + "end": 601, + "loc": { + "start": { + "line": 30, + "column": 17 + }, + "end": { + "line": 30, + "column": 26 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 602, + "end": 608, + "loc": { + "start": { + "line": 30, + "column": 27 + }, + "end": { + "line": 30, + "column": 33 + } + }, + "value": "page", + "rawValue": null, + "raw": "\"page\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 588, + "end": 591, + "loc": { + "start": { + "line": 30, + "column": 13 + }, + "end": { + "line": 30, + "column": 16 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1207, + "end": 1213, + "loc": { + "start": { + "line": 43, + "column": 12 + }, + "end": { + "line": 43, + "column": 18 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1209, + "end": 1212, + "loc": { + "start": { + "line": 43, + "column": 14 + }, + "end": { + "line": 43, + "column": 17 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 609, + "end": 626, + "loc": { + "start": { + "line": 30, + "column": 34 + }, + "end": { + "line": 31, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 626, + "end": 1194, + "loc": { + "start": { + "line": 31, + "column": 16 + }, + "end": { + "line": 42, + "column": 22 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 626, + "end": 652, + "loc": { + "start": { + "line": 31, + "column": 16 + }, + "end": { + "line": 31, + "column": 42 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 631, + "end": 651, + "loc": { + "start": { + "line": 31, + "column": 21 + }, + "end": { + "line": 31, + "column": 41 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 631, + "end": 640, + "loc": { + "start": { + "line": 31, + "column": 21 + }, + "end": { + "line": 31, + "column": 30 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 641, + "end": 651, + "loc": { + "start": { + "line": 31, + "column": 31 + }, + "end": { + "line": 31, + "column": 41 + } + }, + "value": "trending", + "rawValue": null, + "raw": "\"trending\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 627, + "end": 630, + "loc": { + "start": { + "line": 31, + "column": 17 + }, + "end": { + "line": 31, + "column": 20 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1188, + "end": 1194, + "loc": { + "start": { + "line": 42, + "column": 16 + }, + "end": { + "line": 42, + "column": 22 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1190, + "end": 1193, + "loc": { + "start": { + "line": 42, + "column": 18 + }, + "end": { + "line": 42, + "column": 21 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 652, + "end": 673, + "loc": { + "start": { + "line": 31, + "column": 42 + }, + "end": { + "line": 32, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 673, + "end": 1170, + "loc": { + "start": { + "line": 32, + "column": 20 + }, + "end": { + "line": 40, + "column": 26 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 673, + "end": 695, + "loc": { + "start": { + "line": 32, + "column": 20 + }, + "end": { + "line": 32, + "column": 42 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 678, + "end": 694, + "loc": { + "start": { + "line": 32, + "column": 25 + }, + "end": { + "line": 32, + "column": 41 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 678, + "end": 687, + "loc": { + "start": { + "line": 32, + "column": 25 + }, + "end": { + "line": 32, + "column": 34 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 688, + "end": 694, + "loc": { + "start": { + "line": 32, + "column": 35 + }, + "end": { + "line": 32, + "column": 41 + } + }, + "value": "grid", + "rawValue": null, + "raw": "\"grid\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 674, + "end": 677, + "loc": { + "start": { + "line": 32, + "column": 21 + }, + "end": { + "line": 32, + "column": 24 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1164, + "end": 1170, + "loc": { + "start": { + "line": 40, + "column": 20 + }, + "end": { + "line": 40, + "column": 26 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1166, + "end": 1169, + "loc": { + "start": { + "line": 40, + "column": 22 + }, + "end": { + "line": 40, + "column": 25 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 695, + "end": 720, + "loc": { + "start": { + "line": 32, + "column": 42 + }, + "end": { + "line": 33, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 720, + "end": 1143, + "loc": { + "start": { + "line": 33, + "column": 24 + }, + "end": { + "line": 39, + "column": 26 + } + }, + "expression": { + "type": "CallExpression", + "start": 721, + "end": 1142, + "loc": { + "start": { + "line": 33, + "column": 25 + }, + "end": { + "line": 39, + "column": 25 + } + }, + "callee": { + "type": "MemberExpression", + "start": 721, + "end": 744, + "loc": { + "start": { + "line": 33, + "column": 25 + }, + "end": { + "line": 33, + "column": 48 + } + }, + "object": { + "type": "MemberExpression", + "start": 721, + "end": 740, + "loc": { + "start": { + "line": 33, + "column": 25 + }, + "end": { + "line": 33, + "column": 44 + } + }, + "object": { + "type": "MemberExpression", + "start": 721, + "end": 731, + "loc": { + "start": { + "line": 33, + "column": 25 + }, + "end": { + "line": 33, + "column": 35 + } + }, + "object": { + "type": "ThisExpression", + "start": 721, + "end": 725, + "loc": { + "start": { + "line": 33, + "column": 25 + }, + "end": { + "line": 33, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "start": 726, + "end": 731, + "loc": { + "start": { + "line": 33, + "column": 30 + }, + "end": { + "line": 33, + "column": 35 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 732, + "end": 740, + "loc": { + "start": { + "line": 33, + "column": 36 + }, + "end": { + "line": 33, + "column": 44 + } + }, + "name": "trending" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 741, + "end": 744, + "loc": { + "start": { + "line": 33, + "column": 45 + }, + "end": { + "line": 33, + "column": 48 + } + }, + "name": "map" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 745, + "end": 1116, + "loc": { + "start": { + "line": 33, + "column": 49 + }, + "end": { + "line": 38, + "column": 34 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 745, + "end": 749, + "loc": { + "start": { + "line": 33, + "column": 49 + }, + "end": { + "line": 33, + "column": 53 + } + }, + "name": "item" + } + ], + "body": { + "type": "JSXElement", + "start": 781, + "end": 1116, + "loc": { + "start": { + "line": 34, + "column": 28 + }, + "end": { + "line": 38, + "column": 34 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 781, + "end": 836, + "loc": { + "start": { + "line": 34, + "column": 28 + }, + "end": { + "line": 34, + "column": 83 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 786, + "end": 807, + "loc": { + "start": { + "line": 34, + "column": 33 + }, + "end": { + "line": 34, + "column": 54 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 786, + "end": 795, + "loc": { + "start": { + "line": 34, + "column": 33 + }, + "end": { + "line": 34, + "column": 42 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 796, + "end": 807, + "loc": { + "start": { + "line": 34, + "column": 43 + }, + "end": { + "line": 34, + "column": 54 + } + }, + "value": "grid-cell", + "rawValue": null, + "raw": "\"grid-cell\"" + } + }, + { + "type": "JSXAttribute", + "start": 808, + "end": 835, + "loc": { + "start": { + "line": 34, + "column": 55 + }, + "end": { + "line": 34, + "column": 82 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 808, + "end": 811, + "loc": { + "start": { + "line": 34, + "column": 55 + }, + "end": { + "line": 34, + "column": 58 + } + }, + "name": "key" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 812, + "end": 835, + "loc": { + "start": { + "line": 34, + "column": 59 + }, + "end": { + "line": 34, + "column": 82 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 813, + "end": 834, + "loc": { + "start": { + "line": 34, + "column": 60 + }, + "end": { + "line": 34, + "column": 81 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 825, + "end": 832, + "loc": { + "start": { + "line": 34, + "column": 72 + }, + "end": { + "line": 34, + "column": 79 + } + }, + "object": { + "type": "Identifier", + "start": 825, + "end": 829, + "loc": { + "start": { + "line": 34, + "column": 72 + }, + "end": { + "line": 34, + "column": 76 + } + }, + "name": "item" + }, + "property": { + "type": "Identifier", + "start": 830, + "end": 832, + "loc": { + "start": { + "line": 34, + "column": 77 + }, + "end": { + "line": 34, + "column": 79 + } + }, + "name": "id" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 814, + "end": 823, + "loc": { + "start": { + "line": 34, + "column": 61 + }, + "end": { + "line": 34, + "column": 70 + } + }, + "value": { + "raw": "trending-", + "cooked": "trending-" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 833, + "end": 833, + "loc": { + "start": { + "line": 34, + "column": 80 + }, + "end": { + "line": 34, + "column": 80 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 782, + "end": 785, + "loc": { + "start": { + "line": 34, + "column": 29 + }, + "end": { + "line": 34, + "column": 32 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1110, + "end": 1116, + "loc": { + "start": { + "line": 38, + "column": 28 + }, + "end": { + "line": 38, + "column": 34 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1112, + "end": 1115, + "loc": { + "start": { + "line": 38, + "column": 30 + }, + "end": { + "line": 38, + "column": 33 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 836, + "end": 869, + "loc": { + "start": { + "line": 34, + "column": 83 + }, + "end": { + "line": 35, + "column": 32 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 869, + "end": 1081, + "loc": { + "start": { + "line": 35, + "column": 32 + }, + "end": { + "line": 37, + "column": 39 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 869, + "end": 901, + "loc": { + "start": { + "line": 35, + "column": 32 + }, + "end": { + "line": 35, + "column": 64 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 875, + "end": 900, + "loc": { + "start": { + "line": 35, + "column": 38 + }, + "end": { + "line": 35, + "column": 63 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 875, + "end": 877, + "loc": { + "start": { + "line": 35, + "column": 38 + }, + "end": { + "line": 35, + "column": 40 + } + }, + "name": "to" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 878, + "end": 900, + "loc": { + "start": { + "line": 35, + "column": 41 + }, + "end": { + "line": 35, + "column": 63 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 879, + "end": 899, + "loc": { + "start": { + "line": 35, + "column": 42 + }, + "end": { + "line": 35, + "column": 62 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 890, + "end": 897, + "loc": { + "start": { + "line": 35, + "column": 53 + }, + "end": { + "line": 35, + "column": 60 + } + }, + "object": { + "type": "Identifier", + "start": 890, + "end": 894, + "loc": { + "start": { + "line": 35, + "column": 53 + }, + "end": { + "line": 35, + "column": 57 + } + }, + "name": "item" + }, + "property": { + "type": "Identifier", + "start": 895, + "end": 897, + "loc": { + "start": { + "line": 35, + "column": 58 + }, + "end": { + "line": 35, + "column": 60 + } + }, + "name": "id" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 880, + "end": 888, + "loc": { + "start": { + "line": 35, + "column": 43 + }, + "end": { + "line": 35, + "column": 51 + } + }, + "value": { + "raw": "/photos/", + "cooked": "/photos/" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 898, + "end": 898, + "loc": { + "start": { + "line": 35, + "column": 61 + }, + "end": { + "line": 35, + "column": 61 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 870, + "end": 874, + "loc": { + "start": { + "line": 35, + "column": 33 + }, + "end": { + "line": 35, + "column": 37 + } + }, + "name": "Link" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 1074, + "end": 1081, + "loc": { + "start": { + "line": 37, + "column": 32 + }, + "end": { + "line": 37, + "column": 39 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1076, + "end": 1080, + "loc": { + "start": { + "line": 37, + "column": 34 + }, + "end": { + "line": 37, + "column": 38 + } + }, + "name": "Link" + } + }, + "children": [ + { + "type": "Literal", + "start": 901, + "end": 938, + "loc": { + "start": { + "line": 35, + "column": 64 + }, + "end": { + "line": 36, + "column": 36 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 938, + "end": 1041, + "loc": { + "start": { + "line": 36, + "column": 36 + }, + "end": { + "line": 36, + "column": 139 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 938, + "end": 1041, + "loc": { + "start": { + "line": 36, + "column": 36 + }, + "end": { + "line": 36, + "column": 139 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 943, + "end": 1038, + "loc": { + "start": { + "line": 36, + "column": 41 + }, + "end": { + "line": 36, + "column": 136 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 943, + "end": 946, + "loc": { + "start": { + "line": 36, + "column": 41 + }, + "end": { + "line": 36, + "column": 44 + } + }, + "name": "src" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 947, + "end": 1038, + "loc": { + "start": { + "line": 36, + "column": 45 + }, + "end": { + "line": 36, + "column": 136 + } + }, + "expression": { + "type": "TemplateLiteral", + "start": 948, + "end": 1037, + "loc": { + "start": { + "line": 36, + "column": 46 + }, + "end": { + "line": 36, + "column": 135 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 951, + "end": 971, + "loc": { + "start": { + "line": 36, + "column": 49 + }, + "end": { + "line": 36, + "column": 69 + } + }, + "object": { + "type": "MemberExpression", + "start": 951, + "end": 963, + "loc": { + "start": { + "line": 36, + "column": 49 + }, + "end": { + "line": 36, + "column": 61 + } + }, + "object": { + "type": "Identifier", + "start": 951, + "end": 957, + "loc": { + "start": { + "line": 36, + "column": 49 + }, + "end": { + "line": 36, + "column": 55 + } + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 958, + "end": 963, + "loc": { + "start": { + "line": 36, + "column": 56 + }, + "end": { + "line": 36, + "column": 61 + } + }, + "name": "imgix" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 964, + "end": 971, + "loc": { + "start": { + "line": 36, + "column": 62 + }, + "end": { + "line": 36, + "column": 69 + } + }, + "name": "baseUrl" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 975, + "end": 988, + "loc": { + "start": { + "line": 36, + "column": 73 + }, + "end": { + "line": 36, + "column": 86 + } + }, + "object": { + "type": "Identifier", + "start": 975, + "end": 979, + "loc": { + "start": { + "line": 36, + "column": 73 + }, + "end": { + "line": 36, + "column": 77 + } + }, + "name": "item" + }, + "property": { + "type": "Identifier", + "start": 980, + "end": 988, + "loc": { + "start": { + "line": 36, + "column": 78 + }, + "end": { + "line": 36, + "column": 86 + } + }, + "name": "filename" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 949, + "end": 949, + "loc": { + "start": { + "line": 36, + "column": 47 + }, + "end": { + "line": 36, + "column": 47 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 972, + "end": 973, + "loc": { + "start": { + "line": 36, + "column": 70 + }, + "end": { + "line": 36, + "column": 71 + } + }, + "value": { + "raw": "/", + "cooked": "/" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 989, + "end": 1036, + "loc": { + "start": { + "line": 36, + "column": 87 + }, + "end": { + "line": 36, + "column": 134 + } + }, + "value": { + "raw": "?auto=enhance&w=200&h=200&fit=crop&fm=png&dpr=2", + "cooked": "?auto=enhance&w=200&h=200&fit=crop&fm=png&dpr=2" + }, + "tail": true + } + ] + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 939, + "end": 942, + "loc": { + "start": { + "line": 36, + "column": 37 + }, + "end": { + "line": 36, + "column": 40 + } + }, + "name": "img" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 1041, + "end": 1074, + "loc": { + "start": { + "line": 36, + "column": 139 + }, + "end": { + "line": 37, + "column": 32 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 1081, + "end": 1110, + "loc": { + "start": { + "line": 37, + "column": 39 + }, + "end": { + "line": 38, + "column": 28 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + } + } + ] + } + }, + { + "type": "Literal", + "start": 1143, + "end": 1164, + "loc": { + "start": { + "line": 39, + "column": 26 + }, + "end": { + "line": 40, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 1170, + "end": 1188, + "loc": { + "start": { + "line": 40, + "column": 26 + }, + "end": { + "line": 42, + "column": 16 + } + }, + "value": "\n\n ", + "rawValue": null, + "raw": "\n\n " + } + ] + }, + { + "type": "Literal", + "start": 1194, + "end": 1207, + "loc": { + "start": { + "line": 42, + "column": 22 + }, + "end": { + "line": 43, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 494, + "end": 542, + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 27, + "column": 7 + } + }, + "range": [ + 494, + 542 + ] + } + ] + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Trending\n * '/trending'\n * React Route - Documentation: https://github.com/reactjs/react-router/tree/master/docs\n ", + "start": 204, + "end": 327, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + }, + "range": [ + 204, + 327 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * connect\n * Connects React component to a Redux store\n * Documentation: https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options\n ", + "start": 1234, + "end": 1439, + "loc": { + "start": { + "line": 49, + "column": 0 + }, + "end": { + "line": 53, + "column": 3 + } + }, + "range": [ + 1234, + 1439 + ] + } + ] + }, + { + "type": "ExportDefaultDeclaration", + "start": 1440, + "end": 1514, + "loc": { + "start": { + "line": 54, + "column": 0 + }, + "end": { + "line": 54, + "column": 74 + } + }, + "declaration": { + "type": "CallExpression", + "start": 1455, + "end": 1514, + "loc": { + "start": { + "line": 54, + "column": 15 + }, + "end": { + "line": 54, + "column": 74 + } + }, + "callee": { + "type": "CallExpression", + "start": 1455, + "end": 1504, + "loc": { + "start": { + "line": 54, + "column": 15 + }, + "end": { + "line": 54, + "column": 64 + } + }, + "callee": { + "type": "Identifier", + "start": 1455, + "end": 1462, + "loc": { + "start": { + "line": 54, + "column": 15 + }, + "end": { + "line": 54, + "column": 22 + } + }, + "name": "connect", + "leadingComments": null + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 1463, + "end": 1503, + "loc": { + "start": { + "line": 54, + "column": 23 + }, + "end": { + "line": 54, + "column": 63 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1463, + "end": 1468, + "loc": { + "start": { + "line": 54, + "column": 23 + }, + "end": { + "line": 54, + "column": 28 + } + }, + "name": "state" + } + ], + "body": { + "type": "ObjectExpression", + "start": 1473, + "end": 1502, + "loc": { + "start": { + "line": 54, + "column": 33 + }, + "end": { + "line": 54, + "column": 62 + } + }, + "properties": [ + { + "type": "Property", + "start": 1475, + "end": 1499, + "loc": { + "start": { + "line": 54, + "column": 35 + }, + "end": { + "line": 54, + "column": 59 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1475, + "end": 1483, + "loc": { + "start": { + "line": 54, + "column": 35 + }, + "end": { + "line": 54, + "column": 43 + } + }, + "name": "trending" + }, + "value": { + "type": "MemberExpression", + "start": 1485, + "end": 1499, + "loc": { + "start": { + "line": 54, + "column": 45 + }, + "end": { + "line": 54, + "column": 59 + } + }, + "object": { + "type": "Identifier", + "start": 1485, + "end": 1490, + "loc": { + "start": { + "line": 54, + "column": 45 + }, + "end": { + "line": 54, + "column": 50 + } + }, + "name": "state" + }, + "property": { + "type": "Identifier", + "start": 1491, + "end": 1499, + "loc": { + "start": { + "line": 54, + "column": 51 + }, + "end": { + "line": 54, + "column": 59 + } + }, + "name": "Trending" + }, + "computed": false + }, + "kind": "init" + } + ], + "parenthesizedExpression": true + } + } + ], + "leadingComments": null + }, + "arguments": [ + { + "type": "Identifier", + "start": 1505, + "end": 1513, + "loc": { + "start": { + "line": 54, + "column": 65 + }, + "end": { + "line": 54, + "column": 73 + } + }, + "name": "Trending" + } + ], + "leadingComments": [ + { + "type": "Block", + "value": "*\n * connect\n * Connects React component to a Redux store\n * Documentation: https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options\n ", + "start": 1234, + "end": 1439, + "loc": { + "start": { + "line": 49, + "column": 0 + }, + "end": { + "line": 53, + "column": 3 + } + }, + "range": [ + 1234, + 1439 + ] + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * connect\n * Connects React component to a Redux store\n * Documentation: https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options\n ", + "start": 1234, + "end": 1439, + "loc": { + "start": { + "line": 49, + "column": 0 + }, + "end": { + "line": 53, + "column": 3 + } + }, + "range": [ + 1234, + 1439 + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/routes/Trending/index.js.json b/app/docs/ast/source/routes/Trending/index.js.json new file mode 100644 index 0000000..1cf0bc1 --- /dev/null +++ b/app/docs/ast/source/routes/Trending/index.js.json @@ -0,0 +1,1376 @@ +{ + "type": "Program", + "start": 0, + "end": 824, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 44, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 18, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 18 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ImportDeclaration", + "start": 27, + "end": 66, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 39 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 36, + "end": 46, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 19 + } + }, + "imported": { + "type": "Identifier", + "start": 36, + "end": 46, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 19 + } + }, + "name": "BackButton" + }, + "local": { + "type": "Identifier", + "start": 36, + "end": 46, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 19 + } + }, + "name": "BackButton" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 54, + "end": 66, + "loc": { + "start": { + "line": 3, + "column": 27 + }, + "end": { + "line": 3, + "column": 39 + } + }, + "value": "components", + "rawValue": "components", + "raw": "'components'" + } + }, + { + "type": "ExpressionStatement", + "start": 68, + "end": 823, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 43, + "column": 1 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 68, + "end": 823, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 43, + "column": 1 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 68, + "end": 82, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 14 + } + }, + "object": { + "type": "Identifier", + "start": 68, + "end": 74, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 6 + } + }, + "name": "module" + }, + "property": { + "type": "Identifier", + "start": 75, + "end": 82, + "loc": { + "start": { + "line": 5, + "column": 7 + }, + "end": { + "line": 5, + "column": 14 + } + }, + "name": "exports" + }, + "computed": false + }, + "right": { + "type": "ObjectExpression", + "start": 85, + "end": 823, + "loc": { + "start": { + "line": 5, + "column": 17 + }, + "end": { + "line": 43, + "column": 1 + } + }, + "properties": [ + { + "type": "Property", + "start": 91, + "end": 108, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 6, + "column": 21 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 91, + "end": 95, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 6, + "column": 8 + } + }, + "name": "path" + }, + "value": { + "type": "Literal", + "start": 97, + "end": 108, + "loc": { + "start": { + "line": 6, + "column": 10 + }, + "end": { + "line": 6, + "column": 21 + } + }, + "value": "/trending", + "rawValue": "/trending", + "raw": "'/trending'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 211, + "end": 293, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 15, + "column": 5 + } + }, + "method": true, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 211, + "end": 223, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 16 + } + }, + "name": "getComponent", + "leadingComments": null + }, + "kind": "init", + "value": { + "type": "FunctionExpression", + "start": 223, + "end": 293, + "loc": { + "start": { + "line": 13, + "column": 16 + }, + "end": { + "line": 15, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 224, + "end": 232, + "loc": { + "start": { + "line": 13, + "column": 17 + }, + "end": { + "line": 13, + "column": 25 + } + }, + "name": "location" + }, + { + "type": "Identifier", + "start": 234, + "end": 236, + "loc": { + "start": { + "line": 13, + "column": 27 + }, + "end": { + "line": 13, + "column": 29 + } + }, + "name": "cb" + } + ], + "body": { + "type": "BlockStatement", + "start": 238, + "end": 293, + "loc": { + "start": { + "line": 13, + "column": 31 + }, + "end": { + "line": 15, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 248, + "end": 287, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 47 + } + }, + "expression": { + "type": "CallExpression", + "start": 248, + "end": 287, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 47 + } + }, + "callee": { + "type": "Identifier", + "start": 248, + "end": 250, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 10 + } + }, + "name": "cb" + }, + "arguments": [ + { + "type": "Literal", + "start": 251, + "end": 255, + "loc": { + "start": { + "line": 14, + "column": 11 + }, + "end": { + "line": 14, + "column": 15 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + { + "type": "MemberExpression", + "start": 257, + "end": 286, + "loc": { + "start": { + "line": 14, + "column": 17 + }, + "end": { + "line": 14, + "column": 46 + } + }, + "object": { + "type": "CallExpression", + "start": 257, + "end": 278, + "loc": { + "start": { + "line": 14, + "column": 17 + }, + "end": { + "line": 14, + "column": 38 + } + }, + "callee": { + "type": "Identifier", + "start": 257, + "end": 264, + "loc": { + "start": { + "line": 14, + "column": 17 + }, + "end": { + "line": 14, + "column": 24 + } + }, + "name": "require" + }, + "arguments": [ + { + "type": "Literal", + "start": 265, + "end": 277, + "loc": { + "start": { + "line": 14, + "column": 25 + }, + "end": { + "line": 14, + "column": 37 + } + }, + "value": "./Trending", + "rawValue": "./Trending", + "raw": "'./Trending'" + } + ] + }, + "property": { + "type": "Identifier", + "start": 279, + "end": 286, + "loc": { + "start": { + "line": 14, + "column": 39 + }, + "end": { + "line": 14, + "column": 46 + } + }, + "name": "default" + }, + "computed": false + } + ] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * getComponent\n * @param location\n * @param cb {Function} callback\n ", + "start": 115, + "end": 206, + "loc": { + "start": { + "line": 8, + "column": 4 + }, + "end": { + "line": 12, + "column": 7 + } + }, + "range": [ + 115, + 206 + ] + } + ] + }, + { + "type": "Property", + "start": 397, + "end": 482, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 24, + "column": 5 + } + }, + "method": true, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 397, + "end": 410, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 17 + } + }, + "name": "getHeaderLeft", + "leadingComments": null + }, + "kind": "init", + "value": { + "type": "FunctionExpression", + "start": 410, + "end": 482, + "loc": { + "start": { + "line": 22, + "column": 17 + }, + "end": { + "line": 24, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 411, + "end": 419, + "loc": { + "start": { + "line": 22, + "column": 18 + }, + "end": { + "line": 22, + "column": 26 + } + }, + "name": "location" + }, + { + "type": "Identifier", + "start": 421, + "end": 423, + "loc": { + "start": { + "line": 22, + "column": 28 + }, + "end": { + "line": 22, + "column": 30 + } + }, + "name": "cb" + } + ], + "body": { + "type": "BlockStatement", + "start": 425, + "end": 482, + "loc": { + "start": { + "line": 22, + "column": 32 + }, + "end": { + "line": 24, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 435, + "end": 476, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 49 + } + }, + "expression": { + "type": "CallExpression", + "start": 435, + "end": 476, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 49 + } + }, + "callee": { + "type": "Identifier", + "start": 435, + "end": 437, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 10 + } + }, + "name": "cb" + }, + "arguments": [ + { + "type": "Literal", + "start": 438, + "end": 442, + "loc": { + "start": { + "line": 23, + "column": 11 + }, + "end": { + "line": 23, + "column": 15 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + { + "type": "JSXElement", + "start": 444, + "end": 475, + "loc": { + "start": { + "line": 23, + "column": 17 + }, + "end": { + "line": 23, + "column": 48 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 444, + "end": 475, + "loc": { + "start": { + "line": 23, + "column": 17 + }, + "end": { + "line": 23, + "column": 48 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 456, + "end": 472, + "loc": { + "start": { + "line": 23, + "column": 29 + }, + "end": { + "line": 23, + "column": 45 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 456, + "end": 461, + "loc": { + "start": { + "line": 23, + "column": 29 + }, + "end": { + "line": 23, + "column": 34 + } + }, + "name": "label" + }, + "value": { + "type": "Literal", + "start": 462, + "end": 472, + "loc": { + "start": { + "line": 23, + "column": 35 + }, + "end": { + "line": 23, + "column": 45 + } + }, + "value": "Trending", + "rawValue": null, + "raw": "\"Trending\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 445, + "end": 455, + "loc": { + "start": { + "line": 23, + "column": 18 + }, + "end": { + "line": 23, + "column": 28 + } + }, + "name": "BackButton" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + ] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * getHeaderLeft\n * @param location\n * @param cb {Function} callback\n ", + "start": 300, + "end": 392, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 21, + "column": 7 + } + }, + "range": [ + 300, + 392 + ] + } + ] + }, + { + "type": "Property", + "start": 588, + "end": 652, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "method": true, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 588, + "end": 603, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 19 + } + }, + "name": "getHeaderMiddle", + "leadingComments": null + }, + "kind": "init", + "value": { + "type": "FunctionExpression", + "start": 603, + "end": 652, + "loc": { + "start": { + "line": 31, + "column": 19 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 604, + "end": 612, + "loc": { + "start": { + "line": 31, + "column": 20 + }, + "end": { + "line": 31, + "column": 28 + } + }, + "name": "location" + }, + { + "type": "Identifier", + "start": 614, + "end": 616, + "loc": { + "start": { + "line": 31, + "column": 30 + }, + "end": { + "line": 31, + "column": 32 + } + }, + "name": "cb" + } + ], + "body": { + "type": "BlockStatement", + "start": 618, + "end": 652, + "loc": { + "start": { + "line": 31, + "column": 34 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 628, + "end": 646, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 26 + } + }, + "expression": { + "type": "CallExpression", + "start": 628, + "end": 646, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 26 + } + }, + "callee": { + "type": "Identifier", + "start": 628, + "end": 630, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 10 + } + }, + "name": "cb" + }, + "arguments": [ + { + "type": "Literal", + "start": 631, + "end": 635, + "loc": { + "start": { + "line": 32, + "column": 11 + }, + "end": { + "line": 32, + "column": 15 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + { + "type": "JSXElement", + "start": 637, + "end": 645, + "loc": { + "start": { + "line": 32, + "column": 17 + }, + "end": { + "line": 32, + "column": 25 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 637, + "end": 645, + "loc": { + "start": { + "line": 32, + "column": 17 + }, + "end": { + "line": 32, + "column": 25 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 638, + "end": 642, + "loc": { + "start": { + "line": 32, + "column": 18 + }, + "end": { + "line": 32, + "column": 22 + } + }, + "name": "span" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + ] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * getHeaderMiddle\n * @param location\n * @param cb {Function} callback\n ", + "start": 489, + "end": 583, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 30, + "column": 7 + } + }, + "range": [ + 489, + 583 + ] + } + ] + }, + { + "type": "Property", + "start": 757, + "end": 820, + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 42, + "column": 5 + } + }, + "method": true, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 757, + "end": 771, + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 40, + "column": 18 + } + }, + "name": "getHeaderRight", + "leadingComments": null + }, + "kind": "init", + "value": { + "type": "FunctionExpression", + "start": 771, + "end": 820, + "loc": { + "start": { + "line": 40, + "column": 18 + }, + "end": { + "line": 42, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 772, + "end": 780, + "loc": { + "start": { + "line": 40, + "column": 19 + }, + "end": { + "line": 40, + "column": 27 + } + }, + "name": "location" + }, + { + "type": "Identifier", + "start": 782, + "end": 784, + "loc": { + "start": { + "line": 40, + "column": 29 + }, + "end": { + "line": 40, + "column": 31 + } + }, + "name": "cb" + } + ], + "body": { + "type": "BlockStatement", + "start": 786, + "end": 820, + "loc": { + "start": { + "line": 40, + "column": 33 + }, + "end": { + "line": 42, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 796, + "end": 814, + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 41, + "column": 26 + } + }, + "expression": { + "type": "CallExpression", + "start": 796, + "end": 814, + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 41, + "column": 26 + } + }, + "callee": { + "type": "Identifier", + "start": 796, + "end": 798, + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 41, + "column": 10 + } + }, + "name": "cb" + }, + "arguments": [ + { + "type": "Literal", + "start": 799, + "end": 803, + "loc": { + "start": { + "line": 41, + "column": 11 + }, + "end": { + "line": 41, + "column": 15 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + { + "type": "JSXElement", + "start": 805, + "end": 813, + "loc": { + "start": { + "line": 41, + "column": 17 + }, + "end": { + "line": 41, + "column": 25 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 805, + "end": 813, + "loc": { + "start": { + "line": 41, + "column": 17 + }, + "end": { + "line": 41, + "column": 25 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 806, + "end": 810, + "loc": { + "start": { + "line": 41, + "column": 18 + }, + "end": { + "line": 41, + "column": 22 + } + }, + "name": "span" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + ] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * getHeaderRight\n * @param location\n * @param cb {Function} callback\n ", + "start": 659, + "end": 752, + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 39, + "column": 7 + } + }, + "range": [ + 659, + 752 + ] + } + ] + } + ] + } + } + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/routes/Upload/Upload.js.json b/app/docs/ast/source/routes/Upload/Upload.js.json new file mode 100644 index 0000000..96b66ca --- /dev/null +++ b/app/docs/ast/source/routes/Upload/Upload.js.json @@ -0,0 +1,11879 @@ +{ + "type": "Program", + "start": 0, + "end": 5213, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 163, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 12 + } + }, + "name": "React" + } + }, + { + "type": "ImportSpecifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "imported": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + }, + "local": { + "type": "Identifier", + "start": 16, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "name": "Component" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 33, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 33 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "value": "react", + "rawValue": "react", + "raw": "'react'" + } + }, + { + "type": "ImportDeclaration", + "start": 41, + "end": 86, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 45 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 50, + "end": 64, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 23 + } + }, + "imported": { + "type": "Identifier", + "start": 50, + "end": 64, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 23 + } + }, + "name": "browserHistory" + }, + "local": { + "type": "Identifier", + "start": 50, + "end": 64, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 23 + } + }, + "name": "browserHistory" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 72, + "end": 86, + "loc": { + "start": { + "line": 2, + "column": 31 + }, + "end": { + "line": 2, + "column": 45 + } + }, + "value": "react-router", + "rawValue": "react-router", + "raw": "'react-router'" + } + }, + { + "type": "ImportDeclaration", + "start": 87, + "end": 124, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 37 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 96, + "end": 103, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 16 + } + }, + "imported": { + "type": "Identifier", + "start": 96, + "end": 103, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 16 + } + }, + "name": "connect" + }, + "local": { + "type": "Identifier", + "start": 96, + "end": 103, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 16 + } + }, + "name": "connect" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 111, + "end": 124, + "loc": { + "start": { + "line": 3, + "column": 24 + }, + "end": { + "line": 3, + "column": 37 + } + }, + "value": "react-redux", + "rawValue": "react-redux", + "raw": "'react-redux'" + } + }, + { + "type": "ImportDeclaration", + "start": 125, + "end": 155, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 30 + } + }, + "specifiers": [ + { + "type": "ImportNamespaceSpecifier", + "start": 132, + "end": 142, + "loc": { + "start": { + "line": 4, + "column": 7 + }, + "end": { + "line": 4, + "column": 17 + } + }, + "local": { + "type": "Identifier", + "start": 137, + "end": 142, + "loc": { + "start": { + "line": 4, + "column": 12 + }, + "end": { + "line": 4, + "column": 17 + } + }, + "name": "axios" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 148, + "end": 155, + "loc": { + "start": { + "line": 4, + "column": 23 + }, + "end": { + "line": 4, + "column": 30 + } + }, + "value": "axios", + "rawValue": "axios", + "raw": "'axios'" + } + }, + { + "type": "ImportDeclaration", + "start": 156, + "end": 183, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 27 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 163, + "end": 169, + "loc": { + "start": { + "line": 5, + "column": 7 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "local": { + "type": "Identifier", + "start": 163, + "end": 169, + "loc": { + "start": { + "line": 5, + "column": 7 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "name": "config" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 175, + "end": 183, + "loc": { + "start": { + "line": 5, + "column": 19 + }, + "end": { + "line": 5, + "column": 27 + } + }, + "value": "config", + "rawValue": "config", + "raw": "'config'" + } + }, + { + "type": "ImportDeclaration", + "start": 184, + "end": 211, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 6, + "column": 27 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 191, + "end": 194, + "loc": { + "start": { + "line": 6, + "column": 7 + }, + "end": { + "line": 6, + "column": 10 + } + }, + "local": { + "type": "Identifier", + "start": 191, + "end": 194, + "loc": { + "start": { + "line": 6, + "column": 7 + }, + "end": { + "line": 6, + "column": 10 + } + }, + "name": "Ink" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 200, + "end": 211, + "loc": { + "start": { + "line": 6, + "column": 16 + }, + "end": { + "line": 6, + "column": 27 + } + }, + "value": "react-ink", + "rawValue": "react-ink", + "raw": "'react-ink'" + } + }, + { + "type": "ImportDeclaration", + "start": 213, + "end": 294, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 11, + "column": 16 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 226, + "end": 247, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 9, + "column": 25 + } + }, + "imported": { + "type": "Identifier", + "start": 226, + "end": 231, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 9, + "column": 9 + } + }, + "name": "Photo" + }, + "local": { + "type": "Identifier", + "start": 235, + "end": 247, + "loc": { + "start": { + "line": 9, + "column": 13 + }, + "end": { + "line": 9, + "column": 25 + } + }, + "name": "PhotoActions" + } + }, + { + "type": "ImportSpecifier", + "start": 253, + "end": 276, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 10, + "column": 27 + } + }, + "imported": { + "type": "Identifier", + "start": 253, + "end": 259, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 10, + "column": 10 + } + }, + "name": "Photos" + }, + "local": { + "type": "Identifier", + "start": 263, + "end": 276, + "loc": { + "start": { + "line": 10, + "column": 14 + }, + "end": { + "line": 10, + "column": 27 + } + }, + "name": "PhotosActions" + } + } + ], + "importKind": "value", + "source": { + "type": "Literal", + "start": 285, + "end": 294, + "loc": { + "start": { + "line": 11, + "column": 7 + }, + "end": { + "line": 11, + "column": 16 + } + }, + "value": "actions", + "rawValue": "actions", + "raw": "'actions'" + } + }, + { + "type": "ClassDeclaration", + "start": 296, + "end": 4941, + "loc": { + "start": { + "line": 13, + "column": 0 + }, + "end": { + "line": 155, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 302, + "end": 308, + "loc": { + "start": { + "line": 13, + "column": 6 + }, + "end": { + "line": 13, + "column": 12 + } + }, + "name": "Upload" + }, + "superClass": { + "type": "Identifier", + "start": 317, + "end": 326, + "loc": { + "start": { + "line": 13, + "column": 21 + }, + "end": { + "line": 13, + "column": 30 + } + }, + "name": "Component" + }, + "body": { + "type": "ClassBody", + "start": 327, + "end": 4941, + "loc": { + "start": { + "line": 13, + "column": 31 + }, + "end": { + "line": 155, + "column": 1 + } + }, + "body": [ + { + "type": "Identifier", + "start": 501, + "end": 682, + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 26, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 501, + "end": 506, + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 9 + } + }, + "name": "state", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ObjectExpression", + "start": 509, + "end": 682, + "loc": { + "start": { + "line": 19, + "column": 12 + }, + "end": { + "line": 26, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 519, + "end": 530, + "loc": { + "start": { + "line": 20, + "column": 8 + }, + "end": { + "line": 20, + "column": 19 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 519, + "end": 526, + "loc": { + "start": { + "line": 20, + "column": 8 + }, + "end": { + "line": 20, + "column": 15 + } + }, + "name": "caption" + }, + "value": { + "type": "Literal", + "start": 528, + "end": 530, + "loc": { + "start": { + "line": 20, + "column": 17 + }, + "end": { + "line": 20, + "column": 19 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 540, + "end": 552, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 540, + "end": 548, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 16 + } + }, + "name": "hashtags" + }, + "value": { + "type": "Literal", + "start": 550, + "end": 552, + "loc": { + "start": { + "line": 21, + "column": 18 + }, + "end": { + "line": 21, + "column": 20 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 562, + "end": 574, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 562, + "end": 570, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 16 + } + }, + "name": "location" + }, + "value": { + "type": "Literal", + "start": 572, + "end": 574, + "loc": { + "start": { + "line": 22, + "column": 18 + }, + "end": { + "line": 22, + "column": 20 + } + }, + "value": "", + "rawValue": "", + "raw": "''" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 584, + "end": 608, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 32 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 584, + "end": 592, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 16 + } + }, + "name": "filename" + }, + "value": { + "type": "Literal", + "start": 594, + "end": 608, + "loc": { + "start": { + "line": 23, + "column": 18 + }, + "end": { + "line": 23, + "column": 32 + } + }, + "value": "Select Image", + "rawValue": "Select Image", + "raw": "'Select Image'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 618, + "end": 639, + "loc": { + "start": { + "line": 24, + "column": 8 + }, + "end": { + "line": 24, + "column": 29 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 618, + "end": 629, + "loc": { + "start": { + "line": 24, + "column": 8 + }, + "end": { + "line": 24, + "column": 19 + } + }, + "name": "uploadState" + }, + "value": { + "type": "Literal", + "start": 631, + "end": 639, + "loc": { + "start": { + "line": 24, + "column": 21 + }, + "end": { + "line": 24, + "column": 29 + } + }, + "value": "Upload", + "rawValue": "Upload", + "raw": "'Upload'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 649, + "end": 675, + "loc": { + "start": { + "line": 25, + "column": 8 + }, + "end": { + "line": 25, + "column": 34 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 649, + "end": 668, + "loc": { + "start": { + "line": 25, + "column": 8 + }, + "end": { + "line": 25, + "column": 27 + } + }, + "name": "disabledUploadState" + }, + "value": { + "type": "Literal", + "start": 670, + "end": 675, + "loc": { + "start": { + "line": 25, + "column": 29 + }, + "end": { + "line": 25, + "column": 34 + } + }, + "value": false, + "rawValue": false, + "raw": "false" + }, + "kind": "init" + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * state\n * @type {{caption: string, hashtags: string, location: string, filename: string, uploadState: string, disabledUploadState: boolean}}\n ", + "start": 334, + "end": 496, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 18, + "column": 7 + } + }, + "range": [ + 334, + 496 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * handleFileClick\n ", + "start": 688, + "end": 722, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 30, + "column": 7 + } + }, + "range": [ + 688, + 722 + ] + } + ] + }, + { + "type": "Identifier", + "start": 727, + "end": 806, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 727, + "end": 742, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 19 + } + }, + "name": "handleFileClick", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ArrowFunctionExpression", + "start": 745, + "end": 806, + "loc": { + "start": { + "line": 31, + "column": 22 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 751, + "end": 806, + "loc": { + "start": { + "line": 31, + "column": 28 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 761, + "end": 800, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 47 + } + }, + "expression": { + "type": "CallExpression", + "start": 761, + "end": 800, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 47 + } + }, + "callee": { + "type": "MemberExpression", + "start": 761, + "end": 798, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 45 + } + }, + "object": { + "type": "CallExpression", + "start": 761, + "end": 792, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 39 + } + }, + "callee": { + "type": "MemberExpression", + "start": 761, + "end": 784, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 761, + "end": 769, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 16 + } + }, + "name": "document" + }, + "property": { + "type": "Identifier", + "start": 770, + "end": 784, + "loc": { + "start": { + "line": 32, + "column": 17 + }, + "end": { + "line": 32, + "column": 31 + } + }, + "name": "getElementById" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 785, + "end": 791, + "loc": { + "start": { + "line": 32, + "column": 32 + }, + "end": { + "line": 32, + "column": 38 + } + }, + "value": "file", + "rawValue": "file", + "raw": "'file'" + } + ] + }, + "property": { + "type": "Identifier", + "start": 793, + "end": 798, + "loc": { + "start": { + "line": 32, + "column": 40 + }, + "end": { + "line": 32, + "column": 45 + } + }, + "name": "click" + }, + "computed": false + }, + "arguments": [] + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * handleFileClick\n ", + "start": 688, + "end": 722, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 30, + "column": 7 + } + }, + "range": [ + 688, + 722 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * handleCaptionChange\n * @param e event\n ", + "start": 812, + "end": 872, + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 38, + "column": 7 + } + }, + "range": [ + 812, + 872 + ] + } + ] + }, + { + "type": "Identifier", + "start": 877, + "end": 961, + "loc": { + "start": { + "line": 39, + "column": 4 + }, + "end": { + "line": 41, + "column": 6 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 877, + "end": 896, + "loc": { + "start": { + "line": 39, + "column": 4 + }, + "end": { + "line": 39, + "column": 23 + } + }, + "name": "handleCaptionChange", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ArrowFunctionExpression", + "start": 899, + "end": 961, + "loc": { + "start": { + "line": 39, + "column": 26 + }, + "end": { + "line": 41, + "column": 6 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 900, + "end": 901, + "loc": { + "start": { + "line": 39, + "column": 27 + }, + "end": { + "line": 39, + "column": 28 + } + }, + "name": "e" + } + ], + "body": { + "type": "CallExpression", + "start": 906, + "end": 961, + "loc": { + "start": { + "line": 39, + "column": 33 + }, + "end": { + "line": 41, + "column": 6 + } + }, + "callee": { + "type": "MemberExpression", + "start": 906, + "end": 919, + "loc": { + "start": { + "line": 39, + "column": 33 + }, + "end": { + "line": 39, + "column": 46 + } + }, + "object": { + "type": "ThisExpression", + "start": 906, + "end": 910, + "loc": { + "start": { + "line": 39, + "column": 33 + }, + "end": { + "line": 39, + "column": 37 + } + } + }, + "property": { + "type": "Identifier", + "start": 911, + "end": 919, + "loc": { + "start": { + "line": 39, + "column": 38 + }, + "end": { + "line": 39, + "column": 46 + } + }, + "name": "setState" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 920, + "end": 960, + "loc": { + "start": { + "line": 39, + "column": 47 + }, + "end": { + "line": 41, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 930, + "end": 953, + "loc": { + "start": { + "line": 40, + "column": 8 + }, + "end": { + "line": 40, + "column": 31 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 930, + "end": 937, + "loc": { + "start": { + "line": 40, + "column": 8 + }, + "end": { + "line": 40, + "column": 15 + } + }, + "name": "caption" + }, + "value": { + "type": "MemberExpression", + "start": 939, + "end": 953, + "loc": { + "start": { + "line": 40, + "column": 17 + }, + "end": { + "line": 40, + "column": 31 + } + }, + "object": { + "type": "MemberExpression", + "start": 939, + "end": 947, + "loc": { + "start": { + "line": 40, + "column": 17 + }, + "end": { + "line": 40, + "column": 25 + } + }, + "object": { + "type": "Identifier", + "start": 939, + "end": 940, + "loc": { + "start": { + "line": 40, + "column": 17 + }, + "end": { + "line": 40, + "column": 18 + } + }, + "name": "e" + }, + "property": { + "type": "Identifier", + "start": 941, + "end": 947, + "loc": { + "start": { + "line": 40, + "column": 19 + }, + "end": { + "line": 40, + "column": 25 + } + }, + "name": "target" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 948, + "end": 953, + "loc": { + "start": { + "line": 40, + "column": 26 + }, + "end": { + "line": 40, + "column": 31 + } + }, + "name": "value" + }, + "computed": false + }, + "kind": "init" + } + ] + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * handleCaptionChange\n * @param e event\n ", + "start": 812, + "end": 872, + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 38, + "column": 7 + } + }, + "range": [ + 812, + 872 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * handleLocationChange\n * @param e event\n ", + "start": 967, + "end": 1028, + "loc": { + "start": { + "line": 43, + "column": 4 + }, + "end": { + "line": 46, + "column": 7 + } + }, + "range": [ + 967, + 1028 + ] + } + ] + }, + { + "type": "Identifier", + "start": 1033, + "end": 1119, + "loc": { + "start": { + "line": 47, + "column": 4 + }, + "end": { + "line": 49, + "column": 6 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 1033, + "end": 1053, + "loc": { + "start": { + "line": 47, + "column": 4 + }, + "end": { + "line": 47, + "column": 24 + } + }, + "name": "handleLocationChange", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ArrowFunctionExpression", + "start": 1056, + "end": 1119, + "loc": { + "start": { + "line": 47, + "column": 27 + }, + "end": { + "line": 49, + "column": 6 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1057, + "end": 1058, + "loc": { + "start": { + "line": 47, + "column": 28 + }, + "end": { + "line": 47, + "column": 29 + } + }, + "name": "e" + } + ], + "body": { + "type": "CallExpression", + "start": 1063, + "end": 1119, + "loc": { + "start": { + "line": 47, + "column": 34 + }, + "end": { + "line": 49, + "column": 6 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1063, + "end": 1076, + "loc": { + "start": { + "line": 47, + "column": 34 + }, + "end": { + "line": 47, + "column": 47 + } + }, + "object": { + "type": "ThisExpression", + "start": 1063, + "end": 1067, + "loc": { + "start": { + "line": 47, + "column": 34 + }, + "end": { + "line": 47, + "column": 38 + } + } + }, + "property": { + "type": "Identifier", + "start": 1068, + "end": 1076, + "loc": { + "start": { + "line": 47, + "column": 39 + }, + "end": { + "line": 47, + "column": 47 + } + }, + "name": "setState" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 1077, + "end": 1118, + "loc": { + "start": { + "line": 47, + "column": 48 + }, + "end": { + "line": 49, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 1087, + "end": 1111, + "loc": { + "start": { + "line": 48, + "column": 8 + }, + "end": { + "line": 48, + "column": 32 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1087, + "end": 1095, + "loc": { + "start": { + "line": 48, + "column": 8 + }, + "end": { + "line": 48, + "column": 16 + } + }, + "name": "location" + }, + "value": { + "type": "MemberExpression", + "start": 1097, + "end": 1111, + "loc": { + "start": { + "line": 48, + "column": 18 + }, + "end": { + "line": 48, + "column": 32 + } + }, + "object": { + "type": "MemberExpression", + "start": 1097, + "end": 1105, + "loc": { + "start": { + "line": 48, + "column": 18 + }, + "end": { + "line": 48, + "column": 26 + } + }, + "object": { + "type": "Identifier", + "start": 1097, + "end": 1098, + "loc": { + "start": { + "line": 48, + "column": 18 + }, + "end": { + "line": 48, + "column": 19 + } + }, + "name": "e" + }, + "property": { + "type": "Identifier", + "start": 1099, + "end": 1105, + "loc": { + "start": { + "line": 48, + "column": 20 + }, + "end": { + "line": 48, + "column": 26 + } + }, + "name": "target" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1106, + "end": 1111, + "loc": { + "start": { + "line": 48, + "column": 27 + }, + "end": { + "line": 48, + "column": 32 + } + }, + "name": "value" + }, + "computed": false + }, + "kind": "init" + } + ] + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * handleLocationChange\n * @param e event\n ", + "start": 967, + "end": 1028, + "loc": { + "start": { + "line": 43, + "column": 4 + }, + "end": { + "line": 46, + "column": 7 + } + }, + "range": [ + 967, + 1028 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * handleHashtagsChange\n * @param e event\n ", + "start": 1125, + "end": 1186, + "loc": { + "start": { + "line": 51, + "column": 4 + }, + "end": { + "line": 54, + "column": 7 + } + }, + "range": [ + 1125, + 1186 + ] + } + ] + }, + { + "type": "Identifier", + "start": 1191, + "end": 1277, + "loc": { + "start": { + "line": 55, + "column": 4 + }, + "end": { + "line": 57, + "column": 6 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 1191, + "end": 1211, + "loc": { + "start": { + "line": 55, + "column": 4 + }, + "end": { + "line": 55, + "column": 24 + } + }, + "name": "handleHashtagsChange", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ArrowFunctionExpression", + "start": 1214, + "end": 1277, + "loc": { + "start": { + "line": 55, + "column": 27 + }, + "end": { + "line": 57, + "column": 6 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1215, + "end": 1216, + "loc": { + "start": { + "line": 55, + "column": 28 + }, + "end": { + "line": 55, + "column": 29 + } + }, + "name": "e" + } + ], + "body": { + "type": "CallExpression", + "start": 1221, + "end": 1277, + "loc": { + "start": { + "line": 55, + "column": 34 + }, + "end": { + "line": 57, + "column": 6 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1221, + "end": 1234, + "loc": { + "start": { + "line": 55, + "column": 34 + }, + "end": { + "line": 55, + "column": 47 + } + }, + "object": { + "type": "ThisExpression", + "start": 1221, + "end": 1225, + "loc": { + "start": { + "line": 55, + "column": 34 + }, + "end": { + "line": 55, + "column": 38 + } + } + }, + "property": { + "type": "Identifier", + "start": 1226, + "end": 1234, + "loc": { + "start": { + "line": 55, + "column": 39 + }, + "end": { + "line": 55, + "column": 47 + } + }, + "name": "setState" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 1235, + "end": 1276, + "loc": { + "start": { + "line": 55, + "column": 48 + }, + "end": { + "line": 57, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 1245, + "end": 1269, + "loc": { + "start": { + "line": 56, + "column": 8 + }, + "end": { + "line": 56, + "column": 32 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1245, + "end": 1253, + "loc": { + "start": { + "line": 56, + "column": 8 + }, + "end": { + "line": 56, + "column": 16 + } + }, + "name": "hashtags" + }, + "value": { + "type": "MemberExpression", + "start": 1255, + "end": 1269, + "loc": { + "start": { + "line": 56, + "column": 18 + }, + "end": { + "line": 56, + "column": 32 + } + }, + "object": { + "type": "MemberExpression", + "start": 1255, + "end": 1263, + "loc": { + "start": { + "line": 56, + "column": 18 + }, + "end": { + "line": 56, + "column": 26 + } + }, + "object": { + "type": "Identifier", + "start": 1255, + "end": 1256, + "loc": { + "start": { + "line": 56, + "column": 18 + }, + "end": { + "line": 56, + "column": 19 + } + }, + "name": "e" + }, + "property": { + "type": "Identifier", + "start": 1257, + "end": 1263, + "loc": { + "start": { + "line": 56, + "column": 20 + }, + "end": { + "line": 56, + "column": 26 + } + }, + "name": "target" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1264, + "end": 1269, + "loc": { + "start": { + "line": 56, + "column": 27 + }, + "end": { + "line": 56, + "column": 32 + } + }, + "name": "value" + }, + "computed": false + }, + "kind": "init" + } + ] + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * handleHashtagsChange\n * @param e event\n ", + "start": 1125, + "end": 1186, + "loc": { + "start": { + "line": 51, + "column": 4 + }, + "end": { + "line": 54, + "column": 7 + } + }, + "range": [ + 1125, + 1186 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * handleSubmit\n * @param e event\n ", + "start": 1283, + "end": 1336, + "loc": { + "start": { + "line": 59, + "column": 4 + }, + "end": { + "line": 62, + "column": 7 + } + }, + "range": [ + 1283, + 1336 + ] + } + ] + }, + { + "type": "Identifier", + "start": 1341, + "end": 2535, + "loc": { + "start": { + "line": 63, + "column": 4 + }, + "end": { + "line": 98, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 1341, + "end": 1353, + "loc": { + "start": { + "line": 63, + "column": 4 + }, + "end": { + "line": 63, + "column": 16 + } + }, + "name": "handleSubmit", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ArrowFunctionExpression", + "start": 1356, + "end": 2535, + "loc": { + "start": { + "line": 63, + "column": 19 + }, + "end": { + "line": 98, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1357, + "end": 1358, + "loc": { + "start": { + "line": 63, + "column": 20 + }, + "end": { + "line": 63, + "column": 21 + } + }, + "name": "e" + } + ], + "body": { + "type": "BlockStatement", + "start": 1363, + "end": 2535, + "loc": { + "start": { + "line": 63, + "column": 26 + }, + "end": { + "line": 98, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1374, + "end": 1392, + "loc": { + "start": { + "line": 65, + "column": 8 + }, + "end": { + "line": 65, + "column": 26 + } + }, + "expression": { + "type": "CallExpression", + "start": 1374, + "end": 1392, + "loc": { + "start": { + "line": 65, + "column": 8 + }, + "end": { + "line": 65, + "column": 26 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1374, + "end": 1390, + "loc": { + "start": { + "line": 65, + "column": 8 + }, + "end": { + "line": 65, + "column": 24 + } + }, + "object": { + "type": "Identifier", + "start": 1374, + "end": 1375, + "loc": { + "start": { + "line": 65, + "column": 8 + }, + "end": { + "line": 65, + "column": 9 + } + }, + "name": "e" + }, + "property": { + "type": "Identifier", + "start": 1376, + "end": 1390, + "loc": { + "start": { + "line": 65, + "column": 10 + }, + "end": { + "line": 65, + "column": 24 + } + }, + "name": "preventDefault" + }, + "computed": false + }, + "arguments": [] + } + }, + { + "type": "VariableDeclaration", + "start": 1402, + "end": 1542, + "loc": { + "start": { + "line": 67, + "column": 8 + }, + "end": { + "line": 69, + "column": 33 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1406, + "end": 1446, + "loc": { + "start": { + "line": 67, + "column": 12 + }, + "end": { + "line": 67, + "column": 52 + } + }, + "id": { + "type": "Identifier", + "start": 1406, + "end": 1410, + "loc": { + "start": { + "line": 67, + "column": 12 + }, + "end": { + "line": 67, + "column": 16 + } + }, + "name": "form" + }, + "init": { + "type": "CallExpression", + "start": 1413, + "end": 1446, + "loc": { + "start": { + "line": 67, + "column": 19 + }, + "end": { + "line": 67, + "column": 52 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1413, + "end": 1436, + "loc": { + "start": { + "line": 67, + "column": 19 + }, + "end": { + "line": 67, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 1413, + "end": 1421, + "loc": { + "start": { + "line": 67, + "column": 19 + }, + "end": { + "line": 67, + "column": 27 + } + }, + "name": "document" + }, + "property": { + "type": "Identifier", + "start": 1422, + "end": 1436, + "loc": { + "start": { + "line": 67, + "column": 28 + }, + "end": { + "line": 67, + "column": 42 + } + }, + "name": "getElementById" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 1437, + "end": 1445, + "loc": { + "start": { + "line": 67, + "column": 43 + }, + "end": { + "line": 67, + "column": 51 + } + }, + "value": "upload", + "rawValue": "upload", + "raw": "'upload'" + } + ] + } + }, + { + "type": "VariableDeclarator", + "start": 1460, + "end": 1507, + "loc": { + "start": { + "line": 68, + "column": 12 + }, + "end": { + "line": 68, + "column": 59 + } + }, + "id": { + "type": "Identifier", + "start": 1460, + "end": 1464, + "loc": { + "start": { + "line": 68, + "column": 12 + }, + "end": { + "line": 68, + "column": 16 + } + }, + "name": "file" + }, + "init": { + "type": "MemberExpression", + "start": 1467, + "end": 1507, + "loc": { + "start": { + "line": 68, + "column": 19 + }, + "end": { + "line": 68, + "column": 59 + } + }, + "object": { + "type": "MemberExpression", + "start": 1467, + "end": 1504, + "loc": { + "start": { + "line": 68, + "column": 19 + }, + "end": { + "line": 68, + "column": 56 + } + }, + "object": { + "type": "CallExpression", + "start": 1467, + "end": 1498, + "loc": { + "start": { + "line": 68, + "column": 19 + }, + "end": { + "line": 68, + "column": 50 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1467, + "end": 1490, + "loc": { + "start": { + "line": 68, + "column": 19 + }, + "end": { + "line": 68, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 1467, + "end": 1475, + "loc": { + "start": { + "line": 68, + "column": 19 + }, + "end": { + "line": 68, + "column": 27 + } + }, + "name": "document" + }, + "property": { + "type": "Identifier", + "start": 1476, + "end": 1490, + "loc": { + "start": { + "line": 68, + "column": 28 + }, + "end": { + "line": 68, + "column": 42 + } + }, + "name": "getElementById" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 1491, + "end": 1497, + "loc": { + "start": { + "line": 68, + "column": 43 + }, + "end": { + "line": 68, + "column": 49 + } + }, + "value": "file", + "rawValue": "file", + "raw": "'file'" + } + ] + }, + "property": { + "type": "Identifier", + "start": 1499, + "end": 1504, + "loc": { + "start": { + "line": 68, + "column": 51 + }, + "end": { + "line": 68, + "column": 56 + } + }, + "name": "files" + }, + "computed": false + }, + "property": { + "type": "Literal", + "start": 1505, + "end": 1506, + "loc": { + "start": { + "line": 68, + "column": 57 + }, + "end": { + "line": 68, + "column": 58 + } + }, + "value": 0, + "rawValue": 0, + "raw": "0" + }, + "computed": true + } + }, + { + "type": "VariableDeclarator", + "start": 1521, + "end": 1542, + "loc": { + "start": { + "line": 69, + "column": 12 + }, + "end": { + "line": 69, + "column": 33 + } + }, + "id": { + "type": "Identifier", + "start": 1521, + "end": 1525, + "loc": { + "start": { + "line": 69, + "column": 12 + }, + "end": { + "line": 69, + "column": 16 + } + }, + "name": "data" + }, + "init": { + "type": "NewExpression", + "start": 1528, + "end": 1542, + "loc": { + "start": { + "line": 69, + "column": 19 + }, + "end": { + "line": 69, + "column": 33 + } + }, + "callee": { + "type": "Identifier", + "start": 1532, + "end": 1540, + "loc": { + "start": { + "line": 69, + "column": 23 + }, + "end": { + "line": 69, + "column": 31 + } + }, + "name": "FormData" + }, + "arguments": [] + } + } + ], + "kind": "let" + }, + { + "type": "ExpressionStatement", + "start": 1552, + "end": 1589, + "loc": { + "start": { + "line": 71, + "column": 8 + }, + "end": { + "line": 71, + "column": 45 + } + }, + "expression": { + "type": "CallExpression", + "start": 1552, + "end": 1589, + "loc": { + "start": { + "line": 71, + "column": 8 + }, + "end": { + "line": 71, + "column": 45 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1552, + "end": 1563, + "loc": { + "start": { + "line": 71, + "column": 8 + }, + "end": { + "line": 71, + "column": 19 + } + }, + "object": { + "type": "Identifier", + "start": 1552, + "end": 1556, + "loc": { + "start": { + "line": 71, + "column": 8 + }, + "end": { + "line": 71, + "column": 12 + } + }, + "name": "data" + }, + "property": { + "type": "Identifier", + "start": 1557, + "end": 1563, + "loc": { + "start": { + "line": 71, + "column": 13 + }, + "end": { + "line": 71, + "column": 19 + } + }, + "name": "append" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 1564, + "end": 1571, + "loc": { + "start": { + "line": 71, + "column": 20 + }, + "end": { + "line": 71, + "column": 27 + } + }, + "value": "image", + "rawValue": "image", + "raw": "'image'" + }, + { + "type": "Identifier", + "start": 1573, + "end": 1577, + "loc": { + "start": { + "line": 71, + "column": 29 + }, + "end": { + "line": 71, + "column": 33 + } + }, + "name": "file" + }, + { + "type": "MemberExpression", + "start": 1579, + "end": 1588, + "loc": { + "start": { + "line": 71, + "column": 35 + }, + "end": { + "line": 71, + "column": 44 + } + }, + "object": { + "type": "Identifier", + "start": 1579, + "end": 1583, + "loc": { + "start": { + "line": 71, + "column": 35 + }, + "end": { + "line": 71, + "column": 39 + } + }, + "name": "file" + }, + "property": { + "type": "Identifier", + "start": 1584, + "end": 1588, + "loc": { + "start": { + "line": 71, + "column": 40 + }, + "end": { + "line": 71, + "column": 44 + } + }, + "name": "name" + }, + "computed": false + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 1599, + "end": 1641, + "loc": { + "start": { + "line": 73, + "column": 8 + }, + "end": { + "line": 73, + "column": 50 + } + }, + "expression": { + "type": "CallExpression", + "start": 1599, + "end": 1641, + "loc": { + "start": { + "line": 73, + "column": 8 + }, + "end": { + "line": 73, + "column": 50 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1599, + "end": 1610, + "loc": { + "start": { + "line": 73, + "column": 8 + }, + "end": { + "line": 73, + "column": 19 + } + }, + "object": { + "type": "Identifier", + "start": 1599, + "end": 1603, + "loc": { + "start": { + "line": 73, + "column": 8 + }, + "end": { + "line": 73, + "column": 12 + } + }, + "name": "data" + }, + "property": { + "type": "Identifier", + "start": 1604, + "end": 1610, + "loc": { + "start": { + "line": 73, + "column": 13 + }, + "end": { + "line": 73, + "column": 19 + } + }, + "name": "append" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 1611, + "end": 1620, + "loc": { + "start": { + "line": 73, + "column": 20 + }, + "end": { + "line": 73, + "column": 29 + } + }, + "value": "user_id", + "rawValue": "user_id", + "raw": "'user_id'" + }, + { + "type": "MemberExpression", + "start": 1622, + "end": 1640, + "loc": { + "start": { + "line": 73, + "column": 31 + }, + "end": { + "line": 73, + "column": 49 + } + }, + "object": { + "type": "MemberExpression", + "start": 1622, + "end": 1637, + "loc": { + "start": { + "line": 73, + "column": 31 + }, + "end": { + "line": 73, + "column": 46 + } + }, + "object": { + "type": "MemberExpression", + "start": 1622, + "end": 1632, + "loc": { + "start": { + "line": 73, + "column": 31 + }, + "end": { + "line": 73, + "column": 41 + } + }, + "object": { + "type": "ThisExpression", + "start": 1622, + "end": 1626, + "loc": { + "start": { + "line": 73, + "column": 31 + }, + "end": { + "line": 73, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "start": 1627, + "end": 1632, + "loc": { + "start": { + "line": 73, + "column": 36 + }, + "end": { + "line": 73, + "column": 41 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1633, + "end": 1637, + "loc": { + "start": { + "line": 73, + "column": 42 + }, + "end": { + "line": 73, + "column": 46 + } + }, + "name": "user" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1638, + "end": 1640, + "loc": { + "start": { + "line": 73, + "column": 47 + }, + "end": { + "line": 73, + "column": 49 + } + }, + "name": "id" + }, + "computed": false + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 1650, + "end": 1692, + "loc": { + "start": { + "line": 74, + "column": 8 + }, + "end": { + "line": 74, + "column": 50 + } + }, + "expression": { + "type": "CallExpression", + "start": 1650, + "end": 1692, + "loc": { + "start": { + "line": 74, + "column": 8 + }, + "end": { + "line": 74, + "column": 50 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1650, + "end": 1661, + "loc": { + "start": { + "line": 74, + "column": 8 + }, + "end": { + "line": 74, + "column": 19 + } + }, + "object": { + "type": "Identifier", + "start": 1650, + "end": 1654, + "loc": { + "start": { + "line": 74, + "column": 8 + }, + "end": { + "line": 74, + "column": 12 + } + }, + "name": "data" + }, + "property": { + "type": "Identifier", + "start": 1655, + "end": 1661, + "loc": { + "start": { + "line": 74, + "column": 13 + }, + "end": { + "line": 74, + "column": 19 + } + }, + "name": "append" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 1662, + "end": 1671, + "loc": { + "start": { + "line": 74, + "column": 20 + }, + "end": { + "line": 74, + "column": 29 + } + }, + "value": "caption", + "rawValue": "caption", + "raw": "'caption'" + }, + { + "type": "MemberExpression", + "start": 1673, + "end": 1691, + "loc": { + "start": { + "line": 74, + "column": 31 + }, + "end": { + "line": 74, + "column": 49 + } + }, + "object": { + "type": "MemberExpression", + "start": 1673, + "end": 1683, + "loc": { + "start": { + "line": 74, + "column": 31 + }, + "end": { + "line": 74, + "column": 41 + } + }, + "object": { + "type": "ThisExpression", + "start": 1673, + "end": 1677, + "loc": { + "start": { + "line": 74, + "column": 31 + }, + "end": { + "line": 74, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "start": 1678, + "end": 1683, + "loc": { + "start": { + "line": 74, + "column": 36 + }, + "end": { + "line": 74, + "column": 41 + } + }, + "name": "state" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1684, + "end": 1691, + "loc": { + "start": { + "line": 74, + "column": 42 + }, + "end": { + "line": 74, + "column": 49 + } + }, + "name": "caption" + }, + "computed": false + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 1701, + "end": 1745, + "loc": { + "start": { + "line": 75, + "column": 8 + }, + "end": { + "line": 75, + "column": 52 + } + }, + "expression": { + "type": "CallExpression", + "start": 1701, + "end": 1745, + "loc": { + "start": { + "line": 75, + "column": 8 + }, + "end": { + "line": 75, + "column": 52 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1701, + "end": 1712, + "loc": { + "start": { + "line": 75, + "column": 8 + }, + "end": { + "line": 75, + "column": 19 + } + }, + "object": { + "type": "Identifier", + "start": 1701, + "end": 1705, + "loc": { + "start": { + "line": 75, + "column": 8 + }, + "end": { + "line": 75, + "column": 12 + } + }, + "name": "data" + }, + "property": { + "type": "Identifier", + "start": 1706, + "end": 1712, + "loc": { + "start": { + "line": 75, + "column": 13 + }, + "end": { + "line": 75, + "column": 19 + } + }, + "name": "append" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 1713, + "end": 1723, + "loc": { + "start": { + "line": 75, + "column": 20 + }, + "end": { + "line": 75, + "column": 30 + } + }, + "value": "hashtags", + "rawValue": "hashtags", + "raw": "'hashtags'" + }, + { + "type": "MemberExpression", + "start": 1725, + "end": 1744, + "loc": { + "start": { + "line": 75, + "column": 32 + }, + "end": { + "line": 75, + "column": 51 + } + }, + "object": { + "type": "MemberExpression", + "start": 1725, + "end": 1735, + "loc": { + "start": { + "line": 75, + "column": 32 + }, + "end": { + "line": 75, + "column": 42 + } + }, + "object": { + "type": "ThisExpression", + "start": 1725, + "end": 1729, + "loc": { + "start": { + "line": 75, + "column": 32 + }, + "end": { + "line": 75, + "column": 36 + } + } + }, + "property": { + "type": "Identifier", + "start": 1730, + "end": 1735, + "loc": { + "start": { + "line": 75, + "column": 37 + }, + "end": { + "line": 75, + "column": 42 + } + }, + "name": "state" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1736, + "end": 1744, + "loc": { + "start": { + "line": 75, + "column": 43 + }, + "end": { + "line": 75, + "column": 51 + } + }, + "name": "hashtags" + }, + "computed": false + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 1754, + "end": 1798, + "loc": { + "start": { + "line": 76, + "column": 8 + }, + "end": { + "line": 76, + "column": 52 + } + }, + "expression": { + "type": "CallExpression", + "start": 1754, + "end": 1798, + "loc": { + "start": { + "line": 76, + "column": 8 + }, + "end": { + "line": 76, + "column": 52 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1754, + "end": 1765, + "loc": { + "start": { + "line": 76, + "column": 8 + }, + "end": { + "line": 76, + "column": 19 + } + }, + "object": { + "type": "Identifier", + "start": 1754, + "end": 1758, + "loc": { + "start": { + "line": 76, + "column": 8 + }, + "end": { + "line": 76, + "column": 12 + } + }, + "name": "data" + }, + "property": { + "type": "Identifier", + "start": 1759, + "end": 1765, + "loc": { + "start": { + "line": 76, + "column": 13 + }, + "end": { + "line": 76, + "column": 19 + } + }, + "name": "append" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 1766, + "end": 1776, + "loc": { + "start": { + "line": 76, + "column": 20 + }, + "end": { + "line": 76, + "column": 30 + } + }, + "value": "location", + "rawValue": "location", + "raw": "'location'" + }, + { + "type": "MemberExpression", + "start": 1778, + "end": 1797, + "loc": { + "start": { + "line": 76, + "column": 32 + }, + "end": { + "line": 76, + "column": 51 + } + }, + "object": { + "type": "MemberExpression", + "start": 1778, + "end": 1788, + "loc": { + "start": { + "line": 76, + "column": 32 + }, + "end": { + "line": 76, + "column": 42 + } + }, + "object": { + "type": "ThisExpression", + "start": 1778, + "end": 1782, + "loc": { + "start": { + "line": 76, + "column": 32 + }, + "end": { + "line": 76, + "column": 36 + } + } + }, + "property": { + "type": "Identifier", + "start": 1783, + "end": 1788, + "loc": { + "start": { + "line": 76, + "column": 37 + }, + "end": { + "line": 76, + "column": 42 + } + }, + "name": "state" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1789, + "end": 1797, + "loc": { + "start": { + "line": 76, + "column": 43 + }, + "end": { + "line": 76, + "column": 51 + } + }, + "name": "location" + }, + "computed": false + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 1808, + "end": 1854, + "loc": { + "start": { + "line": 78, + "column": 8 + }, + "end": { + "line": 78, + "column": 54 + } + }, + "expression": { + "type": "CallExpression", + "start": 1808, + "end": 1854, + "loc": { + "start": { + "line": 78, + "column": 8 + }, + "end": { + "line": 78, + "column": 54 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1808, + "end": 1821, + "loc": { + "start": { + "line": 78, + "column": 8 + }, + "end": { + "line": 78, + "column": 21 + } + }, + "object": { + "type": "ThisExpression", + "start": 1808, + "end": 1812, + "loc": { + "start": { + "line": 78, + "column": 8 + }, + "end": { + "line": 78, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 1813, + "end": 1821, + "loc": { + "start": { + "line": 78, + "column": 13 + }, + "end": { + "line": 78, + "column": 21 + } + }, + "name": "setState" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 1822, + "end": 1853, + "loc": { + "start": { + "line": 78, + "column": 22 + }, + "end": { + "line": 78, + "column": 53 + } + }, + "properties": [ + { + "type": "Property", + "start": 1824, + "end": 1851, + "loc": { + "start": { + "line": 78, + "column": 24 + }, + "end": { + "line": 78, + "column": 51 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1824, + "end": 1835, + "loc": { + "start": { + "line": 78, + "column": 24 + }, + "end": { + "line": 78, + "column": 35 + } + }, + "name": "uploadState" + }, + "value": { + "type": "Literal", + "start": 1837, + "end": 1851, + "loc": { + "start": { + "line": 78, + "column": 37 + }, + "end": { + "line": 78, + "column": 51 + } + }, + "value": "Uploading...", + "rawValue": "Uploading...", + "raw": "'Uploading...'" + }, + "kind": "init" + } + ] + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 1863, + "end": 1907, + "loc": { + "start": { + "line": 79, + "column": 8 + }, + "end": { + "line": 79, + "column": 52 + } + }, + "expression": { + "type": "CallExpression", + "start": 1863, + "end": 1907, + "loc": { + "start": { + "line": 79, + "column": 8 + }, + "end": { + "line": 79, + "column": 52 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1863, + "end": 1876, + "loc": { + "start": { + "line": 79, + "column": 8 + }, + "end": { + "line": 79, + "column": 21 + } + }, + "object": { + "type": "ThisExpression", + "start": 1863, + "end": 1867, + "loc": { + "start": { + "line": 79, + "column": 8 + }, + "end": { + "line": 79, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 1868, + "end": 1876, + "loc": { + "start": { + "line": 79, + "column": 13 + }, + "end": { + "line": 79, + "column": 21 + } + }, + "name": "setState" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 1877, + "end": 1906, + "loc": { + "start": { + "line": 79, + "column": 22 + }, + "end": { + "line": 79, + "column": 51 + } + }, + "properties": [ + { + "type": "Property", + "start": 1879, + "end": 1904, + "loc": { + "start": { + "line": 79, + "column": 24 + }, + "end": { + "line": 79, + "column": 49 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1879, + "end": 1898, + "loc": { + "start": { + "line": 79, + "column": 24 + }, + "end": { + "line": 79, + "column": 43 + } + }, + "name": "disabledUploadState" + }, + "value": { + "type": "Literal", + "start": 1900, + "end": 1904, + "loc": { + "start": { + "line": 79, + "column": 45 + }, + "end": { + "line": 79, + "column": 49 + } + }, + "value": true, + "rawValue": true, + "raw": "true" + }, + "kind": "init" + } + ] + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 1917, + "end": 2528, + "loc": { + "start": { + "line": 81, + "column": 8 + }, + "end": { + "line": 96, + "column": 14 + } + }, + "expression": { + "type": "CallExpression", + "start": 1917, + "end": 2528, + "loc": { + "start": { + "line": 81, + "column": 8 + }, + "end": { + "line": 96, + "column": 14 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1917, + "end": 2335, + "loc": { + "start": { + "line": 81, + "column": 8 + }, + "end": { + "line": 91, + "column": 18 + } + }, + "object": { + "type": "CallExpression", + "start": 1917, + "end": 2316, + "loc": { + "start": { + "line": 81, + "column": 8 + }, + "end": { + "line": 90, + "column": 14 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1917, + "end": 2106, + "loc": { + "start": { + "line": 81, + "column": 8 + }, + "end": { + "line": 86, + "column": 17 + } + }, + "object": { + "type": "CallExpression", + "start": 1917, + "end": 2088, + "loc": { + "start": { + "line": 81, + "column": 8 + }, + "end": { + "line": 85, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1917, + "end": 1927, + "loc": { + "start": { + "line": 81, + "column": 8 + }, + "end": { + "line": 81, + "column": 18 + } + }, + "object": { + "type": "Identifier", + "start": 1917, + "end": 1922, + "loc": { + "start": { + "line": 81, + "column": 8 + }, + "end": { + "line": 81, + "column": 13 + } + }, + "name": "axios" + }, + "property": { + "type": "Identifier", + "start": 1923, + "end": 1927, + "loc": { + "start": { + "line": 81, + "column": 14 + }, + "end": { + "line": 81, + "column": 18 + } + }, + "name": "post" + }, + "computed": false + }, + "arguments": [ + { + "type": "TemplateLiteral", + "start": 1928, + "end": 1959, + "loc": { + "start": { + "line": 81, + "column": 19 + }, + "end": { + "line": 81, + "column": 50 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 1931, + "end": 1949, + "loc": { + "start": { + "line": 81, + "column": 22 + }, + "end": { + "line": 81, + "column": 40 + } + }, + "object": { + "type": "MemberExpression", + "start": 1931, + "end": 1941, + "loc": { + "start": { + "line": 81, + "column": 22 + }, + "end": { + "line": 81, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 1931, + "end": 1937, + "loc": { + "start": { + "line": 81, + "column": 22 + }, + "end": { + "line": 81, + "column": 28 + } + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 1938, + "end": 1941, + "loc": { + "start": { + "line": 81, + "column": 29 + }, + "end": { + "line": 81, + "column": 32 + } + }, + "name": "api" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1942, + "end": 1949, + "loc": { + "start": { + "line": 81, + "column": 33 + }, + "end": { + "line": 81, + "column": 40 + } + }, + "name": "baseUrl" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 1929, + "end": 1929, + "loc": { + "start": { + "line": 81, + "column": 20 + }, + "end": { + "line": 81, + "column": 20 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 1950, + "end": 1958, + "loc": { + "start": { + "line": 81, + "column": 41 + }, + "end": { + "line": 81, + "column": 49 + } + }, + "value": { + "raw": "/uploads", + "cooked": "/uploads" + }, + "tail": true + } + ] + }, + { + "type": "Identifier", + "start": 1961, + "end": 1965, + "loc": { + "start": { + "line": 81, + "column": 52 + }, + "end": { + "line": 81, + "column": 56 + } + }, + "name": "data" + }, + { + "type": "ObjectExpression", + "start": 1967, + "end": 2087, + "loc": { + "start": { + "line": 81, + "column": 58 + }, + "end": { + "line": 85, + "column": 9 + } + }, + "properties": [ + { + "type": "Property", + "start": 1981, + "end": 2076, + "loc": { + "start": { + "line": 82, + "column": 12 + }, + "end": { + "line": 84, + "column": 13 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1981, + "end": 1988, + "loc": { + "start": { + "line": 82, + "column": 12 + }, + "end": { + "line": 82, + "column": 19 + } + }, + "name": "headers" + }, + "value": { + "type": "ObjectExpression", + "start": 1990, + "end": 2076, + "loc": { + "start": { + "line": 82, + "column": 21 + }, + "end": { + "line": 84, + "column": 13 + } + }, + "properties": [ + { + "type": "Property", + "start": 2008, + "end": 2062, + "loc": { + "start": { + "line": 83, + "column": 16 + }, + "end": { + "line": 83, + "column": 70 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2008, + "end": 2021, + "loc": { + "start": { + "line": 83, + "column": 16 + }, + "end": { + "line": 83, + "column": 29 + } + }, + "name": "Authorization" + }, + "value": { + "type": "TemplateLiteral", + "start": 2023, + "end": 2062, + "loc": { + "start": { + "line": 83, + "column": 31 + }, + "end": { + "line": 83, + "column": 70 + } + }, + "expressions": [ + { + "type": "CallExpression", + "start": 2033, + "end": 2060, + "loc": { + "start": { + "line": 83, + "column": 41 + }, + "end": { + "line": 83, + "column": 68 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2033, + "end": 2053, + "loc": { + "start": { + "line": 83, + "column": 41 + }, + "end": { + "line": 83, + "column": 61 + } + }, + "object": { + "type": "Identifier", + "start": 2033, + "end": 2045, + "loc": { + "start": { + "line": 83, + "column": 41 + }, + "end": { + "line": 83, + "column": 53 + } + }, + "name": "localStorage" + }, + "property": { + "type": "Identifier", + "start": 2046, + "end": 2053, + "loc": { + "start": { + "line": 83, + "column": 54 + }, + "end": { + "line": 83, + "column": 61 + } + }, + "name": "getItem" + }, + "computed": false + }, + "arguments": [ + { + "type": "Literal", + "start": 2054, + "end": 2059, + "loc": { + "start": { + "line": 83, + "column": 62 + }, + "end": { + "line": 83, + "column": 67 + } + }, + "value": "jwt", + "rawValue": "jwt", + "raw": "'jwt'" + } + ] + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 2024, + "end": 2031, + "loc": { + "start": { + "line": 83, + "column": 32 + }, + "end": { + "line": 83, + "column": 39 + } + }, + "value": { + "raw": "Bearer ", + "cooked": "Bearer " + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 2061, + "end": 2061, + "loc": { + "start": { + "line": 83, + "column": 69 + }, + "end": { + "line": 83, + "column": 69 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + }, + "kind": "init" + } + ] + }, + "kind": "init" + } + ] + } + ] + }, + "property": { + "type": "Identifier", + "start": 2102, + "end": 2106, + "loc": { + "start": { + "line": 86, + "column": 13 + }, + "end": { + "line": 86, + "column": 17 + } + }, + "name": "then" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 2107, + "end": 2315, + "loc": { + "start": { + "line": 86, + "column": 18 + }, + "end": { + "line": 90, + "column": 13 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2107, + "end": 2110, + "loc": { + "start": { + "line": 86, + "column": 18 + }, + "end": { + "line": 86, + "column": 21 + } + }, + "name": "res" + } + ], + "body": { + "type": "BlockStatement", + "start": 2114, + "end": 2315, + "loc": { + "start": { + "line": 86, + "column": 25 + }, + "end": { + "line": 90, + "column": 13 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 2132, + "end": 2180, + "loc": { + "start": { + "line": 87, + "column": 16 + }, + "end": { + "line": 87, + "column": 64 + } + }, + "expression": { + "type": "CallExpression", + "start": 2132, + "end": 2180, + "loc": { + "start": { + "line": 87, + "column": 16 + }, + "end": { + "line": 87, + "column": 64 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2132, + "end": 2151, + "loc": { + "start": { + "line": 87, + "column": 16 + }, + "end": { + "line": 87, + "column": 35 + } + }, + "object": { + "type": "MemberExpression", + "start": 2132, + "end": 2142, + "loc": { + "start": { + "line": 87, + "column": 16 + }, + "end": { + "line": 87, + "column": 26 + } + }, + "object": { + "type": "ThisExpression", + "start": 2132, + "end": 2136, + "loc": { + "start": { + "line": 87, + "column": 16 + }, + "end": { + "line": 87, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "start": 2137, + "end": 2142, + "loc": { + "start": { + "line": 87, + "column": 21 + }, + "end": { + "line": 87, + "column": 26 + } + }, + "name": "props" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2143, + "end": 2151, + "loc": { + "start": { + "line": 87, + "column": 27 + }, + "end": { + "line": 87, + "column": 35 + } + }, + "name": "dispatch" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 2152, + "end": 2179, + "loc": { + "start": { + "line": 87, + "column": 36 + }, + "end": { + "line": 87, + "column": 63 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2152, + "end": 2169, + "loc": { + "start": { + "line": 87, + "column": 36 + }, + "end": { + "line": 87, + "column": 53 + } + }, + "object": { + "type": "Identifier", + "start": 2152, + "end": 2165, + "loc": { + "start": { + "line": 87, + "column": 36 + }, + "end": { + "line": 87, + "column": 49 + } + }, + "name": "PhotosActions" + }, + "property": { + "type": "Identifier", + "start": 2166, + "end": 2169, + "loc": { + "start": { + "line": 87, + "column": 50 + }, + "end": { + "line": 87, + "column": 53 + } + }, + "name": "add" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 2170, + "end": 2178, + "loc": { + "start": { + "line": 87, + "column": 54 + }, + "end": { + "line": 87, + "column": 62 + } + }, + "object": { + "type": "Identifier", + "start": 2170, + "end": 2173, + "loc": { + "start": { + "line": 87, + "column": 54 + }, + "end": { + "line": 87, + "column": 57 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 2174, + "end": 2178, + "loc": { + "start": { + "line": 87, + "column": 58 + }, + "end": { + "line": 87, + "column": 62 + } + }, + "name": "data" + }, + "computed": false + } + ] + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 2197, + "end": 2239, + "loc": { + "start": { + "line": 88, + "column": 16 + }, + "end": { + "line": 88, + "column": 58 + } + }, + "expression": { + "type": "CallExpression", + "start": 2197, + "end": 2239, + "loc": { + "start": { + "line": 88, + "column": 16 + }, + "end": { + "line": 88, + "column": 58 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2197, + "end": 2210, + "loc": { + "start": { + "line": 88, + "column": 16 + }, + "end": { + "line": 88, + "column": 29 + } + }, + "object": { + "type": "ThisExpression", + "start": 2197, + "end": 2201, + "loc": { + "start": { + "line": 88, + "column": 16 + }, + "end": { + "line": 88, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "start": 2202, + "end": 2210, + "loc": { + "start": { + "line": 88, + "column": 21 + }, + "end": { + "line": 88, + "column": 29 + } + }, + "name": "setState" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 2211, + "end": 2238, + "loc": { + "start": { + "line": 88, + "column": 30 + }, + "end": { + "line": 88, + "column": 57 + } + }, + "properties": [ + { + "type": "Property", + "start": 2213, + "end": 2236, + "loc": { + "start": { + "line": 88, + "column": 32 + }, + "end": { + "line": 88, + "column": 55 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2213, + "end": 2224, + "loc": { + "start": { + "line": 88, + "column": 32 + }, + "end": { + "line": 88, + "column": 43 + } + }, + "name": "uploadState" + }, + "value": { + "type": "Literal", + "start": 2226, + "end": 2236, + "loc": { + "start": { + "line": 88, + "column": 45 + }, + "end": { + "line": 88, + "column": 55 + } + }, + "value": "Success!", + "rawValue": "Success!", + "raw": "'Success!'" + }, + "kind": "init" + } + ] + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 2256, + "end": 2301, + "loc": { + "start": { + "line": 89, + "column": 16 + }, + "end": { + "line": 89, + "column": 61 + } + }, + "expression": { + "type": "CallExpression", + "start": 2256, + "end": 2301, + "loc": { + "start": { + "line": 89, + "column": 16 + }, + "end": { + "line": 89, + "column": 61 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2256, + "end": 2275, + "loc": { + "start": { + "line": 89, + "column": 16 + }, + "end": { + "line": 89, + "column": 35 + } + }, + "object": { + "type": "Identifier", + "start": 2256, + "end": 2270, + "loc": { + "start": { + "line": 89, + "column": 16 + }, + "end": { + "line": 89, + "column": 30 + } + }, + "name": "browserHistory" + }, + "property": { + "type": "Identifier", + "start": 2271, + "end": 2275, + "loc": { + "start": { + "line": 89, + "column": 31 + }, + "end": { + "line": 89, + "column": 35 + } + }, + "name": "push" + }, + "computed": false + }, + "arguments": [ + { + "type": "BinaryExpression", + "start": 2276, + "end": 2300, + "loc": { + "start": { + "line": 89, + "column": 36 + }, + "end": { + "line": 89, + "column": 60 + } + }, + "left": { + "type": "Literal", + "start": 2276, + "end": 2286, + "loc": { + "start": { + "line": 89, + "column": 36 + }, + "end": { + "line": 89, + "column": 46 + } + }, + "value": "/photos/", + "rawValue": "/photos/", + "raw": "'/photos/'" + }, + "operator": "+", + "right": { + "type": "MemberExpression", + "start": 2289, + "end": 2300, + "loc": { + "start": { + "line": 89, + "column": 49 + }, + "end": { + "line": 89, + "column": 60 + } + }, + "object": { + "type": "MemberExpression", + "start": 2289, + "end": 2297, + "loc": { + "start": { + "line": 89, + "column": 49 + }, + "end": { + "line": 89, + "column": 57 + } + }, + "object": { + "type": "Identifier", + "start": 2289, + "end": 2292, + "loc": { + "start": { + "line": 89, + "column": 49 + }, + "end": { + "line": 89, + "column": 52 + } + }, + "name": "res" + }, + "property": { + "type": "Identifier", + "start": 2293, + "end": 2297, + "loc": { + "start": { + "line": 89, + "column": 53 + }, + "end": { + "line": 89, + "column": 57 + } + }, + "name": "data" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2298, + "end": 2300, + "loc": { + "start": { + "line": 89, + "column": 58 + }, + "end": { + "line": 89, + "column": 60 + } + }, + "name": "id" + }, + "computed": false + } + } + ] + } + } + ] + } + } + ] + }, + "property": { + "type": "Identifier", + "start": 2330, + "end": 2335, + "loc": { + "start": { + "line": 91, + "column": 13 + }, + "end": { + "line": 91, + "column": 18 + } + }, + "name": "catch" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 2336, + "end": 2527, + "loc": { + "start": { + "line": 91, + "column": 19 + }, + "end": { + "line": 96, + "column": 13 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2336, + "end": 2339, + "loc": { + "start": { + "line": 91, + "column": 19 + }, + "end": { + "line": 91, + "column": 22 + } + }, + "name": "res" + } + ], + "body": { + "type": "BlockStatement", + "start": 2343, + "end": 2527, + "loc": { + "start": { + "line": 91, + "column": 26 + }, + "end": { + "line": 96, + "column": 13 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 2361, + "end": 2513, + "loc": { + "start": { + "line": 92, + "column": 16 + }, + "end": { + "line": 95, + "column": 18 + } + }, + "expression": { + "type": "CallExpression", + "start": 2361, + "end": 2513, + "loc": { + "start": { + "line": 92, + "column": 16 + }, + "end": { + "line": 95, + "column": 18 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2361, + "end": 2374, + "loc": { + "start": { + "line": 92, + "column": 16 + }, + "end": { + "line": 92, + "column": 29 + } + }, + "object": { + "type": "ThisExpression", + "start": 2361, + "end": 2365, + "loc": { + "start": { + "line": 92, + "column": 16 + }, + "end": { + "line": 92, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "start": 2366, + "end": 2374, + "loc": { + "start": { + "line": 92, + "column": 21 + }, + "end": { + "line": 92, + "column": 29 + } + }, + "name": "setState" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 2375, + "end": 2512, + "loc": { + "start": { + "line": 92, + "column": 30 + }, + "end": { + "line": 95, + "column": 17 + } + }, + "properties": [ + { + "type": "Property", + "start": 2397, + "end": 2445, + "loc": { + "start": { + "line": 93, + "column": 20 + }, + "end": { + "line": 93, + "column": 68 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2397, + "end": 2408, + "loc": { + "start": { + "line": 93, + "column": 20 + }, + "end": { + "line": 93, + "column": 31 + } + }, + "name": "uploadState" + }, + "value": { + "type": "Literal", + "start": 2410, + "end": 2445, + "loc": { + "start": { + "line": 93, + "column": 33 + }, + "end": { + "line": 93, + "column": 68 + } + }, + "value": "Error! Please click to try again.", + "rawValue": "Error! Please click to try again.", + "raw": "'Error! Please click to try again.'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 2467, + "end": 2493, + "loc": { + "start": { + "line": 94, + "column": 20 + }, + "end": { + "line": 94, + "column": 46 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2467, + "end": 2486, + "loc": { + "start": { + "line": 94, + "column": 20 + }, + "end": { + "line": 94, + "column": 39 + } + }, + "name": "disabledUploadState" + }, + "value": { + "type": "Literal", + "start": 2488, + "end": 2493, + "loc": { + "start": { + "line": 94, + "column": 41 + }, + "end": { + "line": 94, + "column": 46 + } + }, + "value": false, + "rawValue": false, + "raw": "false" + }, + "kind": "init" + } + ] + } + ] + } + } + ] + } + } + ] + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * handleSubmit\n * @param e event\n ", + "start": 1283, + "end": 1336, + "loc": { + "start": { + "line": 59, + "column": 4 + }, + "end": { + "line": 62, + "column": 7 + } + }, + "range": [ + 1283, + 1336 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * handleChange\n * @param e event\n ", + "start": 2541, + "end": 2594, + "loc": { + "start": { + "line": 100, + "column": 4 + }, + "end": { + "line": 103, + "column": 7 + } + }, + "range": [ + 2541, + 2594 + ] + } + ] + }, + { + "type": "Identifier", + "start": 2599, + "end": 2784, + "loc": { + "start": { + "line": 104, + "column": 4 + }, + "end": { + "line": 113, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 2599, + "end": 2611, + "loc": { + "start": { + "line": 104, + "column": 4 + }, + "end": { + "line": 104, + "column": 16 + } + }, + "name": "handleChange", + "leadingComments": null + }, + "static": false, + "value": { + "type": "ArrowFunctionExpression", + "start": 2614, + "end": 2784, + "loc": { + "start": { + "line": 104, + "column": 19 + }, + "end": { + "line": 113, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2615, + "end": 2616, + "loc": { + "start": { + "line": 104, + "column": 20 + }, + "end": { + "line": 104, + "column": 21 + } + }, + "name": "e" + } + ], + "body": { + "type": "BlockStatement", + "start": 2621, + "end": 2784, + "loc": { + "start": { + "line": 104, + "column": 26 + }, + "end": { + "line": 113, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 2632, + "end": 2650, + "loc": { + "start": { + "line": 106, + "column": 8 + }, + "end": { + "line": 106, + "column": 26 + } + }, + "expression": { + "type": "CallExpression", + "start": 2632, + "end": 2650, + "loc": { + "start": { + "line": 106, + "column": 8 + }, + "end": { + "line": 106, + "column": 26 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2632, + "end": 2648, + "loc": { + "start": { + "line": 106, + "column": 8 + }, + "end": { + "line": 106, + "column": 24 + } + }, + "object": { + "type": "Identifier", + "start": 2632, + "end": 2633, + "loc": { + "start": { + "line": 106, + "column": 8 + }, + "end": { + "line": 106, + "column": 9 + } + }, + "name": "e" + }, + "property": { + "type": "Identifier", + "start": 2634, + "end": 2648, + "loc": { + "start": { + "line": 106, + "column": 10 + }, + "end": { + "line": 106, + "column": 24 + } + }, + "name": "preventDefault" + }, + "computed": false + }, + "arguments": [] + } + }, + { + "type": "VariableDeclaration", + "start": 2660, + "end": 2729, + "loc": { + "start": { + "line": 108, + "column": 8 + }, + "end": { + "line": 109, + "column": 38 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 2664, + "end": 2689, + "loc": { + "start": { + "line": 108, + "column": 12 + }, + "end": { + "line": 108, + "column": 37 + } + }, + "id": { + "type": "Identifier", + "start": 2664, + "end": 2670, + "loc": { + "start": { + "line": 108, + "column": 12 + }, + "end": { + "line": 108, + "column": 18 + } + }, + "name": "reader" + }, + "init": { + "type": "NewExpression", + "start": 2673, + "end": 2689, + "loc": { + "start": { + "line": 108, + "column": 21 + }, + "end": { + "line": 108, + "column": 37 + } + }, + "callee": { + "type": "Identifier", + "start": 2677, + "end": 2687, + "loc": { + "start": { + "line": 108, + "column": 25 + }, + "end": { + "line": 108, + "column": 35 + } + }, + "name": "FileReader" + }, + "arguments": [] + } + }, + { + "type": "VariableDeclarator", + "start": 2703, + "end": 2729, + "loc": { + "start": { + "line": 109, + "column": 12 + }, + "end": { + "line": 109, + "column": 38 + } + }, + "id": { + "type": "Identifier", + "start": 2703, + "end": 2707, + "loc": { + "start": { + "line": 109, + "column": 12 + }, + "end": { + "line": 109, + "column": 16 + } + }, + "name": "file" + }, + "init": { + "type": "MemberExpression", + "start": 2712, + "end": 2729, + "loc": { + "start": { + "line": 109, + "column": 21 + }, + "end": { + "line": 109, + "column": 38 + } + }, + "object": { + "type": "MemberExpression", + "start": 2712, + "end": 2726, + "loc": { + "start": { + "line": 109, + "column": 21 + }, + "end": { + "line": 109, + "column": 35 + } + }, + "object": { + "type": "MemberExpression", + "start": 2712, + "end": 2720, + "loc": { + "start": { + "line": 109, + "column": 21 + }, + "end": { + "line": 109, + "column": 29 + } + }, + "object": { + "type": "Identifier", + "start": 2712, + "end": 2713, + "loc": { + "start": { + "line": 109, + "column": 21 + }, + "end": { + "line": 109, + "column": 22 + } + }, + "name": "e" + }, + "property": { + "type": "Identifier", + "start": 2714, + "end": 2720, + "loc": { + "start": { + "line": 109, + "column": 23 + }, + "end": { + "line": 109, + "column": 29 + } + }, + "name": "target" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2721, + "end": 2726, + "loc": { + "start": { + "line": 109, + "column": 30 + }, + "end": { + "line": 109, + "column": 35 + } + }, + "name": "files" + }, + "computed": false + }, + "property": { + "type": "Literal", + "start": 2727, + "end": 2728, + "loc": { + "start": { + "line": 109, + "column": 36 + }, + "end": { + "line": 109, + "column": 37 + } + }, + "value": 0, + "rawValue": 0, + "raw": "0" + }, + "computed": true + } + } + ], + "kind": "let" + }, + { + "type": "ExpressionStatement", + "start": 2739, + "end": 2777, + "loc": { + "start": { + "line": 111, + "column": 8 + }, + "end": { + "line": 111, + "column": 46 + } + }, + "expression": { + "type": "CallExpression", + "start": 2739, + "end": 2777, + "loc": { + "start": { + "line": 111, + "column": 8 + }, + "end": { + "line": 111, + "column": 46 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2739, + "end": 2752, + "loc": { + "start": { + "line": 111, + "column": 8 + }, + "end": { + "line": 111, + "column": 21 + } + }, + "object": { + "type": "ThisExpression", + "start": 2739, + "end": 2743, + "loc": { + "start": { + "line": 111, + "column": 8 + }, + "end": { + "line": 111, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 2744, + "end": 2752, + "loc": { + "start": { + "line": 111, + "column": 13 + }, + "end": { + "line": 111, + "column": 21 + } + }, + "name": "setState" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 2753, + "end": 2776, + "loc": { + "start": { + "line": 111, + "column": 22 + }, + "end": { + "line": 111, + "column": 45 + } + }, + "properties": [ + { + "type": "Property", + "start": 2755, + "end": 2774, + "loc": { + "start": { + "line": 111, + "column": 24 + }, + "end": { + "line": 111, + "column": 43 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2755, + "end": 2763, + "loc": { + "start": { + "line": 111, + "column": 24 + }, + "end": { + "line": 111, + "column": 32 + } + }, + "name": "filename" + }, + "value": { + "type": "MemberExpression", + "start": 2765, + "end": 2774, + "loc": { + "start": { + "line": 111, + "column": 34 + }, + "end": { + "line": 111, + "column": 43 + } + }, + "object": { + "type": "Identifier", + "start": 2765, + "end": 2769, + "loc": { + "start": { + "line": 111, + "column": 34 + }, + "end": { + "line": 111, + "column": 38 + } + }, + "name": "file" + }, + "property": { + "type": "Identifier", + "start": 2770, + "end": 2774, + "loc": { + "start": { + "line": 111, + "column": 39 + }, + "end": { + "line": 111, + "column": 43 + } + }, + "name": "name" + }, + "computed": false + }, + "kind": "init" + } + ] + } + ] + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * handleChange\n * @param e event\n ", + "start": 2541, + "end": 2594, + "loc": { + "start": { + "line": 100, + "column": 4 + }, + "end": { + "line": 103, + "column": 7 + } + }, + "range": [ + 2541, + 2594 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 2790, + "end": 2838, + "loc": { + "start": { + "line": 115, + "column": 4 + }, + "end": { + "line": 118, + "column": 7 + } + }, + "range": [ + 2790, + 2838 + ] + } + ] + }, + { + "type": "MethodDefinition", + "start": 2843, + "end": 4938, + "loc": { + "start": { + "line": 119, + "column": 4 + }, + "end": { + "line": 153, + "column": 5 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 2843, + "end": 2849, + "loc": { + "start": { + "line": 119, + "column": 4 + }, + "end": { + "line": 119, + "column": 10 + } + }, + "name": "render", + "leadingComments": null + }, + "static": false, + "kind": "method", + "value": { + "type": "FunctionExpression", + "start": 2849, + "end": 4938, + "loc": { + "start": { + "line": 119, + "column": 10 + }, + "end": { + "line": 153, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 2852, + "end": 4938, + "loc": { + "start": { + "line": 119, + "column": 13 + }, + "end": { + "line": 153, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 2862, + "end": 4932, + "loc": { + "start": { + "line": 120, + "column": 8 + }, + "end": { + "line": 152, + "column": 9 + } + }, + "argument": { + "type": "JSXElement", + "start": 2883, + "end": 4922, + "loc": { + "start": { + "line": 121, + "column": 12 + }, + "end": { + "line": 151, + "column": 18 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2883, + "end": 2905, + "loc": { + "start": { + "line": 121, + "column": 12 + }, + "end": { + "line": 121, + "column": 34 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2888, + "end": 2904, + "loc": { + "start": { + "line": 121, + "column": 17 + }, + "end": { + "line": 121, + "column": 33 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2888, + "end": 2897, + "loc": { + "start": { + "line": 121, + "column": 17 + }, + "end": { + "line": 121, + "column": 26 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 2898, + "end": 2904, + "loc": { + "start": { + "line": 121, + "column": 27 + }, + "end": { + "line": 121, + "column": 33 + } + }, + "value": "page", + "rawValue": null, + "raw": "\"page\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2884, + "end": 2887, + "loc": { + "start": { + "line": 121, + "column": 13 + }, + "end": { + "line": 121, + "column": 16 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 4916, + "end": 4922, + "loc": { + "start": { + "line": 151, + "column": 12 + }, + "end": { + "line": 151, + "column": 18 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4918, + "end": 4921, + "loc": { + "start": { + "line": 151, + "column": 14 + }, + "end": { + "line": 151, + "column": 17 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 2905, + "end": 2922, + "loc": { + "start": { + "line": 121, + "column": 34 + }, + "end": { + "line": 122, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 2922, + "end": 4903, + "loc": { + "start": { + "line": 122, + "column": 16 + }, + "end": { + "line": 150, + "column": 23 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 2922, + "end": 3003, + "loc": { + "start": { + "line": 122, + "column": 16 + }, + "end": { + "line": 122, + "column": 97 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 2928, + "end": 2939, + "loc": { + "start": { + "line": 122, + "column": 22 + }, + "end": { + "line": 122, + "column": 33 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2928, + "end": 2930, + "loc": { + "start": { + "line": 122, + "column": 22 + }, + "end": { + "line": 122, + "column": 24 + } + }, + "name": "id" + }, + "value": { + "type": "Literal", + "start": 2931, + "end": 2939, + "loc": { + "start": { + "line": 122, + "column": 25 + }, + "end": { + "line": 122, + "column": 33 + } + }, + "value": "upload", + "rawValue": null, + "raw": "\"upload\"" + } + }, + { + "type": "JSXAttribute", + "start": 2940, + "end": 2963, + "loc": { + "start": { + "line": 122, + "column": 34 + }, + "end": { + "line": 122, + "column": 57 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2940, + "end": 2949, + "loc": { + "start": { + "line": 122, + "column": 34 + }, + "end": { + "line": 122, + "column": 43 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 2950, + "end": 2963, + "loc": { + "start": { + "line": 122, + "column": 44 + }, + "end": { + "line": 122, + "column": 57 + } + }, + "value": "upload-form", + "rawValue": null, + "raw": "\"upload-form\"" + } + }, + { + "type": "JSXAttribute", + "start": 2964, + "end": 3002, + "loc": { + "start": { + "line": 122, + "column": 58 + }, + "end": { + "line": 122, + "column": 96 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 2964, + "end": 2972, + "loc": { + "start": { + "line": 122, + "column": 58 + }, + "end": { + "line": 122, + "column": 66 + } + }, + "name": "onSubmit" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 2973, + "end": 3002, + "loc": { + "start": { + "line": 122, + "column": 67 + }, + "end": { + "line": 122, + "column": 96 + } + }, + "expression": { + "type": "ArrowFunctionExpression", + "start": 2974, + "end": 3001, + "loc": { + "start": { + "line": 122, + "column": 68 + }, + "end": { + "line": 122, + "column": 95 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2975, + "end": 2976, + "loc": { + "start": { + "line": 122, + "column": 69 + }, + "end": { + "line": 122, + "column": 70 + } + }, + "name": "e" + } + ], + "body": { + "type": "CallExpression", + "start": 2981, + "end": 3001, + "loc": { + "start": { + "line": 122, + "column": 75 + }, + "end": { + "line": 122, + "column": 95 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2981, + "end": 2998, + "loc": { + "start": { + "line": 122, + "column": 75 + }, + "end": { + "line": 122, + "column": 92 + } + }, + "object": { + "type": "ThisExpression", + "start": 2981, + "end": 2985, + "loc": { + "start": { + "line": 122, + "column": 75 + }, + "end": { + "line": 122, + "column": 79 + } + } + }, + "property": { + "type": "Identifier", + "start": 2986, + "end": 2998, + "loc": { + "start": { + "line": 122, + "column": 80 + }, + "end": { + "line": 122, + "column": 92 + } + }, + "name": "handleSubmit" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 2999, + "end": 3000, + "loc": { + "start": { + "line": 122, + "column": 93 + }, + "end": { + "line": 122, + "column": 94 + } + }, + "name": "e" + } + ] + } + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 2923, + "end": 2927, + "loc": { + "start": { + "line": 122, + "column": 17 + }, + "end": { + "line": 122, + "column": 21 + } + }, + "name": "form" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 4896, + "end": 4903, + "loc": { + "start": { + "line": 150, + "column": 16 + }, + "end": { + "line": 150, + "column": 23 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4898, + "end": 4902, + "loc": { + "start": { + "line": 150, + "column": 18 + }, + "end": { + "line": 150, + "column": 22 + } + }, + "name": "form" + } + }, + "children": [ + { + "type": "Literal", + "start": 3003, + "end": 3024, + "loc": { + "start": { + "line": 122, + "column": 97 + }, + "end": { + "line": 123, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 3024, + "end": 3481, + "loc": { + "start": { + "line": 123, + "column": 20 + }, + "end": { + "line": 129, + "column": 26 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3024, + "end": 3090, + "loc": { + "start": { + "line": 123, + "column": 20 + }, + "end": { + "line": 123, + "column": 86 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3029, + "end": 3058, + "loc": { + "start": { + "line": 123, + "column": 25 + }, + "end": { + "line": 123, + "column": 54 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3029, + "end": 3038, + "loc": { + "start": { + "line": 123, + "column": 25 + }, + "end": { + "line": 123, + "column": 34 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 3039, + "end": 3058, + "loc": { + "start": { + "line": 123, + "column": 35 + }, + "end": { + "line": 123, + "column": 54 + } + }, + "value": "form-group upload", + "rawValue": null, + "raw": "\"form-group upload\"" + } + }, + { + "type": "JSXAttribute", + "start": 3059, + "end": 3089, + "loc": { + "start": { + "line": 123, + "column": 55 + }, + "end": { + "line": 123, + "column": 85 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3059, + "end": 3066, + "loc": { + "start": { + "line": 123, + "column": 55 + }, + "end": { + "line": 123, + "column": 62 + } + }, + "name": "onClick" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 3067, + "end": 3089, + "loc": { + "start": { + "line": 123, + "column": 63 + }, + "end": { + "line": 123, + "column": 85 + } + }, + "expression": { + "type": "MemberExpression", + "start": 3068, + "end": 3088, + "loc": { + "start": { + "line": 123, + "column": 64 + }, + "end": { + "line": 123, + "column": 84 + } + }, + "object": { + "type": "ThisExpression", + "start": 3068, + "end": 3072, + "loc": { + "start": { + "line": 123, + "column": 64 + }, + "end": { + "line": 123, + "column": 68 + } + } + }, + "property": { + "type": "Identifier", + "start": 3073, + "end": 3088, + "loc": { + "start": { + "line": 123, + "column": 69 + }, + "end": { + "line": 123, + "column": 84 + } + }, + "name": "handleFileClick" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3025, + "end": 3028, + "loc": { + "start": { + "line": 123, + "column": 21 + }, + "end": { + "line": 123, + "column": 24 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3475, + "end": 3481, + "loc": { + "start": { + "line": 129, + "column": 20 + }, + "end": { + "line": 129, + "column": 26 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3477, + "end": 3480, + "loc": { + "start": { + "line": 129, + "column": 22 + }, + "end": { + "line": 129, + "column": 25 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 3090, + "end": 3115, + "loc": { + "start": { + "line": 123, + "column": 86 + }, + "end": { + "line": 124, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 3115, + "end": 3323, + "loc": { + "start": { + "line": 124, + "column": 24 + }, + "end": { + "line": 127, + "column": 32 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3115, + "end": 3136, + "loc": { + "start": { + "line": 124, + "column": 24 + }, + "end": { + "line": 124, + "column": 45 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3122, + "end": 3135, + "loc": { + "start": { + "line": 124, + "column": 31 + }, + "end": { + "line": 124, + "column": 44 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3122, + "end": 3125, + "loc": { + "start": { + "line": 124, + "column": 31 + }, + "end": { + "line": 124, + "column": 34 + } + }, + "name": "for" + }, + "value": { + "type": "Literal", + "start": 3126, + "end": 3135, + "loc": { + "start": { + "line": 124, + "column": 35 + }, + "end": { + "line": 124, + "column": 44 + } + }, + "value": "caption", + "rawValue": null, + "raw": "\"caption\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3116, + "end": 3121, + "loc": { + "start": { + "line": 124, + "column": 25 + }, + "end": { + "line": 124, + "column": 30 + } + }, + "name": "label" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3315, + "end": 3323, + "loc": { + "start": { + "line": 127, + "column": 24 + }, + "end": { + "line": 127, + "column": 32 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3317, + "end": 3322, + "loc": { + "start": { + "line": 127, + "column": 26 + }, + "end": { + "line": 127, + "column": 31 + } + }, + "name": "label" + } + }, + "children": [ + { + "type": "Literal", + "start": 3136, + "end": 3165, + "loc": { + "start": { + "line": 124, + "column": 45 + }, + "end": { + "line": 125, + "column": 28 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 3165, + "end": 3213, + "loc": { + "start": { + "line": 125, + "column": 28 + }, + "end": { + "line": 125, + "column": 76 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3165, + "end": 3209, + "loc": { + "start": { + "line": 125, + "column": 28 + }, + "end": { + "line": 125, + "column": 72 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3168, + "end": 3208, + "loc": { + "start": { + "line": 125, + "column": 31 + }, + "end": { + "line": 125, + "column": 71 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3168, + "end": 3177, + "loc": { + "start": { + "line": 125, + "column": 31 + }, + "end": { + "line": 125, + "column": 40 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 3178, + "end": 3208, + "loc": { + "start": { + "line": 125, + "column": 41 + }, + "end": { + "line": 125, + "column": 71 + } + }, + "value": "ion-ios-cloud-upload-outline", + "rawValue": null, + "raw": "\"ion-ios-cloud-upload-outline\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3166, + "end": 3167, + "loc": { + "start": { + "line": 125, + "column": 29 + }, + "end": { + "line": 125, + "column": 30 + } + }, + "name": "i" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3209, + "end": 3213, + "loc": { + "start": { + "line": 125, + "column": 72 + }, + "end": { + "line": 125, + "column": 76 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3211, + "end": 3212, + "loc": { + "start": { + "line": 125, + "column": 74 + }, + "end": { + "line": 125, + "column": 75 + } + }, + "name": "i" + } + }, + "children": [] + }, + { + "type": "Literal", + "start": 3213, + "end": 3242, + "loc": { + "start": { + "line": 125, + "column": 76 + }, + "end": { + "line": 126, + "column": 28 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 3242, + "end": 3290, + "loc": { + "start": { + "line": 126, + "column": 28 + }, + "end": { + "line": 126, + "column": 76 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3242, + "end": 3262, + "loc": { + "start": { + "line": 126, + "column": 28 + }, + "end": { + "line": 126, + "column": 48 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3248, + "end": 3261, + "loc": { + "start": { + "line": 126, + "column": 34 + }, + "end": { + "line": 126, + "column": 47 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3248, + "end": 3250, + "loc": { + "start": { + "line": 126, + "column": 34 + }, + "end": { + "line": 126, + "column": 36 + } + }, + "name": "id" + }, + "value": { + "type": "Literal", + "start": 3251, + "end": 3261, + "loc": { + "start": { + "line": 126, + "column": 37 + }, + "end": { + "line": 126, + "column": 47 + } + }, + "value": "filename", + "rawValue": null, + "raw": "\"filename\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3243, + "end": 3247, + "loc": { + "start": { + "line": 126, + "column": 29 + }, + "end": { + "line": 126, + "column": 33 + } + }, + "name": "span" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3283, + "end": 3290, + "loc": { + "start": { + "line": 126, + "column": 69 + }, + "end": { + "line": 126, + "column": 76 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3285, + "end": 3289, + "loc": { + "start": { + "line": 126, + "column": 71 + }, + "end": { + "line": 126, + "column": 75 + } + }, + "name": "span" + } + }, + "children": [ + { + "type": "JSXExpressionContainer", + "start": 3262, + "end": 3283, + "loc": { + "start": { + "line": 126, + "column": 48 + }, + "end": { + "line": 126, + "column": 69 + } + }, + "expression": { + "type": "MemberExpression", + "start": 3263, + "end": 3282, + "loc": { + "start": { + "line": 126, + "column": 49 + }, + "end": { + "line": 126, + "column": 68 + } + }, + "object": { + "type": "MemberExpression", + "start": 3263, + "end": 3273, + "loc": { + "start": { + "line": 126, + "column": 49 + }, + "end": { + "line": 126, + "column": 59 + } + }, + "object": { + "type": "ThisExpression", + "start": 3263, + "end": 3267, + "loc": { + "start": { + "line": 126, + "column": 49 + }, + "end": { + "line": 126, + "column": 53 + } + } + }, + "property": { + "type": "Identifier", + "start": 3268, + "end": 3273, + "loc": { + "start": { + "line": 126, + "column": 54 + }, + "end": { + "line": 126, + "column": 59 + } + }, + "name": "state" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3274, + "end": 3282, + "loc": { + "start": { + "line": 126, + "column": 60 + }, + "end": { + "line": 126, + "column": 68 + } + }, + "name": "filename" + }, + "computed": false + } + } + ] + }, + { + "type": "Literal", + "start": 3290, + "end": 3315, + "loc": { + "start": { + "line": 126, + "column": 76 + }, + "end": { + "line": 127, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 3323, + "end": 3348, + "loc": { + "start": { + "line": 127, + "column": 32 + }, + "end": { + "line": 128, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 3348, + "end": 3454, + "loc": { + "start": { + "line": 128, + "column": 24 + }, + "end": { + "line": 128, + "column": 130 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3348, + "end": 3454, + "loc": { + "start": { + "line": 128, + "column": 24 + }, + "end": { + "line": 128, + "column": 130 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3355, + "end": 3364, + "loc": { + "start": { + "line": 128, + "column": 31 + }, + "end": { + "line": 128, + "column": 40 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3355, + "end": 3357, + "loc": { + "start": { + "line": 128, + "column": 31 + }, + "end": { + "line": 128, + "column": 33 + } + }, + "name": "id" + }, + "value": { + "type": "Literal", + "start": 3358, + "end": 3364, + "loc": { + "start": { + "line": 128, + "column": 34 + }, + "end": { + "line": 128, + "column": 40 + } + }, + "value": "file", + "rawValue": null, + "raw": "\"file\"" + } + }, + { + "type": "JSXAttribute", + "start": 3365, + "end": 3376, + "loc": { + "start": { + "line": 128, + "column": 41 + }, + "end": { + "line": 128, + "column": 52 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3365, + "end": 3369, + "loc": { + "start": { + "line": 128, + "column": 41 + }, + "end": { + "line": 128, + "column": 45 + } + }, + "name": "type" + }, + "value": { + "type": "Literal", + "start": 3370, + "end": 3376, + "loc": { + "start": { + "line": 128, + "column": 46 + }, + "end": { + "line": 128, + "column": 52 + } + }, + "value": "file", + "rawValue": null, + "raw": "\"file\"" + } + }, + { + "type": "JSXAttribute", + "start": 3377, + "end": 3388, + "loc": { + "start": { + "line": 128, + "column": 53 + }, + "end": { + "line": 128, + "column": 64 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3377, + "end": 3381, + "loc": { + "start": { + "line": 128, + "column": 53 + }, + "end": { + "line": 128, + "column": 57 + } + }, + "name": "name" + }, + "value": { + "type": "Literal", + "start": 3382, + "end": 3388, + "loc": { + "start": { + "line": 128, + "column": 58 + }, + "end": { + "line": 128, + "column": 64 + } + }, + "value": "file", + "rawValue": null, + "raw": "\"file\"" + } + }, + { + "type": "JSXAttribute", + "start": 3389, + "end": 3405, + "loc": { + "start": { + "line": 128, + "column": 65 + }, + "end": { + "line": 128, + "column": 81 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3389, + "end": 3395, + "loc": { + "start": { + "line": 128, + "column": 65 + }, + "end": { + "line": 128, + "column": 71 + } + }, + "name": "accept" + }, + "value": { + "type": "Literal", + "start": 3396, + "end": 3405, + "loc": { + "start": { + "line": 128, + "column": 72 + }, + "end": { + "line": 128, + "column": 81 + } + }, + "value": "image/*", + "rawValue": null, + "raw": "\"image/*\"" + } + }, + { + "type": "JSXAttribute", + "start": 3406, + "end": 3414, + "loc": { + "start": { + "line": 128, + "column": 82 + }, + "end": { + "line": 128, + "column": 90 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3406, + "end": 3414, + "loc": { + "start": { + "line": 128, + "column": 82 + }, + "end": { + "line": 128, + "column": 90 + } + }, + "name": "required" + }, + "value": null + }, + { + "type": "JSXAttribute", + "start": 3415, + "end": 3451, + "loc": { + "start": { + "line": 128, + "column": 91 + }, + "end": { + "line": 128, + "column": 127 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3415, + "end": 3423, + "loc": { + "start": { + "line": 128, + "column": 91 + }, + "end": { + "line": 128, + "column": 99 + } + }, + "name": "onChange" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 3424, + "end": 3451, + "loc": { + "start": { + "line": 128, + "column": 100 + }, + "end": { + "line": 128, + "column": 127 + } + }, + "expression": { + "type": "ArrowFunctionExpression", + "start": 3425, + "end": 3450, + "loc": { + "start": { + "line": 128, + "column": 101 + }, + "end": { + "line": 128, + "column": 126 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 3426, + "end": 3427, + "loc": { + "start": { + "line": 128, + "column": 102 + }, + "end": { + "line": 128, + "column": 103 + } + }, + "name": "e" + } + ], + "body": { + "type": "CallExpression", + "start": 3430, + "end": 3450, + "loc": { + "start": { + "line": 128, + "column": 106 + }, + "end": { + "line": 128, + "column": 126 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3430, + "end": 3447, + "loc": { + "start": { + "line": 128, + "column": 106 + }, + "end": { + "line": 128, + "column": 123 + } + }, + "object": { + "type": "ThisExpression", + "start": 3430, + "end": 3434, + "loc": { + "start": { + "line": 128, + "column": 106 + }, + "end": { + "line": 128, + "column": 110 + } + } + }, + "property": { + "type": "Identifier", + "start": 3435, + "end": 3447, + "loc": { + "start": { + "line": 128, + "column": 111 + }, + "end": { + "line": 128, + "column": 123 + } + }, + "name": "handleChange" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 3448, + "end": 3449, + "loc": { + "start": { + "line": 128, + "column": 124 + }, + "end": { + "line": 128, + "column": 125 + } + }, + "name": "e" + } + ] + } + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3349, + "end": 3354, + "loc": { + "start": { + "line": 128, + "column": 25 + }, + "end": { + "line": 128, + "column": 30 + } + }, + "name": "input" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 3454, + "end": 3475, + "loc": { + "start": { + "line": 128, + "column": 130 + }, + "end": { + "line": 129, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 3481, + "end": 3502, + "loc": { + "start": { + "line": 129, + "column": 26 + }, + "end": { + "line": 130, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 3502, + "end": 4879, + "loc": { + "start": { + "line": 130, + "column": 20 + }, + "end": { + "line": 149, + "column": 26 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3502, + "end": 3525, + "loc": { + "start": { + "line": 130, + "column": 20 + }, + "end": { + "line": 130, + "column": 43 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3507, + "end": 3524, + "loc": { + "start": { + "line": 130, + "column": 25 + }, + "end": { + "line": 130, + "column": 42 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3507, + "end": 3516, + "loc": { + "start": { + "line": 130, + "column": 25 + }, + "end": { + "line": 130, + "column": 34 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 3517, + "end": 3524, + "loc": { + "start": { + "line": 130, + "column": 35 + }, + "end": { + "line": 130, + "column": 42 + } + }, + "value": "inner", + "rawValue": null, + "raw": "\"inner\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3503, + "end": 3506, + "loc": { + "start": { + "line": 130, + "column": 21 + }, + "end": { + "line": 130, + "column": 24 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 4873, + "end": 4879, + "loc": { + "start": { + "line": 149, + "column": 20 + }, + "end": { + "line": 149, + "column": 26 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4875, + "end": 4878, + "loc": { + "start": { + "line": 149, + "column": 22 + }, + "end": { + "line": 149, + "column": 25 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 3525, + "end": 3550, + "loc": { + "start": { + "line": 130, + "column": 43 + }, + "end": { + "line": 131, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 3550, + "end": 3860, + "loc": { + "start": { + "line": 131, + "column": 24 + }, + "end": { + "line": 134, + "column": 30 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3550, + "end": 3578, + "loc": { + "start": { + "line": 131, + "column": 24 + }, + "end": { + "line": 131, + "column": 52 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3555, + "end": 3577, + "loc": { + "start": { + "line": 131, + "column": 29 + }, + "end": { + "line": 131, + "column": 51 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3555, + "end": 3564, + "loc": { + "start": { + "line": 131, + "column": 29 + }, + "end": { + "line": 131, + "column": 38 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 3565, + "end": 3577, + "loc": { + "start": { + "line": 131, + "column": 39 + }, + "end": { + "line": 131, + "column": 51 + } + }, + "value": "form-group", + "rawValue": null, + "raw": "\"form-group\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3551, + "end": 3554, + "loc": { + "start": { + "line": 131, + "column": 25 + }, + "end": { + "line": 131, + "column": 28 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3854, + "end": 3860, + "loc": { + "start": { + "line": 134, + "column": 24 + }, + "end": { + "line": 134, + "column": 30 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3856, + "end": 3859, + "loc": { + "start": { + "line": 134, + "column": 26 + }, + "end": { + "line": 134, + "column": 29 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 3578, + "end": 3607, + "loc": { + "start": { + "line": 131, + "column": 52 + }, + "end": { + "line": 132, + "column": 28 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 3607, + "end": 3643, + "loc": { + "start": { + "line": 132, + "column": 28 + }, + "end": { + "line": 132, + "column": 64 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3607, + "end": 3628, + "loc": { + "start": { + "line": 132, + "column": 28 + }, + "end": { + "line": 132, + "column": 49 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3614, + "end": 3627, + "loc": { + "start": { + "line": 132, + "column": 35 + }, + "end": { + "line": 132, + "column": 48 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3614, + "end": 3617, + "loc": { + "start": { + "line": 132, + "column": 35 + }, + "end": { + "line": 132, + "column": 38 + } + }, + "name": "for" + }, + "value": { + "type": "Literal", + "start": 3618, + "end": 3627, + "loc": { + "start": { + "line": 132, + "column": 39 + }, + "end": { + "line": 132, + "column": 48 + } + }, + "value": "caption", + "rawValue": null, + "raw": "\"caption\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3608, + "end": 3613, + "loc": { + "start": { + "line": 132, + "column": 29 + }, + "end": { + "line": 132, + "column": 34 + } + }, + "name": "label" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3635, + "end": 3643, + "loc": { + "start": { + "line": 132, + "column": 56 + }, + "end": { + "line": 132, + "column": 64 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3637, + "end": 3642, + "loc": { + "start": { + "line": 132, + "column": 58 + }, + "end": { + "line": 132, + "column": 63 + } + }, + "name": "label" + } + }, + "children": [ + { + "type": "Literal", + "start": 3628, + "end": 3635, + "loc": { + "start": { + "line": 132, + "column": 49 + }, + "end": { + "line": 132, + "column": 56 + } + }, + "value": "Caption", + "rawValue": null, + "raw": "Caption" + } + ] + }, + { + "type": "JSXElement", + "start": 3643, + "end": 3649, + "loc": { + "start": { + "line": 132, + "column": 64 + }, + "end": { + "line": 132, + "column": 70 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3643, + "end": 3649, + "loc": { + "start": { + "line": 132, + "column": 64 + }, + "end": { + "line": 132, + "column": 70 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 3644, + "end": 3646, + "loc": { + "start": { + "line": 132, + "column": 65 + }, + "end": { + "line": 132, + "column": 67 + } + }, + "name": "br" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 3649, + "end": 3678, + "loc": { + "start": { + "line": 132, + "column": 70 + }, + "end": { + "line": 133, + "column": 28 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 3678, + "end": 3829, + "loc": { + "start": { + "line": 133, + "column": 28 + }, + "end": { + "line": 133, + "column": 179 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3678, + "end": 3829, + "loc": { + "start": { + "line": 133, + "column": 28 + }, + "end": { + "line": 133, + "column": 179 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3685, + "end": 3696, + "loc": { + "start": { + "line": 133, + "column": 35 + }, + "end": { + "line": 133, + "column": 46 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3685, + "end": 3689, + "loc": { + "start": { + "line": 133, + "column": 35 + }, + "end": { + "line": 133, + "column": 39 + } + }, + "name": "type" + }, + "value": { + "type": "Literal", + "start": 3690, + "end": 3696, + "loc": { + "start": { + "line": 133, + "column": 40 + }, + "end": { + "line": 133, + "column": 46 + } + }, + "value": "text", + "rawValue": null, + "raw": "\"text\"" + } + }, + { + "type": "JSXAttribute", + "start": 3697, + "end": 3723, + "loc": { + "start": { + "line": 133, + "column": 47 + }, + "end": { + "line": 133, + "column": 73 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3697, + "end": 3708, + "loc": { + "start": { + "line": 133, + "column": 47 + }, + "end": { + "line": 133, + "column": 58 + } + }, + "name": "placeholder" + }, + "value": { + "type": "Literal", + "start": 3709, + "end": 3723, + "loc": { + "start": { + "line": 133, + "column": 59 + }, + "end": { + "line": 133, + "column": 73 + } + }, + "value": "My treehouse", + "rawValue": null, + "raw": "\"My treehouse\"" + } + }, + { + "type": "JSXAttribute", + "start": 3724, + "end": 3738, + "loc": { + "start": { + "line": 133, + "column": 74 + }, + "end": { + "line": 133, + "column": 88 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3724, + "end": 3728, + "loc": { + "start": { + "line": 133, + "column": 74 + }, + "end": { + "line": 133, + "column": 78 + } + }, + "name": "name" + }, + "value": { + "type": "Literal", + "start": 3729, + "end": 3738, + "loc": { + "start": { + "line": 133, + "column": 79 + }, + "end": { + "line": 133, + "column": 88 + } + }, + "value": "caption", + "rawValue": null, + "raw": "\"caption\"" + } + }, + { + "type": "JSXAttribute", + "start": 3739, + "end": 3754, + "loc": { + "start": { + "line": 133, + "column": 89 + }, + "end": { + "line": 133, + "column": 104 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3739, + "end": 3748, + "loc": { + "start": { + "line": 133, + "column": 89 + }, + "end": { + "line": 133, + "column": 98 + } + }, + "name": "maxLength" + }, + "value": { + "type": "Literal", + "start": 3749, + "end": 3754, + "loc": { + "start": { + "line": 133, + "column": 99 + }, + "end": { + "line": 133, + "column": 104 + } + }, + "value": "140", + "rawValue": null, + "raw": "\"140\"" + } + }, + { + "type": "JSXAttribute", + "start": 3755, + "end": 3781, + "loc": { + "start": { + "line": 133, + "column": 105 + }, + "end": { + "line": 133, + "column": 131 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3755, + "end": 3760, + "loc": { + "start": { + "line": 133, + "column": 105 + }, + "end": { + "line": 133, + "column": 110 + } + }, + "name": "value" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 3761, + "end": 3781, + "loc": { + "start": { + "line": 133, + "column": 111 + }, + "end": { + "line": 133, + "column": 131 + } + }, + "expression": { + "type": "MemberExpression", + "start": 3762, + "end": 3780, + "loc": { + "start": { + "line": 133, + "column": 112 + }, + "end": { + "line": 133, + "column": 130 + } + }, + "object": { + "type": "MemberExpression", + "start": 3762, + "end": 3772, + "loc": { + "start": { + "line": 133, + "column": 112 + }, + "end": { + "line": 133, + "column": 122 + } + }, + "object": { + "type": "ThisExpression", + "start": 3762, + "end": 3766, + "loc": { + "start": { + "line": 133, + "column": 112 + }, + "end": { + "line": 133, + "column": 116 + } + } + }, + "property": { + "type": "Identifier", + "start": 3767, + "end": 3772, + "loc": { + "start": { + "line": 133, + "column": 117 + }, + "end": { + "line": 133, + "column": 122 + } + }, + "name": "state" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3773, + "end": 3780, + "loc": { + "start": { + "line": 133, + "column": 123 + }, + "end": { + "line": 133, + "column": 130 + } + }, + "name": "caption" + }, + "computed": false + } + } + }, + { + "type": "JSXAttribute", + "start": 3782, + "end": 3790, + "loc": { + "start": { + "line": 133, + "column": 132 + }, + "end": { + "line": 133, + "column": 140 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3782, + "end": 3790, + "loc": { + "start": { + "line": 133, + "column": 132 + }, + "end": { + "line": 133, + "column": 140 + } + }, + "name": "required" + }, + "value": null + }, + { + "type": "JSXAttribute", + "start": 3791, + "end": 3826, + "loc": { + "start": { + "line": 133, + "column": 141 + }, + "end": { + "line": 133, + "column": 176 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3791, + "end": 3799, + "loc": { + "start": { + "line": 133, + "column": 141 + }, + "end": { + "line": 133, + "column": 149 + } + }, + "name": "onChange" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 3800, + "end": 3826, + "loc": { + "start": { + "line": 133, + "column": 150 + }, + "end": { + "line": 133, + "column": 176 + } + }, + "expression": { + "type": "MemberExpression", + "start": 3801, + "end": 3825, + "loc": { + "start": { + "line": 133, + "column": 151 + }, + "end": { + "line": 133, + "column": 175 + } + }, + "object": { + "type": "ThisExpression", + "start": 3801, + "end": 3805, + "loc": { + "start": { + "line": 133, + "column": 151 + }, + "end": { + "line": 133, + "column": 155 + } + } + }, + "property": { + "type": "Identifier", + "start": 3806, + "end": 3825, + "loc": { + "start": { + "line": 133, + "column": 156 + }, + "end": { + "line": 133, + "column": 175 + } + }, + "name": "handleCaptionChange" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3679, + "end": 3684, + "loc": { + "start": { + "line": 133, + "column": 29 + }, + "end": { + "line": 133, + "column": 34 + } + }, + "name": "input" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 3829, + "end": 3854, + "loc": { + "start": { + "line": 133, + "column": 179 + }, + "end": { + "line": 134, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 3860, + "end": 3885, + "loc": { + "start": { + "line": 134, + "column": 30 + }, + "end": { + "line": 135, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 3885, + "end": 4194, + "loc": { + "start": { + "line": 135, + "column": 24 + }, + "end": { + "line": 138, + "column": 30 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3885, + "end": 3913, + "loc": { + "start": { + "line": 135, + "column": 24 + }, + "end": { + "line": 135, + "column": 52 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3890, + "end": 3912, + "loc": { + "start": { + "line": 135, + "column": 29 + }, + "end": { + "line": 135, + "column": 51 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3890, + "end": 3899, + "loc": { + "start": { + "line": 135, + "column": 29 + }, + "end": { + "line": 135, + "column": 38 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 3900, + "end": 3912, + "loc": { + "start": { + "line": 135, + "column": 39 + }, + "end": { + "line": 135, + "column": 51 + } + }, + "value": "form-group", + "rawValue": null, + "raw": "\"form-group\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3886, + "end": 3889, + "loc": { + "start": { + "line": 135, + "column": 25 + }, + "end": { + "line": 135, + "column": 28 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 4188, + "end": 4194, + "loc": { + "start": { + "line": 138, + "column": 24 + }, + "end": { + "line": 138, + "column": 30 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4190, + "end": 4193, + "loc": { + "start": { + "line": 138, + "column": 26 + }, + "end": { + "line": 138, + "column": 29 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 3913, + "end": 3942, + "loc": { + "start": { + "line": 135, + "column": 52 + }, + "end": { + "line": 136, + "column": 28 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 3942, + "end": 3980, + "loc": { + "start": { + "line": 136, + "column": 28 + }, + "end": { + "line": 136, + "column": 66 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3942, + "end": 3964, + "loc": { + "start": { + "line": 136, + "column": 28 + }, + "end": { + "line": 136, + "column": 50 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 3949, + "end": 3963, + "loc": { + "start": { + "line": 136, + "column": 35 + }, + "end": { + "line": 136, + "column": 49 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3949, + "end": 3952, + "loc": { + "start": { + "line": 136, + "column": 35 + }, + "end": { + "line": 136, + "column": 38 + } + }, + "name": "for" + }, + "value": { + "type": "Literal", + "start": 3953, + "end": 3963, + "loc": { + "start": { + "line": 136, + "column": 39 + }, + "end": { + "line": 136, + "column": 49 + } + }, + "value": "location", + "rawValue": null, + "raw": "\"location\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 3943, + "end": 3948, + "loc": { + "start": { + "line": 136, + "column": 29 + }, + "end": { + "line": 136, + "column": 34 + } + }, + "name": "label" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 3972, + "end": 3980, + "loc": { + "start": { + "line": 136, + "column": 58 + }, + "end": { + "line": 136, + "column": 66 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 3974, + "end": 3979, + "loc": { + "start": { + "line": 136, + "column": 60 + }, + "end": { + "line": 136, + "column": 65 + } + }, + "name": "label" + } + }, + "children": [ + { + "type": "Literal", + "start": 3964, + "end": 3972, + "loc": { + "start": { + "line": 136, + "column": 50 + }, + "end": { + "line": 136, + "column": 58 + } + }, + "value": "Location", + "rawValue": null, + "raw": "Location" + } + ] + }, + { + "type": "JSXElement", + "start": 3980, + "end": 3986, + "loc": { + "start": { + "line": 136, + "column": 66 + }, + "end": { + "line": 136, + "column": 72 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 3980, + "end": 3986, + "loc": { + "start": { + "line": 136, + "column": 66 + }, + "end": { + "line": 136, + "column": 72 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 3981, + "end": 3983, + "loc": { + "start": { + "line": 136, + "column": 67 + }, + "end": { + "line": 136, + "column": 69 + } + }, + "name": "br" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 3986, + "end": 4015, + "loc": { + "start": { + "line": 136, + "column": 72 + }, + "end": { + "line": 137, + "column": 28 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 4015, + "end": 4163, + "loc": { + "start": { + "line": 137, + "column": 28 + }, + "end": { + "line": 137, + "column": 176 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 4015, + "end": 4163, + "loc": { + "start": { + "line": 137, + "column": 28 + }, + "end": { + "line": 137, + "column": 176 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 4022, + "end": 4033, + "loc": { + "start": { + "line": 137, + "column": 35 + }, + "end": { + "line": 137, + "column": 46 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4022, + "end": 4026, + "loc": { + "start": { + "line": 137, + "column": 35 + }, + "end": { + "line": 137, + "column": 39 + } + }, + "name": "type" + }, + "value": { + "type": "Literal", + "start": 4027, + "end": 4033, + "loc": { + "start": { + "line": 137, + "column": 40 + }, + "end": { + "line": 137, + "column": 46 + } + }, + "value": "text", + "rawValue": null, + "raw": "\"text\"" + } + }, + { + "type": "JSXAttribute", + "start": 4034, + "end": 4070, + "loc": { + "start": { + "line": 137, + "column": 47 + }, + "end": { + "line": 137, + "column": 83 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4034, + "end": 4045, + "loc": { + "start": { + "line": 137, + "column": 47 + }, + "end": { + "line": 137, + "column": 58 + } + }, + "name": "placeholder" + }, + "value": { + "type": "Literal", + "start": 4046, + "end": 4070, + "loc": { + "start": { + "line": 137, + "column": 59 + }, + "end": { + "line": 137, + "column": 83 + } + }, + "value": "City, State OR Country", + "rawValue": null, + "raw": "\"City, State OR Country\"" + } + }, + { + "type": "JSXAttribute", + "start": 4071, + "end": 4086, + "loc": { + "start": { + "line": 137, + "column": 84 + }, + "end": { + "line": 137, + "column": 99 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4071, + "end": 4075, + "loc": { + "start": { + "line": 137, + "column": 84 + }, + "end": { + "line": 137, + "column": 88 + } + }, + "name": "name" + }, + "value": { + "type": "Literal", + "start": 4076, + "end": 4086, + "loc": { + "start": { + "line": 137, + "column": 89 + }, + "end": { + "line": 137, + "column": 99 + } + }, + "value": "location", + "rawValue": null, + "raw": "\"location\"" + } + }, + { + "type": "JSXAttribute", + "start": 4087, + "end": 4114, + "loc": { + "start": { + "line": 137, + "column": 100 + }, + "end": { + "line": 137, + "column": 127 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4087, + "end": 4092, + "loc": { + "start": { + "line": 137, + "column": 100 + }, + "end": { + "line": 137, + "column": 105 + } + }, + "name": "value" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 4093, + "end": 4114, + "loc": { + "start": { + "line": 137, + "column": 106 + }, + "end": { + "line": 137, + "column": 127 + } + }, + "expression": { + "type": "MemberExpression", + "start": 4094, + "end": 4113, + "loc": { + "start": { + "line": 137, + "column": 107 + }, + "end": { + "line": 137, + "column": 126 + } + }, + "object": { + "type": "MemberExpression", + "start": 4094, + "end": 4104, + "loc": { + "start": { + "line": 137, + "column": 107 + }, + "end": { + "line": 137, + "column": 117 + } + }, + "object": { + "type": "ThisExpression", + "start": 4094, + "end": 4098, + "loc": { + "start": { + "line": 137, + "column": 107 + }, + "end": { + "line": 137, + "column": 111 + } + } + }, + "property": { + "type": "Identifier", + "start": 4099, + "end": 4104, + "loc": { + "start": { + "line": 137, + "column": 112 + }, + "end": { + "line": 137, + "column": 117 + } + }, + "name": "state" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 4105, + "end": 4113, + "loc": { + "start": { + "line": 137, + "column": 118 + }, + "end": { + "line": 137, + "column": 126 + } + }, + "name": "location" + }, + "computed": false + } + } + }, + { + "type": "JSXAttribute", + "start": 4115, + "end": 4123, + "loc": { + "start": { + "line": 137, + "column": 128 + }, + "end": { + "line": 137, + "column": 136 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4115, + "end": 4123, + "loc": { + "start": { + "line": 137, + "column": 128 + }, + "end": { + "line": 137, + "column": 136 + } + }, + "name": "required" + }, + "value": null + }, + { + "type": "JSXAttribute", + "start": 4124, + "end": 4160, + "loc": { + "start": { + "line": 137, + "column": 137 + }, + "end": { + "line": 137, + "column": 173 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4124, + "end": 4132, + "loc": { + "start": { + "line": 137, + "column": 137 + }, + "end": { + "line": 137, + "column": 145 + } + }, + "name": "onChange" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 4133, + "end": 4160, + "loc": { + "start": { + "line": 137, + "column": 146 + }, + "end": { + "line": 137, + "column": 173 + } + }, + "expression": { + "type": "MemberExpression", + "start": 4134, + "end": 4159, + "loc": { + "start": { + "line": 137, + "column": 147 + }, + "end": { + "line": 137, + "column": 172 + } + }, + "object": { + "type": "ThisExpression", + "start": 4134, + "end": 4138, + "loc": { + "start": { + "line": 137, + "column": 147 + }, + "end": { + "line": 137, + "column": 151 + } + } + }, + "property": { + "type": "Identifier", + "start": 4139, + "end": 4159, + "loc": { + "start": { + "line": 137, + "column": 152 + }, + "end": { + "line": 137, + "column": 172 + } + }, + "name": "handleLocationChange" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 4016, + "end": 4021, + "loc": { + "start": { + "line": 137, + "column": 29 + }, + "end": { + "line": 137, + "column": 34 + } + }, + "name": "input" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 4163, + "end": 4188, + "loc": { + "start": { + "line": 137, + "column": 176 + }, + "end": { + "line": 138, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 4194, + "end": 4219, + "loc": { + "start": { + "line": 138, + "column": 30 + }, + "end": { + "line": 139, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 4219, + "end": 4524, + "loc": { + "start": { + "line": 139, + "column": 24 + }, + "end": { + "line": 142, + "column": 30 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 4219, + "end": 4247, + "loc": { + "start": { + "line": 139, + "column": 24 + }, + "end": { + "line": 139, + "column": 52 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 4224, + "end": 4246, + "loc": { + "start": { + "line": 139, + "column": 29 + }, + "end": { + "line": 139, + "column": 51 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4224, + "end": 4233, + "loc": { + "start": { + "line": 139, + "column": 29 + }, + "end": { + "line": 139, + "column": 38 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 4234, + "end": 4246, + "loc": { + "start": { + "line": 139, + "column": 39 + }, + "end": { + "line": 139, + "column": 51 + } + }, + "value": "form-group", + "rawValue": null, + "raw": "\"form-group\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 4220, + "end": 4223, + "loc": { + "start": { + "line": 139, + "column": 25 + }, + "end": { + "line": 139, + "column": 28 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 4518, + "end": 4524, + "loc": { + "start": { + "line": 142, + "column": 24 + }, + "end": { + "line": 142, + "column": 30 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4520, + "end": 4523, + "loc": { + "start": { + "line": 142, + "column": 26 + }, + "end": { + "line": 142, + "column": 29 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 4247, + "end": 4276, + "loc": { + "start": { + "line": 139, + "column": 52 + }, + "end": { + "line": 140, + "column": 28 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 4276, + "end": 4310, + "loc": { + "start": { + "line": 140, + "column": 28 + }, + "end": { + "line": 140, + "column": 62 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 4276, + "end": 4298, + "loc": { + "start": { + "line": 140, + "column": 28 + }, + "end": { + "line": 140, + "column": 50 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 4283, + "end": 4297, + "loc": { + "start": { + "line": 140, + "column": 35 + }, + "end": { + "line": 140, + "column": 49 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4283, + "end": 4286, + "loc": { + "start": { + "line": 140, + "column": 35 + }, + "end": { + "line": 140, + "column": 38 + } + }, + "name": "for" + }, + "value": { + "type": "Literal", + "start": 4287, + "end": 4297, + "loc": { + "start": { + "line": 140, + "column": 39 + }, + "end": { + "line": 140, + "column": 49 + } + }, + "value": "hashtags", + "rawValue": null, + "raw": "\"hashtags\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 4277, + "end": 4282, + "loc": { + "start": { + "line": 140, + "column": 29 + }, + "end": { + "line": 140, + "column": 34 + } + }, + "name": "label" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 4302, + "end": 4310, + "loc": { + "start": { + "line": 140, + "column": 54 + }, + "end": { + "line": 140, + "column": 62 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4304, + "end": 4309, + "loc": { + "start": { + "line": 140, + "column": 56 + }, + "end": { + "line": 140, + "column": 61 + } + }, + "name": "label" + } + }, + "children": [ + { + "type": "Literal", + "start": 4298, + "end": 4302, + "loc": { + "start": { + "line": 140, + "column": 50 + }, + "end": { + "line": 140, + "column": 54 + } + }, + "value": "Tags", + "rawValue": null, + "raw": "Tags" + } + ] + }, + { + "type": "JSXElement", + "start": 4310, + "end": 4316, + "loc": { + "start": { + "line": 140, + "column": 62 + }, + "end": { + "line": 140, + "column": 68 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 4310, + "end": 4316, + "loc": { + "start": { + "line": 140, + "column": 62 + }, + "end": { + "line": 140, + "column": 68 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 4311, + "end": 4313, + "loc": { + "start": { + "line": 140, + "column": 63 + }, + "end": { + "line": 140, + "column": 65 + } + }, + "name": "br" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 4316, + "end": 4345, + "loc": { + "start": { + "line": 140, + "column": 68 + }, + "end": { + "line": 141, + "column": 28 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 4345, + "end": 4493, + "loc": { + "start": { + "line": 141, + "column": 28 + }, + "end": { + "line": 141, + "column": 176 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 4345, + "end": 4493, + "loc": { + "start": { + "line": 141, + "column": 28 + }, + "end": { + "line": 141, + "column": 176 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 4352, + "end": 4363, + "loc": { + "start": { + "line": 141, + "column": 35 + }, + "end": { + "line": 141, + "column": 46 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4352, + "end": 4356, + "loc": { + "start": { + "line": 141, + "column": 35 + }, + "end": { + "line": 141, + "column": 39 + } + }, + "name": "type" + }, + "value": { + "type": "Literal", + "start": 4357, + "end": 4363, + "loc": { + "start": { + "line": 141, + "column": 40 + }, + "end": { + "line": 141, + "column": 46 + } + }, + "value": "text", + "rawValue": null, + "raw": "\"text\"" + } + }, + { + "type": "JSXAttribute", + "start": 4364, + "end": 4384, + "loc": { + "start": { + "line": 141, + "column": 47 + }, + "end": { + "line": 141, + "column": 67 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4364, + "end": 4375, + "loc": { + "start": { + "line": 141, + "column": 47 + }, + "end": { + "line": 141, + "column": 58 + } + }, + "name": "placeholder" + }, + "value": { + "type": "Literal", + "start": 4376, + "end": 4384, + "loc": { + "start": { + "line": 141, + "column": 59 + }, + "end": { + "line": 141, + "column": 67 + } + }, + "value": "#cabin", + "rawValue": null, + "raw": "\"#cabin\"" + } + }, + { + "type": "JSXAttribute", + "start": 4385, + "end": 4400, + "loc": { + "start": { + "line": 141, + "column": 68 + }, + "end": { + "line": 141, + "column": 83 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4385, + "end": 4389, + "loc": { + "start": { + "line": 141, + "column": 68 + }, + "end": { + "line": 141, + "column": 72 + } + }, + "name": "name" + }, + "value": { + "type": "Literal", + "start": 4390, + "end": 4400, + "loc": { + "start": { + "line": 141, + "column": 73 + }, + "end": { + "line": 141, + "column": 83 + } + }, + "value": "hashtags", + "rawValue": null, + "raw": "\"hashtags\"" + } + }, + { + "type": "JSXAttribute", + "start": 4401, + "end": 4416, + "loc": { + "start": { + "line": 141, + "column": 84 + }, + "end": { + "line": 141, + "column": 99 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4401, + "end": 4410, + "loc": { + "start": { + "line": 141, + "column": 84 + }, + "end": { + "line": 141, + "column": 93 + } + }, + "name": "maxLength" + }, + "value": { + "type": "Literal", + "start": 4411, + "end": 4416, + "loc": { + "start": { + "line": 141, + "column": 94 + }, + "end": { + "line": 141, + "column": 99 + } + }, + "value": "140", + "rawValue": null, + "raw": "\"140\"" + } + }, + { + "type": "JSXAttribute", + "start": 4417, + "end": 4444, + "loc": { + "start": { + "line": 141, + "column": 100 + }, + "end": { + "line": 141, + "column": 127 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4417, + "end": 4422, + "loc": { + "start": { + "line": 141, + "column": 100 + }, + "end": { + "line": 141, + "column": 105 + } + }, + "name": "value" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 4423, + "end": 4444, + "loc": { + "start": { + "line": 141, + "column": 106 + }, + "end": { + "line": 141, + "column": 127 + } + }, + "expression": { + "type": "MemberExpression", + "start": 4424, + "end": 4443, + "loc": { + "start": { + "line": 141, + "column": 107 + }, + "end": { + "line": 141, + "column": 126 + } + }, + "object": { + "type": "MemberExpression", + "start": 4424, + "end": 4434, + "loc": { + "start": { + "line": 141, + "column": 107 + }, + "end": { + "line": 141, + "column": 117 + } + }, + "object": { + "type": "ThisExpression", + "start": 4424, + "end": 4428, + "loc": { + "start": { + "line": 141, + "column": 107 + }, + "end": { + "line": 141, + "column": 111 + } + } + }, + "property": { + "type": "Identifier", + "start": 4429, + "end": 4434, + "loc": { + "start": { + "line": 141, + "column": 112 + }, + "end": { + "line": 141, + "column": 117 + } + }, + "name": "state" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 4435, + "end": 4443, + "loc": { + "start": { + "line": 141, + "column": 118 + }, + "end": { + "line": 141, + "column": 126 + } + }, + "name": "hashtags" + }, + "computed": false + } + } + }, + { + "type": "JSXAttribute", + "start": 4445, + "end": 4453, + "loc": { + "start": { + "line": 141, + "column": 128 + }, + "end": { + "line": 141, + "column": 136 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4445, + "end": 4453, + "loc": { + "start": { + "line": 141, + "column": 128 + }, + "end": { + "line": 141, + "column": 136 + } + }, + "name": "required" + }, + "value": null + }, + { + "type": "JSXAttribute", + "start": 4454, + "end": 4490, + "loc": { + "start": { + "line": 141, + "column": 137 + }, + "end": { + "line": 141, + "column": 173 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4454, + "end": 4462, + "loc": { + "start": { + "line": 141, + "column": 137 + }, + "end": { + "line": 141, + "column": 145 + } + }, + "name": "onChange" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 4463, + "end": 4490, + "loc": { + "start": { + "line": 141, + "column": 146 + }, + "end": { + "line": 141, + "column": 173 + } + }, + "expression": { + "type": "MemberExpression", + "start": 4464, + "end": 4489, + "loc": { + "start": { + "line": 141, + "column": 147 + }, + "end": { + "line": 141, + "column": 172 + } + }, + "object": { + "type": "ThisExpression", + "start": 4464, + "end": 4468, + "loc": { + "start": { + "line": 141, + "column": 147 + }, + "end": { + "line": 141, + "column": 151 + } + } + }, + "property": { + "type": "Identifier", + "start": 4469, + "end": 4489, + "loc": { + "start": { + "line": 141, + "column": 152 + }, + "end": { + "line": 141, + "column": 172 + } + }, + "name": "handleHashtagsChange" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 4346, + "end": 4351, + "loc": { + "start": { + "line": 141, + "column": 29 + }, + "end": { + "line": 141, + "column": 34 + } + }, + "name": "input" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 4493, + "end": 4518, + "loc": { + "start": { + "line": 141, + "column": 176 + }, + "end": { + "line": 142, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 4524, + "end": 4549, + "loc": { + "start": { + "line": 142, + "column": 30 + }, + "end": { + "line": 143, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 4549, + "end": 4852, + "loc": { + "start": { + "line": 143, + "column": 24 + }, + "end": { + "line": 148, + "column": 30 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 4549, + "end": 4577, + "loc": { + "start": { + "line": 143, + "column": 24 + }, + "end": { + "line": 143, + "column": 52 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 4554, + "end": 4576, + "loc": { + "start": { + "line": 143, + "column": 29 + }, + "end": { + "line": 143, + "column": 51 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4554, + "end": 4563, + "loc": { + "start": { + "line": 143, + "column": 29 + }, + "end": { + "line": 143, + "column": 38 + } + }, + "name": "className" + }, + "value": { + "type": "Literal", + "start": 4564, + "end": 4576, + "loc": { + "start": { + "line": 143, + "column": 39 + }, + "end": { + "line": 143, + "column": 51 + } + }, + "value": "form-group", + "rawValue": null, + "raw": "\"form-group\"" + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 4550, + "end": 4553, + "loc": { + "start": { + "line": 143, + "column": 25 + }, + "end": { + "line": 143, + "column": 28 + } + }, + "name": "div" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 4846, + "end": 4852, + "loc": { + "start": { + "line": 148, + "column": 24 + }, + "end": { + "line": 148, + "column": 30 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4848, + "end": 4851, + "loc": { + "start": { + "line": 148, + "column": 26 + }, + "end": { + "line": 148, + "column": 29 + } + }, + "name": "div" + } + }, + "children": [ + { + "type": "Literal", + "start": 4577, + "end": 4606, + "loc": { + "start": { + "line": 143, + "column": 52 + }, + "end": { + "line": 144, + "column": 28 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 4606, + "end": 4821, + "loc": { + "start": { + "line": 144, + "column": 28 + }, + "end": { + "line": 147, + "column": 37 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 4606, + "end": 4686, + "loc": { + "start": { + "line": 144, + "column": 28 + }, + "end": { + "line": 144, + "column": 108 + } + }, + "attributes": [ + { + "type": "JSXAttribute", + "start": 4614, + "end": 4627, + "loc": { + "start": { + "line": 144, + "column": 36 + }, + "end": { + "line": 144, + "column": 49 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4614, + "end": 4618, + "loc": { + "start": { + "line": 144, + "column": 36 + }, + "end": { + "line": 144, + "column": 40 + } + }, + "name": "type" + }, + "value": { + "type": "Literal", + "start": 4619, + "end": 4627, + "loc": { + "start": { + "line": 144, + "column": 41 + }, + "end": { + "line": 144, + "column": 49 + } + }, + "value": "submit", + "rawValue": null, + "raw": "\"submit\"" + } + }, + { + "type": "JSXAttribute", + "start": 4628, + "end": 4643, + "loc": { + "start": { + "line": 144, + "column": 50 + }, + "end": { + "line": 144, + "column": 65 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4628, + "end": 4630, + "loc": { + "start": { + "line": 144, + "column": 50 + }, + "end": { + "line": 144, + "column": 52 + } + }, + "name": "id" + }, + "value": { + "type": "Literal", + "start": 4631, + "end": 4643, + "loc": { + "start": { + "line": 144, + "column": 53 + }, + "end": { + "line": 144, + "column": 65 + } + }, + "value": "upload-btn", + "rawValue": null, + "raw": "\"upload-btn\"" + } + }, + { + "type": "JSXAttribute", + "start": 4644, + "end": 4685, + "loc": { + "start": { + "line": 144, + "column": 66 + }, + "end": { + "line": 144, + "column": 107 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4644, + "end": 4652, + "loc": { + "start": { + "line": 144, + "column": 66 + }, + "end": { + "line": 144, + "column": 74 + } + }, + "name": "disabled" + }, + "value": { + "type": "JSXExpressionContainer", + "start": 4653, + "end": 4685, + "loc": { + "start": { + "line": 144, + "column": 75 + }, + "end": { + "line": 144, + "column": 107 + } + }, + "expression": { + "type": "MemberExpression", + "start": 4654, + "end": 4684, + "loc": { + "start": { + "line": 144, + "column": 76 + }, + "end": { + "line": 144, + "column": 106 + } + }, + "object": { + "type": "MemberExpression", + "start": 4654, + "end": 4664, + "loc": { + "start": { + "line": 144, + "column": 76 + }, + "end": { + "line": 144, + "column": 86 + } + }, + "object": { + "type": "ThisExpression", + "start": 4654, + "end": 4658, + "loc": { + "start": { + "line": 144, + "column": 76 + }, + "end": { + "line": 144, + "column": 80 + } + } + }, + "property": { + "type": "Identifier", + "start": 4659, + "end": 4664, + "loc": { + "start": { + "line": 144, + "column": 81 + }, + "end": { + "line": 144, + "column": 86 + } + }, + "name": "state" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 4665, + "end": 4684, + "loc": { + "start": { + "line": 144, + "column": 87 + }, + "end": { + "line": 144, + "column": 106 + } + }, + "name": "disabledUploadState" + }, + "computed": false + } + } + } + ], + "name": { + "type": "JSXIdentifier", + "start": 4607, + "end": 4613, + "loc": { + "start": { + "line": 144, + "column": 29 + }, + "end": { + "line": 144, + "column": 35 + } + }, + "name": "button" + }, + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 4812, + "end": 4821, + "loc": { + "start": { + "line": 147, + "column": 28 + }, + "end": { + "line": 147, + "column": 37 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 4814, + "end": 4820, + "loc": { + "start": { + "line": 147, + "column": 30 + }, + "end": { + "line": 147, + "column": 36 + } + }, + "name": "button" + } + }, + "children": [ + { + "type": "Literal", + "start": 4686, + "end": 4719, + "loc": { + "start": { + "line": 144, + "column": 108 + }, + "end": { + "line": 145, + "column": 32 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXExpressionContainer", + "start": 4719, + "end": 4743, + "loc": { + "start": { + "line": 145, + "column": 32 + }, + "end": { + "line": 145, + "column": 56 + } + }, + "expression": { + "type": "MemberExpression", + "start": 4720, + "end": 4742, + "loc": { + "start": { + "line": 145, + "column": 33 + }, + "end": { + "line": 145, + "column": 55 + } + }, + "object": { + "type": "MemberExpression", + "start": 4720, + "end": 4730, + "loc": { + "start": { + "line": 145, + "column": 33 + }, + "end": { + "line": 145, + "column": 43 + } + }, + "object": { + "type": "ThisExpression", + "start": 4720, + "end": 4724, + "loc": { + "start": { + "line": 145, + "column": 33 + }, + "end": { + "line": 145, + "column": 37 + } + } + }, + "property": { + "type": "Identifier", + "start": 4725, + "end": 4730, + "loc": { + "start": { + "line": 145, + "column": 38 + }, + "end": { + "line": 145, + "column": 43 + } + }, + "name": "state" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 4731, + "end": 4742, + "loc": { + "start": { + "line": 145, + "column": 44 + }, + "end": { + "line": 145, + "column": 55 + } + }, + "name": "uploadState" + }, + "computed": false + } + }, + { + "type": "Literal", + "start": 4743, + "end": 4776, + "loc": { + "start": { + "line": 145, + "column": 56 + }, + "end": { + "line": 146, + "column": 32 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + }, + { + "type": "JSXElement", + "start": 4776, + "end": 4783, + "loc": { + "start": { + "line": 146, + "column": 32 + }, + "end": { + "line": 146, + "column": 39 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 4776, + "end": 4783, + "loc": { + "start": { + "line": 146, + "column": 32 + }, + "end": { + "line": 146, + "column": 39 + } + }, + "attributes": [], + "name": { + "type": "JSXIdentifier", + "start": 4777, + "end": 4780, + "loc": { + "start": { + "line": 146, + "column": 33 + }, + "end": { + "line": 146, + "column": 36 + } + }, + "name": "Ink" + }, + "selfClosing": true + }, + "closingElement": null, + "children": [] + }, + { + "type": "Literal", + "start": 4783, + "end": 4812, + "loc": { + "start": { + "line": 146, + "column": 39 + }, + "end": { + "line": 147, + "column": 28 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 4821, + "end": 4846, + "loc": { + "start": { + "line": 147, + "column": 37 + }, + "end": { + "line": 148, + "column": 24 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 4852, + "end": 4873, + "loc": { + "start": { + "line": 148, + "column": 30 + }, + "end": { + "line": 149, + "column": 20 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 4879, + "end": 4896, + "loc": { + "start": { + "line": 149, + "column": 26 + }, + "end": { + "line": 150, + "column": 16 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ] + }, + { + "type": "Literal", + "start": 4903, + "end": 4916, + "loc": { + "start": { + "line": 150, + "column": 23 + }, + "end": { + "line": 151, + "column": 12 + } + }, + "value": "\n ", + "rawValue": null, + "raw": "\n " + } + ], + "parenthesizedExpression": true + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * render\n * @returns markup\n ", + "start": 2790, + "end": 2838, + "loc": { + "start": { + "line": 115, + "column": 4 + }, + "end": { + "line": 118, + "column": 7 + } + }, + "range": [ + 2790, + 2838 + ] + } + ] + } + ], + "trailingComments": null + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * connect\n * Connects React component to a Redux store\n * Documentation: https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options\n ", + "start": 4943, + "end": 5148, + "loc": { + "start": { + "line": 157, + "column": 0 + }, + "end": { + "line": 161, + "column": 3 + } + }, + "range": [ + 4943, + 5148 + ] + } + ] + }, + { + "type": "ExportDefaultDeclaration", + "start": 5149, + "end": 5212, + "loc": { + "start": { + "line": 162, + "column": 0 + }, + "end": { + "line": 162, + "column": 63 + } + }, + "declaration": { + "type": "CallExpression", + "start": 5164, + "end": 5212, + "loc": { + "start": { + "line": 162, + "column": 15 + }, + "end": { + "line": 162, + "column": 63 + } + }, + "callee": { + "type": "CallExpression", + "start": 5164, + "end": 5204, + "loc": { + "start": { + "line": 162, + "column": 15 + }, + "end": { + "line": 162, + "column": 55 + } + }, + "callee": { + "type": "Identifier", + "start": 5164, + "end": 5171, + "loc": { + "start": { + "line": 162, + "column": 15 + }, + "end": { + "line": 162, + "column": 22 + } + }, + "name": "connect", + "leadingComments": null + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 5172, + "end": 5203, + "loc": { + "start": { + "line": 162, + "column": 23 + }, + "end": { + "line": 162, + "column": 54 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 5172, + "end": 5177, + "loc": { + "start": { + "line": 162, + "column": 23 + }, + "end": { + "line": 162, + "column": 28 + } + }, + "name": "state" + } + ], + "body": { + "type": "ObjectExpression", + "start": 5182, + "end": 5202, + "loc": { + "start": { + "line": 162, + "column": 33 + }, + "end": { + "line": 162, + "column": 53 + } + }, + "properties": [ + { + "type": "Property", + "start": 5184, + "end": 5200, + "loc": { + "start": { + "line": 162, + "column": 35 + }, + "end": { + "line": 162, + "column": 51 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 5184, + "end": 5188, + "loc": { + "start": { + "line": 162, + "column": 35 + }, + "end": { + "line": 162, + "column": 39 + } + }, + "name": "user" + }, + "value": { + "type": "MemberExpression", + "start": 5190, + "end": 5200, + "loc": { + "start": { + "line": 162, + "column": 41 + }, + "end": { + "line": 162, + "column": 51 + } + }, + "object": { + "type": "Identifier", + "start": 5190, + "end": 5195, + "loc": { + "start": { + "line": 162, + "column": 41 + }, + "end": { + "line": 162, + "column": 46 + } + }, + "name": "state" + }, + "property": { + "type": "Identifier", + "start": 5196, + "end": 5200, + "loc": { + "start": { + "line": 162, + "column": 47 + }, + "end": { + "line": 162, + "column": 51 + } + }, + "name": "User" + }, + "computed": false + }, + "kind": "init" + } + ], + "parenthesizedExpression": true + } + } + ], + "leadingComments": null + }, + "arguments": [ + { + "type": "Identifier", + "start": 5205, + "end": 5211, + "loc": { + "start": { + "line": 162, + "column": 56 + }, + "end": { + "line": 162, + "column": 62 + } + }, + "name": "Upload" + } + ], + "leadingComments": [ + { + "type": "Block", + "value": "*\n * connect\n * Connects React component to a Redux store\n * Documentation: https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options\n ", + "start": 4943, + "end": 5148, + "loc": { + "start": { + "line": 157, + "column": 0 + }, + "end": { + "line": 161, + "column": 3 + } + }, + "range": [ + 4943, + 5148 + ] + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * connect\n * Connects React component to a Redux store\n * Documentation: https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options\n ", + "start": 4943, + "end": 5148, + "loc": { + "start": { + "line": 157, + "column": 0 + }, + "end": { + "line": 161, + "column": 3 + } + }, + "range": [ + 4943, + 5148 + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/routes/Upload/index.js.json b/app/docs/ast/source/routes/Upload/index.js.json new file mode 100644 index 0000000..a3b8373 --- /dev/null +++ b/app/docs/ast/source/routes/Upload/index.js.json @@ -0,0 +1,444 @@ +{ + "type": "Program", + "start": 0, + "end": 225, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 13, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ExpressionStatement", + "start": 0, + "end": 224, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 12, + "column": 1 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 0, + "end": 224, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 12, + "column": 1 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 0, + "end": 14, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 14 + } + }, + "object": { + "type": "Identifier", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + }, + "name": "module" + }, + "property": { + "type": "Identifier", + "start": 7, + "end": 14, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 14 + } + }, + "name": "exports" + }, + "computed": false + }, + "right": { + "type": "ObjectExpression", + "start": 17, + "end": 224, + "loc": { + "start": { + "line": 1, + "column": 17 + }, + "end": { + "line": 12, + "column": 1 + } + }, + "properties": [ + { + "type": "Property", + "start": 23, + "end": 38, + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 19 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 23, + "end": 27, + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 8 + } + }, + "name": "path" + }, + "value": { + "type": "Literal", + "start": 29, + "end": 38, + "loc": { + "start": { + "line": 2, + "column": 10 + }, + "end": { + "line": 2, + "column": 19 + } + }, + "value": "/upload", + "rawValue": "/upload", + "raw": "'/upload'" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 141, + "end": 221, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 11, + "column": 5 + } + }, + "method": true, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 141, + "end": 153, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 9, + "column": 16 + } + }, + "name": "getComponent", + "leadingComments": null + }, + "kind": "init", + "value": { + "type": "FunctionExpression", + "start": 153, + "end": 221, + "loc": { + "start": { + "line": 9, + "column": 16 + }, + "end": { + "line": 11, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 154, + "end": 162, + "loc": { + "start": { + "line": 9, + "column": 17 + }, + "end": { + "line": 9, + "column": 25 + } + }, + "name": "location" + }, + { + "type": "Identifier", + "start": 164, + "end": 166, + "loc": { + "start": { + "line": 9, + "column": 27 + }, + "end": { + "line": 9, + "column": 29 + } + }, + "name": "cb" + } + ], + "body": { + "type": "BlockStatement", + "start": 168, + "end": 221, + "loc": { + "start": { + "line": 9, + "column": 31 + }, + "end": { + "line": 11, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 178, + "end": 215, + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 45 + } + }, + "expression": { + "type": "CallExpression", + "start": 178, + "end": 215, + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 45 + } + }, + "callee": { + "type": "Identifier", + "start": 178, + "end": 180, + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 10 + } + }, + "name": "cb" + }, + "arguments": [ + { + "type": "Literal", + "start": 181, + "end": 185, + "loc": { + "start": { + "line": 10, + "column": 11 + }, + "end": { + "line": 10, + "column": 15 + } + }, + "value": null, + "rawValue": null, + "raw": "null" + }, + { + "type": "MemberExpression", + "start": 187, + "end": 214, + "loc": { + "start": { + "line": 10, + "column": 17 + }, + "end": { + "line": 10, + "column": 44 + } + }, + "object": { + "type": "CallExpression", + "start": 187, + "end": 206, + "loc": { + "start": { + "line": 10, + "column": 17 + }, + "end": { + "line": 10, + "column": 36 + } + }, + "callee": { + "type": "Identifier", + "start": 187, + "end": 194, + "loc": { + "start": { + "line": 10, + "column": 17 + }, + "end": { + "line": 10, + "column": 24 + } + }, + "name": "require" + }, + "arguments": [ + { + "type": "Literal", + "start": 195, + "end": 205, + "loc": { + "start": { + "line": 10, + "column": 25 + }, + "end": { + "line": 10, + "column": 35 + } + }, + "value": "./Upload", + "rawValue": "./Upload", + "raw": "'./Upload'" + } + ] + }, + "property": { + "type": "Identifier", + "start": 207, + "end": 214, + "loc": { + "start": { + "line": 10, + "column": 37 + }, + "end": { + "line": 10, + "column": 44 + } + }, + "name": "default" + }, + "computed": false + } + ] + } + } + ] + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * getComponent\n * @param location\n * @param cb {Function} callback\n ", + "start": 45, + "end": 136, + "loc": { + "start": { + "line": 4, + "column": 4 + }, + "end": { + "line": 8, + "column": 7 + } + }, + "range": [ + 45, + 136 + ] + } + ] + } + ] + } + } + } + ] +} \ No newline at end of file diff --git a/app/docs/ast/source/utils/analytics.js.json b/app/docs/ast/source/utils/analytics.js.json new file mode 100644 index 0000000..074584a --- /dev/null +++ b/app/docs/ast/source/utils/analytics.js.json @@ -0,0 +1,3830 @@ +{ + "type": "Program", + "start": 0, + "end": 2342, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 101, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ExportNamedDeclaration", + "start": 122, + "end": 362, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 16, + "column": 1 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 129, + "end": 362, + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 16, + "column": 1 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 135, + "end": 362, + "loc": { + "start": { + "line": 8, + "column": 13 + }, + "end": { + "line": 16, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 135, + "end": 144, + "loc": { + "start": { + "line": 8, + "column": 13 + }, + "end": { + "line": 8, + "column": 22 + } + }, + "name": "viewPhoto", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 147, + "end": 362, + "loc": { + "start": { + "line": 8, + "column": 25 + }, + "end": { + "line": 16, + "column": 1 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 148, + "end": 154, + "loc": { + "start": { + "line": 8, + "column": 26 + }, + "end": { + "line": 8, + "column": 32 + } + }, + "name": "userId" + }, + { + "type": "Identifier", + "start": 156, + "end": 162, + "loc": { + "start": { + "line": 8, + "column": 34 + }, + "end": { + "line": 8, + "column": 40 + } + }, + "name": "postId" + }, + { + "type": "Identifier", + "start": 164, + "end": 176, + "loc": { + "start": { + "line": 8, + "column": 42 + }, + "end": { + "line": 8, + "column": 54 + } + }, + "name": "postAuthorId" + } + ], + "body": { + "type": "BlockStatement", + "start": 181, + "end": 362, + "loc": { + "start": { + "line": 8, + "column": 59 + }, + "end": { + "line": 16, + "column": 1 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 187, + "end": 317, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 14, + "column": 5 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 191, + "end": 317, + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 14, + "column": 5 + } + }, + "id": { + "type": "Identifier", + "start": 191, + "end": 203, + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 20 + } + }, + "name": "eventDetails" + }, + "init": { + "type": "ObjectExpression", + "start": 206, + "end": 317, + "loc": { + "start": { + "line": 9, + "column": 23 + }, + "end": { + "line": 14, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 216, + "end": 228, + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 216, + "end": 220, + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 12 + } + }, + "name": "user" + }, + "value": { + "type": "Identifier", + "start": 222, + "end": 228, + "loc": { + "start": { + "line": 10, + "column": 14 + }, + "end": { + "line": 10, + "column": 20 + } + }, + "name": "userId" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 238, + "end": 252, + "loc": { + "start": { + "line": 11, + "column": 8 + }, + "end": { + "line": 11, + "column": 22 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 238, + "end": 244, + "loc": { + "start": { + "line": 11, + "column": 8 + }, + "end": { + "line": 11, + "column": 14 + } + }, + "name": "postId" + }, + "value": { + "type": "Identifier", + "start": 246, + "end": 252, + "loc": { + "start": { + "line": 11, + "column": 16 + }, + "end": { + "line": 11, + "column": 22 + } + }, + "name": "postId" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 262, + "end": 288, + "loc": { + "start": { + "line": 12, + "column": 8 + }, + "end": { + "line": 12, + "column": 34 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 262, + "end": 274, + "loc": { + "start": { + "line": 12, + "column": 8 + }, + "end": { + "line": 12, + "column": 20 + } + }, + "name": "postAuthorId" + }, + "value": { + "type": "Identifier", + "start": 276, + "end": 288, + "loc": { + "start": { + "line": 12, + "column": 22 + }, + "end": { + "line": 12, + "column": 34 + } + }, + "name": "postAuthorId" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 298, + "end": 310, + "loc": { + "start": { + "line": 13, + "column": 8 + }, + "end": { + "line": 13, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 298, + "end": 302, + "loc": { + "start": { + "line": 13, + "column": 8 + }, + "end": { + "line": 13, + "column": 12 + } + }, + "name": "type" + }, + "value": { + "type": "Literal", + "start": 304, + "end": 310, + "loc": { + "start": { + "line": 13, + "column": 14 + }, + "end": { + "line": 13, + "column": 20 + } + }, + "value": "item", + "rawValue": "item", + "raw": "'item'" + }, + "kind": "init" + } + ] + } + } + ], + "kind": "let" + }, + { + "type": "ExpressionStatement", + "start": 322, + "end": 360, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 42 + } + }, + "expression": { + "type": "CallExpression", + "start": 322, + "end": 360, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 42 + } + }, + "callee": { + "type": "Identifier", + "start": 322, + "end": 337, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 19 + } + }, + "name": "_trackKeenEvent" + }, + "arguments": [ + { + "type": "Identifier", + "start": 338, + "end": 350, + "loc": { + "start": { + "line": 15, + "column": 20 + }, + "end": { + "line": 15, + "column": 32 + } + }, + "name": "eventDetails" + }, + { + "type": "Literal", + "start": 352, + "end": 359, + "loc": { + "start": { + "line": 15, + "column": 34 + }, + "end": { + "line": 15, + "column": 41 + } + }, + "value": "views", + "rawValue": "views", + "raw": "'views'" + } + ] + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * viewPhoto\n * sends Keen tracking event for photo view\n * @param userId\n * @param postId\n * @param postAuthorId\n ", + "start": 0, + "end": 121, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + }, + "range": [ + 0, + 121 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * viewProfile\n * sends Keen tracking event for profile view\n * @param userId\n * @param profileUserId\n ", + "start": 364, + "end": 473, + "loc": { + "start": { + "line": 18, + "column": 0 + }, + "end": { + "line": 23, + "column": 3 + } + }, + "range": [ + 364, + 473 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * viewPhoto\n * sends Keen tracking event for photo view\n * @param userId\n * @param postId\n * @param postAuthorId\n ", + "start": 0, + "end": 121, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + }, + "range": [ + 0, + 121 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * viewProfile\n * sends Keen tracking event for profile view\n * @param userId\n * @param profileUserId\n ", + "start": 364, + "end": 473, + "loc": { + "start": { + "line": 18, + "column": 0 + }, + "end": { + "line": 23, + "column": 3 + } + }, + "range": [ + 364, + 473 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 474, + "end": 685, + "loc": { + "start": { + "line": 24, + "column": 0 + }, + "end": { + "line": 31, + "column": 1 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 481, + "end": 685, + "loc": { + "start": { + "line": 24, + "column": 7 + }, + "end": { + "line": 31, + "column": 1 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 487, + "end": 685, + "loc": { + "start": { + "line": 24, + "column": 13 + }, + "end": { + "line": 31, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 487, + "end": 498, + "loc": { + "start": { + "line": 24, + "column": 13 + }, + "end": { + "line": 24, + "column": 24 + } + }, + "name": "viewProfile", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 501, + "end": 685, + "loc": { + "start": { + "line": 24, + "column": 27 + }, + "end": { + "line": 31, + "column": 1 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 502, + "end": 508, + "loc": { + "start": { + "line": 24, + "column": 28 + }, + "end": { + "line": 24, + "column": 34 + } + }, + "name": "userId" + }, + { + "type": "Identifier", + "start": 510, + "end": 523, + "loc": { + "start": { + "line": 24, + "column": 36 + }, + "end": { + "line": 24, + "column": 49 + } + }, + "name": "profileUserId" + } + ], + "body": { + "type": "BlockStatement", + "start": 528, + "end": 685, + "loc": { + "start": { + "line": 24, + "column": 54 + }, + "end": { + "line": 31, + "column": 1 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 534, + "end": 640, + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 29, + "column": 5 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 538, + "end": 640, + "loc": { + "start": { + "line": 25, + "column": 8 + }, + "end": { + "line": 29, + "column": 5 + } + }, + "id": { + "type": "Identifier", + "start": 538, + "end": 550, + "loc": { + "start": { + "line": 25, + "column": 8 + }, + "end": { + "line": 25, + "column": 20 + } + }, + "name": "eventDetails" + }, + "init": { + "type": "ObjectExpression", + "start": 553, + "end": 640, + "loc": { + "start": { + "line": 25, + "column": 23 + }, + "end": { + "line": 29, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 563, + "end": 575, + "loc": { + "start": { + "line": 26, + "column": 8 + }, + "end": { + "line": 26, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 563, + "end": 567, + "loc": { + "start": { + "line": 26, + "column": 8 + }, + "end": { + "line": 26, + "column": 12 + } + }, + "name": "user" + }, + "value": { + "type": "Identifier", + "start": 569, + "end": 575, + "loc": { + "start": { + "line": 26, + "column": 14 + }, + "end": { + "line": 26, + "column": 20 + } + }, + "name": "userId" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 585, + "end": 611, + "loc": { + "start": { + "line": 27, + "column": 8 + }, + "end": { + "line": 27, + "column": 34 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 585, + "end": 596, + "loc": { + "start": { + "line": 27, + "column": 8 + }, + "end": { + "line": 27, + "column": 19 + } + }, + "name": "profileUser" + }, + "value": { + "type": "Identifier", + "start": 598, + "end": 611, + "loc": { + "start": { + "line": 27, + "column": 21 + }, + "end": { + "line": 27, + "column": 34 + } + }, + "name": "profileUserId" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 621, + "end": 633, + "loc": { + "start": { + "line": 28, + "column": 8 + }, + "end": { + "line": 28, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 621, + "end": 625, + "loc": { + "start": { + "line": 28, + "column": 8 + }, + "end": { + "line": 28, + "column": 12 + } + }, + "name": "type" + }, + "value": { + "type": "Literal", + "start": 627, + "end": 633, + "loc": { + "start": { + "line": 28, + "column": 14 + }, + "end": { + "line": 28, + "column": 20 + } + }, + "value": "user", + "rawValue": "user", + "raw": "'user'" + }, + "kind": "init" + } + ] + } + } + ], + "kind": "let" + }, + { + "type": "ExpressionStatement", + "start": 645, + "end": 683, + "loc": { + "start": { + "line": 30, + "column": 4 + }, + "end": { + "line": 30, + "column": 42 + } + }, + "expression": { + "type": "CallExpression", + "start": 645, + "end": 683, + "loc": { + "start": { + "line": 30, + "column": 4 + }, + "end": { + "line": 30, + "column": 42 + } + }, + "callee": { + "type": "Identifier", + "start": 645, + "end": 660, + "loc": { + "start": { + "line": 30, + "column": 4 + }, + "end": { + "line": 30, + "column": 19 + } + }, + "name": "_trackKeenEvent" + }, + "arguments": [ + { + "type": "Identifier", + "start": 661, + "end": 673, + "loc": { + "start": { + "line": 30, + "column": 20 + }, + "end": { + "line": 30, + "column": 32 + } + }, + "name": "eventDetails" + }, + { + "type": "Literal", + "start": 675, + "end": 682, + "loc": { + "start": { + "line": 30, + "column": 34 + }, + "end": { + "line": 30, + "column": 41 + } + }, + "value": "views", + "rawValue": "views", + "raw": "'views'" + } + ] + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * viewProfile\n * sends Keen tracking event for profile view\n * @param userId\n * @param profileUserId\n ", + "start": 364, + "end": 473, + "loc": { + "start": { + "line": 18, + "column": 0 + }, + "end": { + "line": 23, + "column": 3 + } + }, + "range": [ + 364, + 473 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * likePhoto\n * sends Keen tracking event for photo like\n * @param userId\n * @param postId\n ", + "start": 687, + "end": 785, + "loc": { + "start": { + "line": 33, + "column": 0 + }, + "end": { + "line": 38, + "column": 3 + } + }, + "range": [ + 687, + 785 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * viewProfile\n * sends Keen tracking event for profile view\n * @param userId\n * @param profileUserId\n ", + "start": 364, + "end": 473, + "loc": { + "start": { + "line": 18, + "column": 0 + }, + "end": { + "line": 23, + "column": 3 + } + }, + "range": [ + 364, + 473 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * likePhoto\n * sends Keen tracking event for photo like\n * @param userId\n * @param postId\n ", + "start": 687, + "end": 785, + "loc": { + "start": { + "line": 33, + "column": 0 + }, + "end": { + "line": 38, + "column": 3 + } + }, + "range": [ + 687, + 785 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 786, + "end": 952, + "loc": { + "start": { + "line": 39, + "column": 0 + }, + "end": { + "line": 45, + "column": 1 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 793, + "end": 952, + "loc": { + "start": { + "line": 39, + "column": 7 + }, + "end": { + "line": 45, + "column": 1 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 799, + "end": 952, + "loc": { + "start": { + "line": 39, + "column": 13 + }, + "end": { + "line": 45, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 799, + "end": 808, + "loc": { + "start": { + "line": 39, + "column": 13 + }, + "end": { + "line": 39, + "column": 22 + } + }, + "name": "likePhoto", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 811, + "end": 952, + "loc": { + "start": { + "line": 39, + "column": 25 + }, + "end": { + "line": 45, + "column": 1 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 812, + "end": 818, + "loc": { + "start": { + "line": 39, + "column": 26 + }, + "end": { + "line": 39, + "column": 32 + } + }, + "name": "userId" + }, + { + "type": "Identifier", + "start": 820, + "end": 826, + "loc": { + "start": { + "line": 39, + "column": 34 + }, + "end": { + "line": 39, + "column": 40 + } + }, + "name": "postId" + } + ], + "body": { + "type": "BlockStatement", + "start": 831, + "end": 952, + "loc": { + "start": { + "line": 39, + "column": 45 + }, + "end": { + "line": 45, + "column": 1 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 837, + "end": 908, + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 43, + "column": 5 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 841, + "end": 908, + "loc": { + "start": { + "line": 40, + "column": 8 + }, + "end": { + "line": 43, + "column": 5 + } + }, + "id": { + "type": "Identifier", + "start": 841, + "end": 853, + "loc": { + "start": { + "line": 40, + "column": 8 + }, + "end": { + "line": 40, + "column": 20 + } + }, + "name": "eventDetails" + }, + "init": { + "type": "ObjectExpression", + "start": 856, + "end": 908, + "loc": { + "start": { + "line": 40, + "column": 23 + }, + "end": { + "line": 43, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 866, + "end": 878, + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 41, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 866, + "end": 870, + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 41, + "column": 12 + } + }, + "name": "user" + }, + "value": { + "type": "Identifier", + "start": 872, + "end": 878, + "loc": { + "start": { + "line": 41, + "column": 14 + }, + "end": { + "line": 41, + "column": 20 + } + }, + "name": "userId" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 888, + "end": 902, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 22 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 888, + "end": 894, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 14 + } + }, + "name": "postId" + }, + "value": { + "type": "Identifier", + "start": 896, + "end": 902, + "loc": { + "start": { + "line": 42, + "column": 16 + }, + "end": { + "line": 42, + "column": 22 + } + }, + "name": "postId" + }, + "kind": "init" + } + ] + } + } + ], + "kind": "let" + }, + { + "type": "ExpressionStatement", + "start": 913, + "end": 950, + "loc": { + "start": { + "line": 44, + "column": 4 + }, + "end": { + "line": 44, + "column": 41 + } + }, + "expression": { + "type": "CallExpression", + "start": 913, + "end": 950, + "loc": { + "start": { + "line": 44, + "column": 4 + }, + "end": { + "line": 44, + "column": 41 + } + }, + "callee": { + "type": "Identifier", + "start": 913, + "end": 928, + "loc": { + "start": { + "line": 44, + "column": 4 + }, + "end": { + "line": 44, + "column": 19 + } + }, + "name": "_trackKeenEvent" + }, + "arguments": [ + { + "type": "Identifier", + "start": 929, + "end": 941, + "loc": { + "start": { + "line": 44, + "column": 20 + }, + "end": { + "line": 44, + "column": 32 + } + }, + "name": "eventDetails" + }, + { + "type": "Literal", + "start": 943, + "end": 949, + "loc": { + "start": { + "line": 44, + "column": 34 + }, + "end": { + "line": 44, + "column": 40 + } + }, + "value": "like", + "rawValue": "like", + "raw": "'like'" + } + ] + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * likePhoto\n * sends Keen tracking event for photo like\n * @param userId\n * @param postId\n ", + "start": 687, + "end": 785, + "loc": { + "start": { + "line": 33, + "column": 0 + }, + "end": { + "line": 38, + "column": 3 + } + }, + "range": [ + 687, + 785 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * followUser\n * sends Keen tracking event for user follow\n * @param userId\n * @param targetId\n * @param direction\n ", + "start": 954, + "end": 1076, + "loc": { + "start": { + "line": 47, + "column": 0 + }, + "end": { + "line": 53, + "column": 3 + } + }, + "range": [ + 954, + 1076 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * likePhoto\n * sends Keen tracking event for photo like\n * @param userId\n * @param postId\n ", + "start": 687, + "end": 785, + "loc": { + "start": { + "line": 33, + "column": 0 + }, + "end": { + "line": 38, + "column": 3 + } + }, + "range": [ + 687, + 785 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * followUser\n * sends Keen tracking event for user follow\n * @param userId\n * @param targetId\n * @param direction\n ", + "start": 954, + "end": 1076, + "loc": { + "start": { + "line": 47, + "column": 0 + }, + "end": { + "line": 53, + "column": 3 + } + }, + "range": [ + 954, + 1076 + ] + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 1077, + "end": 1347, + "loc": { + "start": { + "line": 54, + "column": 0 + }, + "end": { + "line": 62, + "column": 1 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 1084, + "end": 1347, + "loc": { + "start": { + "line": 54, + "column": 7 + }, + "end": { + "line": 62, + "column": 1 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1090, + "end": 1347, + "loc": { + "start": { + "line": 54, + "column": 13 + }, + "end": { + "line": 62, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 1090, + "end": 1100, + "loc": { + "start": { + "line": 54, + "column": 13 + }, + "end": { + "line": 54, + "column": 23 + } + }, + "name": "followUser", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 1103, + "end": 1347, + "loc": { + "start": { + "line": 54, + "column": 26 + }, + "end": { + "line": 62, + "column": 1 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1104, + "end": 1110, + "loc": { + "start": { + "line": 54, + "column": 27 + }, + "end": { + "line": 54, + "column": 33 + } + }, + "name": "userId" + }, + { + "type": "Identifier", + "start": 1112, + "end": 1120, + "loc": { + "start": { + "line": 54, + "column": 35 + }, + "end": { + "line": 54, + "column": 43 + } + }, + "name": "targetId" + }, + { + "type": "Identifier", + "start": 1122, + "end": 1131, + "loc": { + "start": { + "line": 54, + "column": 45 + }, + "end": { + "line": 54, + "column": 54 + } + }, + "name": "direction" + } + ], + "body": { + "type": "BlockStatement", + "start": 1136, + "end": 1347, + "loc": { + "start": { + "line": 54, + "column": 59 + }, + "end": { + "line": 62, + "column": 1 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 1142, + "end": 1301, + "loc": { + "start": { + "line": 55, + "column": 4 + }, + "end": { + "line": 60, + "column": 5 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1146, + "end": 1301, + "loc": { + "start": { + "line": 55, + "column": 8 + }, + "end": { + "line": 60, + "column": 5 + } + }, + "id": { + "type": "Identifier", + "start": 1146, + "end": 1158, + "loc": { + "start": { + "line": 55, + "column": 8 + }, + "end": { + "line": 55, + "column": 20 + } + }, + "name": "eventDetails" + }, + "init": { + "type": "ObjectExpression", + "start": 1161, + "end": 1301, + "loc": { + "start": { + "line": 55, + "column": 23 + }, + "end": { + "line": 60, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 1171, + "end": 1183, + "loc": { + "start": { + "line": 56, + "column": 8 + }, + "end": { + "line": 56, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1171, + "end": 1175, + "loc": { + "start": { + "line": 56, + "column": 8 + }, + "end": { + "line": 56, + "column": 12 + } + }, + "name": "user" + }, + "value": { + "type": "Identifier", + "start": 1177, + "end": 1183, + "loc": { + "start": { + "line": 56, + "column": 14 + }, + "end": { + "line": 56, + "column": 20 + } + }, + "name": "userId" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1193, + "end": 1211, + "loc": { + "start": { + "line": 57, + "column": 8 + }, + "end": { + "line": 57, + "column": 26 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1193, + "end": 1201, + "loc": { + "start": { + "line": 57, + "column": 8 + }, + "end": { + "line": 57, + "column": 16 + } + }, + "name": "targetId" + }, + "value": { + "type": "Identifier", + "start": 1203, + "end": 1211, + "loc": { + "start": { + "line": 57, + "column": 18 + }, + "end": { + "line": 57, + "column": 26 + } + }, + "name": "targetId" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1221, + "end": 1241, + "loc": { + "start": { + "line": 58, + "column": 8 + }, + "end": { + "line": 58, + "column": 28 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1221, + "end": 1230, + "loc": { + "start": { + "line": 58, + "column": 8 + }, + "end": { + "line": 58, + "column": 17 + } + }, + "name": "direction" + }, + "value": { + "type": "Identifier", + "start": 1232, + "end": 1241, + "loc": { + "start": { + "line": 58, + "column": 19 + }, + "end": { + "line": 58, + "column": 28 + } + }, + "name": "direction" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1251, + "end": 1295, + "loc": { + "start": { + "line": 59, + "column": 8 + }, + "end": { + "line": 59, + "column": 52 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1251, + "end": 1263, + "loc": { + "start": { + "line": 59, + "column": 8 + }, + "end": { + "line": 59, + "column": 20 + } + }, + "name": "directionInt" + }, + "value": { + "type": "ConditionalExpression", + "start": 1265, + "end": 1295, + "loc": { + "start": { + "line": 59, + "column": 22 + }, + "end": { + "line": 59, + "column": 52 + } + }, + "test": { + "type": "BinaryExpression", + "start": 1266, + "end": 1285, + "loc": { + "start": { + "line": 59, + "column": 23 + }, + "end": { + "line": 59, + "column": 42 + } + }, + "left": { + "type": "Identifier", + "start": 1266, + "end": 1275, + "loc": { + "start": { + "line": 59, + "column": 23 + }, + "end": { + "line": 59, + "column": 32 + } + }, + "name": "direction" + }, + "operator": "==", + "right": { + "type": "Literal", + "start": 1277, + "end": 1285, + "loc": { + "start": { + "line": 59, + "column": 34 + }, + "end": { + "line": 59, + "column": 42 + } + }, + "value": "follow", + "rawValue": "follow", + "raw": "'follow'" + }, + "parenthesizedExpression": true + }, + "consequent": { + "type": "Literal", + "start": 1289, + "end": 1290, + "loc": { + "start": { + "line": 59, + "column": 46 + }, + "end": { + "line": 59, + "column": 47 + } + }, + "value": 1, + "rawValue": 1, + "raw": "1" + }, + "alternate": { + "type": "UnaryExpression", + "start": 1293, + "end": 1295, + "loc": { + "start": { + "line": 59, + "column": 50 + }, + "end": { + "line": 59, + "column": 52 + } + }, + "operator": "-", + "prefix": true, + "argument": { + "type": "Literal", + "start": 1294, + "end": 1295, + "loc": { + "start": { + "line": 59, + "column": 51 + }, + "end": { + "line": 59, + "column": 52 + } + }, + "value": 1, + "rawValue": 1, + "raw": "1" + } + } + }, + "kind": "init" + } + ] + } + } + ], + "kind": "let" + }, + { + "type": "ExpressionStatement", + "start": 1306, + "end": 1345, + "loc": { + "start": { + "line": 61, + "column": 4 + }, + "end": { + "line": 61, + "column": 43 + } + }, + "expression": { + "type": "CallExpression", + "start": 1306, + "end": 1345, + "loc": { + "start": { + "line": 61, + "column": 4 + }, + "end": { + "line": 61, + "column": 43 + } + }, + "callee": { + "type": "Identifier", + "start": 1306, + "end": 1321, + "loc": { + "start": { + "line": 61, + "column": 4 + }, + "end": { + "line": 61, + "column": 19 + } + }, + "name": "_trackKeenEvent" + }, + "arguments": [ + { + "type": "Identifier", + "start": 1322, + "end": 1334, + "loc": { + "start": { + "line": 61, + "column": 20 + }, + "end": { + "line": 61, + "column": 32 + } + }, + "name": "eventDetails" + }, + { + "type": "Literal", + "start": 1336, + "end": 1344, + "loc": { + "start": { + "line": 61, + "column": 34 + }, + "end": { + "line": 61, + "column": 42 + } + }, + "value": "follow", + "rawValue": "follow", + "raw": "'follow'" + } + ] + } + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * followUser\n * sends Keen tracking event for user follow\n * @param userId\n * @param targetId\n * @param direction\n ", + "start": 954, + "end": 1076, + "loc": { + "start": { + "line": 47, + "column": 0 + }, + "end": { + "line": 53, + "column": 3 + } + }, + "range": [ + 954, + 1076 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _trackKeenEvent\n * sends Keen tracking event\n * @param eventObject\n * @param collectionName\n * @private\n ", + "start": 1349, + "end": 1463, + "loc": { + "start": { + "line": 64, + "column": 0 + }, + "end": { + "line": 70, + "column": 3 + } + }, + "range": [ + 1349, + 1463 + ] + } + ] + }, + "specifiers": [], + "source": null, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * followUser\n * sends Keen tracking event for user follow\n * @param userId\n * @param targetId\n * @param direction\n ", + "start": 954, + "end": 1076, + "loc": { + "start": { + "line": 47, + "column": 0 + }, + "end": { + "line": 53, + "column": 3 + } + }, + "range": [ + 954, + 1076 + ] + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * _trackKeenEvent\n * sends Keen tracking event\n * @param eventObject\n * @param collectionName\n * @private\n ", + "start": 1349, + "end": 1463, + "loc": { + "start": { + "line": 64, + "column": 0 + }, + "end": { + "line": 70, + "column": 3 + } + }, + "range": [ + 1349, + 1463 + ] + } + ] + }, + { + "type": "VariableDeclaration", + "start": 1464, + "end": 2341, + "loc": { + "start": { + "line": 71, + "column": 0 + }, + "end": { + "line": 100, + "column": 1 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1470, + "end": 2341, + "loc": { + "start": { + "line": 71, + "column": 6 + }, + "end": { + "line": 100, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 1470, + "end": 1485, + "loc": { + "start": { + "line": 71, + "column": 6 + }, + "end": { + "line": 71, + "column": 21 + } + }, + "name": "_trackKeenEvent", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 1488, + "end": 2341, + "loc": { + "start": { + "line": 71, + "column": 24 + }, + "end": { + "line": 100, + "column": 1 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1489, + "end": 1500, + "loc": { + "start": { + "line": 71, + "column": 25 + }, + "end": { + "line": 71, + "column": 36 + } + }, + "name": "eventObject" + }, + { + "type": "Identifier", + "start": 1502, + "end": 1516, + "loc": { + "start": { + "line": 71, + "column": 38 + }, + "end": { + "line": 71, + "column": 52 + } + }, + "name": "collectionName" + } + ], + "body": { + "type": "BlockStatement", + "start": 1521, + "end": 2341, + "loc": { + "start": { + "line": 71, + "column": 57 + }, + "end": { + "line": 100, + "column": 1 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 1527, + "end": 2095, + "loc": { + "start": { + "line": 72, + "column": 4 + }, + "end": { + "line": 91, + "column": 5 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1531, + "end": 2095, + "loc": { + "start": { + "line": 72, + "column": 8 + }, + "end": { + "line": 91, + "column": 5 + } + }, + "id": { + "type": "Identifier", + "start": 1531, + "end": 1548, + "loc": { + "start": { + "line": 72, + "column": 8 + }, + "end": { + "line": 72, + "column": 25 + } + }, + "name": "viewEventDefaults" + }, + "init": { + "type": "ObjectExpression", + "start": 1551, + "end": 2095, + "loc": { + "start": { + "line": 72, + "column": 28 + }, + "end": { + "line": 91, + "column": 5 + } + }, + "properties": [ + { + "type": "Property", + "start": 1561, + "end": 1585, + "loc": { + "start": { + "line": 73, + "column": 8 + }, + "end": { + "line": 73, + "column": 32 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1561, + "end": 1571, + "loc": { + "start": { + "line": 73, + "column": 8 + }, + "end": { + "line": 73, + "column": 18 + } + }, + "name": "ip_address" + }, + "value": { + "type": "Literal", + "start": 1573, + "end": 1585, + "loc": { + "start": { + "line": 73, + "column": 20 + }, + "end": { + "line": 73, + "column": 32 + } + }, + "value": "${keen.ip}", + "rawValue": "${keen.ip}", + "raw": "\"${keen.ip}\"" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1595, + "end": 1627, + "loc": { + "start": { + "line": 74, + "column": 8 + }, + "end": { + "line": 74, + "column": 40 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1595, + "end": 1605, + "loc": { + "start": { + "line": 74, + "column": 8 + }, + "end": { + "line": 74, + "column": 18 + } + }, + "name": "user_agent" + }, + "value": { + "type": "Literal", + "start": 1607, + "end": 1627, + "loc": { + "start": { + "line": 74, + "column": 20 + }, + "end": { + "line": 74, + "column": 40 + } + }, + "value": "${keen.user_agent}", + "rawValue": "${keen.user_agent}", + "raw": "\"${keen.user_agent}\"" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1637, + "end": 2089, + "loc": { + "start": { + "line": 75, + "column": 8 + }, + "end": { + "line": 90, + "column": 9 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1637, + "end": 1641, + "loc": { + "start": { + "line": 75, + "column": 8 + }, + "end": { + "line": 75, + "column": 12 + } + }, + "name": "keen" + }, + "value": { + "type": "ObjectExpression", + "start": 1643, + "end": 2089, + "loc": { + "start": { + "line": 75, + "column": 14 + }, + "end": { + "line": 90, + "column": 9 + } + }, + "properties": [ + { + "type": "Property", + "start": 1657, + "end": 1692, + "loc": { + "start": { + "line": 76, + "column": 12 + }, + "end": { + "line": 76, + "column": 47 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1657, + "end": 1666, + "loc": { + "start": { + "line": 76, + "column": 12 + }, + "end": { + "line": 76, + "column": 21 + } + }, + "name": "timestamp" + }, + "value": { + "type": "CallExpression", + "start": 1668, + "end": 1692, + "loc": { + "start": { + "line": 76, + "column": 23 + }, + "end": { + "line": 76, + "column": 47 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1668, + "end": 1690, + "loc": { + "start": { + "line": 76, + "column": 23 + }, + "end": { + "line": 76, + "column": 45 + } + }, + "object": { + "type": "NewExpression", + "start": 1668, + "end": 1678, + "loc": { + "start": { + "line": 76, + "column": 23 + }, + "end": { + "line": 76, + "column": 33 + } + }, + "callee": { + "type": "Identifier", + "start": 1672, + "end": 1676, + "loc": { + "start": { + "line": 76, + "column": 27 + }, + "end": { + "line": 76, + "column": 31 + } + }, + "name": "Date" + }, + "arguments": [] + }, + "property": { + "type": "Identifier", + "start": 1679, + "end": 1690, + "loc": { + "start": { + "line": 76, + "column": 34 + }, + "end": { + "line": 76, + "column": 45 + } + }, + "name": "toISOString" + }, + "computed": false + }, + "arguments": [] + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1706, + "end": 2079, + "loc": { + "start": { + "line": 77, + "column": 12 + }, + "end": { + "line": 89, + "column": 14 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1706, + "end": 1712, + "loc": { + "start": { + "line": 77, + "column": 12 + }, + "end": { + "line": 77, + "column": 18 + } + }, + "name": "addons" + }, + "value": { + "type": "ArrayExpression", + "start": 1714, + "end": 2079, + "loc": { + "start": { + "line": 77, + "column": 20 + }, + "end": { + "line": 89, + "column": 14 + } + }, + "elements": [ + { + "type": "ObjectExpression", + "start": 1715, + "end": 1889, + "loc": { + "start": { + "line": 77, + "column": 21 + }, + "end": { + "line": 83, + "column": 13 + } + }, + "properties": [ + { + "type": "Property", + "start": 1733, + "end": 1755, + "loc": { + "start": { + "line": 78, + "column": 16 + }, + "end": { + "line": 78, + "column": 38 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1733, + "end": 1737, + "loc": { + "start": { + "line": 78, + "column": 16 + }, + "end": { + "line": 78, + "column": 20 + } + }, + "name": "name" + }, + "value": { + "type": "Literal", + "start": 1739, + "end": 1755, + "loc": { + "start": { + "line": 78, + "column": 22 + }, + "end": { + "line": 78, + "column": 38 + } + }, + "value": "keen:ip_to_geo", + "rawValue": "keen:ip_to_geo", + "raw": "\"keen:ip_to_geo\"" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1773, + "end": 1836, + "loc": { + "start": { + "line": 79, + "column": 16 + }, + "end": { + "line": 81, + "column": 17 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1773, + "end": 1778, + "loc": { + "start": { + "line": 79, + "column": 16 + }, + "end": { + "line": 79, + "column": 21 + } + }, + "name": "input" + }, + "value": { + "type": "ObjectExpression", + "start": 1780, + "end": 1836, + "loc": { + "start": { + "line": 79, + "column": 23 + }, + "end": { + "line": 81, + "column": 17 + } + }, + "properties": [ + { + "type": "Property", + "start": 1802, + "end": 1818, + "loc": { + "start": { + "line": 80, + "column": 20 + }, + "end": { + "line": 80, + "column": 36 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1802, + "end": 1804, + "loc": { + "start": { + "line": 80, + "column": 20 + }, + "end": { + "line": 80, + "column": 22 + } + }, + "name": "ip" + }, + "value": { + "type": "Literal", + "start": 1806, + "end": 1818, + "loc": { + "start": { + "line": 80, + "column": 24 + }, + "end": { + "line": 80, + "column": 36 + } + }, + "value": "ip_address", + "rawValue": "ip_address", + "raw": "\"ip_address\"" + }, + "kind": "init" + } + ] + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1854, + "end": 1875, + "loc": { + "start": { + "line": 82, + "column": 16 + }, + "end": { + "line": 82, + "column": 37 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1854, + "end": 1860, + "loc": { + "start": { + "line": 82, + "column": 16 + }, + "end": { + "line": 82, + "column": 22 + } + }, + "name": "output" + }, + "value": { + "type": "Literal", + "start": 1862, + "end": 1875, + "loc": { + "start": { + "line": 82, + "column": 24 + }, + "end": { + "line": 82, + "column": 37 + } + }, + "value": "ip_geo_info", + "rawValue": "ip_geo_info", + "raw": "\"ip_geo_info\"" + }, + "kind": "init" + } + ] + }, + { + "type": "ObjectExpression", + "start": 1891, + "end": 2078, + "loc": { + "start": { + "line": 83, + "column": 15 + }, + "end": { + "line": 89, + "column": 13 + } + }, + "properties": [ + { + "type": "Property", + "start": 1909, + "end": 1931, + "loc": { + "start": { + "line": 84, + "column": 16 + }, + "end": { + "line": 84, + "column": 38 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1909, + "end": 1913, + "loc": { + "start": { + "line": 84, + "column": 16 + }, + "end": { + "line": 84, + "column": 20 + } + }, + "name": "name" + }, + "value": { + "type": "Literal", + "start": 1915, + "end": 1931, + "loc": { + "start": { + "line": 84, + "column": 22 + }, + "end": { + "line": 84, + "column": 38 + } + }, + "value": "keen:ua_parser", + "rawValue": "keen:ua_parser", + "raw": "\"keen:ua_parser\"" + }, + "kind": "init" + }, + { + "type": "Property", + "start": 1949, + "end": 2019, + "loc": { + "start": { + "line": 85, + "column": 16 + }, + "end": { + "line": 87, + "column": 17 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1949, + "end": 1954, + "loc": { + "start": { + "line": 85, + "column": 16 + }, + "end": { + "line": 85, + "column": 21 + } + }, + "name": "input" + }, + "value": { + "type": "ObjectExpression", + "start": 1956, + "end": 2019, + "loc": { + "start": { + "line": 85, + "column": 23 + }, + "end": { + "line": 87, + "column": 17 + } + }, + "properties": [ + { + "type": "Property", + "start": 1978, + "end": 2001, + "loc": { + "start": { + "line": 86, + "column": 20 + }, + "end": { + "line": 86, + "column": 43 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1978, + "end": 1987, + "loc": { + "start": { + "line": 86, + "column": 20 + }, + "end": { + "line": 86, + "column": 29 + } + }, + "name": "ua_string" + }, + "value": { + "type": "Literal", + "start": 1989, + "end": 2001, + "loc": { + "start": { + "line": 86, + "column": 31 + }, + "end": { + "line": 86, + "column": 43 + } + }, + "value": "user_agent", + "rawValue": "user_agent", + "raw": "\"user_agent\"" + }, + "kind": "init" + } + ] + }, + "kind": "init" + }, + { + "type": "Property", + "start": 2037, + "end": 2064, + "loc": { + "start": { + "line": 88, + "column": 16 + }, + "end": { + "line": 88, + "column": 43 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2037, + "end": 2043, + "loc": { + "start": { + "line": 88, + "column": 16 + }, + "end": { + "line": 88, + "column": 22 + } + }, + "name": "output" + }, + "value": { + "type": "Literal", + "start": 2045, + "end": 2064, + "loc": { + "start": { + "line": 88, + "column": 24 + }, + "end": { + "line": 88, + "column": 43 + } + }, + "value": "parsed_user_agent", + "rawValue": "parsed_user_agent", + "raw": "\"parsed_user_agent\"" + }, + "kind": "init" + } + ] + } + ] + }, + "kind": "init" + } + ] + }, + "kind": "init" + } + ] + } + } + ], + "kind": "var" + }, + { + "type": "VariableDeclaration", + "start": 2100, + "end": 2158, + "loc": { + "start": { + "line": 92, + "column": 4 + }, + "end": { + "line": 92, + "column": 62 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 2104, + "end": 2158, + "loc": { + "start": { + "line": 92, + "column": 8 + }, + "end": { + "line": 92, + "column": 62 + } + }, + "id": { + "type": "Identifier", + "start": 2104, + "end": 2110, + "loc": { + "start": { + "line": 92, + "column": 8 + }, + "end": { + "line": 92, + "column": 14 + } + }, + "name": "merged" + }, + "init": { + "type": "CallExpression", + "start": 2113, + "end": 2158, + "loc": { + "start": { + "line": 92, + "column": 17 + }, + "end": { + "line": 92, + "column": 62 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2113, + "end": 2126, + "loc": { + "start": { + "line": 92, + "column": 17 + }, + "end": { + "line": 92, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 2113, + "end": 2119, + "loc": { + "start": { + "line": 92, + "column": 17 + }, + "end": { + "line": 92, + "column": 23 + } + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 2120, + "end": 2126, + "loc": { + "start": { + "line": 92, + "column": 24 + }, + "end": { + "line": 92, + "column": 30 + } + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 2127, + "end": 2144, + "loc": { + "start": { + "line": 92, + "column": 31 + }, + "end": { + "line": 92, + "column": 48 + } + }, + "name": "viewEventDefaults" + }, + { + "type": "Identifier", + "start": 2146, + "end": 2157, + "loc": { + "start": { + "line": 92, + "column": 50 + }, + "end": { + "line": 92, + "column": 61 + } + }, + "name": "eventObject" + } + ] + } + } + ], + "kind": "let" + }, + { + "type": "ExpressionStatement", + "start": 2163, + "end": 2339, + "loc": { + "start": { + "line": 93, + "column": 4 + }, + "end": { + "line": 99, + "column": 6 + } + }, + "expression": { + "type": "CallExpression", + "start": 2163, + "end": 2339, + "loc": { + "start": { + "line": 93, + "column": 4 + }, + "end": { + "line": 99, + "column": 6 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2163, + "end": 2182, + "loc": { + "start": { + "line": 93, + "column": 4 + }, + "end": { + "line": 93, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 2163, + "end": 2173, + "loc": { + "start": { + "line": 93, + "column": 4 + }, + "end": { + "line": 93, + "column": 14 + } + }, + "name": "keenClient" + }, + "property": { + "type": "Identifier", + "start": 2174, + "end": 2182, + "loc": { + "start": { + "line": 93, + "column": 15 + }, + "end": { + "line": 93, + "column": 23 + } + }, + "name": "addEvent" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 2183, + "end": 2197, + "loc": { + "start": { + "line": 93, + "column": 24 + }, + "end": { + "line": 93, + "column": 38 + } + }, + "name": "collectionName" + }, + { + "type": "Identifier", + "start": 2199, + "end": 2205, + "loc": { + "start": { + "line": 93, + "column": 40 + }, + "end": { + "line": 93, + "column": 46 + } + }, + "name": "merged" + }, + { + "type": "FunctionExpression", + "start": 2207, + "end": 2338, + "loc": { + "start": { + "line": 93, + "column": 48 + }, + "end": { + "line": 99, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2216, + "end": 2219, + "loc": { + "start": { + "line": 93, + "column": 57 + }, + "end": { + "line": 93, + "column": 60 + } + }, + "name": "err" + }, + { + "type": "Identifier", + "start": 2221, + "end": 2224, + "loc": { + "start": { + "line": 93, + "column": 62 + }, + "end": { + "line": 93, + "column": 65 + } + }, + "name": "res" + } + ], + "body": { + "type": "BlockStatement", + "start": 2226, + "end": 2338, + "loc": { + "start": { + "line": 93, + "column": 67 + }, + "end": { + "line": 99, + "column": 5 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 2236, + "end": 2305, + "loc": { + "start": { + "line": 94, + "column": 8 + }, + "end": { + "line": 97, + "column": 9 + } + }, + "test": { + "type": "Identifier", + "start": 2240, + "end": 2243, + "loc": { + "start": { + "line": 94, + "column": 12 + }, + "end": { + "line": 94, + "column": 15 + } + }, + "name": "err" + }, + "consequent": { + "type": "BlockStatement", + "start": 2245, + "end": 2305, + "loc": { + "start": { + "line": 94, + "column": 17 + }, + "end": { + "line": 97, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 2259, + "end": 2275, + "loc": { + "start": { + "line": 95, + "column": 12 + }, + "end": { + "line": 95, + "column": 28 + } + }, + "expression": { + "type": "CallExpression", + "start": 2259, + "end": 2275, + "loc": { + "start": { + "line": 95, + "column": 12 + }, + "end": { + "line": 95, + "column": 28 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2259, + "end": 2270, + "loc": { + "start": { + "line": 95, + "column": 12 + }, + "end": { + "line": 95, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 2259, + "end": 2266, + "loc": { + "start": { + "line": 95, + "column": 12 + }, + "end": { + "line": 95, + "column": 19 + } + }, + "name": "console" + }, + "property": { + "type": "Identifier", + "start": 2267, + "end": 2270, + "loc": { + "start": { + "line": 95, + "column": 20 + }, + "end": { + "line": 95, + "column": 23 + } + }, + "name": "log" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 2271, + "end": 2274, + "loc": { + "start": { + "line": 95, + "column": 24 + }, + "end": { + "line": 95, + "column": 27 + } + }, + "name": "err" + } + ] + } + }, + { + "type": "ReturnStatement", + "start": 2288, + "end": 2295, + "loc": { + "start": { + "line": 96, + "column": 12 + }, + "end": { + "line": 96, + "column": 19 + } + }, + "argument": null + } + ], + "trailingComments": null + }, + "alternate": null, + "trailingComments": [ + { + "type": "CommentLine", + "value": "console.log(res)", + "start": 2314, + "end": 2332, + "loc": { + "start": { + "line": 98, + "column": 8 + }, + "end": { + "line": 98, + "column": 26 + } + }, + "range": [ + 2314, + 2332 + ] + } + ] + } + ] + } + } + ] + } + } + ] + } + }, + "leadingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "Block", + "value": "*\n * _trackKeenEvent\n * sends Keen tracking event\n * @param eventObject\n * @param collectionName\n * @private\n ", + "start": 1349, + "end": 1463, + "loc": { + "start": { + "line": 64, + "column": 0 + }, + "end": { + "line": 70, + "column": 3 + } + }, + "range": [ + 1349, + 1463 + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/app/docs/badge.svg b/app/docs/badge.svg new file mode 100644 index 0000000..e24552c --- /dev/null +++ b/app/docs/badge.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + document + document + 100% + 100% + + diff --git a/app/docs/class/modules/components/Activity/Actor.js~Actor.html b/app/docs/class/modules/components/Activity/Actor.js~Actor.html new file mode 100644 index 0000000..f4b983b --- /dev/null +++ b/app/docs/class/modules/components/Activity/Actor.js~Actor.html @@ -0,0 +1,297 @@ + + + + + + Actor | API Document + + + + + + + + + +
+ Home + + Reference + Source + + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

Actor

+ + + + + +

Extends:

react~Component → Actor
+ + + + + + + + + +

Actor component

+
+ + + + + + + + +
+ + + + + +

Method Summary

+ + + + + + + + + +
Public Methods
+ public + + + + + +
+

+ render(): * +

+
+
+ + +

render

+
+
+
+ + +
+
+ + + + + + + +

Public Methods

+ +
+

+ public + + + + + render(): * + + + + source + +

+ + + + +

render

+
+ + + +
+
+ +
+

Return:

+ + + + + +
*

markup

+
+
+
+
+ + + + + + + + + + + + + +
+
+
+ + + + + + + + + + + + diff --git a/app/docs/class/modules/components/Activity/Commented.js~Commented.html b/app/docs/class/modules/components/Activity/Commented.js~Commented.html new file mode 100644 index 0000000..62b6377 --- /dev/null +++ b/app/docs/class/modules/components/Activity/Commented.js~Commented.html @@ -0,0 +1,297 @@ + + + + + + Commented | API Document + + + + + + + + + +
+ Home + + Reference + Source + + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

Commented

+ + + + + +

Extends:

react~Component → Commented
+ + + + + + + + + +

Commented component

+
+ + + + + + + + +
+ + + + + +

Method Summary

+ + + + + + + + + +
Public Methods
+ public + + + + + +
+

+ render(): * +

+
+
+ + +

render

+
+
+
+ + +
+
+ + + + + + + +

Public Methods

+ +
+

+ public + + + + + render(): * + + + + source + +

+ + + + +

render

+
+ + + +
+
+ +
+

Return:

+ + + + + +
*

markup

+
+
+
+
+ + + + + + + + + + + + + +
+
+
+ + + + + + + + + + + + diff --git a/app/docs/class/modules/components/Activity/Commented.js~Following.html b/app/docs/class/modules/components/Activity/Commented.js~Following.html new file mode 100644 index 0000000..b363f24 --- /dev/null +++ b/app/docs/class/modules/components/Activity/Commented.js~Following.html @@ -0,0 +1,293 @@ + + + + + + Following | API Document + + + + + + + + + +
+ Home + + Reference + Source + + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

Following

+ + + + + +

Extends:

react~Component → Following
+ + + + + + + + + + + + + + + + + + +
+ + + + + +

Method Summary

+ + + + + + + + + +
Public Methods
+ public + + + + + +
+

+ render(): * +

+
+
+ + + +
+
+ + +
+
+ + + + + + + +

Public Methods

+ +
+

+ public + + + + + render(): * + + + + source + +

+ + + + + + + + +
+
+ +
+

Return:

+ + + + + +
*
+
+
+
+ + + + + + + + + + + + + +
+
+
+ + + + + + + + + + + + diff --git a/app/docs/class/modules/components/Activity/Following.js~Following.html b/app/docs/class/modules/components/Activity/Following.js~Following.html new file mode 100644 index 0000000..04f7e6d --- /dev/null +++ b/app/docs/class/modules/components/Activity/Following.js~Following.html @@ -0,0 +1,297 @@ + + + + + + Following | API Document + + + + + + + + + +
+ Home + + Reference + Source + + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

Following

+ + + + + +

Extends:

react~Component → Following
+ + + + + + + + + +

Following component

+
+ + + + + + + + +
+ + + + + +

Method Summary

+ + + + + + + + + +
Public Methods
+ public + + + + + +
+

+ render(): * +

+
+
+ + +

render

+
+
+
+ + +
+
+ + + + + + + +

Public Methods

+ +
+

+ public + + + + + render(): * + + + + source + +

+ + + + +

render

+
+ + + +
+
+ +
+

Return:

+ + + + + +
*

markup

+
+
+
+
+ + + + + + + + + + + + + +
+
+
+ + + + + + + + + + + + diff --git a/app/docs/class/modules/components/Activity/Liked.js~Liked.html b/app/docs/class/modules/components/Activity/Liked.js~Liked.html new file mode 100644 index 0000000..781b0fc --- /dev/null +++ b/app/docs/class/modules/components/Activity/Liked.js~Liked.html @@ -0,0 +1,297 @@ + + + + + + Liked | API Document + + + + + + + + + +
+ Home + + Reference + Source + + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

Liked

+ + + + + +

Extends:

react~Component → Liked
+ + + + + + + + + +

Liked component

+
+ + + + + + + + +
+ + + + + +

Method Summary

+ + + + + + + + + +
Public Methods
+ public + + + + + +
+

+ render(): * +

+
+
+ + +

render

+
+
+
+ + +
+
+ + + + + + + +

Public Methods

+ +
+

+ public + + + + + render(): * + + + + source + +

+ + + + +

render

+
+ + + +
+
+ +
+

Return:

+ + + + + +
*

markup

+
+
+
+
+ + + + + + + + + + + + + +
+
+
+ + + + + + + + + + + + diff --git a/app/docs/class/modules/components/Activity/index.js~Item.html b/app/docs/class/modules/components/Activity/index.js~Item.html new file mode 100644 index 0000000..73d54d1 --- /dev/null +++ b/app/docs/class/modules/components/Activity/index.js~Item.html @@ -0,0 +1,297 @@ + + + + + + Item | API Document + + + + + + + + + +
+ Home + + Reference + Source + + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

Item

+ + + + + +

Extends:

react~Component → Item
+ + + + + + + + + +

Activity index component

+
+ + + + + + + + +
+ + + + + +

Method Summary

+ + + + + + + + + +
Public Methods
+ public + + + + + +
+

+ render(): * +

+
+
+ + +

render

+
+
+
+ + +
+
+ + + + + + + +

Public Methods

+ +
+

+ public + + + + + render(): * + + + + source + +

+ + + + +

render

+
+ + + +
+
+ +
+

Return:

+ + + + + +
*

markup

+
+
+
+
+ + + + + + + + + + + + + +
+
+
+ + + + + + + + + + + + diff --git a/app/docs/class/modules/components/Avatar/index.js~Avatar.html b/app/docs/class/modules/components/Avatar/index.js~Avatar.html new file mode 100644 index 0000000..10c7a42 --- /dev/null +++ b/app/docs/class/modules/components/Avatar/index.js~Avatar.html @@ -0,0 +1,297 @@ + + + + + + Avatar | API Document + + + + + + + + + +
+ Home + + Reference + Source + + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

Avatar

+ + + + + +

Extends:

react~Component → Avatar
+ + + + + + + + + +

Avatar index component

+
+ + + + + + + + +
+ + + + + +

Method Summary

+ + + + + + + + + +
Public Methods
+ public + + + + + +
+

+ render(): * +

+
+
+ + +

render

+
+
+
+ + +
+
+ + + + + + + +

Public Methods

+ +
+

+ public + + + + + render(): * + + + + source + +

+ + + + +

render

+
+ + + +
+
+ +
+

Return:

+ + + + + +
*

markup

+
+
+
+
+ + + + + + + + + + + + + +
+
+
+ + + + + + + + + + + + diff --git a/app/docs/class/modules/components/BackButton/index.js~BackButton.html b/app/docs/class/modules/components/BackButton/index.js~BackButton.html new file mode 100644 index 0000000..91e44a2 --- /dev/null +++ b/app/docs/class/modules/components/BackButton/index.js~BackButton.html @@ -0,0 +1,297 @@ + + + + + + BackButton | API Document + + + + + + + + + +
+ Home + + Reference + Source + + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

BackButton

+ + + + + +

Extends:

react~Component → BackButton
+ + + + + + + + + +

BackButton index component

+
+ + + + + + + + +
+ + + + + +

Method Summary

+ + + + + + + + + +
Public Methods
+ public + + + + + +
+

+ render(): * +

+
+
+ + +

render

+
+
+
+ + +
+
+ + + + + + + +

Public Methods

+ +
+

+ public + + + + + render(): * + + + + source + +

+ + + + +

render

+
+ + + +
+
+ +
+

Return:

+ + + + + +
*

markup

+
+
+
+
+ + + + + + + + + + + + + +
+
+
+ + + + + + + + + + + + diff --git a/app/docs/class/modules/components/Comment/index.js~Comment.html b/app/docs/class/modules/components/Comment/index.js~Comment.html new file mode 100644 index 0000000..f4beefe --- /dev/null +++ b/app/docs/class/modules/components/Comment/index.js~Comment.html @@ -0,0 +1,295 @@ + + + + + + Comment | API Document + + + + + + + + + +
+ Home + + Reference + Source + + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

Comment

+ + + + + +

Extends:

react~Component → Comment
+ + + + + + + + + +

Comment index component

+
+ + + + + + + + +
+ + + + + +

Method Summary

+ + + + + + + + + +
Public Methods
+ public + + + + + +
+

+ render(): * +

+
+
+ + + +
+
+ + +
+
+ + + + + + + +

Public Methods

+ +
+

+ public + + + + + render(): * + + + + source + +

+ + + + + + + + +
+
+ +
+

Return:

+ + + + + +
*

markup

+
+
+
+
+ + + + + + + + + + + + + +
+
+
+ + + + + + + + + + + + diff --git a/app/docs/class/modules/components/Header/index.js~Header.html b/app/docs/class/modules/components/Header/index.js~Header.html new file mode 100644 index 0000000..3576847 --- /dev/null +++ b/app/docs/class/modules/components/Header/index.js~Header.html @@ -0,0 +1,297 @@ + + + + + + Header | API Document + + + + + + + + + +
+ Home + + Reference + Source + + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

Header

+ + + + + +

Extends:

react~Component → Header
+ + + + + + + + + +

Header index component

+
+ + + + + + + + +
+ + + + + +

Method Summary

+ + + + + + + + + +
Public Methods
+ public + + + + + +
+

+ render(): * +

+
+
+ + +

render

+
+
+
+ + +
+
+ + + + + + + +

Public Methods

+ +
+

+ public + + + + + render(): * + + + + source + +

+ + + + +

render

+
+ + + +
+
+ +
+

Return:

+ + + + + +
*

markup

+
+
+
+
+ + + + + + + + + + + + + +
+
+
+ + + + + + + + + + + + diff --git a/app/docs/class/modules/components/LikeButton/index.js~LikeButton.html b/app/docs/class/modules/components/LikeButton/index.js~LikeButton.html new file mode 100644 index 0000000..1b57e58 --- /dev/null +++ b/app/docs/class/modules/components/LikeButton/index.js~LikeButton.html @@ -0,0 +1,297 @@ + + + + + + LikeButton | API Document + + + + + + + + + +
+ Home + + Reference + Source + + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

LikeButton

+ + + + + +

Extends:

react~Component → LikeButton
+ + + + + + + + + +

LikeButton index component

+
+ + + + + + + + +
+ + + + + +

Method Summary

+ + + + + + + + + +
Public Methods
+ public + + + + + +
+

+ render(): * +

+
+
+ + +

render

+
+
+
+ + +
+
+ + + + + + + +

Public Methods

+ +
+

+ public + + + + + render(): * + + + + source + +

+ + + + +

render

+
+ + + +
+
+ +
+

Return:

+ + + + + +
*

markup

+
+
+
+
+ + + + + + + + + + + + + +
+
+
+ + + + + + + + + + + + diff --git a/app/docs/class/modules/components/Nav/index.js~Nav.html b/app/docs/class/modules/components/Nav/index.js~Nav.html new file mode 100644 index 0000000..fc8a76b --- /dev/null +++ b/app/docs/class/modules/components/Nav/index.js~Nav.html @@ -0,0 +1,297 @@ + + + + + + Nav | API Document + + + + + + + + + +
+ Home + + Reference + Source + + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

Nav

+ + + + + +

Extends:

react~Component → Nav
+ + + + + + + + + +

Nav index component

+
+ + + + + + + + +
+ + + + + +

Method Summary

+ + + + + + + + + +
Public Methods
+ public + + + + + +
+

+ render(): * +

+
+
+ + +

render

+
+
+
+ + +
+
+ + + + + + + +

Public Methods

+ +
+

+ public + + + + + render(): * + + + + source + +

+ + + + +

render

+
+ + + +
+
+ +
+

Return:

+ + + + + +
*

markup

+
+
+
+
+ + + + + + + + + + + + + +
+
+
+ + + + + + + + + + + + diff --git a/app/docs/class/modules/components/PhotoList/PhotoFooter.js~PhotoFooter.html b/app/docs/class/modules/components/PhotoList/PhotoFooter.js~PhotoFooter.html new file mode 100644 index 0000000..cf2a9fd --- /dev/null +++ b/app/docs/class/modules/components/PhotoList/PhotoFooter.js~PhotoFooter.html @@ -0,0 +1,297 @@ + + + + + + PhotoFooter | API Document + + + + + + + + + +
+ Home + + Reference + Source + + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

PhotoFooter

+ + + + + +

Extends:

react~Component → PhotoFooter
+ + + + + + + + + +

PhotoFooter component

+
+ + + + + + + + +
+ + + + + +

Method Summary

+ + + + + + + + + +
Public Methods
+ public + + + + + +
+

+ render(): * +

+
+
+ + +

render

+
+
+
+ + +
+
+ + + + + + + +

Public Methods

+ +
+

+ public + + + + + render(): * + + + + source + +

+ + + + +

render

+
+ + + +
+
+ +
+

Return:

+ + + + + +
*

markup

+
+
+
+
+ + + + + + + + + + + + + +
+
+
+ + + + + + + + + + + + diff --git a/app/docs/class/modules/components/PhotoList/PhotoItem.js~PhotoItem.html b/app/docs/class/modules/components/PhotoList/PhotoItem.js~PhotoItem.html new file mode 100644 index 0000000..d00c0de --- /dev/null +++ b/app/docs/class/modules/components/PhotoList/PhotoItem.js~PhotoItem.html @@ -0,0 +1,297 @@ + + + + + + PhotoItem | API Document + + + + + + + + + +
+ Home + + Reference + Source + + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

PhotoItem

+ + + + + +

Extends:

react~Component → PhotoItem
+ + + + + + + + + +

PhotoItem component

+
+ + + + + + + + +
+ + + + + +

Method Summary

+ + + + + + + + + +
Public Methods
+ public + + + + + +
+

+ render(): * +

+
+
+ + +

render

+
+
+
+ + +
+
+ + + + + + + +

Public Methods

+ +
+

+ public + + + + + render(): * + + + + source + +

+ + + + +

render

+
+ + + +
+
+ +
+

Return:

+ + + + + +
*

markup

+
+
+
+
+ + + + + + + + + + + + + +
+
+
+ + + + + + + + + + + + diff --git a/app/docs/class/modules/components/PhotoList/index.js~PhotoList.html b/app/docs/class/modules/components/PhotoList/index.js~PhotoList.html new file mode 100644 index 0000000..560f729 --- /dev/null +++ b/app/docs/class/modules/components/PhotoList/index.js~PhotoList.html @@ -0,0 +1,297 @@ + + + + + + PhotoList | API Document + + + + + + + + + +
+ Home + + Reference + Source + + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

PhotoList

+ + + + + +

Extends:

react~Component → PhotoList
+ + + + + + + + + +

PhotoList index component

+
+ + + + + + + + +
+ + + + + +

Method Summary

+ + + + + + + + + +
Public Methods
+ public + + + + + +
+

+ render(): * +

+
+
+ + +

render

+
+
+
+ + +
+
+ + + + + + + +

Public Methods

+ +
+

+ public + + + + + render(): * + + + + source + +

+ + + + +

render

+
+ + + +
+
+ +
+

Return:

+ + + + + +
*

markup

+
+
+
+
+ + + + + + + + + + + + + +
+
+
+ + + + + + + + + + + + diff --git a/app/docs/class/modules/components/Tabs/index.js~Tab.html b/app/docs/class/modules/components/Tabs/index.js~Tab.html new file mode 100644 index 0000000..e6b42fa --- /dev/null +++ b/app/docs/class/modules/components/Tabs/index.js~Tab.html @@ -0,0 +1,297 @@ + + + + + + Tab | API Document + + + + + + + + + +
+ Home + + Reference + Source + + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

Tab

+ + + + + +

Extends:

react~Component → Tab
+ + + + + + + + + +

Tab component

+
+ + + + + + + + +
+ + + + + +

Method Summary

+ + + + + + + + + +
Public Methods
+ public + + + + + +
+

+ render(): * +

+
+
+ + +

render

+
+
+
+ + +
+
+ + + + + + + +

Public Methods

+ +
+

+ public + + + + + render(): * + + + + source + +

+ + + + +

render

+
+ + + +
+
+ +
+

Return:

+ + + + + +
*

markup or {null}

+
+
+
+
+ + + + + + + + + + + + + +
+
+
+ + + + + + + + + + + + diff --git a/app/docs/class/modules/components/Tabs/index.js~Tabs.html b/app/docs/class/modules/components/Tabs/index.js~Tabs.html new file mode 100644 index 0000000..d5ed5e6 --- /dev/null +++ b/app/docs/class/modules/components/Tabs/index.js~Tabs.html @@ -0,0 +1,297 @@ + + + + + + Tabs | API Document + + + + + + + + + +
+ Home + + Reference + Source + + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

Tabs

+ + + + + +

Extends:

react~Component → Tabs
+ + + + + + + + + +

Tabs index component

+
+ + + + + + + + +
+ + + + + +

Method Summary

+ + + + + + + + + +
Public Methods
+ public + + + + + +
+

+ render(): * +

+
+
+ + +

render

+
+
+
+ + +
+
+ + + + + + + +

Public Methods

+ +
+

+ public + + + + + render(): * + + + + source + +

+ + + + +

render

+
+ + + +
+
+ +
+

Return:

+ + + + + +
*

markup

+
+
+
+
+ + + + + + + + + + + + + +
+
+
+ + + + + + + + + + + + diff --git a/app/docs/class/modules/components/TimeAgo/index.js~TimeAgo.html b/app/docs/class/modules/components/TimeAgo/index.js~TimeAgo.html new file mode 100644 index 0000000..5965aa8 --- /dev/null +++ b/app/docs/class/modules/components/TimeAgo/index.js~TimeAgo.html @@ -0,0 +1,506 @@ + + + + + + TimeAgo | API Document + + + + + + + + + +
+ Home + + Reference + Source + + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

TimeAgo

+ + + + + +

Extends:

react~Component → TimeAgo
+ + + + + + + + + +

TimeAgo index component

+
+ + + + + + + + +
+ + + + +

Member Summary

+ + + + + + + + + +
Public Members
+ public + + + + + +
+

+ $i: number | * +

+
+
+ + +

this.$i

+
+
+
+ + +
+
+

Method Summary

+ + + + + + + + + + + + + + + + + + + +
Public Methods
+ public + + + + + +
+

+ componentDidMount() +

+
+
+ + +

componentDidMount

+
+
+
+ + +
+ public + + + + + + +
+ + +

componentWillUnmount

+
+
+
+ + +
+ public + + + + + +
+

+ render(): * +

+
+
+ + +

render

+
+
+
+ + +
+
+ + + + + + +

Public Members

+ +
+

+ public + + + + + $i: number | * + + + + source + +

+ + + + +

this.$i

+
+ + + +
+
+ + + + + + + + + + + + + + + +
+
+

Public Methods

+ +
+

+ public + + + + + componentDidMount() + + + + source + +

+ + + + +

componentDidMount

+
+ + + +
+
+ + + + + + + + + + + + + + + +
+
+

+ public + + + + + componentWillUnmount() + + + + source + +

+ + + + +

componentWillUnmount

+
+ + + +
+
+ + + + + + + + + + + + + + + +
+
+

+ public + + + + + render(): * + + + + source + +

+ + + + +

render

+
+ + + +
+
+ +
+

Return:

+ + + + + +
*

markup

+
+
+
+
+ + + + + + + + + + + + + +
+
+
+ + + + + + + + + + + + diff --git a/app/docs/class/modules/routes/Home/routes/Photo/components/PhotoComments.js~PhotoPage.html b/app/docs/class/modules/routes/Home/routes/Photo/components/PhotoComments.js~PhotoPage.html new file mode 100644 index 0000000..ad43463 --- /dev/null +++ b/app/docs/class/modules/routes/Home/routes/Photo/components/PhotoComments.js~PhotoPage.html @@ -0,0 +1,298 @@ + + + + + + PhotoPage | API Document + + + + + + + + + +
+ Home + + Reference + Source + + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

PhotoPage

+ + + + + +

Extends:

react~Component → PhotoPage
+ + + + + + + + + +

PhotoPage +React component to be used by PhotoPage component

+
+ + + + + + + + +
+ + + + + +

Method Summary

+ + + + + + + + + +
Public Methods
+ public + + + + + +
+

+ render(): * +

+
+
+ + +

render

+
+
+
+ + +
+
+ + + + + + + +

Public Methods

+ +
+

+ public + + + + + render(): * + + + + source + +

+ + + + +

render

+
+ + + +
+
+ +
+

Return:

+ + + + + +
*

markup

+
+
+
+
+ + + + + + + + + + + + + +
+
+
+ + + + + + + + + + + + diff --git a/app/docs/class/modules/routes/Home/routes/Photo/components/PhotoMetadata.js~PhotoMetadata.html b/app/docs/class/modules/routes/Home/routes/Photo/components/PhotoMetadata.js~PhotoMetadata.html new file mode 100644 index 0000000..8f9beec --- /dev/null +++ b/app/docs/class/modules/routes/Home/routes/Photo/components/PhotoMetadata.js~PhotoMetadata.html @@ -0,0 +1,298 @@ + + + + + + PhotoMetadata | API Document + + + + + + + + + +
+ Home + + Reference + Source + + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

PhotoMetadata

+ + + + + +

Extends:

react~Component → PhotoMetadata
+ + + + + + + + + +

PhotoMetadata +React component to be used by PhotoPage component

+
+ + + + + + + + +
+ + + + + +

Method Summary

+ + + + + + + + + +
Public Methods
+ public + + + + + +
+

+ render(): * +

+
+
+ + +

render

+
+
+
+ + +
+
+ + + + + + + +

Public Methods

+ +
+

+ public + + + + + render(): * + + + + source + +

+ + + + +

render

+
+ + + +
+
+ +
+

Return:

+ + + + + +
*

markup

+
+
+
+
+ + + + + + + + + + + + + +
+
+
+ + + + + + + + + + + + diff --git a/app/docs/class/modules/routes/Profile/contributions/index.js~Contributions.html b/app/docs/class/modules/routes/Profile/contributions/index.js~Contributions.html new file mode 100644 index 0000000..80974cd --- /dev/null +++ b/app/docs/class/modules/routes/Profile/contributions/index.js~Contributions.html @@ -0,0 +1,298 @@ + + + + + + Contributions | API Document + + + + + + + + + +
+ Home + + Reference + Source + + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

Contributions

+ + + + + +

Extends:

react~Component → Contributions
+ + + + + + + + + +

Contributions +React component to be used by Profile component

+
+ + + + + + + + +
+ + + + + +

Method Summary

+ + + + + + + + + +
Public Methods
+ public + + + + + +
+

+ render(): * +

+
+
+ + +

render

+
+
+
+ + +
+
+ + + + + + + +

Public Methods

+ +
+

+ public + + + + + render(): * + + + + source + +

+ + + + +

render

+
+ + + +
+
+ +
+

Return:

+ + + + + +
*

markup

+
+
+
+
+ + + + + + + + + + + + + +
+
+
+ + + + + + + + + + + + diff --git a/app/docs/class/modules/routes/Search/components/Filters/index.js~Filters.html b/app/docs/class/modules/routes/Search/components/Filters/index.js~Filters.html new file mode 100644 index 0000000..3c01c01 --- /dev/null +++ b/app/docs/class/modules/routes/Search/components/Filters/index.js~Filters.html @@ -0,0 +1,297 @@ + + + + + + Filters | API Document + + + + + + + + + +
+ Home + + Reference + Source + + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

Filters

+ + + + + +

Extends:

react~Component → Filters
+ + + + + + + + + +

Filters component used by Search route

+
+ + + + + + + + +
+ + + + + +

Method Summary

+ + + + + + + + + +
Public Methods
+ public + + + + + +
+

+ render(): * +

+
+
+ + +

render

+
+
+
+ + +
+
+ + + + + + + +

Public Methods

+ +
+

+ public + + + + + render(): * + + + + source + +

+ + + + +

render

+
+ + + +
+
+ +
+

Return:

+ + + + + +
*

markup

+
+
+
+
+ + + + + + + + + + + + + +
+
+
+ + + + + + + + + + + + diff --git a/app/docs/coverage.json b/app/docs/coverage.json new file mode 100644 index 0000000..73f2445 --- /dev/null +++ b/app/docs/coverage.json @@ -0,0 +1,272 @@ +{ + "coverage": "100%", + "expectCount": 130, + "actualCount": 130, + "files": { + "modules/components/TimeAgo/index.js": { + "expectCount": 5, + "actualCount": 5, + "undocumentLines": [] + }, + "modules/actions/Photos.js": { + "expectCount": 10, + "actualCount": 10, + "undocumentLines": [] + }, + "modules/actions/Comments.js": { + "expectCount": 4, + "actualCount": 4, + "undocumentLines": [] + }, + "modules/actions/Like.js": { + "expectCount": 6, + "actualCount": 6, + "undocumentLines": [] + }, + "modules/reducers/Activity.js": { + "expectCount": 1, + "actualCount": 1, + "undocumentLines": [] + }, + "modules/components/Activity/Actor.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "modules/reducers/App.js": { + "expectCount": 1, + "actualCount": 1, + "undocumentLines": [] + }, + "modules/components/Avatar/index.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "modules/components/BackButton/index.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "modules/components/Comment/index.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "modules/components/Activity/Commented.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "modules/reducers/Contributions.js": { + "expectCount": 1, + "actualCount": 1, + "undocumentLines": [] + }, + "modules/routes/Profile/contributions/index.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "modules/reducers/Explore.js": { + "expectCount": 1, + "actualCount": 1, + "undocumentLines": [] + }, + "modules/actions/User.js": { + "expectCount": 6, + "actualCount": 6, + "undocumentLines": [] + }, + "modules/actions/Profile.js": { + "expectCount": 6, + "actualCount": 6, + "undocumentLines": [] + }, + "modules/routes/Search/components/Filters/index.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "modules/components/Activity/Following.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "modules/components/Header/index.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "modules/reducers/Header.js": { + "expectCount": 1, + "actualCount": 1, + "undocumentLines": [] + }, + "modules/actions/App.js": { + "expectCount": 4, + "actualCount": 4, + "undocumentLines": [] + }, + "modules/components/Activity/index.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "modules/actions/Header.js": { + "expectCount": 6, + "actualCount": 6, + "undocumentLines": [] + }, + "modules/actions/Photo.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "modules/actions/Contributions.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "modules/actions/Activity.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "modules/actions/Stats.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "modules/actions/Explore.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "modules/actions/Trending.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "modules/actions/Location.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "modules/components/LikeButton/index.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "modules/components/Activity/Liked.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "modules/reducers/Likes.js": { + "expectCount": 1, + "actualCount": 1, + "undocumentLines": [] + }, + "modules/reducers/Location.js": { + "expectCount": 1, + "actualCount": 1, + "undocumentLines": [] + }, + "modules/components/Nav/index.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "modules/reducers/Pagination.js": { + "expectCount": 1, + "actualCount": 1, + "undocumentLines": [] + }, + "modules/reducers/Photo.js": { + "expectCount": 1, + "actualCount": 1, + "undocumentLines": [] + }, + "modules/components/PhotoList/PhotoFooter.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "modules/components/PhotoList/PhotoItem.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "modules/components/PhotoList/index.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "modules/routes/Home/routes/Photo/components/PhotoMetadata.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "modules/routes/Home/routes/Photo/components/PhotoComments.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "modules/reducers/Photos.js": { + "expectCount": 1, + "actualCount": 1, + "undocumentLines": [] + }, + "modules/reducers/Comments.js": { + "expectCount": 1, + "actualCount": 1, + "undocumentLines": [] + }, + "modules/reducers/Profile.js": { + "expectCount": 1, + "actualCount": 1, + "undocumentLines": [] + }, + "modules/actions/Search.js": { + "expectCount": 8, + "actualCount": 8, + "undocumentLines": [] + }, + "modules/reducers/Search.js": { + "expectCount": 1, + "actualCount": 1, + "undocumentLines": [] + }, + "modules/reducers/Stats.js": { + "expectCount": 1, + "actualCount": 1, + "undocumentLines": [] + }, + "modules/components/Tabs/index.js": { + "expectCount": 4, + "actualCount": 4, + "undocumentLines": [] + }, + "modules/reducers/Tokens.js": { + "expectCount": 1, + "actualCount": 1, + "undocumentLines": [] + }, + "modules/reducers/Trending.js": { + "expectCount": 1, + "actualCount": 1, + "undocumentLines": [] + }, + "modules/reducers/User.js": { + "expectCount": 1, + "actualCount": 1, + "undocumentLines": [] + }, + "modules/utils/analytics.js": { + "expectCount": 4, + "actualCount": 4, + "undocumentLines": [] + } + } +} \ No newline at end of file diff --git a/app/docs/css/prettify-tomorrow.css b/app/docs/css/prettify-tomorrow.css new file mode 100644 index 0000000..b6f92a7 --- /dev/null +++ b/app/docs/css/prettify-tomorrow.css @@ -0,0 +1,132 @@ +/* Tomorrow Theme */ +/* Original theme - https://github.com/chriskempson/tomorrow-theme */ +/* Pretty printing styles. Used with prettify.js. */ +/* SPAN elements with the classes below are added by prettyprint. */ +/* plain text */ +.pln { + color: #4d4d4c; } + +@media screen { + /* string content */ + .str { + color: #718c00; } + + /* a keyword */ + .kwd { + color: #8959a8; } + + /* a comment */ + .com { + color: #8e908c; } + + /* a type name */ + .typ { + color: #4271ae; } + + /* a literal value */ + .lit { + color: #f5871f; } + + /* punctuation */ + .pun { + color: #4d4d4c; } + + /* lisp open bracket */ + .opn { + color: #4d4d4c; } + + /* lisp close bracket */ + .clo { + color: #4d4d4c; } + + /* a markup tag name */ + .tag { + color: #c82829; } + + /* a markup attribute name */ + .atn { + color: #f5871f; } + + /* a markup attribute value */ + .atv { + color: #3e999f; } + + /* a declaration */ + .dec { + color: #f5871f; } + + /* a variable name */ + .var { + color: #c82829; } + + /* a function name */ + .fun { + color: #4271ae; } } +/* Use higher contrast and text-weight for printable form. */ +@media print, projection { + .str { + color: #060; } + + .kwd { + color: #006; + font-weight: bold; } + + .com { + color: #600; + font-style: italic; } + + .typ { + color: #404; + font-weight: bold; } + + .lit { + color: #044; } + + .pun, .opn, .clo { + color: #440; } + + .tag { + color: #006; + font-weight: bold; } + + .atn { + color: #404; } + + .atv { + color: #060; } } +/* Style */ +/* +pre.prettyprint { + background: white; + font-family: Consolas, Monaco, 'Andale Mono', monospace; + font-size: 12px; + line-height: 1.5; + border: 1px solid #ccc; + padding: 10px; } +*/ + +/* Specify class=linenums on a pre to get line numbering */ +ol.linenums { + margin-top: 0; + margin-bottom: 0; } + +/* IE indents via margin-left */ +li.L0, +li.L1, +li.L2, +li.L3, +li.L4, +li.L5, +li.L6, +li.L7, +li.L8, +li.L9 { + /* */ } + +/* Alternate shading for lines */ +li.L1, +li.L3, +li.L5, +li.L7, +li.L9 { + /* */ } diff --git a/app/docs/css/style.css b/app/docs/css/style.css new file mode 100644 index 0000000..baf349f --- /dev/null +++ b/app/docs/css/style.css @@ -0,0 +1,944 @@ +@import url(https://fonts.googleapis.com/css?family=Roboto:400,300,700); + +* { + margin: 0; + padding: 0; + text-decoration: none; +} + +html +{ + font-family: 'Roboto', sans-serif; + overflow: auto; + font-size: 14px; + /*color: #4d4e53;*/ + color: rgba(0, 0, 0, .68); + background-color: #fff; +} + +a { + /*color: #0095dd;*/ + /*color:rgb(37, 138, 175);*/ + color: #039BE5; +} + +code a:hover { + text-decoration: underline; +} + +ul, ol { + padding-left: 20px; +} + +ul li { + list-style: disc; + margin: 4px 0; +} + +ol li { + margin: 4px 0; +} + +h1 { + margin-bottom: 10px; + font-size: 34px; + font-weight: 300; + border-bottom: solid 1px #ddd; +} + +h2 { + margin-top: 24px; + margin-bottom: 10px; + font-size: 20px; + border-bottom: solid 1px #ddd; + font-weight: 300; +} + +h3 { + position: relative; + font-size: 16px; + margin-bottom: 12px; + background-color: #E2E2E2; + padding: 4px; + font-weight: 300; +} + +del { + text-decoration: line-through; +} + +p { + margin-bottom: 15px; + line-height: 1.5; +} + +p > code { + background-color: #f5f5f5; + border-radius: 3px; +} + +pre > code { + display: block; +} + +pre.prettyprint, pre > code { + padding: 4px; + margin: 1em 0; + background-color: #f5f5f5; + border-radius: 3px; +} + +pre.prettyprint > code { + margin: 0; +} + +p > code, +li > code { + padding: 0 4px; + border-radius: 3px; +} + +.import-path pre.prettyprint, +.import-path pre.prettyprint code { + margin: 0; + padding: 0; + border: none; + background: white; +} + +.layout-container { + /*display: flex;*/ + /*flex-direction: row;*/ + /*justify-content: flex-start;*/ + /*align-items: stretch;*/ +} + +.layout-container > header { + height: 40px; + line-height: 40px; + font-size: 16px; + padding: 0 10px; + margin: 0; + position: fixed; + width: 100%; + z-index: 1; + background-color: white; + top: 0; + border-bottom: solid 1px #E02130; +} +.layout-container > header > a{ + margin: 0 5px; +} + +.layout-container > header > a.repo-url-github { + font-size: 0; + display: inline-block; + width: 20px; + height: 38px; + background: url("../image/github.png") no-repeat center; + background-size: 20px; + vertical-align: top; +} + +.navigation { + position: fixed; + top: 0; + left: 0; + box-sizing: border-box; + width: 250px; + height: 100%; + padding-top: 40px; + padding-left: 15px; + padding-bottom: 2em; + margin-top:1em; + overflow-x: scroll; + box-shadow: rgba(255, 255, 255, 1) -1px 0 0 inset; + border-right: 1px solid rgba(0, 0, 0, 0.1); +} + +.navigation ul { + padding: 0; +} + +.navigation li { + list-style: none; + margin: 4px 0; + white-space: nowrap; +} + +.navigation .nav-dir-path { + margin-top: 0.7em; + margin-bottom: 0.25em; + font-size: 0.8em; + color: #aaa; +} + +.kind-class, +.kind-interface, +.kind-function, +.kind-typedef, +.kind-variable, +.kind-external { + margin-left: 0.75em; + width: 1.2em; + height: 1.2em; + display: inline-block; + text-align: center; + border-radius: 0.2em; + margin-right: 0.2em; + font-weight: bold; +} + +.kind-class { + color: #009800; + background-color: #bfe5bf; +} + +.kind-interface { + color: #fbca04; + background-color: #fef2c0; +} + +.kind-function { + color: #6b0090; + background-color: #d6bdde; +} + +.kind-variable { + color: #eb6420; + background-color: #fad8c7; +} + +.kind-typedef { + color: #db001e; + background-color: #edbec3; +} + +.kind-external { + color: #0738c3; + background-color: #bbcbea; +} + +h1 .version, +h1 .url a { + font-size: 14px; + color: #aaa; +} + +.content { + margin-top: 40px; + margin-left: 250px; + padding: 10px 50px 10px 20px; +} + +.header-notice { + font-size: 14px; + color: #aaa; + margin: 0; +} + +.expression-extends .prettyprint { + margin-left: 10px; + background: white; +} + +.extends-chain { + border-bottom: 1px solid#ddd; + padding-bottom: 10px; + margin-bottom: 10px; +} + +.extends-chain span:nth-of-type(1) { + padding-left: 10px; +} + +.extends-chain > div { + margin: 5px 0; +} + +.description table { + font-size: 14px; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +.description thead { + background: #999; + color: white; +} + +.description table td, +.description table th { + border: solid 1px #ddd; + padding: 4px; + font-weight: normal; +} + +.flat-list ul { + padding-left: 0; +} + +.flat-list li { + display: inline; + list-style: none; +} + +table.summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.summary thead { + background: #999; + color: white; +} + +table.summary td { + border: solid 1px #ddd; + padding: 4px 10px; +} + +table.summary tbody td:nth-child(1) { + text-align: right; + white-space: nowrap; + min-width: 64px; + vertical-align: top; +} + +table.summary tbody td:nth-child(2) { + width: 100%; + border-right: none; +} + +table.summary tbody td:nth-child(3) { + white-space: nowrap; + border-left: none; + vertical-align: top; +} + +table.summary td > div:nth-of-type(2) { + padding-top: 4px; + padding-left: 15px; +} + +table.summary td p { + margin-bottom: 0; +} + +.inherited-summary thead td { + padding-left: 2px; +} + +.inherited-summary thead a { + color: white; +} + +.inherited-summary .summary tbody { + display: none; +} + +.inherited-summary .summary .toggle { + padding: 0 4px; + font-size: 12px; + cursor: pointer; +} +.inherited-summary .summary .toggle.closed:before { + content: "▶"; +} +.inherited-summary .summary .toggle.opened:before { + content: "▼"; +} + +.member, .method { + margin-bottom: 24px; +} + +table.params { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.params thead { + background: #eee; + color: #aaa; +} + +table.params td { + padding: 4px; + border: solid 1px #ddd; +} + +table.params td p { + margin: 0; +} + +.content .detail > * { + margin: 15px 0; +} + +.content .detail > h3 { + color: black; +} + +.content .detail > div { + margin-left: 10px; +} + +.content .detail > .import-path { + margin-top: -8px; +} + +.content .detail + .detail { + margin-top: 30px; +} + +.content .detail .throw td:first-child { + padding-right: 10px; +} + +.content .detail h4 + :not(pre) { + padding-left: 0; + margin-left: 10px; +} + +.content .detail h4 + ul li { + list-style: none; +} + +.return-param * { + display: inline; +} + +.argument-params { + margin-bottom: 20px; +} + +.return-type { + padding-right: 10px; + font-weight: normal; +} + +.return-desc { + margin-left: 10px; + margin-top: 4px; +} + +.return-desc p { + margin: 0; +} + +.deprecated, .experimental, .instance-docs { + border-left: solid 5px orange; + padding-left: 4px; + margin: 4px 0; +} + +tr.listen p, +tr.throw p, +tr.emit p{ + margin-bottom: 10px; +} + +.version, .since { + color: #aaa; +} + +h3 .right-info { + position: absolute; + right: 4px; + font-size: 14px; +} + +.version + .since:before { + content: '| '; +} + +.see { + margin-top: 10px; +} + +.see h4 { + margin: 4px 0; +} + +.content .detail h4 + .example-doc { + margin: 6px 0; +} + +.example-caption { + position: relative; + bottom: -1px; + display: inline-block; + padding: 4px; + font-style: italic; + background-color: #f5f5f5; + font-weight: bold; + border-radius: 3px; + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; +} + +.example-caption + pre.source-code { + margin-top: 0; + border-top-left-radius: 0; +} + +footer, .file-footer { + text-align: right; + font-style: italic; + font-weight: 100; + font-size: 13px; + margin-right: 50px; + margin-left: 270px; + border-top: 1px solid #ddd; + padding-top: 30px; + margin-top: 20px; + padding-bottom: 10px; +} + +pre.source-code { + background: #f5f5f5; + padding: 4px; +} + +pre.raw-source-code > code { + padding: 0; + margin: 0; +} + +pre.source-code.line-number { + padding: 0; +} + +pre.source-code ol { + background: #eee; + padding-left: 40px; +} + +pre.source-code li { + background: white; + padding-left: 4px; + list-style: decimal; + margin: 0; +} + +pre.source-code.line-number li.active { + background: rgb(255, 255, 150); +} + +pre.source-code.line-number li.error-line { + background: #ffb8bf; +} + +table.files-summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; + text-align: right; +} + +table.files-summary tbody tr:hover { + background: #eee; +} + +table.files-summary td:first-child, +table.files-summary td:nth-of-type(2) { + text-align: left; +} + +table.files-summary[data-use-coverage="false"] td.coverage { + display: none; +} + +table.files-summary thead { + background: #999; + color: white; +} + +table.files-summary td { + border: solid 1px #ddd; + padding: 4px 10px; + vertical-align: top; +} + +table.files-summary td.identifiers > span { + display: block; + margin-top: 4px; +} +table.files-summary td.identifiers > span:first-child { + margin-top: 0; +} + +table.files-summary .coverage-count { + font-size: 12px; + color: #aaa; + display: inline-block; + min-width: 40px; +} + +.total-coverage-count { + position: relative; + bottom: 2px; + font-size: 12px; + color: #666; + font-weight: 500; + padding-left: 5px; +} + +table.test-summary thead { + background: #999; + color: white; +} + +table.test-summary thead .test-description { + width: 50%; +} + +table.test-summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.test-summary thead .test-count { + width: 3em; +} + +table.test-summary tbody tr:hover { + background-color: #eee; +} + +table.test-summary td { + border: solid 1px #ddd; + padding: 4px 10px; + vertical-align: top; +} + +table.test-summary td p { + margin: 0; +} + +table.test-summary tr.test-describe .toggle { + display: inline-block; + float: left; + margin-right: 4px; + cursor: pointer; +} + +table.test-summary tr.test-describe .toggle.opened:before { + content: '▼'; +} + +table.test-summary tr.test-describe .toggle.closed:before { + content: '▶'; +} + +table.test-summary .test-target > span { + display: block; + margin-top: 4px; +} +table.test-summary .test-target > span:first-child { + margin-top: 0; +} + +.inner-link-active { + background: rgb(255, 255, 150); +} + +/* search box */ +.search-box { + position: absolute; + top: 10px; + right: 50px; + padding-right: 8px; + padding-bottom: 10px; + line-height: normal; + font-size: 12px; +} + +.search-box img { + width: 20px; + vertical-align: top; +} + +.search-input { + display: inline; + visibility: hidden; + width: 0; + padding: 2px; + height: 1.5em; + outline: none; + background: transparent; + border: 1px #0af; + border-style: none none solid none; + vertical-align: bottom; +} + +.search-input-edge { + display: none; + width: 1px; + height: 5px; + background-color: #0af; + vertical-align: bottom; +} + +.search-result { + position: absolute; + display: none; + height: 600px; + width: 100%; + padding: 0; + margin-top: 5px; + margin-left: 24px; + background: white; + box-shadow: 1px 1px 4px rgb(0,0,0); + white-space: nowrap; + overflow-y: scroll; +} + +.search-result-import-path { + color: #aaa; + font-size: 12px; +} + +.search-result li { + list-style: none; + padding: 2px 4px; +} + +.search-result li a { + display: block; +} + +.search-result li.selected { + background: #ddd; +} + +.search-result li.search-separator { + background: rgb(37, 138, 175); + color: white; +} + +.search-box.active .search-input { + visibility: visible; + transition: width 0.2s ease-out; + width: 300px; +} + +.search-box.active .search-input-edge { + display: inline-block; +} + +/* coverage badge */ +.esdoc-coverage { + display: inline-block; + height: 20px; + vertical-align: top; +} + +h1 .esdoc-coverage { + position: relative; + top: -4px; +} + +.esdoc-coverage-wrap { + color: white; + font-size: 12px; + font-weight: 500; +} + +.esdoc-coverage-label { + padding: 3px 4px 3px 6px; + background: linear-gradient(to bottom, #5e5e5e 0%,#4c4c4c 100%); + border-radius: 4px 0 0 4px; + display: inline-block; + height: 20px; + box-sizing: border-box; + line-height: 14px; +} + +.esdoc-coverage-ratio { + padding: 3px 6px 3px 4px; + border-radius: 0 4px 4px 0; + display: inline-block; + height: 20px; + box-sizing: border-box; + line-height: 14px; +} + +.esdoc-coverage-low { + background: linear-gradient(to bottom, #db654f 0%,#c9533d 100%); +} + +.esdoc-coverage-middle { + background: linear-gradient(to bottom, #dab226 0%,#c9a179 100%); +} + +.esdoc-coverage-high { + background: linear-gradient(to bottom, #4fc921 0%,#3eb810 100%); +} + +.github-markdown .manual-toc { + padding-left: 0; +} + +/** manual */ + +.manual-root .navigation { + padding-left: 0; +} + +.navigation .manual-toc-title { + margin: 0; + padding: 0.5em 0 0.5em 1em; + border: none; + font-size: 1em; + font-weight: normal; +} + +.navigation .manual-toc-title:first-child { + margin-top: 0; +} + +.navigation .manual-toc { + display: none; + margin-left: 0.5em; + margin-top: -0.25em; +} + +.github-markdown .manual-toc-title a { + color: inherit; +} + +.manual-breadcrumb-list { + font-size: 0.8em; + margin-bottom: 1em; +} + +.manual-toc-title a:hover { + color: #039BE5; +} + +.manual-toc li { + margin: 0.75em 0; + list-style-type: none; +} + +.manual-toc .indent-h1 { + margin-left: 0; +} +.manual-toc .indent-h2 { + margin-left: 1em; +} +.manual-toc .indent-h3 { + margin-left: 3em; +} +.manual-toc .indent-h4 { + margin-left: 4em; +} +.manual-toc .indent-h5 { + margin-left: 5em; +} + +.manual-nav li { + margin: 0.75em 0; +} + +.manual-dot { + margin-left: 0.75em; + width: 0.6em; + height: 0.6em; + display: inline-block; + border-radius: 0.3em; + margin-right: 0.3em; + background-color: #bfe5bf; +} + +/* github markdown */ +.github-markdown { + font-size: 16px; +} + +.github-markdown h1, +.github-markdown h2, +.github-markdown h3, +.github-markdown h4, +.github-markdown h5 { + margin-top: 1em; + margin-bottom: 16px; + font-weight: bold; + padding: 0; +} + +.github-markdown h1:nth-of-type(1) { + margin-top: 0; +} + +.github-markdown h1 { + font-size: 2em; + padding-bottom: 0.3em; +} + +.github-markdown h2 { + font-size: 1.75em; + padding-bottom: 0.3em; +} + +.github-markdown h3 { + font-size: 1.5em; + background-color: transparent; +} + +.github-markdown h4 { + font-size: 1.25em; +} + +.github-markdown h5 { + font-size: 1em; +} + +.github-markdown ul, .github-markdown ol { + padding-left: 2em; +} + +.github-markdown pre > code { + font-size: 0.85em; +} + +.github-markdown table { + margin-bottom: 1em; + border-collapse: collapse; + border-spacing: 0; +} + +.github-markdown table tr { + background-color: #fff; + border-top: 1px solid #ccc; +} + +.github-markdown table th, +.github-markdown table td { + padding: 6px 13px; + border: 1px solid #ddd; +} + +.github-markdown table tr:nth-child(2n) { + background-color: #f8f8f8; +} + +/** badge(.svg) does not have border */ +.github-markdown img:not([src*=".svg"]) { + max-width: 100%; + box-shadow: 1px 1px 1px rgba(0,0,0,0.5); +} diff --git a/app/docs/dump.json b/app/docs/dump.json new file mode 100644 index 0000000..2ad795f --- /dev/null +++ b/app/docs/dump.json @@ -0,0 +1,9579 @@ +[ + { + "__docId__": 0, + "kind": "file", + "static": true, + "variation": null, + "name": "modules/App.js", + "memberof": null, + "longname": "modules/App.js", + "access": null, + "description": null, + "lineNumber": 1, + "content": "import React, { Component } from 'react'\nimport { connect } from 'react-redux'\nimport { browserHistory } from 'react-router'\n\nconst Home = require('./routes/Home/Home').default\n\nimport {\n App as AppActions,\n User as UserActions,\n Photos as PhotoActions,\n Header as HeaderActions,\n} from 'actions'\n\nimport {\n Header,\n} from 'components'\n\n@connect(state => ({ header: state.Header, user: state.User, }))\n\n/**\n * AppHeader component\n */\nclass AppHeader extends Component {\n /**\n * render\n * @returns markup\n */\n render() {\n const { header, user, } = this.props\n\n return (\n \n )\n }\n}\n\n/**\n * handleRouteChange\n * @param dispatch\n * @param route\n * @param location\n */\nfunction handleRouteChange(dispatch, route, location) {\n if (route) {\n\n if (route.getHeaderLeft) {\n route.getHeaderLeft(location, (err, component) => {\n dispatch(HeaderActions.left(component))\n })\n } else {\n dispatch(HeaderActions.left(null))\n }\n\n if (route.getHeaderMiddle) {\n route.getHeaderMiddle(location, (err, component) => {\n dispatch(HeaderActions.middle(component))\n })\n } else {\n dispatch(HeaderActions.middle(null))\n }\n\n if (route.getHeaderRight) {\n route.getHeaderRight(location, (err, component) => {\n dispatch(HeaderActions.right(component))\n })\n } else {\n dispatch(HeaderActions.right(null))\n }\n\n }\n}\n\n/**\n * App component\n * Bootstraps application\n */\nclass App extends Component {\n\n /**\n * componentDidUpdate\n * @param oldProps\n * @returns {*}\n */\n componentDidUpdate(oldProps) {\n\n handleRouteChange(\n this.props.dispatch,\n this.props.routes[this.props.routes.length - 1],\n this.props.location\n )\n\n if (oldProps.user.id != this.props.user.id && !this.props.user.id) {\n return browserHistory.push('/landing')\n }\n\n // user is logged in\n if (oldProps.user.id != this.props.user.id && this.props.user.id) {\n this.props.dispatch(AppActions.init())\n }\n \n }\n\n /**\n * componentDidMount\n */\n componentDidMount() {\n\n const { dispatch } = this.props\n\n FB.getLoginStatus(res => {\n\n if (res.status !== 'connected') {\n if (this.props.location.pathname != '/landing') {\n browserHistory.replace('/landing')\n }\n this.props.dispatch(AppActions.initDone())\n return\n }\n\n dispatch(UserActions.fbLogin(res))\n\n if (this.props.location.pathname == '/landing') {\n browserHistory.replace('/')\n }\n\n })\n\n }\n\n /**\n * render\n * @returns markup\n */\n render() {\n\n if (this.props.loading) return
Loading...
\n\n if (this.props.location.pathname == '/landing') {\n return (\n
\n {this.props.children || }\n
\n )\n }\n\n return (\n
\n \n {this.props.children || }\n
\n )\n\n }\n\n}\n\nexport default connect(state => ({\n user: state.User,\n loading: state.App.loading,\n}))(App)\n" + }, + { + "__docId__": 1, + "kind": "variable", + "static": true, + "variation": null, + "name": "Home", + "memberof": "modules/App.js", + "longname": "modules/App.js~Home", + "access": null, + "export": false, + "importPath": "react/modules/App.js", + "importStyle": null, + "description": null, + "lineNumber": 5, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 2, + "kind": "class", + "static": true, + "variation": null, + "name": "AppHeader", + "memberof": "modules/App.js", + "longname": "modules/App.js~AppHeader", + "access": null, + "export": false, + "importPath": "react/modules/App.js", + "importStyle": null, + "description": "AppHeader component", + "lineNumber": 23, + "interface": false, + "extends": [ + "react~Component" + ] + }, + { + "__docId__": 3, + "kind": "method", + "static": false, + "variation": null, + "name": "render", + "memberof": "modules/App.js~AppHeader", + "longname": "modules/App.js~AppHeader#render", + "access": null, + "description": "render", + "lineNumber": 28, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "markup" + } + ], + "params": [], + "return": { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "description": "markup" + }, + "generator": false + }, + { + "__docId__": 4, + "kind": "function", + "static": true, + "variation": null, + "name": "handleRouteChange", + "memberof": "modules/App.js", + "longname": "modules/App.js~handleRouteChange", + "access": null, + "export": false, + "importPath": "react/modules/App.js", + "importStyle": null, + "description": "handleRouteChange", + "lineNumber": 47, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "dispatch", + "description": "" + }, + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "route", + "description": "" + }, + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "location", + "description": "" + } + ], + "generator": false + }, + { + "__docId__": 5, + "kind": "class", + "static": true, + "variation": null, + "name": "App", + "memberof": "modules/App.js", + "longname": "modules/App.js~App", + "access": null, + "export": false, + "importPath": "react/modules/App.js", + "importStyle": null, + "description": "App component\nBootstraps application", + "lineNumber": 81, + "interface": false, + "extends": [ + "react~Component" + ] + }, + { + "__docId__": 6, + "kind": "method", + "static": false, + "variation": null, + "name": "componentDidUpdate", + "memberof": "modules/App.js~App", + "longname": "modules/App.js~App#componentDidUpdate", + "access": null, + "description": "componentDidUpdate", + "lineNumber": 88, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{*}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "oldProps", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "__docId__": 7, + "kind": "method", + "static": false, + "variation": null, + "name": "componentDidMount", + "memberof": "modules/App.js~App", + "longname": "modules/App.js~App#componentDidMount", + "access": null, + "description": "componentDidMount", + "lineNumber": 110, + "params": [], + "generator": false + }, + { + "__docId__": 8, + "kind": "method", + "static": false, + "variation": null, + "name": "render", + "memberof": "modules/App.js~App", + "longname": "modules/App.js~App#render", + "access": null, + "description": "render", + "lineNumber": 138, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "markup" + } + ], + "params": [], + "return": { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "description": "markup" + }, + "generator": false + }, + { + "__docId__": 9, + "kind": "file", + "static": true, + "variation": null, + "name": "modules/actions/Activity.js", + "memberof": null, + "longname": "modules/actions/Activity.js", + "access": null, + "description": null, + "lineNumber": 1, + "content": "import * as axios from 'axios'\nimport config from 'config'\n\n/**\n * LOAD\n * @type {string}\n */\nexport const LOAD = 'ACTIVITY_LOAD'\n\n/**\n * _loadRequest\n * @private\n */\nexport const _loadRequest = () => ({ type: LOAD, })\n\n/**\n * _loadResponse\n * @param response\n * @private\n */\nexport const _loadResponse = (response) => ({ type: LOAD, response, })\n\n\n/**\n * load\n * Get notifications from API for user\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @returns {Function}\n */\nexport function load() {\n return (dispatch, getState) => {\n return new Promise((resolve => {\n dispatch(_loadRequest())\n axios.get(`${config.api.baseUrl}/notifications?user_id=${getState().User.id}`, {\n headers: {\n Authorization: `Bearer ${localStorage.getItem('jwt')}`\n },\n })\n .then(res => {\n dispatch(_loadResponse(res.data))\n resolve()\n })\n }))\n }\n}\n" + }, + { + "__docId__": 10, + "kind": "variable", + "static": true, + "variation": null, + "name": "LOAD", + "memberof": "modules/actions/Activity.js", + "longname": "modules/actions/Activity.js~LOAD", + "access": null, + "export": true, + "importPath": "react/modules/actions/Activity.js", + "importStyle": "{LOAD}", + "description": "LOAD", + "lineNumber": 8, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 11, + "kind": "variable", + "static": true, + "variation": null, + "name": "_loadRequest", + "memberof": "modules/actions/Activity.js", + "longname": "modules/actions/Activity.js~_loadRequest", + "access": "private", + "export": true, + "importPath": "react/modules/actions/Activity.js", + "importStyle": "{_loadRequest}", + "description": "_loadRequest", + "lineNumber": 14, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 12, + "kind": "variable", + "static": true, + "variation": null, + "name": "_loadResponse", + "memberof": "modules/actions/Activity.js", + "longname": "modules/actions/Activity.js~_loadResponse", + "access": "private", + "export": true, + "importPath": "react/modules/actions/Activity.js", + "importStyle": "{_loadResponse}", + "description": "_loadResponse", + "lineNumber": 21, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "response", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 13, + "kind": "function", + "static": true, + "variation": null, + "name": "load", + "memberof": "modules/actions/Activity.js", + "longname": "modules/actions/Activity.js~load", + "access": null, + "export": true, + "importPath": "react/modules/actions/Activity.js", + "importStyle": "{load}", + "description": "load\nGet notifications from API for user\nRedux Action\nReference: http://redux.js.org/docs/basics/Actions.html", + "lineNumber": 31, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Function}" + } + ], + "params": [], + "return": { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "__docId__": 14, + "kind": "file", + "static": true, + "variation": null, + "name": "modules/actions/App.js", + "memberof": null, + "longname": "modules/actions/App.js", + "access": null, + "description": null, + "lineNumber": 1, + "content": "import {\n Photos as PhotoActions,\n Activity as ActivityActions,\n} from './'\n\n/**\n * INIT\n * @type {string}\n */\nexport const INIT = 'APP_INIT'\n\n/**\n * init\n * loads photos and activities\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @returns {Function}\n */\nexport function init() {\n return dispatch => {\n Promise.all([\n dispatch(PhotoActions.load()),\n dispatch(ActivityActions.load()),\n ]).then(() => {\n dispatch(initDone())\n })\n }\n}\n\n/**\n * INIT_DONE\n * @type {string}\n */\nexport const INIT_DONE = 'APP_INIT_DONE'\n\n/**\n * initDone\n * @returns {{type: string}}\n */\nexport function initDone() {\n return {\n type: INIT_DONE\n }\n}\n" + }, + { + "__docId__": 15, + "kind": "variable", + "static": true, + "variation": null, + "name": "INIT", + "memberof": "modules/actions/App.js", + "longname": "modules/actions/App.js~INIT", + "access": null, + "export": true, + "importPath": "react/modules/actions/App.js", + "importStyle": "{INIT}", + "description": "INIT", + "lineNumber": 10, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 16, + "kind": "function", + "static": true, + "variation": null, + "name": "init", + "memberof": "modules/actions/App.js", + "longname": "modules/actions/App.js~init", + "access": null, + "export": true, + "importPath": "react/modules/actions/App.js", + "importStyle": "{init}", + "description": "init\nloads photos and activities\nRedux Action\nReference: http://redux.js.org/docs/basics/Actions.html", + "lineNumber": 19, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Function}" + } + ], + "params": [], + "return": { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "__docId__": 17, + "kind": "variable", + "static": true, + "variation": null, + "name": "INIT_DONE", + "memberof": "modules/actions/App.js", + "longname": "modules/actions/App.js~INIT_DONE", + "access": null, + "export": true, + "importPath": "react/modules/actions/App.js", + "importStyle": "{INIT_DONE}", + "description": "INIT_DONE", + "lineNumber": 34, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 18, + "kind": "function", + "static": true, + "variation": null, + "name": "initDone", + "memberof": "modules/actions/App.js", + "longname": "modules/actions/App.js~initDone", + "access": null, + "export": true, + "importPath": "react/modules/actions/App.js", + "importStyle": "{initDone}", + "description": "initDone", + "lineNumber": 40, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{{type: string}}" + } + ], + "params": [], + "return": { + "nullable": null, + "types": [ + "{type: string}" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "__docId__": 19, + "kind": "file", + "static": true, + "variation": null, + "name": "modules/actions/Comments.js", + "memberof": null, + "longname": "modules/actions/Comments.js", + "access": null, + "description": null, + "lineNumber": 1, + "content": "import * as axios from 'axios'\nimport config from 'config'\n\n/**\n * ADD_COMMENT\n * @type {string}\n */\nexport const ADD_COMMENT = 'PHOTOS_ADD_COMMENT'\n\n/**\n * _addCommentRequest\n * @param id\n * @private\n */\nexport const _addCommentRequest = (id) => ({ type: ADD_COMMENT, id, })\n\n/**\n * _addCommentResponse\n * @param id\n * @param comment\n * @param user\n * @private\n */\nexport const _addCommentResponse = (id, comment, user) => ({ type: ADD_COMMENT, id, comment, user,})\n\n/**\n * addComment\n * Posts comment data to API\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param id\n * @param text\n * @returns {Function}\n */\nexport function addComment(id, text) {\n return (dispatch, getState) => {\n const user = getState().User\n dispatch(_addCommentRequest(id))\n const data = {\n user_id: user.id,\n upload_id: id,\n comment: text,\n }\n axios.get(`${config.api.baseUrl}/comments`, {\n headers: {\n Authorization: `Bearer ${localStorage.getItem('jwt')}`\n },\n data: data\n })\n .then(res => {\n dispatch(_addCommentResponse(id, res.data, user))\n })\n }\n}\n\n/**\n * LOAD_COMMENTS\n * @type {string}\n */\nexport const LOAD_COMMENTS = 'PHOTOS_LOAD_COMMENT'\n\n/**\n * _loadCommentsRequest\n * @param postID\n * @private\n */\nexport const _loadCommentsRequest = (postID) => ({ type: LOAD_COMMENTS, postID, })\n\n/**\n * _loadCommentsResponse\n * @param postID\n * @param comments\n * @private\n */\nexport const _loadCommentsResponse = (postID, comments) => ({ type: LOAD_COMMENTS, postID, comments, })\n\n/**\n * load\n * Gets comments from API based on upload id\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param postID\n * @returns {Function}\n */\nexport function load(postID) {\n return dispatch => {\n dispatch(_loadCommentsRequest(postID))\n axios.get(`${config.api.baseUrl}/comments?upload_id=${postID}`, {\n headers: {\n Authorization: `Bearer ${localStorage.getItem('jwt')}`\n },\n })\n .then(res => {\n dispatch(_loadCommentsResponse(postID, res.data))\n })\n }\n}\n" + }, + { + "__docId__": 20, + "kind": "variable", + "static": true, + "variation": null, + "name": "ADD_COMMENT", + "memberof": "modules/actions/Comments.js", + "longname": "modules/actions/Comments.js~ADD_COMMENT", + "access": null, + "export": true, + "importPath": "react/modules/actions/Comments.js", + "importStyle": "{ADD_COMMENT}", + "description": "ADD_COMMENT", + "lineNumber": 8, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 21, + "kind": "variable", + "static": true, + "variation": null, + "name": "_addCommentRequest", + "memberof": "modules/actions/Comments.js", + "longname": "modules/actions/Comments.js~_addCommentRequest", + "access": "private", + "export": true, + "importPath": "react/modules/actions/Comments.js", + "importStyle": "{_addCommentRequest}", + "description": "_addCommentRequest", + "lineNumber": 15, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "id", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 22, + "kind": "variable", + "static": true, + "variation": null, + "name": "_addCommentResponse", + "memberof": "modules/actions/Comments.js", + "longname": "modules/actions/Comments.js~_addCommentResponse", + "access": "private", + "export": true, + "importPath": "react/modules/actions/Comments.js", + "importStyle": "{_addCommentResponse}", + "description": "_addCommentResponse", + "lineNumber": 24, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "id", + "description": "" + }, + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "comment", + "description": "" + }, + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "user", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 23, + "kind": "function", + "static": true, + "variation": null, + "name": "addComment", + "memberof": "modules/actions/Comments.js", + "longname": "modules/actions/Comments.js~addComment", + "access": null, + "export": true, + "importPath": "react/modules/actions/Comments.js", + "importStyle": "{addComment}", + "description": "addComment\nPosts comment data to API\nRedux Action\nReference: http://redux.js.org/docs/basics/Actions.html", + "lineNumber": 35, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Function}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "id", + "description": "" + }, + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "text", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "__docId__": 24, + "kind": "variable", + "static": true, + "variation": null, + "name": "LOAD_COMMENTS", + "memberof": "modules/actions/Comments.js", + "longname": "modules/actions/Comments.js~LOAD_COMMENTS", + "access": null, + "export": true, + "importPath": "react/modules/actions/Comments.js", + "importStyle": "{LOAD_COMMENTS}", + "description": "LOAD_COMMENTS", + "lineNumber": 60, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 25, + "kind": "variable", + "static": true, + "variation": null, + "name": "_loadCommentsRequest", + "memberof": "modules/actions/Comments.js", + "longname": "modules/actions/Comments.js~_loadCommentsRequest", + "access": "private", + "export": true, + "importPath": "react/modules/actions/Comments.js", + "importStyle": "{_loadCommentsRequest}", + "description": "_loadCommentsRequest", + "lineNumber": 67, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "postID", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 26, + "kind": "variable", + "static": true, + "variation": null, + "name": "_loadCommentsResponse", + "memberof": "modules/actions/Comments.js", + "longname": "modules/actions/Comments.js~_loadCommentsResponse", + "access": "private", + "export": true, + "importPath": "react/modules/actions/Comments.js", + "importStyle": "{_loadCommentsResponse}", + "description": "_loadCommentsResponse", + "lineNumber": 75, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "postID", + "description": "" + }, + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "comments", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 27, + "kind": "function", + "static": true, + "variation": null, + "name": "load", + "memberof": "modules/actions/Comments.js", + "longname": "modules/actions/Comments.js~load", + "access": null, + "export": true, + "importPath": "react/modules/actions/Comments.js", + "importStyle": "{load}", + "description": "load\nGets comments from API based on upload id\nRedux Action\nReference: http://redux.js.org/docs/basics/Actions.html", + "lineNumber": 85, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Function}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "postID", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "__docId__": 28, + "kind": "file", + "static": true, + "variation": null, + "name": "modules/actions/Contributions.js", + "memberof": null, + "longname": "modules/actions/Contributions.js", + "access": null, + "description": null, + "lineNumber": 1, + "content": "import * as axios from 'axios'\nimport config from 'config'\n\n/**\n * LOAD\n * @type {string}\n */\nexport const LOAD = 'CONTRIBUTIONS_LOAD'\n\n/**\n * _loadRequest\n * @param userID\n * @private\n */\nexport const _loadRequest = (userID) => ({ type: LOAD, userID, })\n\n/**\n * _loadResponse\n * @param userID\n * @param response\n * @private\n */\nexport const _loadResponse = (userID, response) => ({ type: LOAD, userID, response, })\n\n/**\n * load\n * Get contributions from API by user id\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param userID user id\n * @returns {Function}\n */\nexport function load(userID) {\n return (dispatch, getState) => {\n dispatch(_loadRequest(userID))\n const user = getState().User\n axios.get(`${config.api.baseUrl}/contributions?user_id=${userID || user.id}`, {\n headers: {\n Authorization: `Bearer ${localStorage.getItem('jwt')}`\n },\n })\n .then(res => {\n dispatch(_loadResponse(userID, res.data))\n })\n }\n}\n" + }, + { + "__docId__": 29, + "kind": "variable", + "static": true, + "variation": null, + "name": "LOAD", + "memberof": "modules/actions/Contributions.js", + "longname": "modules/actions/Contributions.js~LOAD", + "access": null, + "export": true, + "importPath": "react/modules/actions/Contributions.js", + "importStyle": "{LOAD}", + "description": "LOAD", + "lineNumber": 8, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 30, + "kind": "variable", + "static": true, + "variation": null, + "name": "_loadRequest", + "memberof": "modules/actions/Contributions.js", + "longname": "modules/actions/Contributions.js~_loadRequest", + "access": "private", + "export": true, + "importPath": "react/modules/actions/Contributions.js", + "importStyle": "{_loadRequest}", + "description": "_loadRequest", + "lineNumber": 15, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "userID", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 31, + "kind": "variable", + "static": true, + "variation": null, + "name": "_loadResponse", + "memberof": "modules/actions/Contributions.js", + "longname": "modules/actions/Contributions.js~_loadResponse", + "access": "private", + "export": true, + "importPath": "react/modules/actions/Contributions.js", + "importStyle": "{_loadResponse}", + "description": "_loadResponse", + "lineNumber": 23, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "userID", + "description": "" + }, + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "response", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 32, + "kind": "function", + "static": true, + "variation": null, + "name": "load", + "memberof": "modules/actions/Contributions.js", + "longname": "modules/actions/Contributions.js~load", + "access": null, + "export": true, + "importPath": "react/modules/actions/Contributions.js", + "importStyle": "{load}", + "description": "load\nGet contributions from API by user id\nRedux Action\nReference: http://redux.js.org/docs/basics/Actions.html", + "lineNumber": 33, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Function}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "userID", + "description": "user id" + } + ], + "return": { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "__docId__": 33, + "kind": "file", + "static": true, + "variation": null, + "name": "modules/actions/Explore.js", + "memberof": null, + "longname": "modules/actions/Explore.js", + "access": null, + "description": null, + "lineNumber": 1, + "content": "import * as axios from 'axios'\nimport config from 'config'\n\n/**\n * LOAD\n * @type {string}\n */\nexport const LOAD = 'EXPLORE_LOAD'\n\n/**\n * _loadRequest\n * @private\n */\nconst _loadRequest = () => ({ type: LOAD, })\n\n/**\n * _loadResponse\n * @param response\n * @private\n */\nconst _loadResponse = (response) => ({ type: LOAD, response})\n\n/**\n * load\n * Gets explore data from API for user\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @returns {Function}\n */\nexport function load() {\n return (dispatch, getState) => {\n dispatch(_loadRequest())\n const user = getState().User\n axios.get(`${config.api.baseUrl}/explore?user_id=${user.id}`, {\n headers: {\n Authorization: `Bearer ${localStorage.getItem('jwt')}`\n },\n })\n .then(res => {\n dispatch(_loadResponse(response.data))\n })\n }\n}\n" + }, + { + "__docId__": 34, + "kind": "variable", + "static": true, + "variation": null, + "name": "LOAD", + "memberof": "modules/actions/Explore.js", + "longname": "modules/actions/Explore.js~LOAD", + "access": null, + "export": true, + "importPath": "react/modules/actions/Explore.js", + "importStyle": "{LOAD}", + "description": "LOAD", + "lineNumber": 8, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 35, + "kind": "variable", + "static": true, + "variation": null, + "name": "_loadRequest", + "memberof": "modules/actions/Explore.js", + "longname": "modules/actions/Explore.js~_loadRequest", + "access": "private", + "export": false, + "importPath": "react/modules/actions/Explore.js", + "importStyle": null, + "description": "_loadRequest", + "lineNumber": 14, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 36, + "kind": "variable", + "static": true, + "variation": null, + "name": "_loadResponse", + "memberof": "modules/actions/Explore.js", + "longname": "modules/actions/Explore.js~_loadResponse", + "access": "private", + "export": false, + "importPath": "react/modules/actions/Explore.js", + "importStyle": null, + "description": "_loadResponse", + "lineNumber": 21, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "response", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 37, + "kind": "function", + "static": true, + "variation": null, + "name": "load", + "memberof": "modules/actions/Explore.js", + "longname": "modules/actions/Explore.js~load", + "access": null, + "export": true, + "importPath": "react/modules/actions/Explore.js", + "importStyle": "{load}", + "description": "load\nGets explore data from API for user\nRedux Action\nReference: http://redux.js.org/docs/basics/Actions.html", + "lineNumber": 30, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Function}" + } + ], + "params": [], + "return": { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "__docId__": 38, + "kind": "file", + "static": true, + "variation": null, + "name": "modules/actions/Header.js", + "memberof": null, + "longname": "modules/actions/Header.js", + "access": null, + "description": null, + "lineNumber": 1, + "content": "/**\n * LEFT\n * @type {string}\n */\nexport const LEFT = 'HEADER_LEFT'\n\n/**\n * left\n * @param component\n * @returns {{type: string, component: *}}\n */\nexport function left(component) {\n return {\n type: LEFT,\n component,\n }\n}\n\n/**\n * MIDDLE\n * @type {string}\n */\nexport const MIDDLE = 'HEADER_MIDDLE'\n\n\n/**\n * middle\n * @param component\n * @returns {{type: string, component: *}}\n */\nexport function middle(component) {\n return {\n type: MIDDLE,\n component,\n }\n}\n\n/**\n * RIGHT\n * @type {string}\n */\nexport const RIGHT = 'HEADER_RIGHT'\n\n/**\n * right\n * @param component\n * @returns {{type: string, component: *}}\n */\nexport function right(component) {\n return {\n type: RIGHT,\n component,\n }\n}\n" + }, + { + "__docId__": 39, + "kind": "variable", + "static": true, + "variation": null, + "name": "LEFT", + "memberof": "modules/actions/Header.js", + "longname": "modules/actions/Header.js~LEFT", + "access": null, + "export": true, + "importPath": "react/modules/actions/Header.js", + "importStyle": "{LEFT}", + "description": "LEFT", + "lineNumber": 5, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 40, + "kind": "function", + "static": true, + "variation": null, + "name": "left", + "memberof": "modules/actions/Header.js", + "longname": "modules/actions/Header.js~left", + "access": null, + "export": true, + "importPath": "react/modules/actions/Header.js", + "importStyle": "{left}", + "description": "left", + "lineNumber": 12, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{{type: string, component: *}}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "component", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "{type: string, component: *}" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "__docId__": 41, + "kind": "variable", + "static": true, + "variation": null, + "name": "MIDDLE", + "memberof": "modules/actions/Header.js", + "longname": "modules/actions/Header.js~MIDDLE", + "access": null, + "export": true, + "importPath": "react/modules/actions/Header.js", + "importStyle": "{MIDDLE}", + "description": "MIDDLE", + "lineNumber": 23, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 42, + "kind": "function", + "static": true, + "variation": null, + "name": "middle", + "memberof": "modules/actions/Header.js", + "longname": "modules/actions/Header.js~middle", + "access": null, + "export": true, + "importPath": "react/modules/actions/Header.js", + "importStyle": "{middle}", + "description": "middle", + "lineNumber": 31, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{{type: string, component: *}}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "component", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "{type: string, component: *}" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "__docId__": 43, + "kind": "variable", + "static": true, + "variation": null, + "name": "RIGHT", + "memberof": "modules/actions/Header.js", + "longname": "modules/actions/Header.js~RIGHT", + "access": null, + "export": true, + "importPath": "react/modules/actions/Header.js", + "importStyle": "{RIGHT}", + "description": "RIGHT", + "lineNumber": 42, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 44, + "kind": "function", + "static": true, + "variation": null, + "name": "right", + "memberof": "modules/actions/Header.js", + "longname": "modules/actions/Header.js~right", + "access": null, + "export": true, + "importPath": "react/modules/actions/Header.js", + "importStyle": "{right}", + "description": "right", + "lineNumber": 49, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{{type: string, component: *}}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "component", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "{type: string, component: *}" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "__docId__": 45, + "kind": "file", + "static": true, + "variation": null, + "name": "modules/actions/Like.js", + "memberof": null, + "longname": "modules/actions/Like.js", + "access": null, + "description": null, + "lineNumber": 1, + "content": "import * as axios from 'axios'\nimport config from 'config'\nimport * as querystring from 'querystring'\n\n/**\n * LOAD\n * @type {string}\n */\nexport const LOAD = 'LIKE_LOAD'\n\n/**\n * _loadRequest\n * @param postID\n * @private\n */\nexport const _loadRequest = (postID) => ({ type: LOAD, postID, })\n\n/**\n * _loadResponse\n * @param postID\n * @param response\n * @private\n */\nexport const _loadResponse = (postID, response) => ({ type: LOAD, postID, response, })\n\n/**\n * load\n * Gets number of 'likes' from API for user and post\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param postID post id\n * @param userID user id\n * @returns {Function}\n */\nexport function load(postID, userID) {\n return (dispatch, getState) => {\n dispatch(_loadRequest(postID))\n const user = getState().User\n axios.get(`${config.api.baseUrl}/likes?upload_id=${postID}&user_id=${user.id}`, {\n headers: {\n Authorization: `Bearer ${localStorage.getItem('jwt')}`\n },\n })\n .then(res => {\n dispatch(_loadResponse(postID, res.data))\n })\n }\n}\n\n/**\n * ADD_LIKE\n * @type {string}\n */\nexport const ADD_LIKE = 'ADD_LIKE'\n\n/**\n * _hnadleAddLikeRequest\n * @param postID\n * @private\n */\nexport const _handleAddLikeRequest = (postID) => ({ type: ADD_LIKE, postID,})\n\n/**\n * _handleAddLikeResponse\n * @param postID\n * @param response\n * @private\n */\nexport const _handleAddLikeResponse = (postID, response) => ({ type: ADD_LIKE, postID, response, })\n\n/**\n * like\n * Posts a 'like' to the API for a user and post\n * @param postID post id\n * @returns {Function}\n */\nexport function like(postID) {\n return (dispatch, getState) => {\n dispatch(_handleAddLikeRequest(postID))\n const data = {\n user_id: getState().User.id,\n upload_id: postID,\n }\n axios.post(`${config.api.baseUrl}/likes`, data, {\n headers: {\n Authorization: `Bearer ${localStorage.getItem('jwt')}`\n },\n })\n .then(res => {\n dispatch(_handleAddLikeResponse(postID, res.data))\n })\n }\n}\n\n/**\n * DELETE_LIKE\n * @type {string}\n */\nexport const DELETE_LIKE = 'DELETE_LIKE'\n\n/**\n * _handleDeleteLikeRequest\n * @param postID\n * @private\n */\nexport const _handleDeleteLikeRequest = (postID) => ({ type: DELETE_LIKE, postID,})\n\n/**\n * _handleDeleteLikeResponse\n * @param postID\n * @param response\n * @private\n */\nexport const _handleDeleteLikeResponse = (postID, response) => ({ type: DELETE_LIKE, postID, response, })\n\n/**\n * deleteLike\n * Removes like (unlikes) for a user and a post\n * @param postID post id\n * @returns {Function}\n */\nexport function deleteLike(postID) {\n return (dispatch, getState) => {\n dispatch(_handleDeleteLikeRequest(postID))\n const data = {\n user_id: getState().User.id,\n upload_id: postID,\n }\n axios.delete(`${config.api.baseUrl}/likes?` + querystring.stringify(data), {\n headers: {\n Authorization: `Bearer ${localStorage.getItem('jwt')}`\n }\n })\n .then(res => {\n dispatch(_handleDeleteLikeResponse(postID, res.data))\n })\n }\n}\n" + }, + { + "__docId__": 46, + "kind": "variable", + "static": true, + "variation": null, + "name": "LOAD", + "memberof": "modules/actions/Like.js", + "longname": "modules/actions/Like.js~LOAD", + "access": null, + "export": true, + "importPath": "react/modules/actions/Like.js", + "importStyle": "{LOAD}", + "description": "LOAD", + "lineNumber": 9, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 47, + "kind": "variable", + "static": true, + "variation": null, + "name": "_loadRequest", + "memberof": "modules/actions/Like.js", + "longname": "modules/actions/Like.js~_loadRequest", + "access": "private", + "export": true, + "importPath": "react/modules/actions/Like.js", + "importStyle": "{_loadRequest}", + "description": "_loadRequest", + "lineNumber": 16, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "postID", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 48, + "kind": "variable", + "static": true, + "variation": null, + "name": "_loadResponse", + "memberof": "modules/actions/Like.js", + "longname": "modules/actions/Like.js~_loadResponse", + "access": "private", + "export": true, + "importPath": "react/modules/actions/Like.js", + "importStyle": "{_loadResponse}", + "description": "_loadResponse", + "lineNumber": 24, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "postID", + "description": "" + }, + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "response", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 49, + "kind": "function", + "static": true, + "variation": null, + "name": "load", + "memberof": "modules/actions/Like.js", + "longname": "modules/actions/Like.js~load", + "access": null, + "export": true, + "importPath": "react/modules/actions/Like.js", + "importStyle": "{load}", + "description": "load\nGets number of 'likes' from API for user and post\nRedux Action\nReference: http://redux.js.org/docs/basics/Actions.html", + "lineNumber": 35, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Function}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "postID", + "description": "post id" + }, + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "userID", + "description": "user id" + } + ], + "return": { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "__docId__": 50, + "kind": "variable", + "static": true, + "variation": null, + "name": "ADD_LIKE", + "memberof": "modules/actions/Like.js", + "longname": "modules/actions/Like.js~ADD_LIKE", + "access": null, + "export": true, + "importPath": "react/modules/actions/Like.js", + "importStyle": "{ADD_LIKE}", + "description": "ADD_LIKE", + "lineNumber": 54, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 51, + "kind": "variable", + "static": true, + "variation": null, + "name": "_handleAddLikeRequest", + "memberof": "modules/actions/Like.js", + "longname": "modules/actions/Like.js~_handleAddLikeRequest", + "access": "private", + "export": true, + "importPath": "react/modules/actions/Like.js", + "importStyle": "{_handleAddLikeRequest}", + "description": "_hnadleAddLikeRequest", + "lineNumber": 61, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "postID", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 52, + "kind": "variable", + "static": true, + "variation": null, + "name": "_handleAddLikeResponse", + "memberof": "modules/actions/Like.js", + "longname": "modules/actions/Like.js~_handleAddLikeResponse", + "access": "private", + "export": true, + "importPath": "react/modules/actions/Like.js", + "importStyle": "{_handleAddLikeResponse}", + "description": "_handleAddLikeResponse", + "lineNumber": 69, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "postID", + "description": "" + }, + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "response", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 53, + "kind": "function", + "static": true, + "variation": null, + "name": "like", + "memberof": "modules/actions/Like.js", + "longname": "modules/actions/Like.js~like", + "access": null, + "export": true, + "importPath": "react/modules/actions/Like.js", + "importStyle": "{like}", + "description": "like\nPosts a 'like' to the API for a user and post", + "lineNumber": 77, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Function}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "postID", + "description": "post id" + } + ], + "return": { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "__docId__": 54, + "kind": "variable", + "static": true, + "variation": null, + "name": "DELETE_LIKE", + "memberof": "modules/actions/Like.js", + "longname": "modules/actions/Like.js~DELETE_LIKE", + "access": null, + "export": true, + "importPath": "react/modules/actions/Like.js", + "importStyle": "{DELETE_LIKE}", + "description": "DELETE_LIKE", + "lineNumber": 99, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 55, + "kind": "variable", + "static": true, + "variation": null, + "name": "_handleDeleteLikeRequest", + "memberof": "modules/actions/Like.js", + "longname": "modules/actions/Like.js~_handleDeleteLikeRequest", + "access": "private", + "export": true, + "importPath": "react/modules/actions/Like.js", + "importStyle": "{_handleDeleteLikeRequest}", + "description": "_handleDeleteLikeRequest", + "lineNumber": 106, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "postID", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 56, + "kind": "variable", + "static": true, + "variation": null, + "name": "_handleDeleteLikeResponse", + "memberof": "modules/actions/Like.js", + "longname": "modules/actions/Like.js~_handleDeleteLikeResponse", + "access": "private", + "export": true, + "importPath": "react/modules/actions/Like.js", + "importStyle": "{_handleDeleteLikeResponse}", + "description": "_handleDeleteLikeResponse", + "lineNumber": 114, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "postID", + "description": "" + }, + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "response", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 57, + "kind": "function", + "static": true, + "variation": null, + "name": "deleteLike", + "memberof": "modules/actions/Like.js", + "longname": "modules/actions/Like.js~deleteLike", + "access": null, + "export": true, + "importPath": "react/modules/actions/Like.js", + "importStyle": "{deleteLike}", + "description": "deleteLike\nRemoves like (unlikes) for a user and a post", + "lineNumber": 122, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Function}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "postID", + "description": "post id" + } + ], + "return": { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "__docId__": 58, + "kind": "file", + "static": true, + "variation": null, + "name": "modules/actions/Location.js", + "memberof": null, + "longname": "modules/actions/Location.js", + "access": null, + "description": null, + "lineNumber": 1, + "content": "import * as axios from 'axios'\nimport config from 'config'\n\n/**\n * LOAD\n * @type {string}\n */\nexport const LOAD = 'LOCATION_LOAD'\n\n/**\n * _loadRequest\n * @param location\n * @private\n */\nexport const _loadRequest = (location) => ({ type: LOAD, location, })\n\n/**\n * _loadResponse\n * @param location\n * @param response\n * @private\n */\nexport const _loadResponse = (location, response) => ({ type: LOAD, location, response, })\n\n/**\n * load\n * Gets data from API for a given location\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param location\n * @returns {Function}\n */\nexport function load(location) {\n return (dispatch) => {\n dispatch(_loadRequest(location))\n axios.get(`${config.api.baseUrl}/locations?q=${location}`, {\n headers: {\n Authorization: `Bearer ${localStorage.getItem('jwt')}`\n },\n })\n .then(res => {\n dispatch(_loadResponse(location, res.data))\n })\n }\n}\n" + }, + { + "__docId__": 59, + "kind": "variable", + "static": true, + "variation": null, + "name": "LOAD", + "memberof": "modules/actions/Location.js", + "longname": "modules/actions/Location.js~LOAD", + "access": null, + "export": true, + "importPath": "react/modules/actions/Location.js", + "importStyle": "{LOAD}", + "description": "LOAD", + "lineNumber": 8, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 60, + "kind": "variable", + "static": true, + "variation": null, + "name": "_loadRequest", + "memberof": "modules/actions/Location.js", + "longname": "modules/actions/Location.js~_loadRequest", + "access": "private", + "export": true, + "importPath": "react/modules/actions/Location.js", + "importStyle": "{_loadRequest}", + "description": "_loadRequest", + "lineNumber": 15, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "location", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 61, + "kind": "variable", + "static": true, + "variation": null, + "name": "_loadResponse", + "memberof": "modules/actions/Location.js", + "longname": "modules/actions/Location.js~_loadResponse", + "access": "private", + "export": true, + "importPath": "react/modules/actions/Location.js", + "importStyle": "{_loadResponse}", + "description": "_loadResponse", + "lineNumber": 23, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "location", + "description": "" + }, + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "response", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 62, + "kind": "function", + "static": true, + "variation": null, + "name": "load", + "memberof": "modules/actions/Location.js", + "longname": "modules/actions/Location.js~load", + "access": null, + "export": true, + "importPath": "react/modules/actions/Location.js", + "importStyle": "{load}", + "description": "load\nGets data from API for a given location\nRedux Action\nReference: http://redux.js.org/docs/basics/Actions.html", + "lineNumber": 33, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Function}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "location", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "__docId__": 63, + "kind": "file", + "static": true, + "variation": null, + "name": "modules/actions/Photo.js", + "memberof": null, + "longname": "modules/actions/Photo.js", + "access": null, + "description": null, + "lineNumber": 1, + "content": "import * as axios from 'axios'\nimport config from 'config'\n\nimport {\n Like as LikeActions,\n Comments as CommentActions,\n} from 'actions'\n\n/**\n * LOAD\n * @type {string}\n */\nexport const LOAD = 'PHOTO_LOAD'\n\n/**\n * _loadRequest\n * @private\n */\nconst _loadRequest = () => ({ type: LOAD, })\n\n/**\n * _loadResponse\n * @param response\n * @private\n */\nconst _loadResponse = (response) => ({ type: LOAD, response, })\n\n/**\n * load\n * Gets single photo upload from API based on upload id\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param id upload id\n * @returns {Function}\n */\nexport function load(id) {\n return dispatch => {\n return new Promise((resolve) => {\n dispatch(_loadRequest())\n axios.get(`${config.api.baseUrl}/upload?id=${id}`, {\n headers: {\n Authorization: `Bearer ${localStorage.getItem('jwt')}`\n },\n })\n .then(res => {\n dispatch(_loadResponse(res.data))\n dispatch(CommentActions.load(id))\n dispatch(LikeActions.load(id))\n return resolve()\n })\n })\n }\n}\n" + }, + { + "__docId__": 64, + "kind": "variable", + "static": true, + "variation": null, + "name": "LOAD", + "memberof": "modules/actions/Photo.js", + "longname": "modules/actions/Photo.js~LOAD", + "access": null, + "export": true, + "importPath": "react/modules/actions/Photo.js", + "importStyle": "{LOAD}", + "description": "LOAD", + "lineNumber": 13, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 65, + "kind": "variable", + "static": true, + "variation": null, + "name": "_loadRequest", + "memberof": "modules/actions/Photo.js", + "longname": "modules/actions/Photo.js~_loadRequest", + "access": "private", + "export": false, + "importPath": "react/modules/actions/Photo.js", + "importStyle": null, + "description": "_loadRequest", + "lineNumber": 19, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 66, + "kind": "variable", + "static": true, + "variation": null, + "name": "_loadResponse", + "memberof": "modules/actions/Photo.js", + "longname": "modules/actions/Photo.js~_loadResponse", + "access": "private", + "export": false, + "importPath": "react/modules/actions/Photo.js", + "importStyle": null, + "description": "_loadResponse", + "lineNumber": 26, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "response", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 67, + "kind": "function", + "static": true, + "variation": null, + "name": "load", + "memberof": "modules/actions/Photo.js", + "longname": "modules/actions/Photo.js~load", + "access": null, + "export": true, + "importPath": "react/modules/actions/Photo.js", + "importStyle": "{load}", + "description": "load\nGets single photo upload from API based on upload id\nRedux Action\nReference: http://redux.js.org/docs/basics/Actions.html", + "lineNumber": 36, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Function}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "id", + "description": "upload id" + } + ], + "return": { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "__docId__": 68, + "kind": "file", + "static": true, + "variation": null, + "name": "modules/actions/Photos.js", + "memberof": null, + "longname": "modules/actions/Photos.js", + "access": null, + "description": null, + "lineNumber": 1, + "content": "import * as axios from 'axios'\nimport config from 'config'\n\n/**\n * ADD\n * @type {string}\n */\nexport const ADD = 'PHOTO_ADD'\n\n/**\n * add\n * @param response\n * @returns {{type: string, response: *}}\n */\nexport function add(response) {\n return {\n type: ADD,\n response,\n }\n}\n\n/**\n * LOAD\n * @type {string}\n */\nexport const LOAD = 'PHOTOS_LOAD'\n\n/**\n * _loadRequest\n * @private\n */\nconst _loadRequest = () => ({ type: LOAD, })\n\n/**\n * _loadResponse\n * @param response\n * @private\n */\nconst _loadResponse = (response) => ({ type: LOAD, response, })\n\n/**\n * load\n * Get photo uploads from the API based on user id\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param id user id\n * @returns {Function}\n */\nexport function load(id) {\n return (dispatch, getState) => {\n const userID = id || getState().User.id\n dispatch(_loadRequest())\n axios.get(`${config.api.baseUrl}/uploads?user_id=${userID}`, {\n headers: {\n Authorization: `Bearer ${localStorage.getItem('jwt')}`,\n },\n })\n .then(res => {\n dispatch(_loadResponse(res.data))\n })\n }\n}\n\n/**\n * LIKE\n * @type {string}\n */\nexport const LIKE = 'PHOTOS_LIKE'\n\n/**\n * _likeRequest\n * @private\n */\nconst _likeRequest = () => ({ type: LIKE, })\n\n/**\n * _likeResponse\n * @param postID\n * @param response\n * @private\n */\nconst _likeResponse = (postID, response) => ({ type: LIKE, postID, response, })\n\n/**\n * like\n * Post a 'like' to the API for a given post\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param postID post id\n * @returns {Function}\n */\nexport function like(postID) {\n return (dispatch, getState) => {\n dispatch(_likeRequest())\n const data = {\n user_id: getState().User.id,\n upload_id: postID,\n }\n axios.post(`${config.api.baseUrl}/likes`, data, {\n headers: {\n Authorization: `Bearer ${localStorage.getItem('jwt')}`,\n },\n })\n .then(res => {\n dispatch(_likeResponse(postID, res.data))\n })\n }\n}\n\n/**\n * UNLIKE\n * @type {string}\n */\nexport const UNLIKE = 'PHOTOS_UNLIKE'\n\n/**\n * _unlikeRequest\n * @private\n */\nconst _unlikeRequest = () => ({ type: UNLIKE, })\n\n/**\n * _unlikeRequestResponse\n * @param postID\n * @param response\n * @private\n */\nconst _unlikeRequestResponse = (postID, response) => ({ type: UNLIKE, postID, response, })\n\n/**\n * unlike\n * Post an 'unlike' to the API based on post id\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param postID post id\n * @returns {Function}\n */\nexport function unlike(postID) {\n return (dispatch, getState) => {\n dispatch(_unlikeRequest())\n const data = {\n user_id: getState().User.id,\n upload_id: postID,\n }\n axios.delete(`${config.api.baseUrl}/likes?user_id=${data.user_id}&upload_id=${data.upload_id}`, data, {\n headers: {\n Authorization: `Bearer ${localStorage.getItem('jwt')}`\n },\n })\n .then(res => {\n dispatch(_unlikeRequestResponse(postID, res.data))\n })\n }\n}\n\n/**\n * PAGINATE\n * @type {string}\n */\nexport const PAGINATE = 'PHOTOS_PAGINATE'\n\n/**\n * _paginateRequest\n * @param lastId\n * @private\n */\nconst _paginateRequest = lastId => ({ type: PAGINATE, lastId, })\n\n/**\n * _paginateResponse\n * @param response\n * @private\n */\nconst _paginateResponse = response => ({ type: PAGINATE, response, })\n\n/**\n * paginate\n * Get photo uploads from API based on user id, and the last post id (for pagination purposes)\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @returns {Function}\n */\nexport function paginate() {\n return (dispatch, getState) => {\n const {\n Pagination,\n User,\n } = getState()\n if (Pagination.fetching) return;\n dispatch(_paginateRequest(Pagination.lastId))\n axios.get(`${config.api.baseUrl}/uploads?user_id=${User.id}&last_id=${Pagination.lastId}`, {\n headers: {\n Authorization: `Bearer ${localStorage.getItem('jwt')}`\n },\n })\n .then(res => {\n dispatch(_paginateResponse(res.data))\n })\n }\n}\n" + }, + { + "__docId__": 69, + "kind": "variable", + "static": true, + "variation": null, + "name": "ADD", + "memberof": "modules/actions/Photos.js", + "longname": "modules/actions/Photos.js~ADD", + "access": null, + "export": true, + "importPath": "react/modules/actions/Photos.js", + "importStyle": "{ADD}", + "description": "ADD", + "lineNumber": 8, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 70, + "kind": "function", + "static": true, + "variation": null, + "name": "add", + "memberof": "modules/actions/Photos.js", + "longname": "modules/actions/Photos.js~add", + "access": null, + "export": true, + "importPath": "react/modules/actions/Photos.js", + "importStyle": "{add}", + "description": "add", + "lineNumber": 15, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{{type: string, response: *}}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "response", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "{type: string, response: *}" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "__docId__": 71, + "kind": "variable", + "static": true, + "variation": null, + "name": "LOAD", + "memberof": "modules/actions/Photos.js", + "longname": "modules/actions/Photos.js~LOAD", + "access": null, + "export": true, + "importPath": "react/modules/actions/Photos.js", + "importStyle": "{LOAD}", + "description": "LOAD", + "lineNumber": 26, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 72, + "kind": "variable", + "static": true, + "variation": null, + "name": "_loadRequest", + "memberof": "modules/actions/Photos.js", + "longname": "modules/actions/Photos.js~_loadRequest", + "access": "private", + "export": false, + "importPath": "react/modules/actions/Photos.js", + "importStyle": null, + "description": "_loadRequest", + "lineNumber": 32, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 73, + "kind": "variable", + "static": true, + "variation": null, + "name": "_loadResponse", + "memberof": "modules/actions/Photos.js", + "longname": "modules/actions/Photos.js~_loadResponse", + "access": "private", + "export": false, + "importPath": "react/modules/actions/Photos.js", + "importStyle": null, + "description": "_loadResponse", + "lineNumber": 39, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "response", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 74, + "kind": "function", + "static": true, + "variation": null, + "name": "load", + "memberof": "modules/actions/Photos.js", + "longname": "modules/actions/Photos.js~load", + "access": null, + "export": true, + "importPath": "react/modules/actions/Photos.js", + "importStyle": "{load}", + "description": "load\nGet photo uploads from the API based on user id\nRedux Action\nReference: http://redux.js.org/docs/basics/Actions.html", + "lineNumber": 49, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Function}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "id", + "description": "user id" + } + ], + "return": { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "__docId__": 75, + "kind": "variable", + "static": true, + "variation": null, + "name": "LIKE", + "memberof": "modules/actions/Photos.js", + "longname": "modules/actions/Photos.js~LIKE", + "access": null, + "export": true, + "importPath": "react/modules/actions/Photos.js", + "importStyle": "{LIKE}", + "description": "LIKE", + "lineNumber": 68, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 76, + "kind": "variable", + "static": true, + "variation": null, + "name": "_likeRequest", + "memberof": "modules/actions/Photos.js", + "longname": "modules/actions/Photos.js~_likeRequest", + "access": "private", + "export": false, + "importPath": "react/modules/actions/Photos.js", + "importStyle": null, + "description": "_likeRequest", + "lineNumber": 74, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 77, + "kind": "variable", + "static": true, + "variation": null, + "name": "_likeResponse", + "memberof": "modules/actions/Photos.js", + "longname": "modules/actions/Photos.js~_likeResponse", + "access": "private", + "export": false, + "importPath": "react/modules/actions/Photos.js", + "importStyle": null, + "description": "_likeResponse", + "lineNumber": 82, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "postID", + "description": "" + }, + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "response", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 78, + "kind": "function", + "static": true, + "variation": null, + "name": "like", + "memberof": "modules/actions/Photos.js", + "longname": "modules/actions/Photos.js~like", + "access": null, + "export": true, + "importPath": "react/modules/actions/Photos.js", + "importStyle": "{like}", + "description": "like\nPost a 'like' to the API for a given post\nRedux Action\nReference: http://redux.js.org/docs/basics/Actions.html", + "lineNumber": 92, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Function}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "postID", + "description": "post id" + } + ], + "return": { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "__docId__": 79, + "kind": "variable", + "static": true, + "variation": null, + "name": "UNLIKE", + "memberof": "modules/actions/Photos.js", + "longname": "modules/actions/Photos.js~UNLIKE", + "access": null, + "export": true, + "importPath": "react/modules/actions/Photos.js", + "importStyle": "{UNLIKE}", + "description": "UNLIKE", + "lineNumber": 114, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 80, + "kind": "variable", + "static": true, + "variation": null, + "name": "_unlikeRequest", + "memberof": "modules/actions/Photos.js", + "longname": "modules/actions/Photos.js~_unlikeRequest", + "access": "private", + "export": false, + "importPath": "react/modules/actions/Photos.js", + "importStyle": null, + "description": "_unlikeRequest", + "lineNumber": 120, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 81, + "kind": "variable", + "static": true, + "variation": null, + "name": "_unlikeRequestResponse", + "memberof": "modules/actions/Photos.js", + "longname": "modules/actions/Photos.js~_unlikeRequestResponse", + "access": "private", + "export": false, + "importPath": "react/modules/actions/Photos.js", + "importStyle": null, + "description": "_unlikeRequestResponse", + "lineNumber": 128, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "postID", + "description": "" + }, + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "response", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 82, + "kind": "function", + "static": true, + "variation": null, + "name": "unlike", + "memberof": "modules/actions/Photos.js", + "longname": "modules/actions/Photos.js~unlike", + "access": null, + "export": true, + "importPath": "react/modules/actions/Photos.js", + "importStyle": "{unlike}", + "description": "unlike\nPost an 'unlike' to the API based on post id\nRedux Action\nReference: http://redux.js.org/docs/basics/Actions.html", + "lineNumber": 138, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Function}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "postID", + "description": "post id" + } + ], + "return": { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "__docId__": 83, + "kind": "variable", + "static": true, + "variation": null, + "name": "PAGINATE", + "memberof": "modules/actions/Photos.js", + "longname": "modules/actions/Photos.js~PAGINATE", + "access": null, + "export": true, + "importPath": "react/modules/actions/Photos.js", + "importStyle": "{PAGINATE}", + "description": "PAGINATE", + "lineNumber": 160, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 84, + "kind": "variable", + "static": true, + "variation": null, + "name": "_paginateRequest", + "memberof": "modules/actions/Photos.js", + "longname": "modules/actions/Photos.js~_paginateRequest", + "access": "private", + "export": false, + "importPath": "react/modules/actions/Photos.js", + "importStyle": null, + "description": "_paginateRequest", + "lineNumber": 167, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "lastId", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 85, + "kind": "variable", + "static": true, + "variation": null, + "name": "_paginateResponse", + "memberof": "modules/actions/Photos.js", + "longname": "modules/actions/Photos.js~_paginateResponse", + "access": "private", + "export": false, + "importPath": "react/modules/actions/Photos.js", + "importStyle": null, + "description": "_paginateResponse", + "lineNumber": 174, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "response", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 86, + "kind": "function", + "static": true, + "variation": null, + "name": "paginate", + "memberof": "modules/actions/Photos.js", + "longname": "modules/actions/Photos.js~paginate", + "access": null, + "export": true, + "importPath": "react/modules/actions/Photos.js", + "importStyle": "{paginate}", + "description": "paginate\nGet photo uploads from API based on user id, and the last post id (for pagination purposes)\nRedux Action\nReference: http://redux.js.org/docs/basics/Actions.html", + "lineNumber": 183, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Function}" + } + ], + "params": [], + "return": { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "__docId__": 87, + "kind": "file", + "static": true, + "variation": null, + "name": "modules/actions/Profile.js", + "memberof": null, + "longname": "modules/actions/Profile.js", + "access": null, + "description": null, + "lineNumber": 1, + "content": "import * as axios from 'axios'\nimport config from 'config'\n\n/**\n * LOAD\n * @type {string}\n */\nexport const LOAD = 'PROFILE_LOAD'\n\n/**\n * _loadRequest\n * @param userID\n * @private\n */\nexport const _loadRequest = (userID) => ({ type: LOAD, userID, })\n\n/**\n * _loadResponse\n * @param userID\n * @param response\n * @private\n */\nexport const _loadResponse = (userID, response) => ({ type: LOAD, userID, response, })\n\n/**\n * load\n * Gets profile data from the API for a given user id\n * @param userID user id\n * @returns {Function}\n */\nexport function load(userID) {\n return (dispatch, getState) => {\n dispatch(_loadRequest(userID))\n const user = getState().User\n axios.get(`${config.api.baseUrl}/users/${userID}?user_id=${user.id}`, {\n headers: {\n Authorization: `Bearer ${localStorage.getItem('jwt')}`\n },\n })\n .then(res => {\n dispatch(_loadResponse(userID, res.data))\n })\n }\n}\n\n/**\n * FOLLOW\n * @type {string}\n */\nexport const FOLLOW = 'PROFILE_FOLLOW'\n\n/**\n * _followRequest\n * @param userID\n * @private\n */\nexport const _followRequest = (userID) => ({ type: FOLLOW, userID, })\n\n/**\n * _followResponse\n * @param userID\n * @param response\n * @private\n */\nexport const _followResponse = (userID, response) => ({ type: FOLLOW, userID, response, })\n\n/**\n * follow\n * Posts a 'follow' action to the API for a given user id\n * @param userID user id\n * @returns {Function}\n */\nexport function follow(userID) {\n return (dispatch, getState) => {\n dispatch(_followRequest(userID))\n const user = getState().User\n const data = {\n user_id: user.id,\n follower_id: userID,\n }\n axios.post(`${config.api.baseUrl}/followers`, data, {\n headers: {\n Authorization: `Bearer ${localStorage.getItem('jwt')}`\n },\n })\n .then(res => {\n dispatch(_followResponse(userID, res.data))\n })\n }\n}\n\n/**\n * UNFOLLOW\n * @type {string}\n */\nexport const UNFOLLOW = 'PROFILE_UNFOLLOW'\n\n/**\n * _unfollowRequest\n * @param userID\n * @private\n */\nexport const _unfollowRequest = (userID) => ({ type: UNFOLLOW, userID, })\n\n/**\n * _unfollowResponse\n * @param userID\n * @param response\n * @private\n */\nexport const _unfollowResponse = (userID, response) => ({ type: UNFOLLOW, userID, response, })\n\n/**\n * unfollow\n * Posts an 'unfollow' action to the API for a given user id\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param userID follower id\n * @returns {Function}\n */\nexport function unfollow(userID) {\n return (dispatch, getState) => {\n dispatch(_unfollowRequest(userID))\n const user = getState().User\n axios.delete(`${config.api.baseUrl}/followers?user_id=${user.id}&follower_id=${userID}`, {\n headers: {\n Authorization: `Bearer ${localStorage.getItem('jwt')}`\n }\n })\n .then(res => {\n dispatch(_unfollowResponse(userID, res.data))\n })\n }\n}\n" + }, + { + "__docId__": 88, + "kind": "variable", + "static": true, + "variation": null, + "name": "LOAD", + "memberof": "modules/actions/Profile.js", + "longname": "modules/actions/Profile.js~LOAD", + "access": null, + "export": true, + "importPath": "react/modules/actions/Profile.js", + "importStyle": "{LOAD}", + "description": "LOAD", + "lineNumber": 8, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 89, + "kind": "variable", + "static": true, + "variation": null, + "name": "_loadRequest", + "memberof": "modules/actions/Profile.js", + "longname": "modules/actions/Profile.js~_loadRequest", + "access": "private", + "export": true, + "importPath": "react/modules/actions/Profile.js", + "importStyle": "{_loadRequest}", + "description": "_loadRequest", + "lineNumber": 15, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "userID", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 90, + "kind": "variable", + "static": true, + "variation": null, + "name": "_loadResponse", + "memberof": "modules/actions/Profile.js", + "longname": "modules/actions/Profile.js~_loadResponse", + "access": "private", + "export": true, + "importPath": "react/modules/actions/Profile.js", + "importStyle": "{_loadResponse}", + "description": "_loadResponse", + "lineNumber": 23, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "userID", + "description": "" + }, + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "response", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 91, + "kind": "function", + "static": true, + "variation": null, + "name": "load", + "memberof": "modules/actions/Profile.js", + "longname": "modules/actions/Profile.js~load", + "access": null, + "export": true, + "importPath": "react/modules/actions/Profile.js", + "importStyle": "{load}", + "description": "load\nGets profile data from the API for a given user id", + "lineNumber": 31, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Function}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "userID", + "description": "user id" + } + ], + "return": { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "__docId__": 92, + "kind": "variable", + "static": true, + "variation": null, + "name": "FOLLOW", + "memberof": "modules/actions/Profile.js", + "longname": "modules/actions/Profile.js~FOLLOW", + "access": null, + "export": true, + "importPath": "react/modules/actions/Profile.js", + "importStyle": "{FOLLOW}", + "description": "FOLLOW", + "lineNumber": 50, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 93, + "kind": "variable", + "static": true, + "variation": null, + "name": "_followRequest", + "memberof": "modules/actions/Profile.js", + "longname": "modules/actions/Profile.js~_followRequest", + "access": "private", + "export": true, + "importPath": "react/modules/actions/Profile.js", + "importStyle": "{_followRequest}", + "description": "_followRequest", + "lineNumber": 57, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "userID", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 94, + "kind": "variable", + "static": true, + "variation": null, + "name": "_followResponse", + "memberof": "modules/actions/Profile.js", + "longname": "modules/actions/Profile.js~_followResponse", + "access": "private", + "export": true, + "importPath": "react/modules/actions/Profile.js", + "importStyle": "{_followResponse}", + "description": "_followResponse", + "lineNumber": 65, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "userID", + "description": "" + }, + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "response", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 95, + "kind": "function", + "static": true, + "variation": null, + "name": "follow", + "memberof": "modules/actions/Profile.js", + "longname": "modules/actions/Profile.js~follow", + "access": null, + "export": true, + "importPath": "react/modules/actions/Profile.js", + "importStyle": "{follow}", + "description": "follow\nPosts a 'follow' action to the API for a given user id", + "lineNumber": 73, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Function}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "userID", + "description": "user id" + } + ], + "return": { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "__docId__": 96, + "kind": "variable", + "static": true, + "variation": null, + "name": "UNFOLLOW", + "memberof": "modules/actions/Profile.js", + "longname": "modules/actions/Profile.js~UNFOLLOW", + "access": null, + "export": true, + "importPath": "react/modules/actions/Profile.js", + "importStyle": "{UNFOLLOW}", + "description": "UNFOLLOW", + "lineNumber": 96, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 97, + "kind": "variable", + "static": true, + "variation": null, + "name": "_unfollowRequest", + "memberof": "modules/actions/Profile.js", + "longname": "modules/actions/Profile.js~_unfollowRequest", + "access": "private", + "export": true, + "importPath": "react/modules/actions/Profile.js", + "importStyle": "{_unfollowRequest}", + "description": "_unfollowRequest", + "lineNumber": 103, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "userID", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 98, + "kind": "variable", + "static": true, + "variation": null, + "name": "_unfollowResponse", + "memberof": "modules/actions/Profile.js", + "longname": "modules/actions/Profile.js~_unfollowResponse", + "access": "private", + "export": true, + "importPath": "react/modules/actions/Profile.js", + "importStyle": "{_unfollowResponse}", + "description": "_unfollowResponse", + "lineNumber": 111, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "userID", + "description": "" + }, + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "response", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 99, + "kind": "function", + "static": true, + "variation": null, + "name": "unfollow", + "memberof": "modules/actions/Profile.js", + "longname": "modules/actions/Profile.js~unfollow", + "access": null, + "export": true, + "importPath": "react/modules/actions/Profile.js", + "importStyle": "{unfollow}", + "description": "unfollow\nPosts an 'unfollow' action to the API for a given user id\nRedux Action\nReference: http://redux.js.org/docs/basics/Actions.html", + "lineNumber": 121, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Function}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "userID", + "description": "follower id" + } + ], + "return": { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "__docId__": 100, + "kind": "file", + "static": true, + "variation": null, + "name": "modules/actions/Search.js", + "memberof": null, + "longname": "modules/actions/Search.js", + "access": null, + "description": null, + "lineNumber": 1, + "content": "import * as axios from 'axios'\nimport algoliasearch from 'algoliasearch'\nimport config from 'config'\n\nconst algolia = algoliasearch(config.algolia.appId, config.algolia.searchOnlyKey)\n\n\n/**\n * SEARCH\n * @type {string}\n */\nexport const SEARCH = 'SEARCH_SEARCH'\n\n/**\n * _searchRequest\n * @param term\n * @private\n */\nconst _searchRequest = (term) => ({ type: SEARCH, term, })\n\n/**\n * _searchResponse\n * @param term\n * @param response\n * @private\n */\nconst _searchResponse = (term, response) => ({ type: SEARCH, term, response, })\n\n/**\n * search\n * Make a search request to algolia based on term (string) and type\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param term {string} search term\n * @param type {string} type of search ('all', 'hashtags', 'location')\n * @returns {Function}\n */\nexport function search(term, type = 'all') {\n\n return dispatch => {\n\n // Initialize the 'cabin' index:\n let index = algolia.initIndex('cabin'),\n attrs = []\n\n switch(type) {\n case 'all':\n attrs.push(\n 'first_name',\n 'last_name',\n 'email',\n 'location',\n 'hashtags',\n )\n break;\n case 'hashtags':\n attrs.push('hashtags')\n break\n case 'user':\n attrs.push(\n 'first_name',\n 'last_name',\n 'email'\n )\n break\n case 'location':\n attrs.push('location')\n break\n }\n\n // Perform Algolia search:\n index.search(term, {\n attributesToHighlight: attrs,\n hitsPerPage: 100\n }, (err, content) => {\n dispatch(_searchResponse(term, content))\n })\n }\n}\n\n/**\n * TRIGGER\n * @type {string}\n */\nexport const TRIGGER = 'SEARCH_TRIGGER'\n\n/**\n * _triggerRequest\n * @param search\n * @private\n */\nconst _triggerRequest = (search) => ({ type: TRIGGER, search, })\n\n/**\n * _triggerResponse\n * @param search\n * @param response\n * @private\n */\nconst _triggerResponse = (search, response) => ({ type: TRIGGER, search, response, })\n\n/**\n * trigger\n * Triggers search, and posts search data to API\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param search\n * @returns {Function}\n */\nexport function trigger(search) {\n return (dispatch, getState) => {\n dispatch(_triggerRequest(search))\n /**\n * data\n * @type {{user_id: *, search: *}}\n */\n const data = {\n user_id: getState().User.id,\n search: search.word,\n }\n axios.post(`${config.api.baseUrl}/searches`, data).then(res => {\n dispatch(_triggerResponse(search, res.data))\n })\n }\n}\n\n/**\n * RECENT\n * @type {string}\n */\nexport const RECENT = 'SEARCH_RECENT'\n\n/**\n * _recentRequest\n * @private\n */\nconst _recentRequest = () => ({ type: RECENT, })\n\n/**\n * _recentResponse\n * @param response\n * @private\n */\nconst _recentResponse = (response) => ({ type: RECENT, response, })\n\n/**\n * recent\n * Gets recent searches from API for a given user\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @returns {Function}\n */\nexport function recent() {\n return (dispatch, getState) => {\n dispatch(_recentRequest())\n axios.get(`${config.api.baseUrl}/searches?user_id=${getState().User.id}`, {\n headers: {\n Authorization: `Bearer ${localStorage.getItem('jwt')}`\n },\n })\n .then(res => {\n dispatch(_recentResponse(res.data))\n })\n }\n}\n\n/**\n * RESULTS\n * @type {string}\n */\nexport const RESULTS = 'SEARCH_RESULTS'\n\n/**\n * _searchResultsRequest\n * @private\n */\nconst _searchResultsRequest = () => ({ type: RESULTS, })\n\n/**\n * _searchResultsResponse\n * @param response\n * @private\n */\nconst _searchResultsResponse = (response) => ({ type: RESULTS, response, })\n\n/**\n * results\n * Gets uploads from API based on Algolia Search response\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param type {string}\n * @param query {string}\n * @returns {Function}\n */\nexport function results(type, query) {\n return dispatch => {\n dispatch(_searchResultsRequest())\n axios(`${config.api.baseUrl}/uploads?type=${type}&query=${encodeURIComponent(query)}`, {\n headers: {\n Authorization: `Bearer ${localStorage.getItem('jwt')}`\n },\n })\n .then(res => {\n dispatch(_searchResultsResponse(res.data))\n })\n }\n}\n" + }, + { + "__docId__": 101, + "kind": "variable", + "static": true, + "variation": null, + "name": "algolia", + "memberof": "modules/actions/Search.js", + "longname": "modules/actions/Search.js~algolia", + "access": null, + "export": false, + "importPath": "react/modules/actions/Search.js", + "importStyle": null, + "description": null, + "lineNumber": 5, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 102, + "kind": "variable", + "static": true, + "variation": null, + "name": "SEARCH", + "memberof": "modules/actions/Search.js", + "longname": "modules/actions/Search.js~SEARCH", + "access": null, + "export": true, + "importPath": "react/modules/actions/Search.js", + "importStyle": "{SEARCH}", + "description": "SEARCH", + "lineNumber": 12, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 103, + "kind": "variable", + "static": true, + "variation": null, + "name": "_searchRequest", + "memberof": "modules/actions/Search.js", + "longname": "modules/actions/Search.js~_searchRequest", + "access": "private", + "export": false, + "importPath": "react/modules/actions/Search.js", + "importStyle": null, + "description": "_searchRequest", + "lineNumber": 19, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "term", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 104, + "kind": "variable", + "static": true, + "variation": null, + "name": "_searchResponse", + "memberof": "modules/actions/Search.js", + "longname": "modules/actions/Search.js~_searchResponse", + "access": "private", + "export": false, + "importPath": "react/modules/actions/Search.js", + "importStyle": null, + "description": "_searchResponse", + "lineNumber": 27, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "term", + "description": "" + }, + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "response", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 105, + "kind": "function", + "static": true, + "variation": null, + "name": "search", + "memberof": "modules/actions/Search.js", + "longname": "modules/actions/Search.js~search", + "access": null, + "export": true, + "importPath": "react/modules/actions/Search.js", + "importStyle": "{search}", + "description": "search\nMake a search request to algolia based on term (string) and type\nRedux Action\nReference: http://redux.js.org/docs/basics/Actions.html", + "lineNumber": 38, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Function}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "term", + "description": "{string} search term" + }, + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "type", + "description": "{string} type of search ('all', 'hashtags', 'location')" + } + ], + "return": { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "__docId__": 106, + "kind": "variable", + "static": true, + "variation": null, + "name": "TRIGGER", + "memberof": "modules/actions/Search.js", + "longname": "modules/actions/Search.js~TRIGGER", + "access": null, + "export": true, + "importPath": "react/modules/actions/Search.js", + "importStyle": "{TRIGGER}", + "description": "TRIGGER", + "lineNumber": 85, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 107, + "kind": "variable", + "static": true, + "variation": null, + "name": "_triggerRequest", + "memberof": "modules/actions/Search.js", + "longname": "modules/actions/Search.js~_triggerRequest", + "access": "private", + "export": false, + "importPath": "react/modules/actions/Search.js", + "importStyle": null, + "description": "_triggerRequest", + "lineNumber": 92, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "search", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 108, + "kind": "variable", + "static": true, + "variation": null, + "name": "_triggerResponse", + "memberof": "modules/actions/Search.js", + "longname": "modules/actions/Search.js~_triggerResponse", + "access": "private", + "export": false, + "importPath": "react/modules/actions/Search.js", + "importStyle": null, + "description": "_triggerResponse", + "lineNumber": 100, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "search", + "description": "" + }, + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "response", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 109, + "kind": "function", + "static": true, + "variation": null, + "name": "trigger", + "memberof": "modules/actions/Search.js", + "longname": "modules/actions/Search.js~trigger", + "access": null, + "export": true, + "importPath": "react/modules/actions/Search.js", + "importStyle": "{trigger}", + "description": "trigger\nTriggers search, and posts search data to API\nRedux Action\nReference: http://redux.js.org/docs/basics/Actions.html", + "lineNumber": 110, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Function}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "search", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "__docId__": 110, + "kind": "variable", + "static": true, + "variation": null, + "name": "RECENT", + "memberof": "modules/actions/Search.js", + "longname": "modules/actions/Search.js~RECENT", + "access": null, + "export": true, + "importPath": "react/modules/actions/Search.js", + "importStyle": "{RECENT}", + "description": "RECENT", + "lineNumber": 131, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 111, + "kind": "variable", + "static": true, + "variation": null, + "name": "_recentRequest", + "memberof": "modules/actions/Search.js", + "longname": "modules/actions/Search.js~_recentRequest", + "access": "private", + "export": false, + "importPath": "react/modules/actions/Search.js", + "importStyle": null, + "description": "_recentRequest", + "lineNumber": 137, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 112, + "kind": "variable", + "static": true, + "variation": null, + "name": "_recentResponse", + "memberof": "modules/actions/Search.js", + "longname": "modules/actions/Search.js~_recentResponse", + "access": "private", + "export": false, + "importPath": "react/modules/actions/Search.js", + "importStyle": null, + "description": "_recentResponse", + "lineNumber": 144, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "response", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 113, + "kind": "function", + "static": true, + "variation": null, + "name": "recent", + "memberof": "modules/actions/Search.js", + "longname": "modules/actions/Search.js~recent", + "access": null, + "export": true, + "importPath": "react/modules/actions/Search.js", + "importStyle": "{recent}", + "description": "recent\nGets recent searches from API for a given user\nRedux Action\nReference: http://redux.js.org/docs/basics/Actions.html", + "lineNumber": 153, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Function}" + } + ], + "params": [], + "return": { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "__docId__": 114, + "kind": "variable", + "static": true, + "variation": null, + "name": "RESULTS", + "memberof": "modules/actions/Search.js", + "longname": "modules/actions/Search.js~RESULTS", + "access": null, + "export": true, + "importPath": "react/modules/actions/Search.js", + "importStyle": "{RESULTS}", + "description": "RESULTS", + "lineNumber": 171, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 115, + "kind": "variable", + "static": true, + "variation": null, + "name": "_searchResultsRequest", + "memberof": "modules/actions/Search.js", + "longname": "modules/actions/Search.js~_searchResultsRequest", + "access": "private", + "export": false, + "importPath": "react/modules/actions/Search.js", + "importStyle": null, + "description": "_searchResultsRequest", + "lineNumber": 177, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 116, + "kind": "variable", + "static": true, + "variation": null, + "name": "_searchResultsResponse", + "memberof": "modules/actions/Search.js", + "longname": "modules/actions/Search.js~_searchResultsResponse", + "access": "private", + "export": false, + "importPath": "react/modules/actions/Search.js", + "importStyle": null, + "description": "_searchResultsResponse", + "lineNumber": 184, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "response", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 117, + "kind": "function", + "static": true, + "variation": null, + "name": "results", + "memberof": "modules/actions/Search.js", + "longname": "modules/actions/Search.js~results", + "access": null, + "export": true, + "importPath": "react/modules/actions/Search.js", + "importStyle": "{results}", + "description": "results\nGets uploads from API based on Algolia Search response\nRedux Action\nReference: http://redux.js.org/docs/basics/Actions.html", + "lineNumber": 195, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Function}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "type", + "description": "{string}" + }, + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "query", + "description": "{string}" + } + ], + "return": { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "__docId__": 118, + "kind": "file", + "static": true, + "variation": null, + "name": "modules/actions/Stats.js", + "memberof": null, + "longname": "modules/actions/Stats.js", + "access": null, + "description": null, + "lineNumber": 1, + "content": "import config from 'config'\nimport * as axios from 'axios'\n\n/**\n * LOAD\n * @type {string}\n */\nexport const LOAD = 'STATS_LOAD'\n\n/**\n * _loadRequest\n * @param userId\n * @private\n */\nexport const _loadRequest = (userId) => ({ type: LOAD, userId, })\n\n/**\n * _loadResponse\n * @param userId\n * @param response\n * @private\n */\nexport const _loadResponse = (userId, response) => ({ type: LOAD, userId, response, })\n\n/**\n * load\n * Gets user stats from API, and performs Keen analytics functions\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param userId user id\n * @returns {Function}\n */\nexport function load(userId) {\n return (dispatch, getState) => {\n\n dispatch(_loadRequest(userId))\n\n axios.get(`${config.api.baseUrl}/stats/${userId}`, {\n headers: {\n Authorization: `Bearer ${localStorage.getItem('jwt')}`\n },\n })\n .then(res => {\n dispatch(_loadResponse(userId, res.data))\n })\n\n Keen.ready(function() {\n\n let itemViewsQuery = new Keen.Query(\"count\", {\n event_collection: 'views',\n timeframe: 'this_30_days',\n filters: [{\n \"property_name\": 'postAuthorId',\n \"operator\": 'eq',\n \"property_value\": userId\n }, {\n \"property_name\": 'type',\n \"operator\": 'eq',\n \"property_value\": 'item'\n }]\n })\n\n keenClient.run(itemViewsQuery, function(err, res) {\n\n if (err) {\n console.log(err)\n return\n }\n\n dispatch(_loadResponse(userId, {\n 'itemViews': res.result\n }))\n\n })\n\n let profileViewsQuery = new Keen.Query(\"count\", {\n event_collection: 'views',\n timeframe: 'this_30_days',\n filters: [{\n property_name: 'profileUser',\n operator: 'eq',\n property_value: userId\n }, {\n property_name: 'type',\n operator: 'eq',\n property_value: 'user'\n }]\n })\n\n keenClient.run(profileViewsQuery, function(err, res) {\n\n if (err) {\n console.log(err)\n return\n }\n\n dispatch(_loadResponse(userId, {\n profileViews: res.result\n }))\n\n })\n\n let geoViewsQuery = new Keen.Query(\"count\", {\n event_collection: 'views',\n timeframe: 'this_30_days',\n filters: [{\n property_name: 'postAuthorId',\n operator: 'eq',\n property_value: 1\n }, {\n property_name: 'type',\n operator: 'eq',\n property_value: 'item'\n }, {\n property_name: 'ip_geo_info.city',\n operator: 'ne',\n property_value: null\n }],\n group_by: ['ip_geo_info.city', 'ip_geo_info.province', 'ip_geo_info.country'],\n })\n\n keenClient.run(geoViewsQuery, function(err, res) {\n if (err) {\n console.log(err)\n return\n }\n dispatch(_loadResponse(userId, {\n 'geoViews': res.result\n }))\n })\n\n let newFollowersQuery = new Keen.Query('sum', {\n event_collection: \"follow\",\n timeframe: \"this_30_days\",\n filters: [{\n property_name: 'targetId',\n operator: 'eq',\n property_value: userId\n }],\n target_property: 'directionInt'\n })\n\n keenClient.run(newFollowersQuery, function(err, res) {\n\n if (err) {\n console.log(err)\n return\n }\n\n dispatch(_loadResponse(userId, {\n\n 'newFollowers': res\n }))\n\n })\n\n })\n }\n}\n" + }, + { + "__docId__": 119, + "kind": "variable", + "static": true, + "variation": null, + "name": "LOAD", + "memberof": "modules/actions/Stats.js", + "longname": "modules/actions/Stats.js~LOAD", + "access": null, + "export": true, + "importPath": "react/modules/actions/Stats.js", + "importStyle": "{LOAD}", + "description": "LOAD", + "lineNumber": 8, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 120, + "kind": "variable", + "static": true, + "variation": null, + "name": "_loadRequest", + "memberof": "modules/actions/Stats.js", + "longname": "modules/actions/Stats.js~_loadRequest", + "access": "private", + "export": true, + "importPath": "react/modules/actions/Stats.js", + "importStyle": "{_loadRequest}", + "description": "_loadRequest", + "lineNumber": 15, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "userId", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 121, + "kind": "variable", + "static": true, + "variation": null, + "name": "_loadResponse", + "memberof": "modules/actions/Stats.js", + "longname": "modules/actions/Stats.js~_loadResponse", + "access": "private", + "export": true, + "importPath": "react/modules/actions/Stats.js", + "importStyle": "{_loadResponse}", + "description": "_loadResponse", + "lineNumber": 23, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "userId", + "description": "" + }, + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "response", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 122, + "kind": "function", + "static": true, + "variation": null, + "name": "load", + "memberof": "modules/actions/Stats.js", + "longname": "modules/actions/Stats.js~load", + "access": null, + "export": true, + "importPath": "react/modules/actions/Stats.js", + "importStyle": "{load}", + "description": "load\nGets user stats from API, and performs Keen analytics functions\nRedux Action\nReference: http://redux.js.org/docs/basics/Actions.html", + "lineNumber": 33, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Function}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "userId", + "description": "user id" + } + ], + "return": { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "__docId__": 123, + "kind": "file", + "static": true, + "variation": null, + "name": "modules/actions/Trending.js", + "memberof": null, + "longname": "modules/actions/Trending.js", + "access": null, + "description": null, + "lineNumber": 1, + "content": "import * as axios from 'axios'\nimport config from 'config'\n\n/**\n * LOAD\n * @type {string}\n */\nexport const LOAD = 'TRENDING_LOAD'\n\n/**\n * _loadRequest\n * @private\n */\nconst _loadRequest = () => ({ type: LOAD, })\n\n/**\n * _loadResponse\n * @param response\n * @private\n */\nconst _loadResponse = (response) => ({ type: LOAD, response, })\n\n/**\n * trending\n * Gets 'trending' data from API\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @returns {Function}\n */\nexport function load() {\n return (dispatch, getState) => {\n _loadRequest()\n const user = getState().User\n axios.get(`${config.api.baseUrl}/trending?user_id=${user.id}`, {\n headers: {\n Authorization: `Bearer ${localStorage.getItem('jwt')}`\n },\n })\n .then(res => {\n dispatch(_loadResponse(response.data))\n })\n }\n}\n" + }, + { + "__docId__": 124, + "kind": "variable", + "static": true, + "variation": null, + "name": "LOAD", + "memberof": "modules/actions/Trending.js", + "longname": "modules/actions/Trending.js~LOAD", + "access": null, + "export": true, + "importPath": "react/modules/actions/Trending.js", + "importStyle": "{LOAD}", + "description": "LOAD", + "lineNumber": 8, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 125, + "kind": "variable", + "static": true, + "variation": null, + "name": "_loadRequest", + "memberof": "modules/actions/Trending.js", + "longname": "modules/actions/Trending.js~_loadRequest", + "access": "private", + "export": false, + "importPath": "react/modules/actions/Trending.js", + "importStyle": null, + "description": "_loadRequest", + "lineNumber": 14, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 126, + "kind": "variable", + "static": true, + "variation": null, + "name": "_loadResponse", + "memberof": "modules/actions/Trending.js", + "longname": "modules/actions/Trending.js~_loadResponse", + "access": "private", + "export": false, + "importPath": "react/modules/actions/Trending.js", + "importStyle": null, + "description": "_loadResponse", + "lineNumber": 21, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "response", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 127, + "kind": "function", + "static": true, + "variation": null, + "name": "load", + "memberof": "modules/actions/Trending.js", + "longname": "modules/actions/Trending.js~load", + "access": null, + "export": true, + "importPath": "react/modules/actions/Trending.js", + "importStyle": "{load}", + "description": "trending\nGets 'trending' data from API\nRedux Action\nReference: http://redux.js.org/docs/basics/Actions.html", + "lineNumber": 30, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Function}" + } + ], + "params": [], + "return": { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "__docId__": 128, + "kind": "file", + "static": true, + "variation": null, + "name": "modules/actions/User.js", + "memberof": null, + "longname": "modules/actions/User.js", + "access": null, + "description": null, + "lineNumber": 1, + "content": "import * as axios from 'axios'\nimport config from 'config'\n\n/**\n * FB_LOGIN\n * @type {string}\n */\nexport const FB_LOGIN = 'USER_FB_LOGIN'\n\n/**\n * _fbLoginInitial\n * @param initial\n * @private\n */\nconst _fbLoginInitial = (initial) => ({ type: FB_LOGIN, initial, })\n\n/**\n * fbLogin\n * Performs Facebook login, and on success posts return data to API\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @param response {Object}\n * @returns {Function}\n */\nexport function fbLogin(response) {\n return dispatch => {\n FB.api('/me', 'GET', {\n fields: 'id,name,email'\n }, function(me) {\n let name = me.name.split(' ')\n axios.post(`${config.api.baseUrl}/users`, {\n fb_uid : me.id,\n first_name : name[0],\n last_name : name[1],\n email : me.email,\n })\n .then(function(res) {\n localStorage.setItem('jwt', res.data.jwt);\n dispatch(_fbLoginInitial(res.data))\n })\n .catch(function (res) {\n dispatch(_fbLoginInitial(res.data))\n })\n })\n }\n}\n\n/**\n * LOGOUT\n * @type {string}\n */\nexport const LOGOUT = 'USER_LOGOUT'\n\n/**\n * _logoutRequest\n * @private\n */\nexport const _logoutRequest = () => ({ type: LOGOUT, })\n\n/**\n * _logoutResponse\n * @param response\n * @private\n */\nexport const _logoutResponse = (response) => ({ type: LOGOUT, response, })\n\n/**\n * logout\n * Performs Facebook logout for a given user\n * Redux Action\n * Reference: http://redux.js.org/docs/basics/Actions.html\n * @returns {Function}\n */\nexport function logout() {\n return dispatch => {\n dispatch(_logoutRequest())\n FB.logout(response => {\n dispatch(_logoutResponse(response))\n })\n }\n}\n\n/**\n * FOLLOW\n * @type {string}\n */\nexport const FOLLOW = 'USER_FOLLOW'\n\n/**\n * follow\n * @param user\n * @returns {{type: string, user: *}}\n */\nexport function follow(user) {\n return {\n type: FOLLOW,\n user,\n }\n}\n" + }, + { + "__docId__": 129, + "kind": "variable", + "static": true, + "variation": null, + "name": "FB_LOGIN", + "memberof": "modules/actions/User.js", + "longname": "modules/actions/User.js~FB_LOGIN", + "access": null, + "export": true, + "importPath": "react/modules/actions/User.js", + "importStyle": "{FB_LOGIN}", + "description": "FB_LOGIN", + "lineNumber": 8, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 130, + "kind": "variable", + "static": true, + "variation": null, + "name": "_fbLoginInitial", + "memberof": "modules/actions/User.js", + "longname": "modules/actions/User.js~_fbLoginInitial", + "access": "private", + "export": false, + "importPath": "react/modules/actions/User.js", + "importStyle": null, + "description": "_fbLoginInitial", + "lineNumber": 15, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "initial", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 131, + "kind": "function", + "static": true, + "variation": null, + "name": "fbLogin", + "memberof": "modules/actions/User.js", + "longname": "modules/actions/User.js~fbLogin", + "access": null, + "export": true, + "importPath": "react/modules/actions/User.js", + "importStyle": "{fbLogin}", + "description": "fbLogin\nPerforms Facebook login, and on success posts return data to API\nRedux Action\nReference: http://redux.js.org/docs/basics/Actions.html", + "lineNumber": 25, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Function}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "response", + "description": "{Object}" + } + ], + "return": { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "__docId__": 132, + "kind": "variable", + "static": true, + "variation": null, + "name": "LOGOUT", + "memberof": "modules/actions/User.js", + "longname": "modules/actions/User.js~LOGOUT", + "access": null, + "export": true, + "importPath": "react/modules/actions/User.js", + "importStyle": "{LOGOUT}", + "description": "LOGOUT", + "lineNumber": 52, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 133, + "kind": "variable", + "static": true, + "variation": null, + "name": "_logoutRequest", + "memberof": "modules/actions/User.js", + "longname": "modules/actions/User.js~_logoutRequest", + "access": "private", + "export": true, + "importPath": "react/modules/actions/User.js", + "importStyle": "{_logoutRequest}", + "description": "_logoutRequest", + "lineNumber": 58, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 134, + "kind": "variable", + "static": true, + "variation": null, + "name": "_logoutResponse", + "memberof": "modules/actions/User.js", + "longname": "modules/actions/User.js~_logoutResponse", + "access": "private", + "export": true, + "importPath": "react/modules/actions/User.js", + "importStyle": "{_logoutResponse}", + "description": "_logoutResponse", + "lineNumber": 65, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "response", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 135, + "kind": "function", + "static": true, + "variation": null, + "name": "logout", + "memberof": "modules/actions/User.js", + "longname": "modules/actions/User.js~logout", + "access": null, + "export": true, + "importPath": "react/modules/actions/User.js", + "importStyle": "{logout}", + "description": "logout\nPerforms Facebook logout for a given user\nRedux Action\nReference: http://redux.js.org/docs/basics/Actions.html", + "lineNumber": 74, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Function}" + } + ], + "params": [], + "return": { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "__docId__": 136, + "kind": "variable", + "static": true, + "variation": null, + "name": "FOLLOW", + "memberof": "modules/actions/User.js", + "longname": "modules/actions/User.js~FOLLOW", + "access": null, + "export": true, + "importPath": "react/modules/actions/User.js", + "importStyle": "{FOLLOW}", + "description": "FOLLOW", + "lineNumber": 87, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 137, + "kind": "function", + "static": true, + "variation": null, + "name": "follow", + "memberof": "modules/actions/User.js", + "longname": "modules/actions/User.js~follow", + "access": null, + "export": true, + "importPath": "react/modules/actions/User.js", + "importStyle": "{follow}", + "description": "follow", + "lineNumber": 94, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{{type: string, user: *}}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "user", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "{type: string, user: *}" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "__docId__": 138, + "kind": "file", + "static": true, + "variation": null, + "name": "modules/actions/index.js", + "memberof": null, + "longname": "modules/actions/index.js", + "access": null, + "description": null, + "lineNumber": 1, + "content": "export * as App from './App'\nexport * as User from './User'\nexport * as Activity from './Activity'\nexport * as Photos from './Photos'\nexport * as Comments from './Comments'\nexport * as Like from './Like'\nexport * as Photo from './Photo'\nexport * as Stats from './Stats'\nexport * as Explore from './Explore'\nexport * as Trending from './Trending'\nexport * as Search from './Search'\nexport * as Location from './Location'\nexport * as Profile from './Profile'\nexport * as Header from './Header'\nexport * as Contributions from './Contributions'\n" + }, + { + "__docId__": 139, + "kind": "file", + "static": true, + "variation": null, + "name": "modules/components/Activity/Actor.js", + "memberof": null, + "longname": "modules/components/Activity/Actor.js", + "access": null, + "description": null, + "lineNumber": 1, + "content": "import React, { Component } from 'react'\nimport { Avatar } from 'components'\n\n/**\n * Actor component\n */\nexport default class Actor extends Component {\n\n /**\n * defaultProps\n * @type {{avatar: string, email: string, firstName: string, lastName: string}}\n */\n static defaultProps = {\n avatar: '',\n email: '',\n firstName: '',\n lastName: '',\n }\n\n /**\n * render\n * @returns markup\n */\n render() {\n return (\n
\n
\n \n
\n
{this.props.firstName}
{this.props.lastName.charAt(0) + '.'}
\n
\n )\n }\n}\n" + }, + { + "__docId__": 140, + "kind": "class", + "static": true, + "variation": null, + "name": "Actor", + "memberof": "modules/components/Activity/Actor.js", + "longname": "modules/components/Activity/Actor.js~Actor", + "access": null, + "export": true, + "importPath": "react/modules/components/Activity/Actor.js", + "importStyle": "Actor", + "description": "Actor component", + "lineNumber": 7, + "interface": false, + "extends": [ + "react~Component" + ] + }, + { + "__docId__": 141, + "kind": "method", + "static": false, + "variation": null, + "name": "render", + "memberof": "modules/components/Activity/Actor.js~Actor", + "longname": "modules/components/Activity/Actor.js~Actor#render", + "access": null, + "description": "render", + "lineNumber": 24, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "markup" + } + ], + "params": [], + "return": { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "description": "markup" + }, + "generator": false + }, + { + "__docId__": 142, + "kind": "file", + "static": true, + "variation": null, + "name": "modules/components/Activity/Commented.js", + "memberof": null, + "longname": "modules/components/Activity/Commented.js", + "access": null, + "description": null, + "lineNumber": 1, + "content": "import React, { Component } from 'react'\n\nimport Actor from './Actor'\n\n\n/**\n * Commented component\n */\nexport default class Commented extends Component {\n\n /**\n * defaultProps\n * @type {{actor: {}, user: {}, timestamp: null, timeSince: string}}\n */\n static defaultProps = {\n actor: {},\n user: {},\n timestamp: null,\n timeSince: '',\n }\n\n /**\n * render\n * @returns markup\n */\n render() {\n return (\n
\n \"\n

{this.props.text}

\n
\n )\n }\n}\n" + }, + { + "__docId__": 143, + "kind": "class", + "static": true, + "variation": null, + "name": "Commented", + "memberof": "modules/components/Activity/Commented.js", + "longname": "modules/components/Activity/Commented.js~Commented", + "access": null, + "export": true, + "importPath": "react/modules/components/Activity/Commented.js", + "importStyle": "Commented", + "description": "Commented component", + "lineNumber": 9, + "interface": false, + "extends": [ + "react~Component" + ] + }, + { + "__docId__": 144, + "kind": "method", + "static": false, + "variation": null, + "name": "render", + "memberof": "modules/components/Activity/Commented.js~Commented", + "longname": "modules/components/Activity/Commented.js~Commented#render", + "access": null, + "description": "render", + "lineNumber": 26, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "markup" + } + ], + "params": [], + "return": { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "description": "markup" + }, + "generator": false + }, + { + "__docId__": 145, + "kind": "file", + "static": true, + "variation": null, + "name": "modules/components/Activity/Following.js", + "memberof": null, + "longname": "modules/components/Activity/Following.js", + "access": null, + "description": null, + "lineNumber": 1, + "content": "import React, { Component } from 'react'\n\nimport Actor from './Actor'\n\n/**\n * Following component\n */\nexport default class Following extends Component {\n\n /**\n *\n * @type {{actor: {}, user: {}, timestamp: null, timeSince: string, following: boolean, onFollowBack: Following.defaultProps.onFollowBack, onUnfollow: Following.defaultProps.onUnfollow}}\n */\n static defaultProps = {\n actor: {},\n user: {},\n timestamp: null,\n timeSince: '',\n following: false,\n\n onFollowBack: () => {\n },\n onUnfollow: () => {\n },\n }\n\n /**\n * handleFollowBack\n * @param e\n */\n handleFollowBack = (e) => {\n e.preventDefault()\n\n this.props.onFollowBack(e, this.props.actor)\n }\n\n /**\n * handleUnfollow\n * @param e\n */\n handleUnfollow = (e) => {\n e.preventDefault()\n\n this.props.onUnfollow(e, this.props.actor)\n }\n\n /**\n * renderFollowButton\n * @returns markup\n */\n renderFollowButton = () => {\n\n if (this.props.following) {\n return (\n
\n \n
\n )\n }\n\n return (\n
\n \n
\n )\n\n }\n\n /**\n * render\n * @returns markup\n */\n render() {\n return (\n
\n \n {this.renderFollowButton()}\n
\n \n
\n
\n

Followed, {this.props.timeSince}

\n
\n
\n \n
\n \n
\n
\n
\n )\n }\n}\n" + }, + { + "__docId__": 146, + "kind": "class", + "static": true, + "variation": null, + "name": "Following", + "memberof": "modules/components/Activity/Following.js", + "longname": "modules/components/Activity/Following.js~Following", + "access": null, + "export": true, + "importPath": "react/modules/components/Activity/Following.js", + "importStyle": "Following", + "description": "Following component", + "lineNumber": 8, + "interface": false, + "extends": [ + "react~Component" + ] + }, + { + "__docId__": 147, + "kind": "method", + "static": false, + "variation": null, + "name": "render", + "memberof": "modules/components/Activity/Following.js~Following", + "longname": "modules/components/Activity/Following.js~Following#render", + "access": null, + "description": "render", + "lineNumber": 73, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "markup" + } + ], + "params": [], + "return": { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "description": "markup" + }, + "generator": false + }, + { + "__docId__": 148, + "kind": "file", + "static": true, + "variation": null, + "name": "modules/components/Activity/Liked.js", + "memberof": null, + "longname": "modules/components/Activity/Liked.js", + "access": null, + "description": null, + "lineNumber": 1, + "content": "import React, { Component } from 'react'\nimport { Link } from 'react-router'\nimport config from 'config'\n\nimport Actor from './Actor'\n\nconst Picture = props => (\n
\n \n \n \n
\n)\n\n/**\n * Liked component\n */\nexport default class Liked extends Component {\n\n /**\n * defaultProps\n * @type {{pictures: Array}}\n */\n static defaultProps = {\n pictures: [],\n }\n\n /**\n * renderMessage\n * @returns {*}\n */\n renderMessage = () => {\n if (this.props.pictures.length === 1) return 'Liked your picture'\n return 'Liked your pictures'\n }\n\n /**\n * render\n * @returns markup\n */\n render() {\n return (\n
\n \n
\n \n
\n
\n

{this.renderMessage()}, {this.props.timeSince}

\n
\n
\n
\n
\n {this.props.pictures.map((p, i) => )}\n
\n
\n
\n )\n }\n}\n" + }, + { + "__docId__": 149, + "kind": "variable", + "static": true, + "variation": null, + "name": "Picture", + "memberof": "modules/components/Activity/Liked.js", + "longname": "modules/components/Activity/Liked.js~Picture", + "access": null, + "export": false, + "importPath": "react/modules/components/Activity/Liked.js", + "importStyle": null, + "description": null, + "lineNumber": 7, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 150, + "kind": "class", + "static": true, + "variation": null, + "name": "Liked", + "memberof": "modules/components/Activity/Liked.js", + "longname": "modules/components/Activity/Liked.js~Liked", + "access": null, + "export": true, + "importPath": "react/modules/components/Activity/Liked.js", + "importStyle": "Liked", + "description": "Liked component", + "lineNumber": 18, + "interface": false, + "extends": [ + "react~Component" + ] + }, + { + "__docId__": 151, + "kind": "method", + "static": false, + "variation": null, + "name": "render", + "memberof": "modules/components/Activity/Liked.js~Liked", + "longname": "modules/components/Activity/Liked.js~Liked#render", + "access": null, + "description": "render", + "lineNumber": 41, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "markup" + } + ], + "params": [], + "return": { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "description": "markup" + }, + "generator": false + }, + { + "__docId__": 152, + "kind": "file", + "static": true, + "variation": null, + "name": "modules/components/Activity/index.js", + "memberof": null, + "longname": "modules/components/Activity/index.js", + "access": null, + "description": null, + "lineNumber": 1, + "content": "import React, { Component, cloneElement } from 'react'\n\nexport Actor from './Actor'\nexport Following from './Following'\nexport Liked from './Liked'\nexport Commented from './Commented'\n\nimport moment from 'moment'\n\n/**\n * Activity index component\n */\nexport class Item extends Component {\n\n /**\n * defaultProps\n * @type {{type: null, timestamp: null, actor: {}}}\n */\n static defaultProps = {\n type: null,\n timestamp: null,\n actor: {},\n }\n\n /**\n * render\n * @returns markup\n */\n render() {\n return (\n
  • \n {cloneElement(this.props.children, {\n timestamp: this.props.timestamp,\n actor: this.props.actor,\n timeSince: moment(this.props.timestamp).fromNow(),\n })}\n
  • \n )\n }\n}\n" + }, + { + "__docId__": 153, + "kind": "class", + "static": true, + "variation": null, + "name": "Item", + "memberof": "modules/components/Activity/index.js", + "longname": "modules/components/Activity/index.js~Item", + "access": null, + "export": true, + "importPath": "react/modules/components/Activity/index.js", + "importStyle": "{Item}", + "description": "Activity index component", + "lineNumber": 13, + "interface": false, + "extends": [ + "react~Component" + ] + }, + { + "__docId__": 154, + "kind": "method", + "static": false, + "variation": null, + "name": "render", + "memberof": "modules/components/Activity/index.js~Item", + "longname": "modules/components/Activity/index.js~Item#render", + "access": null, + "description": "render", + "lineNumber": 29, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "markup" + } + ], + "params": [], + "return": { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "description": "markup" + }, + "generator": false + }, + { + "__docId__": 155, + "kind": "file", + "static": true, + "variation": null, + "name": "modules/components/Avatar/index.js", + "memberof": null, + "longname": "modules/components/Avatar/index.js", + "access": null, + "description": null, + "lineNumber": 1, + "content": "import React, { Component } from 'react'\n\nimport md5 from 'md5'\n\nconst styles = {\n root: {\n backgroundColor: '#fafafa',\n display: 'inline-block',\n }\n}\n\n/**\n * Avatar index component\n */\nclass Avatar extends Component {\n\n /**\n * defaultProps\n * @type {{email: null, height: number, imgHeight: number}}\n */\n static defaultProps = {\n email: null,\n height: 155,\n imgHeight: 400,\n }\n\n /**\n * render\n * @returns markup\n */\n render() {\n const placeHolder = Object.assign({}, styles.root, {\n height: this.props.height,\n width: this.props.height,\n })\n\n if (!this.props.email) return
    \n\n return \n }\n}\n\nexport default Avatar\n" + }, + { + "__docId__": 156, + "kind": "variable", + "static": true, + "variation": null, + "name": "styles", + "memberof": "modules/components/Avatar/index.js", + "longname": "modules/components/Avatar/index.js~styles", + "access": null, + "export": false, + "importPath": "react/modules/components/Avatar/index.js", + "importStyle": null, + "description": null, + "lineNumber": 5, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 157, + "kind": "class", + "static": true, + "variation": null, + "name": "Avatar", + "memberof": "modules/components/Avatar/index.js", + "longname": "modules/components/Avatar/index.js~Avatar", + "access": null, + "export": true, + "importPath": "react/modules/components/Avatar/index.js", + "importStyle": "Avatar", + "description": "Avatar index component", + "lineNumber": 15, + "interface": false, + "extends": [ + "react~Component" + ] + }, + { + "__docId__": 158, + "kind": "method", + "static": false, + "variation": null, + "name": "render", + "memberof": "modules/components/Avatar/index.js~Avatar", + "longname": "modules/components/Avatar/index.js~Avatar#render", + "access": null, + "description": "render", + "lineNumber": 31, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "markup" + } + ], + "params": [], + "return": { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "description": "markup" + }, + "generator": false + }, + { + "__docId__": 159, + "kind": "file", + "static": true, + "variation": null, + "name": "modules/components/BackButton/index.js", + "memberof": null, + "longname": "modules/components/BackButton/index.js", + "access": null, + "description": null, + "lineNumber": 1, + "content": "import React, { Component } from 'react'\nimport { Link } from 'react-router'\n\n\n/**\n * BackButton index component\n */\nclass BackButton extends Component {\n\n /**\n * defaultProps\n * @type {{to: string, icon: XML, label: string}}\n */\n static defaultProps = {\n to: '/',\n icon: ,\n label: 'Back',\n }\n\n /**\n * render\n * @returns markup\n */\n render() {\n\n const content = {this.props.icon}{this.props.label}\n\n if (typeof this.props.to == 'string') {\n return (\n {content}\n )\n }\n\n return {content}\n\n }\n\n}\n\nexport default BackButton\n" + }, + { + "__docId__": 160, + "kind": "class", + "static": true, + "variation": null, + "name": "BackButton", + "memberof": "modules/components/BackButton/index.js", + "longname": "modules/components/BackButton/index.js~BackButton", + "access": null, + "export": true, + "importPath": "react/modules/components/BackButton/index.js", + "importStyle": "BackButton", + "description": "BackButton index component", + "lineNumber": 8, + "interface": false, + "extends": [ + "react~Component" + ] + }, + { + "__docId__": 161, + "kind": "method", + "static": false, + "variation": null, + "name": "render", + "memberof": "modules/components/BackButton/index.js~BackButton", + "longname": "modules/components/BackButton/index.js~BackButton#render", + "access": null, + "description": "render", + "lineNumber": 24, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "markup" + } + ], + "params": [], + "return": { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "description": "markup" + }, + "generator": false + }, + { + "__docId__": 162, + "kind": "file", + "static": true, + "variation": null, + "name": "modules/components/Comment/index.js", + "memberof": null, + "longname": "modules/components/Comment/index.js", + "access": null, + "description": null, + "lineNumber": 1, + "content": "import React, { Component } from 'react'\nimport TimeAgo from '../TimeAgo'\n\n/**\n * Comment index component\n */\nclass Comment extends Component {\n\n /**\n *\n * @returns markup\n */\n render() {\n return (\n
    \n
    \n {this.props.firstName} {this.props.lastName.charAt(0) + '.'}\n
    \n
    \n \n
    \n
    \n {this.props.comment}\n
    \n
    \n )\n }\n\n}\n\nexport default Comment\n" + }, + { + "__docId__": 163, + "kind": "class", + "static": true, + "variation": null, + "name": "Comment", + "memberof": "modules/components/Comment/index.js", + "longname": "modules/components/Comment/index.js~Comment", + "access": null, + "export": true, + "importPath": "react/modules/components/Comment/index.js", + "importStyle": "Comment", + "description": "Comment index component", + "lineNumber": 7, + "interface": false, + "extends": [ + "react~Component" + ] + }, + { + "__docId__": 164, + "kind": "method", + "static": false, + "variation": null, + "name": "render", + "memberof": "modules/components/Comment/index.js~Comment", + "longname": "modules/components/Comment/index.js~Comment#render", + "access": null, + "description": "", + "lineNumber": 13, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "markup" + } + ], + "params": [], + "return": { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "description": "markup" + }, + "generator": false + }, + { + "__docId__": 165, + "kind": "file", + "static": true, + "variation": null, + "name": "modules/components/Header/index.js", + "memberof": null, + "longname": "modules/components/Header/index.js", + "access": null, + "description": null, + "lineNumber": 1, + "content": "import React, {Component} from 'react'\nimport { Link } from 'react-router'\n\nimport Nav from '../../components/Nav'\n\n/**\n * Left component\n */\nclass Left extends Component {\n\n /**\n * render\n * @returns markup\n */\n render() {\n return (\n
    \n \n \n \n
    \n )\n }\n\n}\n\n/**\n * Right component\n */\nclass Right extends Component {\n\n /**\n * render\n * @returns markup\n */\n render() {\n return (\n
    \n \n \n \n
    \n )\n }\n\n}\n\n/**\n * Header index component\n */\nclass Header extends Component {\n\n /**\n * defaultProps\n * @type {{userID: null, left: markup, middle: markup}}\n */\n static defaultProps = {\n userID: null,\n\n left: ,\n middle: