0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00

Remove External Apps

- Apps are marked as removed in 3.0, never officially launched and have been deprecated for at least 2 years.
- We've slowly removed bits that got in our way or were insecure over time meaning they mostly didn't work
- This cleans up the remainder of the logic
- The tables should be cleaned up in a future major
This commit is contained in:
Hannah Wolfe 2020-03-19 15:23:10 +00:00
parent 8ccf7fd172
commit 134e069c1b
2 changed files with 4 additions and 6 deletions

View file

@ -4,7 +4,7 @@ var _ = require('lodash'),
/** /**
* ### Filter Packages * ### Filter Packages
* Normalizes packages read by read-packages so that the apps and themes modules can use them. * Normalizes packages read by read-packages so that the themes module can use them.
* Iterates over each package and return an array of objects which are simplified representations of the package * Iterates over each package and return an array of objects which are simplified representations of the package
* with 3 properties: * with 3 properties:
* - `name` - the package name * - `name` - the package name
@ -17,10 +17,10 @@ var _ = require('lodash'),
* *
* @param {object} packages as returned by read-packages * @param {object} packages as returned by read-packages
* @param {array/string} active as read from the settings object * @param {array/string} active as read from the settings object
* @returns {Array} of objects with useful info about apps / themes * @returns {Array} of objects with useful info about themes
*/ */
filterPackages = function filterPackages(packages, active) { filterPackages = function filterPackages(packages, active) {
// turn active into an array (so themes and apps can be checked the same) // turn active into an array if it isn't one, so this function can deal with lists and one-offs
if (!Array.isArray(active)) { if (!Array.isArray(active)) {
active = [active]; active = [active];
} }

View file

@ -3,9 +3,7 @@
* *
* Ghost has / is in the process of gaining support for several different types of sub-packages: * Ghost has / is in the process of gaining support for several different types of sub-packages:
* - Themes: have always been packages, but we're going to lean more heavily on npm & package.json in future * - Themes: have always been packages, but we're going to lean more heavily on npm & package.json in future
* - Adapters: an early version of apps, replace fundamental pieces like storage, will become npm modules * - Adapters: replace fundamental pieces like storage, will become npm modules
* - Apps: plugins that can be installed whilst Ghost is running & modify behaviour
* - More?
* *
* These utils facilitate loading, reading, managing etc, packages from the file system. * These utils facilitate loading, reading, managing etc, packages from the file system.
*/ */