neutral/public/javascripts/service.js

89 lines
2.4 KiB
JavaScript
Raw Normal View History

2023-11-28 20:05:44 +00:00
services.createWindow(async () => {
2023-11-04 13:50:28 +00:00
/**
* CODE OF SERVICE.JS
*/
const allServices = new Array()
const View = new ViewWindow({
title: '<i class="fa fa-layer-group"></i> Gestion des services',
width: "700px",
height: "600px"
})
const subsonicsService = new Service({
name: "Subsonics",
description: "Bot de streaming musical sur Discord",
icon: "/images/services/subsonics.png",
url: "https://subsonics.raphix.fr" ,
2023-12-06 21:56:58 +00:00
canAccess: true,
View: View
2023-11-04 13:50:28 +00:00
})
const giteaService = new Service({
name: "Gitea",
description: "Gestionnaire de dépôt Git",
icon: "/images/services/gitea.svg",
url: "https://git.raphix.fr" ,
2023-12-06 21:56:58 +00:00
canAccess: true,
View: View
2023-11-04 13:50:28 +00:00
})
const jenkinsService = new Service({
name: "Jenkins",
description: "Gestionnaire de pipeline",
icon: "/images/services/jenkins.svg",
url: "https://jenkins.raphix.fr" ,
2023-12-06 21:56:58 +00:00
canAccess: true,
View: View
2023-11-04 13:50:28 +00:00
})
const raphixwebsite = new Service({
name: "Raphix.fr",
description: "Site web de Raphix",
icon: "/images/services/raphix.png",
url: "https://raphix.fr",
2023-12-06 21:56:58 +00:00
canAccess: true,
View: View
2023-11-04 13:50:28 +00:00
})
const cvraphix = new Service({
name: "CV Raphix",
description: "Curriculum Vitae de Raphix",
icon: "/images/services/cv.png",
url: "https://cv.raphix.fr",
2023-12-06 21:56:58 +00:00
canAccess: true,
View: View
2023-11-04 13:50:28 +00:00
})
const lavalink = new Service({
name: "Lavalink",
description: "Serveur Lavalink pour Subsonics",
icon: "/images/services/lavalink.svg",
url: "http://omega.raphix.fr:2333",
2023-12-06 21:56:58 +00:00
canAccess: false,
View: View
2023-11-04 13:50:28 +00:00
})
allServices.push(subsonicsService.generateHTML())
allServices.push(lavalink.generateHTML())
allServices.push(giteaService.generateHTML())
allServices.push(jenkinsService.generateHTML())
allServices.push(raphixwebsite.generateHTML())
allServices.push(cvraphix.generateHTML())
View.setContent(`<div class='sv-list'>${allServices.join("")}</div>`)
await subsonicsService.loadScript()
await giteaService.loadScript()
await jenkinsService.loadScript()
await raphixwebsite.loadScript()
await cvraphix.loadScript()
await lavalink.loadScript()
2023-11-28 20:05:44 +00:00
})
2023-11-04 13:50:28 +00:00