Fixed spelling of availible

Sorry about all the small changes across lots of files, I think it would be best to fix this though to avoid potential future confusion.
This commit is contained in:
mtoohey31 2021-01-03 15:16:16 -05:00
parent 7e5ba43ac0
commit 5c59400a5d
6 changed files with 13 additions and 13 deletions

View File

@ -39,7 +39,7 @@
**Mealie** is a self hosted recipe manager and meal planner with a RestAPI backend and a reactive frontend application built in Vue for a pleasant user experience for the whole family. Easily add recipes into your database by providing the url and mealie will automatically import the relavent data or add a family recipe with the UI editor. **Mealie** is a self hosted recipe manager and meal planner with a RestAPI backend and a reactive frontend application built in Vue for a pleasant user experience for the whole family. Easily add recipes into your database by providing the url and mealie will automatically import the relavent data or add a family recipe with the UI editor.
Mealie also provides a secure API for interactions from 3rd party applications. **Why does my recipe manager need an API?** An API allows integration into applications like [Home Assistant]() that can act as notification engines to provide custom notifications based of Meal Plan data to remind you to defrost the chicken, marinade the steak, or start the CrockPot. See the section on [Meal Plan hooks](#hooks) for more information. Additionally, you can access any avaiable API from the backend server. To explore the API spin up your server and navigate to http://yourserver.com/docs for interactive API documentation. Mealie also provides a secure API for interactions from 3rd party applications. **Why does my recipe manager need an API?** An API allows integration into applications like [Home Assistant]() that can act as notification engines to provide custom notifications based of Meal Plan data to remind you to defrost the chicken, marinade the steak, or start the CrockPot. See the section on [Meal Plan hooks](#hooks) for more information. Additionally, you can access any available API from the backend server. To explore the API spin up your server and navigate to http://yourserver.com/docs for interactive API documentation.

View File

@ -6,7 +6,7 @@ const backupBase = baseURL + "backups/";
const backupURLs = { const backupURLs = {
// Backup // Backup
avaiable: `${backupBase}avaiable/`, available: `${backupBase}available/`,
createBackup: `${backupBase}export/database/`, createBackup: `${backupBase}export/database/`,
importBackup: (fileName) => `${backupBase}${fileName}/import/`, importBackup: (fileName) => `${backupBase}${fileName}/import/`,
deleteBackup: (fileName) => `${backupBase}${fileName}/delete/`, deleteBackup: (fileName) => `${backupBase}${fileName}/delete/`,
@ -14,7 +14,7 @@ const backupURLs = {
export default { export default {
async requestAvailable() { async requestAvailable() {
let response = await apiReq.get(backupURLs.avaiable); let response = await apiReq.get(backupURLs.available);
return response.data; return response.data;
}, },

View File

@ -21,7 +21,7 @@
<v-form ref="form" lazy-validation> <v-form ref="form" lazy-validation>
<v-select <v-select
label="Saved Color Schemes" label="Saved Color Schemes"
:items="avaiableThemes" :items="availableThemes"
item-text="name" item-text="name"
item-value="colors" item-value="colors"
return-object return-object
@ -95,13 +95,13 @@ export default {
themes: null, themes: null,
activeTheme: {}, activeTheme: {},
darkMode: false, darkMode: false,
avaiableThemes: [], availableThemes: [],
selectedScheme: "", selectedScheme: "",
selectedLight: "", selectedLight: "",
}; };
}, },
async mounted() { async mounted() {
this.avaiableThemes = await api.themes.requestAll(); this.availableThemes = await api.themes.requestAll();
this.darkMode = this.$store.getters.getDarkMode; this.darkMode = this.$store.getters.getDarkMode;
this.themes = this.$store.getters.getThemes; this.themes = this.$store.getters.getThemes;
this.setThemeEditor(); this.setThemeEditor();
@ -115,12 +115,12 @@ export default {
} else if (this.selectedScheme !== "") { } else if (this.selectedScheme !== "") {
api.themes.delete(this.selectedScheme.name); api.themes.delete(this.selectedScheme.name);
} }
this.avaiableThemes = await api.themes.requestAll(); this.availableThemes = await api.themes.requestAll();
} }
}, },
async appendTheme(newTheme) { async appendTheme(newTheme) {
api.themes.create(newTheme); api.themes.create(newTheme);
this.avaiableThemes.push(newTheme); this.availableThemes.push(newTheme);
}, },
themeSelected() { themeSelected() {
this.activeTheme = this.selectedScheme.colors; this.activeTheme = this.selectedScheme.colors;

View File

@ -5,7 +5,7 @@
<v-card-title class="headline"> Choose a Recipe </v-card-title> <v-card-title class="headline"> Choose a Recipe </v-card-title>
<v-card-text> <v-card-text>
<v-autocomplete <v-autocomplete
:items="avaiableRecipes" :items="availableRecipes"
v-model="selected" v-model="selected"
clearable clearable
return return
@ -85,7 +85,7 @@ export default {
}, },
computed: { computed: {
avaiableRecipes() { availableRecipes() {
return this.$store.getters.getRecentRecipes; return this.$store.getters.getRecentRecipes;
}, },
}, },

View File

@ -7,8 +7,8 @@ from utils.snackbar import SnackResponse
router = APIRouter() router = APIRouter()
@router.get("/api/backups/avaiable/", tags=["Import / Export"]) @router.get("/api/backups/available/", tags=["Import / Export"])
async def avaiable_imports(): async def available_imports():
""" Returns this weeks meal plan """ """ Returns this weeks meal plan """
imports = [] imports = []
templates = [] templates = []

View File

@ -9,7 +9,7 @@ router = APIRouter()
@router.get("/api/meal-plan/all/", tags=["Meal Plan"]) @router.get("/api/meal-plan/all/", tags=["Meal Plan"])
async def get_all_meals(): async def get_all_meals():
""" Returns a list of all avaiable meal plans """ """ Returns a list of all available meal plans """
return MealPlan.get_all() return MealPlan.get_all()