mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
UI: add GalaxyApp to base_panels.mako; add requirejs i18n plugin and nls/zh, nls/ja locale files, wire into _l client localizer, remove previous localization cruft; remove reliance on history_panel.mako
This commit is contained in:
@@ -1,33 +1,44 @@
|
||||
define([
|
||||
'mvc/user/user-model',
|
||||
'utils/metrics-logger',
|
||||
'utils/add-logging'
|
||||
], function( userModel, metricsLogger, addLogging ){
|
||||
'utils/add-logging',
|
||||
'utils/localization'
|
||||
], function( userModel, metricsLogger, addLogging, localize ){
|
||||
// ============================================================================
|
||||
/**
|
||||
*
|
||||
/** Base galaxy client-side application.
|
||||
* Iniitializes:
|
||||
* logger : the logger/metrics-logger
|
||||
* localize : the string localizer
|
||||
* config : the current configuration (any k/v in
|
||||
* universe_wsgi.ini available from the configuration API)
|
||||
* user : the current user (as a mvc/user/user-model)
|
||||
*/
|
||||
function GalaxyApp( options ){
|
||||
var self = this;
|
||||
return self._init( options || {} );
|
||||
}
|
||||
// add logging shortcuts for this object
|
||||
addLogging( GalaxyApp, 'GalaxyApp' );
|
||||
|
||||
/** */
|
||||
/** default options */
|
||||
GalaxyApp.defaultOptions = {
|
||||
/** root url of this app */
|
||||
// move to self.root?
|
||||
root : '/'
|
||||
};
|
||||
|
||||
/** */
|
||||
/** initalize options and sub-components */
|
||||
GalaxyApp.prototype._init = function init( options ){
|
||||
var self = this;
|
||||
|
||||
self._processOptions( options );
|
||||
self.debug( 'GalaxyApp.options: ', self.options );
|
||||
|
||||
self._initLogger( options.loggerOptions || {} );
|
||||
self.debug( 'GalaxyApp.logger: ', self.logger );
|
||||
|
||||
self._processOptions( options );
|
||||
self.debug( 'GalaxyApp.options: ', self.options );
|
||||
self._initLocale();
|
||||
self.debug( 'GalaxyApp.localize: ', self.localize );
|
||||
|
||||
self.config = options.config || {};
|
||||
self.debug( 'GalaxyApp.config: ', self.config );
|
||||
@@ -38,7 +49,7 @@ GalaxyApp.prototype._init = function init( options ){
|
||||
return self;
|
||||
};
|
||||
|
||||
/** */
|
||||
/** add an option from options if the key matches an option in defaultOptions */
|
||||
GalaxyApp.prototype._processOptions = function _processOptions( options ){
|
||||
var self = this,
|
||||
defaults = GalaxyApp.defaultOptions;
|
||||
@@ -53,7 +64,7 @@ GalaxyApp.prototype._processOptions = function _processOptions( options ){
|
||||
return self;
|
||||
};
|
||||
|
||||
/** */
|
||||
/** set up the current user as a Backbone model (mvc/user/user-model) */
|
||||
GalaxyApp.prototype._initUser = function _initUser( userJSON ){
|
||||
var self = this;
|
||||
self.debug( '_initUser:', userJSON );
|
||||
@@ -61,7 +72,7 @@ GalaxyApp.prototype._initUser = function _initUser( userJSON ){
|
||||
return self;
|
||||
};
|
||||
|
||||
/** */
|
||||
/** set up the metrics logger (utils/metrics-logger) and pass loggerOptions */
|
||||
GalaxyApp.prototype._initLogger = function _initLogger( loggerOptions ){
|
||||
var self = this;
|
||||
self.debug( '_initLogger:', loggerOptions );
|
||||
@@ -69,7 +80,17 @@ GalaxyApp.prototype._initLogger = function _initLogger( loggerOptions ){
|
||||
return self;
|
||||
};
|
||||
|
||||
/** */
|
||||
/** add the localize fn to this object and the window namespace (as '_l') */
|
||||
GalaxyApp.prototype._initLocale = function _initLocale( options ){
|
||||
var self = this;
|
||||
self.debug( '_initLocale:', options );
|
||||
self.localize = localize;
|
||||
// add to window as global shortened alias
|
||||
window._l = self.localize;
|
||||
return self;
|
||||
};
|
||||
|
||||
/** string rep */
|
||||
GalaxyApp.prototype.toString = function toString(){
|
||||
var userEmail = this.user.get( 'email' ) || '(anonymous)';
|
||||
return 'GalaxyApp(' + userEmail + ')';
|
||||
|
||||
@@ -0,0 +1,183 @@
|
||||
/**
|
||||
* @license RequireJS i18n 2.0.4 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
|
||||
* Available via the MIT or new BSD license.
|
||||
* see: http://github.com/requirejs/i18n for details
|
||||
*/
|
||||
/*jslint regexp: true */
|
||||
/*global require: false, navigator: false, define: false */
|
||||
|
||||
/**
|
||||
* This plugin handles i18n! prefixed modules. It does the following:
|
||||
*
|
||||
* 1) A regular module can have a dependency on an i18n bundle, but the regular
|
||||
* module does not want to specify what locale to load. So it just specifies
|
||||
* the top-level bundle, like "i18n!nls/colors".
|
||||
*
|
||||
* This plugin will load the i18n bundle at nls/colors, see that it is a root/master
|
||||
* bundle since it does not have a locale in its name. It will then try to find
|
||||
* the best match locale available in that master bundle, then request all the
|
||||
* locale pieces for that best match locale. For instance, if the locale is "en-us",
|
||||
* then the plugin will ask for the "en-us", "en" and "root" bundles to be loaded
|
||||
* (but only if they are specified on the master bundle).
|
||||
*
|
||||
* Once all the bundles for the locale pieces load, then it mixes in all those
|
||||
* locale pieces into each other, then finally sets the context.defined value
|
||||
* for the nls/colors bundle to be that mixed in locale.
|
||||
*
|
||||
* 2) A regular module specifies a specific locale to load. For instance,
|
||||
* i18n!nls/fr-fr/colors. In this case, the plugin needs to load the master bundle
|
||||
* first, at nls/colors, then figure out what the best match locale is for fr-fr,
|
||||
* since maybe only fr or just root is defined for that locale. Once that best
|
||||
* fit is found, all of its locale pieces need to have their bundles loaded.
|
||||
*
|
||||
* Once all the bundles for the locale pieces load, then it mixes in all those
|
||||
* locale pieces into each other, then finally sets the context.defined value
|
||||
* for the nls/fr-fr/colors bundle to be that mixed in locale.
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
//regexp for reconstructing the master bundle name from parts of the regexp match
|
||||
//nlsRegExp.exec("foo/bar/baz/nls/en-ca/foo") gives:
|
||||
//["foo/bar/baz/nls/en-ca/foo", "foo/bar/baz/nls/", "/", "/", "en-ca", "foo"]
|
||||
//nlsRegExp.exec("foo/bar/baz/nls/foo") gives:
|
||||
//["foo/bar/baz/nls/foo", "foo/bar/baz/nls/", "/", "/", "foo", ""]
|
||||
//so, if match[5] is blank, it means this is the top bundle definition.
|
||||
var nlsRegExp = /(^.*(^|\/)nls(\/|$))([^\/]*)\/?([^\/]*)/;
|
||||
|
||||
//Helper function to avoid repeating code. Lots of arguments in the
|
||||
//desire to stay functional and support RequireJS contexts without having
|
||||
//to know about the RequireJS contexts.
|
||||
function addPart(locale, master, needed, toLoad, prefix, suffix) {
|
||||
if (master[locale]) {
|
||||
needed.push(locale);
|
||||
if (master[locale] === true || master[locale] === 1) {
|
||||
toLoad.push(prefix + locale + '/' + suffix);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function addIfExists(req, locale, toLoad, prefix, suffix) {
|
||||
var fullName = prefix + locale + '/' + suffix;
|
||||
if (require._fileExists(req.toUrl(fullName + '.js'))) {
|
||||
toLoad.push(fullName);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Simple function to mix in properties from source into target,
|
||||
* but only if target does not already have a property of the same name.
|
||||
* This is not robust in IE for transferring methods that match
|
||||
* Object.prototype names, but the uses of mixin here seem unlikely to
|
||||
* trigger a problem related to that.
|
||||
*/
|
||||
function mixin(target, source, force) {
|
||||
var prop;
|
||||
for (prop in source) {
|
||||
if (source.hasOwnProperty(prop) && (!target.hasOwnProperty(prop) || force)) {
|
||||
target[prop] = source[prop];
|
||||
} else if (typeof source[prop] === 'object') {
|
||||
if (!target[prop] && source[prop]) {
|
||||
target[prop] = {};
|
||||
}
|
||||
mixin(target[prop], source[prop], force);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
define(['module'], function (module) {
|
||||
var masterConfig = module.config ? module.config() : {};
|
||||
|
||||
return {
|
||||
version: '2.0.4',
|
||||
/**
|
||||
* Called when a dependency needs to be loaded.
|
||||
*/
|
||||
load: function (name, req, onLoad, config) {
|
||||
config = config || {};
|
||||
|
||||
if (config.locale) {
|
||||
masterConfig.locale = config.locale;
|
||||
}
|
||||
|
||||
var masterName,
|
||||
match = nlsRegExp.exec(name),
|
||||
prefix = match[1],
|
||||
locale = match[4],
|
||||
suffix = match[5],
|
||||
parts = locale.split("-"),
|
||||
toLoad = [],
|
||||
value = {},
|
||||
i, part, current = "";
|
||||
|
||||
//If match[5] is blank, it means this is the top bundle definition,
|
||||
//so it does not have to be handled. Locale-specific requests
|
||||
//will have a match[4] value but no match[5]
|
||||
if (match[5]) {
|
||||
//locale-specific bundle
|
||||
prefix = match[1];
|
||||
masterName = prefix + suffix;
|
||||
} else {
|
||||
//Top-level bundle.
|
||||
masterName = name;
|
||||
suffix = match[4];
|
||||
locale = masterConfig.locale;
|
||||
if (!locale) {
|
||||
locale = masterConfig.locale =
|
||||
typeof navigator === "undefined" ? "root" :
|
||||
(navigator.language ||
|
||||
navigator.userLanguage || "root").toLowerCase();
|
||||
}
|
||||
parts = locale.split("-");
|
||||
}
|
||||
|
||||
if (config.isBuild) {
|
||||
//Check for existence of all locale possible files and
|
||||
//require them if exist.
|
||||
toLoad.push(masterName);
|
||||
addIfExists(req, "root", toLoad, prefix, suffix);
|
||||
for (i = 0; i < parts.length; i++) {
|
||||
part = parts[i];
|
||||
current += (current ? "-" : "") + part;
|
||||
addIfExists(req, current, toLoad, prefix, suffix);
|
||||
}
|
||||
|
||||
req(toLoad, function () {
|
||||
onLoad();
|
||||
});
|
||||
} else {
|
||||
//First, fetch the master bundle, it knows what locales are available.
|
||||
req([masterName], function (master) {
|
||||
//Figure out the best fit
|
||||
var needed = [],
|
||||
part;
|
||||
|
||||
//Always allow for root, then do the rest of the locale parts.
|
||||
addPart("root", master, needed, toLoad, prefix, suffix);
|
||||
for (i = 0; i < parts.length; i++) {
|
||||
part = parts[i];
|
||||
current += (current ? "-" : "") + part;
|
||||
addPart(current, master, needed, toLoad, prefix, suffix);
|
||||
}
|
||||
|
||||
//Load all the parts missing.
|
||||
req(toLoad, function () {
|
||||
var i, partBundle, part;
|
||||
for (i = needed.length - 1; i > -1 && needed[i]; i--) {
|
||||
part = needed[i];
|
||||
partBundle = master[part];
|
||||
if (partBundle === true || partBundle === 1) {
|
||||
partBundle = req(prefix + part + '/' + suffix);
|
||||
}
|
||||
mixin(value, partBundle);
|
||||
}
|
||||
|
||||
//All done, notify the loader.
|
||||
onLoad(value);
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
}());
|
||||
@@ -1,7 +1,8 @@
|
||||
define([
|
||||
"mvc/dataset/hda-model",
|
||||
"mvc/base-mvc"
|
||||
], function( hdaModel, baseMVC ){
|
||||
"mvc/base-mvc",
|
||||
"utils/localization"
|
||||
], function( hdaModel, baseMVC, _l ){
|
||||
/* global Backbone */
|
||||
//==============================================================================
|
||||
/** @class Read only view for HistoryDatasetAssociation.
|
||||
|
||||
@@ -2,8 +2,9 @@ define([
|
||||
"mvc/dataset/hda-model",
|
||||
"mvc/dataset/hda-base",
|
||||
"mvc/tags",
|
||||
"mvc/annotations"
|
||||
], function( hdaModel, hdaBase, tagsMod, annotationsMod ){
|
||||
"mvc/annotations",
|
||||
"utils/localization"
|
||||
], function( hdaModel, hdaBase, tagsMod, annotationsMod, _l ){
|
||||
//==============================================================================
|
||||
/** @class Editing view for HistoryDatasetAssociation.
|
||||
* @name HDAEditView
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
define([
|
||||
"mvc/base-mvc"
|
||||
], function( baseMVC ){
|
||||
"mvc/base-mvc",
|
||||
"utils/localization"
|
||||
], function( baseMVC, _l ){
|
||||
//==============================================================================
|
||||
/** @class (HDA) model for a Galaxy dataset
|
||||
* related to a history.
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
define([
|
||||
"mvc/dataset/hda-model",
|
||||
"mvc/dataset/hda-base",
|
||||
"mvc/history/readonly-history-panel"
|
||||
], function( hdaModel, hdaBase, readonlyPanel ){
|
||||
"mvc/history/readonly-history-panel",
|
||||
"utils/localization"
|
||||
], function( hdaModel, hdaBase, readonlyPanel, _l ){
|
||||
/* =============================================================================
|
||||
TODO:
|
||||
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
define([
|
||||
"mvc/dataset/hda-edit",
|
||||
"mvc/history/history-panel",
|
||||
"mvc/base-mvc"
|
||||
], function( hdaEdit, hpanel, baseMVC ){
|
||||
"mvc/base-mvc",
|
||||
"utils/localization"
|
||||
], function( hdaEdit, hpanel, baseMVC, _l ){
|
||||
// ============================================================================
|
||||
/** session storage for history panel preferences (and to maintain state)
|
||||
*/
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
define([
|
||||
"mvc/dataset/hda-model",
|
||||
"mvc/base-mvc"
|
||||
], function( hdaModel, baseMVC ){
|
||||
"mvc/base-mvc",
|
||||
"utils/localization"
|
||||
], function( hdaModel, baseMVC, _l ){
|
||||
//==============================================================================
|
||||
/** @class Model for a Galaxy history resource - both a record of user
|
||||
* tool use and a collection of the datasets those tools produced.
|
||||
|
||||
@@ -3,8 +3,9 @@ define([
|
||||
"mvc/dataset/hda-edit",
|
||||
"mvc/history/readonly-history-panel",
|
||||
"mvc/tags",
|
||||
"mvc/annotations"
|
||||
], function( hdaModel, hdaEdit, readonlyPanel, tagsMod, annotationsMod ){
|
||||
"mvc/annotations",
|
||||
"utils/localization"
|
||||
], function( hdaModel, hdaEdit, readonlyPanel, tagsMod, annotationsMod, _l ){
|
||||
/* =============================================================================
|
||||
TODO:
|
||||
|
||||
|
||||
@@ -2,8 +2,9 @@ define([
|
||||
"mvc/history/history-model",
|
||||
"mvc/dataset/hda-base",
|
||||
"mvc/user/user-model",
|
||||
"mvc/base-mvc"
|
||||
], function( historyModel, hdaBase, userModel, baseMVC ){
|
||||
"mvc/base-mvc",
|
||||
"utils/localization"
|
||||
], function( historyModel, hdaBase, userModel, baseMVC, _l ){
|
||||
// ============================================================================
|
||||
/** session storage for individual history preferences */
|
||||
var HistoryPrefs = baseMVC.SessionStorageModel.extend({
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
define([
|
||||
"mvc/base-mvc"
|
||||
], function( baseMVC ){
|
||||
"mvc/base-mvc",
|
||||
"utils/localization"
|
||||
], function( baseMVC, _l ){
|
||||
//==============================================================================
|
||||
/** @class Model for a Galaxy user (including anonymous users).
|
||||
* @name User
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
define([
|
||||
"mvc/base-mvc"
|
||||
], function( baseMVC ){
|
||||
"mvc/base-mvc",
|
||||
"utils/localization"
|
||||
], function( baseMVC, _l ){
|
||||
//==============================================================================
|
||||
/** @class View to display a user's disk/storage usage
|
||||
* either as a progress bar representing the percentage of a quota used
|
||||
|
||||
@@ -0,0 +1,389 @@
|
||||
/** ja localization */
|
||||
define({
|
||||
|
||||
// templates/history/options.mako:24
|
||||
"Are you sure you want to delete the current history?" :
|
||||
"現在のヒストリーを消すことに同意しますか?",
|
||||
|
||||
// templates/root/history.mako:38
|
||||
"collapse all" :
|
||||
"すべてをおりたたむ",
|
||||
|
||||
// templates/dataset/edit_attributes.mako:2
|
||||
"History Item Attributes" :
|
||||
"ヒストリーアイテム変数",
|
||||
|
||||
// templates/dataset/edit_attributes.mako:19
|
||||
"Edit Attributes" :
|
||||
"変数を編集する",
|
||||
|
||||
// templates/dataset/edit_attributes.mako:64
|
||||
"This will inspect the dataset and attempt to correct the above column values if they are not accurate." :
|
||||
"これはデータセットを調査して上記のカラムの値を修正することを試みます。",
|
||||
|
||||
// templates/dataset/edit_attributes.mako:68
|
||||
"Required metadata values are missing. Some of these values may not be editable by the user. Selecting \"Auto-detect\" will attempt to fix these values." :
|
||||
"必要なメタデータの値が不明です。それらのいくつかの値はユーザによって編集可能にはなっていません。「自動判定」を選択するとそれらの値をただしくできるかもしれません。",
|
||||
|
||||
// templates/dataset/edit_attributes.mako:78
|
||||
"Convert to new format" :
|
||||
"新しいフォーマットに変換する",
|
||||
|
||||
// templates/dataset/edit_attributes.mako:84
|
||||
"Convert to" :
|
||||
"変換する",
|
||||
|
||||
// templates/dataset/edit_attributes.mako:95
|
||||
"This will create a new dataset with the contents of this dataset converted to a new format." :
|
||||
"新しいフォーマットに変換したデータセットを新規作成します。",
|
||||
|
||||
// templates/dataset/edit_attributes.mako:111
|
||||
"Change data type" :
|
||||
"データタイプを変更する",
|
||||
|
||||
// templates/dataset/edit_attributes.mako:117
|
||||
"New Type" :
|
||||
"新しいタイプ",
|
||||
|
||||
// templates/dataset/edit_attributes.mako:124
|
||||
"This will change the datatype of the existing dataset but <i>not</i> modify its contents. Use this if Galaxy has incorrectly guessed the type of your dataset." :
|
||||
"これは既存のデータセットのデータタイプを変更します。しかしデータセットの中身は変更しません。データセットのタイプの誤判定があったときに使用します。",
|
||||
|
||||
// templates/dataset/edit_attributes.mako:137
|
||||
"Copy History Item" :
|
||||
"ヒストリーアイテムをコピーする",
|
||||
|
||||
// templates/history/list.mako:3
|
||||
"Your saved histories" :
|
||||
"保存したヒストリー",
|
||||
|
||||
// templates/history/list.mako:19
|
||||
"Stored Histories" :
|
||||
"格納してあるヒストリー",
|
||||
|
||||
// templates/history/list.mako:21 templates/root/history.mako:239
|
||||
"hide deleted" :
|
||||
"削除したヒストリーを隠す",
|
||||
|
||||
// templates/history/list.mako:23
|
||||
"show deleted" :
|
||||
"削除したヒストリーを表示する",
|
||||
|
||||
// templates/history/list.mako:27
|
||||
"Name" :
|
||||
"名前",
|
||||
|
||||
// templates/history/list.mako:27
|
||||
"Size" :
|
||||
"サイズ",
|
||||
|
||||
// templates/history/list.mako:27
|
||||
"Last modified" :
|
||||
"最終更新日",
|
||||
|
||||
// templates/history/list.mako:27
|
||||
"Actions" :
|
||||
"操作",
|
||||
|
||||
// templates/history/list.mako:45
|
||||
"rename" :
|
||||
"名称変更する",
|
||||
|
||||
// templates/history/list.mako:46
|
||||
"switch to" :
|
||||
"変更する",
|
||||
|
||||
// templates/history/list.mako:47
|
||||
"delete" :
|
||||
"削除する",
|
||||
|
||||
// templates/history/list.mako:49
|
||||
"undelete" :
|
||||
"削除から戻す",
|
||||
|
||||
// templates/history/list.mako:55
|
||||
"Action" :
|
||||
"操作",
|
||||
|
||||
// templates/history/list.mako:56 templates/history/options.mako:21
|
||||
"Share" :
|
||||
"共有",
|
||||
|
||||
// templates/history/list.mako:56 templates/history/options.mako:15
|
||||
"Rename" :
|
||||
"名称変更する",
|
||||
|
||||
// templates/history/list.mako:56 templates/history/options.mako:24
|
||||
"Delete" :
|
||||
"削除する",
|
||||
|
||||
// templates/history/list.mako:58
|
||||
"Undelete" :
|
||||
"削除から戻す",
|
||||
|
||||
// templates/history/list.mako:65
|
||||
"You have no stored histories" :
|
||||
"保管してあるヒストリーはありません",
|
||||
|
||||
// templates/history/options.mako:5
|
||||
"History Options" :
|
||||
"ヒストリーオプション",
|
||||
|
||||
// templates/history/options.mako:9
|
||||
"You must be " :
|
||||
"あなたは",
|
||||
|
||||
// templates/history/options.mako:9
|
||||
"logged in" :
|
||||
"ログイン",
|
||||
|
||||
// templates/history/options.mako:9
|
||||
" to store or switch histories." :
|
||||
"しないとヒストリーの保管や変更ができません。",
|
||||
|
||||
// templates/history/options.mako:15
|
||||
// python-format
|
||||
" current history (stored as \"%s\")" :
|
||||
" 現在のヒストリー(\"%s\" として保管されています)",
|
||||
|
||||
// templates/history/options.mako:16
|
||||
"List" :
|
||||
"リストする",
|
||||
|
||||
// templates/history/options.mako:16
|
||||
" previously stored histories" :
|
||||
" 以前に保管したヒストリー",
|
||||
|
||||
// templates/history/options.mako:18
|
||||
"Create" :
|
||||
"作成する",
|
||||
|
||||
// templates/history/options.mako:18
|
||||
" a new empty history" :
|
||||
" 新規ヒストリー",
|
||||
|
||||
// templates/history/options.mako:20
|
||||
"Construct workflow" :
|
||||
"ワークフローを構築する",
|
||||
|
||||
// templates/history/options.mako:20
|
||||
" from the current history" :
|
||||
" 現在のヒストリーから",
|
||||
|
||||
// templates/history/options.mako:21 templates/history/options.mako:24
|
||||
" current history" :
|
||||
" 現在のヒストリー",
|
||||
|
||||
// templates/history/options.mako:23
|
||||
"Show deleted" :
|
||||
"削除したヒストリーを表示する",
|
||||
|
||||
// templates/history/options.mako:23
|
||||
" datasets in history" :
|
||||
" ヒストリーのデータセット",
|
||||
|
||||
// templates/history/rename.mako:3 templates/history/rename.mako:6
|
||||
"Rename History" :
|
||||
"ヒストリーの名称変更をする",
|
||||
|
||||
|
||||
"Rename Histories" :
|
||||
"名称変更する",
|
||||
|
||||
"Perform Action" :
|
||||
"操作を実行する",
|
||||
|
||||
"Submit" :
|
||||
"登録する",
|
||||
|
||||
|
||||
|
||||
// templates/history/rename.mako:10
|
||||
"Current Name" :
|
||||
"現在の名称",
|
||||
|
||||
// templates/history/rename.mako:10
|
||||
"New Name" :
|
||||
"新しい名称",
|
||||
|
||||
// templates/history/share.mako:3
|
||||
"Share histories" :
|
||||
"ヒストリーを共有する",
|
||||
|
||||
// templates/history/share.mako:6
|
||||
"Share Histories" :
|
||||
"ヒストリーを共有する",
|
||||
|
||||
// templates/history/share.mako:9
|
||||
"History Name:" :
|
||||
"ヒストリー名",
|
||||
|
||||
// templates/history/share.mako:9
|
||||
"Number of Datasets:" :
|
||||
"データセット数",
|
||||
|
||||
// templates/history/share.mako:9
|
||||
"Share Link" :
|
||||
"共有リンク",
|
||||
|
||||
// templates/history/share.mako:15
|
||||
"This history contains no data." :
|
||||
"このヒストリーにはデータがありません。",
|
||||
|
||||
// templates/history/share.mako:21
|
||||
"copy link to share" :
|
||||
"共有リンクをコピーする",
|
||||
|
||||
// templates/history/share.mako:24
|
||||
"Email of User to share with:" :
|
||||
"共有したいユーザのEメール:",
|
||||
//"つぎのヒストリーを共有するユーザのEメールアドレス:"
|
||||
|
||||
// templates/root/history.mako:7
|
||||
"Galaxy History" :
|
||||
"Galaxy ヒストリー",
|
||||
|
||||
// templates/root/history.mako:237
|
||||
"refresh" :
|
||||
"リフレッシュ",
|
||||
|
||||
// templates/root/history.mako:245
|
||||
"You are currently viewing a deleted history!" :
|
||||
"消去したヒストリーをみています。",
|
||||
|
||||
// templates/root/history.mako:289
|
||||
"Your history is empty. Click 'Get Data' on the left pane to start" :
|
||||
"ヒストリーは空です。解析をはじめるには、左パネルの 'データ取得' をクリック",
|
||||
|
||||
// templates/root/history_common.mako:41
|
||||
"Job is waiting to run" :
|
||||
"ジョブは実行待ちです",
|
||||
|
||||
// templates/root/history_common.mako:43
|
||||
"Job is currently running" :
|
||||
"ジョブは実行中です",
|
||||
|
||||
// templates/root/history_common.mako:46
|
||||
"An error occurred running this job: " :
|
||||
"このジョブの実行中に発生したエラー: ",
|
||||
|
||||
// templates/root/history_common.mako:47
|
||||
"report this error" :
|
||||
"このエラーを報告する",
|
||||
|
||||
// templates/root/history_common.mako:54
|
||||
"No data: " :
|
||||
"データ無し: ",
|
||||
|
||||
// templates/root/history_common.mako:58
|
||||
"format: " :
|
||||
"フォーマット: ",
|
||||
|
||||
// templates/root/history_common.mako:59
|
||||
"database: " :
|
||||
"データベース: ",
|
||||
|
||||
// templates/root/history_common.mako:66 templates/root/masthead.mako:20
|
||||
"Info: " :
|
||||
"情報: ",
|
||||
|
||||
// templates/root/history_common.mako:85
|
||||
// python-format
|
||||
"Error: unknown dataset state \"%s\"." :
|
||||
"エラー: 不明なデータ状態 \"%s\"。",
|
||||
|
||||
// templates/root/index.mako:32
|
||||
"Options" :
|
||||
"オプション",
|
||||
|
||||
// templates/root/index.mako:34
|
||||
"History" :
|
||||
"ヒストリー",
|
||||
|
||||
// templates/root/masthead.mako:20
|
||||
"report bugs" :
|
||||
"バグを報告する",
|
||||
|
||||
// templates/root/masthead.mako:21
|
||||
"wiki" :
|
||||
"wiki",
|
||||
|
||||
// templates/root/masthead.mako:22
|
||||
"screencasts" :
|
||||
"スクリーンキャスト",
|
||||
|
||||
// templates/root/masthead.mako:23
|
||||
"blog" :
|
||||
"ブログ",
|
||||
|
||||
// templates/root/masthead.mako:31
|
||||
// python-format
|
||||
"Logged in as %s: " :
|
||||
"%s としてログイン中: ",
|
||||
|
||||
// templates/root/masthead.mako:31
|
||||
"manage" :
|
||||
"管理",
|
||||
|
||||
// templates/root/masthead.mako:32
|
||||
"logout" :
|
||||
"ログアウト",
|
||||
|
||||
// templates/root/masthead.mako:34
|
||||
"Account: " :
|
||||
"アカウント: ",
|
||||
|
||||
// templates/root/masthead.mako:34
|
||||
"create" :
|
||||
"作成",
|
||||
|
||||
// templates/root/masthead.mako:35
|
||||
"login" :
|
||||
"ログイン",
|
||||
|
||||
// templates/root/tool_menu.mako:52
|
||||
"Galaxy Tools" :
|
||||
"Galaxy ツール群",
|
||||
|
||||
// templates/root/tool_menu.mako:129
|
||||
"Workflow" :
|
||||
"ワークフロー",
|
||||
|
||||
// templates/root/tool_menu.mako:134
|
||||
"Manage" :
|
||||
"管理",
|
||||
|
||||
// templates/root/tool_menu.mako:134
|
||||
"workflows" :
|
||||
"ワークフロー",
|
||||
|
||||
// templates/user/index.mako:2 templates/user/index.mako:4
|
||||
"Account settings" :
|
||||
"アカウント設定",
|
||||
|
||||
// templates/user/index.mako:7
|
||||
// python-format
|
||||
"You are currently logged in as %s." :
|
||||
"%s としてログイン中。",
|
||||
|
||||
// templates/user/index.mako:9
|
||||
"Change your password" :
|
||||
"パスワード変更",
|
||||
|
||||
// templates/user/index.mako:10
|
||||
"Update your email address" :
|
||||
"メールアドレス変更",
|
||||
|
||||
// templates/user/index.mako:11
|
||||
"Logout" :
|
||||
"ログアウト",
|
||||
|
||||
// templates/user/index.mako:16
|
||||
"Login" :
|
||||
"ログイン",
|
||||
|
||||
// templates/user/index.mako:17
|
||||
"Create new account" :
|
||||
"新規アカウントを作成する"
|
||||
|
||||
})
|
||||
@@ -0,0 +1,517 @@
|
||||
/** en/main localization hash - for use with requirejs' i18n plugin */
|
||||
define({
|
||||
root : {
|
||||
// ---------------------------------------------------------------------------- localized
|
||||
"history" :
|
||||
false,
|
||||
|
||||
// templates/history/options.mako:24
|
||||
"Are you sure you want to delete the current history?" :
|
||||
false,
|
||||
|
||||
// templates/root/history.mako:38
|
||||
"collapse all" :
|
||||
false,
|
||||
|
||||
// templates/dataset/edit_attributes.mako:2
|
||||
"History Item Attributes" :
|
||||
false,
|
||||
|
||||
// templates/dataset/edit_attributes.mako:19
|
||||
"Edit Attributes" :
|
||||
false,
|
||||
|
||||
// templates/dataset/edit_attributes.mako:64
|
||||
"This will inspect the dataset and attempt to correct the above column values if they are not accurate." :
|
||||
false,
|
||||
|
||||
// templates/dataset/edit_attributes.mako:68
|
||||
"Required metadata values are missing. Some of these values may not be editable by the user. Selecting \"Auto-detect\" will attempt to fix these values." :
|
||||
false,
|
||||
|
||||
// templates/dataset/edit_attributes.mako:78
|
||||
"Convert to new format" :
|
||||
false,
|
||||
|
||||
// templates/dataset/edit_attributes.mako:84
|
||||
"Convert to" :
|
||||
false,
|
||||
|
||||
// templates/dataset/edit_attributes.mako:95
|
||||
"This will create a new dataset with the contents of this dataset converted to a new format." :
|
||||
false,
|
||||
|
||||
// templates/dataset/edit_attributes.mako:111
|
||||
"Change data type" :
|
||||
false,
|
||||
|
||||
// templates/dataset/edit_attributes.mako:117
|
||||
"New Type" :
|
||||
false,
|
||||
|
||||
// templates/dataset/edit_attributes.mako:124
|
||||
"This will change the datatype of the existing dataset but <i>not</i> modify its contents. Use this if Galaxy has incorrectly guessed the type of your dataset." :
|
||||
false,
|
||||
|
||||
// templates/dataset/edit_attributes.mako:137
|
||||
"Copy History Item" :
|
||||
false,
|
||||
|
||||
// templates/history/list.mako:3
|
||||
"Your saved histories" :
|
||||
false,
|
||||
|
||||
// templates/history/list.mako:19
|
||||
"Stored Histories" :
|
||||
false,
|
||||
|
||||
// templates/history/list.mako:21 templates/root/history.mako:239
|
||||
"hide deleted" :
|
||||
false,
|
||||
|
||||
// templates/history/list.mako:23
|
||||
"show deleted" :
|
||||
false,
|
||||
|
||||
// templates/history/list.mako:27
|
||||
"Name" :
|
||||
false,
|
||||
|
||||
// templates/history/list.mako:27
|
||||
"Size" :
|
||||
false,
|
||||
|
||||
// templates/history/list.mako:27
|
||||
"Last modified" :
|
||||
false,
|
||||
|
||||
// templates/history/list.mako:27
|
||||
"Actions" :
|
||||
false,
|
||||
|
||||
// templates/history/list.mako:45
|
||||
"rename" :
|
||||
false,
|
||||
|
||||
// templates/history/list.mako:46
|
||||
"switch to" :
|
||||
false,
|
||||
|
||||
// templates/history/list.mako:47
|
||||
"delete" :
|
||||
false,
|
||||
|
||||
// templates/history/list.mako:49
|
||||
"undelete" :
|
||||
false,
|
||||
|
||||
// templates/history/list.mako:55
|
||||
"Action" :
|
||||
false,
|
||||
|
||||
// templates/history/list.mako:56 templates/history/options.mako:21
|
||||
"Share" :
|
||||
false,
|
||||
|
||||
// templates/history/list.mako:56 templates/history/options.mako:15
|
||||
"Rename" :
|
||||
false,
|
||||
|
||||
// templates/history/list.mako:56 templates/history/options.mako:24
|
||||
"Delete" :
|
||||
false,
|
||||
|
||||
// templates/history/list.mako:58
|
||||
"Undelete" :
|
||||
false,
|
||||
|
||||
// templates/history/list.mako:65
|
||||
"You have no stored histories" :
|
||||
false,
|
||||
|
||||
// templates/history/options.mako:5
|
||||
"History Options" :
|
||||
false,
|
||||
|
||||
// templates/history/options.mako:9
|
||||
"You must be " :
|
||||
false,
|
||||
|
||||
// templates/history/options.mako:9
|
||||
"logged in" :
|
||||
false,
|
||||
|
||||
// templates/history/options.mako:9
|
||||
" to store or switch histories." :
|
||||
false,
|
||||
|
||||
// templates/history/options.mako:15
|
||||
// python-format
|
||||
" current history (stored as \"%s\")" :
|
||||
false,
|
||||
|
||||
// templates/history/options.mako:16
|
||||
"List" :
|
||||
false,
|
||||
|
||||
// templates/history/options.mako:16
|
||||
" previously stored histories" :
|
||||
false,
|
||||
|
||||
// templates/history/options.mako:18
|
||||
"Create" :
|
||||
false,
|
||||
|
||||
// templates/history/options.mako:18
|
||||
" a new empty history" :
|
||||
false,
|
||||
|
||||
// templates/history/options.mako:20
|
||||
"Construct workflow" :
|
||||
false,
|
||||
|
||||
// templates/history/options.mako:20
|
||||
" from the current history" :
|
||||
false,
|
||||
|
||||
// templates/history/options.mako:21 templates/history/options.mako:24
|
||||
" current history" :
|
||||
false,
|
||||
|
||||
// templates/history/options.mako:23
|
||||
"Show deleted" :
|
||||
false,
|
||||
|
||||
// templates/history/options.mako:23
|
||||
" datasets in history" :
|
||||
false,
|
||||
|
||||
// templates/history/rename.mako:3 templates/history/rename.mako:6
|
||||
"Rename History" :
|
||||
false,
|
||||
|
||||
|
||||
"Rename Histories" :
|
||||
false,
|
||||
|
||||
"Perform Action" :
|
||||
false,
|
||||
|
||||
"Submit" :
|
||||
false,
|
||||
|
||||
// templates/history/rename.mako:10
|
||||
"Current Name" :
|
||||
false,
|
||||
|
||||
// templates/history/rename.mako:10
|
||||
"New Name" :
|
||||
false,
|
||||
|
||||
// templates/history/share.mako:3
|
||||
"Share histories" :
|
||||
false,
|
||||
|
||||
// templates/history/share.mako:6
|
||||
"Share Histories" :
|
||||
false,
|
||||
|
||||
// templates/history/share.mako:9
|
||||
"History Name:" :
|
||||
false,
|
||||
|
||||
// templates/history/share.mako:9
|
||||
"Number of Datasets:" :
|
||||
false,
|
||||
|
||||
// templates/history/share.mako:9
|
||||
"Share Link" :
|
||||
false,
|
||||
|
||||
// templates/history/share.mako:15
|
||||
"This history contains no data." :
|
||||
false,
|
||||
|
||||
// templates/history/share.mako:21
|
||||
"copy link to share" :
|
||||
false,
|
||||
|
||||
// templates/history/share.mako:24
|
||||
"Email of User to share with:" :
|
||||
false,
|
||||
|
||||
// templates/root/history.mako:7
|
||||
"Galaxy History" :
|
||||
false,
|
||||
|
||||
// templates/root/history.mako:237
|
||||
"refresh" :
|
||||
false,
|
||||
|
||||
// templates/root/history.mako:245
|
||||
"You are currently viewing a deleted history!" :
|
||||
false,
|
||||
|
||||
// templates/root/history.mako:289
|
||||
"Your history is empty. Click 'Get Data' on the left pane to start" :
|
||||
false,
|
||||
|
||||
// templates/root/history_common.mako:41
|
||||
"Job is waiting to run" :
|
||||
false,
|
||||
|
||||
// templates/root/history_common.mako:43
|
||||
"Job is currently running" :
|
||||
false,
|
||||
|
||||
// templates/root/history_common.mako:46
|
||||
"An error occurred running this job: " :
|
||||
false,
|
||||
|
||||
// templates/root/history_common.mako:47
|
||||
"report this error" :
|
||||
false,
|
||||
|
||||
// templates/root/history_common.mako:54
|
||||
"No data: " :
|
||||
false,
|
||||
|
||||
// templates/root/history_common.mako:58
|
||||
"format: " :
|
||||
false,
|
||||
|
||||
// templates/root/history_common.mako:59
|
||||
"database: " :
|
||||
false,
|
||||
|
||||
// templates/root/history_common.mako:66 templates/root/masthead.mako:20
|
||||
"Info: " :
|
||||
false,
|
||||
|
||||
// templates/root/history_common.mako:85
|
||||
// python-format
|
||||
"Error: unknown dataset state \"%s\"." :
|
||||
false,
|
||||
|
||||
// templates/root/index.mako:32
|
||||
"Options" :
|
||||
false,
|
||||
|
||||
// templates/root/index.mako:34
|
||||
"History" :
|
||||
false,
|
||||
|
||||
// templates/root/masthead.mako:20
|
||||
"report bugs" :
|
||||
false,
|
||||
|
||||
// templates/root/masthead.mako:21
|
||||
"wiki" :
|
||||
false,
|
||||
|
||||
// templates/root/masthead.mako:22
|
||||
"screencasts" :
|
||||
false,
|
||||
|
||||
// templates/root/masthead.mako:23
|
||||
"blog" :
|
||||
false,
|
||||
|
||||
// templates/root/masthead.mako:31
|
||||
// python-format
|
||||
"Logged in as %s: " :
|
||||
false,
|
||||
|
||||
// templates/root/masthead.mako:31
|
||||
"manage" :
|
||||
false,
|
||||
|
||||
// templates/root/masthead.mako:32
|
||||
"logout" :
|
||||
false,
|
||||
|
||||
// templates/root/masthead.mako:34
|
||||
"Account: " :
|
||||
false,
|
||||
|
||||
// templates/root/masthead.mako:34
|
||||
"create" :
|
||||
false,
|
||||
|
||||
// templates/root/masthead.mako:35
|
||||
"login" :
|
||||
false,
|
||||
|
||||
// templates/root/tool_menu.mako:52
|
||||
"Galaxy Tools" :
|
||||
false,
|
||||
|
||||
// templates/root/tool_menu.mako:129
|
||||
"Workflow" :
|
||||
false,
|
||||
|
||||
// templates/root/tool_menu.mako:134
|
||||
"Manage" :
|
||||
false,
|
||||
|
||||
// templates/root/tool_menu.mako:134
|
||||
"workflows" :
|
||||
false,
|
||||
|
||||
// templates/user/index.mako:2 templates/user/index.mako:4
|
||||
"Account settings" :
|
||||
false,
|
||||
|
||||
// templates/user/index.mako:7
|
||||
// python-format
|
||||
"You are currently logged in as %s." :
|
||||
false,
|
||||
|
||||
// templates/user/index.mako:9
|
||||
"Change your password" :
|
||||
false,
|
||||
|
||||
// templates/user/index.mako:10
|
||||
"Update your email address" :
|
||||
false,
|
||||
|
||||
// templates/user/index.mako:11
|
||||
"Logout" :
|
||||
false,
|
||||
|
||||
// templates/user/index.mako:16
|
||||
"Login" :
|
||||
false,
|
||||
|
||||
// templates/user/index.mako:17
|
||||
"Create new account" :
|
||||
false,
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------------- need to be localized
|
||||
"anonymous user" :
|
||||
false,
|
||||
|
||||
"Using " :
|
||||
false,
|
||||
|
||||
"There was an error getting the data for this dataset" :
|
||||
false,
|
||||
|
||||
"This dataset has been deleted and removed from disk." :
|
||||
false,
|
||||
|
||||
"This dataset has been deleted." :
|
||||
false,
|
||||
|
||||
"This dataset has been hidden." :
|
||||
false,
|
||||
|
||||
"format" :
|
||||
false,
|
||||
|
||||
"database" :
|
||||
false,
|
||||
|
||||
"This history is empty" :
|
||||
false,
|
||||
|
||||
"No matching datasets found" :
|
||||
false,
|
||||
|
||||
"You are over your disk quota." :
|
||||
false,
|
||||
|
||||
"Tool execution is on hold until your disk usage drops below your allocated quota." :
|
||||
false,
|
||||
|
||||
"All" :
|
||||
false,
|
||||
|
||||
"None" :
|
||||
false,
|
||||
|
||||
"For all selected" :
|
||||
false,
|
||||
|
||||
"This history is empty. Click 'Get Data' on the left tool menu to start" :
|
||||
false,
|
||||
|
||||
"Include Deleted Datasets" :
|
||||
false,
|
||||
|
||||
"Include Hidden Datasets" :
|
||||
false,
|
||||
|
||||
"Edit history tags" :
|
||||
false,
|
||||
|
||||
"Edit history Annotation" :
|
||||
false,
|
||||
|
||||
"Operations on multiple datasets" :
|
||||
false,
|
||||
|
||||
"Search datasets" :
|
||||
false,
|
||||
|
||||
"clear search (esc)" :
|
||||
false,
|
||||
|
||||
"loading..." :
|
||||
false,
|
||||
|
||||
"Hide datasets" :
|
||||
false,
|
||||
|
||||
"Unhide datasets" :
|
||||
false,
|
||||
|
||||
"Delete datasets" :
|
||||
false,
|
||||
|
||||
"Undelete datasets" :
|
||||
false,
|
||||
|
||||
"Permanently delete datasets" :
|
||||
false,
|
||||
|
||||
"Click to rename history" :
|
||||
false,
|
||||
|
||||
"View data" :
|
||||
false,
|
||||
|
||||
"Edit attributes" :
|
||||
false,
|
||||
|
||||
"View details" :
|
||||
false,
|
||||
|
||||
"Run this job again" :
|
||||
false,
|
||||
|
||||
"Edit dataset tags" :
|
||||
false,
|
||||
|
||||
"Edit dataset annotation" :
|
||||
false,
|
||||
|
||||
" Click <a href=\"javascript:void(0);\" class=\"dataset-undelete\">here</a> to undelete it or <a href=\"javascript:void(0);\" class=\"dataset-purge\">here</a> to immediately remove it from disk" :
|
||||
false,
|
||||
|
||||
" Click <a href=\"javascript:void(0);\" class=\"dataset-unhide\">here</a> to unhide it" :
|
||||
false,
|
||||
|
||||
"Download" :
|
||||
false,
|
||||
|
||||
"Visualize" :
|
||||
false
|
||||
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
},
|
||||
'ja' : true,
|
||||
'zh' : true
|
||||
});
|
||||
@@ -0,0 +1,570 @@
|
||||
/** zh localization */
|
||||
define({
|
||||
|
||||
// templates/base_panels.mako:5
|
||||
"Galaxy" :
|
||||
"Galaxy",
|
||||
|
||||
// templates/history/options.mako:24
|
||||
"Are you sure you want to delete the current history?" :
|
||||
"确认要删除当前的历史记录吗?",
|
||||
|
||||
// templates/root/history.mako:38
|
||||
"collapse all" :
|
||||
"全部收缩",
|
||||
|
||||
// templates/root/index.mako:5
|
||||
"Tools" :
|
||||
"工具",
|
||||
|
||||
|
||||
// tools/**.xml
|
||||
"Get Data" :
|
||||
"获取数据",
|
||||
|
||||
"Get ENCODE Data" :
|
||||
"获取ENCODE数据",
|
||||
|
||||
"ENCODE Tools" :
|
||||
"ENCODE工具",
|
||||
|
||||
"Lift-Over" :
|
||||
"版本转换",
|
||||
|
||||
"Text Manipulation" :
|
||||
"文本操作",
|
||||
|
||||
"Filter and Sort" :
|
||||
"过滤和排序",
|
||||
|
||||
"Join, Subtract and Group" :
|
||||
"结合,差集与分组",
|
||||
|
||||
"Convert Formats" :
|
||||
"格式转换",
|
||||
|
||||
"Extract Features" :
|
||||
"特征提取",
|
||||
|
||||
"Fetch Sequences" :
|
||||
"获取序列",
|
||||
|
||||
"Fetch Alignments" :
|
||||
"获取比对上的序列",
|
||||
|
||||
"Get Genomic Scores" :
|
||||
"获得基因组分数",
|
||||
|
||||
"Operate on Genomic Intervals" :
|
||||
"基因组区间操作",
|
||||
|
||||
"Statistics" :
|
||||
"统计量",
|
||||
|
||||
"Graph/Display Data" :
|
||||
"图形/数据",
|
||||
|
||||
"Regional Variation" :
|
||||
"区域多态性",
|
||||
|
||||
"Evolution: HyPhy" :
|
||||
"进化: HyPhy",
|
||||
|
||||
"Taxonomy manipulation" :
|
||||
"分类处理",
|
||||
|
||||
"Solexa tools" :
|
||||
"Solexa工具",
|
||||
|
||||
"FASTA manipulation" :
|
||||
"FASTA处理",
|
||||
|
||||
"Short Read QC and Manipulation" :
|
||||
"短片段数据质量控制及处理",
|
||||
|
||||
"Short Read Mapping" :
|
||||
"短片段回贴",
|
||||
|
||||
|
||||
// templates/admin_main.mako:3 templates/admin_main.mako:8
|
||||
"Galaxy Administration" :
|
||||
"Galaxy 管理",
|
||||
|
||||
// templates/admin_main.mako:17
|
||||
"Admin password: " :
|
||||
"管理员密码: ",
|
||||
|
||||
// templates/admin_main.mako:19
|
||||
"Reload tool: " :
|
||||
"重新载入工具",
|
||||
|
||||
// templates/admin_main.mako:35
|
||||
"Reload" :
|
||||
"重新载入",
|
||||
|
||||
// templates/dataset/edit_attributes.mako:2
|
||||
"History Item Attributes" :
|
||||
"历史项目属性",
|
||||
|
||||
// templates/dataset/edit_attributes.mako:19
|
||||
"Edit attributes" :
|
||||
"编辑属性",
|
||||
|
||||
// templates/dataset/edit_attributes.mako:64
|
||||
"This will inspect the dataset and attempt to correct the above column values if they are not accurate." :
|
||||
"数据集检查,若有错误,更正上述栏中的值。",
|
||||
|
||||
// templates/dataset/edit_attributes.mako:68
|
||||
"Required metadata values are missing. Some of these values may not be editable by the user. Selecting \"Auto-detect\" will attempt to fix these values." :
|
||||
"缺少所需的metadata的值。用户可能无法对这些值进行编辑。选择“自动检测”来尝试修正这些值。",
|
||||
|
||||
// templates/dataset/edit_attributes.mako:78
|
||||
"Convert to new format" :
|
||||
"转换为新格式",
|
||||
|
||||
// templates/dataset/edit_attributes.mako:84
|
||||
"Convert to" :
|
||||
"转换为",
|
||||
|
||||
// templates/dataset/edit_attributes.mako:95
|
||||
"This will create a new dataset with the contents of this dataset converted to a new format." :
|
||||
"这将产生一个转换格式后的新数据集,",
|
||||
|
||||
// templates/dataset/edit_attributes.mako:111
|
||||
"Change data type" :
|
||||
"改变数据类型",
|
||||
|
||||
// templates/dataset/edit_attributes.mako:117
|
||||
"New Type" :
|
||||
"新类型",
|
||||
|
||||
// templates/dataset/edit_attributes.mako:124
|
||||
"This will change the datatype of the existing dataset but <i>not</i> modify its contents. Use this if Galaxy has incorrectly guessed the type of your dataset." :
|
||||
"这将改变已有数据集的数据类型,但<i>不</i>改变其内容。当Galaxy不能正确判断你的数据类型时,设置该参数。",
|
||||
|
||||
// templates/dataset/edit_attributes.mako:137
|
||||
"Copy History Item" :
|
||||
"复制历史记录项",
|
||||
|
||||
// templates/history/list.mako:3
|
||||
"Saved Histories" :
|
||||
"已保存的历史",
|
||||
|
||||
|
||||
// templates/history/list.mako:21 templates/root/history.mako:239
|
||||
"hide deleted" :
|
||||
"隐藏已删除的数据",
|
||||
|
||||
// templates/history/list.mako:23
|
||||
"show deleted" :
|
||||
"显示已删除的数据",
|
||||
|
||||
// templates/history/list.mako:27
|
||||
"Name" :
|
||||
"名称",
|
||||
|
||||
// templates/history/list.mako:27
|
||||
"Size" :
|
||||
"大小",
|
||||
|
||||
// templates/history/list.mako:27
|
||||
"Last modified" :
|
||||
"最后修改时间",
|
||||
|
||||
// templates/history/list.mako:27
|
||||
"Actions" :
|
||||
"操作",
|
||||
|
||||
// templates/history/list.mako:45
|
||||
"rename" :
|
||||
"重命名",
|
||||
|
||||
// templates/history/list.mako:46
|
||||
"switch to" :
|
||||
"切换到",
|
||||
|
||||
// templates/history/list.mako:47
|
||||
"delete" :
|
||||
"删除",
|
||||
|
||||
// templates/history/list.mako:49
|
||||
"undelete" :
|
||||
"还原",
|
||||
|
||||
// templates/history/list.mako:55
|
||||
"Action" :
|
||||
"操作",
|
||||
|
||||
// templates/history/list.mako:56 templates/history/options.mako:21
|
||||
"Share" :
|
||||
"共享",
|
||||
|
||||
// templates/history/list.mako:56 templates/history/options.mako:15
|
||||
"Rename" :
|
||||
"重命名",
|
||||
|
||||
// templates/history/list.mako:56 templates/history/options.mako:24
|
||||
"Delete" :
|
||||
"删除",
|
||||
|
||||
// templates/history/list.mako:58
|
||||
"Undelete" :
|
||||
"还原",
|
||||
|
||||
// templates/history/list.mako:65
|
||||
"You have no stored histories" :
|
||||
"没有存储的历史记录",
|
||||
|
||||
// templates/history/options.mako:5
|
||||
"History Options" :
|
||||
"历史记录选项",
|
||||
|
||||
// templates/history/options.mako:9
|
||||
"You must be " :
|
||||
"你必须成为",
|
||||
|
||||
// templates/history/options.mako:9
|
||||
"logged in" :
|
||||
"登录",
|
||||
|
||||
// templates/history/options.mako:9
|
||||
" to store or switch histories." :
|
||||
"以存储或切换历史记录",
|
||||
|
||||
// templates/history/options.mako:15
|
||||
// python-format
|
||||
" current history (stored as \"%s\")" :
|
||||
" 当前历史(以\"%s\"形式存储)",
|
||||
|
||||
// templates/history/options.mako:16
|
||||
"List" :
|
||||
"列表",
|
||||
|
||||
// templates/history/options.mako:16
|
||||
" previously stored histories" :
|
||||
" 以前存储的历史记录",
|
||||
|
||||
// templates/history/options.mako:18
|
||||
"Create" :
|
||||
"创建",
|
||||
|
||||
// templates/history/options.mako:18
|
||||
" a new empty history" :
|
||||
" 一个新的空白历史记录",
|
||||
|
||||
// templates/history/options.mako:20
|
||||
"Construct workflow" :
|
||||
"构建工作流程",
|
||||
|
||||
// templates/history/options.mako:20
|
||||
" from the current history" :
|
||||
" 来源于当前历史",
|
||||
|
||||
// templates/history/options.mako:21 templates/history/options.mako:24
|
||||
" current history" :
|
||||
" 当前历史",
|
||||
|
||||
// templates/history/options.mako:23
|
||||
"Show deleted" :
|
||||
"显示已删除",
|
||||
|
||||
// templates/history/options.mako:23
|
||||
" datasets in history" :
|
||||
" 历史中的数据集",
|
||||
|
||||
// templates/history/rename.mako:3 templates/history/rename.mako:6
|
||||
"Rename History" :
|
||||
"重命名历史",
|
||||
|
||||
|
||||
"Rename Histories" :
|
||||
"重命名历史记录",
|
||||
|
||||
"Perform Action" :
|
||||
"运行操作",
|
||||
|
||||
"Submit" :
|
||||
"提交",
|
||||
|
||||
|
||||
|
||||
// templates/history/rename.mako:10
|
||||
"Current Name" :
|
||||
"当前名称",
|
||||
|
||||
// templates/history/rename.mako:10
|
||||
"New Name" :
|
||||
"新名称",
|
||||
|
||||
// templates/history/share.mako:3
|
||||
"Share histories" :
|
||||
"共享历史记录",
|
||||
|
||||
// templates/history/share.mako:6
|
||||
"Share Histories" :
|
||||
"共享历史记录",
|
||||
|
||||
// templates/history/share.mako:9
|
||||
"History Name:" :
|
||||
"历史名称",
|
||||
|
||||
// templates/history/share.mako:9
|
||||
"Number of Datasets:" :
|
||||
"数据集数量",
|
||||
|
||||
// templates/history/share.mako:9
|
||||
"Share Link" :
|
||||
"共享链接",
|
||||
|
||||
// templates/history/share.mako:15
|
||||
"This history contains no data." :
|
||||
"这项历史中没有数据",
|
||||
|
||||
// templates/history/share.mako:21
|
||||
"copy link to share" :
|
||||
"复制链接以共享",
|
||||
|
||||
// templates/history/share.mako:24
|
||||
"Email of User to share with:" :
|
||||
"发送到这些Email地址进行分享",
|
||||
|
||||
// templates/root/history.mako:7
|
||||
"Galaxy History" :
|
||||
"Galaxy 历史",
|
||||
|
||||
// templates/root/history.mako:237
|
||||
"refresh" :
|
||||
"刷新",
|
||||
|
||||
// templates/root/history.mako:245
|
||||
"You are currently viewing a deleted history!" :
|
||||
"正在查看已删除的历史",
|
||||
|
||||
// templates/root/history.mako:289
|
||||
"Your history is empty. Click 'Get Data' on the left pane to start" :
|
||||
"历史已空,请单击左边窗格中‘获取数据’",
|
||||
|
||||
// templates/root/history_common.mako:41
|
||||
"Job is waiting to run" :
|
||||
"等待运行的进程",
|
||||
|
||||
// templates/root/history_common.mako:43
|
||||
"Job is currently running" :
|
||||
"正在运行的进程",
|
||||
|
||||
// templates/root/history_common.mako:46
|
||||
"An error occurred running this job: " :
|
||||
"进程运行时出错 ",
|
||||
|
||||
// templates/root/history_common.mako:47
|
||||
"report this error" :
|
||||
"报告错误",
|
||||
|
||||
// templates/root/history_common.mako:54
|
||||
"No data: " :
|
||||
"没有数据: ",
|
||||
|
||||
// templates/root/history_common.mako:58
|
||||
"format: " :
|
||||
"格式: ",
|
||||
|
||||
// templates/root/history_common.mako:59
|
||||
"database: " :
|
||||
"数据库: ",
|
||||
|
||||
// templates/root/history_common.mako:66 templates/root/masthead.mako:20
|
||||
"Info: " :
|
||||
"信息: ",
|
||||
|
||||
// templates/root/history_common.mako:85
|
||||
// python-format
|
||||
"Error: unknown dataset state \"%s\"." :
|
||||
"错误:未知的数据集状态 \"%s\"。",
|
||||
|
||||
|
||||
"Options" :
|
||||
"选项",
|
||||
|
||||
"History" :
|
||||
"历史",
|
||||
|
||||
// templates/root/masthead.mako:20
|
||||
"report bugs" :
|
||||
"错误报告",
|
||||
|
||||
// templates/root/masthead.mako:21
|
||||
"wiki" :
|
||||
"wiki",
|
||||
|
||||
// templates/root/masthead.mako:22
|
||||
"screencasts" :
|
||||
"演示视频",
|
||||
|
||||
|
||||
// templates/root/masthead.mako:23
|
||||
"blog" :
|
||||
"博客",
|
||||
|
||||
// templates/root/masthead.mako:31
|
||||
// python-format
|
||||
"Logged in as %s: " :
|
||||
"以%s的身份登录: ",
|
||||
|
||||
// templates/root/masthead.mako:31
|
||||
"manage" :
|
||||
"管理",
|
||||
|
||||
// templates/root/masthead.mako:32
|
||||
"logout" :
|
||||
"注销",
|
||||
|
||||
// templates/root/masthead.mako:34
|
||||
"Account: " :
|
||||
"帐户: ",
|
||||
|
||||
// templates/root/masthead.mako:34
|
||||
"create" :
|
||||
"创建",
|
||||
|
||||
// templates/root/masthead.mako:35
|
||||
"login" :
|
||||
"登录",
|
||||
|
||||
// templates/root/tool_menu.mako:52
|
||||
"Galaxy Tools" :
|
||||
"Galaxy 工具",
|
||||
|
||||
// templates/root/tool_menu.mako:129
|
||||
"Workflow" :
|
||||
"工作流程",
|
||||
|
||||
// templates/root/tool_menu.mako:134
|
||||
"Manage" :
|
||||
"管理",
|
||||
|
||||
// templates/root/tool_menu.mako:134
|
||||
"workflows" :
|
||||
"工作流程",
|
||||
|
||||
// templates/user/index.mako:2 templates/user/index.mako:4
|
||||
"Account settings" :
|
||||
"帐户设置",
|
||||
|
||||
// templates/user/index.mako:7
|
||||
// python-format
|
||||
"You are currently logged in as %s." :
|
||||
"当前以%s的身份登录",
|
||||
|
||||
// templates/user/index.mako:9
|
||||
"Change your password" :
|
||||
"修改密码",
|
||||
|
||||
// templates/user/index.mako:10
|
||||
"Update your email address" :
|
||||
"更新电子邮件地址",
|
||||
|
||||
// templates/user/index.mako:11
|
||||
"Logout" :
|
||||
"注销",
|
||||
|
||||
// templates/user/index.mako:16
|
||||
"Login" :
|
||||
"登录",
|
||||
|
||||
// templates/user/index.mako:17
|
||||
"Create new account" :
|
||||
"创建新帐户",
|
||||
|
||||
"Show Tool Search" :
|
||||
"显示工具搜索",
|
||||
|
||||
"Analyze Data" :
|
||||
"分析数据",
|
||||
|
||||
"analysis" :
|
||||
"分析",
|
||||
|
||||
"History Lists" :
|
||||
"历史记录清单",
|
||||
|
||||
"Histories Shared with Me" :
|
||||
"共享的数据",
|
||||
|
||||
"Current History" :
|
||||
"当前历史记录",
|
||||
|
||||
"Create New" :
|
||||
"创建",
|
||||
|
||||
"Clone" :
|
||||
"复制",
|
||||
|
||||
"Share or Publish" :
|
||||
"共享或发布",
|
||||
|
||||
"Extract Workflow" :
|
||||
"提取工作流程",
|
||||
|
||||
"Dataset Security" :
|
||||
"数据安全性",
|
||||
|
||||
|
||||
"Show Deleted Datasets" :
|
||||
"显示已删除的数据",
|
||||
|
||||
"Show Hidden Datasets" :
|
||||
"显示隐藏的数据",
|
||||
|
||||
"Show Structure" :
|
||||
"显示结构",
|
||||
|
||||
"Export to File" :
|
||||
"导出为文件",
|
||||
|
||||
"Other Actions" :
|
||||
"其他",
|
||||
|
||||
"Import from File" :
|
||||
"导入文件",
|
||||
|
||||
"Shared Data" :
|
||||
"数据共享",
|
||||
|
||||
"Data Libraries" :
|
||||
"数据仓库",
|
||||
|
||||
"Published Histories" :
|
||||
"已发布的历史记录",
|
||||
|
||||
"Published Workflows" :
|
||||
"已发布的工作流程",
|
||||
|
||||
"Published Pages" :
|
||||
"已发布的页面",
|
||||
|
||||
"Help" :
|
||||
"帮助",
|
||||
|
||||
"Email comments, bug reports, or suggestions" :
|
||||
"发邮件进行意见反馈或错误报告",
|
||||
|
||||
|
||||
"User" :
|
||||
"用户",
|
||||
|
||||
|
||||
"Register" :
|
||||
"注册",
|
||||
|
||||
"Support" :
|
||||
"技术支持",
|
||||
|
||||
"Galaxy Wiki" :
|
||||
"Galaxy百科",
|
||||
|
||||
"Video tutorials (screencasts)" :
|
||||
"视频教程(动画演示)",
|
||||
|
||||
"How to Cite Galaxy" :
|
||||
"如何引用Galaxy",
|
||||
})
|
||||
@@ -1 +1 @@
|
||||
define(["mvc/user/user-model","utils/metrics-logger","utils/add-logging"],function(a,c,e){function f(k){var j=this;return j._init(k||{})}e(f,"GalaxyApp");f.defaultOptions={root:"/"};f.prototype._init=function h(k){var j=this;j._initLogger(k.loggerOptions||{});j.debug("GalaxyApp.logger: ",j.logger);j._processOptions(k);j.debug("GalaxyApp.options: ",j.options);j.config=k.config||{};j.debug("GalaxyApp.config: ",j.config);j._initUser(k.userJSON||{});j.debug("GalaxyApp.user: ",j.user);return j};f.prototype._processOptions=function d(m){var l=this,n=f.defaultOptions;l.debug("_processOptions: ",m);l.options={};for(var j in n){if(n.hasOwnProperty(j)){l.options[j]=(m.hasOwnProperty(j))?(m[j]):(n[j])}}return l};f.prototype._initUser=function g(k){var j=this;j.debug("_initUser:",k);j.user=new a.User(k);return j};f.prototype._initLogger=function i(k){var j=this;j.debug("_initLogger:",k);j.logger=new c.MetricsLogger(k);return j};f.prototype.toString=function b(){var j=this.user.get("email")||"(anonymous)";return"GalaxyApp("+j+")"};return{GalaxyApp:f}});
|
||||
define(["mvc/user/user-model","utils/metrics-logger","utils/add-logging","utils/localization"],function(a,c,f,d){function g(m){var l=this;return l._init(m||{})}f(g,"GalaxyApp");g.defaultOptions={root:"/"};g.prototype._init=function j(m){var l=this;l._processOptions(m);l.debug("GalaxyApp.options: ",l.options);l._initLogger(m.loggerOptions||{});l.debug("GalaxyApp.logger: ",l.logger);l._initLocale();l.debug("GalaxyApp.localize: ",l.localize);l.config=m.config||{};l.debug("GalaxyApp.config: ",l.config);l._initUser(m.userJSON||{});l.debug("GalaxyApp.user: ",l.user);return l};g.prototype._processOptions=function e(n){var m=this,o=g.defaultOptions;m.debug("_processOptions: ",n);m.options={};for(var l in o){if(o.hasOwnProperty(l)){m.options[l]=(n.hasOwnProperty(l))?(n[l]):(o[l])}}return m};g.prototype._initUser=function i(m){var l=this;l.debug("_initUser:",m);l.user=new a.User(m);return l};g.prototype._initLogger=function k(m){var l=this;l.debug("_initLogger:",m);l.logger=new c.MetricsLogger(m);return l};g.prototype._initLocale=function h(m){var l=this;l.debug("_initLocale:",m);l.localize=d;window._l=l.localize;return l};g.prototype.toString=function b(){var l=this.user.get("email")||"(anonymous)";return"GalaxyApp("+l+")"};return{GalaxyApp:g}});
|
||||
@@ -0,0 +1 @@
|
||||
(function(){var a=/(^.*(^|\/)nls(\/|$))([^\/]*)\/?([^\/]*)/;function d(e,h,g,f,i,j){if(h[e]){g.push(e);if(h[e]===true||h[e]===1){f.push(i+e+"/"+j)}}}function c(g,e,f,h,i){var j=h+e+"/"+i;if(require._fileExists(g.toUrl(j+".js"))){f.push(j)}}function b(g,f,e){var h;for(h in f){if(f.hasOwnProperty(h)&&(!g.hasOwnProperty(h)||e)){g[h]=f[h]}else{if(typeof f[h]==="object"){if(!g[h]&&f[h]){g[h]={}}b(g[h],f[h],e)}}}}define(["module"],function(e){var f=e.config?e.config():{};return{version:"2.0.4",load:function(g,s,r,k){k=k||{};if(k.locale){f.locale=k.locale}var q,n=a.exec(g),o=n[1],t=n[4],v=n[5],l=t.split("-"),h=[],u={},m,j,p="";if(n[5]){o=n[1];q=o+v}else{q=g;v=n[4];t=f.locale;if(!t){t=f.locale=typeof navigator==="undefined"?"root":(navigator.language||navigator.userLanguage||"root").toLowerCase()}l=t.split("-")}if(k.isBuild){h.push(q);c(s,"root",h,o,v);for(m=0;m<l.length;m++){j=l[m];p+=(p?"-":"")+j;c(s,p,h,o,v)}s(h,function(){r()})}else{s([q],function(x){var w=[],i;d("root",x,w,h,o,v);for(m=0;m<l.length;m++){i=l[m];p+=(p?"-":"")+i;d(p,x,w,h,o,v)}s(h,function(){var A,y,z;for(A=w.length-1;A>-1&&w[A];A--){z=w[A];y=x[z];if(y===true||y===1){y=s(o+z+"/"+v)}b(u,y)}r(u)})})}}}})}());
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
define(["mvc/dataset/hda-model","mvc/dataset/hda-base","mvc/history/readonly-history-panel"],function(c,a,b){var d=b.ReadOnlyHistoryPanel.extend({className:"annotated-history-panel",HDAViewClass:a.HDABaseView,renderModel:function(){this.$el.addClass(this.className);var g=b.ReadOnlyHistoryPanel.prototype.renderModel.call(this),e=this.$datasetsList(g),f=$("<table/>").addClass("datasets-list datasets-table");f.append(e.children());e.replaceWith(f);g.find(".history-subtitle").after(this.renderHistoryAnnotation());g.find(".history-search-btn").hide();g.find(".history-controls").after(g.find(".history-search-controls").show());return g},renderHistoryAnnotation:function(){var e=this.model.get("annotation");if(!e){return null}return $(['<div class="history-annotation">',e,"</div>"].join(""))},renderHdas:function(f){f=f||this.$el;var e=b.ReadOnlyHistoryPanel.prototype.renderHdas.call(this,f);this.$datasetsList(f).prepend($("<tr/>").addClass("headers").append([$("<th/>").text(_l("Dataset")),$("<th/>").text(_l("Annotation"))]));return e},attachHdaView:function(h,f){f=f||this.$el;var i=_.find(h.el.classList,function(j){return(/^state\-/).test(j)}),e=h.model.get("annotation")||"",g=$("<tr/>").addClass("dataset-row").append([$("<td/>").addClass("dataset-container").append(h.$el).addClass(i?i.replace("-","-color-"):""),$("<td/>").addClass("additional-info").text(e)]);this.$datasetsList(f).append(g)},events:_.extend(_.clone(b.ReadOnlyHistoryPanel.prototype.events),{"click tr":function(e){$(e.currentTarget).find(".dataset-title-bar").click()},"click .icon-btn":function(e){e.stopPropagation()}}),toString:function(){return"AnnotatedHistoryPanel("+((this.model)?(this.model.get("name")):(""))+")"}});return{AnnotatedHistoryPanel:d}});
|
||||
define(["mvc/dataset/hda-model","mvc/dataset/hda-base","mvc/history/readonly-history-panel","utils/localization"],function(d,a,b,c){var e=b.ReadOnlyHistoryPanel.extend({className:"annotated-history-panel",HDAViewClass:a.HDABaseView,renderModel:function(){this.$el.addClass(this.className);var h=b.ReadOnlyHistoryPanel.prototype.renderModel.call(this),f=this.$datasetsList(h),g=$("<table/>").addClass("datasets-list datasets-table");g.append(f.children());f.replaceWith(g);h.find(".history-subtitle").after(this.renderHistoryAnnotation());h.find(".history-search-btn").hide();h.find(".history-controls").after(h.find(".history-search-controls").show());return h},renderHistoryAnnotation:function(){var f=this.model.get("annotation");if(!f){return null}return $(['<div class="history-annotation">',f,"</div>"].join(""))},renderHdas:function(g){g=g||this.$el;var f=b.ReadOnlyHistoryPanel.prototype.renderHdas.call(this,g);this.$datasetsList(g).prepend($("<tr/>").addClass("headers").append([$("<th/>").text(c("Dataset")),$("<th/>").text(c("Annotation"))]));return f},attachHdaView:function(i,g){g=g||this.$el;var j=_.find(i.el.classList,function(k){return(/^state\-/).test(k)}),f=i.model.get("annotation")||"",h=$("<tr/>").addClass("dataset-row").append([$("<td/>").addClass("dataset-container").append(i.$el).addClass(j?j.replace("-","-color-"):""),$("<td/>").addClass("additional-info").text(f)]);this.$datasetsList(g).append(h)},events:_.extend(_.clone(b.ReadOnlyHistoryPanel.prototype.events),{"click tr":function(f){$(f.currentTarget).find(".dataset-title-bar").click()},"click .icon-btn":function(f){f.stopPropagation()}}),toString:function(){return"AnnotatedHistoryPanel("+((this.model)?(this.model.get("name")):(""))+")"}});return{AnnotatedHistoryPanel:e}});
|
||||
@@ -1 +1 @@
|
||||
define(["mvc/dataset/hda-edit","mvc/history/history-panel","mvc/base-mvc"],function(b,f,c){var d=c.SessionStorageModel.extend({defaults:{searching:false,tagsEditorShown:false,annotationEditorShown:false},toString:function(){return"HistoryPanelPrefs("+JSON.stringify(this.toJSON())+")"}});d.storageKey=function e(){return("history-panel")};var a=f.HistoryPanel.extend({HDAViewClass:b.HDAEditView,emptyMsg:_l("This history is empty. Click 'Get Data' on the left tool menu to start"),noneFoundMsg:_l("No matching datasets found"),initialize:function(g){g=g||{};this.preferences=new d(_.extend({id:d.storageKey()},_.pick(g,_.keys(d.prototype.defaults))));f.HistoryPanel.prototype.initialize.call(this,g)},loadCurrentHistory:function(h){var g=this;return this.loadHistoryWithHDADetails("current",h).then(function(j,i){g.trigger("current-history",g)})},switchToHistory:function(j,i){var g=this,h=function(){return jQuery.ajax({url:galaxy_config.root+"api/histories/"+j+"/set_as_current",method:"PUT"})};return this.loadHistoryWithHDADetails(j,i,h).then(function(l,k){g.trigger("switched-history",g)})},createNewHistory:function(i){if(!Galaxy||!Galaxy.currUser||Galaxy.currUser.isAnonymous()){this.displayMessage("error",_l("You must be logged in to create histories"));return $.when()}var g=this,h=function(){return jQuery.post(galaxy_config.root+"api/histories",{current:true})};return this.loadHistory(undefined,i,h).then(function(k,j){g.trigger("new-history",g)})},setModel:function(h,g,i){f.HistoryPanel.prototype.setModel.call(this,h,g,i);if(this.model){this.log("checking for updates");this.model.checkForUpdates()}return this},_setUpModelEventHandlers:function(){f.HistoryPanel.prototype._setUpModelEventHandlers.call(this);if(Galaxy&&Galaxy.quotaMeter){this.listenTo(this.model,"change:nice_size",function(){Galaxy.quotaMeter.update()})}this.model.hdas.on("state:ready",function(h,i,g){if((!h.get("visible"))&&(!this.storage.get("show_hidden"))){this.removeHdaView(this.hdaViews[h.id])}},this)},render:function(i,j){this.log("render:",i,j);i=(i===undefined)?(this.fxSpeed):(i);var g=this,h;if(this.model){h=this.renderModel()}else{h=this.renderWithoutModel()}$(g).queue("fx",[function(k){if(i&&g.$el.is(":visible")){g.$el.fadeOut(i,k)}else{k()}},function(k){g.$el.empty();if(h){g.$el.append(h.children());g.renderBasedOnPrefs()}k()},function(k){if(i&&!g.$el.is(":visible")){g.$el.fadeIn(i,k)}else{k()}},function(k){if(j){j.call(this)}g.trigger("rendered",this);k()}]);return this},renderBasedOnPrefs:function(){if(this.preferences.get("searching")){this.toggleSearchControls(0,true)}},_renderEmptyMsg:function(i){var h=this,g=h.$emptyMessage(i),j=$(".toolMenuContainer");if((_.isEmpty(h.hdaViews)&&!h.searchFor)&&(Galaxy&&Galaxy.upload&&j.size())){g.empty();g.html([_l("This history is empty. "),_l("You can "),'<a class="uploader-link" href="javascript:void(0)">',_l("load your own data"),"</a>",_l(" or "),'<a class="get-data-link" href="javascript:void(0)">',_l("get data from an external source"),"</a>"].join(""));g.find(".uploader-link").click(function(k){Galaxy.upload._eventShow(k)});g.find(".get-data-link").click(function(k){j.parent().scrollTop(0);j.find('span:contains("Get Data")').click()});g.show()}else{f.HistoryPanel.prototype._renderEmptyMsg.call(this,i)}return this},toggleSearchControls:function(h,g){var i=f.HistoryPanel.prototype.toggleSearchControls.call(this,h,g);this.preferences.set("searching",i)},_renderTags:function(g){var h=this;f.HistoryPanel.prototype._renderTags.call(this,g);if(this.preferences.get("tagsEditorShown")){this.tagsEditor.toggle(true)}this.tagsEditor.on("hiddenUntilActivated:shown hiddenUntilActivated:hidden",function(i){h.preferences.set("tagsEditorShown",i.hidden)})},_renderAnnotation:function(g){var h=this;f.HistoryPanel.prototype._renderAnnotation.call(this,g);if(this.preferences.get("annotationEditorShown")){this.annotationEditor.toggle(true)}this.annotationEditor.on("hiddenUntilActivated:shown hiddenUntilActivated:hidden",function(i){h.preferences.set("annotationEditorShown",i.hidden)})},connectToQuotaMeter:function(g){if(!g){return this}this.listenTo(g,"quota:over",this.showQuotaMessage);this.listenTo(g,"quota:under",this.hideQuotaMessage);this.on("rendered rendered:initial",function(){if(g&&g.isOverQuota()){this.showQuotaMessage()}});return this},showQuotaMessage:function(){var g=this.$el.find(".quota-message");if(g.is(":hidden")){g.slideDown(this.fxSpeed)}},hideQuotaMessage:function(){var g=this.$el.find(".quota-message");if(!g.is(":hidden")){g.slideUp(this.fxSpeed)}},connectToOptionsMenu:function(g){if(!g){return this}this.on("new-storage",function(i,h){if(g&&i){g.findItemByHtml(_l("Include Deleted Datasets")).checked=i.get("show_deleted");g.findItemByHtml(_l("Include Hidden Datasets")).checked=i.get("show_hidden")}});return this},toString:function(){return"CurrentHistoryPanel("+((this.model)?(this.model.get("name")):(""))+")"}});return{CurrentHistoryPanel:a}});
|
||||
define(["mvc/dataset/hda-edit","mvc/history/history-panel","mvc/base-mvc","utils/localization"],function(b,g,c,e){var d=c.SessionStorageModel.extend({defaults:{searching:false,tagsEditorShown:false,annotationEditorShown:false},toString:function(){return"HistoryPanelPrefs("+JSON.stringify(this.toJSON())+")"}});d.storageKey=function f(){return("history-panel")};var a=g.HistoryPanel.extend({HDAViewClass:b.HDAEditView,emptyMsg:e("This history is empty. Click 'Get Data' on the left tool menu to start"),noneFoundMsg:e("No matching datasets found"),initialize:function(h){h=h||{};this.preferences=new d(_.extend({id:d.storageKey()},_.pick(h,_.keys(d.prototype.defaults))));g.HistoryPanel.prototype.initialize.call(this,h)},loadCurrentHistory:function(i){var h=this;return this.loadHistoryWithHDADetails("current",i).then(function(k,j){h.trigger("current-history",h)})},switchToHistory:function(k,j){var h=this,i=function(){return jQuery.ajax({url:galaxy_config.root+"api/histories/"+k+"/set_as_current",method:"PUT"})};return this.loadHistoryWithHDADetails(k,j,i).then(function(m,l){h.trigger("switched-history",h)})},createNewHistory:function(j){if(!Galaxy||!Galaxy.currUser||Galaxy.currUser.isAnonymous()){this.displayMessage("error",e("You must be logged in to create histories"));return $.when()}var h=this,i=function(){return jQuery.post(galaxy_config.root+"api/histories",{current:true})};return this.loadHistory(undefined,j,i).then(function(l,k){h.trigger("new-history",h)})},setModel:function(i,h,j){g.HistoryPanel.prototype.setModel.call(this,i,h,j);if(this.model){this.log("checking for updates");this.model.checkForUpdates()}return this},_setUpModelEventHandlers:function(){g.HistoryPanel.prototype._setUpModelEventHandlers.call(this);if(Galaxy&&Galaxy.quotaMeter){this.listenTo(this.model,"change:nice_size",function(){Galaxy.quotaMeter.update()})}this.model.hdas.on("state:ready",function(i,j,h){if((!i.get("visible"))&&(!this.storage.get("show_hidden"))){this.removeHdaView(this.hdaViews[i.id])}},this)},render:function(j,k){this.log("render:",j,k);j=(j===undefined)?(this.fxSpeed):(j);var h=this,i;if(this.model){i=this.renderModel()}else{i=this.renderWithoutModel()}$(h).queue("fx",[function(l){if(j&&h.$el.is(":visible")){h.$el.fadeOut(j,l)}else{l()}},function(l){h.$el.empty();if(i){h.$el.append(i.children());h.renderBasedOnPrefs()}l()},function(l){if(j&&!h.$el.is(":visible")){h.$el.fadeIn(j,l)}else{l()}},function(l){if(k){k.call(this)}h.trigger("rendered",this);l()}]);return this},renderBasedOnPrefs:function(){if(this.preferences.get("searching")){this.toggleSearchControls(0,true)}},_renderEmptyMsg:function(j){var i=this,h=i.$emptyMessage(j),k=$(".toolMenuContainer");if((_.isEmpty(i.hdaViews)&&!i.searchFor)&&(Galaxy&&Galaxy.upload&&k.size())){h.empty();h.html([e("This history is empty. "),e("You can "),'<a class="uploader-link" href="javascript:void(0)">',e("load your own data"),"</a>",e(" or "),'<a class="get-data-link" href="javascript:void(0)">',e("get data from an external source"),"</a>"].join(""));h.find(".uploader-link").click(function(l){Galaxy.upload._eventShow(l)});h.find(".get-data-link").click(function(l){k.parent().scrollTop(0);k.find('span:contains("Get Data")').click()});h.show()}else{g.HistoryPanel.prototype._renderEmptyMsg.call(this,j)}return this},toggleSearchControls:function(i,h){var j=g.HistoryPanel.prototype.toggleSearchControls.call(this,i,h);this.preferences.set("searching",j)},_renderTags:function(h){var i=this;g.HistoryPanel.prototype._renderTags.call(this,h);if(this.preferences.get("tagsEditorShown")){this.tagsEditor.toggle(true)}this.tagsEditor.on("hiddenUntilActivated:shown hiddenUntilActivated:hidden",function(j){i.preferences.set("tagsEditorShown",j.hidden)})},_renderAnnotation:function(h){var i=this;g.HistoryPanel.prototype._renderAnnotation.call(this,h);if(this.preferences.get("annotationEditorShown")){this.annotationEditor.toggle(true)}this.annotationEditor.on("hiddenUntilActivated:shown hiddenUntilActivated:hidden",function(j){i.preferences.set("annotationEditorShown",j.hidden)})},connectToQuotaMeter:function(h){if(!h){return this}this.listenTo(h,"quota:over",this.showQuotaMessage);this.listenTo(h,"quota:under",this.hideQuotaMessage);this.on("rendered rendered:initial",function(){if(h&&h.isOverQuota()){this.showQuotaMessage()}});return this},showQuotaMessage:function(){var h=this.$el.find(".quota-message");if(h.is(":hidden")){h.slideDown(this.fxSpeed)}},hideQuotaMessage:function(){var h=this.$el.find(".quota-message");if(!h.is(":hidden")){h.slideUp(this.fxSpeed)}},connectToOptionsMenu:function(h){if(!h){return this}this.on("new-storage",function(j,i){if(h&&j){h.findItemByHtml(e("Include Deleted Datasets")).checked=j.get("show_deleted");h.findItemByHtml(e("Include Hidden Datasets")).checked=j.get("show_hidden")}});return this},toString:function(){return"CurrentHistoryPanel("+((this.model)?(this.model.get("name")):(""))+")"}});return{CurrentHistoryPanel:a}});
|
||||
@@ -1 +1 @@
|
||||
define(["mvc/dataset/hda-model","mvc/base-mvc"],function(b,a){var d=Backbone.Model.extend(a.LoggableMixin).extend({defaults:{model_class:"History",id:null,name:"Unnamed History",state:"new",diskSize:0,deleted:false},urlRoot:galaxy_config.root+"api/histories",renameUrl:function(){var f=this.get("id");if(!f){return undefined}return galaxy_config.root+"history/rename_async?id="+this.get("id")},annotateUrl:function(){var f=this.get("id");if(!f){return undefined}return galaxy_config.root+"history/annotate_async?id="+this.get("id")},tagUrl:function(){var f=this.get("id");if(!f){return undefined}return galaxy_config.root+"tag/get_tagging_elt_async?item_id="+this.get("id")+"&item_class=History"},initialize:function(g,h,f){f=f||{};this.logger=f.logger||null;this.log(this+".initialize:",g,h,f);this.hdas=new b.HDACollection(h||[],{historyId:this.get("id")});if(h&&_.isArray(h)){this.hdas.reset(h)}this._setUpListeners();this.updateTimeoutId=null},_setUpListeners:function(){this.on("error",function(g,j,f,i,h){this.errorHandler(g,j,f,i,h)});if(this.hdas){this.listenTo(this.hdas,"error",function(){this.trigger.apply(this,["error:hdas"].concat(jQuery.makeArray(arguments)))})}this.on("change:id",function(g,f){if(this.hdas){this.hdas.historyId=f}},this)},errorHandler:function(g,j,f,i,h){this.clearUpdateTimeout()},ownedByCurrUser:function(){if(!Galaxy||!Galaxy.currUser){return false}if(Galaxy.currUser.isAnonymous()||Galaxy.currUser.id!==this.get("user_id")){return false}return true},hdaCount:function(){return _.reduce(_.values(this.get("state_details")),function(f,g){return f+g},0)},checkForUpdates:function(f){if(this.hdas.running().length){this.setUpdateTimeout()}else{this.trigger("ready");if(_.isFunction(f)){f.call(this)}}return this},setUpdateTimeout:function(f){f=f||d.UPDATE_DELAY;var g=this;this.clearUpdateTimeout();this.updateTimeoutId=setTimeout(function(){g.refresh()},f);return this.updateTimeoutId},clearUpdateTimeout:function(){if(this.updateTimeoutId){clearTimeout(this.updateTimeoutId);this.updateTimeoutId=null}},refresh:function(g,f){g=g||[];f=f||{};var h=this;f.data=f.data||{};if(g.length){f.data.details=g.join(",")}var i=this.hdas.fetch(f);i.done(function(j){h.checkForUpdates(function(){this.fetch()})});return i},toString:function(){return"History("+this.get("id")+","+this.get("name")+")"}});d.UPDATE_DELAY=4000;d.getHistoryData=function e(g,q){q=q||{};var k=q.hdaDetailIds||[];var m=jQuery.Deferred(),l=null;function h(r){return jQuery.ajax(galaxy_config.root+"api/histories/"+g)}function f(r){if(!r||!r.state_ids){return 0}return _.reduce(r.state_ids,function(s,u,t){return s+u.length},0)}function p(s){if(!f(s)){return[]}if(_.isFunction(k)){k=k(s)}var r=(k.length)?({details:k.join(",")}):({});return jQuery.ajax(galaxy_config.root+"api/histories/"+s.id+"/contents",{data:r})}var o=q.historyFn||h,n=q.hdaFn||p;var j=o(g);j.done(function(r){l=r;m.notify({status:"history data retrieved",historyJSON:l})});j.fail(function(t,r,s){m.reject(t,"loading the history")});var i=j.then(n);i.then(function(r){m.notify({status:"dataset data retrieved",historyJSON:l,hdaJSON:r});m.resolve(l,r)});i.fail(function(t,r,s){m.reject(t,"loading the datasets",{history:l})});return m};var c=Backbone.Collection.extend(a.LoggableMixin).extend({model:d,urlRoot:galaxy_config.root+"api/histories"});return{History:d,HistoryCollection:c}});
|
||||
define(["mvc/dataset/hda-model","mvc/base-mvc","utils/localization"],function(c,a,b){var e=Backbone.Model.extend(a.LoggableMixin).extend({defaults:{model_class:"History",id:null,name:"Unnamed History",state:"new",diskSize:0,deleted:false},urlRoot:galaxy_config.root+"api/histories",renameUrl:function(){var g=this.get("id");if(!g){return undefined}return galaxy_config.root+"history/rename_async?id="+this.get("id")},annotateUrl:function(){var g=this.get("id");if(!g){return undefined}return galaxy_config.root+"history/annotate_async?id="+this.get("id")},tagUrl:function(){var g=this.get("id");if(!g){return undefined}return galaxy_config.root+"tag/get_tagging_elt_async?item_id="+this.get("id")+"&item_class=History"},initialize:function(h,i,g){g=g||{};this.logger=g.logger||null;this.log(this+".initialize:",h,i,g);this.hdas=new c.HDACollection(i||[],{historyId:this.get("id")});if(i&&_.isArray(i)){this.hdas.reset(i)}this._setUpListeners();this.updateTimeoutId=null},_setUpListeners:function(){this.on("error",function(h,k,g,j,i){this.errorHandler(h,k,g,j,i)});if(this.hdas){this.listenTo(this.hdas,"error",function(){this.trigger.apply(this,["error:hdas"].concat(jQuery.makeArray(arguments)))})}this.on("change:id",function(h,g){if(this.hdas){this.hdas.historyId=g}},this)},errorHandler:function(h,k,g,j,i){this.clearUpdateTimeout()},ownedByCurrUser:function(){if(!Galaxy||!Galaxy.currUser){return false}if(Galaxy.currUser.isAnonymous()||Galaxy.currUser.id!==this.get("user_id")){return false}return true},hdaCount:function(){return _.reduce(_.values(this.get("state_details")),function(g,h){return g+h},0)},checkForUpdates:function(g){if(this.hdas.running().length){this.setUpdateTimeout()}else{this.trigger("ready");if(_.isFunction(g)){g.call(this)}}return this},setUpdateTimeout:function(g){g=g||e.UPDATE_DELAY;var h=this;this.clearUpdateTimeout();this.updateTimeoutId=setTimeout(function(){h.refresh()},g);return this.updateTimeoutId},clearUpdateTimeout:function(){if(this.updateTimeoutId){clearTimeout(this.updateTimeoutId);this.updateTimeoutId=null}},refresh:function(h,g){h=h||[];g=g||{};var i=this;g.data=g.data||{};if(h.length){g.data.details=h.join(",")}var j=this.hdas.fetch(g);j.done(function(k){i.checkForUpdates(function(){this.fetch()})});return j},toString:function(){return"History("+this.get("id")+","+this.get("name")+")"}});e.UPDATE_DELAY=4000;e.getHistoryData=function f(h,r){r=r||{};var l=r.hdaDetailIds||[];var n=jQuery.Deferred(),m=null;function i(s){return jQuery.ajax(galaxy_config.root+"api/histories/"+h)}function g(s){if(!s||!s.state_ids){return 0}return _.reduce(s.state_ids,function(t,v,u){return t+v.length},0)}function q(t){if(!g(t)){return[]}if(_.isFunction(l)){l=l(t)}var s=(l.length)?({details:l.join(",")}):({});return jQuery.ajax(galaxy_config.root+"api/histories/"+t.id+"/contents",{data:s})}var p=r.historyFn||i,o=r.hdaFn||q;var k=p(h);k.done(function(s){m=s;n.notify({status:"history data retrieved",historyJSON:m})});k.fail(function(u,s,t){n.reject(u,"loading the history")});var j=k.then(o);j.then(function(s){n.notify({status:"dataset data retrieved",historyJSON:m,hdaJSON:s});n.resolve(m,s)});j.fail(function(u,s,t){n.reject(u,"loading the datasets",{history:m})});return n};var d=Backbone.Collection.extend(a.LoggableMixin).extend({model:e,urlRoot:galaxy_config.root+"api/histories"});return{History:e,HistoryCollection:d}});
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
define(["mvc/base-mvc"],function(a){var c=Backbone.Model.extend(a.LoggableMixin).extend({urlRoot:galaxy_config.root+"api/users",defaults:{id:null,username:"("+_l("anonymous user")+")",email:"",total_disk_usage:0,nice_total_disk_usage:"",quota_percent:null,is_admin:false},initialize:function(d){this.log("User.initialize:",d);this.on("loaded",function(e,f){this.log(this+" has loaded:",e,f)});this.on("change",function(e,f){this.log(this+" has changed:",e,f.changes)})},isAnonymous:function(){return(!this.get("email"))},isAdmin:function(){return(this.get("is_admin"))},loadFromApi:function(g,e){g=g||c.CURRENT_ID_STR;e=e||{};var d=this,f=e.success;e.success=function(i,h){d.trigger("loaded",i,h);if(f){f(i,h)}};if(g===c.CURRENT_ID_STR){e.url=this.urlRoot+"/"+c.CURRENT_ID_STR}return Backbone.Model.prototype.fetch.call(this,e)},clearSessionStorage:function(){for(var d in sessionStorage){if(d.indexOf("history:")===0){sessionStorage.removeItem(d)}else{if(d==="history-panel"){sessionStorage.removeItem(d)}}}},toString:function(){var d=[this.get("username")];if(this.get("id")){d.unshift(this.get("id"));d.push(this.get("email"))}return"User("+d.join(":")+")"}});c.CURRENT_ID_STR="current";c.getCurrentUserFromApi=function(e){var d=new c();d.loadFromApi(c.CURRENT_ID_STR,e);return d};var b=Backbone.Collection.extend(a.LoggableMixin).extend({model:c,urlRoot:galaxy_config.root+"api/users"});return{User:c}});
|
||||
define(["mvc/base-mvc","utils/localization"],function(a,b){var d=Backbone.Model.extend(a.LoggableMixin).extend({urlRoot:galaxy_config.root+"api/users",defaults:{id:null,username:"("+b("anonymous user")+")",email:"",total_disk_usage:0,nice_total_disk_usage:"",quota_percent:null,is_admin:false},initialize:function(e){this.log("User.initialize:",e);this.on("loaded",function(f,g){this.log(this+" has loaded:",f,g)});this.on("change",function(f,g){this.log(this+" has changed:",f,g.changes)})},isAnonymous:function(){return(!this.get("email"))},isAdmin:function(){return(this.get("is_admin"))},loadFromApi:function(h,f){h=h||d.CURRENT_ID_STR;f=f||{};var e=this,g=f.success;f.success=function(j,i){e.trigger("loaded",j,i);if(g){g(j,i)}};if(h===d.CURRENT_ID_STR){f.url=this.urlRoot+"/"+d.CURRENT_ID_STR}return Backbone.Model.prototype.fetch.call(this,f)},clearSessionStorage:function(){for(var e in sessionStorage){if(e.indexOf("history:")===0){sessionStorage.removeItem(e)}else{if(e==="history-panel"){sessionStorage.removeItem(e)}}}},toString:function(){var e=[this.get("username")];if(this.get("id")){e.unshift(this.get("id"));e.push(this.get("email"))}return"User("+e.join(":")+")"}});d.CURRENT_ID_STR="current";d.getCurrentUserFromApi=function(f){var e=new d();e.loadFromApi(d.CURRENT_ID_STR,f);return e};var c=Backbone.Collection.extend(a.LoggableMixin).extend({model:d,urlRoot:galaxy_config.root+"api/users"});return{User:d}});
|
||||
@@ -1 +1 @@
|
||||
define(["mvc/base-mvc"],function(a){var b=Backbone.View.extend(a.LoggableMixin).extend({options:{warnAtPercent:85,errorAtPercent:100},initialize:function(c){this.log(this+".initialize:",c);_.extend(this.options,c);this.model.bind("change:quota_percent change:total_disk_usage",this.render,this)},update:function(c){this.log(this+" updating user data...",c);this.model.loadFromApi(this.model.get("id"),c);return this},isOverQuota:function(){return(this.model.get("quota_percent")!==null&&this.model.get("quota_percent")>=this.options.errorAtPercent)},_render_quota:function(){var c=this.model.toJSON(),e=c.quota_percent,d=$(this._templateQuotaMeter(c)),f=d.find(".progress-bar");if(this.isOverQuota()){f.attr("class","progress-bar progress-bar-danger");d.find(".quota-meter-text").css("color","white");this.trigger("quota:over",c)}else{if(e>=this.options.warnAtPercent){f.attr("class","progress-bar progress-bar-warning");this.trigger("quota:under quota:under:approaching",c)}else{f.attr("class","progress-bar progress-bar-success");this.trigger("quota:under quota:under:ok",c)}}return d},_render_usage:function(){var c=$(this._templateUsage(this.model.toJSON()));this.log(this+".rendering usage:",c);return c},render:function(){var c=null;this.log(this+".model.quota_percent:",this.model.get("quota_percent"));if((this.model.get("quota_percent")===null)||(this.model.get("quota_percent")===undefined)){c=this._render_usage()}else{c=this._render_quota()}this.$el.html(c);this.$el.find(".quota-meter-text").tooltip();return this},_templateQuotaMeter:function(c){return['<div id="quota-meter" class="quota-meter progress">','<div class="progress-bar" style="width: ',c.quota_percent,'%"></div>','<div class="quota-meter-text" style="top: 6px"',((c.nice_total_disk_usage)?(' title="Using '+c.nice_total_disk_usage+'">'):(">")),_l("Using")," ",c.quota_percent,"%","</div>","</div>"].join("")},_templateUsage:function(c){return['<div id="quota-meter" class="quota-meter" style="background-color: transparent">','<div class="quota-meter-text" style="top: 6px; color: white">',((c.nice_total_disk_usage)?(_l("Using ")+c.nice_total_disk_usage):("")),"</div>","</div>"].join("")},toString:function(){return"UserQuotaMeter("+this.model+")"}});return{UserQuotaMeter:b}});
|
||||
define(["mvc/base-mvc","utils/localization"],function(a,c){var b=Backbone.View.extend(a.LoggableMixin).extend({options:{warnAtPercent:85,errorAtPercent:100},initialize:function(d){this.log(this+".initialize:",d);_.extend(this.options,d);this.model.bind("change:quota_percent change:total_disk_usage",this.render,this)},update:function(d){this.log(this+" updating user data...",d);this.model.loadFromApi(this.model.get("id"),d);return this},isOverQuota:function(){return(this.model.get("quota_percent")!==null&&this.model.get("quota_percent")>=this.options.errorAtPercent)},_render_quota:function(){var d=this.model.toJSON(),f=d.quota_percent,e=$(this._templateQuotaMeter(d)),g=e.find(".progress-bar");if(this.isOverQuota()){g.attr("class","progress-bar progress-bar-danger");e.find(".quota-meter-text").css("color","white");this.trigger("quota:over",d)}else{if(f>=this.options.warnAtPercent){g.attr("class","progress-bar progress-bar-warning");this.trigger("quota:under quota:under:approaching",d)}else{g.attr("class","progress-bar progress-bar-success");this.trigger("quota:under quota:under:ok",d)}}return e},_render_usage:function(){var d=$(this._templateUsage(this.model.toJSON()));this.log(this+".rendering usage:",d);return d},render:function(){var d=null;this.log(this+".model.quota_percent:",this.model.get("quota_percent"));if((this.model.get("quota_percent")===null)||(this.model.get("quota_percent")===undefined)){d=this._render_usage()}else{d=this._render_quota()}this.$el.html(d);this.$el.find(".quota-meter-text").tooltip();return this},_templateQuotaMeter:function(d){return['<div id="quota-meter" class="quota-meter progress">','<div class="progress-bar" style="width: ',d.quota_percent,'%"></div>','<div class="quota-meter-text" style="top: 6px"',((d.nice_total_disk_usage)?(' title="Using '+d.nice_total_disk_usage+'">'):(">")),c("Using")," ",d.quota_percent,"%","</div>","</div>"].join("")},_templateUsage:function(d){return['<div id="quota-meter" class="quota-meter" style="background-color: transparent">','<div class="quota-meter-text" style="top: 6px; color: white">',((d.nice_total_disk_usage)?(c("Using ")+d.nice_total_disk_usage):("")),"</div>","</div>"].join("")},toString:function(){return"UserQuotaMeter("+this.model+")"}});return{UserQuotaMeter:b}});
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
define({root:{history:false,"Are you sure you want to delete the current history?":false,"collapse all":false,"History Item Attributes":false,"Edit Attributes":false,"This will inspect the dataset and attempt to correct the above column values if they are not accurate.":false,'Required metadata values are missing. Some of these values may not be editable by the user. Selecting "Auto-detect" will attempt to fix these values.':false,"Convert to new format":false,"Convert to":false,"This will create a new dataset with the contents of this dataset converted to a new format.":false,"Change data type":false,"New Type":false,"This will change the datatype of the existing dataset but <i>not</i> modify its contents. Use this if Galaxy has incorrectly guessed the type of your dataset.":false,"Copy History Item":false,"Your saved histories":false,"Stored Histories":false,"hide deleted":false,"show deleted":false,Name:false,Size:false,"Last modified":false,Actions:false,rename:false,"switch to":false,"delete":false,undelete:false,Action:false,Share:false,Rename:false,Delete:false,Undelete:false,"You have no stored histories":false,"History Options":false,"You must be ":false,"logged in":false," to store or switch histories.":false,' current history (stored as "%s")':false,List:false," previously stored histories":false,Create:false," a new empty history":false,"Construct workflow":false," from the current history":false," current history":false,"Show deleted":false," datasets in history":false,"Rename History":false,"Rename Histories":false,"Perform Action":false,Submit:false,"Current Name":false,"New Name":false,"Share histories":false,"Share Histories":false,"History Name:":false,"Number of Datasets:":false,"Share Link":false,"This history contains no data.":false,"copy link to share":false,"Email of User to share with:":false,"Galaxy History":false,refresh:false,"You are currently viewing a deleted history!":false,"Your history is empty. Click 'Get Data' on the left pane to start":false,"Job is waiting to run":false,"Job is currently running":false,"An error occurred running this job: ":false,"report this error":false,"No data: ":false,"format: ":false,"database: ":false,"Info: ":false,'Error: unknown dataset state "%s".':false,Options:false,History:false,"report bugs":false,wiki:false,screencasts:false,blog:false,"Logged in as %s: ":false,manage:false,logout:false,"Account: ":false,create:false,login:false,"Galaxy Tools":false,Workflow:false,Manage:false,workflows:false,"Account settings":false,"You are currently logged in as %s.":false,"Change your password":false,"Update your email address":false,Logout:false,Login:false,"Create new account":false,"anonymous user":false,"Using ":false,"There was an error getting the data for this dataset":false,"This dataset has been deleted and removed from disk.":false,"This dataset has been deleted.":false,"This dataset has been hidden.":false,format:false,database:false,"This history is empty":false,"No matching datasets found":false,"You are over your disk quota.":false,"Tool execution is on hold until your disk usage drops below your allocated quota.":false,All:false,None:false,"For all selected":false,"This history is empty. Click 'Get Data' on the left tool menu to start":false,"Include Deleted Datasets":false,"Include Hidden Datasets":false,"Edit history tags":false,"Edit history Annotation":false,"Operations on multiple datasets":false,"Search datasets":false,"clear search (esc)":false,"loading...":false,"Hide datasets":false,"Unhide datasets":false,"Delete datasets":false,"Undelete datasets":false,"Permanently delete datasets":false,"Click to rename history":false,"View data":false,"Edit attributes":false,"View details":false,"Run this job again":false,"Edit dataset tags":false,"Edit dataset annotation":false,' Click <a href="javascript:void(0);" class="dataset-undelete">here</a> to undelete it or <a href="javascript:void(0);" class="dataset-purge">here</a> to immediately remove it from disk':false,' Click <a href="javascript:void(0);" class="dataset-unhide">here</a> to unhide it':false,Download:false,Visualize:false},ja:true,zh:true});
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
var GalaxyLocalization=jQuery.extend({},{ALIAS_NAME:"_l",localizedStrings:{},setLocalizedString:function(b,a){var c=this;var d=function(f,e){if(f!==e){c.localizedStrings[f]=e}};if(jQuery.type(b)==="string"){d(b,a)}else{if(jQuery.type(b)==="object"){jQuery.each(b,function(e,f){d(e,f)})}else{throw ("Localization.setLocalizedString needs either a string or object as the first argument, given: "+b)}}},localize:function(a){return this.localizedStrings[a]||a},addAliasToNamespace:function(a){a[GalaxyLocalization.ALIAS_NAME]=function(b){return GalaxyLocalization.localize(b)}},toString:function(){return"GalaxyLocalization"}});GalaxyLocalization.addAliasToNamespace(window);
|
||||
define(["i18n!nls/locale"],function(b){var a=function(c){if(a.cacheNonLocalized&&!b.hasOwnProperty(c)){if(!a.nonLocalized){a.nonLocalized={}}a.nonLocalized[c]=navigator.language}return b[c]||c};a.cacheNonLocalized=false;return a});
|
||||
@@ -1,82 +1,28 @@
|
||||
define([
|
||||
'i18n!nls/locale'
|
||||
], function( localeStrings ){
|
||||
// =============================================================================
|
||||
/** @class string localizer (and global short form alias)
|
||||
*
|
||||
* @example
|
||||
* // set with either:
|
||||
* GalaxyLocalization.setLocalizedString( original, localized )
|
||||
* GalaxyLocalization.setLocalizedString({ original1 : localized1, original2 : localized2 })
|
||||
* // get with either:
|
||||
* GalaxyLocalization.localize( string )
|
||||
* _l( string )
|
||||
*
|
||||
* @constructs
|
||||
/** Attempt to get a localized string for strToLocalize. If not found, return
|
||||
* the original strToLocalize.
|
||||
* @param {String} strToLocalize the string to localize
|
||||
* @returns either the localized string if found or strToLocalize if not found
|
||||
*/
|
||||
//TODO: move to Galaxy.Localization (maybe galaxy.base.js)
|
||||
var GalaxyLocalization = jQuery.extend( {}, {
|
||||
/** shortened, alias reference to GalaxyLocalization.localize */
|
||||
ALIAS_NAME : '_l',
|
||||
/** map of available localized strings (english -> localized) */
|
||||
localizedStrings : {},
|
||||
var localize = function( strToLocalize ){
|
||||
//console.debug( this + '.localize:', strToLocalize );
|
||||
|
||||
/** Set a single English string -> localized string association, or set an entire map of those associations
|
||||
* @param {String or Object} str_or_obj english (key) string or a map of english -> localized strings
|
||||
* @param {String} localized string if str_or_obj was a string
|
||||
*/
|
||||
setLocalizedString : function( str_or_obj, localizedString ){
|
||||
//console.debug( this + '.setLocalizedString:', str_or_obj, localizedString );
|
||||
var self = this;
|
||||
// cache strings that need to be localized but haven't been?
|
||||
if( localize.cacheNonLocalized && !localeStrings.hasOwnProperty( strToLocalize ) ){
|
||||
//console.debug( 'localization NOT found:', strToLocalize );
|
||||
// add nonCached as hash directly to this function
|
||||
if( !localize.nonLocalized ){ localize.nonLocalized = {}; }
|
||||
localize.nonLocalized[ strToLocalize ] = navigator.language;
|
||||
}
|
||||
// return the localized version from the closure if it's there, the strToLocalize if not
|
||||
return localeStrings[ strToLocalize ] || strToLocalize;
|
||||
};
|
||||
localize.cacheNonLocalized = false;
|
||||
|
||||
// DRY non-duplicate assignment function
|
||||
var setStringIfNotDuplicate = function( original, localized ){
|
||||
// do not set if identical - strcmp expensive but should only happen once per page per word
|
||||
if( original !== localized ){
|
||||
self.localizedStrings[ original ] = localized;
|
||||
}
|
||||
};
|
||||
|
||||
if( jQuery.type( str_or_obj ) === "string" ){
|
||||
setStringIfNotDuplicate( str_or_obj, localizedString );
|
||||
|
||||
} else if( jQuery.type( str_or_obj ) === "object" ){
|
||||
jQuery.each( str_or_obj, function( key, val ){
|
||||
//console.debug( 'key=>val', key, '=>', val );
|
||||
// could recurse here but no reason
|
||||
setStringIfNotDuplicate( key, val );
|
||||
});
|
||||
|
||||
} else {
|
||||
throw( 'Localization.setLocalizedString needs either a string or object as the first argument,' +
|
||||
' given: ' + str_or_obj );
|
||||
}
|
||||
},
|
||||
|
||||
/** Attempt to get a localized string for strToLocalize. If not found, return the original strToLocalize.
|
||||
* @param {String} strToLocalize the string to localize
|
||||
* @returns either the localized string if found or strToLocalize if not found
|
||||
*/
|
||||
localize : function( strToLocalize ){
|
||||
//console.debug( this + '.localize:', strToLocalize );
|
||||
|
||||
//// uncomment this section to cache strings that need to be localized but haven't been
|
||||
//if( !_.has( this.localizedStrings, strToLocalize ) ){
|
||||
// //console.debug( 'localization NOT found:', strToLocalize );
|
||||
// if( !this.nonLocalized ){ this.nonLocalized = {}; }
|
||||
// this.nonLocalized[ strToLocalize ] = false;
|
||||
//}
|
||||
|
||||
// return the localized version if it's there, the strToLocalize if not
|
||||
return this.localizedStrings[ strToLocalize ] || strToLocalize;
|
||||
},
|
||||
|
||||
/** Add the localization function alias (GalaxyLocalization.ALIAS_NAME) to the given namespace.
|
||||
* @param {Object} namespace the object/namespace to add the alias to
|
||||
*/
|
||||
addAliasToNamespace : function( namespace ){
|
||||
namespace[ GalaxyLocalization.ALIAS_NAME ] = function( str ){ return GalaxyLocalization.localize( str ); };
|
||||
},
|
||||
|
||||
/** String representation. */
|
||||
toString : function(){ return 'GalaxyLocalization'; }
|
||||
// =============================================================================
|
||||
return localize;
|
||||
});
|
||||
|
||||
GalaxyLocalization.addAliasToNamespace( window );
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<!DOCTYPE HTML>
|
||||
|
||||
<%namespace name="galaxy_client" file="../galaxy_client_app.mako" />
|
||||
<%
|
||||
self.has_left_panel = hasattr( self, 'left_panel' )
|
||||
self.has_right_panel = hasattr( self, 'right_panel' )
|
||||
@@ -58,6 +59,7 @@
|
||||
'libs/require',
|
||||
"mvc/ui"
|
||||
)}
|
||||
${ galaxy_client.bootstrap() }
|
||||
|
||||
<script type="text/javascript">
|
||||
## global configuration object
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
<%inherit file="${inherit( context )}"/>
|
||||
<%namespace file="/tagging_common.mako" import="render_individual_tagging_element, render_community_tagging_element" />
|
||||
<%namespace file="/display_common.mako" import="*" />
|
||||
<%namespace file="webapps/galaxy/history/history_panel.mako" import="history_panel_javascripts" />
|
||||
|
||||
##
|
||||
## Functions used by base.mako and base_panels.mako to display content.
|
||||
@@ -35,7 +34,6 @@
|
||||
${parent.javascripts()}
|
||||
${h.js( "libs/jquery/jstorage", "libs/jquery/jquery.autocomplete", "libs/jquery/jquery.rating",
|
||||
"galaxy.autocom_tagging" )}
|
||||
${history_panel_javascripts()}
|
||||
${h.js( "galaxy.panels", "libs/jquery/jstorage", "libs/jquery/jquery.event.drag", "libs/jquery/jquery.event.hover",
|
||||
"libs/jquery/jquery.mousewheel", "libs/jquery/jquery-ui", "libs/require", "libs/farbtastic" )}
|
||||
|
||||
|
||||
@@ -67,9 +67,6 @@
|
||||
}
|
||||
%>
|
||||
|
||||
##${h.js( "mvc/base-mvc", "utils/localization", "mvc/user/user-model", "mvc/user/user-quotameter" )}
|
||||
${h.js( "utils/localization" )}
|
||||
|
||||
## load the frame manager
|
||||
<script type="text/javascript">
|
||||
if( !window.Galaxy ){
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<%inherit file="/display_base.mako"/>
|
||||
<%namespace file="history_panel.mako" import="history_panel_javascripts" />
|
||||
|
||||
## Set vars so that there's no need to change the code below.
|
||||
<%
|
||||
@@ -9,7 +8,6 @@
|
||||
|
||||
<%def name="javascripts()">
|
||||
${parent.javascripts()}
|
||||
${history_panel_javascripts()}
|
||||
</%def>
|
||||
|
||||
<%def name="stylesheets()">
|
||||
|
||||
@@ -1,147 +1,14 @@
|
||||
<%namespace file="/utils/localization.mako" import="localize_js_strings" />
|
||||
|
||||
## shortcuts for script tags that create history panels
|
||||
## ----------------------------------------------------------------------------
|
||||
<%def name="current_history_panel( selector_to_attach_to=None, show_deleted=None, show_hidden=None, hda_id=None )">
|
||||
|
||||
${history_panel_javascripts()}
|
||||
|
||||
<script type="text/javascript">
|
||||
require([ "mvc/history/current-history-panel" ], function( historyPanel ){
|
||||
$(function(){
|
||||
var currPanel = new historyPanel.CurrentHistoryPanel({
|
||||
// is page sending in show settings? if so override history's
|
||||
show_deleted : ${ 'true' if show_deleted == True else ( 'null' if show_deleted == None else 'false' ) },
|
||||
show_hidden : ${ 'true' if show_hidden == True else ( 'null' if show_hidden == None else 'false' ) },
|
||||
el : $( "${selector_to_attach_to}" ),
|
||||
linkTarget : 'galaxy_main',
|
||||
onready : function loadAsCurrentHistoryPanel(){
|
||||
this.connectToQuotaMeter( Galaxy.quotaMeter )
|
||||
.connectToOptionsMenu( Galaxy.historyOptionsMenu );
|
||||
this.loadCurrentHistory();
|
||||
}
|
||||
});
|
||||
Galaxy.currHistoryPanel = currPanel;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<%def name="current_history_panel( selector_to_attach_to=None, options )">
|
||||
</%def>
|
||||
|
||||
|
||||
## ----------------------------------------------------------------------------
|
||||
<%def name="history_panel( history_id, selector_to_attach_to=None, \
|
||||
show_deleted=None, show_hidden=None, hda_id=None )">
|
||||
|
||||
${history_panel_javascripts()}
|
||||
|
||||
<script type="text/javascript">
|
||||
onhistoryready.done( function( historyPanel ){
|
||||
// attach a panel to selector_to_attach_to and load the history/hdas with the given history_id over the api
|
||||
var panel = new historyPanel.HistoryPanel({
|
||||
show_deleted : ${ 'true' if show_deleted == True else ( 'null' if show_deleted == None else 'false' ) },
|
||||
show_hidden : ${ 'true' if show_hidden == True else ( 'null' if show_hidden == None else 'false' ) },
|
||||
el : $( "${selector_to_attach_to}" ),
|
||||
onready : function loadHistoryById(){
|
||||
var panel = this;
|
||||
this.loadHistoryWithHDADetails( '${history_id}' )
|
||||
.fail( function(){
|
||||
panel.render();
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<%def name="history_panel( history_id, selector_to_attach_to=None, options )">
|
||||
</%def>
|
||||
|
||||
|
||||
## ----------------------------------------------------------------------------
|
||||
<%def name="bootstrapped_history_panel( history, hdas, selector_to_attach_to=None, \
|
||||
show_deleted=None, show_hidden=None, hda_id=None )">
|
||||
|
||||
${history_panel_javascripts()}
|
||||
|
||||
<script type="text/javascript">
|
||||
onhistoryready.done( function( historyPanel ){
|
||||
// attach a panel to selector_to_attach_to and use a history model with bootstrapped data
|
||||
|
||||
// history module is already in the dpn chain from the panel. We can re-scope it here.
|
||||
var historyModel = require( 'mvc/history/history-model' ),
|
||||
debugging = JSON.parse( sessionStorage.getItem( 'debugging' ) ) || false,
|
||||
historyJSON = ${h.to_json_string( history )},
|
||||
hdaJSON = ${h.to_json_string( hdas )};
|
||||
|
||||
var history = new historyModel.History( historyJSON, hdaJSON, {
|
||||
logger: ( debugging )?( console ):( null )
|
||||
});
|
||||
|
||||
var panel = new historyPanel.HistoryPanel({
|
||||
show_deleted : ${ 'true' if show_deleted == True else ( 'null' if show_deleted == None else 'false' ) },
|
||||
show_hidden : ${ 'true' if show_hidden == True else ( 'null' if show_hidden == None else 'false' ) },
|
||||
el : $( "${selector_to_attach_to}" ),
|
||||
model : history,
|
||||
onready : function(){ this.render(); }
|
||||
});
|
||||
})
|
||||
</script>
|
||||
</%def>
|
||||
|
||||
|
||||
## ----------------------------------------------------------------------------- generic 'base' function
|
||||
<%def name="history_panel_javascripts()">
|
||||
${h.js(
|
||||
"utils/localization",
|
||||
)}
|
||||
|
||||
${localize_js_strings([
|
||||
# not needed?: "Galaxy History",
|
||||
'refresh',
|
||||
'collapse all',
|
||||
'hide deleted',
|
||||
'hide hidden',
|
||||
'You are currently viewing a deleted history!',
|
||||
"Your history is empty. Click 'Get Data' on the left pane to start",
|
||||
|
||||
# from history_common.mako
|
||||
'Download',
|
||||
'Display Data',
|
||||
'View data',
|
||||
'Edit attributes',
|
||||
'Delete',
|
||||
'Job is waiting to run',
|
||||
'View Details',
|
||||
'Job is currently running',
|
||||
#'Run this job again',
|
||||
'Metadata is being Auto-Detected.',
|
||||
'No data: ',
|
||||
'format: ',
|
||||
'database: ',
|
||||
#TODO localized data.dbkey??
|
||||
'Info: ',
|
||||
#TODO localized display_app.display_name??
|
||||
# _( link_app.name )
|
||||
# localized peek...ugh
|
||||
'Error: unknown dataset state'
|
||||
])}
|
||||
|
||||
<script type="text/javascript">
|
||||
var //debugging = JSON.parse( sessionStorage.getItem( 'debugging' ) ) || false,
|
||||
// use deferred to allow multiple callbacks (.done())
|
||||
onhistoryready = jQuery.Deferred();
|
||||
|
||||
require.config({
|
||||
baseUrl : "${h.url_for( '/static/scripts' )}"
|
||||
});
|
||||
|
||||
// requirejs optimizer:
|
||||
//r.js -o baseUrl='/Users/carleberhard/galaxy/iframe-2-hpanel/static/scripts' \
|
||||
// name=./mvc/history/history-panel.js out=history-panel.min.js
|
||||
//TODO: can't get either to work - historyPanel is undefined
|
||||
//require([ "history-panel.min" ], function( historyPanel ){
|
||||
//require([ "/static/scripts/history-panel.min.js" ], function( historyPanel ){
|
||||
|
||||
require([ "mvc/history/history-panel" ], function( historyPanel ){
|
||||
$(function(){
|
||||
onhistoryready.resolve( historyPanel )
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<%def name="bootstrapped_history_panel( history, hdas, selector_to_attach_to=None, options )">
|
||||
</%def>
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
<%namespace file="/history/history_panel.mako" import="history_panel_javascripts" />
|
||||
<%namespace file="/galaxy.masthead.mako" import="get_user_json" />
|
||||
|
||||
## ----------------------------------------------------------------------------
|
||||
@@ -70,7 +69,6 @@ a.btn {
|
||||
## ----------------------------------------------------------------------------
|
||||
<%def name="javascripts()">
|
||||
${parent.javascripts()}
|
||||
${history_panel_javascripts()}
|
||||
|
||||
%if not use_panels:
|
||||
<script type="text/javascript">
|
||||
@@ -107,7 +105,9 @@ window.Galaxy = {};
|
||||
<div id="history-${ history[ 'id' ] }" class="history-panel unified-panel-body" style="overflow: auto;"></div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
|
||||
function setUpBehaviors(){
|
||||
|
||||
$( '#toggle-deleted' ).modeButton({
|
||||
initialMode : "${ 'showing_deleted' if show_deleted else 'not_showing_deleted' }",
|
||||
modes: [
|
||||
@@ -118,7 +118,7 @@ window.Galaxy = {};
|
||||
// allow the 'include/exclude deleted' button to control whether the 'import' button includes deleted
|
||||
// datasets when importing or not; when deleted datasets are shown, they'll be imported
|
||||
$( '#import' ).modeButton( 'setMode',
|
||||
$( this ).modeButton( 'current' ) === 'showing_deleted'? 'with_deleted': 'without_deleted' )
|
||||
$( this ).modeButton( 'current' ) === 'showing_deleted'? 'with_deleted': 'without_deleted' );
|
||||
});
|
||||
|
||||
$( '#toggle-hidden' ).modeButton({
|
||||
@@ -142,13 +142,12 @@ window.Galaxy = {};
|
||||
onclick: function importWithoutDeleted(){
|
||||
window.location = '${imp_without_deleted_url}';
|
||||
}
|
||||
},
|
||||
}
|
||||
]
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
var debugging = JSON.parse( sessionStorage.getItem( 'debugging' ) ) || false,
|
||||
userIsOwner = ${'true' if user_is_owner else 'false'},
|
||||
var userIsOwner = ${'true' if user_is_owner else 'false'},
|
||||
historyJSON = ${h.to_json_string( history )},
|
||||
hdaJSON = ${h.to_json_string( hdas )};
|
||||
panelToUse = ( userIsOwner )?
|
||||
@@ -157,8 +156,10 @@ window.Galaxy = {};
|
||||
|
||||
require.config({
|
||||
baseUrl : "${h.url_for( '/static/scripts' )}"
|
||||
})([ 'mvc/user/user-model', panelToUse.location ], function( user, panelMod ){
|
||||
})([ 'mvc/user/user-model', panelToUse.location, 'utils/localization' ], function( user, panelMod, _l ){
|
||||
$(function(){
|
||||
window._l = _l;
|
||||
setUpBehaviors();
|
||||
if( !Galaxy.currUser ){
|
||||
Galaxy.currUser = new user.User( ${h.to_json_string( get_user_json() )} );
|
||||
}
|
||||
@@ -167,9 +168,7 @@ window.Galaxy = {};
|
||||
// history module is already in the dpn chain from the panel. We can re-scope it here.
|
||||
historyModel = require( 'mvc/history/history-model' ),
|
||||
hdaBaseView = require( 'mvc/dataset/hda-base' ),
|
||||
history = new historyModel.History( historyJSON, hdaJSON, {
|
||||
logger: ( debugging )?( console ):( null )
|
||||
});
|
||||
history = new historyModel.History( historyJSON, hdaJSON );
|
||||
|
||||
window.historyPanel = new panelClass({
|
||||
show_deleted : ${show_deleted_json},
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
${_('Galaxy History')}
|
||||
</%def>
|
||||
|
||||
<%namespace file="/history/history_panel.mako" import="history_panel_javascripts" />
|
||||
<%namespace file="/galaxy.masthead.mako" import="get_user_json" />
|
||||
|
||||
## -----------------------------------------------------------------------------
|
||||
@@ -21,7 +20,6 @@
|
||||
## -----------------------------------------------------------------------------
|
||||
<%def name="javascripts()">
|
||||
${parent.javascripts()}
|
||||
${history_panel_javascripts()}
|
||||
|
||||
<script type="text/javascript">
|
||||
if( !window.Galaxy ){
|
||||
@@ -33,9 +31,11 @@ $(function(){
|
||||
|
||||
require([
|
||||
'mvc/user/user-model',
|
||||
'mvc/history/current-history-panel'
|
||||
], function( user, historyPanel ){
|
||||
'mvc/history/current-history-panel',
|
||||
'utils/localization'
|
||||
], function( user, historyPanel, _l ){
|
||||
$(function(){
|
||||
window._l = _l;
|
||||
Galaxy.currUser = new user.User( ${h.to_json_string( get_user_json() )} );
|
||||
// history module is already in the dpn chain from the panel. We can re-scope it here.
|
||||
var historyModel = require( 'mvc/history/history-model' ),
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
<%inherit file="/webapps/galaxy/base_panels.mako"/>
|
||||
|
||||
<%namespace file="/root/tool_menu.mako" import="*" />
|
||||
<%namespace file="/history/history_panel.mako" import="current_history_panel" />
|
||||
|
||||
<%def name="stylesheets()">
|
||||
${parent.stylesheets()}
|
||||
@@ -181,6 +180,7 @@
|
||||
</%def>
|
||||
|
||||
<%def name="right_panel()">
|
||||
<!-- current history panel -->
|
||||
<div class="unified-panel-header" unselectable="on">
|
||||
<div class="unified-panel-header-inner">
|
||||
<div style="float: right">
|
||||
@@ -198,7 +198,22 @@
|
||||
<div class="unified-panel-body">
|
||||
<div id="current-history-panel" class="history-panel"></div>
|
||||
## Don't bootstrap data here - confuses the browser history: load via API
|
||||
${current_history_panel( selector_to_attach_to='#current-history-panel' )}
|
||||
<script type="text/javascript">
|
||||
require([ "mvc/history/current-history-panel" ], function( historyPanel ){
|
||||
$(function(){
|
||||
var currPanel = new historyPanel.CurrentHistoryPanel({
|
||||
el : $( "#current-history-panel" ),
|
||||
linkTarget : 'galaxy_main',
|
||||
onready : function loadAsCurrentHistoryPanel(){
|
||||
this.connectToQuotaMeter( Galaxy.quotaMeter )
|
||||
.connectToOptionsMenu( Galaxy.historyOptionsMenu );
|
||||
this.loadCurrentHistory();
|
||||
}
|
||||
});
|
||||
Galaxy.currHistoryPanel = currPanel;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
$( '#history-refresh-button' ).on( 'click', function(){
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
<%def name="localize_js_strings( strings_to_localize )">
|
||||
##PRECONDITION: static/scripts/utils/localization.js should be loaded first
|
||||
## adds localized versions of strings to the JS GalaxyLocalization for use in later JS
|
||||
## where strings_to_localize is a list of strings to localize
|
||||
<script type="text/javascript">
|
||||
## strings need to be mako rendered in order to use the '_' gettext helper for localization
|
||||
## these are then cached in the js object
|
||||
GalaxyLocalization.setLocalizedString(
|
||||
${ h.to_json_string( dict([ ( string, _(string) ) for string in strings_to_localize ]) ) }
|
||||
);
|
||||
</script>
|
||||
</%def>
|
||||
Reference in New Issue
Block a user