Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modernizing the AWStats Interface #233

Open
IGLOU-EU opened this issue Apr 28, 2023 · 31 comments
Open

Modernizing the AWStats Interface #233

IGLOU-EU opened this issue Apr 28, 2023 · 31 comments

Comments

@IGLOU-EU
Copy link

Hello AWStats team,

First of all, I would like to express my admiration for the excellent work that you have done with AWStats. It's a fantastic software for statistics that has been very useful for many years.

However, as technology has evolved, the AWStats interface has become somewhat outdated. The use of iframes in the interface is no longer necessary and can increase the number of requests, leading to slower loading times.

Therefore, I would like to propose some changes to modernize the AWStats interface while maintaining its excellent functionality. These changes would include updating the design to make it more user-friendly and intuitive, removing unnecessary iframes, and implementing a responsive layout that adapts to different screen sizes.

I understand that this will require significant effort and resources, but I believe that it will be worth it in the long run. A more modern and user-friendly interface will help to attract new users and ensure that AWStats remains relevant in today's fast-paced digital landscape.

Thank you for your consideration, and I look forward to hearing your thoughts on this matter.
Best regards

@JMcrafter26
Copy link

I found a somewhat modern design (has darkmode)
https://www.hackitu.de/awstats_theme/

@bouks
Copy link

bouks commented Jul 23, 2024

Hi @IGLOU-EU.

I totally agree. It's a great useful software, but really a 1995 feeling. 🥲

I've just made a pull request with few modernizing. Mainly remove the png images like stats color-bars and hours-clocks, defining icons in css. No more blurry images, less requests, less code... They can be redefined in stylesheet ( and, why not, put images bg for those who like images 😝 ). Also changed font to system-ui, convert font-size in em.

It needs to move all visual theming in css with well defined classes. And, BEFORE ALL, remove all those 90's tables that are not tabular datas. I would die for this. 😄 And the brs... 😄 Maybe moving to flex.

Hope it will be merged.

#256

@JMcrafter26
Copy link

I agree 😄

But have you considered making it mobile friendly?

@IGLOU-EU
Copy link
Author

Congrats @bouks, it was definitively needed. I wanted to know if AWStats are open to it, before working on it. You're taking a risk 😆

Hope, you will be merged.

@bouks
Copy link

bouks commented Jul 24, 2024

@JMcrafter26 i was thinking of it. But i was asking myself if these "datas" are easily readable on tiny screens, and also considering the need of "big buttons" for fingers and the number of devices (different resolutions, different dpi, etc.). I'm not hot for this at the moment. :)
I prefer stay on pc, play a little with flex and see.

@IGLOU-EU I just did some few things around few hours. Not much risks. But yeah, some things should be done. I think removing the frame system, using space better in the page, redesigning header and blocks.

I played around with css, but it's very limited, because the lack of identifiers (id, class...) on elements.
image

@IGLOU-EU
Copy link
Author

lack of identifiers ... 🤕

Matomo and goaccess have a very nice design if you need some inspiration

@bouks
Copy link

bouks commented Jul 24, 2024

I'd like to remove the bars table and include the bars in the data table. Like this example in the 3 visitors cells :
image

I think this is cleaner, keep space, and remove a bunch of lines of code.

What do you think ?

@eldy @IGLOU-EU @JMcrafter26

@IGLOU-EU
Copy link
Author

I prefer it too, but you'll have to ask the big boss @eldy . I haven't had a chance to participate in AWStats project yet. 🙁

@bouks
Copy link

bouks commented Jul 25, 2024

@IGLOU-EU

The month table
image

Without stylesheet file added.
There's a tiny animation when hovering a line consisting of zooming, and darkening the background.

@bouks
Copy link

bouks commented Jul 25, 2024

Flags in utf8, best rendering. No need for images.
image

@IGLOU-EU
Copy link
Author

@bouks I LOVE UTF-8 flags, but it can be a problem. It depends on the user's font and the web client. Not so long, Chromium based used grayscale.

@bouks
Copy link

bouks commented Jul 25, 2024

Days and nights
image

@eldy
Copy link
Owner

eldy commented Jul 25, 2024

Everything looks great.
PR are welcome, even if project is no more very active...

@bouks
Copy link

bouks commented Jul 25, 2024

@eldy 👍

@bouks
Copy link

bouks commented Jul 26, 2024

Updated the countries table.

Saw in issues that actual map not functionning anymore, so there's a new worldmap.

image

@bouks
Copy link

bouks commented Jul 26, 2024

A window to the world
image

@bouks
Copy link

bouks commented Jul 26, 2024

1920 screen
image

@bouks
Copy link

bouks commented Jul 27, 2024

awstats.webm

@eldy
Copy link
Owner

eldy commented Jul 27, 2024

A window to the world
image

For this one, i prefer the previous one when areay with text and value is on white background.

@bouks
Copy link

bouks commented Jul 27, 2024

@eldy Done :)

@IGLOU-EU
Copy link
Author

👏

@bouks
Copy link

bouks commented Jul 28, 2024

image

image

image

image

@bouks
Copy link

bouks commented Jul 29, 2024

I think it's enjoyable. Emails reports work as well.
I think few things to fix. If someone want to test it.

Need to add options in conf file:

DirImgs="/yourpath" (like icon) (conf also in Apache)
ShowBars=1 (if you want vertical bars)
BarHeight=75 (best) (will disappear)

The colors are in awstats.model.conf for the moment.

StylesheetMode="herited" (maybe not mandatory)

The quality of the video is bad due to the 10MB github limitation.
awstats20240730.webm

@bouks
Copy link

bouks commented Jul 30, 2024

The page navigation menu
image

@bouks
Copy link

bouks commented Jul 30, 2024

New colors to map.

  • gray : no visit
  • brown : visit
  • orange : much visit (top xx according to config)
  • yellow : hovering

Full list of countries directly accessible in the page by a button on the head table (first row)
image

@bouks
Copy link

bouks commented Jul 31, 2024

Ratios table
image

@bouks
Copy link

bouks commented Aug 1, 2024

Dark mode dedicated to the creatures of the night.
image

@bouks
Copy link

bouks commented Aug 6, 2024

Some screens and pdf about the actual state of my old school coding summer. 😉

1920x1200 screen - Dark Mode - section "when"
image

1920x1200 screen - Dark Mode - section "navigation"
image

1920x1200 screen - Dark Mode - section "who"
image

1920x1200 screen - Dark Mode - section "referer", "status", and footer
image

Printing (pdf) the main report page (A4, 100%, printing backgrounds, 0.2 inches page margin in printing window)
cococolocompany-main.pdf

@bouks
Copy link

bouks commented Aug 7, 2024

@bouks I LOVE UTF-8 flags, but it can be a problem. It depends on the user's font and the web client. Not so long, Chromium based used grayscale.

I set an option in conf file to choose utf8/png version. :)

6b10841

@bouks
Copy link

bouks commented Aug 7, 2024

Link to PR changelog : #256 (comment)

@bouks
Copy link

bouks commented Aug 7, 2024

I agree 😄

But have you considered making it mobile friendly?

@JMcrafter26

It's fine on my mobile with Firefox.
Just the form is small. Not very fine in Chrome. I'll fix that later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants