|
|
|
@@ -1,4 +1,4 @@ |
|
|
|
import React, { lazy, useState } from 'react'; |
|
|
|
import React, { lazy, useEffect, useRef, useState } from 'react'; |
|
|
|
import { |
|
|
|
CBadge, |
|
|
|
CButton, |
|
|
|
@@ -13,23 +13,27 @@ import { |
|
|
|
CCallout |
|
|
|
} from '@coreui/react'; |
|
|
|
import CIcon from '@coreui/icons-react'; |
|
|
|
//import PDFEngine from 'PDFEngine'; |
|
|
|
// import PDFEngine from 'PDFEngine'; |
|
|
|
|
|
|
|
import MainChartExample from '../charts/MainChartExample.js'; |
|
|
|
const WidgetsDropdown = lazy(() => import('../widgets/WidgetsDropdown.js')) |
|
|
|
|
|
|
|
|
|
|
|
const DemoComponent12 = () => { |
|
|
|
const [checkValue, setCheckValue] = useState(false); |
|
|
|
const [codeValue, setCodeValue] = useState("null"); |
|
|
|
const values = { portrait: "null", landscape: "br-landscapetable" } |
|
|
|
|
|
|
|
const handleChange = (e) => { |
|
|
|
setCheckValue(e.target.value); |
|
|
|
setCodeValue(e.target.value); |
|
|
|
} |
|
|
|
|
|
|
|
const codeRef = useRef(); |
|
|
|
|
|
|
|
const exec = () => { |
|
|
|
setCodeValue(codeRef.current.value); |
|
|
|
const query = []; |
|
|
|
|
|
|
|
query.push(`Landscape=${checkValue}`); |
|
|
|
query.push(`Landscape=${(codeRef.current.value == 'null')?false:true}`); |
|
|
|
// query.push("PaperFormatType=A3"); |
|
|
|
const queryString = (query) ? `?${query.join('&')}` : ''; |
|
|
|
const url = ('https://localhost:7285/api/PDFGenerator/isolate/http%3A%2F%2Flocalhost%3A3000%2F%23%2FDemoComponent12' + queryString); |
|
|
|
@@ -74,26 +78,26 @@ const DemoComponent12 = () => { |
|
|
|
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', minHeight: '100%', width: '100%', 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' }}> |
|
|
|
<select value={checkValue} onChange={handleChange} style={{ border: '.5px solid lightGray', outline: 'none', backgroundColor: '#f2f2f2', borderRadius: '5px', width: '150px' }}> |
|
|
|
<option value="false">Portrait</option> |
|
|
|
<option value="true">Landscape</option> |
|
|
|
|
|
|
|
<select id="sel" ref={codeRef} style={{ border: '.5px solid lightGray', outline: 'none', backgroundColor: '#f2f2f2', borderRadius: '5px', width: '150px' }}> |
|
|
|
<option value={values.portrait}>Portrait</option> |
|
|
|
<option value={values.landscape}>Landscape</option> |
|
|
|
</select> |
|
|
|
<button style={{ marginLeft: '5px' }} className=" btn btn-primary" onClick={exec}>Execute</button> |
|
|
|
<button style={{ marginLeft: '5px' }} className=" btn btn-primary dugme" onClick={exec}>Execute</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div style={{ backgroundColor: 'white', minHeight: '100%', width: '50%', padding: '5px' }}> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<br /> |
|
|
|
<br /> |
|
|
|
<WidgetsDropdown /> |
|
|
|
|
|
|
|
<div className="demo"> |
|
|
|
<CCard code='br-landscapetable' isolate="true"> |
|
|
|
<CCard code={codeValue} isolate="true"> |
|
|
|
<CCardBody> |
|
|
|
<CRow> |
|
|
|
<CCol sm="5"> |
|
|
|
@@ -355,231 +359,231 @@ const DemoComponent12 = () => { |
|
|
|
</CRow> |
|
|
|
<div> |
|
|
|
<br /> |
|
|
|
<table className="table table-hover table-outline mb-0 d-sm-table"> |
|
|
|
<thead className="thead-light"> |
|
|
|
<tr> |
|
|
|
<th className="text-center"><CIcon name="cil-people" /></th> |
|
|
|
<th>User</th> |
|
|
|
<th className="text-center">Country</th> |
|
|
|
<th>Usage</th> |
|
|
|
<th className="text-center">Payment Method</th> |
|
|
|
<th>Activity</th> |
|
|
|
</tr> |
|
|
|
</thead> |
|
|
|
<tbody> |
|
|
|
<tr> |
|
|
|
<td className="text-center"> |
|
|
|
<div className="c-avatar"> |
|
|
|
<img src={'avatars/1.jpg'} className="c-avatar-img" alt="[email protected]" /> |
|
|
|
<span className="c-avatar-status bg-success"></span> |
|
|
|
</div> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<div>Yiorgos Avraamu</div> |
|
|
|
<div className="small text-muted"> |
|
|
|
<span>New</span> | Registered: Jan 1, 2015 |
|
|
|
</div> |
|
|
|
</td> |
|
|
|
<td className="text-center"> |
|
|
|
<CIcon height={25} name="cif-us" title="us" id="us" /> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<div className="clearfix"> |
|
|
|
<div className="float-left"> |
|
|
|
<strong>50%</strong> |
|
|
|
<table className="table table-hover table-outline mb-0 d-sm-table"> |
|
|
|
<thead className="thead-light"> |
|
|
|
<tr> |
|
|
|
<th className="text-center"><CIcon name="cil-people" /></th> |
|
|
|
<th>User</th> |
|
|
|
<th className="text-center">Country</th> |
|
|
|
<th>Usage</th> |
|
|
|
<th className="text-center">Payment Method</th> |
|
|
|
<th>Activity</th> |
|
|
|
</tr> |
|
|
|
</thead> |
|
|
|
<tbody> |
|
|
|
<tr> |
|
|
|
<td className="text-center"> |
|
|
|
<div className="c-avatar"> |
|
|
|
<img src={'avatars/1.jpg'} className="c-avatar-img" alt="[email protected]" /> |
|
|
|
<span className="c-avatar-status bg-success"></span> |
|
|
|
</div> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<div>Yiorgos Avraamu</div> |
|
|
|
<div className="small text-muted"> |
|
|
|
<span>New</span> | Registered: Jan 1, 2015 |
|
|
|
</div> |
|
|
|
</td> |
|
|
|
<td className="text-center"> |
|
|
|
<CIcon height={25} name="cif-us" title="us" id="us" /> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<div className="clearfix"> |
|
|
|
<div className="float-left"> |
|
|
|
<strong>50%</strong> |
|
|
|
</div> |
|
|
|
<div className="float-right"> |
|
|
|
<small className="text-muted">Jun 11, 2015 - Jul 10, 2015</small> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className="float-right"> |
|
|
|
<small className="text-muted">Jun 11, 2015 - Jul 10, 2015</small> |
|
|
|
<CProgress className="progress-xs" color="success" value="50" /> |
|
|
|
</td> |
|
|
|
<td className="text-center"> |
|
|
|
<CIcon height={25} name="cib-cc-mastercard" /> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<div className="small text-muted">Last login</div> |
|
|
|
<strong>10 sec ago</strong> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td className="text-center"> |
|
|
|
<div className="c-avatar"> |
|
|
|
<img src={'avatars/2.jpg'} className="c-avatar-img" alt="[email protected]" /> |
|
|
|
<span className="c-avatar-status bg-danger"></span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<CProgress className="progress-xs" color="success" value="50" /> |
|
|
|
</td> |
|
|
|
<td className="text-center"> |
|
|
|
<CIcon height={25} name="cib-cc-mastercard" /> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<div className="small text-muted">Last login</div> |
|
|
|
<strong>10 sec ago</strong> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td className="text-center"> |
|
|
|
<div className="c-avatar"> |
|
|
|
<img src={'avatars/2.jpg'} className="c-avatar-img" alt="[email protected]" /> |
|
|
|
<span className="c-avatar-status bg-danger"></span> |
|
|
|
</div> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<div>Avram Tarasios</div> |
|
|
|
<div className="small text-muted"> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<div>Avram Tarasios</div> |
|
|
|
<div className="small text-muted"> |
|
|
|
|
|
|
|
<span>Recurring</span> | Registered: Jan 1, 2015 |
|
|
|
</div> |
|
|
|
</td> |
|
|
|
<td className="text-center"> |
|
|
|
<CIcon height={25} name="cif-br" title="br" id="br" /> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<div className="clearfix"> |
|
|
|
<div className="float-left"> |
|
|
|
<strong>10%</strong> |
|
|
|
<span>Recurring</span> | Registered: Jan 1, 2015 |
|
|
|
</div> |
|
|
|
</td> |
|
|
|
<td className="text-center"> |
|
|
|
<CIcon height={25} name="cif-br" title="br" id="br" /> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<div className="clearfix"> |
|
|
|
<div className="float-left"> |
|
|
|
<strong>10%</strong> |
|
|
|
</div> |
|
|
|
<div className="float-right"> |
|
|
|
<small className="text-muted">Jun 11, 2015 - Jul 10, 2015</small> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<CProgress className="progress-xs" color="info" value="10" /> |
|
|
|
</td> |
|
|
|
<td className="text-center"> |
|
|
|
<CIcon height={25} name="cib-cc-visa" /> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<div className="small text-muted">Last login</div> |
|
|
|
<strong>5 minutes ago</strong> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td className="text-center"> |
|
|
|
<div className="c-avatar"> |
|
|
|
<img src={'avatars/3.jpg'} className="c-avatar-img" alt="[email protected]" /> |
|
|
|
<span className="c-avatar-status bg-warning"></span> |
|
|
|
</div> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<div>Quintin Ed</div> |
|
|
|
<div className="small text-muted"> |
|
|
|
<span>New</span> | Registered: Jan 1, 2015 |
|
|
|
</div> |
|
|
|
</td> |
|
|
|
<td className="text-center"> |
|
|
|
<CIcon height={25} name="cif-in" title="in" id="in" /> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<div className="clearfix"> |
|
|
|
<div className="float-left"> |
|
|
|
<strong>74%</strong> |
|
|
|
</div> |
|
|
|
<div className="float-right"> |
|
|
|
<small className="text-muted">Jun 11, 2015 - Jul 10, 2015</small> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className="float-right"> |
|
|
|
<small className="text-muted">Jun 11, 2015 - Jul 10, 2015</small> |
|
|
|
<CProgress className="progress-xs" color="warning" value="74" /> |
|
|
|
</td> |
|
|
|
<td className="text-center"> |
|
|
|
<CIcon height={25} name="cib-stripe" /> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<div className="small text-muted">Last login</div> |
|
|
|
<strong>1 hour ago</strong> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td className="text-center"> |
|
|
|
<div className="c-avatar"> |
|
|
|
<img src={'avatars/4.jpg'} className="c-avatar-img" alt="[email protected]" /> |
|
|
|
<span className="c-avatar-status bg-secondary"></span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<CProgress className="progress-xs" color="info" value="10" /> |
|
|
|
</td> |
|
|
|
<td className="text-center"> |
|
|
|
<CIcon height={25} name="cib-cc-visa" /> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<div className="small text-muted">Last login</div> |
|
|
|
<strong>5 minutes ago</strong> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td className="text-center"> |
|
|
|
<div className="c-avatar"> |
|
|
|
<img src={'avatars/3.jpg'} className="c-avatar-img" alt="[email protected]" /> |
|
|
|
<span className="c-avatar-status bg-warning"></span> |
|
|
|
</div> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<div>Quintin Ed</div> |
|
|
|
<div className="small text-muted"> |
|
|
|
<span>New</span> | Registered: Jan 1, 2015 |
|
|
|
</div> |
|
|
|
</td> |
|
|
|
<td className="text-center"> |
|
|
|
<CIcon height={25} name="cif-in" title="in" id="in" /> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<div className="clearfix"> |
|
|
|
<div className="float-left"> |
|
|
|
<strong>74%</strong> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<div>Enéas Kwadwo</div> |
|
|
|
<div className="small text-muted"> |
|
|
|
<span>New</span> | Registered: Jan 1, 2015 |
|
|
|
</div> |
|
|
|
<div className="float-right"> |
|
|
|
<small className="text-muted">Jun 11, 2015 - Jul 10, 2015</small> |
|
|
|
</td> |
|
|
|
<td className="text-center"> |
|
|
|
<CIcon height={25} name="cif-fr" title="fr" id="fr" /> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<div className="clearfix"> |
|
|
|
<div className="float-left"> |
|
|
|
<strong>98%</strong> |
|
|
|
</div> |
|
|
|
<div className="float-right"> |
|
|
|
<small className="text-muted">Jun 11, 2015 - Jul 10, 2015</small> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<CProgress className="progress-xs" color="warning" value="74" /> |
|
|
|
</td> |
|
|
|
<td className="text-center"> |
|
|
|
<CIcon height={25} name="cib-stripe" /> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<div className="small text-muted">Last login</div> |
|
|
|
<strong>1 hour ago</strong> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td className="text-center"> |
|
|
|
<div className="c-avatar"> |
|
|
|
<img src={'avatars/4.jpg'} className="c-avatar-img" alt="[email protected]" /> |
|
|
|
<span className="c-avatar-status bg-secondary"></span> |
|
|
|
</div> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<div>Enéas Kwadwo</div> |
|
|
|
<div className="small text-muted"> |
|
|
|
<span>New</span> | Registered: Jan 1, 2015 |
|
|
|
</div> |
|
|
|
</td> |
|
|
|
<td className="text-center"> |
|
|
|
<CIcon height={25} name="cif-fr" title="fr" id="fr" /> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<div className="clearfix"> |
|
|
|
<div className="float-left"> |
|
|
|
<strong>98%</strong> |
|
|
|
<CProgress className="progress-xs" color="danger" value="98" /> |
|
|
|
</td> |
|
|
|
<td className="text-center"> |
|
|
|
<CIcon height={25} name="cib-paypal" /> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<div className="small text-muted">Last login</div> |
|
|
|
<strong>Last month</strong> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td className="text-center"> |
|
|
|
<div className="c-avatar"> |
|
|
|
<img src={'avatars/5.jpg'} className="c-avatar-img" alt="[email protected]" /> |
|
|
|
<span className="c-avatar-status bg-success"></span> |
|
|
|
</div> |
|
|
|
<div className="float-right"> |
|
|
|
<small className="text-muted">Jun 11, 2015 - Jul 10, 2015</small> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<div>Agapetus Tadeáš</div> |
|
|
|
<div className="small text-muted"> |
|
|
|
<span>New</span> | Registered: Jan 1, 2015 |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<CProgress className="progress-xs" color="danger" value="98" /> |
|
|
|
</td> |
|
|
|
<td className="text-center"> |
|
|
|
<CIcon height={25} name="cib-paypal" /> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<div className="small text-muted">Last login</div> |
|
|
|
<strong>Last month</strong> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td className="text-center"> |
|
|
|
<div className="c-avatar"> |
|
|
|
<img src={'avatars/5.jpg'} className="c-avatar-img" alt="[email protected]" /> |
|
|
|
<span className="c-avatar-status bg-success"></span> |
|
|
|
</div> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<div>Agapetus Tadeáš</div> |
|
|
|
<div className="small text-muted"> |
|
|
|
<span>New</span> | Registered: Jan 1, 2015 |
|
|
|
</div> |
|
|
|
</td> |
|
|
|
<td className="text-center"> |
|
|
|
<CIcon height={25} name="cif-es" title="es" id="es" /> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<div className="clearfix"> |
|
|
|
<div className="float-left"> |
|
|
|
<strong>22%</strong> |
|
|
|
</td> |
|
|
|
<td className="text-center"> |
|
|
|
<CIcon height={25} name="cif-es" title="es" id="es" /> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<div className="clearfix"> |
|
|
|
<div className="float-left"> |
|
|
|
<strong>22%</strong> |
|
|
|
</div> |
|
|
|
<div className="float-right"> |
|
|
|
<small className="text-muted">Jun 11, 2015 - Jul 10, 2015</small> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className="float-right"> |
|
|
|
<small className="text-muted">Jun 11, 2015 - Jul 10, 2015</small> |
|
|
|
<CProgress className="progress-xs" color="info" value="22" /> |
|
|
|
</td> |
|
|
|
<td className="text-center"> |
|
|
|
<CIcon height={25} name="cib-google-pay" /> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<div className="small text-muted">Last login</div> |
|
|
|
<strong>Last week</strong> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td className="text-center"> |
|
|
|
<div className="c-avatar"> |
|
|
|
<img src={'avatars/6.jpg'} className="c-avatar-img" alt="[email protected]" /> |
|
|
|
<span className="c-avatar-status bg-danger"></span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<CProgress className="progress-xs" color="info" value="22" /> |
|
|
|
</td> |
|
|
|
<td className="text-center"> |
|
|
|
<CIcon height={25} name="cib-google-pay" /> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<div className="small text-muted">Last login</div> |
|
|
|
<strong>Last week</strong> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td className="text-center"> |
|
|
|
<div className="c-avatar"> |
|
|
|
<img src={'avatars/6.jpg'} className="c-avatar-img" alt="[email protected]" /> |
|
|
|
<span className="c-avatar-status bg-danger"></span> |
|
|
|
</div> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<div>Friderik Dávid</div> |
|
|
|
<div className="small text-muted"> |
|
|
|
<span>New</span> | Registered: Jan 1, 2015 |
|
|
|
</div> |
|
|
|
</td> |
|
|
|
<td className="text-center"> |
|
|
|
<CIcon height={25} name="cif-pl" title="pl" id="pl" /> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<div className="clearfix"> |
|
|
|
<div className="float-left"> |
|
|
|
<strong>43%</strong> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<div>Friderik Dávid</div> |
|
|
|
<div className="small text-muted"> |
|
|
|
<span>New</span> | Registered: Jan 1, 2015 |
|
|
|
</div> |
|
|
|
<div className="float-right"> |
|
|
|
<small className="text-muted">Jun 11, 2015 - Jul 10, 2015</small> |
|
|
|
</td> |
|
|
|
<td className="text-center"> |
|
|
|
<CIcon height={25} name="cif-pl" title="pl" id="pl" /> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<div className="clearfix"> |
|
|
|
<div className="float-left"> |
|
|
|
<strong>43%</strong> |
|
|
|
</div> |
|
|
|
<div className="float-right"> |
|
|
|
<small className="text-muted">Jun 11, 2015 - Jul 10, 2015</small> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<CProgress className="progress-xs" color="success" value="43" /> |
|
|
|
</td> |
|
|
|
<td className="text-center"> |
|
|
|
<CIcon height={25} name="cib-cc-amex" /> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<div className="small text-muted">Last login</div> |
|
|
|
<strong>Yesterday</strong> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
</tbody> |
|
|
|
</table> |
|
|
|
<CProgress className="progress-xs" color="success" value="43" /> |
|
|
|
</td> |
|
|
|
<td className="text-center"> |
|
|
|
<CIcon height={25} name="cib-cc-amex" /> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<div className="small text-muted">Last login</div> |
|
|
|
<strong>Yesterday</strong> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
</tbody> |
|
|
|
</table> |
|
|
|
</div> |
|
|
|
</CCardBody> |
|
|
|
</CCard> |