From 9e492cf6a8a93d1415b006e2098f22d8bb12ebec Mon Sep 17 00:00:00 2001 From: ftshen Date: Tue, 18 Dec 2018 12:51:16 +0800 Subject: [PATCH] week14 --- homeworks/week13/hw1/my-app/src/blog/Blog.js | 2 +- homeworks/week14/hw1/README.md | 44 + .../week14/hw1/build/asset-manifest.json | 15 + homeworks/week14/hw1/build/favicon.ico | Bin 0 -> 3870 bytes homeworks/week14/hw1/build/index.html | 1 + homeworks/week14/hw1/build/manifest.json | 15 + ...nifest.434cbbeaedb799ab95a5f5982a558b19.js | 26 + homeworks/week14/hw1/build/service-worker.js | 34 + .../hw1/build/static/css/1.9c31a92a.chunk.css | 2 + .../build/static/css/1.9c31a92a.chunk.css.map | 1 + .../build/static/css/main.1d8bcfde.chunk.css | 2 + .../static/css/main.1d8bcfde.chunk.css.map | 1 + .../hw1/build/static/js/1.7674abea.chunk.js | 2 + .../build/static/js/1.7674abea.chunk.js.map | 1 + .../build/static/js/main.1058732d.chunk.js | 2 + .../static/js/main.1058732d.chunk.js.map | 1 + .../build/static/js/runtime~main.229c360f.js | 2 + .../static/js/runtime~main.229c360f.js.map | 1 + homeworks/week14/hw1/package.json | 36 + homeworks/week14/hw1/public/favicon.ico | Bin 0 -> 3870 bytes homeworks/week14/hw1/public/index.html | 40 + homeworks/week14/hw1/public/manifest.json | 15 + homeworks/week14/hw1/src/App.css | 1 + homeworks/week14/hw1/src/App.js | 32 + homeworks/week14/hw1/src/App.styl | 67 + homeworks/week14/hw1/src/App.test.js | 9 + homeworks/week14/hw1/src/AppContainer.js | 8 + homeworks/week14/hw1/src/actionCreators.js | 77 + homeworks/week14/hw1/src/actionTypes.js | 8 + homeworks/week14/hw1/src/article/Article.css | 1 + homeworks/week14/hw1/src/article/Article.js | 90 + homeworks/week14/hw1/src/article/Article.styl | 30 + .../hw1/src/article/ArticleContainer.js | 16 + homeworks/week14/hw1/src/article/index.js | 2 + homeworks/week14/hw1/src/blog/Blog.css | 1 + homeworks/week14/hw1/src/blog/Blog.js | 68 + homeworks/week14/hw1/src/blog/Blog.styl | 28 + .../week14/hw1/src/blog/BlogContainer.js | 13 + homeworks/week14/hw1/src/blog/index.js | 2 + homeworks/week14/hw1/src/blog/post/Post.css | 1 + homeworks/week14/hw1/src/blog/post/Post.js | 62 + homeworks/week14/hw1/src/blog/post/Post.styl | 11 + .../week14/hw1/src/blog/post/PostContainer.js | 13 + homeworks/week14/hw1/src/blog/post/index.js | 2 + homeworks/week14/hw1/src/contact/Contact.css | 1 + homeworks/week14/hw1/src/contact/Contact.js | 17 + homeworks/week14/hw1/src/contact/Contact.styl | 34 + homeworks/week14/hw1/src/contact/index.js | 2 + homeworks/week14/hw1/src/feature/Feature.css | 1 + homeworks/week14/hw1/src/feature/Feature.js | 33 + homeworks/week14/hw1/src/feature/Feature.styl | 54 + .../hw1/src/feature/FeatureContainer.js | 9 + homeworks/week14/hw1/src/feature/index.js | 2 + homeworks/week14/hw1/src/footer/Footer.css | 1 + homeworks/week14/hw1/src/footer/Footer.js | 10 + homeworks/week14/hw1/src/footer/Footer.styl | 7 + homeworks/week14/hw1/src/footer/index.js | 2 + homeworks/week14/hw1/src/gulpfile.js | 16 + homeworks/week14/hw1/src/header/Header.css | 1 + homeworks/week14/hw1/src/header/Header.js | 17 + homeworks/week14/hw1/src/header/Header.styl | 19 + homeworks/week14/hw1/src/header/index.js | 2 + homeworks/week14/hw1/src/header/nav/Nav.css | 1 + homeworks/week14/hw1/src/header/nav/Nav.js | 58 + homeworks/week14/hw1/src/header/nav/Nav.styl | 43 + .../week14/hw1/src/header/nav/NavContainer.js | 15 + homeworks/week14/hw1/src/header/nav/index.js | 2 + homeworks/week14/hw1/src/index.css | 10 + homeworks/week14/hw1/src/index.js | 23 + homeworks/week14/hw1/src/login/Login.js | 42 + .../hw1/{index.html => src/login/Login.styl} | 0 .../week14/hw1/src/login/LoginContainer.js | 13 + homeworks/week14/hw1/src/login/index.js | 2 + homeworks/week14/hw1/src/logo.svg | 7 + homeworks/week14/hw1/src/reducer.js | 104 + homeworks/week14/hw1/src/serviceWorker.js | 135 + homeworks/week14/hw1/src/store.js | 12 + homeworks/week14/hw1/yarn.lock | 11052 ++++++++++++++++ homeworks/week14/hw2.md | 18 +- 79 files changed, 12548 insertions(+), 2 deletions(-) create mode 100644 homeworks/week14/hw1/README.md create mode 100644 homeworks/week14/hw1/build/asset-manifest.json create mode 100644 homeworks/week14/hw1/build/favicon.ico create mode 100644 homeworks/week14/hw1/build/index.html create mode 100644 homeworks/week14/hw1/build/manifest.json create mode 100644 homeworks/week14/hw1/build/precache-manifest.434cbbeaedb799ab95a5f5982a558b19.js create mode 100644 homeworks/week14/hw1/build/service-worker.js create mode 100644 homeworks/week14/hw1/build/static/css/1.9c31a92a.chunk.css create mode 100644 homeworks/week14/hw1/build/static/css/1.9c31a92a.chunk.css.map create mode 100644 homeworks/week14/hw1/build/static/css/main.1d8bcfde.chunk.css create mode 100644 homeworks/week14/hw1/build/static/css/main.1d8bcfde.chunk.css.map create mode 100644 homeworks/week14/hw1/build/static/js/1.7674abea.chunk.js create mode 100644 homeworks/week14/hw1/build/static/js/1.7674abea.chunk.js.map create mode 100644 homeworks/week14/hw1/build/static/js/main.1058732d.chunk.js create mode 100644 homeworks/week14/hw1/build/static/js/main.1058732d.chunk.js.map create mode 100644 homeworks/week14/hw1/build/static/js/runtime~main.229c360f.js create mode 100644 homeworks/week14/hw1/build/static/js/runtime~main.229c360f.js.map create mode 100644 homeworks/week14/hw1/package.json create mode 100644 homeworks/week14/hw1/public/favicon.ico create mode 100644 homeworks/week14/hw1/public/index.html create mode 100644 homeworks/week14/hw1/public/manifest.json create mode 100644 homeworks/week14/hw1/src/App.css create mode 100644 homeworks/week14/hw1/src/App.js create mode 100644 homeworks/week14/hw1/src/App.styl create mode 100644 homeworks/week14/hw1/src/App.test.js create mode 100644 homeworks/week14/hw1/src/AppContainer.js create mode 100644 homeworks/week14/hw1/src/actionCreators.js create mode 100644 homeworks/week14/hw1/src/actionTypes.js create mode 100644 homeworks/week14/hw1/src/article/Article.css create mode 100644 homeworks/week14/hw1/src/article/Article.js create mode 100644 homeworks/week14/hw1/src/article/Article.styl create mode 100644 homeworks/week14/hw1/src/article/ArticleContainer.js create mode 100644 homeworks/week14/hw1/src/article/index.js create mode 100644 homeworks/week14/hw1/src/blog/Blog.css create mode 100644 homeworks/week14/hw1/src/blog/Blog.js create mode 100644 homeworks/week14/hw1/src/blog/Blog.styl create mode 100644 homeworks/week14/hw1/src/blog/BlogContainer.js create mode 100644 homeworks/week14/hw1/src/blog/index.js create mode 100644 homeworks/week14/hw1/src/blog/post/Post.css create mode 100644 homeworks/week14/hw1/src/blog/post/Post.js create mode 100644 homeworks/week14/hw1/src/blog/post/Post.styl create mode 100644 homeworks/week14/hw1/src/blog/post/PostContainer.js create mode 100644 homeworks/week14/hw1/src/blog/post/index.js create mode 100644 homeworks/week14/hw1/src/contact/Contact.css create mode 100644 homeworks/week14/hw1/src/contact/Contact.js create mode 100644 homeworks/week14/hw1/src/contact/Contact.styl create mode 100644 homeworks/week14/hw1/src/contact/index.js create mode 100644 homeworks/week14/hw1/src/feature/Feature.css create mode 100644 homeworks/week14/hw1/src/feature/Feature.js create mode 100644 homeworks/week14/hw1/src/feature/Feature.styl create mode 100644 homeworks/week14/hw1/src/feature/FeatureContainer.js create mode 100644 homeworks/week14/hw1/src/feature/index.js create mode 100644 homeworks/week14/hw1/src/footer/Footer.css create mode 100644 homeworks/week14/hw1/src/footer/Footer.js create mode 100644 homeworks/week14/hw1/src/footer/Footer.styl create mode 100644 homeworks/week14/hw1/src/footer/index.js create mode 100644 homeworks/week14/hw1/src/gulpfile.js create mode 100644 homeworks/week14/hw1/src/header/Header.css create mode 100644 homeworks/week14/hw1/src/header/Header.js create mode 100644 homeworks/week14/hw1/src/header/Header.styl create mode 100644 homeworks/week14/hw1/src/header/index.js create mode 100644 homeworks/week14/hw1/src/header/nav/Nav.css create mode 100644 homeworks/week14/hw1/src/header/nav/Nav.js create mode 100644 homeworks/week14/hw1/src/header/nav/Nav.styl create mode 100644 homeworks/week14/hw1/src/header/nav/NavContainer.js create mode 100644 homeworks/week14/hw1/src/header/nav/index.js create mode 100644 homeworks/week14/hw1/src/index.css create mode 100644 homeworks/week14/hw1/src/index.js create mode 100644 homeworks/week14/hw1/src/login/Login.js rename homeworks/week14/hw1/{index.html => src/login/Login.styl} (100%) create mode 100644 homeworks/week14/hw1/src/login/LoginContainer.js create mode 100644 homeworks/week14/hw1/src/login/index.js create mode 100644 homeworks/week14/hw1/src/logo.svg create mode 100644 homeworks/week14/hw1/src/reducer.js create mode 100644 homeworks/week14/hw1/src/serviceWorker.js create mode 100644 homeworks/week14/hw1/src/store.js create mode 100644 homeworks/week14/hw1/yarn.lock diff --git a/homeworks/week13/hw1/my-app/src/blog/Blog.js b/homeworks/week13/hw1/my-app/src/blog/Blog.js index b518f8c..a3fc8dd 100644 --- a/homeworks/week13/hw1/my-app/src/blog/Blog.js +++ b/homeworks/week13/hw1/my-app/src/blog/Blog.js @@ -42,7 +42,7 @@ class Blog extends Component { const url = 'http://45.55.26.18:3310/posts' fetch(url) .then(resp => resp.json()) - .then(json => this.setState({this.setState 函式的邏輯 + .then(json => this.setState({ articles: json })) } diff --git a/homeworks/week14/hw1/README.md b/homeworks/week14/hw1/README.md new file mode 100644 index 0000000..897dc83 --- /dev/null +++ b/homeworks/week14/hw1/README.md @@ -0,0 +1,44 @@ +This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). + +## Available Scripts + +In the project directory, you can run: + +### `npm start` + +Runs the app in the development mode.
+Open [http://localhost:3000](http://localhost:3000) to view it in the browser. + +The page will reload if you make edits.
+You will also see any lint errors in the console. + +### `npm test` + +Launches the test runner in the interactive watch mode.
+See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. + +### `npm run build` + +Builds the app for production to the `build` folder.
+It correctly bundles React in production mode and optimizes the build for the best performance. + +The build is minified and the filenames include the hashes.
+Your app is ready to be deployed! + +See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. + +### `npm run eject` + +**Note: this is a one-way operation. Once you `eject`, you can’t go back!** + +If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. + +Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. + +You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. + +## Learn More + +You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). + +To learn React, check out the [React documentation](https://reactjs.org/). diff --git a/homeworks/week14/hw1/build/asset-manifest.json b/homeworks/week14/hw1/build/asset-manifest.json new file mode 100644 index 0000000..2c61f48 --- /dev/null +++ b/homeworks/week14/hw1/build/asset-manifest.json @@ -0,0 +1,15 @@ +{ + "main.css": "/static/css/main.1d8bcfde.chunk.css", + "main.js": "/static/js/main.1058732d.chunk.js", + "main.js.map": "/static/js/main.1058732d.chunk.js.map", + "static/css/1.9c31a92a.chunk.css": "/static/css/1.9c31a92a.chunk.css", + "static/js/1.7674abea.chunk.js": "/static/js/1.7674abea.chunk.js", + "static/js/1.7674abea.chunk.js.map": "/static/js/1.7674abea.chunk.js.map", + "runtime~main.js": "/static/js/runtime~main.229c360f.js", + "runtime~main.js.map": "/static/js/runtime~main.229c360f.js.map", + "static/css/1.9c31a92a.chunk.css.map": "/static/css/1.9c31a92a.chunk.css.map", + "static/css/main.1d8bcfde.chunk.css.map": "/static/css/main.1d8bcfde.chunk.css.map", + "index.html": "/index.html", + "precache-manifest.434cbbeaedb799ab95a5f5982a558b19.js": "/precache-manifest.434cbbeaedb799ab95a5f5982a558b19.js", + "service-worker.js": "/service-worker.js" +} \ No newline at end of file diff --git a/homeworks/week14/hw1/build/favicon.ico b/homeworks/week14/hw1/build/favicon.ico new file mode 100644 index 0000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 diff --git a/homeworks/week14/hw1/build/index.html b/homeworks/week14/hw1/build/index.html new file mode 100644 index 0000000..e94c7dd --- /dev/null +++ b/homeworks/week14/hw1/build/index.html @@ -0,0 +1 @@ +Week13 hw1
\ No newline at end of file diff --git a/homeworks/week14/hw1/build/manifest.json b/homeworks/week14/hw1/build/manifest.json new file mode 100644 index 0000000..1f2f141 --- /dev/null +++ b/homeworks/week14/hw1/build/manifest.json @@ -0,0 +1,15 @@ +{ + "short_name": "React App", + "name": "Create React App Sample", + "icons": [ + { + "src": "favicon.ico", + "sizes": "64x64 32x32 24x24 16x16", + "type": "image/x-icon" + } + ], + "start_url": ".", + "display": "standalone", + "theme_color": "#000000", + "background_color": "#ffffff" +} diff --git a/homeworks/week14/hw1/build/precache-manifest.434cbbeaedb799ab95a5f5982a558b19.js b/homeworks/week14/hw1/build/precache-manifest.434cbbeaedb799ab95a5f5982a558b19.js new file mode 100644 index 0000000..57a5466 --- /dev/null +++ b/homeworks/week14/hw1/build/precache-manifest.434cbbeaedb799ab95a5f5982a558b19.js @@ -0,0 +1,26 @@ +self.__precacheManifest = [ + { + "revision": "229c360febb4351a89df", + "url": "/static/js/runtime~main.229c360f.js" + }, + { + "revision": "1058732db32ccda8da8c", + "url": "/static/js/main.1058732d.chunk.js" + }, + { + "revision": "7674abea34dd1270ae35", + "url": "/static/js/1.7674abea.chunk.js" + }, + { + "revision": "1058732db32ccda8da8c", + "url": "/static/css/main.1d8bcfde.chunk.css" + }, + { + "revision": "7674abea34dd1270ae35", + "url": "/static/css/1.9c31a92a.chunk.css" + }, + { + "revision": "99cd193e3aff026c2fac020a5f5a7df2", + "url": "/index.html" + } +]; \ No newline at end of file diff --git a/homeworks/week14/hw1/build/service-worker.js b/homeworks/week14/hw1/build/service-worker.js new file mode 100644 index 0000000..5367ea7 --- /dev/null +++ b/homeworks/week14/hw1/build/service-worker.js @@ -0,0 +1,34 @@ +/** + * Welcome to your Workbox-powered service worker! + * + * You'll need to register this file in your web app and you should + * disable HTTP caching for this file too. + * See https://goo.gl/nhQhGp + * + * The rest of the code is auto-generated. Please don't update this file + * directly; instead, make changes to your Workbox build configuration + * and re-run your build process. + * See https://goo.gl/2aRDsh + */ + +importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js"); + +importScripts( + "/precache-manifest.434cbbeaedb799ab95a5f5982a558b19.js" +); + +workbox.clientsClaim(); + +/** + * The workboxSW.precacheAndRoute() method efficiently caches and responds to + * requests for URLs in the manifest. + * See https://goo.gl/S9QRab + */ +self.__precacheManifest = [].concat(self.__precacheManifest || []); +workbox.precaching.suppressWarnings(); +workbox.precaching.precacheAndRoute(self.__precacheManifest, {}); + +workbox.routing.registerNavigationRoute("/index.html", { + + blacklist: [/^\/_/,/\/[^\/]+\.[^\/]+$/], +}); diff --git a/homeworks/week14/hw1/build/static/css/1.9c31a92a.chunk.css b/homeworks/week14/hw1/build/static/css/1.9c31a92a.chunk.css new file mode 100644 index 0000000..fff6074 --- /dev/null +++ b/homeworks/week14/hw1/build/static/css/1.9c31a92a.chunk.css @@ -0,0 +1,2 @@ +/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:initial;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:initial}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:initial}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none} +/*# sourceMappingURL=1.9c31a92a.chunk.css.map */ \ No newline at end of file diff --git a/homeworks/week14/hw1/build/static/css/1.9c31a92a.chunk.css.map b/homeworks/week14/hw1/build/static/css/1.9c31a92a.chunk.css.map new file mode 100644 index 0000000..db3f016 --- /dev/null +++ b/homeworks/week14/hw1/build/static/css/1.9c31a92a.chunk.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["/Users/futianshen/F2E/Framework/hw13/my-app/node_modules/normalize.css/normalize.css"],"names":[],"mappings":"AAAA,4EAA4E,AAU5E,KACE,iBAAkB,AAClB,6BAA+B,CAChC,AASD,KACE,QAAU,CACX,AAMD,KACE,aAAe,CAChB,AAOD,GACE,cAAe,AACf,cAAiB,CAClB,AAUD,GACE,mBAAwB,AACxB,SAAU,AACV,gBAAkB,CACnB,AAOD,IACE,gCAAkC,AAClC,aAAe,CAChB,AASD,EACE,wBAA8B,CAC/B,AAOD,YACE,mBAAoB,AACpB,0BAA2B,AAC3B,yCAAkC,AAAlC,gCAAkC,CACnC,AAMD,SAEE,kBAAoB,CACrB,AAOD,cAGE,gCAAkC,AAClC,aAAe,CAChB,AAMD,MACE,aAAe,CAChB,AAOD,QAEE,cAAe,AACf,cAAe,AACf,kBAAmB,AACnB,sBAAyB,CAC1B,AAED,IACE,aAAgB,CACjB,AAED,IACE,SAAY,CACb,AASD,IACE,iBAAmB,CACpB,AAUD,sCAKE,oBAAqB,AACrB,eAAgB,AAChB,iBAAkB,AAClB,QAAU,CACX,AAOD,aAEE,gBAAkB,CACnB,AAOD,cAEE,mBAAqB,CACtB,AAMD,gDAIE,yBAA2B,CAC5B,AAMD,wHAIE,kBAAmB,AACnB,SAAW,CACZ,AAMD,4GAIE,6BAA+B,CAChC,AAMD,SACE,0BAA+B,CAChC,AASD,OACE,sBAAuB,AACvB,cAAe,AACf,cAAe,AACf,eAAgB,AAChB,UAAW,AACX,kBAAoB,CACrB,AAMD,SACE,sBAAyB,CAC1B,AAMD,SACE,aAAe,CAChB,AAOD,6BAEE,sBAAuB,AACvB,SAAW,CACZ,AAMD,kFAEE,WAAa,CACd,AAOD,cACE,6BAA8B,AAC9B,mBAAqB,CACtB,AAMD,yCACE,uBAAyB,CAC1B,AAOD,6BACE,0BAA2B,AAC3B,YAAc,CACf,AASD,QACE,aAAe,CAChB,AAMD,QACE,iBAAmB,CACpB,AAiBD,kBACE,YAAc,CACf","file":"1.9c31a92a.chunk.css","sourcesContent":["/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */\n\n/* Document\n ========================================================================== */\n\n/**\n * 1. Correct the line height in all browsers.\n * 2. Prevent adjustments of font size after orientation changes in iOS.\n */\n\nhtml {\n line-height: 1.15; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n}\n\n/* Sections\n ========================================================================== */\n\n/**\n * Remove the margin in all browsers.\n */\n\nbody {\n margin: 0;\n}\n\n/**\n * Render the `main` element consistently in IE.\n */\n\nmain {\n display: block;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Firefox, and Safari.\n */\n\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n ========================================================================== */\n\n/**\n * 1. Add the correct box sizing in Firefox.\n * 2. Show the overflow in Edge and IE.\n */\n\nhr {\n box-sizing: content-box; /* 1 */\n height: 0; /* 1 */\n overflow: visible; /* 2 */\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\npre {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/* Text-level semantics\n ========================================================================== */\n\n/**\n * Remove the gray background on active links in IE 10.\n */\n\na {\n background-color: transparent;\n}\n\n/**\n * 1. Remove the bottom border in Chrome 57-\n * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\n */\n\nabbr[title] {\n border-bottom: none; /* 1 */\n text-decoration: underline; /* 2 */\n text-decoration: underline dotted; /* 2 */\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\ncode,\nkbd,\nsamp {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\n\nsmall {\n font-size: 80%;\n}\n\n/**\n * Prevent `sub` and `sup` elements from affecting the line height in\n * all browsers.\n */\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/* Embedded content\n ========================================================================== */\n\n/**\n * Remove the border on images inside links in IE 10.\n */\n\nimg {\n border-style: none;\n}\n\n/* Forms\n ========================================================================== */\n\n/**\n * 1. Change the font styles in all browsers.\n * 2. Remove the margin in Firefox and Safari.\n */\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-size: 100%; /* 1 */\n line-height: 1.15; /* 1 */\n margin: 0; /* 2 */\n}\n\n/**\n * Show the overflow in IE.\n * 1. Show the overflow in Edge.\n */\n\nbutton,\ninput { /* 1 */\n overflow: visible;\n}\n\n/**\n * Remove the inheritance of text transform in Edge, Firefox, and IE.\n * 1. Remove the inheritance of text transform in Firefox.\n */\n\nbutton,\nselect { /* 1 */\n text-transform: none;\n}\n\n/**\n * Correct the inability to style clickable types in iOS and Safari.\n */\n\nbutton,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"] {\n -webkit-appearance: button;\n}\n\n/**\n * Remove the inner border and padding in Firefox.\n */\n\nbutton::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n\n/**\n * Restore the focus styles unset by the previous rule.\n */\n\nbutton:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n\n/**\n * Correct the padding in Firefox.\n */\n\nfieldset {\n padding: 0.35em 0.75em 0.625em;\n}\n\n/**\n * 1. Correct the text wrapping in Edge and IE.\n * 2. Correct the color inheritance from `fieldset` elements in IE.\n * 3. Remove the padding so developers are not caught out when they zero out\n * `fieldset` elements in all browsers.\n */\n\nlegend {\n box-sizing: border-box; /* 1 */\n color: inherit; /* 2 */\n display: table; /* 1 */\n max-width: 100%; /* 1 */\n padding: 0; /* 3 */\n white-space: normal; /* 1 */\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Firefox, and Opera.\n */\n\nprogress {\n vertical-align: baseline;\n}\n\n/**\n * Remove the default vertical scrollbar in IE 10+.\n */\n\ntextarea {\n overflow: auto;\n}\n\n/**\n * 1. Add the correct box sizing in IE 10.\n * 2. Remove the padding in IE 10.\n */\n\n[type=\"checkbox\"],\n[type=\"radio\"] {\n box-sizing: border-box; /* 1 */\n padding: 0; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Chrome.\n */\n\n[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * 1. Correct the odd appearance in Chrome and Safari.\n * 2. Correct the outline style in Safari.\n */\n\n[type=\"search\"] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Remove the inner padding in Chrome and Safari on macOS.\n */\n\n[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style clickable types in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n ========================================================================== */\n\n/*\n * Add the correct display in Edge, IE 10+, and Firefox.\n */\n\ndetails {\n display: block;\n}\n\n/*\n * Add the correct display in all browsers.\n */\n\nsummary {\n display: list-item;\n}\n\n/* Misc\n ========================================================================== */\n\n/**\n * Add the correct display in IE 10+.\n */\n\ntemplate {\n display: none;\n}\n\n/**\n * Add the correct display in IE 10.\n */\n\n[hidden] {\n display: none;\n}\n"]} \ No newline at end of file diff --git a/homeworks/week14/hw1/build/static/css/main.1d8bcfde.chunk.css b/homeworks/week14/hw1/build/static/css/main.1d8bcfde.chunk.css new file mode 100644 index 0000000..8953f36 --- /dev/null +++ b/homeworks/week14/hw1/build/static/css/main.1d8bcfde.chunk.css @@ -0,0 +1,2 @@ +body{margin:0;padding:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}body{background:#f2efe9}ul{list-style-type:none;margin:0;padding:0}a{text-decoration:none;color:#fff}label{display:block;width:100%;margin-bottom:10px}label input,label textarea{outline-color:rgba(70,70,85,.9);outline-width:3px;border:1px solid #7e7e7e;margin-top:5px;width:100%}button{border:2px solid #252627;padding:4px 12px;float:right;background:#f2efe9;-webkit-transition-duration:.4s;transition-duration:.4s;font-weight:400}button:hover{color:#f2efe9;background:#252627;opacity:.8}.container{max-width:320px;margin:0 auto}.col-4{display:inline-block;box-sizing:border-box;margin-bottom:20px;width:100%}.col-12{max-width:100%}.wrapper{padding:20px}@media (min-width:320px){.container{max-width:90%}}@media (min-width:768px){.container{max-width:85%}.col-4{margin:1%;width:30%}}@media (min-width:1024px){.container{max-width:80%}}#Header{display:flex;align-items:center;height:60px;background:#252627}#Header .container{display:flex;justify-content:space-between;width:80%;margin:0 auto}#logo{display:inline-block;line-height:60px;color:#fff;font-size:1.5rem}li{padding:20px;top:50%}li a{text-transform:capitalize}.nav{display:none}.nav--active{display:block;position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.8)}.nav__list--active{display:block;position:relative;top:50%;text-align:center;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.nav__trigger{z-index:1;display:block;line-height:60px;color:#fff;cursor:pointer;text-transform:uppercase}@media (min-width:768px){.nav,.nav__list{display:block}.nav__list li{display:inline-block}.nav__trigger{display:none}}.breadcrumbs{float:right;display:flex;padding:5px;font-size:14px;background:rgba(0,0,0,.5);text-transform:capitalize}.breadcrumbs ul{padding:7px}.breadcrumbs li{box-sizing:border-box;display:inline-block;padding:5px;color:#fff}.breadcrumbs li:after{content:"/";margin-left:10px}.breadcrumbs li:last-child:after{content:"";margin:0}.breadcrumbs li a{color:#ccc;text-decoration:none;-webkit-transition:.5s;transition:.5s}.breadcrumbs li a:hover{color:#fff}.feature{padding:100px 0;background-image:url(https://picsum.photos/1920/1080/?random=);background-size:cover;background-position:50% 50%;background-attachment:fixed}.feature__title{display:inline-block;color:#fff;text-transform:uppercase}.Blog .post__article{cursor:pointer;border-radius:5px;box-shadow:-9px 10px 10px rgba(0,0,0,.3);height:200px;overflow:hidden;background:#909cc2;background:-webkit-linear-gradient(right top,transparent 50%,rgba(0,0,0,.5) 0) 100% 0 no-repeat,-webkit-linear-gradient(225deg,transparent 1.5em,#f7f5fb 0);background:linear-gradient(to left bottom,transparent 50%,rgba(0,0,0,.5) 0) 100% 0 no-repeat,linear-gradient(-135deg,transparent 1.5em,#f7f5fb 0);background-size:2em 2em,auto}.Blog .post__article h1{font-size:2rem;height:2.5rem;overflow:hidden}.Blog .post__article h3{height:5%}.Blog .post__article p{height:65%;overflow:hidden}.Blog .post__list{padding:30px 0}.Post{display:flow-root;padding-top:50px;text-transform:capitalize;font-size:18px;color:#333}@media (min-width:768px){.Blog .post__article{height:300px}}.Contact{padding:50px 0;text-transform:capitalize}.Contact__content{border-radius:6px;box-shadow:-9px 10px 10px rgba(0,0,0,.3);height:100%;overflow:hidden;background:#909cc2;background:-webkit-linear-gradient(right top,transparent 50%,rgba(0,0,0,.5) 0) 100% 0 no-repeat,-webkit-linear-gradient(225deg,transparent 1.5em,#f7f5fb 0);background:linear-gradient(to left bottom,transparent 50%,rgba(0,0,0,.5) 0) 100% 0 no-repeat,linear-gradient(-135deg,transparent 1.5em,#f7f5fb 0);background-size:2em 2em,auto}.Contact a{border:2px solid #000;padding:3px 15px;color:#000;font-size:20px}.Contact textarea{height:18vh}.Contact button{float:right;background-color:#f7f5fb}.Contact button:hover{color:#f2efe9;background:#252627;opacity:.8}@media (min-width:768px){.Contact{padding:100px 0}}.Article{padding:100px 0}.Article a{border:2px solid #252627;padding:3px 15px;color:#252627;font-size:16px;-webkit-transition:.3s;transition:.3s;text-transform:capitalize;font-weight:400}.Article a:hover{color:#f2efe9;background-color:#252627;opacity:.8}.Article__content{border-radius:6px;box-shadow:-9px 10px 10px rgba(0,0,0,.3);height:400px;overflow:hidden;background:#909cc2;background:-webkit-linear-gradient(right top,transparent 50%,rgba(0,0,0,.5) 0) 100% 0 no-repeat,-webkit-linear-gradient(225deg,transparent 1.5em,#f7f5fb 0);background:linear-gradient(to left bottom,transparent 50%,rgba(0,0,0,.5) 0) 100% 0 no-repeat,linear-gradient(-135deg,transparent 1.5em,#f7f5fb 0);background-size:2em 2em,auto}@media (min-width:320px){.Article{padding:50px 0}}footer{text-align:center;font-size:13px;line-height:60px;color:#fff;height:60px;background-color:#252627} +/*# sourceMappingURL=main.1d8bcfde.chunk.css.map */ \ No newline at end of file diff --git a/homeworks/week14/hw1/build/static/css/main.1d8bcfde.chunk.css.map b/homeworks/week14/hw1/build/static/css/main.1d8bcfde.chunk.css.map new file mode 100644 index 0000000..1d3dffe --- /dev/null +++ b/homeworks/week14/hw1/build/static/css/main.1d8bcfde.chunk.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["/Users/futianshen/F2E/Framework/hw13/my-app/src/index.css","/Users/futianshen/F2E/Framework/hw13/my-app/src/App.css","main.1d8bcfde.chunk.css","/Users/futianshen/F2E/Framework/hw13/my-app/src/header/Header.css","/Users/futianshen/F2E/Framework/hw13/my-app/src/header/nav/Nav.css","/Users/futianshen/F2E/Framework/hw13/my-app/src/feature/Feature.css","/Users/futianshen/F2E/Framework/hw13/my-app/src/blog/Blog.css","/Users/futianshen/F2E/Framework/hw13/my-app/src/blog/post/Post.css","/Users/futianshen/F2E/Framework/hw13/my-app/src/contact/Contact.css","/Users/futianshen/F2E/Framework/hw13/my-app/src/article/Article.css","/Users/futianshen/F2E/Framework/hw13/my-app/src/footer/Footer.css"],"names":[],"mappings":"AAAA,KACE,SAAU,AACV,UAAW,AACX,oIAA+J,AAC/J,mCAAoC,AACpC,iCAAmC,CACpC,AACD,KACE,uEAAgF,CACjF,ACTD,KAAK,kBAAkB,CAAC,GAAG,qBAAqB,SAAS,SAAS,CAAC,EAAE,qBAAqB,UAAU,CAAC,MAAM,cAAc,WAAW,kBAAmB,CAAC,2BAA2B,gCAAiC,kBAAkB,yBAAyB,eAAe,UAAU,CAAC,OAAO,yBAAyB,iBAAiB,YAAY,mBAAmB,gCAAA,wBAAwB,eAAmB,CAAC,aAAa,cAAc,mBAAmB,UAAU,CAAC,WAAW,gBAAgB,aAAa,CAAC,OAAO,qBAAqB,sBAAsB,mBAAmB,UAAU,CAAC,QAAQ,cAAc,CAAC,SAAS,YAAY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AAC,kBAAkB,kBAAkB,yCAA0C,YAAY,gBAAgB,mBAAmB,4JAAA,kJAAmJ,4BAA4B,CAAC,WAAW,sBAAsB,iBAAiB,WAAW,cAAc,CAAC,kBAAkB,WAAW,CAAC,gBAAgB,YAAY,wBAAyB,CAAC,sBAAsB,cAAc,mBAAmB,UAAU,CAAC,yBAAyB,SAAS,eAAe,CAAC,CNiB8J,AOjBlxB,SAAS,eAAgB,CAAC,WAAW,yBAAyB,iBAAiB,cAAc,eAAe,uBAAA,eAAe,0BAA0B,eAAmB,CAAC,iBAAiB,cAAc,yBAAyB,UAAU,CAAC,kBAAkB,kBAAkB,yCAA0C,aAAa,gBAAgB,mBAAmB,4JAAA,kJAAmJ,4BAA4B,CAAC,yBAAyB,SAAS,cAAc,CAAC,CPkBqL,AQlBhwB,OAAO,kBAAkB,eAAe,iBAAiB,WAAW,YAAY,wBAAwB,CRmBC","file":"main.1d8bcfde.chunk.css","sourcesContent":["body {\n margin: 0;\n padding: 0;\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\", \"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\ncode {\n font-family: source-code-pro, Menlo, Monaco, Consolas, \"Courier New\", monospace;\n}\n","body{background:#f2efe9}ul{list-style-type:none;margin:0;padding:0}a{text-decoration:none;color:#fff}label{display:block;width:100%;margin-bottom:10px;}label input,label textarea{outline-color:rgba(70,70,85,0.9);outline-width:3px;border:1px solid #7e7e7e;margin-top:5px;width:100%}button{border:2px solid #252627;padding:4px 12px;float:right;background:#f2efe9;transition-duration:.4s;font-weight:normal;}button:hover{color:#f2efe9;background:#252627;opacity:.8}.container{max-width:320px;margin:0 auto}.col-4{display:inline-block;box-sizing:border-box;margin-bottom:20px;width:100%}.col-12{max-width:100%}.wrapper{padding:20px}@media (min-width:320px){.container{max-width:90%}}@media (min-width:768px){.container{max-width:85%}.col-4{margin:1%;width:30%}}@media (min-width:1024px){.container{max-width:80%}}","body {\n margin: 0;\n padding: 0;\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\", \"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\ncode {\n font-family: source-code-pro, Menlo, Monaco, Consolas, \"Courier New\", monospace;\n}\n\nbody{background:#f2efe9}ul{list-style-type:none;margin:0;padding:0}a{text-decoration:none;color:#fff}label{display:block;width:100%;margin-bottom:10px;}label input,label textarea{outline-color:rgba(70,70,85,0.9);outline-width:3px;border:1px solid #7e7e7e;margin-top:5px;width:100%}button{border:2px solid #252627;padding:4px 12px;float:right;background:#f2efe9;-webkit-transition-duration:.4s;transition-duration:.4s;font-weight:normal;}button:hover{color:#f2efe9;background:#252627;opacity:.8}.container{max-width:320px;margin:0 auto}.col-4{display:inline-block;box-sizing:border-box;margin-bottom:20px;width:100%}.col-12{max-width:100%}.wrapper{padding:20px}@media (min-width:320px){.container{max-width:90%}}@media (min-width:768px){.container{max-width:85%}.col-4{margin:1%;width:30%}}@media (min-width:1024px){.container{max-width:80%}}\n#Header{display:flex;align-items:center;height:60px;background:#252627;}#Header .container{display:flex;justify-content:space-between;width:80%;margin:0 auto}#logo{display:inline-block;line-height:60px;color:#fff;font-size:1.5rem}\nli{padding:20px;top:50%;}li a{text-transform:capitalize}.nav{display:none;}.nav--active{display:block;position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,0.8)}.nav__list--active{display:block;position:relative;top:50%;text-align:center;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.nav__trigger{z-index:1;display:block;line-height:60px;color:#fff;cursor:pointer;text-transform:uppercase}@media (min-width:768px){.nav{display:block;}.nav__list{display:block;}.nav__list li{display:inline-block}.nav__trigger{display:none}}\n.breadcrumbs{float:right;display:flex;padding:5px;font-size:14px;background:rgba(0,0,0,0.5);text-transform:capitalize;}.breadcrumbs ul{padding:7px}.breadcrumbs li{box-sizing:border-box;display:inline-block;padding:5px;color:#fff;}.breadcrumbs li:after{content:\"/\";margin-left:10px}.breadcrumbs li:last-child:after{content:\"\";margin:0}.breadcrumbs li a{color:#ccc;text-decoration:none;-webkit-transition:.5s;transition:.5s;}.breadcrumbs li a:hover{color:#fff}.feature{padding:100px 0;background-image:url(\"https://picsum.photos/1920/1080/?random\");background-size:cover;background-position:50% 50%;background-attachment:fixed}.feature__title{display:inline-block;color:#fff;text-transform:uppercase}\n.Blog .post__article{cursor:pointer;border-radius:5px;box-shadow:-9px 10px 10px rgba(0,0,0,0.3);height:200px;overflow:hidden;background:#909cc2;background:-webkit-linear-gradient(right top,transparent 50%,rgba(0,0,0,0.5) 0) 100% 0 no-repeat,-webkit-linear-gradient(225deg,transparent 1.5em,#f7f5fb 0);background:linear-gradient(to left bottom,transparent 50%,rgba(0,0,0,0.5) 0) 100% 0 no-repeat,linear-gradient(-135deg,transparent 1.5em,#f7f5fb 0);background-size:2em 2em,auto;}.Blog .post__article h1{font-size:2rem;height:2.5rem;overflow:hidden}.Blog .post__article h3{height:5%}.Blog .post__article p{height:65%;overflow:hidden}.Blog .post__list{padding:30px 0}@media (min-width:768px){.Blog .post__article{height:300px}}\n.Post{display:flow-root;padding-top:50px;text-transform:capitalize;font-size:18px;color:#333}@media (min-width:768px){.Blog .post__article{height:300px}}\n.Contact{padding:50px 0;text-transform:capitalize;}.Contact__content{border-radius:6px;box-shadow:-9px 10px 10px rgba(0,0,0,0.3);height:100%;overflow:hidden;background:#909cc2;background:-webkit-linear-gradient(right top,transparent 50%,rgba(0,0,0,0.5) 0) 100% 0 no-repeat,-webkit-linear-gradient(225deg,transparent 1.5em,#f7f5fb 0);background:linear-gradient(to left bottom,transparent 50%,rgba(0,0,0,0.5) 0) 100% 0 no-repeat,linear-gradient(-135deg,transparent 1.5em,#f7f5fb 0);background-size:2em 2em,auto}.Contact a{border:2px solid #000;padding:3px 15px;color:#000;font-size:20px}.Contact textarea{height:18vh}.Contact button{float:right;background-color:#f7f5fb;}.Contact button:hover{color:#f2efe9;background:#252627;opacity:.8}@media (min-width:768px){.Contact{padding:100px 0}}\n.Article{padding:100px 0;}.Article a{border:2px solid #252627;padding:3px 15px;color:#252627;font-size:16px;-webkit-transition:.3s;transition:.3s;text-transform:capitalize;font-weight:normal;}.Article a:hover{color:#f2efe9;background-color:#252627;opacity:.8}.Article__content{border-radius:6px;box-shadow:-9px 10px 10px rgba(0,0,0,0.3);height:400px;overflow:hidden;background:#909cc2;background:-webkit-linear-gradient(right top,transparent 50%,rgba(0,0,0,0.5) 0) 100% 0 no-repeat,-webkit-linear-gradient(225deg,transparent 1.5em,#f7f5fb 0);background:linear-gradient(to left bottom,transparent 50%,rgba(0,0,0,0.5) 0) 100% 0 no-repeat,linear-gradient(-135deg,transparent 1.5em,#f7f5fb 0);background-size:2em 2em,auto}@media (min-width:320px){.Article{padding:50px 0}}\nfooter{text-align:center;font-size:13px;line-height:60px;color:#fff;height:60px;background-color:#252627}\n","#Header{display:flex;align-items:center;height:60px;background:#252627;}#Header .container{display:flex;justify-content:space-between;width:80%;margin:0 auto}#logo{display:inline-block;line-height:60px;color:#fff;font-size:1.5rem}","li{padding:20px;top:50%;}li a{text-transform:capitalize}.nav{display:none;}.nav--active{display:block;position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,0.8)}.nav__list--active{display:block;position:relative;top:50%;text-align:center;transform:translateY(-50%)}.nav__trigger{z-index:1;display:block;line-height:60px;color:#fff;cursor:pointer;text-transform:uppercase}@media (min-width:768px){.nav{display:block;}.nav__list{display:block;}.nav__list li{display:inline-block}.nav__trigger{display:none}}",".breadcrumbs{float:right;display:flex;padding:5px;font-size:14px;background:rgba(0,0,0,0.5);text-transform:capitalize;}.breadcrumbs ul{padding:7px}.breadcrumbs li{box-sizing:border-box;display:inline-block;padding:5px;color:#fff;}.breadcrumbs li:after{content:\"/\";margin-left:10px}.breadcrumbs li:last-child:after{content:\"\";margin:0}.breadcrumbs li a{color:#ccc;text-decoration:none;transition:.5s;}.breadcrumbs li a:hover{color:#fff}.feature{padding:100px 0;background-image:url(\"https://picsum.photos/1920/1080/?random\");background-size:cover;background-position:50% 50%;background-attachment:fixed}.feature__title{display:inline-block;color:#fff;text-transform:uppercase}",".Blog .post__article{cursor:pointer;border-radius:5px;box-shadow:-9px 10px 10px rgba(0,0,0,0.3);height:200px;overflow:hidden;background:#909cc2;background:linear-gradient(to left bottom,transparent 50%,rgba(0,0,0,0.5) 0) 100% 0 no-repeat,linear-gradient(-135deg,transparent 1.5em,#f7f5fb 0);background-size:2em 2em,auto;}.Blog .post__article h1{font-size:2rem;height:2.5rem;overflow:hidden}.Blog .post__article h3{height:5%}.Blog .post__article p{height:65%;overflow:hidden}.Blog .post__list{padding:30px 0}@media (min-width:768px){.Blog .post__article{height:300px}}",".Post{display:flow-root;padding-top:50px;text-transform:capitalize;font-size:18px;color:#333}@media (min-width:768px){.Blog .post__article{height:300px}}",".Contact{padding:50px 0;text-transform:capitalize;}.Contact__content{border-radius:6px;box-shadow:-9px 10px 10px rgba(0,0,0,0.3);height:100%;overflow:hidden;background:#909cc2;background:linear-gradient(to left bottom,transparent 50%,rgba(0,0,0,0.5) 0) 100% 0 no-repeat,linear-gradient(-135deg,transparent 1.5em,#f7f5fb 0);background-size:2em 2em,auto}.Contact a{border:2px solid #000;padding:3px 15px;color:#000;font-size:20px}.Contact textarea{height:18vh}.Contact button{float:right;background-color:#f7f5fb;}.Contact button:hover{color:#f2efe9;background:#252627;opacity:.8}@media (min-width:768px){.Contact{padding:100px 0}}",".Article{padding:100px 0;}.Article a{border:2px solid #252627;padding:3px 15px;color:#252627;font-size:16px;transition:.3s;text-transform:capitalize;font-weight:normal;}.Article a:hover{color:#f2efe9;background-color:#252627;opacity:.8}.Article__content{border-radius:6px;box-shadow:-9px 10px 10px rgba(0,0,0,0.3);height:400px;overflow:hidden;background:#909cc2;background:linear-gradient(to left bottom,transparent 50%,rgba(0,0,0,0.5) 0) 100% 0 no-repeat,linear-gradient(-135deg,transparent 1.5em,#f7f5fb 0);background-size:2em 2em,auto}@media (min-width:320px){.Article{padding:50px 0}}","footer{text-align:center;font-size:13px;line-height:60px;color:#fff;height:60px;background-color:#252627}"]} \ No newline at end of file diff --git a/homeworks/week14/hw1/build/static/js/1.7674abea.chunk.js b/homeworks/week14/hw1/build/static/js/1.7674abea.chunk.js new file mode 100644 index 0000000..8c83e6e --- /dev/null +++ b/homeworks/week14/hw1/build/static/js/1.7674abea.chunk.js @@ -0,0 +1,2 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[1],[function(e,t,n){"use strict";e.exports=n(20)},function(e,t,n){e.exports=n(35)()},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";function r(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],r=t&&t.split("/")||[],o=e&&l(e),i=t&&l(t),a=o||i;if(e&&l(e)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var c=void 0;if(r.length){var s=r[r.length-1];c="."===s||".."===s||""===s}else c=!1;for(var f=0,p=r.length;p>=0;p--){var d=r[p];"."===d?u(r,p):".."===d?(u(r,p),f++):f&&(u(r,p),f--)}if(!a)for(;f--;f)r.unshift("..");!a||""===r[0]||r[0]&&l(r[0])||r.unshift("");var h=r.join("/");return c&&"/"!==h.substr(-1)&&(h+="/"),h};"function"===typeof Symbol&&Symbol.iterator;var s=function(e){return"/"===e.charAt(0)?e:"/"+e},f=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},p=function(e,t){return f(e,t)?e.substr(t.length):e},d=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},h=function(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o},m=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};a()(g,"Browser history needs a DOM");var t=window.history,n=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history}(),r=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e.forceRefresh,l=void 0!==i&&i,u=e.getUserConfirmation,c=void 0===u?k:u,m=e.keyLength,C=void 0===m?6:m,_=e.basename?d(s(e.basename)):"",S=function(e){var t=e||{},n=t.key,r=t.state,i=window.location,a=i.pathname+i.search+i.hash;return o()(!_||f(a,_),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+a+'" to begin with "'+_+'".'),_&&(a=p(a,_)),y(a,r,n)},P=function(){return Math.random().toString(36).substr(2,C)},O=v(),N=function(e){T(B,e),B.length=t.length,O.notifyListeners(B.location,B.action)},R=function(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||U(S(e.state))},j=function(){U(S(E()))},M=!1,U=function(e){M?(M=!1,N()):O.confirmTransitionTo(e,"POP",c,function(t){t?N({action:"POP",location:e}):I(e)})},I=function(e){var t=B.location,n=A.indexOf(t.key);-1===n&&(n=0);var r=A.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(M=!0,L(o))},D=S(E()),A=[D.key],F=function(e){return _+h(e)},L=function(e){t.go(e)},z=0,W=function(e){1===(z+=e)?(b(window,"popstate",R),r&&b(window,"hashchange",j)):0===z&&(w(window,"popstate",R),r&&w(window,"hashchange",j))},V=!1,B={length:t.length,action:"POP",location:D,createHref:F,push:function(e,r){o()(!("object"===("undefined"===typeof e?"undefined":x(e))&&void 0!==e.state&&void 0!==r),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var i=y(e,r,P(),B.location);O.confirmTransitionTo(i,"PUSH",c,function(e){if(e){var r=F(i),a=i.key,u=i.state;if(n)if(t.pushState({key:a,state:u},null,r),l)window.location.href=r;else{var c=A.indexOf(B.location.key),s=A.slice(0,-1===c?0:c+1);s.push(i.key),A=s,N({action:"PUSH",location:i})}else o()(void 0===u,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=r}})},replace:function(e,r){o()(!("object"===("undefined"===typeof e?"undefined":x(e))&&void 0!==e.state&&void 0!==r),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var i=y(e,r,P(),B.location);O.confirmTransitionTo(i,"REPLACE",c,function(e){if(e){var r=F(i),a=i.key,u=i.state;if(n)if(t.replaceState({key:a,state:u},null,r),l)window.location.replace(r);else{var c=A.indexOf(B.location.key);-1!==c&&(A[c]=i.key),N({action:"REPLACE",location:i})}else o()(void 0===u,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(r)}})},go:L,goBack:function(){return L(-1)},goForward:function(){return L(1)},block:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=O.setPrompt(e);return V||(W(1),V=!0),function(){return V&&(V=!1,W(-1)),t()}},listen:function(e){var t=O.appendListener(e);return W(1),function(){W(-1),t()}}};return B};Object.assign,"function"===typeof Symbol&&Symbol.iterator,Object.assign;n.d(t,"a",function(){return C}),n.d(t,"b",function(){return y})},function(e,t,n){"use strict";var r=n(9),o=n.n(r),i=n(8),a=n.n(i),l=n(0),u=n.n(l),c=n(1),s=n.n(c),f=n(16),p=n.n(f),d={},h=0,m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];"string"===typeof t&&(t={path:t});var r=t,o=r.path,i=r.exact,a=void 0!==i&&i,l=r.strict,u=void 0!==l&&l,c=r.sensitive;if(null==o)return n;var s=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=d[n]||(d[n]={});if(r[e])return r[e];var o=[],i={re:p()(e,o,t),keys:o};return h<1e4&&(r[e]=i,h++),i}(o,{end:a,strict:u,sensitive:void 0!==c&&c}),f=s.re,m=s.keys,y=f.exec(e);if(!y)return null;var v=y[0],g=y.slice(1),b=e===v;return a&&!b?null:{path:o,url:"/"===o&&""===v?"/":v,isExact:b,params:m.reduce(function(e,t,n){return e[t.name]=g[n],e},{})}},y=Object.assign||function(e){for(var t=1;t or withRouter() outside a ");var c=t.route,s=(r||c.location).pathname;return m(s,{path:o,strict:i,exact:l,sensitive:u},c.match)},t.prototype.componentWillMount=function(){o()(!(this.props.component&&this.props.render),"You should not use and in the same route; will be ignored"),o()(!(this.props.component&&this.props.children&&!g(this.props.children)),"You should not use and in the same route; will be ignored"),o()(!(this.props.render&&this.props.children&&!g(this.props.children)),"You should not use and in the same route; will be ignored")},t.prototype.componentWillReceiveProps=function(e,t){o()(!(e.location&&!this.props.location),' elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),o()(!(!e.location&&this.props.location),' elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(e,t.router)})},t.prototype.render=function(){var e=this.state.match,t=this.props,n=t.children,r=t.component,o=t.render,i=this.context.router,a=i.history,l=i.route,c=i.staticContext,s={match:e,location:this.props.location||l.location,history:a,staticContext:c};return r?e?u.a.createElement(r,s):null:o?e?o(s):null:"function"===typeof n?n(s):n&&!g(n)?u.a.Children.only(n):null},t}(u.a.Component);b.propTypes={computedMatch:s.a.object,path:s.a.string,exact:s.a.bool,strict:s.a.bool,sensitive:s.a.bool,component:s.a.func,render:s.a.func,children:s.a.oneOfType([s.a.func,s.a.node]),location:s.a.object},b.contextTypes={router:s.a.shape({history:s.a.object.isRequired,route:s.a.object.isRequired,staticContext:s.a.object})},b.childContextTypes={router:s.a.object.isRequired};t.a=b},function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,t){for(var n,a,l=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;uR.length&&R.push(e)}function U(e,t,n){return null==e?0:function e(t,n,r,o){var l=typeof t;"undefined"!==l&&"boolean"!==l||(t=null);var u=!1;if(null===t)u=!0;else switch(l){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case i:case a:u=!0}}if(u)return r(o,t,""===n?"."+I(t,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;cthis.eventPool.length&&this.eventPool.push(e)}function fe(e){e.eventPool=[],e.getPooled=ce,e.release=se}o(ue.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=ae)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ae)},persist:function(){this.isPersistent=ae},isPersistent:le,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=le,this._dispatchInstances=this._dispatchListeners=null}}),ue.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},ue.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return o(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=o({},r.Interface,e),n.extend=r.extend,fe(n),n},fe(ue);var pe=ue.extend({data:null}),de=ue.extend({data:null}),he=[9,13,27,32],me=H&&"CompositionEvent"in window,ye=null;H&&"documentMode"in document&&(ye=document.documentMode);var ve=H&&"TextEvent"in window&&!ye,ge=H&&(!me||ye&&8=ye),be=String.fromCharCode(32),we={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},ke=!1;function xe(e,t){switch(e){case"keyup":return-1!==he.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Te(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Ee=!1;var Ce={eventTypes:we,extractEvents:function(e,t,n,r){var o=void 0,i=void 0;if(me)e:{switch(e){case"compositionstart":o=we.compositionStart;break e;case"compositionend":o=we.compositionEnd;break e;case"compositionupdate":o=we.compositionUpdate;break e}o=void 0}else Ee?xe(e,n)&&(o=we.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=we.compositionStart);return o?(ge&&"ko"!==n.locale&&(Ee||o!==we.compositionStart?o===we.compositionEnd&&Ee&&(i=ie()):(re="value"in(ne=r)?ne.value:ne.textContent,Ee=!0)),o=pe.getPooled(o,t,n,r),i?o.data=i:null!==(i=Te(n))&&(o.data=i),$(o),i=o):i=null,(e=ve?function(e,t){switch(e){case"compositionend":return Te(t);case"keypress":return 32!==t.which?null:(ke=!0,be);case"textInput":return(e=t.data)===be&&ke?null:e;default:return null}}(e,n):function(e,t){if(Ee)return"compositionend"===e||!me&&xe(e,t)?(e=ie(),oe=re=ne=null,Ee=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1