mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-22 10:30:34 +03:00
docs: update sponsors, remove ads
This commit is contained in:
@@ -16,11 +16,11 @@ import { format } from "date-fns";
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
data: () => ({
|
data: () => ({
|
||||||
sponsors: SPONSORS.map(({ createdAt, sponsor }) => ({
|
sponsors: SPONSORS.map(({ createdAt, sponsorEntity }) => ({
|
||||||
createdAt: format(new Date(createdAt), "LLL yyyy"),
|
createdAt: format(new Date(createdAt), "LLL yyyy"),
|
||||||
...sponsor
|
...sponsorEntity
|
||||||
}))
|
}))
|
||||||
})
|
}),
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -28,20 +28,28 @@ async function getContributors() {
|
|||||||
*/
|
*/
|
||||||
async function getSponsors() {
|
async function getSponsors() {
|
||||||
const query = `
|
const query = `
|
||||||
{
|
{
|
||||||
user(login: "sagalbot") {
|
user(login: "sagalbot") {
|
||||||
sponsorshipsAsMaintainer(first: 100) {
|
sponsorshipsAsMaintainer(first: 100) {
|
||||||
nodes {
|
nodes {
|
||||||
createdAt
|
sponsorEntity {
|
||||||
sponsor {
|
... on User {
|
||||||
login
|
id
|
||||||
avatarUrl
|
avatarUrl
|
||||||
}
|
login
|
||||||
|
}
|
||||||
|
... on Organization {
|
||||||
|
id
|
||||||
|
avatarUrl
|
||||||
|
login
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
createdAt
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const { user } = await graphql(query, {
|
const { user } = await graphql(query, {
|
||||||
|
|||||||
@@ -1,17 +1,13 @@
|
|||||||
<template>
|
<template>
|
||||||
<ParentLayout>
|
<ParentLayout></ParentLayout>
|
||||||
<EthicalAds slot="sidebar-top" />
|
|
||||||
</ParentLayout>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import ParentLayout from "@parent-theme/layouts/Layout.vue";
|
import ParentLayout from "@parent-theme/layouts/Layout.vue";
|
||||||
import EthicalAds from "../components/EthicalAds.vue";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
ParentLayout,
|
ParentLayout,
|
||||||
EthicalAds
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user