You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

mvc-framework

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mvc-framework

▴ PAC Framework With MVC Framework Subpatterns ▵ Manage Simplex/Complex Browser Applications & Websites With Familiar Plain JS Notation ▵ Mediate Model, View, Router, And Controller Events With Event-Driven Core Architecture ▵ Capture Detaile

2.5.1
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

⁜ MVC Framework

 ▴ PAC Framework With MVC Framework Subpatterns
    ▵ Manage Simplex/Complex Browser Applications & Websites With Familiar Plain JS Notation
    ▵ Mediate Model, View, Router, And Controller Events With Event-Driven Core Architecture
    ▵ Capture Detailed Object/Array Mutator Method Events Including Subproperty Events

 ⁘ Uses Core-Plex - Event Listener Management System
 ❂ Uses Objecture - Object Watcher, Property Manager

※ Independent Classes

SYMNAMEDESCRIPTAPIGUIDE
MModelManage schematized content.
XModel SchemaManage data schema.
DModel ContentManage data content.
VViewManage templated markup elements.
RRouterWindow location router or fetch router.
RLRouter (Location)Manage window location.
RFRouter (Fetch)Manage AJAX connection.
RSRouter (Socket)Manage Socket connection.
CControlManage Model, View, Control, Location/fetch Routers.

※ Interdependent Class Structures

FORMULANAMEACRONYMDESCRIPT
CMVRC*Control (Model, View, Router, Controls)CMVRCControl class instances contain model, view, router, and subcontrol class instances.
MVRM*Model (View, Router, Models)MVRMModel class instances contain view, router, and submodel class instances.
VMRV*View (Model, Router, Views)VMRVView class instances contain model, router, and subview class instances.
RMVR*Router (Model, View, Routers)RMVRRouter class instances contain model, view, and subrouter class instances.

※ Illustrations

PAC (CMVRC)

const control = new Control({
  models: {
    ui: new Model({
      selected: false,
      anchor: { text: "Product Detail" },
    }),
    content: new Model({
      id: "0246813579",
      name: "Some Product Name",
      price: "$235.78",
      descript: "Some product description.",
      graphic: "https://pbs.twimg.com/media/Grhfq0JaIAAPIqI?format=jpg&name=medium",
      anchor: "https://x.com/StellarManatee/status/1925394081796223237",
    }),
  },
  views: {
    default: new View({
      templates: { default: ($models) => {
        const { ui, content } + $models
        return `
          <product data-selected="${ui.selected}">
            <text>
              <name>${content.name}</name>
              <descript>${content.descript}</descript>
              <price>${content.price}</price>
              <a href="${content.anchor}" target="_blank">${ui.anchor.text}</a>
            </text>
            <graphic>
              <img src="${content.graphic}" />
            </graphic>
          </product>
        `
      } },
      querySelectors: { querySelector: {
        'product': ':scope'
      } },
    })
  },
}, {
  events: {
    'models.ui setProperty:selected': function($event) {
      this.views.qs.product.setAttribute($event)
    }
  },
})

Keywords

mvc framework

FAQs

Package last updated on 02 Jun 2025

Did you know?

Socket

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