Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mofron-comp-appbase

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mofron-comp-appbase - npm Package Compare versions

Comparing version 0.4.12 to 0.4.13

57

index.js

@@ -17,4 +17,5 @@ /**

*
* @param (string) title parameter
* @param (Component) child component
* @param (mixed) title parameter
* object: component option
* @param (component) child component
* @pmap title,child

@@ -61,6 +62,6 @@ * @type private

*
* @param (string/Text) app title
* @param (string/Image) string: path to app logo image
* Image: logo image
* @return (Text) app title
* @param (mixed) string/mofron-comp-text: app title
* @param (mixed) string: path to app logo image
* mofron-comp-image: logo image
* @return (mofron-comp-text) app title
* @type parameter

@@ -84,3 +85,4 @@ */

*
* @param (Header) header component
* @param (mofron-comp-header) header component
* @return (mofron-comp-header) header component
* @type parameter

@@ -98,4 +100,4 @@ */

*
* @param (Component) background wrapper component
* @return (Component) background wrapper component
* @param (component) background wrapper component
* @return (component) background wrapper component
* @type private

@@ -124,4 +126,4 @@ */

*
* @param (Component) background component
* @return (Component) background component
* @param (component) background component
* @return (component) background component
* @type parameter

@@ -157,7 +159,8 @@ */

*
* @param (string) height size
* @param (string (size)) height size
* @param (option) style option
* @return (string) height size
* @type parameter
*/
height (prm) {
height (prm, opt) {
try {

@@ -169,16 +172,6 @@ if (undefined === prm) {

/* setter */
opt = undefined;
if (true === Array.isArray(prm)) {
opt = prm[1];
prm = prm[0];
}
let set_hei = mf.func.getSize(
mf.func.sizeDiff(prm, this.header().height())
);
if (undefined !== opt) {
super.height((0 > set_hei.value()) ? [prm,opt] : [set_hei,opt]);
} else {
super.height((0 > set_hei.value()) ? prm : set_hei);
}
super.height((0 > set_hei.value()) ? prm : set_hei);
super.height((0 > set_hei.value()) ? [prm,opt] : [set_hei,opt]);
} catch (e) {

@@ -193,9 +186,10 @@ console.error(e.stack);

*
* @param (string/Array) string: color,#hex
* Array: r,g,b
* @param (mixed (color)) string: color name, #hex
* array: [red, green, blue, alpha]
* @param (option) style option
* @return (string) color
* @type parameter
*/
mainColor (prm) {
try { return this.header().baseColor(prm); } catch (e) {
mainColor (prm, opt) {
try { return this.header().baseColor(prm,opt); } catch (e) {
console.error(e.stack);

@@ -209,4 +203,5 @@ throw e;

*
* @param (string/Array) string: color,#hex
* Array: r,g,b
* @param (mixed (color)) string: color name, #hex
* array: [red, green, blue, alpha]
* @param (option) style option
* @return (string) color

@@ -216,3 +211,3 @@ * @type parameter

baseColor (prm) {
try { return mf.func.cmpColor(this, 'background', prm); } catch (e) {
try { return mf.func.cmpColor(this, 'background', [prm,opt]); } catch (e) {
console.error(e.stack);

@@ -219,0 +214,0 @@ throw e;

{
"name": "mofron-comp-appbase",
"version": "0.4.12",
"version": "0.4.13",
"description": "application base component for mofron",

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

@@ -6,3 +6,3 @@ # mofron-comp-appbase

it makes easy to build page.
it makes easy to build page.

@@ -12,3 +12,3 @@

```
npm install mofron mofron-comp-appbase
npm install mofron mofron-comp-appbase
```

@@ -23,3 +23,3 @@

<AppBase mainColor=#f0e6fa title=mofron>
<AppBase title=AppBase,"./img/logo.png">
<background>

@@ -34,12 +34,15 @@ <Image>./img/mofron.png</Image>

|:--------------:|:---------------|:-----|:------------|
|◯ | title | string/Text | app title |
| | | string/Image | string: path to app logo image |
| | | | Image: logo image |
| | header | Header | header component |
| | background | Component | background component |
| | height | string | height size |
| | mainColor | string/Array | string: color,#hex |
| | | | Array: r,g,b |
| | baseColor | string/Array | string: color,#hex |
| | | | Array: r,g,b |
| | title | mixed | string/mofron-comp-text: app title |
| | | mixed | string: path to app logo image |
| | | | mofron-comp-image: logo image |
| | header | mofron-comp-header | header component |
| | background | component | background component |
| | height | string (size) | height size |
| | | option | style option |
| | mainColor | mixed (color) | string: color name, #hex |
| | | | array: [red, green, blue, alpha] |
| | | option | style option |
| | baseColor | mixed (color) | string: color name, #hex |
| | | | array: [red, green, blue, alpha] |
| | | option | style option |

Sorry, the diff of this file is not supported yet

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