Socket
Socket
Sign inDemoInstall

cavalion-blocks

Package Overview
Dependencies
0
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cavalion-blocks

`blocks-dot-js` `[].js`


Version published
Maintainers
1
Created

Changelog

Source

2024/05/20 - 0.9.38

  • Hover:
    • Improves drag/drop- and persistent/size-behaviour
    • Instantiated block components are owned by the Hover-component
  • Gets rid of dependency to blocks.less

Readme

Source
function override_stuff() {
	
	["A", "B"].valuesOf(this).applyTo(this, override);
	
	function override(A, B) {

	}
	
	["A", "B", "C"].map(key => this[key]).forEach((A, B, C) => {
		
		this.A = function() { };
		this.B = function() { };
		this.C = function() { };
		
	});
	
	["execute", "render"].mapAndApply(this, function(execute, render) {});
	
	var f = k => this[k];
	override.apply(this, mapKeysOf(this, ["A", "B"]));
	
	this.clicked = 0;
	for(var k in this) {
		var inherited = this[k];
		if(k === "click") {
			this[k] = function() {
				this.clicked++;
				return inherited.apply(this, arguments);
			};
		}
	}
}

function blocks1() {

// without Blocks:
	 var panel = new (require("vcl/ui/Panel"))();
	 panel.setEnabled(false);
	 
// with Blocks:
	 var panel = Blocks.create(["vcl-ui:Panel", { enabled: false }]);
	 
	 
// with Blocks & messing with Array.prototype
	Array.prototype.create = function() { /* ... */ };
	var panel = ["vcl-ui:Panel", { enabled: false }].create();
}

/*- WOW! I just saw a way to get rid of/isolate the Vars-stuff (so obvious, but elegant; only use it TCN **there where needed**) */
["Page, Vars", {}, []];

["html:div Page List", {}, []];

	// local ------ I ---- global
	function blocks2() {

// Blocks.override ( === [].override) - seems HUGE:

	["vcl-ui:Tab", { 
		select: [].override(function(select) {
			return function() {
				return select.apply(arguments);	
			};
		})
	}];
	
// Some pages...

	["Page, code/Source", [
		["Executable", "refresh", { 
			execute: function() {} 
		}],
	]];
	
	define(["blocks!Page", "veldoffice!Meetpunt"], function(Page, models) {
		
		// var Source = models.Source;
		
		return new Page([]);
	});
	
	require(["blocks!Page, veldoffice:Meetpunt<veldoffice-1635252>", {}, function(Page, Meetpunt) {
		
	}]);
	
	["Page, veldoffice:Meetpunt", "", (Page, Meetpunt) => {
		
	}];

	
	
/*- this/local  --- I ---  global/that 
	inner  -------- I ---------  outer

	So (local) versus (global), but wtf is "I" doing there in the middle?
	
	"I" is processing global to local and local to global
	
	
*/

	}
	
	
	
	["Page", [
	
		["#workspaces", {}, [].override(function() {
			
		})]	
		
	]];
	
	
	
	
	
	

FAQs

Last updated on 20 May 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc