@pfct/purple 1.3.8-rc.2 → 1.4.0-npm-test.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.history/.eslintrc.config_20240620114140.js +39 -0
- package/.history/.eslintrc.config_20240620130453.js +164 -0
- package/.history/.eslintrc_20230510193851.json +164 -0
- package/.history/.eslintrc_20240620114141.json +39 -0
- package/.history/.eslintrc_20240620131751.js +164 -0
- package/.history/.eslintrc_20240620132945.js +164 -0
- package/.history/.eslintrc_20240620133123.js +163 -0
- package/.history/.eslintrc_20240620133153.js +164 -0
- package/.history/.gitignore_20240620105113 +21 -0
- package/.history/.husky/commit-msg_20230510193851 +4 -0
- package/.history/.husky/commit-msg_20240620132755 +4 -0
- package/.history/.storybook/main_20230511183243.ts +15 -0
- package/.history/.storybook/main_20240620103059.ts +9 -0
- package/.history/.storybook/main_20240620103349.ts +15 -0
- package/.history/config-overrides_20230523140429.js +7 -0
- package/.history/config-overrides_20230523140438.js +7 -0
- package/.history/config-overrides_20230523140456.js +7 -0
- package/.history/config-overrides_20230523140500.js +7 -0
- package/.history/config-overrides_20230523141258.js +8 -0
- package/.history/config-overrides_20230523141523.js +15 -0
- package/.history/config-overrides_20230523141527.js +14 -0
- package/.history/config-overrides_20230523141528.js +14 -0
- package/.history/config-overrides_20230523141828.js +7 -0
- package/.history/config-overrides_20230523142043.js +7 -0
- package/.history/config-overrides_20230523144759.js +7 -0
- package/.history/config-overrides_20230523144844.js +7 -0
- package/.history/config-overrides_20230523145025.js +8 -0
- package/.history/config-overrides_20230523145244.js +8 -0
- package/.history/config-overrides_20230523145557.js +8 -0
- package/.history/config-overrides_20230523145640.js +8 -0
- package/.history/config-overrides_20230523145642.js +8 -0
- package/.history/config-overrides_20230523150101.js +8 -0
- package/.history/config-overrides_20230523150817.js +8 -0
- package/.history/config-overrides_20230523151011.js +8 -0
- package/.history/config-overrides_20230523151022.js +8 -0
- package/.history/config-overrides_20230523151050.js +8 -0
- package/.history/config-overrides_20230523151057.js +8 -0
- package/.history/config-overrides_20230523155303.js +5 -0
- package/.history/config-overrides_20230524135448.js +6 -0
- package/.history/e2e/pages/dist/index_20230518173449.html +15 -0
- package/.history/e2e/pages/dist/index_20230518182705.html +20 -0
- package/.history/e2e/pages/dist/index_20230522152456.html +18 -0
- package/.history/e2e/pages/dist/index_20230522152506.html +16 -0
- package/.history/e2e/pages/index_20230511135904.html +15 -0
- package/.history/e2e/pages/index_20230511173402.html +21 -0
- package/.history/e2e/pages/index_20230511173459.html +21 -0
- package/.history/e2e/pages/index_20230511173549.html +17 -0
- package/.history/e2e/pages/index_20230511174725.html +366 -0
- package/.history/e2e/pages/index_20230511174818.html +18 -0
- package/.history/e2e/pages/index_20230511175151.html +366 -0
- package/.history/e2e/pages/index_20230511180114.html +15 -0
- package/.history/e2e/pages/index_20230518182740.html +20 -0
- package/.history/e2e/pages/index_20230518182804.html +21 -0
- package/.history/e2e/pages/index_20230522153300.html +15 -0
- package/.history/e2e/pages/public/index_20230523135713.html +15 -0
- package/.history/e2e/pages/public/index_20230523141954.html +14 -0
- package/.history/e2e/pages/src/api/index_20230510193933.ts +26 -0
- package/.history/e2e/pages/src/api/index_20230511113640.ts +26 -0
- package/.history/e2e/pages/src/api/index_20230511151752.ts +26 -0
- package/.history/e2e/pages/src/components/Loading_20230511175734.tsx +12 -0
- package/.history/e2e/pages/src/components/Loading_20230511175931.tsx +14 -0
- package/.history/e2e/pages/src/index.styled_20230510193933.ts +13 -0
- package/.history/e2e/pages/src/index.styled_20230511151410.ts +13 -0
- package/.history/e2e/pages/src/index.styled_20230511151526.ts +13 -0
- package/.history/e2e/pages/src/index.styled_20230511151814.ts +13 -0
- package/.history/e2e/pages/src/index.styled_20230511172842.ts +14 -0
- package/.history/e2e/pages/src/index.styled_20230511172927.ts +15 -0
- package/.history/e2e/pages/src/index.styled_20230511172936.ts +16 -0
- package/.history/e2e/pages/src/index.styled_20230511173014.ts +13 -0
- package/.history/e2e/pages/src/index_20230510193933.tsx +64 -0
- package/.history/e2e/pages/src/index_20230511112721.tsx +64 -0
- package/.history/e2e/pages/src/index_20230511124302.tsx +77 -0
- package/.history/e2e/pages/src/index_20230511124322.tsx +77 -0
- package/.history/e2e/pages/src/index_20230511124506.tsx +72 -0
- package/.history/e2e/pages/src/index_20230511124716.tsx +72 -0
- package/.history/e2e/pages/src/index_20230511133409.tsx +72 -0
- package/.history/e2e/pages/src/index_20230511141608.tsx +77 -0
- package/.history/e2e/pages/src/index_20230511141609.tsx +77 -0
- package/.history/e2e/pages/src/index_20230511142059.tsx +77 -0
- package/.history/e2e/pages/src/index_20230511144242.tsx +77 -0
- package/.history/e2e/pages/src/index_20230511145239.tsx +81 -0
- package/.history/e2e/pages/src/index_20230511145611.tsx +81 -0
- package/.history/e2e/pages/src/index_20230511150038.tsx +81 -0
- package/.history/e2e/pages/src/index_20230511150332.tsx +87 -0
- package/.history/e2e/pages/src/index_20230511150409.tsx +87 -0
- package/.history/e2e/pages/src/index_20230511150806.tsx +96 -0
- package/.history/e2e/pages/src/index_20230511150921.tsx +96 -0
- package/.history/e2e/pages/src/index_20230511151119.tsx +96 -0
- package/.history/e2e/pages/src/index_20230511151212.tsx +89 -0
- package/.history/e2e/pages/src/index_20230511151213.tsx +89 -0
- package/.history/e2e/pages/src/index_20230511151402.tsx +86 -0
- package/.history/e2e/pages/src/index_20230511151506.tsx +79 -0
- package/.history/e2e/pages/src/index_20230511151508.tsx +75 -0
- package/.history/e2e/pages/src/index_20230511153005.tsx +71 -0
- package/.history/e2e/pages/src/index_20230511153107.tsx +73 -0
- package/.history/e2e/pages/src/index_20230511153108.tsx +73 -0
- package/.history/e2e/pages/src/index_20230511153531.tsx +76 -0
- package/.history/e2e/pages/src/index_20230511153708.tsx +73 -0
- package/.history/e2e/pages/src/index_20230511153839.tsx +75 -0
- package/.history/e2e/pages/src/index_20230511154213.tsx +81 -0
- package/.history/e2e/pages/src/index_20230511154216.tsx +79 -0
- package/.history/e2e/pages/src/index_20230511154409.tsx +83 -0
- package/.history/e2e/pages/src/index_20230511154449.tsx +85 -0
- package/.history/e2e/pages/src/index_20230511154635.tsx +91 -0
- package/.history/e2e/pages/src/index_20230511154636.tsx +91 -0
- package/.history/e2e/pages/src/index_20230511154930.tsx +96 -0
- package/.history/e2e/pages/src/index_20230511154944.tsx +94 -0
- package/.history/e2e/pages/src/index_20230511154945.tsx +93 -0
- package/.history/e2e/pages/src/index_20230511155010.tsx +91 -0
- package/.history/e2e/pages/src/index_20230511160112.tsx +92 -0
- package/.history/e2e/pages/src/index_20230511160930.tsx +92 -0
- package/.history/e2e/pages/src/index_20230511161050.tsx +92 -0
- package/.history/e2e/pages/src/index_20230511161157.tsx +93 -0
- package/.history/e2e/pages/src/index_20230511161212.tsx +93 -0
- package/.history/e2e/pages/src/index_20230511161244.tsx +92 -0
- package/.history/e2e/pages/src/index_20230511161304.tsx +92 -0
- package/.history/e2e/pages/src/index_20230511161307.tsx +92 -0
- package/.history/e2e/pages/src/index_20230511161344.tsx +92 -0
- package/.history/e2e/pages/src/index_20230511161426.tsx +98 -0
- package/.history/e2e/pages/src/index_20230511161627.tsx +101 -0
- package/.history/e2e/pages/src/index_20230511161654.tsx +101 -0
- package/.history/e2e/pages/src/index_20230511161714.tsx +102 -0
- package/.history/e2e/pages/src/index_20230511161721.tsx +103 -0
- package/.history/e2e/pages/src/index_20230511161739.tsx +105 -0
- package/.history/e2e/pages/src/index_20230511161856.tsx +104 -0
- package/.history/e2e/pages/src/index_20230511162002.tsx +105 -0
- package/.history/e2e/pages/src/index_20230511162106.tsx +106 -0
- package/.history/e2e/pages/src/index_20230511163614.tsx +109 -0
- package/.history/e2e/pages/src/index_20230511163744.tsx +109 -0
- package/.history/e2e/pages/src/index_20230511165031.tsx +112 -0
- package/.history/e2e/pages/src/index_20230511165033.tsx +111 -0
- package/.history/e2e/pages/src/index_20230511165356.tsx +112 -0
- package/.history/e2e/pages/src/index_20230511165613.tsx +113 -0
- package/.history/e2e/pages/src/index_20230511165615.tsx +113 -0
- package/.history/e2e/pages/src/index_20230511170431.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511170448.tsx +122 -0
- package/.history/e2e/pages/src/index_20230511170740.tsx +123 -0
- package/.history/e2e/pages/src/index_20230511170856.tsx +123 -0
- package/.history/e2e/pages/src/index_20230511170952.tsx +124 -0
- package/.history/e2e/pages/src/index_20230511171513.tsx +119 -0
- package/.history/e2e/pages/src/index_20230511171555.tsx +119 -0
- package/.history/e2e/pages/src/index_20230511171611.tsx +119 -0
- package/.history/e2e/pages/src/index_20230511171832.tsx +120 -0
- package/.history/e2e/pages/src/index_20230511171850.tsx +120 -0
- package/.history/e2e/pages/src/index_20230511172356.tsx +113 -0
- package/.history/e2e/pages/src/index_20230511172732.tsx +118 -0
- package/.history/e2e/pages/src/index_20230511172752.tsx +116 -0
- package/.history/e2e/pages/src/index_20230511172825.tsx +116 -0
- package/.history/e2e/pages/src/index_20230511173028.tsx +115 -0
- package/.history/e2e/pages/src/index_20230511173124.tsx +114 -0
- package/.history/e2e/pages/src/index_20230511173144.tsx +115 -0
- package/.history/e2e/pages/src/index_20230511173209.tsx +119 -0
- package/.history/e2e/pages/src/index_20230511173213.tsx +119 -0
- package/.history/e2e/pages/src/index_20230511173235.tsx +123 -0
- package/.history/e2e/pages/src/index_20230511173238.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511173303.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511173312.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511173604.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511173623.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511173628.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511174842.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511175122.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511175133.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511175327.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511175329.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511175343.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511175344.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511175345.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511175412.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511175422.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511175426.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511175501.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511175515.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511175521.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511175530.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511175538.tsx +123 -0
- package/.history/e2e/pages/src/index_20230511175542.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511175602.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511175621.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511175813.tsx +116 -0
- package/.history/e2e/pages/src/index_20230511175819.tsx +116 -0
- package/.history/e2e/pages/src/index_20230511175844.tsx +116 -0
- package/.history/e2e/pages/src/index_20230511175845.tsx +116 -0
- package/.history/e2e/pages/src/index_20230511180023.tsx +118 -0
- package/.history/e2e/pages/src/index_20230511182316.tsx +125 -0
- package/.history/e2e/pages/src/index_20230511182608.tsx +125 -0
- package/.history/e2e/pages/src/index_20230511182609.tsx +125 -0
- package/.history/e2e/pages/src/index_20230511182757.tsx +125 -0
- package/.history/e2e/pages/src/index_20230511182903.tsx +125 -0
- package/.history/e2e/pages/src/index_20230511182937.tsx +126 -0
- package/.history/e2e/pages/src/index_20230511182948.tsx +125 -0
- package/.history/e2e/pages/src/index_20230511183018.tsx +125 -0
- package/.history/e2e/pages/src/index_20230511183133.tsx +125 -0
- package/.history/e2e/pages/src/index_20230512155015.tsx +125 -0
- package/.history/e2e/pages/src/index_20230523142330.tsx +126 -0
- package/.history/e2e/pages/src/index_20230523142331.tsx +126 -0
- package/.history/e2e/pages/src/index_20230524135532.tsx +125 -0
- package/.history/e2e/pages/src/index_20230524221001.tsx +125 -0
- package/.history/e2e/pages/src/index_20230524221118.tsx +125 -0
- package/.history/e2e/pages/src/util/index_20230510193933.ts +72 -0
- package/.history/e2e/pages/src/util/index_20230511160018.ts +73 -0
- package/.history/e2e/pages/src/util/index_20230511160344.ts +74 -0
- package/.history/e2e/pages/src/util/index_20230511160737.ts +75 -0
- package/.history/e2e/pages/src/util/index_20230511160755.ts +75 -0
- package/.history/e2e/pages/src/util/index_20230511160837.ts +73 -0
- package/.history/e2e/pages/src/util/index_20230511161107.ts +72 -0
- package/.history/e2e/pages/src/util/index_20230511172301.ts +81 -0
- package/.history/e2e/pages/src/util/index_20230512154151.ts +89 -0
- package/.history/e2e/pages/src/util/index_20230512154521.ts +98 -0
- package/.history/e2e/pages/src/util/index_20230512154722.ts +98 -0
- package/.history/e2e/pages/src/util/index_20230512154913.ts +91 -0
- package/.history/e2e/pages/src/util/index_20230512155144.ts +91 -0
- package/.history/e2e/pages/src/util/index_20230512155145.ts +91 -0
- package/.history/e2e/pages/src/util/index_20230512155146.ts +91 -0
- package/.history/e2e/pages/src/util/index_20230512155153.ts +90 -0
- package/.history/e2e/pages/src/util/index_20230512155624.ts +90 -0
- package/.history/e2e/pages/src/util/index_20230512155741.ts +90 -0
- package/.history/e2e/pages/src/util/index_20230512155917.ts +90 -0
- package/.history/e2e/pages/src/util/index_20230524221047.ts +97 -0
- package/.history/e2e/pages/webpack.config_20230510193933.js +30 -0
- package/.history/e2e/pages/webpack.config_20230511144239.js +39 -0
- package/.history/e2e/pages/webpack.config_20230511144341.js +39 -0
- package/.history/e2e/pages/webpack.config_20230511144430.js +39 -0
- package/.history/e2e/pages/webpack.config_20230511144644.js +41 -0
- package/.history/e2e/pages/webpack.config_20230511144645.js +41 -0
- package/.history/e2e/pages/webpack.config_20230511144753.js +41 -0
- package/.history/e2e/pages/webpack.config_20230511144802.js +41 -0
- package/.history/e2e/pages/webpack.config_20230511144845.js +41 -0
- package/.history/e2e/pages/webpack.config_20230511144926.js +41 -0
- package/.history/e2e/pages/webpack.config_20230511144934.js +41 -0
- package/.history/e2e/pages/webpack.config_20230511144943.js +40 -0
- package/.history/e2e/pages/webpack.config_20230511145020.js +39 -0
- package/.history/e2e/pages/webpack.config_20230511145106.js +41 -0
- package/.history/e2e/pages/webpack.config_20230511145716.js +41 -0
- package/.history/e2e/pages/webpack.config_20230511145916.js +36 -0
- package/.history/e2e/pages/webpack.config_20230518173344.js +37 -0
- package/.history/e2e/pages/webpack.config_20230518174552.js +36 -0
- package/.history/e2e/pages/webpack.config_20230523133653.js +35 -0
- package/.history/e2e/public/index_20230524155527.html +43 -0
- package/.history/e2e/public/index_20230524162254.html +43 -0
- package/.history/e2e/public/index_20230524185229.html +37 -0
- package/.history/e2e/public/index_20230524215646.html +13 -0
- package/.history/e2e/public/index_20230524215648.html +12 -0
- package/.history/e2e/src/api/index_20230524161035.ts +26 -0
- package/.history/e2e/src/api/index_20230524215532.ts +26 -0
- package/.history/e2e/src/components/Home/index_20230524161228.tsx +125 -0
- package/.history/e2e/src/components/Home/index_20230524161356.tsx +116 -0
- package/.history/e2e/src/components/Home/index_20230524161420.tsx +115 -0
- package/.history/e2e/src/components/Home/index_20230524161442.tsx +115 -0
- package/.history/e2e/src/components/Home/index_20230525002542.tsx +123 -0
- package/.history/e2e/src/components/Home/index_20230525002658.tsx +125 -0
- package/.history/e2e/src/components/Home/index_20230525002730.tsx +126 -0
- package/.history/e2e/src/index_20230524155527.tsx +19 -0
- package/.history/e2e/src/index_20230524161122.tsx +125 -0
- package/.history/e2e/src/index_20230524161206.tsx +19 -0
- package/.history/e2e/src/index_20230524161343.tsx +17 -0
- package/.history/e2e/src/index_20230524161927.tsx +12 -0
- package/.history/e2e/src/index_20230524161943.tsx +11 -0
- package/.history/e2e/src/index_20230524215444.tsx +16 -0
- package/.history/e2e/src/util/index_20230524222013.ts +96 -0
- package/.history/e2e/src/util/index_20230525000927.ts +96 -0
- package/.history/e2e/src/util/index_20230525000928.ts +96 -0
- package/.history/e2e/src/util/index_20230525001227.ts +97 -0
- package/.history/e2e/src/util/index_20230525001229.ts +97 -0
- package/.history/e2e/src/util/index_20230525001439.ts +97 -0
- package/.history/e2e/src/util/index_20230525001641.ts +101 -0
- package/.history/e2e/src/util/index_20230525001953.ts +100 -0
- package/.history/e2e/src/util/index_20230525002514.ts +100 -0
- package/.history/e2e/src/util/index_20230525002533.ts +100 -0
- package/.history/ops/buildspec_20240620105123.yml +17 -0
- package/.history/package_20240620101011.json +176 -0
- package/.history/package_20240620102132.json +180 -0
- package/.history/package_20240620102136.json +179 -0
- package/.history/package_20240620102151.json +179 -0
- package/.history/package_20240620102153.json +179 -0
- package/.history/package_20240620102228.json +180 -0
- package/.history/package_20240620102534.json +181 -0
- package/.history/package_20240620102955.json +180 -0
- package/.history/package_20240620103103.json +181 -0
- package/.history/package_20240620103105.json +180 -0
- package/.history/package_20240620103120.json +181 -0
- package/.history/package_20240620103532.json +181 -0
- package/.history/package_20240620103741.json +181 -0
- package/.history/package_20240620103803.json +181 -0
- package/.history/package_20240620105356.json +181 -0
- package/.history/package_20240620110005.json +181 -0
- package/.history/package_20240620110042.json +172 -0
- package/.history/package_20240620131821.json +181 -0
- package/.history/package_20240620133118.json +179 -0
- package/.history/package_20240620133317.json +179 -0
- package/.history/package_20240620133341.json +179 -0
- package/.history/package_20240620135524.json +178 -0
- package/.history/public/index_20230523141735.html +15 -0
- package/.history/public/index_20230523141958.html +14 -0
- package/.history/src/components/Button/BaseButton/index_20240620100732.tsx +101 -0
- package/.history/src/components/Button/BaseButton/index_20240704140342.tsx +103 -0
- package/.history/src/components/Button/BaseButton/index_20240704140358.tsx +103 -0
- package/.history/src/components/Button/BaseButton/index_20240704140500.tsx +101 -0
- package/.history/src/components/Button/BaseButton/index_20240704140632.tsx +103 -0
- package/.history/src/components/Button/BaseButton/index_20240704140652.tsx +106 -0
- package/.history/src/components/Button/BaseButton/index_20240704140700.tsx +107 -0
- package/.history/src/components/Button/BaseButton/index_20240704140711.tsx +108 -0
- package/.history/src/components/Button/BaseButton/index_20240704140714.tsx +106 -0
- package/.history/src/components/Button/BaseButton/index_20240704140717.tsx +106 -0
- package/.history/src/components/Button/BaseButton/index_20240704140900.tsx +105 -0
- package/.history/src/components/Button/BaseButton/index_20240704140926.tsx +106 -0
- package/.history/src/components/Button/BaseButton/index_20240704140954.tsx +105 -0
- package/.history/src/components/Button/BaseButton/index_20240704141107.tsx +105 -0
- package/.history/src/components/Button/BaseButton/index_20240704141112.tsx +103 -0
- package/.history/src/components/Button/DoubleButton/index_20240620100732.tsx +53 -0
- package/.history/src/components/Button/DoubleButton/index_20240620133519.tsx +53 -0
- package/.history/src/components/Button/DoubleButton/index_20240620133607.tsx +53 -0
- package/.history/src/components/Control/CheckBox/index_20231208085202.tsx +51 -0
- package/.history/src/components/Control/CheckBox/index_20240102131509.tsx +53 -0
- package/.history/src/components/Control/CheckMark/index_20231208110651.tsx +33 -0
- package/.history/src/components/Control/CheckMark/index_20240104141745.tsx +35 -0
- package/.history/src/components/Input/BaseInput/index.styled_20230518172815.ts +149 -0
- package/.history/src/components/Input/BaseInput/index.styled_20230620134104.ts +150 -0
- package/.history/src/components/Input/BaseInput/index.styled_20230620153553.ts +150 -0
- package/.history/src/components/Input/BaseInput/index.styled_20230620162224.ts +151 -0
- package/.history/src/components/Input/PostfixInput/index.styled_20230518172815.ts +71 -0
- package/.history/src/components/Input/PostfixInput/index.styled_20230619181154.ts +72 -0
- package/.history/src/components/Input/PostfixInput/index.styled_20230619181243.ts +71 -0
- package/.history/src/components/Input/PostfixInput/index.styled_20230619181840.ts +70 -0
- package/.history/src/components/Input/PostfixInput/index.styled_20230619181843.ts +70 -0
- package/.history/src/components/Input/PostfixInput/index.styled_20230619181844.ts +70 -0
- package/.history/src/components/Input/PostfixInput/index.styled_20230620110646.ts +70 -0
- package/.history/src/components/Input/PostfixInput/index_20231208085501.tsx +173 -0
- package/.history/src/components/Input/PostfixInput/index_20231208085544.tsx +174 -0
- package/.history/src/components/Input/PostfixInput/index_20231208085701.tsx +175 -0
- package/.history/src/components/Input/PostfixInput/index_20231208090034.tsx +175 -0
- package/.history/src/components/Input/PostfixInput/index_20231208110722.tsx +174 -0
- package/.history/src/components/Input/PostfixInput/index_20231208110738.tsx +175 -0
- package/.history/src/components/Input/PostfixInput/index_20231208110752.tsx +176 -0
- package/.history/src/components/Input/index.stories_20230523113113.tsx +209 -0
- package/.history/src/components/Input/index.stories_20230619181021.tsx +210 -0
- package/.history/src/components/Input/index.stories_20230619181656.tsx +210 -0
- package/.history/src/components/Input/index.stories_20230619184317.tsx +210 -0
- package/.history/src/components/Loading/index_20230510193851.ts +4 -0
- package/.history/src/components/Loading/index_20230511140917.ts +5 -0
- package/.history/src/components/Loading/index_20230511151553.ts +4 -0
- package/.history/src/core/TextStyles/index_20230518172815.ts +158 -0
- package/.history/src/core/TextStyles/index_20230522164636.ts +158 -0
- package/.history/src/hooks/useLayoutIsMobile_20230510193851.ts +23 -0
- package/.history/src/hooks/useLayoutIsMobile_20240112115425.ts +23 -0
- package/.history/src/library/BasicLayout/index_20240620100732.tsx +89 -0
- package/.history/src/library/BasicLayout/index_20240620101635.tsx +89 -0
- package/.history/src/library/BasicLayout/index_20240620101752.tsx +89 -0
- package/.history/src/library/Flex/index.stories_20231208085202.tsx +41 -0
- package/.history/src/library/Flex/index.stories_20240620133414.tsx +41 -0
- package/.history/src/storybook/extend-color-type.stories_20240620100732.tsx +613 -0
- package/.history/src/storybook/extend-color-type.stories_20240620133449.tsx +613 -0
- package/.history/src/storybook/extend-color-type.stories_20240620133541.tsx +611 -0
- package/.history/src/storybook/extend-color-type.stories_20240620133550.tsx +609 -0
- package/.history/src/storybook/extend-color-type.stories_20240620133554.tsx +609 -0
- package/.history/src/utils/GenerateColorStyle/single-button_20240620100732.ts +109 -0
- package/.history/src/utils/GenerateColorStyle/single-button_20240702153725.ts +110 -0
- package/.history/src/utils/GenerateColorStyle/single-button_20240702153726.ts +110 -0
- package/.history/src/utils/GenerateColorStyle/single-button_20240702153826.ts +105 -0
- package/.history/src/utils/GenerateColorStyle/single-button_20240702153909.ts +110 -0
- package/.history/src/utils/GenerateColorStyle/single-button_20240702153934.ts +111 -0
- package/.history/src/utils/GenerateColorStyle/single-button_20240702153935.ts +111 -0
- package/.history/src/utils/GenerateColorStyle/single-button_20240704141120.ts +109 -0
- package/.history/yarn_20230510193944.lock +11943 -0
- package/.history/yarn_20230510194159.lock +11941 -0
- package/.vscode/settings.json +3 -0
- package/dist/components/Button/BaseButton/index.js +4 -2
- package/package.json +1 -1
- package/.build-storybook/1341.036b0413.iframe.bundle.js +0 -1
- package/.build-storybook/172.ea02123e.iframe.bundle.js +0 -1
- package/.build-storybook/1965.108e3614.iframe.bundle.js +0 -121
- package/.build-storybook/1965.108e3614.iframe.bundle.js.map +0 -1
- package/.build-storybook/2109.fd83da5e.iframe.bundle.js +0 -46
- package/.build-storybook/2109.fd83da5e.iframe.bundle.js.map +0 -1
- package/.build-storybook/2333.5709f3ed.iframe.bundle.js +0 -1
- package/.build-storybook/2991.a6871641.iframe.bundle.js +0 -1
- package/.build-storybook/4441.b93be02f.iframe.bundle.js +0 -1
- package/.build-storybook/4446.d823cd23.iframe.bundle.js +0 -1
- package/.build-storybook/4463.3b9d4be9.iframe.bundle.js +0 -44
- package/.build-storybook/4463.3b9d4be9.iframe.bundle.js.map +0 -1
- package/.build-storybook/4582.f3cf3997.iframe.bundle.js +0 -2
- package/.build-storybook/4582.f3cf3997.iframe.bundle.js.LICENSE.txt +0 -8
- package/.build-storybook/4698.02da77bd.iframe.bundle.js +0 -1
- package/.build-storybook/5661.6b60a6b3.iframe.bundle.js +0 -1
- package/.build-storybook/5898.17981f3a.iframe.bundle.js +0 -1
- package/.build-storybook/7058.5208eb63.iframe.bundle.js +0 -1
- package/.build-storybook/782.4c3df606.iframe.bundle.js +0 -402
- package/.build-storybook/782.4c3df606.iframe.bundle.js.LICENSE.txt +0 -56
- package/.build-storybook/782.4c3df606.iframe.bundle.js.map +0 -1
- package/.build-storybook/7856.80667440.iframe.bundle.js +0 -2
- package/.build-storybook/7856.80667440.iframe.bundle.js.LICENSE.txt +0 -8
- package/.build-storybook/8923.8ce812a9.iframe.bundle.js +0 -1
- package/.build-storybook/9469.3298ca9c.iframe.bundle.js +0 -1
- package/.build-storybook/Icon-index-stories.323a8702.iframe.bundle.js +0 -2
- package/.build-storybook/Icon-index-stories.323a8702.iframe.bundle.js.LICENSE.txt +0 -8
- package/.build-storybook/components-Badge-IconBadge-index-stories.ea59237d.iframe.bundle.js +0 -1
- package/.build-storybook/components-Badge-TextBadge-index-stories.09b543af.iframe.bundle.js +0 -1
- package/.build-storybook/components-BottomSheet-NavBottomSheet-index-stories.e989d5db.iframe.bundle.js +0 -1
- package/.build-storybook/components-BottomSheet-TitleBottomSheet-index-stories.45cac11e.iframe.bundle.js +0 -1
- package/.build-storybook/components-Button-DoubleButton-index-stories.843a0709.iframe.bundle.js +0 -1
- package/.build-storybook/components-Button-SingleButton-index-stories.6c3c9169.iframe.bundle.js +0 -1
- package/.build-storybook/components-Card-index-stories.d9989606.iframe.bundle.js +0 -1
- package/.build-storybook/components-Chips-index-stories.70495338.iframe.bundle.js +0 -1
- package/.build-storybook/components-Comment-index-stories.52d9bd9f.iframe.bundle.js +0 -2
- package/.build-storybook/components-Comment-index-stories.52d9bd9f.iframe.bundle.js.LICENSE.txt +0 -8
- package/.build-storybook/components-Control-CheckBox-index-stories.9c69b383.iframe.bundle.js +0 -1
- package/.build-storybook/components-Control-CheckMark-index-stories.9e0607ae.iframe.bundle.js +0 -1
- package/.build-storybook/components-Control-RadioButton-index-stories.2cdab497.iframe.bundle.js +0 -1
- package/.build-storybook/components-Control-Switch-index-stories.9918db98.iframe.bundle.js +0 -1
- package/.build-storybook/components-DatePicker-RangeDatePicker-index-stories.fc1ae3bb.iframe.bundle.js +0 -1
- package/.build-storybook/components-DatePicker-RangeDatePickerModal-index-stories.29a5990b.iframe.bundle.js +0 -1
- package/.build-storybook/components-DatePicker-SingleDatePicker-index-stories.237e8b4a.iframe.bundle.js +0 -1
- package/.build-storybook/components-DatePicker-SingleDatePickerModal-index-stories.05f2092c.iframe.bundle.js +0 -1
- package/.build-storybook/components-Divider-index-stories.f22689f5.iframe.bundle.js +0 -1
- package/.build-storybook/components-Input-index-stories.e686b65f.iframe.bundle.js +0 -1
- package/.build-storybook/components-Loading-index-stories.5fa13c58.iframe.bundle.js +0 -1
- package/.build-storybook/components-MiniButton-BoxMiniButton-index-stories.b3781690.iframe.bundle.js +0 -1
- package/.build-storybook/components-MiniButton-IconMiniButton-index-stories.6f91f33b.iframe.bundle.js +0 -1
- package/.build-storybook/components-MiniButton-UnderLineMiniButton-index-stories.daf8e4df.iframe.bundle.js +0 -1
- package/.build-storybook/components-Modal-index-stories.31e11593.iframe.bundle.js +0 -1
- package/.build-storybook/components-Navigation-index-stories.adf0819d.iframe.bundle.js +0 -1
- package/.build-storybook/components-Segment-index-stories.d40d4099.iframe.bundle.js +0 -2
- package/.build-storybook/components-Segment-index-stories.d40d4099.iframe.bundle.js.LICENSE.txt +0 -8
- package/.build-storybook/components-Tabs-FillTabs-index-stories.7e21ec77.iframe.bundle.js +0 -1
- package/.build-storybook/components-Tabs-TextTabs-index-stories.103ffbf6.iframe.bundle.js +0 -1
- package/.build-storybook/components-Tag-index-stories.a07da1a1.iframe.bundle.js +0 -1
- package/.build-storybook/components-Title-index-stories.afe0b53e.iframe.bundle.js +0 -1
- package/.build-storybook/components-ToastMessage-Toast-index-stories.ea34d5d9.iframe.bundle.js +0 -1
- package/.build-storybook/components-Tooltip-BasicTooltip-index-stories.e7b43bfc.iframe.bundle.js +0 -1
- package/.build-storybook/components-Tooltip-ImpactTooltip-index-stories.347b401c.iframe.bundle.js +0 -1
- package/.build-storybook/core-Colors-index-stories.03b34bb2.iframe.bundle.js +0 -1
- package/.build-storybook/core-Typography-index-stories.f364e712.iframe.bundle.js +0 -1
- package/.build-storybook/favicon.svg +0 -7
- package/.build-storybook/iframe.html +0 -406
- package/.build-storybook/index.html +0 -130
- package/.build-storybook/index.json +0 -1
- package/.build-storybook/library-BasicForm-index-stories.9bbd932c.iframe.bundle.js +0 -1
- package/.build-storybook/library-BasicLayout-3All-stories.8bc671b6.iframe.bundle.js +0 -1
- package/.build-storybook/library-BasicLayout-NoFooter-stories.7eda6ecd.iframe.bundle.js +0 -1
- package/.build-storybook/library-BasicLayout-NoHeader-stories.25727f30.iframe.bundle.js +0 -1
- package/.build-storybook/library-BasicLayout-OnlyBody-stories.002e7d7a.iframe.bundle.js +0 -1
- package/.build-storybook/library-Flex-index-stories.96c3c13c.iframe.bundle.js +0 -1
- package/.build-storybook/library-Spacing-index-stories.79b820c2.iframe.bundle.js +0 -1
- package/.build-storybook/main.736e2fbc.iframe.bundle.js +0 -1
- package/.build-storybook/project.json +0 -1
- package/.build-storybook/runtime~main.8e84fcf6.iframe.bundle.js +0 -1
- package/.build-storybook/sb-addons/essentials-actions-2/manager-bundle.mjs +0 -4
- package/.build-storybook/sb-addons/essentials-actions-2/manager-bundle.mjs.map +0 -7
- package/.build-storybook/sb-addons/essentials-backgrounds-3/manager-bundle.mjs +0 -13
- package/.build-storybook/sb-addons/essentials-backgrounds-3/manager-bundle.mjs.LEGAL.txt +0 -0
- package/.build-storybook/sb-addons/essentials-backgrounds-3/manager-bundle.mjs.map +0 -7
- package/.build-storybook/sb-addons/essentials-controls-1/manager-bundle.mjs +0 -117
- package/.build-storybook/sb-addons/essentials-controls-1/manager-bundle.mjs.LEGAL.txt +0 -18
- package/.build-storybook/sb-addons/essentials-controls-1/manager-bundle.mjs.map +0 -7
- package/.build-storybook/sb-addons/essentials-measure-6/manager-bundle.mjs +0 -4
- package/.build-storybook/sb-addons/essentials-measure-6/manager-bundle.mjs.LEGAL.txt +0 -0
- package/.build-storybook/sb-addons/essentials-measure-6/manager-bundle.mjs.map +0 -7
- package/.build-storybook/sb-addons/essentials-outline-7/manager-bundle.mjs +0 -4
- package/.build-storybook/sb-addons/essentials-outline-7/manager-bundle.mjs.LEGAL.txt +0 -0
- package/.build-storybook/sb-addons/essentials-outline-7/manager-bundle.mjs.map +0 -7
- package/.build-storybook/sb-addons/essentials-toolbars-5/manager-bundle.mjs +0 -4
- package/.build-storybook/sb-addons/essentials-toolbars-5/manager-bundle.mjs.LEGAL.txt +0 -0
- package/.build-storybook/sb-addons/essentials-toolbars-5/manager-bundle.mjs.map +0 -7
- package/.build-storybook/sb-addons/essentials-viewport-4/manager-bundle.mjs +0 -4
- package/.build-storybook/sb-addons/essentials-viewport-4/manager-bundle.mjs.LEGAL.txt +0 -0
- package/.build-storybook/sb-addons/essentials-viewport-4/manager-bundle.mjs.map +0 -7
- package/.build-storybook/sb-addons/interactions-8/manager-bundle.mjs +0 -31
- package/.build-storybook/sb-addons/interactions-8/manager-bundle.mjs.LEGAL.txt +0 -18
- package/.build-storybook/sb-addons/interactions-8/manager-bundle.mjs.map +0 -7
- package/.build-storybook/sb-addons/links-0/manager-bundle.mjs +0 -4
- package/.build-storybook/sb-addons/links-0/manager-bundle.mjs.LEGAL.txt +0 -0
- package/.build-storybook/sb-addons/links-0/manager-bundle.mjs.map +0 -7
- package/.build-storybook/sb-common-assets/fonts.css +0 -31
- package/.build-storybook/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/.build-storybook/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/.build-storybook/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/.build-storybook/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/.build-storybook/sb-manager/GlobalScrollAreaStyles-XIHNDKUY-IPHQ3X5E.mjs +0 -1
- package/.build-storybook/sb-manager/OverlayScrollbars-VAV6LJAB-ZCK6WCDR.mjs +0 -6
- package/.build-storybook/sb-manager/WithTooltip-FBT32F6Q-4UGX56G2.mjs +0 -1
- package/.build-storybook/sb-manager/chunk-2HSPAR27.mjs +0 -207
- package/.build-storybook/sb-manager/chunk-2ZRMZUFB.mjs +0 -140
- package/.build-storybook/sb-manager/chunk-7NJ6NIF4.mjs +0 -1
- package/.build-storybook/sb-manager/chunk-CGFORC26.mjs +0 -7
- package/.build-storybook/sb-manager/chunk-CGGDZUA2.mjs +0 -15
- package/.build-storybook/sb-manager/chunk-GPWZILNL.mjs +0 -1
- package/.build-storybook/sb-manager/chunk-JCTATS4D.mjs +0 -1
- package/.build-storybook/sb-manager/chunk-KQFPYAFV.mjs +0 -1
- package/.build-storybook/sb-manager/chunk-TZHETJRI.mjs +0 -406
- package/.build-storybook/sb-manager/chunk-WCYDYUGX.mjs +0 -1
- package/.build-storybook/sb-manager/formatter-S4K5WUZV-X2U232II.mjs +0 -156
- package/.build-storybook/sb-manager/globals.mjs +0 -1
- package/.build-storybook/sb-manager/index.mjs +0 -1
- package/.build-storybook/sb-manager/runtime.mjs +0 -1
- package/.build-storybook/sb-manager/syntaxhighlighter-QTQ2UBB4-FBPGUO4L.mjs +0 -1
- package/.build-storybook/sb-preview/chunk-M7Z73WKF.mjs +0 -1
- package/.build-storybook/sb-preview/globals.mjs +0 -1
- package/.build-storybook/sb-preview/runtime.mjs +0 -105
- package/.build-storybook/stories.json +0 -1
- package/.build-storybook/storybook-extend-color-type-stories.90a332f4.iframe.bundle.js +0 -1
- package/dist/components/NavigationBar/BottomNavigationBar/index.d.ts +0 -14
- package/dist/components/NavigationBar/BottomNavigationBar/index.js +0 -44
- package/dist/components/NavigationBar/BottomNavigationBar/index.stories.d.ts +0 -6
- package/dist/components/NavigationBar/BottomNavigationBar/index.stories.js +0 -43
- package/dist/components/NavigationBar/BottomNavigationBar/index.styled.d.ts +0 -17
- package/dist/components/NavigationBar/BottomNavigationBar/index.styled.js +0 -29
- package/dist/components/NavigationBar/PageNavigationBar/constant.d.ts +0 -7
- package/dist/components/NavigationBar/PageNavigationBar/constant.js +0 -18
- package/dist/components/NavigationBar/PageNavigationBar/index.d.ts +0 -34
- package/dist/components/NavigationBar/PageNavigationBar/index.js +0 -88
- package/dist/components/NavigationBar/PageNavigationBar/index.spec.d.ts +0 -1
- package/dist/components/NavigationBar/PageNavigationBar/index.spec.js +0 -20
- package/dist/components/NavigationBar/PageNavigationBar/index.stories.d.ts +0 -18
- package/dist/components/NavigationBar/PageNavigationBar/index.stories.js +0 -146
- package/dist/components/NavigationBar/PageNavigationBar/index.styled.d.ts +0 -41
- package/dist/components/NavigationBar/PageNavigationBar/index.styled.js +0 -48
- package/dist/components/NavigationBar/TitleNavigationBar/index.d.ts +0 -14
- package/dist/components/NavigationBar/TitleNavigationBar/index.js +0 -59
- package/dist/components/NavigationBar/TitleNavigationBar/index.stories.d.ts +0 -7
- package/dist/components/NavigationBar/TitleNavigationBar/index.stories.js +0 -54
- package/dist/components/NavigationBar/TitleNavigationBar/index.styled.d.ts +0 -23
- package/dist/components/NavigationBar/TitleNavigationBar/index.styled.js +0 -25
- package/dist/components/NavigationBar/index.d.ts +0 -3
- package/dist/components/NavigationBar/index.js +0 -19
- package/dist/components/Tab/index.d.ts +0 -11
- package/dist/components/Tab/index.js +0 -38
- package/dist/components/Tab/index.spec.d.ts +0 -1
- package/dist/components/Tab/index.spec.js +0 -21
- package/dist/components/Tab/index.stories.d.ts +0 -16
- package/dist/components/Tab/index.stories.js +0 -107
- package/dist/components/Tab/index.styled.d.ts +0 -18
- package/dist/components/Tab/index.styled.js +0 -71
- package/dist/components/Tag/BaseTag/index.d.ts +0 -14
- package/dist/components/Tag/BaseTag/index.js +0 -37
- package/dist/components/Tag/BaseTag/index.styled.d.ts +0 -10
- package/dist/components/Tag/BaseTag/index.styled.js +0 -17
- package/dist/components/Tag/BlueTag.d.ts +0 -4
- package/dist/components/Tag/BlueTag.js +0 -10
- package/dist/components/Tag/GrayTag.d.ts +0 -4
- package/dist/components/Tag/GrayTag.js +0 -10
- package/dist/components/Tag/GreenTag.d.ts +0 -4
- package/dist/components/Tag/GreenTag.js +0 -10
- package/dist/components/Tag/LimeTag.d.ts +0 -4
- package/dist/components/Tag/LimeTag.js +0 -10
- package/dist/components/Tag/PinkTag.d.ts +0 -4
- package/dist/components/Tag/PinkTag.js +0 -10
- package/dist/components/Tag/PurpleTag.d.ts +0 -4
- package/dist/components/Tag/PurpleTag.js +0 -10
- package/dist/components/Tag/RedTag.d.ts +0 -4
- package/dist/components/Tag/RedTag.js +0 -10
- package/dist/components/Tag/YellowTag.d.ts +0 -4
- package/dist/components/Tag/YellowTag.js +0 -10
- package/dist/components/Tag/index.spec.d.ts +0 -1
- package/dist/components/Tag/index.spec.js +0 -14
- package/dist/library/ShareUI/Buttons.d.ts +0 -7
- package/dist/library/ShareUI/Buttons.js +0 -20
- package/dist/library/ShareUI/index.d.ts +0 -14
- package/dist/library/ShareUI/index.js +0 -59
- package/dist/library/ShareUI/index.stories.d.ts +0 -6
- package/dist/library/ShareUI/index.stories.js +0 -32
- package/dist/library/ShareUI/index.styled.d.ts +0 -60
- package/dist/library/ShareUI/index.styled.js +0 -60
- /package/{.build-storybook/image.png → .history/config-overrides_20230523140418.js} +0 -0
- /package/{.build-storybook/sb-addons/essentials-actions-2/manager-bundle.mjs.LEGAL.txt → .history/e2e/pages/src/components/Loading_20230511175658.tsx} +0 -0
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { ItemType } from 'antd/es/menu/hooks/useItems';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* TODO: 각 함수에 대해서 테스트 파일 작성하기
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
type MenuObject = {
|
|
8
|
+
[key: string]: MenuObject | string[];
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
const getMenuItem = (label: string, key: string, icon?: string, children?: ItemType[], type?: string) => {
|
|
12
|
+
return {
|
|
13
|
+
key,
|
|
14
|
+
icon,
|
|
15
|
+
children,
|
|
16
|
+
label,
|
|
17
|
+
type,
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
const createMenuList = (data: MenuObject, originKey = ''): ItemType[] => {
|
|
22
|
+
return Object.entries(data).map(([key, value]) => {
|
|
23
|
+
if (Array.isArray(value)) {
|
|
24
|
+
return {
|
|
25
|
+
key: `${key}/${originKey}`,
|
|
26
|
+
label: key,
|
|
27
|
+
children: value.map((fileName) => {
|
|
28
|
+
return getMenuItem(fileName, `${fileName}/${key}/${originKey}`);
|
|
29
|
+
}),
|
|
30
|
+
};
|
|
31
|
+
} else {
|
|
32
|
+
return getMenuItem(key, `${key}/${originKey}`, undefined, [...createMenuList(value, `${key}/${originKey}`)]);
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
const makeMenuListFromImageUrlList = (imageUrlList: string[]): ItemType[] => {
|
|
38
|
+
const obj: MenuObject = {};
|
|
39
|
+
|
|
40
|
+
imageUrlList.forEach((item) => {
|
|
41
|
+
const [service, domainName, testName, dateTime, childTest, fileName] = item.split('/');
|
|
42
|
+
/**
|
|
43
|
+
* TODO: 타입 수정 필요. 이렇게밖에 안되는지?
|
|
44
|
+
*/
|
|
45
|
+
obj[service] = obj[service] || {};
|
|
46
|
+
|
|
47
|
+
(obj[service] as MenuObject)[domainName] = (obj[service] as MenuObject)[domainName] || {};
|
|
48
|
+
|
|
49
|
+
((obj[service] as MenuObject)[domainName] as MenuObject)[testName] =
|
|
50
|
+
((obj[service] as MenuObject)[domainName] as MenuObject)[testName] || {};
|
|
51
|
+
|
|
52
|
+
(((obj[service] as MenuObject)[domainName] as MenuObject)[testName] as MenuObject)[dateTime] =
|
|
53
|
+
(((obj[service] as MenuObject)[domainName] as MenuObject)[testName] as MenuObject)[dateTime] || {};
|
|
54
|
+
|
|
55
|
+
((((obj[service] as MenuObject)[domainName] as MenuObject)[testName] as MenuObject)[dateTime] as MenuObject)[
|
|
56
|
+
childTest
|
|
57
|
+
] = (
|
|
58
|
+
(((((obj[service] as MenuObject)[domainName] as MenuObject)[testName] as MenuObject)[dateTime] as MenuObject)[
|
|
59
|
+
childTest
|
|
60
|
+
] as string[]) ?? []
|
|
61
|
+
).concat([fileName]);
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
const items = [...createMenuList(obj)];
|
|
65
|
+
|
|
66
|
+
return items;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
const getOriginImagePath = (path: string) => {
|
|
70
|
+
const temp = path.split('/').filter((item) => item);
|
|
71
|
+
temp.reverse();
|
|
72
|
+
|
|
73
|
+
const result = temp.join('/');
|
|
74
|
+
|
|
75
|
+
return result;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
const getImageUrlList = (basicUrl: string, imageFolderUrl: string) => {
|
|
79
|
+
const imageUrls = ['baseline', 'comparison', 'diff'].map(
|
|
80
|
+
(fileName) => `${basicUrl}/${imageFolderUrl}/${fileName}.png`
|
|
81
|
+
);
|
|
82
|
+
|
|
83
|
+
return imageUrls;
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
const getImageUrlFromBrowserUrl = (browserUrl: string) => {
|
|
87
|
+
const hashDivider = '#/#'
|
|
88
|
+
|
|
89
|
+
return decodeURI(browserUrl.replace(hashDivider, '')).replace('+', '%2B')
|
|
90
|
+
}
|
|
91
|
+
export default {
|
|
92
|
+
makeMenuListFromImageUrlList,
|
|
93
|
+
getOriginImagePath,
|
|
94
|
+
getImageUrlList,
|
|
95
|
+
getImageUrlFromBrowserUrl
|
|
96
|
+
};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { ItemType } from 'antd/es/menu/hooks/useItems';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* TODO: 각 함수에 대해서 테스트 파일 작성하기
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
type MenuObject = {
|
|
8
|
+
[key: string]: MenuObject | string[];
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
const getMenuItem = (label: string, key: string, icon?: string, children?: ItemType[], type?: string) => {
|
|
12
|
+
return {
|
|
13
|
+
key,
|
|
14
|
+
icon,
|
|
15
|
+
children,
|
|
16
|
+
label,
|
|
17
|
+
type,
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
const createMenuList = (data: MenuObject, originKey = ''): ItemType[] => {
|
|
22
|
+
return Object.entries(data).map(([key, value]) => {
|
|
23
|
+
if (Array.isArray(value)) {
|
|
24
|
+
return {
|
|
25
|
+
key: `${key}/${originKey}`,
|
|
26
|
+
label: key,
|
|
27
|
+
children: value.map((fileName) => {
|
|
28
|
+
return getMenuItem(fileName, `${fileName}/${key}/${originKey}`);
|
|
29
|
+
}),
|
|
30
|
+
};
|
|
31
|
+
} else {
|
|
32
|
+
return getMenuItem(key, `${key}/${originKey}`, undefined, [...createMenuList(value, `${key}/${originKey}`)]);
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
const makeMenuListFromImageUrlList = (imageUrlList: string[]): ItemType[] => {
|
|
38
|
+
const obj: MenuObject = {};
|
|
39
|
+
|
|
40
|
+
imageUrlList.forEach((item) => {
|
|
41
|
+
const [service, domainName, testName, dateTime, childTest, fileName] = item.split('/');
|
|
42
|
+
/**
|
|
43
|
+
* TODO: 타입 수정 필요. 이렇게밖에 안되는지?
|
|
44
|
+
*/
|
|
45
|
+
obj[service] = obj[service] || {};
|
|
46
|
+
|
|
47
|
+
(obj[service] as MenuObject)[domainName] = (obj[service] as MenuObject)[domainName] || {};
|
|
48
|
+
|
|
49
|
+
((obj[service] as MenuObject)[domainName] as MenuObject)[testName] =
|
|
50
|
+
((obj[service] as MenuObject)[domainName] as MenuObject)[testName] || {};
|
|
51
|
+
|
|
52
|
+
(((obj[service] as MenuObject)[domainName] as MenuObject)[testName] as MenuObject)[dateTime] =
|
|
53
|
+
(((obj[service] as MenuObject)[domainName] as MenuObject)[testName] as MenuObject)[dateTime] || {};
|
|
54
|
+
|
|
55
|
+
((((obj[service] as MenuObject)[domainName] as MenuObject)[testName] as MenuObject)[dateTime] as MenuObject)[
|
|
56
|
+
childTest
|
|
57
|
+
] = (
|
|
58
|
+
(((((obj[service] as MenuObject)[domainName] as MenuObject)[testName] as MenuObject)[dateTime] as MenuObject)[
|
|
59
|
+
childTest
|
|
60
|
+
] as string[]) ?? []
|
|
61
|
+
).concat([fileName]);
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
const items = [...createMenuList(obj)];
|
|
65
|
+
|
|
66
|
+
return items;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
const getOriginImagePath = (path: string) => {
|
|
70
|
+
const temp = path.split('/').filter((item) => item);
|
|
71
|
+
temp.reverse();
|
|
72
|
+
|
|
73
|
+
const result = temp.join('/');
|
|
74
|
+
|
|
75
|
+
return result;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
const getImageUrlList = (basicUrl: string, imageFolderUrl: string) => {
|
|
79
|
+
const imageUrls = ['baseline', 'comparison', 'diff'].map(
|
|
80
|
+
(fileName) => `${basicUrl}/${imageFolderUrl}/${fileName}.png`
|
|
81
|
+
);
|
|
82
|
+
|
|
83
|
+
return imageUrls;
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
const getImageUrlFromBrowserUrl = (browserUrl: string) => {
|
|
87
|
+
const hashDivider = '#/#'
|
|
88
|
+
console.log('browserUrl')
|
|
89
|
+
|
|
90
|
+
return decodeURI(browserUrl.replace(hashDivider, '')).replace('+', '%2B')
|
|
91
|
+
}
|
|
92
|
+
export default {
|
|
93
|
+
makeMenuListFromImageUrlList,
|
|
94
|
+
getOriginImagePath,
|
|
95
|
+
getImageUrlList,
|
|
96
|
+
getImageUrlFromBrowserUrl
|
|
97
|
+
};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { ItemType } from 'antd/es/menu/hooks/useItems';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* TODO: 각 함수에 대해서 테스트 파일 작성하기
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
type MenuObject = {
|
|
8
|
+
[key: string]: MenuObject | string[];
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
const getMenuItem = (label: string, key: string, icon?: string, children?: ItemType[], type?: string) => {
|
|
12
|
+
return {
|
|
13
|
+
key,
|
|
14
|
+
icon,
|
|
15
|
+
children,
|
|
16
|
+
label,
|
|
17
|
+
type,
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
const createMenuList = (data: MenuObject, originKey = ''): ItemType[] => {
|
|
22
|
+
return Object.entries(data).map(([key, value]) => {
|
|
23
|
+
if (Array.isArray(value)) {
|
|
24
|
+
return {
|
|
25
|
+
key: `${key}/${originKey}`,
|
|
26
|
+
label: key,
|
|
27
|
+
children: value.map((fileName) => {
|
|
28
|
+
return getMenuItem(fileName, `${fileName}/${key}/${originKey}`);
|
|
29
|
+
}),
|
|
30
|
+
};
|
|
31
|
+
} else {
|
|
32
|
+
return getMenuItem(key, `${key}/${originKey}`, undefined, [...createMenuList(value, `${key}/${originKey}`)]);
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
const makeMenuListFromImageUrlList = (imageUrlList: string[]): ItemType[] => {
|
|
38
|
+
const obj: MenuObject = {};
|
|
39
|
+
|
|
40
|
+
imageUrlList.forEach((item) => {
|
|
41
|
+
const [service, domainName, testName, dateTime, childTest, fileName] = item.split('/');
|
|
42
|
+
/**
|
|
43
|
+
* TODO: 타입 수정 필요. 이렇게밖에 안되는지?
|
|
44
|
+
*/
|
|
45
|
+
obj[service] = obj[service] || {};
|
|
46
|
+
|
|
47
|
+
(obj[service] as MenuObject)[domainName] = (obj[service] as MenuObject)[domainName] || {};
|
|
48
|
+
|
|
49
|
+
((obj[service] as MenuObject)[domainName] as MenuObject)[testName] =
|
|
50
|
+
((obj[service] as MenuObject)[domainName] as MenuObject)[testName] || {};
|
|
51
|
+
|
|
52
|
+
(((obj[service] as MenuObject)[domainName] as MenuObject)[testName] as MenuObject)[dateTime] =
|
|
53
|
+
(((obj[service] as MenuObject)[domainName] as MenuObject)[testName] as MenuObject)[dateTime] || {};
|
|
54
|
+
|
|
55
|
+
((((obj[service] as MenuObject)[domainName] as MenuObject)[testName] as MenuObject)[dateTime] as MenuObject)[
|
|
56
|
+
childTest
|
|
57
|
+
] = (
|
|
58
|
+
(((((obj[service] as MenuObject)[domainName] as MenuObject)[testName] as MenuObject)[dateTime] as MenuObject)[
|
|
59
|
+
childTest
|
|
60
|
+
] as string[]) ?? []
|
|
61
|
+
).concat([fileName]);
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
const items = [...createMenuList(obj)];
|
|
65
|
+
|
|
66
|
+
return items;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
const getOriginImagePath = (path: string) => {
|
|
70
|
+
const temp = path.split('/').filter((item) => item);
|
|
71
|
+
temp.reverse();
|
|
72
|
+
|
|
73
|
+
const result = temp.join('/');
|
|
74
|
+
|
|
75
|
+
return result;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
const getImageUrlList = (basicUrl: string, imageFolderUrl: string) => {
|
|
79
|
+
const imageUrls = ['baseline', 'comparison', 'diff'].map(
|
|
80
|
+
(fileName) => `${basicUrl}/${imageFolderUrl}/${fileName}.png`
|
|
81
|
+
);
|
|
82
|
+
|
|
83
|
+
return imageUrls;
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
const getImageUrlFromBrowserUrl = (browserUrl: string) => {
|
|
87
|
+
const hashDivider = '#/#'
|
|
88
|
+
console.log(browserUrl)
|
|
89
|
+
|
|
90
|
+
return decodeURI(browserUrl.replace(hashDivider, '')).replace('+', '%2B')
|
|
91
|
+
}
|
|
92
|
+
export default {
|
|
93
|
+
makeMenuListFromImageUrlList,
|
|
94
|
+
getOriginImagePath,
|
|
95
|
+
getImageUrlList,
|
|
96
|
+
getImageUrlFromBrowserUrl
|
|
97
|
+
};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { ItemType } from 'antd/es/menu/hooks/useItems';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* TODO: 각 함수에 대해서 테스트 파일 작성하기
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
type MenuObject = {
|
|
8
|
+
[key: string]: MenuObject | string[];
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
const getMenuItem = (label: string, key: string, icon?: string, children?: ItemType[], type?: string) => {
|
|
12
|
+
return {
|
|
13
|
+
key,
|
|
14
|
+
icon,
|
|
15
|
+
children,
|
|
16
|
+
label,
|
|
17
|
+
type,
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
const createMenuList = (data: MenuObject, originKey = ''): ItemType[] => {
|
|
22
|
+
return Object.entries(data).map(([key, value]) => {
|
|
23
|
+
if (Array.isArray(value)) {
|
|
24
|
+
return {
|
|
25
|
+
key: `${key}/${originKey}`,
|
|
26
|
+
label: key,
|
|
27
|
+
children: value.map((fileName) => {
|
|
28
|
+
return getMenuItem(fileName, `${fileName}/${key}/${originKey}`);
|
|
29
|
+
}),
|
|
30
|
+
};
|
|
31
|
+
} else {
|
|
32
|
+
return getMenuItem(key, `${key}/${originKey}`, undefined, [...createMenuList(value, `${key}/${originKey}`)]);
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
const makeMenuListFromImageUrlList = (imageUrlList: string[]): ItemType[] => {
|
|
38
|
+
const obj: MenuObject = {};
|
|
39
|
+
|
|
40
|
+
imageUrlList.forEach((item) => {
|
|
41
|
+
const [service, domainName, testName, dateTime, childTest, fileName] = item.split('/');
|
|
42
|
+
/**
|
|
43
|
+
* TODO: 타입 수정 필요. 이렇게밖에 안되는지?
|
|
44
|
+
*/
|
|
45
|
+
obj[service] = obj[service] || {};
|
|
46
|
+
|
|
47
|
+
(obj[service] as MenuObject)[domainName] = (obj[service] as MenuObject)[domainName] || {};
|
|
48
|
+
|
|
49
|
+
((obj[service] as MenuObject)[domainName] as MenuObject)[testName] =
|
|
50
|
+
((obj[service] as MenuObject)[domainName] as MenuObject)[testName] || {};
|
|
51
|
+
|
|
52
|
+
(((obj[service] as MenuObject)[domainName] as MenuObject)[testName] as MenuObject)[dateTime] =
|
|
53
|
+
(((obj[service] as MenuObject)[domainName] as MenuObject)[testName] as MenuObject)[dateTime] || {};
|
|
54
|
+
|
|
55
|
+
((((obj[service] as MenuObject)[domainName] as MenuObject)[testName] as MenuObject)[dateTime] as MenuObject)[
|
|
56
|
+
childTest
|
|
57
|
+
] = (
|
|
58
|
+
(((((obj[service] as MenuObject)[domainName] as MenuObject)[testName] as MenuObject)[dateTime] as MenuObject)[
|
|
59
|
+
childTest
|
|
60
|
+
] as string[]) ?? []
|
|
61
|
+
).concat([fileName]);
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
const items = [...createMenuList(obj)];
|
|
65
|
+
|
|
66
|
+
return items;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
const getOriginImagePath = (path: string) => {
|
|
70
|
+
const temp = path.split('/').filter((item) => item);
|
|
71
|
+
temp.reverse();
|
|
72
|
+
|
|
73
|
+
const result = temp.join('/').replace('+', '%2B');
|
|
74
|
+
|
|
75
|
+
return result;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
const getImageUrlList = (basicUrl: string, imageFolderUrl: string) => {
|
|
79
|
+
const imageUrls = ['baseline', 'comparison', 'diff'].map(
|
|
80
|
+
(fileName) => `${basicUrl}/${imageFolderUrl}/${fileName}.png`
|
|
81
|
+
);
|
|
82
|
+
|
|
83
|
+
return imageUrls;
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
const getImageUrlFromBrowserUrl = (browserUrl: string) => {
|
|
87
|
+
const hashDivider = '#/#'
|
|
88
|
+
console.log(browserUrl)
|
|
89
|
+
|
|
90
|
+
return decodeURI(browserUrl.replace(hashDivider, '')).replace('+', '%2B')
|
|
91
|
+
}
|
|
92
|
+
export default {
|
|
93
|
+
makeMenuListFromImageUrlList,
|
|
94
|
+
getOriginImagePath,
|
|
95
|
+
getImageUrlList,
|
|
96
|
+
getImageUrlFromBrowserUrl
|
|
97
|
+
};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { ItemType } from 'antd/es/menu/hooks/useItems';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* TODO: 각 함수에 대해서 테스트 파일 작성하기
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
type MenuObject = {
|
|
8
|
+
[key: string]: MenuObject | string[];
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
const replacePlusSign = (text: string): string => {
|
|
12
|
+
return text.replace('+', '%2B');
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
const getMenuItem = (label: string, key: string, icon?: string, children?: ItemType[], type?: string) => {
|
|
16
|
+
return {
|
|
17
|
+
key,
|
|
18
|
+
icon,
|
|
19
|
+
children,
|
|
20
|
+
label,
|
|
21
|
+
type,
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
const createMenuList = (data: MenuObject, originKey = ''): ItemType[] => {
|
|
26
|
+
return Object.entries(data).map(([key, value]) => {
|
|
27
|
+
if (Array.isArray(value)) {
|
|
28
|
+
return {
|
|
29
|
+
key: `${key}/${originKey}`,
|
|
30
|
+
label: key,
|
|
31
|
+
children: value.map((fileName) => {
|
|
32
|
+
return getMenuItem(fileName, `${fileName}/${key}/${originKey}`);
|
|
33
|
+
}),
|
|
34
|
+
};
|
|
35
|
+
} else {
|
|
36
|
+
return getMenuItem(key, `${key}/${originKey}`, undefined, [...createMenuList(value, `${key}/${originKey}`)]);
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
const makeMenuListFromImageUrlList = (imageUrlList: string[]): ItemType[] => {
|
|
42
|
+
const obj: MenuObject = {};
|
|
43
|
+
|
|
44
|
+
imageUrlList.forEach((item) => {
|
|
45
|
+
const [service, domainName, testName, dateTime, childTest, fileName] = item.split('/');
|
|
46
|
+
/**
|
|
47
|
+
* TODO: 타입 수정 필요. 이렇게밖에 안되는지?
|
|
48
|
+
*/
|
|
49
|
+
obj[service] = obj[service] || {};
|
|
50
|
+
|
|
51
|
+
(obj[service] as MenuObject)[domainName] = (obj[service] as MenuObject)[domainName] || {};
|
|
52
|
+
|
|
53
|
+
((obj[service] as MenuObject)[domainName] as MenuObject)[testName] =
|
|
54
|
+
((obj[service] as MenuObject)[domainName] as MenuObject)[testName] || {};
|
|
55
|
+
|
|
56
|
+
(((obj[service] as MenuObject)[domainName] as MenuObject)[testName] as MenuObject)[dateTime] =
|
|
57
|
+
(((obj[service] as MenuObject)[domainName] as MenuObject)[testName] as MenuObject)[dateTime] || {};
|
|
58
|
+
|
|
59
|
+
((((obj[service] as MenuObject)[domainName] as MenuObject)[testName] as MenuObject)[dateTime] as MenuObject)[
|
|
60
|
+
childTest
|
|
61
|
+
] = (
|
|
62
|
+
(((((obj[service] as MenuObject)[domainName] as MenuObject)[testName] as MenuObject)[dateTime] as MenuObject)[
|
|
63
|
+
childTest
|
|
64
|
+
] as string[]) ?? []
|
|
65
|
+
).concat([fileName]);
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
const items = [...createMenuList(obj)];
|
|
69
|
+
|
|
70
|
+
return items;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
const getOriginImagePath = (path: string) => {
|
|
74
|
+
const temp = path.split('/').filter((item) => item);
|
|
75
|
+
temp.reverse();
|
|
76
|
+
|
|
77
|
+
const result = replacePlusSign(temp.join('/'));
|
|
78
|
+
|
|
79
|
+
return result;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
const getImageUrlList = (basicUrl: string, imageFolderUrl: string) => {
|
|
83
|
+
const imageUrls = ['baseline', 'comparison', 'diff'].map(
|
|
84
|
+
(fileName) => `${basicUrl}/${imageFolderUrl}/${fileName}.png`
|
|
85
|
+
);
|
|
86
|
+
|
|
87
|
+
return imageUrls;
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
const getImageUrlFromBrowserUrl = (browserUrl: string) => {
|
|
91
|
+
const hashDivider = '#/#';
|
|
92
|
+
console.log(browserUrl);
|
|
93
|
+
|
|
94
|
+
return replacePlusSign(decodeURI(browserUrl.replace(hashDivider, '')));
|
|
95
|
+
};
|
|
96
|
+
export default {
|
|
97
|
+
makeMenuListFromImageUrlList,
|
|
98
|
+
getOriginImagePath,
|
|
99
|
+
getImageUrlList,
|
|
100
|
+
getImageUrlFromBrowserUrl,
|
|
101
|
+
};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { ItemType } from 'antd/es/menu/hooks/useItems';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* TODO: 각 함수에 대해서 테스트 파일 작성하기
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
type MenuObject = {
|
|
8
|
+
[key: string]: MenuObject | string[];
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
const replacePlusSign = (text: string): string => {
|
|
12
|
+
return text.replace('+', '%2B');
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
const getMenuItem = (label: string, key: string, icon?: string, children?: ItemType[], type?: string) => {
|
|
16
|
+
return {
|
|
17
|
+
key,
|
|
18
|
+
icon,
|
|
19
|
+
children,
|
|
20
|
+
label,
|
|
21
|
+
type,
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
const createMenuList = (data: MenuObject, originKey = ''): ItemType[] => {
|
|
26
|
+
return Object.entries(data).map(([key, value]) => {
|
|
27
|
+
if (Array.isArray(value)) {
|
|
28
|
+
return {
|
|
29
|
+
key: `${key}/${originKey}`,
|
|
30
|
+
label: key,
|
|
31
|
+
children: value.map((fileName) => {
|
|
32
|
+
return getMenuItem(fileName, `${fileName}/${key}/${originKey}`);
|
|
33
|
+
}),
|
|
34
|
+
};
|
|
35
|
+
} else {
|
|
36
|
+
return getMenuItem(key, `${key}/${originKey}`, undefined, [...createMenuList(value, `${key}/${originKey}`)]);
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
const makeMenuListFromImageUrlList = (imageUrlList: string[]): ItemType[] => {
|
|
42
|
+
const obj: MenuObject = {};
|
|
43
|
+
|
|
44
|
+
imageUrlList.forEach((item) => {
|
|
45
|
+
const [service, domainName, testName, dateTime, childTest, fileName] = item.split('/');
|
|
46
|
+
/**
|
|
47
|
+
* TODO: 타입 수정 필요. 이렇게밖에 안되는지?
|
|
48
|
+
*/
|
|
49
|
+
obj[service] = obj[service] || {};
|
|
50
|
+
|
|
51
|
+
(obj[service] as MenuObject)[domainName] = (obj[service] as MenuObject)[domainName] || {};
|
|
52
|
+
|
|
53
|
+
((obj[service] as MenuObject)[domainName] as MenuObject)[testName] =
|
|
54
|
+
((obj[service] as MenuObject)[domainName] as MenuObject)[testName] || {};
|
|
55
|
+
|
|
56
|
+
(((obj[service] as MenuObject)[domainName] as MenuObject)[testName] as MenuObject)[dateTime] =
|
|
57
|
+
(((obj[service] as MenuObject)[domainName] as MenuObject)[testName] as MenuObject)[dateTime] || {};
|
|
58
|
+
|
|
59
|
+
((((obj[service] as MenuObject)[domainName] as MenuObject)[testName] as MenuObject)[dateTime] as MenuObject)[
|
|
60
|
+
childTest
|
|
61
|
+
] = (
|
|
62
|
+
(((((obj[service] as MenuObject)[domainName] as MenuObject)[testName] as MenuObject)[dateTime] as MenuObject)[
|
|
63
|
+
childTest
|
|
64
|
+
] as string[]) ?? []
|
|
65
|
+
).concat([fileName]);
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
const items = [...createMenuList(obj)];
|
|
69
|
+
|
|
70
|
+
return items;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
const getOriginImagePath = (path: string) => {
|
|
74
|
+
const temp = path.split('/').filter((item) => item);
|
|
75
|
+
temp.reverse();
|
|
76
|
+
|
|
77
|
+
const result = replacePlusSign(temp.join('/'));
|
|
78
|
+
|
|
79
|
+
return result;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
const getImageUrlList = (basicUrl: string, imageFolderUrl: string) => {
|
|
83
|
+
const imageUrls = ['baseline', 'comparison', 'diff'].map(
|
|
84
|
+
(fileName) => `${basicUrl}/${imageFolderUrl}/${fileName}.png`
|
|
85
|
+
);
|
|
86
|
+
|
|
87
|
+
return imageUrls;
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
const getImageUrlFromBrowserUrl = (browserUrl: string) => {
|
|
91
|
+
const hashDivider = '#/#';
|
|
92
|
+
|
|
93
|
+
return replacePlusSign(decodeURI(browserUrl.replace(hashDivider, '')));
|
|
94
|
+
};
|
|
95
|
+
export default {
|
|
96
|
+
makeMenuListFromImageUrlList,
|
|
97
|
+
getOriginImagePath,
|
|
98
|
+
getImageUrlList,
|
|
99
|
+
getImageUrlFromBrowserUrl,
|
|
100
|
+
};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { ItemType } from 'antd/es/menu/hooks/useItems';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* TODO: 각 함수에 대해서 테스트 파일 작성하기
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
type MenuObject = {
|
|
8
|
+
[key: string]: MenuObject | string[];
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
const replacePlusSign = (text: string): string => {
|
|
12
|
+
return text.replace('+', '%2B');
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
const getMenuItem = (label: string, key: string, icon?: string, children?: ItemType[], type?: string) => {
|
|
16
|
+
return {
|
|
17
|
+
key,
|
|
18
|
+
icon,
|
|
19
|
+
children,
|
|
20
|
+
label,
|
|
21
|
+
type,
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
const createMenuList = (data: MenuObject, originKey = ''): ItemType[] => {
|
|
26
|
+
return Object.entries(data).map(([key, value]) => {
|
|
27
|
+
if (Array.isArray(value)) {
|
|
28
|
+
return {
|
|
29
|
+
key: `${key}/${originKey}`,
|
|
30
|
+
label: key,
|
|
31
|
+
children: value.map((fileName) => {
|
|
32
|
+
return getMenuItem(fileName, `${fileName}/${key}/${originKey}`);
|
|
33
|
+
}),
|
|
34
|
+
};
|
|
35
|
+
} else {
|
|
36
|
+
return getMenuItem(key, `${key}/${originKey}`, undefined, [...createMenuList(value, `${key}/${originKey}`)]);
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
const makeMenuListFromImageUrlList = (imageUrlList: string[]): ItemType[] => {
|
|
42
|
+
const obj: MenuObject = {};
|
|
43
|
+
|
|
44
|
+
imageUrlList.forEach((item) => {
|
|
45
|
+
const [service, domainName, testName, dateTime, childTest, fileName] = item.split('/');
|
|
46
|
+
/**
|
|
47
|
+
* TODO: 타입 수정 필요. 이렇게밖에 안되는지?
|
|
48
|
+
*/
|
|
49
|
+
obj[service] = obj[service] || {};
|
|
50
|
+
|
|
51
|
+
(obj[service] as MenuObject)[domainName] = (obj[service] as MenuObject)[domainName] || {};
|
|
52
|
+
|
|
53
|
+
((obj[service] as MenuObject)[domainName] as MenuObject)[testName] =
|
|
54
|
+
((obj[service] as MenuObject)[domainName] as MenuObject)[testName] || {};
|
|
55
|
+
|
|
56
|
+
(((obj[service] as MenuObject)[domainName] as MenuObject)[testName] as MenuObject)[dateTime] =
|
|
57
|
+
(((obj[service] as MenuObject)[domainName] as MenuObject)[testName] as MenuObject)[dateTime] || {};
|
|
58
|
+
|
|
59
|
+
((((obj[service] as MenuObject)[domainName] as MenuObject)[testName] as MenuObject)[dateTime] as MenuObject)[
|
|
60
|
+
childTest
|
|
61
|
+
] = (
|
|
62
|
+
(((((obj[service] as MenuObject)[domainName] as MenuObject)[testName] as MenuObject)[dateTime] as MenuObject)[
|
|
63
|
+
childTest
|
|
64
|
+
] as string[]) ?? []
|
|
65
|
+
).concat([fileName]);
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
const items = [...createMenuList(obj)];
|
|
69
|
+
|
|
70
|
+
return items;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
const getOriginImagePath = (path: string) => {
|
|
74
|
+
const temp = path.split('/').filter((item) => item);
|
|
75
|
+
temp.reverse();
|
|
76
|
+
|
|
77
|
+
const result = replacePlusSign(temp.join('/'));
|
|
78
|
+
|
|
79
|
+
return result;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
const getImageUrlList = (basicUrl: string, imageFolderUrl: string) => {
|
|
83
|
+
const imageUrls = ['baseline', 'comparison', 'diff'].map(
|
|
84
|
+
(fileName) => `${basicUrl}/${imageFolderUrl}/${fileName}.png`
|
|
85
|
+
);
|
|
86
|
+
|
|
87
|
+
return imageUrls;
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
const getImageUrlFromBrowserUrl = (browserUrl: string) => {
|
|
91
|
+
const hashDivider = '#/#/';
|
|
92
|
+
|
|
93
|
+
return replacePlusSign(decodeURI(browserUrl.replace(hashDivider, '')));
|
|
94
|
+
};
|
|
95
|
+
export default {
|
|
96
|
+
makeMenuListFromImageUrlList,
|
|
97
|
+
getOriginImagePath,
|
|
98
|
+
getImageUrlList,
|
|
99
|
+
getImageUrlFromBrowserUrl,
|
|
100
|
+
};
|