mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-04 21:01:06 -05:00
7bab895dee
Previously, when diplomats submit translations, the system would try to figure out whether it should be a 'patch' or a 'change', and then would either create a patch for an admin or artisan to review and accept or reject, or would apply the changes immediately and they would be live. This was done as a compromise between getting translations live quickly, but also preventing already-translated text from getting overwritten without oversight. But having the client handle this added logical complexity. So this makes all diplomats submit patches, no matter what. The server is then in charge of deciding if it should auto-accept the patch or not. Either way, a patch is created. There was also much refactoring. This commit includes: * Update jsondiffpatch so changes within array items are handled correctly * Refactor posting patches to use the new auto-accepting logic, and out of Patch model * Refactor POST /db/patch/:handle/status so that it doesn't rely on handlers * Refactor patch stat handling to ensure auto-accepted patches are counted * Refactor User.incrementStat to use mongodb update commands, to avoid race conditions * Refactor Patch tests
116 lines
3.1 KiB
JSON
116 lines
3.1 KiB
JSON
{
|
|
"name": "codecombat",
|
|
"main": "index.js",
|
|
"version": "0.0.0",
|
|
"homepage": "https://github.com/codecombat/codecombat",
|
|
"authors": [
|
|
"CodeCombat <team@codecombat.com>"
|
|
],
|
|
"description": "A multiplayer programming game for learning how to code.",
|
|
"keywords": [
|
|
"learning",
|
|
"live",
|
|
"coding",
|
|
"game",
|
|
"multiplayer"
|
|
],
|
|
"license": "MIT",
|
|
"private": true,
|
|
"ignore": [
|
|
"**/.*",
|
|
"node_modules",
|
|
"bower_components",
|
|
"vendor",
|
|
"test"
|
|
],
|
|
"dependencies": {
|
|
"jquery": "~2.1.0",
|
|
"lodash": "~2.4.1",
|
|
"backbone": "1.1.0",
|
|
"jquery-mousewheel": "~3.1.9",
|
|
"i18next": "https://github.com/nwinter/i18next.git",
|
|
"firepad": "~0.1.2",
|
|
"marked": "~0.3.0",
|
|
"moment": "~2.5.0",
|
|
"aether": "~0.5.21",
|
|
"underscore.string": "~2.3.3",
|
|
"d3": "~3.4.4",
|
|
"jsondiffpatch": "^0.2.3",
|
|
"nanoscroller": "~0.8.0",
|
|
"treema": "https://github.com/codecombat/treema.git#master",
|
|
"bootstrap": "~3.2.0",
|
|
"validated-backbone-mediator": "~0.1.3",
|
|
"jquery.browser": "~0.0.6",
|
|
"modernizr": "~2.8.3",
|
|
"fastclick": "~1.0.3",
|
|
"three.js": "~0.71.0",
|
|
"lscache": "~1.0.5",
|
|
"esper.js": "http://files.codecombat.com/esper.tar.gz",
|
|
"algoliasearch": "^3.13.1",
|
|
"algolia-autocomplete.js": "^0.17.0",
|
|
"algolia-autocomplete-no-conflict": "1.0.0",
|
|
"promise-polyfill": "^5.2.1"
|
|
},
|
|
"overrides": {
|
|
"algolia-autocomplete.js": {
|
|
"main": "dist/autocomplete.jquery.js"
|
|
},
|
|
"algolia-autocomplete-no-conflict": {
|
|
"main": "no-conflict.js"
|
|
},
|
|
"backbone": {
|
|
"main": "backbone.js"
|
|
},
|
|
"lodash": {
|
|
"main": "dist/lodash.js"
|
|
},
|
|
"marked": {
|
|
"main": "lib/marked.js"
|
|
},
|
|
"underscore.string": {
|
|
"main": "lib/underscore.string.js"
|
|
},
|
|
"jsondiffpatch": {
|
|
"main": [
|
|
"public/build/jsondiffpatch-full.js",
|
|
"public/build/jsondiffpatch-formatters.js",
|
|
"public/formatters-styles/html.css"
|
|
]
|
|
},
|
|
"treema": {
|
|
"main": [
|
|
"treema.js",
|
|
"treema.css",
|
|
"treema-utils.js"
|
|
]
|
|
},
|
|
"bootstrap": {
|
|
"main": [
|
|
"./dist/js/bootstrap.js",
|
|
"./dist/fonts/glyphicons-halflings-regular.eot",
|
|
"./dist/fonts/glyphicons-halflings-regular.svg",
|
|
"./dist/fonts/glyphicons-halflings-regular.ttf",
|
|
"./dist/fonts/glyphicons-halflings-regular.woff"
|
|
]
|
|
},
|
|
"modernizr": {
|
|
"main": "modernizr.js"
|
|
},
|
|
"aether": {
|
|
"main": [
|
|
"build/aether.js",
|
|
"build/coffeescript.js",
|
|
"build/javascript.js",
|
|
"build/lua.js",
|
|
"build/python.js",
|
|
"build/java.js",
|
|
"build/html.js"
|
|
]
|
|
}
|
|
},
|
|
"devDependencies": {
|
|
"modernizr-mixin": "~3.0.0",
|
|
"openSansCondensed": "https://google-fonts.azurewebsites.net/googleFonts/openSansCondensed?family=Open+Sans+Condensed:700&subset=latin,latin-ext,cyrillic-ext,greek-ext,greek,vietnamese,cyrillic",
|
|
"openSans": "https://google-fonts.azurewebsites.net/googleFonts/openSans?family=Open+Sans:600,700&subset=latin,latin-ext,cyrillic-ext,greek-ext,greek,vietnamese,cyrillic"
|
|
}
|
|
}
|