Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A bit more info guys #58

Open
ludo1960 opened this issue Aug 21, 2019 · 1 comment
Open

A bit more info guys #58

ludo1960 opened this issue Aug 21, 2019 · 1 comment

Comments

@ludo1960
Copy link

ludo1960 commented Aug 21, 2019

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?`

@penyaskito
Copy link
Contributor

Created #59

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants