Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: message if no internet connection #100

Merged
merged 2 commits into from
Jan 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions android/app/capacitor.build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ dependencies {
implementation project(':capacitor-device')
implementation project(':capacitor-haptics')
implementation project(':capacitor-keyboard')
implementation project(':capacitor-network')
implementation project(':capacitor-preferences')
implementation project(':capacitor-push-notifications')
implementation project(':capacitor-status-bar')
Expand Down
3 changes: 3 additions & 0 deletions android/capacitor.settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ project(':capacitor-haptics').projectDir = new File('../node_modules/.pnpm/@capa
include ':capacitor-keyboard'
project(':capacitor-keyboard').projectDir = new File('../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/keyboard/android')

include ':capacitor-network'
project(':capacitor-network').projectDir = new File('../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/network/android')

include ':capacitor-preferences'
project(':capacitor-preferences').projectDir = new File('../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/preferences/android')

Expand Down
1 change: 1 addition & 0 deletions ios/App/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def capacitor_pods
pod 'CapacitorDevice', :path => '../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/device'
pod 'CapacitorHaptics', :path => '../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/haptics'
pod 'CapacitorKeyboard', :path => '../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/keyboard'
pod 'CapacitorNetwork', :path => '../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/network'
pod 'CapacitorPreferences', :path => '../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/preferences'
pod 'CapacitorPushNotifications', :path => '../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/push-notifications'
pod 'CapacitorStatusBar', :path => '../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/status-bar'
Expand Down
30 changes: 18 additions & 12 deletions ios/App/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ PODS:
- Capacitor
- CapacitorNativeSettings (6.0.1):
- Capacitor
- CapacitorNetwork (6.0.3):
- Capacitor
- CapacitorPreferences (6.0.2):
- Capacitor
- CapacitorPushNotifications (6.0.2):
Expand All @@ -30,6 +32,7 @@ DEPENDENCIES:
- "CapacitorHaptics (from `../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/haptics`)"
- "CapacitorKeyboard (from `../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/keyboard`)"
- "CapacitorNativeSettings (from `../../node_modules/.pnpm/[email protected]_@[email protected]/node_modules/capacitor-native-settings`)"
- "CapacitorNetwork (from `../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/network`)"
- "CapacitorPreferences (from `../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/preferences`)"
- "CapacitorPushNotifications (from `../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/push-notifications`)"
- "CapacitorStatusBar (from `../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/status-bar`)"
Expand All @@ -51,6 +54,8 @@ EXTERNAL SOURCES:
:path: "../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/keyboard"
CapacitorNativeSettings:
:path: "../../node_modules/.pnpm/[email protected]_@[email protected]/node_modules/capacitor-native-settings"
CapacitorNetwork:
:path: "../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/network"
CapacitorPreferences:
:path: "../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/preferences"
CapacitorPushNotifications:
Expand All @@ -59,18 +64,19 @@ EXTERNAL SOURCES:
:path: "../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/status-bar"

SPEC CHECKSUMS:
Capacitor: 679f9673fdf30597493a6362a5d5bf233d46abc2
CapacitorApp: 0bc633b4eae40a1f32cd2834788fad3bc42da6a1
CapacitorCamera: ed022171dbf3853e68eec877b4d78995378af6b7
Capacitor: 69c7f687aabb8d85e543497411e40638b5cc08c0
CapacitorApp: f51c08c64df914fc934239fd1b3fc809d62a02f6
CapacitorCamera: 65a0d1235114a6a5042e664d6da8d213927f7aa0
CapacitorCordova: f48c89f96c319101cd2f0ce8a2b7449b5fb8b3dd
CapacitorDevice: 7097a1deb4224b77fd13a6e60a355d0062a5d772
CapacitorHaptics: fe689ade56ef20ec9b041a753c6da70c5d8ec9a9
CapacitorKeyboard: 2700f9b18687be021e28b5a09b59eb151a46d5e0
CapacitorNativeSettings: 1ce5585ff07b161616cd0a795702637316677af2
CapacitorPreferences: e8284bf740cf8c6d3f25409af3c01df87dfeb5a1
CapacitorPushNotifications: ccd797926c030acad3d5498ef452c735c90a2c89
CapacitorStatusBar: b81d4fb5d4e0064c712018071b3ab4b810b39a63
CapacitorDevice: da1884f895e17992648b27f6c8ee2be72cd0ce2e
CapacitorHaptics: 05d33e20e394b1977dfd2a00a2621e04098164c1
CapacitorKeyboard: 5bf4458dd989b56a60ea15c92cbca5fbfae6e9f9
CapacitorNativeSettings: 7669610adda7b2747fecab7c5e1b6329520d8914
CapacitorNetwork: ef75d8208f0974a2de3f98136bf9684524798f5c
CapacitorPreferences: 997d375b1962f98511e8b3d27a24d90cb8ca87fe
CapacitorPushNotifications: 88f40c5f06dfe54f2c0619173e11ecbff8661a2f
CapacitorStatusBar: 9ed7f06318fd436917072a9bf60fda56d12c8bdb

PODFILE CHECKSUM: bea64466e0fa05b93c74d66b271669e78fc15c93
PODFILE CHECKSUM: c5405413b328fbc4c9d5a703586a5e45862909f0

COCOAPODS: 1.13.0
COCOAPODS: 1.16.2
4 changes: 3 additions & 1 deletion messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,7 @@
"Profile": "Profile",
"Accept": "Accept",
"Terms_and_Conditions": "Terms and Conditions",
"You_must_accept_the_terms_and_conditions_to_continue": "You must accept the terms and conditions to continue"
"You_must_accept_the_terms_and_conditions_to_continue": "You must accept the terms and conditions to continue",
"It_seems_that_the_wallet_is_unable_to_connect_to_the_Internet_please_make_sure_your_internet_connection_is_working_and_retry": "It seems that the wallet is unable to connect to the Internet: please make sure your internet connection is working and retry",
"Close":"Close"
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,14 @@
"@capacitor/haptics": "^6.0.1",
"@capacitor/ios": "^6.1.2",
"@capacitor/keyboard": "^6.0.2",
"@capacitor/network": "^6.0.3",
"@capacitor/preferences": "^6.0.2",
"@capacitor/push-notifications": "^6.0.2",
"@capacitor/status-bar": "^6.0.1",
"@fontsource-variable/gantari": "^5.1.0",
"@fontsource/poppins": "^5.1.0",
"@ionic/core": "^7.8.6",
"@lottiefiles/svelte-lottie-player": "^0.3.1",
"@slangroom/core": "^1.42.0",
"@slangroom/helpers": "^1.42.0",
"@slangroom/http": "^1.42.0",
Expand Down
27 changes: 27 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions src/lib/assets/lottieFingerPrint/FingerPrint.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<script lang="ts">
//@ts-ignore
import { LottiePlayer } from '@lottiefiles/svelte-lottie-player';
import { getLottieAnimation } from '$lib/assets/lottieFingerPrint/getLottieAnimation';
</script>

<LottiePlayer
src={getLottieAnimation()}
autoplay={true}
loop={true}
renderer="svg"
background="transparent"
width={120}
height={120}
controls={false}
controlsLayout={false}
/>
1 change: 1 addition & 0 deletions src/lib/assets/lottieFingerPrint/fingerPrintLottie.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"v":"4.8.0","meta":{"g":"LottieFiles AE 3.5.4","a":"","k":"","d":"","tc":""},"fr":30,"ip":0,"op":86,"w":500,"h":500,"nm":"did","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"border Outlines","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[250,244.467,0],"ix":2},"a":{"a":0,"k":[246.316,265.985,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[1.44,0],[0,0],[0,-2.981],[0,0],[-2.982,0],[0,0],[-1.007,1.039],[0,0],[0,1.405],[0,0],[1.007,1.004],[0,0]],"o":[[0,0],[-2.982,0],[0,0],[0,2.977],[0,0],[1.44,0],[0,0],[0.972,-1.003],[0,0],[0,-1.406],[0,0],[0,0]],"v":[[95.024,-228.485],[-203.422,-228.485],[-208.816,-223.093],[-208.816,223.095],[-203.422,228.485],[95.024,228.485],[98.876,226.876],[207.274,117.004],[208.816,113.222],[208.816,-112.484],[207.274,-116.268],[98.841,-226.844]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.968627510819,0.980392216701,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":15,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[246.316,265.985],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[100]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":52,"s":[0]},{"t":76,"s":[0]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":43,"s":[100]},{"t":80,"s":[0]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"rd","nm":"Round Corners 1","r":{"a":0,"k":10,"ix":1},"ix":3,"mn":"ADBE Vector Filter - RC","hd":false}],"ip":0,"op":1810,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"fingerprint Outlines 3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[226.963,242.811,0],"ix":2},"a":{"a":0,"k":[167.954,179.136,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":0,"s":[90,90,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":43,"s":[100,100,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":52,"s":[100,100,100]},{"t":80,"s":[90,90,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[32.383,-0.101],[-1.709,-53.143],[-8.676,-7.838]],"o":[[-8.774,-51.707],[-41.859,0.133],[1.538,48.689],[0,0]],"v":[[77.927,-14.18],[-1.71,-102.153],[-76.218,-3.634],[-31.478,102.254]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.968627510819,0.980392216701,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":15,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[179.624,209.272],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 3","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[100]},{"t":43,"s":[0]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":52,"s":[100]},{"t":80,"s":[0]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":1810,"st":0,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"fingerprint Outlines 2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[226.963,242.811,0],"ix":2},"a":{"a":0,"k":[167.954,179.136,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":0,"s":[90,90,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":43,"s":[100,100,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":52,"s":[100,100,100]},{"t":80,"s":[90,90,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-27.762,-27.192],[-4.52,0.504]],"o":[[-0.504,4.153],[26.622,26.088],[0,0]],"v":[[-42.226,-46.717],[-18.719,20.629],[46.48,43.063]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.968627510819,0.980392216701,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":15,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[220.11,236.013],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[100]},{"t":43,"s":[0]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":52,"s":[100]},{"t":80,"s":[0]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":1810,"st":0,"bm":0},{"ddd":0,"ind":5,"ty":4,"nm":"fingerprint Outlines","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[226.963,242.811,0],"ix":2},"a":{"a":0,"k":[167.954,179.136,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":0,"s":[90,90,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":43,"s":[100,100,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":52,"s":[100,100,100]},{"t":80,"s":[90,90,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[6.128,52.339],[-16.846,13.833],[-10.922,-15.538],[-1.909,-11.522],[-20.596,18.321],[9.344,27.793],[33.319,10.817],[-39.951,-108.733]],"o":[[-25.65,-14.168],[-2.443,-21.436],[16.108,-12.123],[7.532,10.179],[2.142,26.688],[21.533,-21.532],[-12.591,-34.159],[-114.565,-34.726],[0,0]],"v":[[59.087,141.636],[-28.617,37.356],[-8.86,-23.929],[39.366,-10.432],[50.583,24.328],[108.921,50.446],[121.008,-36.953],[46.196,-106.91],[-90.503,86.046]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.968627510819,0.980392216701,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":15,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[167.954,179.136],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[100]},{"t":43,"s":[0]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":52,"s":[100]},{"t":80,"s":[0]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":1810,"st":0,"bm":0}],"markers":[]}
Loading
Loading