From 7c3aec40aee094b4668745a8a65093d0aaa80dfc Mon Sep 17 00:00:00 2001 From: Timeo Williams Date: Sun, 10 Nov 2024 12:04:57 -0500 Subject: [PATCH 1/4] chore: update folder path --- .github/workflows/build_size.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_size.yml b/.github/workflows/build_size.yml index 3dd49acf8..8a4f4efa9 100644 --- a/.github/workflows/build_size.yml +++ b/.github/workflows/build_size.yml @@ -21,7 +21,7 @@ jobs: - name: Analyze and Create Badge uses: timeowilliams/package-size-badge-action@v1.0.7 with: - path: "build/static/js/*.js" + path: "build" limit: "800" label: "Bundle Size" color: "green" From 0ab724c0df5195fcbd7abf6d4d358569337e4d5f Mon Sep 17 00:00:00 2001 From: Timeo Williams Date: Sun, 10 Nov 2024 12:08:35 -0500 Subject: [PATCH 2/4] chore: rm eslint rules --- package.json | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/package.json b/package.json index e90b6fdef..24394e77d 100644 --- a/package.json +++ b/package.json @@ -22,24 +22,6 @@ "react-router-dom": "^6.26.2", "react-transition-group": "^4.4.5" }, - "eslintConfig": { - "extends": [ - "react-app", - "react-app/jest" - ] - }, - "browserslist": { - "production": [ - ">0.2%", - "not dead", - "not op_mini all" - ], - "development": [ - "last 1 chrome version", - "last 1 firefox version", - "last 1 safari version" - ] - }, "devDependencies": { "@axe-core/playwright": "^4.10.0", "@axe-core/watcher": "^3.15.2", From c808a9568b55a92783f41374722a035c4cb60d25 Mon Sep 17 00:00:00 2001 From: Timeo Williams Date: Sun, 10 Nov 2024 12:10:03 -0500 Subject: [PATCH 3/4] docs: update README --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 04a2d076e..e5aa1f6dd 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ package size accessibility dependabot + build size

To get started, cd into the project and run this: From 8f45d79c106ca410f69abd29984de21a973cb30a Mon Sep 17 00:00:00 2001 From: Timeo Williams Date: Sun, 10 Nov 2024 12:19:39 -0500 Subject: [PATCH 4/4] ci: add build step --- .github/workflows/build_size.yml | 14 + .gitignore | 3 +- build/118.8b6cc7c8284f76162b46.js | 2 - build/118.8b6cc7c8284f76162b46.js.LICENSE.txt | 72 - build/118.8b6cc7c8284f76162b46.js.gz | Bin 60352 -> 0 bytes build/514.8e5a8904042d7f174b78.css | 75 - build/514.8e5a8904042d7f174b78.css.gz | Bin 467 -> 0 bytes build/514.b543e57d5030f12d9071.js | 1 - build/514.b543e57d5030f12d9071.js.gz | Bin 750 -> 0 bytes build/562.5e1d37e135c8163e7159.js | 1 - build/562.5e1d37e135c8163e7159.js.gz | Bin 2924 -> 0 bytes build/562.ed5116447e6ebea13770.css | 161 - build/562.ed5116447e6ebea13770.css.gz | Bin 1142 -> 0 bytes build/620.be8acb3859c09a86af07.js | 1 - build/620.be8acb3859c09a86af07.js.gz | Bin 8250 -> 0 bytes build/620.f2cd6b7fd5c694394270.css | 384 - build/620.f2cd6b7fd5c694394270.css.gz | Bin 1932 -> 0 bytes build/690.6834effb1e31089105c1.js | 171 - build/690.6834effb1e31089105c1.js.gz | Bin 5908 -> 0 bytes build/690.cf074c4c38a75503ddc3.css | 176 - build/690.cf074c4c38a75503ddc3.css.gz | Bin 974 -> 0 bytes build/727.888957ac93d69e9f0b7f.css | 148 - build/727.888957ac93d69e9f0b7f.css.gz | Bin 944 -> 0 bytes build/727.c8143a2be034c74cb628.js | 1 - build/727.c8143a2be034c74cb628.js.gz | Bin 721 -> 0 bytes build/778.6cd4860e34ec7f7480bc.css | 128 - build/778.6cd4860e34ec7f7480bc.css.gz | Bin 693 -> 0 bytes build/778.75eb63345c2ed54f51ed.js | 1 - build/778.75eb63345c2ed54f51ed.js.gz | Bin 1109 -> 0 bytes build/971.c4e03c7fa03ccd51ab6b.js | 172 - build/971.c4e03c7fa03ccd51ab6b.js.LICENSE.txt | 21 - build/971.c4e03c7fa03ccd51ab6b.js.gz | Bin 16532 -> 0 bytes build/W icon.ico | Bin 13589 -> 0 bytes .../fonts/revicons.57fd05d4ae650374c8de.ttf | Bin 11968 -> 0 bytes .../fonts/revicons.a77de540a38981833f9e.eot | Bin 12136 -> 0 bytes .../fonts/revicons.e8746a624ed098489406.woff | Bin 7536 -> 0 bytes .../close-modal.4939de23183770ff2084.avif | Bin 2699 -> 0 bytes build/bundle-report.html | 39 - build/index.html | 72 - build/index.html.gz | Bin 2008 -> 0 bytes build/main.c4ba23c982abe6300140.js | 1 - build/main.c4ba23c982abe6300140.js.gz | Bin 4237 -> 0 bytes build/main.c6549a704659ad51dacd.css | 163 - build/main.c6549a704659ad51dacd.css.gz | Bin 1088 -> 0 bytes build/robots.txt | 5 - build/stats.json | 153984 --------------- pnpm-lock.yaml | 12865 +- src/components/Video.jsx | 6 +- 48 files changed, 8508 insertions(+), 160159 deletions(-) delete mode 100644 build/118.8b6cc7c8284f76162b46.js delete mode 100644 build/118.8b6cc7c8284f76162b46.js.LICENSE.txt delete mode 100644 build/118.8b6cc7c8284f76162b46.js.gz delete mode 100644 build/514.8e5a8904042d7f174b78.css delete mode 100644 build/514.8e5a8904042d7f174b78.css.gz delete mode 100644 build/514.b543e57d5030f12d9071.js delete mode 100644 build/514.b543e57d5030f12d9071.js.gz delete mode 100644 build/562.5e1d37e135c8163e7159.js delete mode 100644 build/562.5e1d37e135c8163e7159.js.gz delete mode 100644 build/562.ed5116447e6ebea13770.css delete mode 100644 build/562.ed5116447e6ebea13770.css.gz delete mode 100644 build/620.be8acb3859c09a86af07.js delete mode 100644 build/620.be8acb3859c09a86af07.js.gz delete mode 100644 build/620.f2cd6b7fd5c694394270.css delete mode 100644 build/620.f2cd6b7fd5c694394270.css.gz delete mode 100644 build/690.6834effb1e31089105c1.js delete mode 100644 build/690.6834effb1e31089105c1.js.gz delete mode 100644 build/690.cf074c4c38a75503ddc3.css delete mode 100644 build/690.cf074c4c38a75503ddc3.css.gz delete mode 100644 build/727.888957ac93d69e9f0b7f.css delete mode 100644 build/727.888957ac93d69e9f0b7f.css.gz delete mode 100644 build/727.c8143a2be034c74cb628.js delete mode 100644 build/727.c8143a2be034c74cb628.js.gz delete mode 100644 build/778.6cd4860e34ec7f7480bc.css delete mode 100644 build/778.6cd4860e34ec7f7480bc.css.gz delete mode 100644 build/778.75eb63345c2ed54f51ed.js delete mode 100644 build/778.75eb63345c2ed54f51ed.js.gz delete mode 100644 build/971.c4e03c7fa03ccd51ab6b.js delete mode 100644 build/971.c4e03c7fa03ccd51ab6b.js.LICENSE.txt delete mode 100644 build/971.c4e03c7fa03ccd51ab6b.js.gz delete mode 100644 build/W icon.ico delete mode 100644 build/assets/fonts/revicons.57fd05d4ae650374c8de.ttf delete mode 100644 build/assets/fonts/revicons.a77de540a38981833f9e.eot delete mode 100644 build/assets/fonts/revicons.e8746a624ed098489406.woff delete mode 100644 build/assets/images/close-modal.4939de23183770ff2084.avif delete mode 100644 build/bundle-report.html delete mode 100644 build/index.html delete mode 100644 build/index.html.gz delete mode 100644 build/main.c4ba23c982abe6300140.js delete mode 100644 build/main.c4ba23c982abe6300140.js.gz delete mode 100644 build/main.c6549a704659ad51dacd.css delete mode 100644 build/main.c6549a704659ad51dacd.css.gz delete mode 100644 build/robots.txt delete mode 100644 build/stats.json diff --git a/.github/workflows/build_size.yml b/.github/workflows/build_size.yml index 8a4f4efa9..083695a59 100644 --- a/.github/workflows/build_size.yml +++ b/.github/workflows/build_size.yml @@ -18,6 +18,20 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 'lts/*' + + - name: Install pnpm + run: npm install -g pnpm + + - name: Install dependencies + run: pnpm install + + - name: Build project + run: pnpm run build + - name: Analyze and Create Badge uses: timeowilliams/package-size-badge-action@v1.0.7 with: diff --git a/.gitignore b/.gitignore index ba09d7f00..aca55ca2f 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,5 @@ node_modules/ playwright-report test-results .env -.DS_Store \ No newline at end of file +.DS_Store +build/ \ No newline at end of file diff --git a/build/118.8b6cc7c8284f76162b46.js b/build/118.8b6cc7c8284f76162b46.js deleted file mode 100644 index 0c0b079bf..000000000 --- a/build/118.8b6cc7c8284f76162b46.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 118.8b6cc7c8284f76162b46.js.LICENSE.txt */ -"use strict";(self.webpackChunkwre_frontend=self.webpackChunkwre_frontend||[]).push([[118],{5588:(e,t,n)=>{function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;tf,Gh:()=>M,HS:()=>F,Oi:()=>o,Rr:()=>d,pX:()=>$,pb:()=>R,rc:()=>a,tH:()=>A,ue:()=>m,yD:()=>L,zR:()=>i}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(a||(a={}));const l="popstate";function i(e){return void 0===e&&(e={}),p((function(e,t){let{pathname:n,search:r,hash:a}=e.location;return c("",{pathname:n,search:r,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"==typeof t?t:f(t)}),null,e)}function o(e,t){if(!1===e||null==e)throw new Error(t)}function u(e,t){if(!e)try{throw new Error(t)}catch(e){}}function s(e,t){return{usr:e.state,key:e.key,idx:t}}function c(e,t,n,a){return void 0===n&&(n=null),r({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?d(t):t,{state:n,key:t&&t.key||a||Math.random().toString(36).substr(2,8)})}function f(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function d(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function p(e,t,n,i){void 0===i&&(i={});let{window:u=document.defaultView,v5Compat:d=!1}=i,p=u.history,h=a.Pop,m=null,v=g();function g(){return(p.state||{idx:null}).idx}function y(){h=a.Pop;let e=g(),t=null==e?null:e-v;v=e,m&&m({action:h,location:w.location,delta:t})}function b(e){let t="null"!==u.location.origin?u.location.origin:u.location.href,n="string"==typeof e?e:f(e);return n=n.replace(/ $/,"%20"),o(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==v&&(v=0,p.replaceState(r({},p.state,{idx:v}),""));let w={get action(){return h},get location(){return e(u,p)},listen(e){if(m)throw new Error("A history only accepts one active listener");return u.addEventListener(l,y),m=e,()=>{u.removeEventListener(l,y),m=null}},createHref:e=>t(u,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){h=a.Push;let r=c(w.location,e,t);n&&n(r,e),v=g()+1;let l=s(r,v),i=w.createHref(r);try{p.pushState(l,"",i)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;u.location.assign(i)}d&&m&&m({action:h,location:w.location,delta:1})},replace:function(e,t){h=a.Replace;let r=c(w.location,e,t);n&&n(r,e),v=g();let l=s(r,v),i=w.createHref(r);p.replaceState(l,"",i),d&&m&&m({action:h,location:w.location,delta:0})},go:e=>p.go(e)};return w}var h;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(h||(h={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function m(e,t,n){return void 0===n&&(n="/"),v(e,t,n,!1)}function v(e,t,n,r){let a=R(("string"==typeof t?d(t):t).pathname||"/",n);if(null==a)return null;let l=g(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(l);let i=null;for(let e=0;null==i&&e{let i={relativePath:void 0===l?e.path||"":l,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};i.relativePath.startsWith("/")&&(o(i.relativePath.startsWith(r),'Absolute route path "'+i.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),i.relativePath=i.relativePath.slice(r.length));let u=F([r,i.relativePath]),s=n.concat(i);e.children&&e.children.length>0&&(o(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+u+'".'),g(e.children,t,s,u)),(null!=e.path||e.index)&&t.push({path:u,score:_(u,e.index),routesMeta:s})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of y(e.path))a(e,t,n);else a(e,t)})),t}function y(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,a=n.endsWith("?"),l=n.replace(/\?$/,"");if(0===r.length)return a?[l,""]:[l];let i=y(r.join("/")),o=[];return o.push(...i.map((e=>""===e?l:[l,e].join("/")))),a&&o.push(...i),o.map((t=>e.startsWith("/")&&""===t?"/":t))}const b=/^:[\w-]+$/,w=3,k=2,S=1,x=10,E=-2,C=e=>"*"===e;function _(e,t){let n=e.split("/"),r=n.length;return n.some(C)&&(r+=E),t&&(r+=k),n.filter((e=>!C(e))).reduce(((e,t)=>e+(b.test(t)?w:""===t?S:x)),r)}function P(e,t,n){void 0===n&&(n=!1);let{routesMeta:r}=e,a={},l="/",i=[];for(let e=0;e(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(r.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))");let l=new RegExp(a,t?void 0:"i");return[l,r]}(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let l=a[0],i=l.replace(/(.)\/+$/,"$1"),o=a.slice(1);return{params:r.reduce(((e,t,n)=>{let{paramName:r,isOptional:a}=t;if("*"===r){let e=o[n]||"";i=l.slice(0,l.length-e.length).replace(/(.)\/+$/,"$1")}const u=o[n];return e[r]=a&&!u?void 0:(u||"").replace(/%2F/g,"/"),e}),{}),pathname:l,pathnameBase:i,pattern:e}}function T(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return u(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function R(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function O(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in and the router will parse it for you.'}function z(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function L(e,t){let n=z(e);return t?n.map(((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)):n.map((e=>e.pathnameBase))}function M(e,t,n,a){let l;void 0===a&&(a=!1),"string"==typeof e?l=d(e):(l=r({},e),o(!l.pathname||!l.pathname.includes("?"),O("?","pathname","search",l)),o(!l.pathname||!l.pathname.includes("#"),O("#","pathname","hash",l)),o(!l.search||!l.search.includes("#"),O("#","search","hash",l)));let i,u=""===e||""===l.pathname,s=u?"/":l.pathname;if(null==s)i=n;else{let e=t.length-1;if(!a&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;l.pathname=t.join("/")}i=e>=0?t[e]:"/"}let c=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:a=""}="string"==typeof e?d(e):e,l=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:l,search:U(r),hash:I(a)}}(l,i),f=s&&"/"!==s&&s.endsWith("/"),p=(u||"."===s)&&n.endsWith("/");return c.pathname.endsWith("/")||!f&&!p||(c.pathname+="/"),c}const F=e=>e.join("/").replace(/\/\/+/g,"/"),D=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),U=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",I=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class A extends Error{}function $(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const V=["post","put","patch","delete"],j=(new Set(V),["get",...V]);new Set(j),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred")},2551:(e,t,n)=>{var r=n(6540),a=n(9982);function l(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n