ソースを参照

remove warnings and update pwa manifest.json

ali 2 年 前
親
コミット
933ed29f85

BIN
public/icons/icon512_maskable.png


BIN
public/icons/icon512_rounded.png


BIN
public/img/sample-post-thumbnail.jpg


+ 10 - 4
quasar.config.js

@@ -357,10 +357,16 @@ module.exports = configure(function (ctx) {
         orientation: 'portrait',
         orientation: 'portrait',
         icons: [
         icons: [
           {
           {
-            src: 'icons/logo.png',
-            sizes: '72x72',
-            type: 'image/png',
-            purpose: 'maskable any'
+            purpose: 'maskable',
+            sizes: '512x512',
+            src: 'icons/icon512_maskable.png',
+            type: 'image/png'
+          },
+          {
+            purpose: 'any',
+            sizes: '512x512',
+            src: 'icons/icon512_rounded.png',
+            type: 'image/png'
           }
           }
         ]
         ]
       },
       },

+ 5 - 18
src-pwa/manifest.json

@@ -9,28 +9,15 @@
   "orientation": "portrait",
   "orientation": "portrait",
   "icons": [
   "icons": [
     {
     {
-      "src": "icons/icon-128x128.png",
-      "sizes": "128x128",
-      "type": "image/png"
-    },
-    {
-      "src": "icons/logo.png",
-      "sizes": "192x192",
-      "type": "image/png"
-    },
-    {
-      "src": "icons/logo.png",
-      "sizes": "256x256",
-      "type": "image/png"
-    },
-    {
-      "src": "icons/logo.png",
-      "sizes": "384x384",
+      "purpose": "maskable",
+      "sizes": "512x512",
+      "src": "icons/icon512_maskable.png",
       "type": "image/png"
       "type": "image/png"
     },
     },
     {
     {
-      "src": "icons/logo.png",
+      "purpose": "any",
       "sizes": "512x512",
       "sizes": "512x512",
+      "src": "icons/icon512_rounded.png",
       "type": "image/png"
       "type": "image/png"
     }
     }
   ]
   ]

+ 2 - 1
src/components/Widgets/Other/ShowClassroomInfo/ShowClassroomInfo.vue

@@ -311,7 +311,8 @@ export default {
   emits: ['onloadn'],
   emits: ['onloadn'],
   data: () => ({
   data: () => ({
     defaultOptions: {
     defaultOptions: {
-      profileMode: false
+      profileMode: false,
+      classroomType: 'TRAINING'
     },
     },
     acceptClassType: 'register', // accept - enrollment - rules
     acceptClassType: 'register', // accept - enrollment - rules
     fetchCodesLoading: false,
     fetchCodesLoading: false,

+ 6 - 2
src/components/Widgets/Post/PostList/PostList.vue

@@ -18,7 +18,7 @@
                   :show-expand-button="false"
                   :show-expand-button="false"
                   :show-reload-button="false">
                   :show-reload-button="false">
       <template #entity-index-table-item-cell="{inputData}">
       <template #entity-index-table-item-cell="{inputData}">
-        <post-item :post="inputData.props.row" />
+        <post-item :post="getPost(inputData.props.row)" />
       </template>
       </template>
     </entity-index>
     </entity-index>
   </div>
   </div>
@@ -26,6 +26,7 @@
 
 
 <script>
 <script>
 import { EntityIndex } from 'quasar-crud'
 import { EntityIndex } from 'quasar-crud'
+import { Post } from 'src/models/Post.js'
 import { mixinWidget } from 'src/mixin/Mixins.js'
 import { mixinWidget } from 'src/mixin/Mixins.js'
 import { APIGateway } from 'src/api/APIGateway.js'
 import { APIGateway } from 'src/api/APIGateway.js'
 import PostItem from 'src/components/PostItem.vue'
 import PostItem from 'src/components/PostItem.vue'
@@ -94,7 +95,7 @@ export default {
       return null
       return null
     }
     }
   },
   },
-  mounted() {
+  mounted () {
     this.mounted = true
     this.mounted = true
     this.$store.commit('AppLayout/updateBreadcrumbs', this.breadcrumbs)
     this.$store.commit('AppLayout/updateBreadcrumbs', this.breadcrumbs)
 
 
@@ -121,6 +122,9 @@ export default {
     }
     }
   },
   },
   methods: {
   methods: {
+    getPost (data) {
+      return new Post(data)
+    },
     getPostCategoryInfo (postCategoryId) {
     getPostCategoryInfo (postCategoryId) {
       this.postCategory.loading = true
       this.postCategory.loading = true
       APIGateway.postCategory.get({ data: { id: postCategoryId } })
       APIGateway.postCategory.get({ data: { id: postCategoryId } })

+ 1 - 1
src/models/Content.js

@@ -40,7 +40,7 @@ class Content extends Model {
     ])
     ])
 
 
     if (!this.thumbnail) {
     if (!this.thumbnail) {
-      this.thumbnail = '/img/custom/Mask_group2.png'
+      this.thumbnail = '/img/sample-post-thumbnail.jpg'
     }
     }
   }
   }
 }
 }

+ 1 - 1
src/models/Post.js

@@ -28,7 +28,7 @@ class Post extends Model {
     ])
     ])
 
 
     if (!this.thumbnail) {
     if (!this.thumbnail) {
-      this.thumbnail = '/img/custom/Mask_group2.png'
+      this.thumbnail = '/img/sample-post-thumbnail.jpg'
     }
     }
   }
   }
 }
 }