@hostlink/nuxt-light 0.0.4 → 0.0.5

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,5 +1,5 @@
1
1
  {
2
2
  "name": "light",
3
3
  "configKey": "light",
4
- "version": "0.0.4"
4
+ "version": "0.0.5"
5
5
  }
@@ -1,4 +1,6 @@
1
1
  <script setup>
2
+ import { useRoute } from "vue-router"
3
+ import { useI18n } from "vue-i18n"
2
4
  const i18n = useI18n()
3
5
  const route = useRoute();
4
6
 
@@ -1,6 +1,7 @@
1
1
  <script setup>
2
2
  import { useI18n } from 'vue-i18n';
3
- import { useLight, q,getCurrentUser } from '../light';
3
+ import { useLight, q, getCurrentUser } from '../light';
4
+ import { ref, computed, reactive } from 'vue';
4
5
 
5
6
 
6
7
  const light = useLight();
@@ -1,5 +1,5 @@
1
1
  <script setup>
2
- import q from "./../composables/q"
2
+ import { q } from '../light';
3
3
  const system = await q("system", ['company', 'companyLogo', 'logged']);
4
4
  </script>
5
5
  <template>
@@ -1,4 +1,6 @@
1
1
  <script setup>
2
+ import { ref } from "vue";
3
+ import { q, f } from "../light";
2
4
  const props = defineProps(["permission"]);
3
5
 
4
6
  const granted = ref(false);
@@ -1,4 +1,5 @@
1
1
  <script setup>
2
+ import { ref, computed } from "vue";
2
3
  const props = defineProps({
3
4
  modelValue: {
4
5
  type: [String, Object],
@@ -1,4 +1,6 @@
1
1
  <script setup>
2
+ import { ref, computed, watch } from "vue";
3
+ import { q, m } from "../light";
2
4
  const emit = defineEmits(["selected"]);
3
5
  const data = await q("fsListFolders", { path: "/" }, ["name", "path"]);
4
6
  const folders = ref(data);
@@ -1,4 +1,5 @@
1
1
  <script setup>
2
+ import { q } from "../light";
2
3
  const props = defineProps(["modelValue"]);
3
4
 
4
5
  const file = await q("fsFile", {
@@ -1,6 +1,8 @@
1
1
  <script setup>
2
2
  import { VariableType } from "json-to-graphql-query";
3
3
  import { useI18n } from "vue-i18n";
4
+ import { ref } from 'vue';
5
+ import { useQuasar } from 'quasar';
4
6
 
5
7
  const quasar = useQuasar();
6
8
  const emit = defineEmits(["input", "close"]);
@@ -307,7 +309,7 @@ const onRenameRow = (row) => {
307
309
  title: "Error",
308
310
  message: e.message,
309
311
  });
310
-
312
+
311
313
  return;
312
314
  }
313
315
 
@@ -485,7 +487,7 @@ const reloadStorage = async () => {
485
487
 
486
488
  <q-drawer side="right" show-if-above bordered>
487
489
 
488
- <l-file-manager-preview v-model="preview" v-if="preview" :key="preview.path"/>
490
+ <l-file-manager-preview v-model="preview" v-if="preview" :key="preview.path" />
489
491
  </q-drawer>
490
492
 
491
493
  <q-page-container :style="{ height }">
@@ -1,4 +1,5 @@
1
1
  <script setup>
2
+ import { ref, computed } from "vue";
2
3
  const props = defineProps({
3
4
  modelValue: {
4
5
  type: String
@@ -1,4 +1,7 @@
1
1
  <script setup>
2
+ import { ref } from "vue";
3
+ import { useRouter, useRoute } from "vue-router";
4
+
2
5
  const route = useRoute();
3
6
  const router = useRouter();
4
7
  const module = route.path.split("/")[1];
@@ -1,4 +1,5 @@
1
1
  <script setup>
2
+ import { computed } from "vue";
2
3
 
3
4
  const props = defineProps({
4
5
  modelValue: {
@@ -1,5 +1,7 @@
1
1
  <script setup>
2
- import login from '../composables/login';
2
+ import { ref, reactive } from 'vue'
3
+ import { useQuasar } from 'quasar';
4
+ import { login, m } from '../light';
3
5
  defineProps({
4
6
  company: String,
5
7
  companyLogo: String
@@ -1,4 +1,5 @@
1
1
  <script setup>
2
+ import { useRouter, useRoute } from "vue-router"
2
3
  const router = useRouter();
3
4
  const route = useRoute();
4
5
 
@@ -61,7 +62,7 @@ if (props.deleteBtn) {
61
62
  showDeleteBtn = true
62
63
  }
63
64
 
64
- if(props.addBtn){
65
+ if (props.addBtn) {
65
66
  showToolbar = true
66
67
  showAddBtn = true
67
68
  }
@@ -1,5 +1,5 @@
1
1
  <script setup>
2
-
2
+ import { computed, ref } from "vue";
3
3
  const props = defineProps({
4
4
 
5
5
  rules: {
@@ -1,11 +1,12 @@
1
1
  <script setup>
2
2
  import { useQuasar } from 'quasar';
3
+ import { useRoute } from 'vue-router';
4
+ import { ref, computed, onMounted } from "vue";
5
+
3
6
  const route = useRoute();
4
7
  const module = route.path.split("/")[1];
5
8
  const errors = ref([]);
6
9
 
7
-
8
-
9
10
  const props = defineProps({
10
11
  columns: {
11
12
  type: Array,
@@ -1,11 +1,12 @@
1
1
  <script setup>
2
+ import { computed, ref } from "vue";
2
3
  const props = defineProps(["modelValue"]);
3
4
  const emit = defineEmits(["update:modelValue"]);
4
5
  const popup = ref(null);
5
6
  const localValue = computed({
6
7
  get: () => props.modelValue,
7
8
  set: (value) => {
8
- // popup.value.hide();
9
+ // popup.value.hide();
9
10
  emit('update:modelValue', value)
10
11
  }
11
12
 
@@ -5,5 +5,8 @@ interface Light {
5
5
  }
6
6
  export declare function useLight(): Light;
7
7
  import q from "./composables/q";
8
+ import m from "./composables/m";
9
+ import f from "./composables/f";
8
10
  import getCurrentUser from "./composables/getCurrentUser";
9
- export { q, getCurrentUser };
11
+ import login from "./composables/login";
12
+ export { q, getCurrentUser, login, m, f };
@@ -16,5 +16,8 @@ export function useLight() {
16
16
  };
17
17
  }
18
18
  import q from "./composables/q.mjs";
19
+ import m from "./composables/m.mjs";
20
+ import f from "./composables/f.mjs";
19
21
  import getCurrentUser from "./composables/getCurrentUser.mjs";
20
- export { q, getCurrentUser };
22
+ import login from "./composables/login.mjs";
23
+ export { q, getCurrentUser, login, m, f };
@@ -5,7 +5,7 @@ const my = await q("my", ["username", "first_name", "last_name", "email", "phone
5
5
  <template>
6
6
  <l-page title="User profile">
7
7
  <template #header>
8
- <q-btn rounded icon="sym_o_key" to="update-password" outline color="primary">Update password</q-btn>
8
+ <q-btn rounded icon="sym_o_key" to="update-password" outline color="primary" label="Update password"></q-btn>
9
9
  </template>
10
10
  <l-card>
11
11
  <l-list>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostlink/nuxt-light",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "My new Nuxt module",
5
5
  "repository": "@hostlink/nuxt-light",
6
6
  "license": "MIT",