fix a load of spacing issues in frontend content (#9281)
This commit is contained in:
@@ -2,6 +2,7 @@ import Joi from 'joi'
|
||||
import { optionalUrl, nonNegativeInteger } from '../validators.js'
|
||||
import { metric } from '../text-formatters.js'
|
||||
import GitLabBase from './gitlab-base.js'
|
||||
import { documentation } from './gitlab-helper.js'
|
||||
|
||||
const schema = Joi.object({
|
||||
forks_count: nonNegativeInteger,
|
||||
@@ -11,13 +12,6 @@ const queryParamSchema = Joi.object({
|
||||
gitlab_url: optionalUrl,
|
||||
}).required()
|
||||
|
||||
const documentation = `
|
||||
<p>
|
||||
You may use your GitLab Project Id (e.g. 278964) or your Project Path (e.g. gitlab-org/gitlab ).
|
||||
Note that only internet-accessible GitLab instances are supported, for example https://jihulab.com, https://gitlab.gnome.org, or https://gitlab.com/.
|
||||
</p>
|
||||
`
|
||||
|
||||
export default class GitlabForks extends GitLabBase {
|
||||
static category = 'social'
|
||||
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
const documentation = `
|
||||
<p>
|
||||
You may use your GitLab Project Id (e.g. 278964) or your Project Path (e.g.
|
||||
<a href="https://gitlab.com/gitlab-org/gitlab" target="_blank" >gitlab-org/gitlab</a> ).
|
||||
Note that only internet-accessible GitLab instances are supported, for example
|
||||
<a href="https://jihulab.com" target="_blank" >https://jihulab.com</a>,
|
||||
<a href="https://gitlab.gnome.org" target="_blank" >https://gitlab.gnome.org</a>, or
|
||||
<a href="https://gitlab.com" target="_blank" >https://gitlab.com</a>.
|
||||
</p>
|
||||
You may use your GitLab Project Id (e.g. 278964) or your Project Path (e.g.
|
||||
[gitlab-org/gitlab](https://gitlab.com/gitlab-org/gitlab) ).
|
||||
Note that only internet-accessible GitLab instances are supported, for example
|
||||
[https://jihulab.com](https://jihulab.com),
|
||||
[https://gitlab.gnome.org](https://gitlab.gnome.org), or
|
||||
[https://gitlab.com](https://gitlab.com).
|
||||
`
|
||||
|
||||
function httpErrorsFor(notFoundMessage = 'project not found') {
|
||||
|
||||
@@ -2,6 +2,7 @@ import Joi from 'joi'
|
||||
import { optionalUrl, nonNegativeInteger } from '../validators.js'
|
||||
import { metric } from '../text-formatters.js'
|
||||
import GitLabBase from './gitlab-base.js'
|
||||
import { documentation } from './gitlab-helper.js'
|
||||
|
||||
const schema = Joi.object({
|
||||
star_count: nonNegativeInteger,
|
||||
@@ -11,13 +12,6 @@ const queryParamSchema = Joi.object({
|
||||
gitlab_url: optionalUrl,
|
||||
}).required()
|
||||
|
||||
const documentation = `
|
||||
<p>
|
||||
You may use your GitLab Project Id (e.g. 278964) or your Project Path (e.g. gitlab-org/gitlab ).
|
||||
Note that only internet-accessible GitLab instances are supported, for example https://jihulab.com, https://gitlab.gnome.org, or https://gitlab.com/.
|
||||
</p>
|
||||
`
|
||||
|
||||
export default class GitlabStars extends GitLabBase {
|
||||
static category = 'social'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user