-
-
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.
Use link from InfoBox component + code format
- Loading branch information
Showing
12 changed files
with
87 additions
and
94 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
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
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
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
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
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"),s=require("./axios-tuVKNgv9.cjs"),u={class:"uk-grid uk-child-width-1-3","uk-grid":""},i={class:"uk-grid uk-child-width-1-2","uk-grid":""},c={class:"uk-card uk-card-default uk-card-small"},m={class:"uk-card-body"},V={class:"uk-grid uk-flex-center","uk-grid":""},E=["src"],N={class:"uk-margin-remove"},p={class:"uk-margin-remove uk-text-meta"},v={class:"uk-card-footer uk-text-center"},k={class:"uk-description-list"},g={class:"uk-list uk-list-disc uk-list-collapse"},f={__name:"DashboardView",setup(b){const l=e.ref({counter:{users:0,roles:0,groups:0},info:{version:{framework:"",php:""},database:{connection:"",name:"",type:"",version:""},environment:{},path:{project:""}},sprinkles:{},users:[]});return s.axios.get("/api/dashboard").then(o=>{l.value=o.data}).catch(o=>{console.error(o)}),(o,t)=>{const r=e.resolveComponent("UFInfoBox"),a=e.resolveComponent("RouterLink"),d=e.resolveComponent("UFCardBox");return e.openBlock(),e.createElementBlock(e.Fragment,null,[t[13]||(t[13]=e.createElementVNode("h3",null,"Dashboard",-1)),e.createElementVNode("div",u,[e.createElementVNode("div",null,[e.createVNode(r,{value:l.value.counter.users,label:"Users",faIcon:"user",to:{name:"admin.users"}},null,8,["value"])]),e.createElementVNode("div",null,[e.createVNode(r,{value:l.value.counter.roles,label:"Roles",faIcon:"address-card",to:{name:"admin.roles"}},null,8,["value"])]),e.createElementVNode("div",null,[e.createVNode(r,{value:l.value.counter.groups,label:"Groups",faIcon:"users",to:{name:"admin.groups"}},null,8,["value"])])]),e.createElementVNode("div",i,[e.createElementVNode("div",null,[e.createElementVNode("div",c,[t[1]||(t[1]=e.createElementVNode("div",{class:"uk-card-header"},[e.createElementVNode("div",{class:"uk-grid uk-grid-small"},[e.createElementVNode("div",{class:"uk-width-auto"},[e.createElementVNode("h4",{"data-test":"title"},"Latest Users")])])],-1)),e.createElementVNode("div",m,[e.createElementVNode("div",V,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value.users,n=>(e.openBlock(),e.createElementBlock("div",{key:n.id,class:"uk-text-center"},[e.createVNode(a,{to:{name:"admin.user",params:{user_name:n.user_name}},class:"uk-text-decoration-none uk-link-text"},{default:e.withCtx(()=>[e.createElementVNode("img",{src:n.avatar,alt:"User Image",class:"uk-border-circle"},null,8,E),e.createElementVNode("p",N,e.toDisplayString(n.full_name),1),e.createElementVNode("p",p,e.toDisplayString(n.registered),1)]),_:2},1032,["to"])]))),128))])]),e.createElementVNode("div",v,[e.createVNode(a,{to:{name:"admin.users"},class:"uk-button uk-button-text"},{default:e.withCtx(()=>t[0]||(t[0]=[e.createTextVNode("View All Users")])),_:1})])]),t[12]||(t[12]=e.createElementVNode("br",null,null,-1)),e.createVNode(d,{title:"System Information"},{default:e.withCtx(()=>[e.createElementVNode("dl",k,[t[2]||(t[2]=e.createElementVNode("dt",null,"Frameword version",-1)),e.createElementVNode("dd",null,[e.createElementVNode("pre",null,[e.createElementVNode("code",null,e.toDisplayString(l.value.info.version.framework),1)])]),t[3]||(t[3]=e.createElementVNode("dt",null,"PHP version",-1)),e.createElementVNode("dd",null,[e.createElementVNode("pre",null,[e.createElementVNode("code",null,e.toDisplayString(l.value.info.version.php),1)])]),t[4]||(t[4]=e.createElementVNode("dt",null,"Webserver software",-1)),e.createElementVNode("dd",null,[e.createElementVNode("pre",null,[e.createElementVNode("code",null,e.toDisplayString(l.value.info.environment.SERVER_SOFTWARE),1)])]),t[5]||(t[5]=e.createElementVNode("dt",null,"Database connection",-1)),e.createElementVNode("dd",null,[e.createElementVNode("pre",null,[e.createElementVNode("code",null,e.toDisplayString(l.value.info.database.connection),1)])]),t[6]||(t[6]=e.createElementVNode("dt",null,"Database version",-1)),e.createElementVNode("dd",null,[e.createElementVNode("pre",null,[e.createElementVNode("code",null,e.toDisplayString(l.value.info.database.type)+" "+e.toDisplayString(l.value.info.database.version),1)])]),t[7]||(t[7]=e.createElementVNode("dt",null,"Database name",-1)),e.createElementVNode("dd",null,[e.createElementVNode("pre",null,[e.createElementVNode("code",null,e.toDisplayString(l.value.info.database.name),1)])]),t[8]||(t[8]=e.createElementVNode("dt",null,"Project directory",-1)),e.createElementVNode("dd",null,[e.createElementVNode("pre",null,[e.createElementVNode("code",null,e.toDisplayString(l.value.info.path.project),1)])]),t[9]||(t[9]=e.createElementVNode("dt",null,"Site root url",-1)),t[10]||(t[10]=e.createElementVNode("dd",null,[e.createElementVNode("pre",null,[e.createElementVNode("code")])],-1)),t[11]||(t[11]=e.createElementVNode("dt",null,"Loaded sprinkles",-1)),e.createElementVNode("dd",null,[e.createElementVNode("ul",g,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value.sprinkles,n=>(e.openBlock(),e.createElementBlock("li",{key:n.name},e.toDisplayString(n),1))),128))])])])]),_:1})]),e.createElementVNode("div",null,[e.createVNode(d,{title:"Activities"})])])],64)}}};exports.default=f; |
Oops, something went wrong.