diff --git a/.github/workflows/afids-validator_ci.yml b/.github/workflows/afids-validator_ci.yml index e4170030..16d31751 100644 --- a/.github/workflows/afids-validator_ci.yml +++ b/.github/workflows/afids-validator_ci.yml @@ -196,6 +196,13 @@ jobs: find: 'version = "v(?:([0-9]+\.[0-9]+\.[0-9]+.+)|([0-9]+\.[0-9]+\.[0-9]+))"' replace: 'version = "${{ env.NEW_RELEASE }}-pre.${{ env.NEW_BUMP }}"' + - name: Update version in package.json + uses: jacobtomlinson/gha-find-replace@master + with: + include: "package.json" + find: '"version": "v(?:([0-9]+\.[0-9]+\.[0-9]+.+)|([0-9]+\.[0-9]+\.[0-9]+))"' + replace: '"version": "${{ env.NEW_RELEASE }}-pre.${{ env.NEW_BUMP }}"' + - name: Commit updates env: LATEST_VERSION: ${{ steps.release-drafter.outputs.name }}-pre.${{ env.NEW_BUMP }} diff --git a/.github/workflows/afids-validator_release.yml b/.github/workflows/afids-validator_release.yml index efa6bfb7..0662b806 100644 --- a/.github/workflows/afids-validator_release.yml +++ b/.github/workflows/afids-validator_release.yml @@ -42,6 +42,13 @@ jobs: find: 'v(?:([0-9]+\.[0-9]+\.[0-9]+.+)|([0-9]+\.[0-9]+\.[0-9]+))' replace: '${{ steps.release-drafter.outputs.name }}"' + - name: Update package.json version + uses: jacobtomlinson/gha-find-replace@master + with: + include: "package.json" + find: 'v(?:([0-9]+\.[0-9]+\.[0-9]+.+)|([0-9]+\.[0-9]+\.[0-9]+))' + replace: '${{ steps.release-drafter.outputs.name }}"' + - name: Commit updates env: LATEST_VERSION: ${{ steps.release-drafter.outputs.name }} diff --git a/.gitignore b/.gitignore index 38306403..d575eee7 100644 --- a/.gitignore +++ b/.gitignore @@ -4,7 +4,6 @@ __pycache__/ .vscode/ .jekyll-cache/ _site/ -dist/ # Files *.pyc diff --git a/afidsvalidator/static/css/afids_custom.css b/afidsvalidator/static/css/afids_custom.css deleted file mode 100644 index bbdef9d0..00000000 --- a/afidsvalidator/static/css/afids_custom.css +++ /dev/null @@ -1,52 +0,0 @@ -:root { - --afids-green: #00ff01; - --dark: #000; - --light: #fff; -} - -html, -body { - width: 100%; - height: 100%; - margin: 0px; - padding: 0px; - background-color: var(--dark); - color: var(--light); -} - -/* Nav */ -header .nav-link { - font-family: "Bebas Neue", serif; - font-size: 32px; - color: var(--light); -} - -.nav .nav-link { - color: var(--light); -} - -header .nav-link:hover, -.nav .nav-link:hover { - color: var(--afids-green); -} - -header hr { - color: var(--afids-green); - border-top: 0.2vw solid; - margin-top: -1%; -} - -/* Footer */ -footer { - background-color: var(--afids-green); - color: var(--dark); -} - -footer .nav-link { - color: var(--dark); - font-size: 18px; -} - -footer .nav-link:hover { - color: var(--light); -} \ No newline at end of file diff --git a/afidsvalidator/static/lib/afidsvalidator-react/.eslintignore b/afidsvalidator/static/lib/afidsvalidator-react/.eslintignore new file mode 100644 index 00000000..de4d1f00 --- /dev/null +++ b/afidsvalidator/static/lib/afidsvalidator-react/.eslintignore @@ -0,0 +1,2 @@ +dist +node_modules diff --git a/afidsvalidator/static/lib/afidsvalidator-react/.eslintrc b/afidsvalidator/static/lib/afidsvalidator-react/.eslintrc new file mode 100644 index 00000000..0fa5f0f7 --- /dev/null +++ b/afidsvalidator/static/lib/afidsvalidator-react/.eslintrc @@ -0,0 +1,14 @@ +{ + "root": true, + "parser": "@typescript-eslint/parser", + "plugins": [ + "@typescript-eslint", + "prettier" + ], + "extends": [ + "eslint:recommended", + "plugin:@typescript-eslint/eslint-recommended", + "plugin:@typescript-eslint/recommended", + "prettier" + ] +} diff --git a/afidsvalidator/static/lib/afidsvalidator-react/.gitignore b/afidsvalidator/static/lib/afidsvalidator-react/.gitignore new file mode 100644 index 00000000..e67f7604 --- /dev/null +++ b/afidsvalidator/static/lib/afidsvalidator-react/.gitignore @@ -0,0 +1,2 @@ +node_modules/ +.parcel-cache/ \ No newline at end of file diff --git a/afidsvalidator/static/lib/afidsvalidator-react/.prettierrc b/afidsvalidator/static/lib/afidsvalidator-react/.prettierrc new file mode 100644 index 00000000..d92bc3dd --- /dev/null +++ b/afidsvalidator/static/lib/afidsvalidator-react/.prettierrc @@ -0,0 +1,6 @@ +{ + "semi": true, + "trailingComma": "none", + "singleQuote": true, + "printWidth": 79 +} diff --git a/afidsvalidator/static/images/banner.png b/afidsvalidator/static/lib/afidsvalidator-react/dist/afids_banner.d9b23c4a.png similarity index 100% rename from afidsvalidator/static/images/banner.png rename to afidsvalidator/static/lib/afidsvalidator-react/dist/afids_banner.d9b23c4a.png diff --git a/afidsvalidator/static/lib/afidsvalidator-react/dist/index.js b/afidsvalidator/static/lib/afidsvalidator-react/dist/index.js new file mode 100644 index 00000000..78481b9a --- /dev/null +++ b/afidsvalidator/static/lib/afidsvalidator-react/dist/index.js @@ -0,0 +1,2 @@ +(()=>{let e,n;function t(e,n,t,r){Object.defineProperty(e,n,{get:t,set:r,enumerable:!0,configurable:!0})}function r(e){return e&&e.__esModule?e.default:e}"use strict";var a,i,o,l,u,s,c,f,d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},p={},m={},h=d.parcelRequire7bd7;null==h&&((h=function(e){if(e in p)return p[e].exports;if(e in m){var n=m[e];delete m[e];var t={id:e,exports:{}};return p[e]=t,n.call(t.exports,t,t.exports),t.exports}var r=Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}).register=function(e,n){m[e]=n},d.parcelRequire7bd7=h),h.register("kI8SP",function(e,n){"use strict";t(e.exports,"register",()=>r,e=>r=e),t(e.exports,"resolve",()=>a,e=>a=e);var r,a,i={};r=function(e){for(var n=Object.keys(e),t=0;tr,e=>r=e),t(e.exports,"jsx",()=>a,e=>a=e),t(e.exports,"jsxs",()=>i,e=>i=e);var r,a,i,o=h("8NFma"),l=Symbol.for("react.element"),u=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,c=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function d(e,n,t){var r,a={},i=null,o=null;for(r in void 0!==t&&(i=""+t),void 0!==n.key&&(i=""+n.key),void 0!==n.ref&&(o=n.ref),n)s.call(n,r)&&!f.hasOwnProperty(r)&&(a[r]=n[r]);if(e&&e.defaultProps)for(r in n=e.defaultProps)void 0===a[r]&&(a[r]=n[r]);return{$$typeof:l,type:e,key:i,ref:o,props:a,_owner:c.current}}r=u,a=d,i=d}),h.register("8NFma",function(e,n){"use strict";e.exports=h("j1rj6")}),h.register("j1rj6",function(e,n){"use strict";t(e.exports,"Children",()=>r,e=>r=e),t(e.exports,"Component",()=>a,e=>a=e),t(e.exports,"Fragment",()=>i,e=>i=e),t(e.exports,"Profiler",()=>o,e=>o=e),t(e.exports,"PureComponent",()=>l,e=>l=e),t(e.exports,"StrictMode",()=>u,e=>u=e),t(e.exports,"Suspense",()=>s,e=>s=e),t(e.exports,"__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",()=>c,e=>c=e),t(e.exports,"cloneElement",()=>f,e=>f=e),t(e.exports,"createContext",()=>d,e=>d=e),t(e.exports,"createElement",()=>p,e=>p=e),t(e.exports,"createFactory",()=>m,e=>m=e),t(e.exports,"createRef",()=>h,e=>h=e),t(e.exports,"forwardRef",()=>v,e=>v=e),t(e.exports,"isValidElement",()=>g,e=>g=e),t(e.exports,"lazy",()=>b,e=>b=e),t(e.exports,"memo",()=>y,e=>y=e),t(e.exports,"startTransition",()=>k,e=>k=e),t(e.exports,"unstable_act",()=>w,e=>w=e),t(e.exports,"useCallback",()=>x,e=>x=e),t(e.exports,"useContext",()=>S,e=>S=e),t(e.exports,"useDebugValue",()=>E,e=>E=e),t(e.exports,"useDeferredValue",()=>N,e=>N=e),t(e.exports,"useEffect",()=>C,e=>C=e),t(e.exports,"useId",()=>O,e=>O=e),t(e.exports,"useImperativeHandle",()=>P,e=>P=e),t(e.exports,"useInsertionEffect",()=>_,e=>_=e),t(e.exports,"useLayoutEffect",()=>T,e=>T=e),t(e.exports,"useMemo",()=>z,e=>z=e),t(e.exports,"useReducer",()=>R,e=>R=e),t(e.exports,"useRef",()=>L,e=>L=e),t(e.exports,"useState",()=>j,e=>j=e),t(e.exports,"useSyncExternalStore",()=>F,e=>F=e),t(e.exports,"useTransition",()=>M,e=>M=e),t(e.exports,"version",()=>A,e=>A=e);var r,a,i,o,l,u,s,c,f,d,p,m,h,v,g,b,y,k,w,x,S,E,N,C,O,P,_,T,z,R,L,j,F,M,A,I=Symbol.for("react.element"),D=Symbol.for("react.portal"),U=Symbol.for("react.fragment"),$=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),H=Symbol.for("react.provider"),V=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),Y=Symbol.for("react.suspense"),Q=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),q=Symbol.iterator,X={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},G=Object.assign,Z={};function J(e,n,t){this.props=e,this.context=n,this.refs=Z,this.updater=t||X}function ee(){}function en(e,n,t){this.props=e,this.context=n,this.refs=Z,this.updater=t||X}J.prototype.isReactComponent={},J.prototype.setState=function(e,n){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,n,"setState")},J.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},ee.prototype=J.prototype;var et=en.prototype=new ee;et.constructor=en,G(et,J.prototype),et.isPureReactComponent=!0;var er=Array.isArray,ea=Object.prototype.hasOwnProperty,ei={current:null},eo={key:!0,ref:!0,__self:!0,__source:!0};function el(e,n,t){var r,a={},i=null,o=null;if(null!=n)for(r in void 0!==n.ref&&(o=n.ref),void 0!==n.key&&(i=""+n.key),n)ea.call(n,r)&&!eo.hasOwnProperty(r)&&(a[r]=n[r]);var l=arguments.length-2;if(1===l)a.children=t;else if(1H,e=>H=e),t(e.exports,"createPortal",()=>V,e=>V=e),t(e.exports,"createRoot",()=>W,e=>W=e),t(e.exports,"findDOMNode",()=>Y,e=>Y=e),t(e.exports,"flushSync",()=>Q,e=>Q=e),t(e.exports,"hydrate",()=>K,e=>K=e),t(e.exports,"hydrateRoot",()=>q,e=>q=e),t(e.exports,"render",()=>X,e=>X=e),t(e.exports,"unmountComponentAtNode",()=>G,e=>G=e),t(e.exports,"unstable_batchedUpdates",()=>Z,e=>Z=e),t(e.exports,"unstable_renderSubtreeIntoContainer",()=>J,e=>J=e),t(e.exports,"version",()=>ee,e=>ee=e);var r,a,i,o,l,u,s=h("8NFma"),c=h("clk2u");function f(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t