Safet Purkovic před 4 roky
rodič
revize
eddb9d0573

+ 1
- 0
src/containers/TheContent.js Zobrazit soubor

@@ -30,6 +30,7 @@ const TheContent = () => {
name={route.name}
render={props => (
<CFade>
{/* <CFade code="br-root"> */}
<route.component {...props} />
</CFade>
)} />

+ 2
- 1
src/views/demoComponent/DemoComponent1.js Zobrazit soubor

@@ -23,9 +23,10 @@ const DemoComponent1 = () => {
const apiCall = () => {
const url = encodeURIComponent("http://localhost:3000/#/DemoComponent2");
const dateNow = new Date();
fetch('https://localhost:7285/api/PDFGenerator/' + url)
.then(async res => ({
filename: "donwload.pdf",
filename: "John Doe - " + dateNow +" - report.pdf",
blob: await res.blob()
}))
.then(resObj => {

+ 7
- 3
src/views/demoComponent/DemoComponent11.js Zobrazit soubor

@@ -20,16 +20,20 @@ const WidgetsDropdown = lazy(() => import('../widgets/WidgetsDropdown.js'))


const DemoComponent11 = () => {

const exec = () =>
{
PDFEngine();
window.print();
}
return (
<>
<button className="float-right btn btn-primary" onClick={PDFEngine}>Execute</button>
<button className="float-right btn btn-primary" onClick={exec}>Execute</button>
<br />
11
<br />
<div>
<br />
<table className="table table-hover table-outline mb-0 d-sm-table" code="br-removecolumn-3">
<table className="table table-hover table-outline mb-0 d-sm-table" code="br-shownumberrows-2">
<thead className="thead-light">
<tr>
<th className="text-center"><CIcon name="cil-people" /></th>

+ 6
- 2
src/views/demoComponent/DemoComponent12.js Zobrazit soubor

@@ -20,10 +20,14 @@ const WidgetsDropdown = lazy(() => import('../widgets/WidgetsDropdown.js'))


const DemoComponent12 = () => {

const exec = () =>
{
PDFEngine();
window.print();
}
return (
<>
<button className="float-right btn btn-primary" onClick={PDFEngine}>Execute</button>
<button className="float-right btn btn-primary" onClick={exec}>Execute</button>
<br />
12
<br />

+ 2
- 1
src/views/demoComponent/DemoComponent2.js Zobrazit soubor

@@ -23,9 +23,10 @@ const DemoComponent2 = () => {
const apiCall = () => {
const url = encodeURIComponent("http://localhost:3000/#/DemoComponent2");
const dateNow = new Date();
fetch('https://localhost:7285/api/PDFGenerator/' + url)
.then(async res => ({
filename: "donwload.pdf",
filename: "John Doe - " + dateNow +" - report.pdf",
blob: await res.blob()
}))
.then(resObj => {

+ 6
- 1
src/views/demoComponent/DemoComponent3.js Zobrazit soubor

@@ -20,9 +20,14 @@ const WidgetsDropdown = lazy(() => import('../widgets/WidgetsDropdown.js'))


const DemoComponent3 = () => {
const exec = () =>
{
PDFEngine();
window.print();
}
return (
<>
<button className="float-right btn btn-primary" onClick={PDFEngine}>Execute</button>
<button className="float-right btn btn-primary" onClick={exec}>Execute</button>
<br />
3
<br />

+ 6
- 2
src/views/demoComponent/DemoComponent4.js Zobrazit soubor

@@ -20,10 +20,14 @@ const WidgetsDropdown = lazy(() => import('../widgets/WidgetsDropdown.js'))


const DemoComponent4 = () => {

const exec = () =>
{
PDFEngine();
window.print();
}
return (
<>
<button className="float-right btn btn-primary" onClick={PDFEngine}>Execute</button>
<button className="float-right btn btn-primary" onClick={exec}>Execute</button>
<br />
4
<br />

+ 6
- 2
src/views/demoComponent/DemoComponent5.js Zobrazit soubor

@@ -20,10 +20,14 @@ const WidgetsDropdown = lazy(() => import('../widgets/WidgetsDropdown.js'))


const DemoComponent5 = () => {

const exec = () =>
{
PDFEngine();
window.print();
}
return (
<>
<button className="float-right btn btn-primary" onClick={PDFEngine}>Execute</button>
<button className="float-right btn btn-primary" onClick={exec}>Execute</button>
<br />
5
<br />

+ 6
- 2
src/views/demoComponent/DemoComponent6.js Zobrazit soubor

@@ -20,10 +20,14 @@ const WidgetsDropdown = lazy(() => import('../widgets/WidgetsDropdown.js'))


const DemoComponent6 = () => {

const exec = () =>
{
PDFEngine();
window.print();
}
return (
<>
<button className="float-right btn btn-primary" onClick={PDFEngine}>Execute</button>
<button className="float-right btn btn-primary" onClick={exec}>Execute</button>
<br/>
6
<br/>

Načítá se…
Zrušit
Uložit