Skip to content

Commit

Permalink
Merge pull request #613 from inab/staging
Browse files Browse the repository at this point in the history
Staging - #611 and #610
  • Loading branch information
EvaMart authored Jun 3, 2024
2 parents 87ba671 + b78c44d commit 978aedb
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 7 deletions.
28 changes: 23 additions & 5 deletions components/observatory/CollectionSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,15 @@
</p>
</v-col>
<v-col cols="2">
<v-img
:src="
require(`@/static/collections/${collections[model].image}`)
"
></v-img>
<div class="container">
<img
class="responsive-image"
alt="Community logo"
:src="
require(`@/static/collections/${collections[model].image}`)
"
/>
</div>
</v-col>
</v-row>
</v-sheet>
Expand Down Expand Up @@ -141,6 +145,20 @@ export default {
};
</script>
<style scoped>
.container {
display: flex;
align-items: center;
justify-content: center;
width: 110px;
height: 130px;
}
.responsive-image {
width: 100%;
height: auto;
object-fit: contain;
}
.collections-header {
color: #0b579f;
}
Expand Down
4 changes: 2 additions & 2 deletions components/observatory/evaluation/GitHub/GitHubInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
v-model="value"
class="ml-1"
label="Link to GitHub repository"
:rules="[rules.required]"
:rules="[rules.required, rules.gitHubURL]"
outlined
clearable
clear-icon="mdi-close-circle"
Expand Down Expand Up @@ -73,7 +73,7 @@ export default {
required: (value) => !!value || 'Required.',
gitHubURL: (value) => {
const pattern =
/^(http(s?):\/\/)?(www\.)?github\.([a-z])+\/(.*)+\/(.*)+\/?$/i;
/^(https?:\/\/)?(www\.)?github\.[a-z]+\/[^/]+\/[^/]+\/?$/i;
return (
pattern.test(value) || 'Please enter a valid GitHub repository link.'
);
Expand Down

0 comments on commit 978aedb

Please sign in to comment.