From 6f459318e341cbed4171999e5f07950aecc1f5e9 Mon Sep 17 00:00:00 2001 From: Louis Charette Date: Sat, 5 Oct 2024 18:06:28 -0400 Subject: [PATCH] Add Groups, Permissions, Roles & Users Sprunje --- app/assets/views/GroupsView.vue | 30 +++++++++- app/assets/views/PermissionsView.vue | 38 ++++++++++++- app/assets/views/RolesView.vue | 30 +++++++++- app/assets/views/UsersView.vue | 40 +++++++++++-- dist/GroupsView-CHH2UtUT.cjs | 1 + dist/GroupsView-CzDUEcfF.cjs | 1 - dist/GroupsView-DzvpkAn1.js | 71 +++++++++++++++++++++++ dist/GroupsView-ataIckLA.js | 11 ---- dist/PermissionsView-DOi16Mng.cjs | 1 - dist/PermissionsView-DTXYw4jD.js | 73 ++++++++++++++++++++++++ dist/PermissionsView-Gx0ZJBxu.js | 11 ---- dist/PermissionsView-acweHORb.cjs | 1 + dist/RolesView-BMYhrvg7.js | 71 +++++++++++++++++++++++ dist/RolesView-C7qsAAC9.js | 11 ---- dist/RolesView-Cozv064j.cjs | 1 + dist/RolesView-DO5ExUKX.cjs | 1 - dist/UsersView-BsRAihQM.cjs | 2 - dist/UsersView-CMB-o-lB.js | 85 ++++++++++++++++++++++++++++ dist/UsersView-DQT5sLlv.cjs | 2 + dist/UsersView-YFZdEXGC.js | 30 ---------- dist/routes.cjs | 2 +- dist/routes.js | 8 +-- 22 files changed, 440 insertions(+), 81 deletions(-) create mode 100644 dist/GroupsView-CHH2UtUT.cjs delete mode 100644 dist/GroupsView-CzDUEcfF.cjs create mode 100644 dist/GroupsView-DzvpkAn1.js delete mode 100644 dist/GroupsView-ataIckLA.js delete mode 100644 dist/PermissionsView-DOi16Mng.cjs create mode 100644 dist/PermissionsView-DTXYw4jD.js delete mode 100644 dist/PermissionsView-Gx0ZJBxu.js create mode 100644 dist/PermissionsView-acweHORb.cjs create mode 100644 dist/RolesView-BMYhrvg7.js delete mode 100644 dist/RolesView-C7qsAAC9.js create mode 100644 dist/RolesView-Cozv064j.cjs delete mode 100644 dist/RolesView-DO5ExUKX.cjs delete mode 100644 dist/UsersView-BsRAihQM.cjs create mode 100644 dist/UsersView-CMB-o-lB.js create mode 100644 dist/UsersView-DQT5sLlv.cjs delete mode 100644 dist/UsersView-YFZdEXGC.js diff --git a/app/assets/views/GroupsView.vue b/app/assets/views/GroupsView.vue index bf933f9..4cc7d32 100644 --- a/app/assets/views/GroupsView.vue +++ b/app/assets/views/GroupsView.vue @@ -1,3 +1,31 @@ diff --git a/app/assets/views/PermissionsView.vue b/app/assets/views/PermissionsView.vue index 29f9b30..5e024b1 100644 --- a/app/assets/views/PermissionsView.vue +++ b/app/assets/views/PermissionsView.vue @@ -1,3 +1,39 @@ diff --git a/app/assets/views/RolesView.vue b/app/assets/views/RolesView.vue index 92813dd..746dace 100644 --- a/app/assets/views/RolesView.vue +++ b/app/assets/views/RolesView.vue @@ -1,3 +1,31 @@ diff --git a/app/assets/views/UsersView.vue b/app/assets/views/UsersView.vue index 562db03..1012e87 100644 --- a/app/assets/views/UsersView.vue +++ b/app/assets/views/UsersView.vue @@ -1,13 +1,43 @@ + + diff --git a/dist/GroupsView-CHH2UtUT.cjs b/dist/GroupsView-CHH2UtUT.cjs new file mode 100644 index 0000000..b0bf8ba --- /dev/null +++ b/dist/GroupsView-CHH2UtUT.cjs @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),i={};function p(_,t){const l=e.resolveComponent("UFHeaderPage"),o=e.resolveComponent("UFSprunjeHeader"),a=e.resolveComponent("RouterLink"),n=e.resolveComponent("UFSprunjeColumn"),u=e.resolveComponent("UFSprunjeTable"),d=e.resolveComponent("UFCardBox");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(l,{title:"Groups",caption:"A listing of the groups for your site. Provides management tools for editing and deleting groups."}),e.createVNode(d,null,{default:e.withCtx(()=>[e.createVNode(u,{dataUrl:"/api/groups"},{header:e.withCtx(()=>[e.createVNode(o,null,{default:e.withCtx(()=>t[0]||(t[0]=[e.createTextVNode("Groups")])),_:1}),e.createVNode(o,null,{default:e.withCtx(()=>t[1]||(t[1]=[e.createTextVNode("Description")])),_:1}),e.createVNode(o,null,{default:e.withCtx(()=>t[2]||(t[2]=[e.createTextVNode("Actions")])),_:1})]),body:e.withCtx(({item:r})=>[e.createVNode(n,null,{default:e.withCtx(()=>[e.createElementVNode("strong",null,[e.createVNode(a,{to:{name:"admin.group",params:{slug:r.slug}}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.name),1)]),_:2},1032,["to"])])]),_:2},1024),e.createVNode(n,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.description),1)]),_:2},1024),e.createVNode(n)]),_:1})]),_:1})],64)}const c=s._export_sfc(i,[["render",p]]);exports.default=c; diff --git a/dist/GroupsView-CzDUEcfF.cjs b/dist/GroupsView-CzDUEcfF.cjs deleted file mode 100644 index be65542..0000000 --- a/dist/GroupsView-CzDUEcfF.cjs +++ /dev/null @@ -1 +0,0 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),t={};function n(s,u){const r=e.resolveComponent("UFHeaderPage");return e.openBlock(),e.createBlock(r,{title:"Groups"})}const c=o._export_sfc(t,[["render",n]]);exports.default=c; diff --git a/dist/GroupsView-DzvpkAn1.js b/dist/GroupsView-DzvpkAn1.js new file mode 100644 index 0000000..5a6298e --- /dev/null +++ b/dist/GroupsView-DzvpkAn1.js @@ -0,0 +1,71 @@ +import { resolveComponent as t, openBlock as m, createElementBlock as c, Fragment as f, createVNode as e, withCtx as n, createTextVNode as r, createElementVNode as g, toDisplayString as s } from "vue"; +import { _ as F } from "./_plugin-vue_export-helper-CHgC5LLL.js"; +const U = {}; +function x(S, o) { + const p = t("UFHeaderPage"), l = t("UFSprunjeHeader"), d = t("RouterLink"), u = t("UFSprunjeColumn"), i = t("UFSprunjeTable"), _ = t("UFCardBox"); + return m(), c(f, null, [ + e(p, { + title: "Groups", + caption: "A listing of the groups for your site. Provides management tools for editing and deleting groups." + }), + e(_, null, { + default: n(() => [ + e(i, { dataUrl: "/api/groups" }, { + header: n(() => [ + e(l, null, { + default: n(() => o[0] || (o[0] = [ + r("Groups") + ])), + _: 1 + }), + e(l, null, { + default: n(() => o[1] || (o[1] = [ + r("Description") + ])), + _: 1 + }), + e(l, null, { + default: n(() => o[2] || (o[2] = [ + r("Actions") + ])), + _: 1 + }) + ]), + body: n(({ item: a }) => [ + e(u, null, { + default: n(() => [ + g("strong", null, [ + e(d, { + to: { + name: "admin.group", + params: { slug: a.slug } + } + }, { + default: n(() => [ + r(s(a.name), 1) + ]), + _: 2 + }, 1032, ["to"]) + ]) + ]), + _: 2 + }, 1024), + e(u, null, { + default: n(() => [ + r(s(a.description), 1) + ]), + _: 2 + }, 1024), + e(u) + ]), + _: 1 + }) + ]), + _: 1 + }) + ], 64); +} +const k = /* @__PURE__ */ F(U, [["render", x]]); +export { + k as default +}; diff --git a/dist/GroupsView-ataIckLA.js b/dist/GroupsView-ataIckLA.js deleted file mode 100644 index 339df97..0000000 --- a/dist/GroupsView-ataIckLA.js +++ /dev/null @@ -1,11 +0,0 @@ -import { resolveComponent as o, openBlock as r, createBlock as t } from "vue"; -import { _ as c } from "./_plugin-vue_export-helper-CHgC5LLL.js"; -const n = {}; -function s(_, a) { - const e = o("UFHeaderPage"); - return r(), t(e, { title: "Groups" }); -} -const m = /* @__PURE__ */ c(n, [["render", s]]); -export { - m as default -}; diff --git a/dist/PermissionsView-DOi16Mng.cjs b/dist/PermissionsView-DOi16Mng.cjs deleted file mode 100644 index 98a1263..0000000 --- a/dist/PermissionsView-DOi16Mng.cjs +++ /dev/null @@ -1 +0,0 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),t={};function n(s,i){const r=e.resolveComponent("UFHeaderPage");return e.openBlock(),e.createBlock(r,{title:"Permissions"})}const c=o._export_sfc(t,[["render",n]]);exports.default=c; diff --git a/dist/PermissionsView-DTXYw4jD.js b/dist/PermissionsView-DTXYw4jD.js new file mode 100644 index 0000000..c6d9c35 --- /dev/null +++ b/dist/PermissionsView-DTXYw4jD.js @@ -0,0 +1,73 @@ +import { resolveComponent as l, openBlock as c, createElementBlock as f, Fragment as g, createVNode as n, withCtx as e, createTextVNode as i, createElementVNode as o, toDisplayString as s } from "vue"; +import { _ as F } from "./_plugin-vue_export-helper-CHgC5LLL.js"; +const U = {}; +function S(x, t) { + const a = l("UFHeaderPage"), d = l("UFSprunjeHeader"), p = l("RouterLink"), u = l("UFSprunjeColumn"), m = l("UFSprunjeTable"), _ = l("UFCardBox"); + return c(), f(g, null, [ + n(a, { + title: "Permissions", + caption: "A listing of the permissions for your site. Provides management tools for editing and deleting permissions." + }), + n(_, null, { + default: e(() => [ + n(m, { dataUrl: "/api/permissions" }, { + header: e(() => [ + n(d, null, { + default: e(() => t[0] || (t[0] = [ + i("Permission") + ])), + _: 1 + }), + n(d, null, { + default: e(() => t[1] || (t[1] = [ + i("Slug/Condition") + ])), + _: 1 + }) + ]), + body: e(({ item: r }) => [ + n(u, null, { + default: e(() => [ + o("strong", null, [ + n(p, { + to: { + name: "admin.permission", + params: { id: r.id } + } + }, { + default: e(() => [ + i(s(r.name), 1) + ]), + _: 2 + }, 1032, ["to"]) + ]) + ]), + _: 2 + }, 1024), + n(u, null, { + default: e(() => [ + o("div", null, [ + o("code", null, s(r.slug), 1) + ]), + o("div", null, [ + t[2] || (t[2] = i(" ↳ ")), + o("code", null, s(r.conditions), 1) + ]), + o("div", null, [ + o("i", null, s(r.description), 1) + ]) + ]), + _: 2 + }, 1024) + ]), + _: 1 + }) + ]), + _: 1 + }) + ], 64); +} +const P = /* @__PURE__ */ F(U, [["render", S]]); +export { + P as default +}; diff --git a/dist/PermissionsView-Gx0ZJBxu.js b/dist/PermissionsView-Gx0ZJBxu.js deleted file mode 100644 index ab151c1..0000000 --- a/dist/PermissionsView-Gx0ZJBxu.js +++ /dev/null @@ -1,11 +0,0 @@ -import { resolveComponent as o, openBlock as r, createBlock as n } from "vue"; -import { _ as t } from "./_plugin-vue_export-helper-CHgC5LLL.js"; -const s = {}; -function c(_, a) { - const e = o("UFHeaderPage"); - return r(), n(e, { title: "Permissions" }); -} -const f = /* @__PURE__ */ t(s, [["render", c]]); -export { - f as default -}; diff --git a/dist/PermissionsView-acweHORb.cjs b/dist/PermissionsView-acweHORb.cjs new file mode 100644 index 0000000..452fdca --- /dev/null +++ b/dist/PermissionsView-acweHORb.cjs @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),u={};function c(m,t){const l=e.resolveComponent("UFHeaderPage"),n=e.resolveComponent("UFSprunjeHeader"),i=e.resolveComponent("RouterLink"),r=e.resolveComponent("UFSprunjeColumn"),d=e.resolveComponent("UFSprunjeTable"),a=e.resolveComponent("UFCardBox");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(l,{title:"Permissions",caption:"A listing of the permissions for your site. Provides management tools for editing and deleting permissions."}),e.createVNode(a,null,{default:e.withCtx(()=>[e.createVNode(d,{dataUrl:"/api/permissions"},{header:e.withCtx(()=>[e.createVNode(n,null,{default:e.withCtx(()=>t[0]||(t[0]=[e.createTextVNode("Permission")])),_:1}),e.createVNode(n,null,{default:e.withCtx(()=>t[1]||(t[1]=[e.createTextVNode("Slug/Condition")])),_:1})]),body:e.withCtx(({item:o})=>[e.createVNode(r,null,{default:e.withCtx(()=>[e.createElementVNode("strong",null,[e.createVNode(i,{to:{name:"admin.permission",params:{id:o.id}}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.name),1)]),_:2},1032,["to"])])]),_:2},1024),e.createVNode(r,null,{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("code",null,e.toDisplayString(o.slug),1)]),e.createElementVNode("div",null,[t[2]||(t[2]=e.createTextVNode(" ↳ ")),e.createElementVNode("code",null,e.toDisplayString(o.conditions),1)]),e.createElementVNode("div",null,[e.createElementVNode("i",null,e.toDisplayString(o.description),1)])]),_:2},1024)]),_:1})]),_:1})],64)}const p=s._export_sfc(u,[["render",c]]);exports.default=p; diff --git a/dist/RolesView-BMYhrvg7.js b/dist/RolesView-BMYhrvg7.js new file mode 100644 index 0000000..c2a7bdb --- /dev/null +++ b/dist/RolesView-BMYhrvg7.js @@ -0,0 +1,71 @@ +import { resolveComponent as t, openBlock as m, createElementBlock as c, Fragment as f, createVNode as e, withCtx as n, createTextVNode as l, createElementVNode as g, toDisplayString as u } from "vue"; +import { _ as F } from "./_plugin-vue_export-helper-CHgC5LLL.js"; +const U = {}; +function x(S, o) { + const d = t("UFHeaderPage"), r = t("UFSprunjeHeader"), i = t("RouterLink"), a = t("UFSprunjeColumn"), p = t("UFSprunjeTable"), _ = t("UFCardBox"); + return m(), c(f, null, [ + e(d, { + title: "Roles", + caption: "A listing of the roles for your site. Provides management tools for editing and deleting roles." + }), + e(_, null, { + default: n(() => [ + e(p, { dataUrl: "/api/roles" }, { + header: n(() => [ + e(r, null, { + default: n(() => o[0] || (o[0] = [ + l("Role") + ])), + _: 1 + }), + e(r, null, { + default: n(() => o[1] || (o[1] = [ + l("Description") + ])), + _: 1 + }), + e(r, null, { + default: n(() => o[2] || (o[2] = [ + l("Actions") + ])), + _: 1 + }) + ]), + body: n(({ item: s }) => [ + e(a, null, { + default: n(() => [ + g("strong", null, [ + e(i, { + to: { + name: "admin.role", + params: { slug: s.slug } + } + }, { + default: n(() => [ + l(u(s.name), 1) + ]), + _: 2 + }, 1032, ["to"]) + ]) + ]), + _: 2 + }, 1024), + e(a, null, { + default: n(() => [ + l(u(s.description), 1) + ]), + _: 2 + }, 1024), + e(a) + ]), + _: 1 + }) + ]), + _: 1 + }) + ], 64); +} +const R = /* @__PURE__ */ F(U, [["render", x]]); +export { + R as default +}; diff --git a/dist/RolesView-C7qsAAC9.js b/dist/RolesView-C7qsAAC9.js deleted file mode 100644 index eaf063d..0000000 --- a/dist/RolesView-C7qsAAC9.js +++ /dev/null @@ -1,11 +0,0 @@ -import { resolveComponent as o, openBlock as r, createBlock as t } from "vue"; -import { _ as c } from "./_plugin-vue_export-helper-CHgC5LLL.js"; -const n = {}; -function s(_, a) { - const e = o("UFHeaderPage"); - return r(), t(e, { title: "Roles" }); -} -const m = /* @__PURE__ */ c(n, [["render", s]]); -export { - m as default -}; diff --git a/dist/RolesView-Cozv064j.cjs b/dist/RolesView-Cozv064j.cjs new file mode 100644 index 0000000..065e5f6 --- /dev/null +++ b/dist/RolesView-Cozv064j.cjs @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),i={};function c(_,t){const l=e.resolveComponent("UFHeaderPage"),o=e.resolveComponent("UFSprunjeHeader"),a=e.resolveComponent("RouterLink"),n=e.resolveComponent("UFSprunjeColumn"),d=e.resolveComponent("UFSprunjeTable"),s=e.resolveComponent("UFCardBox");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(l,{title:"Roles",caption:"A listing of the roles for your site. Provides management tools for editing and deleting roles."}),e.createVNode(s,null,{default:e.withCtx(()=>[e.createVNode(d,{dataUrl:"/api/roles"},{header:e.withCtx(()=>[e.createVNode(o,null,{default:e.withCtx(()=>t[0]||(t[0]=[e.createTextVNode("Role")])),_:1}),e.createVNode(o,null,{default:e.withCtx(()=>t[1]||(t[1]=[e.createTextVNode("Description")])),_:1}),e.createVNode(o,null,{default:e.withCtx(()=>t[2]||(t[2]=[e.createTextVNode("Actions")])),_:1})]),body:e.withCtx(({item:r})=>[e.createVNode(n,null,{default:e.withCtx(()=>[e.createElementVNode("strong",null,[e.createVNode(a,{to:{name:"admin.role",params:{slug:r.slug}}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.name),1)]),_:2},1032,["to"])])]),_:2},1024),e.createVNode(n,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.description),1)]),_:2},1024),e.createVNode(n)]),_:1})]),_:1})],64)}const p=u._export_sfc(i,[["render",c]]);exports.default=p; diff --git a/dist/RolesView-DO5ExUKX.cjs b/dist/RolesView-DO5ExUKX.cjs deleted file mode 100644 index f3a0e94..0000000 --- a/dist/RolesView-DO5ExUKX.cjs +++ /dev/null @@ -1 +0,0 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),r={};function n(s,l){const o=e.resolveComponent("UFHeaderPage");return e.openBlock(),e.createBlock(o,{title:"Roles"})}const c=t._export_sfc(r,[["render",n]]);exports.default=c; diff --git a/dist/UsersView-BsRAihQM.cjs b/dist/UsersView-BsRAihQM.cjs deleted file mode 100644 index 373df27..0000000 --- a/dist/UsersView-BsRAihQM.cjs +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),a={};function i(c,t){const o=e.resolveComponent("UFHeaderPage"),n=e.resolveComponent("font-awesome-icon"),r=e.resolveComponent("UFCardBox");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(o,{title:"Users",caption:`A listing of the users for your site. Provides management tools including the ability to - edit user details, manually activate users, enable/disable users, and more.`}),e.createVNode(r,null,{header:e.withCtx(()=>[e.createVNode(n,{icon:"user"}),t[0]||(t[0]=e.createTextVNode(" Users "))]),footer:e.withCtx(()=>t[1]||(t[1]=[e.createElementVNode("a",{href:"#",class:"uk-button uk-button-primary"},"Create User",-1)])),_:1})],64)}const l=s._export_sfc(a,[["render",i]]);exports.default=l; diff --git a/dist/UsersView-CMB-o-lB.js b/dist/UsersView-CMB-o-lB.js new file mode 100644 index 0000000..3fbfd13 --- /dev/null +++ b/dist/UsersView-CMB-o-lB.js @@ -0,0 +1,85 @@ +import { resolveComponent as a, openBlock as U, createElementBlock as F, Fragment as v, createVNode as e, withCtx as t, createTextVNode as r, createElementVNode as s, toDisplayString as l, unref as i } from "vue"; +import { h as _ } from "./moment-h96o7c8I.js"; +const y = { class: "uk-text-meta" }, j = { + __name: "UsersView", + setup(g) { + return (S, n) => { + const m = a("UFHeaderPage"), u = a("UFSprunjeHeader"), p = a("RouterLink"), d = a("UFSprunjeColumn"), c = a("UFSprunjeTable"), f = a("UFCardBox"); + return U(), F(v, null, [ + e(m, { + title: "Users", + caption: `A listing of the users for your site. Provides management tools including the ability to + edit user details, manually activate users, enable/disable users, and more.` + }), + e(f, null, { + default: t(() => [ + e(c, { dataUrl: "/api/users" }, { + header: t(() => [ + e(u, null, { + default: t(() => n[0] || (n[0] = [ + r("User") + ])), + _: 1 + }), + e(u, null, { + default: t(() => n[1] || (n[1] = [ + r("Last Activity") + ])), + _: 1 + }), + e(u, null, { + default: t(() => n[2] || (n[2] = [ + r("Status") + ])), + _: 1 + }), + e(u, null, { + default: t(() => n[3] || (n[3] = [ + r("Actions") + ])), + _: 1 + }) + ]), + body: t(({ item: o }) => [ + e(d, null, { + default: t(() => [ + s("strong", null, [ + e(p, { + to: { + name: "admin.user", + params: { user_name: o.user_name } + } + }, { + default: t(() => [ + r(l(o.full_name) + " (" + l(o.user_name) + ") ", 1) + ]), + _: 2 + }, 1032, ["to"]) + ]), + s("div", y, l(o.email), 1) + ]), + _: 2 + }, 1024), + e(d, null, { + default: t(() => [ + s("div", null, l(i(_)(o.last_activity.occurred_at).format("dddd")), 1), + s("div", null, l(i(_)(o.last_activity.occurred_at).format("MMM Do, YYYY h:mm a")), 1), + s("i", null, l(o.last_activity.description), 1) + ]), + _: 2 + }, 1024), + e(d), + e(d) + ]), + _: 1 + }) + ]), + _: 1 + }) + ], 64); + }; + } +}; +export { + j as default +}; diff --git a/dist/UsersView-DQT5sLlv.cjs b/dist/UsersView-DQT5sLlv.cjs new file mode 100644 index 0000000..8893d88 --- /dev/null +++ b/dist/UsersView-DQT5sLlv.cjs @@ -0,0 +1,2 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./moment-Bp7fbP4q.cjs"),i={class:"uk-text-meta"},c={__name:"UsersView",setup(m){return(p,t)=>{const l=e.resolveComponent("UFHeaderPage"),n=e.resolveComponent("UFSprunjeHeader"),s=e.resolveComponent("RouterLink"),r=e.resolveComponent("UFSprunjeColumn"),d=e.resolveComponent("UFSprunjeTable"),u=e.resolveComponent("UFCardBox");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(l,{title:"Users",caption:`A listing of the users for your site. Provides management tools including the ability to + edit user details, manually activate users, enable/disable users, and more.`}),e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(d,{dataUrl:"/api/users"},{header:e.withCtx(()=>[e.createVNode(n,null,{default:e.withCtx(()=>t[0]||(t[0]=[e.createTextVNode("User")])),_:1}),e.createVNode(n,null,{default:e.withCtx(()=>t[1]||(t[1]=[e.createTextVNode("Last Activity")])),_:1}),e.createVNode(n,null,{default:e.withCtx(()=>t[2]||(t[2]=[e.createTextVNode("Status")])),_:1}),e.createVNode(n,null,{default:e.withCtx(()=>t[3]||(t[3]=[e.createTextVNode("Actions")])),_:1})]),body:e.withCtx(({item:o})=>[e.createVNode(r,null,{default:e.withCtx(()=>[e.createElementVNode("strong",null,[e.createVNode(s,{to:{name:"admin.user",params:{user_name:o.user_name}}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.full_name)+" ("+e.toDisplayString(o.user_name)+") ",1)]),_:2},1032,["to"])]),e.createElementVNode("div",i,e.toDisplayString(o.email),1)]),_:2},1024),e.createVNode(r,null,{default:e.withCtx(()=>[e.createElementVNode("div",null,e.toDisplayString(e.unref(a.hooks)(o.last_activity.occurred_at).format("dddd")),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(a.hooks)(o.last_activity.occurred_at).format("MMM Do, YYYY h:mm a")),1),e.createElementVNode("i",null,e.toDisplayString(o.last_activity.description),1)]),_:2},1024),e.createVNode(r),e.createVNode(r)]),_:1})]),_:1})],64)}}};exports.default=c; diff --git a/dist/UsersView-YFZdEXGC.js b/dist/UsersView-YFZdEXGC.js deleted file mode 100644 index b540c40..0000000 --- a/dist/UsersView-YFZdEXGC.js +++ /dev/null @@ -1,30 +0,0 @@ -import { resolveComponent as t, openBlock as i, createElementBlock as l, Fragment as c, createVNode as o, withCtx as n, createTextVNode as m, createElementVNode as d } from "vue"; -import { _ as u } from "./_plugin-vue_export-helper-CHgC5LLL.js"; -const _ = {}; -function f(p, e) { - const r = t("UFHeaderPage"), s = t("font-awesome-icon"), a = t("UFCardBox"); - return i(), l(c, null, [ - o(r, { - title: "Users", - caption: `A listing of the users for your site. Provides management tools including the ability to - edit user details, manually activate users, enable/disable users, and more.` - }), - o(a, null, { - header: n(() => [ - o(s, { icon: "user" }), - e[0] || (e[0] = m(" Users ")) - ]), - footer: n(() => e[1] || (e[1] = [ - d("a", { - href: "#", - class: "uk-button uk-button-primary" - }, "Create User", -1) - ])), - _: 1 - }) - ], 64); -} -const g = /* @__PURE__ */ u(_, [["render", f]]); -export { - g as default -}; diff --git a/dist/routes.cjs b/dist/routes.cjs index cbb48ab..decb118 100644 --- a/dist/routes.cjs +++ b/dist/routes.cjs @@ -1 +1 @@ -"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=[{path:"dashboard",name:"admin.dashboard",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./DashboardView-CDywR_mi.cjs"))}],n=[{path:"activities",name:"admin.activities",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./ActivitiesView-CChZXv12.cjs"))}],o=[{path:"groups",name:"admin.groups",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./GroupsView-CzDUEcfF.cjs")),children:[{path:"g/:slug",name:"admin.group",component:()=>Promise.resolve().then(()=>require("./GroupView-Cvy93KmK.cjs"))}]}],t=[{path:"permissions",name:"admin.permissions",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./PermissionsView-DOi16Mng.cjs")),children:[{path:"p/:id",name:"admin.permission",component:()=>Promise.resolve().then(()=>require("./PermissionView-CZvtwzCa.cjs"))}]}],i=[{path:"roles",name:"admin.roles",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./RolesView-DO5ExUKX.cjs")),children:[{path:"r/:slug",name:"admin.role",component:()=>Promise.resolve().then(()=>require("./RoleView-D859yBSb.cjs"))}]}],s=[{path:"users",name:"admin.users",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./UsersView-BsRAihQM.cjs")),children:[{path:"u/:user_name",name:"admin.user",component:()=>Promise.resolve().then(()=>require("./UserView-DI4zS3sA.cjs"))}]}],r=[...e,...n,...o,...t,...i,...s];exports.AdminActivitiesRoutes=n;exports.AdminDashboardRoutes=e;exports.AdminGroupsRoutes=o;exports.AdminPermissionsRoutes=t;exports.AdminRolesRoutes=i;exports.AdminUsersRoutes=s;exports.default=r; +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=[{path:"dashboard",name:"admin.dashboard",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./DashboardView-CDywR_mi.cjs"))}],n=[{path:"activities",name:"admin.activities",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./ActivitiesView-CChZXv12.cjs"))}],o=[{path:"groups",name:"admin.groups",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./GroupsView-CHH2UtUT.cjs")),children:[{path:"g/:slug",name:"admin.group",component:()=>Promise.resolve().then(()=>require("./GroupView-Cvy93KmK.cjs"))}]}],t=[{path:"permissions",name:"admin.permissions",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./PermissionsView-acweHORb.cjs")),children:[{path:"p/:id",name:"admin.permission",component:()=>Promise.resolve().then(()=>require("./PermissionView-CZvtwzCa.cjs"))}]}],i=[{path:"roles",name:"admin.roles",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./RolesView-Cozv064j.cjs")),children:[{path:"r/:slug",name:"admin.role",component:()=>Promise.resolve().then(()=>require("./RoleView-D859yBSb.cjs"))}]}],s=[{path:"users",name:"admin.users",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./UsersView-DQT5sLlv.cjs")),children:[{path:"u/:user_name",name:"admin.user",component:()=>Promise.resolve().then(()=>require("./UserView-DI4zS3sA.cjs"))}]}],r=[...e,...n,...o,...t,...i,...s];exports.AdminActivitiesRoutes=n;exports.AdminDashboardRoutes=e;exports.AdminGroupsRoutes=o;exports.AdminPermissionsRoutes=t;exports.AdminRolesRoutes=i;exports.AdminUsersRoutes=s;exports.default=r; diff --git a/dist/routes.js b/dist/routes.js index 4cfe485..8c47533 100644 --- a/dist/routes.js +++ b/dist/routes.js @@ -29,7 +29,7 @@ const n = [ redirect: { name: "account.login" } } }, - component: () => import("./GroupsView-ataIckLA.js"), + component: () => import("./GroupsView-DzvpkAn1.js"), children: [ { path: "g/:slug", @@ -48,7 +48,7 @@ const n = [ redirect: { name: "account.login" } } }, - component: () => import("./PermissionsView-Gx0ZJBxu.js"), + component: () => import("./PermissionsView-DTXYw4jD.js"), children: [ { path: "p/:id", @@ -67,7 +67,7 @@ const n = [ redirect: { name: "account.login" } } }, - component: () => import("./RolesView-C7qsAAC9.js"), + component: () => import("./RolesView-BMYhrvg7.js"), children: [ { path: "r/:slug", @@ -86,7 +86,7 @@ const n = [ redirect: { name: "account.login" } } }, - component: () => import("./UsersView-YFZdEXGC.js"), + component: () => import("./UsersView-CMB-o-lB.js"), children: [ { path: "u/:user_name",