Yannick Bungers
a191448b3d
Added Types revision.ts
...
Signed-off-by: Yannick Bungers <git@innay.de>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:09 +02:00
Yannick Bungers
6d256dd5b6
Added Types for csp.ts
...
Signed-off-by: Yannick Bungers <git@innay.de>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:09 +02:00
David Mehren
9b323ba996
config/index.ts: Use const where possible, use new config type definition
...
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:08 +02:00
David Mehren
1437cf3ea5
config/enum.ts: Refactor enums into interface and object
...
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:08 +02:00
David Mehren
37c2cd0731
config/: Cleanups in defaultSSL.ts and dockerSecret.ts
...
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:08 +02:00
David Mehren
ad0b0834e5
config/default.ts: Add missing attributes, cleanup superfluous attributes
...
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:08 +02:00
David Mehren
5ec041d22d
Add type definitions for config
...
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:08 +02:00
David Mehren
3389a86689
config/utils.ts: toBooleanConfig can return undefined
...
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:08 +02:00
David Mehren
943ddc4058
realtime.ts: Fix history import
...
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:08 +02:00
David Mehren
038db39c0e
Fix missing newlines in actions.ts
...
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:07 +02:00
David Mehren
df94e0a64f
Fix type in csp.ts
...
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:07 +02:00
David Mehren
d44144630f
Migrate historyRouter.js and baseRouter.js to TypeScript
...
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:07 +02:00
David Mehren
0ca8e2dc7d
Fix error import
...
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:07 +02:00
Yannick Bungers
dd4ea6f488
Added Types to actions.js and reformat
...
Added Types to actions.js and reformat
Readded csp.ts
Signed-off-by: Yannick Bungers <git@innay.de>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:07 +02:00
Philip Molares
8b9c639e89
created error.ts
...
- moved export
- fixed function order
- errorServiceUnavailable now uses responseError like everything else
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:07 +02:00
Philip Molares
6601ac76b5
worked on response.ts
...
- renamed unused arguments to '_'
- fixed noteUtil call
- moved export of response to the end of the file
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:07 +02:00
Philip Molares
57675265fc
removed 'use-strict'
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:06 +02:00
Philip Molares
d0b693d3e7
updated types in note.ts
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:06 +02:00
Philip Molares
a7aaded6dd
created history.ts
...
- fixed imports
- added HistoryObject type
- made parseNoteInfo in note.ts static
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:06 +02:00
Yannick Bungers
8e76c764e3
Added Types to actions.js and reformat
...
Added Types to actions.js and reformat
Signed-off-by: Yannick Bungers <git@innay.de>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:06 +02:00
Yannick Bungers
536c54ff0d
moved response.js to response.ts and readded missing return statements
...
Signed-off-by: Yannick Bungers <git@innay.de>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:06 +02:00
Yannick Bungers
bb8fb93fee
Moved utils.js to utils.ts and refactored import and exports
...
Signed-off-by: Yannick Bungers <git@innay.de>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:06 +02:00
David Mehren
3340780157
Migrate config templates to TypeScript
...
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:05 +02:00
David Mehren
e641681483
ESLint fixes in models
...
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:05 +02:00
David Mehren
9f284b752b
Use import syntax for logger and config
...
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:05 +02:00
David Mehren
dd11483f44
Migrate config/index.js to TypeScript
...
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:04 +02:00
Philip Molares
637833ab18
created logger.ts
...
moved the added stream part directly into the config of morgan in app.ts.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:04 +02:00
Yannick Bungers
bb8297dca3
Added Types to actions.js and reformat
...
Signed-off-by: Yannick Bungers <git@innay.de>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:04 +02:00
Philip Molares
f9193822a7
created letter-avatars.ts
...
added @types/randomcolor
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:04 +02:00
David Mehren
7cdcf627db
note.ts: ESLint fixes, add types for diff-match-patch
...
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:04 +02:00
David Mehren
f8eb958f16
realtime.ts: Many ESLint fixes
...
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:04 +02:00
Yannick Bungers
de09524658
Added Types and reformating code
...
Signed-off-by: Yannick Bungers <git@innay.de>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:04 +02:00
Yannick Bungers
84e021a0b0
Added types
...
Signed-off-by: Yannick Bungers <git@innay.de>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:03 +02:00
Yannick Bungers
c6655d767a
changed for loop to foreach
...
Signed-off-by: Yannick Bungers <git@innay.de>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:03 +02:00
Philip Molares
4eb71d6cad
reworked user.ts
...
- fixed imports
- removed complicated ternary operators
- simplified parseProfile
- added enum ProviderEnum
- added type Profile
- added type PhotoProfile
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:03 +02:00
Philip Molares
22683451bd
changed imports to new ./modules import style
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:03 +02:00
Philip Molares
d278a106e8
added model exports in index.ts
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:02 +02:00
David Mehren
77e84a18ee
Migrate realtime.js to TypeScript
...
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:02 +02:00
David Mehren
0ad30a0029
revision.ts: Formatting, use Utils instead of global Sequelize object
...
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:02 +02:00
David Mehren
477a37b48c
note.ts: Formatting, use Utils instead of global Sequelize object
...
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:02 +02:00
David Mehren
522d92a9a1
app.ts: Use let/const instead of var, fix sequelize import
...
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:02 +02:00
David Mehren
8c662a1f41
Move stripNullByte and processData from models/index.ts to utils.ts
...
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:02 +02:00
David Mehren
03ae37055d
Migrate utils.js to TypeScript
...
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:01 +02:00
David Mehren
e87c8f04e5
Migrate app.js to TypeScript
...
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:01 +02:00
David Mehren
77e336dfda
Various refactors to use the new models
...
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:01 +02:00
David Mehren
4e02f46cee
More static methods in revision.ts
...
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:01 +02:00
David Mehren
0c078f5266
Fix types for foreign keys
...
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:01 +02:00
David Mehren
1d4107fe90
Migrate models to TypeScript
...
Co-authored-by: David Mehren <dmehren1@gmail.com>
Co-authored-by: Yannick Bungers <git@innay.de>
Co-authored-by: Philipp Hochkamp <me@phochkamp.de>
Co-authored-by: nzbr <mail@nzbr.de>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:01 +02:00
Erik Michelson
7838f9b03a
Added config property for locales
...
There's a new config property 'localesPath' - pointing to './locales' by default. The path resolution is similar to the docsPath, uploadsPath etc.
Signed-off-by: Erik Michelson <erik@liltv.de>
2020-04-24 19:09:18 +02:00
Erik Michelson
760591b9b0
Fixed wrong locales search path after app.js move
...
Signed-off-by: Erik Michelson <erik@liltv.de>
2020-04-24 16:42:03 +02:00