new

modSizeControl

The component that allows you to control the size of a site and set a limit
Free
Download the package from the manager of your site.
How to download?
The author
Баха
Packages
1
Downloads
81
Автор дополнения
Packages
1
Downloads
81
Version 1.0.7-beta
Release date 11.26.2018
Downloads 81
Views 131
Warning! This component requires PHP version 5.6 or higher! If your site uses PHP less than required, the installation of this package could break it.
Warning! This package requires MODX not less than 2.4 !
The component has been developed for monitoring and control the size of a site and it is implemented as a widget in the Dashboard.

What this component does:


  • Control the size of your site and interrupt file uploads when the limit is reached (System setting: modsizecontrol_control). Disabled by default
  • You can specify the site limit (System setting: modsizecontrol_site_limit)
  • You can specify one or more Media Sources to determine the size (System setting: modsizecontrol_file_system)
  • The interface as a widget in the Dasboard
  • You can update the data using Ajax
  • Circular percentage Bar with animation
  • Different colors when certain fill points are reached (Green, Yellow and Red colors for visual communication)
  • Displays a message to the manager when the critical fill level is reached

Important information:


The component shows sum of all apparent size of files. The apparent size of a file can be less than disk usage.

For example, a file containing the word ‘zoo’ with no newline would, of course, have an apparent size of 3. Such a small file may require anywhere from 0 to 16 KiB or more of disk space, depending on the type and configuration of the file system on which the file resides.


How it looks:




Setup:


The picture is clickable



  • Install the package
  • Go to Settings -> Panels and add a widget to your panel

The project on GitHub

1.0.7-beta

  • Added feature that controls file downloads, which interrupt file uploads when the limit is reached. (Disabled by default, System setting: modsizecontrol_control)
  • Fixed undefined instead of percentage during first loading
  • Minor design changes

1.0.6-beta

  • Fix size limit exceeded behavior

1.0.5-beta

  • Fixed error "Cannot read property classList" was on all pages except the main
  • Fixed infinite scrolling behavior after error

1.0.4-beta

  • Added protection update
  • Added detection of free disk space
  • Remove setting site_size
  • Added caching for 12 hours

1.0.3-beta

  • Refactor update size

1.0.2-beta

  • Remove init pdoTools from processor
  • Added tpl setting

1.0.1-beta

  • Refactoring js
  • size/update processor
  • Refactoring php

1.0.0-beta

  • First Init