Skip to content

Instantly share code, notes, and snippets.

const h = {
jn: {
...this.m,
c: 3,
m: {
d: 4,
e: 5,
},
},
};
import { useState } from 'react';
import { apiCall } from '../apiTasks/apiUtils.ts';
export default function useAddBookForm() {
const [name, setName] = useState<string>('');
const [author, setAuthor] = useState<string>('');
const [description, setDescription] = useState<string>('');
const [image, setImage] = useState<string>('');
const [qrCode, setQrCode] = useState<string>('');
const [amount, setAmount] = useState<number>(1);
import { useEffect, useRef, useState } from 'react';
import { BrowserMultiFormatReader, IScannerControls } from '@zxing/browser';
const BarcodeScanner = ({ onResult }: { onResult: (text: string) => void }) => {
const videoRef = useRef<HTMLVideoElement | null>(null);
const codeReader = useRef(new BrowserMultiFormatReader());
const [controls, setControls] = useState<IScannerControls | null>(null);
const [devices, setDevices] = useState<MediaDeviceInfo[]>([]);
const [selectedDeviceId, setSelectedDeviceId] = useState<string | null>(null);
const [scanning, setScanning] = useState(false);
<template>
<div>
<h1>{{message.sender}}:{{message.content}}</h1>
</div>
</template>
<script>
export default {
name: "Standart",
<template>
<div class="w-25">
<h1>Register for Business</h1>
<form @submit.prevent="registerBusiness">
<div class="form-group mb-3 d-flex ">
<label for="businessName" class="input-group-text">Business Name:</label>
<input class="form-control" type="text" v-model="newBusiness.businessName" />
</div>
<div class="form-group mb-3 d-flex ">
{
"name": "server",
"version": "1.0.0",
"description": "",
"main": "src/app.ts",
"scripts": {
"start": "node dist/app.js",
"build": "tsc",
"watch": "nodemon src/app.ts",
"test": "jest --watchAll --detectOpenHandles",
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>סרטוני הדרכה</title>
<style>
body {
font-family: Arial, sans-serif;
direction: rtl;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>סרטוני הדרכה</title>
<style>
body {
font-family: Arial, sans-serif;
direction: rtl;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>סרטוני הדרכ</title>
<style>
body {
text-align: center;
font-family: Arial, sans-serif;
background-color: skyblue;