Skip to content

Commit

Permalink
upload config
Browse files Browse the repository at this point in the history
  • Loading branch information
mithunhegde-egov committed Sep 23, 2024
2 parents 291b6c9 + 5962087 commit 790d1fb
Show file tree
Hide file tree
Showing 38 changed files with 887 additions and 165 deletions.
4 changes: 2 additions & 2 deletions micro-ui/web/micro-ui-internals/example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"@egovernments/digit-ui-module-utilities": "1.0.1-beta.39",
"@egovernments/digit-ui-module-open-payment":"0.0.1",
"@egovernments/digit-ui-module-engagement": "1.5.20",
"@egovernments/digit-ui-components": "0.0.2-beta.31",
"@egovernments/digit-ui-react-components": "1.8.2-beta.14",
"@egovernments/digit-ui-components": "0.0.2-beta.41",
"@egovernments/digit-ui-react-components": "1.8.2-beta.13",
"@egovernments/digit-ui-module-sandbox": "0.0.1",
"http-proxy-middleware": "^1.0.5",
"react": "17.0.2",
Expand Down
2 changes: 1 addition & 1 deletion micro-ui/web/micro-ui-internals/example/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<!-- <link rel="stylesheet" href="https://unpkg.com/@egovernments/digit-ui-css/dist/index.css"/> -->
<!-- <script src="https://s3.ap-south-1.amazonaws.com/egov-dev-assets/globalConfigs.js"></script> -->
<link rel="stylesheet" href="https://unpkg.com/@egovernments/digit-ui-components-css@0.0.2-beta.32/dist/index.css" />
<link rel="stylesheet" href="https://unpkg.com/@egovernments/digit-ui-components-css@0.0.2-beta.33/dist/index.css" />
<script src="%REACT_APP_GLOBAL%"></script>

</head>
Expand Down
4 changes: 2 additions & 2 deletions micro-ui/web/micro-ui-internals/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@
"dependencies": {
"lodash": "4.17.21",
"microbundle-crl": "0.13.11",
"@egovernments/digit-ui-components": "0.0.2-beta.31",
"@egovernments/digit-ui-react-components": "1.8.2-beta.14",
"@egovernments/digit-ui-components": "0.0.2-beta.41",
"@egovernments/digit-ui-react-components": "1.8.2-beta.13",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-hook-form": "6.15.8",
Expand Down
2 changes: 2 additions & 0 deletions micro-ui/web/micro-ui-internals/packages/css/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ frontend/micro-ui/web/public/index.html
```
## Changelog
1.8.2-beta.24: added css for custom error component
1.8.2-beta.23: fixed css in pgr citizen complaint detail page
1.8.2-beta.24 added css for the side component
### Summary for Version [1.8.2-beta.1] - 2024-06-05
Expand Down
2 changes: 1 addition & 1 deletion micro-ui/web/micro-ui-internals/packages/css/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@egovernments/digit-ui-css",
"version": "1.8.2-beta.23",
"version": "1.8.2-beta.27",
"license": "MIT",
"main": "dist/index.css",
"author": "Jagankumar <jagan.kumar@egov.org.in>",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,6 @@
font-size: 0.8rem;
}


.sandbox-signup-form {
.digit-employee-card.signupCardClassName {
display: flex;
Expand Down Expand Up @@ -308,7 +307,18 @@
color: unset !important;
}
}

.digit-card-component.sandboxSetupMasterInfo {
.h1.headerFlex {
display: flex;
gap: 1rem;
align-items: center;
}
.digit-card-header.subHeader {
font-size: 1.5rem;
font-weight: 700;
color: unset !important;
}
}
.digit-card-header.setupMaster-subheading {
font-size: 1.5rem;
color: unset !important;
Expand Down Expand Up @@ -374,6 +384,30 @@
}
}

.digit-popup-wrapper.setupMasterPopUp.error.alert {
.digit-popup-alert-content {
.digit-popup-alert-heading {
color: #b91800;
}
}
}
.digit-employee-card.customError {
width: 35rem;
}
.customErrorButton {
margin: auto;
}
.digit-employee-card.digit-landing-page-card {
display: flex;
flex-direction: column;
}
.digit-card-header.center {
text-align: center;
}
digit-card-text.center {
text-align: center;
}

.pgr-citizen-wrapper {
.applications-list-container {
.card {
Expand All @@ -397,14 +431,91 @@
}
}

.digit-uploader-wrap {
.digit-uploader-content {
.digit-button-secondary {
.icon-label-container {
.digit-button-label {
width: fit-content;
}
}
.homeWrapper{
display: flex;
justify-content: space-between; /* Ensure spacing between the two components */
align-items: flex-start;
}

.homeWrapper > :first-child {
flex-grow: 1; /* Makes the first child (RoleBasedEmployeeHome) take up remaining space */
margin-right: 1rem; /* Optional: Add some spacing between the components */
}

.homeWrapper > :last-child {
width: 20.688rem; /* Fixed width for QuickSetupConfigComponent */
flex-shrink: 0; /* Prevents it from shrinking */
margin-left: auto; /* Aligns the component to the right end */
}

.homeWrapper{
.digit-employee-card{
.digit-card-header{
color: #0b4b66 !important;
font-size: 1.87rem !important;
text-align: center;
font-weight: 700;
}
}
}
.homeWrapper{
.digit-card-component{
.digit-card-header{
color: #0b4b66 !important;
font-size: 1.87rem !important;
text-align: center;
font-weight: 700;
}
}
}

.homeWrapper{
.digit-card-component{
.digit-card-text{
font-size: 1rem !important;
font-weight: 700;
}
}
}
}
.homeWrapper{
.digit-employee-card{
.digit-card-text{
font-size: 1rem !important;
font-weight: 700;
}
}
}
.quickLink{
color: #c84c0e;
text-decoration: none;
font-weight: 700;
font-size: 1.5rem;
}

.overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
}
.player-wrapper {
position: relative;
display: inline-block;
cursor: pointer;
}
.player-click-area {
position: absolute;
width: 100%;
height: 100%;
z-index: 1;
}
.player-iframe {
position: relative;
z-index: 0;
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import useUpdateEvent from "./events/useUpdateEvent";
import {
useBulkPdfDetails, useDemandSearch, useFetchBillsForBuissnessService, useFetchCitizenBillsForBuissnessService, useFetchPayment, useGetPaymentRulesForBusinessServices, usePaymentSearch, usePaymentUpdate, useRecieptSearch
} from "./payment";
import { useInitStore } from "./store";
import { useInitStore, useInitTenantConfig } from "./store";
import useAccessControl from "./useAccessControl";
import { useApplicationsForBusinessServiceSearch } from "./useApplicationForBillSearch";
import useClickOutside from "./useClickOutside";
Expand Down Expand Up @@ -167,6 +167,7 @@ const Hooks = {
useGetPaymentRulesForBusinessServices,
useWorkflowDetails,
useInitStore,
useInitTenantConfig,
useClickOutside,
useUserSearch,
useApplicationsForBusinessServiceSearch,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,15 @@ export const useInitStore = (stateCode, enabledModules,modulePrefix = "rainmaker
);
return { isLoading, error, isError, data };
};

export const useInitTenantConfig = (stateCode, enabledModules) => {
const { isLoading, error, isError, data } = useQuery(
["initTenantConfig", stateCode, enabledModules],
() => StoreService.getTenantConfig(stateCode, enabledModules),
{
staleTime: Infinity,
enabled: Digit.Utils.getMultiRootTenant()
}
);
return { isLoading, error, isError, data };
};
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ const LocalizationStore = {
get: (locale, modules) => {
const storedModules = LocalizationStore.getList(locale);
const newModules = modules.filter((module) => !storedModules.includes(module));
if(Digit.Utils.getMultiRootTenant()){
newModules.push("digit-tenants")
}
const messages = [];
storedModules.forEach((module) => {
messages.push(...LocalizationStore.getCaheData(LOCALE_MODULE(locale, module)));
Expand Down
Loading

0 comments on commit 790d1fb

Please sign in to comment.