11const $ = new Env ( 'BoxJs' )
22$ . domain = '8.8.8.8'
33
4- $ . version = '0.4.18 '
4+ $ . version = '0.4.19 '
55$ . versionType = 'beta'
66$ . KEY_sessions = 'chavy_boxjs_sessions'
77$ . KEY_versions = 'chavy_boxjs_versions'
@@ -737,7 +737,8 @@ function printHtml(data, curapp = null, curview = 'app') {
737737 <template v-slot:item="{ item }">
738738 <v-list-item @click="goAppSessionView(item)">
739739 <v-list-item-avatar>
740- <img :src="item.icons[box.usercfgs.isTransparentIcons ? 0 : 1]">
740+ <img v-if="item.icons" :src="item.icons[box.usercfgs.isTransparentIcons ? 0 : 1]">
741+ <img v-else :src="ui.icons[box.usercfgs.isTransparentIcons ? 0 : 1]">
741742 </v-list-item-avatar>
742743 <v-list-item-content>
743744 <v-list-item-title>{{ item.name }} ({{ item.id }})</v-list-item-title>
@@ -893,7 +894,8 @@ function printHtml(data, curapp = null, curview = 'app') {
893894 <v-expansion-panel-content>
894895 <v-list nav dense class="mx-n4">
895896 <v-list-item three-line dense v-for="(app, appIdx) in favapps" :key="app.id" @click="goAppSessionView(app)">
896- <v-list-item-avatar><v-img :src="app.icons[box.usercfgs.isTransparentIcons ? 0 : 1]"></v-img></v-list-item-avatar>
897+ <v-list-item-avatar v-if="app.icons"><v-img :src="app.icons[box.usercfgs.isTransparentIcons ? 0 : 1]"></v-img></v-list-item-avatar>
898+ <v-list-item-avatar v-else><v-img :src="ui.icons[box.usercfgs.isTransparentIcons ? 0 : 1]"></v-img></v-list-item-avatar>
897899 <v-list-item-content>
898900 <v-list-item-title>{{ app.name }} ({{ app.id }})</v-list-item-title>
899901 <v-list-item-subtitle>{{ app.repo }}</v-list-item-subtitle>
@@ -931,7 +933,8 @@ function printHtml(data, curapp = null, curview = 'app') {
931933 <v-expansion-panel-content>
932934 <v-list nav dense class="mx-n4">
933935 <v-list-item three-line dense v-for="(app, appIdx) in sub.apps" :key="app.id" @click="goAppSessionView(app)">
934- <v-list-item-avatar><v-img :src="app.icons[box.usercfgs.isTransparentIcons ? 0 : 1]"></v-img></v-list-item-avatar>
936+ <v-list-item-avatar v-if="app.icons"><v-img :src="app.icons[box.usercfgs.isTransparentIcons ? 0 : 1]"></v-img></v-list-item-avatar>
937+ <v-list-item-avatar v-else><v-img :src="ui.icons[box.usercfgs.isTransparentIcons ? 0 : 1]"></v-img></v-list-item-avatar>
935938 <v-list-item-content>
936939 <v-list-item-title>{{ app.name }} ({{ app.id }})</v-list-item-title>
937940 <v-list-item-subtitle>{{ app.repo }}</v-list-item-subtitle>
@@ -957,7 +960,8 @@ function printHtml(data, curapp = null, curview = 'app') {
957960 <v-expansion-panel-content>
958961 <v-list nav dense class="mx-n4">
959962 <v-list-item three-line dense v-for="(app, appIdx) in box.sysapps" :key="app.id" @click="goAppSessionView(app)">
960- <v-list-item-avatar><v-img :src="app.icons[box.usercfgs.isTransparentIcons ? 0 : 1]"></v-img></v-list-item-avatar>
963+ <v-list-item-avatar v-if="app.icons"><v-img :src="app.icons[box.usercfgs.isTransparentIcons ? 0 : 1]"></v-img></v-list-item-avatar>
964+ <v-list-item-avatar v-else="ui.icons"><v-img :src="app.icons[box.usercfgs.isTransparentIcons ? 0 : 1]"></v-img></v-list-item-avatar>
961965 <v-list-item-content>
962966 <v-list-item-title>{{ app.name }} ({{ app.id }})</v-list-item-title>
963967 <v-list-item-subtitle>{{ app.repo }}</v-list-item-subtitle>
@@ -1471,7 +1475,8 @@ function printHtml(data, curapp = null, curview = 'app') {
14711475 appbar: { color: '' },
14721476 box: { show: false },
14731477 navi: { show: false },
1474- drawer: { show: false }
1478+ drawer: { show: false },
1479+ icons: ['https://raw.githubusercontent.com/Orz-3/mini/master/appstore.png', 'https://raw.githubusercontent.com/Orz-3/task/master/appstore.png']
14751480 },
14761481 box: ${ data }
14771482 }
0 commit comments