-
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
everything latest and linted, prettified.
- Loading branch information
ds
committed
Dec 27, 2023
1 parent
df4f3d9
commit 1e26f35
Showing
107 changed files
with
6,586 additions
and
12,547 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,36 @@ | ||
{ | ||
"parser": "@babel/eslint-parser", | ||
"parserOptions": { | ||
"ecmaVersion": 2017, | ||
"requireConfigFile": false, | ||
"ecmaVersion": 2021, | ||
"sourceType": "module", | ||
"ecmaFeatures": { | ||
"jsx": true | ||
"jsx": true | ||
} | ||
}, | ||
"parser": "babel-eslint", | ||
}, | ||
"env": { | ||
"browser": true, | ||
"node": true, | ||
"es6": true, | ||
"jest": true, | ||
"amd": true | ||
"jest": true | ||
}, | ||
"plugins": ["react", "prettier"], | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:react/recommended", | ||
"prettier" | ||
"plugin:prettier/recommended", | ||
"plugin:@next/next/recommended" | ||
], | ||
"plugins": ["react"], | ||
"ignorePatterns": ["models", "src/ui-components"], | ||
"rules": { | ||
"prettier/prettier": "error", | ||
"linebreak-style": ["error", "unix"], | ||
"react/prop-types": 0 | ||
"react/prop-types": 0, | ||
"@next/next/no-img-element": 0 | ||
}, | ||
"settings": { | ||
"react": { | ||
"version": "detect" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
{ | ||
"files.exclude": { | ||
"amplify/.config": true, | ||
"amplify/**/*-parameters.json": true, | ||
"amplify/**/amplify.state": true, | ||
"amplify/**/transform.conf.json": true, | ||
"amplify/#current-cloud-backend": true, | ||
"amplify/backend/amplify-meta.json": true, | ||
"amplify/backend/awscloudformation": true | ||
} | ||
} | ||
"files.exclude": { | ||
"amplify/.config": true, | ||
"amplify/**/*-parameters.json": true, | ||
"amplify/**/amplify.state": true, | ||
"amplify/**/transform.conf.json": true, | ||
"amplify/#current-cloud-backend": true, | ||
"amplify/backend/amplify-meta.json": true, | ||
"amplify/backend/awscloudformation": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
{ | ||
"providers": [ | ||
"awscloudformation" | ||
], | ||
"projectName": "betaowm", | ||
"version": "3.1", | ||
"frontend": "javascript", | ||
"javascript": { | ||
"framework": "react", | ||
"config": { | ||
"SourceDir": ".", | ||
"DistributionDir": ".next", | ||
"BuildCommand": "yarn dev", | ||
"StartCommand": "yarn start" | ||
} | ||
} | ||
} | ||
"providers": ["awscloudformation"], | ||
"projectName": "betaowm", | ||
"version": "3.1", | ||
"frontend": "javascript", | ||
"javascript": { | ||
"framework": "react", | ||
"config": { | ||
"SourceDir": ".", | ||
"DistributionDir": ".next", | ||
"BuildCommand": "yarn dev", | ||
"StartCommand": "yarn start" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
{ | ||
"version": 1, | ||
"serviceConfiguration": { | ||
"apiName": "betaowm", | ||
"serviceName": "AppSync", | ||
"defaultAuthType": { | ||
"mode": "API_KEY", | ||
"expirationTime": 365, | ||
"apiKeyExpirationDate": "2024-12-10T14:53:42.965Z", | ||
"keyDescription": "betaowmapi" | ||
}, | ||
"conflictResolution": {}, | ||
"additionalAuthTypes": [ | ||
{ | ||
"mode": "AMAZON_COGNITO_USER_POOLS", | ||
"cognitoUserPoolId": "authbetaowm27c84da6" | ||
} | ||
] | ||
} | ||
} | ||
"version": 1, | ||
"serviceConfiguration": { | ||
"apiName": "betaowm", | ||
"serviceName": "AppSync", | ||
"defaultAuthType": { | ||
"mode": "API_KEY", | ||
"expirationTime": 365, | ||
"apiKeyExpirationDate": "2024-12-10T14:53:42.965Z", | ||
"keyDescription": "betaowmapi" | ||
}, | ||
"conflictResolution": {}, | ||
"additionalAuthTypes": [ | ||
{ | ||
"mode": "AMAZON_COGNITO_USER_POOLS", | ||
"cognitoUserPoolId": "authbetaowm27c84da6" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
{ | ||
"AppSyncApiName": "betaowm", | ||
"DynamoDBBillingMode": "PAY_PER_REQUEST", | ||
"DynamoDBEnableServerSideEncryption": false, | ||
"AuthCognitoUserPoolId": { | ||
"Fn::GetAtt": [ | ||
"authbetaowm27c84da6", | ||
"Outputs.UserPoolId" | ||
] | ||
} | ||
} | ||
"AppSyncApiName": "betaowm", | ||
"DynamoDBBillingMode": "PAY_PER_REQUEST", | ||
"DynamoDBEnableServerSideEncryption": false, | ||
"AuthCognitoUserPoolId": { | ||
"Fn::GetAtt": ["authbetaowm27c84da6", "Outputs.UserPoolId"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
Any resolvers that you add in this directory will override the ones automatically generated by Amplify CLI and will be directly copied to the cloud. | ||
For more information, visit [https://docs.amplify.aws/cli/graphql-transformer/resolvers](https://docs.amplify.aws/cli/graphql-transformer/resolvers) | ||
Any resolvers that you add in this directory will override the ones automatically generated by Amplify CLI and will be directly copied to the cloud. | ||
For more information, visit [https://docs.amplify.aws/cli/graphql-transformer/resolvers](https://docs.amplify.aws/cli/graphql-transformer/resolvers) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,35 @@ | ||
type PublicMap @model @auth(rules: [{allow: public, operations: [read, update]}, {allow: owner}]) { | ||
id: ID! | ||
mapText: String | ||
readOnly: String | ||
name: String | ||
imageData: String | ||
mapIterations: AWSJSON | ||
type PublicMap | ||
@model | ||
@auth( | ||
rules: [{ allow: public, operations: [read, update] }, { allow: owner }] | ||
) { | ||
id: ID! | ||
mapText: String | ||
readOnly: String | ||
name: String | ||
imageData: String | ||
mapIterations: AWSJSON | ||
} | ||
|
||
type UnauthenticatedMap @model @auth(rules: [{allow: public, provider: apiKey, operations: [create, read, update]}]) { | ||
id: ID! | ||
mapText: String | ||
name: String | ||
imageData: String | ||
mapIterations: AWSJSON | ||
type UnauthenticatedMap | ||
@model | ||
@auth( | ||
rules: [ | ||
{ allow: public, provider: apiKey, operations: [create, read, update] } | ||
] | ||
) { | ||
id: ID! | ||
mapText: String | ||
name: String | ||
imageData: String | ||
mapIterations: AWSJSON | ||
} | ||
|
||
type Map @model @auth(rules: [{allow: owner}]) { | ||
id: ID! | ||
mapText: String | ||
private: Boolean | ||
name: String | ||
imageData: String | ||
mapIterations: AWSJSON | ||
type Map @model @auth(rules: [{ allow: owner }]) { | ||
id: ID! | ||
mapText: String | ||
private: Boolean | ||
name: String | ||
imageData: String | ||
mapIterations: AWSJSON | ||
} | ||
|
112 changes: 56 additions & 56 deletions
112
frontend/amplify/backend/api/betaowm/stacks/CustomResources.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,58 @@ | ||
{ | ||
"AWSTemplateFormatVersion": "2010-09-09", | ||
"Description": "An auto-generated nested stack.", | ||
"Metadata": {}, | ||
"Parameters": { | ||
"AppSyncApiId": { | ||
"Type": "String", | ||
"Description": "The id of the AppSync API associated with this project." | ||
}, | ||
"AppSyncApiName": { | ||
"Type": "String", | ||
"Description": "The name of the AppSync API", | ||
"Default": "AppSyncSimpleTransform" | ||
}, | ||
"env": { | ||
"Type": "String", | ||
"Description": "The environment name. e.g. Dev, Test, or Production", | ||
"Default": "NONE" | ||
}, | ||
"S3DeploymentBucket": { | ||
"Type": "String", | ||
"Description": "The S3 bucket containing all deployment assets for the project." | ||
}, | ||
"S3DeploymentRootKey": { | ||
"Type": "String", | ||
"Description": "An S3 key relative to the S3DeploymentBucket that points to the root\nof the deployment directory." | ||
} | ||
}, | ||
"Resources": { | ||
"EmptyResource": { | ||
"Type": "Custom::EmptyResource", | ||
"Condition": "AlwaysFalse" | ||
} | ||
}, | ||
"Conditions": { | ||
"HasEnvironmentParameter": { | ||
"Fn::Not": [ | ||
{ | ||
"Fn::Equals": [ | ||
{ | ||
"Ref": "env" | ||
}, | ||
"NONE" | ||
] | ||
} | ||
] | ||
}, | ||
"AlwaysFalse": { | ||
"Fn::Equals": ["true", "false"] | ||
} | ||
}, | ||
"Outputs": { | ||
"EmptyOutput": { | ||
"Description": "An empty output. You may delete this if you have at least one resource above.", | ||
"Value": "" | ||
} | ||
} | ||
"AWSTemplateFormatVersion": "2010-09-09", | ||
"Description": "An auto-generated nested stack.", | ||
"Metadata": {}, | ||
"Parameters": { | ||
"AppSyncApiId": { | ||
"Type": "String", | ||
"Description": "The id of the AppSync API associated with this project." | ||
}, | ||
"AppSyncApiName": { | ||
"Type": "String", | ||
"Description": "The name of the AppSync API", | ||
"Default": "AppSyncSimpleTransform" | ||
}, | ||
"env": { | ||
"Type": "String", | ||
"Description": "The environment name. e.g. Dev, Test, or Production", | ||
"Default": "NONE" | ||
}, | ||
"S3DeploymentBucket": { | ||
"Type": "String", | ||
"Description": "The S3 bucket containing all deployment assets for the project." | ||
}, | ||
"S3DeploymentRootKey": { | ||
"Type": "String", | ||
"Description": "An S3 key relative to the S3DeploymentBucket that points to the root\nof the deployment directory." | ||
} | ||
}, | ||
"Resources": { | ||
"EmptyResource": { | ||
"Type": "Custom::EmptyResource", | ||
"Condition": "AlwaysFalse" | ||
} | ||
}, | ||
"Conditions": { | ||
"HasEnvironmentParameter": { | ||
"Fn::Not": [ | ||
{ | ||
"Fn::Equals": [ | ||
{ | ||
"Ref": "env" | ||
}, | ||
"NONE" | ||
] | ||
} | ||
] | ||
}, | ||
"AlwaysFalse": { | ||
"Fn::Equals": ["true", "false"] | ||
} | ||
}, | ||
"Outputs": { | ||
"EmptyOutput": { | ||
"Description": "An empty output. You may delete this if you have at least one resource above.", | ||
"Value": "" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"Version": 5, | ||
"ElasticsearchWarning": true | ||
} | ||
"Version": 5, | ||
"ElasticsearchWarning": true | ||
} |
Oops, something went wrong.