はじまりの大地

This commit is contained in:
miteruzo
2024-07-08 03:32:47 +09:00
commit c616a96f53
7749 changed files with 478270 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
/*
* DokuWiki Bootstrap3 Template: Plugins Hacks!
*
* Home http://dokuwiki.org/template:bootstrap3
* Author Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
* License GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/
// CSV Plugin
var $csv = jQuery('table tbody tr.row0 th.col0');
if ($csv.length) {
$csv.each(function () {
var $table = jQuery(this).parents('table');
if ($table.find('tr.row1 th').length == 0) {
$table.prepend('<thead/>');
var $header = $table.find('tr.row0');
$table.find('thead').append($header);
}
});
}
+39
View File
@@ -0,0 +1,39 @@
/*
* DokuWiki Bootstrap3 Template: Plugins Hacks!
*
* Home http://dokuwiki.org/template:bootstrap3
* Author Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
* License GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/
// Data Plugin
var $dataplugin_entry = jQuery('.dataplugin_entry'),
$dataplugin_table = jQuery('.dataplugin_table');
// Data Plugin: Entry
if ($dataplugin_entry.length) {
$dataplugin_entry.find('dl').addClass('panel panel-default');
}
// Data Plugin: Table
if ($dataplugin_table.length) {
$dataplugin_table.find('input').addClass('input-sm');
var $header = $dataplugin_table.find('th[style]'),
$inputs = $dataplugin_table.find('th input'),
header_width = [],
i = 0;
$header.each(function () {
header_width.push(this.style.width);
});
$inputs.each(function () {
this.style.width = header_width[i];
i++;
});
}
@@ -0,0 +1,16 @@
/*
* DokuWiki Bootstrap3 Template: Plugins Hacks!
*
* Home http://dokuwiki.org/template:bootstrap3
* Author Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
* License GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/
// Database2 Plugin
var $database2 = jQuery('table.database2, table.database2-single-editor');
if ($database2.length) {
$database2.find('.label').removeClass('label').addClass('database2-label');
$database2.find('input[type="submit"]:first').addClass('btn-success');
}
@@ -0,0 +1,15 @@
/*
* DokuWiki Bootstrap3 Template: Plugins Hacks!
*
* Home http://dokuwiki.org/template:bootstrap3
* Author Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
* License GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/
// DataTables Plugin
var $datatables = jQuery('.dt-wrapper');
if ($datatables.length) {
$datatables.find('.table-responsive').removeClass('table-responsive');
}
+28
View File
@@ -0,0 +1,28 @@
/*
* DokuWiki Bootstrap3 Template: Plugins Hacks!
*
* Home http://dokuwiki.org/template:bootstrap3
* Author Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
* License GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/
// DAVCal Plugin
var $davcal = jQuery('#fullCalendar');
if ($davcal.length) {
$davcal.find('.fc-button-group').addClass('btn-group');
}
var $davcard_table = jQuery('.davcardAddressbookTable');
if ($davcard_table.length) {
$davcard_table.addClass('table');
}
var $davcard_add_btn = jQuery('a.davcardAddressbookAddNew');
if ($davcard_add_btn.length) {
$davcard_add_btn.prepend(jQuery('<span class="iconify mr-2" data-icon="mdi:account-plus"/>'));
$davcard_add_btn.addClass('btn btn-xs btn-primary');
}
@@ -0,0 +1,32 @@
/*
* DokuWiki Bootstrap3 Template: Plugins Hacks!
*
* Home http://dokuwiki.org/template:bootstrap3
* Author Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
* License GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/
// Discussion plugin
var $discussion = jQuery('.comment_wrapper');
if ($discussion.length) {
$discussion.find('h2').addClass('page-header');
$discussion.find('.comment_buttons').addClass('text-right');
$discussion.find('#discussion__section').prepend('<span class="iconify mr-2" data-icon="mdi:comment-text-multiple"/>');
$discussion.find('.hentry').addClass('panel panel-default');
$discussion.find('.hentry .comment_head').addClass('panel-heading');
$discussion.find('.hentry .comment_body').addClass('panel-body');
$discussion.find('.toolbar').addClass('btn-group');
$discussion.find('.comment_buttons [type=submit]').addClass('btn-xs');
$discussion.find('.comment_buttons .discussion__delete .btn').addClass('btn-danger');
$discussion.find('.comment_buttons .discussion__reply .btn').addClass('btn-success');
$discussion.find('#discussion__btn_submit').addClass('btn-success');
jQuery(document).bind('DOMNodeInserted', function () {
$discussion.find('.toolbutton').addClass('btn btn-xs');
});
}
+32
View File
@@ -0,0 +1,32 @@
/*
* DokuWiki Bootstrap3 Template: Plugins Hacks!
*
* Home http://dokuwiki.org/template:bootstrap3
* Author Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
* License GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/
// Explain Plugin
var $explain = jQuery('.explain');
if ($explain.length) {
$explain.each(function () {
var $self = jQuery(this),
$tooltip = $self.find('.tooltip');
$self.attr({
'data-toggle': 'tooltip',
'data-placement': 'bottom',
'title': $tooltip.html(),
}).addClass('wikilink1').removeClass('explain');
$tooltip.remove();
});
jQuery('[data-toggle="tooltip"]').tooltip();
}
+15
View File
@@ -0,0 +1,15 @@
/*
* DokuWiki Bootstrap3 Template: Plugins Hacks!
*
* Home http://dokuwiki.org/template:bootstrap3
* Author Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
* License GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/
// Folded Plugin
var $folded = jQuery('.fold_unfold_all_new');
if ($folded.length) {
$folded.addClass('menuitem');
}
+15
View File
@@ -0,0 +1,15 @@
/*
* DokuWiki Bootstrap3 Template: Plugins Hacks!
*
* Home http://dokuwiki.org/template:bootstrap3
* Author Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
* License GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/
// Gallery Plugin (Media Manager)
if (dw_mode('media')) {
jQuery(document).ajaxSuccess(function () {
jQuery('.mode_media .meta .row').removeClass('row');
});
}
+16
View File
@@ -0,0 +1,16 @@
/*
* DokuWiki Bootstrap3 Template: Plugins Hacks!
*
* Home http://dokuwiki.org/template:bootstrap3
* Author Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
* License GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/
// Include Plugin
var $include_readmore = jQuery('.include_readmore');
// Include Plugin (Read More)
if ($include_readmore.length) {
$include_readmore.find('a').addClass('btn btn-default btn-xs');
}
@@ -0,0 +1,18 @@
/*
* DokuWiki Bootstrap3 Template: Plugins Hacks!
*
* Home http://dokuwiki.org/template:bootstrap3
* Author Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
* License GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/
// InlineTOC Plugin
var $toc = jQuery('#dw__toc, #dokuwiki__toc'), // DokuWiki TOC
$toc2 = jQuery('div.inlinetoc2'); // InlineTOC Plugin
// InlineTOC Plugin
if ($toc2.length && $toc.length) {
$toc.css('display', 'none');
$toc2.addClass('panel panel-default');
}
+15
View File
@@ -0,0 +1,15 @@
/*
* DokuWiki Bootstrap3 Template: Plugins Hacks!
*
* Home http://dokuwiki.org/template:bootstrap3
* Author Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
* License GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/
// Monthcal Plugin
var $monthcal = jQuery('table.monthcal');
if ($monthcal.length) {
$monthcal.addClass('table');
}
+67
View File
@@ -0,0 +1,67 @@
/*
* DokuWiki Bootstrap3 Template: Plugins Hacks!
*
* Home http://dokuwiki.org/template:bootstrap3
* Author Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
* License GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/
// Move Plugin
jQuery(document).on('bootstrap3:plugin-move', function (event) {
if (!jQuery('#plugin_move__tree').length) return false;
// console.debug(event.type + ' event fired');
setTimeout(function () {
var $directories = jQuery('li.type-d a.idx_dir'),
$pages = jQuery('li.type-f a.wikilink1');
jQuery.each($directories, function () {
var $directory = jQuery(this),
$closed = $directory.parents('.closed'),
$open = $directory.parents('.open');
if (!$directory.find('svg').length) {
$directory.prepend(Iconify.getSVG('mdi:folder'));
}
if ($open.length) {
$directory.find('svg').replaceWith(Iconify.getSVG('mdi:folder-open'));
}
if ($closed.length) {
$directory.find('svg').replaceWith(Iconify.getSVG('mdi:folder'));
}
$directory.find('svg').addClass('iconify text-primary mr-2');
});
jQuery.each($pages, function () {
var $page = jQuery(this);
if (!$page.find('svg').length) {
$page.prepend(Iconify.getSVG('mdi:file-document-outline'));
}
$page.find('svg').addClass('text-muted mr-2');
});
}, 0);
});
jQuery('#plugin_move__tree a').click(function (e) {
dw_template.modeIndex();
});
jQuery(document).trigger('bootstrap3:plugin-move');
jQuery(document).ajaxSuccess(function (e) {
jQuery(document).trigger('bootstrap3:plugin-move');
});
+29
View File
@@ -0,0 +1,29 @@
/*
* DokuWiki Bootstrap3 Template: Plugins Hacks!
*
* Home http://dokuwiki.org/template:bootstrap3
* Author Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
* License GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/
// Overlay Plugin
var $overlay = jQuery('#overlay');
if ($overlay.length) {
$overlay.addClass('panel panel-default small');
$overlay.css('border', jQuery('.panel').css('border'));
$overlay.css('background', jQuery('.panel').css('background'));
var $title = $overlay.find('.close'),
$btn = $title.find('a');
$btn.wrapAll('<ul class="text-right list-inline dw-action-icon" />');
$btn.wrap('<li/>');
$btn.addClass('text-muted');
$title.nextAll().wrapAll('<div class="panel-body" />');
$title.removeClass('close').addClass('panel-heading');
}
+15
View File
@@ -0,0 +1,15 @@
/*
* DokuWiki Bootstrap3 Template: Plugins Hacks!
*
* Home http://dokuwiki.org/template:bootstrap3
* Author Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
* License GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/
// PlantUML Parser Plugin
var $plant_uml = jQuery('div[id^="plant-uml-diagram"] svg');
if ($plant_uml.length) {
$plant_uml.addClass('img-responsive');
}
+32
View File
@@ -0,0 +1,32 @@
/*
* DokuWiki Bootstrap3 Template: Plugins Hacks!
*
* Home http://dokuwiki.org/template:bootstrap3
* Author Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
* License GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/
// Publish Plugin
var $publish = jQuery('.approval');
if ($publish.length) {
$publish.prependTo('.page');
$publish.removeClass('approval').addClass('alert');
jQuery('.apr_table').removeClass('table-striped');
if ($publish.hasClass('approved_no')) {
$publish.removeClass('approved_no')
.addClass('alert-warning')
.prepend('<span class="iconify mr-2" data-icon="mdi:information"/>');
}
if ($publish.hasClass('approved_yes')) {
$publish.removeClass('approved_yes')
.addClass('alert-success')
.prepend('<span class="iconify mr-2" data-icon="mdi:check-circle"/>');
}
}
+113
View File
@@ -0,0 +1,113 @@
/*
* DokuWiki Bootstrap3 Template: Plugins Hacks!
*
* Home http://dokuwiki.org/template:bootstrap3
* Author Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
* License GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/
// Semantic Plugin
var $wikilinks = jQuery('article .wikilink1');
if (typeof JSINFO.plugin === 'undefined') {
JSINFO.plugin = {};
}
if (typeof JSINFO.plugin.semantic === 'undefined') {
JSINFO.plugin.semantic = {};
}
if ($wikilinks.length
&& JSINFO.plugin.semantic.exposeWebService
&& JSINFO.bootstrap3.config.showSemanticPopup) {
$wikilinks.hover(function () {
$wikilinks.popover('destroy');
var $wikilink = jQuery(this),
page_id = $wikilink.attr('title');
// Disable popup for linked tabs/navs items (Bootstrap Wrapper Plugin)
if ($wikilink.parents('.bs-wrap-nav').length) {
return false;
}
if (!page_id) return false;
if (page_id == JSINFO.id) return false; // Self
jQuery.get(
DOKU_BASE + 'doku.php',
{
id: page_id,
do: 'export_xhtmlsummary'
},
function (data) {
var content = '<div class="popover-xhtmlsummary">'
+ ' <div class="popover-body">' + data + '</div>'
+ ' <div class="popover-footer text-right">'
+ ' <a class="btn btn-xs btn-primary" href="' + $wikilink.attr('href') + '">' + page_id + '</a>'
+ ' </div>'
+ '</div>';
$wikilink.popover({
trigger: 'manual',
html: true,
title: page_id,
content: content,
placement: 'auto left',
}).popover('show');
$wikilink.attr('title', page_id);
}
);
// jQuery.post(
// DOKU_BASE + 'lib/exe/ajax.php',
// { call: 'plugin_semantic', id: page_id },
// function(data) {
// var jsonld = data[0];
// if (! (jsonld.headline && jsonld.description)) return false;
// $wikilink.data('original-title', page_id);
// $wikilink.attr('title', '');
// var title = jsonld.headline;
// var image = ('image' in jsonld) ? [ '<img src="', jsonld.image.url, '" alt="" class="img-responsive" /><br/>' ].join('') : '';
// var description = jQuery.trim(jsonld.description.replace(/\t\*$/, ''))
// .replace(/\*(.*)/g, '<span class="iconify mr-2" data-icon="mdi:circle"></span> $1')
// .replace(/\n/g, "<br/>\n")
// .replace(/\t/g, '&nbsp;');
// var content = [ '<div class="row small"><div class="col-md-12">', image, description, ' ... </div></div>' ].join('');
// $wikilink.popover({
// trigger : 'manual',
// html : true,
// title : title,
// content : content,
// placement : 'auto left',
// }).popover('show');
// $wikilink.attr('title', page_id);
// });
}, function () {
var self = this;
setTimeout(function () {
if (jQuery(self).next('.popover').length && !jQuery(self).next('.popover:hover').length) {
jQuery(self).popover('destroy');
}
}, 300);
});
}
@@ -0,0 +1,22 @@
/*
* DokuWiki Bootstrap3 Template: Plugins Hacks!
*
* Home http://dokuwiki.org/template:bootstrap3
* Author Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
* License GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/
// Simple Navi Plugin
var $simplenavi = jQuery('.plugin__simplenavi');
if ($simplenavi.length) {
$simplenavi.find('li').addClass('mt-1');
$simplenavi.find('a.wikilink2').removeClass('wikilink2');
$simplenavi.find('li.open strong').contents().unwrap();
$simplenavi.find('li.closed a').prepend('<span class="iconify mr-2" data-icon="mdi:folder"/>');
$simplenavi.find('li.open > a').prepend('<span class="iconify mr-2" data-icon="mdi:folder-open"/>');
$simplenavi.find('li').not('.closed').not('.open').find('a').prepend('<span class="iconify mr-2" data-icon="mdi:file-document-outline"/>');
}
+14
View File
@@ -0,0 +1,14 @@
/*
* DokuWiki Bootstrap3 Template: Plugins Hacks!
*
* Home http://dokuwiki.org/template:bootstrap3
* Author Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
* License GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/
// Struct Plugin
if (dw_admin('struct_schemas') || dw_admin('struct_assignments')) {
// Display all elements in TOC
jQuery('.toc-body .toc').addClass('show');
}
+16
View File
@@ -0,0 +1,16 @@
/*
* DokuWiki Bootstrap3 Template: Plugins Hacks!
*
* Home http://dokuwiki.org/template:bootstrap3
* Author Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
* License GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/
// Tabbox plugin
setTimeout(function () {
jQuery('.plugin_tabbox').each(function () {
var $self = jQuery(this);
$self.find('> ul.tabs').addClass('nav nav-tabs').css('max-height', '40px');
});
}, 500);
@@ -0,0 +1,34 @@
/*
* DokuWiki Bootstrap3 Template: Plugins Hacks!
*
* Home http://dokuwiki.org/template:bootstrap3
* Author Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
* License GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/
// Tagalerts plugin
jQuery('.tagerror, .taginfo, .tagsuccess, .tagnotify').each(function () {
var $node = jQuery(this);
if ($node.prop('nodeName').toLowerCase() == 'div') {
$node.removeClass('label label-default').addClass('alert');
$node.prependTo('#dw__msgarea');
if ($node.hasClass('tagerror')) $node.removeClass('tagerror').addClass('alert-danger');
if ($node.hasClass('taginfo')) $node.removeClass('taginfo').addClass('alert-info');
if ($node.hasClass('tagsuccess')) $node.removeClass('tagsuccess').addClass('alert-success');
if ($node.hasClass('tagnotify')) $node.removeClass('tagnotify').addClass('alert-warning');
} else {
if ($node.hasClass('tagerror')) $node.removeClass('tagerror').addClass('label-danger');
if ($node.hasClass('taginfo')) $node.removeClass('taginfo').addClass('label-info');
if ($node.hasClass('tagsuccess')) $node.removeClass('tagsuccess').addClass('label-success');
if ($node.hasClass('tagnotify')) $node.removeClass('tagnotify').addClass('label-warning');
}
});
+16
View File
@@ -0,0 +1,16 @@
/*
* DokuWiki Bootstrap3 Template: Plugins Hacks!
*
* Home http://dokuwiki.org/template:bootstrap3
* Author Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
* License GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/
// Tagging plugin
var $tagging_edit = jQuery('.plugin_tagging_edit');
if ($tagging_edit.length) {
$tagging_edit.find(':submit').addClass('btn btn-default btn-xs');
$tagging_edit.find('[type=text]').addClass('input-sm');
$tagging_edit.find('#tagging__edit_save').addClass('btn-success');
}
@@ -0,0 +1,31 @@
/*
* DokuWiki Bootstrap3 Template: Plugins Hacks!
*
* Home http://dokuwiki.org/template:bootstrap3
* Author Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
* License GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/
// Translation Plugin
var $translation = jQuery('#dw__translation');
if ($translation.length) {
var $current = $translation.find('.cur'),
$lang = $current.text(),
$iso = $lang.match(/\(([a-z]*)\)/),
$flag = $current.find('img');
$current.parent().addClass('active');
$translation.find('.wikilink2').removeClass('wikilink2').css('opacity', '0.5');
if ($flag.length) {
$translation.find('.dropdown-toggle .iconify').hide();
$translation.find('.dropdown-toggle').prepend(
jQuery('<img/>').attr({
'src': $flag.attr('src'),
'title': $flag.attr('title')
}));
}
}
@@ -0,0 +1,10 @@
/*
* DokuWiki Bootstrap3 Template: Plugins Hacks!
*
* Home http://dokuwiki.org/template:bootstrap3
* Author Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
* License GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/
// Watchcycle Plugin
jQuery('#plugin__watchcycle_admin table').addClass('table table-striped');
+22
View File
@@ -0,0 +1,22 @@
/*
* DokuWiki Bootstrap3 Template: Plugins Hacks!
*
* Home http://dokuwiki.org/template:bootstrap3
* Author Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
* License GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/
// Wrap Plugin
var $wrap = jQuery('.plugin_wrap');
if ($wrap.length) {
if ($wrap.hasClass('tabs')) {
var $tabs = jQuery('.plugin_wrap.tabs');
$tabs.find('div.li').contents().unwrap();
$tabs.find('.curid').parent().addClass('active');
$tabs.find('ul').addClass('nav nav-tabs');
}
}