pauloday / breadule Goto Github PK
View Code? Open in Web Editor NEWSchedule and logging app for making really good bread
Schedule and logging app for making really good bread
This will add/remove however many minutes to the currently running timer/stage/phase.
Right now they're pretty janky, they maintain 00:00 formatting but they're in minutes. Initially they should just be an amount of minutes, but later (once foundation is done), they can be more fancy.
Once the ajax stuff is set up, figure out when the data should be stored and implement it. I'm not sure exactly when, but probably all of the check buttons should save the data. Not sure if it should save whenever you type something, but I'm leaning towards no.
Pretty much what it says on the tin, it'll be useful for stretch/fold sets.
There's an error when running lein with-profile prod uberjar
. I think it has something to do with a version mismatch between dependencies, specifically with the ajax library (but I'm not sure). Using lein deps :tree
and trying out different exclusions is probably the way to go.
Add a field for notes while the schedule is running. These are just like instructions but they can only be edited while the schedule is running.
The style is probably not great. Take a look at some large re-frame projects to see how they organize things, variable naming, etc. Things to look at:
`(ns breadule.views`
(:require
[re-frame.core :as re-frame]
[re-com.core :refer [h-box title single-dropdown md-icon-button]]
[breadule.subs :as subs]
[breadule.events :as events]
Where all the values are lined up with varying amounts of space between the key and value. I like this, but my vscode setup doesn't do it automatically, so it's not in the code right now. This should be done as part of the basic indentation formatting, so set this up (and write down how), then apply it across the codebase. It should be done on things like :require
lists, and in the views.
The current README is an autogenerated one from the re-frame template. Write a better one!
The views have too many big functions. Things like buttons need to be split into separate functions. There should also be more functions for common patterns, like labeled forms. It might be a good idea to make views/util.cljs
or something.
ring/ring-json
for responsesRight now the DB stuff is incomplete. I have stored objects in the DB, but I'm not sure if it's working currently and I haven't retrieved them. There are api endpoints for this, and some DB interaction functions. But they aren't really hooked up.
There's too much stuff inside the views. The timer.cljs
file has a lot of non-view stuff. I'm not sure what the idiomatic way for re-frame applications is, but I think there should be pure, non view code separated from display code. Some of it could probably be added to subs/events (e.g. stage-time
subscription that returns a formatted string from the stuff in the db).
This is going to be available for anyone, so it should use localstorage to keep track of schedules.
Once #5 is done, stages should have a start time next to them while the timer is running. This can be calculated on the fly, so no new variables need to be added to db.cljs
. The way this start time is displayed can probably also be used to indicate which stage is currently running, instead of underlining the title of the stage.
For adding this, just add a new calculate-start-time
function in timer.cljs
. It should return a formatted time string. Use this in stage-title
in the stage view file.
Related to #12, but there should be a way to attach images to stages while the schedule is running, and after it's done (as part of the public posting phase).
Right now the timer sets a time for a step, then counts that down once a second. I want to update it so it'll use a starting timestamp, then calculates the current timer/stage based on that and the current time. This will enable a couple of features:
To add this feature:
:startTimestamp
to db.cljs:startTimestamp
is not nil when the page is loaded (i.e. it came from the db), calculate the current time and start the timerAdd a public log so I can automatically post my completed bakes. There should be options to hide/delete schedules, in case I have to restart one or something.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.