Skip to content

Commit 6b12b23

Browse files
authored
Merge pull request #458 from codeforjapan/development
DB Schema変更などのリリース
2 parents 11eaf65 + 0a220d9 commit 6b12b23

28 files changed

+2026
-514
lines changed

.graphqlconfig.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
projects:
22
studyathome:
3-
schemaPath: src/graphql/schema.json
3+
schemaPath: amplify/backend/api/studyathome/build/schema.graphql
44
includes:
55
- src/graphql/**/*.ts
66
excludes:

amplify/backend/api/studyathome/schema.graphql

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
type School
2+
@model
3+
@auth(
4+
rules: [
5+
{ allow: private, operations: [create], provider: userPools }
6+
{ allow: owner, operations: [read, update, delete], provider: userPools, ownerField: "owner" }
7+
]
8+
)
9+
{
10+
id: ID!
11+
name: String!
12+
owner: String!
13+
}
14+
115
type Class
216
@model
317
@auth(
@@ -9,8 +23,9 @@ type Class
923
)
1024
{
1125
id: ID!
26+
schoolId: ID!
27+
school: School! @connection(fields: ["schoolId"])
1228
className: String!
13-
schoolName: String!
1429
lessons: [Lesson!] @connection(keyName: "byClass", fields: ["id"])
1530
owner: String!
1631
}

nuxt.config.js

Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import i18nConfig from './nuxt-i18n.config.js'
2-
const colors = require('vuetify/es5/util/colors').default
32
const environment = process.env.NODE_ENV || 'development'
43

54
export default {
@@ -83,7 +82,10 @@ export default {
8382
/*
8483
** Global CSS
8584
*/
86-
css: [],
85+
css: [
86+
'vuetify/dist/vuetify.min.css',
87+
'@mdi/font/css/materialdesignicons.css',
88+
],
8789
/*
8890
** Plugins to load before mounting the App
8991
*/
@@ -92,6 +94,7 @@ export default {
9294
src: '@/plugins/amplify',
9395
ssr: false,
9496
},
97+
'@/plugins/vuetify',
9598
],
9699
/*
97100
** Nuxt.js dev-modules
@@ -100,7 +103,7 @@ export default {
100103
// Doc: https://github.com/nuxt-community/stylelint-module
101104
'@nuxtjs/stylelint-module',
102105
'@nuxt/typescript-build',
103-
'@nuxtjs/vuetify',
106+
'@nuxtjs/style-resources',
104107
],
105108
typescript: {
106109
typeCheck: true,
@@ -129,27 +132,6 @@ export default {
129132
families: ['Roboto&display=swap', 'NotoSansJP&&display=swap'],
130133
},
131134
},
132-
/*
133-
** vuetify module configuration
134-
** https://github.com/nuxt-community/vuetify-module
135-
*/
136-
vuetify: {
137-
customVariables: ['~/assets/variables.scss'],
138-
theme: {
139-
dark: false,
140-
themes: {
141-
dark: {
142-
primary: colors.blue.darken2,
143-
accent: colors.grey.darken3,
144-
secondary: colors.amber.darken3,
145-
info: colors.teal.lighten1,
146-
warning: colors.amber.base,
147-
error: colors.deepOrange.accent4,
148-
success: colors.green.accent3,
149-
},
150-
},
151-
},
152-
},
153135
env: {
154136
APIKEY: process.env.APIKEY,
155137
AUTHDOMAIN: process.env.AUTHDOMAIN,
@@ -208,4 +190,7 @@ export default {
208190
}
209191
},
210192
},
193+
styleResources: {
194+
scss: ['~/assets/variables.scss'],
195+
},
211196
}

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"@nuxtjs/axios": "^5.12.2",
3232
"@nuxtjs/dotenv": "^1.4.1",
3333
"@nuxtjs/pwa": "^3.0.2",
34+
"@nuxtjs/style-resources": "^1.0.0",
3435
"@types/node": "^14.11.2",
3536
"aws-amplify": "^3.3.3",
3637
"cookieparser": "^0.1.0",
@@ -46,15 +47,16 @@
4647
"nuxt-webfontloader": "^1.1.0",
4748
"uuid": "^8.3.1",
4849
"vue-property-decorator": "^9.0.2",
50+
"vuetify": "^2.3.13",
4951
"vuex": "^3.5.1",
5052
"vuex-class-component": "^2.3.5"
5153
},
5254
"devDependencies": {
55+
"@mdi/font": "^5.6.55",
5356
"@nuxt/types": "^2.14.6",
5457
"@nuxt/typescript-build": "^2.0.3",
5558
"@nuxtjs/eslint-config-typescript": "^3.0.0",
5659
"@nuxtjs/stylelint-module": "^4.0.0",
57-
"@nuxtjs/vuetify": "^1.11.2",
5860
"@types/jest": "^26.0.14",
5961
"@vue/test-utils": "^1.1.0",
6062
"babel-core": "^6.26.3",
@@ -70,9 +72,11 @@
7072
"husky": "^4.3.0",
7173
"jest": "^26.4.2",
7274
"lint-staged": "^10.4.0",
75+
"node-sass": "^4.14.1",
7376
"nodemon": "^2.0.4",
7477
"prettier": "^2.1.2",
7578
"rimraf": "^3.0.2",
79+
"sass-loader": "^10.0.3",
7680
"stylelint": "^13.7.1",
7781
"stylelint-config-prettier": "^8.0.2",
7882
"stylelint-config-standard": "^20.0.0",

0 commit comments

Comments
 (0)