GithubHelp home page GithubHelp logo

teamxenox / caligator Goto Github PK

View Code? Open in Web Editor NEW
401.0 16.0 70.0 1.32 MB

๐ŸŠ An open-source kickass cross-platform Calculator with the power of alligator

License: MIT License

JavaScript 84.10% CSS 9.74% HTML 6.16%
hacktoberfest

caligator's Introduction

Caligator

Gitter

An open source kickass cross platform Calculator with power of alligator ๐ŸŠ

Caligator

Highlights

  • Currency conversion
  • Weight and length conversion
  • Temperature conversion
  • Percentage and ratio calculation
  • Disable autoplay for videos
  • Cross-platform
  • Silent auto-updates

Install

macOS 10.10+, Linux, and Windows 7+ are supported (64-bit only for now).

macOS

Download the .dmg file.

Linux

Download the .AppImage or .deb file.

The AppImage needs to be made executable after download.

Windows

Download the .exe file.

TODO

  • Export Options
  • Font size preferences
  • More themes ๐ŸŽ‰

Contributing

  1. ๐Ÿด Fork this repo!
  2. HACK AWAY! ๐Ÿ”จ๐Ÿ”จ๐Ÿ”จ
  3. ๐Ÿ”ƒ Create a new pull request.

Run

$ npm install && npm start

Build

See the electron-builder docs.

Publish

$ npm run release

Then edit the automatically created GitHub Releases draft and publish.

Contributors

Links

License

caligator's People

Contributors

adityar-r avatar artoodeeto avatar connorjameslow avatar dakshisdaksh avatar davidzcode avatar dependabot[bot] avatar hardik500 avatar ivansanchezsalvador avatar jamesgeorge007 avatar martinetmayank avatar melanieseltzer avatar nokorbis avatar pavanjadhaw avatar sarathsantoshdamaraju avatar sarthology avatar stereoraj 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  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  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  avatar

Watchers

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

caligator's Issues

Cold not load the dark theme

I am not able to load the dark theme in your app. And it seems that the app is crashing after I try to select the theme. I have attached a zip (Steps.zip) that contains the .mht file which can be opened using Internet explorer. Please look into the issue.
Steps.zip

can't change to dark mode in windows 10?

hi there, just downloaded this... I wanted something similar to numi on mac and this looks very nice but it just freezes when I goto options and try to change from light mode?

Invalid handling of parentheses

Parentheses seem to be handled incorrectly, it seems like they get ignored and the calculation is just run left to right. The odd thing is that with some calculations they work like they are suppose to work, but for most they seem to be ignored.

Example:
image

I'm running Kubuntu 19.04 (KDE), and I'm using the deb version.

2^2 produces 0

Hei! Not sure if I'm using correct syntax, but when I write 2^2 I expect calculator to do 2 to the power of 2 and produce 4. But result is 0. It appears that calculator does subtraction.

Support for variables

It would be nice to have support for something like this
a = 1
b = a
c = (a+b)*10

At first glance it looks pretty easy to implement, by simply creating inside map of variables and using it to substitute each expression it can find throughout all expression lines

It would be harder if you used your own expression parsing logic but as you seem to just evaluate expressions through mathjs, it seems doable in one PR if without any optimizations.
Actually I created one implementation, but I can't create branch in here to make PR, i'm not sure what's with forks though

Ability to clear input and output

It would be a nice addition if we added a clear button that returns the app to the initial state.

Clear the input text field and the output paragraph tags.

Possible BEDMASS issue

In the latest pre-release the line

5*(3+5)

evaluates to 20 instead of 40 (tested on windows). Image attached.

bedmass issue

Error in handling mouse.

Hi, Saw your post on dev.to, I thought I should try it out. I need converters a lot and google is sometimes just so slow. I am a linux user, so thanks for appimage, I appreciate it very much,

I however have issue mouse input, I discovered when I was trying to switch theme. Mouse click isn't registered on dropdown menu, It just activate window dragging. I can switch theme via keyboard though.
And when I go back from settings, since editor is now out of focus, I can not click to get cursor back on editor. Worse that here, keyboard tabs doesn't always gain focus here (maybe I am counting tabs wrong cause I did get focus once, but never again.

I have a screen recording if I am unclear in explaining.

Request for Auto complete feature

An auto complete / suggestion feature would make its easy to key in the units. Currently its a bit confusion to figure out what notation works. Example for miles mi works but its not easy to find out .

Letters before numbers

I should first say that I'm glad this project exists and I'm impressed with the progress that has been made.

I hope caligator can become a real open source alternative to soulver (https://soulver.app), once it gets some of the same advanced features.

However, I think first of all, I'd like to see the ability to type before and after a math operation. Currently it only works if I typeย after the operation:

image

shows wrong result

It shows wrong result and doesn't prioritize expression inside parentheses.

Screenshot (89)

Accessing hamburger menu makes the entire app unresponsive

OS: Archlabs
DE: i3
Installation: using appimage

Issue description: The app gets stuck (unresponsive) after accessing the hamburger menu, consequently, cannot change the theme.
Also, after returning back from the menu, the editor is unresponsive and I cannot enter any value. Have to restart the app to use it.

Request for data measurement units conversion

It'll be nice to have data measurement units conversion in Caligator!
Like: (10 Gigabytes to Megabits)
(10GB to Mb)
(10 MiB to KiB)
... etc

Google is a great example of this.
For example, search '10 Mbits to Gigabytes' on google.

Line up input and output

After more the one calculation the output on the right no longer lines up with the input on the left. After a couple of entries this becomes really jarring and makes the program difficult to use.

Also, if you happen to use all the space on the output side then the output starts getting written off the visible window and you have to scroll down to see it

Feels like both input and output should be aligned and the scroll bar should move both sides in sync

There is no desktop icon on the project

There needs to be a desktop icon of this project. As of now there is none on linux. I am not sure whether this is linux only or this problem also exists on other platforms
caligator1
caligator2

Add informations to install on Windows on README

Hello,
Could you add in your README text for windows user

  • Ignore Windows warning for untrust editor and explain how to allow installation
  • Ignore firewall alert and enable api.exchangerateapi.io communication for currency converter

Making the previous results available to the next

Currently if you want to do calculations which involves any of the previous results then you do a copy and paste of the results.
Instead, if we can show the line numbers and a result variable which can be used in further calculations - that would be super helpful. It can be like -

1] 4 usd to inr 
2] $1 * 20%
3] 8/2 + $2
... and so on.

image

Problem with parentheses.

I think the caligator ignores the parentheses.

caliProblem

Simply instead of 5 / (2/2) the caligator sees 5/2/2. I think.

Units not displayed for decimal numbers in result.

As you can see in this image, the output should be 0.1g and not 0.1

image

Solution: As for now the best alternative would be to remove the units as a whole. It would also solve the issue mentioned for the total section in #53 .

Request hex conversion

Slick UI! As a dev, I often work with hex numbers. It would save me a lot of time doing hex conversions in the app.

Here's a suggestion:

0xabcd              |   43981
43981 to hex        |  0xabcd

Feature Request: Add some setting options.

I just tried latest commit from master. A lot of bug has been resolved, so looking forward for new release.

Currently Settings option only contain a theme switching. Here are some suggestions which I feel would fix some minor issues. Refer to the screenshot below.

  1. Currently there is no limit on how many decimal places to show (even for repeating values). An option to configure that would be a treat. Google by default round up to 4 digits. Most daily home use case would prefer to be rounded to 2 digits. This will resolve a minor issue I am mentioning in next point.

  2. The result after divider is nice. But showing units messes it up because of long decimal value. For example when I convert 10 meter to feet. The unit feet moves to second line and overlaps with the result of next operation. (See screenshot). I think having a gutter on right which will hold units, would be nice separation between values and its units.. Also there is an ISO 2848 which defines globally accepted symbols and units for measurements. No more foot vs feet debate.

  3. At the bottom of the app, there is a Total: section. Which shows combined results from all the operations above. I didn't see it in the older released appimage, so either its a testing thing or a new feature. If its a new feature, as you can see in screenshot, whenever we calculate something which contains string for units, it messes it up.

  4. This is not a bug, but more like a bad UI choice, When you click hamburger to go to settings, It is not clear how to get back. The close button is located in position of actual close button suggesting clicking it will close the app. Replacing it with a back arrow will make it's intention more clear.

Screenshot from 2020-01-23 11-33-54

Close Hamburger Menu doesn't allow further input

If you click the More Hamburger Menu, you can change the theme fine, but then clicking the X takes you back to the main Caligator screen, but no input is recognized after going to the Hamburger menu.

version 0.0.1 - Windows 10 x64

Creating the writing area ๐Ÿ“

This is where the user will actually write the calculation he wants to do. I feel like instead of using just an input tag, we should have a custom text area. That listens to a keystroke, may also help in NLP. But we can also go for a textarea.

textarea autofocus wrong attribute

in /app/index.html line 104 you wrote autofocus="true" but that is invalid
you could write autofocus only,
autofocus="",
autofocus="autofocus",
autofocus="AuToFoCuS
but not autofocus="true"

Unhandled Promise Rejection TypeError: Setting a value of type `undefined` for key `rates` is not allowed as it's not supported by JSON

I get the following error on startup:
Unhandled Promise Rejection
TypeError: Setting a value of type undefined for key rates is not allowed as it's not supported by JSON
at checkValueType (C:/Users/{myUser}/AppData/Local/Programs/caligator/resources/app.asar/node_modules/conf/index.js:32:9)
at set (C:/Users/{myUser}/AppData/Local/Programs/caligator/resources/app.asar/node_modules/conf/index.js:135:4)
at ElectronStore.set (C:/Users/{myUser}/AppData/Local/Programs/caligator/resources/app.asar/node_modules/conf/index.js:146:5)
at cacheRates (C:/Users/{myUser}/AppData/Local/Programs/caligator/resources/app.asar/utils/cacheRates.js:33:11)
I substituted my username with {myUser}

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.