@mixd-id/web-scaffold 0.1.2301231335 → 0.1.2301231337
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
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
<div class="flex-1 flex flex-col">
|
|
6
6
|
|
|
7
7
|
<div class="p-6 pb-0 flex flex-row gap-3 items-center">
|
|
8
|
-
<
|
|
8
|
+
<slot v-if="$slots['lp-start']" name="lp-start" :preset="preset"/>
|
|
9
|
+
<div v-else class="mr-6 hidden md:block">
|
|
9
10
|
<h2>{{ title }}</h2>
|
|
10
11
|
</div>
|
|
11
12
|
<div class="flex-1"></div>
|
package/src/utils/helpers.js
CHANGED
|
@@ -17,6 +17,19 @@ const saveBuffer = async(buffer, dir = '/storage/files/images') => {
|
|
|
17
17
|
return filename
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
const ftWildcard = (key) => {
|
|
21
|
+
const term = key.replace(/[\-\+\<\>\@\(\)\~]/, ' ', 'gi')
|
|
22
|
+
|
|
23
|
+
const searchTerms = []
|
|
24
|
+
term.split(' ').forEach((txt) => {
|
|
25
|
+
if(txt.length >= 3){
|
|
26
|
+
searchTerms.push(`+${txt}*`)
|
|
27
|
+
}
|
|
28
|
+
})
|
|
29
|
+
return searchTerms.join(' ')
|
|
30
|
+
}
|
|
31
|
+
|
|
20
32
|
module.exports = {
|
|
33
|
+
ftWildcard,
|
|
21
34
|
saveBuffer
|
|
22
35
|
}
|