Immanuel Onyeka
784e9099ee
Run go `go fmt` to correct spacing.
1 vuosi sitten
Immanuel Onyeka
846034c11a
Display registration errors to user
1 vuosi sitten
Immanuel Onyeka
3152ff716d
Access main Grav site through Go reverse proxy
To make requests to Go API endpoints for registration from a PHP page,
there needs to be local routing between the two servers. This method
avoids needing Apache installed seperately for development builds while
allowing it to still be used in production if necessary.
1 vuosi sitten
Immanuel Onyeka
826a356432
Prevent new users from being administrators
Secures the user registration endpoint.
1 vuosi sitten
Immanuel Onyeka
2eafce7af8
Style registration components
1 vuosi sitten
Immanuel Onyeka
f03c6cdaaf
Create account registration fields
1 vuosi sitten
Immanuel Onyeka
cbe0f3b8a7
Setup webpack entry point for vue components
A new template file needed to be created to allow custom javascript in
a grav page. The JS file will mount the transpiled Vue app.
1 vuosi sitten
Immanuel Onyeka
de18ccb4d0
Style home page
1 vuosi sitten
Immanuel Onyeka
858c572cda
Create basic site layout
1 vuosi sitten
Immanuel Onyeka
8b3448a360
Setup grav
Store only files relevant to the project by tracking only the user/
directory.
1 vuosi sitten
Immanuel Onyeka
ea8b32df2e
Correct letterhead rendering when avatar is missing
1 vuosi sitten
Immanuel Onyeka
bb1f7eaa70
Delete templates with remove button in view
1 vuosi sitten
Immanuel Onyeka
94390b1aa3
List and display template details in view
1 vuosi sitten
Immanuel Onyeka
48fa487fea
Handle missing avatar and letterhead in PDF
1 vuosi sitten
Immanuel Onyeka
27de7ea416
Allow users to delete saved estimates
1 vuosi sitten
Immanuel Onyeka
0313364069
Use images in PDF only if the user has uploaded them
1 vuosi sitten
Immanuel Onyeka
69009f286f
Make dollar amounts more readable
1 vuosi sitten
Immanuel Onyeka
67479195e2
Fix monthly MI calculation
1 vuosi sitten
Immanuel Onyeka
7ce7c9300e
Calculate new estimate results server side
1 vuosi sitten
Immanuel Onyeka
87fba7a7f0
Comma format dollar amounts in PDF
1 vuosi sitten
Immanuel Onyeka
b10b1919a2
Download PDFs from estimate view
1 vuosi sitten
Immanuel Onyeka
536ca8ee87
Assign first two seed estimates to test user
1 vuosi sitten
Immanuel Onyeka
166123d50f
Remove old seed script
1 vuosi sitten
Immanuel Onyeka
274ea0581d
Fix duplicate loan_id error
At most one result should exist for each loan stored but not redeclaring
the 'estimate' variable within the seed loop caused the loan entries of
the first estimate to be copied onto the second, which caused an error
while seeding result entries.
1 vuosi sitten
Immanuel Onyeka
6dad31be22
Fix row decleration bug
1 vuosi sitten
Immanuel Onyeka
f26b39f093
Add functions for seeding estimates in dev
2 vuotta sitten
Immanuel Onyeka
fb64597116
Add insert and select queries for user licenses
2 vuotta sitten
Immanuel Onyeka
987090a927
Create CLI command for reseting database
Also seperate stages of seeding into other functions.
2 vuotta sitten
Immanuel Onyeka
3b00be6374
Create sample users in seed function
2 vuotta sitten
Immanuel Onyeka
14efd4937b
Add seed function for addresses and branches
2 vuotta sitten
Immanuel Onyeka
d4a5e4cc4d
Remove vue component for PDF generation
Also structure CLI functions to allow for `skouter dev seed` command.
2 vuotta sitten
Immanuel Onyeka
580c0515a7
Render and style summary pages of reports
Summary component was moved to master.tpl because sub-template calls
allow only one argument to be passed. Passing info for both Estimate and
Loan structs dynamically would involve looping during template
execution, or calling a custom function to restructure the estimate,
which are all too complicated.
2 vuotta sitten
Immanuel Onyeka
1932ac1c38
correct file misnaming
2 vuotta sitten
Immanuel Onyeka
bf0a017836
Split sections into seperate template files
Split comparison, summary, and header sections into seperate files to
reuse headers more easily and make future changes easier.
2 vuotta sitten
Immanuel Onyeka
cae74385dd
Style report table
2 vuotta sitten
Immanuel Onyeka
def8d767f2
Cache report view at startup
2 vuotta sitten
Immanuel Onyeka
3b66fe413a
Make Result an attribute of Loan type
Move Result attribute from Estimate to it's related Loan to make it's
meaning less confusing.
2 vuotta sitten
Immanuel Onyeka
ba9522a883
Generate PDF with os/exec process instead of js
the htmltopdf.js library renders all PDF text as images instead of
vectors, and Go does not have a reliable native library for generating
PDFs that is actively maintained. The best solution appears to be to
make a system call to wkhtmltopdf, but now there is a hidden package
dependency that is not checked at build time and exists in another
process. Maybe in the future a C library can be used and linked with the
Go binary.
2 vuotta sitten
Immanuel Onyeka
e77294f777
Save changed user address in database
2 vuotta sitten
Immanuel Onyeka
1d7163f5ae
Render and select address from dropdown
2 vuotta sitten
Immanuel Onyeka
6566e1a4e9
Fix type and syntax errors
2 vuotta sitten
Immanuel Onyeka
4f16ba3e95
List env variables in readme
2 vuotta sitten
Immanuel Onyeka
e9547b9df8
Use environment variables instead of config file
Using a config file is not necessary and may be confusing.
Also add address and phone number of User and Branch structs.
2 vuotta sitten
Immanuel Onyeka
ad233f81f2
Fix bug caused by empty avatar field
An empty avatar caused a request for the default icon to be fetched,
which caused the request for the user's letterhead to not be made.
2 vuotta sitten
Immanuel Onyeka
a2364d8340
Add address and phone number to user and branch
Update the database tables for user and branch to give more information
required for PDF generation. Also set up a test component to preview
change to the view during development. It will be reconfigured once the
genrated PDF is satisfactory.
2 vuotta sitten
Immanuel Onyeka
308bfb87a9
Create mockup html for PDF generation
vue-html2pdf appears unmaintained and hacky so it's being avoided.
2 vuotta sitten
Immanuel Onyeka
03fc18ff7b
Use composition API in sidebar.vue
2 vuotta sitten
Immanuel Onyeka
b3599fbe0e
Add password reset endpoint
2 vuotta sitten
Immanuel Onyeka
24f34e47db
Allow password reset requests from settings.vue
2 vuotta sitten
Immanuel Onyeka
268227203f
Cancel token refresh if it is currently invalid
2 vuotta sitten