Signed-off-by: Julius Härtl <jus@bitgrid.net>tags/v15.0.0beta1
(function(OCA) { | (function(OCA) { | ||||
/** | /** | ||||
* @namespace OCA.Files.FavoritesPlugin | |||||
* | |||||
* Registers the favorites file list from the files app sidebar. | * Registers the favorites file list from the files app sidebar. | ||||
* | |||||
* @namespace OCA.Files.FavoritesPlugin | |||||
*/ | */ | ||||
OCA.Files.FavoritesPlugin = { | OCA.Files.FavoritesPlugin = { | ||||
name: 'Favorites', | name: 'Favorites', |
(function (OCA) { | (function (OCA) { | ||||
/** | /** | ||||
* @namespace OCA.Files.RecentPlugin | |||||
* | |||||
* Registers the recent file list from the files app sidebar. | * Registers the recent file list from the files app sidebar. | ||||
* | |||||
* @namespace OCA.Files.RecentPlugin | |||||
*/ | */ | ||||
OCA.Files.RecentPlugin = { | OCA.Files.RecentPlugin = { | ||||
name: 'Recent', | name: 'Recent', |
OCA.Files = OCA.Files || {}; | OCA.Files = OCA.Files || {}; | ||||
/** | /** | ||||
* @namespace OCA.Files.TagsPlugin | |||||
* | |||||
* Extends the file actions and file list to include a favorite mark icon | * Extends the file actions and file list to include a favorite mark icon | ||||
* and a favorite action in the file actions menu; it also adds "data-tags" | * and a favorite action in the file actions menu; it also adds "data-tags" | ||||
* and "data-favorite" attributes to file elements. | * and "data-favorite" attributes to file elements. | ||||
* | |||||
* @namespace OCA.Files.TagsPlugin | |||||
*/ | */ | ||||
OCA.Files.TagsPlugin = { | OCA.Files.TagsPlugin = { | ||||
name: 'Tags', | name: 'Tags', |
# @copyright 2014 Vincent Petry <pvince81@owncloud.com> | # @copyright 2014 Vincent Petry <pvince81@owncloud.com> | ||||
# | # | ||||
NPM="$(which npm 2>/dev/null)" | NPM="$(which npm 2>/dev/null)" | ||||
PREFIX="build" | |||||
OUTPUT_DIR="build/jsdocs" | |||||
OUTPUT_DIR="jsdocs" | |||||
JS_FILES="core/js/*.js core/js/**/*.js apps/*/js/*.js" | |||||
JS_FILES="../core/js/*.js ../core/js/**/*.js ../apps/*/js/*.js" | |||||
if test -z "$NPM" | if test -z "$NPM" | ||||
then | then | ||||
fi | fi | ||||
# update/install test packages | # update/install test packages | ||||
mkdir -p "$PREFIX" && $NPM install --link --prefix "$PREFIX" jsdoc || exit 3 | |||||
$NPM install --prefix . --link jsdoc || exit 3 | |||||
JSDOC_BIN="$(which jsdoc 2>/dev/null)" | JSDOC_BIN="$(which jsdoc 2>/dev/null)" | ||||
# If not installed globally, try local version | # If not installed globally, try local version | ||||
if test -z "$JSDOC_BIN" | if test -z "$JSDOC_BIN" | ||||
then | then | ||||
JSDOC_BIN="$PREFIX/node_modules/jsdoc/jsdoc.js" | |||||
JSDOC_BIN="./node_modules/jsdoc/jsdoc.js" | |||||
fi | fi | ||||
if test -z "$JSDOC_BIN" | if test -z "$JSDOC_BIN" | ||||
mkdir -p "$OUTPUT_DIR" | mkdir -p "$OUTPUT_DIR" | ||||
NODE_PATH="$PREFIX/node_modules" $JSDOC_BIN -d "$OUTPUT_DIR" $JS_FILES | |||||
NODE_PATH="./node_modules" $JSDOC_BIN -d "$OUTPUT_DIR" $JS_FILES | |||||
"handlebars": "^4.0.5", | "handlebars": "^4.0.5", | ||||
"jasmine-core": "~2.5.2", | "jasmine-core": "~2.5.2", | ||||
"jasmine-sinon": "^0.4.0", | "jasmine-sinon": "^0.4.0", | ||||
"jsdoc": "~3.5.5", | |||||
"jsdoc": "^3.5.5", | |||||
"karma": "^2.0.2", | "karma": "^2.0.2", | ||||
"karma-coverage": "*", | "karma-coverage": "*", | ||||
"karma-jasmine": "^1.1.2", | "karma-jasmine": "^1.1.2", |