Giter Site home page Giter Site logo

Suggestions about linux-dash HOT 11 CLOSED

 avatar commented on May 1, 2024
Suggestions

from linux-dash.

Comments (11)

commonquail avatar commonquail commented on May 1, 2024

Isn't number 2 already the case? I'm not sure about fonts but I opened a now-closed issue a few days ago specifically to address that point. If there are online fonts being used that should be changed.

from linux-dash.

 avatar commented on May 1, 2024

#2 -- Never mind. Happy to know!!!

from linux-dash.

commonquail avatar commonquail commented on May 1, 2024

I just checked, there are a few font dependencies. I'm guessing the browser'll just fall back to a default but we should get rid of it anyway.

from linux-dash.

tariqbuilds avatar tariqbuilds commented on May 1, 2024

What type of script do you wish to add to the index file? I would like to keep the index file HTML but am always open to suggestions. Maybe we can find a way to accommodate your intent without going to back-end file format like PHP.

from linux-dash.

 avatar commented on May 1, 2024

While using pure HTML may be good for some users (if they don't have PHP
installed), it may be good to offer the option to have the index file
also as PHP.

Here are the scripts that I added to the index file. This provides me
with additional useful information:

Your IP address: '.$_SERVER['REMOTE_ADDR'].' ('.gethostbyaddr($_SERVER['REMOTE_ADDR']).')
Server '.$_SERVER["SERVER_SOFTWARE"].'
PHP ' . phpversion().'
'.OPENSSL_VERSION_TEXT; ?>

This is just an example. I am using this in my highly customised NGINX
server that has some extra variables.
I am using this on my intranet with local DNS server.
But this is a good illustration of what can be useful.

On 2014-02-10 10:41, Afaq Tariq wrote:

What type of script do you wish to add to the index file? I would like
to keep the index file HTML but am always open to suggestions. Maybe
we can find a way to accommodate your intent without going to back-end
file format like PHP.


Reply to this email directly or view it on GitHub
#95 (comment).

from linux-dash.

 avatar commented on May 1, 2024

Ok, I am using the latest version now. The page still loads resources from the internet, like the fonts, bootstrap and other stuff.

from linux-dash.

tariqbuilds avatar tariqbuilds commented on May 1, 2024

I can see the font-awesome fonts being loaded external (which we will remove) but I did not see any other css/js/asset being loaded externally, except the github "fork me" banner.

Could you point me to which "bootstrap and other stuff" files are being loaded externally? I'd like to remove those dependencies.

from linux-dash.

tariqbuilds avatar tariqbuilds commented on May 1, 2024

@peterkahl - Your scripting needs for data from PHP seem to fit solution architecture the application has for the widget data: separate, modularized PHP files in the sh directory which the dashboard.js retrieves info from via AJAX and loads into DOM. This helps keep the application structured, easy to debug, and easy to contribute to horizontally or vertically (widget vs. application).

from linux-dash.

 avatar commented on May 1, 2024

Scripting. Makes sense. Now looking for having the information on which versions of various packages installed. Thanks.

from linux-dash.

 avatar commented on May 1, 2024

The file
css/google-fonts.css
has links to
https://themes.googleusercontent.com/

The file index.html
sources image externally
Fork me on GitHub
This should be local image.

That's all I was able to find.

from linux-dash.

tariqbuilds avatar tariqbuilds commented on May 1, 2024

Addressed both issues in a push. Thanks, @peterkahl .

from linux-dash.

Related Issues (20)

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.