Compare commits
2 Commits
e151c7752a
...
140e3bf538
Author | SHA1 | Date |
---|---|---|
Tyler Perkins | 140e3bf538 | |
Tyler Perkins | 2d36b63694 |
|
@ -312,4 +312,3 @@ dist
|
||||||
.yarn/build-state.yml
|
.yarn/build-state.yml
|
||||||
.yarn/install-state.gz
|
.yarn/install-state.gz
|
||||||
.pnp.*
|
.pnp.*
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,26 @@
|
||||||
|
# See https://pre-commit.com for more information
|
||||||
|
# See https://pre-commit.com/hooks.html for more hooks
|
||||||
|
repos:
|
||||||
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
|
rev: v3.2.0
|
||||||
|
hooks:
|
||||||
|
- id: trailing-whitespace
|
||||||
|
- id: end-of-file-fixer
|
||||||
|
- id: check-yaml
|
||||||
|
- id: check-xml
|
||||||
|
- id: check-json
|
||||||
|
- id: check-toml
|
||||||
|
- id: check-added-large-files
|
||||||
|
- id: check-case-conflict
|
||||||
|
- id: pretty-format-json
|
||||||
|
- id: check-symlinks
|
||||||
|
- id: detect-private-key
|
||||||
|
- id: sort-simple-yaml
|
||||||
|
- repo: https://github.com/Lucas-C/pre-commit-hooks
|
||||||
|
rev: v1.5.4
|
||||||
|
hooks:
|
||||||
|
- id: remove-crlf
|
||||||
|
- repo: https://github.com/python-jsonschema/check-jsonschema
|
||||||
|
rev: 0.27.2
|
||||||
|
hooks:
|
||||||
|
- id: check-drone-ci
|
|
@ -0,0 +1,126 @@
|
||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# Generic script to setup the repository for local development
|
||||||
|
|
||||||
|
echo "Installing pre-commit"
|
||||||
|
pip install pre-commit
|
||||||
|
pre-commit install
|
||||||
|
|
||||||
|
echo "Installing commit-msg"
|
||||||
|
|
||||||
|
HOOK_LOCATION=".git/hooks/commit-msg"
|
||||||
|
VERB_LOCATION=".git/hooks/verbs.txt"
|
||||||
|
|
||||||
|
cat << 'EOF' > "$HOOK_LOCATION"
|
||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# Git hook to check for semantic commit messages in the form mentioned here
|
||||||
|
|
||||||
|
export VERB=$(cut -d ' ' -f1 < "$1")
|
||||||
|
(grep "$VERB" .git/hooks/verbs.txt > /dev/null) || (echo "Missing a verb"; exit 1)
|
||||||
|
EOF
|
||||||
|
|
||||||
|
chmod +x $HOOK_LOCATION
|
||||||
|
|
||||||
|
cat << 'EOF' > "$VERB_LOCATION"
|
||||||
|
Add
|
||||||
|
Update
|
||||||
|
Fix
|
||||||
|
Refactor
|
||||||
|
Remove
|
||||||
|
Implement
|
||||||
|
Enhance
|
||||||
|
Optimize
|
||||||
|
Revise
|
||||||
|
Adjust
|
||||||
|
Modify
|
||||||
|
Rewrite
|
||||||
|
Improve
|
||||||
|
Correct
|
||||||
|
Debug
|
||||||
|
Delete
|
||||||
|
Replace
|
||||||
|
Create
|
||||||
|
Design
|
||||||
|
Develop
|
||||||
|
Build
|
||||||
|
Configure
|
||||||
|
Resolve
|
||||||
|
Patch
|
||||||
|
Extend
|
||||||
|
Reduce
|
||||||
|
Increase
|
||||||
|
Simplify
|
||||||
|
Merge
|
||||||
|
Split
|
||||||
|
Release
|
||||||
|
Deploy
|
||||||
|
Test
|
||||||
|
Validate
|
||||||
|
Format
|
||||||
|
Organize
|
||||||
|
Reorganize
|
||||||
|
Rename
|
||||||
|
Repackage
|
||||||
|
Refine
|
||||||
|
Rework
|
||||||
|
Expand
|
||||||
|
Collapse
|
||||||
|
Integrate
|
||||||
|
Extract
|
||||||
|
Introduce
|
||||||
|
Finalize
|
||||||
|
Prepare
|
||||||
|
Generate
|
||||||
|
Convert
|
||||||
|
Upload
|
||||||
|
Download
|
||||||
|
Sync
|
||||||
|
Encrypt
|
||||||
|
Decrypt
|
||||||
|
Authenticate
|
||||||
|
Authorize
|
||||||
|
Invalidate
|
||||||
|
Sanitize
|
||||||
|
Analyze
|
||||||
|
Inspect
|
||||||
|
Probe
|
||||||
|
Examine
|
||||||
|
Index
|
||||||
|
Compress
|
||||||
|
Decompress
|
||||||
|
Archive
|
||||||
|
Restore
|
||||||
|
Save
|
||||||
|
Load
|
||||||
|
Export
|
||||||
|
Import
|
||||||
|
Visualize
|
||||||
|
Illustrate
|
||||||
|
Diagram
|
||||||
|
Plot
|
||||||
|
Map
|
||||||
|
Scan
|
||||||
|
Seek
|
||||||
|
Find
|
||||||
|
Discover
|
||||||
|
Track
|
||||||
|
Monitor
|
||||||
|
Observe
|
||||||
|
Watch
|
||||||
|
Alert
|
||||||
|
Notify
|
||||||
|
Log
|
||||||
|
Record
|
||||||
|
Report
|
||||||
|
Summarize
|
||||||
|
Detail
|
||||||
|
Document
|
||||||
|
Annotate
|
||||||
|
Comment
|
||||||
|
Explain
|
||||||
|
Clarify
|
||||||
|
Define
|
||||||
|
Enumerate
|
||||||
|
Stabilize
|
||||||
|
EOF
|
|
@ -0,0 +1,35 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>Simple Form with reCAPTCHA</title>
|
||||||
|
<!-- Load reCAPTCHA script -->
|
||||||
|
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
|
||||||
|
<script>
|
||||||
|
function onSubmit(token) {
|
||||||
|
document.getElementById("demo-form").submit();
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<form id="demo-form" action="submit_form.php" method="POST">
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="name">Name:</label>
|
||||||
|
<input type="text" id="name" name="name" required>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="email">Email:</label>
|
||||||
|
<input type="email" id="email" name="email" required>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- reCAPTCHA widget -->
|
||||||
|
<!--<div class="g-recaptcha" data-sitekey="6LdFRyYpAAAAAMas7osDpxN8Ke8FavgVBvfCCk6P"></div>-->
|
||||||
|
<button class="g-recaptcha" data-sitekey="6LdFRyYpAAAAAMas7osDpxN8Ke8FavgVBvfCCk6P"></button>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
|
||||||
|
python -m http.server
|
Loading…
Reference in New Issue