@coorpacademy/app-review 0.0.21-alpha.4 → 0.1.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/es/actions/courses.d.ts +2 -3
- package/es/actions/data/is-fetching.d.ts +5 -0
- package/es/actions/data/is-fetching.js +4 -0
- package/es/actions/data/validate-slide.d.ts +5 -0
- package/es/actions/data/validate-slide.js +6 -0
- package/es/actions/finished-slides.d.ts +7 -0
- package/es/actions/finished-slides.js +7 -0
- package/es/actions/index.d.ts +2 -5
- package/es/actions/index.js +1 -3
- package/es/actions/navigation.d.ts +5 -6
- package/es/actions/review-status.d.ts +7 -0
- package/es/actions/review-status.js +7 -0
- package/es/actions/slides.d.ts +20 -0
- package/es/actions/slides.js +17 -0
- package/es/actions/step-items.d.ts +14 -0
- package/es/actions/step-items.js +12 -0
- package/es/actions/token.d.ts +0 -1
- package/es/common/index.d.ts +8 -0
- package/es/common/index.js +8 -0
- package/es/configure-store.d.ts +3 -12
- package/es/configure-store.js +5 -7
- package/es/fixtures/qcm-slide.d.ts +2 -0
- package/es/fixtures/qcm-slide.js +29 -0
- package/es/fixtures/temp-fixture.d.ts +3 -0
- package/es/fixtures/temp-fixture.js +84 -0
- package/es/helpers/css-register.d.ts +1 -0
- package/es/helpers/css-register.js +2 -0
- package/es/index.d.ts +5 -12
- package/es/index.js +62 -14
- package/es/index.test.d.ts +1 -0
- package/es/index.test.js +52 -0
- package/es/middlewares/on-start-app.d.ts +1 -2
- package/es/middlewares/on-start-app.js +20 -9
- package/es/reducers/courses.d.ts +2 -3
- package/es/reducers/courses.js +2 -1
- package/es/reducers/data.d.ts +7 -0
- package/es/reducers/data.js +76 -0
- package/es/reducers/finished-slides.d.ts +6 -0
- package/es/reducers/finished-slides.js +32 -0
- package/es/reducers/index.d.ts +11 -6
- package/es/reducers/index.js +14 -4
- package/es/reducers/navigation.d.ts +4 -3
- package/es/reducers/navigation.js +4 -1
- package/es/reducers/review-status.d.ts +5 -0
- package/es/reducers/review-status.js +15 -0
- package/es/reducers/slides.d.ts +6 -0
- package/es/reducers/slides.js +112 -0
- package/es/reducers/step-items.d.ts +6 -0
- package/es/reducers/step-items.js +75 -0
- package/es/reducers/token.d.ts +5 -7
- package/es/reducers/token.js +4 -12
- package/es/services/fetch-demo.d.ts +0 -1
- package/es/services/fetch-demo.test.d.ts +0 -1
- package/es/services/fetch-responses.d.ts +6 -7
- package/es/services/fetch-responses.js +2 -2
- package/es/services/fetch.mocks.d.ts +3 -4
- package/es/services/fetch.mocks.js +3 -3
- package/es/types/common.d.ts +7 -0
- package/es/types/common.js +1 -0
- package/es/types/data/index.d.ts +14 -0
- package/es/types/data/index.js +1 -0
- package/es/types/dispatchers.d.ts +17 -0
- package/es/types/dispatchers.js +1 -0
- package/es/types/finished-slides.d.ts +9 -0
- package/es/types/finished-slides.js +1 -0
- package/es/types/review-status.d.ts +1 -0
- package/es/types/review-status.js +1 -0
- package/es/types/slides.d.ts +87 -0
- package/es/types/slides.js +1 -0
- package/es/types/states.d.ts +6 -0
- package/es/types/states.js +1 -0
- package/es/types/step-items.d.ts +26 -0
- package/es/types/step-items.js +5 -0
- package/es/types/store-state.d.ts +12 -0
- package/es/types/store-state.js +1 -0
- package/es/types/utils.d.ts +3 -0
- package/es/types/utils.js +1 -0
- package/es/types/views.d.ts +64 -0
- package/es/types/views.js +1 -0
- package/lib/actions/courses.d.ts +2 -3
- package/lib/actions/data/is-fetching.d.ts +5 -0
- package/lib/actions/data/is-fetching.js +4 -0
- package/lib/actions/data/validate-slide.d.ts +5 -0
- package/lib/actions/data/validate-slide.js +6 -0
- package/lib/actions/finished-slides.d.ts +7 -0
- package/lib/actions/finished-slides.js +7 -0
- package/lib/actions/index.d.ts +2 -5
- package/lib/actions/index.js +1 -3
- package/lib/actions/navigation.d.ts +5 -6
- package/lib/actions/review-status.d.ts +7 -0
- package/lib/actions/review-status.js +7 -0
- package/lib/actions/slides.d.ts +20 -0
- package/lib/actions/slides.js +17 -0
- package/lib/actions/step-items.d.ts +14 -0
- package/lib/actions/step-items.js +12 -0
- package/lib/actions/token.d.ts +0 -1
- package/lib/common/index.d.ts +8 -0
- package/lib/common/index.js +8 -0
- package/lib/configure-store.d.ts +3 -12
- package/lib/configure-store.js +10 -59
- package/lib/fixtures/qcm-slide.d.ts +2 -0
- package/lib/fixtures/qcm-slide.js +29 -0
- package/lib/fixtures/temp-fixture.d.ts +3 -0
- package/lib/fixtures/temp-fixture.js +84 -0
- package/lib/helpers/css-register.d.ts +1 -0
- package/lib/helpers/css-register.js +2 -0
- package/lib/index.d.ts +5 -12
- package/lib/index.js +71 -34
- package/lib/index.test.d.ts +1 -0
- package/lib/index.test.js +160 -0
- package/lib/middlewares/on-start-app.d.ts +1 -2
- package/lib/middlewares/on-start-app.js +29 -16
- package/lib/reducers/courses.d.ts +2 -3
- package/lib/reducers/courses.js +2 -1
- package/lib/reducers/data.d.ts +7 -0
- package/lib/reducers/data.js +77 -0
- package/lib/reducers/finished-slides.d.ts +6 -0
- package/lib/reducers/finished-slides.js +44 -0
- package/lib/reducers/index.d.ts +11 -6
- package/lib/reducers/index.js +14 -4
- package/lib/reducers/navigation.d.ts +4 -3
- package/lib/reducers/navigation.js +6 -1
- package/lib/reducers/review-status.d.ts +5 -0
- package/lib/reducers/review-status.js +16 -0
- package/lib/reducers/slides.d.ts +6 -0
- package/lib/reducers/slides.js +119 -0
- package/lib/reducers/step-items.d.ts +6 -0
- package/lib/reducers/step-items.js +87 -0
- package/lib/reducers/token.d.ts +5 -7
- package/lib/reducers/token.js +4 -13
- package/lib/services/fetch-demo.d.ts +0 -1
- package/lib/services/fetch-demo.js +25 -23
- package/lib/services/fetch-demo.test.d.ts +0 -1
- package/lib/services/fetch-responses.d.ts +6 -7
- package/lib/services/fetch-responses.js +2 -2
- package/lib/services/fetch.mocks.d.ts +3 -4
- package/lib/services/fetch.mocks.js +28 -16
- package/lib/types/common.d.ts +7 -0
- package/lib/types/common.js +1 -0
- package/lib/types/data/index.d.ts +14 -0
- package/lib/types/data/index.js +1 -0
- package/lib/types/dispatchers.d.ts +17 -0
- package/lib/types/dispatchers.js +1 -0
- package/lib/types/finished-slides.d.ts +9 -0
- package/lib/types/finished-slides.js +1 -0
- package/lib/types/review-status.d.ts +1 -0
- package/lib/types/review-status.js +1 -0
- package/lib/types/slides.d.ts +87 -0
- package/lib/types/slides.js +1 -0
- package/lib/types/states.d.ts +6 -0
- package/lib/types/states.js +1 -0
- package/lib/types/step-items.d.ts +26 -0
- package/lib/types/step-items.js +5 -0
- package/lib/types/store-state.d.ts +12 -0
- package/lib/types/store-state.js +1 -0
- package/lib/types/utils.d.ts +3 -0
- package/lib/types/utils.js +1 -0
- package/lib/types/views.d.ts +64 -0
- package/lib/types/views.js +1 -0
- package/package.json +21 -7
- package/src/actions/courses.ts +2 -2
- package/src/actions/data/is-fetching.ts +12 -0
- package/src/actions/data/validate-slide.ts +15 -0
- package/src/actions/finished-slides.ts +21 -0
- package/src/actions/index.ts +8 -5
- package/src/actions/navigation.ts +6 -5
- package/src/actions/review-status.ts +19 -0
- package/src/actions/slides.ts +45 -0
- package/src/actions/step-items.ts +39 -0
- package/src/common/index.ts +14 -0
- package/src/configure-store.ts +14 -22
- package/src/fixtures/qcm-slide.ts +31 -0
- package/src/fixtures/temp-fixture.ts +94 -0
- package/src/helpers/css-modules-require-hook.d.ts +4 -0
- package/src/helpers/css-register.ts +3 -0
- package/src/index.test.tsx +82 -0
- package/src/index.tsx +75 -22
- package/src/middlewares/on-start-app.ts +35 -20
- package/src/reducers/courses.ts +3 -2
- package/src/reducers/data.ts +88 -0
- package/src/reducers/finished-slides.ts +48 -0
- package/src/reducers/index.ts +14 -4
- package/src/reducers/navigation.ts +7 -3
- package/src/reducers/review-status.ts +23 -0
- package/src/reducers/slides.ts +136 -0
- package/src/reducers/step-items.ts +112 -0
- package/src/reducers/token.ts +6 -15
- package/src/services/fetch-demo.ts +17 -15
- package/src/services/fetch-responses.ts +7 -7
- package/src/services/fetch.mocks.ts +29 -14
- package/src/types/common.ts +8 -0
- package/src/types/data/index.ts +16 -0
- package/src/types/dispatchers.ts +18 -0
- package/src/types/finished-slides.ts +9 -0
- package/src/types/globals.d.ts +6 -0
- package/src/types/review-status.ts +1 -0
- package/src/types/slides.ts +107 -0
- package/src/types/states.ts +6 -0
- package/src/types/step-items.ts +31 -0
- package/src/types/store-state.ts +20 -0
- package/src/types/utils.ts +4 -0
- package/src/types/views.tsx +69 -0
- package/es/actions/courses.d.ts.map +0 -1
- package/es/actions/index.d.ts.map +0 -1
- package/es/actions/navigation.d.ts.map +0 -1
- package/es/actions/token.d.ts.map +0 -1
- package/es/components/__tmp-backup-vues-mobile/revision-home.d.ts +0 -10
- package/es/components/__tmp-backup-vues-mobile/revision-home.d.ts.map +0 -1
- package/es/components/__tmp-backup-vues-mobile/revision-home.js +0 -83
- package/es/components/__tmp-backup-vues-mobile/revision-home.stories.d.ts +0 -1
- package/es/components/__tmp-backup-vues-mobile/revision-home.stories.d.ts.map +0 -1
- package/es/components/__tmp-backup-vues-mobile/revision-home.stories.js +0 -14
- package/es/components/__tmp-backup-vues-mobile/revision-onboarding.d.ts +0 -4
- package/es/components/__tmp-backup-vues-mobile/revision-onboarding.d.ts.map +0 -1
- package/es/components/__tmp-backup-vues-mobile/revision-onboarding.js +0 -57
- package/es/components/__tmp-backup-vues-mobile/revision-quizzer.d.ts +0 -19
- package/es/components/__tmp-backup-vues-mobile/revision-quizzer.d.ts.map +0 -1
- package/es/components/__tmp-backup-vues-mobile/revision-quizzer.js +0 -120
- package/es/configure-store.d.ts.map +0 -1
- package/es/index.d.ts.map +0 -1
- package/es/middlewares/on-start-app.d.ts.map +0 -1
- package/es/reducers/courses.d.ts.map +0 -1
- package/es/reducers/index.d.ts.map +0 -1
- package/es/reducers/navigation.d.ts.map +0 -1
- package/es/reducers/token.d.ts.map +0 -1
- package/es/services/fetch-demo.d.ts.map +0 -1
- package/es/services/fetch-demo.test.d.ts.map +0 -1
- package/es/services/fetch-responses.d.ts.map +0 -1
- package/es/services/fetch.mocks.d.ts.map +0 -1
- package/lib/actions/courses.d.ts.map +0 -1
- package/lib/actions/index.d.ts.map +0 -1
- package/lib/actions/navigation.d.ts.map +0 -1
- package/lib/actions/token.d.ts.map +0 -1
- package/lib/components/__tmp-backup-vues-mobile/revision-home.d.ts +0 -10
- package/lib/components/__tmp-backup-vues-mobile/revision-home.d.ts.map +0 -1
- package/lib/components/__tmp-backup-vues-mobile/revision-home.js +0 -98
- package/lib/components/__tmp-backup-vues-mobile/revision-home.stories.d.ts +0 -1
- package/lib/components/__tmp-backup-vues-mobile/revision-home.stories.d.ts.map +0 -1
- package/lib/components/__tmp-backup-vues-mobile/revision-home.stories.js +0 -14
- package/lib/components/__tmp-backup-vues-mobile/revision-onboarding.d.ts +0 -4
- package/lib/components/__tmp-backup-vues-mobile/revision-onboarding.d.ts.map +0 -1
- package/lib/components/__tmp-backup-vues-mobile/revision-onboarding.js +0 -60
- package/lib/components/__tmp-backup-vues-mobile/revision-quizzer.d.ts +0 -19
- package/lib/components/__tmp-backup-vues-mobile/revision-quizzer.d.ts.map +0 -1
- package/lib/components/__tmp-backup-vues-mobile/revision-quizzer.js +0 -128
- package/lib/configure-store.d.ts.map +0 -1
- package/lib/index.d.ts.map +0 -1
- package/lib/middlewares/on-start-app.d.ts.map +0 -1
- package/lib/reducers/courses.d.ts.map +0 -1
- package/lib/reducers/index.d.ts.map +0 -1
- package/lib/reducers/navigation.d.ts.map +0 -1
- package/lib/reducers/token.d.ts.map +0 -1
- package/lib/services/fetch-demo.d.ts.map +0 -1
- package/lib/services/fetch-demo.test.d.ts.map +0 -1
- package/lib/services/fetch-responses.d.ts.map +0 -1
- package/lib/services/fetch.mocks.d.ts.map +0 -1
- package/src/components/__tmp-backup-vues-mobile/revision-home.stories.tsx +0 -16
- package/src/components/__tmp-backup-vues-mobile/revision-home.tsx +0 -125
- package/src/components/__tmp-backup-vues-mobile/revision-onboarding.tsx +0 -84
- package/src/components/__tmp-backup-vues-mobile/revision-quizzer.tsx +0 -176
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
+
import {State as ReviewStatus} from '../reducers/review-status';
|
|
3
|
+
import {DataState} from './data';
|
|
4
|
+
import {Dispatchers} from './dispatchers';
|
|
5
|
+
import {FinishedSlides} from './finished-slides';
|
|
6
|
+
import {Slides} from './slides';
|
|
7
|
+
import {StepItems} from './step-items';
|
|
8
|
+
|
|
9
|
+
type SlidesViewStaticProps = {
|
|
10
|
+
slides: Slides;
|
|
11
|
+
headerProps: {
|
|
12
|
+
mode: string;
|
|
13
|
+
skillName: string;
|
|
14
|
+
onQuitClick: Function;
|
|
15
|
+
'aria-label'?: string;
|
|
16
|
+
closeButtonAriaLabel: string;
|
|
17
|
+
};
|
|
18
|
+
finishedSlides: FinishedSlides;
|
|
19
|
+
stepItems: StepItems;
|
|
20
|
+
reviewStatus: ReviewStatus;
|
|
21
|
+
validate: {
|
|
22
|
+
label: string;
|
|
23
|
+
};
|
|
24
|
+
congratsProps?: {
|
|
25
|
+
'aria-label'?: string;
|
|
26
|
+
'data-name'?: string;
|
|
27
|
+
animationLottie: any;
|
|
28
|
+
title: string;
|
|
29
|
+
cardCongratsStar: any;
|
|
30
|
+
cardCongratsRank: any;
|
|
31
|
+
buttonRevising: {
|
|
32
|
+
'aria-label'?: string;
|
|
33
|
+
label: string;
|
|
34
|
+
onClick: Function;
|
|
35
|
+
type: string;
|
|
36
|
+
};
|
|
37
|
+
buttonRevisingSkill: {
|
|
38
|
+
'aria-label'?: string;
|
|
39
|
+
label: string;
|
|
40
|
+
onClick: Function;
|
|
41
|
+
type: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
correctionPopinProps?: {
|
|
45
|
+
klf: {
|
|
46
|
+
label: string;
|
|
47
|
+
onClick: Function;
|
|
48
|
+
tooltip: string;
|
|
49
|
+
};
|
|
50
|
+
information: {
|
|
51
|
+
label: string;
|
|
52
|
+
message: string;
|
|
53
|
+
};
|
|
54
|
+
next: {
|
|
55
|
+
label: string;
|
|
56
|
+
ariaLabel: string;
|
|
57
|
+
};
|
|
58
|
+
successLabel: string;
|
|
59
|
+
failureLabel: string;
|
|
60
|
+
};
|
|
61
|
+
reviewBackgroundAriaLabel?: string;
|
|
62
|
+
slideValidationResult: DataState['slideValidationResult'];
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
type SlidesViewDispatcherProps = Omit<Dispatchers, 'navigateTo' | 'navigateBack'>;
|
|
66
|
+
|
|
67
|
+
type SlidesViewProps = SlidesViewStaticProps & SlidesViewDispatcherProps;
|
|
68
|
+
|
|
69
|
+
export {SlidesViewStaticProps, SlidesViewDispatcherProps, SlidesViewProps};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"courses.d.ts","sourceRoot":"","sources":["../../src/actions/courses.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,0BAA0B,CAAC;AAEvD,oBAAY,cAAc,GAAG;IAC3B,IAAI,EAAE,uBAAuB,CAAC;IAC9B,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,cAAc,WAAY,GAAG,KAAG,cAG3C,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/actions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,WAAW,CAAC;AACzC,OAAO,EAAC,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAC,MAAM,cAAc,CAAC;AAChE,OAAO,EAAC,UAAU,EAAC,MAAM,SAAS,CAAC;AAEnC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AAExB,oBAAY,MAAM,GAAG,QAAQ,GAAG,UAAU,GAAG,YAAY,GAAG,UAAU,GAAG,cAAc,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../src/actions/navigation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,OAAO,CAAC;AACpC,OAAO,EAAC,UAAU,EAAC,MAAM,IAAI,CAAC;AAE9B,eAAO,MAAM,WAAW,6BAA6B,CAAC;AACtD,eAAO,MAAM,aAAa,+BAA+B,CAAC;AAC1D,eAAO,MAAM,SAAS,2BAA2B,CAAC;AAElD,oBAAY,UAAU,GAAG;IACvB,IAAI,EAAE,0BAA0B,CAAC;IACjC,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,oBAAY,YAAY,GAAG;IACzB,IAAI,EAAE,4BAA4B,CAAC;CACpC,CAAC;AAEF,oBAAY,QAAQ,GAAG;IACrB,IAAI,EAAE,wBAAwB,CAAC;IAC/B,OAAO,EAAE,UAAU,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,aAAa,CAAC,UAAU,CAG/C,CAAC;AAEH,eAAO,MAAM,YAAY,EAAE,aAAa,CAAC,YAAY,CAEnD,CAAC;AAEH,eAAO,MAAM,QAAQ,YAAa,UAAU,KAAG,QAG7C,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"token.d.ts","sourceRoot":"","sources":["../../src/actions/token.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,wBAAwB,CAAC;AAEjD,oBAAY,UAAU,GAAG;IACvB,IAAI,EAAE,qBAAqB,CAAC;IAC5B,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,UAAU,UAAW,MAAM,KAAG,UAGzC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"revision-home.d.ts","sourceRoot":"","sources":["../../../src/components/__tmp-backup-vues-mobile/revision-home.tsx"],"names":[],"mappings":";AAWA,UAAU,KAAK;IACb,cAAc,EAAE;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAC,EAAE,CAAC;CACnD;AAoGD,QAAA,MAAM,YAAY,UAAW,KAAK,gBASjC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { View, FlatList, Pressable, StyleSheet, Text } from 'react-native';
|
|
3
|
-
import { NovaCompositionNavigationArrowRight as ArrowRight } from '@coorpacademy/nova-icons';
|
|
4
|
-
const styles = StyleSheet.create({
|
|
5
|
-
container: {
|
|
6
|
-
flex: 1,
|
|
7
|
-
padding: 20
|
|
8
|
-
// paddingTop: HEADER_HEIGHT + 20,
|
|
9
|
-
// backgroundColor: theme.colors.white
|
|
10
|
-
},
|
|
11
|
-
title: {
|
|
12
|
-
// fontSize: theme.fontSize.xlarge,
|
|
13
|
-
// fontWeight: theme.fontWeight.bold,
|
|
14
|
-
lineHeight: 28
|
|
15
|
-
// color: theme.colors.text.primary,
|
|
16
|
-
// marginBottom: theme.spacing.base,
|
|
17
|
-
// marginTop: theme.spacing.small
|
|
18
|
-
},
|
|
19
|
-
subtitle: {
|
|
20
|
-
// fontSize: theme.fontSize.xlarge,
|
|
21
|
-
// color: theme.colors.text.primary,
|
|
22
|
-
// marginBottom: theme.spacing.tiny
|
|
23
|
-
},
|
|
24
|
-
text: {
|
|
25
|
-
fontSize: 16,
|
|
26
|
-
lineHeight: 22,
|
|
27
|
-
// color: theme.colors.text.primary,
|
|
28
|
-
opacity: 0.7
|
|
29
|
-
// marginBottom: theme.spacing.base
|
|
30
|
-
},
|
|
31
|
-
noSkillsImage: {
|
|
32
|
-
flex: 1,
|
|
33
|
-
alignSelf: 'center',
|
|
34
|
-
width: 320,
|
|
35
|
-
height: 300
|
|
36
|
-
},
|
|
37
|
-
skills: {},
|
|
38
|
-
skill: {
|
|
39
|
-
display: 'flex',
|
|
40
|
-
flexDirection: 'row',
|
|
41
|
-
overflow: 'hidden',
|
|
42
|
-
alignItems: 'center',
|
|
43
|
-
height: 118,
|
|
44
|
-
borderRadius: 8
|
|
45
|
-
// backgroundColor: theme.colors.gray.lighter,
|
|
46
|
-
// marginTop: theme.spacing.micro,
|
|
47
|
-
// marginBottom: theme.spacing.micro,
|
|
48
|
-
// padding: theme.spacing.base
|
|
49
|
-
},
|
|
50
|
-
skillTexts: {
|
|
51
|
-
flex: 1,
|
|
52
|
-
flexDirection: 'column'
|
|
53
|
-
},
|
|
54
|
-
skillTitle: {
|
|
55
|
-
fontSize: 18,
|
|
56
|
-
fontWeight: '600',
|
|
57
|
-
lineHeight: 22
|
|
58
|
-
// color: theme.colors.text.primary,
|
|
59
|
-
// marginBottom: theme.spacing.tiny
|
|
60
|
-
},
|
|
61
|
-
skillInfo: {
|
|
62
|
-
fontSize: 12,
|
|
63
|
-
lineHeight: 16
|
|
64
|
-
// color: theme.colors.gray.medium
|
|
65
|
-
},
|
|
66
|
-
extraSpace: {
|
|
67
|
-
height: 100
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
const onSelectSkill = (title) => () => {
|
|
71
|
-
console.log('pressed on', { title });
|
|
72
|
-
};
|
|
73
|
-
const ExtraSpace = () => React.createElement(View, { style: styles.extraSpace });
|
|
74
|
-
const Skill = ({ title, info }) => (React.createElement(Pressable, { style: styles.skill, onPress: onSelectSkill(title) },
|
|
75
|
-
React.createElement(View, { style: styles.skillTexts },
|
|
76
|
-
React.createElement(Text, { style: styles.skillTitle }, title),
|
|
77
|
-
React.createElement(Text, { style: styles.skillInfo }, info)),
|
|
78
|
-
React.createElement(ArrowRight, { color: "#ededed", height: 20, width: 20 })));
|
|
79
|
-
const renderSkill = ({ item: { title, info, isExtraSpace = false } }) => isExtraSpace ? React.createElement(ExtraSpace, null) : React.createElement(Skill, { title: title, info: info });
|
|
80
|
-
const Skills = (props) => (React.createElement(FlatList, { contentContainerStyle: styles.skills, data: props.skills, renderItem: renderSkill }));
|
|
81
|
-
const NoSkills = () => (React.createElement(React.Fragment, null));
|
|
82
|
-
const RevisionHome = (props) => (React.createElement(View, { style: styles.container }, !props.skillsToRevise || props.skillsToRevise.length === 0 ? (React.createElement(NoSkills, null)) : (React.createElement(Skills, { skills: [...props.skillsToRevise, { isExtraSpace: true }] }))));
|
|
83
|
-
export default RevisionHome;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=revision-home.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"revision-home.stories.d.ts","sourceRoot":"","sources":["../../../src/components/__tmp-backup-vues-mobile/revision-home.stories.tsx"],"names":[],"mappings":""}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// import * as React from 'react';
|
|
2
|
-
// import {storiesOf} from '@storybook/react-native';
|
|
3
|
-
// import RevisionHome from './revision-home';
|
|
4
|
-
// const emptySkills: [] = [];
|
|
5
|
-
// const skillsToRevise: {title: string; info: string}[] = [
|
|
6
|
-
// {title: 'Negotiation and powers of persuasion', info: '75 questions to revise'},
|
|
7
|
-
// {title: 'Negotiation and powers of persuasion', info: '75 questions to revise'},
|
|
8
|
-
// {title: 'Negotiation and powers of persuasion', info: '75 questions to revise'},
|
|
9
|
-
// {title: 'Negotiation and powers of persuasion', info: '75 questions to revise'},
|
|
10
|
-
// {title: 'Creativity and innovation', info: '75 questions to revise'}
|
|
11
|
-
// ];
|
|
12
|
-
// storiesOf('RevisionHome', module)
|
|
13
|
-
// .add('No skills', () => <RevisionHome skillsToRevise={emptySkills} />)
|
|
14
|
-
// .add('Few skills', () => <RevisionHome skillsToRevise={skillsToRevise} />);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"revision-onboarding.d.ts","sourceRoot":"","sources":["../../../src/components/__tmp-backup-vues-mobile/revision-onboarding.tsx"],"names":[],"mappings":";AAkEA,QAAA,MAAM,kBAAkB,mBAevB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { View, StyleSheet, Text } from 'react-native';
|
|
3
|
-
// import theme from '../../../modules/theme';
|
|
4
|
-
// import translations from '../../../translations';
|
|
5
|
-
// import Button from '../../../app-shared/components/button';
|
|
6
|
-
// import {HEADER_HEIGHT} from '../../../app-shared/components/header-v2';
|
|
7
|
-
const styles = StyleSheet.create({
|
|
8
|
-
container: {
|
|
9
|
-
justifyContent: 'space-between',
|
|
10
|
-
flex: 1,
|
|
11
|
-
padding: 20
|
|
12
|
-
// paddingTop: HEADER_HEIGHT + 20
|
|
13
|
-
},
|
|
14
|
-
title: {
|
|
15
|
-
height: 72,
|
|
16
|
-
width: 268,
|
|
17
|
-
// fontSize: theme.fontSize.xxlarge,
|
|
18
|
-
// fontWeight: theme.fontWeight.bold,
|
|
19
|
-
lineHeight: 36
|
|
20
|
-
// color: theme.colors.text.primary,
|
|
21
|
-
// marginBottom: theme.spacing.small
|
|
22
|
-
},
|
|
23
|
-
text: {
|
|
24
|
-
// fontSize: theme.fontSize.large,
|
|
25
|
-
// color: theme.colors.text.primary,
|
|
26
|
-
opacity: 0.7
|
|
27
|
-
// marginBottom: theme.spacing.small
|
|
28
|
-
},
|
|
29
|
-
tip: {
|
|
30
|
-
flexDirection: 'row',
|
|
31
|
-
overflow: 'hidden',
|
|
32
|
-
alignItems: 'center',
|
|
33
|
-
height: 54,
|
|
34
|
-
borderRadius: 8
|
|
35
|
-
// backgroundColor: theme.colors.gray.extra,
|
|
36
|
-
// marginTop: theme.spacing.micro,
|
|
37
|
-
// marginBottom: theme.spacing.micro
|
|
38
|
-
},
|
|
39
|
-
tipText: {
|
|
40
|
-
// fontSize: theme.fontSize.large,
|
|
41
|
-
// color: theme.colors.text.primary
|
|
42
|
-
},
|
|
43
|
-
icon: {
|
|
44
|
-
margin: 10
|
|
45
|
-
},
|
|
46
|
-
button: {
|
|
47
|
-
height: 52,
|
|
48
|
-
borderRadius: 7
|
|
49
|
-
// marginBottom: theme.spacing.large,
|
|
50
|
-
// marginTop: theme.spacing.large
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
const onButtonPress = () => { };
|
|
54
|
-
const Tip = ({ Icon, text }) => (React.createElement(View, { style: styles.tip },
|
|
55
|
-
React.createElement(Text, { style: styles.tipText }, text)));
|
|
56
|
-
const RevisionOnboarding = () => (React.createElement(View, { style: styles.container }));
|
|
57
|
-
export default RevisionOnboarding;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare type _Choice_ = {
|
|
3
|
-
text?: string;
|
|
4
|
-
selected: boolean;
|
|
5
|
-
};
|
|
6
|
-
export declare type _Slide_ = {
|
|
7
|
-
category: string;
|
|
8
|
-
question: string;
|
|
9
|
-
instruction: string;
|
|
10
|
-
type: 'multiSelection' | 'singleSelection' | 'trueOrFalse';
|
|
11
|
-
choices?: _Choice_[];
|
|
12
|
-
};
|
|
13
|
-
interface Props {
|
|
14
|
-
slide: _Slide_;
|
|
15
|
-
num: number;
|
|
16
|
-
}
|
|
17
|
-
declare const RevisionQuizzer: ({ slide }: Props) => JSX.Element;
|
|
18
|
-
export default RevisionQuizzer;
|
|
19
|
-
//# sourceMappingURL=revision-quizzer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"revision-quizzer.d.ts","sourceRoot":"","sources":["../../../src/components/__tmp-backup-vues-mobile/revision-quizzer.tsx"],"names":[],"mappings":";AASA,oBAAY,QAAQ,GAAG;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,oBAAY,OAAO,GAAG;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,gBAAgB,GAAG,iBAAiB,GAAG,aAAa,CAAC;IAC3D,OAAO,CAAC,EAAE,QAAQ,EAAE,CAAC;CACtB,CAAC;AAEF,UAAU,KAAK;IACb,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;CACb;AA2ID,QAAA,MAAM,eAAe,cAAa,KAAK,gBAStC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { View, StyleSheet, Text, useWindowDimensions } from 'react-native';
|
|
3
|
-
const quizzerStyle = StyleSheet.create({
|
|
4
|
-
container: {
|
|
5
|
-
flex: 1,
|
|
6
|
-
padding: 20,
|
|
7
|
-
// paddingTop: HEADER_HEIGHT + 20, @todo with props
|
|
8
|
-
// backgroundColor: theme.colors.white, @todo with props
|
|
9
|
-
justifyContent: 'space-between',
|
|
10
|
-
alignItems: 'center'
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
const SLIDE_HEIGHT = () => useWindowDimensions().height * 0.75;
|
|
14
|
-
const creatSlideStyle = (num) => StyleSheet.create({
|
|
15
|
-
slide: {
|
|
16
|
-
position: 'absolute',
|
|
17
|
-
// backgroundColor: theme.colors.white, @todo with props
|
|
18
|
-
top: useWindowDimensions().height / 2 - SLIDE_HEIGHT() / 2 - num * 4,
|
|
19
|
-
flex: 1,
|
|
20
|
-
height: SLIDE_HEIGHT(),
|
|
21
|
-
width: useWindowDimensions().width - 40 - num * 8,
|
|
22
|
-
justifyContent: 'space-between',
|
|
23
|
-
alignItems: 'center',
|
|
24
|
-
padding: 25,
|
|
25
|
-
shadowColor: '#000',
|
|
26
|
-
shadowOffset: { width: 0, height: -1 },
|
|
27
|
-
shadowOpacity: 0.05,
|
|
28
|
-
shadowRadius: 16,
|
|
29
|
-
elevation: 10 - num * 1,
|
|
30
|
-
borderRadius: 16
|
|
31
|
-
},
|
|
32
|
-
category: {
|
|
33
|
-
fontSize: 12,
|
|
34
|
-
lineHeight: 16,
|
|
35
|
-
// color: theme.colors.text.primary, @todo with props
|
|
36
|
-
// marginBottom: theme.spacing.tiny, @todo with props
|
|
37
|
-
// marginTop: theme.spacing.small, @todo with props
|
|
38
|
-
textAlign: 'center'
|
|
39
|
-
},
|
|
40
|
-
question: {
|
|
41
|
-
fontSize: 16,
|
|
42
|
-
lineHeight: 22,
|
|
43
|
-
fontWeight: '700',
|
|
44
|
-
// color: theme.colors.text.primary, @todo with props
|
|
45
|
-
textAlign: 'center'
|
|
46
|
-
},
|
|
47
|
-
instruction: {
|
|
48
|
-
fontSize: 12,
|
|
49
|
-
lineHeight: 16,
|
|
50
|
-
// color: theme.colors.gray.medium, @todo with props
|
|
51
|
-
// marginBottom: theme.spacing.base, @todo with props
|
|
52
|
-
// marginTop: theme.spacing.small, @todo with props
|
|
53
|
-
textAlign: 'center'
|
|
54
|
-
},
|
|
55
|
-
button: {
|
|
56
|
-
width: 287,
|
|
57
|
-
height: 52,
|
|
58
|
-
borderRadius: 7
|
|
59
|
-
// marginTop: theme.spacing.base @todo with props
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
const createOptionStyle = (selected) => {
|
|
63
|
-
// const brandTheme = React.useContext(BrandThemeContext); @todo with props
|
|
64
|
-
return StyleSheet.create({
|
|
65
|
-
box: {
|
|
66
|
-
width: '100%',
|
|
67
|
-
// https://stackoverflow.com/a/66561995/959219
|
|
68
|
-
shadowColor: '#000',
|
|
69
|
-
shadowOffset: { width: 0, height: -1 },
|
|
70
|
-
shadowOpacity: 0.2,
|
|
71
|
-
shadowRadius: 16,
|
|
72
|
-
elevation: 8,
|
|
73
|
-
// backgroundColor: selected ? brandTheme.colors.primary : theme.colors.white, @todo with props
|
|
74
|
-
padding: 12,
|
|
75
|
-
marginTop: 4,
|
|
76
|
-
marginBottom: 4,
|
|
77
|
-
borderRadius: 8
|
|
78
|
-
},
|
|
79
|
-
text: {
|
|
80
|
-
fontSize: 15,
|
|
81
|
-
fontWeight: 'bold',
|
|
82
|
-
lineHeight: 24,
|
|
83
|
-
// color: selected ? theme.colors.white : theme.colors.text.primary, @todo with props
|
|
84
|
-
textAlign: 'center'
|
|
85
|
-
}
|
|
86
|
-
});
|
|
87
|
-
};
|
|
88
|
-
const choicesStyle = StyleSheet.create({
|
|
89
|
-
container: {
|
|
90
|
-
flex: 1,
|
|
91
|
-
width: '100%',
|
|
92
|
-
justifyContent: 'center',
|
|
93
|
-
alignItems: 'center'
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
const onButtonPress = () => { };
|
|
97
|
-
const Choices = ({ choices }) => (React.createElement(View, { style: choicesStyle.container }, choices.map(({ text, selected = false }) => {
|
|
98
|
-
const optionStyle = createOptionStyle(selected);
|
|
99
|
-
return (React.createElement(View, { style: optionStyle.box },
|
|
100
|
-
React.createElement(Text, { style: optionStyle.text },
|
|
101
|
-
text,
|
|
102
|
-
" ",
|
|
103
|
-
selected)));
|
|
104
|
-
})));
|
|
105
|
-
const Slide = ({ slide, num }) => {
|
|
106
|
-
const slideStyle = creatSlideStyle(num);
|
|
107
|
-
return (React.createElement(View, { style: slideStyle.slide },
|
|
108
|
-
React.createElement(Text, { style: slideStyle.category },
|
|
109
|
-
slide.category,
|
|
110
|
-
" ",
|
|
111
|
-
num),
|
|
112
|
-
React.createElement(Text, { style: slideStyle.question }, slide.question),
|
|
113
|
-
React.createElement(Text, { style: slideStyle.instruction }, slide.instruction),
|
|
114
|
-
React.createElement(Choices, { choices: slide.choices })));
|
|
115
|
-
};
|
|
116
|
-
const RevisionQuizzer = ({ slide }) => {
|
|
117
|
-
const slides = [slide, slide, slide, slide, slide];
|
|
118
|
-
return (React.createElement(View, { style: quizzerStyle.container }, slides.reverse().map((slide, index) => (React.createElement(Slide, { slide: slide, num: slides.length - index })))));
|
|
119
|
-
};
|
|
120
|
-
export default RevisionQuizzer;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"configure-store.d.ts","sourceRoot":"","sources":["../src/configure-store.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,KAAK,IAAI,eAAe,EAAC,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAC,KAAK,IAAI,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAOrD,wBAA8B,cAAc;;;;;;GAgB3C;AAID,oBAAY,UAAU,GAAG;IACvB,UAAU,EAAE,eAAe,CAAC;IAC5B,KAAK,EAAE,UAAU,CAAC;CACnB,CAAC"}
|
package/es/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";AAmBA,QAAA,MAAM,WAAW,gBAAe,KAAK,gBAoBpC,CAAC;AAIF,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,4BAA4B,CAAC,EAAE,OAAO,CAAC;KACxC;CACF;AAED,aAAK,KAAK,GAAG;IAAC,OAAO,EAAE,UAAU,CAAA;CAAC,CAAC;AAEnC,oBAAY,UAAU,GAAG;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,YAAY,CAAC,EAAE,GAAG,CAAC;CACpB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"on-start-app.d.ts","sourceRoot":"","sources":["../../src/middlewares/on-start-app.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,OAAO,CAAC;AACtC,OAAO,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,MAAM,EAAwC,MAAM,YAAY,CAAC;AACzE,OAAO,EAAC,UAAU,EAAC,MAAM,oBAAoB,CAAC;AAG9C,QAAA,MAAM,UAAU,EAAE,UAAU,CAAC,EAAE,EAAE,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,CAmB5D,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"courses.d.ts","sourceRoot":"","sources":["../../src/reducers/courses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAkB,MAAM,YAAY,CAAC;AAI3D,oBAAY,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC;AAC/B,eAAO,MAAM,YAAY,EAAE,KAAU,CAAC;AAItC,QAAA,MAAM,OAAO,yBAAyC,cAAc,UAQnE,CAAC;AAIF,eAAe,OAAO,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/reducers/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,WAAW;;;;8BAIf,CAAC;AAEH,eAAe,WAAW,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../src/reducers/navigation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,UAAU,EAAE,YAAY,EAAC,MAAM,uBAAuB,CAAC;AAIpE,oBAAY,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;AAClC,eAAO,MAAM,YAAY,EAAE,KAAgB,CAAC;AAI5C,QAAA,MAAM,OAAO,yBAAyC,UAAU,GAAG,YAAY,UAa9E,CAAC;AAIF,eAAO,MAAM,kBAAkB,wBAAkE,CAAC;AAIlG,eAAe,OAAO,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"token.d.ts","sourceRoot":"","sources":["../../src/reducers/token.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAc,MAAM,YAAY,CAAC;AAInD,oBAAY,KAAK,GAAG,MAAM,CAAC;AAC3B,eAAO,MAAM,YAAY,EAAE,KAAY,CAAC;AAIxC,QAAA,MAAM,OAAO,UAAW,KAAK,UAAyB,UAAU,KAAG,KAQlE,CAAC;AAIF,eAAO,MAAM,QAAQ,wBAA6B,CAAC;AAInD,eAAe,OAAO,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-demo.d.ts","sourceRoot":"","sources":["../../src/services/fetch-demo.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,KAAK,EAAS,MAAM,mBAAmB,CAAC;AA4BhD,QAAA,MAAM,WAAW,UAAW,KAAK,uDAA4C,QAAQ,MAAM,CAc1F,CAAC;AAIF,oBAAY,MAAM,GAAG;IAAC,KAAK,MAAA;CAAC,CAAC;AAC7B,oBAAY,WAAW,GAAG;IAAC,IAAI,EAAE,MAAM,EAAE,CAAA;CAAC,CAAC;AAI3C,OAAO,EAAC,WAAW,EAAC,CAAC;;AACrB,wBAAuC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-demo.test.d.ts","sourceRoot":"","sources":["../../src/services/fetch-demo.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-responses.d.ts","sourceRoot":"","sources":["../../src/services/fetch-responses.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ,GAAG;IACrB,EAAE,EAAE,OAAO,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IAC7B,IAAI,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;CAC7B,CAAC;AAEF,oBAAY,KAAK,GAAG,CAClB,GAAG,CAAC,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE;IAAC,OAAO,EAAE;QAAC,aAAa,EAAE,MAAM,CAAA;KAAC,CAAA;CAAC,KACzC,OAAO,CAAC,QAAQ,CAAC,CAAC;AAEvB,qBAAa,aAAc,SAAQ,KAAK;IAC/B,UAAU,EAAE,MAAM,CAAC;gBAEP,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,IAAI,SAAK;CAKjE;AAED,eAAO,MAAM,MAAM,aAAoB,QAAQ,KAAG,QAAQ,OAAO,CAWhE,CAAC;AAEF,eAAO,MAAM,MAAM,aAAoB,QAAQ,KAAG,QAAQ,MAAM,CAQ/D,CAAC;AAEF,eAAO,MAAM,MAAM,aAAoB,QAAQ,KAAG,QAAQ,IAAI,CAM7D,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fetch.mocks.d.ts","sourceRoot":"","sources":["../../src/services/fetch.mocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAE3C,eAAO,MAAM,UAAU,WAAY,MAAM,cAAc,MAAM,QAAQ,MAAM,KAAG,QAAQ,QAAQ,CAO1F,CAAC;AAEL,aAAK,aAAa,GAAG,MAAM,OAAO,CAAC,QAAQ,CAAC,CAAC;AAE7C,eAAO,MAAM,cAAc,SAAU,OAAO,KAAG,aACF,CAAC;AAE9C,eAAO,MAAM,+BAA+B,SAAU,OAAO,KAAG,aACF,CAAC;AAE/D,eAAO,MAAM,oBAAoB,SAAU,OAAO,KAAG,aACD,CAAC;AAErD,eAAO,MAAM,cAAc,SAAU,MAAM,KAAG,aAAkD,CAAC;AAEjG,eAAO,MAAM,+BAA+B,SAAU,MAAM,KAAG,aACjB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"courses.d.ts","sourceRoot":"","sources":["../../src/actions/courses.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,0BAA0B,CAAC;AAEvD,oBAAY,cAAc,GAAG;IAC3B,IAAI,EAAE,uBAAuB,CAAC;IAC9B,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,cAAc,WAAY,GAAG,KAAG,cAG3C,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/actions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,WAAW,CAAC;AACzC,OAAO,EAAC,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAC,MAAM,cAAc,CAAC;AAChE,OAAO,EAAC,UAAU,EAAC,MAAM,SAAS,CAAC;AAEnC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AAExB,oBAAY,MAAM,GAAG,QAAQ,GAAG,UAAU,GAAG,YAAY,GAAG,UAAU,GAAG,cAAc,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../src/actions/navigation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,OAAO,CAAC;AACpC,OAAO,EAAC,UAAU,EAAC,MAAM,IAAI,CAAC;AAE9B,eAAO,MAAM,WAAW,6BAA6B,CAAC;AACtD,eAAO,MAAM,aAAa,+BAA+B,CAAC;AAC1D,eAAO,MAAM,SAAS,2BAA2B,CAAC;AAElD,oBAAY,UAAU,GAAG;IACvB,IAAI,EAAE,0BAA0B,CAAC;IACjC,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,oBAAY,YAAY,GAAG;IACzB,IAAI,EAAE,4BAA4B,CAAC;CACpC,CAAC;AAEF,oBAAY,QAAQ,GAAG;IACrB,IAAI,EAAE,wBAAwB,CAAC;IAC/B,OAAO,EAAE,UAAU,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,aAAa,CAAC,UAAU,CAG/C,CAAC;AAEH,eAAO,MAAM,YAAY,EAAE,aAAa,CAAC,YAAY,CAEnD,CAAC;AAEH,eAAO,MAAM,QAAQ,YAAa,UAAU,KAAG,QAG7C,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"token.d.ts","sourceRoot":"","sources":["../../src/actions/token.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,wBAAwB,CAAC;AAEjD,oBAAY,UAAU,GAAG;IACvB,IAAI,EAAE,qBAAqB,CAAC;IAC5B,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,UAAU,UAAW,MAAM,KAAG,UAGzC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"revision-home.d.ts","sourceRoot":"","sources":["../../../src/components/__tmp-backup-vues-mobile/revision-home.tsx"],"names":[],"mappings":";AAWA,UAAU,KAAK;IACb,cAAc,EAAE;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAC,EAAE,CAAC;CACnD;AAoGD,QAAA,MAAM,YAAY,UAAW,KAAK,gBASjC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
2
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
3
|
-
if (ar || !(i in from)) {
|
|
4
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
5
|
-
ar[i] = from[i];
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
9
|
-
};
|
|
10
|
-
import * as React from 'react';
|
|
11
|
-
import { View, FlatList, Pressable, StyleSheet, Text } from 'react-native';
|
|
12
|
-
import { NovaCompositionNavigationArrowRight as ArrowRight } from '@coorpacademy/nova-icons';
|
|
13
|
-
var styles = StyleSheet.create({
|
|
14
|
-
container: {
|
|
15
|
-
flex: 1,
|
|
16
|
-
padding: 20
|
|
17
|
-
// paddingTop: HEADER_HEIGHT + 20,
|
|
18
|
-
// backgroundColor: theme.colors.white
|
|
19
|
-
},
|
|
20
|
-
title: {
|
|
21
|
-
// fontSize: theme.fontSize.xlarge,
|
|
22
|
-
// fontWeight: theme.fontWeight.bold,
|
|
23
|
-
lineHeight: 28
|
|
24
|
-
// color: theme.colors.text.primary,
|
|
25
|
-
// marginBottom: theme.spacing.base,
|
|
26
|
-
// marginTop: theme.spacing.small
|
|
27
|
-
},
|
|
28
|
-
subtitle: {
|
|
29
|
-
// fontSize: theme.fontSize.xlarge,
|
|
30
|
-
// color: theme.colors.text.primary,
|
|
31
|
-
// marginBottom: theme.spacing.tiny
|
|
32
|
-
},
|
|
33
|
-
text: {
|
|
34
|
-
fontSize: 16,
|
|
35
|
-
lineHeight: 22,
|
|
36
|
-
// color: theme.colors.text.primary,
|
|
37
|
-
opacity: 0.7
|
|
38
|
-
// marginBottom: theme.spacing.base
|
|
39
|
-
},
|
|
40
|
-
noSkillsImage: {
|
|
41
|
-
flex: 1,
|
|
42
|
-
alignSelf: 'center',
|
|
43
|
-
width: 320,
|
|
44
|
-
height: 300
|
|
45
|
-
},
|
|
46
|
-
skills: {},
|
|
47
|
-
skill: {
|
|
48
|
-
display: 'flex',
|
|
49
|
-
flexDirection: 'row',
|
|
50
|
-
overflow: 'hidden',
|
|
51
|
-
alignItems: 'center',
|
|
52
|
-
height: 118,
|
|
53
|
-
borderRadius: 8
|
|
54
|
-
// backgroundColor: theme.colors.gray.lighter,
|
|
55
|
-
// marginTop: theme.spacing.micro,
|
|
56
|
-
// marginBottom: theme.spacing.micro,
|
|
57
|
-
// padding: theme.spacing.base
|
|
58
|
-
},
|
|
59
|
-
skillTexts: {
|
|
60
|
-
flex: 1,
|
|
61
|
-
flexDirection: 'column'
|
|
62
|
-
},
|
|
63
|
-
skillTitle: {
|
|
64
|
-
fontSize: 18,
|
|
65
|
-
fontWeight: '600',
|
|
66
|
-
lineHeight: 22
|
|
67
|
-
// color: theme.colors.text.primary,
|
|
68
|
-
// marginBottom: theme.spacing.tiny
|
|
69
|
-
},
|
|
70
|
-
skillInfo: {
|
|
71
|
-
fontSize: 12,
|
|
72
|
-
lineHeight: 16
|
|
73
|
-
// color: theme.colors.gray.medium
|
|
74
|
-
},
|
|
75
|
-
extraSpace: {
|
|
76
|
-
height: 100
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
|
-
var onSelectSkill = function (title) { return function () {
|
|
80
|
-
console.log('pressed on', { title: title });
|
|
81
|
-
}; };
|
|
82
|
-
var ExtraSpace = function () { return React.createElement(View, { style: styles.extraSpace }); };
|
|
83
|
-
var Skill = function (_a) {
|
|
84
|
-
var title = _a.title, info = _a.info;
|
|
85
|
-
return (React.createElement(Pressable, { style: styles.skill, onPress: onSelectSkill(title) },
|
|
86
|
-
React.createElement(View, { style: styles.skillTexts },
|
|
87
|
-
React.createElement(Text, { style: styles.skillTitle }, title),
|
|
88
|
-
React.createElement(Text, { style: styles.skillInfo }, info)),
|
|
89
|
-
React.createElement(ArrowRight, { color: "#ededed", height: 20, width: 20 })));
|
|
90
|
-
};
|
|
91
|
-
var renderSkill = function (_a) {
|
|
92
|
-
var _b = _a.item, title = _b.title, info = _b.info, _c = _b.isExtraSpace, isExtraSpace = _c === void 0 ? false : _c;
|
|
93
|
-
return isExtraSpace ? React.createElement(ExtraSpace, null) : React.createElement(Skill, { title: title, info: info });
|
|
94
|
-
};
|
|
95
|
-
var Skills = function (props) { return (React.createElement(FlatList, { contentContainerStyle: styles.skills, data: props.skills, renderItem: renderSkill })); };
|
|
96
|
-
var NoSkills = function () { return (React.createElement(React.Fragment, null)); };
|
|
97
|
-
var RevisionHome = function (props) { return (React.createElement(View, { style: styles.container }, !props.skillsToRevise || props.skillsToRevise.length === 0 ? (React.createElement(NoSkills, null)) : (React.createElement(Skills, { skills: __spreadArray(__spreadArray([], props.skillsToRevise, true), [{ isExtraSpace: true }], false) })))); };
|
|
98
|
-
export default RevisionHome;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=revision-home.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"revision-home.stories.d.ts","sourceRoot":"","sources":["../../../src/components/__tmp-backup-vues-mobile/revision-home.stories.tsx"],"names":[],"mappings":""}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// import * as React from 'react';
|
|
2
|
-
// import {storiesOf} from '@storybook/react-native';
|
|
3
|
-
// import RevisionHome from './revision-home';
|
|
4
|
-
// const emptySkills: [] = [];
|
|
5
|
-
// const skillsToRevise: {title: string; info: string}[] = [
|
|
6
|
-
// {title: 'Negotiation and powers of persuasion', info: '75 questions to revise'},
|
|
7
|
-
// {title: 'Negotiation and powers of persuasion', info: '75 questions to revise'},
|
|
8
|
-
// {title: 'Negotiation and powers of persuasion', info: '75 questions to revise'},
|
|
9
|
-
// {title: 'Negotiation and powers of persuasion', info: '75 questions to revise'},
|
|
10
|
-
// {title: 'Creativity and innovation', info: '75 questions to revise'}
|
|
11
|
-
// ];
|
|
12
|
-
// storiesOf('RevisionHome', module)
|
|
13
|
-
// .add('No skills', () => <RevisionHome skillsToRevise={emptySkills} />)
|
|
14
|
-
// .add('Few skills', () => <RevisionHome skillsToRevise={skillsToRevise} />);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"revision-onboarding.d.ts","sourceRoot":"","sources":["../../../src/components/__tmp-backup-vues-mobile/revision-onboarding.tsx"],"names":[],"mappings":";AAkEA,QAAA,MAAM,kBAAkB,mBAevB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|