diff options
| -rw-r--r-- | app/lib/camera/component/scannerBarcode.tsx | 2 | ||||
| -rw-r--r-- | app/login/page.tsx | 3 | ||||
| -rw-r--r-- | app/page.tsx | 8 | ||||
| -rw-r--r-- | public/images/icon-192x192.png | bin | 0 -> 31481 bytes | |||
| -rw-r--r-- | public/images/icon-256x256.png | bin | 0 -> 31481 bytes | |||
| -rw-r--r-- | public/images/icon-384x384.png | bin | 0 -> 31481 bytes | |||
| -rw-r--r-- | public/images/icon-512x512.png | bin | 0 -> 31481 bytes | |||
| -rw-r--r-- | public/images/icon.jpg | bin | 0 -> 129674 bytes | |||
| -rw-r--r-- | public/manifest.json | 32 |
9 files changed, 40 insertions, 5 deletions
diff --git a/app/lib/camera/component/scannerBarcode.tsx b/app/lib/camera/component/scannerBarcode.tsx index 3079e33..6319a84 100644 --- a/app/lib/camera/component/scannerBarcode.tsx +++ b/app/lib/camera/component/scannerBarcode.tsx @@ -21,7 +21,7 @@ const BarcodeScanner: React.FC = () => { color="error" className="mb-2" > - {isCameraActive ? "Cancel" : "Scane Code"} + {isCameraActive ? "Cancel" : "Scan Code"} </Button> {isCameraActive && ( diff --git a/app/login/page.tsx b/app/login/page.tsx index 8df5b2c..5ad699c 100644 --- a/app/login/page.tsx +++ b/app/login/page.tsx @@ -37,7 +37,6 @@ const Login = () => { const email = data.get("email"); const password = data.get("password"); - console.log('ini user', email, password) try { odooApi("POST", "/api/v1/user/login", { email , @@ -57,9 +56,9 @@ const Login = () => { alert("Akun anda belum aktif"); break; } - console.log('ini akhir',res); }); } catch (error) { + alert("Gagal login, silahkan coba lagi"); console.log(error); } }; diff --git a/app/page.tsx b/app/page.tsx index ccfb7f7..f12f746 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -50,7 +50,6 @@ export default function Home() { try { const newSjImage = imageSj.replace(/^.*?,/, ""); const newPackageImage = imagePackage.replace(/^.*?,/, ""); - // const method = 'PUT'; const data = { sj_document: newSjImage, // Kirim base64 lengkap dengan prefix @@ -62,13 +61,18 @@ export default function Home() { `/api/v1/stock-picking/${barcode}/documentation`, data ); - console.log(response); if (response.status.code == 200) { alert("Berhasil Submit Data"); setBarcode(""); setImageSj(""); setImagePackage(""); setIsLoading(false); + }else if(response.status.code == 404){ + alert("Gagal Submit Data, Picking Code Tidak Ditemukan " ); + setIsLoading(false); + }else{ + alert("Gagal Submit Data, Silahkan Coba Lagi" ); + setIsLoading(false); } return response.data; } catch (error: unknown) { diff --git a/public/images/icon-192x192.png b/public/images/icon-192x192.png Binary files differnew file mode 100644 index 0000000..23336bb --- /dev/null +++ b/public/images/icon-192x192.png diff --git a/public/images/icon-256x256.png b/public/images/icon-256x256.png Binary files differnew file mode 100644 index 0000000..23336bb --- /dev/null +++ b/public/images/icon-256x256.png diff --git a/public/images/icon-384x384.png b/public/images/icon-384x384.png Binary files differnew file mode 100644 index 0000000..23336bb --- /dev/null +++ b/public/images/icon-384x384.png diff --git a/public/images/icon-512x512.png b/public/images/icon-512x512.png Binary files differnew file mode 100644 index 0000000..23336bb --- /dev/null +++ b/public/images/icon-512x512.png diff --git a/public/images/icon.jpg b/public/images/icon.jpg Binary files differnew file mode 100644 index 0000000..bd8be4a --- /dev/null +++ b/public/images/icon.jpg diff --git a/public/manifest.json b/public/manifest.json new file mode 100644 index 0000000..948e43b --- /dev/null +++ b/public/manifest.json @@ -0,0 +1,32 @@ +{ + + "start_url": "/", + "display": "standalone", + "background_color": "#ffffff", + "theme_color": "#000000", + "name": "Indoteknik Delivery", + "short_name": "Scanner", + "icons": [ + { + "src": "/icon-192x192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "/icon-256x256.png", + "sizes": "256x256", + "type": "image/png" + }, + { + "src": "/icon-384x384.png", + "sizes": "384x384", + "type": "image/png" + }, + { + "src": "/icon-512x512.png", + "sizes": "512x512", + "type": "image/png" + } + ] + } +
\ No newline at end of file |
