Skip to content

Commit

Permalink
everything latest and linted, prettified.
Browse files Browse the repository at this point in the history
  • Loading branch information
ds committed Dec 27, 2023
1 parent df4f3d9 commit 1e26f35
Show file tree
Hide file tree
Showing 107 changed files with 6,586 additions and 12,547 deletions.
26 changes: 17 additions & 9 deletions frontend/.eslintrc.json
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"
}
}
}
20 changes: 10 additions & 10 deletions frontend/.vscode/settings.json
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
}
}
2 changes: 1 addition & 1 deletion frontend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Mentioned in Awesome Wardley Maps](https://awesome.re/mentioned-badge-flat.svg)](https://github.com/wardley-maps-community/awesome-wardley-maps#apps)

The source code that runs www.OnlineWardleyMaps.com.
The source code that runs www.OnlineWardleyMaps.com.

Also available as a standalone Visual Studio Extension - [vscode-wardley-maps](https://github.com/damonsk/vscode-wardley-maps).

Expand Down
30 changes: 14 additions & 16 deletions frontend/amplify/.config/project-config.json
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"
}
}
}
38 changes: 19 additions & 19 deletions frontend/amplify/backend/api/betaowm/cli-inputs.json
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"
}
]
}
}
17 changes: 7 additions & 10 deletions frontend/amplify/backend/api/betaowm/parameters.json
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"]
}
}
4 changes: 2 additions & 2 deletions frontend/amplify/backend/api/betaowm/resolvers/README.md
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)
51 changes: 30 additions & 21 deletions frontend/amplify/backend/api/betaowm/schema.graphql
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 frontend/amplify/backend/api/betaowm/stacks/CustomResources.json
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": ""
}
}
}
6 changes: 3 additions & 3 deletions frontend/amplify/backend/api/betaowm/transform.conf.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"Version": 5,
"ElasticsearchWarning": true
}
"Version": 5,
"ElasticsearchWarning": true
}
Loading

0 comments on commit 1e26f35

Please sign in to comment.