added backup source for future ref

This commit is contained in:
2022-01-14 18:23:19 +00:00
parent 33e18d8f2a
commit 10c6ddb61a
12 changed files with 210 additions and 0 deletions

14
app/srcbak/com/Foo.css Normal file
View File

@@ -0,0 +1,14 @@
.foo {
margin: 10px;
padding: 10px;
background: #eee;
}
.foo .yeah {
margin-top: 20px;
}
.foo .yeah p {
margin: 0;
border-bottom: solid 1px red;
}

27
app/srcbak/com/Foo.hx Normal file
View File

@@ -0,0 +1,27 @@
package com;
import react.ReactComponent;
import react.ReactMacro.jsx;
import Webpack.*;
class Foo extends ReactComponent {
static var STYLES = require('./Foo.css');
static var IMG = require('./bug.png');
static var CONFIG = require('../config.json');
public function yeet(){
trace(state);
}
override function render() {
return jsx('
<div className="foo">
<img src=$IMG/> ${CONFIG.hello}!
<p onClick=${yeet}> ${CONFIG.yeet}!</p>
<hr/>
Let\'s do some HRM guys<br/>
</div>
');
}
}

23
app/srcbak/com/Foo2.hx Normal file
View File

@@ -0,0 +1,23 @@
package com;
import react.ReactComponent;
import react.ReactMacro.jsx;
import Webpack.*;
class Foo2 extends ReactComponent {
static var STYLES = require('./Foo.css');
static var IMG = require('./bug.png');
static var CONFIG = require('../config.json');
override function render() {
return jsx('
<div className="foo2">
<img src=$IMG/> ${CONFIG.hello}!
<hr/>
Let\'s do some HRM guys<br/>
</div>
');
}
}

BIN
app/srcbak/com/bug.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 774 B