Added new tab to display versions of BE/FE
This commit is contained in:
parent
841648676c
commit
068c9724e4
6 changed files with 63 additions and 3 deletions
10
src/services/version/version.service.js
Normal file
10
src/services/version/version.service.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
|
||||
export const parseBackendVersionString = versionString => {
|
||||
const regex = /(-g)(\w+)$/i
|
||||
const replacer = '$1<a href="https://git.pleroma.social/pleroma/pleroma/commit/$2" target="_blank">$2</a>'
|
||||
return versionString.replace(regex, replacer)
|
||||
}
|
||||
|
||||
export const parseFrontendVersionString = versionString => {
|
||||
return `<a href="https://git.pleroma.social/pleroma/pleroma-fe/commit/${versionString}" target="_blank">#${versionString}</a>`
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue