Skip to content

Commit 758ca0b

Browse files
added eSign 9 OCT
0 parents  commit 758ca0b

File tree

198 files changed

+142190
-0
lines changed

Some content is hidden

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

198 files changed

+142190
-0
lines changed

.editorconfig

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Root editor config file
2+
root = true
3+
4+
# Common settings
5+
[*]
6+
end_of_line = lf
7+
insert_final_newline = true
8+
trim_trailing_whitespace = true
9+
charset = utf-8
10+
11+
# python, js indentation settings
12+
[{*.py,*.js,*.vue,*.css,*.scss,*.html}]
13+
indent_style = tab
14+
indent_size = 4
15+
max_line_length = 99
16+
17+
# JSON files - mostly doctype schema files
18+
[{*.json}]
19+
insert_final_newline = false
20+
indent_style = space
21+
indent_size = 2

.eslintrc

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"node": true,
5+
"es2022": true
6+
},
7+
"parserOptions": {
8+
"sourceType": "module"
9+
},
10+
"extends": "eslint:recommended",
11+
"rules": {
12+
"indent": "off",
13+
"brace-style": "off",
14+
"no-mixed-spaces-and-tabs": "off",
15+
"no-useless-escape": "off",
16+
"space-unary-ops": ["error", { "words": true }],
17+
"linebreak-style": "off",
18+
"quotes": ["off"],
19+
"semi": "off",
20+
"camelcase": "off",
21+
"no-unused-vars": "off",
22+
"no-console": ["warn"],
23+
"no-extra-boolean-cast": ["off"],
24+
"no-control-regex": ["off"],
25+
},
26+
"root": true,
27+
"globals": {
28+
"frappe": true,
29+
"Vue": true,
30+
"SetVueGlobals": true,
31+
"__": true,
32+
"repl": true,
33+
"Class": true,
34+
"locals": true,
35+
"cint": true,
36+
"cstr": true,
37+
"cur_frm": true,
38+
"cur_dialog": true,
39+
"cur_page": true,
40+
"cur_list": true,
41+
"cur_tree": true,
42+
"msg_dialog": true,
43+
"is_null": true,
44+
"in_list": true,
45+
"has_common": true,
46+
"posthog": true,
47+
"has_words": true,
48+
"validate_email": true,
49+
"open_web_template_values_editor": true,
50+
"validate_name": true,
51+
"validate_phone": true,
52+
"validate_url": true,
53+
"get_number_format": true,
54+
"format_number": true,
55+
"format_currency": true,
56+
"comment_when": true,
57+
"open_url_post": true,
58+
"toTitle": true,
59+
"lstrip": true,
60+
"rstrip": true,
61+
"strip": true,
62+
"strip_html": true,
63+
"replace_all": true,
64+
"flt": true,
65+
"precision": true,
66+
"CREATE": true,
67+
"AMEND": true,
68+
"CANCEL": true,
69+
"copy_dict": true,
70+
"get_number_format_info": true,
71+
"strip_number_groups": true,
72+
"print_table": true,
73+
"Layout": true,
74+
"web_form_settings": true,
75+
"$c": true,
76+
"$a": true,
77+
"$i": true,
78+
"$bg": true,
79+
"$y": true,
80+
"$c_obj": true,
81+
"refresh_many": true,
82+
"refresh_field": true,
83+
"toggle_field": true,
84+
"get_field_obj": true,
85+
"get_query_params": true,
86+
"unhide_field": true,
87+
"hide_field": true,
88+
"set_field_options": true,
89+
"getCookie": true,
90+
"getCookies": true,
91+
"get_url_arg": true,
92+
"md5": true,
93+
"$": true,
94+
"jQuery": true,
95+
"moment": true,
96+
"hljs": true,
97+
"Awesomplete": true,
98+
"Sortable": true,
99+
"Showdown": true,
100+
"Taggle": true,
101+
"Gantt": true,
102+
"Slick": true,
103+
"Webcam": true,
104+
"PhotoSwipe": true,
105+
"PhotoSwipeUI_Default": true,
106+
"io": true,
107+
"JsBarcode": true,
108+
"L": true,
109+
"Chart": true,
110+
"DataTable": true,
111+
"Cypress": true,
112+
"cy": true,
113+
"it": true,
114+
"describe": true,
115+
"expect": true,
116+
"context": true,
117+
"before": true,
118+
"beforeEach": true,
119+
"after": true,
120+
"qz": true,
121+
"localforage": true,
122+
"extend_cscript": true
123+
}
124+
}

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.DS_Store
2+
*.pyc
3+
*.egg-info
4+
*.swp
5+
tags
6+
node_modules
7+
__pycache__

.pre-commit-config.yaml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
exclude: 'node_modules|.git'
2+
default_stages: [commit]
3+
fail_fast: false
4+
5+
6+
repos:
7+
- repo: https://github.com/pre-commit/pre-commit-hooks
8+
rev: v4.3.0
9+
hooks:
10+
- id: trailing-whitespace
11+
files: "esign_app.*"
12+
exclude: ".*json$|.*txt$|.*csv|.*md|.*svg"
13+
- id: check-yaml
14+
- id: check-merge-conflict
15+
- id: check-ast
16+
- id: check-json
17+
- id: check-toml
18+
- id: check-yaml
19+
- id: debug-statements
20+
21+
- repo: https://github.com/astral-sh/ruff-pre-commit
22+
rev: v0.2.0
23+
hooks:
24+
- id: ruff
25+
name: "Run ruff linter and apply fixes"
26+
args: ["--fix"]
27+
28+
- id: ruff-format
29+
name: "Format Python code"
30+
31+
- repo: https://github.com/pre-commit/mirrors-prettier
32+
rev: v2.7.1
33+
hooks:
34+
- id: prettier
35+
types_or: [javascript, vue, scss]
36+
# Ignore any files that might contain jinja / bundles
37+
exclude: |
38+
(?x)^(
39+
esign_app/public/dist/.*|
40+
.*node_modules.*|
41+
.*boilerplate.*|
42+
esign_app/templates/includes/.*|
43+
esign_app/public/js/lib/.*
44+
)$
45+
46+
47+
- repo: https://github.com/pre-commit/mirrors-eslint
48+
rev: v8.44.0
49+
hooks:
50+
- id: eslint
51+
types_or: [javascript]
52+
args: ['--quiet']
53+
# Ignore any files that might contain jinja / bundles
54+
exclude: |
55+
(?x)^(
56+
esign_app/public/dist/.*|
57+
cypress/.*|
58+
.*node_modules.*|
59+
.*boilerplate.*|
60+
esign_app/templates/includes/.*|
61+
esign_app/public/js/lib/.*
62+
)$
63+
64+
ci:
65+
autoupdate_schedule: weekly
66+
skip: []
67+
submodules: false

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
### Esign App
2+
3+
Esign doc app
4+
5+
### Installation
6+
7+
You can install this app using the [bench](https://github.com/frappe/bench) CLI:
8+
9+
```bash
10+
cd $PATH_TO_YOUR_BENCH
11+
bench get-app $URL_OF_THIS_REPO --branch develop
12+
bench install-app esign_app
13+
```
14+
15+
### Contributing
16+
17+
This app uses `pre-commit` for code formatting and linting. Please [install pre-commit](https://pre-commit.com/#installation) and enable it for this repository:
18+
19+
```bash
20+
cd apps/esign_app
21+
pre-commit install
22+
```
23+
24+
Pre-commit is configured to use the following tools for checking and formatting your code:
25+
26+
- ruff
27+
- eslint
28+
- prettier
29+
- pyupgrade
30+
31+
### License
32+
33+
mit

esignDash/.env.production

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
VITE_BASE_PATH = 'esignDash'

esignDash/.eslintrc.cjs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
module.exports = {
2+
root: true,
3+
env: { browser: true, es2020: true },
4+
extends: [
5+
'eslint:recommended',
6+
'plugin:@typescript-eslint/recommended',
7+
'plugin:react-hooks/recommended',
8+
],
9+
ignorePatterns: ['dist', '.eslintrc.cjs'],
10+
parser: '@typescript-eslint/parser',
11+
plugins: ['react-refresh'],
12+
rules: {
13+
'react-refresh/only-export-components': [
14+
'warn',
15+
{ allowConstantExport: true },
16+
],
17+
},
18+
}

esignDash/.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

esignDash/README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# React + TypeScript + Vite
2+
3+
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4+
5+
Currently, two official plugins are available:
6+
7+
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8+
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
9+
10+
## Expanding the ESLint configuration
11+
12+
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
13+
14+
- Configure the top-level `parserOptions` property like this:
15+
16+
```js
17+
export default {
18+
// other rules...
19+
parserOptions: {
20+
ecmaVersion: 'latest',
21+
sourceType: 'module',
22+
project: ['./tsconfig.json', './tsconfig.node.json'],
23+
tsconfigRootDir: __dirname,
24+
},
25+
}
26+
```
27+
28+
- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
29+
- Optionally add `plugin:@typescript-eslint/stylistic-type-checked`
30+
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list

0 commit comments

Comments
 (0)