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:54:05 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d53185ce75f29fab9b4c663436b41cb244fe45a7
d53185ce
1 parent
04813a05
Revert "api key conceal 2"
This reverts commit
04813a05
.
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
2 additions
and
13 deletions
.env
package-lock.json
package.json
views/partials/gmap.ejs
views/partials/showgmap.ejs
.env
deleted
100644 → 0
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 @
d53185c
This diff is collapsed. Click to expand it.
package.json
View file @
d53185c
...
...
@@ -13,7 +13,6 @@
"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 @
d53185c
<!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"
>
...
...
@@ -139,7 +135,7 @@
<!-- Async script executes immediately and must be after any DOM elements used in callback. -->
<script
src=
process.env.Map_Key;
src=
"https://maps.googleapis.com/maps/api/js?key=AIzaSyDK6K4iDdo9cKQdrNoOJaaYg29nEG0BIjw&callback=initMap&libraries=&v=weekly"
async
></script>
</body>
...
...
views/partials/showgmap.ejs
View file @
d53185c
<!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>
...
...
@@ -147,7 +142,7 @@
<!-- Async script executes immediately and must be after any DOM elements used in callback. -->
<script
src=
API_KEY
src=
"https://maps.googleapis.com/maps/api/js?key=AIzaSyDK6K4iDdo9cKQdrNoOJaaYg29nEG0BIjw&callback=initMap&libraries=&v=weekly"
async
></script>
...
...
Please
register
or
login
to post a comment