Skip to content
This repository has been archived by the owner on Mar 15, 2023. It is now read-only.

Commit

Permalink
add small kitten
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya101master committed Aug 31, 2022
1 parent 31e4eac commit 3dbe36f
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/components/AppMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<grid-view v-if="(category.type == 'grid3')" :info="category" />
<list-view v-else-if="(category.type == 'list')" :info="category" />
</div>
<img :src="kitten" />
</div>
</template>

Expand All @@ -22,10 +23,11 @@ export default {
buttons: [],
}
},
async beforeMount() {
try {
try {
let res = await fetch("https://navbar.api.profcomff.com/apps");
let res = await fetch(`${process.env.VUE_APP_API_NAVBAR}/apps`);
this.buttons = await res.json();
console.debug("Using online menu set");
} catch (err) {
Expand All @@ -41,15 +43,24 @@ export default {
localStorage.setItem("navbar-buttons", JSON.stringify(this.buttons));
}
},
computed:{
kitten(){
return `${process.env.VUE_APP_CDN}/app/menu_icons/kitty.svg`;
},
},
};
</script>

<style scoped>
.container{
padding: 66px 10px;
padding: 66px 10px 56px;
display: flex;
flex-direction: column;
gap: 10px;
max-width: 600px;
}
img{
align-self: flex-end;
width: 3em;
}
</style>

0 comments on commit 3dbe36f

Please sign in to comment.