From 3944037158908849899f701d63378a283d9767e1 Mon Sep 17 00:00:00 2001 From: alfredpichard Date: Thu, 6 Jul 2023 16:04:16 +0200 Subject: [PATCH 01/11] =?UTF-8?q?=F0=9F=A7=90(frontend)=20report=20grommet?= =?UTF-8?q?=20components?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit add a new config file for react-scanner to report the grommet components in marsha frontend. Ultimately, we would like to reduce the number of grommet components that we use in marsha. This first step gives us a state of the art of the current presence of it in our code. --- react-scanner.config.js | 7 ++++ report.json | 65 ++++++++++++++++++++++++++++++++ src/frontend/package.json | 1 + src/frontend/yarn.lock | 78 ++++++++++++++++++++++++++++++++++++--- 4 files changed, 146 insertions(+), 5 deletions(-) create mode 100644 react-scanner.config.js create mode 100644 report.json diff --git a/react-scanner.config.js b/react-scanner.config.js new file mode 100644 index 0000000000..1fdaebac9b --- /dev/null +++ b/react-scanner.config.js @@ -0,0 +1,7 @@ +module.exports = { + crawlFrom: "./src/frontend/", + includeSubComponents: true, + exclude: [/^(.*)node_modules([\s\S]*)$/], + importedFrom: /^(.*)grommet([\s\S]*)$/, + processors: [["count-components", { outputTo: "./report.json" }]], +}; diff --git a/report.json b/report.json new file mode 100644 index 0000000000..21bb5e1b96 --- /dev/null +++ b/report.json @@ -0,0 +1,65 @@ +{ + "Box": 560, + "Text": 153, + "Button": 90, + "Heading": 47, + "Paragraph": 42, + "TextInput": 21, + "Stack": 18, + "FormField": 17, + "Spinner": 17, + "Tab": 15, + "Select": 12, + "Form": 10, + "Grid": 10, + "CheckBox": 9, + "ThemeContext.Extend": 9, + "Image": 8, + "Alert": 7, + "AddCircle": 6, + "Grommet": 6, + "Tabs": 6, + "TextArea": 6, + "Anchor": 5, + "Layer": 5, + "Clock": 3, + "DropButton": 3, + "FormView": 3, + "Hide": 3, + "Meter": 3, + "Pagination": 3, + "CardBody": 2, + "Collapsible": 2, + "Document": 2, + "DocumentStore": 2, + "Footer": 2, + "FormClose": 2, + "Schedule": 2, + "StatusGoodSmall": 2, + "CardFooter": 1, + "CardHeader": 1, + "CircleAlert": 1, + "Clear": 1, + "DateInput": 1, + "DocumentText": 1, + "Facebook": 1, + "Filter": 1, + "FormCheckmark": 1, + "FormRefresh": 1, + "FormSchedule": 1, + "Github": 1, + "InProgress": 1, + "Linkedin": 1, + "Mail": 1, + "Menu": 1, + "Nav": 1, + "RadioButton": 1, + "ResponsiveContext.Provider": 1, + "Search": 1, + "SettingsOption": 1, + "StatusGood": 1, + "TextWrap": 1, + "Tip": 1, + "Trash": 1, + "Twitter": 1 +} \ No newline at end of file diff --git a/src/frontend/package.json b/src/frontend/package.json index 92453442e3..162ce9ac6c 100644 --- a/src/frontend/package.json +++ b/src/frontend/package.json @@ -75,6 +75,7 @@ }, "dependencies": { "cljs-merge": "1.1.1", + "react-scanner": "^1.1.0", "yargs": "17.7.2" }, "volta": { diff --git a/src/frontend/yarn.lock b/src/frontend/yarn.lock index f91b50f993..b456bebb45 100644 --- a/src/frontend/yarn.lock +++ b/src/frontend/yarn.lock @@ -5085,6 +5085,11 @@ resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.39.tgz#e177e699ee1b8c22d23174caaa7422644389509f" integrity sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw== +"@types/estree@^0.0.45": + version "0.0.45" + resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.45.tgz#e9387572998e5ecdac221950dab3e8c3b16af884" + integrity sha512-jnqIUKDUqJbDIUxm0Uj7bnlMnRm1T/eZ9N+AVMqhPgzrba2GhGG5o/jCTwmdPK709nEZsGoMzXEDUjcXHa3W0g== + "@types/express-serve-static-core@*", "@types/express-serve-static-core@^4.17.31": version "4.17.32" resolved "https://registry.yarnpkg.com/@types/express-serve-static-core/-/express-serve-static-core-4.17.32.tgz#93dda387f5516af616d8d3f05f2c4c79d81e1b82" @@ -5632,6 +5637,11 @@ debug "^4.3.4" ts-api-utils "^1.0.1" +"@typescript-eslint/types@5.20.0": + version "5.20.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.20.0.tgz#fa39c3c2aa786568302318f1cb51fcf64258c20c" + integrity sha512-+d8wprF9GyvPwtoB4CxBAR/s0rpP25XKgnOvMf/gMXYDvlUC3rPFHupdTQ/ow9vn7UDe5rX02ovGYQbv/IUCbg== + "@typescript-eslint/types@5.48.2": version "5.48.2" resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.48.2.tgz#635706abb1ec164137f92148f06f794438c97b8e" @@ -5647,6 +5657,19 @@ resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-6.13.1.tgz#b56f26130e7eb8fa1e429c75fb969cae6ad7bb5c" integrity sha512-gjeEskSmiEKKFIbnhDXUyiqVma1gRCQNbVZ1C8q7Zjcxh3WZMbzWVfGE9rHfWd1msQtPS0BVD9Jz9jded44eKg== +"@typescript-eslint/typescript-estree@5.20.0": + version "5.20.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.20.0.tgz#ab73686ab18c8781bbf249c9459a55dc9417d6b0" + integrity sha512-36xLjP/+bXusLMrT9fMMYy1KJAGgHhlER2TqpUVDYUQg4w0q/NW/sg4UGAgVwAqb8V4zYg43KMUpM8vV2lve6w== + dependencies: + "@typescript-eslint/types" "5.20.0" + "@typescript-eslint/visitor-keys" "5.20.0" + debug "^4.3.2" + globby "^11.0.4" + is-glob "^4.0.3" + semver "^7.3.5" + tsutils "^3.21.0" + "@typescript-eslint/typescript-estree@5.48.2": version "5.48.2" resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.48.2.tgz#6e206b462942b32383582a6c9251c05021cc21b0" @@ -5727,6 +5750,14 @@ eslint-scope "^5.1.1" semver "^7.3.7" +"@typescript-eslint/visitor-keys@5.20.0": + version "5.20.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.20.0.tgz#70236b5c6b67fbaf8b2f58bf3414b76c1e826c2a" + integrity sha512-1flRpNF+0CAQkMNlTJ6L/Z5jiODG/e5+7mk6XwtPOUS3UrTz3UOiAg9jG2VtKsWI6rZQfy4C6a232QNRZTRGlg== + dependencies: + "@typescript-eslint/types" "5.20.0" + eslint-visitor-keys "^3.0.0" + "@typescript-eslint/visitor-keys@5.48.2": version "5.48.2" resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.48.2.tgz#c247582a0bcce467461d7b696513bf9455000060" @@ -6278,6 +6309,13 @@ ast-types-flow@^0.0.7: resolved "https://registry.yarnpkg.com/ast-types-flow/-/ast-types-flow-0.0.7.tgz#f70b735c6bca1a5c9c22d982c3e39e7feba3bdad" integrity sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag== +astray@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/astray/-/astray-1.1.1.tgz#ca3cc638395efa5d5083019d9f5d70e60f9cf684" + integrity sha512-LizvbENqdc8tdvrms/YyYoTtlr43INJni4YZSFr8nNdfOgafi82Hcrfhjm0MdwLhRFBrDhRwtH/0fnntlESxsQ== + optionalDependencies: + "@types/estree" "^0.0.45" + astring@^1.8.0: version "1.8.3" resolved "https://registry.yarnpkg.com/astring/-/astring-1.8.3.tgz#1a0ae738c7cc558f8e5ddc8e3120636f5cebcb85" @@ -8405,7 +8443,7 @@ dir-glob@^3.0.1: dependencies: path-type "^4.0.0" -dlv@^1.1.3: +dlv@1.1.3, dlv@^1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/dlv/-/dlv-1.1.3.tgz#5c198a8a11453596e751494d49874bc7732f2e79" integrity sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA== @@ -8565,6 +8603,11 @@ downshift@8.2.3: react-is "^18.2.0" tslib "^2.6.2" +dset@3.1.2: + version "3.1.2" + resolved "https://registry.yarnpkg.com/dset/-/dset-3.1.2.tgz#89c436ca6450398396dc6538ea00abc0c54cd45a" + integrity sha512-g/M9sqy3oHe477Ar4voQxWtaPIFw1jTdKZuomOjhCcBx9nHUNn0pu6NopuFFrTh/TRZIKEj+76vLWFu9BNKk+Q== + duplexer@^0.1.2: version "0.1.2" resolved "https://registry.yarnpkg.com/duplexer/-/duplexer-0.1.2.tgz#3abe43aef3835f8ae077d136ddce0f276b0400e6" @@ -9001,7 +9044,7 @@ eslint-visitor-keys@^2.0.0, eslint-visitor-keys@^2.1.0: resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz#f65328259305927392c938ed44eb0a5c9b2bd303" integrity sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw== -eslint-visitor-keys@^3.3.0, eslint-visitor-keys@^3.4.1, eslint-visitor-keys@^3.4.3: +eslint-visitor-keys@^3.0.0, eslint-visitor-keys@^3.3.0, eslint-visitor-keys@^3.4.1, eslint-visitor-keys@^3.4.3: version "3.4.3" resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz#0cd72fe8550e3c2eae156a96a4dddcd1c8ac5800" integrity sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag== @@ -9334,6 +9377,11 @@ fb-watchman@^2.0.0: dependencies: bser "2.1.1" +fdir@5.2.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/fdir/-/fdir-5.2.0.tgz#5b3d6ae282f8bc0ef48bf913d46f9e08496304ea" + integrity sha512-skyI2Laxtj9GYzmktPgY6DT8uswXq+VoxH26SskykvEhTSbi7tRM/787uZt/p8maxrQCJdzC90zX1btbxiJ6lw== + fetch-mock@9.11.0: version "9.11.0" resolved "https://registry.yarnpkg.com/fetch-mock/-/fetch-mock-9.11.0.tgz#371c6fb7d45584d2ae4a18ee6824e7ad4b637a3f" @@ -10637,6 +10685,11 @@ is-plain-obj@^4.0.0: resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-4.1.0.tgz#d65025edec3657ce032fd7db63c97883eaed71f0" integrity sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg== +is-plain-object@5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-5.0.0.tgz#4427f50ab3429e9025ea7d52e9043a9ef4159344" + integrity sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q== + is-plain-object@^2.0.4: version "2.0.4" resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677" @@ -13684,7 +13737,7 @@ picocolors@^1.0.0: resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c" integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ== -picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.2, picomatch@^2.2.3, picomatch@^2.3.1: +picomatch@2.3.1, picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.2, picomatch@^2.2.3, picomatch@^2.3.1: version "2.3.1" resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== @@ -14759,6 +14812,21 @@ react-router@6.19.0: dependencies: "@remix-run/router" "1.12.0" +react-scanner@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/react-scanner/-/react-scanner-1.1.0.tgz#6246a8ef2ac18e77de0f78b70f03d77adc1bdea6" + integrity sha512-27G8K1TJ4FUp9+Ix5mkwhWnFdoIwYj95Ffwom0gWh3V+7zds1SRfbbRzi89EXMtZj9IiLhgEyBOBy/k6IysGNg== + dependencies: + "@typescript-eslint/typescript-estree" "5.20.0" + astray "1.1.1" + dlv "1.1.3" + dset "3.1.2" + fdir "5.2.0" + is-plain-object "5.0.0" + picomatch "2.3.1" + sade "1.8.1" + typescript "4.6.3" + react-scripts@5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/react-scripts/-/react-scripts-5.0.1.tgz#6285dbd65a8ba6e49ca8d651ce30645a6d980003" @@ -15294,7 +15362,7 @@ rw@1: resolved "https://registry.yarnpkg.com/rw/-/rw-1.3.3.tgz#3f862dfa91ab766b14885ef4d01124bfda074fb4" integrity sha512-PdhdWy89SiZogBLaw42zdeqtRJ//zFd2PgQavcICDUgJT5oW10QCRKbJ6bg4r0/UY2M6BWd5tkxuGFRvCkgfHQ== -sade@^1.7.3: +sade@1.8.1, sade@^1.7.3: version "1.8.1" resolved "https://registry.yarnpkg.com/sade/-/sade-1.8.1.tgz#0a78e81d658d394887be57d2a409bf703a3b2701" integrity sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A== @@ -16486,7 +16554,7 @@ typedarray-to-buffer@^3.1.5: dependencies: is-typedarray "^1.0.0" -typescript@*, typescript@5, typescript@5.3.2, typescript@^4.0: +typescript@*, typescript@4.6.3, typescript@5, typescript@5.3.2, typescript@^4.0: version "5.3.2" resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.3.2.tgz#00d1c7c1c46928c5845c1ee8d0cc2791031d4c43" integrity sha512-6l+RyNy7oAHDfxC4FzSJcz9vnjTKxrLpDG5M2Vu4SHRVNg6xzqZp6LYSR9zjqQTu8DU/f5xwxUdADOkbrIX2gQ== From f9ba34fdebfd996632a4056318a9c1859c82762b Mon Sep 17 00:00:00 2001 From: Anthony Le Courric Date: Tue, 26 Sep 2023 12:20:17 +0200 Subject: [PATCH 02/11] =?UTF-8?q?=F0=9F=94=A7(frontend)=20add=20command=20?= =?UTF-8?q?grommet-scan=20to=20package.json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Move config files to src/frontend - Move report.json to src/frontend - Add command grommet-scan to package.json --- src/frontend/package.json | 3 ++- .../frontend/react-scanner.config.js | 2 +- report.json => src/frontend/report.json | 0 3 files changed, 3 insertions(+), 2 deletions(-) rename react-scanner.config.js => src/frontend/react-scanner.config.js (86%) rename report.json => src/frontend/report.json (100%) diff --git a/src/frontend/package.json b/src/frontend/package.json index 162ce9ac6c..cd4a1dd542 100644 --- a/src/frontend/package.json +++ b/src/frontend/package.json @@ -33,7 +33,8 @@ "build-lti": "yarn workspace marsha run build", "build-site": "yarn workspace standalone_site run build", "start-site": "yarn workspace standalone_site run start", - "prettier": "yarn workspace lib-components run prettier && yarn workspace lib-classroom run prettier && yarn workspace lib-common run prettier && yarn workspace lib-markdown run prettier && yarn workspace lib-tests run prettier && yarn workspace lib-video run prettier" + "prettier": "yarn workspace lib-components run prettier && yarn workspace lib-classroom run prettier && yarn workspace lib-common run prettier && yarn workspace lib-markdown run prettier && yarn workspace lib-tests run prettier && yarn workspace lib-video run prettier", + "grommet-scan": "react-scanner -c ./react-scanner.config.js" }, "resolutions": { "@babel/plugin-proposal-private-property-in-object": "7.21.11", diff --git a/react-scanner.config.js b/src/frontend/react-scanner.config.js similarity index 86% rename from react-scanner.config.js rename to src/frontend/react-scanner.config.js index 1fdaebac9b..670172a8ea 100644 --- a/react-scanner.config.js +++ b/src/frontend/react-scanner.config.js @@ -1,5 +1,5 @@ module.exports = { - crawlFrom: "./src/frontend/", + crawlFrom: "./", includeSubComponents: true, exclude: [/^(.*)node_modules([\s\S]*)$/], importedFrom: /^(.*)grommet([\s\S]*)$/, diff --git a/report.json b/src/frontend/report.json similarity index 100% rename from report.json rename to src/frontend/report.json From 11d1b8eead4970ad8ba3ded1d2390433cca80798 Mon Sep 17 00:00:00 2001 From: Anthony Le Courric Date: Tue, 26 Sep 2023 12:22:19 +0200 Subject: [PATCH 03/11] =?UTF-8?q?=F0=9F=A9=BA(grommet)=20report=2026/09/20?= =?UTF-8?q?23?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Report for 26/09/2023 about the grommet component left. --- src/frontend/report.json | 36 +++++++++++++++--------------------- 1 file changed, 15 insertions(+), 21 deletions(-) diff --git a/src/frontend/report.json b/src/frontend/report.json index 21bb5e1b96..02659cc5cf 100644 --- a/src/frontend/report.json +++ b/src/frontend/report.json @@ -1,46 +1,42 @@ { - "Box": 560, - "Text": 153, - "Button": 90, - "Heading": 47, + "Box": 513, + "Text": 138, + "Button": 83, "Paragraph": 42, - "TextInput": 21, - "Stack": 18, - "FormField": 17, - "Spinner": 17, + "Stack": 17, + "Spinner": 16, "Tab": 15, - "Select": 12, - "Form": 10, "Grid": 10, - "CheckBox": 9, - "ThemeContext.Extend": 9, - "Image": 8, + "ThemeContext.Extend": 10, + "Image": 9, + "FormField": 8, "Alert": 7, + "CheckBox": 7, "AddCircle": 6, - "Grommet": 6, + "Anchor": 6, "Tabs": 6, "TextArea": 6, - "Anchor": 5, + "Form": 5, + "Grommet": 5, "Layer": 5, "Clock": 3, "DropButton": 3, - "FormView": 3, - "Hide": 3, "Meter": 3, - "Pagination": 3, + "Select": 3, "CardBody": 2, "Collapsible": 2, "Document": 2, "DocumentStore": 2, "Footer": 2, "FormClose": 2, + "Pagination": 2, "Schedule": 2, "StatusGoodSmall": 2, + "TextInput": 2, "CardFooter": 1, "CardHeader": 1, "CircleAlert": 1, "Clear": 1, - "DateInput": 1, "DocumentText": 1, "Facebook": 1, "Filter": 1, @@ -51,9 +47,7 @@ "InProgress": 1, "Linkedin": 1, "Mail": 1, - "Menu": 1, "Nav": 1, - "RadioButton": 1, "ResponsiveContext.Provider": 1, "Search": 1, "SettingsOption": 1, From 97b282436ff0949d57a9e44bb32de138c9558a84 Mon Sep 17 00:00:00 2001 From: Anthony Le Courric Date: Wed, 27 Sep 2023 16:38:29 +0200 Subject: [PATCH 04/11] =?UTF-8?q?=F0=9F=A9=BA(grommet)=20report=2027/09/20?= =?UTF-8?q?23?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Report for 27/09/2023 about the grommet component left. --- src/frontend/report.json | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/frontend/report.json b/src/frontend/report.json index 02659cc5cf..a3af55ee5d 100644 --- a/src/frontend/report.json +++ b/src/frontend/report.json @@ -1,10 +1,8 @@ { "Box": 513, - "Text": 138, "Button": 83, - "Paragraph": 42, - "Stack": 17, "Spinner": 16, + "Stack": 16, "Tab": 15, "Grid": 10, "ThemeContext.Extend": 10, From 442e54f11c212a8a1dbada0afb079529e5b90f4d Mon Sep 17 00:00:00 2001 From: Anthony Le Courric Date: Fri, 29 Sep 2023 09:41:09 +0200 Subject: [PATCH 05/11] =?UTF-8?q?=F0=9F=94=A7(frontend)=20scan=20only=20gr?= =?UTF-8?q?ommet=20dependency?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The scan was scanning grommet-icons as well, which is not needed for the moment. This commit will allow us to scan only grommet and not grommet-icons. --- src/frontend/react-scanner.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/react-scanner.config.js b/src/frontend/react-scanner.config.js index 670172a8ea..e6bafa6d88 100644 --- a/src/frontend/react-scanner.config.js +++ b/src/frontend/react-scanner.config.js @@ -2,6 +2,6 @@ module.exports = { crawlFrom: "./", includeSubComponents: true, exclude: [/^(.*)node_modules([\s\S]*)$/], - importedFrom: /^(.*)grommet([\s\S]*)$/, + importedFrom: /^(.*)grommet$/, processors: [["count-components", { outputTo: "./report.json" }]], }; From 15ecd738f43b949f5f4a93350bb62d2155af2ecd Mon Sep 17 00:00:00 2001 From: Anthony Le Courric Date: Fri, 29 Sep 2023 09:42:48 +0200 Subject: [PATCH 06/11] =?UTF-8?q?=F0=9F=A9=BA(grommet)=20report=2029/09/20?= =?UTF-8?q?23?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Report for 29/09/2023 about the grommet component left. --- src/frontend/report.json | 29 ++--------------------------- 1 file changed, 2 insertions(+), 27 deletions(-) diff --git a/src/frontend/report.json b/src/frontend/report.json index a3af55ee5d..18214abae1 100644 --- a/src/frontend/report.json +++ b/src/frontend/report.json @@ -8,50 +8,25 @@ "ThemeContext.Extend": 10, "Image": 9, "FormField": 8, - "Alert": 7, "CheckBox": 7, - "AddCircle": 6, "Anchor": 6, "Tabs": 6, "TextArea": 6, "Form": 5, "Grommet": 5, "Layer": 5, - "Clock": 3, "DropButton": 3, "Meter": 3, "Select": 3, "CardBody": 2, + "Clock": 2, "Collapsible": 2, - "Document": 2, - "DocumentStore": 2, "Footer": 2, - "FormClose": 2, "Pagination": 2, - "Schedule": 2, - "StatusGoodSmall": 2, "TextInput": 2, "CardFooter": 1, "CardHeader": 1, - "CircleAlert": 1, - "Clear": 1, - "DocumentText": 1, - "Facebook": 1, - "Filter": 1, - "FormCheckmark": 1, - "FormRefresh": 1, - "FormSchedule": 1, - "Github": 1, - "InProgress": 1, - "Linkedin": 1, - "Mail": 1, "Nav": 1, "ResponsiveContext.Provider": 1, - "Search": 1, - "SettingsOption": 1, - "StatusGood": 1, - "TextWrap": 1, - "Tip": 1, - "Trash": 1, - "Twitter": 1 + "Tip": 1 } \ No newline at end of file From 7d1b837e973db28b9ac0ac6422cb150a1b7d3cb5 Mon Sep 17 00:00:00 2001 From: Anthony Le Courric Date: Wed, 4 Oct 2023 12:49:12 +0200 Subject: [PATCH 07/11] =?UTF-8?q?=F0=9F=A9=BA(grommet)=20report=2004/10/20?= =?UTF-8?q?23?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Report for 04/10/2023 about the grommet component left. --- src/frontend/report.json | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/frontend/report.json b/src/frontend/report.json index 18214abae1..dd2bff06c4 100644 --- a/src/frontend/report.json +++ b/src/frontend/report.json @@ -1,20 +1,18 @@ { - "Box": 513, + "Box": 499, "Button": 83, - "Spinner": 16, "Stack": 16, "Tab": 15, "Grid": 10, - "ThemeContext.Extend": 10, "Image": 9, + "ThemeContext.Extend": 9, "FormField": 8, - "CheckBox": 7, "Anchor": 6, "Tabs": 6, "TextArea": 6, - "Form": 5, "Grommet": 5, "Layer": 5, + "Form": 4, "DropButton": 3, "Meter": 3, "Select": 3, @@ -22,7 +20,6 @@ "Clock": 2, "Collapsible": 2, "Footer": 2, - "Pagination": 2, "TextInput": 2, "CardFooter": 1, "CardHeader": 1, From 885ff1dda745c1cd2229c45322161f710d0c499f Mon Sep 17 00:00:00 2001 From: Anthony LC Date: Thu, 9 Nov 2023 14:25:26 +0100 Subject: [PATCH 08/11] =?UTF-8?q?=F0=9F=A9=BA(grommet)=20report=2009/11/20?= =?UTF-8?q?23?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Report for 09/11/2023 about the grommet component left. --- src/frontend/report.json | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/frontend/report.json b/src/frontend/report.json index dd2bff06c4..2e82621529 100644 --- a/src/frontend/report.json +++ b/src/frontend/report.json @@ -1,18 +1,16 @@ { - "Box": 499, - "Button": 83, - "Stack": 16, - "Tab": 15, + "Stack": 14, + "Tab": 12, "Grid": 10, "Image": 9, "ThemeContext.Extend": 9, "FormField": 8, - "Anchor": 6, - "Tabs": 6, "TextArea": 6, - "Grommet": 5, - "Layer": 5, + "Anchor": 5, + "Tabs": 5, "Form": 4, + "Grommet": 4, + "Layer": 4, "DropButton": 3, "Meter": 3, "Select": 3, From 0ba9faf50d5d2fb950a770a154fd36f03324dc2a Mon Sep 17 00:00:00 2001 From: Anthony Le Courric Date: Wed, 22 Nov 2023 09:33:54 +0100 Subject: [PATCH 09/11] =?UTF-8?q?=F0=9F=A9=BA(grommet)=20report=2022/11/20?= =?UTF-8?q?23?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Report for 22/11/2023 about the grommet component left. --- src/frontend/report.json | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/src/frontend/report.json b/src/frontend/report.json index 2e82621529..d97089bc4d 100644 --- a/src/frontend/report.json +++ b/src/frontend/report.json @@ -1,27 +1,20 @@ { "Stack": 14, - "Tab": 12, + "Tab": 13, "Grid": 10, "Image": 9, "ThemeContext.Extend": 9, - "FormField": 8, - "TextArea": 6, - "Anchor": 5, + "FormField": 5, "Tabs": 5, - "Form": 4, "Grommet": 4, "Layer": 4, "DropButton": 3, + "Form": 3, "Meter": 3, "Select": 3, - "CardBody": 2, "Clock": 2, "Collapsible": 2, - "Footer": 2, "TextInput": 2, - "CardFooter": 1, - "CardHeader": 1, - "Nav": 1, - "ResponsiveContext.Provider": 1, - "Tip": 1 + "AccordionPanel": 1, + "ResponsiveContext.Provider": 1 } \ No newline at end of file From d4ea2c6f12294c578662a1ab093cad901bff1a06 Mon Sep 17 00:00:00 2001 From: Anthony Le Courric Date: Mon, 27 Nov 2023 16:20:14 +0100 Subject: [PATCH 10/11] =?UTF-8?q?=F0=9F=A9=BA(grommet)=20report=2027/11/20?= =?UTF-8?q?23?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Report for 27/11/2023 about the grommet component left. --- src/frontend/report.json | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/frontend/report.json b/src/frontend/report.json index d97089bc4d..43186a9d40 100644 --- a/src/frontend/report.json +++ b/src/frontend/report.json @@ -3,17 +3,16 @@ "Tab": 13, "Grid": 10, "Image": 9, - "ThemeContext.Extend": 9, - "FormField": 5, + "ThemeContext.Extend": 7, "Tabs": 5, + "FormField": 4, "Grommet": 4, "Layer": 4, - "DropButton": 3, "Form": 3, "Meter": 3, - "Select": 3, "Clock": 2, "Collapsible": 2, + "Select": 2, "TextInput": 2, "AccordionPanel": 1, "ResponsiveContext.Provider": 1 From f864b9165249344be4471eb459a26e60a36d21c3 Mon Sep 17 00:00:00 2001 From: Anthony Le Courric Date: Tue, 5 Dec 2023 17:54:59 +0100 Subject: [PATCH 11/11] =?UTF-8?q?=F0=9F=A9=BA(grommet)=20report=2005/12/20?= =?UTF-8?q?23?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Report for 05/12/2023 about the grommet component left. --- src/frontend/report.json | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/frontend/report.json b/src/frontend/report.json index 43186a9d40..8a6d5c58f1 100644 --- a/src/frontend/report.json +++ b/src/frontend/report.json @@ -1,8 +1,6 @@ { "Stack": 14, "Tab": 13, - "Grid": 10, - "Image": 9, "ThemeContext.Extend": 7, "Tabs": 5, "FormField": 4,