mirror of
https://github.com/plankanban/planka.git
synced 2025-07-18 20:59:44 +02:00
feat: Add gallery for attachments
This commit is contained in:
parent
0bf4004046
commit
8f4d60c46f
22 changed files with 351 additions and 102 deletions
|
@ -20,20 +20,24 @@
|
|||
* https://sailsjs.com/anatomy/app.js
|
||||
*/
|
||||
|
||||
require('dotenv').config();
|
||||
const dotenv = require('dotenv');
|
||||
|
||||
// Ensure we're in the project directory, so cwd-relative paths work as expected
|
||||
// no matter where we actually lift from.
|
||||
// > Note: This is not required in order to lift, but it is a convenient default.
|
||||
process.chdir(__dirname);
|
||||
|
||||
dotenv.config();
|
||||
|
||||
// Attempt to import `sails` dependency, as well as `rc` (for loading `.sailsrc` files).
|
||||
let sails;
|
||||
let rc;
|
||||
|
||||
try {
|
||||
sails = require('sails'); // eslint-disable-line global-require
|
||||
rc = require('sails/accessible/rc'); // eslint-disable-line global-require
|
||||
/* eslint-disable global-require */
|
||||
sails = require('sails');
|
||||
rc = require('sails/accessible/rc');
|
||||
/* eslint-enable global-require */
|
||||
} catch (error) {
|
||||
/* eslint-disable no-console */
|
||||
console.error("Encountered an error when attempting to require('sails'):");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue