Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenQuizz
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
10
Issues
10
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Weber Rodolphe
OpenQuizz
Commits
139e7517
Commit
139e7517
authored
Sep 29, 2021
by
Jérémie Passerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sauvegarde suite retours soutenance
parent
371e1ed9
Changes
19
Show whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
101 additions
and
51 deletions
+101
-51
shimeta.html
shimeta.html
+3
-0
Maj.vue
src/Maj.vue
+1
-1
Previsualiser_Moodle.vue
src/Previsualiser_Moodle.vue
+7
-7
TagsLibres.vue
src/TagsLibres.vue
+1
-1
Test.vue
src/Test.vue
+2
-0
Consulter_Contenu.vue
src/components/Consulter_Contenu.vue
+1
-1
Modifier_Contenu.vue
src/components/Modifier_Contenu.vue
+2
-6
Volet_Base.vue
src/components/Volet_Base.vue
+24
-27
Edit_Calculee_Simple.vue
src/components/moodle/Edit_Calculee_Simple.vue
+4
-0
Edit_Choix_Multiple.vue
src/components/moodle/Edit_Choix_Multiple.vue
+4
-0
Edit_Contenus.vue
src/components/moodle/Edit_Contenus.vue
+14
-6
Edit_Reponse_Courte.vue
src/components/moodle/Edit_Reponse_Courte.vue
+4
-0
Edit_Vrai_Faux.vue
src/components/moodle/Edit_Vrai_Faux.vue
+4
-0
Question_Calculee_Simple.vue
src/components/moodle/Question_Calculee_Simple.vue
+4
-0
Question_Choix_Multiple.vue
src/components/moodle/Question_Choix_Multiple.vue
+10
-0
Question_Numerique.vue
src/components/moodle/Question_Numerique.vue
+4
-0
Question_Reponse_Courte.vue
src/components/moodle/Question_Reponse_Courte.vue
+4
-0
Question_Vrai_Faux.vue
src/components/moodle/Question_Vrai_Faux.vue
+4
-0
Service.js
src/service/Service.js
+4
-2
No files found.
shimeta.html
View file @
139e7517
<!-- Fichier inutile. Peut être remplacé pour tester des trucs -->
<!DOCTYPE html>
<!DOCTYPE html>
<html
dir=
"ltr"
lang=
"fr"
xml:lang=
"fr"
>
<html
dir=
"ltr"
lang=
"fr"
xml:lang=
"fr"
>
<head>
<head>
...
...
src/Maj.vue
View file @
139e7517
...
@@ -96,7 +96,7 @@
...
@@ -96,7 +96,7 @@
<
script
>
<
script
>
import
Service
from
"./service/Service"
;
import
Service
from
"./service/Service"
;
import
Consulter_Contenu
from
"./components/Consulter_Contenu"
;
import
Consulter_Contenu
from
"./components/Consulter_Contenu"
;
import
Previsualiser_Moodle
from
"
@
/Previsualiser_Moodle"
;
import
Previsualiser_Moodle
from
"
.
/Previsualiser_Moodle"
;
export
default
{
export
default
{
name
:
"Maj"
,
name
:
"Maj"
,
...
...
src/Previsualiser_Moodle.vue
View file @
139e7517
...
@@ -49,14 +49,11 @@ export default {
...
@@ -49,14 +49,11 @@ export default {
let
that
=
this
let
that
=
this
if
(
this
.
source
===
'moodle'
)
{
if
(
this
.
source
===
'moodle'
)
{
console
.
log
(
"this.provenance : "
+
this
.
provenance
!==
'maj'
)
if
(
!
(
this
.
provenance
===
'en-cours'
||
this
.
provenance
===
'maj'
))
{
if
(
!
(
this
.
provenance
===
'en-cours'
||
this
.
provenance
===
'maj'
))
{
console
.
log
(
"Je le suis ici"
)
Service
.
parserTexte
(
JSON
.
stringify
(
this
.
id
)).
then
(
function
(
response
)
{
Service
.
parserTexte
(
JSON
.
stringify
(
this
.
id
)).
then
(
function
(
response
)
{
that
.
questionParsee
=
response
.
data
that
.
questionParsee
=
response
.
data
})
})
}
else
{
}
else
{
console
.
log
(
"Je le suis là"
)
Service
.
parserTexteEnCours
(
JSON
.
stringify
(
this
.
id
)).
then
(
function
(
response
)
{
Service
.
parserTexteEnCours
(
JSON
.
stringify
(
this
.
id
)).
then
(
function
(
response
)
{
that
.
questionParsee
=
response
.
data
that
.
questionParsee
=
response
.
data
})
})
...
@@ -64,6 +61,9 @@ export default {
...
@@ -64,6 +61,9 @@ export default {
}
}
},
},
watch
:
{
watch
:
{
/** @vuese
* Si l'utilisateur navigue entre les versions, permet de récupérer le texte associé
*/
changerVersion
:
function
()
{
changerVersion
:
function
()
{
let
that
=
this
let
that
=
this
...
...
src/TagsLibres.vue
View file @
139e7517
...
@@ -189,7 +189,7 @@ li {
...
@@ -189,7 +189,7 @@ li {
}
}
#tagsPresents
{
#tagsPresents
{
padding-top
:
0.75
%
;
padding-top
:
0.75%
;
}
}
#ajouterTag
{
#ajouterTag
{
padding-bottom
:
0.25%
;
padding-bottom
:
0.25%
;
...
...
src/Test.vue
View file @
139e7517
<!-- Composant inutile. Peut être remplacé pour tester des trucs -->
<
template
>
<
template
>
<div
role=
"main"
>
<div
role=
"main"
>
<span
id=
"maincontent"
></span>
<span
id=
"maincontent"
></span>
...
...
src/components/Consulter_Contenu.vue
View file @
139e7517
...
@@ -72,7 +72,7 @@
...
@@ -72,7 +72,7 @@
<
script
>
<
script
>
import
Service
from
"../service/Service"
;
import
Service
from
"../service/Service"
;
import
Previsualiser_Moodle
from
"
@
/Previsualiser_Moodle"
;
import
Previsualiser_Moodle
from
"
..
/Previsualiser_Moodle"
;
export
default
{
export
default
{
name
:
"Consulter_Contenu"
,
name
:
"Consulter_Contenu"
,
...
...
src/components/Modifier_Contenu.vue
View file @
139e7517
...
@@ -89,7 +89,7 @@ import Service from "../service/Service";
...
@@ -89,7 +89,7 @@ import Service from "../service/Service";
import
StarRating
from
'vue-star-rating'
import
StarRating
from
'vue-star-rating'
import
TagsLibres
from
"../TagsLibres"
;
import
TagsLibres
from
"../TagsLibres"
;
import
Edit_Contenus
from
"./moodle/Edit_Contenus"
;
import
Edit_Contenus
from
"./moodle/Edit_Contenus"
;
import
Previsualiser_Moodle
from
"
@
/Previsualiser_Moodle"
;
import
Previsualiser_Moodle
from
"
..
/Previsualiser_Moodle"
;
export
default
{
export
default
{
...
@@ -287,9 +287,7 @@ export default {
...
@@ -287,9 +287,7 @@ export default {
calculerNoteContenu
:
function
()
{
calculerNoteContenu
:
function
()
{
if
(
this
.
sourceContenu
!==
"moodle"
&&
this
.
contenuCliqueProvenance
!==
""
)
{
if
(
this
.
sourceContenu
!==
"moodle"
&&
this
.
contenuCliqueProvenance
!==
""
)
{
console
.
log
(
parseInt
(
this
.
versionChoisie
)
+
" "
+
this
.
versionMax
)
if
(
parseInt
(
this
.
versionChoisie
)
!==
this
.
versionMax
)
{
if
(
parseInt
(
this
.
versionChoisie
)
!==
this
.
versionMax
)
{
console
.
log
(
"Ici"
)
for
(
let
it
in
this
.
contenuClique
.
historique
)
{
for
(
let
it
in
this
.
contenuClique
.
historique
)
{
if
(
this
.
contenuClique
.
historique
[
it
].
numero
===
parseInt
(
this
.
versionChoisie
))
{
if
(
this
.
contenuClique
.
historique
[
it
].
numero
===
parseInt
(
this
.
versionChoisie
))
{
if
(
this
.
contenuClique
.
historique
[
it
].
note
===
0
)
{
if
(
this
.
contenuClique
.
historique
[
it
].
note
===
0
)
{
...
@@ -300,7 +298,6 @@ export default {
...
@@ -300,7 +298,6 @@ export default {
}
}
return
-
1
return
-
1
}
else
{
}
else
{
console
.
log
(
"Là"
)
if
(
this
.
contenuClique
.
versionEnCours
.
note
===
0
)
{
if
(
this
.
contenuClique
.
versionEnCours
.
note
===
0
)
{
return
0
return
0
}
}
...
@@ -320,6 +317,7 @@ export default {
...
@@ -320,6 +317,7 @@ export default {
if
(
this
.
contenuClique
!==
[])
{
if
(
this
.
contenuClique
!==
[])
{
this
.
titreContenu
=
this
.
contenuClique
.
titre
this
.
titreContenu
=
this
.
contenuClique
.
titre
this
.
noteContenu
=
this
.
contenuCliqueProvenance
!==
'en-cours'
?
this
.
calculerNoteContenu
:
this
.
contenuClique
.
moyenne
this
.
noteContenu
=
this
.
contenuCliqueProvenance
!==
'en-cours'
?
this
.
calculerNoteContenu
:
this
.
contenuClique
.
moyenne
this
.
typeContenu
=
this
.
contenuClique
.
type
this
.
typeContenu
=
this
.
contenuClique
.
type
...
@@ -331,7 +329,6 @@ export default {
...
@@ -331,7 +329,6 @@ export default {
if
(
this
.
contenuCliqueProvenance
===
'perso'
)
{
if
(
this
.
contenuCliqueProvenance
===
'perso'
)
{
this
.
versionMax
=
this
.
contenuClique
.
versionEnCours
.
numero
this
.
versionMax
=
this
.
contenuClique
.
versionEnCours
.
numero
alert
(
this
.
versionMax
)
this
.
versionChoisie
=
this
.
versionMax
this
.
versionChoisie
=
this
.
versionMax
}
else
{
}
else
{
this
.
versionChoisie
=
this
.
contenuClique
.
version
this
.
versionChoisie
=
this
.
contenuClique
.
version
...
@@ -343,7 +340,6 @@ export default {
...
@@ -343,7 +340,6 @@ export default {
if
(
this
.
contenuCliqueProvenance
!==
'banque'
){
if
(
this
.
contenuCliqueProvenance
!==
'banque'
){
Service
.
recupererNoteContenu
(
JSON
.
stringify
(
this
.
contenuClique
.
_id
),
this
.
auteur
,
this
.
versionChoisie
).
then
(
function
(
result
)
{
Service
.
recupererNoteContenu
(
JSON
.
stringify
(
this
.
contenuClique
.
_id
),
this
.
auteur
,
this
.
versionChoisie
).
then
(
function
(
result
)
{
let
nombre
=
result
.
data
let
nombre
=
result
.
data
console
.
log
(
"nombre : "
+
nombre
+
" "
+
typeof
(
nombre
))
if
(
nombre
!==
'-'
)
{
if
(
nombre
!==
'-'
)
{
//nombre = JSON.parse(nombre)
//nombre = JSON.parse(nombre)
//that.rating = nombre.note
//that.rating = nombre.note
...
...
src/components/Volet_Base.vue
View file @
139e7517
...
@@ -72,7 +72,7 @@ isActif ? {'margin-left': '1vw', 'margin-right': '1vw'} : {'margin-left': '0.6vw
...
@@ -72,7 +72,7 @@ isActif ? {'margin-left': '1vw', 'margin-right': '1vw'} : {'margin-left': '0.6vw
{{
item
.
_id
}}
</div></td>
{{
item
.
_id
}}
</div></td>
<b-popover
style=
"height: 700px; width: 700px"
class=
"non"
v-on:show=
"rechercherTexte(item._id, item.provenance, item.source, item.descriptif)"
:target=
"JSON.stringify(item._id)"
<b-popover
style=
"height: 700px; width: 700px"
class=
"non"
v-on:show=
"rechercherTexte(item._id, item.provenance, item.source, item.descriptif)"
:target=
"JSON.stringify(item._id)"
triggers=
"hover"
placement=
"bottom"
>
triggers=
"hover"
placement=
"bottom"
>
<p
id=
"beautiful"
v-html=
"texteDuContenu"
v-if=
"!isMoodle"
></p>
<p
id=
"beautiful"
v-html=
"texteDuContenu"
v-if=
"!isMoodle
&& !isAutre
"
></p>
<p
v-if=
"isAutre"
>
{{
descriptifContenu
}}
</p>
<p
v-if=
"isAutre"
>
{{
descriptifContenu
}}
</p>
<Previsualiser
_Moodle
v-bind:id=
"item._id"
v-bind:provenance=
"item.provenance"
v-bind:source=
"item.source"
<Previsualiser
_Moodle
v-bind:id=
"item._id"
v-bind:provenance=
"item.provenance"
v-bind:source=
"item.source"
v-if=
"isMoodle && !isAutre"
></Previsualiser
_Moodle
>
v-if=
"isMoodle && !isAutre"
></Previsualiser
_Moodle
>
...
@@ -152,7 +152,7 @@ isActif ? {'margin-left': '1vw', 'margin-right': '1vw'} : {'margin-left': '0.6vw
...
@@ -152,7 +152,7 @@ isActif ? {'margin-left': '1vw', 'margin-right': '1vw'} : {'margin-left': '0.6vw
<
script
>
<
script
>
//import axios from "axios";
//import axios from "axios";
import
Previsualiser_Moodle
from
"
@
/Previsualiser_Moodle"
;
import
Previsualiser_Moodle
from
"
..
/Previsualiser_Moodle"
;
let
$
=
require
(
"jquery"
);
let
$
=
require
(
"jquery"
);
window
.
$
=
window
.
jQuery
=
$
;
window
.
$
=
window
.
jQuery
=
$
;
require
(
"jquery-ui-bundle"
);
require
(
"jquery-ui-bundle"
);
...
@@ -335,26 +335,14 @@ export default {
...
@@ -335,26 +335,14 @@ export default {
let
idDragged
=
''
let
idDragged
=
''
$
(
'#prout'
).
droppable
({
$
(
'#prout'
).
droppable
({
//alert("Pourquoi il droppe rien ce débile ???")
drop
:
function
()
{
drop
:
function
()
{
/* let prouto = chamo.substring(chamo.split('oid', 2).join('oid').length)
let cacko = prouto.substring(prouto.search(":") + 3, prouto.search("}") - 2)*/
//console.log("cacko" + cacko)
//caca += cacko
for
(
let
check
in
that
.
checkes
){
for
(
let
check
in
that
.
checkes
){
console
.
log
(
that
.
checkes
[
check
][
0
])
console
.
log
(
that
.
checkes
[
check
][
0
])
idDragged
+=
that
.
checkes
[
check
][
0
][
"$oid"
]
+
" "
idDragged
+=
that
.
checkes
[
check
][
0
][
"$oid"
]
+
" "
}
}
that
.
pt
=
idDragged
that
.
pt
=
idDragged
/* $( this )
.addClass( "ui-state-highlight" )
.find( "p" )
.html( "Dropped!" );*/
}
}
})
})
...
@@ -479,7 +467,6 @@ export default {
...
@@ -479,7 +467,6 @@ export default {
}
}
if
(
this
.
checkes
.
length
===
0
){
if
(
this
.
checkes
.
length
===
0
){
//alert("Le caca du pipi" + this.contenus.length)
for
(
let
itBe
in
this
.
contenus
){
for
(
let
itBe
in
this
.
contenus
){
// this.ajouterCoche(this.contenus[itBe]._id, this.contenus[itBe].provenance, this.contenus[itBe].note_perso)
// this.ajouterCoche(this.contenus[itBe]._id, this.contenus[itBe].provenance, this.contenus[itBe].note_perso)
this
.
checkes
.
push
([
this
.
contenus
[
itBe
].
_id
,
this
.
contenus
[
itBe
].
provenance
,
this
.
contenus
[
itBe
].
note_perso
])
this
.
checkes
.
push
([
this
.
contenus
[
itBe
].
_id
,
this
.
contenus
[
itBe
].
provenance
,
this
.
contenus
[
itBe
].
note_perso
])
...
@@ -534,12 +521,14 @@ export default {
...
@@ -534,12 +521,14 @@ export default {
this
.
contenuClique
=
item
this
.
contenuClique
=
item
this
.
contenuCliqueProvenance
=
provenance
this
.
contenuCliqueProvenance
=
provenance
// si le contenu cliqué provient de la banque -> on lance le mode consultation
if
(
provenance
===
'banque'
){
if
(
provenance
===
'banque'
){
this
.
modeConsultation
=
true
this
.
modeConsultation
=
true
this
.
$emit
(
"ChangerTitre"
,
{
titre
:
"Consultation du contenu "
+
this
.
contenuClique
.
titre
})
this
.
$emit
(
"ChangerTitre"
,
{
titre
:
"Consultation du contenu "
+
this
.
contenuClique
.
titre
})
}
else
{
}
else
{
// sinon -> on lance le mode modification
this
.
modeModification
=
true
this
.
modeModification
=
true
this
.
$emit
(
"ChangerTitre"
,
{
titre
:
"Modification du contenu "
+
this
.
contenuClique
.
titre
})
this
.
$emit
(
"ChangerTitre"
,
{
titre
:
"Modification du contenu "
+
this
.
contenuClique
.
titre
})
...
@@ -548,24 +537,25 @@ export default {
...
@@ -548,24 +537,25 @@ export default {
let
showdown
=
require
(
'showdown'
),
let
showdown
=
require
(
'showdown'
),
converter
=
new
showdown
.
Converter
()
converter
=
new
showdown
.
Converter
()
this
.
texteDuContenu
=
converter
.
makeMarkdown
(
this
.
texteDuContenu
)
this
.
texteDuContenu
=
converter
.
makeMarkdown
(
this
.
texteDuContenu
)
}
else
if
(
item
.
source
===
"autre"
){
// Si contenu 'autre' (fichier non xml) -> on va chercher l'intérieur du contenu via FLask
}
/*else if (item.source === "autre"){
let that = this
let that = this
if
(
item
.
provenance
!==
'en-cours'
)
if (item.provenance !== 'en-cours')
{
Service.recupererTexteContenu(JSON.stringify(item._id)).then(function (reponse) {
Service.recupererTexteContenu(JSON.stringify(item._id)).then(function (reponse) {
that.texteDuContenu = reponse.data
that.texteDuContenu = reponse.data
})
})
}
else{
else{
Service.recupererTexteContenuEnCours(JSON.stringify(item._id)).then(function (reponse) {
Service.recupererTexteContenuEnCours(JSON.stringify(item._id)).then(function (reponse) {
that.texteDuContenu = reponse.data
that.texteDuContenu = reponse.data
})
})
}
}
}
}
*/
}
}
},
},
/**
/**
*
*
Gerer le retour en arriere (en provenance de gestionTagsLibres)
*/
*/
retourArriere
:
function
()
{
retourArriere
:
function
()
{
this
.
modeConsultation
=
false
this
.
modeConsultation
=
false
...
@@ -758,11 +748,20 @@ export default {
...
@@ -758,11 +748,20 @@ export default {
this
.
isMoodle
=
false
this
.
isMoodle
=
false
this
.
isAutre
=
true
this
.
isAutre
=
true
this
.
descriptifContenu
=
description
this
.
descriptifContenu
=
description
if
(
provenance
!==
'en-cours'
)
{
Service
.
recupererTexteContenu
(
JSON
.
stringify
(
id
)).
then
(
function
(
reponse
)
{
that
.
texteDuContenu
=
reponse
.
data
})
}
else
{
Service
.
recupererTexteContenuEnCours
(
JSON
.
stringify
(
id
)).
then
(
function
(
reponse
)
{
that
.
texteDuContenu
=
reponse
.
data
})
}
}
else
{
}
else
{
this
.
isMoodle
=
false
this
.
isMoodle
=
false
this
.
isAutre
=
false
this
.
isAutre
=
false
if
(
provenance
===
'en-cours'
)
{
if
(
provenance
===
'en-cours'
)
{
Service
.
recupererTexteContenuEnCours
(
JSON
.
stringify
(
id
)).
then
(
Service
.
recupererTexteContenuEnCours
(
JSON
.
stringify
(
id
)).
then
(
function
(
response
)
{
function
(
response
)
{
...
@@ -1177,8 +1176,6 @@ export default {
...
@@ -1177,8 +1176,6 @@ export default {
this
.
checkes
=
[]
this
.
checkes
=
[]
$
(
".horns"
).
prop
(
"checked"
,
false
)
$
(
".horns"
).
prop
(
"checked"
,
false
)
$
(
".horns"
).
parent
().
parent
().
removeClass
()
$
(
".horns"
).
parent
().
parent
().
removeClass
()
// alert($(".horns").parent().parent().parent().prop('nodeName'))
// alert($(".horns").parent().parent().prop('nodeName'))
},
},
/**
/**
...
...
src/components/moodle/Edit_Calculee_Simple.vue
View file @
139e7517
...
@@ -283,6 +283,10 @@ export default {
...
@@ -283,6 +283,10 @@ export default {
}
}
},
},
watch
:
{
watch
:
{
/**
* @vuese
* Dès qu'une question est récupérée, on extrait ses éléments
*/
questionParsee
:
function
()
{
questionParsee
:
function
()
{
if
(
this
.
questionParsee
.
type_question
===
'calculatedsimple'
)
{
if
(
this
.
questionParsee
.
type_question
===
'calculatedsimple'
)
{
...
...
src/components/moodle/Edit_Choix_Multiple.vue
View file @
139e7517
...
@@ -182,6 +182,10 @@ export default {
...
@@ -182,6 +182,10 @@ export default {
}
}
},
},
watch
:
{
watch
:
{
/**
* @vuese
* Dès qu'une question est récupérée, on extrait ses éléments
*/
questionParsee
:
function
()
{
questionParsee
:
function
()
{
if
(
this
.
questionParsee
.
type_question
===
'multichoice'
)
{
if
(
this
.
questionParsee
.
type_question
===
'multichoice'
)
{
...
...
src/components/moodle/Edit_Contenus.vue
View file @
139e7517
...
@@ -15,12 +15,12 @@
...
@@ -15,12 +15,12 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
Service
from
"
@
/service/Service"
;
import
Service
from
"
../..
/service/Service"
;
import
Edit_Reponse_Courte
from
"
@/components/moodle
/Edit_Reponse_Courte"
;
import
Edit_Reponse_Courte
from
"
.
/Edit_Reponse_Courte"
;
import
Edit_Vrai_Faux
from
"
@/components/moodle
/Edit_Vrai_Faux"
;
import
Edit_Vrai_Faux
from
"
.
/Edit_Vrai_Faux"
;
import
Edit_Choix_Multiple
from
"
@/components/moodle
/Edit_Choix_Multiple"
;
import
Edit_Choix_Multiple
from
"
.
/Edit_Choix_Multiple"
;
import
Edit_Numerique
from
"
@/components/moodle
/Edit_Numerique"
;
import
Edit_Numerique
from
"
.
/Edit_Numerique"
;
import
Edit_Calculee_Simple
from
"
@/components/moodle
/Edit_Calculee_Simple"
;
import
Edit_Calculee_Simple
from
"
.
/Edit_Calculee_Simple"
;
export
default
{
export
default
{
name
:
"Edit_Contenus"
,
name
:
"Edit_Contenus"
,
...
@@ -55,6 +55,10 @@ export default {
...
@@ -55,6 +55,10 @@ export default {
}
}
},
},
watch
:
{
watch
:
{
/**
* @vuese
*Dès que l'id du contenu cliqué change, on recupere le nouveau texte
*/
idContenu
:
function
()
{
idContenu
:
function
()
{
let
that
=
this
let
that
=
this
...
@@ -74,6 +78,10 @@ export default {
...
@@ -74,6 +78,10 @@ export default {
}
}
}
}
},
},
/**
* @vuese
* Si l'utilisateur navigue entre les versions, permet de récupérer le texte associé
*/
changerVersion
:
function
()
{
changerVersion
:
function
()
{
let
that
=
this
let
that
=
this
this
.
isVersionCourante
=
this
.
versionCourante
.
toString
()
===
this
.
changerVersion
.
toString
()
this
.
isVersionCourante
=
this
.
versionCourante
.
toString
()
===
this
.
changerVersion
.
toString
()
...
...
src/components/moodle/Edit_Reponse_Courte.vue
View file @
139e7517
...
@@ -138,6 +138,10 @@ export default {
...
@@ -138,6 +138,10 @@ export default {
}
}
},
},
watch
:
{
watch
:
{
/**
* @vuese
* Dès qu'une question est récupérée, on extrait ses éléments
*/
questionParsee
:
function
()
{
questionParsee
:
function
()
{
if
(
this
.
questionParsee
.
type_question
===
'shortanswer'
)
{
if
(
this
.
questionParsee
.
type_question
===
'shortanswer'
)
{
this
.
nomQuestion
=
this
.
questionParsee
.
nom_question
this
.
nomQuestion
=
this
.
questionParsee
.
nom_question
...
...
src/components/moodle/Edit_Vrai_Faux.vue
View file @
139e7517
...
@@ -108,6 +108,10 @@ export default {
...
@@ -108,6 +108,10 @@ export default {
}
}
},
},
watch
:
{
watch
:
{
/**
* @vuese
* Dès qu'une question est récupérée, on extrait ses éléments
*/
questionParsee
:
function
()
{
questionParsee
:
function
()
{
// let that = this
// let that = this
// Service.parserTexte(JSON.stringify(this.idContenu)).then(function (response) {
// Service.parserTexte(JSON.stringify(this.idContenu)).then(function (response) {
...
...
src/components/moodle/Question_Calculee_Simple.vue
View file @
139e7517
...
@@ -26,6 +26,10 @@ export default {
...
@@ -26,6 +26,10 @@ export default {
}
}
},
},
watch
:
{
watch
:
{
/**
* @vuese
* Dès qu'une question est récupérée, on extrait ses éléments
*/
questionParsee
:
function
()
{
questionParsee
:
function
()
{
if
(
this
.
questionParsee
.
type_question
===
'calculatedsimple'
)
{
if
(
this
.
questionParsee
.
type_question
===
'calculatedsimple'
)
{
...
...
src/components/moodle/Question_Choix_Multiple.vue
View file @
139e7517
...
@@ -24,6 +24,10 @@ export default {
...
@@ -24,6 +24,10 @@ export default {
}
}
},
},
watch
:
{
watch
:
{
/**
* @vuese
* Dès qu'une question est récupérée, on extrait ses éléments
*/
questionParsee
:
function
()
{
questionParsee
:
function
()
{
if
(
this
.
questionParsee
.
type_question
===
'multichoice'
)
{
if
(
this
.
questionParsee
.
type_question
===
'multichoice'
)
{
...
@@ -52,6 +56,12 @@ export default {
...
@@ -52,6 +56,12 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
/**
* @vuese
* Fonction qui permet de rendre le texte de la question humainement lisible
* @param texte le texte non raffiné
* @returns texteRaffine le texte Raffiné
*/
transformerTexte
:
function
(
texte
)
{
transformerTexte
:
function
(
texte
)
{
let
div
=
document
.
createElement
(
"div"
);
let
div
=
document
.
createElement
(
"div"
);
div
.
innerHTML
=
texte
;
div
.
innerHTML
=
texte
;
...
...
src/components/moodle/Question_Numerique.vue
View file @
139e7517
...
@@ -26,6 +26,10 @@ export default {
...
@@ -26,6 +26,10 @@ export default {
}
}
},
},
watch
:
{
watch
:
{
/**
* @vuese
* Dès qu'une question est récupérée, on extrait ses éléments
*/
questionParsee
:
function
()
{
questionParsee
:
function
()
{
if
(
this
.
questionParsee
.
type_question
===
'numerical'
)
{
if
(
this
.
questionParsee
.
type_question
===
'numerical'
)
{
...
...
src/components/moodle/Question_Reponse_Courte.vue
View file @
139e7517
...
@@ -29,6 +29,10 @@ export default {
...
@@ -29,6 +29,10 @@ export default {
}
}
},
},
watch
:
{
watch
:
{
/**
* @vuese
* Dès qu'une question est récupérée, on extrait ses éléments
*/
questionParsee
:
function
()
{
questionParsee
:
function
()
{
//this.intituleQuestion = this.questionParsee.intitule_question
//this.intituleQuestion = this.questionParsee.intitule_question
if
(
this
.
questionParsee
.
type_question
===
'shortanswer'
)
{
if
(
this
.
questionParsee
.
type_question
===
'shortanswer'
)
{
...
...
src/components/moodle/Question_Vrai_Faux.vue
View file @
139e7517
...
@@ -26,6 +26,10 @@ export default {
...
@@ -26,6 +26,10 @@ export default {
questionParsee
:
{}
questionParsee
:
{}
},
},
watch
:
{
watch
:
{
/**
* @vuese
* Dès qu'une question est récupérée, on extrait ses éléments
*/
questionParsee
:
function
()
{
questionParsee
:
function
()
{
if
(
this
.
questionParsee
.
type_question
===
'truefalse'
)
{
if
(
this
.
questionParsee
.
type_question
===
'truefalse'
)
{
let
div
=
document
.
createElement
(
"div"
);
let
div
=
document
.
createElement
(
"div"
);
...
...
src/service/Service.js
View file @
139e7517
...
@@ -2,8 +2,10 @@ import axios from 'axios'
...
@@ -2,8 +2,10 @@ import axios from 'axios'
import
jwt
from
"jsonwebtoken"
;
import
jwt
from
"jsonwebtoken"
;
//import Service from "@/service/Service";
//import Service from "@/service/Service";
//const urlBase = "http://127.0.0.1:5000/"
// adresse du web service en local
const
urlBase
=
"http://193.70.2.155/api/"
const
urlBase
=
"http://127.0.0.1:5000/"
// adresse du web service distant
//const urlBase = "http://193.70.2.155/api/"
const
users
=
"utilisateurs/"
const
users
=
"utilisateurs/"
const
contenus
=
"contenus/"
const
contenus
=
"contenus/"
const
en_cours
=
"en_cours/"
const
en_cours
=
"en_cours/"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment