diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index fa5df0c..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,204 +0,0 @@ -# Changelog - -Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). - -## [v2.2.0](https://github.com/zerosoul/chinese-colors/compare/v2.1.0...v2.2.0) - 2019-09-27 - -### Commits - -- feat: add peorty to wallpaper [`ab67986`](https://github.com/zerosoul/chinese-colors/commit/ab67986aab82a34b2d72db572611600b55a17e17) -- refactor: poetry hooks [`4779904`](https://github.com/zerosoul/chinese-colors/commit/47799041995b9a05817b8c98cb3591974074ffd1) -- fix: scroll top [`27e46ba`](https://github.com/zerosoul/chinese-colors/commit/27e46ba59c1c4416f20da13300759f07b280bf35) -- fix: page scrollable [`6a3a183`](https://github.com/zerosoul/chinese-colors/commit/6a3a1837fc6f8e45632ac9054e4e64eb9b77d86e) -- refactor: crop image [`1d8644f`](https://github.com/zerosoul/chinese-colors/commit/1d8644f94b381ca3f2f160f46e184b6d929d2ef7) - -## [v2.1.0](https://github.com/zerosoul/chinese-colors/compare/v2.0.0...v2.1.0) - 2019-09-26 - -### Commits - -- feat: add share card image [`37a9233`](https://github.com/zerosoul/chinese-colors/commit/37a923335732bc80ad199762efffc9995097a321) -- docs: add color id [`343a45d`](https://github.com/zerosoul/chinese-colors/commit/343a45d626ef3dee19aff864084c12fb564be6fc) -- fix: router basename [`617a8e6`](https://github.com/zerosoul/chinese-colors/commit/617a8e613b9d64e5aadefdeb3e58d75cd69009e3) -- Create CODE_OF_CONDUCT.md [`be54eb7`](https://github.com/zerosoul/chinese-colors/commit/be54eb75f75035d95efd7bd097243bc41e862716) -- docs: update change log [`28b4228`](https://github.com/zerosoul/chinese-colors/commit/28b42280f47895c0354d77bd84db5faca4156d0d) -- docs: update readme [`26c5589`](https://github.com/zerosoul/chinese-colors/commit/26c55894d8185423e310d2328261aa70991ff5bb) -- refactor: webview image [`d7f4ff3`](https://github.com/zerosoul/chinese-colors/commit/d7f4ff3d838a8849b581fd74e32220f6ffe73136) -- fix: mobile image generating [`4ab9ffe`](https://github.com/zerosoul/chinese-colors/commit/4ab9ffe5c024fc1345da5a0fd2bd021289e9ad16) -- docs: add images [`4bb5c7e`](https://github.com/zerosoul/chinese-colors/commit/4bb5c7ed65addea04caee3654e3a9a5cd5ecc13c) -- Create LICENSE [`f5ba01f`](https://github.com/zerosoul/chinese-colors/commit/f5ba01f3f03620b9151005f4be5e01f830d4cf5c) -- docs: add image [`01072f8`](https://github.com/zerosoul/chinese-colors/commit/01072f8b9a52f2159af5dce897928320eb96a8e6) -- refactor: card image generating fun [`67ca696`](https://github.com/zerosoul/chinese-colors/commit/67ca69642935716ae8d44c520e9f7d14c77f32c2) -- Update README.md [`75b2566`](https://github.com/zerosoul/chinese-colors/commit/75b2566c59e843716601ba9ddc6fcf12029276f4) -- chore: remove reward [`0989fd5`](https://github.com/zerosoul/chinese-colors/commit/0989fd52389cfd2dacf53b3919ede3ee8329fac1) -- refactor: remove basename [`7091b59`](https://github.com/zerosoul/chinese-colors/commit/7091b59fb377e85b07bc7765b261dee04a2fd574) -- feat: add animate to poetry [`d9103aa`](https://github.com/zerosoul/chinese-colors/commit/d9103aadc4fa25e2493c0c080b76e4e3df21fb8b) -- refactor: remove poetry font color [`f33fed8`](https://github.com/zerosoul/chinese-colors/commit/f33fed8dc9e114e0b0c9c5c52c3c8c8d11fa5bbe) -- refactor: set poetry loading state [`ff18e93`](https://github.com/zerosoul/chinese-colors/commit/ff18e9333b38b1ebc8a45e7b4049d87690f9770b) -- fix: image zindex [`2b1298a`](https://github.com/zerosoul/chinese-colors/commit/2b1298a4cb226456ef627fcb2af2cbbf57f4110c) -- fix: this? [`05006c9`](https://github.com/zerosoul/chinese-colors/commit/05006c967b3b6767e537731f5754f7571a73d821) -- docs: change domain [`4147cc0`](https://github.com/zerosoul/chinese-colors/commit/4147cc0f2409569a45e99e76e0904ffcfff48b05) -- fix: add min height to color title [`452acbe`](https://github.com/zerosoul/chinese-colors/commit/452acbea9dd3804bd7c1b2abf4509415190306cc) -- fix: no padding [`70a517f`](https://github.com/zerosoul/chinese-colors/commit/70a517f85c146556de909b0b1daa43190a80321c) - -## [v2.0.0](https://github.com/zerosoul/chinese-colors/compare/v1.4.0...v2.0.0) - 2019-09-21 - -### Commits - -- build: update packages [`7f85973`](https://github.com/zerosoul/chinese-colors/commit/7f859737ffcf59a2eac1c3726576b50e1c33192e) -- feat: add poetry [`4f5a62c`](https://github.com/zerosoul/chinese-colors/commit/4f5a62c8f14b90ef8576a06055d4e9ecefac487e) -- fix: same hex [`2066b61`](https://github.com/zerosoul/chinese-colors/commit/2066b61d1fc92e15ea565c191947d7dc7fa46229) -- docs: update readme [`6686d36`](https://github.com/zerosoul/chinese-colors/commit/6686d366ea4de0142fde7e14292f067d012423fb) -- fix: fix merge [`0f4313d`](https://github.com/zerosoul/chinese-colors/commit/0f4313d6bdc205cd91b126e6b99328ada0550245) -- docs: add markdown lint config file [`3014b03`](https://github.com/zerosoul/chinese-colors/commit/3014b03cc71faefd97117ae5d6af493c71b68086) - -## [v1.4.0](https://github.com/zerosoul/chinese-colors/compare/v1.3.5...v1.4.0) - 2019-09-21 - -### Commits - -- refactor: change color cmyk circle to svg [`204731c`](https://github.com/zerosoul/chinese-colors/commit/204731c022804303b04c3665361794fde0a79f8a) -- refactor: color percent [`85e9d59`](https://github.com/zerosoul/chinese-colors/commit/85e9d59cfa90acd450e56a99e95f9828d872e890) -- docs: update readme [`8d97d24`](https://github.com/zerosoul/chinese-colors/commit/8d97d2463899ded3deab81c9ce5491f871879d0e) -- refactor: update UI [`b2d1797`](https://github.com/zerosoul/chinese-colors/commit/b2d1797a41db0b83e4a29cdf3ed872e4579c830b) -- feat: get the correct text color [`a4b7aed`](https://github.com/zerosoul/chinese-colors/commit/a4b7aedc758335d45fd4ef4816ecb730c1a667a5) -- docs: update readme [`27a19b8`](https://github.com/zerosoul/chinese-colors/commit/27a19b8622f5c27539c08b4f6bd294237af581f3) -- refactor: update UI [`fff1ee7`](https://github.com/zerosoul/chinese-colors/commit/fff1ee7ffd67113415a4923cf1ab26c6d854abd9) -- docs: update readme [`f3adeb5`](https://github.com/zerosoul/chinese-colors/commit/f3adeb58846cf9ace6c39322fe1c4c6c52a4864f) -- docs: update readme [`d8cc317`](https://github.com/zerosoul/chinese-colors/commit/d8cc3179fa2d4c46c7e6b09f6ee46bd9af22dd59) -- refactor: change document title splitter [`2fbf537`](https://github.com/zerosoul/chinese-colors/commit/2fbf5375de6f8cde348ed036fba2f353866a8040) -- Update README.md [`575dfde`](https://github.com/zerosoul/chinese-colors/commit/575dfdedfda19415be995827d762f7572ec5d95d) - -## [v1.3.5](https://github.com/zerosoul/chinese-colors/compare/v1.3.4...v1.3.5) - 2019-09-18 - -### Commits - -- docs: update readme [`1c8a801`](https://github.com/zerosoul/chinese-colors/commit/1c8a801a230691fbca92abde6aff7896b96c89af) - -## [v1.3.4](https://github.com/zerosoul/chinese-colors/compare/v1.3.3...v1.3.4) - 2019-09-18 - -### Commits - -- docs: update changelog [`57ac5eb`](https://github.com/zerosoul/chinese-colors/commit/57ac5eb52a19aa86856dafb7d0bb4b781fe19c90) -- docs: update readme [`286dd1a`](https://github.com/zerosoul/chinese-colors/commit/286dd1a9932ece4f18636aa70dc5e685eea92564) - -## [v1.3.3](https://github.com/zerosoul/chinese-colors/compare/v1.3.2...v1.3.3) - 2019-09-18 - -### Commits - -- build: remove redux package [`30d5d19`](https://github.com/zerosoul/chinese-colors/commit/30d5d19cd4f371e7342d08de5f7950f1479da893) -- docs: update readme [`5302da0`](https://github.com/zerosoul/chinese-colors/commit/5302da03a3cb83b6d65ebe43cc34ef54abb32f2d) - -## [v1.3.2](https://github.com/zerosoul/chinese-colors/compare/v1.3.1...v1.3.2) - 2019-09-18 - -### Commits - -- docs: add english version readme [`f0a5294`](https://github.com/zerosoul/chinese-colors/commit/f0a52945245f1f763a047807be84c3d74aebba50) - -## [v1.3.1](https://github.com/zerosoul/chinese-colors/compare/v1.3.0...v1.3.1) - 2019-09-18 - -### Commits - -- docs: update cong qian color [`149c01c`](https://github.com/zerosoul/chinese-colors/commit/149c01c99b63effecc73fd55a5aee5597a20408d) - -## [v1.3.0](https://github.com/zerosoul/chinese-colors/compare/v1.2.0...v1.3.0) - 2019-09-18 - -### Commits - -- build: update packages [`4af7157`](https://github.com/zerosoul/chinese-colors/commit/4af71576956bf98903bcf9ff7b15f5d7eeb7cb81) -- refactor: update icons [`5fc12c4`](https://github.com/zerosoul/chinese-colors/commit/5fc12c4fef2a96a33c5d6a3dbf510d08d050cfee) -- feat: code splitting with react lazy & suspense [`c5bb288`](https://github.com/zerosoul/chinese-colors/commit/c5bb2883d7a42b19c5a76e4813b74d3ab543d258) -- feat: random change theme color [`470293a`](https://github.com/zerosoul/chinese-colors/commit/470293a522324aa8fbb1ac21e579c980f3218fd8) -- docs: update change log [`7389373`](https://github.com/zerosoul/chinese-colors/commit/7389373a926c18d741c5a0c1a9d124273035ac9d) -- refactor: extract animate [`e66ba22`](https://github.com/zerosoul/chinese-colors/commit/e66ba22cfca5f16ef99e896309e08c1476191584) -- feat: add product hunt link [`2ea4210`](https://github.com/zerosoul/chinese-colors/commit/2ea42107c65e9d78d393fd46cc169df0bf09e994) -- feat: add reward image [`034f27e`](https://github.com/zerosoul/chinese-colors/commit/034f27e8c8921294c7def257814f8a2486e191a2) -- feat: add app tip [`c9327ed`](https://github.com/zerosoul/chinese-colors/commit/c9327ed11f82484588b5f557c4d8c8aea0f14da4) -- feat: copy tip add animate [`b4d364a`](https://github.com/zerosoul/chinese-colors/commit/b4d364a6ccf4bc49f3f313a5da452045754f7090) -- refactor: color change side effect [`26e87ac`](https://github.com/zerosoul/chinese-colors/commit/26e87ac353af053e48014017fad21b94c7150d81) -- feat: logo background color auto change by currColor [`6cdd539`](https://github.com/zerosoul/chinese-colors/commit/6cdd539b24afe2170ea0ad837dc490f06e458610) -- fix: enable heteronym [`0114d35`](https://github.com/zerosoul/chinese-colors/commit/0114d3536609e97e61233b9cbb494da10934c921) -- fix: download btn trigger theme color change [`f395c3c`](https://github.com/zerosoul/chinese-colors/commit/f395c3cb31fb9f904a8cab54ed095ce3f18d9e00) -- fix: update theme color when first load [`89cc8a6`](https://github.com/zerosoul/chinese-colors/commit/89cc8a60a2bcc9d0c3b7a0c8a4122fd448b5e6be) -- build: update building settings [`8785781`](https://github.com/zerosoul/chinese-colors/commit/8785781cd3f4511f3460302b0560a5d2448afb8c) -- fix: add data-html2canvas-ignore [`d28493e`](https://github.com/zerosoul/chinese-colors/commit/d28493e0db4770c72b9aec658cfcd8c8bf70ddfe) -- docs: add color image [`713cdac`](https://github.com/zerosoul/chinese-colors/commit/713cdace74f9ea54bdfd39ad3f23ef649ac8f3c5) -- docs: update readme [`cde0b79`](https://github.com/zerosoul/chinese-colors/commit/cde0b794730172a3118d8c9505d10882888bf868) -- feat: change first load color [`15c455a`](https://github.com/zerosoul/chinese-colors/commit/15c455a50786378ffab0540ab246c65bd2467b93) -- feat: add color name to document title [`8d3e2cd`](https://github.com/zerosoul/chinese-colors/commit/8d3e2cd3cc27fe99073e9ce0d9b7d13eaea24051) -- feat: update currColor when currSet changed [`9c3f9ab`](https://github.com/zerosoul/chinese-colors/commit/9c3f9aba04298a7f4aa1004b79c6ce2fd9c68cd7) - -## [v1.2.0](https://github.com/zerosoul/chinese-colors/compare/v1.1.0...v1.2.0) - 2019-09-14 - -### Commits - -- feat: add figure [`4adb4c3`](https://github.com/zerosoul/chinese-colors/commit/4adb4c35f8d1a22a783c571fa7d6050c4c4a4382) -- feat: screenshot [`8d2e950`](https://github.com/zerosoul/chinese-colors/commit/8d2e950e408ccba60b567457b3db793ded436964) -- refactor: image download [`69000ce`](https://github.com/zerosoul/chinese-colors/commit/69000ce118035833f5d6769182ea828944c4684d) -- feat: update document title [`4c1dc4e`](https://github.com/zerosoul/chinese-colors/commit/4c1dc4e2712d6b5f3de9aefd2fb9b8f62b90915b) -- feat: rename and change icon [`1ec168e`](https://github.com/zerosoul/chinese-colors/commit/1ec168eb5650c9efcca05246ab77fe5c06ac0a96) -- refactor: base64 to blob [`a61a308`](https://github.com/zerosoul/chinese-colors/commit/a61a308b6a084f74c9e11b62dfd22d21f764975b) -- feat: add default image [`8d762f3`](https://github.com/zerosoul/chinese-colors/commit/8d762f33377239309b34f4a796742b3d4782dd23) -- feat: remove divider [`18bf815`](https://github.com/zerosoul/chinese-colors/commit/18bf815eedd76bc01bb510cc30b286e662efae67) -- fix: icon width responsive [`73f22b2`](https://github.com/zerosoul/chinese-colors/commit/73f22b293c4881cb28f408a87514a43f9a42ec5c) -- docs: add two image [`8182e8a`](https://github.com/zerosoul/chinese-colors/commit/8182e8ae7627deb0d139f9d756d8e686425e1696) -- refactor: update minor UX [`abbd438`](https://github.com/zerosoul/chinese-colors/commit/abbd4380264aad31dd7b57cbd15f0f56bbbe0fa4) -- refactor: remove colorset tip [`8083b44`](https://github.com/zerosoul/chinese-colors/commit/8083b4444e5fdbb3fb81099505cba7cfc787b4b6) -- docs: update readme.md [`455c116`](https://github.com/zerosoul/chinese-colors/commit/455c1162018a4b67af0c7954b7e19bee04c42400) -- refactor: update micro UI [`0adacd1`](https://github.com/zerosoul/chinese-colors/commit/0adacd11bd6734c3a58c107d16ace70d40dea9b4) -- docs: add image [`cb4ecad`](https://github.com/zerosoul/chinese-colors/commit/cb4ecada2f47aa662debf009dd01c08ec1f3d399) -- feat: capitalize the pinyin [`45ace39`](https://github.com/zerosoul/chinese-colors/commit/45ace39b00ee621160c9f44e7d397826abf71425) -- fix: add top padding [`ea6536d`](https://github.com/zerosoul/chinese-colors/commit/ea6536dac5f8aac4c604dbf846802443b45e1bf5) -- feat: hide header when mobile [`79f72cc`](https://github.com/zerosoul/chinese-colors/commit/79f72cc86b743f39017eacd864c8072e0e318978) -- docs: update readme [`6a1ad81`](https://github.com/zerosoul/chinese-colors/commit/6a1ad8173df47616ba69ac65f25ae03a88ae5548) -- docs: update inspired [`ea53dd7`](https://github.com/zerosoul/chinese-colors/commit/ea53dd71dc205eb7a1bdf6eebf0eea37c8b52bff) -- feat: add intro title [`7ce2b03`](https://github.com/zerosoul/chinese-colors/commit/7ce2b03f7ec820bdd3236926d5f2cb3caf034b10) -- docs: update readme [`fbf6f25`](https://github.com/zerosoul/chinese-colors/commit/fbf6f25e78c1a7dacb5dea29cc3fbb5a5e4a729c) -- docs: add image [`a609512`](https://github.com/zerosoul/chinese-colors/commit/a60951203aab541a554d8e5a2305bbc29ac545e4) -- feat: add column margin [`724ef9f`](https://github.com/zerosoul/chinese-colors/commit/724ef9f032bc9b9ab56d1a42bd3f659969ce4dc6) -- refactor: useMobile update the width [`dca6098`](https://github.com/zerosoul/chinese-colors/commit/dca6098f0c37fa23a9c167f47cd0edf18d643ea9) -- docs: add image [`06721ad`](https://github.com/zerosoul/chinese-colors/commit/06721add65e817f722d34486a44fcd9a7cf47f54) - -## [v1.1.0](https://github.com/zerosoul/chinese-colors/compare/v1.0.0...v1.1.0) - 2019-09-11 - -### Commits - -- feat: add favorite & copy hex [`ca9f58e`](https://github.com/zerosoul/chinese-colors/commit/ca9f58e7ec771a92664734fdc0595bf6657f969c) -- feat: update color set ux [`12bca72`](https://github.com/zerosoul/chinese-colors/commit/12bca721379c6aff9e9f233f68da0cfebe2cd2f2) -- feat: add no fav tip [`fb2812e`](https://github.com/zerosoul/chinese-colors/commit/fb2812e91f9ce418864048145bb4b17751b452de) -- feat: add tranditional Chinese font [`146e836`](https://github.com/zerosoul/chinese-colors/commit/146e836b3a16c9645d91f143faf7f908015a146a) -- refactor: adjust box-shadow [`d09bfd3`](https://github.com/zerosoul/chinese-colors/commit/d09bfd3bb3e79869ce222c4e1e048d5fd1ac9c7e) -- fix: set width bigger [`9824e4c`](https://github.com/zerosoul/chinese-colors/commit/9824e4c0b74c7bad3e02b47a773e064a2125a037) -- fix: mobile columns chaos [`1daccbb`](https://github.com/zerosoul/chinese-colors/commit/1daccbb118a4b22efccaf100cbe90bc29b9b59a9) - -## v1.0.0 - 2019-09-10 - -### Commits - -- Initial commit [`cf0e4a7`](https://github.com/zerosoul/chinese-colors/commit/cf0e4a7ad2584ad3cee8ce7f8b11e7ad81b1191d) -- feat: first blood [`8cb20a1`](https://github.com/zerosoul/chinese-colors/commit/8cb20a1cc035a59167ea3332d9054efe8518bb66) -- build: update packages [`ce51554`](https://github.com/zerosoul/chinese-colors/commit/ce515545247f79b85b46ab0261226aee0562f834) -- refactor: change color source [`dcb50b0`](https://github.com/zerosoul/chinese-colors/commit/dcb50b009966efbf72a3c4b831685315a0c5671c) -- feat: second blood [`c6f3e0d`](https://github.com/zerosoul/chinese-colors/commit/c6f3e0da3dfda41b915ea4a3ef8cf4345525e300) -- feat: modal & texture & style [`5bc5969`](https://github.com/zerosoul/chinese-colors/commit/5bc596925956460552c1dc19a7965251865cf73a) -- feat: update workbox setting [`0af7bf2`](https://github.com/zerosoul/chinese-colors/commit/0af7bf22ebb641ee68f3ca76ad116b226ce97e64) -- refactor: modal & param style [`9bd8b27`](https://github.com/zerosoul/chinese-colors/commit/9bd8b27a11a788b676d8ce3765404d96309c562e) -- refactor: color click response delay [`ff1b0c0`](https://github.com/zerosoul/chinese-colors/commit/ff1b0c0290e395ae9e34e82e0cc97e832ded7f25) -- chore: unused code [`09665b1`](https://github.com/zerosoul/chinese-colors/commit/09665b141715ab9307d5278a24473a0706c9e056) -- docs: readme.md [`3a53a7b`](https://github.com/zerosoul/chinese-colors/commit/3a53a7b4902f52dcd4b174b7f31b46496b90da46) -- feat: updates [`da0f209`](https://github.com/zerosoul/chinese-colors/commit/da0f2095a474c3a9a37117ba6d648bde87b8e7dc) -- feat: scrollIntoView when page load [`18ccce4`](https://github.com/zerosoul/chinese-colors/commit/18ccce452cef4727abf0d890fdb974b5d528d23c) -- refactor: update UI [`089694e`](https://github.com/zerosoul/chinese-colors/commit/089694e2fdcff30aed9c47d3e09c8b4e25466522) -- docs: update readme [`ca652cf`](https://github.com/zerosoul/chinese-colors/commit/ca652cf2c4d0abec5aa55f778113e855191da3e5) -- fix: update package name [`0124081`](https://github.com/zerosoul/chinese-colors/commit/0124081066742d1dfc60d1c087c3b7290f48a7c9) -- feat: show all colors [`7d141ca`](https://github.com/zerosoul/chinese-colors/commit/7d141ca49064eca5e02ff19108f90f1afa560c34) -- docs: update readme [`63c6fef`](https://github.com/zerosoul/chinese-colors/commit/63c6feff9554de286ccf99424b1aaefbd3526b68) -- fix: update style [`ac28698`](https://github.com/zerosoul/chinese-colors/commit/ac28698ad3128fa77ce963c522e55d528a476f18) -- feat: remove special font [`9f26656`](https://github.com/zerosoul/chinese-colors/commit/9f26656966555be49fa3cc37746a1352aa9be242) -- feat: reg sw [`9f47fc0`](https://github.com/zerosoul/chinese-colors/commit/9f47fc0b4885dcd0a0273fc8705c3475cc015fb3) -- build: exclude index.html cache [`4747ad4`](https://github.com/zerosoul/chinese-colors/commit/4747ad43bf49e4613d0c7355f95df4f75856fc1e) -- fix: prod check [`bcd4b72`](https://github.com/zerosoul/chinese-colors/commit/bcd4b7289445658a2b10f7a2d71605b15bbeb257) -- Update README.md [`0aa6efb`](https://github.com/zerosoul/chinese-colors/commit/0aa6efbf6e6e94cb6da59aa40283727a7b719939) -- fix: add root path exclude cache [`dc96ec4`](https://github.com/zerosoul/chinese-colors/commit/dc96ec4609f1d80529ef3a396561a6d54d391400) -- Update README.md [`e1bbfaa`](https://github.com/zerosoul/chinese-colors/commit/e1bbfaa3a6e88570a0e3cbe4ec2dab63a05ed979) -- fix: touch flash [`d8f7379`](https://github.com/zerosoul/chinese-colors/commit/d8f73796e1ed3c804f6684a328a975c2bae66925) -- fix: color height: align-self: flex-start [`3eae222`](https://github.com/zerosoul/chinese-colors/commit/3eae222f427ff49a027fc106626cdb0773197320) -- feat: change bg [`d5a982f`](https://github.com/zerosoul/chinese-colors/commit/d5a982f43cff1dd06b867ee1227d69705169bccd) diff --git a/babel.config.js b/babel.config.js deleted file mode 100644 index 13eec32..0000000 --- a/babel.config.js +++ /dev/null @@ -1,28 +0,0 @@ -const presets = [ - [ - '@babel/preset-env', - { - modules: false, - useBuiltIns: 'usage', - corejs: 3, - targets: { - chrome: 70 - } - } - ], - [ - '@babel/preset-react', - { - runtime: 'automatic' - } - ] -]; -const plugins = [ - process.env.NODE_ENV == 'development' && 'react-refresh/babel', - '@babel/plugin-syntax-dynamic-import', - '@babel/plugin-proposal-class-properties', - '@babel/plugin-proposal-json-strings', - '@babel/plugin-proposal-nullish-coalescing-operator' -].filter(Boolean); - -module.exports = { presets, plugins }; diff --git a/changelog.template.hbs b/changelog.template.hbs deleted file mode 100644 index ec44184..0000000 --- a/changelog.template.hbs +++ /dev/null @@ -1,36 +0,0 @@ -# Changelog - -Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). - -{{#each releases}} -{{#if href}} -## [{{title}}]({{href}}){{#if tag}} - {{isoDate}}{{/if}} -{{else}} -## {{title}}{{#if tag}} - {{isoDate}}{{/if}} -{{/if}} - -{{#if summary}} -{{summary}} -{{/if}} - -{{#if merges}} -### Merged - -{{#each merges}} -- {{{message}}} {{#if href}}[`#{{id}}`]({{href}}){{/if}} -{{/each}} -{{/if}} - -{{#if fixes}} -### Fixed - -{{#each fixes}} -- {{{commit.subject}}}{{#each fixes}} {{#if href}}[`#{{id}}`]({{href}}){{/if}}{{/each}} -{{/each}} -{{/if}} - -{{#commit-list commits heading='### Commits'}} -- {{#if breaking}}**Breaking change:** {{/if}}{{{subject}}} {{#if href}}[`{{shorthash}}`]({{href}}){{/if}} -{{/commit-list}} - -{{/each}} diff --git a/commitlint.config.js b/commitlint.config.js deleted file mode 100644 index 422b194..0000000 --- a/commitlint.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = { extends: ['@commitlint/config-conventional'] }; diff --git a/config/env.js b/config/env.js deleted file mode 100644 index 3d1411b..0000000 --- a/config/env.js +++ /dev/null @@ -1,106 +0,0 @@ -'use strict'; - -const fs = require('fs'); -const path = require('path'); -const paths = require('./paths'); - -// Make sure that including paths.js after env.js will read .env variables. -delete require.cache[require.resolve('./paths')]; - -const NODE_ENV = process.env.NODE_ENV; -if (!NODE_ENV) { - throw new Error( - 'The NODE_ENV environment variable is required but was not specified.' - ); -} - -// https://github.com/bkeepers/dotenv#what-other-env-files-can-i-use -const dotenvFiles = [ - `${paths.dotenv}.${NODE_ENV}.local`, - // Don't include `.env.local` for `test` environment - // since normally you expect tests to produce the same - // results for everyone - NODE_ENV !== 'test' && `${paths.dotenv}.local`, - `${paths.dotenv}.${NODE_ENV}`, - paths.dotenv, -].filter(Boolean); - -// Load environment variables from .env* files. Suppress warnings using silent -// if this file is missing. dotenv will never modify any environment variables -// that have already been set. Variable expansion is supported in .env files. -// https://github.com/motdotla/dotenv -// https://github.com/motdotla/dotenv-expand -dotenvFiles.forEach(dotenvFile => { - if (fs.existsSync(dotenvFile)) { - require('dotenv-expand')( - require('dotenv').config({ - path: dotenvFile, - }) - ); - } -}); - -// We support resolving modules according to `NODE_PATH`. -// This lets you use absolute paths in imports inside large monorepos: -// https://github.com/facebook/create-react-app/issues/253. -// It works similar to `NODE_PATH` in Node itself: -// https://nodejs.org/api/modules.html#modules_loading_from_the_global_folders -// Note that unlike in Node, only *relative* paths from `NODE_PATH` are honored. -// Otherwise, we risk importing Node.js core modules into an app instead of webpack shims. -// https://github.com/facebook/create-react-app/issues/1023#issuecomment-265344421 -// We also resolve them to make sure all tools using them work consistently. -const appDirectory = fs.realpathSync(process.cwd()); -process.env.NODE_PATH = (process.env.NODE_PATH || '') - .split(path.delimiter) - .filter(folder => folder && !path.isAbsolute(folder)) - .map(folder => path.resolve(appDirectory, folder)) - .join(path.delimiter); - -// Grab NODE_ENV and REACT_APP_* environment variables and prepare them to be -// injected into the application via DefinePlugin in webpack configuration. -const REACT_APP = /^REACT_APP_/i; - -function getClientEnvironment(publicUrl) { - const raw = Object.keys(process.env) - .filter(key => REACT_APP.test(key)) - .reduce( - (env, key) => { - env[key] = process.env[key]; - return env; - }, - { - // Useful for determining whether we’re running in production mode. - // Most importantly, it switches React into the correct mode. - NODE_ENV: process.env.NODE_ENV || 'development', - // Useful for resolving the correct path to static assets in `public`. - // For example, . - // This should only be used as an escape hatch. Normally you would put - // images into the `src` and `import` them in code to get their paths. - PUBLIC_URL: publicUrl, - // We support configuring the sockjs pathname during development. - // These settings let a developer run multiple simultaneous projects. - // They are used as the connection `hostname`, `pathname` and `port` - // in webpackHotDevClient. They are used as the `sockHost`, `sockPath` - // and `sockPort` options in webpack-dev-server. - WDS_SOCKET_HOST: process.env.WDS_SOCKET_HOST, - WDS_SOCKET_PATH: process.env.WDS_SOCKET_PATH, - WDS_SOCKET_PORT: process.env.WDS_SOCKET_PORT, - // Whether or not react-refresh is enabled. - // react-refresh is not 100% stable at this time, - // which is why it's disabled by default. - // It is defined here so it is available in the webpackHotDevClient. - FAST_REFRESH: process.env.FAST_REFRESH !== 'false', - } - ); - // Stringify all values so we can feed into webpack DefinePlugin - const stringified = { - 'process.env': Object.keys(raw).reduce((env, key) => { - env[key] = JSON.stringify(raw[key]); - return env; - }, {}), - }; - - return { raw, stringified }; -} - -module.exports = getClientEnvironment; diff --git a/config/getHttpsConfig.js b/config/getHttpsConfig.js deleted file mode 100644 index 013d493..0000000 --- a/config/getHttpsConfig.js +++ /dev/null @@ -1,66 +0,0 @@ -'use strict'; - -const fs = require('fs'); -const path = require('path'); -const crypto = require('crypto'); -const chalk = require('react-dev-utils/chalk'); -const paths = require('./paths'); - -// Ensure the certificate and key provided are valid and if not -// throw an easy to debug error -function validateKeyAndCerts({ cert, key, keyFile, crtFile }) { - let encrypted; - try { - // publicEncrypt will throw an error with an invalid cert - encrypted = crypto.publicEncrypt(cert, Buffer.from('test')); - } catch (err) { - throw new Error( - `The certificate "${chalk.yellow(crtFile)}" is invalid.\n${err.message}` - ); - } - - try { - // privateDecrypt will throw an error with an invalid key - crypto.privateDecrypt(key, encrypted); - } catch (err) { - throw new Error( - `The certificate key "${chalk.yellow(keyFile)}" is invalid.\n${ - err.message - }` - ); - } -} - -// Read file and throw an error if it doesn't exist -function readEnvFile(file, type) { - if (!fs.existsSync(file)) { - throw new Error( - `You specified ${chalk.cyan( - type - )} in your env, but the file "${chalk.yellow(file)}" can't be found.` - ); - } - return fs.readFileSync(file); -} - -// Get the https config -// Return cert files if provided in env, otherwise just true or false -function getHttpsConfig() { - const { SSL_CRT_FILE, SSL_KEY_FILE, HTTPS } = process.env; - const isHttps = HTTPS === 'true'; - - if (isHttps && SSL_CRT_FILE && SSL_KEY_FILE) { - const crtFile = path.resolve(paths.appPath, SSL_CRT_FILE); - const keyFile = path.resolve(paths.appPath, SSL_KEY_FILE); - const config = { - cert: readEnvFile(crtFile, 'SSL_CRT_FILE'), - key: readEnvFile(keyFile, 'SSL_KEY_FILE'), - }; - - validateKeyAndCerts({ ...config, keyFile, crtFile }); - return config; - } - return isHttps; -} - -module.exports = getHttpsConfig; diff --git a/config/modules.js b/config/modules.js deleted file mode 100644 index 7005858..0000000 --- a/config/modules.js +++ /dev/null @@ -1,112 +0,0 @@ -"use strict"; - -const fs = require("fs"); -const path = require("path"); -const paths = require("./paths"); -const chalk = require("react-dev-utils/chalk"); -const resolve = require("resolve"); - -/** - * Get additional module paths based on the baseUrl of a compilerOptions object. - * - * @param {Object} options - */ -function getAdditionalModulePaths(options = {}) { - const baseUrl = options.baseUrl; - - if (!baseUrl) { - return ""; - } - - const baseUrlResolved = path.resolve(paths.appPath, baseUrl); - - // We don't need to do anything if `baseUrl` is set to `node_modules`. This is - // the default behavior. - if (path.relative(paths.appNodeModules, baseUrlResolved) === "") { - return null; - } - - // Allow the user set the `baseUrl` to `appSrc`. - if (path.relative(paths.appSrc, baseUrlResolved) === "") { - return [paths.appSrc]; - } - - // If the path is equal to the root directory we ignore it here. - // We don't want to allow importing from the root directly as source files are - // not transpiled outside of `src`. We do allow importing them with the - // absolute path (e.g. `src/Components/Button.js`) but we set that up with - // an alias. - if (path.relative(paths.appPath, baseUrlResolved) === "") { - return null; - } - - // Otherwise, throw an error. - throw new Error( - chalk.red.bold( - "Your project's `baseUrl` can only be set to `src` or `node_modules`." + - " Create React App does not support other values at this time." - ) - ); -} - -/** - * Get webpack aliases based on the baseUrl of a compilerOptions object. - * - * @param {*} options - */ -function getWebpackAliases(options = {}) { - const baseUrl = options.baseUrl; - - if (!baseUrl) { - return {}; - } - - const baseUrlResolved = path.resolve(paths.appPath, baseUrl); - - if (path.relative(paths.appPath, baseUrlResolved) === "") { - return { - src: paths.appSrc, - }; - } -} - -function getModules() { - // Check if TypeScript is setup - const hasTsConfig = fs.existsSync(paths.appTsConfig); - const hasJsConfig = fs.existsSync(paths.appJsConfig); - - if (hasTsConfig && hasJsConfig) { - throw new Error( - "You have both a tsconfig.json and a jsconfig.json. If you are using TypeScript please remove your jsconfig.json file." - ); - } - - let config; - - // If there's a tsconfig.json we assume it's a - // TypeScript project and set up the config - // based on tsconfig.json - if (hasTsConfig) { - const ts = require(resolve.sync("typescript", { - basedir: paths.appNodeModules, - })); - config = ts.readConfigFile(paths.appTsConfig, ts.sys.readFile).config; - // Otherwise we'll check if there is jsconfig.json - // for non TS projects. - } else if (hasJsConfig) { - config = require(paths.appJsConfig); - } - - config = config || {}; - const options = config.compilerOptions || {}; - - const additionalModulePaths = getAdditionalModulePaths(options); - - return { - additionalModulePaths: additionalModulePaths, - webpackAliases: getWebpackAliases(options), - hasTsConfig, - }; -} - -module.exports = getModules(); diff --git a/config/paths.js b/config/paths.js deleted file mode 100644 index e797679..0000000 --- a/config/paths.js +++ /dev/null @@ -1,68 +0,0 @@ -const path = require("path"); -const fs = require("fs"); -const getPublicUrlOrPath = require("react-dev-utils/getPublicUrlOrPath"); - -// Make sure any symlinks in the project folder are resolved: -// https://github.com/facebook/create-react-app/issues/637 -const appDirectory = fs.realpathSync(process.cwd()); -const resolveApp = (relativePath) => path.resolve(appDirectory, relativePath); - -// We use `PUBLIC_URL` environment variable or "homepage" field to infer -// "public path" at which the app is served. -// webpack needs to know it to put the right + + +
+ + + + + + + +