summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/lib/camera/component/scannerBarcode.tsx2
-rw-r--r--app/login/page.tsx3
-rw-r--r--app/page.tsx8
-rw-r--r--public/images/icon-192x192.pngbin0 -> 31481 bytes
-rw-r--r--public/images/icon-256x256.pngbin0 -> 31481 bytes
-rw-r--r--public/images/icon-384x384.pngbin0 -> 31481 bytes
-rw-r--r--public/images/icon-512x512.pngbin0 -> 31481 bytes
-rw-r--r--public/images/icon.jpgbin0 -> 129674 bytes
-rw-r--r--public/manifest.json32
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
new file mode 100644
index 0000000..23336bb
--- /dev/null
+++ b/public/images/icon-192x192.png
Binary files differ
diff --git a/public/images/icon-256x256.png b/public/images/icon-256x256.png
new file mode 100644
index 0000000..23336bb
--- /dev/null
+++ b/public/images/icon-256x256.png
Binary files differ
diff --git a/public/images/icon-384x384.png b/public/images/icon-384x384.png
new file mode 100644
index 0000000..23336bb
--- /dev/null
+++ b/public/images/icon-384x384.png
Binary files differ
diff --git a/public/images/icon-512x512.png b/public/images/icon-512x512.png
new file mode 100644
index 0000000..23336bb
--- /dev/null
+++ b/public/images/icon-512x512.png
Binary files differ
diff --git a/public/images/icon.jpg b/public/images/icon.jpg
new file mode 100644
index 0000000..bd8be4a
--- /dev/null
+++ b/public/images/icon.jpg
Binary files differ
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