mirror of https://github.com/requarks/wiki
parent
e9e93eff42
commit
8f94449426
@ -1,16 +1,16 @@
|
|||||||
/* global WIKI */
|
/* global WIKI */
|
||||||
const bcrypt = require('bcryptjs-then')
|
import bcrypt from 'bcryptjs-then'
|
||||||
|
|
||||||
// ------------------------------------
|
// ------------------------------------
|
||||||
// Local Account
|
// Local Account
|
||||||
// ------------------------------------
|
// ------------------------------------
|
||||||
|
|
||||||
const LocalStrategy = require('passport-local').Strategy
|
import { Strategy } from 'passport-local'
|
||||||
|
|
||||||
module.exports = {
|
export default {
|
||||||
init (passport, conf) {
|
init (passport, conf) {
|
||||||
passport.use(conf.key,
|
passport.use(conf.key,
|
||||||
new LocalStrategy({
|
new Strategy({
|
||||||
usernameField: 'email',
|
usernameField: 'email',
|
||||||
passwordField: 'password'
|
passwordField: 'password'
|
||||||
}, async (uEmail, uPassword, done) => {
|
}, async (uEmail, uPassword, done) => {
|
@ -1,6 +1,6 @@
|
|||||||
const cmdExists = require('command-exists')
|
import cmdExists from 'command-exists'
|
||||||
|
|
||||||
module.exports = {
|
export default {
|
||||||
key: 'git',
|
key: 'git',
|
||||||
title: 'Git',
|
title: 'Git',
|
||||||
description: 'Distributed version control system. Required for the Git storage module.',
|
description: 'Distributed version control system. Required for the Git storage module.',
|
@ -1,7 +1,7 @@
|
|||||||
const cmdExists = require('command-exists')
|
import cmdExists from 'command-exists'
|
||||||
const os = require('os')
|
import os from 'node:os'
|
||||||
|
|
||||||
module.exports = {
|
export default {
|
||||||
key: 'pandoc',
|
key: 'pandoc',
|
||||||
title: 'Pandoc',
|
title: 'Pandoc',
|
||||||
description: 'Convert between markup formats. Required for converting from other formats such as MediaWiki, AsciiDoc, Textile and other wikis.',
|
description: 'Convert between markup formats. Required for converting from other formats such as MediaWiki, AsciiDoc, Textile and other wikis.',
|
@ -1,6 +1,6 @@
|
|||||||
const fs = require('fs-extra')
|
import fs from 'node:fs/promises'
|
||||||
|
|
||||||
module.exports = {
|
export default {
|
||||||
async activated () { },
|
async activated () { },
|
||||||
async deactivated () { },
|
async deactivated () { },
|
||||||
async init () { },
|
async init () { },
|
Loading…
Reference in new issue