Skip to content

Commit

Permalink
Replace search icons with EBI concept structure icons
Browse files Browse the repository at this point in the history
  • Loading branch information
milot-mirdita committed Apr 14, 2024
1 parent 4698b07 commit e25a84d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
6 changes: 5 additions & 1 deletion frontend/MDI.js
Expand Up @@ -38,6 +38,8 @@ const CircleTwoThird = "M12 12 V2 A10 10 0 1 0 20.142 17.806 Z";
const SavePDB = "M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5c0-1.1.9-2 2-2h14Zm0 8v-.8c0-.7-.6-1.2-1.3-1.2h-2.4v6h2.4c.7 0 1.2-.5 1.2-1.2v-1c0-.4-.4-.8-.9-.8.5 0 1-.4 1-1Zm-9.7.5v-1c0-.8-.7-1.5-1.5-1.5H5.3v6h1.5v-2h1c.8 0 1.5-.7 1.5-1.5Zm5 2v-3c0-.8-.7-1.5-1.5-1.5h-2.5v6h2.5c.8 0 1.5-.7 1.5-1.5Zm3.4.3h-1.2v-1.2h1.2v1.2Zm-5.9-3.3v3h1v-3h-1Zm-5 0v1h1v-1h-1Zm11 .9h-1.3v-1.2h1.2v1.2Z";
const SavePNG = "M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3M9 11.5C9 12.3 8.3 13 7.5 13H6.5V15H5V9H7.5C8.3 9 9 9.7 9 10.5V11.5M14 15H12.5L11.5 12.5V15H10V9H11.5L12.5 11.5V9H14V15M19 10.5H16.5V13.5H17.5V12H19V13.7C19 14.4 18.5 15 17.7 15H16.4C15.6 15 15.1 14.3 15.1 13.7V10.4C15 9.7 15.5 9 16.3 9H17.6C18.4 9 18.9 9.7 18.9 10.3V10.5H19M6.5 10.5H7.5V11.5H6.5V10.5Z";
const API = "M 22.23 1.96 c -0.98 0 -1.77 0.8 -1.77 1.77 c 0 0.21 0.05 0.4 0.12 0.6 l -8.31 14.23 c -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.9-.7-.6-1.5c-.3-1.3.2-2.4 1.3-3.1l1.3-.3h.4l.4.1.2.1.6.4c.2 0 .3.2.2.5l-.4.2h-.2l-.4-.2-.8-.2c-.3 0-.6 0-.9.2a2 2 0 0 0-1 2.2l.6 1.1 1.3-1 1 1.4L5 8.6l1.4-1 3.8 5 1.5-1-.6 4.6.9 1Zm7-4-.1.3-.8.3a9 9 0 0 0-1.7.4 100.6 100.6 0 0 1-1.4-1.1v-.5c0-.1 0-.3.2-.4l.7-.3.8-.2.1.1.5.3.6.3a2092.6 2092.6 0 0 0 1.1.8Zm-8-2L7.2 6l-1.1.8.6-4 4 .7-1.1.8 4.2 5.7c-.4.5-.5 1.5-.4 3l-.6.4-.7-.9.2-2.2-1.2 1Zm9.2-3.7v1.2l-.2.8c0 .3-.2.4-.2.4l-.5.3a49.2 49.2 0 0 1-4.1 1l-.2.3V11c0-.4 0-.8.2-1.1l.5-.7.4-.3a19.2 19.2 0 0 1 4-1V7.4Zm-3.9-4.2c.3.5.6.9 1 1.1.2.4.5.6.6.6l.5.3a15.8 15.8 0 0 1 .8.6h.3l.1.2h.2c0 .2.2.3.3.3V7h-.5a2 2 0 0 0-.3.2l-.5.1-.5.1h-.1l-.3.1a1 1 0 0 0-.3 0l-.5-.2a4.7 4.7 0 0 1-1-1l-.2-.2V5l.4-2v.3Zm1.9-1.8c.1 0 .9-1.4 0-1.1-.9.2-1.5.7-1.8 1.5 0 .4 0 .7.5.8.4 0 .6-.1.7-.5 0-.3.3-.5.6-.7Z";

export default {
AlertCircleOutline,
Expand Down Expand Up @@ -76,5 +78,7 @@ export default {
LayersSearchOutline,
API,
CloseCircle,
CloseCircleOutline
CloseCircleOutline,
Monomer,
Multimer
};
4 changes: 2 additions & 2 deletions frontend/MultimerSearch.vue
Expand Up @@ -88,8 +88,8 @@
<template slot="content">
<div class="actions" :style="!$vuetify.breakpoint.xsOnly ?'display:flex; align-items: center;' : null">
<v-item-group class="v-btn-toggle">
<v-btn color="primary" :block="false" x-large v-on:click="search" :disabled="searchDisabled"><v-icon>{{ $MDI.LayersSearchOutline }}</v-icon>&nbsp;Search</v-btn>
<v-btn v-if="!isMultimer" color="secondary" :block="false" x-large v-on:click="goToMonomer"><v-icon>{{ $MDI.Magnify }}</v-icon>&nbsp;Go to Monomer</v-btn>
<v-btn color="primary" :block="false" x-large v-on:click="search" :disabled="searchDisabled"><v-icon>{{ $MDI.Magnify }}</v-icon>&nbsp;Search</v-btn>
<v-btn v-if="!isMultimer && query != ''" color="secondary" :block="false" x-large v-on:click="goToMonomer"><v-icon>{{ $MDI.Monomer }}</v-icon>&nbsp;Go to Monomer</v-btn>
</v-item-group>
<div :style="!$vuetify.breakpoint.xsOnly ? 'margin-left: 1em;' : 'margin-top: 1em;'">
<span><strong>Summary</strong></span><br>
Expand Down
6 changes: 3 additions & 3 deletions frontend/Navigation.vue
Expand Up @@ -4,15 +4,15 @@
<v-list v-if="!$LOCAL">
<v-list-item to="/search">
<v-list-item-action>
<v-icon>{{ $MDI.Magnify }}</v-icon>
<v-icon>{{ $APP == 'mmseqs' ? $MDI.Magnify : $MDI.Monomer }}</v-icon>
</v-list-item-action>
<v-list-item-content>
<v-list-item-title>Search</v-list-item-title>
</v-list-item-content>
</v-list-item>
<v-list-item to="/multimer">
<v-list-item to="/multimer" v-if="$APP == 'foldseek'">
<v-list-item-action>
<v-icon>{{ $MDI.LayersSearchOutline }}</v-icon>
<v-icon>{{ $MDI.Multimer }}</v-icon>
</v-list-item-action>
<v-list-item-content>
<v-list-item-title>Multimer search</v-list-item-title>
Expand Down
5 changes: 4 additions & 1 deletion frontend/Search.vue
Expand Up @@ -97,7 +97,7 @@
<div class="actions" :style="!$vuetify.breakpoint.xsOnly ?'display:flex; align-items: center;' : null">
<v-item-group class="v-btn-toggle">
<v-btn color="primary" :block="false" x-large v-on:click="search" :disabled="searchDisabled"><v-icon>{{ $MDI.Magnify }}</v-icon>&nbsp;Search</v-btn>
<v-btn v-if="isMultimer" color="secondary" :block="false" x-large v-on:click="goToMultimer"><v-icon>{{ $MDI.LayersSearchOutline }}</v-icon>&nbsp;Go to Multimer</v-btn>
<v-btn v-if="isMultimer" color="secondary" :block="false" x-large v-on:click="goToMultimer"><v-icon>{{ $MDI.Multimer }}</v-icon>&nbsp;Go to Multimer</v-btn>
</v-item-group>
<div :style="!$vuetify.breakpoint.xsOnly ? 'margin-left: 1em;' : 'margin-top: 1em;'">
<span><strong>Summary</strong></span><br>
Expand Down Expand Up @@ -205,6 +205,9 @@ export default {
return this.$route.query.accession || "";
},
isMultimer() {
if (__APP__ != "foldseek") {
return false;
}
return checkMultimer(this.query);
}
},
Expand Down

0 comments on commit e25a84d

Please sign in to comment.