Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
038856e179 | |||
16b291f9c0 | |||
efa6ca215e | |||
1d792f96bb |
@ -1,6 +1,6 @@
|
|||||||
# Package
|
# Package
|
||||||
|
|
||||||
version = "0.2.0"
|
version = "0.2.1"
|
||||||
author = "Jonathan Bernard"
|
author = "Jonathan Bernard"
|
||||||
description = "Hope Family Fellowship entry forms."
|
description = "Hope Family Fellowship entry forms."
|
||||||
license = "GPL-3.0-or-later"
|
license = "GPL-3.0-or-later"
|
||||||
|
@ -7,6 +7,7 @@ type
|
|||||||
purpose*: string
|
purpose*: string
|
||||||
department*: string
|
department*: string
|
||||||
owner*: string
|
owner*: string
|
||||||
|
location*: string
|
||||||
date*: DateTime
|
date*: DateTime
|
||||||
budgetInDollars*: int
|
budgetInDollars*: int
|
||||||
|
|
||||||
@ -41,6 +42,7 @@ proc parseEventProposal*(n: JsonNode): EventProposal {.raises: [JsonParsingError
|
|||||||
description: n.getOrFail("description").getStr,
|
description: n.getOrFail("description").getStr,
|
||||||
purpose: n.getOrFail("purpose").getStr,
|
purpose: n.getOrFail("purpose").getStr,
|
||||||
department: n.getOrFail("department").getStr,
|
department: n.getOrFail("department").getStr,
|
||||||
|
location: n.getOrFail("location").getStr,
|
||||||
owner: n.getOrFail("owner").getStr,
|
owner: n.getOrFail("owner").getStr,
|
||||||
date: n.parseIso8601("date"),
|
date: n.parseIso8601("date"),
|
||||||
budgetInDollars: n.getOrFail("budgetInDollars").getInt)
|
budgetInDollars: n.getOrFail("budgetInDollars").getInt)
|
||||||
@ -53,7 +55,7 @@ proc asNotionPage*(ep: EventProposal): JsonNode =
|
|||||||
"Event": { "title": textProp(ep.name) },
|
"Event": { "title": textProp(ep.name) },
|
||||||
"Date": { "date": { "start": formatIso8601(ep.date) } },
|
"Date": { "date": { "start": formatIso8601(ep.date) } },
|
||||||
"Department": { "multi_select": [ { "name": ep.department } ] },
|
"Department": { "multi_select": [ { "name": ep.department } ] },
|
||||||
"Location": { "rich_text": textProp("") },
|
"Location": { "rich_text": textProp(ep.location) },
|
||||||
"Owner": { "rich_text": textProp(ep.owner) },
|
"Owner": { "rich_text": textProp(ep.owner) },
|
||||||
"State": { "select": { "name": "Proposed" } }
|
"State": { "select": { "name": "Proposed" } }
|
||||||
},
|
},
|
||||||
|
@ -1 +1 @@
|
|||||||
const HFF_ENTRY_FORMS_API_VERSION* = "0.2.0"
|
const HFF_ENTRY_FORMS_API_VERSION* = "0.2.1"
|
28
operations/invalidate-cdn-cache.sh
Executable file
28
operations/invalidate-cdn-cache.sh
Executable file
@ -0,0 +1,28 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
echo "Looking up CloudFront distribution ID for HFF Entry Forms ${TARGET_ENV} environment."
|
||||||
|
cloudfront_distribution_id=$(\
|
||||||
|
aws cloudfront list-distributions \
|
||||||
|
--query "DistributionList.Items[?starts_with(Comment, 'HFF Entry Forms ${TARGET_ENV}')].Id | [0]" \
|
||||||
|
| sed -e 's/^"//' -e 's/"$//'
|
||||||
|
)
|
||||||
|
|
||||||
|
if [[ -z "${cloudfront_distribution_id}" ]]; then
|
||||||
|
>&2 echo "Unable to find CloudFront distribution for domain ${TARGET_ENV}."
|
||||||
|
exit 3
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Found distribution ID ${cloudfront_distribution_id}."
|
||||||
|
|
||||||
|
echo "Invalidating the CloudFront cache for ${TARGET_ENV}."
|
||||||
|
invalidation_id=$(aws cloudfront create-invalidation \
|
||||||
|
--query 'Invalidation.Id' \
|
||||||
|
--distribution-id "${cloudfront_distribution_id}" \
|
||||||
|
--paths '/index.html')
|
||||||
|
|
||||||
|
if [[ $? -ne 0 || -z "${invalidation_id}" ]]; then
|
||||||
|
>&2 echo "Unable to create the CloudFront invalidation."
|
||||||
|
else
|
||||||
|
echo "Successfully created invalidation ${invalidation_id}."
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Done."
|
@ -53,7 +53,7 @@ sed -i "s/${lastVersion}/${newVersion}/" api/hff_entry_forms_api.nimble
|
|||||||
|
|
||||||
printf ">> Committing new version.\n"
|
printf ">> Committing new version.\n"
|
||||||
printf "git add web/package.json web/package-lock.json api/src/hff_entry_forms_apipkg/version.nim"
|
printf "git add web/package.json web/package-lock.json api/src/hff_entry_forms_apipkg/version.nim"
|
||||||
git add web/package.json web/package-lock.json api/src/hff_entry_forms_apipkg/version.nimnim api/hff_entry_forms_api.nimble
|
git add web/package.json web/package-lock.json api/src/hff_entry_forms_apipkg/version.nim api/hff_entry_forms_api.nimble
|
||||||
printf "git commit -m \"Update package version to %s\"\n" "$newVersion"
|
printf "git commit -m \"Update package version to %s\"\n" "$newVersion"
|
||||||
git commit -m "Update package version to ${newVersion}"
|
git commit -m "Update package version to ${newVersion}"
|
||||||
|
|
||||||
|
2
web/.env.development
Normal file
2
web/.env.development
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
NODE_ENV=production
|
||||||
|
VUE_APP_API_BASE_URL=https://forms-api-dev.hopefamilyfellowship.com/v1/
|
2
web/package-lock.json
generated
2
web/package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hff-entry-form-web",
|
"name": "hff-entry-form-web",
|
||||||
"version": "0.2.0",
|
"version": "0.2.1",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "hff-entry-form-web",
|
"name": "hff-entry-form-web",
|
||||||
"version": "0.2.0",
|
"version": "0.2.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"serve": "npx servor dist",
|
"serve": "npx servor dist",
|
||||||
"build": "vue-cli-service build",
|
"build": "vue-cli-service build",
|
||||||
"build-local": "vue-cli-service build --mode development",
|
"build-dev": "vue-cli-service build --mode development",
|
||||||
|
"build-prod": "vue-cli-service build --mode production",
|
||||||
"lint": "vue-cli-service lint",
|
"lint": "vue-cli-service lint",
|
||||||
"vue-serve": "vue-cli-service serve"
|
"vue-serve": "vue-cli-service serve"
|
||||||
},
|
},
|
||||||
|
@ -21,9 +21,9 @@
|
|||||||
<input type="date" name="date" v-model="formVal.event.date" />
|
<input type="date" name="date" v-model="formVal.event.date" />
|
||||||
</label>
|
</label>
|
||||||
<label>
|
<label>
|
||||||
<span>Department</span>
|
<span>Department / Event Type</span>
|
||||||
<select name="department" v-model="formVal.event.department">
|
<select name="department" v-model="formVal.event.department">
|
||||||
<option value="">--- select a department ---</option>
|
<option value="">--- select a department or type ---</option>
|
||||||
<option
|
<option
|
||||||
v-for="opt in departments"
|
v-for="opt in departments"
|
||||||
:key="opt.value"
|
:key="opt.value"
|
||||||
|
Reference in New Issue
Block a user