docs update

This commit is contained in:
hay-kot 2021-06-07 12:10:10 -08:00
commit ad4bb0192b
5 changed files with 38 additions and 31 deletions

View file

@ -2,7 +2,7 @@
## Getting a Token ## Getting a Token
Currently Mealie doesn't support creating a long-live token. You can however get a token from the API. This example was pulled from the automatic API documentation provided by Mealie. Mealie supports long-live api tokens in the user frontend. In you profile section you can use the
### Curl ### Curl
```bash ```bash

View file

@ -7,7 +7,6 @@ To deploy mealie on your local network it is highly recommended to use docker to
[Mealie on Dockerhub](https://hub.docker.com/r/hkotel/mealie) [Mealie on Dockerhub](https://hub.docker.com/r/hkotel/mealie)
- linux/amd64 - linux/amd64
- linux/arm/v7
- linux/arm64 - linux/arm64
@ -77,9 +76,10 @@ services:
## Env Variables ## Env Variables
| Variables | Default | Description | | Variables | Default | Description |
| ----------------- | ------------------ | ----------------------------------------------------------------------------------- | | ----------------- | --------------------- | ----------------------------------------------------------------------------------- |
| DEFAULT_GROUP | Home | The default group for users | | DEFAULT_GROUP | Home | The default group for users |
| DEFAULT_EMAIL | changeme@email.com | The default username for the superuser | | DEFAULT_EMAIL | changeme@email.com | The default username for the superuser |
| BASE_URL | http://localhost:8080 | Used for Notifications |
| DB_ENGINE | sqlite | Optional: 'sqlite', 'postgres' | | DB_ENGINE | sqlite | Optional: 'sqlite', 'postgres' |
| POSTGRES_USER | mealie | Postgres database user | | POSTGRES_USER | mealie | Postgres database user |
| POSTGRES_PASSWORD | mealie | Postgres database password | | POSTGRES_PASSWORD | mealie | Postgres database password |

File diff suppressed because one or more lines are too long

View file

@ -110,14 +110,18 @@ export default {
this.$refs.deleteRecipieConfirm.open(); this.$refs.deleteRecipieConfirm.open();
break; break;
case "share": case "share":
if (navigator.share){ if (navigator.share) {
navigator.share({ navigator
.share({
title: this.name, title: this.name,
text: this.recipeText, text: this.recipeText,
url: this.recipeURL, url: this.recipeURL,
}) })
.then(() => console.log('Successful share')) .then(() => console.log("Successful share"))
.catch((error) => console.log('WebShareAPI not supported', error)) .catch(error => {
console.log("WebShareAPI not supported", error);
this.updateClipboard();
});
} else this.updateClipboard(); } else this.updateClipboard();
break; break;
case "edit": case "edit":
@ -138,10 +142,13 @@ export default {
updateClipboard() { updateClipboard() {
const copyText = this.recipeURL; const copyText = this.recipeURL;
navigator.clipboard.writeText(copyText).then( navigator.clipboard.writeText(copyText).then(
() => { console.log("Copied to Clipboard", copyText); () => {
utils.notify.success("Copied to Clipboard");}, console.log("Copied to Clipboard", copyText);
() => console.log("Copied Failed", copyText)); utils.notify.success("Copied to Clipboard");
},
() => console.log("Copied Failed", copyText)
);
}, },
}, },
} };
</script> </script>

View file

@ -215,7 +215,7 @@
"ingredient": "Ingredient", "ingredient": "Ingredient",
"ingredients": "Ingredients", "ingredients": "Ingredients",
"instructions": "Instructions", "instructions": "Instructions",
"share-recipe-message": "I wanted to share you my {0} recipe.", "share-recipe-message": "I wanted to share my {0} recipe with you.",
"key-name-required": "Key Name Required", "key-name-required": "Key Name Required",
"landscape-view-coming-soon": "Landscape View (Coming Soon)", "landscape-view-coming-soon": "Landscape View (Coming Soon)",
"milligrams": "milligrams", "milligrams": "milligrams",