0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00
ghost/core/test/unit
Aileen Nowak eef7932e94 Refactor: fetch image dimensions from local file storage ()
refs 

- Removed image-size in blog logo fn for meta data and made it synchronous
- Renamed `image-size-from-url.js` to `image-size.js` (incl. the test)
- Added second fn `getImageSizeFromFilePath` that reads from local file storage
- Added guard in `getImageSizeFromUrl` that checks if the image should be on local file storage and uses the new fn then instead
- Added a fn `fetchDimensionsFromBuffer` that takes the file buffer and returns an `imageObject` with dimensions.
- Added a new utils.js in `adapters/storage` for getting the file storage path
2017-09-05 14:13:22 +02:00
..
adapters Refactor: fetch image dimensions from local file storage () 2017-09-05 14:13:22 +02:00
api 💄 🐷 Test consistency () 2017-03-21 09:24:11 +01:00
auth 🚑 Disable remote authentication () 2017-04-24 18:56:49 +01:00
config fix(config): cleanup absolute path config function () 2017-07-06 00:04:18 +02:00
controllers/frontend 🐛 Fixed channel context to be based on res.locals () 2017-08-16 11:06:30 +01:00
data/importer 🎨 Support LTS imports () 2017-06-04 11:53:00 +02:00
mail 🔥 fromaddress support () 2017-07-27 12:27:38 +04:00
metadata Refactor: fetch image dimensions from local file storage () 2017-09-05 14:13:22 +02:00
middleware Blog and Admin redirects with trailing slash () 2017-08-30 17:42:00 +01:00
models/base 🎨 change last_login to last_seen () 2017-04-05 20:45:55 +01:00
models_plugins 💄 🐷 Test consistency () 2017-03-21 09:24:11 +01:00
server_helpers Used got to handle requests for image-size () 2017-08-31 11:39:37 +02:00
settings 🐛 fix settings cache () 2017-06-04 17:52:22 +07:00
sitemap 🙀 Image field naming & new img_url helper () 2017-04-24 18:21:47 +01:00
themes 🐛 Remove trailing slash for {{@blog.url}} () 2017-06-19 16:11:53 +02:00
utils Refactor: fetch image dimensions from local file storage () 2017-09-05 14:13:22 +02:00
admin_spec.js 💄 🐷 Test consistency () 2017-03-21 09:24:11 +01:00
api_utils_spec.js 💄 🐷 Test consistency () 2017-03-21 09:24:11 +01:00
apps_filters_spec.js 💄 🐷 Test consistency () 2017-03-21 09:24:11 +01:00
apps_spec.js Helper Proxy & single express-hbs instance () 2017-04-04 18:07:35 +02:00
errors_spec.js 💄 🐷 Test consistency () 2017-03-21 09:24:11 +01:00
exporter_spec.js 💄 🐷 Test consistency () 2017-03-21 09:24:11 +01:00
filters_spec.js 💄 🐷 Test consistency () 2017-03-21 09:24:11 +01:00
ghost_sdk_spec.js 🛠 🙈 Rename ghost-url.js to ghost-sdk.js () 2017-07-28 18:23:32 +04:00
migration_fixture_utils_spec.js 📖 new default post content () 2017-06-08 16:36:14 +01:00
migration_spec.js Add ghost-backup client to trigger export () 2017-08-22 11:15:40 +01:00
permissions_spec.js 🐛 be able to serve locked users () 2017-07-20 12:45:13 +01:00
rss_spec.js 🦄 Channels: Stored config in res.locals not req () 2017-08-14 10:21:24 +07:00
server_helpers_index_spec.js 🙀 Image field naming & new img_url helper () 2017-04-24 18:21:47 +01:00
server_helpers_template_spec.js Helper Proxy & single express-hbs instance () 2017-04-04 18:07:35 +02:00
server_utils_spec.js 🎨 refactor the importer () 2017-05-23 17:18:13 +01:00
slack_spec.js 📖 new default post content () 2017-06-08 16:36:14 +01:00
social-urls_spec.js
utils_pipeline_spec.js 💄 🐷 Test consistency () 2017-03-21 09:24:11 +01:00
validation_spec.js 💄 🐷 Test consistency () 2017-03-21 09:24:11 +01:00
xmlrpc_spec.js 📖 new default post content () 2017-06-08 16:36:14 +01:00