mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 19:26:31 -05:00
Use strict mode in all backend files
add ‘use strict’ in all backend file
This commit is contained in:
parent
edb1b4aa0a
commit
5870d988b5
19 changed files with 19 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
'use strict'
|
||||
// auth
|
||||
// external modules
|
||||
var passport = require('passport')
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
'use strict'
|
||||
// external modules
|
||||
var fs = require('fs')
|
||||
var path = require('path')
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
'use strict'
|
||||
// history
|
||||
// external modules
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
'use strict'
|
||||
// external modules
|
||||
var randomcolor = require('randomcolor')
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
'use strict'
|
||||
var winston = require('winston')
|
||||
winston.emitErrs = true
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
'use strict'
|
||||
module.exports = {
|
||||
up: function (queryInterface, Sequelize) {
|
||||
queryInterface.addColumn('Users', 'accessToken', Sequelize.STRING)
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
'use strict'
|
||||
module.exports = {
|
||||
up: function (queryInterface, Sequelize) {
|
||||
queryInterface.addColumn('Notes', 'savedAt', Sequelize.DATE)
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
'use strict'
|
||||
module.exports = {
|
||||
up: function (queryInterface, Sequelize) {
|
||||
queryInterface.addColumn('Notes', 'authorship', Sequelize.TEXT)
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
'use strict'
|
||||
module.exports = {
|
||||
up: function (queryInterface, Sequelize) {
|
||||
queryInterface.addColumn('Notes', 'deletedAt', Sequelize.DATE)
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
'use strict'
|
||||
module.exports = {
|
||||
up: function (queryInterface, Sequelize) {
|
||||
queryInterface.addColumn('Users', 'email', Sequelize.TEXT)
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
'use strict'
|
||||
// external modules
|
||||
var Sequelize = require('sequelize')
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
'use strict'
|
||||
// external modules
|
||||
var fs = require('fs')
|
||||
var path = require('path')
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
'use strict'
|
||||
// external modules
|
||||
var fs = require('fs')
|
||||
var path = require('path')
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
'use strict'
|
||||
// external modules
|
||||
var Sequelize = require('sequelize')
|
||||
var async = require('async')
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
'use strict'
|
||||
// external modules
|
||||
var shortId = require('shortid')
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
'use strict'
|
||||
// external modules
|
||||
var md5 = require('blueimp-md5')
|
||||
var Sequelize = require('sequelize')
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
'use strict'
|
||||
// realtime
|
||||
// external modules
|
||||
var cookie = require('cookie')
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
'use strict'
|
||||
// response
|
||||
// external modules
|
||||
var fs = require('fs')
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
'use strict'
|
||||
// external modules
|
||||
var DiffMatchPatch = require('diff-match-patch')
|
||||
var dmp = new DiffMatchPatch()
|
||||
|
|
Loading…
Reference in a new issue