2 changed files with 82 additions and 82 deletions
@ -1,81 +1,86 @@ |
|||
# Complete ServiceTrade Tool Project |
|||
|
|||
|
|||
# ServiceTrade Toolbox |
|||
|
|||
A web application for interacting with ServiceTrade API, focusing on document management and workflow automation. |
|||
|
|||
## Project Structure |
|||
|
|||
```` . |
|||
├── apps |
|||
│ ├── cli |
|||
│ │ └── main.go |
|||
│ └── web |
|||
│ └── main.go |
|||
├── go.mod |
|||
├── go.sum |
|||
├── internal |
|||
│ ├── api |
|||
│ │ ├── api.go |
|||
│ │ ├── auth.go |
|||
│ │ ├── deficiencies.go |
|||
│ │ ├── invoices.go |
|||
│ │ ├── jobs.go |
|||
│ │ └── session_store.go |
|||
│ ├── auth |
|||
│ │ └── auth.go |
|||
│ ├── handlers |
|||
│ │ ├── cli |
|||
│ │ │ ├── admin.go |
|||
│ │ │ ├── assets.go |
|||
│ │ │ ├── companies.go |
|||
│ │ │ ├── contacts.go |
|||
│ │ │ ├── contracts.go |
|||
│ │ │ ├── generic.go |
|||
│ │ │ ├── invoices.go |
|||
│ │ │ ├── jobs.go |
|||
│ │ │ ├── locations.go |
|||
│ │ │ ├── login.go |
|||
│ │ │ ├── notifications.go |
|||
│ │ │ ├── quotes.go |
|||
│ │ │ ├── services.go |
|||
│ │ │ ├── tags.go |
|||
│ │ │ └── users.go |
|||
│ │ └── web |
|||
│ │ ├── admin.go |
|||
│ │ ├── assets.go |
|||
│ │ ├── companies.go |
|||
│ │ ├── contacts.go |
|||
│ │ ├── contracts.go |
|||
│ │ ├── dashboard.go |
|||
│ │ ├── generic.go |
|||
│ │ ├── invoices.go |
|||
│ │ ├── jobs.go |
|||
│ │ ├── locations.go |
|||
│ │ ├── login.go |
|||
│ │ ├── notifications.go |
|||
│ │ ├── quotes.go |
|||
│ │ ├── services.go |
|||
│ │ ├── tags.go |
|||
│ │ └── users.go |
|||
│ ├── middleware |
|||
│ │ └── auth_middleware.go |
|||
│ ├── models |
|||
│ │ └── models.go |
|||
│ ├── ui |
|||
│ │ └── ui.go |
|||
│ └── utils |
|||
│ └── utils.go |
|||
├── Readme.md |
|||
├── static |
|||
│ └── css |
|||
│ └── styles.css |
|||
└── templates |
|||
├── dashboard.html |
|||
├── layout.html |
|||
├── login.html |
|||
└── partials |
|||
├── admin.html |
|||
├── assets.html |
|||
├── companies.html |
|||
├── invoice_search.html |
|||
├── invoice_search_results.html |
|||
└── jobs.html |
|||
``` |
|||
```` |
|||
. |
|||
├── apps |
|||
│ └── web |
|||
│ └── main.go |
|||
├── go.mod |
|||
├── go.sum |
|||
├── internal |
|||
│ ├── api |
|||
│ │ ├── api.go |
|||
│ │ ├── attachments.go |
|||
│ │ ├── auth.go |
|||
│ │ ├── deficiencies.go |
|||
│ │ ├── invoices.go |
|||
│ │ ├── jobs.go |
|||
│ │ └── session_store.go |
|||
│ ├── handlers |
|||
│ │ └── web |
|||
│ │ ├── admin.go |
|||
│ │ ├── assets.go |
|||
│ │ ├── companies.go |
|||
│ │ ├── contacts.go |
|||
│ │ ├── contracts.go |
|||
│ │ ├── dashboard.go |
|||
│ │ ├── documents.go |
|||
│ │ ├── generic.go |
|||
│ │ ├── invoices.go |
|||
│ │ ├── jobs.go |
|||
│ │ ├── locations.go |
|||
│ │ ├── login.go |
|||
│ │ ├── notifications.go |
|||
│ │ ├── quotes.go |
|||
│ │ ├── services.go |
|||
│ │ ├── tags.go |
|||
│ │ └── users.go |
|||
│ └── middleware |
|||
│ └── auth_middleware.go |
|||
├── Readme.md |
|||
├── static |
|||
│ ├── css |
|||
│ │ └── styles.css |
|||
│ └── js |
|||
│ └── htmx.min.js |
|||
└── templates |
|||
├── dashboard.html |
|||
├── layout.html |
|||
├── login.html |
|||
└── partials |
|||
├── admin.html |
|||
├── assets.html |
|||
├── companies.html |
|||
├── document_upload.html |
|||
├── document_remove.html |
|||
├── document_job_selection.html |
|||
├── document_attachments.html |
|||
├── document_bulk_remove.html |
|||
├── invoice_search.html |
|||
├── invoice_search_results.html |
|||
└── jobs.html |
|||
``` |
|||
|
|||
## Features |
|||
|
|||
- **Authentication**: Secure login and session management with ServiceTrade API |
|||
- **Document Management**: Upload and manage documents across multiple jobs |
|||
- Supports large file uploads with efficient streaming |
|||
- Batch document processing with CSV job ID imports |
|||
- Document removal tools |
|||
- **Invoice Processing**: View and update invoice statuses |
|||
- **Job Management**: Search and view job information |
|||
|
|||
## Server Configuration |
|||
|
|||
The server is configured with generous timeouts to support large file uploads: |
|||
- Read timeout: 30 minutes |
|||
- Write timeout: 30 minutes |
|||
- Idle timeout: 2 minutes |
|||
@ -1,5 +0,0 @@ |
|||
{{define "document_upload"}} |
|||
<h2>Document Uploads</h2> |
|||
{{template "job_search_inputs"}} |
|||
{{template "job_search_results"}} |
|||
{{end}} |
|||
Loading…
Reference in new issue