parent
2feb961000
commit
4f5f6e77b4
@ -1,7 +1,5 @@
|
|||||||
let {sourcetype, dateadded, language, author, publicationd, theme, readingd} = input;
|
let {sourcetype, dateadded, language, author, publicationd, theme, readingd} = input;
|
||||||
const {globalFunc} = customJS
|
const {globalFunc} = customJS
|
||||||
const DataType = 'Source'
|
const DataType = 'Source'
|
||||||
const iArray = [sourcetype, dateadded, language, author, publicationd, theme, readingd];
|
|
||||||
const dArray = ["sourcetype", "dateadded", "language", "author", "publicationd", "theme", "readingd"];
|
|
||||||
|
|
||||||
return globalFunc.getTable(dv, DataType, dArray, iArray, 0)
|
return globalFunc.getTable(dv, DataType, ["sourcetype", "dateadded", "language", "author", "publicationd", "theme", "readingd"], [sourcetype, dateadded, language, author, publicationd, theme, readingd], 0)
|
||||||
|
@ -0,0 +1,4 @@
|
|||||||
|
const {globalFunc} = customJS
|
||||||
|
let {placetype, dateadded, style, ambiance, area, theme, country, status} = input;
|
||||||
|
|
||||||
|
dv.el('t', "<b>🔎 search terms:</b> \n• " + globalFunc.buildToPrint([placetype, dateadded, style, ambiance, area, theme, country, status], ["type of place", "date added", "style", "ambiance", "area", "theme", "country", "status"], "\n• "));
|
@ -1,19 +1,4 @@
|
|||||||
|
const {globalFunc} = customJS
|
||||||
let {course, category, cuisine, ingredient, dateadded, theme, isfavourite, rating, cookingtime} = input;
|
let {course, category, cuisine, ingredient, dateadded, theme, isfavourite, rating, cookingtime} = input;
|
||||||
const iArray = [course, category, cuisine, ingredient, dateadded, theme, isfavourite, rating, cookingtime];
|
|
||||||
const dArray = ["course", "category", "cuisine", "ingredient", "dateadded", "theme", "is favourite", "rating", "cooking time"];
|
|
||||||
let TempS = ""
|
|
||||||
|
|
||||||
for (let i = 0; i < iArray.length; i++) {
|
|
||||||
if (Boolean(iArray[i])) {
|
|
||||||
if (TempS == "") {
|
|
||||||
TempS = dArray[i] + ": " + "<b>" + iArray[i] + "</b>"
|
|
||||||
} else {
|
|
||||||
TempS = TempS + "\n• " + dArray[i] + ": " + "<b>" + iArray[i] + "</b>"
|
|
||||||
}
|
|
||||||
if (dArray[i].search(new RegExp("time", "i")) > -1) {
|
|
||||||
TempS = TempS + " <b>min</b>"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
dv.el('t', "<b>🔎 search terms:</b> \n• " + TempS);
|
dv.el('t', "<b>🔎 search terms:</b> \n• " + globalFunc.buildToPrint([course, category, cuisine, ingredient, dateadded, theme, isfavourite, rating, cookingtime], ["course", "category", "cuisine", "ingredient", "dateadded", "theme", "is favourite", "rating", "cooking time"], "\n• "));
|
||||||
|
@ -0,0 +1,4 @@
|
|||||||
|
const {globalFunc} = customJS
|
||||||
|
let {sourcetype, dateadded, language, author, publicationd, theme, readingd} = input;
|
||||||
|
|
||||||
|
dv.el('t', "<b>🔎 search terms:</b> \n• " + globalFunc.buildToPrint([sourcetype, dateadded, language, author, publicationd, theme, readingd], ["type of source", "date added", "language", "author", "publication date", "theme", "reading date"], "\n• "));
|
@ -1,7 +1,5 @@
|
|||||||
let {tabletype, invtype, dateadded, style, stage, ccy, theme, tradingd, tradingp} = input;
|
let {tabletype, invtype, dateadded, style, stage, ccy, theme, tradingd, tradingp} = input;
|
||||||
const {globalFunc} = customJS
|
const {globalFunc} = customJS
|
||||||
const DataType = 'Investment'
|
const DataType = 'Investment'
|
||||||
const iArray = [invtype, dateadded, style, stage, ccy, theme, tradingd, tradingp];
|
|
||||||
const dArray = ["invtype", "dateadded", "style", "stage", "ccy", "theme", "tradingd", "tradingp"];
|
|
||||||
|
|
||||||
return globalFunc.getTable(dv, DataType, dArray, iArray, tabletype)
|
return globalFunc.getTable(dv, DataType, ["invtype", "dateadded", "style", "stage", "ccy", "theme", "tradingd", "tradingp"], [invtype, dateadded, style, stage, ccy, theme, tradingd, tradingp], tabletype)
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
let {placetype, dateadded, style, ambiance, area, theme, country, status} = input;
|
let {placetype, dateadded, style, ambiance, area, theme, country, status} = input;
|
||||||
const {globalFunc} = customJS
|
const {globalFunc} = customJS
|
||||||
const DataType = 'Place'
|
const DataType = 'Place'
|
||||||
const iArray = [placetype, dateadded, style, ambiance, area, theme, country, status];
|
|
||||||
const dArray = ["placetype", "dateadded", "style", "ambiance", "area", "theme", "country", "status"];
|
|
||||||
let templacetype = globalFunc.Get1stArg(placetype)
|
let templacetype = globalFunc.Get1stArg(placetype)
|
||||||
|
|
||||||
return globalFunc.getTable(dv, DataType, dArray, iArray, templacetype)
|
return globalFunc.getTable(dv, DataType, ["placetype", "dateadded", "style", "ambiance", "area", "theme", "country", "status"], [placetype, dateadded, style, ambiance, area, theme, country, status], templacetype)
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
let {prodtype, dateadded, prodvalue, theme} = input;
|
let {prodtype, dateadded, prodvalue, theme} = input;
|
||||||
const {globalFunc} = customJS
|
const {globalFunc} = customJS
|
||||||
const DataType = 'Product'
|
const DataType = 'Product'
|
||||||
const iArray = [prodtype, dateadded, prodvalue, theme];
|
|
||||||
const dArray = ["prodtype", "dateadded", "prodvalue", "theme"];
|
|
||||||
|
|
||||||
return globalFunc.getTable(dv, DataType, dArray, iArray, 0)
|
return globalFunc.getTable(dv, DataType, ["prodtype", "dateadded", "prodvalue", "theme"], [prodtype, dateadded, prodvalue, theme], 0)
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
const {globalFunc} = customJS
|
const {globalFunc} = customJS
|
||||||
const DataType = 'Recipe'
|
const DataType = 'Recipe'
|
||||||
let {viewtype, course, category, cuisine, ingredient, dateadded, theme, isfavourite, rating, cookingtime} = input;
|
let {viewtype, course, category, cuisine, ingredient, dateadded, theme, isfavourite, rating, cookingtime} = input;
|
||||||
const iArray = [course, category, cuisine, ingredient, dateadded, theme, isfavourite, rating, cookingtime];
|
|
||||||
const dArray = ["course", "category", "cuisine", "ingredient", "dateadded", "theme", "isfavourite", "rating", "cookingtime"];
|
|
||||||
let tempview = Boolean(viewtype) ? `${viewtype}` : 0
|
let tempview = Boolean(viewtype) ? `${viewtype}` : 0
|
||||||
|
|
||||||
return globalFunc.getTable(dv, DataType, dArray, iArray, tempview)
|
return globalFunc.getTable(dv, DataType, ["course", "category", "cuisine", "ingredient", "dateadded", "theme", "isfavourite", "rating", "cookingtime"], [course, category, cuisine, ingredient, dateadded, theme, isfavourite, rating, cookingtime], tempview)
|
@ -1,9 +1,6 @@
|
|||||||
const {globalFunc} = customJS
|
const {globalFunc} = customJS
|
||||||
const DataType = 'Server'
|
const DataType = 'Server'
|
||||||
let curr = dv.current();
|
|
||||||
let {tabletype, dateadded, host, subdomain, OS, CPU, RAM, Capa, disktype, BW, speed, dom, theme} = input;
|
let {tabletype, dateadded, host, subdomain, OS, CPU, RAM, Capa, disktype, BW, speed, dom, theme} = input;
|
||||||
const iArray = [dateadded, host, subdomain, OS, CPU, RAM, Capa, disktype, BW, speed, dom, theme];
|
|
||||||
const dArray = ["dateadded", "host", "subdomain", "OS", "CPU", "RAM", "Capa", "disktype", "BW", "speed", "dom", "theme"];
|
|
||||||
const tablet = Boolean(tabletype) ? tabletype : 'overview';
|
const tablet = Boolean(tabletype) ? tabletype : 'overview';
|
||||||
|
|
||||||
return globalFunc.getTable(dv, DataType, dArray, iArray, tablet)
|
return globalFunc.getTable(dv, DataType, ["dateadded", "host", "subdomain", "OS", "CPU", "RAM", "Capa", "disktype", "BW", "speed", "dom", "theme"], [dateadded, host, subdomain, OS, CPU, RAM, Capa, disktype, BW, speed, dom, theme], tablet)
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
let thisf = dv.current();
|
|
||||||
let {toprint} = input;
|
|
||||||
const {globalFunc} = customJS
|
|
||||||
|
|
||||||
dv.el('p', globalFunc.BuildList(toprint, "<br>"));
|
|
@ -0,0 +1,123 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
ServingSize: 4
|
||||||
|
cssclass: recipeTable
|
||||||
|
Tag: ["Healthy", "Summer"]
|
||||||
|
Date: 2021-09-21
|
||||||
|
DocType: "Recipe"
|
||||||
|
Hierarchy: "NonRoot"
|
||||||
|
location: [51.514678599999996, -0.18378583926867909]
|
||||||
|
CollapseMetaTable: Yes
|
||||||
|
Meta:
|
||||||
|
IsFavourite: True
|
||||||
|
Rating: 4
|
||||||
|
Recipe:
|
||||||
|
Courses: "Side Dish"
|
||||||
|
Categories: "Vegetable"
|
||||||
|
Collections: "Middle Eastern"
|
||||||
|
Source:
|
||||||
|
PreparationTime:
|
||||||
|
CookingTime: 45
|
||||||
|
OServingSize: 4
|
||||||
|
Ingredients:
|
||||||
|
- 2 whole fennel bulbs
|
||||||
|
- 1 tbsp olive oil
|
||||||
|
- 1 whole onion
|
||||||
|
- 2 whole tomatoes, peeled and chopped
|
||||||
|
- 55 grams black olives, stoned
|
||||||
|
- 150 ml vegetable stock
|
||||||
|
- 2 tbsp fresh basil leaves
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
Parent:: [[@@Recipes|Recipes]]
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
 
|
||||||
|
|
||||||
|
```button
|
||||||
|
name Edit Recipe parameters
|
||||||
|
type command
|
||||||
|
action MetaEdit: Run MetaEdit
|
||||||
|
id EditMetaData
|
||||||
|
```
|
||||||
|
^button-BraisedFennelEdit
|
||||||
|
|
||||||
|
|
||||||
|
```button
|
||||||
|
name Save
|
||||||
|
type command
|
||||||
|
action Save current file
|
||||||
|
id Save
|
||||||
|
```
|
||||||
|
^button-BraisedFennelNSave
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
 
|
||||||
|
|
||||||
|
# Braised Fennel
|
||||||
|
|
||||||
|
 
|
||||||
|
|
||||||
|
```toc
|
||||||
|
style: number
|
||||||
|
```
|
||||||
|
|
||||||
|
 
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
 
|
||||||
|
|
||||||
|
### Practical Informations
|
||||||
|
|
||||||
|
| |
|
||||||
|
|-|-
|
||||||
|
**Courses**: | `$=dv.current().Recipe.Courses`
|
||||||
|
**Categories**: | `$=dv.current().Recipe.Categories`
|
||||||
|
**Collections**: | `$=dv.current().Recipe.Collections`
|
||||||
|
**Serving size**: | `$=dv.current().ServingSize`
|
||||||
|
**Cooking time**: | `$=dv.current().Recipe.CookingTime` min
|
||||||
|
|
||||||
|
 
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
 
|
||||||
|
|
||||||
|
### Ingredients
|
||||||
|
|
||||||
|
 
|
||||||
|
|
||||||
|
```dataviewjs
|
||||||
|
dv.view("00.01 Admin/dv-views/query_ingredient", {ingredients: dv.current().Ingredients, originalportioncount: dv.current().Recipe.OServingSize})
|
||||||
|
```
|
||||||
|
|
||||||
|
 
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
 
|
||||||
|
|
||||||
|
### Instructions
|
||||||
|
|
||||||
|
 
|
||||||
|
|
||||||
|
1. Cut off and chop the fennel fronds and reserve for garnishing. Cut the bulbs in half lengthways then slice them thinly.
|
||||||
|
|
||||||
|
 
|
||||||
|
|
||||||
|
2. Heat the oil in a frying pan. Add the sliced onion and cook over a high heat, stirring occasionally, for 5 minutes, until softened. Add the fennel slices and cook, stirring occasionally, for a further 10 minutes.
|
||||||
|
|
||||||
|
 
|
||||||
|
|
||||||
|
3. Add the tomatoes and olives and pour enough vegetable stock to cover the base of the frying pan. Cover and simmer gently for 20 minutes until the fennel is very tender. Stir inthe basil and season to taste with pepper.
|
||||||
|
|
||||||
|
 
|
||||||
|
|
||||||
|
4. Transfer to a serving dish, garnish with the reserved fennel fronds and serve immediately.
|
||||||
|
|
||||||
|
 
|
||||||
|
 
|
@ -0,0 +1,128 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
ServingSize: 4
|
||||||
|
cssclass: recipeTable
|
||||||
|
Tag: ["Easy", "Fresh", "Healthy"]
|
||||||
|
Date: 2021-09-21
|
||||||
|
DocType: "Recipe"
|
||||||
|
Hierarchy: "NonRoot"
|
||||||
|
location: [51.514678599999996, -0.18378583926867909]
|
||||||
|
CollapseMetaTable: Yes
|
||||||
|
Meta:
|
||||||
|
IsFavourite: True
|
||||||
|
Rating: 4
|
||||||
|
Recipe:
|
||||||
|
Courses: "Side Dish"
|
||||||
|
Categories: "Salad"
|
||||||
|
Collections: "Middle Eastern"
|
||||||
|
Source:
|
||||||
|
PreparationTime:
|
||||||
|
CookingTime: 20
|
||||||
|
OServingSize: 4
|
||||||
|
Ingredients:
|
||||||
|
- 450 grams pearled or semi-pearled farro (or barley, Israeli couscous, freekeh or wheat berries)
|
||||||
|
- 60 ml olive oil
|
||||||
|
- 6 clove(s) garlic
|
||||||
|
- 1 tbsp fennel seeds
|
||||||
|
- 1 whole large fennel bulb, thinly sliced, fronds reserved
|
||||||
|
- 1 whole lemon, thinly sliced
|
||||||
|
- 1 pinch chilli flakes
|
||||||
|
- 1 bunch(es) basil leaves, torn
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
Parent:: [[@@Recipes|Recipes]]
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
 
|
||||||
|
|
||||||
|
```button
|
||||||
|
name Edit Recipe parameters
|
||||||
|
type command
|
||||||
|
action MetaEdit: Run MetaEdit
|
||||||
|
id EditMetaData
|
||||||
|
```
|
||||||
|
^button-FarrowFennelLemonBasilEdit
|
||||||
|
|
||||||
|
|
||||||
|
```button
|
||||||
|
name Save
|
||||||
|
type command
|
||||||
|
action Save current file
|
||||||
|
id Save
|
||||||
|
```
|
||||||
|
^button-FarrowFennelLemonBasilNSave
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
 
|
||||||
|
|
||||||
|
# Farro w Fennel, Lemon, Basil
|
||||||
|
|
||||||
|
 
|
||||||
|
|
||||||
|
```toc
|
||||||
|
style: number
|
||||||
|
```
|
||||||
|
|
||||||
|
 
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
 
|
||||||
|
|
||||||
|
### Practical Informations
|
||||||
|
|
||||||
|
| |
|
||||||
|
|-|-
|
||||||
|
**Courses**: | `$=dv.current().Recipe.Courses`
|
||||||
|
**Categories**: | `$=dv.current().Recipe.Categories`
|
||||||
|
**Collections**: | `$=dv.current().Recipe.Collections`
|
||||||
|
**Serving size**: | `$=dv.current().ServingSize`
|
||||||
|
**Cooking time**: | `$=dv.current().Recipe.CookingTime` min
|
||||||
|
|
||||||
|
 
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
 
|
||||||
|
|
||||||
|
### Ingredients
|
||||||
|
|
||||||
|
 
|
||||||
|
|
||||||
|
```dataviewjs
|
||||||
|
dv.view("00.01 Admin/dv-views/query_ingredient", {ingredients: dv.current().Ingredients, originalportioncount: dv.current().Recipe.OServingSize})
|
||||||
|
```
|
||||||
|
|
||||||
|
 
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
 
|
||||||
|
|
||||||
|
### Instructions
|
||||||
|
|
||||||
|
 
|
||||||
|
|
||||||
|
1. Cook the grains according to the packet instructions. Drain and set aside.
|
||||||
|
|
||||||
|
 
|
||||||
|
|
||||||
|
2. Heat the olive oil in a large skillet over medium heat. Add the garlic and fennel seeds and cook, stirring occasionally, until the garlic is just starting to brown, 3-4 minutes.
|
||||||
|
|
||||||
|
 
|
||||||
|
|
||||||
|
3. Add the sliced fennel and half the lemon slices and season eith salt and pepper. Cook, stirring occasionally, until the fennel is totally tender and starting to caramelise, 8-10 minutes.
|
||||||
|
|
||||||
|
 
|
||||||
|
|
||||||
|
4. Add the grains and season with salt, pepper and chilli flakes, if using. Toss to coat, then cook for a few minutes, letting the grain absorb some of that garlicky, fennel-y olive oil. Add the remaining lemon slices and remove from the heat.
|
||||||
|
|
||||||
|
 
|
||||||
|
|
||||||
|
5. Transfer to the serving platter or bowl and top with the basil and fennel fronds.
|
||||||
|
|
||||||
|
 
|
||||||
|
 
|
Loading…
Reference in new issue