Compare commits

...

10 Commits

Author SHA1 Message Date
a13f5361f7
Update floBlockchainAPI.js
Some checks failed
Workflow push to Dappbundle / Build (push) Has been cancelled
2025-08-31 09:37:40 +05:30
fad57ce963
Update push-dappbundle.yml 2025-08-31 09:35:02 +05:30
38e4f2c4c9
Update floBlockchainAPI.js 2025-08-31 09:32:48 +05:30
433a6f33dc
Update floBlockchainAPI.js 2025-08-31 09:27:28 +05:30
1e83c3cea9
Update floBlockchainAPI.js 2025-06-29 09:02:59 +05:30
sairaj mote
7969f25593 Moving to new tor links 2024-01-21 01:26:49 +05:30
sairaj mote
bff7cf8473 Create push-dappbundle.yml 2023-12-18 22:06:11 +05:30
sairaj mote
2ceb46fe5f Update index.html 2023-11-30 22:04:19 +05:30
sairaj mote
adf7de69a9 reduced name font size 2023-11-30 14:36:30 +05:30
sairaj mote
01f0e3bc5a Bug fix 2023-11-29 20:30:06 +05:30
4 changed files with 65 additions and 13 deletions

32
.github/workflows/push-dappbundle.yml vendored Normal file
View File

@ -0,0 +1,32 @@
name: Workflow push to Dappbundle
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Executing remote command
uses: appleboy/ssh-action@v1.0.0
with:
host: ${{ secrets.R_HOST }}
username: ${{ secrets.P_USERNAME }}
password: ${{ secrets.P_PASSWORD }}
port: ${{ secrets.SSH_PORT }}
script: |
if [ -d "${{ secrets.DEPLOYMENT_LOCATION}}/dappbundle" ]; then
echo "Folder exists. Skipping Git clone."
else
echo "Folder does not exist. Cloning repository..."
cd ${{ secrets.DEPLOYMENT_LOCATION}}/ && git clone https://github.com/ranchimall/dappbundle.git
fi
if [ -d "${{ secrets.DEPLOYMENT_LOCATION}}/dappbundle/${{ github.event.repository.name }}" ]; then
echo "Repository exists. Remove folder "
rm -r "${{ secrets.DEPLOYMENT_LOCATION}}/dappbundle/${{ github.event.repository.name }}"
fi
echo "Cloning repository..."
cd ${{ secrets.DEPLOYMENT_LOCATION}}/dappbundle && git clone https://github.com/ranchimall/${{ github.event.repository.name }}
cd "${{ secrets.DEPLOYMENT_LOCATION}}/dappbundle/${{ github.event.repository.name }}" && rm -rf .gitattributes .git .github .gitignore
cd ${{ secrets.DEPLOYMENT_LOCATION}}/dappbundle/ && git add . && git commit -m "Workflow updating files of ${{ github.event.repository.name }}" && git push "https://ranchimalldev:${{ secrets.RM_ACCESS_TOKEN }}@github.com/ranchimall/dappbundle.git"

View File

@ -20,8 +20,8 @@
blockchain: "FLO",
adminID: "FKAEdnPfjXLHSYwrXQu377ugN4tXU7VGdf",
application: "TEST_MODE",
RMincorporationID: "FKNW5eCCp2SnJMJ6pLLpUCvk5hAage8Jtk",
RIBC_id: "FDaX363r1ooANA9A2erhehhigNTnidq3o4",
rmIncorporationId: "FKNW5eCCp2SnJMJ6pLLpUCvk5hAage8Jtk",
ribcId: "FDaX363r1ooANA9A2erhehhigNTnidq3o4",
RM_CertificateIssuer_id: "FFCpiaZi31TpbYw5q5VNk8qJMeDiTLgsrE",
}
</script>
@ -267,7 +267,7 @@
}
const render = {
issuedCertCard(details) {
const { floData, txid, name, floId, btcId, certType, time, verificationLink } = details
const { data, txid, name, floId, btcId, certType, time, verificationLink } = details
return html`
<li class="cert-card">
<div class="flex align-items-center space-between">
@ -290,7 +290,7 @@
`;
},
certificate(txid, downloadButton) {
const { floData, time, name, floId, certType, isNewer, certPara, verificationLink } = floGlobals.validCerts.get(txid)
const { data, time, name, floId, certType, isNewer, certPara, verificationLink } = floGlobals.validCerts.get(txid)
let paraSplitWord
let certificateVerification = ''
switch (certType) {
@ -307,7 +307,7 @@
paraSplitWord = 'participated'
break;
}
const remarks = isNewer ? certPara : removeWordsBefore(floData, paraSplitWord)
const remarks = isNewer ? certPara : removeWordsBefore(data, paraSplitWord)
const certPdf = new window.jspdf.jsPDF({
orientation: 'l',
unit: 'pt',
@ -332,7 +332,7 @@
certPdf.text(`Issued: ${getFormattedTime(time, 'date-only')}`, 700, 254, { align: 'center' }); // issued date
certPdf.text("RanchiMall, a blockchain incorporated entity certifies that", 700, 310, { align: 'center' });
certPdf.setFont('times', 'bold');
certPdf.setFontSize(64);
certPdf.setFontSize(56);
certPdf.text(name.toUpperCase(), 700, 380, { align: 'center' }); // name
certPdf.setFont('times', 'normal');
certPdf.setFontSize(18);
@ -346,9 +346,9 @@
certPdf.setFontSize(14);
certPdf.text("INTERNSHIP CONTRACT ADDRESS", 1240, 786, { align: 'right' });
certPdf.setFontSize(18);
certPdf.text("FDaX363r1ooANA9A2erhehhigNTnidq3o4", 1240, 810, { align: 'right' });
certPdf.text(floGlobals.ribcId, 1240, 810, { align: 'right' });
certPdf.text("Scan to verify this certificate", 700, 832, { align: 'center' });
certPdf.text(`Transaction ID: ${txid}`, 700, 860, { align: 'center' });
certPdf.textWithLink(`FLO Transaction ID: ${txid}`, 700, 860, { align: 'center', url: verificationLink });
// jspdf add svg
let svgNode = QRCode({
msg: verificationLink,
@ -381,7 +381,7 @@
floBlockchainAPI.readData(floGlobals.RM_CertificateIssuer_id, {
sentOnly: true,
tx: true,
receivers: [floGlobals.RMincorporationID, floGlobals.RIBC_id],
receivers: [floGlobals.rmIncorporationId, floGlobals.ribcId],
filter: d => d.startsWith('CERTIFICATE OF')
}).then(res => {
for (tx of res.items) {

File diff suppressed because one or more lines are too long

1
scripts/floBlockchainAPI.min.js vendored Normal file

File diff suppressed because one or more lines are too long