favesalon-embed 0.0.4 → 0.1.0
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/LICENSE +21 -0
- package/{cjs → dist/cjs}/_commonjsHelpers-5cfcba41.js +0 -0
- package/dist/cjs/colors-38421769.js +69 -0
- package/dist/cjs/favesalon-embed.cjs.js +20 -0
- package/{cjs → dist/cjs}/global-9073d10e.js +0 -0
- package/dist/cjs/google-map_5.cjs.entry.js +291 -0
- package/{cjs/index-48ac68d0.js → dist/cjs/index-7f190886.js} +1924 -0
- package/{cjs/index-d5de0b9d.js → dist/cjs/index-e6bea8f5.js} +10 -0
- package/{cjs → dist/cjs}/index.cjs.js +0 -0
- package/dist/cjs/loader.cjs.js +22 -0
- package/{cjs → dist/cjs}/salon-booking-modal.cjs.entry.js +5 -5
- package/{cjs → dist/cjs}/salon-booking.cjs.entry.js +6 -7
- package/dist/cjs/salon-gift-card-modal.cjs.entry.js +28 -0
- package/{cjs → dist/cjs}/salon-gift-card.cjs.entry.js +7 -7
- package/dist/cjs/salon-latest-reviews.cjs.entry.js +95 -0
- package/{cjs/salon-lookbook_2.cjs.entry.js → dist/cjs/salon-lookbook.cjs.entry.js} +23 -57
- package/{cjs → dist/cjs}/salon-ranking.cjs.entry.js +7 -7
- package/dist/cjs/salon-reviews.cjs.entry.js +186 -0
- package/dist/cjs/salon-services.cjs.entry.js +78 -0
- package/dist/cjs/salon-stylists.cjs.entry.js +112 -0
- package/{cjs/services-f1102d4a.js → dist/cjs/services-eee8f251.js} +265 -393
- package/dist/cjs/style-detail.cjs.entry.js +310 -0
- package/dist/cjs/user-avatar.cjs.entry.js +41 -0
- package/{cjs → dist/cjs}/utils-c5a33b3c.js +0 -0
- package/{collection → dist/collection}/collection-manifest.json +2 -3
- package/dist/collection/components/google-map/assets/map--placeholder.jpeg +0 -0
- package/{collection → dist/collection}/components/google-map/index.css +0 -1
- package/dist/collection/components/google-map/index.js +86 -0
- package/{collection → dist/collection}/components/salon-booking/index.css +10 -24
- package/{collection → dist/collection}/components/salon-booking/index.js +3 -3
- package/{collection → dist/collection}/components/salon-booking/salon-booking-modal.js +4 -4
- package/dist/collection/components/salon-gift-card/index.css +25 -0
- package/{collection → dist/collection}/components/salon-gift-card/index.js +4 -3
- package/{collection → dist/collection}/components/salon-gift-card/salon-gift-card-modal.js +24 -3
- package/{collection/components/salon-locations → dist/collection/components/salon-info}/index.css +0 -0
- package/{collection → dist/collection}/components/salon-info/index.js +6 -32
- package/{collection → dist/collection}/components/salon-latest-reviews/index.css +0 -3
- package/dist/collection/components/salon-latest-reviews/index.js +176 -0
- package/dist/collection/components/salon-latest-styles/index.css +10 -0
- package/dist/collection/components/salon-latest-styles/index.js +178 -0
- package/{collection/components/salon-contact → dist/collection/components/salon-locations}/index.css +6 -6
- package/dist/collection/components/salon-locations/index.js +151 -0
- package/{collection → dist/collection}/components/salon-lookbook/index.css +0 -9
- package/{collection → dist/collection}/components/salon-lookbook/index.js +19 -19
- package/{collection → dist/collection}/components/salon-ranking/index.css +0 -0
- package/{collection → dist/collection}/components/salon-ranking/index.js +5 -5
- package/{collection → dist/collection}/components/salon-reviews/index.css +0 -0
- package/dist/collection/components/salon-reviews/index.js +286 -0
- package/dist/collection/components/salon-schedules/index.css +15 -0
- package/dist/collection/components/salon-schedules/index.js +189 -0
- package/{collection → dist/collection}/components/salon-services/index.css +0 -0
- package/{collection → dist/collection}/components/salon-services/index.js +51 -8
- package/{collection → dist/collection}/components/salon-stylists/index.css +0 -8
- package/dist/collection/components/salon-stylists/index.js +183 -0
- package/dist/collection/components/style-detail/index.css +62 -0
- package/dist/collection/components/style-detail/index.js +461 -0
- package/{collection → dist/collection}/components/user-avatar/index.css +0 -0
- package/{collection → dist/collection}/components/user-avatar/index.js +2 -2
- package/dist/collection/constants/colors.js +65 -0
- package/{collection → dist/collection}/global/global.js +0 -0
- package/{collection → dist/collection}/index.js +0 -0
- package/dist/collection/services/services.js +174 -0
- package/dist/collection/types/common.js +11 -0
- package/{collection → dist/collection}/types/review.js +9 -5
- package/dist/collection/types/salon.js +58 -0
- package/{collection → dist/collection}/types/service.js +0 -0
- package/dist/collection/types/style.js +128 -0
- package/{collection → dist/collection}/types/stylist.js +12 -9
- package/{favesalon-embed/index.esm.js → dist/collection/types/tmp.js} +0 -0
- package/{collection → dist/collection}/types/user.js +2 -2
- package/{collection → dist/collection}/utils/utils.js +0 -0
- package/{custom-elements → dist/custom-elements}/index.d.ts +12 -18
- package/{custom-elements → dist/custom-elements}/index.js +1227 -1035
- package/{esm → dist/esm}/_commonjsHelpers-098d5b27.js +0 -0
- package/dist/esm/colors-ea36347a.js +67 -0
- package/dist/esm/favesalon-embed.js +18 -0
- package/{esm → dist/esm}/global-e1089ffd.js +0 -0
- package/dist/esm/google-map_5.entry.js +283 -0
- package/{esm/index-0f8eed73.js → dist/esm/index-6af0a03d.js} +10 -1
- package/{esm/index-67d677ba.js → dist/esm/index-80523fec.js} +1924 -1
- package/{esm → dist/esm}/index.js +0 -0
- package/dist/esm/loader.js +18 -0
- package/{esm → dist/esm}/polyfills/core-js.js +0 -0
- package/{esm → dist/esm}/polyfills/css-shim.js +0 -0
- package/{esm → dist/esm}/polyfills/dom.js +0 -0
- package/{esm → dist/esm}/polyfills/es5-html-element.js +0 -0
- package/{esm → dist/esm}/polyfills/index.js +0 -0
- package/{esm → dist/esm}/polyfills/system.js +0 -0
- package/{esm → dist/esm}/salon-booking-modal.entry.js +5 -5
- package/{esm → dist/esm}/salon-booking.entry.js +5 -6
- package/dist/esm/salon-gift-card-modal.entry.js +24 -0
- package/{esm → dist/esm}/salon-gift-card.entry.js +6 -6
- package/dist/esm/salon-latest-reviews.entry.js +91 -0
- package/{esm/salon-lookbook_2.entry.js → dist/esm/salon-lookbook.entry.js} +24 -57
- package/{esm → dist/esm}/salon-ranking.entry.js +7 -7
- package/dist/esm/salon-reviews.entry.js +182 -0
- package/dist/esm/salon-services.entry.js +74 -0
- package/dist/esm/salon-stylists.entry.js +108 -0
- package/{esm/services-74d84ca9.js → dist/esm/services-295247b1.js} +263 -392
- package/dist/esm/style-detail.entry.js +306 -0
- package/dist/esm/user-avatar.entry.js +37 -0
- package/{esm → dist/esm}/utils-e97485e0.js +0 -0
- package/dist/favesalon-embed/assets/map--placeholder.jpeg +0 -0
- package/{favesalon-embed → dist/favesalon-embed}/favesalon-embed.css +1 -1
- package/dist/favesalon-embed/favesalon-embed.esm.js +1 -0
- package/dist/favesalon-embed/index.esm.js +0 -0
- package/dist/favesalon-embed/p-292b97ba.entry.js +1 -0
- package/{favesalon-embed → dist/favesalon-embed}/p-47e646f8.js +0 -0
- package/dist/favesalon-embed/p-4869dfed.entry.js +1 -0
- package/{favesalon-embed → dist/favesalon-embed}/p-4a5eca9a.js +0 -0
- package/dist/favesalon-embed/p-4aee4fd9.entry.js +1 -0
- package/dist/favesalon-embed/p-5528c705.entry.js +1 -0
- package/dist/favesalon-embed/p-612ad685.entry.js +1 -0
- package/dist/favesalon-embed/p-75aef7e0.entry.js +1 -0
- package/dist/favesalon-embed/p-8c780874.entry.js +1 -0
- package/dist/favesalon-embed/p-8dbf04c5.js +1 -0
- package/dist/favesalon-embed/p-9f31061a.entry.js +1 -0
- package/dist/favesalon-embed/p-a33331cc.js +1 -0
- package/dist/favesalon-embed/p-a60d78e9.entry.js +1 -0
- package/dist/favesalon-embed/p-a6debdae.entry.js +1 -0
- package/dist/favesalon-embed/p-bad1e9a7.entry.js +1 -0
- package/dist/favesalon-embed/p-c2ecb365.js +1 -0
- package/dist/favesalon-embed/p-c7dea70c.entry.js +1 -0
- package/{favesalon-embed → dist/favesalon-embed}/p-d6083940.js +0 -0
- package/dist/favesalon-embed/p-f0e14641.entry.js +1 -0
- package/dist/favesalon-embed/p-fc9a5551.js +6 -0
- package/{index.cjs.js → dist/index.cjs.js} +0 -0
- package/{index.js → dist/index.js} +0 -0
- package/dist/types/components/google-map/index.d.ts +5 -0
- package/{types → dist/types}/components/salon-booking/index.d.ts +0 -0
- package/{types → dist/types}/components/salon-booking/salon-booking-modal.d.ts +0 -0
- package/{types → dist/types}/components/salon-gift-card/index.d.ts +0 -0
- package/{types → dist/types}/components/salon-gift-card/salon-gift-card-modal.d.ts +1 -0
- package/{types → dist/types}/components/salon-info/index.d.ts +0 -1
- package/{types → dist/types}/components/salon-latest-reviews/index.d.ts +2 -0
- package/dist/types/components/salon-latest-styles/index.d.ts +12 -0
- package/{types → dist/types}/components/salon-locations/index.d.ts +2 -0
- package/{types → dist/types}/components/salon-lookbook/index.d.ts +3 -3
- package/{types → dist/types}/components/salon-ranking/index.d.ts +0 -0
- package/dist/types/components/salon-reviews/index.d.ts +24 -0
- package/{types → dist/types}/components/salon-schedules/index.d.ts +2 -0
- package/{types → dist/types}/components/salon-services/index.d.ts +1 -0
- package/{types → dist/types}/components/salon-stylists/index.d.ts +6 -0
- package/dist/types/components/style-detail/index.d.ts +24 -0
- package/{types → dist/types}/components/user-avatar/index.d.ts +0 -0
- package/{types → dist/types}/components.d.ts +54 -59
- package/dist/types/constants/colors.d.ts +65 -0
- package/{types → dist/types}/index.d.ts +0 -0
- package/dist/types/services/services.d.ts +60 -0
- package/{types → dist/types}/stencil-public-runtime.d.ts +0 -0
- package/dist/types/types/common.d.ts +11 -0
- package/{types → dist/types}/types/review.d.ts +4 -0
- package/{types → dist/types}/types/salon.d.ts +3 -1
- package/{types → dist/types}/types/service.d.ts +0 -0
- package/dist/types/types/style.d.ts +88 -0
- package/{types → dist/types}/types/stylist.d.ts +1 -1
- package/dist/types/types/tmp.d.ts +0 -0
- package/{types → dist/types}/types/user.d.ts +2 -2
- package/{types → dist/types}/utils/utils.d.ts +0 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +12 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +10 -0
- package/package.json +18 -13
- package/readme.md +24 -7
- package/cjs/colors-7f354880.js +0 -95
- package/cjs/favesalon-embed.cjs.js +0 -20
- package/cjs/google-map.cjs.entry.js +0 -47
- package/cjs/index-95daad08.js +0 -1928
- package/cjs/loader.cjs.js +0 -22
- package/cjs/salon-contact_4.cjs.entry.js +0 -155
- package/cjs/salon-gift-card-modal.cjs.entry.js +0 -25
- package/cjs/salon-info.cjs.entry.js +0 -35
- package/cjs/salon-latest-reviews.cjs.entry.js +0 -58
- package/cjs/salon-lookbook-modal.cjs.entry.js +0 -141
- package/cjs/salon-reviews.cjs.entry.js +0 -205
- package/cjs/salon-services.cjs.entry.js +0 -47
- package/cjs/salon-stylists.cjs.entry.js +0 -54
- package/collection/components/google-map/index.js +0 -97
- package/collection/components/salon-contact/index.js +0 -88
- package/collection/components/salon-gift-card/index.css +0 -25
- package/collection/components/salon-info/index.css +0 -3
- package/collection/components/salon-latest-reviews/index.js +0 -108
- package/collection/components/salon-locations/index.js +0 -80
- package/collection/components/salon-lookbook/lookbook-modal.css +0 -72
- package/collection/components/salon-lookbook/salon-lookbook-modal.js +0 -248
- package/collection/components/salon-reviews/index.js +0 -317
- package/collection/components/salon-schedules/index.css +0 -14
- package/collection/components/salon-schedules/index.js +0 -103
- package/collection/components/salon-styles/index.css +0 -23
- package/collection/components/salon-styles/index.js +0 -100
- package/collection/components/salon-stylists/index.js +0 -96
- package/collection/constants/colors.js +0 -91
- package/collection/services/services.js +0 -225
- package/collection/types/common.js +0 -2
- package/collection/types/salon.js +0 -52
- package/collection/types/style.js +0 -103
- package/esm/colors-1ec90c5f.js +0 -93
- package/esm/favesalon-embed.js +0 -18
- package/esm/google-map.entry.js +0 -43
- package/esm/index-09d43e3e.js +0 -1926
- package/esm/loader.js +0 -18
- package/esm/salon-contact_4.entry.js +0 -148
- package/esm/salon-gift-card-modal.entry.js +0 -21
- package/esm/salon-info.entry.js +0 -31
- package/esm/salon-latest-reviews.entry.js +0 -54
- package/esm/salon-lookbook-modal.entry.js +0 -137
- package/esm/salon-reviews.entry.js +0 -201
- package/esm/salon-services.entry.js +0 -43
- package/esm/salon-stylists.entry.js +0 -50
- package/favesalon-embed/favesalon-embed.esm.js +0 -1
- package/favesalon-embed/p-0188d4dc.entry.js +0 -1
- package/favesalon-embed/p-0318501e.js +0 -1
- package/favesalon-embed/p-078f242d.entry.js +0 -1
- package/favesalon-embed/p-13e23c61.entry.js +0 -1
- package/favesalon-embed/p-17df13ad.js +0 -1
- package/favesalon-embed/p-1a3179c8.entry.js +0 -1
- package/favesalon-embed/p-20aa75de.js +0 -6
- package/favesalon-embed/p-2901a6d6.entry.js +0 -1
- package/favesalon-embed/p-2b861430.entry.js +0 -1
- package/favesalon-embed/p-44d810a0.js +0 -1
- package/favesalon-embed/p-4c68700f.entry.js +0 -1
- package/favesalon-embed/p-4e2d7b29.js +0 -1
- package/favesalon-embed/p-6b845bf1.entry.js +0 -1
- package/favesalon-embed/p-7350f6b5.entry.js +0 -1
- package/favesalon-embed/p-897c2b1c.entry.js +0 -1
- package/favesalon-embed/p-8e60f56f.entry.js +0 -1
- package/favesalon-embed/p-a49afdc1.entry.js +0 -1
- package/favesalon-embed/p-c93867c4.entry.js +0 -1
- package/favesalon-embed/p-ea6a097f.entry.js +0 -1
- package/types/components/google-map/index.d.ts +0 -10
- package/types/components/salon-contact/index.d.ts +0 -9
- package/types/components/salon-lookbook/salon-lookbook-modal.d.ts +0 -13
- package/types/components/salon-reviews/index.d.ts +0 -24
- package/types/components/salon-styles/index.d.ts +0 -9
- package/types/constants/colors.d.ts +0 -88
- package/types/services/services.d.ts +0 -26
- package/types/types/common.d.ts +0 -2
- package/types/types/style.d.ts +0 -59
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FaveStyle } from '../../types/style';
|
|
2
2
|
export declare class SalonLookbook {
|
|
3
3
|
salonId: number;
|
|
4
4
|
isLoading: boolean;
|
|
@@ -7,7 +7,7 @@ export declare class SalonLookbook {
|
|
|
7
7
|
currentPage: number;
|
|
8
8
|
totalLookbooks: number;
|
|
9
9
|
salonCategories: any[];
|
|
10
|
-
salonLookbooks:
|
|
10
|
+
salonLookbooks: FaveStyle[];
|
|
11
11
|
sortBy: string;
|
|
12
12
|
filterBy: string;
|
|
13
13
|
isLayoutSetup: boolean;
|
|
@@ -21,7 +21,7 @@ export declare class SalonLookbook {
|
|
|
21
21
|
onChangeSorting(sortBy: string): Promise<void>;
|
|
22
22
|
onLoadMore(): Promise<void>;
|
|
23
23
|
fetchCategories(): Promise<void>;
|
|
24
|
-
onClickLookbook(style:
|
|
24
|
+
onClickLookbook(style: FaveStyle): void;
|
|
25
25
|
renderHeader(): any;
|
|
26
26
|
render(): any;
|
|
27
27
|
}
|
|
File without changes
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Review } from '../../types/review';
|
|
2
|
+
import { Salon } from '../../types/salon';
|
|
3
|
+
export declare class SalonReviews {
|
|
4
|
+
salonId: number;
|
|
5
|
+
primaryColor: string;
|
|
6
|
+
salonInfo: Salon;
|
|
7
|
+
stats: any;
|
|
8
|
+
totalReviews: number;
|
|
9
|
+
allReviews: Review[];
|
|
10
|
+
isLoading: boolean;
|
|
11
|
+
isSorting: boolean;
|
|
12
|
+
isFiltering: boolean;
|
|
13
|
+
isLoadingMore: boolean;
|
|
14
|
+
canLoadMore: boolean;
|
|
15
|
+
page: number;
|
|
16
|
+
filterBy: any[];
|
|
17
|
+
sortBy: string;
|
|
18
|
+
componentWillLoad(): void;
|
|
19
|
+
fetchData(): void;
|
|
20
|
+
onLoadMore(): void;
|
|
21
|
+
onChangeFilter(filterBy: any): void;
|
|
22
|
+
onChangeSorting(sortBy: any): void;
|
|
23
|
+
render(): any;
|
|
24
|
+
}
|
|
@@ -2,7 +2,13 @@ import { Stylist } from '../../types/stylist';
|
|
|
2
2
|
export declare class SalonStylists {
|
|
3
3
|
salonId: number;
|
|
4
4
|
salonStylists: Stylist[];
|
|
5
|
+
totalStylists: number;
|
|
6
|
+
page: number;
|
|
7
|
+
isLoading?: boolean;
|
|
8
|
+
isLoadingMore?: boolean;
|
|
9
|
+
canLoadMore?: boolean;
|
|
5
10
|
componentWillLoad(): void;
|
|
6
11
|
fetchData(): Promise<void>;
|
|
12
|
+
onLoadMore(): Promise<void>;
|
|
7
13
|
render(): any;
|
|
8
14
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AlbumMedia, FaveStyle, FaveStyleComment } from '../../types/style';
|
|
2
|
+
export declare class StyleDetail {
|
|
3
|
+
salonId: number;
|
|
4
|
+
salonLookbook: string;
|
|
5
|
+
lookbookInfo: FaveStyle;
|
|
6
|
+
isModalOpen: boolean;
|
|
7
|
+
currentMediaIdx?: number;
|
|
8
|
+
currentMedia?: AlbumMedia;
|
|
9
|
+
albumMedias?: AlbumMedia[];
|
|
10
|
+
similarStyles?: FaveStyle[];
|
|
11
|
+
totalComments?: number;
|
|
12
|
+
lookbookComments?: FaveStyleComment[];
|
|
13
|
+
isLayoutSetup?: boolean;
|
|
14
|
+
componentWillLoad(): void;
|
|
15
|
+
componentDidRender(): void;
|
|
16
|
+
injectSDK(): Promise<any>;
|
|
17
|
+
setupGridLayout(): void;
|
|
18
|
+
fetchData(): Promise<any[]>;
|
|
19
|
+
closeModal(): void;
|
|
20
|
+
onClickLookbook(style: FaveStyle): void;
|
|
21
|
+
onClickPrev(): void;
|
|
22
|
+
onClickNext(): void;
|
|
23
|
+
render(): any;
|
|
24
|
+
}
|
|
File without changes
|
|
@@ -7,9 +7,8 @@
|
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
8
|
export namespace Components {
|
|
9
9
|
interface GoogleMap {
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"lng": number;
|
|
10
|
+
"locationAddress"?: string;
|
|
11
|
+
"locationName"?: string;
|
|
13
12
|
}
|
|
14
13
|
interface SalonBooking {
|
|
15
14
|
"buttonClass": string;
|
|
@@ -22,10 +21,6 @@ export namespace Components {
|
|
|
22
21
|
"redirectUrl": string;
|
|
23
22
|
"salonId": number;
|
|
24
23
|
}
|
|
25
|
-
interface SalonContact {
|
|
26
|
-
"salonId": number;
|
|
27
|
-
"salonInfo"?: string;
|
|
28
|
-
}
|
|
29
24
|
interface SalonGiftCard {
|
|
30
25
|
"buttonClass": string;
|
|
31
26
|
"buttonText": string;
|
|
@@ -33,20 +28,29 @@ export namespace Components {
|
|
|
33
28
|
"salonId": number;
|
|
34
29
|
}
|
|
35
30
|
interface SalonGiftCardModal {
|
|
31
|
+
"primaryColor": string;
|
|
36
32
|
"salonId": number;
|
|
37
33
|
}
|
|
38
34
|
interface SalonInfo {
|
|
39
|
-
"backgroundColor": string;
|
|
40
35
|
"fetchData": () => Promise<void>;
|
|
41
36
|
"salonId": number;
|
|
42
37
|
}
|
|
43
38
|
interface SalonLatestReviews {
|
|
44
39
|
"fetchData": () => Promise<void>;
|
|
40
|
+
"primaryColor": string;
|
|
45
41
|
"salonId": number;
|
|
46
42
|
}
|
|
43
|
+
interface SalonLatestStyles {
|
|
44
|
+
"fetchData": () => Promise<boolean>;
|
|
45
|
+
"isLoading"?: boolean;
|
|
46
|
+
"salonId": number;
|
|
47
|
+
"withBorder"?: boolean;
|
|
48
|
+
}
|
|
47
49
|
interface SalonLocations {
|
|
50
|
+
"isLoading"?: boolean;
|
|
48
51
|
"salonId": number;
|
|
49
52
|
"salonInfo"?: string;
|
|
53
|
+
"withBorder"?: boolean;
|
|
50
54
|
}
|
|
51
55
|
interface SalonLookbook {
|
|
52
56
|
"fetchCategories": () => Promise<void>;
|
|
@@ -57,38 +61,36 @@ export namespace Components {
|
|
|
57
61
|
"onLoadMore": () => Promise<void>;
|
|
58
62
|
"salonId": number;
|
|
59
63
|
}
|
|
60
|
-
interface SalonLookbookModal {
|
|
61
|
-
"fetchData": () => Promise<any[]>;
|
|
62
|
-
"salonId": number;
|
|
63
|
-
"salonLookbook": string;
|
|
64
|
-
}
|
|
65
64
|
interface SalonRanking {
|
|
66
65
|
"height"?: number;
|
|
67
66
|
"ranking": number;
|
|
68
67
|
"width"?: number;
|
|
69
68
|
}
|
|
70
69
|
interface SalonReviews {
|
|
71
|
-
"fetchData": () => Promise<any[]>;
|
|
72
70
|
"primaryColor": string;
|
|
73
71
|
"salonId": number;
|
|
74
72
|
}
|
|
75
73
|
interface SalonSchedules {
|
|
74
|
+
"isLoading"?: boolean;
|
|
76
75
|
"salonId": number;
|
|
77
76
|
"salonInfo"?: string;
|
|
77
|
+
"withBorder"?: boolean;
|
|
78
78
|
}
|
|
79
79
|
interface SalonServices {
|
|
80
80
|
"buttonClass": string;
|
|
81
81
|
"fetchData": () => Promise<void>;
|
|
82
82
|
"salonId": number;
|
|
83
83
|
}
|
|
84
|
-
interface SalonStyles {
|
|
85
|
-
"fetchData": () => Promise<any[]>;
|
|
86
|
-
"salonId": number;
|
|
87
|
-
}
|
|
88
84
|
interface SalonStylists {
|
|
89
85
|
"fetchData": () => Promise<void>;
|
|
86
|
+
"onLoadMore": () => Promise<void>;
|
|
90
87
|
"salonId": number;
|
|
91
88
|
}
|
|
89
|
+
interface StyleDetail {
|
|
90
|
+
"fetchData": () => Promise<any[]>;
|
|
91
|
+
"salonId": number;
|
|
92
|
+
"salonLookbook": string;
|
|
93
|
+
}
|
|
92
94
|
interface UserAvatar {
|
|
93
95
|
"avatar": string;
|
|
94
96
|
"name": string;
|
|
@@ -116,12 +118,6 @@ declare global {
|
|
|
116
118
|
prototype: HTMLSalonBookingModalElement;
|
|
117
119
|
new (): HTMLSalonBookingModalElement;
|
|
118
120
|
};
|
|
119
|
-
interface HTMLSalonContactElement extends Components.SalonContact, HTMLStencilElement {
|
|
120
|
-
}
|
|
121
|
-
var HTMLSalonContactElement: {
|
|
122
|
-
prototype: HTMLSalonContactElement;
|
|
123
|
-
new (): HTMLSalonContactElement;
|
|
124
|
-
};
|
|
125
121
|
interface HTMLSalonGiftCardElement extends Components.SalonGiftCard, HTMLStencilElement {
|
|
126
122
|
}
|
|
127
123
|
var HTMLSalonGiftCardElement: {
|
|
@@ -146,6 +142,12 @@ declare global {
|
|
|
146
142
|
prototype: HTMLSalonLatestReviewsElement;
|
|
147
143
|
new (): HTMLSalonLatestReviewsElement;
|
|
148
144
|
};
|
|
145
|
+
interface HTMLSalonLatestStylesElement extends Components.SalonLatestStyles, HTMLStencilElement {
|
|
146
|
+
}
|
|
147
|
+
var HTMLSalonLatestStylesElement: {
|
|
148
|
+
prototype: HTMLSalonLatestStylesElement;
|
|
149
|
+
new (): HTMLSalonLatestStylesElement;
|
|
150
|
+
};
|
|
149
151
|
interface HTMLSalonLocationsElement extends Components.SalonLocations, HTMLStencilElement {
|
|
150
152
|
}
|
|
151
153
|
var HTMLSalonLocationsElement: {
|
|
@@ -158,12 +160,6 @@ declare global {
|
|
|
158
160
|
prototype: HTMLSalonLookbookElement;
|
|
159
161
|
new (): HTMLSalonLookbookElement;
|
|
160
162
|
};
|
|
161
|
-
interface HTMLSalonLookbookModalElement extends Components.SalonLookbookModal, HTMLStencilElement {
|
|
162
|
-
}
|
|
163
|
-
var HTMLSalonLookbookModalElement: {
|
|
164
|
-
prototype: HTMLSalonLookbookModalElement;
|
|
165
|
-
new (): HTMLSalonLookbookModalElement;
|
|
166
|
-
};
|
|
167
163
|
interface HTMLSalonRankingElement extends Components.SalonRanking, HTMLStencilElement {
|
|
168
164
|
}
|
|
169
165
|
var HTMLSalonRankingElement: {
|
|
@@ -188,18 +184,18 @@ declare global {
|
|
|
188
184
|
prototype: HTMLSalonServicesElement;
|
|
189
185
|
new (): HTMLSalonServicesElement;
|
|
190
186
|
};
|
|
191
|
-
interface HTMLSalonStylesElement extends Components.SalonStyles, HTMLStencilElement {
|
|
192
|
-
}
|
|
193
|
-
var HTMLSalonStylesElement: {
|
|
194
|
-
prototype: HTMLSalonStylesElement;
|
|
195
|
-
new (): HTMLSalonStylesElement;
|
|
196
|
-
};
|
|
197
187
|
interface HTMLSalonStylistsElement extends Components.SalonStylists, HTMLStencilElement {
|
|
198
188
|
}
|
|
199
189
|
var HTMLSalonStylistsElement: {
|
|
200
190
|
prototype: HTMLSalonStylistsElement;
|
|
201
191
|
new (): HTMLSalonStylistsElement;
|
|
202
192
|
};
|
|
193
|
+
interface HTMLStyleDetailElement extends Components.StyleDetail, HTMLStencilElement {
|
|
194
|
+
}
|
|
195
|
+
var HTMLStyleDetailElement: {
|
|
196
|
+
prototype: HTMLStyleDetailElement;
|
|
197
|
+
new (): HTMLStyleDetailElement;
|
|
198
|
+
};
|
|
203
199
|
interface HTMLUserAvatarElement extends Components.UserAvatar, HTMLStencilElement {
|
|
204
200
|
}
|
|
205
201
|
var HTMLUserAvatarElement: {
|
|
@@ -210,28 +206,26 @@ declare global {
|
|
|
210
206
|
"google-map": HTMLGoogleMapElement;
|
|
211
207
|
"salon-booking": HTMLSalonBookingElement;
|
|
212
208
|
"salon-booking-modal": HTMLSalonBookingModalElement;
|
|
213
|
-
"salon-contact": HTMLSalonContactElement;
|
|
214
209
|
"salon-gift-card": HTMLSalonGiftCardElement;
|
|
215
210
|
"salon-gift-card-modal": HTMLSalonGiftCardModalElement;
|
|
216
211
|
"salon-info": HTMLSalonInfoElement;
|
|
217
212
|
"salon-latest-reviews": HTMLSalonLatestReviewsElement;
|
|
213
|
+
"salon-latest-styles": HTMLSalonLatestStylesElement;
|
|
218
214
|
"salon-locations": HTMLSalonLocationsElement;
|
|
219
215
|
"salon-lookbook": HTMLSalonLookbookElement;
|
|
220
|
-
"salon-lookbook-modal": HTMLSalonLookbookModalElement;
|
|
221
216
|
"salon-ranking": HTMLSalonRankingElement;
|
|
222
217
|
"salon-reviews": HTMLSalonReviewsElement;
|
|
223
218
|
"salon-schedules": HTMLSalonSchedulesElement;
|
|
224
219
|
"salon-services": HTMLSalonServicesElement;
|
|
225
|
-
"salon-styles": HTMLSalonStylesElement;
|
|
226
220
|
"salon-stylists": HTMLSalonStylistsElement;
|
|
221
|
+
"style-detail": HTMLStyleDetailElement;
|
|
227
222
|
"user-avatar": HTMLUserAvatarElement;
|
|
228
223
|
}
|
|
229
224
|
}
|
|
230
225
|
declare namespace LocalJSX {
|
|
231
226
|
interface GoogleMap {
|
|
232
|
-
"
|
|
233
|
-
"
|
|
234
|
-
"lng"?: number;
|
|
227
|
+
"locationAddress"?: string;
|
|
228
|
+
"locationName"?: string;
|
|
235
229
|
}
|
|
236
230
|
interface SalonBooking {
|
|
237
231
|
"buttonClass"?: string;
|
|
@@ -244,10 +238,6 @@ declare namespace LocalJSX {
|
|
|
244
238
|
"redirectUrl"?: string;
|
|
245
239
|
"salonId"?: number;
|
|
246
240
|
}
|
|
247
|
-
interface SalonContact {
|
|
248
|
-
"salonId"?: number;
|
|
249
|
-
"salonInfo"?: string;
|
|
250
|
-
}
|
|
251
241
|
interface SalonGiftCard {
|
|
252
242
|
"buttonClass"?: string;
|
|
253
243
|
"buttonText"?: string;
|
|
@@ -255,26 +245,30 @@ declare namespace LocalJSX {
|
|
|
255
245
|
"salonId"?: number;
|
|
256
246
|
}
|
|
257
247
|
interface SalonGiftCardModal {
|
|
248
|
+
"primaryColor"?: string;
|
|
258
249
|
"salonId"?: number;
|
|
259
250
|
}
|
|
260
251
|
interface SalonInfo {
|
|
261
|
-
"backgroundColor"?: string;
|
|
262
252
|
"salonId"?: number;
|
|
263
253
|
}
|
|
264
254
|
interface SalonLatestReviews {
|
|
255
|
+
"primaryColor"?: string;
|
|
265
256
|
"salonId"?: number;
|
|
266
257
|
}
|
|
258
|
+
interface SalonLatestStyles {
|
|
259
|
+
"isLoading"?: boolean;
|
|
260
|
+
"salonId"?: number;
|
|
261
|
+
"withBorder"?: boolean;
|
|
262
|
+
}
|
|
267
263
|
interface SalonLocations {
|
|
264
|
+
"isLoading"?: boolean;
|
|
268
265
|
"salonId"?: number;
|
|
269
266
|
"salonInfo"?: string;
|
|
267
|
+
"withBorder"?: boolean;
|
|
270
268
|
}
|
|
271
269
|
interface SalonLookbook {
|
|
272
270
|
"salonId"?: number;
|
|
273
271
|
}
|
|
274
|
-
interface SalonLookbookModal {
|
|
275
|
-
"salonId"?: number;
|
|
276
|
-
"salonLookbook"?: string;
|
|
277
|
-
}
|
|
278
272
|
interface SalonRanking {
|
|
279
273
|
"height"?: number;
|
|
280
274
|
"ranking"?: number;
|
|
@@ -285,18 +279,21 @@ declare namespace LocalJSX {
|
|
|
285
279
|
"salonId"?: number;
|
|
286
280
|
}
|
|
287
281
|
interface SalonSchedules {
|
|
282
|
+
"isLoading"?: boolean;
|
|
288
283
|
"salonId"?: number;
|
|
289
284
|
"salonInfo"?: string;
|
|
285
|
+
"withBorder"?: boolean;
|
|
290
286
|
}
|
|
291
287
|
interface SalonServices {
|
|
292
288
|
"buttonClass"?: string;
|
|
293
289
|
"salonId"?: number;
|
|
294
290
|
}
|
|
295
|
-
interface
|
|
291
|
+
interface SalonStylists {
|
|
296
292
|
"salonId"?: number;
|
|
297
293
|
}
|
|
298
|
-
interface
|
|
294
|
+
interface StyleDetail {
|
|
299
295
|
"salonId"?: number;
|
|
296
|
+
"salonLookbook"?: string;
|
|
300
297
|
}
|
|
301
298
|
interface UserAvatar {
|
|
302
299
|
"avatar"?: string;
|
|
@@ -309,20 +306,19 @@ declare namespace LocalJSX {
|
|
|
309
306
|
"google-map": GoogleMap;
|
|
310
307
|
"salon-booking": SalonBooking;
|
|
311
308
|
"salon-booking-modal": SalonBookingModal;
|
|
312
|
-
"salon-contact": SalonContact;
|
|
313
309
|
"salon-gift-card": SalonGiftCard;
|
|
314
310
|
"salon-gift-card-modal": SalonGiftCardModal;
|
|
315
311
|
"salon-info": SalonInfo;
|
|
316
312
|
"salon-latest-reviews": SalonLatestReviews;
|
|
313
|
+
"salon-latest-styles": SalonLatestStyles;
|
|
317
314
|
"salon-locations": SalonLocations;
|
|
318
315
|
"salon-lookbook": SalonLookbook;
|
|
319
|
-
"salon-lookbook-modal": SalonLookbookModal;
|
|
320
316
|
"salon-ranking": SalonRanking;
|
|
321
317
|
"salon-reviews": SalonReviews;
|
|
322
318
|
"salon-schedules": SalonSchedules;
|
|
323
319
|
"salon-services": SalonServices;
|
|
324
|
-
"salon-styles": SalonStyles;
|
|
325
320
|
"salon-stylists": SalonStylists;
|
|
321
|
+
"style-detail": StyleDetail;
|
|
326
322
|
"user-avatar": UserAvatar;
|
|
327
323
|
}
|
|
328
324
|
}
|
|
@@ -333,20 +329,19 @@ declare module "@stencil/core" {
|
|
|
333
329
|
"google-map": LocalJSX.GoogleMap & JSXBase.HTMLAttributes<HTMLGoogleMapElement>;
|
|
334
330
|
"salon-booking": LocalJSX.SalonBooking & JSXBase.HTMLAttributes<HTMLSalonBookingElement>;
|
|
335
331
|
"salon-booking-modal": LocalJSX.SalonBookingModal & JSXBase.HTMLAttributes<HTMLSalonBookingModalElement>;
|
|
336
|
-
"salon-contact": LocalJSX.SalonContact & JSXBase.HTMLAttributes<HTMLSalonContactElement>;
|
|
337
332
|
"salon-gift-card": LocalJSX.SalonGiftCard & JSXBase.HTMLAttributes<HTMLSalonGiftCardElement>;
|
|
338
333
|
"salon-gift-card-modal": LocalJSX.SalonGiftCardModal & JSXBase.HTMLAttributes<HTMLSalonGiftCardModalElement>;
|
|
339
334
|
"salon-info": LocalJSX.SalonInfo & JSXBase.HTMLAttributes<HTMLSalonInfoElement>;
|
|
340
335
|
"salon-latest-reviews": LocalJSX.SalonLatestReviews & JSXBase.HTMLAttributes<HTMLSalonLatestReviewsElement>;
|
|
336
|
+
"salon-latest-styles": LocalJSX.SalonLatestStyles & JSXBase.HTMLAttributes<HTMLSalonLatestStylesElement>;
|
|
341
337
|
"salon-locations": LocalJSX.SalonLocations & JSXBase.HTMLAttributes<HTMLSalonLocationsElement>;
|
|
342
338
|
"salon-lookbook": LocalJSX.SalonLookbook & JSXBase.HTMLAttributes<HTMLSalonLookbookElement>;
|
|
343
|
-
"salon-lookbook-modal": LocalJSX.SalonLookbookModal & JSXBase.HTMLAttributes<HTMLSalonLookbookModalElement>;
|
|
344
339
|
"salon-ranking": LocalJSX.SalonRanking & JSXBase.HTMLAttributes<HTMLSalonRankingElement>;
|
|
345
340
|
"salon-reviews": LocalJSX.SalonReviews & JSXBase.HTMLAttributes<HTMLSalonReviewsElement>;
|
|
346
341
|
"salon-schedules": LocalJSX.SalonSchedules & JSXBase.HTMLAttributes<HTMLSalonSchedulesElement>;
|
|
347
342
|
"salon-services": LocalJSX.SalonServices & JSXBase.HTMLAttributes<HTMLSalonServicesElement>;
|
|
348
|
-
"salon-styles": LocalJSX.SalonStyles & JSXBase.HTMLAttributes<HTMLSalonStylesElement>;
|
|
349
343
|
"salon-stylists": LocalJSX.SalonStylists & JSXBase.HTMLAttributes<HTMLSalonStylistsElement>;
|
|
344
|
+
"style-detail": LocalJSX.StyleDetail & JSXBase.HTMLAttributes<HTMLStyleDetailElement>;
|
|
350
345
|
"user-avatar": LocalJSX.UserAvatar & JSXBase.HTMLAttributes<HTMLUserAvatarElement>;
|
|
351
346
|
}
|
|
352
347
|
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export declare const Colors: {
|
|
2
|
+
TextColor: string;
|
|
3
|
+
Black: string;
|
|
4
|
+
White: string;
|
|
5
|
+
Primary: string;
|
|
6
|
+
Secondary: string;
|
|
7
|
+
Black01: string;
|
|
8
|
+
Black02: string;
|
|
9
|
+
Black03: string;
|
|
10
|
+
Gray01: string;
|
|
11
|
+
Gray02: string;
|
|
12
|
+
Gray03: string;
|
|
13
|
+
Gray04: string;
|
|
14
|
+
Gray05: string;
|
|
15
|
+
Red01: string;
|
|
16
|
+
Red02: string;
|
|
17
|
+
Red03: string;
|
|
18
|
+
Red04: string;
|
|
19
|
+
Red05: string;
|
|
20
|
+
Orange01: string;
|
|
21
|
+
Orange02: string;
|
|
22
|
+
Orange03: string;
|
|
23
|
+
Orange04: string;
|
|
24
|
+
Orange05: string;
|
|
25
|
+
Yellow01: string;
|
|
26
|
+
Yellow02: string;
|
|
27
|
+
Yellow03: string;
|
|
28
|
+
Yellow04: string;
|
|
29
|
+
Yellow05: string;
|
|
30
|
+
Lilac01: string;
|
|
31
|
+
Lilac02: string;
|
|
32
|
+
Lilac03: string;
|
|
33
|
+
Lilac04: string;
|
|
34
|
+
Lilac05: string;
|
|
35
|
+
Blue01: string;
|
|
36
|
+
Blue02: string;
|
|
37
|
+
Blue03: string;
|
|
38
|
+
Blue04: string;
|
|
39
|
+
Blue05: string;
|
|
40
|
+
Green01: string;
|
|
41
|
+
Green02: string;
|
|
42
|
+
Green03: string;
|
|
43
|
+
Green04: string;
|
|
44
|
+
Green05: string;
|
|
45
|
+
Success01: string;
|
|
46
|
+
Success02: string;
|
|
47
|
+
Success03: string;
|
|
48
|
+
Success04: string;
|
|
49
|
+
Success05: string;
|
|
50
|
+
Error01: string;
|
|
51
|
+
Error02: string;
|
|
52
|
+
Error03: string;
|
|
53
|
+
Error04: string;
|
|
54
|
+
Error05: string;
|
|
55
|
+
Warning01: string;
|
|
56
|
+
Warning02: string;
|
|
57
|
+
Warning03: string;
|
|
58
|
+
Warning04: string;
|
|
59
|
+
Warning05: string;
|
|
60
|
+
Info01: string;
|
|
61
|
+
Info02: string;
|
|
62
|
+
Info03: string;
|
|
63
|
+
Info04: string;
|
|
64
|
+
Info05: string;
|
|
65
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
declare class HttpService {
|
|
3
|
+
http: AxiosInstance;
|
|
4
|
+
constructor();
|
|
5
|
+
fetchStyleDetail(styleId: number): Promise<{
|
|
6
|
+
styleInfo: any;
|
|
7
|
+
similarStyles: any[];
|
|
8
|
+
} | {
|
|
9
|
+
styleInfo: any;
|
|
10
|
+
similarStyles: any[];
|
|
11
|
+
}>;
|
|
12
|
+
fetchSalonInfo(salonId: number): Promise<any>;
|
|
13
|
+
fetchSalonLatestStyles(salonId: number, options: any): Promise<any>;
|
|
14
|
+
decorateServiceGroups(groups: any): any;
|
|
15
|
+
fetchSalonServices(salonId: number): Promise<any>;
|
|
16
|
+
fetchSalonStylists(salonId: number, options?: {
|
|
17
|
+
page: number;
|
|
18
|
+
limit: number;
|
|
19
|
+
}): Promise<{
|
|
20
|
+
total: any;
|
|
21
|
+
data: any;
|
|
22
|
+
} | {
|
|
23
|
+
total: number;
|
|
24
|
+
data: any[];
|
|
25
|
+
}>;
|
|
26
|
+
fetchSalonReviews(salonId: number, options?: any): Promise<{
|
|
27
|
+
total: any;
|
|
28
|
+
stats: {
|
|
29
|
+
totalReviews: any;
|
|
30
|
+
reviewPoint: number;
|
|
31
|
+
'1': number;
|
|
32
|
+
'2': number;
|
|
33
|
+
'3': number;
|
|
34
|
+
'4': number;
|
|
35
|
+
'5': number;
|
|
36
|
+
};
|
|
37
|
+
data: any;
|
|
38
|
+
} | {
|
|
39
|
+
total: number;
|
|
40
|
+
stats: {};
|
|
41
|
+
data: any[];
|
|
42
|
+
}>;
|
|
43
|
+
fetchSalonCategories(): Promise<any>;
|
|
44
|
+
fetchSalonLookbooks(salonId: number, options: any): Promise<{
|
|
45
|
+
total: number;
|
|
46
|
+
allLookbooks: any[];
|
|
47
|
+
} | {
|
|
48
|
+
total: any;
|
|
49
|
+
allLookbooks: any;
|
|
50
|
+
}>;
|
|
51
|
+
fetchStyleComments(styleId: number): Promise<{
|
|
52
|
+
total: any;
|
|
53
|
+
data: any;
|
|
54
|
+
} | {
|
|
55
|
+
total: number;
|
|
56
|
+
data: any[];
|
|
57
|
+
}>;
|
|
58
|
+
}
|
|
59
|
+
declare const _default: () => HttpService;
|
|
60
|
+
export default _default;
|
|
File without changes
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const timeFormat = "HH:mm:ss";
|
|
2
|
+
export declare const timeFormatAmPm = "hh:mm A";
|
|
3
|
+
export declare const dateName = "dddd";
|
|
4
|
+
export declare const dateFormat = "YYYY-MM-DD";
|
|
5
|
+
export declare const dateTimeFormat = "YYYY-MM-DD HH:mm:ss";
|
|
6
|
+
export declare const dateTimeFormatAmPm = "YYYY-MM-DD hh:mm A";
|
|
7
|
+
export declare const shortDateFormat = "ddd, MMM DD";
|
|
8
|
+
export declare const shortDateYearFormat = "ddd, MMM DD YYYY";
|
|
9
|
+
export declare const apiV1Prefix = "api";
|
|
10
|
+
export declare const apiV2Prefix = "api-ver2";
|
|
11
|
+
export declare const defaultImage = "https://res.cloudinary.com/reckon-mini-sites/image/upload/v1636477599/FaveSalon%20Social%20Website/default/default--picture_w3jvfh.png";
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Salon } from "./salon";
|
|
2
|
+
import { Stylist } from "./stylist";
|
|
1
3
|
import { User } from "./user";
|
|
2
4
|
interface ReviewPhoto {
|
|
3
5
|
id: number;
|
|
@@ -20,6 +22,8 @@ export declare class Review {
|
|
|
20
22
|
helpful: number;
|
|
21
23
|
recommend: number;
|
|
22
24
|
user: User;
|
|
25
|
+
salon: Salon;
|
|
26
|
+
stylist: Stylist;
|
|
23
27
|
photos: ReviewPhoto[];
|
|
24
28
|
}
|
|
25
29
|
export declare function createReview(blob: any): Review;
|
|
@@ -13,9 +13,9 @@ export interface Salon {
|
|
|
13
13
|
id: number;
|
|
14
14
|
about: string;
|
|
15
15
|
email: string;
|
|
16
|
+
ownerName: string;
|
|
16
17
|
fullProfileImage: string;
|
|
17
18
|
fullCoverImage: string;
|
|
18
|
-
ownerName: string;
|
|
19
19
|
subdomain: string;
|
|
20
20
|
website: string;
|
|
21
21
|
businessName: string;
|
|
@@ -29,5 +29,7 @@ export interface Salon {
|
|
|
29
29
|
businessHours: BusinessHour[];
|
|
30
30
|
rating: number;
|
|
31
31
|
primaryColor: string;
|
|
32
|
+
salonImages: string[];
|
|
32
33
|
}
|
|
33
34
|
export declare function createSalon(blob: any): Salon;
|
|
35
|
+
export declare function getSalonImage({ salonImages, fullProfileImage }: Salon): string;
|
|
File without changes
|