mirror of
https://github.com/notion-enhancer/notion-enhancer.git
synced 2025-04-07 05:59:02 +00:00
env.notionRequire
This commit is contained in:
parent
0aabc67774
commit
bf3948f9c5
@ -5,6 +5,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
module.exports = {};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* environment-specific methods and constants
|
* environment-specific methods and constants
|
||||||
@ -12,7 +13,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
const env = require('../env/env.cjs');
|
const env = require('../env/env.cjs');
|
||||||
module.exports = {};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* the environment/platform name code is currently being executed in
|
* the environment/platform name code is currently being executed in
|
||||||
@ -45,3 +45,9 @@ module.exports.focusNotion = env.focusNotion;
|
|||||||
* @type {function}
|
* @type {function}
|
||||||
*/
|
*/
|
||||||
module.exports.reload = env.reload;
|
module.exports.reload = env.reload;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* require() notion app files
|
||||||
|
* @param {string} path - path from the root of notion/resources/app/ e.g. main/createWindow.js
|
||||||
|
*/
|
||||||
|
module.exports.notionRequire = env.notionRequire;
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
module.exports = {};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* helpers for formatting or parsing text
|
* helpers for formatting or parsing text
|
||||||
@ -12,7 +13,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
const fs = require('notion-enhancer/api/fs.cjs');
|
const fs = require('notion-enhancer/api/fs.cjs');
|
||||||
module.exports = {};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* transform a heading into a slug (a lowercase alphanumeric string separated by dashes),
|
* transform a heading into a slug (a lowercase alphanumeric string separated by dashes),
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
module.exports = {};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* environment-specific file reading
|
* environment-specific file reading
|
||||||
@ -12,7 +13,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
const fs = require('../env/fs.cjs');
|
const fs = require('../env/fs.cjs');
|
||||||
module.exports = {};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* transform a path relative to the enhancer root directory into an absolute path
|
* transform a path relative to the enhancer root directory into an absolute path
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
module.exports = {};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* environment-specific data persistence
|
* environment-specific data persistence
|
||||||
@ -12,7 +13,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
const storage = require('../env/storage.cjs');
|
const storage = require('../env/storage.cjs');
|
||||||
module.exports = {};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* get persisted data
|
* get persisted data
|
||||||
|
Loading…
Reference in New Issue
Block a user