New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mofron-comp-appheader

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mofron-comp-appheader - npm Package Compare versions

Comparing version 0.4.7 to 0.4.8

62

index.js

@@ -39,5 +39,3 @@ /**

let conts = new mf.Component({
layout : new Horiz()
});
let conts = new mf.Component({ layout: new Horiz() });
this.addChild(conts);

@@ -65,12 +63,19 @@ this.addChild(this.naviWrap());

if ('string' === typeof prm) {
this.logo().execOption({
path : prm
});
this.logo().effect('SyncHei').offset(off);
this.logo().option({ path : prm });
this.logo().effect(['SyncHei', 'logo']).offset(off);
return;
} else if (true === mf.func.isInclude(prm, 'Image')) {
let jmp = (p1, p2, p3) => {
try { p3.jump(); } catch (e) {
console.error(e.stack);
throw e;
}
}
prm.execOption({
event : this.getUrlJump(),
effect : new Synhei(this, off),
style : [{ 'margin-left' : '0.2rem' }, true]
event : [ new Click([jmp, this]) ],
effect : [ new Synhei({ targetComp: this, offset: off, tag: 'logo' }) ],
style : [
{ 'margin-left' : (undefined !== off) ? off : '0.2rem' },
(undefined !== off) ? false : true
]
});

@@ -85,20 +90,7 @@ }

/**
* get click function
*
* @note private method
*/
getUrlJump () {
jump () {
try {
let func = (p1, p2, p3) => {
try {
if (null !== p3.url()) {
location.href = p3.url();
}
} catch (e) {
console.error(e.stack);
throw e;
}
};
return new Click([func, this]);
if (null !== this.url()) {
location.href = this.url();
}
} catch (e) {

@@ -118,7 +110,13 @@ console.error(e.stack);

*/
title (txt, p2) {
title (txt) {
try {
let ret = this.text(txt, p2);
if (undefined !== txt) {
this.text().event(this.getUrlJump());
let ret = this.text(txt);
if (undefined === ret) {
let jmp = (p1, p2, p3) => {
try { p3.jump(); } catch (e) {
console.error(e.stack);
throw e;
}
}
this.text().event([new Click([jmp, this])]);
}

@@ -162,3 +160,3 @@ return ret;

/* setter */
this.naviWrap().execOption({ child : prm });
this.naviWrap().option({ child : prm });
} catch (e) {

@@ -165,0 +163,0 @@ console.error(e.stack);

{
"name": "mofron-comp-appheader",
"version": "0.4.7",
"version": "0.4.8",
"description": "app header component for mofron",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc