cleanups for shopping list

version2
tim holloway 4 months ago
parent 61942f547a
commit 68462514db
  1. 14
      README.md
  2. 5
      application.properties
  3. 2
      src/main/resources/META-INF/resources/WEB-INF/layout/layout.xhtml
  4. 6
      src/main/resources/META-INF/resources/shoppingList.xhtml
  5. 9
      src/main/resources/application.yml

@ -1,4 +1,4 @@
# Gourmet Recipe Manager - Spring Boot # Gourmet Recipe Manager - Spring Boot - Version 2
This is a port of Thomas Hinkle (thinkle) Gourmet Recipe Manager. This is a port of Thomas Hinkle (thinkle) Gourmet Recipe Manager.
@ -85,4 +85,14 @@ employed when you run this app on your local desktop.
### Improved graphics support ### Improved graphics support
A lot of recipe websites publish images in webp form. Support A lot of recipe websites publish images in webp form. Support
for webp has now been added. for webp has now been added.
### Better session management
JSF tends to depend on session-scope context. Sessions, however
time out and this has been an annoyance when a recipe is being
displayed. To minimize this, better timeout mechanisms have been
installed and the recipe browser keeps last-search and search-type
values in long-lived cookies on the client. The server will read
and cache them, but if the server times out, it will automatically
re-read the cookies on the next request.

@ -21,7 +21,6 @@ spring.datasource.driverClassName=com.mysql.cj.jdbc.Driver
# My special properties # My special properties
gourmet.password.file=${user.home}/.gourmetpw gourmet.password.file=${user.home}/.gourmetpw
joinfaces.primefaces.theme=le-frog
#joinfaces.primefaces.THEME=vela
server.servlet.context-parameters.primefaces.THEME=le-frog # This will override aplication.yml
#server.servlet.context-parameters.primefaces.THEME=le-frog

@ -28,7 +28,7 @@
</ui:insert> </ui:insert>
<!-- --> <!-- -->
<div id="footer"> <div id="footer">
(C) 2021 Tim Holloway, Licensed under the <a (C) 2021, 2024 Tim Holloway, Licensed under the <a
href="http://www.apache.org/licenses/LICENSE-2.0" href="http://www.apache.org/licenses/LICENSE-2.0"
>Apache License, Version 2.0</a>. >Apache License, Version 2.0</a>.
<p>Based on Gourmet Recipe Manager by T. <p>Based on Gourmet Recipe Manager by T.

@ -6,7 +6,7 @@
xmlns:p="http://primefaces.org/ui" xmlns:p="http://primefaces.org/ui"
xmlns:c="http://xmlns.jcp.org/jstl" xmlns:c="http://xmlns.jcp.org/jstl"
> >
<!-- Tabbed page for the Mainpage "More..." button --> <!-- Tabbed page for the Mainpage "Shopping..." button -->
<ui:define name="title">Gourmet Recipe Manager - Shopping</ui:define> <ui:define name="title">Gourmet Recipe Manager - Shopping</ui:define>
<ui:define name="content"> <ui:define name="content">
<style> <style>
@ -34,6 +34,7 @@
} }
</style> </style>
This is the list of recipe items you've selected to shop for.
<h:messages /> <h:messages />
<p:tabView id="tabGroupClient" orientation="left" <p:tabView id="tabGroupClient" orientation="left"
dynamic="true" dynamic="true"
@ -95,13 +96,11 @@
value="Ingredients" value="Ingredients"
/> />
</f:facet> </f:facet>
<p:headerRow>
<p:column colspan="4"> <p:column colspan="4">
<h:outputText <h:outputText
value="#{item.shopCat}" value="#{item.shopCat}"
/> />
</p:column> </p:column>
</p:headerRow>
<p:column label="Amt" <p:column label="Amt"
style="width: 3em; text-align: right" style="width: 3em; text-align: right"
> >
@ -150,6 +149,7 @@
</p:tab> </p:tab>
<!-- --> <!-- -->
<p:tab id="tabPantry" title="Pantry"> <p:tab id="tabPantry" title="Pantry">
<h:outputText value="Stuff already in the pantry." />
<h:outputText value="For future implementation" /> <h:outputText value="For future implementation" />
</p:tab> </p:tab>
<!-- --> <!-- -->

@ -26,9 +26,10 @@ server:
servlet: servlet:
session: session:
timeout: '30m' timeout: '30m'
context-parameters: # Theme here pverrides jinfaces theme
primefaces: # context-parameters:
THEME: casablanca # primefaces:
# THEME: vela
gourmet: gourmet:
@ -37,4 +38,4 @@ gourmet:
joinfaces: joinfaces:
primefaces: primefaces:
theme: delta theme: casablanca

Loading…
Cancel
Save