mirror of
https://github.com/btouchard/ackify-ce.git
synced 2026-02-09 07:18:36 -06:00
Major refactoring to modernize the application architecture: Backend changes: - Restructure API with v1 versioning and modular handlers - Add comprehensive OpenAPI specification - Implement RESTful endpoints for documents, signatures, admin - Add checksum verification system for document integrity - Add server-side runtime injection of ACKIFY_BASE_URL and meta tags - Generate dynamic Open Graph/Twitter Card meta tags for unfurling - Remove legacy HTML template handlers - Isolate backend source on dedicated folder - Improve tests suite Frontend changes: - Migrate from Go templates to Vue.js 3 SPA with TypeScript - Add Tailwind CSS with shadcn/vue components - Implement i18n support (fr, en, es, de, it) - Add admin dashboard for document and signer management - Add signature tracking with file checksum verification - Add embed page with sign button linking to main app - Implement dark mode and accessibility features - Auto load file to compute checksum Infrastructure: - Update Dockerfile for SPA build process - Simplify deployment with embedded frontend assets - Add migration for checksum_verifications table This enables better UX, proper link previews on social platforms, and provides a foundation for future enhancements.
17 lines
671 B
Go
17 lines
671 B
Go
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
package models
|
|
|
|
import "errors"
|
|
|
|
var (
|
|
ErrSignatureNotFound = errors.New("signature not found")
|
|
ErrSignatureAlreadyExists = errors.New("signature already exists")
|
|
ErrInvalidUser = errors.New("invalid user")
|
|
ErrInvalidDocument = errors.New("invalid document ID")
|
|
ErrDatabaseConnection = errors.New("database connection error")
|
|
ErrUnauthorized = errors.New("unauthorized")
|
|
ErrDomainNotAllowed = errors.New("domain not allowed")
|
|
ErrDocumentModified = errors.New("document has been modified since creation")
|
|
ErrDocumentNotFound = errors.New("document not found")
|
|
)
|