diff --git a/configs/.safenotes.yaml.example b/configs/.safenotes.yaml.example index 95b45ab..45d7acb 100644 --- a/configs/.safenotes.yaml.example +++ b/configs/.safenotes.yaml.example @@ -35,7 +35,7 @@ static-site: {"value": "1h", "label": "1 hour"}, {"value": "24h", "label": "1 day"}, {"value": "48h", "label": "2 days"}, - {"value": "168h", "label": "7 days"}, + {"value": "168h", "label": "7 days"} ] }, "theme": { diff --git a/staticsite/staticsite.go b/staticsite/staticsite.go index 120900c..33e90d5 100644 --- a/staticsite/staticsite.go +++ b/staticsite/staticsite.go @@ -90,7 +90,7 @@ func (sw StaticSite) ServeHTTP(w http.ResponseWriter, r *http.Request) { // envJS serve the env.js config for the React SPA // It helps make the SPA app more configurable func (sw StaticSite) envJs(w http.ResponseWriter, r *http.Request) { - w.Header().Set("Content-Type", "application/json") + w.Header().Set("Content-Type", "application/javascript") w.Write([]byte(sw.config.EnvJs)) } diff --git a/webapp/react/.env.dev b/webapp/react/.env.dev index 5fd86b3..a6d2d9d 100644 --- a/webapp/react/.env.dev +++ b/webapp/react/.env.dev @@ -4,4 +4,5 @@ HTTPS=true PUBLIC_URL=https://localhost:3000/app ENV=dev -REACT_APP_SAFENOTE_BASE_PATH=/app +REACT_APP_SAFENOTES_NEXT_RELEASE_VERSION=0.4.0 +REACT_APP_SAFENOTES_BASE_PATH=/app diff --git a/webapp/react/public/index.html b/webapp/react/public/index.html index 9a230d8..9bb943d 100644 --- a/webapp/react/public/index.html +++ b/webapp/react/public/index.html @@ -14,7 +14,7 @@ - SafeNotes v0.2.0 + SafeNotes %REACT_APP_SAFENOTES_NEXT_RELEASE_VERSION% diff --git a/webapp/react/src/SafeNotes.js b/webapp/react/src/SafeNotes.js index 94c04b5..ed47da5 100644 --- a/webapp/react/src/SafeNotes.js +++ b/webapp/react/src/SafeNotes.js @@ -32,7 +32,7 @@ const SafeNotes = () => { const { theme } = useContext(ConfigContext); return ( - +
diff --git a/webapp/react/src/SafeNotes/shared/ModalMessage/ModalMessage.js b/webapp/react/src/SafeNotes/shared/ModalMessage/ModalMessage.js index ef83166..c3b3c6b 100644 --- a/webapp/react/src/SafeNotes/shared/ModalMessage/ModalMessage.js +++ b/webapp/react/src/SafeNotes/shared/ModalMessage/ModalMessage.js @@ -25,7 +25,7 @@ const ModalMessage = ({ rootEl, reset, children }) => { const content = <>
-
+
Close