2973 Commits

Author SHA1 Message Date
Raccoon
adc0a62acd
lint: lib/auth/email/index.ts
remove unused vars

Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:34 +08:00
Raccoon
375de57af6
fix: guest note not save
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:33 +08:00
Raccoon
3494922cdb
fix: docker
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:33 +08:00
Raccoon
05cd6dd240
fix: heroku
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:33 +08:00
Raccoon
cb1f263780
format
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:33 +08:00
Raccoon
6e8ff98039
remove * as models
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:33 +08:00
Raccoon
ff90fd0fe1
test: fix test case
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:33 +08:00
Raccoon
638a8872c8
refactor: use strong type in models
export missing

Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:33 +08:00
Raccoon
db55d00823
refactor: use config insted of * as config
config

Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:33 +08:00
Raccoon
d1a440e7bd
refactor logger export
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:32 +08:00
Raccoon
aaf019e2b4
enable esModuleInterop
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:32 +08:00
Raccoon
f73e72b865
fix: i18n path
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:32 +08:00
Raccoon
41f0e61049
use winston.http to log morgan, and adjust development output
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:32 +08:00
Raccoon
8fb31bd018
upgrade morgan to 1.10
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:32 +08:00
Raccoon
6d512c0cc3
adjust logger
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:32 +08:00
Raccoon
72ca90aae2
upgrade winston
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:32 +08:00
Raccoon
019196484a
use new parameter in hsts
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:32 +08:00
Raccoon
67491af2a1
fix: public path
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:31 +08:00
Raccoon
6f93e43978
move app.js to lib/
update

Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:31 +08:00
Raccoon
f04e63279c
limit model should be .js files
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:31 +08:00
Raccoon
74f9e57148
ot server patch
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:31 +08:00
Raccoon
a10263b13e
upgrade sequelize
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:31 +08:00
Raccoon
5128815543
fix all eslint error
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:31 +08:00
Raccoon
48b7837348
fix: incorrect logic
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:31 +08:00
Raccoon
4d2579f114
add lint
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:31 +08:00
Raccoon
725ba147d3
enable noImplicitReturns
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:30 +08:00
Raccoon
da08b3686a
test case use dist build
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:30 +08:00
Raccoon
70ed184d14
ts to es2019
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:30 +08:00
Raccoon
11fd1e72a1
fix minio ts error
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:30 +08:00
Raccoon
301771037c
fix: realtime ts lint
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:30 +08:00
Raccoon
e29eec0196
ts: realtimeClientConnection.ts
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:30 +08:00
Raccoon
99e38d4cda
migrate to use ot.js - fix test
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:30 +08:00
Raccoon
b0b079a33a
migrate to use ot.js
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:30 +08:00
Raccoon
8ba97c36df
ts: lib/models/index.js
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:29 +08:00
Raccoon
bc8ad1cbff
ts: lib/models/note.js
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:29 +08:00
Raccoon
8d248ff09c
ts: lib/models/revision.js
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:29 +08:00
Raccoon
492a7ac446
ts: lib/models/user.js
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:29 +08:00
Raccoon
79a427e616
ts: lib/models/author.js
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:29 +08:00
Raccoon
6a30382c1b
change default sequelizerc
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:29 +08:00
Raccoon
1af9e912c6
ts: lib/auth/dropbox/index.js
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:29 +08:00
Raccoon
a4c8a26ae9
ts: lib/auth/mattermost/index.js
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:29 +08:00
Raccoon
30c5197794
ts: lib/auth/twitter/index.js
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:28 +08:00
Raccoon
9a8d0391fc
ts: lib/auth/twitter/index.js
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:28 +08:00
Raccoon
ebd815662f
ts: lib/auth/facebook/index.js
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:28 +08:00
Raccoon
147c20064f
ts: all migrations
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:28 +08:00
Raccoon
4b311b6ab2
ts: lib/auth/auth/index.js
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:28 +08:00
Raccoon
937b75db85
ts: lib/auth/oauth2/index.js
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:28 +08:00
Raccoon
ce5800b533
ts: lib/auth/oauth2/strategy.js
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:28 +08:00
Raccoon
8facb03745
ts: lib/auth/openid/index.js
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:28 +08:00
Raccoon
436a603d08
ts: lib/auth/saml/index.js
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:27 +08:00