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

vpuserlayout

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vpuserlayout - npm Package Compare versions

Comparing version 1.0.10 to 1.0.11

2

package.json
{
"name": "vpuserlayout",
"version": "1.0.10",
"version": "1.0.11",
"description": "",

@@ -5,0 +5,0 @@ "main": "vpuserlayout.es.js",

@@ -1,14 +0,14 @@

import { inject as I, getCurrentInstance as L, onMounted as M, onUnmounted as D, ref as E, resolveComponent as V, openBlock as t, createBlock as N, unref as r, createSlots as P, withCtx as w, createElementVNode as e, createVNode as U, createElementBlock as n, Fragment as d, renderList as p, toDisplayString as f, createCommentVNode as x, normalizeClass as j, pushScopeId as z, popScopeId as O } from "vue";
import A from "vitepress/theme";
import { useMediaQuery as g } from "@vueuse/core";
import { useData as F } from "vitepress";
const G = (o, a) => {
const s = o.__vccOpts || o;
for (const [l, h] of a)
s[l] = h;
import { getCurrentInstance as I, onMounted as L, onUnmounted as M, ref as E, resolveComponent as V, openBlock as t, createBlock as D, unref as l, createSlots as N, withCtx as _, createElementVNode as e, createVNode as P, createElementBlock as o, Fragment as d, renderList as p, toDisplayString as w, createCommentVNode as f, normalizeClass as U, pushScopeId as z, popScopeId as j } from "vue";
import O from "vitepress/theme";
import { useMediaQuery as x } from "@vueuse/core";
import { useData as A } from "vitepress";
const F = (n, c) => {
const s = n.__vccOpts || n;
for (const [h, i] of c)
s[h] = i;
return s;
}, m = (o) => (z("data-v-582a5016"), o = o(), O(), o), H = /* @__PURE__ */ m(() => /* @__PURE__ */ e("h1", null, "Parent Component", -1)), Q = { class: "container" }, T = {
}, m = (n) => (z("data-v-d4408891"), n = n(), j(), n), G = /* @__PURE__ */ m(() => /* @__PURE__ */ e("h1", null, "Parent Component", -1)), H = { class: "container" }, Q = {
key: 0,
class: "dropdown"
}, W = /* @__PURE__ */ m(() => /* @__PURE__ */ e("span", { class: "user-menu" }, [
}, T = /* @__PURE__ */ m(() => /* @__PURE__ */ e("span", { class: "user-menu" }, [
/* @__PURE__ */ e("svg", {

@@ -45,3 +45,3 @@ xmlns: "http://www.w3.org/2000/svg",

])
], -1)), $ = /* @__PURE__ */ m(() => /* @__PURE__ */ e("span", { class: "vpi-chevron-down text-icon" }, null, -1)), q = { class: "dropdown-content" }, J = { class: "dropdown-menu" }, K = { class: "menuItem" }, R = {
], -1)), W = /* @__PURE__ */ m(() => /* @__PURE__ */ e("span", { class: "vpi-chevron-down text-icon" }, null, -1)), $ = { class: "dropdown-content" }, q = { class: "dropdown-menu" }, J = { class: "menuItem" }, g = "", K = {
__name: "VPUserLayout",

@@ -52,18 +52,18 @@ props: {

},
setup(o) {
const a = I("dynamicData"), s = L();
M(() => {
window.addEventListener("resize", _);
}), D(() => {
window.removeEventListener("resize", _);
setup(n) {
const c = I();
L(() => {
window.addEventListener("resize", v);
}), M(() => {
window.removeEventListener("resize", v);
});
const { lang: l, theme: h } = F();
var v = g("(min-width: 1280px)").value;
const { Layout: k } = A;
function _() {
v = g("(min-width: 1280px)").value, s.proxy.$forceUpdate();
const { lang: s, theme: h } = A();
var i = x("(min-width: 1280px)").value;
const { Layout: k } = O;
function v() {
i = x("(min-width: 1280px)").value, c.proxy.$forceUpdate();
}
const c = E(!1);
const r = E(!1);
function y() {
c.value = !c.value, console.log(c.value);
r.value = !r.value, console.log(r.value);
}

@@ -73,23 +73,23 @@ function C() {

}
return (ee, te) => {
return (Z, ee) => {
const S = V("SimpleComponent");
return t(), N(r(k), null, P({ _: 2 }, [
r(v) ? {
return t(), D(l(k), null, N({ _: 2 }, [
l(i) ? {
name: "nav-bar-content-after",
fn: w(() => [
fn: _(() => [
e("div", null, [
H,
U(S, { msg: "Hello from Parent!" })
G,
P(S, { msg: "Hello from Parent!" })
]),
(t(!0), n(d, null, p(r(a), (i, b) => (t(), n("div", Q, [
r(l) === i.lang ? (t(), n("div", T, [
(t(), o(d, null, p(g, (a, b) => e("div", H, [
l(s) === a.lang ? (t(), o("div", Q, [
T,
W,
$,
e("div", q, [
e("div", J, [
(t(!0), n(d, null, p(i.menus, (u, B) => (t(), n("div", K, f(u), 1))), 256))
e("div", $, [
e("div", q, [
(t(!0), o(d, null, p(a.menus, (u, B) => (t(), o("div", J, w(u), 1))), 256))
])
])
])) : x("", !0)
]))), 256))
])) : f("", !0)
])), 64))
]),

@@ -99,15 +99,15 @@ key: "0"

name: "nav-screen-content-after",
fn: w(() => [
(t(!0), n(d, null, p(r(a), (i, b) => (t(), n("div", { class: "mobileDropdown" }, [
r(l) === i.lang ? (t(), n("div", {
fn: _(() => [
(t(), o(d, null, p(g, (a, b) => e("div", { class: "mobileDropdown" }, [
l(s) === a.lang ? (t(), o("div", {
key: 0,
class: j(["BMNavScreenMenuGroup", { open: c.value }])
class: U(["BMNavScreenMenuGroup", { open: r.value }])
}, [
e("button", {
class: "button",
"aria-expanded": c.value,
"aria-expanded": r.value,
onClick: y
}, [
e("span", null, [
(t(), n("svg", {
(t(), o("svg", {
xmlns: "http://www.w3.org/2000/svg",

@@ -147,9 +147,9 @@ width: "20",

e("div", { class: "items group" }, [
(t(!0), n(d, null, p(i.menus, (u, B) => (t(), n("div", {
(t(!0), o(d, null, p(a.menus, (u, B) => (t(), o("div", {
class: "item",
onClick: C
}, f(u), 1))), 256))
}, w(u), 1))), 256))
])
], 2)) : x("", !0)
]))), 256))
], 2)) : f("", !0)
])), 64))
]),

@@ -161,10 +161,10 @@ key: "1"

}
}, X = /* @__PURE__ */ G(R, [["__scopeId", "data-v-582a5016"]]), Y = [X], Z = function(o, a) {
Y.forEach((s) => {
o.component(s.name, s);
}, R = /* @__PURE__ */ F(K, [["__scopeId", "data-v-d4408891"]]), X = [R], Y = function(n, c) {
X.forEach((s) => {
n.component(s.name, s);
});
}, ae = { install: Z };
}, re = { install: Y };
export {
X as VPUserLayout,
ae as default
R as VPUserLayout,
re as default
};

@@ -1,1 +0,1 @@

(function(t,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vitepress/theme"),require("@vueuse/core"),require("vitepress")):typeof define=="function"&&define.amd?define(["exports","vue","vitepress/theme","@vueuse/core","vitepress"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.VPUserLayout={},t.Vue,t.DefaultTheme,t.core,t.vitepress))})(this,function(t,e,V,i,f){"use strict";const k=(n,r)=>{const o=n.__vccOpts||n;for(const[l,p]of r)o[l]=p;return o},s=n=>(e.pushScopeId("data-v-582a5016"),n=n(),e.popScopeId(),n),_=s(()=>e.createElementVNode("h1",null,"Parent Component",-1)),N={class:"container"},w={key:0,class:"dropdown"},B=s(()=>e.createElementVNode("span",{class:"user-menu"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M2 21a8 8 0 0 1 10.434-7.62"}),e.createElementVNode("circle",{cx:"10",cy:"8",r:"5"}),e.createElementVNode("circle",{cx:"18",cy:"18",r:"3"}),e.createElementVNode("path",{d:"m19.5 14.3-.4.9"}),e.createElementVNode("path",{d:"m16.9 20.8-.4.9"}),e.createElementVNode("path",{d:"m21.7 19.5-.9-.4"}),e.createElementVNode("path",{d:"m15.2 16.9-.9-.4"}),e.createElementVNode("path",{d:"m21.7 16.5-.9.4"}),e.createElementVNode("path",{d:"m15.2 19.1-.9.4"}),e.createElementVNode("path",{d:"m19.5 21.7-.4-.9"}),e.createElementVNode("path",{d:"m16.9 15.2-.4-.9"})])],-1)),g=s(()=>e.createElementVNode("span",{class:"vpi-chevron-down text-icon"},null,-1)),x={class:"dropdown-content"},y={class:"dropdown-menu"},C={class:"menuItem"},m=k({__name:"VPUserLayout",props:{test:String,items:Array},setup(n){const r=e.inject("dynamicData"),o=e.getCurrentInstance();e.onMounted(()=>{window.addEventListener("resize",E)}),e.onUnmounted(()=>{window.removeEventListener("resize",E)});const{lang:l,theme:p}=f.useData();var h=i.useMediaQuery("(min-width: 1280px)").value;const{Layout:L}=V;function E(){h=i.useMediaQuery("(min-width: 1280px)").value,o.proxy.$forceUpdate()}const c=e.ref(!1);function M(){c.value=!c.value,console.log(c.value)}function P(){alert("menu1")}return(q,F)=>{const D=e.resolveComponent("SimpleComponent");return e.openBlock(),e.createBlock(e.unref(L),null,e.createSlots({_:2},[e.unref(h)?{name:"nav-bar-content-after",fn:e.withCtx(()=>[e.createElementVNode("div",null,[_,e.createVNode(D,{msg:"Hello from Parent!"})]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(a,I)=>(e.openBlock(),e.createElementBlock("div",N,[e.unref(l)===a.lang?(e.openBlock(),e.createElementBlock("div",w,[B,g,e.createElementVNode("div",x,[e.createElementVNode("div",y,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.menus,(d,U)=>(e.openBlock(),e.createElementBlock("div",C,e.toDisplayString(d),1))),256))])])])):e.createCommentVNode("",!0)]))),256))]),key:"0"}:{name:"nav-screen-content-after",fn:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(a,I)=>(e.openBlock(),e.createElementBlock("div",{class:"mobileDropdown"},[e.unref(l)===a.lang?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["BMNavScreenMenuGroup",{open:c.value}])},[e.createElementVNode("button",{class:"button","aria-expanded":c.value,onClick:M},[e.createElementVNode("span",null,[(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M2 21a8 8 0 0 1 10.434-7.62"}),e.createElementVNode("circle",{cx:"10",cy:"8",r:"5"}),e.createElementVNode("circle",{cx:"18",cy:"18",r:"3"}),e.createElementVNode("path",{d:"m19.5 14.3-.4.9"}),e.createElementVNode("path",{d:"m16.9 20.8-.4.9"}),e.createElementVNode("path",{d:"m21.7 19.5-.9-.4"}),e.createElementVNode("path",{d:"m15.2 16.9-.9-.4"}),e.createElementVNode("path",{d:"m21.7 16.5-.9.4"}),e.createElementVNode("path",{d:"m15.2 19.1-.9.4"}),e.createElementVNode("path",{d:"m19.5 21.7-.4-.9"}),e.createElementVNode("path",{d:"m16.9 15.2-.4-.9"})]))]),e.createElementVNode("span",{class:"vpi-plus button-icon"})],8,["aria-expanded"]),e.createElementVNode("div",{class:"items group"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.menus,(d,U)=>(e.openBlock(),e.createElementBlock("div",{class:"item",onClick:P},e.toDisplayString(d),1))),256))])],2)):e.createCommentVNode("",!0)]))),256))]),key:"1"}]),1024)}}},[["__scopeId","data-v-582a5016"]]),u=[m],S={install:function(n,r){u.forEach(o=>{n.component(o.name,o)})}};t.VPUserLayout=m,t.default=S,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
(function(t,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vitepress/theme"),require("@vueuse/core"),require("vitepress")):typeof define=="function"&&define.amd?define(["exports","vue","vitepress/theme","@vueuse/core","vitepress"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.VPUserLayout={},t.Vue,t.DefaultTheme,t.core,t.vitepress))})(this,function(t,e,V,i,N){"use strict";const _=(n,a)=>{const o=n.__vccOpts||n;for(const[h,l]of a)o[h]=l;return o},s=n=>(e.pushScopeId("data-v-d4408891"),n=n(),e.popScopeId(),n),f=s(()=>e.createElementVNode("h1",null,"Parent Component",-1)),k={class:"container"},w={key:0,class:"dropdown"},g=s(()=>e.createElementVNode("span",{class:"user-menu"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M2 21a8 8 0 0 1 10.434-7.62"}),e.createElementVNode("circle",{cx:"10",cy:"8",r:"5"}),e.createElementVNode("circle",{cx:"18",cy:"18",r:"3"}),e.createElementVNode("path",{d:"m19.5 14.3-.4.9"}),e.createElementVNode("path",{d:"m16.9 20.8-.4.9"}),e.createElementVNode("path",{d:"m21.7 19.5-.9-.4"}),e.createElementVNode("path",{d:"m15.2 16.9-.9-.4"}),e.createElementVNode("path",{d:"m21.7 16.5-.9.4"}),e.createElementVNode("path",{d:"m15.2 19.1-.9.4"}),e.createElementVNode("path",{d:"m19.5 21.7-.4-.9"}),e.createElementVNode("path",{d:"m16.9 15.2-.4-.9"})])],-1)),x=s(()=>e.createElementVNode("span",{class:"vpi-chevron-down text-icon"},null,-1)),y={class:"dropdown-content"},B={class:"dropdown-menu"},u={class:"menuItem"},m="",p=_({__name:"VPUserLayout",props:{test:String,items:Array},setup(n){const a=e.getCurrentInstance();e.onMounted(()=>{window.addEventListener("resize",E)}),e.onUnmounted(()=>{window.removeEventListener("resize",E)});const{lang:o,theme:h}=N.useData();var l=i.useMediaQuery("(min-width: 1280px)").value;const{Layout:L}=V;function E(){l=i.useMediaQuery("(min-width: 1280px)").value,a.proxy.$forceUpdate()}const r=e.ref(!1);function M(){r.value=!r.value,console.log(r.value)}function P(){alert("menu1")}return(q,F)=>{const I=e.resolveComponent("SimpleComponent");return e.openBlock(),e.createBlock(e.unref(L),null,e.createSlots({_:2},[e.unref(l)?{name:"nav-bar-content-after",fn:e.withCtx(()=>[e.createElementVNode("div",null,[f,e.createVNode(I,{msg:"Hello from Parent!"})]),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(m,(c,U)=>e.createElementVNode("div",k,[e.unref(o)===c.lang?(e.openBlock(),e.createElementBlock("div",w,[g,x,e.createElementVNode("div",y,[e.createElementVNode("div",B,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.menus,(d,b)=>(e.openBlock(),e.createElementBlock("div",u,e.toDisplayString(d),1))),256))])])])):e.createCommentVNode("",!0)])),64))]),key:"0"}:{name:"nav-screen-content-after",fn:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(m,(c,U)=>e.createElementVNode("div",{class:"mobileDropdown"},[e.unref(o)===c.lang?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["BMNavScreenMenuGroup",{open:r.value}])},[e.createElementVNode("button",{class:"button","aria-expanded":r.value,onClick:M},[e.createElementVNode("span",null,[(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M2 21a8 8 0 0 1 10.434-7.62"}),e.createElementVNode("circle",{cx:"10",cy:"8",r:"5"}),e.createElementVNode("circle",{cx:"18",cy:"18",r:"3"}),e.createElementVNode("path",{d:"m19.5 14.3-.4.9"}),e.createElementVNode("path",{d:"m16.9 20.8-.4.9"}),e.createElementVNode("path",{d:"m21.7 19.5-.9-.4"}),e.createElementVNode("path",{d:"m15.2 16.9-.9-.4"}),e.createElementVNode("path",{d:"m21.7 16.5-.9.4"}),e.createElementVNode("path",{d:"m15.2 19.1-.9.4"}),e.createElementVNode("path",{d:"m19.5 21.7-.4-.9"}),e.createElementVNode("path",{d:"m16.9 15.2-.4-.9"})]))]),e.createElementVNode("span",{class:"vpi-plus button-icon"})],8,["aria-expanded"]),e.createElementVNode("div",{class:"items group"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.menus,(d,b)=>(e.openBlock(),e.createElementBlock("div",{class:"item",onClick:P},e.toDisplayString(d),1))),256))])],2)):e.createCommentVNode("",!0)])),64))]),key:"1"}]),1024)}}},[["__scopeId","data-v-d4408891"]]),C=[p],S={install:function(n,a){C.forEach(o=>{n.component(o.name,o)})}};t.VPUserLayout=p,t.default=S,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});

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