diff --git a/src/adonisjs/public/author/edit/inplace-editor.js b/src/adonisjs/public/author/edit/inplace-editor.js
index a5afb342..ef2fa810 100644
--- a/src/adonisjs/public/author/edit/inplace-editor.js
+++ b/src/adonisjs/public/author/edit/inplace-editor.js
@@ -223,12 +223,9 @@ class EditDCC {
const ep = await this._extendedPanel(
EditDCC.imageBrowseTemplate, mtype, ftypes)
let path = null
- console.log('=== selected')
- console.log(ep.select.options[ep.select.selectedIndex].value)
if (ep.select != null &&
ep.select.options[ep.select.selectedIndex].value.length > 0)
path = ep.select.options[ep.select.selectedIndex].value
- /*
else {
console.log('===== files selected')
for (let f of ep.browse.files)
@@ -243,7 +240,6 @@ class EditDCC {
path = asset.message.filename
}
}
- */
this._removeExtendedPanel()
return path
}
diff --git a/src/adonisjs/public/author/env/inf331_2023/css/lab.css b/src/adonisjs/public/author/env/inf331_2023/css/lab.css
index 9933d41a..ad65fe0d 100644
--- a/src/adonisjs/public/author/env/inf331_2023/css/lab.css
+++ b/src/adonisjs/public/author/env/inf331_2023/css/lab.css
@@ -6,62 +6,86 @@
--light: #FDE8E9;
}
.bg-lab-light {
- background-color: var(--light) !important;
+ background-color: #FDE8E9 !important;
}
.bg-lab-light-pink {
- background-color: var(--light-pink) !important;
+ background-color: #E3BAC6 !important;
}
.bg-lab-primary {
- background-color: var(--primary) !important;
+ background-color: #BC9EC1 !important;
}
.bg-lab-secondary {
- background-color: var(--secondary) !important;
+ background-color: #596475 !important;
}
.bg-lab-dark {
- background-color: var(--dark) !important;
+ background-color: #1F2232 !important;
}
.text-lab-dark {
- color: var(--dark) !important;
+ color: #1F2232 !important;
}
.text-lab-secondary {
- color: var(--secondary) !important;
+ color: #596475 !important;
}
.text-lab-primary {
- color: var(--primary) !important;
+ color: #BC9EC1 !important;
}
.text-primary {
- color: var(--dark) !important;
+ color: #1F2232 !important;
}
.text-lab-light-pink {
- color: var(--light-pink) !important;
+ color: #E3BAC6 !important;
}
.text-lab-light {
- color: var(--light) !important;
+ color: #FDE8E9 !important;
}
.btn-lab-primary {
- color: var(--light);
- background-color: var(--dark);
- border-color: var(--dark);
+ color: #FDE8E9 !important;
+ background-color: #1F2232 !important;
+ border-color: #1F2232 !important;
}
.btn-lab-primary:hover {
- color: var(--primary) !important;
+ color: #BC9EC1 !important;
font-size: 1.1rem !important;
}
.btn-lab-secondary {
- color: var(--light);
- background-color: var(--secondary);
- border-color: var(--secondary);
+ color: #FDE8E9 !important;
+ background-color: #596475 !important;
+ border-color: #596475 !important;
+}
+.btn-lab-secondary:hover {
+ color: #BC9EC1 !important;
+}
+
+.btn-lab-save {
+ color: #1F2232 !important;
+ background-color: #E3BAC6 !important;
+ border-color: #1F2232 !important;
+ border-width: 0.2rem !important;
+}
+.btn-lab-save:hover {
+ background: #BC9EC1 !important;
}
.disabled-lock, .disabled-look{
- pointer-events: none;
- background-color: var(--light-pink);
- opacity: 0.8
+ pointer-events: none !important;
+ background-color: #E3BAC6 !important;
+ opacity: 0.8 !important;
}
+
+.border-lab-dark{
+ border-color: #1F2232 !important;
+}
+.border-lab-primary{
+ border-color: #BC9EC1 !important;
+}
+
+.no-pointers, .no-pointer{
+ pointer-events: none;
+}
\ No newline at end of file
diff --git a/src/adonisjs/public/author/env/inf331_2023/index.html b/src/adonisjs/public/author/env/inf331_2023/index.html
index 59f4f1d5..7d3342fd 100644
--- a/src/adonisjs/public/author/env/inf331_2023/index.html
+++ b/src/adonisjs/public/author/env/inf331_2023/index.html
@@ -52,10 +52,8 @@
-
+
-
-
@@ -88,7 +86,6 @@
-
@@ -98,7 +95,7 @@
-
+
@@ -112,8 +109,51 @@
-
-
diff --git a/src/adonisjs/public/author/env/inf331_2023/js/lab-progress.js b/src/adonisjs/public/author/env/inf331_2023/js/lab-progress.js
index 45b19b59..4a779891 100644
--- a/src/adonisjs/public/author/env/inf331_2023/js/lab-progress.js
+++ b/src/adonisjs/public/author/env/inf331_2023/js/lab-progress.js
@@ -7,12 +7,12 @@
// this.labRelease = {1:new Date('2023/08/31'),2:new Date('2023/09/06'),
// 3:new Date('2023/09/06'),4:new Date('2023/09/13'),
// 5:new Date('2023/09/20'),6:new Date('2023/09/27')}
- this.labRelease = {1:this.setDateToISO(hourExpiration(new Date('2023/08/31 GMT-0300'),18)),2:this.setDateToISO(hourExpiration(new Date('2023/09/06 GMT-0300'),15)),
- 3:this.setDateToISO(hourExpiration(new Date('2023/09/06 GMT-0300'),18)),4:this.setDateToISO(hourExpiration(new Date('2023/09/13 GMT-0300'),18)),
+ this.labRelease = {1:this.setDateToISO(hourExpiration(new Date('2023/09/05 GMT-0300'),13)),2:this.setDateToISO(hourExpiration(new Date('2023/09/05 GMT-0300'),14)),
+ 3:this.setDateToISO(hourExpiration(new Date('2023/09/11 GMT-0300'),14)),4:this.setDateToISO(hourExpiration(new Date('2023/09/13 GMT-0300'),18)),
5:this.setDateToISO(hourExpiration(new Date('2023/09/20 GMT-0300'),18)),6:this.setDateToISO(hourExpiration(new Date('2023/09/27 GMT-0300'),18))}
- this.labExpiration = {1:this.setDateToISO(hourExpiration(new Date('2023/09/07 GMT-0300'),8)), 2:this.setDateToISO(hourExpiration(new Date('2023/09/16 GMT-0300'),8)),
- 3:this.setDateToISO(hourExpiration(new Date('2023/09/16 GMT-0300'),8)),4:this.setDateToISO(hourExpiration(new Date('2023/09/23 GMT-0300'),8)),
- 5:this.setDateToISO(hourExpiration(new Date('2023/09/30 GMT-0300'),8)),6:this.setDateToISO(hourExpiration(new Date('2023/10/06 GMT-0300'),8))}
+ this.labExpiration = {1:this.setDateToISO(hourExpiration(new Date('2023/09/09 GMT-0300'),23)), 2:this.setDateToISO(hourExpiration(new Date('2023/09/16 GMT-0300'),23)),
+ 3:this.setDateToISO(hourExpiration(new Date('2023/09/16 GMT-0300'),23)),4:this.setDateToISO(hourExpiration(new Date('2023/09/23 GMT-0300'),23)),
+ 5:this.setDateToISO(hourExpiration(new Date('2023/09/30 GMT-0300'),23)),6:this.setDateToISO(hourExpiration(new Date('2023/10/06 GMT-0300'),23))}
this.start = this.start.bind(this)
MessageBus.i.subscribe('control/html/ready', this.start)
}
@@ -173,8 +173,6 @@
return convertedT
}
-
-
getDateString(date){
return date.toLocaleDateString('pt-BR', { hour12:false })
}
@@ -184,7 +182,8 @@
}
async lockedLvls (wrapper, highest, limitLvl){
- let i = parseInt(highest+1)
+ console.log(highest);
+ let i = parseInt(highest+1 )
let released = true
for (i; i <= limitLvl; i++) {
// let labTemplate = await MessageBus.i.request(
@@ -212,6 +211,7 @@
let labDelivered = false
let labLastEdit = null
const highestLab = Object.keys(labList).length
+ let nLabReleased = 0
const currentDate = new Date()
// console.log('============',this.convertToLocalTz(new Date(),'date'))
// let tzOffset = this.prependZero(-1*(currentDate.getTimezoneOffset()/60))
@@ -226,7 +226,8 @@
const lateReleaseTxt = 'Não publicado...(atraso)'
progressWrapper.innerHTML = ''
for (var i = 1; i <= Object.keys(this.labRelease).length; i++) {
-
+ labCompleted = false
+ labDelivered = false
let labTemplate = await MessageBus.i.request(
'data/template/' + `labs/lab_${i}`.replace(/\//g, '.') +
'/get', {static: false}, null, true)
@@ -259,10 +260,10 @@
.replace(/\[labNumber\]/ig, Object.keys(this.labRelease)[i-1])
.replace(/\[progress\]/ig, 'Fechado')
.replace(/\[progressColor\]/ig, labCompleted?successColor:'bg-lab-dark text-lab-light')
- .replace(/\[this.labExpirationColor\]/ig, 'btn-lab-primary text-lab-light-pink')
+ .replace(/\[this.labExpirationColor\]/ig, 'bg-lab-dark text-lab-light-pink')
.replace(/\[this.labExpiration\]/ig,
`${this.convertToLocalTz(this.labExpiration[i],'string')}`)
- .replace(/\[labDelivered\]/ig, labDelivered?'Sim':'Não')
+ .replace(/\[labDelivered\]/ig, labDelivered?'Sim!':'Não')
.replace(/\[labDeliveredColor\]/ig, labDelivered?successColor:failColor)
.replace(/\[labLastEdit\]/ig, labLastEdit)
.replace(/\[labLastEditColor\]/ig, (failColor))
@@ -273,7 +274,7 @@
.replace(/\[labNumber\]/ig, Object.keys(labList)[i-1])
.replace(/\[progress\]/ig, 'Em aberto')
.replace(/\[progressColor\]/ig, labCompleted?successColor:'bg-lab-dark text-lab-light')
- .replace(/\[this.labExpirationColor\]/ig, 'btn-lab-primary text-lab-light-pink')
+ .replace(/\[this.labExpirationColor\]/ig, 'bg-lab-dark text-lab-light-pink')
.replace(/\[this.labExpiration\]/ig,
`${this.convertToLocalTz(this.labExpiration[i],'string')}`)
.replace(/\[labDelivered\]/ig, labDelivered?'Sim!':'Não')
@@ -292,10 +293,10 @@
.replace(/\[labNumber\]/ig, Object.keys(this.labRelease)[i-1])
.replace(/\[progress\]/ig, 'Fechado')
.replace(/\[progressColor\]/ig, labCompleted?successColor:'bg-lab-dark text-lab-light')
- .replace(/\[this.labExpirationColor\]/ig, 'btn-lab-primary text-lab-light-pink')
+ .replace(/\[this.labExpirationColor\]/ig, 'bg-lab-dark text-lab-light-pink')
.replace(/\[this.labExpiration\]/ig,
`${this.convertToLocalTz(this.labExpiration[i],'string')}`)
- .replace(/\[labDelivered\]/ig, labDelivered?'Sim':'Não')
+ .replace(/\[labDelivered\]/ig, labDelivered?'Sim!':'Não')
.replace(/\[labDeliveredColor\]/ig, labDelivered?successColor:failColor)
.replace(/\[labLastEdit\]/ig, labLastEdit)
.replace(/\[labLastEditColor\]/ig, (failColor))
@@ -303,7 +304,7 @@
if (released == false){
template.innerHTML = labProgressManager.lvlContainerLocked
.replace(/\[difficulty\]/ig, i)
- .replace(/\[labRelease\]/ig, `${this.getDateStringthis(this.labRelease[i])}`)
+ .replace(/\[labRelease\]/ig, `${this.convertToLocalTz(this.labRelease[i],'string')}`)
.replace(/\[labText\]/ig, lateReleaseTxt)
}else{
@@ -314,15 +315,20 @@
.replace(/\[labNumber\]/ig, Object.keys(this.labRelease)[i-1])
.replace(/\[progress\]/ig, 'Em aberto')
.replace(/\[progressColor\]/ig, labCompleted?successColor:'bg-lab-dark text-lab-light')
- .replace(/\[this.labExpirationColor\]/ig, 'btn-lab-primary text-lab-light-pink')
+ .replace(/\[this.labExpirationColor\]/ig, 'bg-lab-dark text-lab-light-pink')
.replace(/\[this.labExpiration\]/ig,
`${this.convertToLocalTz(this.labExpiration[i],'string')}`)
- .replace(/\[labDelivered\]/ig, labDelivered?'Sim':'Não')
+ .replace(/\[labDelivered\]/ig, labDelivered?'Sim!':'Não')
.replace(/\[labDeliveredColor\]/ig, labDelivered?successColor:failColor)
.replace(/\[labLastEdit\]/ig, labLastEdit)
.replace(/\[labLastEditColor\]/ig, (failColor))
.replace(/\[buttonIcon\]/ig, 'plus')
}
+ }else if (currentDate < this.labRelease[i]){
+ template.innerHTML = labProgressManager.lvlContainerLocked
+ .replace(/\[difficulty\]/ig, i)
+ .replace(/\[labRelease\]/ig, `${this.convertToLocalTz(this.labRelease[i],'string')}`)
+ .replace(/\[labText\]/ig, 'Ainda não publicado...')
}
progressWrapper.appendChild(template.content.cloneNode(true))
@@ -363,7 +369,6 @@
}
}
-
}
let template = document.createElement('template')
/*if(highestLab == '10'){
@@ -420,7 +425,7 @@
}*/
// lastAvailable(progressWrapper, highestLvl)
- this.lockedLvls(progressWrapper, highestLab+1, 6)
+ // this.lockedLvls(progressWrapper, highestLab+nLabReleased, 6)
}
diff --git a/src/adonisjs/public/author/env/inf331_2023/lab/index.html b/src/adonisjs/public/author/env/inf331_2023/lab/index.html
index 2f79ee38..dc3ea705 100644
--- a/src/adonisjs/public/author/env/inf331_2023/lab/index.html
+++ b/src/adonisjs/public/author/env/inf331_2023/lab/index.html
@@ -46,10 +46,12 @@
+
+
-
+
@@ -96,7 +98,6 @@
-
@@ -145,7 +146,51 @@
-