Toggle navigation
Toggle navigation
This project
Loading...
Sign in
임태민
/
Mapmory
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
홍지윤
2021-06-04 20:53:56 +0900
1
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
04813a05336a306e3b3b3f2525429017139e0451
04813a05
1 parent
edd39c9a
api key conceal 2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
2 deletions
.env
package-lock.json
package.json
views/partials/gmap.ejs
views/partials/showgmap.ejs
.env
0 → 100644
View file @
04813a0
Map_Key = "https://maps.googleapis.com/maps/api/js?key=AIzaSyDK6K4iDdo9cKQdrNoOJaaYg29nEG0BIjw&callback=initMap&libraries=&v=weekly"
\ No newline at end of file
package-lock.json
View file @
04813a0
This diff is collapsed. Click to expand it.
package.json
View file @
04813a0
...
...
@@ -13,6 +13,7 @@
"bcryptjs"
:
"^2.4.3"
,
"body-parser"
:
"^1.19.0"
,
"connect-flash"
:
"^0.1.1"
,
"dotenv"
:
"^10.0.0"
,
"ejs"
:
"^3.1.6"
,
"express"
:
"^4.17.1"
,
"express-session"
:
"^1.17.1"
,
...
...
views/partials/gmap.ejs
View file @
04813a0
<!DOCTYPE html>
<html>
<head>
<script>
import
dotenv
from
"dotenv"
;
dotenv
.
config
();
</script>
<title>
Geocoding Service
</title>
<script
src=
"https://polyfill.io/v3/polyfill.min.js?features=default"
></script>
<style
type=
"text/css"
>
...
...
@@ -135,7 +139,7 @@
<!-- Async script executes immediately and must be after any DOM elements used in callback. -->
<script
src=
"https://maps.googleapis.com/maps/api/js?key=AIzaSyDK6K4iDdo9cKQdrNoOJaaYg29nEG0BIjw&callback=initMap&libraries=&v=weekly"
src=
process.env.Map_Key;
async
></script>
</body>
...
...
views/partials/showgmap.ejs
View file @
04813a0
<!DOCTYPE html>
<html>
<head>
<script>
import
dotenv
from
"dotenv"
;
dotenv
.
config
();
API_KEY
=
process
.
env
.
Map_Key
</script>
<script
src=
"https://code.jquery.com/jquery-3.2.1.slim.min.js"
integrity=
"sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
crossorigin=
"anonymous"
></script>
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"
integrity=
"sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q"
crossorigin=
"anonymous"
></script>
<script
src=
"https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"
integrity=
"sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
crossorigin=
"anonymous"
></script>
...
...
@@ -142,7 +147,7 @@
<!-- Async script executes immediately and must be after any DOM elements used in callback. -->
<script
src=
"https://maps.googleapis.com/maps/api/js?key=AIzaSyDK6K4iDdo9cKQdrNoOJaaYg29nEG0BIjw&callback=initMap&libraries=&v=weekly"
src=
API_KEY
async
></script>
...
...
홍지윤
@2017101322
2021-06-04 11:54:14 UTC
Mentioned in commit
d53185ce
Please
register
or
login
to post a comment