Skip to content

Commit

Permalink
Storeknox: Discovery Page UI
Browse files Browse the repository at this point in the history
  • Loading branch information
SmitGala committed Oct 21, 2024
1 parent f77e133 commit 1469af8
Show file tree
Hide file tree
Showing 103 changed files with 5,475 additions and 0 deletions.
15 changes: 15 additions & 0 deletions app/adapters/sk-add-to-inventory.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import CommonDRFAdapter from './commondrf';

export default class SkAddToInventoryAdapter extends CommonDRFAdapter {
_buildURL() {
const baseurl = `${this.namespace_v2}/sk_app`;

return this.buildURLFromBase(baseurl);
}
}

declare module 'ember-data/types/registries/adapter' {
export default interface AdapterRegistry {
'sk-add-to-inventory': SkAddToInventoryAdapter;
}
}
15 changes: 15 additions & 0 deletions app/adapters/sk-discovery-result.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import CommonDRFAdapter from './commondrf';

export default class SkDiscoveryAdapter extends CommonDRFAdapter {
urlForQuery(q: { id: string }) {
const url = `${this.namespace_v2}/sk_discovery/${q.id}/search_results`;

return this.buildURLFromBase(url);
}
}

declare module 'ember-data/types/registries/adapter' {
export default interface AdapterRegistry {
'sk-discovery-result': SkDiscoveryAdapter;
}
}
15 changes: 15 additions & 0 deletions app/adapters/sk-discovery.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import CommonDRFAdapter from './commondrf';

export default class SkDiscoveryAdapter extends CommonDRFAdapter {
_buildURL() {
const baseurl = `${this.namespace_v2}/sk_discovery`;

return this.buildURLFromBase(baseurl);
}
}

declare module 'ember-data/types/registries/adapter' {
export default interface AdapterRegistry {
'sk-discovery': SkDiscoveryAdapter;
}
}
15 changes: 15 additions & 0 deletions app/adapters/sk-inventory-approval-status.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import CommonDRFAdapter from './commondrf';

export default class UnknownAnalysisStatus extends CommonDRFAdapter {
urlForQueryRecord() {
const baseurl = `${this.namespace_v2}/sk_app/check_approval_status`;

return this.buildURLFromBase(baseurl);
}
}

declare module 'ember-data/types/registries/adapter' {
export default interface AdapterRegistry {
'sk-inventory-approval-status': UnknownAnalysisStatus;
}
}
20 changes: 20 additions & 0 deletions app/components/ak-svg/info-indicator.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<svg
width='34'
height='34'
viewBox='0 0 34 34'
fill='none'
xmlns='http://www.w3.org/2000/svg'
>
<circle
cx='17'
cy='17'
r='16.5'
fill='#F5F5F5'
stroke='#7B7B7B'
stroke-dasharray='3.19 3.19'
/>
<path
d='M17.4997 13.9583C17.1101 13.9583 16.7766 13.8196 16.4992 13.5422C16.2217 13.2648 16.083 12.9312 16.083 12.5417C16.083 12.1521 16.2217 11.8186 16.4992 11.5411C16.7766 11.2637 17.1101 11.125 17.4997 11.125C17.8893 11.125 18.2228 11.2637 18.5002 11.5411C18.7776 11.8186 18.9163 12.1521 18.9163 12.5417C18.9163 12.9312 18.7776 13.2648 18.5002 13.5422C18.2228 13.8196 17.8893 13.9583 17.4997 13.9583ZM17.4997 23.875C17.2045 23.875 16.9537 23.7717 16.7471 23.5651C16.5405 23.3585 16.4372 23.1076 16.4372 22.8125V16.4375C16.4372 16.1424 16.5405 15.8915 16.7471 15.6849C16.9537 15.4783 17.2045 15.375 17.4997 15.375C17.7948 15.375 18.0457 15.4783 18.2523 15.6849C18.4589 15.8915 18.5622 16.1424 18.5622 16.4375V22.8125C18.5622 23.1076 18.4589 23.3585 18.2523 23.5651C18.0457 23.7717 17.7948 23.875 17.4997 23.875Z'
fill='#7B7B7B'
/>
</svg>
90 changes: 90 additions & 0 deletions app/components/ak-svg/no-pending-items.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
<svg
width='171'
height='106'
viewBox='0 0 171 106'
fill='none'
xmlns='http://www.w3.org/2000/svg'
>
<g clip-path='url(#clip0_1313_21544)'>
<path
d='M134.442 23.3509C134.442 23.3509 129.678 -13.8543 101.574 12.8946C65.546 47.1828 41.3285 -20.9658 14.602 6.85178C0.000716203 22.0484 38.5843 56.0352 12.8159 73.9212C-12.9525 91.8072 8.10496 105.197 8.10496 105.197H154.425C154.425 105.197 169.572 106.289 170.719 87.1576C171.863 68.0259 154.255 67.7941 165.184 43.8526C176.112 19.9111 137.876 38.5897 134.442 23.3509Z'
fill='#F0FFEF'
/>
<path
d='M7.91992 104.971H147.346'
stroke='#424651'
stroke-width='2.07823'
stroke-miterlimit='10'
/>
<path
d='M152.229 104.971H169.46'
stroke='#424651'
stroke-width='2.07823'
stroke-miterlimit='10'
/>
</g>
<path
d='M70.0648 56.9508L63.1471 91.6647C62.6773 94.0223 64.2396 96.3622 66.5972 96.832L67.6541 97.0427L101.311 103.75C103.669 104.22 106.009 102.657 106.479 100.3L114.903 58.025L115.13 56.8869C115.599 54.5293 114.037 52.1893 111.68 51.7195L85.6644 46.5353'
fill='#2DB421'
/>
<path
d='M70.0648 56.9508L63.1471 91.6647C62.6773 94.0223 64.2396 96.3622 66.5972 96.832L67.6541 97.0427L101.311 103.75C103.669 104.22 106.009 102.657 106.479 100.3L114.903 58.025L115.13 56.8869C115.599 54.5293 114.037 52.1893 111.68 51.7195L85.6644 46.5353'
stroke='#424651'
stroke-width='1.28368'
stroke-miterlimit='10'
stroke-linecap='round'
stroke-linejoin='round'
/>
<path
d='M85.4521 46.501L82.6031 60.757L68.3296 57.9208L85.4521 46.501Z'
fill='#424651'
stroke='#424651'
stroke-width='2.07823'
stroke-miterlimit='10'
stroke-linecap='round'
stroke-linejoin='round'
/>
<path
d='M109.337 61.0509V99.8342C109.337 102.468 107.153 104.648 104.514 104.648H103.331H65.6622C63.0236 104.648 60.8398 102.468 60.8398 99.8342V52.604V51.3324C60.8398 48.6984 63.0236 46.5186 65.6622 46.5186H94.7785'
fill='white'
/>
<path
d='M109.337 61.0509V99.8342C109.337 102.468 107.153 104.648 104.514 104.648H103.331H65.6622C63.0236 104.648 60.8398 102.468 60.8398 99.8342V52.604V51.3324C60.8398 48.6984 63.0236 46.5186 65.6622 46.5186H94.7785'
stroke='#424651'
stroke-width='2.07823'
stroke-miterlimit='10'
stroke-linecap='round'
stroke-linejoin='round'
/>
<path
d='M76.4964 84.0156V84.0156C80.9175 87.3531 87.0563 87.3697 91.4648 84.0156V84.0156'
stroke='#2DB421'
stroke-width='3.2092'
stroke-linecap='round'
stroke-linejoin='round'
/>
<path
d='M76.1923 77.0585C78.2709 77.0585 79.956 75.3735 79.956 73.2949C79.956 71.2163 78.2709 69.5312 76.1923 69.5312C74.1137 69.5312 72.4287 71.2163 72.4287 73.2949C72.4287 75.3735 74.1137 77.0585 76.1923 77.0585Z'
stroke='#2DB421'
stroke-width='2.56736'
/>
<path
d='M91.6435 77.0585C93.7221 77.0585 95.4071 75.3735 95.4071 73.2949C95.4071 71.2163 93.7221 69.5312 91.6435 69.5312C89.5649 69.5312 87.8799 71.2163 87.8799 73.2949C87.8799 75.3735 89.5649 77.0585 91.6435 77.0585Z'
stroke='#2DB421'
stroke-width='2.56736'
/>
<path
d='M95.1602 46.5186V61.0509H109.322L95.1602 46.5186Z'
fill='#424651'
stroke='#424651'
stroke-width='2.07823'
stroke-miterlimit='10'
stroke-linecap='round'
stroke-linejoin='round'
/>
<defs>
<clipPath id='clip0_1313_21544'>
<rect width='170.929' height='105.262' fill='white' />
</clipPath>
</defs>
</svg>
20 changes: 20 additions & 0 deletions app/components/ak-svg/sm-indicator.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<svg
width='36'
height='34'
viewBox='0 0 36 34'
fill='none'
xmlns='http://www.w3.org/2000/svg'
>
<circle
cx='18.0107'
cy='17'
r='16.4688'
fill='#E1EBFF'
stroke='#034BD6'
stroke-width='1.0625'
/>
<path
d='M14.3835 18.8984C14.3835 19.3968 14.2579 19.87 14.0066 20.3181C13.7554 20.762 13.3638 21.1221 12.832 21.3985C12.3043 21.6749 11.6217 21.8131 10.7841 21.8131C10.3654 21.8131 9.99683 21.7943 9.67855 21.7566C9.36447 21.7189 9.07133 21.6582 8.79912 21.5744C8.52691 21.4865 8.24424 21.3734 7.95109 21.2352V19.0241C8.44944 19.2753 8.95197 19.468 9.4587 19.602C9.96542 19.7318 10.424 19.7967 10.8344 19.7967C11.0815 19.7967 11.2825 19.7674 11.4374 19.7088C11.5966 19.6501 11.7138 19.5706 11.7892 19.4701C11.8646 19.3654 11.9023 19.246 11.9023 19.112C11.9023 18.9529 11.8457 18.8189 11.7327 18.71C11.6238 18.5969 11.4479 18.4797 11.205 18.3582C10.9621 18.2368 10.6417 18.086 10.2439 17.9059C9.90469 17.7468 9.59689 17.5835 9.3205 17.416C9.04829 17.2484 8.81378 17.0579 8.61695 16.8443C8.42431 16.6266 8.27565 16.3732 8.17095 16.0842C8.06626 15.7953 8.01391 15.454 8.01391 15.0603C8.01391 14.4699 8.15839 13.9757 8.44735 13.5779C8.74049 13.1758 9.14671 12.8743 9.66599 12.6733C10.1895 12.4723 10.7925 12.3718 11.4751 12.3718C12.074 12.3718 12.6121 12.4388 13.0895 12.5728C13.5711 12.7068 14.0024 12.8596 14.3835 13.0313L13.6234 14.9473C13.2298 14.7672 12.8424 14.6248 12.4613 14.5201C12.0802 14.4112 11.7264 14.3568 11.3997 14.3568C11.1862 14.3568 11.0103 14.384 10.8721 14.4384C10.7381 14.4887 10.6376 14.5578 10.5706 14.6457C10.5077 14.7337 10.4763 14.8342 10.4763 14.9473C10.4763 15.0896 10.5308 15.2174 10.6397 15.3304C10.7527 15.4435 10.9391 15.5671 11.1987 15.7011C11.4626 15.8309 11.8206 16.0005 12.2729 16.2099C12.721 16.4109 13.1021 16.6287 13.4162 16.8632C13.7302 17.0935 13.9689 17.372 14.1323 17.6986C14.2998 18.0211 14.3835 18.421 14.3835 18.8984ZM19.5782 21.6875L17.7 15.0729H17.6434C17.6602 15.2446 17.6769 15.477 17.6937 15.7702C17.7146 16.0633 17.7335 16.3795 17.7502 16.7187C17.767 17.0579 17.7754 17.3846 17.7754 17.6986V21.6875H15.5768V12.5037H18.8809L20.7968 19.0241H20.8471L22.7253 12.5037H26.0358V21.6875H23.7555V17.6609C23.7555 17.372 23.7597 17.0621 23.7681 16.7313C23.7806 16.3962 23.7932 16.0822 23.8058 15.789C23.8225 15.4917 23.8372 15.2572 23.8497 15.0855H23.7932L21.9401 21.6875H19.5782Z'
fill='#034BD6'
/>
</svg>
105 changes: 105 additions & 0 deletions app/components/ak-svg/storeknox-playstore-logo.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
<svg
width='20'
height='20'
viewBox='0 0 20 20'
fill='none'
xmlns='http://www.w3.org/2000/svg'
>
<path
d='M3.28277 14.2383C2.41746 14.2387 1.71434 13.5347 1.71418 12.6695L1.71387 7.86653C1.71355 7.00216 2.41652 6.29825 3.28074 6.2981C3.7009 6.29778 4.09434 6.46075 4.3909 6.757C4.68746 7.05325 4.85059 7.44732 4.8509 7.86622L4.85043 12.6693C4.85152 13.0879 4.68887 13.4817 4.39246 13.7778C4.09684 14.0747 3.7023 14.2381 3.28277 14.2383ZM3.28152 6.7195C2.64824 6.71919 2.13496 7.23372 2.1348 7.86653L2.13559 12.669C2.13574 13.304 2.64996 13.8165 3.28262 13.8172C3.91652 13.8164 4.42996 13.3039 4.42934 12.6692V7.86591C4.42902 7.23325 3.91512 6.71919 3.28152 6.7195Z'
fill='white'
/>
<path
d='M15.5848 6.95729L15.1633 6.95713L4.83219 6.95854L4.41047 6.95869L4.41016 6.53697C4.40922 4.80572 5.35234 3.19557 6.89719 2.24432L6.29656 1.14791C6.22313 1.01947 6.20469 0.856817 6.2475 0.708067C6.29094 0.559317 6.39359 0.431348 6.53094 0.358223C6.61047 0.313223 6.70766 0.288223 6.80578 0.28838C7.01859 0.28838 7.21344 0.403848 7.31625 0.590411L7.94484 1.73557C8.59531 1.49697 9.28203 1.37525 9.99156 1.37541C10.7112 1.3751 11.4014 1.49682 12.0547 1.7365L12.6823 0.589473C12.7834 0.40338 12.9797 0.287442 13.1922 0.287598C13.2878 0.287442 13.3833 0.310723 13.4673 0.356036C13.6084 0.43338 13.7069 0.556973 13.7502 0.706817C13.7933 0.855724 13.7759 1.01291 13.7005 1.14932L13.1002 2.2451C14.6425 3.19838 15.5845 4.80729 15.5844 6.53557L15.5848 6.95729ZM12.5308 2.40666L13.3312 0.944942C13.3739 0.868536 13.3461 0.770723 13.2689 0.72838C13.1906 0.686036 13.0941 0.714942 13.0527 0.791661L12.2439 2.26822C11.5636 1.96604 10.8019 1.79619 9.99672 1.79697C9.19328 1.79619 8.43297 1.96541 7.75469 2.2665L6.94516 0.793224C6.90344 0.715567 6.80594 0.68713 6.72969 0.729942C6.65203 0.771505 6.62344 0.869161 6.66672 0.945411L7.4675 2.40604C5.89406 3.2176 4.83094 4.76291 4.83188 6.53713L15.1628 6.53588C15.1633 4.76229 14.102 3.2201 12.5308 2.40666ZM7.64703 4.66557C7.40937 4.6651 7.21531 4.47166 7.21531 4.2326C7.21531 3.99463 7.40906 3.79916 7.6475 3.79916C7.88703 3.79901 8.08078 3.99463 8.08109 4.2326C8.08125 4.47135 7.88703 4.66541 7.64703 4.66557ZM12.3512 4.66463C12.1125 4.66494 11.9177 4.47166 11.9181 4.23166C11.9181 3.994 12.1122 3.79854 12.3514 3.7976C12.5891 3.79838 12.7839 3.99416 12.7837 4.23182C12.7837 4.47104 12.5898 4.66479 12.3512 4.66463ZM8.08 19.7123C7.21547 19.7121 6.51188 19.009 6.51172 18.1439L6.51141 16.024L6.09922 16.0245C5.65906 16.0246 5.24594 15.8535 4.93547 15.5429C4.62453 15.2326 4.45313 14.819 4.45375 14.3785L4.45219 6.93682V6.51479H4.87391L15.1275 6.51322L15.5494 6.51291V6.93463L15.5505 14.3773C15.5506 15.2849 14.8122 16.0235 13.9048 16.0234L13.4902 16.0237L13.4906 18.1428C13.4906 19.0074 12.7872 19.7113 11.923 19.7113C11.5041 19.7123 11.1109 19.5495 10.8139 19.2524C10.5169 18.9562 10.3533 18.5624 10.3534 18.1437V16.0237H9.64859V18.1432C9.64828 19.0081 8.945 19.7124 8.08 19.7123Z'
fill='white'
/>
<path
d='M2.32231 1.28188C2.09611 1.556 1.98172 1.90683 2.00238 2.26307V17.7389C1.98289 18.095 2.09714 18.4454 2.32231 18.7201L2.37466 18.773L10.9544 10.1009V9.89522L2.37466 1.229L2.32231 1.28188Z'
fill='url(#paint0_linear_1313_37604)'
/>
<path
d='M13.816 12.9917L10.9541 10.101V9.89532L13.816 7.0105L13.8799 7.04575L17.2711 8.99051C18.2425 9.5428 18.2425 10.4535 17.2711 11.0117L13.8799 12.9564L13.816 12.9917Z'
fill='url(#paint1_linear_1313_37604)'
/>
<path
d='M13.8802 12.9563L10.9718 10.0186L2.32227 18.72C2.52164 18.8856 2.76986 18.9795 3.02786 18.9869C3.28585 18.9944 3.53898 18.9149 3.74738 18.7611L13.8628 12.9563'
fill='url(#paint2_linear_1313_37604)'
/>
<path
d='M13.8802 7.04575L3.74738 1.23498C3.54121 1.07487 3.28641 0.992032 3.02649 1.0006C2.76657 1.00918 2.51766 1.10863 2.32227 1.28198L10.9544 10.0011L13.8802 7.04575Z'
fill='url(#paint3_linear_1313_37604)'
/>
<path
opacity='0.1'
d='M13.8161 12.8916L3.74725 18.6612C3.5464 18.8124 3.30262 18.8941 3.05215 18.8941C2.80167 18.8941 2.55789 18.8124 2.35704 18.6612L2.30469 18.7141L2.35704 18.767C2.55789 18.9182 2.80167 18.9998 3.05215 18.9998C3.30262 18.9998 3.5464 18.9182 3.74725 18.767L13.8627 12.9621L13.8161 12.8916Z'
fill='black'
/>
<path
opacity='0.07'
d='M2.32213 18.626C2.09659 18.3492 1.98238 17.9968 2.00221 17.6389V17.7388C1.98271 18.0949 2.09696 18.4453 2.32213 18.72L2.37448 18.6671L2.32213 18.626Z'
fill='black'
/>
<path
opacity='0.07'
d='M17.2716 10.9059L13.8164 12.8917L13.8804 12.9564L17.2716 10.9881C17.4705 10.8998 17.6426 10.7596 17.7704 10.5821C17.8981 10.4045 17.9769 10.1959 17.9987 9.97754C17.959 10.1794 17.8724 10.3688 17.746 10.5303C17.6195 10.6917 17.4569 10.8204 17.2716 10.9059Z'
fill='black'
/>
<path
opacity='0.3'
d='M3.74797 1.34073L17.272 9.09039C17.4556 9.17375 17.6171 9.29965 17.7434 9.45789C17.8697 9.61612 17.9573 9.80223 17.9991 10.0011C17.9785 9.78233 17.9002 9.57317 17.7723 9.39542C17.6444 9.21767 17.4716 9.07784 17.272 8.99051L3.74797 1.23497C2.79401 0.682685 2.00293 1.14097 2.00293 2.26317V2.36305C2.00293 1.24672 2.79401 0.782567 3.74797 1.34073Z'
fill='white'
/>
<defs>
<linearGradient
id='paint0_linear_1313_37604'
x1='10.1982'
y1='2.09856'
x2='-1.54609'
y2='13.7258'
gradientUnits='userSpaceOnUse'
>
<stop stop-color='#008EFF' />
<stop offset='0.01' stop-color='#008FFF' />
<stop offset='0.26' stop-color='#00ACFF' />
<stop offset='0.51' stop-color='#00C0FF' />
<stop offset='0.76' stop-color='#00CDFF' />
<stop offset='1' stop-color='#00D1FF' />
</linearGradient>
<linearGradient
id='paint1_linear_1313_37604'
x1='17.3875'
y1='10.0011'
x2='0.62348'
y2='10.0011'
gradientUnits='userSpaceOnUse'
>
<stop stop-color='#FFD800' />
<stop offset='1' stop-color='#FF8A00' />
</linearGradient>
<linearGradient
id='paint2_linear_1313_37604'
x1='12.2923'
y1='11.6049'
x2='-3.62926'
y2='27.3676'
gradientUnits='userSpaceOnUse'
>
<stop stop-color='#FF3A44' />
<stop offset='1' stop-color='#B11162' />
</linearGradient>
<linearGradient
id='paint3_linear_1313_37604'
x1='0.146783'
y1='-3.87075'
x2='7.26148'
y2='3.16716'
gradientUnits='userSpaceOnUse'
>
<stop stop-color='#328E71' />
<stop offset='0.07' stop-color='#2D9571' />
<stop offset='0.48' stop-color='#15BD74' />
<stop offset='0.8' stop-color='#06D575' />
<stop offset='1' stop-color='#00DE76' />
</linearGradient>
</defs>
</svg>
Loading

0 comments on commit 1469af8

Please sign in to comment.