Граф коммитов

55 Коммитов

Автор SHA1 Сообщение Дата
Joseph Wynn d9889cac09 Update source code to work with express-validator 6.*. Fixes #231
Thanks to @wildlyinaccurate!
2019-11-01 20:24:41 +01:00
CarlosK 1098943419 Update packages, add tests, add type casts (#229)
- upgrade to latest packages
- cast `req.user` as `UserDocument`
- update logger to use latest Winston syntax
- disable `no-inferrable-types`, Mongoose use unified topology

Thx to @CarlosSolrac
2019-09-29 12:31:07 +02:00
Peter Blazejewicz b36a4c0fff Use update indexes access in Mongoose configuration. Fixes #225
See: https://mongoosejs.com/docs/deprecations.html#ensureindex

Thanks!
2019-09-03 21:06:53 +02:00
Mathias Rasmussen 3e2f6c0c51 Fix lint warnings 2019-07-31 12:34:57 +02:00
Peter Blazejewicz 3414ceca45 Migrate TSLint to ESLint. Closes #209
This commit rewrites linting support in the project to be based solely
on the ESLint as advised by the TSLint tool authors:
https://medium.com/palantir/tslint-in-2019-1a144c2317a9

The migration is based on default, recommended settings for TypeScript
in ESLint and is expected to be updated in future to better fit project
goals.

All references has been updated and replaced with relevant ESLint
context:

- dependencies migration from TSLint to ESLint
- VSCode configuration changes to support ESLint exension
- VSCode extensions recommendation changes
- `.eslintrc` and `.eslintignore` configuration files added
- all error level problems in the source files are covered by this
  migration

Thanks!
2019-07-15 23:14:51 +02:00
Peter Blazejewicz 4b0df406a4 Simplify augmented module for express-flash
There is existing @types definition for express-flash. Let's use it and
just augment a method required by the existing code to please compiler.

Thanks!
2019-07-05 23:29:10 +02:00
Bowden Kelly ccedf0558f remove unneccesary env load 2019-06-26 16:47:15 -07:00
Peter Blazejewicz 01454454c7 Change Winston logger creation 2019-06-22 22:24:50 +02:00
Peter Blazejewicz 5a11f7e381 Fix TS compiler error 2019-06-22 22:24:50 +02:00
Peter Blazejewicz 284a8ddddf Update Mongoose initialization 2019-06-22 22:24:50 +02:00
Peter Blazejewicz b69a12c969 Update express-validator usage to new version 2019-06-22 22:24:50 +02:00
Orta fb64f483c5 Merge pull request #127 from amodolo/bootstrap4
Upgrade to Bootstrap 4
2019-06-19 16:17:37 -07:00
Orta a548d8876a Merge branch 'master' into master 2019-06-19 14:55:39 -07:00
Orta dfa9150489 Merge pull request #135 from KonradLinkowski/patch-1
Change size existence check to default value
2019-06-19 14:45:15 -07:00
Orta c1526a9d9d Merge pull request #138 from KonradLinkowski/master
Changed function expressions declarations from let to const
2019-06-19 14:44:27 -07:00
Orta ecdf110a90 Merge branch 'master' into refactor-remove-unused-imports 2019-06-19 14:26:30 -07:00
Orta 039edc96d4 Merge pull request #182 from Jareechang/f-update-local-mongo-env-logging
Add better logging when setting custom env var using .env
2019-06-19 14:24:14 -07:00
Bowden Kelly 610a8f6365 fix conflicts 2019-05-10 12:37:34 -07:00
Bowden Kelly 89f3e04868 update mongoose to v5 2019-03-25 14:56:30 -07:00
Jerry Chang 693955995b Add better logging when setting custom env var using .env 2019-03-16 14:29:34 -07:00
Duong Tran b605e0d3e3 refactor: remove unused imports 2018-12-03 17:45:01 +11:00
SangHee Kim 3dbae08075 stick to ES6 import instead of CommonJS require 2018-11-21 13:32:09 +02:00
Konrad Linkowski 825e497603 Changed function expressions declarations from let to const
Every variable that wouldn't change should be declared as const for safety reasons.
2018-09-24 22:28:19 +02:00
Konrad Linkowski ca643b25b2 Change size existence check to default value
Using default value for size param in gravatar method is more convenient.
2018-08-20 13:11:43 +02:00
amodolo c6622bff46 porting bootstrap 4 2018-07-19 11:10:54 +02:00
amodolo 6afbd99bf6 - packages updated
- porting to bootstrap 4
2018-07-19 08:30:52 +02:00
amodolo 08c2240169 - packages updated
- porting to bootstrap 4
2018-07-19 08:30:24 +02:00
torytran 361b5bd702 Fix Error: Unknown authentication strategy "local" 2018-05-30 15:15:40 +07:00
Bowden Kelly 070689f572 Merge pull request #100 from Meir017/patch-2
use same signature for model function & ts type
2018-04-04 13:47:13 -07:00
Bowden Kelly 4f5e141e46 Merge pull request #105 from peterblazejewicz/fix/98
Add missing BS3 glyphicon fonts. Fixes #98
2018-04-04 13:45:28 -07:00
Peter Blazejewicz 5ccede2d30 Add missing BS3 glyphicon fonts. Fixes #98
Thanks!
2018-03-27 23:04:44 +02:00
Peter Blazejewicz 074fa0b819 Update jQuery content version. Fixes #103
Thanks!
2018-03-27 22:57:32 +02:00
Meir017 4ec629b8da use same signature for model function & ts type
declare function signature only once
2018-03-22 21:21:31 +02:00
Bowden cf1a5bf748 fixed some imports 2018-03-12 09:43:29 -07:00
Bowden 1a72f0db6b replaced logging with Winston 2018-02-27 14:29:37 -08:00
Bowden 5e762331d8 found a better config setup I like 2018-02-27 13:41:01 -08:00
Peter Blazejewicz 1b71586efa Update source and dependency to work with TypeScript 2.7. Closes #81
The commit brings compatibility with new features introduced in TypeScript 2.7.
The one with most impact on this project is ES6/ECMAScript module compatibility layer
added in 2.7 enabled in tsconfig.json for this project.
This allowed to rewrite source files to use shorted, better imports everywhere and
also use default exports.

To make project more aligned with updated TypeScript all the NPM depenendencies has been
updated making sure that everything works as expected and tests pass.

Thanks for the project!

Thanks!
2018-02-20 22:02:53 +01:00
Bowden Kelly e161928d7b Merge pull request #74 from peterblazejewicz/update/bootstrap
Update Bootstrap from 3.3.6 to 3.3.7
2018-01-09 10:55:42 -08:00
Bowden Kelly e61d5c932f Merge pull request #73 from peterblazejewicz/types/passport-local
Replace passport-local definition file with @types/passport-local
2018-01-09 10:55:20 -08:00
Peter Blazejewicz 20493ac064 Update Bootstrap from 3.3.6 to 3.3.7
Mostly small SASS source files updates, but that counts

Thanks!
2018-01-05 22:47:13 +01:00
Peter Blazejewicz c1c23a0b99 Replace passport-local definition file with @types/passport-local
This commit:
- use @types/passport-local
- removes custom definition file
- updates implementation to use correct interface from @types/passport-local

Thanks!
2018-01-05 22:30:54 +01:00
Peter Blazejewicz fd523e3033 Replace Lusca definition file with @types/lusca
Thanks!
2018-01-04 22:29:22 +01:00
Bowden 61ae2ccd1b made some changes to mongo connection 2017-12-19 15:30:19 -08:00
Bowden 1f6f2b06aa fix up tests 2017-12-14 15:27:52 -08:00
Bowden e7e0bb7c7c fix conflicts 2017-12-14 12:41:28 -08:00
Daniel Temme 75d72df881 separate server binding to port from other app config
this seems a bit crude but allows running the tests and having them take
care of setting up the port to use
2017-12-14 11:34:15 -08:00
Alan Agius 4d2b9148cf feat(*): update several dependencies 2017-12-14 11:33:28 -08:00
Alan Agius feac6cccf7 feat(*): update several dependencies 2017-10-29 14:01:58 +01:00
Daniel Temme 4eb0962a7b separate server binding to port from other app config
this seems a bit crude but allows running the tests and having them take
care of setting up the port to use
2017-08-19 16:12:45 +02:00
Bowden Kelly 235ba1daa9 updated specific .d.ts files to point to definitely typed file. Also added recommended extensions using vs code's extensions.json 2017-07-25 11:28:51 -07:00