-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
39 changed files
with
81 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,9 @@ | |
* Events controller module | ||
* @module controllers/events | ||
* @author Stefano Rivoir <[email protected]> | ||
*/ | ||
* @licence MIT | ||
* @copyright (c) 2023-2024 - Stefano Rivoir <[email protected]> | ||
*/ | ||
|
||
import * as R from '../../../lib/response.mjs' | ||
import * as Events from '../../../lib/event.mjs' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
* Folders controller module | ||
* @module controllers/folders | ||
* @author Stefano Rivoir <[email protected]> | ||
* @licence MIT | ||
* @copyright (c) 2023-2024 - Stefano Rivoir <[email protected]> | ||
*/ | ||
|
||
import { newId } from '../../../lib/id.mjs' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
* Groups controller module | ||
* @module controllers/groups | ||
* @author Stefano Rivoir <[email protected]> | ||
* @licence MIT | ||
* @copyright (c) 2023-2024 - Stefano Rivoir <[email protected]> | ||
*/ | ||
|
||
import { newId } from '../../../lib/id.mjs' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
* Items controller module | ||
* @module controllers/items | ||
* @author Stefano Rivoir <[email protected]> | ||
* @licence MIT | ||
* @copyright (c) 2023-2024 - Stefano Rivoir <[email protected]> | ||
*/ | ||
|
||
import { Prisma } from '@prisma/client' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
* Item types controller module | ||
* @module controllers/itemtypes | ||
* @author Stefano Rivoir <[email protected]> | ||
* @licence MIT | ||
* @copyright (c) 2023-2024 - Stefano Rivoir <[email protected]> | ||
*/ | ||
|
||
import * as R from '../../../lib/response.mjs' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
* Login controller module | ||
* @module controllers/login | ||
* @author Stefano Rivoir <[email protected]> | ||
* @licence MIT | ||
* @copyright (c) 2023-2024 - Stefano Rivoir <[email protected]> | ||
*/ | ||
|
||
import * as LDAP from 'ldap-authentication' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
* One type tokens module | ||
* @module controllers/onetimetokens | ||
* @author Stefano Rivoir <[email protected]> | ||
* @licence MIT | ||
* @copyright (c) 2023-2024 - Stefano Rivoir <[email protected]> | ||
*/ | ||
|
||
import * as R from '../../../lib/response.mjs' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
* Personal folder controller module | ||
* @module controllers/personal | ||
* @author Stefano Rivoir <[email protected]> | ||
* @licence MIT | ||
* @copyright (c) 2023-2024 - Stefano Rivoir <[email protected]> | ||
*/ | ||
|
||
import * as R from '../../../lib/response.mjs' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
* User controller module | ||
* @module controllers/users | ||
* @author Stefano Rivoir <[email protected]> | ||
* @licence MIT | ||
* @copyright (c) 2023-2024 - Stefano Rivoir <[email protected]> | ||
*/ | ||
|
||
import { newId } from '../../../lib/id.mjs' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
* User settings controller module | ||
* @module controllers/usersettings | ||
* @author Stefano Rivoir <[email protected]> | ||
* @licence MIT | ||
* @copyright (c) 2023-2024 - Stefano Rivoir <[email protected]> | ||
*/ | ||
|
||
import * as R from '../../../lib/response.mjs' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
* Util controller module | ||
* @module controllers/util | ||
* @author Stefano Rivoir <[email protected]> | ||
* @licence MIT | ||
* @copyright (c) 2023-2024 - Stefano Rivoir <[email protected]> | ||
*/ | ||
|
||
import generator from 'generate-password' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
* Events route module | ||
* @module routes/events | ||
* @author Stefano Rivoir <[email protected]> | ||
* @licence MIT | ||
* @copyright (c) 2023-2024 - Stefano Rivoir <[email protected]> | ||
*/ | ||
|
||
import { Router } from 'express' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
* Folders route module | ||
* @module routes/folders | ||
* @author Stefano Rivoir <[email protected]> | ||
* @licence MIT | ||
* @copyright (c) 2023-2024 - Stefano Rivoir <[email protected]> | ||
*/ | ||
|
||
import { Router } from 'express' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
* Groups route module | ||
* @module routes/groups | ||
* @author Stefano Rivoir <[email protected]> | ||
* @licence MIT | ||
* @copyright (c) 2023-2024 - Stefano Rivoir <[email protected]> | ||
*/ | ||
|
||
import { Router } from 'express' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
* Items route module | ||
* @module routes/items | ||
* @author Stefano Rivoir <[email protected]> | ||
* @licence MIT | ||
* @copyright (c) 2023-2024 - Stefano Rivoir <[email protected]> | ||
*/ | ||
|
||
import { Router } from 'express' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
* Item types route module | ||
* @module routes/itemtypes | ||
* @author Stefano Rivoir <[email protected]> | ||
* @licence MIT | ||
* @copyright (c) 2023-2024 - Stefano Rivoir <[email protected]> | ||
*/ | ||
|
||
import { Router } from 'express' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
* Login route module | ||
* @module routes/login | ||
* @author Stefano Rivoir <[email protected]> | ||
* @licence MIT | ||
* @copyright (c) 2023-2024 - Stefano Rivoir <[email protected]> | ||
*/ | ||
|
||
import { Router } from 'express' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
* One time tokens module | ||
* @module routes/onetimetokens | ||
* @author Stefano Rivoir <[email protected]> | ||
* @licence MIT | ||
* @copyright (c) 2023-2024 - Stefano Rivoir <[email protected]> | ||
*/ | ||
|
||
import { Router } from 'express' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
* Personal folders route module | ||
* @module routes/personal | ||
* @author Stefano Rivoir <[email protected]> | ||
* @licence MIT | ||
* @copyright (c) 2023-2024 - Stefano Rivoir <[email protected]> | ||
*/ | ||
|
||
import { Router } from 'express' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
* Users route module | ||
* @module routes/users | ||
* @author Stefano Rivoir <[email protected]> | ||
* @licence MIT | ||
* @copyright (c) 2023-2024 - Stefano Rivoir <[email protected]> | ||
*/ | ||
|
||
import { Router } from 'express' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
* Util route module | ||
* @module routes/util | ||
* @author Stefano Rivoir <[email protected]> | ||
* @licence MIT | ||
* @copyright (c) 2023-2024 - Stefano Rivoir <[email protected]> | ||
*/ | ||
|
||
import { Router } from 'express' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
* Authorization module | ||
* @module lib/auth | ||
* @author Stefano Rivoir <[email protected]> | ||
* @licence MIT | ||
* @copyright (c) 2023-2024 - Stefano Rivoir <[email protected]> | ||
*/ | ||
|
||
import jsonwebtoken from 'jsonwebtoken' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
* Cache module | ||
* @module lib/cache | ||
* @author Stefano Rivoir <[email protected]> | ||
* @licence MIT | ||
* @copyright (c) 2023-2024 - Stefano Rivoir <[email protected]> | ||
*/ | ||
|
||
import * as Config from './config.mjs' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
* Cache with node-cache | ||
* @module lib/cache-node | ||
* @author Stefano Rivoir <[email protected]> | ||
* @licence MIT | ||
* @copyright (c) 2023-2024 - Stefano Rivoir <[email protected]> | ||
*/ | ||
|
||
import NodeCache from 'node-cache' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,9 @@ | |
* Cache with Redis | ||
* @module lib/cache-redis | ||
* @author Stefano Rivoir <[email protected]> | ||
*/ | ||
* @licence MIT | ||
* @copyright (c) 2023-2024 - Stefano Rivoir <[email protected]> | ||
*/ | ||
|
||
import { createClient } from 'redis' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
* Config module | ||
* @module lib/config | ||
* @author Stefano Rivoir <[email protected]> | ||
* @licence MIT | ||
* @copyright (c) 2023-2024 - Stefano Rivoir <[email protected]> | ||
*/ | ||
|
||
import { readFile } from 'fs/promises' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
* Const module | ||
* @module lib/const | ||
* @author Stefano Rivoir <[email protected]> | ||
* @licence MIT | ||
* @copyright (c) 2023-2024 - Stefano Rivoir <[email protected]> | ||
*/ | ||
|
||
export const PW_USER_ADMINID = '0' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,10 @@ | |
* Crypto module | ||
* @module lib/crypt | ||
* @author Stefano Rivoir <[email protected]> | ||
* @licence MIT | ||
* @copyright (c) 2023-2024 - Stefano Rivoir <[email protected]> | ||
*/ | ||
|
||
import * as Config from '../lib/config.mjs' | ||
import * as crypto from 'crypto' | ||
import bcrypt from 'bcrypt' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
* DB module | ||
* @module lib/db | ||
* @author Stefano Rivoir <[email protected]> | ||
* @licence MIT | ||
* @copyright (c) 2023-2024 - Stefano Rivoir <[email protected]> | ||
*/ | ||
|
||
import { PrismaClient } from '@prisma/client' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
* Action log | ||
* @module lib/action | ||
* @author Stefano Rivoir <[email protected]> | ||
* @licence MIT | ||
* @copyright (c) 2023-2024 - Stefano Rivoir <[email protected]> | ||
*/ | ||
|
||
import DB from './db.mjs' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
* IDs module | ||
* @module lib/id | ||
* @author Stefano Rivoir <[email protected]> | ||
* @licence MIT | ||
* @copyright (c) 2023-2024 - Stefano Rivoir <[email protected]> | ||
*/ | ||
|
||
import { uuidv7obj } from 'uuidv7' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
* JSON schema validator module | ||
* @module lib/jsonvalidator | ||
* @author Stefano Rivoir <[email protected]> | ||
* @licence MIT | ||
* @copyright (c) 2023-2024 - Stefano Rivoir <[email protected]> | ||
*/ | ||
|
||
import Ajv from 'ajv' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
* Rate limiter module | ||
* @module lib/random | ||
* @author Stefano Rivoir <[email protected]> | ||
* @licence MIT | ||
* @copyright (c) 2023-2024 - Stefano Rivoir <[email protected]> | ||
*/ | ||
|
||
import { rateLimit } from 'express-rate-limit' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
* Response module | ||
* @module lib/response | ||
* @author Stefano Rivoir <[email protected]> | ||
* @licence MIT | ||
* @copyright (c) 2023-2024 - Stefano Rivoir <[email protected]> | ||
*/ | ||
|
||
export const CREATED = 201 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
* Folder object module | ||
* @module model/folder | ||
* @author Stefano Rivoir <[email protected]> | ||
* @licence MIT | ||
* @copyright (c) 2023-2024 - Stefano Rivoir <[email protected]> | ||
*/ | ||
|
||
import * as Cache from '../lib/cache.mjs' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
* Group object module | ||
* @module model/group | ||
* @author Stefano Rivoir <[email protected]> | ||
* @licence MIT | ||
* @copyright (c) 2023-2024 - Stefano Rivoir <[email protected]> | ||
*/ | ||
|
||
import * as Cache from '../lib/cache.mjs' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
* Item object module | ||
* @module model/item | ||
* @author Stefano Rivoir <[email protected]> | ||
* @licence MIT | ||
* @copyright (c) 2023-2024 - Stefano Rivoir <[email protected]> | ||
*/ | ||
|
||
import * as Folder from './folder.mjs' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
* User object module | ||
* @module model/user | ||
* @author Stefano Rivoir <[email protected]> | ||
* @licence MIT | ||
* @copyright (c) 2023-2024 - Stefano Rivoir <[email protected]> | ||
*/ | ||
|
||
import DB from '../lib/db.mjs' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
/** | ||
* PassWeaver, a collaborative password manager | ||
* | ||
* (c) 2023 - Stefano Rivoir <[email protected]> | ||
* | ||
* @module main | ||
* @author Stefano Rivoir <[email protected]> | ||
* @licence MIT | ||
* @copyright (c) 2023-2024 - Stefano Rivoir <[email protected]> | ||
*/ | ||
|
||
import Express from 'express' | ||
|