Version 1.0.4 - Remove pipelines
All checks were successful
Deployment Pipeline / deploy (push) Successful in 26s

This commit is contained in:
2025-02-16 16:46:06 +01:00
parent 46224bdf6d
commit 025435b48e
11 changed files with 15 additions and 182 deletions

View File

@ -733,10 +733,12 @@ class Service {
}
/**
/*
* Permet de créer un composant de vue de type "Pipeline"
* @param {object} properties Propriétés du composant de vue
*/
class Pipeline {
name;
@ -954,6 +956,8 @@ class Pipeline {
}
*/
class User {
constructor(properties) {
this.username = properties.username
@ -1027,10 +1031,7 @@ class User {
<input type="checkbox" id="${this.username}_perm_SERVERS">
<label for="${this.username}_perm_SERVERS">Serveurs</label>
</div>
<div>
<input type="checkbox" id="${this.username}_perm_PIPELINES">
<label for="${this.username}_perm_PIPELINES">Pipelines</label>
</div>
<div>
<input type="checkbox" id="${this.username}_perm_METRICS">
<label for="${this.username}_perm_METRICS">Metrics</label>
@ -1090,7 +1091,7 @@ class User {
editPermissions.push(getID(`${this.username}_perm_SERVICES`))
editPermissions.push(getID(`${this.username}_perm_LINKS`))
editPermissions.push(getID(`${this.username}_perm_SERVERS`))
editPermissions.push(getID(`${this.username}_perm_PIPELINES`))
editPermissions.push(getID(`${this.username}_perm_METRICS`))
editPermissions.push(getID(`${this.username}_perm_USERS`))
editPermissions.push(getID(`${this.username}_perm_SETTINGS`))

View File

@ -21,12 +21,14 @@ const explorer = new ViewComponent({
icon: "fa fa-server",
permission: "SERVERS"
})
/*
const pipelines = new ViewComponent({
name: "Gestion des pipelines",
icon: "fa-solid fa-code-merge",
permission: "PIPELINES"
})
})*/
const metrics = new ViewComponent({
name: "Web Metrik",

View File

@ -30,15 +30,6 @@ services.createWindow(async () => {
})
const jenkinsService = new Service({
name: "Jenkins",
description: "Gestionnaire de pipeline",
icon: "/images/services/jenkins.svg",
url: "https://jenkins.raphix.fr" ,
canAccess: true,
View: View
})
const raphixwebsite = new Service({
name: "Raphix.fr",
@ -71,7 +62,6 @@ services.createWindow(async () => {
allServices.push(subsonicsService.generateHTML())
allServices.push(lavalink.generateHTML())
allServices.push(giteaService.generateHTML())
allServices.push(jenkinsService.generateHTML())
allServices.push(raphixwebsite.generateHTML())
allServices.push(cvraphix.generateHTML())
@ -79,7 +69,6 @@ services.createWindow(async () => {
await subsonicsService.loadScript()
await giteaService.loadScript()
await jenkinsService.loadScript()
await raphixwebsite.loadScript()
await cvraphix.loadScript()
await lavalink.loadScript()

View File

@ -19,8 +19,6 @@ settings.createWindow(async () => {
</div>
<div class="category">
<p>Configuration des Tokens</p>
<p class='user-line-displayname'>Jenkins</p>
<input class='field' type="text" id="jenkins_token" placeholder="Token Jenkins">
<p class='user-line-displayname'> Omega </p>
<input class='field' type="text" id="omega_token" placeholder="Token Omega">
<button id="st-save" class="btn green"><span> Sauvegarder</span></button>
@ -93,11 +91,9 @@ settings.createWindow(async () => {
const restartButton = document.getElementById("st-restart")
const stopButton = document.getElementById("st-stop")
const saveButton = document.getElementById("st-save")
const jenkinsToken = document.getElementById("jenkins_token")
const omegaToken = document.getElementById("omega_token")
get("SETTINGS_GET").then((settings) => {
jenkinsToken.value = settings.jenkins_token
omegaToken.value = settings.omega_token
})
@ -111,12 +107,11 @@ settings.createWindow(async () => {
saveButton.addEventListener("click", () => {
post("SETTINGS_SAVE", {
jenkins_token: jenkinsToken.value,
omega_token: omegaToken.value
})
get("SETTINGS_GET").then((settings) => {
jenkinsToken.value = settings.jenkins_token
omegaToken.value = settings.omega_token
})
})

View File

@ -61,10 +61,7 @@ users.createWindow(async () => {
<input type="checkbox" id="perm_SERVERS">
<label for="perm_SERVERS">Serveurs</label>
</div>
<div>
<input type="checkbox" id="perm_PIPELINES">
<label for="perm_PIPELINES">Pipelines</label>
</div>
<div>
<input type="checkbox" id="perm_METRICS">
<label for="perm_METRICS">Metrics</label>