Giter Site home page Giter Site logo

gspotx2f / luci-app-disks-info Goto Github PK

View Code? Open in Web Editor NEW
33.0 3.0 16.0 1.59 MB

Information about connected disk devices (partitions, filesystems, SMART) for LuCI (OpenWrt webUI)

License: MIT License

Makefile 1.59% JavaScript 98.41%
openwrt luci-app smart openwrt-webui luci

luci-app-disks-info's People

Contributors

coflery avatar gspotx2f avatar radjah avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

luci-app-disks-info's Issues

Исправление, проверено на версии 23.05.3

Здравствуйте внесите исправление, заранее извиняюсь что не pull request(ом) нет возможности его сделать да и исправлял на живой машине.

Исправляет ошибку
Cannot read properties of null (reading 'table')
причина ошибки иногда элементы statObject.pages бывают null

--- /htdocs/luci-static/resources/view/disks-info.js	Thu Jun 13 21:53:17 2024
+++ /htdocs/luci-static/resources/view/disks-info.js	Thu Jun 13 21:54:38 2024
@@ -623,6 +623,7 @@
 			E('h3', {}, _('Device statistics') + ':')
 		);
 		for(let page of statObject.pages) {
+			if(!page) continue;
 			if(!Array.isArray(page.table) || page.table.length === 0) continue;
 			let pageTableTitle = E('h5', { 'style': 'width:100% !important; text-align:left !important' }, _(page.name));
 			let pageTable = E('table', { 'class': 'table' });

add mmc / emmc device support

Hi, my x86 router is using mmc which can not be detected by disks-info, cloud you please support this kind of device.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.