Commit graph

57 commits

Author SHA1 Message Date
Tiffany Bennett
af49f5d8b1 Release v0.6.0 2021-04-05 17:31:39 -07:00
Tiffany Bennett
20cc99c583 Cache currency data in a file for better reliability 2021-02-14 16:46:17 -08:00
Tiffany Bennett
b1fad6be3c
Use unified currency API endpoint (#76) 2020-09-20 20:45:22 -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
2bb9e28d60 Fix web only showing fractions 2020-08-29 20:57:48 -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
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
Alex Alemi
a8d8a4d7f7 fmt 2020-04-22 22:04:30 -04:00
Alex Alemi
1195f7832e try! -> ? everywhere 2020-04-22 21:56:38 -04:00
Colin Benner
1ce838983d Simplify some matches 2019-10-19 20:28:00 -07:00
Colin Benner
612ca08306 Use is_empty
Check whether a collections is empty by using the `.is_empty` method
instead of comparing `.len()` to 0.
2019-10-19 20:27:59 -07:00
Colin Benner
8247a2415c Fix lots of clippy warnings 2019-10-19 20:27:59 -07:00
Tiffany Bennett
a93e9c1429 Fix zombie processes in rink-web 2017-05-26 18:23:27 -07:00
whitequark
7c254725d3 Update iron to 0.5 to be compatible with hyper-native-tls. 2017-02-11 13:33:48 +00:00
Tiffany Bennett
5ec3e4231f Add unit categories 2016-11-10 17:14:14 -05:00
Tiffany Bennett
212a7028db Release v0.4.0 2016-10-31 18:47:30 -04:00
Tiffany Bennett
3a0760681a Update to 2016-10-20 nightly
rustc_macro -> proc_macro, update serde.
2016-10-23 15:48:50 -04:00
Tiffany Bennett
0fd73068b4 Show ratios instead of input/output on substances 2016-10-15 19:12:42 -04:00
Tiffany Bennett
06d280b4ae Use correct content-type for opensearch.xml 2016-10-10 12:40:27 -04:00
Tiffany Bennett
37925d59c3 web: Add config file + opensearch support 2016-10-10 12:23:30 -04:00
Tiffany Bennett
914f3a8dc2 Add boostrap JS to fix navbar on mobile 2016-10-09 17:31:48 -04:00
Tiffany Bennett
7f02e25756 Use QueryError for eval
Web now links to the suggested unit when making a typo suggestion, and
also prints conformance errors on property access better.
2016-10-08 17:50:36 -04:00
Tiffany Bennett
62a6e54d27 web: Links for definitions 2016-10-08 14:25:05 -04:00
Tiffany Bennett
0ccb298f96 web: Links for quantities (units for for now) 2016-10-08 13:06:34 -04:00
Tiffany Bennett
d0c4c65bdc web: Add template reloading with watch feature 2016-10-08 11:30:56 -04:00
Tiffany Bennett
f4966ab70b web: Add some links to units 2016-10-08 11:20:46 -04:00
Tiffany Bennett
99d277b16b web: More descriptive page titles 2016-10-07 20:16:16 -04:00
Tiffany Bennett
e0e90f209d Show query before reply 2016-10-07 20:05:54 -04:00
Tiffany Bennett
71af018e18 web: Show amounts when displaying substances 2016-10-07 19:42:52 -04:00
Tiffany Bennett
2b10ecd426 web: Add logging 2016-10-07 15:49:45 -04:00
Tiffany Bennett
03a3ba1489 web: Add request size limits 2016-10-07 15:46:24 -04:00
Tiffany Bennett
ff283ee4c5 Accept bind address as first argument 2016-10-07 14:26:57 -04:00
Tiffany Bennett
f126f92789 Add a main page 2016-10-07 14:21:58 -04:00
Tiffany Bennett
a200eb5c08 Show main page on empty query 2016-10-06 18:49:28 -04:00
Tiffany Bennett
4008f1827b Error pages 2016-10-06 17:59:30 -04:00
Tiffany Bennett
712ece4f5d web: Handle dates 2016-10-06 17:15:03 -04:00
Tiffany Bennett
fc3fb3e8d5 web: Use a list for factorizations 2016-10-05 20:52:51 -04:00
Tiffany Bennett
fab6238447 web: Template time/memory limit errors properly 2016-10-05 20:48:48 -04:00
Tiffany Bennett
35ce729f19 web: Templates for json query results 2016-10-05 19:18:25 -04:00
Tiffany Bennett
26a8231fa3 web: Use json serialization for templating 2016-10-05 16:01:31 -04:00
Tiffany Bennett
0cf9ec3b7a Add serde support 2016-10-05 16:01:21 -04:00
Tiffany Bennett
1edf133a9a web: Use a div instead of a pre 2016-10-04 20:51:09 -04:00
Tiffany Bennett
00501ce3c3 web: Make logo link to / 2016-10-04 20:37:16 -04:00