fix a load of spacing issues in frontend content (#9281)

This commit is contained in:
chris48s
2023-06-18 09:05:42 +01:00
committed by GitHub
parent 50ea7068a8
commit a5f91a40e5
27 changed files with 180 additions and 251 deletions

View File

@@ -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'

View File

@@ -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') {

View File

@@ -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'