@hostlink/nuxt-light 0.0.29 → 0.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { useQuasar } from 'quasar';
|
|
3
3
|
import { useI18n } from 'vue-i18n';
|
|
4
|
-
import { useLight, q, getCurrentUser, m } from '../';
|
|
4
|
+
import { useLight, q, getCurrentUser, m, f } from '../';
|
|
5
5
|
import { ref, computed, reactive, provide, watch } from 'vue';
|
|
6
6
|
//import packageJson from '../../package.json'
|
|
7
7
|
|
|
@@ -15,8 +15,11 @@ const props = defineProps({
|
|
|
15
15
|
});
|
|
16
16
|
|
|
17
17
|
let app = await q("app", ["menus", "viewAsMode", "languages"]);
|
|
18
|
-
let my = await q("my", ["styles", "language"]);
|
|
19
|
-
let system =
|
|
18
|
+
let my = await q("my", ["styles", "language", f('granted_storage:granted', { right: "system.storage" }, [])]);
|
|
19
|
+
let system = null
|
|
20
|
+
if (my.granted_storage) {
|
|
21
|
+
system = await q("system", ["diskFreeSpace", "diskTotalSpace", "diskFreeSpacePercent"]);
|
|
22
|
+
}
|
|
20
23
|
|
|
21
24
|
light.setStyles(my.styles);
|
|
22
25
|
|
|
@@ -172,7 +175,7 @@ const exitViewAs = async () => {
|
|
|
172
175
|
</q-menu>
|
|
173
176
|
</q-btn>
|
|
174
177
|
|
|
175
|
-
<q-btn icon="sym_o_storage" flat round dense class="q-mr-sm">
|
|
178
|
+
<q-btn icon="sym_o_storage" flat round dense class="q-mr-sm" v-if="my.granted_storage">
|
|
176
179
|
<q-menu>
|
|
177
180
|
<q-card style="width:200px">
|
|
178
181
|
<q-card-section>
|