Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
f5838be
Trigger hack
ross-spencer Sep 21, 2020
e71542f
Additional logging
ross-spencer Sep 22, 2020
d16950a
Add PHP component back into the codebase
ross-spencer Sep 27, 2020
f94689f
Bootstrap utility 1.0 into 2.0
ross-spencer Sep 27, 2020
34d7569
Replace 0.0.0.0 for localhost
ross-spencer Sep 27, 2020
7309bc9
Update README and docs
ross-spencer Sep 27, 2020
536763e
Fix form fields
ross-spencer Sep 28, 2020
d366c4d
Update filename output
ross-spencer Sep 28, 2020
e5b1175
Correct Variable form field handling
ross-spencer Sep 29, 2020
8d0fe61
Remove redundant code and reset fields
ross-spencer Oct 2, 2020
85efed6
Condense layout a little more
ross-spencer Oct 2, 2020
66d3cd2
Removes the upper case default on container seqs
ross-spencer Oct 5, 2020
d67ad0f
Add WASM Roy
ross-spencer Oct 1, 2025
549cf69
Add .vscode/settings.json
ross-spencer Oct 1, 2025
3358adf
Update .gitignore
ross-spencer Oct 1, 2025
64402f4
Add go.mod and go.sum
ross-spencer Oct 1, 2025
9457fdb
Convert utility to dark mode
ross-spencer Oct 1, 2025
1db7549
Enable dynamic signature file version
ross-spencer Oct 1, 2025
3922d7c
Add pre-commit
ross-spencer Oct 1, 2025
ef6b616
Fixup URLs
ross-spencer Oct 2, 2025
41849f5
Apply pre-commit changes to files
ross-spencer Oct 2, 2025
167d58e
Convert line-endings to LF
ross-spencer Oct 2, 2025
d34b2a0
Update README
ross-spencer Oct 2, 2025
9365d07
Update about links
ross-spencer Oct 2, 2025
befb039
Format HTML
ross-spencer Oct 2, 2025
adc76c5
Add server commands to justfile
ross-spencer Oct 2, 2025
ffd4481
Correct tabs full-scroll issue
ross-spencer Oct 2, 2025
15fe7e4
Add links to HTML and improve formatting
ross-spencer Oct 3, 2025
66b69f8
Improve HTML spacing
ross-spencer Oct 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .codespellignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rouge
9 changes: 9 additions & 0 deletions .codespellrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[codespell]
skip =
*.po,
*.ts,
tests/*
count =
quiet-level = 3
ignore-words-list =
placeholder
21 changes: 21 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# EditorConfig: https://EditorConfig.org. Provides sensible defaults for
# non vscode editors.

# top-most EditorConfig file
root = true

# Every file.
[*]
charset = "utf8"
end_of_line = lf
insert_final_newline = true

indent_style = space
indent_size = 4

trim_trailing_whitespace = true

# Python. (Duplicates used as placeholders)
[*.py]
indent_style = space
indent_size = 4
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
*.crt
*.key
*.csr
sigdev
signature-development-utility
8 changes: 8 additions & 0 deletions .markdownlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
default: true

# Two headings in the file.
MD025: False

# Line-length.
MD013: False
Empty file added .markdownlintignore
Empty file.
25 changes: 25 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
- id: check-json
- id: check-toml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-case-conflict
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.35.0
hooks:
- id: markdownlint
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: codespell
args: [-I, .codespellignore]
exclude: >
(?x)^(
.*\.js|
.*\.css|
.*\.php|
)$
41 changes: 41 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"editor.insertSpaces": true,
"editor.tabSize": 4,
"editor.rulers": [
79
],
"editor.detectIndentation": false,
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"git.inputValidationSubjectLength": 50,
"git.inputValidationLength": 72,
"[git-commit]": {
"editor.rulers": [
50,
72
]
},
"[python]": {
"editor.rulers": [
72,
79,
120
],
"editor.formatOnSave": true,
"editor.defaultFormatter": "ms-python.black-formatter"
},
"[go]": {
"editor.rulers": [
72,
79
]
},
"[markdown]": {
"editor.rulers": [80]
},
"[makefile]": {
"editor.insertSpaces": false,
"editor.tabSize": 4
},
"files.eol": "\n"
}
31 changes: 28 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,32 @@ signature workflow. It has also been written so that new features can be
developed easier as I tend not to write in PHP anymore. There is more
information at [ffdev.info][ffdev-1].

## Legacy version...
### Installation

The current version bootstrapped to the PHP back-end of Signature development
utility 1.0 for standard signatures. You can run this code by building the go
component:

* `go build`

And then running it:

* `./signature-development-utility -port [optional]`

Without a port defined you'll be able to access the utility on port `8080`.

To run the PHP server, you first need to install `php-dom` with
`sudo apt-get install php-dom`.

And then to run up the server: `php -S localhost:8000`

#### Custom ports

You can also run this using custom ports e.g.

* `./signature-development-utility -port 80 -bootstrap 8000`

## Legacy version

The first iteration of this application is hosted by
[The National Archives][tna-1] and mirrored on [my own site][expo-1]. It is
Expand All @@ -32,7 +57,7 @@ hope to be working on.
[droid-1]: http://www.nationalarchives.gov.uk/information-management/manage-information/preserving-digital-records/droid/
[tna-1]: http://www.nationalarchives.gov.uk/pronom/sigdev/index.htm
[expo-1]: http://exponentialdecay.co.uk/sd/index.htm
[issues-1]: https://github.com/exponential-decay/signature-development-utility/issues
[issues-1]: https://github.com/ffdev-info/signature-development-utility/issues
[coptr-1]: http://coptr.digipres.org/PRONOM_Signature_Development_Utility
[ffdev-1]: http://ffdev.info
[gh-1]: https://github.com/exponential-decay/signature-development-utility/releases/tag/1.0
[gh-1]: https://github.com/ffdev-info/signature-development-utility/releases/tag/1.0
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/ffdev-info/signature-development-utility

go 1.23.5
25 changes: 25 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# CLI helpers

# Help
help:
@just -l

# Run all pre-commit checks
all-checks:
pre-commit run --all-files

# Setup pre-commit
setup:
pre-commit install --install-hooks # uninstall: `pre-commit uninstall`

# Remove pre-commit
teardown:
pre-commit uninstall

# Run go server
goserver:
./signature-development-utility -port 8001

# Run PHP server
phpserver:
php -S localhost:8000
Loading