Feature #35536 » 03_Add_Simpacker.patch
| .gitignore | ||
|---|---|---|
|
!/public/themes/alternate
|
||
|
!/public/themes/classic
|
||
|
!/public/themes/README
|
||
|
/public/images/jquery-ui/*
|
||
|
/public/javascripts/*.js*
|
||
|
/public/javascripts/jstoolbar/*.js*
|
||
|
/public/stylesheets/*.css*
|
||
|
/tmp/*
|
||
|
/tmp/cache/*
|
||
|
/tmp/pdf/*
|
||
| ... | ... | |
|
/node_modules
|
||
|
yarn-error.log
|
||
|
/public/packs
|
||
| Gemfile | ||
|---|---|---|
|
gem "rbpdf", "~> 1.20.0"
|
||
|
gem 'addressable'
|
||
|
gem 'rubyzip', '~> 2.3.0'
|
||
|
gem 'simpacker'
|
||
|
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
||
|
gem 'tzinfo-data', platforms: [:mingw, :x64_mingw, :mswin]
|
||
| ... | ... | |
|
group :development do
|
||
|
gem "yard"
|
||
|
gem "rack-reverse-proxy"
|
||
|
end
|
||
|
group :test do
|
||
| app/assets/README.md | ||
|---|---|---|
|
In Redmine, most javascripts, stylesheets, and images(hereafter called "assets") are under the control of webpack
|
||
|
webpack register assets in 'public/pack/manifest.json'. Redmine determines the actual URL based on the registered contents in manifest.json.
|
||
|
In the development environment, webpack-dev-server delivers assets, and the HMR feature automatically re-fetches the updated assets.
|
||
|
In the production environment, Redmine uses pre-compiled assets.
|
||
|
Each asset can be fine-grained to control how it is cached in the browser by file name, query strings, etc., thus reducing traffic and ensuring accurate content updates.
|
||
|
## Requirements
|
||
|
The following tools are necessary to the development and testing environment.
|
||
|
Node.js 14+
|
||
|
Yarn 1.x
|
||
|
## Preparation
|
||
|
In the development and test environments, start webpack-dev-server after installing the dependent npm packages.
|
||
|
````
|
||
|
# Install dependent packages
|
||
|
$ yarn
|
||
|
# Run this before starting Redmine.
|
||
|
# assets will be stored in memory and will not be output as a file.
|
||
|
$ yarn server &
|
||
|
$ rails server -b 0.0.0.0
|
||
|
````
|
||
|
In production, pre-compile your assets.
|
||
|
```
|
||
|
# Install the dependency packages.
|
||
|
$ yarn
|
||
|
# Compile assets (assets will be output to 'public/').
|
||
|
$ yarn release
|
||
|
# Start Redmine
|
||
|
$ rails server
|
||
|
````
|
||
|
## Notes
|
||
|
It will take some time to generate manifest.json after starting webpack-dev-server.
|
||
| app/assets/javascripts/application.js | ||
|---|---|---|
|
/*
|
||
|
"~/" in import is an alias for "app/assets/stylesheets/". See: "https://webpack.js.org/configuration/resolve/#resolvealias"
|
||
|
*/
|
||
|
import $ from "jquery";
|
||
|
import '~/stylesheets/application.css';
|
||
|
import 'jquery-ui-dist/jquery-ui';
|
||
|
import 'jquery-ui-dist/jquery-ui.css';
|
||
|
import '~/stylesheets/responsive.css';
|
||
|
import Rails from '@rails/ujs';
|
||
|
Rails.start();
|
||
|
export {
|
||
|
sanitizeHTML
|
||
|
, checkAll
|
||
|
, toggleCheckboxesBySelector
|
||
|
, showAndScrollTo
|
||
|
, toggleRowGroup
|
||
|
, collapseAllRowGroups
|
||
|
, expandAllRowGroups
|
||
|
, toggleAllRowGroups
|
||
|
, toggleFieldset
|
||
|
, hideFieldset
|
||
|
, moveOptions
|
||
|
, moveOptionUp
|
||
|
, moveOptionTop
|
||
|
, moveOptionDown
|
||
|
, moveOptionBottom
|
||
|
, initFilters
|
||
|
, addFilter
|
||
|
, buildFilterRow
|
||
|
, toggleFilter
|
||
|
, enableValues
|
||
|
, toggleOperator
|
||
|
, toggleMultiSelect
|
||
|
, showTab
|
||
|
, showIssueHistory
|
||
|
, getRemoteTab
|
||
|
, replaceInHistory
|
||
|
, moveTabRight
|
||
|
, moveTabLeft
|
||
|
, displayTabsButtons
|
||
|
, setPredecessorFieldsVisibility
|
||
|
, showModal
|
||
|
, hideModal
|
||
|
, collapseScmEntry
|
||
|
, expandScmEntry
|
||
|
, scmEntryClick
|
||
|
, randomKey
|
||
|
, copyTextToClipboard
|
||
|
, updateIssueFrom
|
||
|
, replaceIssueFormWith
|
||
|
, updateBulkEditFrom
|
||
|
, observeAutocompleteField
|
||
|
, multipleAutocompleteField
|
||
|
, observeSearchfield
|
||
|
, beforeShowDatePicker
|
||
|
, warnLeavingUnsavedMessage
|
||
|
, warnLeavingUnsaved
|
||
|
, setupAjaxIndicator
|
||
|
, setupTabs
|
||
|
, setupFilePreviewNavigation
|
||
|
, hideOnLoad
|
||
|
, addFormObserversForDoubleSubmit
|
||
|
, defaultFocus
|
||
|
, blockEventPropagation
|
||
|
, toggleDisabledOnChange
|
||
|
, toggleDisabledInit
|
||
|
, toggleMultiSelectIconInit
|
||
|
, toggleNewObjectDropdown
|
||
|
, keepAnchorOnSignIn
|
||
|
, setFilecontentContainerHeight
|
||
|
, setupAttachmentDetail
|
||
|
, setupWikiTableSortableHeader
|
||
|
, inlineAutoComplete
|
||
|
} from "./base.js";
|
||
|
export {
|
||
|
openFlyout
|
||
|
, closeFlyout
|
||
|
, isMobile
|
||
|
, setupFlyout
|
||
|
} from "./responsive.js";
|
||
| app/assets/javascripts/attachments.js | ||
|---|---|---|
|
/* Redmine - project management software
|
||
|
Copyright (C) 2006-2021 Jean-Philippe Lang */
|
||
|
function addFile(inputEl, file, eagerUpload) {
|
||
|
export function addFile(inputEl, file, eagerUpload) {
|
||
|
var attachmentsFields = $(inputEl).closest('.attachments_form').find('.attachments_fields');
|
||
|
var addAttachment = $(inputEl).closest('.attachments_form').find('.add_attachment');
|
||
|
var maxFiles = ($(inputEl).attr('multiple') == 'multiple' ? 10 : 1);
|
||
| ... | ... | |
|
addFile.nextAttachmentId = 1;
|
||
|
function ajaxUpload(file, attachmentId, fileSpan, inputEl) {
|
||
|
export function ajaxUpload(file, attachmentId, fileSpan, inputEl) {
|
||
|
function onLoadstart(e) {
|
||
|
fileSpan.removeClass('ajax-waiting');
|
||
| ... | ... | |
|
ajaxUpload.uploading = 0;
|
||
|
function removeFile() {
|
||
|
export function removeFile() {
|
||
|
$(this).closest('.attachments_form').find('.add_attachment').show();
|
||
|
$(this).parent('span').remove();
|
||
|
return false;
|
||
|
}
|
||
|
function uploadBlob(blob, uploadUrl, attachmentId, options) {
|
||
|
export function uploadBlob(blob, uploadUrl, attachmentId, options) {
|
||
|
var actualOptions = $.extend({
|
||
|
loadstartEventHandler: $.noop,
|
||
| ... | ... | |
|
});
|
||
|
}
|
||
|
function addInputFiles(inputEl) {
|
||
|
export function addInputFiles(inputEl) {
|
||
|
var attachmentsFields = $(inputEl).closest('.attachments_form').find('.attachments_fields');
|
||
|
var addAttachment = $(inputEl).closest('.attachments_form').find('.add_attachment');
|
||
|
var clearedFileInput = $(inputEl).clone().val('');
|
||
| ... | ... | |
|
clearedFileInput.prependTo(addAttachment);
|
||
|
}
|
||
|
function uploadAndAttachFiles(files, inputEl) {
|
||
|
export function uploadAndAttachFiles(files, inputEl) {
|
||
|
var maxFileSize = $(inputEl).data('max-file-size');
|
||
|
var maxFileSizeExceeded = $(inputEl).data('max-file-size-message');
|
||
| ... | ... | |
|
return sizeExceeded;
|
||
|
}
|
||
|
function handleFileDropEvent(e) {
|
||
|
export function handleFileDropEvent(e) {
|
||
|
$(this).removeClass('fileover');
|
||
|
blockEventPropagation(e);
|
||
| ... | ... | |
|
}
|
||
|
handleFileDropEvent.target = '';
|
||
|
function dragOverHandler(e) {
|
||
|
export function dragOverHandler(e) {
|
||
|
$(this).addClass('fileover');
|
||
|
blockEventPropagation(e);
|
||
|
e.dataTransfer.dropEffect = 'copy';
|
||
|
}
|
||
|
function dragOutHandler(e) {
|
||
|
export function dragOutHandler(e) {
|
||
|
$(this).removeClass('fileover');
|
||
|
blockEventPropagation(e);
|
||
|
}
|
||
|
function setupFileDrop() {
|
||
|
export function setupFileDrop() {
|
||
|
if (window.File && window.FileList && window.ProgressEvent && window.FormData) {
|
||
|
$.event.addProp('dataTransfer');
|
||
| ... | ... | |
|
}
|
||
|
}
|
||
|
function addInlineAttachmentMarkup(file) {
|
||
|
export function addInlineAttachmentMarkup(file) {
|
||
|
// insert uploaded image inline if dropped area is currently focused textarea
|
||
|
if($(handleFileDropEvent.target).hasClass('wiki-edit') && $.inArray(file.type, window.wikiImageMimeTypes) > -1) {
|
||
|
var $textarea = $(handleFileDropEvent.target);
|
||
| ... | ... | |
|
}
|
||
|
}
|
||
|
function copyImageFromClipboard(e) {
|
||
|
export function copyImageFromClipboard(e) {
|
||
|
if (!$(e.target).hasClass('wiki-edit')) { return; }
|
||
|
var clipboardData = e.clipboardData || e.originalEvent.clipboardData
|
||
|
if (!clipboardData) { return; }
|
||
| app/assets/javascripts/base.js | ||
|---|---|---|
|
/* Redmine - project management software
|
||
|
Copyright (C) 2006-2021 Jean-Philippe Lang */
|
||
|
function sanitizeHTML(string) {
|
||
|
import $ from "jquery";
|
||
|
import jQuery from "jquery";
|
||
|
import Tribute from "tributejs";
|
||
|
import Tablesort from "tablesort";
|
||
|
import 'tributejs/dist/tribute.css';
|
||
|
export function sanitizeHTML(string) {
|
||
|
var temp = document.createElement('span');
|
||
|
temp.textContent = string;
|
||
|
return temp.innerHTML;
|
||
|
}
|
||
|
function checkAll(id, checked) {
|
||
|
export function checkAll(id, checked) {
|
||
|
$('#'+id).find('input[type=checkbox]:enabled').prop('checked', checked);
|
||
|
}
|
||
|
function toggleCheckboxesBySelector(selector) {
|
||
|
export function toggleCheckboxesBySelector(selector) {
|
||
|
var all_checked = true;
|
||
|
$(selector).each(function(index) {
|
||
|
if (!$(this).is(':checked')) { all_checked = false; }
|
||
| ... | ... | |
|
$(selector).prop('checked', !all_checked).trigger('change');
|
||
|
}
|
||
|
function showAndScrollTo(id, focus) {
|
||
|
export function showAndScrollTo(id, focus) {
|
||
|
$('#'+id).show();
|
||
|
if (focus !== null) {
|
||
|
$('#'+focus).focus();
|
||
| ... | ... | |
|
$('html, body').animate({scrollTop: $('#'+id).offset().top}, 100);
|
||
|
}
|
||
|
function toggleRowGroup(el) {
|
||
|
export function toggleRowGroup(el) {
|
||
|
var tr = $(el).parents('tr').first();
|
||
|
var n = tr.next();
|
||
|
tr.toggleClass('open');
|
||
| ... | ... | |
|
}
|
||
|
}
|
||
|
function collapseAllRowGroups(el) {
|
||
|
export function collapseAllRowGroups(el) {
|
||
|
var tbody = $(el).parents('tbody').first();
|
||
|
tbody.children('tr').each(function(index) {
|
||
|
if ($(this).hasClass('group')) {
|
||
| ... | ... | |
|
});
|
||
|
}
|
||
|
function expandAllRowGroups(el) {
|
||
|
export function expandAllRowGroups(el) {
|
||
|
var tbody = $(el).parents('tbody').first();
|
||
|
tbody.children('tr').each(function(index) {
|
||
|
if ($(this).hasClass('group')) {
|
||
| ... | ... | |
|
});
|
||
|
}
|
||
|
function toggleAllRowGroups(el) {
|
||
|
export function toggleAllRowGroups(el) {
|
||
|
var tr = $(el).parents('tr').first();
|
||
|
if (tr.hasClass('open')) {
|
||
|
collapseAllRowGroups(el);
|
||
| ... | ... | |
|
}
|
||
|
}
|
||
|
function toggleFieldset(el) {
|
||
|
export function toggleFieldset(el) {
|
||
|
var fieldset = $(el).parents('fieldset').first();
|
||
|
fieldset.toggleClass('collapsed');
|
||
|
fieldset.children('legend').toggleClass('icon-expended icon-collapsed');
|
||
|
fieldset.children('div').toggle();
|
||
|
}
|
||
|
function hideFieldset(el) {
|
||
|
export function hideFieldset(el) {
|
||
|
var fieldset = $(el).parents('fieldset').first();
|
||
|
fieldset.toggleClass('collapsed');
|
||
|
fieldset.children('div').hide();
|
||
|
}
|
||
|
// columns selection
|
||
|
function moveOptions(theSelFrom, theSelTo) {
|
||
|
export function moveOptions(theSelFrom, theSelTo) {
|
||
|
$(theSelFrom).find('option:selected').detach().prop("selected", false).appendTo($(theSelTo));
|
||
|
}
|
||
|
function moveOptionUp(theSel) {
|
||
|
export function moveOptionUp(theSel) {
|
||
|
$(theSel).find('option:selected').each(function(){
|
||
|
$(this).prev(':not(:selected)').detach().insertAfter($(this));
|
||
|
});
|
||
|
}
|
||
|
function moveOptionTop(theSel) {
|
||
|
export function moveOptionTop(theSel) {
|
||
|
$(theSel).find('option:selected').detach().prependTo($(theSel));
|
||
|
}
|
||
|
function moveOptionDown(theSel) {
|
||
|
export function moveOptionDown(theSel) {
|
||
|
$($(theSel).find('option:selected').get().reverse()).each(function(){
|
||
|
$(this).next(':not(:selected)').detach().insertBefore($(this));
|
||
|
});
|
||
|
}
|
||
|
function moveOptionBottom(theSel) {
|
||
|
export function moveOptionBottom(theSel) {
|
||
|
$(theSel).find('option:selected').detach().appendTo($(theSel));
|
||
|
}
|
||
|
function initFilters() {
|
||
|
export function initFilters() {
|
||
|
$('#add_filter_select').change(function() {
|
||
|
addFilter($(this).val(), '', []);
|
||
|
});
|
||
| ... | ... | |
|
});
|
||
|
}
|
||
|
function addFilter(field, operator, values) {
|
||
|
export function addFilter(field, operator, values) {
|
||
|
var fieldId = field.replace('.', '_');
|
||
|
var tr = $('#tr_'+fieldId);
|
||
| ... | ... | |
|
});
|
||
|
}
|
||
|
function buildFilterRow(field, operator, values) {
|
||
|
export function buildFilterRow(field, operator, values) {
|
||
|
var fieldId = field.replace('.', '_');
|
||
|
var filterTable = $("#filters-table");
|
||
|
var filterOptions = availableFilters[field];
|
||
| ... | ... | |
|
}
|
||
|
}
|
||
|
function toggleFilter(field) {
|
||
|
export function toggleFilter(field) {
|
||
|
var fieldId = field.replace('.', '_');
|
||
|
if ($('#cb_' + fieldId).is(':checked')) {
|
||
|
$("#operators_" + fieldId).show().removeAttr('disabled');
|
||
| ... | ... | |
|
}
|
||
|
}
|
||
|
function enableValues(field, indexes) {
|
||
|
export function enableValues(field, indexes) {
|
||
|
var fieldId = field.replace('.', '_');
|
||
|
$('#tr_'+fieldId+' td.values .value').each(function(index) {
|
||
|
if ($.inArray(index, indexes) >= 0) {
|
||
| ... | ... | |
|
});
|
||
|
}
|
||
|
function toggleOperator(field) {
|
||
|
export function toggleOperator(field) {
|
||
|
var fieldId = field.replace('.', '_');
|
||
|
var operator = $("#operators_" + fieldId);
|
||
|
switch (operator.val()) {
|
||
| ... | ... | |
|
}
|
||
|
}
|
||
|
function toggleMultiSelect(el) {
|
||
|
export function toggleMultiSelect(el) {
|
||
|
var isWorkflow = el.closest('.controller-workflows');
|
||
|
if (el.attr('multiple')) {
|
||
|
el.removeAttr('multiple');
|
||
| ... | ... | |
|
}
|
||
|
}
|
||
|
function showTab(name, url) {
|
||
|
export function showTab(name, url) {
|
||
|
$('#tab-content-' + name).parent().find('.tab-content').hide();
|
||
|
$('#tab-content-' + name).show();
|
||
|
$('#tab-' + name).closest('.tabs').find('a').removeClass('selected');
|
||
| ... | ... | |
|
return false;
|
||
|
}
|
||
|
function showIssueHistory(journal, url) {
|
||
|
export function showIssueHistory(journal, url) {
|
||
|
tab_content = $('#tab-content-history');
|
||
|
tab_content.parent().find('.tab-content').hide();
|
||
|
tab_content.show();
|
||
| ... | ... | |
|
return false;
|
||
|
}
|
||
|
function getRemoteTab(name, remote_url, url, load_always) {
|
||
|
export function getRemoteTab(name, remote_url, url, load_always) {
|
||
|
load_always = load_always || false;
|
||
|
var tab_content = $('#tab-content-' + name);
|
||
| ... | ... | |
|
//replaces current URL with the "href" attribute of the current link
|
||
|
//(only triggered if supported by browser)
|
||
|
function replaceInHistory(url) {
|
||
|
export function replaceInHistory(url) {
|
||
|
if ("replaceState" in window.history && url !== undefined) {
|
||
|
window.history.replaceState(null, document.title, url);
|
||
|
}
|
||
|
}
|
||
|
function moveTabRight(el) {
|
||
|
export function moveTabRight(el) {
|
||
|
var lis = $(el).parents('div.tabs').first().find('ul').children();
|
||
|
var bw = $(el).parents('div.tabs-buttons').outerWidth(true);
|
||
|
var tabsWidth = 0;
|
||
| ... | ... | |
|
}
|
||
|
}
|
||
|
function moveTabLeft(el) {
|
||
|
export function moveTabLeft(el) {
|
||
|
var lis = $(el).parents('div.tabs').first().find('ul').children();
|
||
|
var i = 0;
|
||
|
while (i < lis.length && !lis.eq(i).is(':visible')) { i++; }
|
||
| ... | ... | |
|
}
|
||
|
}
|
||
|
function displayTabsButtons() {
|
||
|
export function displayTabsButtons() {
|
||
|
var lis;
|
||
|
var tabsWidth;
|
||
|
var el;
|
||
| ... | ... | |
|
});
|
||
|
}
|
||
|
function setPredecessorFieldsVisibility() {
|
||
|
export function setPredecessorFieldsVisibility() {
|
||
|
var relationType = $('#relation_relation_type');
|
||
|
if (relationType.val() == "precedes" || relationType.val() == "follows") {
|
||
|
$('#predecessor_fields').show();
|
||
| ... | ... | |
|
}
|
||
|
}
|
||
|
function showModal(id, width, title) {
|
||
|
export function showModal(id, width, title) {
|
||
|
var el = $('#'+id).first();
|
||
|
if (el.length === 0 || el.is(':visible')) {return;}
|
||
|
if (!title) title = el.find('h3.title').text();
|
||
| ... | ... | |
|
el.find("input[type=text], input[type=submit]").first().focus();
|
||
|
}
|
||
|
function hideModal(el) {
|
||
|
export function hideModal(el) {
|
||
|
var modal;
|
||
|
if (el) {
|
||
|
modal = $(el).parents('.ui-dialog-content');
|
||
| ... | ... | |
|
modal.dialog("close");
|
||
|
}
|
||
|
function collapseScmEntry(id) {
|
||
|
export function collapseScmEntry(id) {
|
||
|
$('.'+id).each(function() {
|
||
|
if ($(this).hasClass('open')) {
|
||
|
collapseScmEntry($(this).attr('id'));
|
||
| ... | ... | |
|
$('#'+id).removeClass('open');
|
||
|
}
|
||
|
function expandScmEntry(id) {
|
||
|
export function expandScmEntry(id) {
|
||
|
$('.'+id).each(function() {
|
||
|
$(this).show();
|
||
|
if ($(this).hasClass('loaded') && !$(this).hasClass('collapsed')) {
|
||
| ... | ... | |
|
$('#'+id).addClass('open');
|
||
|
}
|
||
|
function scmEntryClick(id, url) {
|
||
|
export function scmEntryClick(id, url) {
|
||
|
var el = $('#'+id);
|
||
|
if (el.hasClass('open')) {
|
||
|
collapseScmEntry(id);
|
||
| ... | ... | |
|
return true;
|
||
|
}
|
||
|
function randomKey(size) {
|
||
|
export function randomKey(size) {
|
||
|
var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
|
||
|
var key = '';
|
||
|
for (var i = 0; i < size; i++) {
|
||
| ... | ... | |
|
return key;
|
||
|
}
|
||
|
function copyTextToClipboard(target) {
|
||
|
export function copyTextToClipboard(target) {
|
||
|
if (target) {
|
||
|
var temp = document.createElement('textarea');
|
||
|
temp.value = target.getAttribute('data-clipboard-text');
|
||
| ... | ... | |
|
return false;
|
||
|
}
|
||
|
function updateIssueFrom(url, el) {
|
||
|
export function updateIssueFrom(url, el) {
|
||
|
$('#all_attributes input, #all_attributes textarea, #all_attributes select').each(function(){
|
||
|
$(this).data('valuebeforeupdate', $(this).val());
|
||
|
});
|
||
| ... | ... | |
|
});
|
||
|
}
|
||
|
function replaceIssueFormWith(html){
|
||
|
export function replaceIssueFormWith(html){
|
||
|
var replacement = $(html);
|
||
|
$('#all_attributes input, #all_attributes textarea, #all_attributes select').each(function(){
|
||
|
var object_id = $(this).attr('id');
|
||
| ... | ... | |
|
$('#all_attributes').prepend(replacement);
|
||
|
}
|
||
|
function updateBulkEditFrom(url) {
|
||
|
export function updateBulkEditFrom(url) {
|
||
|
$.ajax({
|
||
|
url: url,
|
||
|
type: 'post',
|
||
| ... | ... | |
|
});
|
||
|
}
|
||
|
function observeAutocompleteField(fieldId, url, options) {
|
||
|
export function observeAutocompleteField(fieldId, url, options) {
|
||
|
$(document).ready(function() {
|
||
|
$('#'+fieldId).autocomplete($.extend({
|
||
|
source: url,
|
||
| ... | ... | |
|
});
|
||
|
}
|
||
|
function multipleAutocompleteField(fieldId, url, options) {
|
||
|
export function multipleAutocompleteField(fieldId, url, options) {
|
||
|
function split(val) {
|
||
|
return val.split(/,\s*/);
|
||
|
}
|
||
| ... | ... | |
|
});
|
||
|
}
|
||
|
function observeSearchfield(fieldId, targetId, url) {
|
||
|
export function observeSearchfield(fieldId, targetId, url) {
|
||
|
$('#'+fieldId).each(function() {
|
||
|
var $this = $(this);
|
||
|
$this.addClass('autocomplete');
|
||
| ... | ... | |
|
});
|
||
|
});
|
||
|
function beforeShowDatePicker(input, inst) {
|
||
|
export function beforeShowDatePicker(input, inst) {
|
||
|
var default_date = null;
|
||
|
switch ($(input).attr("id")) {
|
||
|
case "issue_start_date" :
|
||
| ... | ... | |
|
}
|
||
|
}( jQuery ));
|
||
|
var warnLeavingUnsavedMessage;
|
||
|
function warnLeavingUnsaved(message) {
|
||
|
export let warnLeavingUnsavedMessage;
|
||
|
export function warnLeavingUnsaved(message) {
|
||
|
warnLeavingUnsavedMessage = message;
|
||
|
$(document).on('submit', 'form', function(){
|
||
|
$('textarea').removeData('changed');
|
||
| ... | ... | |
|
};
|
||
|
}
|
||
|
function setupAjaxIndicator() {
|
||
|
export function setupAjaxIndicator() {
|
||
|
$(document).bind('ajaxSend', function(event, xhr, settings) {
|
||
|
if ($('.ajax-loading').length === 0 && settings.contentType != 'application/octet-stream') {
|
||
|
$('#ajax-indicator').show();
|
||
| ... | ... | |
|
});
|
||
|
}
|
||
|
function setupTabs() {
|
||
|
export function setupTabs() {
|
||
|
if($('.tabs').length > 0) {
|
||
|
displayTabsButtons();
|
||
|
$(window).resize(displayTabsButtons);
|
||
|
}
|
||
|
}
|
||
|
function setupFilePreviewNavigation() {
|
||
|
export function setupFilePreviewNavigation() {
|
||
|
// only bind arrow keys when preview navigation is present
|
||
|
const element = $('.pagination.filepreview').first();
|
||
|
if (element) {
|
||
| ... | ... | |
|
});
|
||
|
function hideOnLoad() {
|
||
|
export function hideOnLoad() {
|
||
|
$('.hol').hide();
|
||
|
}
|
||
|
function addFormObserversForDoubleSubmit() {
|
||
|
export function addFormObserversForDoubleSubmit() {
|
||
|
$('form[method=post]').each(function() {
|
||
|
if (!$(this).hasClass('multiple-submit')) {
|
||
|
$(this).submit(function(form_submission) {
|
||
| ... | ... | |
|
});
|
||
|
}
|
||
|
function defaultFocus(){
|
||
|
export function defaultFocus(){
|
||
|
if (($('#content :focus').length == 0) && (window.location.hash == '')) {
|
||
|
$('#content input[type=text], #content textarea').first().focus();
|
||
|
}
|
||
|
}
|
||
|
function blockEventPropagation(event) {
|
||
|
export function blockEventPropagation(event) {
|
||
|
event.stopPropagation();
|
||
|
event.preventDefault();
|
||
|
}
|
||
|
function toggleDisabledOnChange() {
|
||
|
export function toggleDisabledOnChange() {
|
||
|
var checked = $(this).is(':checked');
|
||
|
$($(this).data('disables')).attr('disabled', checked);
|
||
|
$($(this).data('enables')).attr('disabled', !checked);
|
||
|
$($(this).data('shows')).toggle(checked);
|
||
|
}
|
||
|
function toggleDisabledInit() {
|
||
|
export function toggleDisabledInit() {
|
||
|
$('input[data-disables], input[data-enables], input[data-shows]').each(toggleDisabledOnChange);
|
||
|
}
|
||
|
function toggleMultiSelectIconInit() {
|
||
|
export function toggleMultiSelectIconInit() {
|
||
|
$('.toggle-multiselect:not(.icon-toggle-minus), .toggle-multiselect:not(.icon-toggle-plus)').each(function(){
|
||
|
if ($(this).siblings('select').find('option:selected').length > 1){
|
||
|
$(this).addClass('icon-toggle-minus');
|
||
| ... | ... | |
|
});
|
||
|
}
|
||
|
function toggleNewObjectDropdown() {
|
||
|
export function toggleNewObjectDropdown() {
|
||
|
var dropdown = $('#new-object + ul.menu-children');
|
||
|
if(dropdown.hasClass('visible')){
|
||
|
dropdown.removeClass('visible');
|
||
| ... | ... | |
|
});
|
||
|
});
|
||
|
function keepAnchorOnSignIn(form){
|
||
|
export function keepAnchorOnSignIn(form){
|
||
|
var hash = decodeURIComponent(self.document.location.hash);
|
||
|
if (hash) {
|
||
|
if (hash.indexOf("#") === -1) {
|
||
| ... | ... | |
|
}).change();
|
||
|
});
|
||
|
function setFilecontentContainerHeight() {
|
||
|
export function setFilecontentContainerHeight() {
|
||
|
var $filecontainer = $('.filecontent-container');
|
||
|
var fileTypeSelectors = ['.image', 'video'];
|
||
| ... | ... | |
|
}
|
||
|
}
|
||
|
function setupAttachmentDetail() {
|
||
|
export function setupAttachmentDetail() {
|
||
|
setFilecontentContainerHeight();
|
||
|
$(window).resize(setFilecontentContainerHeight);
|
||
|
}
|
||
|
function setupWikiTableSortableHeader() {
|
||
|
export function setupWikiTableSortableHeader() {
|
||
|
$('div.wiki table').each(function(i, table){
|
||
|
if (table.rows.length < 3) return true;
|
||
|
var tr = $(table.rows).first();
|
||
| ... | ... | |
|
});
|
||
|
});
|
||
|
function inlineAutoComplete(element) {
|
||
|
export function inlineAutoComplete(element) {
|
||
|
'use strict';
|
||
|
// do not attach if Tribute is already initialized
|
||
| app/assets/javascripts/chart.js | ||
|---|---|---|
|
export { Chart } from "chart.js";
|
||
| app/assets/javascripts/context_menu.js | ||
|---|---|---|
|
/* Redmine - project management software
|
||
|
Copyright (C) 2006-2021 Jean-Philippe Lang */
|
||
|
Copyright (C) 2006-2021 Jean-Philippe Lang
|
||
|
var contextMenuObserving;
|
||
|
"~/" in import is an alias for "app/assets/stylesheets/". See: "https://webpack.js.org/configuration/resolve/#resolvealias"
|
||
|
*/
|
||
|
function contextMenuRightClick(event) {
|
||
|
import '~/stylesheets/context_menu.css';
|
||
|
export var contextMenuObserving;
|
||
|
export function contextMenuRightClick(event) {
|
||
|
var target = $(event.target);
|
||
|
if (target.is('a:not(.js-contextmenu)')) {return;}
|
||
|
var tr = target.closest('.hascontextmenu').first();
|
||
| ... | ... | |
|
contextMenuShow(event);
|
||
|
}
|
||
|
function contextMenuClick(event) {
|
||
|
export function contextMenuClick(event) {
|
||
|
var target = $(event.target);
|
||
|
var lastSelected;
|
||
| ... | ... | |
|
}
|
||
|
}
|
||
|
function contextMenuCreate() {
|
||
|
export function contextMenuCreate() {
|
||
|
if ($('#context-menu').length < 1) {
|
||
|
var menu = document.createElement("div");
|
||
|
menu.setAttribute("id", "context-menu");
|
||
| ... | ... | |
|
}
|
||
|
}
|
||
|
function contextMenuShow(event) {
|
||
|
export function contextMenuShow(event) {
|
||
|
var mouse_x = event.pageX;
|
||
|
var mouse_y = event.pageY;
|
||
|
var mouse_y_c = event.clientY;
|
||
| ... | ... | |
|
});
|
||
|
}
|
||
|
function contextMenuSetLastSelected(tr) {
|
||
|
export function contextMenuSetLastSelected(tr) {
|
||
|
$('.cm-last').removeClass('cm-last');
|
||
|
tr.addClass('cm-last');
|
||
|
}
|
||
|
function contextMenuLastSelected() {
|
||
|
export function contextMenuLastSelected() {
|
||
|
return $('.cm-last').first();
|
||
|
}
|
||
|
function contextMenuUnselectAll() {
|
||
|
export function contextMenuUnselectAll() {
|
||
|
$('input[type=checkbox].toggle-selection').prop('checked', false);
|
||
|
$('.hascontextmenu').each(function(){
|
||
|
contextMenuRemoveSelection($(this));
|
||
| ... | ... | |
|
$('.cm-last').removeClass('cm-last');
|
||
|
}
|
||
|
function contextMenuHide() {
|
||
|
export function contextMenuHide() {
|
||
|
$('#context-menu').hide();
|
||
|
}
|
||
|
function contextMenuToggleSelection(tr) {
|
||
|
export function contextMenuToggleSelection(tr) {
|
||
|
if (contextMenuIsSelected(tr)) {
|
||
|
contextMenuRemoveSelection(tr);
|
||
|
} else {
|
||
| ... | ... | |
|
}
|
||
|
}
|
||
|
function contextMenuAddSelection(tr) {
|
||
|
export function contextMenuAddSelection(tr) {
|
||
|
tr.addClass('context-menu-selection');
|
||
|
contextMenuCheckSelectionBox(tr, true);
|
||
|
contextMenuClearDocumentSelection();
|
||
|
}
|
||
|
function contextMenuRemoveSelection(tr) {
|
||
|
export function contextMenuRemoveSelection(tr) {
|
||
|
tr.removeClass('context-menu-selection');
|
||
|
contextMenuCheckSelectionBox(tr, false);
|
||
|
}
|
||
|
function contextMenuIsSelected(tr) {
|
||
|
export function contextMenuIsSelected(tr) {
|
||
|
return tr.hasClass('context-menu-selection');
|
||
|
}
|
||
|
function contextMenuCheckSelectionBox(tr, checked) {
|
||
|
export function contextMenuCheckSelectionBox(tr, checked) {
|
||
|
tr.find('input[type=checkbox]').prop('checked', checked);
|
||
|
}
|
||
|
function contextMenuClearDocumentSelection() {
|
||
|
export function contextMenuClearDocumentSelection() {
|
||
|
// TODO
|
||
|
if (document.selection) {
|
||
|
document.selection.empty(); // IE
|
||
| ... | ... | |
|
}
|
||
|
}
|
||
|
function contextMenuInit() {
|
||
|
export function contextMenuInit() {
|
||
|
contextMenuCreate();
|
||
|
contextMenuUnselectAll();
|
||
|
|
||
| ... | ... | |
|
}
|
||
|
}
|
||
|
function toggleIssuesSelection(el) {
|
||
|
export function toggleIssuesSelection(el) {
|
||
|
var checked = $(this).prop('checked');
|
||
|
var boxes = $(this).parents('table').find('input[name=ids\\[\\]]');
|
||
|
boxes.prop('checked', checked).parents('.hascontextmenu').toggleClass('context-menu-selection', checked);
|
||
|
}
|
||
|
function window_size() {
|
||
|
export function window_size() {
|
||
|
var w;
|
||
|
var h;
|
||
|
if (window.innerWidth) {
|
||
| app/assets/javascripts/gantt.js | ||
|---|---|---|
|
/* Redmine - project management software
|
||
|
Copyright (C) 2006-2021 Jean-Philippe Lang */
|
||
|
var draw_gantt = null;
|
||
|
var draw_top;
|
||
|
var draw_right;
|
||
|
var draw_left;
|
||
|
import Raphael from 'raphael';
|
||
|
var rels_stroke_width = 2;
|
||
|
export var draw_gantt = null;
|
||
|
export var draw_top;
|
||
|
export var draw_right;
|
||
|
export var draw_left;
|
||
|
function setDrawArea() {
|
||
|
export var rels_stroke_width = 2;
|
||
|
export function setDrawArea() {
|
||
|
draw_top = $("#gantt_draw_area").position().top;
|
||
|
draw_right = $("#gantt_draw_area").width();
|
||
|
draw_left = $("#gantt_area").scrollLeft();
|
||
|
}
|
||
|
function getRelationsArray() {
|
||
|
export function getRelationsArray() {
|
||
|
var arr = new Array();
|
||
|
$.each($('div.task_todo[data-rels]'), function(index_div, element) {
|
||
|
if(!$(element).is(':visible')) return true;
|
||
| ... | ... | |
|
return arr;
|
||
|
}
|
||
|
function drawRelations() {
|
||
|
export function drawRelations() {
|
||
|
var arr = getRelationsArray();
|
||
|
$.each(arr, function(index_issue, element_issue) {
|
||
|
var issue_from = $("#task-todo-issue-" + element_issue["issue_from"]);
|
||
| ... | ... | |
|
});
|
||
|
}
|
||
|
function getProgressLinesArray() {
|
||
|
export function getProgressLinesArray() {
|
||
|
var arr = new Array();
|
||
|
var today_left = $('#today_line').position().left;
|
||
|
arr.push({left: today_left, top: 0});
|
||
| ... | ... | |
|
return arr;
|
||
|
}
|
||
|
function drawGanttProgressLines() {
|
||
|
export function drawGanttProgressLines() {
|
||
|
var arr = getProgressLinesArray();
|
||
|
var color = $("#today_line")
|
||
|
.css("border-left-color");
|
||
| ... | ... | |
|
}
|
||
|
}
|
||
|
function drawSelectedColumns(){
|
||
|
export function drawSelectedColumns(){
|
||
|
if ($("#draw_selected_columns").prop('checked')) {
|
||
|
if(isMobile()) {
|
||
|
$('td.gantt_selected_column').each(function(i) {
|
||
| ... | ... | |
|
}
|
||
|
}
|
||
|
function drawGanttHandler() {
|
||
|
export function drawGanttHandler() {
|
||
|
var folder = document.getElementById('gantt_draw_area');
|
||
|
if(draw_gantt != null)
|
||
|
draw_gantt.clear();
|
||
| ... | ... | |
|
$('#content').addClass('gantt_content');
|
||
|
}
|
||
|
function resizableSubjectColumn(){
|
||
|
export function resizableSubjectColumn(){
|
||
|
$('.issue-subject, .project-name, .version-name').each(function(){
|
||
|
$(this).width($(".gantt_subjects_column").width()-$(this).position().left);
|
||
|
});
|
||
| ... | ... | |
|
};
|
||
|
}
|
||
|
ganttEntryClick = function(e){
|
||
|
export function ganttEntryClick(e) {
|
||
|
var icon_expander = e.target;
|
||
|
var subject = $(icon_expander.parentElement);
|
||
|
var subject_left = parseInt(subject.css('left')) + parseInt(icon_expander.offsetWidth);
|
||
| ... | ... | |
|
drawGanttHandler();
|
||
|
};
|
||
|
function disable_unavailable_columns(unavailable_columns) {
|
||
|
export function disable_unavailable_columns(unavailable_columns) {
|
||
|
$.each(unavailable_columns, function (index, value) {
|
||
|
$('#available_c, #selected_c').children("[value='" + value + "']").prop('disabled', true);
|
||
|
});
|
||
| app/assets/javascripts/jstoolbar/jstoolbar.js | ||
|---|---|---|
|
*/
|
||
|
/* Modified by JP LANG for textile formatting */
|
||
|
let lastJstPreviewed = null;
|
||
|
const isMac = Boolean(navigator.platform.toLowerCase().match(/mac/));
|
||
|
export let lastJstPreviewed = null;
|
||
|
export const isMac = Boolean(navigator.platform.toLowerCase().match(/mac/));
|
||
|
function jsToolBar(textarea) {
|
||
|
export function jsToolBar(textarea) {
|
||
|
if (!document.createElement) { return; }
|
||
|
if (!textarea) { return; }
|
||
| ... | ... | |
|
// de raccourcis vers les éléments DOM correspondants aux outils.
|
||
|
}
|
||
|
function jsTab(name, selected) {
|
||
|
export function jsTab(name, selected) {
|
||
|
selected = selected || false;
|
||
|
if(typeof jsToolBar.strings == 'undefined') {
|
||
|
var tabName = name || null;
|
||
| ... | ... | |
|
return tab;
|
||
|
}
|
||
|
function jsButton(title, fn, scope, className) {
|
||
|
export function jsButton(title, fn, scope, className) {
|
||
|
if(typeof jsToolBar.strings == 'undefined') {
|
||
|
this.title = title || null;
|
||
|
} else {
|
||
| ... | ... | |
|
return button;
|
||
|
}
|
||
|
function jsSpace(id) {
|
||
|
export function jsSpace(id) {
|
||
|
this.id = id || null;
|
||
|
this.width = null;
|
||
|
}
|
||
| ... | ... | |
|
return span;
|
||
|
}
|
||
|
function jsCombo(title, options, scope, fn, className) {
|
||
|
export function jsCombo(title, options, scope, fn, className) {
|
||
|
this.title = title || null;
|
||
|
this.options = options || null;
|
||
|
this.scope = scope || null;
|
||
| ... | ... | |
|
}
|
||
|
});
|
||
|
function isToogleEditPreviewShortcut(e) {
|
||
|
export function isToogleEditPreviewShortcut(e) {
|
||
|
if ((e.metaKey || e.ctrlKey) && e.shiftKey && e.key.toLowerCase() === 'p') {
|
||
|
return true;
|
||
|
} else {
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
function isModifierKey(e) {
|
||
|
export function isModifierKey(e) {
|
||
|
if (isMac && e.metaKey) {
|
||
|
return true;
|
||
|
} else if (!isMac && e.ctrlKey) {
|
||
| app/assets/javascripts/project_identifier.js | ||
|---|---|---|
|
// Automatic project identifier generation
|
||
|
function generateProjectIdentifier(identifier, maxlength) {
|
||
|
export function generateProjectIdentifier(identifier, maxlength) {
|
||
|
var diacriticsMap = [
|
||
|
{'base':'a', 'letters':/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},
|
||
|
{'base':'aa','letters':/[\uA733\uA732]/g},
|
||
| ... | ... | |
|
return identifier;
|
||
|
}
|
||
|
function autoFillProjectIdentifier() {
|
||
|
export function autoFillProjectIdentifier() {
|
||
|
var locked = ($('#project_identifier').val() != '');
|
||
|
var maxlength = parseInt($('#project_identifier').attr('maxlength'));
|
||
| app/assets/javascripts/responsive.js | ||
|---|---|---|
|
import $ from "jquery";
|
||
|
// generic layout specific responsive stuff goes here
|
||
|
function openFlyout() {
|
||
|
export function openFlyout() {
|
||
|
$('html').addClass('flyout-is-active');
|
||
|
$('#wrapper2').on('click', function(e){
|
||
|
e.preventDefault();
|
||
| ... | ... | |
|
});
|
||
|
}
|
||
|
function closeFlyout() {
|
||
|
export function closeFlyout() {
|
||
|
$('html').removeClass('flyout-is-active');
|
||
|
$('#wrapper2').off('click');
|
||
|
}
|
||
|
function isMobile() {
|
||
|
export function isMobile() {
|
||
|
return $('.js-flyout-menu-toggle-button').is(":visible");
|
||
|
}
|
||
|
function setupFlyout() {
|
||
|
export function setupFlyout() {
|
||
|
var mobileInit = false,
|
||
|
desktopInit = false;
|
||
| app/assets/javascripts/revision_graph.js | ||
|---|---|---|
|
/* Redmine - project management software
|
||
|
Copyright (C) 2006-2021 Jean-Philippe Lang */
|
||
|
var revisionGraph = null;
|
||
|
import Raphael from 'raphael';
|
||
|
function drawRevisionGraph(holder, commits_hash, graph_space) {
|
||
|
export var revisionGraph = null;
|
||
|
export function drawRevisionGraph(holder, commits_hash, graph_space) {
|
||
|
var XSTEP = 20,
|
||
|
CIRCLE_INROW_OFFSET = 10;
|
||
|
var commits_by_scmid = commits_hash,
|
||
| app/assets/stylesheets/application.css | ||
|---|---|---|
|
/*
|
||
|
"@/" in url is an alias for "public/". See: "https://webpack.js.org/configuration/resolve/#resolvealias"
|
||
|
*/
|
||
|
html, body { min-height: 100vh; }
|
||
|
html {overflow-y:scroll;}
|
||
|
body { font-family: Verdana, sans-serif; font-size: 12px; color:#333; margin: 0; padding: 0; min-width: 900px; }
|
||
| ... | ... | |
|
#login-form input[type=text], #login-form input[type=password], #login-form input[type=submit] {display: block; width: 100%;}
|
||
|
#login-form input[type=text], #login-form input[type=password] {margin-bottom: 15px;}
|
||
|
#login-form a.lost_password {float:right; font-weight:normal;}
|
||
|
#login-form input#openid_url {background:#fff url(../images/openid-bg.gif) no-repeat 4px 50%; padding-left:24px !important;}
|
||
|
#login-form input#openid_url {background:#fff url(@/images/openid-bg.gif) no-repeat 4px 50%; padding-left:24px !important;}
|
||
|
#login-form h3 {text-align: center;}
|
||
|
div.modal { border-radius:5px; background:#fff; z-index:50; padding:4px;}
|
||
| ... | ... | |
|
margin:0 !important;
|
||
|
vertical-align:middle;
|
||
|
color:#555;
|
||
|
background:#fff url(../images/arrow_down.png) no-repeat 97% 50%;
|
||
|
background:#fff url(@/images/arrow_down.png) no-repeat 97% 50%;
|
||
|
}
|
||
|
#project-jump .drdn.expanded .drdn-trigger {background-image:url(../images/arrow_up.png);}
|
||
|
#project-jump .drdn.expanded .drdn-trigger {background-image:url(@/images/arrow_up.png);}
|
||
|
#project-jump .drdn-content {width:280px;}
|
||
|
#project-jump .drdn-items>* {color:#555 !important;}
|
||
|
#project-jump .drdn-items>a:hover {background-color:#759FCF; color:#fff !important;}
|
||
| ... | ... | |
|
table.issues td.block_column span {font-weight: bold; display: block; margin-bottom: 4px;}
|
||
|
table.issues td.block_column pre {white-space:normal;}
|
||
|
tr.idnt td.subject, tr.idnt td.name {background: url(../images/arrow_right.png) no-repeat 2px 50%;}
|
||
|
tr.idnt td.subject, tr.idnt td.name {background: url(@/images/arrow_right.png) no-repeat 2px 50%;}
|
||
|
tr.idnt-1 td.subject, tr.idnt-1 td.name {padding-left: 24px; background-position: 8px 50%;}
|
||
|
tr.idnt-2 td.subject, tr.idnt-2 td.name {padding-left: 40px; background-position: 24px 50%;}
|
||
|
tr.idnt-3 td.subject, tr.idnt-3 td.name {padding-left: 56px; background-position: 40px 50%;}
|
||
| ... | ... | |
|
a.sort { padding-right: 16px; background-position: 100% 50%; background-repeat: no-repeat; }
|
||
|
table.boards a.board { background: url(../images/comment.png) no-repeat 0% 50%; padding-left: 20px; }
|
||
|
table.boards a.board { background: url(@/images/comment.png) no-repeat 0% 50%; padding-left: 20px; }
|
||
|
table.boards td.last-message {text-align:left;font-size:80%;}
|
||
|
div.table-list.boards .table-list-cell.name {width: 30%;}
|
||
| ... | ... | |
|
span#watchers_inputs {overflow:auto; display:block;}
|
||
|
span.search_for_watchers {display:block;}
|
||
|
span.search_for_watchers, span.add_attachment {font-size:80%; line-height:2.5em;}
|
||
|
span.add_attachment a {padding-left:16px; background: url(../images/bullet_add.png) no-repeat 0 50%; }
|
||
|
span.add_attachment a {padding-left:16px; background: url(@/images/bullet_add.png) no-repeat 0 50%; }
|
||
|
input:disabled, select:disabled, textarea:disabled {
|
||
|
cursor: not-allowed;
|
||
| ... | ... | |
|
-o-appearance: none;
|
||
|
appearance: none;
|
||
|
background-color: #fff;
|
||
|
background-image: url(../images/arrow_down.png);
|
||
|
background-image: url(@/images/arrow_down.png);
|
||
|
background-repeat: no-repeat;
|
||
|
background-position: calc(100% - 7px) 50%;
|
||
|
padding-right: 20px;
|
||
| ... | ... | |
|
}
|
||
|
#projects-index a.icon-user, a.icon-bookmarked-project {padding-left:0; padding-right:20px; background-position:98% 50%;}
|
||
|
#projects-index a.icon-user.icon-bookmarked-project {
|
||
|
background-image: url(../images/tag_blue.png), url(../images/user.png);
|
||
|
background-image: url(@/images/tag_blue.png), url(@/images/user.png);
|
||
|
background-position: bottom 0px right 0px, bottom 0px right 20px;
|
||
|
padding-right: 40px;
|
||
|
padding-top: 4px;
|
||
| ... | ... | |
|
.tabular input, .tabular select {max-width:95%}
|
||
|
.tabular textarea {width:95%; resize:vertical;}
|
||
|
input#twofa_code, img#twofa_code { width: 140px; }
|
||
|
ul.twofa_backup_codes { list-style-type: none; padding: 0; display: inline-block; columns: 14em 2;}
|
||
|
ul.twofa_backup_codes code { font-size: 16px; line-height: 2em }
|
||
|
ul.twofa_backup_codes { list-style-type: none; padding: 0; display: inline-block; }
|
||
|
ul.twofa_backup_codes li { float: left; }
|
||
|
ul.twofa_backup_codes li:nth-child(odd) { float: left; clear: left; padding-right: 4em; }
|
||
|
.tabular label{
|
||
|
font-weight: bold;
|
||
| ... | ... | |
|
.attachments_fields input.filename, #existing-attachments .filename {border:0; width:250px; color:#555; background-color:inherit; }
|
||
|
.tabular input.filename {max-width:75% !important;}
|
||
|
.attachments_fields input.filename {height:1.8em;}
|
||
|
.attachments_fields .ajax-waiting input.filename {background:url(../images/hourglass.png) no-repeat 0px 50%;}
|
||
|
.attachments_fields .ajax-loading input.filename {background:url(../images/loading.gif) no-repeat 0px 50%;}
|
||
|
.attachments_fields .ajax-waiting input.filename {background:url(@/images/hourglass.png) no-repeat 0px 50%;}
|
||
|
.attachments_fields .ajax-loading input.filename {background:url(@/images/loading.gif) no-repeat 0px 50%;}
|
||
|
.attachments_fields div.ui-progressbar { width: 100px; height:14px; margin: 2px 0 -5px 8px; display: inline-block; }
|
||
|
a.remove-upload:hover {text-decoration:none !important;}
|
||
| ... | ... | |
|
p.other-formats { text-align: right; font-size:0.9em; color: #666; }
|
||
|
.other-formats span + span:before { content: "| "; }
|
||
|
a.atom { background: url(../images/feed.png) no-repeat 1px 50%; padding: 2px 0px 3px 16px; }
|
||
|
a.atom { background: url(@/images/feed.png) no-repeat 1px 50%; padding: 2px 0px 3px 16px; }
|
||
|
em.info {font-style:normal;display:block;font-size:90%;color:#888;}
|
||
|
em.info.error {padding-left:20px; background:url(../images/exclamation.png) no-repeat 0 50%;}
|
||
|
em.info.error {padding-left:20px; background:url(@/images/exclamation.png) no-repeat 0 50%;}
|
||
|
textarea.text_cf {width:95%; resize:vertical;}
|
||
|
input.string_cf, input.link_cf {width:95%;}
|
||
| ... | ... | |
|
.roles-selection label {display:inline-block; width:210px;}
|
||
|
input.autocomplete {
|
||
|
background: #fff url(../images/magnifier.png) no-repeat 2px 50%; padding-left:20px !important;
|
||
|
background: #fff url(@/images/magnifier.png) no-repeat 2px 50%; padding-left:20px !important;
|
||
|
}
|
||
|
input.autocomplete.ajax-loading {
|
||
|
background-image: url(../images/loading.gif);
|
||
|
background-image: url(@/images/loading.gif);
|
||
|
}
|
||
|
.role-visibility {padding-left:2em;}
|
||
| ... | ... | |
|
div.flash {margin-top: 8px;}
|
||
|
div.flash.error, #errorExplanation {
|
||
|
background: url(../images/exclamation.png) 8px 50% no-repeat;
|
||
|
background: url(@/images/exclamation.png) 8px 50% no-repeat;
|
||
|
background-color: #ffe3e3;
|
||
|
border-color: #d88;
|
||
|
color: #880000;
|
||
|
}
|
||
|
div.flash.notice {
|
||
|
background: url(../images/true.png) 8px 5px no-repeat;
|
||
|
background: url(@/images/true.png) 8px 5px no-repeat;
|
||
|
background-color: #dfffdf;
|
||
|
border-color: #9fcf9f;
|
||
|
color: #005f00;
|
||
|
}
|
||
|
div.flash.warning, .conflict {
|
||
|
background: url(../images/warning.png) 8px 5px no-repeat;
|
||
|
background: url(@/images/warning.png) 8px 5px no-repeat;
|
||
|
background-color: #F3EDD1;
|
||
|
border-color: #eadbbc;
|
||
|
color: #A6750C;
|
||
| ... | ... | |
|
#ajax-indicator span {
|
||
|
background-position: 0% 40%;
|
||
|
background-repeat: no-repeat;
|
||
|
background-image: url(../images/loading.gif);
|
||
|
background-image: url(@/images/loading.gif);
|
||
|
padding-left: 26px;
|
||
|
vertical-align: bottom;
|
||
|
}
|
||
| ... | ... | |
|
table.cal td.today {background:#ffffdd;}
|
||
|
table.cal td.today p.day-num {font-weight: bold;}
|
||
|
table.cal td.nwday:not(.odd) {background-color:#f1f1f1;}
|
||
|
table.cal .starting a.issue, p.cal.legend .starting {background: url(../images/bullet_go.png) no-repeat -1px -2px; padding-left:16px;}
|
||
|
table.cal .ending a.issue, p.cal.legend .ending {background: url(../images/bullet_end.png) no-repeat -1px -2px; padding-left:16px;}
|
||
|
table.cal .starting.ending a.issue, p.cal.legend .starting.ending {background: url(../images/bullet_diamond.png) no-repeat -1px -2px; padding-left:16px;}
|
||
|
table.cal .starting a.issue, p.cal.legend .starting {background: url(@/images/bullet_go.png) no-repeat -1px -2px; padding-left:16px;}
|
||
|
table.cal .ending a.issue, p.cal.legend .ending {background: url(@/images/bullet_end.png) no-repeat -1px -2px; padding-left:16px;}
|
||
|
table.cal .starting.ending a.issue, p.cal.legend .starting.ending {background: url(@/images/bullet_diamond.png) no-repeat -1px -2px; padding-left:16px;}
|
||
|
p.cal.legend span {display:block;}
|
||
|
/***** Tooltips ******/
|
||
| ... | ... | |
|
button.tab-left {
|
||
|
right: 28px;
|
||
|
background: #eeeeee url(../images/arrow_left.png) no-repeat 50% 50%;
|
||
|
background: #eeeeee url(@/images/arrow_left.png) no-repeat 50% 50%;
|
||
|
border-top-left-radius:3px;
|
||
|
}
|
||
|
button.tab-right {
|
||
|
right: 4px;
|
||
|
background: #eeeeee url(../images/arrow_right.png) no-repeat 50% 50%;
|
||
|
background: #eeeeee url(@/images/arrow_right.png) no-repeat 50% 50%;
|
||
|
border-top-right-radius:3px;
|
||
|
}
|
||
| ... | ... | |
|
background-position: 0% 60%;
|
||
|
background-repeat: no-repeat;
|
||
|
padding-left: 12px;
|
||
|
background-image: url(../images/external.png);
|
||
|
background-image: url(@/images/external.png);
|
||
|
}
|
||
|
div.wiki a {word-wrap: break-word;}
|
||
| ... | ... | |
|
.task.label {width:100%;}
|
||
|
.task.label.project, .task.label.version { font-weight: bold; }
|
||
|
.task_late { background:#f66 url(../images/task_late.png); border: 1px solid #f66; }
|
||
|
.task_done { background:#00c600 url(../images/task_done.png); border: 1px solid #00c600; }
|
||
|
.task_todo { background:#aaa url(../images/task_todo.png); border: 1px solid #aaa; }
|
||
|
.task_late { background:#f66 url(@/images/task_late.png); border: 1px solid #f66; }
|
||
|
.task_done { background:#00c600 url(@/images/task_done.png); border: 1px solid #00c600; }
|
||
|
.task_todo { background:#aaa url(@/images/task_todo.png); border: 1px solid #aaa; }
|
||
|
.task_todo.parent { background: #888; border: 1px solid #888; height: 3px;}
|
||
|
.task_late.parent, .task_done.parent { height: 3px;}
|
||
|
.task.parent.marker.starting { position: absolute; background: url(../images/task_parent_end.png) no-repeat 0 0; width: 8px; height: 16px; margin-left: -4px; left: 0px; top: -1px;}
|
||
|
.task.parent.marker.ending { position: absolute; background: url(../images/task_parent_end.png) no-repeat 0 0; width: 8px; height: 16px; margin-left: -4px; right: 0px; top: -1px;}
|
||
|
.task.parent.marker.starting { position: absolute; background: url(@/images/task_parent_end.png) no-repeat 0 0; width: 8px; height: 16px; margin-left: -4px; left: 0px; top: -1px;}
|
||
|
.task.parent.marker.ending { position: absolute; background: url(@/images/task_parent_end.png) no-repeat 0 0; width: 8px; height: 16px; margin-left: -4px; right: 0px; top: -1px;}
|
||
|
.version.task_late { background:#f66 url(../images/milestone_late.png); border: 1px solid #f66; height: 2px; margin-top: 3px;}
|
||
|
.version.task_done { background:#00c600 url(../images/milestone_done.png); border: 1px solid #00c600; height: 2px; margin-top: 3px;}
|
||
|
.version.task_todo { background:#fff url(../images/milestone_todo.png); border: 1px solid #fff; height: 2px; margin-top: 3px;}
|
||
|
.version.marker { background-image:url(../images/version_marker.png); background-repeat: no-repeat; border: 0; margin-left: -4px; margin-top: 1px; }
|
||
|
.version.task_late { background:#f66 url(@/images/milestone_late.png); border: 1px solid #f66; height: 2px; margin-top: 3px;}
|
||
|
.version.task_done { background:#00c600 url(@/images/milestone_done.png); border: 1px solid #00c600; height: 2px; margin-top: 3px;}
|
||
|
.version.task_todo { background:#fff url(@/images/milestone_todo.png); border: 1px solid #fff; height: 2px; margin-top: 3px;}
|
||
|
.version.marker { background-image:url(@/images/version_marker.png); background-repeat: no-repeat; border: 0; margin-left: -4px; margin-top: 1px; }
|
||
|
.project.task_late { background:#f66 url(../images/milestone_late.png); border: 1px solid #f66; height: 2px; margin-top: 3px;}
|
||
|
.project.task_done { background:#00c600 url(../images/milestone_done.png); border: 1px solid #00c600; height: 2px; margin-top: 3px;}
|
||
|
.project.task_todo { background:#fff url(../images/milestone_todo.png); border: 1px solid #fff; height: 2px; margin-top: 3px;}
|
||
|
.project.marker { background-image:url(../images/project_marker.png); background-repeat: no-repeat; border: 0; margin-left: -4px; margin-top: 1px; }
|
||
|
.project.task_late { background:#f66 url(@/images/milestone_late.png); border: 1px solid #f66; height: 2px; margin-top: 3px;}
|
||
|
.project.task_done { background:#00c600 url(@/images/milestone_done.png); border: 1px solid #00c600; height: 2px; margin-top: 3px;}
|
||
|
.project.task_todo { background:#fff url(@/images/milestone_todo.png); border: 1px solid #fff; height: 2px; margin-top: 3px;}
|
||
|
.project.marker { background-image:url(@/images/project_marker.png); background-repeat: no-repeat; border: 0; margin-left: -4px; margin-top: 1px; }
|
||
|
.version-behind-schedule a, .issue-behind-schedule a {color: #f66914;}
|
||
|
.version-overdue a, .issue-overdue a, .project-overdue a {color: #f00;}
|
||
| ... | ... | |
|
content: "\a0";
|
||
|
}
|
||
|
.icon-add { background-image: url(../images/add.png); }
|
||
|
.icon-edit { background-image: url(../images/edit.png); }
|
||
|
.icon-copy { background-image: url(../images/copy.png); }
|
||
|
.icon-duplicate { background-image: url(../images/duplicate.png); }
|
||
|
.icon-del { background-image: url(../images/delete.png); }
|
||
|
.icon-move { background-image: url(../images/move.png); }
|
||
|
.icon-save { background-image: url(../images/save.png); }
|
||
|
.icon-download { background-image: url(../images/download.png); }
|
||
|
.icon-cancel { background-image: url(../images/cancel.png); }
|
||
|
.icon-multiple { background-image: url(../images/table_multiple.png); }
|
||
|
.icon-folder { background-image: url(../images/folder.png); }
|
||
|
.open .icon-folder { background-image: url(../images/folder_open.png); }
|
||
|
.icon-package { background-image: url(../images/package.png); }
|
||
|
.icon-user { background-image: url(../images/user.png); }
|
||
|
.icon-project, .icon-projects { background-image: url(../images/projects.png); }
|
||
|
.icon-help { background-image: url(../images/help.png); }
|
||
|
.icon-attachment { background-image: url(../images/attachment.png); }
|
||
|
.icon-history { background-image: url(../images/history.png); }
|
||
|
.icon-time-entry, .icon-time { background-image: url(../images/time.png); }
|
||
|
.icon-time-add { background-image: url(../images/time_add.png); }
|
||
|
.icon-stats { background-image: url(../images/stats.png); }
|
||
|
.icon-warning { background-image: url(../images/warning.png); }
|
||
|
.icon-error { background-image: url(../images/exclamation.png); }
|
||
|
.icon-fav { background-image: url(../images/fav.png); }
|
||
|
.icon-fav-off { background-image: url(../images/fav_off.png); }
|
||
|
.icon-reload { background-image: url(../images/reload.png); }
|
||
|
.icon-lock, .icon-locked { background-image: url(../images/locked.png); }
|
||
|
.icon-unlock { background-image: url(../images/unlock.png); }
|
||
|
.icon-checked { background-image: url(../images/toggle_check.png); }
|
||
|
.icon-report { background-image: url(../images/report.png); }
|
||
|
.icon-comment, .icon-comments { background-image: url(../images/comment.png); }
|
||
|
.icon-summary { background-image: url(../images/lightning.png); }
|
||
|
.icon-server-authentication { background-image: url(../images/server_key.png); }
|
||
|
.icon-issue { background-image: url(../images/ticket.png); }
|
||
|
.icon-zoom-in { background-image: url(../images/zoom_in.png); }
|
||
|
.icon-zoom-out { background-image: url(../images/zoom_out.png); }
|
||
|
.icon-magnifier { background-image: url(../images/magnifier.png); }
|
||
|
.icon-passwd { background-image: url(../images/textfield_key.png); }
|
||
|
.icon-arrow-right, .icon-test, .icon-sticky { background-image: url(../images/bullet_go.png); }
|
||
|
.icon-email { background-image: url(../images/email.png); }
|
||
|
.icon-email-disabled { background-image: url(../images/email_disabled.png); }
|
||
|
.icon-email-add { background-image: url(../images/email_add.png); }
|
||
|
.icon-ok { background-image: url(../images/true.png); }
|
||
|
.icon-not-ok { background-image: url(../images/false.png); }
|
||
|
.icon-link-break { background-image: url(../images/link_break.png); }
|
||
|
.icon-list { background-image: url(../images/text_list_bullets.png); }
|
||
|
.icon-close { background-image: url(../images/close.png); }
|
||
|
.icon-close:hover { background-image: url(../images/close_hl.png); }
|
||
|
.icon-settings { background-image: url(../images/changeset.png); }
|
||
|
.icon-group, .icon-groupnonmember, .icon-groupanonymous { background-image: url(../images/group.png); }
|
||
|
.icon-roles { background-image: url(../images/database_key.png); }
|
||
|
.icon-issue-edit { background-image: url(../images/ticket_edit.png); }
|
||
|
.icon-workflows { background-image: url(../images/ticket_go.png); }
|
||
|
.icon-custom-fields { background-image: url(../images/textfield.png); }
|
||
|
.icon-plugins { background-image: url(../images/plugin.png); }
|
||
- « Previous
- 1
- 2
- 3
- Next »