Skip to content

Commit

Permalink
Merge pull request #85 from Jhonatan2022/soporte
Browse files Browse the repository at this point in the history
Firebase Connet
  • Loading branch information
Jhonatan2022 committed Sep 12, 2023
2 parents 0dccb14 + e5bce6a commit 3c81b54
Show file tree
Hide file tree
Showing 12 changed files with 90 additions and 8 deletions.
5 changes: 5 additions & 0 deletions Frontend/ReactJS/store-conf/.firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "merch-fe8f0"
}
}
9 changes: 6 additions & 3 deletions Frontend/ReactJS/store-conf/build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
{
"files": {
"main.js": "/static/js/main.584bb09d.js",
"main.css": "/static/css/main.0bf23caf.css",
"main.js": "/static/js/main.6ddb1655.js",
"index.html": "/index.html",
"main.584bb09d.js.map": "/static/js/main.584bb09d.js.map"
"main.0bf23caf.css.map": "/static/css/main.0bf23caf.css.map",
"main.6ddb1655.js.map": "/static/js/main.6ddb1655.js.map"
},
"entrypoints": [
"static/js/main.584bb09d.js"
"static/css/main.0bf23caf.css",
"static/js/main.6ddb1655.js"
]
}
2 changes: 1 addition & 1 deletion Frontend/ReactJS/store-conf/build/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="https://s3-alpha.figma.com/hub/file/1913095808/a7bdc469-cd70-4ea1-bb57-b59204ad8182-cover.png"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><title>React App</title><script defer="defer" src="/static/js/main.584bb09d.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="https://s3-alpha.figma.com/hub/file/1913095808/a7bdc469-cd70-4ea1-bb57-b59204ad8182-cover.png"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><title>React App</title><script src="https://kit.fontawesome.com/f21459c29e.js" crossorigin="anonymous"></script><link rel="stylesheet" href="https://unpkg.com/leaflet@1.6.0/dist/leaflet.css" integrity="sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ==" crossorigin=""/><script defer="defer" src="/static/js/main.6ddb1655.js"></script><link href="/static/css/main.0bf23caf.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions Frontend/ReactJS/store-conf/build/static/js/main.584bb09d.js

This file was deleted.

This file was deleted.

3 changes: 3 additions & 0 deletions Frontend/ReactJS/store-conf/build/static/js/main.6ddb1655.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/* @preserve
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
*/

/**
* @license React
* react-dom.production.min.js
Expand Down Expand Up @@ -37,3 +42,36 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @remix-run/router v1.8.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/

/**
* React Router DOM v6.15.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/

/**
* React Router v6.15.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions Frontend/ReactJS/store-conf/firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"hosting": {
"public": "build",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}
17 changes: 17 additions & 0 deletions Frontend/ReactJS/store-conf/src/Hooks/useGoogleAdreess.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { useState, useEffect } from "react";
import axios from "axios";

const KEY = "AIzaSyA-d2AGRbY5y2hAw82a8tYSzkgazCU9Orw";

const useGoogleAddress = (address) => {
const [map, setMap] = useState({});
const API = `https://maps.googleapis.com/maps/api/geocode/json?address=${address}&key=${KEY}`;

useEffect(async () => {
const response = await axios(API);
setMap(response.data.results[0].geometry.location);
}, []);
return map;
};

export { useGoogleAddress };

0 comments on commit 3c81b54

Please sign in to comment.