sharkdp / insect

High precision scientific calculator with support for physical units
https://numbat.dev/
MIT License
3.18k stars 126 forks source link

Add webmanifest and serviceworker #361

Closed xPaw closed 1 year ago

xPaw commented 1 year ago

Fixes https://github.com/sharkdp/insect/issues/360 This makes it installable as an app, and makes it work offline.

A separate improvement could be done to make the terminal take full size of the window.

20230213-sNdwSDHE

xPaw commented 1 year ago

What do you think about terminal-only/zen mode?

Achievable with the following css:

body {
    margin: 0;
    height: 100vh;
}

#content {
    padding: 0;
    width: 100%;
    max-width: unset;
    height: 100vh;
}

#terminal {
    height: 100vh !important;
}

#insect-logo,
.desc,
.github-corner {
    display: none;
}

image

triallax commented 1 year ago

What do you think about terminal-only/zen mode?

I'm not entirely opposed to it, but at that point I think it's really much better to simply install the CLI and use that (way more lightweight). This goes for the whole idea of a PWA for Insect on desktops and laptops (for mobile phones I guess it would be nice though).