Passed
Push — master ( 178bdf...7ca77d )
by Felipe Catão do
02:58 queued 01:51
created

home.js ➔ teste2   A

Complexity

Conditions 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
1
import EngineApp from '../../Framework/engine.js'
2
import blackbox from '../components/blackBox.js'
3
import example from '../components/example.js'
4
import routes from '../routes/routes.js'
5
import reactive from '../../Framework/reactive.js'
6
7
let rot = new routes()
0 ignored issues
show
Coding Style Best Practice introduced by
By convention, constructors like routes should be capitalized.
Loading history...
8
let rec = new reactive()
0 ignored issues
show
Coding Style Best Practice introduced by
By convention, constructors like reactive should be capitalized.
Loading history...
9
10
let testea = "1"
11
function homePage(){
12
    let teste0 = "a"
0 ignored issues
show
Unused Code introduced by
The variable teste0 seems to be never used. Consider removing it.
Loading history...
13
    rec.addReactiveElement(teste)
14
    let eng = new EngineApp()
15
    eng.componentsEngine.createComponent("article1",articlePage())
16
    eng.componentsEngine.renderComponent("dinamic-Article","article1")
17
    blackbox("Lavine Testes","que isso rapaz a lavine é braba!")
18
    example("function ComponentTeste(args){<br>   eng.componentsEngine.createComponent('article1',articlePage())<br>}")
19
    document.getElementById("goBtn").addEventListener("click",goFunctions,false)
20
    //rec.createCycle()
21
    //rec.findValue("teste")
22
    testea = "zero"
23
    //eng.routesEngine.whenAwait(teste)
24
25
}
26
function goFunctions(){
27
   rot.doc()
28
}
29
function articlePage(){
30
    return "<br> <br><br><div id='articles' class='articleComp container'>"+
31
    "<div class='row'>"+
32
    " <div class='col-md-8'><h1>What is Lavine</h1>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Deserunt consectetur odio praesentium? Omnis, deleniti? Necessitatibus, alias doloremque tempore velit dolorem incidunt est atque ab corrupti reiciendis ratione sequi impedit. Dolores?</div>"+
33
    "<div class='col-6 col-md-4'>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Sed velit nisi iure officia voluptas? Impedit suscipit veritatis ratione et sint quos necessitatibus illo cum provident! Voluptas ex necessitatibus aperiam reiciendis?</div>"+
34
    "</div>"
35
}
36
37
function teste(){
38
    console.log("testeA")
0 ignored issues
show
Debugging Code introduced by
console.log looks like debug code. Are you sure you do not want to remove it?
Loading history...
39
    return testea
40
}
41
function teste2(){
42
    console.log("teste 2")
0 ignored issues
show
Debugging Code introduced by
console.log looks like debug code. Are you sure you do not want to remove it?
Loading history...
43
}
44
45
export default homePage