Skip to content

Commit f89d1f8

Browse files
authored
Merge branch 'development' into translations_src-assets-locales-ja-json--development_zh_TW
2 parents 3b5da51 + a0f9bec commit f89d1f8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+10131
-3574
lines changed

.gitignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,19 @@ sw.*
9393

9494
.runtimeconfig.json
9595
key.json
96+
97+
#amplify
98+
amplify/\#current-cloud-backend
99+
amplify/.config/local-*
100+
amplify/mock-data
101+
amplify/backend/amplify-meta.json
102+
amplify/backend/awscloudformation
103+
build/
104+
dist/
105+
node_modules/
106+
aws-exports.js
107+
awsconfiguration.json
108+
amplifyconfiguration.json
109+
amplify-build-config.json
110+
amplify-gradle-config.json
111+
amplifytools.xcconfig

.graphqlconfig.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
projects:
2+
studyathome:
3+
schemaPath: src/graphql/schema.json
4+
includes:
5+
- src/graphql/**/*.ts
6+
excludes:
7+
- ./amplify/**
8+
extensions:
9+
amplify:
10+
codeGenTarget: typescript
11+
generatedFileName: src/API.ts
12+
docsFilePath: src/graphql
13+
maxDepth: 4
14+
extensions:
15+
amplify:
16+
version: 3
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"projectName": "StudyAtHome",
3+
"version": "3.0",
4+
"frontend": "javascript",
5+
"javascript": {
6+
"framework": "vue",
7+
"config": {
8+
"SourceDir": "src",
9+
"DistributionDir": "dist",
10+
"BuildCommand": "yarn generate",
11+
"StartCommand": "yarn start"
12+
}
13+
},
14+
"providers": [
15+
"awscloudformation"
16+
]
17+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"AppSyncApiName": "studyathome",
3+
"DynamoDBBillingMode": "PAY_PER_REQUEST",
4+
"DynamoDBEnableServerSideEncryption": false,
5+
"AuthCognitoUserPoolId": {
6+
"Fn::GetAtt": [
7+
"authstudyathome6e74485c",
8+
"Outputs.UserPoolId"
9+
]
10+
}
11+
}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
type Class
2+
@model
3+
@auth(
4+
rules: [
5+
{ allow: public, operations: [read], provider: apiKey }
6+
{ allow: private, operations: [read, create], provider: userPools }
7+
{ allow: owner, operations: [update, delete], provider: userPools, ownerField: "owner" }
8+
]
9+
)
10+
{
11+
id: ID!
12+
className: String!
13+
schoolName: String!
14+
lessons: [Lesson!] @connection(keyName: "byClass", fields: ["id"])
15+
owner: String!
16+
}
17+
18+
type Subject
19+
{
20+
name: String!
21+
color: String!
22+
}
23+
24+
type Video
25+
{
26+
title: String
27+
url: AWSURL!
28+
thumbnailUrl: AWSURL
29+
}
30+
31+
type Material
32+
{
33+
title: String
34+
url: AWSURL!
35+
}
36+
37+
type Lesson
38+
@model
39+
@key(name: "byClass", fields: ["classId", "startTime"], queryField: "listLessonsByClass")
40+
@auth(
41+
rules: [
42+
{ allow: public, operations: [read], provider: apiKey }
43+
{ allow: private, operations: [read, create], provider: userPools }
44+
{ allow: owner, operations: [update, delete], provider: userPools, ownerField: "owner" }
45+
]
46+
)
47+
{
48+
id: ID!
49+
classId: ID!
50+
class: Class! @connection(fields: ["classId"])
51+
startTime: AWSDateTime!
52+
endTime: AWSDateTime!
53+
title: String!
54+
subject: Subject!
55+
goal: String
56+
description: String
57+
videos: [Video!]
58+
pages: String
59+
materials: [Material!]
60+
isHidden: Boolean!
61+
owner: String!
62+
}
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"AWSTemplateFormatVersion": "2010-09-09",
3+
"Description": "An auto-generated nested stack.",
4+
"Metadata": {},
5+
"Parameters": {
6+
"AppSyncApiId": {
7+
"Type": "String",
8+
"Description": "The id of the AppSync API associated with this project."
9+
},
10+
"AppSyncApiName": {
11+
"Type": "String",
12+
"Description": "The name of the AppSync API",
13+
"Default": "AppSyncSimpleTransform"
14+
},
15+
"env": {
16+
"Type": "String",
17+
"Description": "The environment name. e.g. Dev, Test, or Production",
18+
"Default": "NONE"
19+
},
20+
"S3DeploymentBucket": {
21+
"Type": "String",
22+
"Description": "The S3 bucket containing all deployment assets for the project."
23+
},
24+
"S3DeploymentRootKey": {
25+
"Type": "String",
26+
"Description": "An S3 key relative to the S3DeploymentBucket that points to the root\nof the deployment directory."
27+
}
28+
},
29+
"Resources": {
30+
"EmptyResource": {
31+
"Type": "Custom::EmptyResource",
32+
"Condition": "AlwaysFalse"
33+
}
34+
},
35+
"Conditions": {
36+
"HasEnvironmentParameter": {
37+
"Fn::Not": [
38+
{
39+
"Fn::Equals": [
40+
{
41+
"Ref": "env"
42+
},
43+
"NONE"
44+
]
45+
}
46+
]
47+
},
48+
"AlwaysFalse": {
49+
"Fn::Equals": ["true", "false"]
50+
}
51+
},
52+
"Outputs": {
53+
"EmptyOutput": {
54+
"Description": "An empty output. You may delete this if you have at least one resource above.",
55+
"Value": ""
56+
}
57+
}
58+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"Version": 5,
3+
"ElasticsearchWarning": true
4+
}
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"identityPoolName": "studyathome6e74485c_identitypool_6e74485c",
3+
"allowUnauthenticatedIdentities": false,
4+
"resourceNameTruncated": "studya6e74485c",
5+
"userPoolName": "studyathome6e74485c_userpool_6e74485c",
6+
"autoVerifiedAttributes": [
7+
"email"
8+
],
9+
"mfaConfiguration": "OFF",
10+
"mfaTypes": [
11+
"SMS Text Message"
12+
],
13+
"smsAuthenticationMessage": "Your authentication code is {####}",
14+
"smsVerificationMessage": "Your verification code is {####}",
15+
"emailVerificationSubject": "Your verification code",
16+
"emailVerificationMessage": "Your verification code is {####}",
17+
"defaultEmailOption": "CONFIRM_WITH_CODE",
18+
"defaultPasswordPolicy": false,
19+
"passwordPolicyMinLength": 8,
20+
"passwordPolicyCharacters": [],
21+
"requiredAttributes": [
22+
"email"
23+
],
24+
"userpoolClientGenerateSecret": true,
25+
"userpoolClientRefreshTokenValidity": 30,
26+
"userpoolClientWriteAttributes": [
27+
"email"
28+
],
29+
"userpoolClientReadAttributes": [
30+
"email"
31+
],
32+
"userpoolClientLambdaRole": "studya6e74485c_userpoolclient_lambda_role",
33+
"userpoolClientSetAttributes": false,
34+
"sharedId": "6e74485c",
35+
"resourceName": "studyathome6e74485c",
36+
"authSelections": "identityPoolAndUserPool",
37+
"authRoleArn": {
38+
"Fn::GetAtt": [
39+
"AuthRole",
40+
"Arn"
41+
]
42+
},
43+
"unauthRoleArn": {
44+
"Fn::GetAtt": [
45+
"UnauthRole",
46+
"Arn"
47+
]
48+
},
49+
"useDefault": "default",
50+
"usernameAttributes": [
51+
"email"
52+
],
53+
"userPoolGroupList": [],
54+
"dependsOn": []
55+
}

0 commit comments

Comments
 (0)