-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
41 changed files
with
1,735 additions
and
1,487 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("./composable/dashboard.cjs"),d=require("./moment-Bp7fbP4q.cjs"),m=e.defineComponent({__name:"DashboardStats",props:{users:{},roles:{},groups:{}},setup(s){return(o,t)=>{const n=e.resolveComponent("UFInfoBox");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(n,{value:o.users,label:"Users",faIcon:"user",to:{name:"admin.users"}},null,8,["value"]),e.createVNode(n,{value:o.roles,label:"Roles",faIcon:"address-card",to:{name:"admin.roles"}},null,8,["value"]),e.createVNode(n,{value:o.groups,label:"Groups",faIcon:"users",to:{name:"admin.groups"}},null,8,["value"])],64)}}}),p={class:"uk-grid uk-flex-center","uk-grid":""},V=["src"],N={class:"uk-margin-remove"},_={class:"uk-margin-remove uk-text-meta"},f=e.defineComponent({__name:"DashboardRecentUsers",props:{users:{}},setup(s){return(o,t)=>{const n=e.resolveComponent("RouterLink"),r=e.resolveComponent("UFCardBox");return e.openBlock(),e.createBlock(r,{title:"Latest Users"},{footer:e.withCtx(()=>[e.createVNode(n,{to:{name:"admin.users"},class:"uk-text-center"},{default:e.withCtx(()=>t[0]||(t[0]=[e.createTextVNode("View All Users")])),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",p,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.users,a=>(e.openBlock(),e.createElementBlock("div",{key:a.id,class:"uk-text-center"},[e.createVNode(n,{to:{name:"admin.user",params:{user_name:a.user_name}},class:"uk-text-decoration-none uk-link-text"},{default:e.withCtx(()=>[e.createElementVNode("img",{src:a.avatar,alt:"User Image",class:"uk-border-circle"},null,8,V),e.createElementVNode("p",N,e.toDisplayString(a.full_name),1),e.createElementVNode("p",_,e.toDisplayString(e.unref(d.hooks)(a.created_at).fromNow()),1)]),_:2},1032,["to"])]))),128))])]),_:1})}}}),k={class:"uk-description-list"},E={class:"uk-list uk-list-disc uk-list-collapse"},v=e.defineComponent({__name:"DashboardSystemInfo",props:{info:{},sprinkles:{}},setup(s){return(o,t)=>{const n=e.resolveComponent("UFCardBox");return e.openBlock(),e.createBlock(n,{title:"System Information"},{default:e.withCtx(()=>[e.createElementVNode("dl",k,[t[0]||(t[0]=e.createElementVNode("dt",null,"Framework version",-1)),e.createElementVNode("dd",null,[e.createElementVNode("pre",null,[e.createElementVNode("code",null,e.toDisplayString(o.info.frameworkVersion),1)])]),t[1]||(t[1]=e.createElementVNode("dt",null,"PHP version",-1)),e.createElementVNode("dd",null,[e.createElementVNode("pre",null,[e.createElementVNode("code",null,e.toDisplayString(o.info.phpVersion),1)])]),t[2]||(t[2]=e.createElementVNode("dt",null,"Webserver software",-1)),e.createElementVNode("dd",null,[e.createElementVNode("pre",null,[e.createElementVNode("code",null,e.toDisplayString(o.info.server),1)])]),t[3]||(t[3]=e.createElementVNode("dt",null,"Database connection",-1)),e.createElementVNode("dd",null,[e.createElementVNode("pre",null,[e.createElementVNode("code",null,e.toDisplayString(o.info.database.connection),1)])]),t[4]||(t[4]=e.createElementVNode("dt",null,"Database version",-1)),e.createElementVNode("dd",null,[e.createElementVNode("pre",null,[e.createElementVNode("code",null,e.toDisplayString(o.info.database.type)+" "+e.toDisplayString(o.info.database.version),1)])]),t[5]||(t[5]=e.createElementVNode("dt",null,"Database name",-1)),e.createElementVNode("dd",null,[e.createElementVNode("pre",null,[e.createElementVNode("code",null,e.toDisplayString(o.info.database.name),1)])]),t[6]||(t[6]=e.createElementVNode("dt",null,"Project directory",-1)),e.createElementVNode("dd",null,[e.createElementVNode("pre",null,[e.createElementVNode("code",null,e.toDisplayString(o.info.projectPath),1)])]),t[7]||(t[7]=e.createElementVNode("dt",null,"Loaded sprinkles",-1)),e.createElementVNode("dd",null,[e.createElementVNode("ul",E,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.sprinkles,r=>(e.openBlock(),e.createElementBlock("li",{key:r},e.toDisplayString(r),1))),128))])])])]),_:1})}}}),g={class:"uk-text-meta"},C=e.defineComponent({__name:"DashboardActivities",setup(s){return(o,t)=>{const n=e.resolveComponent("UFSprunjeHeader"),r=e.resolveComponent("UFSprunjeColumn"),a=e.resolveComponent("RouterLink"),u=e.resolveComponent("UFSprunjeTable"),i=e.resolveComponent("UFCardBox");return e.openBlock(),e.createBlock(i,{title:"Latest Activities"},{default:e.withCtx(()=>[e.createVNode(u,{dataUrl:"/api/activities",defaultSorts:{occurred_at:"desc"},hidePagination:"",hideFilters:""},{header:e.withCtx(()=>[e.createVNode(n,null,{default:e.withCtx(()=>t[0]||(t[0]=[e.createTextVNode("Activity Time")])),_:1}),e.createVNode(n,null,{default:e.withCtx(()=>t[1]||(t[1]=[e.createTextVNode("User")])),_:1}),e.createVNode(n,null,{default:e.withCtx(()=>t[2]||(t[2]=[e.createTextVNode("Description")])),_:1})]),body:e.withCtx(({item:l})=>[e.createVNode(r,null,{default:e.withCtx(()=>[e.createElementVNode("div",null,e.toDisplayString(e.unref(d.hooks)(l.occurred_at).format("dddd")),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(d.hooks)(l.occurred_at).format("MMM Do, YYYY h:mm a")),1)]),_:2},1024),e.createVNode(r,null,{default:e.withCtx(()=>[e.createElementVNode("strong",null,[e.createVNode(a,{to:{name:"admin.user",params:{user_name:l.user.user_name}}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.user.full_name)+" ("+e.toDisplayString(l.user.user_name)+") ",1)]),_:2},1032,["to"])]),e.createElementVNode("div",g,e.toDisplayString(l.user.email),1)]),_:2},1024),e.createVNode(r,null,{default:e.withCtx(()=>[e.createElementVNode("div",null,e.toDisplayString(l.ip_address),1),e.createElementVNode("div",null,[e.createElementVNode("i",null,e.toDisplayString(l.description),1)])]),_:2},1024)]),_:1})]),_:1})}}}),h={class:"uk-child-width-expand","uk-grid":""},D={class:"uk-child-width-1-2","uk-grid":""},S={class:"uk-child-width-1-1","uk-grid":""},x=e.defineComponent({__name:"DashboardView",setup(s){const o=c.useDashboardApi();return o.load(),(t,n)=>{const r=e.resolveComponent("UFHeaderPage");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(r,{title:"Dashboard"}),e.createElementVNode("div",h,[e.createVNode(m,{users:e.unref(o).data.counter.users,roles:e.unref(o).data.counter.roles,groups:e.unref(o).data.counter.groups},null,8,["users","roles","groups"])]),e.createElementVNode("div",D,[e.createElementVNode("div",null,[e.createElementVNode("div",S,[e.createElementVNode("div",null,[e.createVNode(f,{users:e.unref(o).data.users},null,8,["users"])]),e.createElementVNode("div",null,[e.createVNode(v,{info:e.unref(o).data.info,sprinkles:e.unref(o).data.sprinkles},null,8,["info","sprinkles"])])])]),e.createElementVNode("div",null,[e.createVNode(C)])])],64)}}});exports.default=x; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.