Skip to content

Commit 97fd286

Browse files
committed
initial commit
1 parent 8032765 commit 97fd286

182 files changed

Lines changed: 55033 additions & 122 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.cz.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[tool.commitizen]
2+
version = "0.1.0" # This should be your current semver version
3+
version_files = [
4+
"package.json:\"version\":",
5+
"package-lock.json:\"version\":",
6+
]

.eslintrc.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es2021": true
5+
},
6+
"extends": [
7+
"eslint:recommended",
8+
"plugin:react/recommended",
9+
"plugin:react-hooks/recommended"
10+
],
11+
"parserOptions": {
12+
"ecmaFeatures": {
13+
"jsx": true
14+
},
15+
"ecmaVersion": "latest",
16+
"sourceType": "module"
17+
},
18+
"plugins": ["react"],
19+
"rules": {
20+
"react/prop-types": 0,
21+
"no-unused-vars": 0,
22+
"no-empty": 0,
23+
"no-case-declarations": 0,
24+
"react/no-deprecated": 0,
25+
"no-undef": 0
26+
},
27+
"ignorePatterns": ["**/build/**", "**/*.config.js"],
28+
"settings": {
29+
"react": {
30+
"version": "detect"
31+
}
32+
}
33+
}

.github/workflows/Docker.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: ci
2+
on:
3+
push:
4+
branches:
5+
- 'monorepo'
6+
7+
jobs:
8+
docker:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
include:
13+
- image: amolshejole/OpenSign
14+
dockerfile: apps/OpenSign/Dockerfile
15+
- image: amolshejole/OpenSignServer
16+
dockerfile: apps/OpenSignServer/Dockerfile
17+
steps:
18+
-
19+
name: Checkout
20+
uses: actions/checkout@v3
21+
-
22+
name: Login to Docker Hub
23+
uses: docker/login-action@v2
24+
with:
25+
username: ${{ secrets.DOCKERHUB_USERNAME }}
26+
password: ${{ secrets.DOCKERHUB_TOKEN }}
27+
-
28+
name: Extract metadata (tags, labels) for Docker
29+
id: meta
30+
uses: docker/metadata-action@v4
31+
with:
32+
images: ${{ matrix.image }}
33+
-
34+
name: Debug - List files
35+
run: ls -R apps/OpenSign/ # Adjust the path as needed
36+
-
37+
name: Build and push
38+
uses: docker/build-push-action@v4
39+
with:
40+
context: .
41+
file: ${{ matrix.dockerfile }}
42+
push: true
43+
tags: ${{ steps.meta.outputs.tags }}
44+
labels: ${{ steps.meta.outputs.labels }}

.gitignore

Lines changed: 15 additions & 121 deletions
Original file line numberDiff line numberDiff line change
@@ -1,130 +1,24 @@
1-
# Logs
2-
logs
3-
*.log
4-
npm-debug.log*
5-
yarn-debug.log*
6-
yarn-error.log*
7-
lerna-debug.log*
8-
.pnpm-debug.log*
9-
10-
# Diagnostic reports (https://nodejs.org/api/report.html)
11-
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
12-
13-
# Runtime data
14-
pids
15-
*.pid
16-
*.seed
17-
*.pid.lock
18-
19-
# Directory for instrumented libs generated by jscoverage/JSCover
20-
lib-cov
21-
22-
# Coverage directory used by tools like istanbul
23-
coverage
24-
*.lcov
25-
26-
# nyc test coverage
27-
.nyc_output
28-
29-
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
30-
.grunt
31-
32-
# Bower dependency directory (https://bower.io/)
33-
bower_components
34-
35-
# node-waf configuration
36-
.lock-wscript
37-
38-
# Compiled binary addons (https://nodejs.org/api/addons.html)
39-
build/Release
40-
41-
# Dependency directories
42-
node_modules/
43-
jspm_packages/
44-
45-
# Snowpack dependency directory (https://snowpack.dev/)
46-
web_modules/
47-
48-
# TypeScript cache
49-
*.tsbuildinfo
50-
51-
# Optional npm cache directory
52-
.npm
53-
54-
# Optional eslint cache
55-
.eslintcache
56-
57-
# Optional stylelint cache
58-
.stylelintcache
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
592

60-
# Microbundle cache
61-
.rpt2_cache/
62-
.rts2_cache_cjs/
63-
.rts2_cache_es/
64-
.rts2_cache_umd/
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
657

66-
# Optional REPL history
67-
.node_repl_history
8+
# testing
9+
/coverage
6810

69-
# Output of 'npm pack'
70-
*.tgz
11+
# production
12+
/build
7113

72-
# Yarn Integrity file
73-
.yarn-integrity
74-
75-
# dotenv environment variable files
14+
# misc
7615
.env
16+
.DS_Store
17+
.env.local
7718
.env.development.local
7819
.env.test.local
7920
.env.production.local
80-
.env.local
81-
82-
# parcel-bundler cache (https://parceljs.org/)
83-
.cache
84-
.parcel-cache
85-
86-
# Next.js build output
87-
.next
88-
out
89-
90-
# Nuxt.js build / generate output
91-
.nuxt
92-
dist
93-
94-
# Gatsby files
95-
.cache/
96-
# Comment in the public line in if your project uses Gatsby and not Next.js
97-
# https://nextjs.org/blog/next-9-1#public-directory-support
98-
# public
99-
100-
# vuepress build output
101-
.vuepress/dist
102-
103-
# vuepress v2.x temp and cache directory
104-
.temp
105-
.cache
10621

107-
# Docusaurus cache and generated files
108-
.docusaurus
109-
110-
# Serverless directories
111-
.serverless/
112-
113-
# FuseBox cache
114-
.fusebox/
115-
116-
# DynamoDB Local files
117-
.dynamodb/
118-
119-
# TernJS port file
120-
.tern-port
121-
122-
# Stores VSCode versions used for testing VSCode extensions
123-
.vscode-test
124-
125-
# yarn v2
126-
.yarn/cache
127-
.yarn/unplugged
128-
.yarn/build-state.yml
129-
.yarn/install-state.gz
130-
.pnp.*
22+
npm-debug.log*
23+
yarn-debug.log*
24+
yarn-error.log*

.husky/pre-commit

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx eslint '**/*.{js,jsx}'
5+
npx pretty-quick --staged '**/*.{js,jsx}'

.prettierignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules/
2+
public/
3+
build/
4+
package.json
5+
package-lock.json
6+
dist/
7+
docs/

.prettierrc.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"bracketSpacing": true,
3+
"semi": true,
4+
"trailingComma": "none",
5+
"printWidth": 80,
6+
"tabWidth": 2
7+
}

INSTALLATION.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ OpenSign application consistes of 3 components -
1717

1818
You can install all 3 components on digital ocean using the button below -
1919

20-
[![Deploy to DO](https://www.deploytodo.com/do-btn-blue.svg)](https://cloud.digitalocean.com/apps/new?repo=https://github.com/OpenSignLabs/OpenSign/tree/updatedocumentation&refcode=30db1c901ab0)
20+
[![Deploy to DO](https://www.deploytodo.com/do-btn-blue.svg)](https://cloud.digitalocean.com/apps/new?repo=https://github.com/OpenSignLabs/OpenSign/tree/monorepo&refcode=30db1c901ab0)

apps/OpenSign/.cz.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[tool.commitizen]
2+
version = "0.1.0" # This should be your current semver version
3+
version_files = [
4+
"package.json:\"version\":",
5+
"package-lock.json:\"version\":",
6+
]

apps/OpenSign/.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
npm-debug.log

0 commit comments

Comments
 (0)