@hedia/recommendation-screen 1.0.7 → 1.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/android/app/src/main/res/values/color.xml +3 -0
- package/android/app/src/main/res/values/styles.xml +3 -0
- package/index.ts +3 -16
- package/ios/HediaRecommendationScreen/Info.plist +80 -57
- package/ios/HediaRecommendationScreen.xcodeproj/project.pbxproj +1085 -807
- package/ios/HediaRecommendationScreen.xcworkspace/contents.xcworkspacedata +10 -0
- package/ios/HediaRecommendationScreen.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/ios/Podfile +106 -104
- package/ios/Podfile.lock +474 -0
- package/jest.mock.js +1 -0
- package/package.json +9 -2
- package/src/RecommendationScreen.tsx +130 -60
- package/src/assets/activity/Cyclist.png +0 -0
- package/src/assets/activity/Other.png +0 -0
- package/src/assets/activity/Runner.png +0 -0
- package/src/assets/activity/Swimmer.png +0 -0
- package/src/assets/activity/Walk.png +0 -0
- package/src/components/Header.tsx +7 -14
- package/src/components/HediaRecommendationModal.tsx +231 -0
- package/src/components/InfoBars.tsx +3 -3
- package/src/components/InvisibleNumberInput.tsx +7 -7
- package/src/components/RecentInsulin.tsx +6 -5
- package/src/components/RecommendedCarbs.tsx +24 -24
- package/src/components/RecommendedInsulin.tsx +18 -15
- package/src/components/Remeasure.tsx +15 -13
- package/src/components/TransferToLogbook.tsx +6 -4
- package/src/components/activity/Activity.tsx +74 -0
- package/src/components/activity/ActivityIcon.tsx +52 -0
- package/src/components/activity/ActivityIntensity.tsx +66 -0
- package/src/components/mood/Emotion.tsx +64 -0
- package/src/components/{MoodIcon.tsx → mood/MoodIcon.tsx} +17 -17
- package/src/locale/da/messages.js +1 -1
- package/src/locale/da/messages.po +191 -49
- package/src/locale/en/messages.js +1 -1
- package/src/locale/en/messages.po +193 -51
- package/src/types/enum.ts +48 -3
- package/src/types/types.ts +21 -1
- package/src/utils/AttentionMessages.ts +59 -0
- package/src/utils/Constants.ts +20 -1
- package/src/utils/RecommendationError.ts +114 -28
- package/src/utils/RecommendationUtils.ts +128 -0
- package/src/utils/Utils.ts +13 -5
- package/src/utils/Validations.ts +210 -0
- package/App.jsx +0 -70
- package/index.d.ts +0 -5
- package/index.js +0 -16
- package/src/RecommendationScreen.d.ts +0 -43
- package/src/RecommendationScreen.jsx +0 -158
- package/src/components/Emotion.d.ts +0 -14
- package/src/components/Emotion.jsx +0 -54
- package/src/components/Emotion.tsx +0 -70
- package/src/components/Header.d.ts +0 -52
- package/src/components/Header.jsx +0 -82
- package/src/components/InfoBars.d.ts +0 -67
- package/src/components/InfoBars.jsx +0 -90
- package/src/components/InvisibleNumberInput.d.ts +0 -24
- package/src/components/InvisibleNumberInput.jsx +0 -64
- package/src/components/MoodIcon.d.ts +0 -14
- package/src/components/MoodIcon.jsx +0 -53
- package/src/components/RecentInsulin.d.ts +0 -9
- package/src/components/RecentInsulin.jsx +0 -90
- package/src/components/RecommendedCarbs.d.ts +0 -30
- package/src/components/RecommendedCarbs.jsx +0 -193
- package/src/components/RecommendedInsulin.d.ts +0 -22
- package/src/components/RecommendedInsulin.jsx +0 -109
- package/src/components/Remeasure.d.ts +0 -13
- package/src/components/Remeasure.jsx +0 -88
- package/src/components/TransferToLogbook.d.ts +0 -14
- package/src/components/TransferToLogbook.jsx +0 -80
- package/src/locale/i18nUtils.d.ts +0 -5
- package/src/locale/i18nUtils.js +0 -22
- package/src/types/enum.d.ts +0 -34
- package/src/types/enum.js +0 -43
- package/src/types/types.d.ts +0 -21
- package/src/types/types.js +0 -2
- package/src/utils/Constants.d.ts +0 -3
- package/src/utils/Constants.js +0 -6
- package/src/utils/RecommendationError.d.ts +0 -11
- package/src/utils/RecommendationError.js +0 -18
- package/src/utils/Utils.d.ts +0 -5
- package/src/utils/Utils.js +0 -24
- /package/src/assets/{happy.png → mood/happy.png} +0 -0
- /package/src/assets/{happy_active.png → mood/happy_active.png} +0 -0
- /package/src/assets/{neutral.png → mood/neutral.png} +0 -0
- /package/src/assets/{neutral_active.png → mood/neutral_active.png} +0 -0
- /package/src/assets/{sad.png → mood/sad.png} +0 -0
- /package/src/assets/{sad_active.png → mood/sad_active.png} +0 -0
- /package/src/assets/{semi_happy.png → mood/semi_happy.png} +0 -0
- /package/src/assets/{semi_happy_active.png → mood/semi_happy_active.png} +0 -0
- /package/src/assets/{semi_sad.png → mood/semi_sad.png} +0 -0
- /package/src/assets/{semi_sad_active.png → mood/semi_sad_active.png} +0 -0
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
|
|
5
5
|
<!-- Customize your theme here. -->
|
|
6
6
|
<item name="android:textColor">#000000</item>
|
|
7
|
+
<item name="colorPrimary">@color/colorPrimary</item>
|
|
8
|
+
<item name="colorPrimaryDark">@color/colorPrimary</item>
|
|
9
|
+
<item name="colorAccent">@color/colorPrimary</item>
|
|
7
10
|
</style>
|
|
8
11
|
|
|
9
12
|
</resources>
|
package/index.ts
CHANGED
|
@@ -1,19 +1,6 @@
|
|
|
1
1
|
import RecommendationScreen from "./src/RecommendationScreen";
|
|
2
|
-
import { RecommendationErrorEnum } from "./src/types/enum";
|
|
3
|
-
import
|
|
4
|
-
ActivityNullError,
|
|
5
|
-
ActivityRangeError,
|
|
6
|
-
CarbohydrateLimitError,
|
|
7
|
-
InsulinLimitError,
|
|
8
|
-
RecommendationError,
|
|
9
|
-
} from "./src/utils/RecommendationError";
|
|
2
|
+
import { ActivityEnum, RecommendationErrorEnum } from "./src/types/enum";
|
|
3
|
+
import * as Errors from "./src/utils/RecommendationError";
|
|
10
4
|
|
|
11
5
|
export default RecommendationScreen;
|
|
12
|
-
export {
|
|
13
|
-
ActivityNullError,
|
|
14
|
-
ActivityRangeError,
|
|
15
|
-
CarbohydrateLimitError,
|
|
16
|
-
InsulinLimitError,
|
|
17
|
-
RecommendationError,
|
|
18
|
-
RecommendationErrorEnum,
|
|
19
|
-
};
|
|
6
|
+
export { ActivityEnum, Errors, RecommendationErrorEnum };
|
|
@@ -1,57 +1,80 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>CFBundleDevelopmentRegion</key>
|
|
6
|
-
<string>en</string>
|
|
7
|
-
<key>CFBundleDisplayName</key>
|
|
8
|
-
<string>HediaRecommendationScreen</string>
|
|
9
|
-
<key>CFBundleExecutable</key>
|
|
10
|
-
<string>$(EXECUTABLE_NAME)</string>
|
|
11
|
-
<key>CFBundleIdentifier</key>
|
|
12
|
-
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
|
13
|
-
<key>CFBundleInfoDictionaryVersion</key>
|
|
14
|
-
<string>6.0</string>
|
|
15
|
-
<key>CFBundleName</key>
|
|
16
|
-
<string>$(PRODUCT_NAME)</string>
|
|
17
|
-
<key>CFBundlePackageType</key>
|
|
18
|
-
<string>APPL</string>
|
|
19
|
-
<key>CFBundleShortVersionString</key>
|
|
20
|
-
<string>1.0</string>
|
|
21
|
-
<key>CFBundleSignature</key>
|
|
22
|
-
<string>????</string>
|
|
23
|
-
<key>CFBundleVersion</key>
|
|
24
|
-
<string>1</string>
|
|
25
|
-
<key>LSRequiresIPhoneOS</key>
|
|
26
|
-
<true/>
|
|
27
|
-
<key>NSAppTransportSecurity</key>
|
|
28
|
-
<dict>
|
|
29
|
-
<key>NSAllowsArbitraryLoads</key>
|
|
30
|
-
<true/>
|
|
31
|
-
<key>NSExceptionDomains</key>
|
|
32
|
-
<dict>
|
|
33
|
-
<key>localhost</key>
|
|
34
|
-
<dict>
|
|
35
|
-
<key>NSExceptionAllowsInsecureHTTPLoads</key>
|
|
36
|
-
<true/>
|
|
37
|
-
</dict>
|
|
38
|
-
</dict>
|
|
39
|
-
</dict>
|
|
40
|
-
<key>NSLocationWhenInUseUsageDescription</key>
|
|
41
|
-
<string
|
|
42
|
-
<key>UILaunchStoryboardName</key>
|
|
43
|
-
<string>LaunchScreen</string>
|
|
44
|
-
<key>UIRequiredDeviceCapabilities</key>
|
|
45
|
-
<array>
|
|
46
|
-
<string>armv7</string>
|
|
47
|
-
</array>
|
|
48
|
-
<key>UISupportedInterfaceOrientations</key>
|
|
49
|
-
<array>
|
|
50
|
-
<string>UIInterfaceOrientationPortrait</string>
|
|
51
|
-
<string>UIInterfaceOrientationLandscapeLeft</string>
|
|
52
|
-
<string>UIInterfaceOrientationLandscapeRight</string>
|
|
53
|
-
</array>
|
|
54
|
-
<key>
|
|
55
|
-
<
|
|
56
|
-
</
|
|
57
|
-
</
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>CFBundleDevelopmentRegion</key>
|
|
6
|
+
<string>en</string>
|
|
7
|
+
<key>CFBundleDisplayName</key>
|
|
8
|
+
<string>HediaRecommendationScreen</string>
|
|
9
|
+
<key>CFBundleExecutable</key>
|
|
10
|
+
<string>$(EXECUTABLE_NAME)</string>
|
|
11
|
+
<key>CFBundleIdentifier</key>
|
|
12
|
+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
|
13
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
|
14
|
+
<string>6.0</string>
|
|
15
|
+
<key>CFBundleName</key>
|
|
16
|
+
<string>$(PRODUCT_NAME)</string>
|
|
17
|
+
<key>CFBundlePackageType</key>
|
|
18
|
+
<string>APPL</string>
|
|
19
|
+
<key>CFBundleShortVersionString</key>
|
|
20
|
+
<string>1.0</string>
|
|
21
|
+
<key>CFBundleSignature</key>
|
|
22
|
+
<string>????</string>
|
|
23
|
+
<key>CFBundleVersion</key>
|
|
24
|
+
<string>1</string>
|
|
25
|
+
<key>LSRequiresIPhoneOS</key>
|
|
26
|
+
<true/>
|
|
27
|
+
<key>NSAppTransportSecurity</key>
|
|
28
|
+
<dict>
|
|
29
|
+
<key>NSAllowsArbitraryLoads</key>
|
|
30
|
+
<true/>
|
|
31
|
+
<key>NSExceptionDomains</key>
|
|
32
|
+
<dict>
|
|
33
|
+
<key>localhost</key>
|
|
34
|
+
<dict>
|
|
35
|
+
<key>NSExceptionAllowsInsecureHTTPLoads</key>
|
|
36
|
+
<true/>
|
|
37
|
+
</dict>
|
|
38
|
+
</dict>
|
|
39
|
+
</dict>
|
|
40
|
+
<key>NSLocationWhenInUseUsageDescription</key>
|
|
41
|
+
<string/>
|
|
42
|
+
<key>UILaunchStoryboardName</key>
|
|
43
|
+
<string>LaunchScreen</string>
|
|
44
|
+
<key>UIRequiredDeviceCapabilities</key>
|
|
45
|
+
<array>
|
|
46
|
+
<string>armv7</string>
|
|
47
|
+
</array>
|
|
48
|
+
<key>UISupportedInterfaceOrientations</key>
|
|
49
|
+
<array>
|
|
50
|
+
<string>UIInterfaceOrientationPortrait</string>
|
|
51
|
+
<string>UIInterfaceOrientationLandscapeLeft</string>
|
|
52
|
+
<string>UIInterfaceOrientationLandscapeRight</string>
|
|
53
|
+
</array>
|
|
54
|
+
<key>UIAppFonts</key>
|
|
55
|
+
<array>
|
|
56
|
+
<string>AntDesign.ttf</string>
|
|
57
|
+
<string>Entypo.ttf</string>
|
|
58
|
+
<string>EvilIcons.ttf</string>
|
|
59
|
+
<string>Feather.ttf</string>
|
|
60
|
+
<string>FontAwesome.ttf</string>
|
|
61
|
+
<string>FontAwesome5_Brands.ttf</string>
|
|
62
|
+
<string>FontAwesome5_Regular.ttf</string>
|
|
63
|
+
<string>FontAwesome5_Solid.ttf</string>
|
|
64
|
+
<string>Fontisto.ttf</string>
|
|
65
|
+
<string>Foundation.ttf</string>
|
|
66
|
+
<string>Ionicons.ttf</string>
|
|
67
|
+
<string>MaterialCommunityIcons.ttf</string>
|
|
68
|
+
<string>MaterialIcons.ttf</string>
|
|
69
|
+
<string>Octicons.ttf</string>
|
|
70
|
+
<string>SimpleLineIcons.ttf</string>
|
|
71
|
+
<string>Zocial.ttf</string>
|
|
72
|
+
</array>
|
|
73
|
+
<key>UIStatusBarStyle</key>
|
|
74
|
+
<string>UIStatusBarStyleLightContent</string>
|
|
75
|
+
<key>UIUserInterfaceStyle</key>
|
|
76
|
+
<string>Light</string>
|
|
77
|
+
<key>UIViewControllerBasedStatusBarAppearance</key>
|
|
78
|
+
<false/>
|
|
79
|
+
</dict>
|
|
80
|
+
</plist>
|