Skip to content

Commit

Permalink
added amplify
Browse files Browse the repository at this point in the history
  • Loading branch information
camronh committed Jun 27, 2022
1 parent 301d25d commit 7d4b157
Show file tree
Hide file tree
Showing 10 changed files with 150 additions and 0 deletions.
21 changes: 21 additions & 0 deletions frontend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,24 @@ pnpm-debug.log*
*.njsproj
*.sln
*.sw?

#amplify-do-not-edit-begin
amplify/\#current-cloud-backend
amplify/.config/local-*
amplify/logs
amplify/mock-data
amplify/backend/amplify-meta.json
amplify/backend/.temp
build/
dist/
node_modules/
aws-exports.js
awsconfiguration.json
amplifyconfiguration.json
amplifyconfiguration.dart
amplify-build-config.json
amplify-gradle-config.json
amplifytools.xcconfig
.secret-*
**.sample
#amplify-do-not-edit-end
17 changes: 17 additions & 0 deletions frontend/amplify/.config/project-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"projectName": "frontend",
"version": "3.1",
"frontend": "javascript",
"javascript": {
"framework": "vue",
"config": {
"SourceDir": "src",
"DistributionDir": "dist",
"BuildCommand": "npm run-script build",
"StartCommand": "npm run-script serve"
}
},
"providers": [
"awscloudformation"
]
}
8 changes: 8 additions & 0 deletions frontend/amplify/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Getting Started with Amplify CLI
This directory was generated by [Amplify CLI](https://docs.amplify.aws/cli).

Helpful resources:
- Amplify documentation: https://docs.amplify.aws
- Amplify CLI documentation: https://docs.amplify.aws/cli
- More details on this folder & generated files: https://docs.amplify.aws/cli/reference/files
- Join Amplify's community: https://amplify.aws/community/
9 changes: 9 additions & 0 deletions frontend/amplify/backend/backend-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"hosting": {
"amplifyhosting": {
"service": "amplifyhosting",
"type": "cicd",
"lastPushTimeStamp": "2022-06-27T13:24:22.397Z"
}
}
}
10 changes: 10 additions & 0 deletions frontend/amplify/backend/tags.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{
"Key": "user:Stack",
"Value": "{project-env}"
},
{
"Key": "user:Application",
"Value": "{project-name}"
}
]
53 changes: 53 additions & 0 deletions frontend/amplify/cli.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"features": {
"graphqltransformer": {
"addmissingownerfields": true,
"improvepluralization": false,
"validatetypenamereservedwords": true,
"useexperimentalpipelinedtransformer": true,
"enableiterativegsiupdates": true,
"secondarykeyasgsi": true,
"skipoverridemutationinputtypes": true,
"transformerversion": 2,
"suppressschemamigrationprompt": true,
"securityenhancementnotification": false,
"showfieldauthnotification": false
},
"frontend-ios": {
"enablexcodeintegration": true
},
"auth": {
"enablecaseinsensitivity": true,
"useinclusiveterminology": true,
"breakcirculardependency": true,
"forcealiasattributes": false,
"useenabledmfas": true
},
"codegen": {
"useappsyncmodelgenplugin": true,
"usedocsgeneratorplugin": true,
"usetypesgeneratorplugin": true,
"cleangeneratedmodelsdirectory": true,
"retaincasestyle": true,
"addtimestampfields": true,
"handlelistnullabilitytransparently": true,
"emitauthprovider": true,
"generateindexrules": true,
"enabledartnullsafety": true
},
"appsync": {
"generategraphqlpermissions": true
},
"latestregionsupport": {
"pinpoint": 1,
"translate": 1,
"transcribe": 1,
"rekognition": 1,
"textract": 1,
"comprehend": 1
},
"project": {
"overrides": true
}
}
}
7 changes: 7 additions & 0 deletions frontend/amplify/hooks/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Command Hooks

Command hooks can be used to run custom scripts upon Amplify CLI lifecycle events like pre-push, post-add-function, etc.

To get started, add your script files based on the expected naming convention in this directory.

Learn more about the script file naming convention, hook parameters, third party dependencies, and advanced configurations at https://docs.amplify.aws/cli/usage/command-hooks
23 changes: 23 additions & 0 deletions frontend/amplify/team-provider-info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"master": {
"awscloudformation": {
"AuthRoleName": "amplify-frontend-master-91616-authRole",
"UnauthRoleArn": "arn:aws:iam::723049199225:role/amplify-frontend-master-91616-unauthRole",
"AuthRoleArn": "arn:aws:iam::723049199225:role/amplify-frontend-master-91616-authRole",
"Region": "us-east-1",
"DeploymentBucketName": "amplify-frontend-master-91616-deployment",
"UnauthRoleName": "amplify-frontend-master-91616-unauthRole",
"StackName": "amplify-frontend-master-91616",
"StackId": "arn:aws:cloudformation:us-east-1:723049199225:stack/amplify-frontend-master-91616/54b8f480-f61b-11ec-a398-12db9b4e59a5",
"AmplifyAppId": "d722lz3ojrmy9"
},
"categories": {
"hosting": {
"amplifyhosting": {
"appId": "d722lz3ojrmy9",
"type": "cicd"
}
}
}
}
}
1 change: 1 addition & 0 deletions frontend/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
>
<br />
<!-- TODO: #2 Center this -->
<!-- TODO: #5 Init wallets not working -->
<v-btn outlined @click="init()"> Connect Wallet </v-btn>
</v-container>

Expand Down
1 change: 1 addition & 0 deletions frontend/src/store/ethers/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ export default {
event.$emit(EVENT_CHANNEL, MSGS.ETHERS_VUEX_INITIALIZED);
} else {
console.log("Log in to your Ethereum wallet to see what it can do!");
await connect();
// Usually should trigger connect on a user interaction as a best practice!
// Replace this with a user button??
// if (confirm('Welcome! You can replace "alert" and "confirm" statements in this vuex module with your own code to do more useful things. If you would like to connect to your Ethereum provider (e.g. MetaMask) for the first time click "Yes" now.')) {
Expand Down

0 comments on commit 7d4b157

Please sign in to comment.