Skip to content

Commit c60dc16

Browse files
authored
Merge pull request #20 from imranhsayed/feature/add-pagination
Feature/add pagination
2 parents f46eb40 + f533c7a commit c60dc16

23 files changed

Lines changed: 5701 additions & 376 deletions

File tree

backend/wordpress/composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"pristas-peter/wp-graphql-gutenberg": "0.3.4",
1515
"pristas-peter/wp-graphql-gutenberg-acf": "0.3.0",
1616
"yoast/wordpress-seo": "^14.8",
17-
"ashhitch/wp-graphql-yoast-seo": "^4.5"
17+
"ashhitch/wp-graphql-yoast-seo": "^4.5",
18+
"valu/wp-graphql-offset-pagination": "^0.2"
1819
}
1920
}

backend/wordpress/composer.lock

Lines changed: 74 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/.env-example

Lines changed: 0 additions & 1 deletion
This file was deleted.

frontend/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# DB
2+
db
13

24
# Logs
35
logs

frontend/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ npm run cypress:open
2525
* Cypress docs
2626
1. [API](https://docs.cypress.io/api/api/table-of-contents.html)
2727

28-
## Debugging with Node.js debugger tool.
28+
## Debugging with Node.js debugger tool.
2929
Notice that we have added this in `package.json`
3030
```shell script
3131
"dev": "NODE_OPTIONS='--inspect' next",
@@ -56,4 +56,4 @@ If you want to break down the blocks and render the content using individual Rea
5656
}
5757
}
5858
}
59-
```
59+
```

frontend/next.config.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
const path = require('path')
1+
const path = require("path");
22
module.exports = {
3-
trailingSlash: true,
4-
webpackDevMiddleware: config => {
5-
config.watchOptions = {
6-
poll: 1000,
7-
aggregateTimeout: 300
8-
}
3+
trailingSlash: false,
4+
webpackDevMiddleware: (config) => {
5+
config.watchOptions = {
6+
poll: 1000,
7+
aggregateTimeout: 300,
8+
};
99

10-
return config
11-
},
12-
sassOptions: {
13-
includePaths: [path.join(__dirname, 'styles')]
14-
}
15-
}
10+
return config;
11+
},
12+
sassOptions: {
13+
includePaths: [path.join(__dirname, "styles")],
14+
},
15+
};

0 commit comments

Comments
 (0)