@christianriedl/media 1.0.259 → 1.0.260

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@christianriedl/media",
3
- "version": "1.0.259",
3
+ "version": "1.0.260",
4
4
  "description": "RIC media interfaces",
5
5
 
6
6
  "main": "dist/index.js",
@@ -63,10 +63,10 @@
63
63
  router.push ({path: 'documents', query: { path: encodeURIComponent(fullPath) }});
64
64
  }
65
65
  async function onSearch() {
66
- const fullPath = path.value.length > 0 ? (path.value + '/' + name) : name;
67
- const files = await mediaService.searchFiles(fullPath, contains.value, like.value, recursive.value);
66
+ const files = await mediaService.searchFiles(path.value, contains.value, like.value, recursive.value);
67
+ directoryInfos.splice(0, directoryInfos.length);
68
68
  fileInfos.splice(0, fileInfos.length, ...files);
69
- mediaService.log.trace(`At ${fullPath} : search ${files.length} files`);
69
+ mediaService.log.trace(`At ${path.value} : search ${files.length} files`);
70
70
  }
71
71
  function download(name: string, folder?: string) {
72
72
  if (!folder)
@@ -149,12 +149,12 @@
149
149
  <v-container v-else fluid>
150
150
  <v-row dense align="center">
151
151
  <v-col cols="4">
152
- <v-text-field label="Like" v-model="like" hide-details single-line></v-text-field>
152
+ <v-text-field label="Like" v-model="like" clearable hide-details single-line></v-text-field>
153
153
  </v-col>
154
- <v-col cols="4">
155
- <v-text-field label="Contains" v-model="contains" hide-details single-line></v-text-field>
154
+ <v-col cols="5">
155
+ <v-text-field label="Contains" v-model="contains" clearable hide-details single-line></v-text-field>
156
156
  </v-col>
157
- <v-col cols="2">
157
+ <v-col cols="1">
158
158
  <v-checkbox label="Rec" v-model="recursive" hide-details density="compact" ></v-checkbox>
159
159
  </v-col>
160
160
  <v-col cols="2">