Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
boco-frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
idatt2106_2022_02
boco-frontend
Commits
494cfd20
Commit
494cfd20
authored
3 years ago
by
Zara Mudassar
Browse files
Options
Downloads
Patches
Plain Diff
Error fixed
parent
269a0c5f
No related branches found
No related tags found
1 merge request
!45
Group home view
Pipeline
#177419
passed
3 years ago
Stage: setup
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/GroupHome.vue
+14
-20
14 additions, 20 deletions
src/components/GroupHome.vue
with
14 additions
and
20 deletions
src/components/GroupHome.vue
+
14
−
20
View file @
494cfd20
...
@@ -7,21 +7,21 @@
...
@@ -7,21 +7,21 @@
<span
class=
"absolute inset-y-0 left-0 flex items-center pl-3"
>
<span
class=
"absolute inset-y-0 left-0 flex items-center pl-3"
>
<svg
class=
"w-5 h-5 text-gray-400"
viewBox=
"0 0 24 24"
fill=
"none"
>
<svg
class=
"w-5 h-5 text-gray-400"
viewBox=
"0 0 24 24"
fill=
"none"
>
<path
<path
d=
"M21 21L15 15M17 10C17 13.866 13.866 17 10 17C6.13401 17 3 13.866 3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10Z"
d=
"M21 21L15 15M17 10C17 13.866 13.866 17 10 17C6.13401 17 3 13.866 3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10Z"
stroke=
"currentColor"
stroke=
"currentColor"
stroke-width=
"2"
stroke-width=
"2"
stroke-linecap=
"round"
stroke-linecap=
"round"
stroke-linejoin=
"round"
stroke-linejoin=
"round"
></path>
></path>
</svg>
</svg>
</span>
</span>
<input
<input
type=
"text"
type=
"text"
id=
"searchInput"
id=
"searchInput"
class=
"w-full py-3 pl-10 pr-4 text-gray-700 bg-white border rounded-md dark:bg-gray-800 dark:text-gray-300 dark:border-gray-600 focus:border-blue-500 dark:focus:border-blue-500 focus:outline-none focus:ring"
class=
"w-full py-3 pl-10 pr-4 text-gray-700 bg-white border rounded-md dark:bg-gray-800 dark:text-gray-300 dark:border-gray-600 focus:border-blue-500 dark:focus:border-blue-500 focus:outline-none focus:ring"
placeholder=
"Search"
placeholder=
"Search"
v-model=
"search"
v-model=
"search"
/>
/>
</div>
</div>
...
@@ -35,12 +35,10 @@
...
@@ -35,12 +35,10 @@
<
script
>
<
script
>
import
ItemCard
from
"
@/components/ItemCard
"
;
import
ItemCard
from
"
@/components/ItemCard
"
;
import
LargeProfileCard
from
"
@/components/UserProfileComponents/LargeProfileCard
"
;
export
default
{
export
default
{
name
:
"
SearchItemListComponent
"
,
name
:
"
SearchItemListComponent
"
,
components
:
{
components
:
{
LargeProfileCard
,
ItemCard
,
ItemCard
,
},
},
...
@@ -49,10 +47,10 @@ export default {
...
@@ -49,10 +47,10 @@ export default {
let
filteredItems
=
[];
let
filteredItems
=
[];
filteredItems
=
this
.
items
.
filter
(
filteredItems
=
this
.
items
.
filter
(
(
p
)
=>
(
p
)
=>
p
.
title
.
toLowerCase
().
includes
(
this
.
search
.
toLowerCase
())
||
p
.
title
.
toLowerCase
().
includes
(
this
.
search
.
toLowerCase
())
||
p
.
adresse
.
toLowerCase
().
includes
(
this
.
search
.
toLowerCase
())
||
p
.
adresse
.
toLowerCase
().
includes
(
this
.
search
.
toLowerCase
())
||
p
.
price
===
Number
(
this
.
search
)
p
.
price
===
Number
(
this
.
search
)
);
);
return
filteredItems
;
return
filteredItems
;
...
@@ -85,7 +83,3 @@ export default {
...
@@ -85,7 +83,3 @@ export default {
},
},
};
};
</
script
>
</
script
>
<
style
scoped
>
</
style
>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment