plxdcma_rendericon_textblock 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 ADDED
@@ -0,0 +1,12 @@
1
+ .achievements-grid{
2
+ display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem;
3
+ }
4
+ .achievement-number{
5
+ font-size: 4rem; font-weight: 700; margin-bottom: 1rem;
6
+ }
7
+ .achievement-card > h4{
8
+ font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem;
9
+ }
10
+ .achievement-card > p{
11
+ opacity: 0.9;
12
+ }
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/noticia_Icon.js"></script>`)
15
+ req.__myAppInternals.paths.push(`<link rel="stylesheet" href="/myux/icons/noticia_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/noticia_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/noticia_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,25 @@
1
+ function tb_icon(data,isediting,section){
2
+
3
+ if(isediting == true && data == null){
4
+ var tb=`<div class="achievement-card" onclick='didRequestToAddAnIcon(${section})' style="text-align: center; color: white;">
5
+ <br/><br/><br/>
6
+ <h1><i class='fa fa-plus'></i></h1>
7
+ </div>`
8
+ return tb
9
+ }
10
+
11
+ var cstring=``
12
+ var ock=""
13
+ if(isediting){
14
+ cstring=`contenteditable='true'`
15
+
16
+ }
17
+ console.log(`data ip`)
18
+ console.log(data)
19
+ var tb=`<div class="achievement-card" style="text-align: center; color: white;">
20
+ <div ${cstring} cxtza='icontext' class="achievement-number" style="font-size: 4rem; font-weight: 700; margin-bottom: 1rem;">${data.icontext ?? "15+"}</div>
21
+ <h4 ${cstring} cxtza='titulo' style="font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem;">${data.titulo}</h4>
22
+ <p ${cstring} cxtza='subtitulo' style="opacity: 0.9;">${data.subtitulo ?? `Orgullosos de haber formado talentos que llegaron a MLB`}</p>
23
+ </div>`
24
+ return tb;
25
+ }
package/package.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "name": "plxdcma_rendericon_textblock",
3
+ "version": "1.0.1",
4
+ "main": "init.js",
5
+ "license": "MIT"
6
+ }
package/preview.png ADDED
Binary file
package/yarn-error.log ADDED
@@ -0,0 +1,36 @@
1
+ Arguments:
2
+ /usr/local/bin/node /usr/local/bin/yarn init
3
+
4
+ PATH:
5
+ /usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin
6
+
7
+ Yarn version:
8
+ 1.22.19
9
+
10
+ Node version:
11
+ 18.17.0
12
+
13
+ Platform:
14
+ darwin arm64
15
+
16
+ Trace:
17
+ Error: canceled
18
+ at Interface.<anonymous> (/usr/local/lib/node_modules/yarn/lib/cli.js:137150:13)
19
+ at Interface.emit (node:events:514:28)
20
+ at [_ttyWrite] [as _ttyWrite] (node:internal/readline/interface:1131:18)
21
+ at ReadStream.onkeypress (node:internal/readline/interface:270:20)
22
+ at ReadStream.emit (node:events:514:28)
23
+ at emitKeys (node:internal/readline/utils:357:14)
24
+ at emitKeys.next (<anonymous>)
25
+ at ReadStream.onData (node:internal/readline/emitKeypressEvents:64:36)
26
+ at ReadStream.emit (node:events:514:28)
27
+ at addChunk (node:internal/streams/readable:324:12)
28
+
29
+ npm manifest:
30
+ No manifest
31
+
32
+ yarn manifest:
33
+ No manifest
34
+
35
+ Lockfile:
36
+ No lockfile