Skip to content

Instantly share code, notes, and snippets.

View sohagraha's full-sized avatar
🎯
Focusing

Sohag Raha sohagraha

🎯
Focusing
View GitHub Profile
@sohagraha
sohagraha / initiateForm.json
Created March 11, 2025 08:35
initiateForm
{"id":"pInitiate","type":"Block","permission":"","title":"","subTitle":"","helpText":"","style":{},"className":"page-container","active":true,"attr":{},"components":[{"id":"dependentVariableId0.10019924558981663","type":"PageDependentVariableUpdate","permission":"","title":"","subTitle":"","helpText":"","style":{},"className":"","active":true,"attr":{"delay":500,"initial_data_Mapping":{"initialClientCheck":{"processType":"default","valueFormat":"{userInformation.clientId}","fieldInformation":[{"fieldName":"userInformation.clientId","type":"general"}]}},"update_data_mapping":{"initiateFormFormId":{"processType":"default","valueFormat":"4afbe793b1c946748f876b1acbdc0af2","fieldInformation":[]},"initiateFormSubmissionId":{"processType":"default","valueFormat":"{submissionId}","fieldInformation":[{"fieldName":"submissionId","type":"general"}]}}},"components":[]},{"id":"blockId0.8362694004583717","type":"Block","permission":"","title":"","subTitle":"","helpText":"","style":{},"className":"p-0","active":true,"attr":
@sohagraha
sohagraha / countryProvinceCityConditions.js
Last active February 11, 2025 08:38
countryProvinceCityConditions
import {
basicJSON,
blockJSON
} from "@/json/commonJSONS";
export const reloadDropDownCondition = {
...basicJSON(""),
id: "formListDependentContent",
type: "PageDependentVariableUpdate",
permission: "a-permission-string",
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<title>Example</title>
<style>
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<title>Example</title>
<style>
@sohagraha
sohagraha / test.js
Created November 11, 2024 12:41
test
{
"active": true,
"className": "",
"did": "57a8577978cf4c8aabba6c7352d081ab",
"helpText": "",
"menuId": "ae1d7617125847f0844085caf4513967",
"permission": "Access_Data_Vault_Layer_1699506372263",
"subTitle": "",
"title": "Table Schemas",
"type": "Page",
@sohagraha
sohagraha / html
Created November 5, 2024 10:37
html
"<!DOCTYPE html>\r\n<html lang=\"en\">\r\n\r\n<head>\r\n <meta charset=\"UTF-8\">\r\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\r\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\r\n <link href=\"https://fonts.googleapis.com/css?family=Roboto\" rel=\"stylesheet\">\r\n <style>\r\n body {\r\n max-width: 800px;\r\n margin: auto;\r\n font-family: 'Roboto';\r\n padding: 20px;\r\n }\r\n\r\n header {\r\n text-align: center;\r\n border-bottom: 1px solid #DAE8E3;\r\n }\r\n\r\n header img {\r\n width: 300px;\r\n height: 55px;\r\n padding-top: 25px;\r\n padding-bottom: 9px;\r\n }\r\n\r\n .content-section {\r\n text-align: left;\r\n border-bottom: 1px solid #DAE8E3;\r\n padding-top: 16px;\r\n padding-bottom: 18px;\r\n }\r\n\r\n .content-section h2 {\r
@sohagraha
sohagraha / data2.json
Created October 18, 2024 08:15
data1
{
"condition": "and",
"rules": [
{
"label": "Is the Tenant information correct? (CGL)",
"field": "tenantInformationCorrectForCGL",
"type": "boolean",
"operator": "equal",
"value": "Yes"
},
{
"policyConditions": "{\"condition\":\"and\",\"rules\":[{\"label\":\"Is the Tenant information correct? (CGL)\",\"field\":\"tenantInformationCorrectForCGL\",\"type\":\"boolean\",\"operator\":\"equal\",\"value\":\"Yes\"},{\"label\":\"Memorandum of Insurance? (CGL)\",\"field\":\"insuranceMemorandumForCGL\",\"type\":\"boolean\",\"operator\":\"equal\",\"value\":\"Yes\"},{\"label\":\"Verify Demo Company is the certificate holder (CGL)\",\"field\":\"verifyDemoCompanyCertificateHolderForCGL\",\"type\":\"boolean\",\"operator\":\"equal\",\"value\":\"Yes\"},{\"label\":\"All the insurers licensed to do business in Canada? (CGL)\",\"field\":\"insurersLicensedToDoBusinessInCanadaForCGL\",\"type\":\"boolean\",\"operator\":\"equal\",\"value\":\"Yes\"},{\"label\":\"Minimum of 30 days cancellation notice included for all Insurers? (CGL)\",\"field\":\"cancelationNoticeForAllInsurersForCGL\",\"type\":\"boolean\",\"operator\":\"equal\",\"value\":\"Yes\"},{\"label\":\"Policy Number (CGL)\",\"field\":\"policyNumberForCGL\",\"
@sohagraha
sohagraha / file upload
Created September 30, 2024 10:33
file upload
{
...blockJSON(""),
className: "row px-0",
components: [
{
...blockJSON(""),
className: "col-12 py-8 px-10 page-content border-1 border-solid border-right-1 border-neutral-4 rounded-4 mb-4 mt-2 box-shadow-1",
components: [
{
id: "uploadFile",
@sohagraha
sohagraha / m
Created September 5, 2024 12:54
m
import { blockJSON, pageEquationCheckBlockJSON, backButtonJSON } from "../../../src/json/commonJSONS";
let checkDuplicateCategory = {
urlDataMapping: {
url: {
processType: "default",
valueFormat: `/v2/api/DocumentCategory/get-with-extended-query`,
fieldInformation: []
}
},