Files
plainleaf/libraries/Library/Std/Pages/Space Overview.md
T

31 lines
884 B
Markdown

#meta
This page compiles some useful stats about your space. You may also like the [[^Library/Std/Pages/Maintenance]] page.
# Stats
**Total pages:** ${#query[[from index.tag "page" select name]]}
**Total documents:** ${#query[[from index.tag "document" select name]]}
# Active Plugs
These are all the plugs currently active in your space:
${query[[
from space.listPlugs()
select {name=string.gsub(_.name, "_plug/([^.]+).plug.js", "%1")}
]]}
# Active Space Lua
These are all Space Lua scripts and the order in which they are loaded:
${template.each(query[[
from script = index.tag "space-lua"
order by (script.priority or 0) desc, script.ref
]], template.new[==[
* [[${ref}]] (priority: ${priority or "default"})
]==])}
# Active Space Style
${template.each(query[[
from index.tag "space-style"
order by _.priority desc
select {name=ref}
]], templates.pageItem)}