godsmith / dinrplan Goto Github PK
View Code? Open in Web Editor NEWMeal planner
Meal planner
Using the web CLI, I could run a few commands. The dinrplan-db was listed as suspended, and the machine had not started:
/app/bin $ fly apps list
NAME OWNER STATUS PLATFORM LATEST DEPLOY
dinrplan personal deployed machines 8m28s ago
dinrplan-db personal suspended machines
fly-builder-billowing-cloud-7534 personal deployed machines
/app/bin $ fly checks list -a dinrplan-db
Health Checks for dinrplan-db
NAME | STATUS | MACHINE | LAST UPDATED | OUTPUT
-------*---------*----------------*----------------------*-----------------------------
pg | warning | 5683074f00d08e | 2023-06-26T20:33:15Z | the machine hasn't started
-------*---------*----------------*----------------------*-----------------------------
role | warning | 5683074f00d08e | 2023-06-26T20:33:15Z | the machine hasn't started
-------*---------*----------------*----------------------*-----------------------------
vm | warning | 5683074f00d08e | 2023-06-26T20:33:15Z | the machine hasn't started
-------*---------*----------------*----------------------*-----------------------------
However, I could not restart it:
/app/bin $ fly pg restart -a dinrplan-db
Error: no active leader found
But I could restart the machine dinrplan-db was running on, and that fixed it:
/app/bin $ fly machine list -a dinrplan-db
1 machines have been retrieved from app dinrplan-db.
View them in the UI here (https://fly.io/apps/dinrplan-db/machines/)
dinrplan-db
ID NAME STATE REGION IMAGE IP ADDRESS VOLUME CREATED LAST UPDATED APP PLATFORM PROCESS GROUP SIZE
5683074f00d08e winter-forest-5654 stopped ams flyio/postgres:14.6 (v0.0.34) fdaa:0:a08f:a7b:23c5:dd86:e028:2 vol_5podq4qzxed4g8w1 2023-03-09T18:25:11Z 2023-06-26T20:33:15Z app shared-cpu-1x:256MB
/app/bin $ fly machine restart 5683074f00d08e -a dinrplan-db
Restarting machine 5683074f00d08e
Waiting for 5683074f00d08e to become healthy (started, 3/3)
Machine 5683074f00d08e restarted successfully!
/app/bin $ fly pg list
NAME OWNER STATUS LATEST DEPLOY
dinrplan-db personal deployed
/app/bin $ fly checks list -a dinrplan-db
Health Checks for dinrplan-db
NAME | STATUS | MACHINE | LAST UPDATED | OUTPUT
-------*---------*----------------*--------------*--------------------------------------------------------------------------
pg | passing | 5683074f00d08e | 25s ago | [✓] transactions: read/write (192.07µs)
| | | | [✓] connections: 11 used, 3 reserved, 300 max (3.89ms)
-------*---------*----------------*--------------*--------------------------------------------------------------------------
role | passing | 5683074f00d08e | 26s ago | leader
-------*---------*----------------*--------------*--------------------------------------------------------------------------
vm | passing | 5683074f00d08e | 49s ago | [✓] checkDisk: 805.58 MB (82.5%) free space on /data/ (32.12µs)
| | | | [✓] checkLoad: load averages: 0.00 0.00 0.00 (57.18µs)
| | | | [✓] memory: system spent 0s of the last 60s waiting on memory (34.64µs)
| | | | [✓] cpu: system spent 168ms of the last 60s waiting on cpu (15.91µs)
| | | | [✓] io: system spent 246ms of the last 60s waiting on io (14.65µs)
-------*---------*----------------*--------------*--------------------------------------------------------------------------
/app/bin $
Number of stars?
To reproduce, log out and then in again. The redirect seems to be broken.
Reportedly faster. Can't run under Windows, but there we can run the development server instead.
Instead of just delete button add expanding "..." with the two options delete and assign to next empty day?
Currently you just check if the ingredientsfield is filled in, which is a bit crude. A better way would be to set it when you update the recipe for the first time. That is also the way it works in old dinnerplan.
Must be able to click the recipes. Preferably to open them in a modal or something.
The vanilla select element is briefly visible before it is replaced by selectize.
Switch from as_p to as_table and see if that is better. Use a bootstrap table.
It hides the ok button.
Also requires less tabs to get there. Although the case is not clear-cut, see discussion here: https://ux.stackexchange.com/questions/1072/ok-cancel-on-left-right
Perhaps needed because we want to import all the recipes at once, but we don't want all of them visible in the list. Perhaps this feature can be removed later.
Used 16 times the last year, for example
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.