Commit graph

579 commits

Author SHA1 Message Date
Tiffany Bennett
ebf7bca80e Update color-eyre to v0.6 2022-03-24 18:34:00 -07:00
Tiffany Bennett
5be14432af Update dirs to v4 2022-03-24 18:32:16 -07:00
Tiffany Bennett
c222af5f4a Update to clap v3 2022-03-24 18:29:49 -07:00
Tiffany Bennett
4689cc7a56 Run cargo update (Fixes #121) 2022-03-24 18:23:05 -07:00
Tiffany Bennett
f10a39c01e Quick fix for ECB API no longer including Ruble 2022-03-08 21:19:06 -08:00
Stephanie Wilde-Hobbs
f7e2ffdf11
Save history on error as well as success (#112)
Saving line history is important when there's a syntax error so you can recall the line to fix it.
2021-12-23 11:38:54 -08:00
Tiffany Bennett
6e3fecff57 Version 0.6.2 2021-10-31 15:10:02 -07:00
Tiffany Bennett
aa303062f9 Better reciprocal unit formatting (Fixes #91) 2021-10-31 15:00:53 -07:00
Tiffany Bennett
61814eeb72 Add updated element names (Fixes #105) 2021-10-31 14:48:35 -07:00
Tiffany Bennett
11a04b89b2 Fix missing whitespace in to_spans impl 2021-10-31 14:30:04 -07:00
Tiffany Bennett
0b9991333e Make previous result configurable 2021-10-31 14:18:52 -07:00
Tiffany Bennett
1db8030548
[README] Add scoop to package manager list 2021-09-19 11:28:01 -07:00
Adrian
474c407d15
Provide access to result of previous calculation (#107) 2021-08-20 20:44:37 -07:00
V
c36a666174
Make "now" respect system timezone (#101)
Most users probably want to manipulate time relative to the present in
their local timezone. This brings rink's functionality closer to similar
tools.

In date(1):

	> date -d 'now + 1 hour'
	Fri 23 Jul 09:54:02 CEST 2021

Before:

	> now
	2021-07-23 06:54:05.699222874 +00:00 (now)
	> now + 1 hour
	2021-07-23 07:54:10.940110380 +00:00 (in an hour)

After:

	> now
	2021-07-23 08:54:13.219044877 +02:00 (now)
	> now + 1 hour
	2021-07-23 09:54:15.555096329 +02:00 (in an hour)
2021-07-23 00:14:19 -07:00
Tiffany Bennett
0f4ebf9451
Sandboxing (#100) 2021-06-05 18:18:00 -07:00
Tiffany Bennett
ffd31b320e Fix clippy warnings 2021-05-30 16:46:27 -07:00
Tiffany Bennett
2ffe164f60 Fix warnings 2021-05-30 16:18:53 -07:00
kat
f7399b1dfd
Fixed CTRL+C behaviour (#95) 2021-05-12 13:45:13 -07:00
Tiffany Bennett
8d73153565 Bump CLI to 0.6.1 2021-04-25 14:24:36 -07:00
Tiffany Bennett
5eb5b135fe Create tempfile in final dir (Fixes #92) 2021-04-25 14:22:51 -07:00
Tiffany Bennett
af49f5d8b1 Release v0.6.0 2021-04-05 17:31:39 -07:00
Tiffany Bennett
b1b8d89b65
Remove repology badge 2021-04-05 16:30:00 -07:00
Tiffany Bennett
709b5d01b4
Output highlighting (#90)
Adds a token tree based representation for Rink's output, allowing it to be colored. Adds support for this to Rink CLI to get improved appearance.
2021-04-05 16:04:46 -07:00
Tiffany Bennett
c453dfdeb9
Update dependencies (#89) 2021-04-01 16:13:17 -07:00
Tiffany Bennett
31834d1092 Add user agent string 2021-04-01 14:18:26 -07:00
Tiffany Bennett
622dd31901
CLI improvements (#86) 2021-02-14 20:25:27 -08:00
Tiffany Bennett
20cc99c583 Cache currency data in a file for better reliability 2021-02-14 16:46:17 -08:00
Yeechan Lu
d2dbd1d3d9
Fix month in JavaScript binding (#84)
In JavaScript, Date.getMonth returns a zero-based value
(where zero indicates the first month of the year).
2020-11-25 00:14:52 -08:00
Tiffany Bennett
492da8cfca
Add release build action (#83)
Create build artifacts for multiple platforms using Github Actions
2020-11-07 17:51:46 -08:00
Tiffany Bennett
e9561ded3d
Add link to contribution guide 2020-10-01 19:15:53 -07:00
Tiffany Bennett
b1fad6be3c
Use unified currency API endpoint (#76) 2020-09-20 20:45:22 -07:00
Tiffany Bennett
1921c42986 Add Repology badge & update homepage link 2020-09-20 13:32:32 -07:00
Tiffany Bennett
433299b8a7 Fix duration showing incorrect results on rink-web 2020-09-20 13:02:17 -07:00
dependabot[bot]
6d470c4bd2
Bump node-fetch from 2.6.0 to 2.6.1 in /web (#73)
Bumps [node-fetch](https://github.com/bitinn/node-fetch) from 2.6.0 to 2.6.1.
- [Release notes](https://github.com/bitinn/node-fetch/releases)
- [Changelog](https://github.com/node-fetch/node-fetch/blob/master/docs/CHANGELOG.md)
- [Commits](https://github.com/bitinn/node-fetch/compare/v2.6.0...v2.6.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-14 16:05:54 -07:00
Tiffany Bennett
645dec5dd9 Use express instead of polka 2020-08-29 22:22:51 -07:00
Tiffany Bennett
dbe6a45a0d Rink 0.5.1 2020-08-29 21:57:47 -07:00
Tiffany Bennett
451671da8e Add more tests for digits control 2020-08-29 21:07:33 -07:00
Tiffany Bennett
2bb9e28d60 Fix web only showing fractions 2020-08-29 20:57:48 -07:00
Tiffany Bennett
e4f9fc99c5
Remove custom logic for float to rational (#70) 2020-08-29 19:09:14 -07:00
Tiffany Bennett
bd33ab05e9
Fix crash caused by NaN (#69) 2020-08-29 18:49:59 -07:00
Tiffany Bennett
fbe77c0ae8 Change PWA type to standalone 2020-08-29 18:13:25 -07:00
Tiffany Bennett
55ed9d6285 Re-add currency units to rink-web 2020-08-07 20:10:02 -07:00
Tiffany Bennett
03f5af9a09 Improve SEO 2020-08-06 19:37:09 -07:00
Tiffany Bennett
07c8159ecd Add readme to rink-web 2020-08-06 18:27:59 -07:00
Tiffany Bennett
af38e349bd Use relative path for server wasm blob 2020-08-06 18:08:22 -07:00
Tiffany Bennett
bf1a66ca84
Rink Web 2 (#62)
* Start over with the web interface

* Add initial stuff

* Extract file+network IO out of rink-core

* Fix cargo warning

* Add tests for rink-web

* Add Serialize to AST types

* Refactor AST

* Split up ast module

* BinOp -> BinOpExpr

* Split out UnaryOpExpr

* Remove Deserialize bound from AST

* Clean up Serialize impl for Numeric

* Convert Expr::Const to struct variant

* Make datetime handling deterministic

* Changes to js API

* Rename rink-web to rink-js

* Add initial npm project

* Add lit-element

* Parse textbox inputs

* Make Expr::Error a variant struct

* Convert Expr::Unit to struct variant

* Don't cache when running npm start

* Convert Expr::Mul to struct variant

* Convert Expr::Date to struct variant

* Convert Expr::Quote to struct variant

* Pretty print json

* Fix warnings

* Switch to svelte

* Remove web components polyfill

* Switch to sapper

* Only load wasm once

* Result component

* Update chrono

* `Utc::now` panics on wasm builds

* Hook up eval

* Disable humanize since it panics in wasm

* SSR test page

* Factor out wasm code into new file

* Make json output better

* Improve json output

* Better json for QueryError

* Add TS definitions for QueryReply

* Render some reply types

* Add proper font

* Add PWA manifest

* Add basic favicon

* Initial styling pass

* Include AST in replies

* Expr component

* Make Numeric json repr more useful

* Indicate approximate values

* Remove duplicate information in definitions

* Split up Result into smaller components

* Search reply

* Add UnitsForReply

* Add UnitListReply

* Add SubstanceReply

* Show dates

* Add DurationReply

* Hook up basic routing

* UI polishing

* Add links to unit pages

* Quantity links

* Split ExprNode and fix whitespace issues

* Fix whitespace issues in NumberParts

* Fix Binop component

* Precedence fixes

* Fix imports

* NumberParts.svelte -> Number.svelte

* Remove App + debug prints

* Fix whitespace in parentheses

* Allow division slash for fractions

* Add home button

* Add aria info

* Improve units for page

* Add links to errors

* Remove rink-irc from workspace

So that cargo test --workspace will work.

* Run all workspace tests in CI

* Remove legacy argument
2020-08-06 16:25:12 -07:00
Tiffany Bennett
1f709eb97e Rename several types via automated refactor 2020-07-18 12:35:06 -07:00
Tiffany Bennett
d8b519c067 Add readme 2020-07-18 02:24:37 -07:00
Tiffany Bennett
8bcd316068 Move files to make cargo publish happy 2020-07-18 02:20:39 -07:00
Tiffany Bennett
828d2d4a79 Fix cargo toml for 0.5 release 2020-07-18 02:16:52 -07:00