db.cljs 721 B

1234567891011121314151617181920212223
  1. (ns microtables-frontend.db)
  2. (def default-db
  3. {
  4. ;TODO: add "start" and "end" corners as selection
  5. :position {:cursor nil
  6. :selection nil}
  7. :table-data {"A" {1 {:value "59"}
  8. 12 {:value "2405"}}
  9. "B" {4 {:value "7893"}
  10. 5 {:value "7863"}
  11. 7 {:value "=C5 + D6"}
  12. 8 {:value "=B7 * 2"}
  13. 12 {:value "=C12"}}
  14. "C" {7 {:value "=D1"}
  15. 5 {:value "269"}}
  16. "D" {6 {:value "4065"}
  17. 10 {:value "8272"}
  18. 11 {:value "2495"}}
  19. "F" {2 {:value "8650"}
  20. 7 {:value "5316"}}}})