Skip to content

Commit

Permalink
Merge pull request #241 from w3bdesign/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
w3bdesign authored Sep 14, 2020
2 parents 653dfd6 + ad3fdca commit dd684b9
Show file tree
Hide file tree
Showing 10 changed files with 1,335 additions and 3,323 deletions.
4,617 changes: 1,314 additions & 3,303 deletions package-lock.json

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nextjs-woocommerce",
"version": "0.9.92",
"version": "0.9.94",
"description": "Nextjs WooCommerce webshop",
"main": "index.js",
"scripts": {
Expand All @@ -12,23 +12,23 @@
"author": "",
"license": "ISC",
"dependencies": {
"@apollo/client": "^3.0.2",
"@types/react": "^16.9.43",
"algoliasearch": "^4.3.1",
"@apollo/client": "^3.1.5",
"@types/react": "^16.9.49",
"algoliasearch": "^4.5.1",
"graphql": "^15.3.0",
"next": "^9.4.4",
"next": "^9.5.3",
"nprogress": "^0.2.0",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-hook-form": "^6.0.8",
"react-hook-form": "^6.8.2",
"react-instantsearch-dom": "^6.7.0",
"react-spring": "^8.0.27",
"styled-components": "^5.1.1",
"uuid": "^8.2.0"
"styled-components": "^5.2.0",
"uuid": "^8.3.0"
},
"devDependencies": {
"babel-plugin-styled-components": "^1.10.7",
"babel-plugin-styled-components": "^1.11.1",
"postcss-preset-env": "^6.7.0",
"tailwindcss": "^1.5.2"
"tailwindcss": "^1.8.10"
}
}
2 changes: 1 addition & 1 deletion pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ export async function getStaticProps() {
loading: loading,
networkStatus: networkStatus,
},
unstable_revalidate: 10,
revalidate: 10,
};
}
1 change: 0 additions & 1 deletion pages/kategori/[slug].js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ const Produkt = ({ categoryName, products }) => {
{products ? (
<>
<PageTitle title={categoryName} marginleft="50" />

<IndexProducts products={products} />
</>
) : (
Expand Down
2 changes: 1 addition & 1 deletion pages/kategorier.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ export async function getStaticProps() {
props: {
categories: result.data.productCategories.nodes,
},
unstable_revalidate: 10,
revalidate: 10,
};
}
2 changes: 1 addition & 1 deletion pages/produkt/[slug].js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default withRouter(Produkt);
export async function getServerSideProps({ query: { productId } }) {
const res = await client.query({
query: GET_SINGLE_PRODUCT,
variables: { productId },
variables: { id: productId },
});

return {
Expand Down
2 changes: 1 addition & 1 deletion pages/produkter.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ export async function getStaticProps() {
props: {
products: result.data.products.nodes,
},
unstable_revalidate: 10,
revalidate: 10,
};
}
Binary file modified screenshots/screenshot1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 6 additions & 2 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
module.exports = {
purge: ["./components/**/*.jsx", "./pages/**/*.js"],
purge: ['./components/**/*.jsx', './pages/**/*.js'],
theme: {
extend: {},
},
variants: {},
plugins: [],
};
future: {
removeDeprecatedGapUtilities: true,
purgeLayersByDefault: true,
},
};
4 changes: 1 addition & 3 deletions utils/config/nextConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@

// Live details


export const WOO_CONFIG = {
GRAPHQL_URL: 'https://woo.dfweb.no/graphql',
ALGOLIA_APP_ID: '7L9M5Y0B1K',
ALGOLIA_PUBLIC_API_KEY: '925cc92373120f1bf477bb8ce0e71649',
ALGOLIA_INDEX_NAME: 'dfweb',
PLACEHOLDER_IMAGE_URL: "https://via.placeholder.com/272",
PLACEHOLDER_IMAGE_URL: 'https://via.placeholder.com/272',
};


// Development details

/*
Expand Down

1 comment on commit dd684b9

@vercel
Copy link

@vercel vercel bot commented on dd684b9 Sep 14, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.