Skip to content

Commit

Permalink
Merge pull request #2 from shocknet/server-integration
Browse files Browse the repository at this point in the history
p1
  • Loading branch information
boufni95 authored Nov 21, 2022
2 parents d3edfce + 1c197cb commit eb2fc24
Show file tree
Hide file tree
Showing 15 changed files with 9,544 additions and 8,355 deletions.
22 changes: 22 additions & 0 deletions config-overrides.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
const webpack = require('webpack');
module.exports = function override(config) {
const fallback = config.resolve.fallback || {};
Object.assign(fallback, {
"crypto": require.resolve("crypto-browserify"),
"stream": require.resolve("stream-browserify"),
"assert": require.resolve("assert"),
"http": require.resolve("stream-http"),
"https": require.resolve("https-browserify"),
"os": require.resolve("os-browserify"),
"url": require.resolve("url"),
"process/browser": require.resolve("process/browser")
})
config.resolve.fallback = fallback;
config.plugins = (config.plugins || []).concat([
new webpack.ProvidePlugin({
process: 'process/browser',
Buffer: ['buffer', 'Buffer']
})
])
return config;
}
16,381 changes: 8,129 additions & 8,252 deletions package-lock.json

Large diffs are not rendered by default.

22 changes: 18 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
"@types/react": "^17.0.39",
"@types/react-copy-to-clipboard": "^5.0.4",
"@types/react-dom": "^17.0.11",
"axios": "^1.1.3",
"nostr-tools": "^0.24.1",
"@types/styled-components": "^5.1.26",
"react": "^17.0.2",
"react-copy-to-clipboard": "^5.1.0",
Expand All @@ -24,9 +26,9 @@
"web-vitals": "^2.1.4"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"start": "react-app-rewired start",
"build": "react-app-rewired build",
"test": "react-app-rewired test",
"eject": "react-scripts eject"
},
"eslintConfig": {
Expand All @@ -46,5 +48,17 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"assert": "^2.0.0",
"buffer": "^6.0.3",
"crypto-browserify": "^3.12.0",
"https-browserify": "^1.0.0",
"os-browserify": "^0.3.0",
"process": "^0.11.10",
"react-app-rewired": "^2.2.1",
"stream-browserify": "^3.0.0",
"stream-http": "^3.2.0",
"url": "^0.11.0"
}
}
}
66 changes: 30 additions & 36 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -1,37 +1,29 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />

<meta
name="description"
content="Emulating an e-commerce shop with React.js, TypeScript and Fakestore API"
/>
<meta
name="keywords"
content="e-commerce, fakestore api, react.js, typescript, UI"
/>
<meta property="og:title" content="Lonic Mobile" />
<meta
property="og:description"
content="Emulating an e-commerce shop with React.js, TypeScript and Fakestore API."
/>
<meta property="og:image" content="https://cdn-images-1.medium.com/max/800/1*e3itUM_o1V0nuuLt73MJ0A.jpeg" />
<meta name="twitter:card" content="summary_large_image" />


<!--

<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />

<meta name="description" content="Emulating an e-commerce shop with React.js, TypeScript and Fakestore API" />
<meta name="keywords" content="e-commerce, fakestore api, react.js, typescript, UI" />
<meta property="og:title" content="Lonic Mobile" />
<meta property="og:description" content="Emulating an e-commerce shop with React.js, TypeScript and Fakestore API." />
<meta property="og:image" content="https://cdn-images-1.medium.com/max/800/1*e3itUM_o1V0nuuLt73MJ0A.jpeg" />
<meta name="twitter:card" content="summary_large_image" />


<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />

<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet">
<!--
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet">
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Expand All @@ -40,12 +32,13 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>Lonic Mobile</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
<title>Lonic Mobile</title>
</head>

<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
Expand All @@ -55,5 +48,6 @@
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</html>
</body>

</html>
Loading

0 comments on commit eb2fc24

Please sign in to comment.