Skip to content

A bit more info guys #58

@ludo1960

Description

@ludo1960

Having finally got vue_nuxt to run following the advice here #57 I changed the following:

In the nuxt.config.js:

// change this to your own server.
const serverBaseUrl = 'http://localhost:3000';
const serverFilesUrl = 'http://contenta.com'; // where I installed the CMS :3000 didn't work??

Also in components/RecipeDetail.vue I changed

<div class="content method"> <h3 class="title has-text-centered"> Methods </h3> <div v-html="recipe.instructions.value" /> </div> to: <div class="content method"> <h3 class="title has-text-centered"> Instructions </h3> <div v-html="recipe.instructions" /> </div>
And the recipe details page works nicely now. The link on the home page :
Quick and easy 20 minutes or less doesn't work:
` case 'quick':
recipes = await findAllRecipesByMaxTotalTime(20, limit, offset);
break;

And the function it calls is:
`export function findAllRecipesByMaxTotalTime(
maxTotalTime,
limit = 4,
offset = 0
) {
const query = {
sort: '-created',
include: 'image,image.thumbnail',
filter: {
totalTime: {
condition: {
path: 'totalTime',
value: maxTotalTime,
operator: '<',
},
},
},
fields: {
recipes: 'title,difficulty,image',
images: 'name,thumbnail',
files: 'filename,uri',
},
page: {
offset: 0,
limit: limit,
},
};

Anybody see any errors in that?`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions