mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
add nodejs v18 compatibility
This commit is contained in:
parent
550e221f4a
commit
ca94c730a6
3 changed files with 40 additions and 7 deletions
10
CHANGELOG
10
CHANGELOG
|
@ -1,8 +1,12 @@
|
||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
###
|
### UNRELEASED
|
||||||
|
- models initialization refactored, better dev experience as backend hmr is working
|
||||||
- models initialization refactored, better dev xperience as backend hmr is working
|
- add swipe gesture to move to next/prev event
|
||||||
|
- fix refresh collections, fix #219
|
||||||
|
- add russian translation (thanks @drunkod)
|
||||||
|
- refactor search / filter / selection fix #225, 227, #224
|
||||||
|
- add nodejs v18 compatibility
|
||||||
|
|
||||||
### 1.6.1 - 15 dec '22
|
### 1.6.1 - 15 dec '22
|
||||||
- allow edit tags in admin panel, fix #170
|
- allow edit tags in admin panel, fix #170
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
"description": "A shared agenda for local communities",
|
"description": "A shared agenda for local communities",
|
||||||
"author": "lesion",
|
"author": "lesion",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "nuxt build --modern",
|
"build": "export NODE_OPTIONS=--openssl-legacy-provider; nuxt build --modern",
|
||||||
"start:inspect": "NODE_ENV=production node --inspect node_modules/.bin/nuxt start --modern",
|
"start:inspect": "NODE_ENV=production node --inspect node_modules/.bin/nuxt start --modern",
|
||||||
"dev": "nuxt dev",
|
"dev": "export NODE_OPTIONS=--openssl-legacy-provider; nuxt dev",
|
||||||
"test-sqlite": "export NODE_ENV=test; export DB=sqlite; jest --testEnvironment=jest-environment-node --bail=1",
|
"test-sqlite": "export NODE_ENV=test; export DB=sqlite; jest --testEnvironment=jest-environment-node --bail=1",
|
||||||
"test-mariadb": "export NODE_ENV=test; export DB=mariadb; jest --testEnvironment=jest-environment-node --bail=1",
|
"test-mariadb": "export NODE_ENV=test; export DB=mariadb; jest --testEnvironment=jest-environment-node --bail=1",
|
||||||
"test-postgresql": "export NODE_ENV=test; export DB=postgresql; jest --testEnvironment=jest-environment-node --bail=1",
|
"test-postgresql": "export NODE_ENV=test; export DB=postgresql; jest --testEnvironment=jest-environment-node --bail=1",
|
||||||
|
@ -27,10 +27,11 @@
|
||||||
"locales/",
|
"locales/",
|
||||||
"store/",
|
"store/",
|
||||||
".nuxt/",
|
".nuxt/",
|
||||||
|
"gancio_plugins",
|
||||||
"yarn.lock"
|
"yarn.lock"
|
||||||
],
|
],
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=14 <=16"
|
"node": ">=14 <=18"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@mdi/js": "^7.1.96",
|
"@mdi/js": "^7.1.96",
|
||||||
|
|
|
@ -415,5 +415,33 @@ describe('Collection', () => {
|
||||||
expect(response.body.length).toBe(1)
|
expect(response.body.length).toBe(1)
|
||||||
|
|
||||||
})
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
describe('Geocoding', () => {
|
||||||
|
test('should not be enabled by default', async () => {
|
||||||
|
await request(app)
|
||||||
|
.post('/api/settings')
|
||||||
|
.send({ key: 'allow_geolocation', value: false })
|
||||||
|
.auth(token.access_token, { type: 'bearer' })
|
||||||
|
.expect(200)
|
||||||
|
|
||||||
|
const response = await request(app).get('/api/placeOSM/Nominatim/test')
|
||||||
|
.expect(403)
|
||||||
|
|
||||||
|
expect(response.body).toBeDefined()
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
test('should geocode when enabled', async () => {
|
||||||
|
await request(app)
|
||||||
|
.post('/api/settings')
|
||||||
|
.send({ key: 'allow_geolocation', value: true })
|
||||||
|
.auth(token.access_token, { type: 'bearer' })
|
||||||
|
.expect(200)
|
||||||
|
|
||||||
|
const response = await request(app).get('/api/placeOSM/Nominatim/test')
|
||||||
|
.expect(200)
|
||||||
|
|
||||||
|
expect(response.body).toBeDefined()
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
Loading…
Reference in a new issue