Skip to content

Commit

Permalink
Merge pull request #1002 from upyog/jagan
Browse files Browse the repository at this point in the history
cleaned up code , republished and made the application stable
  • Loading branch information
vinothrallapalli-eGov authored Mar 15, 2024
2 parents d145ac7 + f3e4586 commit a46d887
Show file tree
Hide file tree
Showing 46 changed files with 1,548 additions and 167 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/publishAllPackages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Node.js Publish UI Packages

on:
push:
branches: [ 'digit2.9' ]
paths:
- 'frontend/micro-ui/web/micro-ui-internals/**'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14.20.0
registry-url: https://registry.npmjs.org
- run: cd frontend/micro-ui/web/micro-ui-internals/ && bash ./publish-beta.sh
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
26 changes: 13 additions & 13 deletions frontend/micro-ui/web/micro-ui-internals/example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@
"start": "react-scripts start"
},
"devDependencies": {
"@egovernments/digit-ui-libraries": "^1.7.0-beta.2",
"@egovernments/digit-ui-module-common": "^1.7.0-beta.2",
"@egovernments/digit-ui-libraries": "1.7.2",
"@egovernments/digit-ui-module-common": "1.7.2",
"@egovernments/digit-ui-module-engagement": "^1.7.0-beta.2",
"@upyog/digit-ui-module-fsm": "^1.7.0-beta.9",
"@egovernments/digit-ui-module-mcollect": "^1.7.0-beta.2",
"@egovernments/digit-ui-module-noc": "^1.7.0-beta.2",
"@upyog/digit-ui-module-obps": "^1.7.0-beta.2",
"@egovernments/digit-ui-module-pgr": "^1.7.0-beta.2",
"@upyog/digit-ui-module-pt": "^1.7.0-beta.2",
"@egovernments/digit-ui-module-receipts": "^1.7.0-beta.2",
"@upyog/digit-ui-module-tl": "^1.7.0-beta.2",
"@upyog/digit-ui-module-ws": "^1.7.0-beta.2",
"@egovernments/digit-ui-module-bills": "^1.7.0-beta.2",
"@egovernments/digit-ui-module-commonpt": "^1.7.0-beta.3",
"@upyog/digit-ui-module-fsm": "1.7.2",
"@egovernments/digit-ui-module-mcollect": "1.7.2",
"@egovernments/digit-ui-module-noc": "1.7.2",
"@upyog/digit-ui-module-obps": "1.7.2",
"@egovernments/digit-ui-module-pgr": "1.7.2",
"@upyog/digit-ui-module-pt": "1.7.2",
"@egovernments/digit-ui-module-receipts": "1.7.2",
"@upyog/digit-ui-module-tl": "1.7.2",
"@upyog/digit-ui-module-ws": "1.7.2",
"@egovernments/digit-ui-module-bills": "1.7.2",
"@egovernments/digit-ui-module-commonpt": "1.7.2",
"http-proxy-middleware": "^1.0.5",
"react": "17.0.2",
"react-dom": "17.0.2",
Expand Down
28 changes: 9 additions & 19 deletions frontend/micro-ui/web/micro-ui-internals/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,8 @@
"packages/libraries",
"packages/css",
"example",
"packages/react-components",
"packages/modules/common",
"packages/modules/core",
"packages/modules/pgr",
"packages/modules/dss",
"packages/modules/commonPt",
"packages/modules/pt",
"packages/modules/tl",
"packages/modules/mCollect",
"packages/module/engagement"
"packages/react-components"
],
"author": "Abhinav Kushwaha <[email protected]>",
"license": "MIT",
"private": true,
"engines": {
Expand Down Expand Up @@ -53,16 +43,16 @@
"build": "run-p build:**",
"build:libraries": "cd packages/libraries && yarn build",
"build:components": "cd packages/react-components && yarn build",
"build:common": "cd packages/modules/common && yarn build",
"build:pt": "cd packages/modules/pt && yarn build",
"build:commonPt": "cd packages/modules/commonPt && yarn build",
"build:core": "cd packages/modules/core && yarn build",
"build:pgr": "cd packages/modules/pgr && yarn build",
"buildD:common": "cd packages/modules/common && yarn build",
"buildD:pt": "cd packages/modules/pt && yarn build",
"buildD:commonPt": "cd packages/modules/commonPt && yarn build",
"buildD:core": "cd packages/modules/core && yarn build",
"buildD:pgr": "cd packages/modules/pgr && yarn build",
"buildD:fsm": "cd packages/modules/fsm && yarn build",
"build:dss": "cd packages/modules/dss && yarn build",
"build:mcollect": "cd packages/modules/mCollect && yarn build",
"buildD:dss": "cd packages/modules/dss && yarn build",
"buildD:mcollect": "cd packages/modules/mCollect && yarn build",
"buildD:receipts": "cd packages/modules/receipts && yarn build",
"build:tl": "cd packages/modules/tl && yarn build",
"buildD:tl": "cd packages/modules/tl && yarn build",
"buildD:hrms": "cd packages/modules/hrms && yarn build",
"buildD:obps": "cd packages/modules/obps && yarn build",
"buildD:engagement": "cd packages/modules/engagement && yarn build",
Expand Down
55 changes: 55 additions & 0 deletions frontend/micro-ui/web/micro-ui-internals/packages/css/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@

# digit-ui-css

## Install

```bash
npm install --save @egovernments/digit-ui-css
```

## Limitation

```bash
This Package is more specific to DIGIT-UI's can be used across mission's
It is the base css for all Digit UI's
```
## Usage
After adding the dependency make sure you have this dependency in
```bash
frontend/micro-ui/web/package.json
```
```json
"@egovernments/digit-ui-css":"^1.5.0",
```
then navigate to App.js
```bash
frontend/micro-ui/web/public/index.html
```
```jsx
/** add this import **/
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected]/dist/index.css" />
```
### Changelog
```bash
1.0.3 UPYOG Base
```
## Contributors
[jagankumar-egov] [nipunarora-eGov] [Tulika-eGov] [Ramkrishna-egov] [nabeelmd-eGov] [anil-egov] [vamshikrishnakole-wtt-egov]
### Published from DIGIT Frontend
DIGIT Frontend Repo (https://github.com/egovernments/Digit-Frontend/tree/develop)
## License
MIT © [jagankumar-egov](https://github.com/jagankumar-egov)
38 changes: 23 additions & 15 deletions frontend/micro-ui/web/micro-ui-internals/packages/css/package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
{
"name": "@upyog-niua/upyog-css",
"version": "1.0.10",
"version": "1.0.11",
"license": "MIT",
"main": "dist/index.css",
"author": "Jagankumar <[email protected]>",
"engines": {
"node": ">=10"
"node": ">=14"
},
"cssConfig": {
"prefix": ""
},
"scripts": {
"start": "gulp build",
"build:prod": "gulp build",
"build:prod": "NODE_ENV=production gulp build",
"prepublish": "yarn build:prod",
"deploy": "gulp && cp -R svg example && cp -R img example && gh-pages -d example"
},
Expand All @@ -24,27 +25,27 @@
"node-sass": "4.14.1",
"normalize.css": "8.0.1",
"postcss-scss": "3.0.5",
"tailwindcss": "^1.9.6"
"tailwindcss": "1.9.6"
},
"devDependencies": {
"autoprefixer": "^10.4.4",
"autoprefixer": "10.4.14",
"cssnano": "4.1.11",
"gh-pages": "3.2.3",
"gulp": "4.0.2",
"gulp-clean": "^0.4.0",
"gulp-clean-css": "^4.3.0",
"gulp-livereload": "^4.0.2",
"gulp-clean": "0.4.0",
"gulp-clean-css": "4.3.0",
"gulp-livereload": "4.0.2",
"gulp-postcss": "9.0.1",
"gulp-rename": "^2.0.0",
"gulp-sass": "^4.1.1",
"postcss": "8.4.12",
"gulp-rename": "2.0.0",
"gulp-sass": "4.1.1",
"postcss": "8.4.26",
"postcss-cli": "8.3.1",
"postcss-header": "2.0.0",
"postcss-import": "^12.0.1",
"postcss-import": "12.0.1",
"postcss-prefixer": "2.1.3",
"postcss-preset-env": "^6.7.1",
"postcss-preset-env": "6.7.1",
"postcss-scss": "3.0.5",
"sass": "1.49.11"
"sass": "^1.26.11"
},
"files": [
"dist/index.min.css",
Expand All @@ -53,5 +54,12 @@
"img/**/*.png",
"src/**/*.scss",
"src/**/*.css"
],
"keywords": [
"digit",
"egov",
"dpg",
"digit-ui",
"css"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ module.exports = {
// },
// },
// };
// };
// };
Original file line number Diff line number Diff line change
@@ -1,13 +1,37 @@
# digit-ui-libraries

> Made with @egovernments/create-ui-library
# digit-ui-libraries

## Install

```bash
npm install --save @egovernments/digit-ui-libraries
```

## Limitation

```bash
This Package is more specific to DIGIT-UI's can be used across mission's
```

## Usage

After adding the dependency make sure you have this dependency in

```bash
frontend/micro-ui/web/package.json
```

```json
"@egovernments/digit-ui-libraries":"1.8.0",
```

then navigate to App.js

```bash
frontend/micro-ui/web/src/App.js
```


## Usage

```jsx
Expand All @@ -27,6 +51,22 @@ const App = ({ deltaConfig, stateCode, cityCode, moduleCode }) => {
export default App;
```

### Changelog

```bash
1.7.1 UPYOG Base
```

### Published from DIGIT Frontend
DIGIT Frontend Repo (https://github.com/upyog/UPYOG/tree/develop)

### Contributors

[jagankumar-egov] [nipunarora-eGov] [Tulika-eGov] [Ramkrishna-egov] [nabeelmd-eGov] [anil-egov] [vamshikrishnakole-wtt-egov]

## License

MIT © [](https://github.com/)
MIT © [jagankumar-egov](https://github.com/jagankumar-egov)


![Logo](https://s3.ap-south-1.amazonaws.com/works-dev-asset/mseva-white-logo.png)
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@egovernments/digit-ui-libraries",
"version": "1.7.0-beta.2",
"version": "1.7.2",
"main": "dist/index.js",
"module": "dist/index.modern.js",
"source": "src/index.js",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@

# digit-ui-module-bills

## Install

```bash
npm install --save @egovernments/digit-ui-module-bills
```

## Limitation

```bash
This Package is more specific to DIGIT-UI's can be used across mission's
```

## Usage

After adding the dependency make sure you have this dependency in

```bash
frontend/micro-ui/web/package.json
```

```json
"@egovernments/digit-ui-module-bills":"^1.5.0",
```

then navigate to App.js

```bash
frontend/micro-ui/web/src/App.js
```


```jsx
/** add this import **/

import { initbillsComponents } from "@egovernments/digit-ui-module-bills";

/** inside enabledModules add this new module key **/

const enabledModules = ["Payment"];

/** inside init Function call this function **/

const initDigitUI = () => {
initbillsComponents();
};
```




### Changelog

```bash
1.7.1 UPYOG Base version
```

### Contributors

[jagankumar-egov] [Tulika-eGov] [vamshikrishnakole-wtt-egov]

## Documentation

Documentation Site (https://core.digit.org/guides/developer-guide/ui-developer-guide/digit-ui)

## Maintainer

- [jagankumar-egov](https://www.github.com/jagankumar-egov)


### Published from DIGIT Frontend
DIGIT Frontend Repo (https://github.com/upyog/UPYOG/tree/develop)


![Logo](https://s3.ap-south-1.amazonaws.com/works-dev-asset/mseva-white-logo.png)
Loading

0 comments on commit a46d887

Please sign in to comment.