Add introduction plugin (#127)
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
/**Mocked data */
|
||||
export default function({faker, query, login = faker.internet.userName()}) {
|
||||
console.debug("metrics/compute/mocks > mocking graphql api result > introduction/organization")
|
||||
return ({
|
||||
organization:{
|
||||
description:faker.lorem.sentences(),
|
||||
},
|
||||
})
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
/**Mocked data */
|
||||
export default function({faker, query, login = faker.internet.userName()}) {
|
||||
console.debug("metrics/compute/mocks > mocking graphql api result > introduction/repository")
|
||||
return ({
|
||||
repository:{
|
||||
description:faker.lorem.sentences(),
|
||||
},
|
||||
})
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
/**Mocked data */
|
||||
export default function({faker, query, login = faker.internet.userName()}) {
|
||||
console.debug("metrics/compute/mocks > mocking graphql api result > introduction/user")
|
||||
return ({
|
||||
user:{
|
||||
bio:faker.lorem.sentences(),
|
||||
},
|
||||
})
|
||||
}
|
||||
@@ -175,6 +175,14 @@
|
||||
comments:faker.random.number(1000)
|
||||
}
|
||||
}) : null),
|
||||
//Introduction
|
||||
...(set.plugins.enabled.introduction ? ({
|
||||
introduction:{
|
||||
mode:"user",
|
||||
title:options["introduction.title"],
|
||||
text:faker.lorem.sentences(),
|
||||
}
|
||||
}) : null),
|
||||
//Languages
|
||||
...(set.plugins.enabled.languages ? ({
|
||||
languages:{
|
||||
|
||||
Reference in New Issue
Block a user