import { Hono } from "hono";
import PDFDocument from "pdfkit";
const app = new Hono();
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useEffect, useState } from "react"; | |
import db from "../firebase"; | |
import styled from "styled-components"; | |
import Truck from "../components/Truck/Truck"; | |
import SideBar from "../components/SideBar/SideBar"; | |
const Inventory = () => { | |
// setting inventory, filters, and default sortBy | |
const [loading, setLoading] = useState(true); | |
const [inventory, setInventory] = useState([]); // array of trucks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"status": "ok", | |
"result": [ | |
{ | |
"title": "MASJID AL-IMAN DESA PUTRA", | |
"address": "Sepang", | |
"binatangKorban": "2 / 5", | |
"bahagianKorban": "15 / 30", | |
"negeri": "Selangor", | |
"image": "20.jpg" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (isset($_POST['token'])) { | |
echo $_POST['token']; | |
exit; | |
} | |
?> | |
<!DOCTYPE html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// katakan ini original state | |
this.state = { | |
products: [ | |
{ | |
id: 1234, | |
name: "chicken", | |
amount: 100 | |
}, | |
{ | |
id: 1235, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>Salam Dari Timur</h1> | |
<p>Ini adalah contoh ayat dalam perenggan.</p> | |
<button>Hantar</button> |