Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Shibuya Scope Style #1078

Merged
merged 35 commits into from
Dec 20, 2023
Merged
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
808c350
add feature dApp area style
ayumitk Dec 6, 2023
3e74e53
add dapps list and data list area style
ayumitk Dec 6, 2023
df766a5
add ad area style
ayumitk Dec 6, 2023
68e0de8
add Leaderboard area style
ayumitk Dec 6, 2023
92cf9ae
move staking section to assets page
ayumitk Dec 6, 2023
c01cdf9
update the your projects section style on the assets page
ayumitk Dec 9, 2023
f1098f4
move css files
ayumitk Dec 9, 2023
3b2ecf0
add staking section style on the assets page
ayumitk Dec 9, 2023
cb6161e
add vote and stake page style
ayumitk Dec 9, 2023
c6c0294
Merge branch 'feat/dapp-staking-v3' into feat/shibuya-scope-style
ayumitk Dec 9, 2023
00be48b
adjust tvl text size
ayumitk Dec 9, 2023
3f753ec
add owner page style
ayumitk Dec 10, 2023
bdf1f9b
update astar ui
ayumitk Dec 11, 2023
4d298fa
remove dark theme style from the vote page
ayumitk Dec 11, 2023
4340a15
update vote page style
ayumitk Dec 11, 2023
7599918
Merge branch 'feat/dapp-staking-v3' into feat/shibuya-scope-style
ayumitk Dec 12, 2023
cb8e42e
remove dark theme from dapp staking pages
ayumitk Dec 12, 2023
b5730ed
add project page style
ayumitk Dec 12, 2023
b3bdeb0
clean up
ayumitk Dec 12, 2023
db73c0e
Merge branch 'feat/dapp-staking-v3' into feat/shibuya-scope-style
ayumitk Dec 12, 2023
e1cc876
add Leaderboard style
ayumitk Dec 14, 2023
4887e4f
update dapp style
ayumitk Dec 14, 2023
2aa6563
update lang
ayumitk Dec 14, 2023
c9085e5
add input search
ayumitk Dec 14, 2023
f3a8dcd
update
ayumitk Dec 15, 2023
5688ba1
Merge branch 'feat/dapp-staking-v3' into feat/shibuya-scope-style
ayumitk Dec 15, 2023
9bece66
update leaderboard style
ayumitk Dec 15, 2023
0834289
add category style
ayumitk Dec 15, 2023
609fd53
add tier paging
ayumitk Dec 15, 2023
55e580d
Small fix for loading a dApp
bobo-k2 Dec 15, 2023
88c3a6b
Changed a way how to subscribe and handle protocol state
bobo-k2 Dec 15, 2023
8947a54
clean up
ayumitk Dec 15, 2023
ccb7070
update dapps search logic
ayumitk Dec 15, 2023
64ed4be
Merge branch 'feat/dapp-staking-v3' into feat/shibuya-scope-style
bobo-k2 Dec 20, 2023
696e13d
remove operator from filter function
ayumitk Dec 20, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 6 additions & 9 deletions src/staking-v3/components/Dapps.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default defineComponent({
const { getDappTier } = useDappStaking();
const { navigateDappPage } = useDappStakingNavigation();

const filteredDapps = computed<(CombinedDappInfo | undefined)[]>(() => {
const filteredDapps = computed<CombinedDappInfo[]>(() => {
const dapps = registeredDapps.value.filter(
(x) =>
x.basic.mainCategory?.toLowerCase() === props.category.toLowerCase() ||
Expand All @@ -85,14 +85,11 @@ export default defineComponent({

const value = props.search.toLowerCase();

const result = dapps
.map((dapp) => {
const isFoundDapp =
dapp.basic.name.toLowerCase().includes(value) ||
dapp.basic.shortDescription.toLowerCase().includes(value);
return isFoundDapp ? dapp : undefined;
})
.filter((it) => it !== undefined);
const result = dapps.filter(
(dapp) =>
dapp.basic.name.toLowerCase().includes(value) ||
dapp.basic.shortDescription.toLowerCase().includes(value)
);
return result.length > 0 ? result : [];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

? operator is not needed here. Since filter function returns [] if no elements found. Just simply return result;

});

Expand Down
Loading