Skip to content
Open
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
ea7bd03
Added migration for letter_templates table
DietBepis1 Aug 17, 2024
fa3dcb6
Updated models
DietBepis1 Aug 18, 2024
e50ae88
More work on backend
DietBepis1 Aug 22, 2024
5b28ecd
Added new seed data for development
DietBepis1 Aug 31, 2024
7947f68
Added new handlebars renderer and rendering endpoint
DietBepis1 Sep 2, 2024
beafe0b
More work on rendering
DietBepis1 Sep 3, 2024
adebb81
Tweaks to letter formatting
DietBepis1 Sep 12, 2024
4291d82
Finished functionality for rendering mail body
DietBepis1 Dec 15, 2024
3d81b77
Added delivery method
DietBepis1 Dec 16, 2024
c299a47
Added support for free donations
DietBepis1 Dec 17, 2024
4a30a9b
formatting
DietBepis1 Dec 17, 2024
d22d96d
Removed orphaned </div>
DietBepis1 Dec 17, 2024
05880ac
Merge pull request #1007 from OpenSourceFellows/email_feature_part_1
DietBepis1 Dec 17, 2024
e652fd5
Fixed non-nullable migration value
DietBepis1 Dec 18, 2024
a0e112c
Merge pull request #1011 from OpenSourceFellows/migration_fix
DietBepis1 Dec 18, 2024
f566d82
One more non-nullable fix
DietBepis1 Dec 18, 2024
c86eef2
Merge pull request #1013 from OpenSourceFellows/migration_fix
DietBepis1 Dec 18, 2024
ca17fa3
More fixes
DietBepis1 Dec 18, 2024
f89e871
Merge pull request #1014 from OpenSourceFellows/migration_fix
DietBepis1 Dec 18, 2024
bb672b5
Updated seed data, some minor letter rendering changes
DietBepis1 Dec 18, 2024
546b7fb
Merge pull request #1015 from OpenSourceFellows/equality_labs_fine_tu…
DietBepis1 Dec 18, 2024
80e7d7a
Fixed name issue
DietBepis1 Dec 18, 2024
2e7d319
Merge pull request #1016 from OpenSourceFellows/letter_name_fix
DietBepis1 Dec 18, 2024
3b613c2
Made images on landing page optional
DietBepis1 Dec 20, 2024
ea67c34
Merge pull request #1017 from OpenSourceFellows/optional_landing_images
DietBepis1 Dec 20, 2024
561dd8a
Added seed data for pueblo action alliance
DietBepis1 Mar 9, 2025
6427cb4
linting
DietBepis1 Mar 9, 2025
f96b98f
Merge pull request #1023 from OpenSourceFellows/remove_landing_page
DietBepis1 Mar 9, 2025
e347e67
criando uma pr
wellonlywell Jun 11, 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
9 changes: 7 additions & 2 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,14 @@ TWILIO_AUTH_TOKEN=TWILIO_SECRET_KEY
# **We always run in single-campaign mode now so this is mandatory!**
# Use campaign seeder file for local dev campaigns.
VUE_APP_CAMPAIGN_MODE=single
VUE_APP_FEATURED_CAMPAIGN=1
VUE_APP_FEATURED_CAMPAIGN=3

VUE_APP_EMPTY_TRANSACTIONS=off
VUE_APP_SHOW_EXT_DONATION=false
VUE_APP_EXT_DONATION_URL=
VUE_APP_NO_COST_MAIL=false

POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_PORT=5432
POSTGRES_HOST=amplify_db
POSTGRES_HOST=amplify_db
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ package-lock.json
.env.test
.env.local
.env.*.local
.env.test

# Log files
npm-debug.log*
Expand Down
166 changes: 143 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
"@fortawesome/free-regular-svg-icons": "^6.2.0",
"@fortawesome/free-solid-svg-icons": "^6.2.0",
"@fortawesome/vue-fontawesome": "^2.0.8",
"@sendgrid/client": "^8.1.3",
"@sendgrid/mail": "^8.1.3",
"@stripe/stripe-js": "^1.35.0",
"@vue-stripe/vue-stripe": "^4.4.4",
"axios": "^0.27.2",
Expand All @@ -60,6 +62,7 @@
"express": "^4.18.1",
"express-jwt": "^8.4.0",
"express-rate-limit": "^6.6.0",
"handlebars": "^4.7.8",
"jwks-rsa": "^2.1.4",
"knex": "^2.4.2",
"lob": "^6.6.3",
Expand Down
26 changes: 26 additions & 0 deletions script/send-letters.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
const axios = require('axios')
const letterData = require('./catchup.js')

;(async () => {
const data = JSON.parse(letterData)

for (const transaction of data) {
try {
const response = await axios.post(
'https://amplify-hooks-0194518485a8.herokuapp.com/api/checkout/process-transaction',
{
data: {
object: {
id: transaction.stripe_id
}
},
type: 'payment_intent.succeeded'
}
)

if (response.statusCode == 201) console.log(transaction.stripe_id)
} catch (error) {
console.error(error)
}
}
})()
Loading
Loading