Skip to content

Commit dd684b9

Browse files
authored
Merge pull request #241 from w3bdesign/development
Development
2 parents 653dfd6 + ad3fdca commit dd684b9

File tree

10 files changed

+1335
-3323
lines changed

10 files changed

+1335
-3323
lines changed

package-lock.json

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

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nextjs-woocommerce",
3-
"version": "0.9.92",
3+
"version": "0.9.94",
44
"description": "Nextjs WooCommerce webshop",
55
"main": "index.js",
66
"scripts": {
@@ -12,23 +12,23 @@
1212
"author": "",
1313
"license": "ISC",
1414
"dependencies": {
15-
"@apollo/client": "^3.0.2",
16-
"@types/react": "^16.9.43",
17-
"algoliasearch": "^4.3.1",
15+
"@apollo/client": "^3.1.5",
16+
"@types/react": "^16.9.49",
17+
"algoliasearch": "^4.5.1",
1818
"graphql": "^15.3.0",
19-
"next": "^9.4.4",
19+
"next": "^9.5.3",
2020
"nprogress": "^0.2.0",
2121
"react": "^16.13.1",
2222
"react-dom": "^16.13.1",
23-
"react-hook-form": "^6.0.8",
23+
"react-hook-form": "^6.8.2",
2424
"react-instantsearch-dom": "^6.7.0",
2525
"react-spring": "^8.0.27",
26-
"styled-components": "^5.1.1",
27-
"uuid": "^8.2.0"
26+
"styled-components": "^5.2.0",
27+
"uuid": "^8.3.0"
2828
},
2929
"devDependencies": {
30-
"babel-plugin-styled-components": "^1.10.7",
30+
"babel-plugin-styled-components": "^1.11.1",
3131
"postcss-preset-env": "^6.7.0",
32-
"tailwindcss": "^1.5.2"
32+
"tailwindcss": "^1.8.10"
3333
}
3434
}

pages/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ export async function getStaticProps() {
3636
loading: loading,
3737
networkStatus: networkStatus,
3838
},
39-
unstable_revalidate: 10,
39+
revalidate: 10,
4040
};
4141
}

pages/kategori/[slug].js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ const Produkt = ({ categoryName, products }) => {
2020
{products ? (
2121
<>
2222
<PageTitle title={categoryName} marginleft="50" />
23-
2423
<IndexProducts products={products} />
2524
</>
2625
) : (

pages/kategorier.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ export async function getStaticProps() {
4949
props: {
5050
categories: result.data.productCategories.nodes,
5151
},
52-
unstable_revalidate: 10,
52+
revalidate: 10,
5353
};
5454
}

pages/produkt/[slug].js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default withRouter(Produkt);
3636
export async function getServerSideProps({ query: { productId } }) {
3737
const res = await client.query({
3838
query: GET_SINGLE_PRODUCT,
39-
variables: { productId },
39+
variables: { id: productId },
4040
});
4141

4242
return {

pages/produkter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,6 @@ export async function getStaticProps() {
5252
props: {
5353
products: result.data.products.nodes,
5454
},
55-
unstable_revalidate: 10,
55+
revalidate: 10,
5656
};
5757
}

screenshots/screenshot1.jpg

-37.9 KB
Loading

tailwind.config.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
module.exports = {
2-
purge: ["./components/**/*.jsx", "./pages/**/*.js"],
2+
purge: ['./components/**/*.jsx', './pages/**/*.js'],
33
theme: {
44
extend: {},
55
},
66
variants: {},
77
plugins: [],
8-
};
8+
future: {
9+
removeDeprecatedGapUtilities: true,
10+
purgeLayersByDefault: true,
11+
},
12+
};

utils/config/nextConfig.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,14 @@
22

33
// Live details
44

5-
65
export const WOO_CONFIG = {
76
GRAPHQL_URL: 'https://woo.dfweb.no/graphql',
87
ALGOLIA_APP_ID: '7L9M5Y0B1K',
98
ALGOLIA_PUBLIC_API_KEY: '925cc92373120f1bf477bb8ce0e71649',
109
ALGOLIA_INDEX_NAME: 'dfweb',
11-
PLACEHOLDER_IMAGE_URL: "https://via.placeholder.com/272",
10+
PLACEHOLDER_IMAGE_URL: 'https://via.placeholder.com/272',
1211
};
1312

14-
1513
// Development details
1614

1715
/*

0 commit comments

Comments
 (0)