chore: trim whitespace/newlines
This commit is contained in:
parent
c0738cb902
commit
bc7f09494c
@ -1,4 +1,4 @@
|
|||||||
# ethermap
|
# ethermap
|
||||||
|
|
||||||
> This is very much a janky _earlydays_ project. All help is welcome!
|
> This is very much a janky _earlydays_ project. All help is welcome!
|
||||||
|
|
||||||
@ -9,18 +9,18 @@ An interactive map tool. A tool for collaborative planning on maps. Anyone can c
|
|||||||
Ethermap is built in JavaScript (soz) using NodeJS. To install you can do so by running the following commands.
|
Ethermap is built in JavaScript (soz) using NodeJS. To install you can do so by running the following commands.
|
||||||
|
|
||||||
To install all dependencies for the front and backend :
|
To install all dependencies for the front and backend :
|
||||||
```sh
|
```sh
|
||||||
$ npm install
|
$ npm install
|
||||||
```
|
```
|
||||||
You will then need to create a `.env` file in the root folder. There is a `.env.template` that you can copy as a guide. For a dev server you can simply copy and paste the template leaving it as is.
|
You will then need to create a `.env` file in the root folder. There is a `.env.template` that you can copy as a guide. For a dev server you can simply copy and paste the template leaving it as is.
|
||||||
|
|
||||||
Then migrate the database structure :
|
Then migrate the database structure :
|
||||||
```sh
|
```sh
|
||||||
$ npm run migrate:latest
|
$ npm run migrate:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
Then you should be able to run the dev server :
|
Then you should be able to run the dev server :
|
||||||
```sh
|
```sh
|
||||||
$ npm run dev
|
$ npm run dev
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -2,5 +2,3 @@
|
|||||||
export default (err, _, res) => {
|
export default (err, _, res) => {
|
||||||
res.status(500).json({ message: err.message })
|
res.status(500).json({ message: err.message })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -89,4 +89,3 @@ test.serial('post "/api/point/add" with incorrect data keys throws 500 error', a
|
|||||||
test.after(async () => {
|
test.after(async () => {
|
||||||
await db.migrate.down()
|
await db.migrate.down()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ class MapView extends LitElement {
|
|||||||
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
|
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
|
||||||
}).addTo(this.leaflet)
|
}).addTo(this.leaflet)
|
||||||
|
|
||||||
|
|
||||||
// track mouse movement
|
// track mouse movement
|
||||||
this.leaflet.on('mousemove', (evt) => {
|
this.leaflet.on('mousemove', (evt) => {
|
||||||
this.socket.emit('mousemove', evt.latlng)
|
this.socket.emit('mousemove', evt.latlng)
|
||||||
|
@ -67,6 +67,6 @@ class NewMapModal extends LitElement {
|
|||||||
}
|
}
|
||||||
`
|
`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
window.customElements.define('newmap-modal', NewMapModal)
|
window.customElements.define('newmap-modal', NewMapModal)
|
||||||
|
@ -13,7 +13,7 @@ if (!globalThis.URLPattern) {
|
|||||||
export default new Router({
|
export default new Router({
|
||||||
fallback: '/404',
|
fallback: '/404',
|
||||||
routes: [
|
routes: [
|
||||||
{
|
{
|
||||||
path: '/',
|
path: '/',
|
||||||
title: 'ethermap | index',
|
title: 'ethermap | index',
|
||||||
render: () => html`
|
render: () => html`
|
||||||
@ -33,4 +33,3 @@ export default new Router({
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user