5c94151e14
refs #7688 Adds an `uploads/icon/` endpoint to the api route to get a seperate entry point for blog icon validations. The blog icon validation will specifically check for images which have icon extensions (`.ico` & `.png`) and throw errors if: - the icon file size is too big (>100kb) - the icon is not a squaer - the icon size is smaller than 32px - the icon size is larger than 1000px - the icon is not `.ico` or `.png` extension TODOs for this PR: - [X] get image dimensions - [X] validate for image - [X] size - [X] form (must be square) - [X] type - [X] dimenstion (min 32px and max 1,000px) - [X] return appropriate error messages - [X] write tests -------------------- TODOs for #7688: - [X] Figure out, which favicon should be used (uploaded or default) -> #7713 - [ ] Serve and redirect the favicon for any browser requests, incl. redirects -> #7700 [WIP] - [X] Upload favicon via `general/settings` and implement basic admin validations -> TryGhost/Ghost-Admin#397 - [X] Build server side validations -> this PR
162 lines
4.1 KiB
JSON
162 lines
4.1 KiB
JSON
{
|
|
"name": "ghost",
|
|
"version": "1.0.0-alpha.9",
|
|
"description": "Just a blogging platform.",
|
|
"author": "Ghost Foundation",
|
|
"homepage": "http://ghost.org",
|
|
"keywords": [
|
|
"ghost",
|
|
"blog",
|
|
"cms"
|
|
],
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git://github.com/TryGhost/Ghost.git"
|
|
},
|
|
"bugs": "https://github.com/TryGhost/Ghost/issues",
|
|
"contributors": "https://github.com/TryGhost/Ghost/graphs/contributors",
|
|
"license": "MIT",
|
|
"main": "./core/index",
|
|
"scripts": {
|
|
"start": "node index",
|
|
"test": "grunt validate --verbose"
|
|
},
|
|
"engines": {
|
|
"node": "^4.2.0 || ^6.5.0"
|
|
},
|
|
"dependencies": {
|
|
"amperize": "1.0.0",
|
|
"archiver": "1.3.0",
|
|
"bcryptjs": "2.3.0",
|
|
"bluebird": "3.4.7",
|
|
"body-parser": "1.15.2",
|
|
"bookshelf": "0.10.3",
|
|
"brute-knex": "https://github.com/cobbspur/brute-knex/tarball/0cb28fa8e3230dcbf6bca8b991dbb340b9fff6cc",
|
|
"bson-objectid": "1.1.4",
|
|
"bunyan": "1.8.1",
|
|
"chalk": "1.1.3",
|
|
"cheerio": "0.22.0",
|
|
"commander": "2.9.0",
|
|
"compression": "1.6.2",
|
|
"connect-slashes": "1.3.1",
|
|
"cookie-session": "1.2.0",
|
|
"cors": "2.8.1",
|
|
"csv-parser": "1.11.0",
|
|
"debug": "2.6.0",
|
|
"downsize": "0.0.8",
|
|
"express": "4.14.0",
|
|
"express-brute": "1.0.1",
|
|
"express-hbs": "1.0.4",
|
|
"extract-zip-fork": "1.5.1",
|
|
"fs-extra": "1.0.0",
|
|
"ghost-editor": "0.1.5",
|
|
"ghost-gql": "0.0.6",
|
|
"ghost-ignition": "2.8.3",
|
|
"glob": "5.0.15",
|
|
"gscan": "0.2.0",
|
|
"html-to-text": "3.0.0",
|
|
"icojs": "0.5.0",
|
|
"image-size": "0.5.1",
|
|
"intl": "1.2.5",
|
|
"intl-messageformat": "1.3.0",
|
|
"jsonpath": "0.2.9",
|
|
"knex": "0.12.5",
|
|
"knex-migrator": "2.0.4",
|
|
"lodash": "4.17.4",
|
|
"mobiledoc-html-renderer": "0.3.1",
|
|
"moment": "2.17.1",
|
|
"moment-timezone": "0.5.9",
|
|
"multer": "1.2.1",
|
|
"mysql": "2.12.0",
|
|
"nconf": "0.8.4",
|
|
"netjet": "1.1.3",
|
|
"nodemailer": "0.7.1",
|
|
"oauth2orize": "1.7.0",
|
|
"passport": "0.3.2",
|
|
"passport-ghost": "2.2.0",
|
|
"passport-http-bearer": "1.0.1",
|
|
"passport-oauth2-client-password": "0.1.2",
|
|
"path-match": "1.2.4",
|
|
"prettyjson": "1.2.1",
|
|
"rss": "1.2.2",
|
|
"sanitize-html": "1.13.0",
|
|
"semver": "5.3.0",
|
|
"showdown-ghost": "0.3.6",
|
|
"superagent": "3.3.2",
|
|
"unidecode": "0.1.8",
|
|
"uuid": "3.0.0",
|
|
"validator": "6.2.1",
|
|
"xml": "1.0.1"
|
|
},
|
|
"optionalDependencies": {
|
|
"sqlite3": "3.1.8"
|
|
},
|
|
"devDependencies": {
|
|
"grunt": "1.0.1",
|
|
"grunt-bg-shell": "2.3.3",
|
|
"grunt-cli": "1.2.0",
|
|
"grunt-contrib-clean": "1.0.0",
|
|
"grunt-contrib-compress": "1.3.0",
|
|
"grunt-contrib-copy": "1.0.0",
|
|
"grunt-contrib-jshint": "1.0.0",
|
|
"grunt-contrib-uglify": "2.0.0",
|
|
"grunt-contrib-watch": "1.0.0",
|
|
"grunt-docker": "0.0.11",
|
|
"grunt-express-server": "0.5.3",
|
|
"grunt-jscs": "3.0.1",
|
|
"grunt-mocha-cli": "2.1.0",
|
|
"grunt-mocha-istanbul": "5.0.2",
|
|
"grunt-shell": "1.3.1",
|
|
"grunt-subgrunt": "1.2.0",
|
|
"grunt-update-submodules": "0.4.1",
|
|
"gulp": "3.9.1",
|
|
"gulp-git-submodule": "1.0.1",
|
|
"gulp-help": "1.6.1",
|
|
"gulp-jscs": "4.0.0",
|
|
"gulp-jshint": "2.0.3",
|
|
"gulp-jsonlint": "1.2.0",
|
|
"gulp-livereload": "3.8.1",
|
|
"gulp-nodemon": "2.2.1",
|
|
"gulp-util": "3.0.8",
|
|
"istanbul": "0.4.5",
|
|
"jshint": "2.9.4",
|
|
"jshint-stylish": "2.2.1",
|
|
"matchdep": "1.0.1",
|
|
"minimist": "1.2.0",
|
|
"mocha": "3.2.0",
|
|
"nock": "8.2.1",
|
|
"rewire": "2.5.2",
|
|
"run-sequence": "1.2.2",
|
|
"should": "11.1.2",
|
|
"should-http": "0.0.4",
|
|
"sinon": "1.17.7",
|
|
"supertest": "2.0.1",
|
|
"tmp": "0.0.31"
|
|
},
|
|
"greenkeeper": {
|
|
"ignore": [
|
|
"bunyan",
|
|
"glob",
|
|
"nodemailer",
|
|
"showdown-ghost",
|
|
"grunt",
|
|
"grunt-bg-shell",
|
|
"grunt-cli",
|
|
"grunt-contrib-clean",
|
|
"grunt-contrib-compress",
|
|
"grunt-contrib-copy",
|
|
"grunt-contrib-jshint",
|
|
"grunt-contrib-uglify",
|
|
"grunt-contrib-watch",
|
|
"grunt-docker",
|
|
"grunt-express-server",
|
|
"grunt-jscs",
|
|
"grunt-mocha-cli",
|
|
"grunt-mocha-istanbul",
|
|
"grunt-shell",
|
|
"grunt-subgrunt",
|
|
"grunt-update-submodules"
|
|
]
|
|
}
|
|
}
|