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
323a0c4a
Commit
323a0c4a
authored
Jul 19, 2021
by
Jérémie Passerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tri tableau, 1ers tests
parent
c0991910
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
4 deletions
+23
-4
NewContenu.vue
src/NewContenu.vue
+0
-1
Volet_Base.vue
src/components/Volet_Base.vue
+23
-3
No files found.
src/NewContenu.vue
View file @
323a0c4a
...
@@ -49,7 +49,6 @@ export default {
...
@@ -49,7 +49,6 @@ export default {
ajouterContenu
:
function
()
{
ajouterContenu
:
function
()
{
let
data
=
{
auteur
:
this
.
auteur
,
contenu_a_ecrire
:
this
.
contenuSaisi
,
titre
:
this
.
titreContenu
}
let
data
=
{
auteur
:
this
.
auteur
,
contenu_a_ecrire
:
this
.
contenuSaisi
,
titre
:
this
.
titreContenu
}
alert
(
this
.
titreContenu
)
let
that
=
this
let
that
=
this
Service
.
creerContenuPerso
(
data
).
then
(
Service
.
creerContenuPerso
(
data
).
then
(
function
(
reponse
)
{
function
(
reponse
)
{
...
...
src/components/Volet_Base.vue
View file @
323a0c4a
...
@@ -195,6 +195,7 @@ export default {
...
@@ -195,6 +195,7 @@ export default {
modeFiltre
:
false
,
modeFiltre
:
false
,
isMoodle
:
false
,
isMoodle
:
false
,
texteBoutonvariante
:
"changer"
,
texteBoutonvariante
:
"changer"
,
titreTrie
:
false
,
chocolat
:
'<h1 id="hellomarkdown">hello, markdown!</h1>'
,
chocolat
:
'<h1 id="hellomarkdown">hello, markdown!</h1>'
,
imgEtoile
:
"https://previews.123rf.com/images/ylivdesign/ylivdesign1612/ylivdesign161208906/67933171-ic%C3%B4ne-%C3%A9toile-%C3%A0-cinq-branches-jaunes-illustration-de-dessin-anim%C3%A9-d-ic%C3%B4ne-de-vecteur-%C3%A9toile-jaune-%C3%A0-cinq-branches-.jpg"
,
imgEtoile
:
"https://previews.123rf.com/images/ylivdesign/ylivdesign1612/ylivdesign161208906/67933171-ic%C3%B4ne-%C3%A9toile-%C3%A0-cinq-branches-jaunes-illustration-de-dessin-anim%C3%A9-d-ic%C3%B4ne-de-vecteur-%C3%A9toile-jaune-%C3%A0-cinq-branches-.jpg"
,
imgPoubelle
:
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAflBMVEX///8AAACampq4uLh5eXlcXFxlZWXr6+vFxcVFRUWurq6ioqL39/doaGju7u7Z2dmIiIjX19eoqKicnJxZWVlvb28qKirDw8Pl5eU6Ojq5ublAQEDOzs7f398dHR1OTk4xMTGRkZERERGLi4sbGxt+fn4kJCQLCwt0dHRSUlJ5VCwrAAAIRUlEQVR4nO2d6VYbSwyEHbyBMWbHEBKwCev7v+C9jruOMyqpx2YZKTn6fiLj6WJ60TZDr5ckSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkyd9PfzjajWHfe8g7svdtV/a8h7wjqTAVxicVpsL4QGF/Nq4z6//lCvdbP7mfCoOSCjekwqikwg2pMCqpcEMqjMq/r/CwjPtH6yd/lE8edjCq7RlcDFu4KeM+aPvg8KB88qbtgxeDDhXefvPgtkOFB+3D+QIOUmEqTIWpMBWmwlSYCj+Vm/bhfAE3HSqc9z2Yd6gwSZIkSbbm+HLQBZfHbgp/tPshn0J7SvKr+NmRwp9uCqcdKZy6Kew9dCLwwU9gb9GJwoWjw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xonTxwm82qfMs+vQjFS3WKO/5/BDRXJrP/38lcfowgPIWzA8R40mLBp+s0FuOwr+v8HP/J2Kssswa7R+PvJ94B776yv8PEKtosUZ7Sff7iZbDWKH8v5IPEM+l+ewjP96Br79m/v3EKlokSZIkSZIkX81/MjFrMKxwu60AAAAASUVORK5CYII="
...
@@ -389,17 +390,31 @@ export default {
...
@@ -389,17 +390,31 @@ export default {
* @vuese
* @vuese
* Charger un contenu (dans Consulter_Contenu)
* Charger un contenu (dans Consulter_Contenu)
*/
*/
chargerContenu
:
function
(
item
,
provenance
){
chargerContenu
:
function
(
item
,
provenance
)
{
this
.
panierChoisi
=
false
this
.
panierChoisi
=
false
this
.
modeModification
=
true
this
.
modeModification
=
true
this
.
contenuClique
=
item
this
.
contenuClique
=
item
this
.
contenuCliqueProvenance
=
provenance
this
.
contenuCliqueProvenance
=
provenance
// this.titreContenu = item.titre
// this.titreContenu = item.titre
//this.contenuCliqueVersion = item.version
//this.contenuCliqueVersion = item.version
if
(
item
.
source
===
"markdown"
)
{
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
===
"moodle"
){
let
that
=
this
Service
.
recupererTexteContenu
(
JSON
.
stringify
(
item
.
_id
)).
then
(
function
(
response
)
{
that
.
texteDuContenu
=
response
.
data
// alert(response.data)
}
)
}
alert
(
this
.
texteDuContenu
)
},
},
/* /!**
/* /!**
...
@@ -676,7 +691,12 @@ export default {
...
@@ -676,7 +691,12 @@ export default {
if
(
this
.
panierChoisi
){
if
(
this
.
panierChoisi
){
switch
(
titreColonne
)
{
switch
(
titreColonne
)
{
case
"Titre"
:
case
"Titre"
:
this
.
contenus
.
sort
((
a
,
b
)
=>
(
a
.
titre
.
toLowerCase
()
>
b
.
titre
.
toLowerCase
())
?
1
:
((
b
.
titre
.
toLowerCase
()
>
a
.
titre
.
toLowerCase
())
?
-
1
:
0
))
this
.
titreTrie
=
!
this
.
titreTrie
if
(
this
.
titreTrie
)
this
.
contenus
.
sort
((
a
,
b
)
=>
(
a
.
titre
.
toLowerCase
()
>
b
.
titre
.
toLowerCase
())
?
1
:
((
b
.
titre
.
toLowerCase
()
>
a
.
titre
.
toLowerCase
())
?
-
1
:
0
))
else
this
.
contenus
.
sort
((
b
,
a
)
=>
(
a
.
titre
.
toLowerCase
()
>
b
.
titre
.
toLowerCase
())
?
1
:
((
b
.
titre
.
toLowerCase
()
>
a
.
titre
.
toLowerCase
())
?
-
1
:
0
))
break
break
case
"Auteur"
:
case
"Auteur"
:
this
.
contenus
.
sort
((
a
,
b
)
=>
(
a
.
auteur
>
b
.
auteur
)
?
1
:
((
b
.
auteur
>
a
.
auteur
)
?
-
1
:
0
))
this
.
contenus
.
sort
((
a
,
b
)
=>
(
a
.
auteur
>
b
.
auteur
)
?
1
:
((
b
.
auteur
>
a
.
auteur
)
?
-
1
:
0
))
...
...
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