This file contains 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
<template> | |
<div> | |
<h1 class='scanBarCode-component-title'>ScanBarCode</h1> | |
<div class="row"> | |
<div class="col-md-6 offset-md-3"> | |
<input type="text" class="form-control" placeholder="Search" v-model="searchOrderNo" /> | |
</div> | |
</div> |
This file contains 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 { jsPDF } from 'jspdf'; | |
import JsBarcode from 'jsbarcode'; | |
// convert orderNo to base64Barcode | |
// convert base64Barcode to PNGImage | |
// Use PNGImage in pdf downloaded file | |
const generateAndDownloadBarcodeInPDF = (orderNo) => { | |
let makeBase64Image = convertTextToBase64Barcode(orderNo); |
This file contains 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
<template> | |
<div> | |
<h1 class='orders-component-title'>Orders</h1> | |
<div class="row"> | |
<div class="col-md-8 offset-md-2"> | |
<table class="table table-hover"> | |
<thead class="table-secondary"> | |
<th scope="col">S No.</th> | |
<th scope="col">Name</th> |
This file contains 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 React from 'react'; | |
import './App.css'; | |
import { useTranslation } from 'react-i18next'; | |
function App() { | |
const { t, i18n } = useTranslation(); | |
const handleClick = (lang) => { | |
i18n.changeLanguage(lang); | |
}; |
This file contains 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
{ | |
"Thanks": { | |
"1": "شکریہ" | |
}, | |
"Why": { | |
"1": "اس ویڈیو کو دیکھنے کے لئے" | |
}, | |
"Welcome to React js": "رد عمل جے ایس میں خوش آمدید" | |
} |
This file contains 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
{ | |
"Thanks": { | |
"1": "Thank you" | |
}, | |
"Why": { | |
"1": "For watching this video" | |
}, | |
"Welcome to React js": "Welcome to React js" | |
} |
This file contains 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 React, { Suspense } from 'react'; | |
import ReactDOM from 'react-dom'; | |
import './index.css'; | |
import App from './App'; | |
import * as serviceWorker from './serviceWorker'; | |
import './i18next'; | |
ReactDOM.render( |
This file contains 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 i18n from 'i18next'; | |
import { initReactI18next } from 'react-i18next'; | |
import Backend from 'i18next-http-backend'; | |
import LanguageDetector from 'i18next-browser-languagedetector'; | |
// don't want to use this? | |
// have a look at the Quick start guide | |
// for passing in lng and translations on init | |
const languages = ['en', 'ur']; |