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.8 to 1.0.9

2

package.json
{
"name": "vpuserlayout",
"version": "1.0.8",
"version": "1.0.9",
"description": "",

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

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

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

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

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

@@ -53,107 +53,114 @@ props: {

setup(o) {
const a = B("dynamicData"), s = I();
L(() => {
const s = I("dynamicData"), r = L();
M(() => {
window.addEventListener("resize", v);
}), M(() => {
}), D(() => {
window.removeEventListener("resize", v);
});
const { lang: d, theme: m } = O();
const { lang: l, theme: m } = F();
var h = x("(min-width: 1280px)").value;
const { Layout: k } = N;
const { Layout: k } = A;
function v() {
h = x("(min-width: 1280px)").value, s.proxy.$forceUpdate();
h = x("(min-width: 1280px)").value, r.proxy.$forceUpdate();
}
const c = D(!1);
const c = E(!1);
function y() {
c.value = !c.value, console.log(c.value);
}
function b() {
function C() {
alert("menu1");
}
return (R, X) => (t(), E(r(k), null, U({ _: 2 }, [
r(h) ? {
name: "nav-bar-content-after",
fn: _(() => [
(t(!0), n(l, null, p(r(a), (i, C) => (t(), n("div", A, [
r(d) === i.lang ? (t(), n("div", F, [
G,
Q,
e("div", T, [
e("div", W, [
(t(!0), n(l, null, p(i.menus, (u, S) => (t(), n("div", $, w(u), 1))), 256))
return (Z, ee) => {
const S = V("SimpleComponent");
return t(), N(a(k), null, P({ _: 2 }, [
a(h) ? {
name: "nav-bar-content-after",
fn: _(() => [
(t(!0), n(d, null, p(a(s), (i, b) => (t(), n("div", H, [
a(l) === i.lang ? (t(), n("div", Q, [
T,
W,
e("div", $, [
e("div", q, [
(t(!0), n(d, null, p(i.menus, (u, B) => (t(), n("div", J, w(u), 1))), 256))
])
])
])
])) : f("", !0)
]))), 256))
]),
key: "0"
} : {
name: "nav-screen-content-after",
fn: _(() => [
(t(!0), n(l, null, p(r(a), (i, C) => (t(), n("div", { class: "mobileDropdown" }, [
r(d) === i.lang ? (t(), n("div", {
key: 0,
class: V(["BMNavScreenMenuGroup", { open: c.value }])
}, [
e("button", {
class: "button",
"aria-expanded": c.value,
onClick: y
])) : f("", !0)
]))), 256))
]),
key: "0"
} : {
name: "nav-screen-content-after",
fn: _(() => [
(t(!0), n(d, null, p(a(s), (i, b) => (t(), n("div", { class: "mobileDropdown" }, [
a(l) === i.lang ? (t(), n("div", {
key: 0,
class: U(["BMNavScreenMenuGroup", { open: c.value }])
}, [
e("span", null, [
(t(), n("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("path", { d: "M2 21a8 8 0 0 1 10.434-7.62" }),
e("circle", {
cx: "10",
cy: "8",
r: "5"
}),
e("circle", {
cx: "18",
cy: "18",
r: "3"
}),
e("path", { d: "m19.5 14.3-.4.9" }),
e("path", { d: "m16.9 20.8-.4.9" }),
e("path", { d: "m21.7 19.5-.9-.4" }),
e("path", { d: "m15.2 16.9-.9-.4" }),
e("path", { d: "m21.7 16.5-.9.4" }),
e("path", { d: "m15.2 19.1-.9.4" }),
e("path", { d: "m19.5 21.7-.4-.9" }),
e("path", { d: "m16.9 15.2-.4-.9" })
]))
e("button", {
class: "button",
"aria-expanded": c.value,
onClick: y
}, [
e("span", null, [
(t(), n("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("path", { d: "M2 21a8 8 0 0 1 10.434-7.62" }),
e("circle", {
cx: "10",
cy: "8",
r: "5"
}),
e("circle", {
cx: "18",
cy: "18",
r: "3"
}),
e("path", { d: "m19.5 14.3-.4.9" }),
e("path", { d: "m16.9 20.8-.4.9" }),
e("path", { d: "m21.7 19.5-.9-.4" }),
e("path", { d: "m15.2 16.9-.9-.4" }),
e("path", { d: "m21.7 16.5-.9.4" }),
e("path", { d: "m15.2 19.1-.9.4" }),
e("path", { d: "m19.5 21.7-.4-.9" }),
e("path", { d: "m16.9 15.2-.4-.9" })
]))
]),
e("span", { class: "vpi-plus button-icon" })
], 8, ["aria-expanded"]),
e("div", { class: "items group" }, [
(t(!0), n(d, null, p(i.menus, (u, B) => (t(), n("div", {
class: "item",
onClick: C
}, w(u), 1))), 256))
]),
e("span", { class: "vpi-plus button-icon" })
], 8, ["aria-expanded"]),
e("div", { class: "items group" }, [
(t(!0), n(l, null, p(i.menus, (u, S) => (t(), n("div", {
class: "item",
onClick: b
}, w(u), 1))), 256))
])
], 2)) : f("", !0)
]))), 256))
]),
key: "1"
}
]), 1024));
e("div", null, [
e("h1", null, "Parent Component"),
j(S, { msg: "Hello from Parent!" })
])
], 2)) : f("", !0)
]))), 256))
]),
key: "1"
}
]), 1024);
};
}
}, H = /* @__PURE__ */ P(q, [["__scopeId", "data-v-f5dc33b6"]]), J = [H], K = function(o, a) {
J.forEach((s) => {
o.component(s.name, s);
}, R = /* @__PURE__ */ G(K, [["__scopeId", "data-v-314a0a92"]]), X = [R], Y = function(o, s) {
X.forEach((r) => {
o.component(r.name, r);
});
}, ne = { install: K };
}, ae = { install: Y };
export {
H as VPUserLayout,
ne as default
R as VPUserLayout,
ae 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,f,d,k){"use strict";const V=(n,r)=>{const o=n.__vccOpts||n;for(const[l,p]of r)o[l]=p;return o},i=n=>(e.pushScopeId("data-v-f5dc33b6"),n=n(),e.popScopeId(),n),N={class:"container"},_={key:0,class:"dropdown"},w=i(()=>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)),B=i(()=>e.createElementVNode("span",{class:"vpi-chevron-down text-icon"},null,-1)),x={class:"dropdown-content"},y={class:"dropdown-menu"},g={class:"menuItem"},m=V({__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}=k.useData();var h=d.useMediaQuery("(min-width: 1280px)").value;const{Layout:S}=f;function E(){h=d.useMediaQuery("(min-width: 1280px)").value,o.proxy.$forceUpdate()}const c=e.ref(!1);function C(){c.value=!c.value,console.log(c.value)}function M(){alert("menu1")}return(j,P)=>(e.openBlock(),e.createBlock(e.unref(S),null,e.createSlots({_:2},[e.unref(h)?{name:"nav-bar-content-after",fn:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(a,b)=>(e.openBlock(),e.createElementBlock("div",N,[e.unref(l)===a.lang?(e.openBlock(),e.createElementBlock("div",_,[w,B,e.createElementVNode("div",x,[e.createElementVNode("div",y,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.menus,(s,D)=>(e.openBlock(),e.createElementBlock("div",g,e.toDisplayString(s),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,b)=>(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:C},[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,(s,D)=>(e.openBlock(),e.createElementBlock("div",{class:"item",onClick:M},e.toDisplayString(s),1))),256))])],2)):e.createCommentVNode("",!0)]))),256))]),key:"1"}]),1024))}},[["__scopeId","data-v-f5dc33b6"]]),u=[m],L={install:function(n,r){u.forEach(o=>{n.component(o.name,o)})}};t.VPUserLayout=m,t.default=L,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,d,f){"use strict";const k=(n,r)=>{const o=n.__vccOpts||n;for(const[l,p]of r)o[l]=p;return o},i=n=>(e.pushScopeId("data-v-314a0a92"),n=n(),e.popScopeId(),n),N={class:"container"},_={key:0,class:"dropdown"},w=i(()=>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)),B=i(()=>e.createElementVNode("span",{class:"vpi-chevron-down text-icon"},null,-1)),g={class:"dropdown-content"},x={class:"dropdown-menu"},y={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=d.useMediaQuery("(min-width: 1280px)").value;const{Layout:S}=V;function E(){h=d.useMediaQuery("(min-width: 1280px)").value,o.proxy.$forceUpdate()}const c=e.ref(!1);function L(){c.value=!c.value,console.log(c.value)}function M(){alert("menu1")}return(j,q)=>{const P=e.resolveComponent("SimpleComponent");return e.openBlock(),e.createBlock(e.unref(S),null,e.createSlots({_:2},[e.unref(h)?{name:"nav-bar-content-after",fn:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(a,D)=>(e.openBlock(),e.createElementBlock("div",N,[e.unref(l)===a.lang?(e.openBlock(),e.createElementBlock("div",_,[w,B,e.createElementVNode("div",g,[e.createElementVNode("div",x,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.menus,(s,I)=>(e.openBlock(),e.createElementBlock("div",y,e.toDisplayString(s),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,D)=>(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:L},[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,(s,I)=>(e.openBlock(),e.createElementBlock("div",{class:"item",onClick:M},e.toDisplayString(s),1))),256))]),e.createElementVNode("div",null,[e.createElementVNode("h1",null,"Parent Component"),e.createVNode(P,{msg:"Hello from Parent!"})])],2)):e.createCommentVNode("",!0)]))),256))]),key:"1"}]),1024)}}},[["__scopeId","data-v-314a0a92"]]),C=[m],u={install:function(n,r){C.forEach(o=>{n.component(o.name,o)})}};t.VPUserLayout=m,t.default=u,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