Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Promotion tweaks (#85)
Browse files Browse the repository at this point in the history
* Modify promotion, Fix #80, Fix #79

* Update Avatar.vue

* Version bump
  • Loading branch information
CodexAdrian authored Aug 10, 2023
1 parent 6023c08 commit 27172c2
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/components/base/Avatar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default {
},
loading: {
type: String,
default: 'eager',
default: 'lazy',
},
},
data() {
Expand Down
5 changes: 5 additions & 0 deletions lib/components/base/DropdownButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ const toggleDropdown = () => {
const selectOption = (option, index) => {
radioValue.value = option
emit('change', { option, index })
emit('option-click', { option: selectedOption.value })
dropdownVisible.value = false
}
Expand Down Expand Up @@ -197,6 +198,10 @@ onBeforeUnmount(() => {
border-radius: var(--radius-md) 0 0 0;
}
}
.btn {
height: 2.25rem;
}
}
.selected {
Expand Down
8 changes: 6 additions & 2 deletions lib/components/base/Promotion.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
<div class="GBBNWLJVGRHFLYVGSZKSSKNTHFYXHMBD-1">
<div class="GBBNWLJVGRHFLYVGSZKSSKNTHFYXHMBD-2">
<a
href="https://bisecthosting.com/modrinth"
:href="`https://bisecthosting.com/modrinth${queryParam}`"
rel="noopener nofollow sponsored"
:target="target"
>
<BisectIcon class="GBBNWLJVGRHFLYVGSZKSSKNTHFYXHMBD-3" />
<span>
<span> Host your Minecraft server on </span>
<strong>BisectHosting</strong>
<span> - get 25% your first month with code <strong>MODRINTH</strong>. </span>
<span> - get 25% off your first month with code <strong>MODRINTH</strong>. </span>
</span>
</a>
</div>
Expand All @@ -33,6 +33,10 @@ const props = defineProps({
type: Boolean,
default: true,
},
queryParam: {
type: String,
default: '',
},
})
const target = computed(() => (props.external ? '_blank' : '_self'))
</script>
Expand Down
4 changes: 0 additions & 4 deletions lib/components/search/Categories.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ export default {
return []
},
},
type: {
type: String,
required: true,
},
},
methods: {
formatCategory,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "omorphia",
"type": "module",
"version": "0.4.37",
"version": "0.4.38",
"files": [
"dist",
"lib"
Expand Down

0 comments on commit 27172c2

Please sign in to comment.