Commit graph

601 commits

Author SHA1 Message Date
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
Tiffany Bennett
a6246ab3c4
Revamp CLI (#59)
* Refactor: Change Dim to struct with named fields

* Move files into `core`, leaving `rink` as the CLI

* Split out completer into separate module

* Clean up cargo files

* Move repl to separate file

* Use clap for rink CLI

* More ways to exit the CLI

* Serde doesn't require nightly for derive anymore

* Hopefully better caching behavior for requests
2020-07-18 02:11:41 -07:00
Tiffany Bennett
ab0a08ccfd
Add format checks to Github Actions 2020-07-18 00:14:52 -07:00
Tiffany Bennett
fff99d6a2a Fix tests failing on Windows 2020-07-18 00:08:18 -07:00
Tiffany Bennett
657c545085
Merge pull request #58 from tiffany352/remove-gmp
Remove GMP dependency
2020-07-17 23:37:53 -07:00
Tiffany Bennett
01cb6dab63 Merge branch 'master' into remove-gmp 2020-07-17 23:32:14 -07:00
Tiffany Bennett
855b555595
Create rust.yml 2020-07-17 23:30:40 -07:00
Tiffany Bennett
06911acd21 Remove remaining gmp references 2020-07-17 23:28:19 -07:00
Tiffany Bennett
4bdb902281 Replace gmp with num 2020-07-17 23:26:38 -07:00
Tiffany Bennett
5347ca7b15 Fix clippy warnings 2020-07-17 22:24:07 -07:00
Tiffany Bennett
f2bd5fb8be Rename Num::Mpq to Rational 2020-07-17 22:13:15 -07:00
Tiffany Bennett
d5fef2b66f Replace remaining references to Mpq/Mpz 2020-07-17 22:09:59 -07:00
Tiffany Bennett
15dd6ea4ff Add BigInt/BigRat type to abstract out gmp 2020-07-17 21:55:46 -07:00
Tiffany Bennett
c0c5b07be1 Run cargo fmt 2020-07-17 21:05:23 -07:00
Tiffany Bennett
3ea48fabbe
Merge pull request #55 from lluchs/linefeed-0.6
Update linefeed to 0.6
2020-06-16 23:53:54 -07:00
Lukas Werling
7273ff2ace Update linefeed to 0.6 2020-05-27 18:07:19 +02:00
Tiffany Bennett
e06af331e6
Merge pull request #54 from alexalemi/modernize
Modernize Code
2020-04-23 12:49:26 -07:00
Alex Alemi
fdc0ba77f5 First round of clippy linting. 2020-04-23 00:10:13 -04:00
Alex Alemi
f0e6e058d5 Another cargo fmt 2020-04-22 22:13:18 -04:00
Alex Alemi
b72bc0f80f cargo fix --edition-idioms 2020-04-22 22:06:35 -04:00
Alex Alemi
a8d8a4d7f7 fmt 2020-04-22 22:04:30 -04:00
Alex Alemi
3a2aa4c44d Manually remove trailing semicolons; Update edition 2020-04-22 22:04:18 -04:00
Alex Alemi
0d10f2d0e6 cargo fix --edition 2020-04-22 21:59:34 -04:00
Alex Alemi
1195f7832e try! -> ? everywhere 2020-04-22 21:56:38 -04:00
Alex Alemi
7197d91e47 After merging PR#40 2020-04-22 21:43:47 -04:00
Tiffany Bennett
03bfc41047
Merge pull request #53 from bhipple/fix/lockfile
Include Cargo.lock in src
2020-02-15 23:16:43 -08:00
Benjamin Hipple
9ec790dcec Include Cargo.lock in src
Since this is producing a binary that users and distributions want to install,
we should include a Cargo.lock for a deterministic build.

https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
https://reproducible-builds.org/
2020-02-16 01:17:03 -05:00
Tiffany Bennett
eb3397b744
Merge pull request #51 from DeeUnderscore/offset-dates
Make dates with numerical offsets get parsed correctly
2019-12-31 16:53:42 -05:00
D Anzorge
603910759e Modify date offset parsing tests
Change one test to reflect current behavior and add one test with
different offsets.
2019-12-31 19:58:52 +01:00