Przeglądaj źródła

Refactoring code

master
Safet Purkovic 4 lat temu
rodzic
commit
8f737b5102

+ 2
- 1
src/views/demoComponent/DemoComponent1.js Wyświetl plik

@@ -22,7 +22,8 @@ const WidgetsDropdown = lazy(() => import('../widgets/WidgetsDropdown.js'))
const DemoComponent1 = () => {
const exec = () => {
const pdf = new PDFEngine();
window.print();
pdf.execute();
// window.print();
}
// const apiCall = () => {


+ 1
- 0
src/views/demoComponent/DemoComponent11.js Wyświetl plik

@@ -36,6 +36,7 @@ const DemoComponent11 = () => {

const exec = () => {
const pdf = new PDFEngine();
pdf.execute();
// window.print();
}
return (

+ 12
- 10
src/views/demoComponent/DemoComponent14.js Wyświetl plik

@@ -31,7 +31,7 @@ const DemoComponent14 = () => {

pdf.execute();
window.print();
// window.print();
}
// const apiCall = () => {
@@ -71,20 +71,22 @@ const DemoComponent14 = () => {
// }
return (
<>
<div code="br-hide" style={{ display: 'flex', flexDirection: 'row', border: '1px solid #dedede', width: '50%', height: '200px', backgroundColor: 'white', padding: '5px', borderRadius: '10px' }}>
<div style={{ backgroundColor: 'white', minHeight: '100%', width: '50%', padding: '2px', margin: '5px' }}>
<div style={{ backgroundColor: 'white', width: '50%', padding: '2px', marginBottom: '20px' }}>
<h4 id="nesto">PDFEngine</h4>
<div code="br-hide">
<div style={{ display: 'flex', flexDirection: 'row', border: '1px solid #dedede', width: '50%', height: '200px', backgroundColor: 'white', padding: '5px', borderRadius: '10px' }}>
<div style={{ backgroundColor: 'white', minHeight: '100%', width: '50%', padding: '2px', margin: '5px' }}>
<div style={{ backgroundColor: 'white', width: '50%', padding: '2px', marginBottom: '20px' }}>
<h4>PDFEngine</h4>
</div>
<div style={{ display: 'flex', flexDirection: 'row', marginLeft: '10px' }}>
<button style={{ marginLeft: '5px' }} className=" btn btn-primary" onClick={exec}>Print view</button>
</div>
</div>
<div style={{ display: 'flex', flexDirection: 'row', marginLeft: '10px' }}>
<button style={{ marginLeft: '5px' }} className=" btn btn-primary" onClick={exec}>Print view</button>
<div style={{ backgroundColor: 'white', minHeight: '100%', width: '50%', padding: '5px' }}>
</div>
</div>
<div style={{ backgroundColor: 'white', minHeight: '100%', width: '50%', padding: '5px' }}>
</div>
</div>
<br />
1
<br />
<br />
<WidgetsDropdown />

+ 0
- 1
src/views/demoComponent/DemoComponent2.js Wyświetl plik

@@ -21,7 +21,6 @@ const WidgetsDropdown = lazy(() => import('../widgets/WidgetsDropdown.js'))

const DemoComponent2 = () => {
const exec = () => {
console.log(PDFEngine());
const url = encodeURIComponent("http://localhost:3000/#/DemoComponent2");
const dateNow = new Date();
fetch('https://localhost:7285/api/PDFGenerator/' + url)

+ 1
- 0
src/views/demoComponent/DemoComponent3.js Wyświetl plik

@@ -23,6 +23,7 @@ const DemoComponent3 = () => {
const exec = () =>
{
const pdf = new PDFEngine();
pdf.execute();
// window.print();
}
return (

+ 1
- 0
src/views/demoComponent/DemoComponent4.js Wyświetl plik

@@ -23,6 +23,7 @@ const DemoComponent4 = () => {
const exec = () =>
{
const pdf = new PDFEngine();
pdf.execute();
// window.print();
}
return (

+ 1
- 0
src/views/demoComponent/DemoComponent5.js Wyświetl plik

@@ -36,6 +36,7 @@ const DemoComponent5 = () => {

const exec = () => {
const pdf = new PDFEngine();
pdf.execute();
// window.print();
}
return (

+ 1
- 0
src/views/demoComponent/DemoComponent6.js Wyświetl plik

@@ -23,6 +23,7 @@ const DemoComponent6 = () => {
const exec = () =>
{
const pdf = new PDFEngine();
pdf.execute();
// window.print();
}
return (

+ 1
- 0
src/views/demoComponent/DemoComponent8.js Wyświetl plik

@@ -24,6 +24,7 @@ const DemoComponent8 = () => {
const exec = () =>
{
const pdf = new PDFEngine();
pdf.execute();
// window.print();
}
return (

Ładowanie…
Anuluj
Zapisz