✨ Site > Viewer > Add line modifications
This commit is contained in:
+44
-15
@@ -108,18 +108,52 @@ class Project
|
||||
console.log('project'.green.bold + ' - ' + 'add test contents'.cyan)
|
||||
|
||||
// Add some with true contents
|
||||
this.files.createVersion('./test/file.css', `
|
||||
body {
|
||||
this.files.createVersion('./test/file.css', `body {
|
||||
margin:0;
|
||||
padding:0;
|
||||
}
|
||||
|
||||
h1, h2
|
||||
{
|
||||
font-size:20px;
|
||||
}
|
||||
|
||||
h3
|
||||
{
|
||||
font-size:15px;
|
||||
}
|
||||
|
||||
h4
|
||||
{
|
||||
font-size:10px;
|
||||
}
|
||||
|
||||
.toto .tata > span {
|
||||
background:url('kikoo.png') top left repeat-x;
|
||||
}`)
|
||||
setTimeout(() =>
|
||||
{
|
||||
this.files.createVersion('./test/file.css', `body
|
||||
{
|
||||
margin: 0;
|
||||
}
|
||||
`)
|
||||
this.files.createVersion('./test/file.js', `
|
||||
'use strict'
|
||||
|
||||
h1
|
||||
{
|
||||
font-size:20px;
|
||||
}
|
||||
|
||||
h4
|
||||
{
|
||||
font-size:10px;
|
||||
}
|
||||
|
||||
.toto .tata > span
|
||||
{
|
||||
background: url('kikoo.png') top left repeat-x;
|
||||
}`)
|
||||
}, 20)
|
||||
this.files.createVersion('./test/file.js', `'use strict'
|
||||
|
||||
/**
|
||||
* Test
|
||||
@@ -135,10 +169,8 @@ class ClassName extends AnotherClass
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
`)
|
||||
this.files.createVersion('./test/file.php', `
|
||||
<?php
|
||||
}`)
|
||||
this.files.createVersion('./test/file.php', `<?php
|
||||
|
||||
/**
|
||||
* Test
|
||||
@@ -155,10 +187,8 @@ class ClassName extends AnotherClass
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
`)
|
||||
this.files.createVersion('./test/file.html', `
|
||||
<!DOCTYPE html>
|
||||
}`)
|
||||
this.files.createVersion('./test/file.html', `<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
@@ -172,8 +202,7 @@ class ClassName extends AnotherClass
|
||||
</form>
|
||||
</section>
|
||||
</body>
|
||||
</html>
|
||||
`)
|
||||
</html>`)
|
||||
|
||||
// Add some with icons
|
||||
this.files.createVersion('./test/icons/test.js', 'Test icon')
|
||||
|
||||
Reference in New Issue
Block a user