Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
Amadeus
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Wiki
Wiki externe
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Compilation
Pipelines
Jobs
Planifications de pipeline
Artéfacts
Déploiement
Releases
Registre de paquets
Registre de conteneur
Registre de modèles
Opération
Environnements
Modules Terraform
Surveillance
Incidents
Analyse
Données d'analyse des chaînes de valeur
Analyse des contributeurs
Données d'analyse CI/CD
Données d'analyse du dépôt
Expériences du modèle
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
bakaclub
Amadeus
Validations
0948486d
Vérifiée
Valider
0948486d
rédigé
4 years ago
par
Kubat
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
Also use the view for the queue
parent
9a7306b2
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion
!3
Dev kubat
Modifications
2
Masquer les modifications d'espaces
En ligne
Côte à côte
Affichage de
2 fichiers modifiés
instance/main.js
+11
-15
11 ajouts, 15 suppressions
instance/main.js
instance/views/karaListItem.ejs
+5
-2
5 ajouts, 2 suppressions
instance/views/karaListItem.ejs
avec
16 ajouts
et
17 suppressions
instance/main.js
+
11
−
15
Voir le fichier @
0948486d
...
@@ -122,22 +122,18 @@ ipcRenderer.on('reload-db-responce', (event, arg) => {
...
@@ -122,22 +122,18 @@ ipcRenderer.on('reload-db-responce', (event, arg) => {
/* Create the right panel: the queue */
/* Create the right panel: the queue */
ipcRenderer
.
on
(
'
reload-queue-responce
'
,
(
event
,
arg
)
=>
{
ipcRenderer
.
on
(
'
reload-queue-responce
'
,
(
event
,
arg
)
=>
{
var
karaList
=
''
;
logger
.
debug
(
'
instance
'
,
`Web page got reload-queue`
);
logger
.
debug
(
'
instance
'
,
`Web page got reload-queue`
);
document
.
getElementById
(
'
panelRight
'
).
innerHTML
=
''
;
arg
.
forEach
(
kara
=>
{
arg
.
forEach
(
kara
=>
{
karaList
+=
`<li class="card p-2 bd-highlight shadow-none d-flex flex-row bd-highlight mb-3 karaCard">
ejs
.
renderFile
(
<span class="karaElement text-uppercase p-2 bd-highlight badge badge-light"><b>
${
kara
.
language
}
</b></span>
__dirname
+
'
/views/karaListItem.ejs
'
,
<span class="karaElement text-uppercase p-2 bd-highlight badge badge-light"><b>
${
kara
.
cat
}
</b></span>
{
kara
:
kara
},
<span class="karaElement text-uppercase p-2 bd-highlight badge badge-light"><b>
${
kara
.
type
}
</b></span>
(
err
,
data
)
=>
{
<span class="karaElement p-2 bd-highlight mr-auto"><b>
${
kara
.
source
}
<br>
${
kara
.
title
}
</b> <i>[
${
kara
.
author
}
]</i></span>
if
(
err
)
logger
.
error
(
'
instance
'
,
err
);
<span class="karaElement p-3 bd-highlight"><b>
${
kara
.
position
}
</b></span>
document
.
getElementById
(
'
panelRight
'
).
innerHTML
=
`
<div class="karaElement p-2 bd-highlight">
${
document
.
getElementById
(
'
panelRight
'
).
innerHTML
}
<div class="d-flex flex-row bd-highlight mb-3 btn-group karaActionBtnGroup" role="group">
${
data
}
`
;
<button class="btn btn-outline-light karaActionBtn"><i class="fas fa-minus"></i></button>
}
<button class="btn btn-outline-light karaActionBtn"><i class="fas fa-play"></i></button>
);
</div>
</div>
</li>`
;
});
});
document
.
getElementById
(
'
panelRight
'
).
innerHTML
=
karaList
;
});
});
Ce diff est replié.
Cliquez pour l'agrandir.
instance/views/karaListItem.ejs
+
5
−
2
Voir le fichier @
0948486d
<
!--
vim: ts=4 syntax=html
<
%#
vim: ts=4 syntax=html
The template for the kara card in lists
--!
>
The template for the kara card in lists
%
>
<li class="card p-2 bd-highlight shadow-none d-flex flex-row bd-highlight mb-3 karaCard">
<li class="card p-2 bd-highlight shadow-none d-flex flex-row bd-highlight mb-3 karaCard">
<span class="karaElement text-uppercase p-2 bd-highlight badge badge-light"><b><%= kara.language %></b></span>
<span class="karaElement text-uppercase p-2 bd-highlight badge badge-light"><b><%= kara.language %></b></span>
<span class="karaElement text-uppercase p-2 bd-highlight badge badge-light"><b><%= kara.cat %></b></span>
<span class="karaElement text-uppercase p-2 bd-highlight badge badge-light"><b><%= kara.cat %></b></span>
<span class="karaElement text-uppercase p-2 bd-highlight badge badge-light"><b><%= kara.type %></b></span>
<span class="karaElement text-uppercase p-2 bd-highlight badge badge-light"><b><%= kara.type %></b></span>
<span class="karaElement p-2 bd-highlight mr-auto"><b><%= kara.source %><br> <%= kara.title %></b> <i>[<%= kara.author %>]</i></span>
<span class="karaElement p-2 bd-highlight mr-auto"><b><%= kara.source %><br> <%= kara.title %></b> <i>[<%= kara.author %>]</i></span>
<% if (kara.hasOwnProperty('position')) { %>
<span class="karaElement p-3 bd-highlight"><b><%= kara.position %></b></span>
<% } %>
<div class="karaElement p-2 bd-highlight">
<div class="karaElement p-2 bd-highlight">
<div class="d-flex flex-row bd-highlight mb-3 btn-group karaActionBtnGroup" role="group">
<div class="d-flex flex-row bd-highlight mb-3 btn-group karaActionBtnGroup" role="group">
<button class="btn btn-outline-light karaActionBtn"><i class="fas fa-plus"></i></button>
<button class="btn btn-outline-light karaActionBtn"><i class="fas fa-plus"></i></button>
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter