plxdcma_rendericon_pitchstart 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css.css +23 -0
- package/init.js +34 -0
- package/js.js +14 -0
- package/package.json +6 -0
- package/preview.png +0 -0
package/css.css
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
|
|
2
|
+
.pitch-stat-card {
|
|
3
|
+
background: var(--white);
|
|
4
|
+
border-radius: 12px;
|
|
5
|
+
padding: 1.5rem;
|
|
6
|
+
text-align: center;
|
|
7
|
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
8
|
+
border-left: 4px solid var(--secondary-color);
|
|
9
|
+
padding: 30px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.pitch-stat-card h4 {
|
|
13
|
+
font-size: 1.75rem;
|
|
14
|
+
font-weight: 700;
|
|
15
|
+
color: var(--text-dark);
|
|
16
|
+
margin-bottom: 0.5rem;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.pitch-stat-card p {
|
|
20
|
+
color: var(--text-light);
|
|
21
|
+
font-weight: 500;
|
|
22
|
+
margin-bottom: 0.5rem;
|
|
23
|
+
}
|
package/init.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
var plxdcma_standarinit=require(`plxdcma_standarinit`)
|
|
2
|
+
var fs=require(`fs`)
|
|
3
|
+
var path=require(`path`)
|
|
4
|
+
var myux=require(`plxdcma_myux`)
|
|
5
|
+
var plxdcma_iconrendererprotocol=require(`plxdcma_iconrendererprotocol`)
|
|
6
|
+
module.exports.use=function(req){
|
|
7
|
+
if(req.__myAppInternals.leftedicon == null){
|
|
8
|
+
myux.use(req)
|
|
9
|
+
plxdcma_iconrendererprotocol.use(req)
|
|
10
|
+
req.__myAppInternals.leftedicon=true
|
|
11
|
+
if(req.__myAppInternals.paths == null){
|
|
12
|
+
req.__myAppInternals.paths=[]
|
|
13
|
+
}
|
|
14
|
+
req.__myAppInternals.paths.push(`<script src="/myux/icons/PS_Icon.js"></script>`)
|
|
15
|
+
req.__myAppInternals.paths.push(`<link rel="stylesheet" href="/myux/icons/PS_Icon.css">`)
|
|
16
|
+
if(req.__myAppInternals.modals == null){
|
|
17
|
+
req.__myAppInternals.modals=[]
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
plxdcma_standarinit.use(function(app){
|
|
22
|
+
app.get(`/myux/icons/PS_Icon.js`,function(req,res){
|
|
23
|
+
fs.readFile(path.join(__dirname,"js.js"),"utf8",function(err,html){
|
|
24
|
+
res.write(html)
|
|
25
|
+
res.end()
|
|
26
|
+
})
|
|
27
|
+
})
|
|
28
|
+
app.get(`/myux/icons/PS_Icon.css`,function(req,res){
|
|
29
|
+
fs.readFile(path.join(__dirname,"css.css"),"utf8",function(err,html){
|
|
30
|
+
res.write(html)
|
|
31
|
+
res.end()
|
|
32
|
+
})
|
|
33
|
+
})
|
|
34
|
+
})
|
package/js.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
function pitchstarticon(data,isediting,extenraldelegate){
|
|
2
|
+
if(data == null && isediting){
|
|
3
|
+
var xz=`<div class="team-member" onclick='didRequestToAddAnIcon(${section})' style="background: white; padding: 2rem; border-radius: 15px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.1);">
|
|
4
|
+
<h3><i class='fa fa-plus'></i></h3>
|
|
5
|
+
</div>`
|
|
6
|
+
return xz
|
|
7
|
+
}
|
|
8
|
+
var xz=`<div class="pitch-stat-card">
|
|
9
|
+
<h4 cxtza='icon'>4.12</h4>
|
|
10
|
+
<p cxtza='titulo' >ERA del Equipo</p>
|
|
11
|
+
<span cxtza='subtitulo' class="rank">8vo en la Liga</span>
|
|
12
|
+
</div>`
|
|
13
|
+
return xz
|
|
14
|
+
}
|
package/package.json
ADDED
package/preview.png
ADDED
|
Binary file
|