ordering-ui-admin-external 1.5.1 → 1.6.1
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/_bundles/{ordering-ui-admin.743f7975ef6f607887b2.js → ordering-ui-admin.47d189a0568d6b5734d5.js} +2 -2
- package/_bundles/{ordering-ui-admin.743f7975ef6f607887b2.js.LICENSE.txt → ordering-ui-admin.47d189a0568d6b5734d5.js.LICENSE.txt} +1 -1
- package/_modules/components/Delivery/UserFormDetails/index.js +10 -3
- package/_modules/components/Login/LoginForm/index.js +4 -3
- package/_modules/components/Login/ResetPassword/index.js +251 -0
- package/_modules/components/Login/ResetPassword/styles.js +64 -0
- package/_modules/components/Login/index.js +8 -1
- package/_modules/components/Marketing/CampaignDetailContent/index.js +41 -5
- package/_modules/components/Marketing/CampaignDetailGeneral/index.js +2 -2
- package/_modules/components/Marketing/CampaignEmail/index.js +155 -12
- package/_modules/components/Marketing/CampaignEmail/styles.js +18 -4
- package/_modules/components/Marketing/CampaignHeader/index.js +11 -1
- package/_modules/components/Marketing/CampaignHeader/styles.js +25 -6
- package/_modules/components/Marketing/CampaignList/index.js +41 -25
- package/_modules/components/Marketing/CampaignNotification/index.js +14 -1
- package/_modules/components/Marketing/CampaignNotification/styles.js +7 -3
- package/_modules/components/Marketing/CampaignSMS/index.js +14 -1
- package/_modules/components/Marketing/CampaignSMS/styles.js +7 -3
- package/_modules/components/Marketing/CampaignWebHook/index.js +13 -1
- package/_modules/components/Marketing/CampaignWebHook/styles.js +7 -3
- package/_modules/components/MyProducts/BoxLayout/index.js +20 -0
- package/_modules/components/MyProducts/BoxLayout/styles.js +22 -0
- package/_modules/components/MyProducts/CustomerApp/index.js +48 -0
- package/_modules/components/MyProducts/CustomerApp/styles.js +25 -0
- package/_modules/components/MyProducts/DriverApp/index.js +69 -0
- package/_modules/components/MyProducts/DriverApp/styles.js +29 -0
- package/_modules/components/MyProducts/OrderingWebsite/index.js +40 -0
- package/_modules/components/MyProducts/OrderingWebsite/styles.js +29 -0
- package/_modules/components/MyProducts/StoreApp/index.js +69 -0
- package/_modules/components/MyProducts/StoreApp/styles.js +29 -0
- package/_modules/components/MyProducts/index.js +33 -0
- package/_modules/components/Orders/OrdersTable/index.js +8 -9
- package/_modules/components/Profile/ProfilePage/index.js +70 -0
- package/_modules/components/Profile/ProfilePage/styles.js +22 -0
- package/_modules/components/Profile/index.js +12 -0
- package/_modules/components/Settings/InsertLink/index.js +3 -2
- package/_modules/components/Shared/ColumnAllowSettingPopover/index.js +4 -3
- package/_modules/components/SidebarMenu/index.js +65 -29
- package/_modules/components/SidebarMenu/styles.js +3 -1
- package/_modules/components/Stores/BusinessLocation/index.js +1 -1
- package/_modules/components/Stores/BusinessProductsListing/index.js +7 -0
- package/_modules/components/Stores/BusinessWebhooks/index.js +2 -2
- package/_modules/components/Stores/PaymentOption/index.js +23 -4
- package/_modules/components/Stores/PaymentOptionMethods/index.js +23 -4
- package/_modules/components/Stores/PaymentOptionPaypal/index.js +23 -4
- package/_modules/components/Stores/PaymentOptionStripeDirect/index.js +23 -4
- package/_modules/components/Stores/PaymethodOptionPaypalExpress/index.js +23 -4
- package/_modules/components/Stores/PaymethodOptionStripeConnect/index.js +23 -4
- package/_modules/components/Stores/PaymethodOptionStripeRedirect/index.js +23 -4
- package/_modules/components/Users/CustomerDetails/index.js +8 -10
- package/_modules/components/Users/CustomersListing/index.js +4 -2
- package/_modules/components/Users/OccupationSelector/index.js +48 -0
- package/_modules/components/Users/OccupationSelector/styles.js +16 -0
- package/_modules/components/Users/OccupationsFilter/index.js +49 -0
- package/_modules/components/Users/OccupationsFilter/styles.js +22 -0
- package/_modules/components/Users/ProfessionalDetail/index.js +47 -8
- package/_modules/components/Users/ProfessionalDetail/styles.js +10 -5
- package/_modules/components/Users/ProfessionalList/index.js +43 -6
- package/_modules/components/Users/ProfessionalList/styles.js +5 -3
- package/_modules/components/Users/ProfessionalListing/index.js +14 -3
- package/_modules/components/Users/ProfessionalSchedule/styles.js +1 -1
- package/_modules/components/Users/UserDetails/index.js +11 -13
- package/_modules/components/Users/UserFormDetails/index.js +8 -1
- package/_modules/components/Users/UserTypeSelector/index.js +7 -0
- package/_modules/components/Users/UsersList/index.js +40 -5
- package/_modules/components/Users/UsersList/styles.js +7 -5
- package/_modules/components/Users/UsersListing/index.js +4 -2
- package/_modules/contexts/ThemeContext/index.js +1 -1
- package/_modules/index.js +38 -0
- package/index-template.js +22 -4
- package/package.json +2 -2
- package/src/components/Delivery/UserFormDetails/index.js +8 -10
- package/src/components/Login/LoginForm/index.js +23 -20
- package/src/components/Login/ResetPassword/index.js +283 -0
- package/src/components/Login/ResetPassword/styles.js +215 -0
- package/src/components/Login/index.js +3 -1
- package/src/components/Marketing/CampaignDetail/index.js +0 -1
- package/src/components/Marketing/CampaignDetailContent/index.js +54 -24
- package/src/components/Marketing/CampaignDetailGeneral/index.js +1 -1
- package/src/components/Marketing/CampaignEmail/index.js +152 -15
- package/src/components/Marketing/CampaignEmail/styles.js +64 -3
- package/src/components/Marketing/CampaignHeader/index.js +19 -3
- package/src/components/Marketing/CampaignHeader/styles.js +77 -0
- package/src/components/Marketing/CampaignList/index.js +75 -65
- package/src/components/Marketing/CampaignNotification/index.js +11 -3
- package/src/components/Marketing/CampaignNotification/styles.js +13 -0
- package/src/components/Marketing/CampaignSMS/index.js +11 -2
- package/src/components/Marketing/CampaignSMS/styles.js +13 -0
- package/src/components/Marketing/CampaignWebHook/index.js +11 -2
- package/src/components/Marketing/CampaignWebHook/styles.js +13 -0
- package/src/components/MyProducts/BoxLayout/index.js +25 -0
- package/src/components/MyProducts/BoxLayout/styles.js +78 -0
- package/src/components/MyProducts/CustomerApp/index.js +52 -0
- package/src/components/MyProducts/CustomerApp/styles.js +59 -0
- package/src/components/MyProducts/DriverApp/index.js +83 -0
- package/src/components/MyProducts/DriverApp/styles.js +104 -0
- package/src/components/MyProducts/OrderingWebsite/index.js +41 -0
- package/src/components/MyProducts/OrderingWebsite/styles.js +104 -0
- package/src/components/MyProducts/StoreApp/index.js +83 -0
- package/src/components/MyProducts/StoreApp/styles.js +104 -0
- package/src/components/MyProducts/index.js +11 -0
- package/src/components/OrderingProducts/OrderingProductDetails/index.js +1 -1
- package/src/components/Orders/OrdersTable/index.js +3 -6
- package/src/components/Profile/ProfilePage/index.js +81 -0
- package/src/components/Profile/ProfilePage/styles.js +64 -0
- package/src/components/Profile/index.js +5 -0
- package/src/components/Settings/InsertLink/index.js +6 -2
- package/src/components/Shared/ColumnAllowSettingPopover/index.js +11 -7
- package/src/components/SidebarMenu/index.js +103 -41
- package/src/components/SidebarMenu/styles.js +7 -0
- package/src/components/Stores/BusinessLocation/index.js +1 -1
- package/src/components/Stores/BusinessProductsListing/index.js +8 -0
- package/src/components/Stores/BusinessWebhooks/index.js +2 -2
- package/src/components/Stores/PaymentOption/index.js +12 -2
- package/src/components/Stores/PaymentOptionMethods/index.js +12 -2
- package/src/components/Stores/PaymentOptionPaypal/index.js +12 -2
- package/src/components/Stores/PaymentOptionStripeDirect/index.js +12 -2
- package/src/components/Stores/PaymethodOptionPaypalExpress/index.js +12 -2
- package/src/components/Stores/PaymethodOptionStripeConnect/index.js +12 -2
- package/src/components/Stores/PaymethodOptionStripeRedirect/index.js +12 -2
- package/src/components/Users/CustomerDetails/index.js +1 -1
- package/src/components/Users/CustomersListing/index.js +3 -1
- package/src/components/Users/OccupationSelector/index.js +37 -0
- package/src/components/Users/OccupationSelector/styles.js +18 -0
- package/src/components/Users/OccupationsFilter/index.js +50 -0
- package/src/components/Users/OccupationsFilter/styles.js +32 -0
- package/src/components/Users/ProfessionalDetail/index.js +42 -7
- package/src/components/Users/ProfessionalDetail/styles.js +16 -2
- package/src/components/Users/ProfessionalList/index.js +41 -3
- package/src/components/Users/ProfessionalList/styles.js +5 -0
- package/src/components/Users/ProfessionalListing/index.js +14 -1
- package/src/components/Users/ProfessionalSchedule/styles.js +1 -0
- package/src/components/Users/UserDetails/index.js +1 -1
- package/src/components/Users/UserFormDetails/index.js +11 -2
- package/src/components/Users/UserTypeSelector/index.js +6 -0
- package/src/components/Users/UsersList/index.js +44 -8
- package/src/components/Users/UsersList/styles.js +7 -2
- package/src/components/Users/UsersListing/index.js +4 -2
- package/src/contexts/ThemeContext/index.js +4 -0
- package/src/index.js +17 -1
- package/template/app.js +55 -3
- package/template/assets/images/myProducts/customer-app.png +0 -0
- package/template/assets/images/myProducts/driver-app.png +0 -0
- package/template/assets/images/myProducts/ordering-website.png +0 -0
- package/template/assets/images/myProducts/store-app.png +0 -0
- package/template/components/ListenPageChanges/index.js +7 -1
- package/template/config.json +2 -1
- package/template/helmetdata.json +49 -0
- package/template/pages/CustomerApp/index.js +12 -0
- package/template/pages/DriverApp/index.js +12 -0
- package/template/pages/Login/index.js +7 -1
- package/template/pages/OrderingWebsite/index.js +12 -0
- package/template/pages/Professionals/index.js +2 -1
- package/template/pages/Profile/index.js +12 -0
- package/template/pages/ResetPassword/index.js +42 -0
- package/template/pages/StoreApp/index.js +12 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import styled, { css } from 'styled-components'
|
|
2
|
+
|
|
3
|
+
export const Container = styled.div`
|
|
4
|
+
flex: 1;
|
|
5
|
+
padding: 25px 20px;
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
transition: all 0.5s;
|
|
8
|
+
max-height: 100vh;
|
|
9
|
+
overflow: auto;
|
|
10
|
+
min-height: 100vh;
|
|
11
|
+
`
|
|
12
|
+
|
|
13
|
+
export const HeaderTitleContainer = styled.div`
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
|
|
17
|
+
> h1 {
|
|
18
|
+
font-weight: 700;
|
|
19
|
+
font-size: 20px;
|
|
20
|
+
color: ${props => props.theme.colors.headingColor};
|
|
21
|
+
margin: 0px;
|
|
22
|
+
line-height: 32px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
> button {
|
|
26
|
+
${props => props.theme?.rtl ? css`
|
|
27
|
+
margin-left: 8px;
|
|
28
|
+
margin-right: -8px;
|
|
29
|
+
` : css`
|
|
30
|
+
margin-right: 8px;
|
|
31
|
+
margin-left: -8px;
|
|
32
|
+
`}
|
|
33
|
+
|
|
34
|
+
svg {
|
|
35
|
+
width: 25px;
|
|
36
|
+
height: 25px;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
`
|
|
40
|
+
|
|
41
|
+
export const ContentWrapper = styled.div`
|
|
42
|
+
height: calc(100% - 32px);
|
|
43
|
+
display: flex;
|
|
44
|
+
align-items: center;
|
|
45
|
+
`
|
|
46
|
+
|
|
47
|
+
export const ButtonWrapper = styled.div`
|
|
48
|
+
button {
|
|
49
|
+
width: 100%;
|
|
50
|
+
height: 44px;
|
|
51
|
+
text-transform: capitalize;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@media(min-width: 576px) {
|
|
55
|
+
button {
|
|
56
|
+
width: 260px;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
`
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { useLanguage } from 'ordering-components-admin-external'
|
|
3
|
+
import { useInfoShare } from '../../../contexts/InfoShareContext'
|
|
4
|
+
import { Button, IconButton } from '../../../styles'
|
|
5
|
+
import { List as MenuIcon } from 'react-bootstrap-icons'
|
|
6
|
+
import { useTheme } from 'styled-components'
|
|
7
|
+
import { BoxLayout } from '../BoxLayout'
|
|
8
|
+
import {
|
|
9
|
+
Container,
|
|
10
|
+
HeaderTitleContainer,
|
|
11
|
+
ContentWrapper,
|
|
12
|
+
FreeBtnWrapper,
|
|
13
|
+
BrandedBtnWrapper
|
|
14
|
+
} from './styles'
|
|
15
|
+
|
|
16
|
+
export const DriverApp = () => {
|
|
17
|
+
const [, t] = useLanguage()
|
|
18
|
+
const theme = useTheme()
|
|
19
|
+
const [{ isCollapse }, { handleMenuCollapse }] = useInfoShare()
|
|
20
|
+
|
|
21
|
+
const handleOpenURL = (url) => {
|
|
22
|
+
window.open(url, '_blank')
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
return (
|
|
26
|
+
<Container>
|
|
27
|
+
<HeaderTitleContainer>
|
|
28
|
+
{isCollapse && (
|
|
29
|
+
<IconButton
|
|
30
|
+
color='black'
|
|
31
|
+
onClick={() => handleMenuCollapse(false)}
|
|
32
|
+
>
|
|
33
|
+
<MenuIcon />
|
|
34
|
+
</IconButton>
|
|
35
|
+
)}
|
|
36
|
+
<h1>{t('MY_PRODUCTS', 'My products')}</h1>
|
|
37
|
+
</HeaderTitleContainer>
|
|
38
|
+
<ContentWrapper>
|
|
39
|
+
<h1>{t('DRIVER_APP', 'Driver app')}</h1>
|
|
40
|
+
<p>{t('DRIVER_APP_DESC', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.')}</p>
|
|
41
|
+
<BoxLayout
|
|
42
|
+
title={t('FREE_TO_USE', 'Free to use')}
|
|
43
|
+
description={t('FREE_TO_USE_DESC', 'This app can be used by your fleet with the ordering.co logo.')}
|
|
44
|
+
photo={theme.images.myProducts.driverApp}
|
|
45
|
+
>
|
|
46
|
+
<FreeBtnWrapper>
|
|
47
|
+
<Button
|
|
48
|
+
color='primary'
|
|
49
|
+
borderRadius='8px'
|
|
50
|
+
outline
|
|
51
|
+
onClick={() => handleOpenURL('https://apps.apple.com/us/app/driver-app-2-0/id1606257815')}
|
|
52
|
+
>
|
|
53
|
+
{t('DOWNLOAD_APPLE', 'Download apple')}
|
|
54
|
+
</Button>
|
|
55
|
+
<Button
|
|
56
|
+
color='primary'
|
|
57
|
+
borderRadius='8px'
|
|
58
|
+
outline
|
|
59
|
+
onClick={() => handleOpenURL('https://play.google.com/store/apps/details?id=com.ordering.deliveryv5')}
|
|
60
|
+
>
|
|
61
|
+
{t('DOWNLOAD_GOOGLE', 'Download google')}
|
|
62
|
+
</Button>
|
|
63
|
+
</FreeBtnWrapper>
|
|
64
|
+
</BoxLayout>
|
|
65
|
+
<BoxLayout
|
|
66
|
+
title={t('BRANDED_BY_YOU', 'Branded by you')}
|
|
67
|
+
description={t('BRANDED_BY_YOU_DESC', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Id mi quam aenean in faucibus ac integer libero. Eu egestas sit imperdiet at sit adipiscing ullamcorper sed sit.')}
|
|
68
|
+
photo={theme.images.myProducts.driverApp}
|
|
69
|
+
>
|
|
70
|
+
<BrandedBtnWrapper>
|
|
71
|
+
<Button
|
|
72
|
+
color='primary'
|
|
73
|
+
borderRadius='8px'
|
|
74
|
+
onClick={() => handleOpenURL('https://www.ordering.co/ordering-sales')}
|
|
75
|
+
>
|
|
76
|
+
{t('REQUEST_APP_NOW', 'Request app now')}
|
|
77
|
+
</Button>
|
|
78
|
+
</BrandedBtnWrapper>
|
|
79
|
+
</BoxLayout>
|
|
80
|
+
</ContentWrapper>
|
|
81
|
+
</Container>
|
|
82
|
+
)
|
|
83
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import styled, { css } from 'styled-components'
|
|
2
|
+
|
|
3
|
+
export const Container = styled.div`
|
|
4
|
+
flex: 1;
|
|
5
|
+
padding: 25px 20px;
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
transition: all 0.5s;
|
|
8
|
+
max-height: 100vh;
|
|
9
|
+
overflow: auto;
|
|
10
|
+
min-height: 100vh;
|
|
11
|
+
`
|
|
12
|
+
|
|
13
|
+
export const HeaderTitleContainer = styled.div`
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
|
|
17
|
+
> h1 {
|
|
18
|
+
font-weight: 700;
|
|
19
|
+
font-size: 20px;
|
|
20
|
+
color: ${props => props.theme.colors.headingColor};
|
|
21
|
+
margin: 0px;
|
|
22
|
+
line-height: 32px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
> button {
|
|
26
|
+
${props => props.theme?.rtl ? css`
|
|
27
|
+
margin-left: 8px;
|
|
28
|
+
margin-right: -8px;
|
|
29
|
+
` : css`
|
|
30
|
+
margin-right: 8px;
|
|
31
|
+
margin-left: -8px;
|
|
32
|
+
`}
|
|
33
|
+
|
|
34
|
+
svg {
|
|
35
|
+
width: 25px;
|
|
36
|
+
height: 25px;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
`
|
|
40
|
+
|
|
41
|
+
export const ContentWrapper = styled.div`
|
|
42
|
+
margin-top: 27px;
|
|
43
|
+
|
|
44
|
+
> h1 {
|
|
45
|
+
font-weight: 700;
|
|
46
|
+
font-size: 32px;
|
|
47
|
+
line-height: 48px;
|
|
48
|
+
margin-top: 0px;
|
|
49
|
+
margin-bottom: 7px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
> p {
|
|
53
|
+
margin: 0px;
|
|
54
|
+
font-weight: 400;
|
|
55
|
+
font-size: 16px;
|
|
56
|
+
line-height: 24px;
|
|
57
|
+
}
|
|
58
|
+
`
|
|
59
|
+
|
|
60
|
+
export const FreeBtnWrapper = styled.div`
|
|
61
|
+
display: flex;
|
|
62
|
+
flex-direction: column;
|
|
63
|
+
button {
|
|
64
|
+
width: 100%;
|
|
65
|
+
height: 44px;
|
|
66
|
+
text-transform: capitalize;
|
|
67
|
+
&:first-child {
|
|
68
|
+
margin-bottom: 15px;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@media (min-width: 769px) {
|
|
73
|
+
flex-direction: row;
|
|
74
|
+
button {
|
|
75
|
+
width: 180px;
|
|
76
|
+
&:first-child {
|
|
77
|
+
margin-right: 15px;
|
|
78
|
+
margin-bottom: 0px;
|
|
79
|
+
${props => props.theme.rtl && css`
|
|
80
|
+
margin-right: 0px;
|
|
81
|
+
margin-left: 15px;
|
|
82
|
+
`}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@media (min-width: 1320px) {
|
|
88
|
+
button {
|
|
89
|
+
width: 260px;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
`
|
|
93
|
+
|
|
94
|
+
export const BrandedBtnWrapper = styled.div`
|
|
95
|
+
button {
|
|
96
|
+
width: 100%;
|
|
97
|
+
height: 44px;
|
|
98
|
+
text-transform: capitalize;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
@media (min-width: 576px) {
|
|
102
|
+
width: 260px;
|
|
103
|
+
}
|
|
104
|
+
`
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { useLanguage } from 'ordering-components-admin-external'
|
|
3
|
+
import { useInfoShare } from '../../../contexts/InfoShareContext'
|
|
4
|
+
import { IconButton } from '../../../styles'
|
|
5
|
+
import { List as MenuIcon } from 'react-bootstrap-icons'
|
|
6
|
+
import { useTheme } from 'styled-components'
|
|
7
|
+
import {
|
|
8
|
+
Container,
|
|
9
|
+
HeaderTitleContainer,
|
|
10
|
+
WebsiteWrapper,
|
|
11
|
+
InfoWrapper
|
|
12
|
+
} from './styles'
|
|
13
|
+
|
|
14
|
+
export const OrderingWebsite = () => {
|
|
15
|
+
const [, t] = useLanguage()
|
|
16
|
+
const [{ isCollapse }, { handleMenuCollapse }] = useInfoShare()
|
|
17
|
+
const theme = useTheme()
|
|
18
|
+
|
|
19
|
+
return (
|
|
20
|
+
<Container>
|
|
21
|
+
<HeaderTitleContainer>
|
|
22
|
+
{isCollapse && (
|
|
23
|
+
<IconButton
|
|
24
|
+
color='black'
|
|
25
|
+
onClick={() => handleMenuCollapse(false)}
|
|
26
|
+
>
|
|
27
|
+
<MenuIcon />
|
|
28
|
+
</IconButton>
|
|
29
|
+
)}
|
|
30
|
+
<h1>{t('MY_PRODUCTS', 'My products')}</h1>
|
|
31
|
+
</HeaderTitleContainer>
|
|
32
|
+
<WebsiteWrapper>
|
|
33
|
+
<InfoWrapper>
|
|
34
|
+
<h1>{t('ORDERING_WEBSITE', 'Ordering website')}</h1>
|
|
35
|
+
<p>{t('ORDERING_WEBSITE_DESC', 'This product is included in your project by default.')}</p>
|
|
36
|
+
</InfoWrapper>
|
|
37
|
+
<img src={theme.images.myProducts.orderingWebsite} alt='ordering-website' />
|
|
38
|
+
</WebsiteWrapper>
|
|
39
|
+
</Container>
|
|
40
|
+
)
|
|
41
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import styled, { css } from 'styled-components'
|
|
2
|
+
|
|
3
|
+
export const Container = styled.div`
|
|
4
|
+
flex: 1;
|
|
5
|
+
padding: 25px 20px;
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
transition: all 0.5s;
|
|
8
|
+
max-height: 100vh;
|
|
9
|
+
overflow: auto;
|
|
10
|
+
`
|
|
11
|
+
|
|
12
|
+
export const HeaderTitleContainer = styled.div`
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
|
|
16
|
+
> h1 {
|
|
17
|
+
font-weight: 700;
|
|
18
|
+
font-size: 20px;
|
|
19
|
+
color: ${props => props.theme.colors.headingColor};
|
|
20
|
+
margin: 0px;
|
|
21
|
+
line-height: 32px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
> button {
|
|
25
|
+
${props => props.theme?.rtl ? css`
|
|
26
|
+
margin-left: 8px;
|
|
27
|
+
margin-right: -8px;
|
|
28
|
+
` : css`
|
|
29
|
+
margin-right: 8px;
|
|
30
|
+
margin-left: -8px;
|
|
31
|
+
`}
|
|
32
|
+
|
|
33
|
+
svg {
|
|
34
|
+
width: 25px;
|
|
35
|
+
height: 25px;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
`
|
|
39
|
+
|
|
40
|
+
export const WebsiteWrapper = styled.div`
|
|
41
|
+
margin-top: 30px;
|
|
42
|
+
box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.1);
|
|
43
|
+
border-radius: 7.6px;
|
|
44
|
+
padding: 20px;
|
|
45
|
+
display: flex;
|
|
46
|
+
flex-direction: column;
|
|
47
|
+
|
|
48
|
+
> img {
|
|
49
|
+
width: 100%;
|
|
50
|
+
margin-top: 20px;
|
|
51
|
+
max-height: 600px;
|
|
52
|
+
object-fit: cover;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@media (min-width: 769px) {
|
|
56
|
+
flex-direction: row;
|
|
57
|
+
padding: 40px;
|
|
58
|
+
|
|
59
|
+
img {
|
|
60
|
+
margin-top: 0px;
|
|
61
|
+
width: 42%;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@media (min-width: 1200px) {
|
|
66
|
+
img {
|
|
67
|
+
width: 35%;
|
|
68
|
+
}
|
|
69
|
+
margin-right: 50px;
|
|
70
|
+
${props => props.theme.rtl && css`
|
|
71
|
+
margin-left: 50px;
|
|
72
|
+
margin-right: 0px;
|
|
73
|
+
`}
|
|
74
|
+
}
|
|
75
|
+
`
|
|
76
|
+
|
|
77
|
+
export const InfoWrapper = styled.div`
|
|
78
|
+
flex: 1;
|
|
79
|
+
display: flex;
|
|
80
|
+
flex-direction: column;
|
|
81
|
+
justify-content: center;
|
|
82
|
+
h1 {
|
|
83
|
+
font-weight: 700;
|
|
84
|
+
font-size: 32px;
|
|
85
|
+
line-height: 48px;
|
|
86
|
+
margin-top: 0px;
|
|
87
|
+
margin-bottom: 7px;
|
|
88
|
+
text-transform: capitalize;
|
|
89
|
+
}
|
|
90
|
+
p {
|
|
91
|
+
font-weight: 400;
|
|
92
|
+
font-size: 16px;
|
|
93
|
+
line-height: 24px;
|
|
94
|
+
margin: 0px;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@media (min-width: 769px) {
|
|
98
|
+
margin-right: 40px;
|
|
99
|
+
${props => props.theme.rtl && css`
|
|
100
|
+
margin-left: 40px;
|
|
101
|
+
margin-right: 0px;
|
|
102
|
+
`}
|
|
103
|
+
}
|
|
104
|
+
`
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { useLanguage } from 'ordering-components-admin-external'
|
|
3
|
+
import { useInfoShare } from '../../../contexts/InfoShareContext'
|
|
4
|
+
import { Button, IconButton } from '../../../styles'
|
|
5
|
+
import { List as MenuIcon } from 'react-bootstrap-icons'
|
|
6
|
+
import { useTheme } from 'styled-components'
|
|
7
|
+
import { BoxLayout } from '../BoxLayout'
|
|
8
|
+
import {
|
|
9
|
+
Container,
|
|
10
|
+
HeaderTitleContainer,
|
|
11
|
+
ContentWrapper,
|
|
12
|
+
FreeBtnWrapper,
|
|
13
|
+
BrandedBtnWrapper
|
|
14
|
+
} from './styles'
|
|
15
|
+
|
|
16
|
+
export const StoreApp = () => {
|
|
17
|
+
const [, t] = useLanguage()
|
|
18
|
+
const theme = useTheme()
|
|
19
|
+
const [{ isCollapse }, { handleMenuCollapse }] = useInfoShare()
|
|
20
|
+
|
|
21
|
+
const handleOpenURL = (url) => {
|
|
22
|
+
window.open(url, '_blank')
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
return (
|
|
26
|
+
<Container>
|
|
27
|
+
<HeaderTitleContainer>
|
|
28
|
+
{isCollapse && (
|
|
29
|
+
<IconButton
|
|
30
|
+
color='black'
|
|
31
|
+
onClick={() => handleMenuCollapse(false)}
|
|
32
|
+
>
|
|
33
|
+
<MenuIcon />
|
|
34
|
+
</IconButton>
|
|
35
|
+
)}
|
|
36
|
+
<h1>{t('MY_PRODUCTS', 'My products')}</h1>
|
|
37
|
+
</HeaderTitleContainer>
|
|
38
|
+
<ContentWrapper>
|
|
39
|
+
<h1>{t('STORE_APP', 'Store app')}</h1>
|
|
40
|
+
<p>{t('STORE_APP_DESC', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.')}</p>
|
|
41
|
+
<BoxLayout
|
|
42
|
+
title={t('FREE_TO_USE', 'Free to use')}
|
|
43
|
+
description={t('FREE_TO_USE_DESC', 'This app can be used by your fleet with the ordering.co logo.')}
|
|
44
|
+
photo={theme.images.myProducts.storeApp}
|
|
45
|
+
>
|
|
46
|
+
<FreeBtnWrapper>
|
|
47
|
+
<Button
|
|
48
|
+
color='primary'
|
|
49
|
+
borderRadius='8px'
|
|
50
|
+
outline
|
|
51
|
+
onClick={() => handleOpenURL('https://apps.apple.com/us/app/store-app-2-0/id1608192050')}
|
|
52
|
+
>
|
|
53
|
+
{t('DOWNLOAD_APPLE', 'Download apple')}
|
|
54
|
+
</Button>
|
|
55
|
+
<Button
|
|
56
|
+
color='primary'
|
|
57
|
+
borderRadius='8px'
|
|
58
|
+
outline
|
|
59
|
+
onClick={() => handleOpenURL('https://play.google.com/store/apps/details?id=com.ordering.storeappv5&pli=1')}
|
|
60
|
+
>
|
|
61
|
+
{t('DOWNLOAD_GOOGLE', 'Download google')}
|
|
62
|
+
</Button>
|
|
63
|
+
</FreeBtnWrapper>
|
|
64
|
+
</BoxLayout>
|
|
65
|
+
<BoxLayout
|
|
66
|
+
title={t('BRANDED_BY_YOU', 'Branded by you')}
|
|
67
|
+
description={t('BRANDED_BY_YOU_DESC', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Id mi quam aenean in faucibus ac integer libero. Eu egestas sit imperdiet at sit adipiscing ullamcorper sed sit.')}
|
|
68
|
+
photo={theme.images.myProducts.storeApp}
|
|
69
|
+
>
|
|
70
|
+
<BrandedBtnWrapper>
|
|
71
|
+
<Button
|
|
72
|
+
color='primary'
|
|
73
|
+
borderRadius='8px'
|
|
74
|
+
onClick={() => handleOpenURL('https://www.ordering.co/ordering-sales')}
|
|
75
|
+
>
|
|
76
|
+
{t('REQUEST_APP_NOW', 'Request app now')}
|
|
77
|
+
</Button>
|
|
78
|
+
</BrandedBtnWrapper>
|
|
79
|
+
</BoxLayout>
|
|
80
|
+
</ContentWrapper>
|
|
81
|
+
</Container>
|
|
82
|
+
)
|
|
83
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import styled, { css } from 'styled-components'
|
|
2
|
+
|
|
3
|
+
export const Container = styled.div`
|
|
4
|
+
flex: 1;
|
|
5
|
+
padding: 25px 20px;
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
transition: all 0.5s;
|
|
8
|
+
max-height: 100vh;
|
|
9
|
+
overflow: auto;
|
|
10
|
+
min-height: 100vh;
|
|
11
|
+
`
|
|
12
|
+
|
|
13
|
+
export const HeaderTitleContainer = styled.div`
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
|
|
17
|
+
> h1 {
|
|
18
|
+
font-weight: 700;
|
|
19
|
+
font-size: 20px;
|
|
20
|
+
color: ${props => props.theme.colors.headingColor};
|
|
21
|
+
margin: 0px;
|
|
22
|
+
line-height: 32px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
> button {
|
|
26
|
+
${props => props.theme?.rtl ? css`
|
|
27
|
+
margin-left: 8px;
|
|
28
|
+
margin-right: -8px;
|
|
29
|
+
` : css`
|
|
30
|
+
margin-right: 8px;
|
|
31
|
+
margin-left: -8px;
|
|
32
|
+
`}
|
|
33
|
+
|
|
34
|
+
svg {
|
|
35
|
+
width: 25px;
|
|
36
|
+
height: 25px;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
`
|
|
40
|
+
|
|
41
|
+
export const ContentWrapper = styled.div`
|
|
42
|
+
margin-top: 27px;
|
|
43
|
+
|
|
44
|
+
> h1 {
|
|
45
|
+
font-weight: 700;
|
|
46
|
+
font-size: 32px;
|
|
47
|
+
line-height: 48px;
|
|
48
|
+
margin-top: 0px;
|
|
49
|
+
margin-bottom: 7px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
> p {
|
|
53
|
+
margin: 0px;
|
|
54
|
+
font-weight: 400;
|
|
55
|
+
font-size: 16px;
|
|
56
|
+
line-height: 24px;
|
|
57
|
+
}
|
|
58
|
+
`
|
|
59
|
+
|
|
60
|
+
export const FreeBtnWrapper = styled.div`
|
|
61
|
+
display: flex;
|
|
62
|
+
flex-direction: column;
|
|
63
|
+
button {
|
|
64
|
+
width: 100%;
|
|
65
|
+
height: 44px;
|
|
66
|
+
text-transform: capitalize;
|
|
67
|
+
&:first-child {
|
|
68
|
+
margin-bottom: 15px;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@media (min-width: 769px) {
|
|
73
|
+
flex-direction: row;
|
|
74
|
+
button {
|
|
75
|
+
width: 180px;
|
|
76
|
+
&:first-child {
|
|
77
|
+
margin-right: 15px;
|
|
78
|
+
margin-bottom: 0px;
|
|
79
|
+
${props => props.theme.rtl && css`
|
|
80
|
+
margin-right: 0px;
|
|
81
|
+
margin-left: 15px;
|
|
82
|
+
`}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@media (min-width: 1320px) {
|
|
88
|
+
button {
|
|
89
|
+
width: 260px;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
`
|
|
93
|
+
|
|
94
|
+
export const BrandedBtnWrapper = styled.div`
|
|
95
|
+
button {
|
|
96
|
+
width: 100%;
|
|
97
|
+
height: 44px;
|
|
98
|
+
text-transform: capitalize;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
@media (min-width: 576px) {
|
|
102
|
+
width: 260px;
|
|
103
|
+
}
|
|
104
|
+
`
|
|
@@ -26,7 +26,7 @@ const OrderingProductDetailsUI = (props) => {
|
|
|
26
26
|
const [confirm, setConfirm] = useState({ open: false, content: null, handleOnAccept: null })
|
|
27
27
|
|
|
28
28
|
const tabs = [
|
|
29
|
-
{ key: 'general', content: t('GENERAL', 'General') }
|
|
29
|
+
{ key: 'general', content: t('GENERAL', 'General') }
|
|
30
30
|
// { key: 'theme', content: t('THEME', 'Theme') }
|
|
31
31
|
]
|
|
32
32
|
|
|
@@ -11,7 +11,6 @@ import {
|
|
|
11
11
|
} from 'ordering-components-admin-external'
|
|
12
12
|
import { useTheme } from 'styled-components'
|
|
13
13
|
import { ColumnAllowSettingPopover, Pagination } from '../../Shared'
|
|
14
|
-
import { ChevronRight } from 'react-bootstrap-icons'
|
|
15
14
|
|
|
16
15
|
import {
|
|
17
16
|
OrdersContainer,
|
|
@@ -314,17 +313,14 @@ export const OrdersTable = (props) => {
|
|
|
314
313
|
.sort((col1, col2) => allowColumns[col1]?.order - allowColumns[col2]?.order)
|
|
315
314
|
.map((column, i) => {
|
|
316
315
|
if (column === 'slaBar') {
|
|
317
|
-
return
|
|
318
|
-
<th key={`noDragTh-${i}`}>
|
|
319
|
-
<Timestatus />
|
|
320
|
-
</th>
|
|
321
|
-
)
|
|
316
|
+
return
|
|
322
317
|
}
|
|
323
318
|
if (column === 'orderNumber') {
|
|
324
319
|
return (
|
|
325
320
|
<th
|
|
326
321
|
className={!(allowColumns?.orderNumber?.visable || allowColumns?.dateTime?.visable) ? 'orderNo small' : 'orderNo'}
|
|
327
322
|
key={`noDragTh-${i}`}
|
|
323
|
+
colSpan={allowColumns?.slaBar?.visable ? 2 : 1}
|
|
328
324
|
>
|
|
329
325
|
<CheckBox
|
|
330
326
|
isChecked={!orderList.loading && isAllChecked}
|
|
@@ -348,6 +344,7 @@ export const OrdersTable = (props) => {
|
|
|
348
344
|
allowColumns={allowColumns}
|
|
349
345
|
optionsDefault={optionsDefault}
|
|
350
346
|
handleChangeAllowColumns={handleChangeAllowColumns}
|
|
347
|
+
isOrder
|
|
351
348
|
/>
|
|
352
349
|
</th>
|
|
353
350
|
)
|