Comments (11)
This is released now. I also implemented a preview feature.
from dozzle.
@masterwendu That's pretty awesome. I didn't realize different locales change slashes and dots. I actually do the same thing things with time. I use en-gb
for 24-hour style and en-us
for 12 hour.
When I get some time, I'll try it out today for date and use the ones you suggested.
@Nicokalak momentjs is very outdated. Most functionalities can be done with browser.
Dozzle's tries to have good out of the box defaults so I want to make sure I use built-in date formatters.
from dozzle.
Added long message in #2672
I use javascript's navigator.language
and always confused how these things are set. Good to know this is a good feature!
from dozzle.
In my case is this en-US, but I am from Europe and a dateformat MM/DD/YYYY is hard to read for me.
:) I never thought of that.
I am not sure if you are familiar with javascript, but I use Intl.DateTimeFormat which doesn't support a custom format. Only a specific locale. So I don't think it would be easy to do that. Maybe a drop down to override the locale but I think that would be confusing personally?
from dozzle.
Yeah a dropdown with locale wouldn´t be good.
But we could add a dropdown with dateformats and then use the corresponding locales:
MM/DD/YYYY -> en-US
DD/MM/YYYY -> en-GB
DD.MM.YYYY -> de-DE
YYYY-MM-DD -> en-CA
I tested the 4 with Intl.DateTimeFormat
from dozzle.
consider using https://momentjs.com/
from dozzle.
consider using https://momentjs.com/
Thanks for the tip but:
This is on the moment main page:
Considering using Moment in your project?
There may be better modern alternatives.
For more details and recommendations,
please see Project Status in the docs.
So yeah, it would be ok to consider to use dayjs, but moment is not recommended.
from dozzle.
Try amir20/dozzle:pr-2671
@masterwendu
from dozzle.
Ooh absolutely brilliant!! 🥳
For some reason even though my PC is on en-gb (and I have UK English set in Chrome) I always got US-style dates which I found really confusing when trying to quickly glance at a log, esp if it wasn't obvious (when day was >12 so clearly not a month!) - being able to pick is a good solution.
I'm loving the new preview feature too 👍
from dozzle.
PS a minor thought @amir20, but to properly demonstrate the difference between soft wrap being on/off perhaps one line in the preview log should be a really long line so it wraps (if soft-wrap is enabled) even if on a decently high res screen? I could get it to do it if I shrunk the browser window but it isn't obvious at first.
from dozzle.
@amir20 great. Thanks for this super quick fix of my issue 😄
I updated and tried it. Works perfect 👌
from dozzle.
Related Issues (20)
- Authentication only with lowercased username HOT 1
- [Feature Request] Replicated Container in one Log HOT 2
- Only the first match of a searched query is highlighted HOT 4
- Remote host causes crashes HOT 3
- Lower Idle CPU usage HOT 14
- Container logs open Slow. HOT 3
- Malformed output when log contains an equals sign HOT 8
- It does not seem to stop collecting stats after 6 hours HOT 13
- Filter main list and summary section by host HOT 2
- Caddy v2 - issues with dozzle, continuous spamming log `reading: context canceled` HOT 7
- Concatenated logs HOT 7
- Logs stopping at a certain point HOT 3
- It's displaying logs from another container HOT 4
- 🙋🏻Feedback needed: Docker Swarm support HOT 12
- Reconnect and Display REMOTE_HOST always HOT 10
- Running stacks in sidebar or filter by Stack HOT 44
- Is the color of the log text incorrect? HOT 1
- Password only provider for authentication HOT 1
- Default background color for ANSI logs is black instead of default HOT 4
- Dozzle (internal) time / TZ environment option HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dozzle.