mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2025-07-03 18:22:49 +00:00
Aaaaaa more shortcuts refactoring
This commit is contained in:
parent
b4910edcca
commit
4dc319116a
@ -316,32 +316,33 @@ kbd {
|
|||||||
opacity: .4;
|
opacity: .4;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dialog-wrap {
|
|
||||||
position: fixed;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
background-color: rgba(0, 0, 0, 0.3);
|
|
||||||
overflow-y: auto;
|
|
||||||
|
|
||||||
padding: 0 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dialog {
|
.dialog {
|
||||||
position: relative;
|
position: absolute;
|
||||||
|
|
||||||
|
top: 0;
|
||||||
|
left: 50%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 700px;
|
max-width: 700px;
|
||||||
margin: 96px auto;
|
margin: 96px auto;
|
||||||
padding: 24px;
|
padding: 24px;
|
||||||
|
transform: translate(-50%, 0);
|
||||||
|
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.dialog-backdrop {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
background-color: rgba(0, 0, 0, 0.3);
|
||||||
|
}
|
||||||
|
|
||||||
.dialog__header {
|
.dialog__header {
|
||||||
|
position: relative;
|
||||||
grid-column: 1 / -1;
|
grid-column: 1 / -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -355,7 +356,7 @@ kbd {
|
|||||||
display: block;
|
display: block;
|
||||||
top: 0;
|
top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
margin: 16px;
|
margin: 0;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
border: none;
|
border: none;
|
||||||
background: url(/static/icon/x.svg) no-repeat 8px 8px / 16px 16px;
|
background: url(/static/icon/x.svg) no-repeat 8px 8px / 16px 16px;
|
||||||
|
@ -122,16 +122,46 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
groupStart(title = null) {
|
group(...args) {
|
||||||
if (title) this.fakeItem(title);
|
if (typeof args[0] === 'string') this.fakeItem(args.shift());
|
||||||
shortcutsGroup = [];
|
shortcutsGroup = [];
|
||||||
}
|
|
||||||
|
|
||||||
groupEnd() {
|
args[0].bind(this)();
|
||||||
|
|
||||||
if (shortcutsGroup && shortcutsGroup.length) allShortcuts.push(shortcutsGroup);
|
if (shortcutsGroup && shortcutsGroup.length) allShortcuts.push(shortcutsGroup);
|
||||||
shortcutsGroup = null;
|
shortcutsGroup = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bindElement(shortcut, element, ...other) {
|
||||||
|
element = typeof element === 'string' ? $(element) : element;
|
||||||
|
if (!element) return;
|
||||||
|
this.add(shortcut, () => {
|
||||||
|
if (isTextField(element)) {
|
||||||
|
element.focus();
|
||||||
|
} else {
|
||||||
|
element.click();
|
||||||
|
}
|
||||||
|
}, ...other);
|
||||||
|
}
|
||||||
|
|
||||||
|
bindLink(shortcut, link, ...other) {
|
||||||
|
this.add(shortcut, () => window.location.href = link, ...other);
|
||||||
|
}
|
||||||
|
|
||||||
|
bindCollection(prefix, elements, collectionDescription, itemDescription) {
|
||||||
|
this.fakeItem(prefix + ' 1 – 9', collectionDescription);
|
||||||
|
|
||||||
|
if (typeof elements === 'string') {
|
||||||
|
elements = $$(elements);
|
||||||
|
} else if (Array.isArray(elements)) {
|
||||||
|
elements = elements.map(el => typeof el === 'string' ? $(el) : el);
|
||||||
|
}
|
||||||
|
|
||||||
|
for (let i = 1; i <= elements.length && i < 10; i++) {
|
||||||
|
this.bindElement(`${prefix} ${i}`, elements[i-1], `${itemDescription} #${i}`, false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
fakeItem(shortcut, description = null) {
|
fakeItem(shortcut, description = null) {
|
||||||
let list = shortcutsGroup || allShortcuts;
|
let list = shortcutsGroup || allShortcuts;
|
||||||
list.push({
|
list.push({
|
||||||
@ -154,6 +184,7 @@
|
|||||||
|
|
||||||
this.active = this.active[shortcut];
|
this.active = this.active[shortcut];
|
||||||
if (this.active.action) {
|
if (this.active.action) {
|
||||||
|
event.stopPropagation();
|
||||||
this.active.action(event);
|
this.active.action(event);
|
||||||
if (this.override) event.preventDefault();
|
if (this.override) event.preventDefault();
|
||||||
this.resetActive();
|
this.resetActive();
|
||||||
@ -173,61 +204,28 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function bindElementFactory(handler) {
|
|
||||||
return (shortcut, element, ...other) => {
|
|
||||||
element = typeof element === 'string' ? $(element) : element;
|
|
||||||
if (!element) return;
|
|
||||||
handler.add(shortcut, () => {
|
|
||||||
if (isTextField(element)) {
|
|
||||||
element.focus();
|
|
||||||
} else {
|
|
||||||
element.click();
|
|
||||||
}
|
|
||||||
}, ...other);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
function bindLinkFactory(handler) {
|
|
||||||
return (shortcut, link, ...other) => handler.add(shortcut, () => window.location.href = link, ...other);
|
|
||||||
}
|
|
||||||
|
|
||||||
function bindCollectionFactory(handler) {
|
|
||||||
return (prefix, elements, collectionDescription, itemDescription) => {
|
|
||||||
handler.fakeItem(prefix + ' 1 – 9', collectionDescription);
|
|
||||||
|
|
||||||
if (typeof elements === 'string') {
|
|
||||||
elements = $$(elements);
|
|
||||||
} else if (Array.isArray(elements)) {
|
|
||||||
elements = elements.map(el => typeof el === 'string' ? $(el) : el);
|
|
||||||
}
|
|
||||||
|
|
||||||
for (let i = 1; i <= elements.length && i < 10; i++) {
|
|
||||||
bindElementFactory(handler)(`${prefix} ${i}`, elements[i-1], `${itemDescription} #${i}`, false);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
class ShortcutsHelpDialog {
|
class ShortcutsHelpDialog {
|
||||||
constructor() {
|
constructor() {
|
||||||
let template = $('#dialog-template');
|
let template = $('#dialog-template');
|
||||||
this.wrap = template.content.firstElementChild.cloneNode(true);
|
let clonedTemplate = template.content.cloneNode(true);
|
||||||
this.wrap.classList.add('shortcuts-help');
|
this.backdrop = clonedTemplate.children[0];
|
||||||
this.wrap.hidden = true;
|
this.dialog = clonedTemplate.children[1];
|
||||||
|
|
||||||
let handleClose = (event) => {
|
this.dialog.classList.add('shortcuts-help');
|
||||||
event.preventDefault();
|
this.dialog.hidden = true;
|
||||||
event.stopPropagation();
|
this.backdrop.hidden = true;
|
||||||
this.close();
|
|
||||||
};
|
|
||||||
|
|
||||||
this.shortcuts = new ShortcutHandler(this.wrap, false);
|
document.body.appendChild(this.backdrop);
|
||||||
this.shortcuts.add('Escape', handleClose, null, false);
|
document.body.appendChild(this.dialog);
|
||||||
|
|
||||||
this.wrap.querySelector('.dialog__title').textContent = 'List of shortcuts';
|
this.close = this.close.bind(this);
|
||||||
this.wrap.querySelector('.dialog__close-button').addEventListener('click', handleClose);
|
|
||||||
|
|
||||||
this.wrap.addEventListener('click', handleClose);
|
this.dialog.querySelector('.dialog__title').textContent = 'List of shortcuts';
|
||||||
this.wrap.querySelector('.dialog').addEventListener('click', event => event.stopPropagation());
|
this.dialog.querySelector('.dialog__close-button').addEventListener('click', this.close);
|
||||||
|
this.backdrop.addEventListener('click', this.close);
|
||||||
|
|
||||||
|
this.shortcuts = new ShortcutHandler(this.dialog, false);
|
||||||
|
this.shortcuts.add('Escape', this.close, null, false);
|
||||||
|
|
||||||
let shortcutsGroup;
|
let shortcutsGroup;
|
||||||
let shortcutsGroupTemplate = document.createElement('div');
|
let shortcutsGroupTemplate = document.createElement('div');
|
||||||
@ -236,7 +234,7 @@
|
|||||||
for (let item of allShortcuts) {
|
for (let item of allShortcuts) {
|
||||||
if (item.description && !item.shortcut) {
|
if (item.description && !item.shortcut) {
|
||||||
shortcutsGroup = shortcutsGroupTemplate.cloneNode();
|
shortcutsGroup = shortcutsGroupTemplate.cloneNode();
|
||||||
this.wrap.querySelector('.dialog__content').appendChild(shortcutsGroup);
|
this.dialog.querySelector('.dialog__content').appendChild(shortcutsGroup);
|
||||||
|
|
||||||
let heading = document.createElement('h2');
|
let heading = document.createElement('h2');
|
||||||
heading.className = 'shortcuts-group-heading';
|
heading.className = 'shortcuts-group-heading';
|
||||||
@ -268,21 +266,21 @@
|
|||||||
shortcutsGroup.appendChild(list);
|
shortcutsGroup.appendChild(list);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
document.body.appendChild(this.wrap);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
open() {
|
open() {
|
||||||
this.prevActiveElement = document.activeElement;
|
this.prevActiveElement = document.activeElement;
|
||||||
|
|
||||||
document.body.overflow = 'hidden';
|
document.body.overflow = 'hidden';
|
||||||
this.wrap.hidden = false;
|
this.backdrop.hidden = false;
|
||||||
this.wrap.children[0].focus();
|
this.dialog.hidden = false;
|
||||||
|
this.dialog.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
close() {
|
close() {
|
||||||
document.body.overflow = '';
|
document.body.overflow = '';
|
||||||
this.wrap.hidden = true;
|
this.backdrop.hidden = true;
|
||||||
|
this.dialog.hidden = true;
|
||||||
|
|
||||||
if (this.prevActiveElement) {
|
if (this.prevActiveElement) {
|
||||||
this.prevActiveElement.focus();
|
this.prevActiveElement.focus();
|
||||||
@ -300,39 +298,35 @@
|
|||||||
|
|
||||||
// Global shortcuts work everywhere.
|
// Global shortcuts work everywhere.
|
||||||
let globalShortcuts = new ShortcutHandler(document, false);
|
let globalShortcuts = new ShortcutHandler(document, false);
|
||||||
globalShortcuts.add('?, ' + (isMac ? 'Meta+/' : 'Ctrl+/'), openShortcutsReference);
|
globalShortcuts.add('?, ' + (isMac ? 'Meta+/' : 'Ctrl+/'), openHelp);
|
||||||
|
|
||||||
// Common shortcuts work everywhere except on text fields.
|
// Page shortcuts work everywhere except on text fields.
|
||||||
let commonShortcuts = new ShortcutHandler(document, false, notTextField);
|
let pageShortcuts = new ShortcutHandler(document, false, notTextField);
|
||||||
|
pageShortcuts.add('?', openHelp, null, false);
|
||||||
let bindElement = bindElementFactory(commonShortcuts);
|
|
||||||
let bindLink = bindLinkFactory(commonShortcuts);
|
|
||||||
let bindCollection = bindCollectionFactory(commonShortcuts);
|
|
||||||
|
|
||||||
// Common shortcuts
|
// Common shortcuts
|
||||||
commonShortcuts.groupStart('Common');
|
pageShortcuts.group('Common', function () {
|
||||||
bindCollection('g', '.header-links__link', 'First 9 header links', 'Header link');
|
this.bindCollection('g', '.header-links__link', 'First 9 header links', 'Header link');
|
||||||
bindLink('g h', '/', 'Home');
|
this.bindLink('g h', '/', 'Home');
|
||||||
bindLink('g l', '/list/', 'List of hyphae');
|
this.bindLink('g l', '/list/', 'List of hyphae');
|
||||||
bindLink('g r', '/recent-changes/', 'Recent changes');
|
this.bindLink('g r', '/recent-changes/', 'Recent changes');
|
||||||
bindElement('g u', '.header-links__entry_user .header-links__link', 'Your profile′s hypha');
|
this.bindElement('g u', '.header-links__entry_user .header-links__link', 'Your profile′s hypha');
|
||||||
commonShortcuts.groupEnd();
|
});
|
||||||
|
|
||||||
if (typeof editTextarea === 'undefined') {
|
if (typeof editTextarea === 'undefined') {
|
||||||
// Hypha shortcuts
|
// Hypha shortcuts
|
||||||
commonShortcuts.groupStart('Hypha');
|
pageShortcuts.group('Hypha', function () {
|
||||||
bindCollection('', 'article .wikilink', 'First 9 hypha′s links', 'Hypha link');
|
this.bindCollection('', 'article .wikilink', 'First 9 hypha′s links', 'Hypha link');
|
||||||
bindElement('p, Alt+ArrowLeft, Ctrl+Alt+ArrowLeft', '.prevnext__prev', 'Next hypha');
|
this.bindElement('p, Alt+ArrowLeft, Ctrl+Alt+ArrowLeft', '.prevnext__prev', 'Next hypha');
|
||||||
bindElement('n, Alt+ArrowRight, Ctrl+Alt+ArrowRight', '.prevnext__next', 'Previous hypha');
|
this.bindElement('n, Alt+ArrowRight, Ctrl+Alt+ArrowRight', '.prevnext__next', 'Previous hypha');
|
||||||
bindElement('s, Alt+ArrowUp, Ctrl+Alt+ArrowUp', $$('.navi-title a').slice(1, -1).slice(-1)[0], 'Parent hypha');
|
this.bindElement('s, Alt+ArrowUp, Ctrl+Alt+ArrowUp', $$('.navi-title a').slice(1, -1).slice(-1)[0], 'Parent hypha');
|
||||||
bindElement('c, Alt+ArrowDown, Ctrl+Alt+ArrowDown', '.subhyphae__link', 'First child hypha');
|
this.bindElement('c, Alt+ArrowDown, Ctrl+Alt+ArrowDown', '.subhyphae__link', 'First child hypha');
|
||||||
bindElement('e, Ctrl+Enter', '.hypha-tabs__link[href^="/edit/"]', 'Edit this hypha');
|
this.bindElement('e, Ctrl+Enter', '.hypha-tabs__link[href^="/edit/"]', 'Edit this hypha');
|
||||||
commonShortcuts.groupEnd();
|
});
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// Hypha editor shortcuts. These work only on editor's text area.
|
// Hypha editor shortcuts. These work only on editor's text area.
|
||||||
let editorShortcuts = new ShortcutHandler(editTextarea, true);
|
let editorShortcuts = new ShortcutHandler(editTextarea, true);
|
||||||
let bindElement = bindElementFactory(editorShortcuts);
|
|
||||||
|
|
||||||
let shortcuts = [
|
let shortcuts = [
|
||||||
// Win+Linux Mac Action Description
|
// Win+Linux Mac Action Description
|
||||||
@ -346,19 +340,19 @@
|
|||||||
['Ctrl+k', 'Meta+k', wrapLink, 'Format: Link'],
|
['Ctrl+k', 'Meta+k', wrapLink, 'Format: Link'],
|
||||||
];
|
];
|
||||||
|
|
||||||
editorShortcuts.groupStart('Editor');
|
editorShortcuts.group('Editor', function () {
|
||||||
for (let shortcut of shortcuts) {
|
for (let shortcut of shortcuts) {
|
||||||
if (isMac) {
|
if (isMac) {
|
||||||
editorShortcuts.add(shortcut[1], ...shortcut.slice(2))
|
this.add(shortcut[1], ...shortcut.slice(2))
|
||||||
} else {
|
} else {
|
||||||
editorShortcuts.add(shortcut[0], ...shortcut.slice(2))
|
this.add(shortcut[0], ...shortcut.slice(2))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
editorShortcuts.groupEnd();
|
|
||||||
|
|
||||||
editorShortcuts.groupStart();
|
editorShortcuts.group(function () {
|
||||||
bindElement(isMac ? 'Meta+Enter' : 'Ctrl+Enter', $('.edit-form__save'), 'Save changes');
|
this.bindElement(isMac ? 'Meta+Enter' : 'Ctrl+Enter', $('.edit-form__save'), 'Save changes');
|
||||||
editorShortcuts.groupEnd();
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
})();
|
})();
|
||||||
|
@ -29,15 +29,14 @@
|
|||||||
</header>
|
</header>
|
||||||
{%s= body %}
|
{%s= body %}
|
||||||
<template id="dialog-template">
|
<template id="dialog-template">
|
||||||
<div class="dialog-wrap">
|
<div class="dialog-backdrop"></div>
|
||||||
<div class="dialog" tabindex="0">
|
<div class="dialog" tabindex="0">
|
||||||
<div class="dialog__header">
|
<div class="dialog__header">
|
||||||
<h1 class="dialog__title"></h1>
|
<h1 class="dialog__title"></h1>
|
||||||
<button class="dialog__close-button" aria-label="Close this dialog"></button>
|
<button class="dialog__close-button" aria-label="Close this dialog"></button>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="dialog__content"></div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="dialog__content"></div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
{%= omnipresentScripts() %}
|
{%= omnipresentScripts() %}
|
||||||
|
@ -94,63 +94,62 @@ func StreamBaseHTML(qw422016 *qt422016.Writer, title, body string, u *user.User,
|
|||||||
//line views/stuff.qtpl:30
|
//line views/stuff.qtpl:30
|
||||||
qw422016.N().S(`
|
qw422016.N().S(`
|
||||||
<template id="dialog-template">
|
<template id="dialog-template">
|
||||||
<div class="dialog-wrap">
|
<div class="dialog-backdrop"></div>
|
||||||
<div class="dialog" tabindex="0">
|
<div class="dialog" tabindex="0">
|
||||||
<div class="dialog__header">
|
<div class="dialog__header">
|
||||||
<h1 class="dialog__title"></h1>
|
<h1 class="dialog__title"></h1>
|
||||||
<button class="dialog__close-button" aria-label="Close this dialog"></button>
|
<button class="dialog__close-button" aria-label="Close this dialog"></button>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="dialog__content"></div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="dialog__content"></div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
`)
|
`)
|
||||||
//line views/stuff.qtpl:43
|
//line views/stuff.qtpl:42
|
||||||
streamomnipresentScripts(qw422016)
|
streamomnipresentScripts(qw422016)
|
||||||
//line views/stuff.qtpl:43
|
//line views/stuff.qtpl:42
|
||||||
qw422016.N().S(`
|
qw422016.N().S(`
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
`)
|
`)
|
||||||
//line views/stuff.qtpl:46
|
//line views/stuff.qtpl:45
|
||||||
}
|
}
|
||||||
|
|
||||||
//line views/stuff.qtpl:46
|
//line views/stuff.qtpl:45
|
||||||
func WriteBaseHTML(qq422016 qtio422016.Writer, title, body string, u *user.User, headElements ...string) {
|
func WriteBaseHTML(qq422016 qtio422016.Writer, title, body string, u *user.User, headElements ...string) {
|
||||||
//line views/stuff.qtpl:46
|
//line views/stuff.qtpl:45
|
||||||
qw422016 := qt422016.AcquireWriter(qq422016)
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
||||||
//line views/stuff.qtpl:46
|
//line views/stuff.qtpl:45
|
||||||
StreamBaseHTML(qw422016, title, body, u, headElements...)
|
StreamBaseHTML(qw422016, title, body, u, headElements...)
|
||||||
//line views/stuff.qtpl:46
|
//line views/stuff.qtpl:45
|
||||||
qt422016.ReleaseWriter(qw422016)
|
qt422016.ReleaseWriter(qw422016)
|
||||||
//line views/stuff.qtpl:46
|
//line views/stuff.qtpl:45
|
||||||
}
|
}
|
||||||
|
|
||||||
//line views/stuff.qtpl:46
|
//line views/stuff.qtpl:45
|
||||||
func BaseHTML(title, body string, u *user.User, headElements ...string) string {
|
func BaseHTML(title, body string, u *user.User, headElements ...string) string {
|
||||||
//line views/stuff.qtpl:46
|
//line views/stuff.qtpl:45
|
||||||
qb422016 := qt422016.AcquireByteBuffer()
|
qb422016 := qt422016.AcquireByteBuffer()
|
||||||
//line views/stuff.qtpl:46
|
//line views/stuff.qtpl:45
|
||||||
WriteBaseHTML(qb422016, title, body, u, headElements...)
|
WriteBaseHTML(qb422016, title, body, u, headElements...)
|
||||||
//line views/stuff.qtpl:46
|
//line views/stuff.qtpl:45
|
||||||
qs422016 := string(qb422016.B)
|
qs422016 := string(qb422016.B)
|
||||||
//line views/stuff.qtpl:46
|
//line views/stuff.qtpl:45
|
||||||
qt422016.ReleaseByteBuffer(qb422016)
|
qt422016.ReleaseByteBuffer(qb422016)
|
||||||
//line views/stuff.qtpl:46
|
//line views/stuff.qtpl:45
|
||||||
return qs422016
|
return qs422016
|
||||||
//line views/stuff.qtpl:46
|
//line views/stuff.qtpl:45
|
||||||
}
|
}
|
||||||
|
|
||||||
//line views/stuff.qtpl:48
|
//line views/stuff.qtpl:47
|
||||||
func StreamUserListHTML(qw422016 *qt422016.Writer) {
|
func StreamUserListHTML(qw422016 *qt422016.Writer) {
|
||||||
//line views/stuff.qtpl:48
|
//line views/stuff.qtpl:47
|
||||||
qw422016.N().S(`
|
qw422016.N().S(`
|
||||||
<div class="layout">
|
<div class="layout">
|
||||||
<main class="main-width user-list">
|
<main class="main-width user-list">
|
||||||
<h1>List of users</h1>
|
<h1>List of users</h1>
|
||||||
`)
|
`)
|
||||||
//line views/stuff.qtpl:53
|
//line views/stuff.qtpl:52
|
||||||
var (
|
var (
|
||||||
admins = make([]string, 0)
|
admins = make([]string, 0)
|
||||||
moderators = make([]string, 0)
|
moderators = make([]string, 0)
|
||||||
@ -167,303 +166,303 @@ func StreamUserListHTML(qw422016 *qt422016.Writer) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//line views/stuff.qtpl:68
|
//line views/stuff.qtpl:67
|
||||||
qw422016.N().S(`
|
qw422016.N().S(`
|
||||||
<section>
|
<section>
|
||||||
<h2>Admins</h2>
|
<h2>Admins</h2>
|
||||||
<ol>`)
|
<ol>`)
|
||||||
//line views/stuff.qtpl:71
|
//line views/stuff.qtpl:70
|
||||||
for _, name := range admins {
|
for _, name := range admins {
|
||||||
//line views/stuff.qtpl:71
|
//line views/stuff.qtpl:70
|
||||||
qw422016.N().S(`
|
qw422016.N().S(`
|
||||||
<li><a href="/page/`)
|
<li><a href="/page/`)
|
||||||
//line views/stuff.qtpl:72
|
//line views/stuff.qtpl:71
|
||||||
qw422016.E().S(cfg.UserHypha)
|
qw422016.E().S(cfg.UserHypha)
|
||||||
//line views/stuff.qtpl:72
|
//line views/stuff.qtpl:71
|
||||||
qw422016.N().S(`/`)
|
qw422016.N().S(`/`)
|
||||||
//line views/stuff.qtpl:72
|
//line views/stuff.qtpl:71
|
||||||
qw422016.E().S(name)
|
qw422016.E().S(name)
|
||||||
//line views/stuff.qtpl:72
|
//line views/stuff.qtpl:71
|
||||||
qw422016.N().S(`">`)
|
qw422016.N().S(`">`)
|
||||||
//line views/stuff.qtpl:72
|
//line views/stuff.qtpl:71
|
||||||
qw422016.E().S(name)
|
qw422016.E().S(name)
|
||||||
//line views/stuff.qtpl:72
|
//line views/stuff.qtpl:71
|
||||||
qw422016.N().S(`</a></li>
|
qw422016.N().S(`</a></li>
|
||||||
`)
|
`)
|
||||||
//line views/stuff.qtpl:73
|
//line views/stuff.qtpl:72
|
||||||
}
|
}
|
||||||
//line views/stuff.qtpl:73
|
//line views/stuff.qtpl:72
|
||||||
qw422016.N().S(`</ol>
|
qw422016.N().S(`</ol>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<h2>Moderators</h2>
|
<h2>Moderators</h2>
|
||||||
<ol>`)
|
<ol>`)
|
||||||
//line views/stuff.qtpl:77
|
//line views/stuff.qtpl:76
|
||||||
for _, name := range moderators {
|
for _, name := range moderators {
|
||||||
//line views/stuff.qtpl:77
|
//line views/stuff.qtpl:76
|
||||||
qw422016.N().S(`
|
qw422016.N().S(`
|
||||||
<li><a href="/page/`)
|
<li><a href="/page/`)
|
||||||
//line views/stuff.qtpl:78
|
//line views/stuff.qtpl:77
|
||||||
qw422016.E().S(cfg.UserHypha)
|
qw422016.E().S(cfg.UserHypha)
|
||||||
//line views/stuff.qtpl:78
|
//line views/stuff.qtpl:77
|
||||||
qw422016.N().S(`/`)
|
qw422016.N().S(`/`)
|
||||||
//line views/stuff.qtpl:78
|
//line views/stuff.qtpl:77
|
||||||
qw422016.E().S(name)
|
qw422016.E().S(name)
|
||||||
//line views/stuff.qtpl:78
|
//line views/stuff.qtpl:77
|
||||||
qw422016.N().S(`">`)
|
qw422016.N().S(`">`)
|
||||||
//line views/stuff.qtpl:78
|
//line views/stuff.qtpl:77
|
||||||
qw422016.E().S(name)
|
qw422016.E().S(name)
|
||||||
//line views/stuff.qtpl:78
|
//line views/stuff.qtpl:77
|
||||||
qw422016.N().S(`</a></li>
|
qw422016.N().S(`</a></li>
|
||||||
`)
|
`)
|
||||||
//line views/stuff.qtpl:79
|
//line views/stuff.qtpl:78
|
||||||
}
|
}
|
||||||
//line views/stuff.qtpl:79
|
//line views/stuff.qtpl:78
|
||||||
qw422016.N().S(`</ol>
|
qw422016.N().S(`</ol>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<h2>Editors</h2>
|
<h2>Editors</h2>
|
||||||
<ol>`)
|
<ol>`)
|
||||||
//line views/stuff.qtpl:83
|
//line views/stuff.qtpl:82
|
||||||
for _, name := range editors {
|
for _, name := range editors {
|
||||||
//line views/stuff.qtpl:83
|
//line views/stuff.qtpl:82
|
||||||
qw422016.N().S(`
|
qw422016.N().S(`
|
||||||
<li><a href="/page/`)
|
<li><a href="/page/`)
|
||||||
//line views/stuff.qtpl:84
|
//line views/stuff.qtpl:83
|
||||||
qw422016.E().S(cfg.UserHypha)
|
qw422016.E().S(cfg.UserHypha)
|
||||||
//line views/stuff.qtpl:84
|
//line views/stuff.qtpl:83
|
||||||
qw422016.N().S(`/`)
|
qw422016.N().S(`/`)
|
||||||
//line views/stuff.qtpl:84
|
//line views/stuff.qtpl:83
|
||||||
qw422016.E().S(name)
|
qw422016.E().S(name)
|
||||||
//line views/stuff.qtpl:84
|
//line views/stuff.qtpl:83
|
||||||
qw422016.N().S(`">`)
|
qw422016.N().S(`">`)
|
||||||
//line views/stuff.qtpl:84
|
//line views/stuff.qtpl:83
|
||||||
qw422016.E().S(name)
|
qw422016.E().S(name)
|
||||||
//line views/stuff.qtpl:84
|
//line views/stuff.qtpl:83
|
||||||
qw422016.N().S(`</a></li>
|
qw422016.N().S(`</a></li>
|
||||||
`)
|
`)
|
||||||
//line views/stuff.qtpl:85
|
//line views/stuff.qtpl:84
|
||||||
}
|
}
|
||||||
//line views/stuff.qtpl:85
|
//line views/stuff.qtpl:84
|
||||||
qw422016.N().S(`</ol>
|
qw422016.N().S(`</ol>
|
||||||
</section>
|
</section>
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
`)
|
`)
|
||||||
//line views/stuff.qtpl:89
|
//line views/stuff.qtpl:88
|
||||||
}
|
}
|
||||||
|
|
||||||
//line views/stuff.qtpl:89
|
//line views/stuff.qtpl:88
|
||||||
func WriteUserListHTML(qq422016 qtio422016.Writer) {
|
func WriteUserListHTML(qq422016 qtio422016.Writer) {
|
||||||
//line views/stuff.qtpl:89
|
//line views/stuff.qtpl:88
|
||||||
qw422016 := qt422016.AcquireWriter(qq422016)
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
||||||
//line views/stuff.qtpl:89
|
//line views/stuff.qtpl:88
|
||||||
StreamUserListHTML(qw422016)
|
StreamUserListHTML(qw422016)
|
||||||
//line views/stuff.qtpl:89
|
//line views/stuff.qtpl:88
|
||||||
qt422016.ReleaseWriter(qw422016)
|
qt422016.ReleaseWriter(qw422016)
|
||||||
//line views/stuff.qtpl:89
|
//line views/stuff.qtpl:88
|
||||||
}
|
}
|
||||||
|
|
||||||
//line views/stuff.qtpl:89
|
//line views/stuff.qtpl:88
|
||||||
func UserListHTML() string {
|
func UserListHTML() string {
|
||||||
//line views/stuff.qtpl:89
|
//line views/stuff.qtpl:88
|
||||||
qb422016 := qt422016.AcquireByteBuffer()
|
qb422016 := qt422016.AcquireByteBuffer()
|
||||||
//line views/stuff.qtpl:89
|
//line views/stuff.qtpl:88
|
||||||
WriteUserListHTML(qb422016)
|
WriteUserListHTML(qb422016)
|
||||||
//line views/stuff.qtpl:89
|
//line views/stuff.qtpl:88
|
||||||
qs422016 := string(qb422016.B)
|
qs422016 := string(qb422016.B)
|
||||||
//line views/stuff.qtpl:89
|
//line views/stuff.qtpl:88
|
||||||
qt422016.ReleaseByteBuffer(qb422016)
|
qt422016.ReleaseByteBuffer(qb422016)
|
||||||
//line views/stuff.qtpl:89
|
//line views/stuff.qtpl:88
|
||||||
return qs422016
|
return qs422016
|
||||||
//line views/stuff.qtpl:89
|
//line views/stuff.qtpl:88
|
||||||
}
|
}
|
||||||
|
|
||||||
//line views/stuff.qtpl:91
|
//line views/stuff.qtpl:90
|
||||||
func StreamHyphaListHTML(qw422016 *qt422016.Writer) {
|
func StreamHyphaListHTML(qw422016 *qt422016.Writer) {
|
||||||
//line views/stuff.qtpl:91
|
//line views/stuff.qtpl:90
|
||||||
qw422016.N().S(`
|
qw422016.N().S(`
|
||||||
<div class="layout">
|
<div class="layout">
|
||||||
<main class="main-width">
|
<main class="main-width">
|
||||||
<h1>List of hyphae</h1>
|
<h1>List of hyphae</h1>
|
||||||
<p>This wiki has `)
|
<p>This wiki has `)
|
||||||
//line views/stuff.qtpl:95
|
//line views/stuff.qtpl:94
|
||||||
qw422016.N().D(hyphae.Count())
|
qw422016.N().D(hyphae.Count())
|
||||||
//line views/stuff.qtpl:95
|
//line views/stuff.qtpl:94
|
||||||
qw422016.N().S(` hyphae.</p>
|
qw422016.N().S(` hyphae.</p>
|
||||||
<ul class="hypha-list">
|
<ul class="hypha-list">
|
||||||
`)
|
`)
|
||||||
//line views/stuff.qtpl:97
|
//line views/stuff.qtpl:96
|
||||||
for h := range hyphae.YieldExistingHyphae() {
|
for h := range hyphae.YieldExistingHyphae() {
|
||||||
//line views/stuff.qtpl:97
|
//line views/stuff.qtpl:96
|
||||||
qw422016.N().S(`
|
qw422016.N().S(`
|
||||||
<li class="hypha-list__entry">
|
<li class="hypha-list__entry">
|
||||||
<a class="hypha-list__link" href="/hypha/`)
|
<a class="hypha-list__link" href="/hypha/`)
|
||||||
//line views/stuff.qtpl:99
|
//line views/stuff.qtpl:98
|
||||||
qw422016.E().S(h.Name)
|
qw422016.E().S(h.Name)
|
||||||
//line views/stuff.qtpl:99
|
//line views/stuff.qtpl:98
|
||||||
qw422016.N().S(`">`)
|
qw422016.N().S(`">`)
|
||||||
//line views/stuff.qtpl:99
|
//line views/stuff.qtpl:98
|
||||||
qw422016.E().S(util.BeautifulName(h.Name))
|
qw422016.E().S(util.BeautifulName(h.Name))
|
||||||
//line views/stuff.qtpl:99
|
//line views/stuff.qtpl:98
|
||||||
qw422016.N().S(`</a>
|
qw422016.N().S(`</a>
|
||||||
`)
|
`)
|
||||||
//line views/stuff.qtpl:100
|
//line views/stuff.qtpl:99
|
||||||
if h.BinaryPath != "" {
|
if h.BinaryPath != "" {
|
||||||
//line views/stuff.qtpl:100
|
//line views/stuff.qtpl:99
|
||||||
qw422016.N().S(`
|
qw422016.N().S(`
|
||||||
<span class="hypha-list__amnt-type">`)
|
<span class="hypha-list__amnt-type">`)
|
||||||
//line views/stuff.qtpl:101
|
//line views/stuff.qtpl:100
|
||||||
qw422016.E().S(filepath.Ext(h.BinaryPath)[1:])
|
qw422016.E().S(filepath.Ext(h.BinaryPath)[1:])
|
||||||
//line views/stuff.qtpl:101
|
//line views/stuff.qtpl:100
|
||||||
qw422016.N().S(`</span>
|
qw422016.N().S(`</span>
|
||||||
`)
|
`)
|
||||||
//line views/stuff.qtpl:102
|
//line views/stuff.qtpl:101
|
||||||
}
|
}
|
||||||
//line views/stuff.qtpl:102
|
//line views/stuff.qtpl:101
|
||||||
qw422016.N().S(`
|
qw422016.N().S(`
|
||||||
</li>
|
</li>
|
||||||
`)
|
`)
|
||||||
//line views/stuff.qtpl:104
|
//line views/stuff.qtpl:103
|
||||||
}
|
}
|
||||||
//line views/stuff.qtpl:104
|
//line views/stuff.qtpl:103
|
||||||
qw422016.N().S(`
|
qw422016.N().S(`
|
||||||
</ul>
|
</ul>
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
`)
|
`)
|
||||||
//line views/stuff.qtpl:108
|
//line views/stuff.qtpl:107
|
||||||
}
|
}
|
||||||
|
|
||||||
//line views/stuff.qtpl:108
|
//line views/stuff.qtpl:107
|
||||||
func WriteHyphaListHTML(qq422016 qtio422016.Writer) {
|
func WriteHyphaListHTML(qq422016 qtio422016.Writer) {
|
||||||
//line views/stuff.qtpl:108
|
//line views/stuff.qtpl:107
|
||||||
qw422016 := qt422016.AcquireWriter(qq422016)
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
||||||
//line views/stuff.qtpl:108
|
//line views/stuff.qtpl:107
|
||||||
StreamHyphaListHTML(qw422016)
|
StreamHyphaListHTML(qw422016)
|
||||||
//line views/stuff.qtpl:108
|
//line views/stuff.qtpl:107
|
||||||
qt422016.ReleaseWriter(qw422016)
|
qt422016.ReleaseWriter(qw422016)
|
||||||
//line views/stuff.qtpl:108
|
//line views/stuff.qtpl:107
|
||||||
}
|
}
|
||||||
|
|
||||||
//line views/stuff.qtpl:108
|
//line views/stuff.qtpl:107
|
||||||
func HyphaListHTML() string {
|
func HyphaListHTML() string {
|
||||||
//line views/stuff.qtpl:108
|
//line views/stuff.qtpl:107
|
||||||
qb422016 := qt422016.AcquireByteBuffer()
|
qb422016 := qt422016.AcquireByteBuffer()
|
||||||
//line views/stuff.qtpl:108
|
//line views/stuff.qtpl:107
|
||||||
WriteHyphaListHTML(qb422016)
|
WriteHyphaListHTML(qb422016)
|
||||||
//line views/stuff.qtpl:108
|
//line views/stuff.qtpl:107
|
||||||
qs422016 := string(qb422016.B)
|
qs422016 := string(qb422016.B)
|
||||||
//line views/stuff.qtpl:108
|
//line views/stuff.qtpl:107
|
||||||
qt422016.ReleaseByteBuffer(qb422016)
|
qt422016.ReleaseByteBuffer(qb422016)
|
||||||
//line views/stuff.qtpl:108
|
//line views/stuff.qtpl:107
|
||||||
return qs422016
|
return qs422016
|
||||||
//line views/stuff.qtpl:108
|
//line views/stuff.qtpl:107
|
||||||
}
|
}
|
||||||
|
|
||||||
//line views/stuff.qtpl:110
|
//line views/stuff.qtpl:109
|
||||||
func StreamAboutHTML(qw422016 *qt422016.Writer) {
|
func StreamAboutHTML(qw422016 *qt422016.Writer) {
|
||||||
//line views/stuff.qtpl:110
|
//line views/stuff.qtpl:109
|
||||||
qw422016.N().S(`
|
qw422016.N().S(`
|
||||||
<div class="layout">
|
<div class="layout">
|
||||||
<main class="main-width">
|
<main class="main-width">
|
||||||
<section>
|
<section>
|
||||||
<h1>About `)
|
<h1>About `)
|
||||||
//line views/stuff.qtpl:114
|
//line views/stuff.qtpl:113
|
||||||
qw422016.E().S(cfg.WikiName)
|
qw422016.E().S(cfg.WikiName)
|
||||||
//line views/stuff.qtpl:114
|
//line views/stuff.qtpl:113
|
||||||
qw422016.N().S(`</h1>
|
qw422016.N().S(`</h1>
|
||||||
<ul>
|
<ul>
|
||||||
<li><b><a href="https://mycorrhiza.lesarbr.es">Mycorrhiza Wiki</a> version:</b> 1.2.0 indev</li>
|
<li><b><a href="https://mycorrhiza.lesarbr.es">Mycorrhiza Wiki</a> version:</b> 1.2.0 indev</li>
|
||||||
`)
|
`)
|
||||||
//line views/stuff.qtpl:117
|
//line views/stuff.qtpl:116
|
||||||
if user.AuthUsed {
|
if user.AuthUsed {
|
||||||
//line views/stuff.qtpl:117
|
//line views/stuff.qtpl:116
|
||||||
qw422016.N().S(` <li><b>User count:</b> `)
|
qw422016.N().S(` <li><b>User count:</b> `)
|
||||||
//line views/stuff.qtpl:118
|
//line views/stuff.qtpl:117
|
||||||
qw422016.N().D(user.Count())
|
qw422016.N().D(user.Count())
|
||||||
//line views/stuff.qtpl:118
|
//line views/stuff.qtpl:117
|
||||||
qw422016.N().S(`</li>
|
qw422016.N().S(`</li>
|
||||||
<li><b>Home page:</b> <a href="/">`)
|
<li><b>Home page:</b> <a href="/">`)
|
||||||
//line views/stuff.qtpl:119
|
//line views/stuff.qtpl:118
|
||||||
qw422016.E().S(cfg.HomeHypha)
|
qw422016.E().S(cfg.HomeHypha)
|
||||||
//line views/stuff.qtpl:119
|
//line views/stuff.qtpl:118
|
||||||
qw422016.N().S(`</a></li>
|
qw422016.N().S(`</a></li>
|
||||||
<li><b>Administrators:</b>`)
|
<li><b>Administrators:</b>`)
|
||||||
//line views/stuff.qtpl:120
|
//line views/stuff.qtpl:119
|
||||||
for i, username := range user.ListUsersWithGroup("admin") {
|
for i, username := range user.ListUsersWithGroup("admin") {
|
||||||
//line views/stuff.qtpl:121
|
//line views/stuff.qtpl:120
|
||||||
if i > 0 {
|
if i > 0 {
|
||||||
//line views/stuff.qtpl:121
|
//line views/stuff.qtpl:120
|
||||||
qw422016.N().S(`<span aria-hidden="true">, </span>
|
qw422016.N().S(`<span aria-hidden="true">, </span>
|
||||||
`)
|
`)
|
||||||
//line views/stuff.qtpl:122
|
//line views/stuff.qtpl:121
|
||||||
}
|
}
|
||||||
//line views/stuff.qtpl:122
|
//line views/stuff.qtpl:121
|
||||||
qw422016.N().S(` <a href="/page/`)
|
qw422016.N().S(` <a href="/page/`)
|
||||||
//line views/stuff.qtpl:123
|
//line views/stuff.qtpl:122
|
||||||
qw422016.E().S(cfg.UserHypha)
|
qw422016.E().S(cfg.UserHypha)
|
||||||
//line views/stuff.qtpl:123
|
//line views/stuff.qtpl:122
|
||||||
qw422016.N().S(`/`)
|
qw422016.N().S(`/`)
|
||||||
//line views/stuff.qtpl:123
|
//line views/stuff.qtpl:122
|
||||||
qw422016.E().S(username)
|
qw422016.E().S(username)
|
||||||
//line views/stuff.qtpl:123
|
//line views/stuff.qtpl:122
|
||||||
qw422016.N().S(`">`)
|
qw422016.N().S(`">`)
|
||||||
//line views/stuff.qtpl:123
|
//line views/stuff.qtpl:122
|
||||||
qw422016.E().S(username)
|
qw422016.E().S(username)
|
||||||
//line views/stuff.qtpl:123
|
//line views/stuff.qtpl:122
|
||||||
qw422016.N().S(`</a>`)
|
qw422016.N().S(`</a>`)
|
||||||
//line views/stuff.qtpl:123
|
//line views/stuff.qtpl:122
|
||||||
}
|
}
|
||||||
//line views/stuff.qtpl:123
|
//line views/stuff.qtpl:122
|
||||||
qw422016.N().S(`</li>
|
qw422016.N().S(`</li>
|
||||||
`)
|
`)
|
||||||
//line views/stuff.qtpl:124
|
//line views/stuff.qtpl:123
|
||||||
} else {
|
} else {
|
||||||
//line views/stuff.qtpl:124
|
//line views/stuff.qtpl:123
|
||||||
qw422016.N().S(` <li>This wiki does not use authorization</li>
|
qw422016.N().S(` <li>This wiki does not use authorization</li>
|
||||||
`)
|
`)
|
||||||
//line views/stuff.qtpl:126
|
//line views/stuff.qtpl:125
|
||||||
}
|
}
|
||||||
//line views/stuff.qtpl:126
|
//line views/stuff.qtpl:125
|
||||||
qw422016.N().S(` </ul>
|
qw422016.N().S(` </ul>
|
||||||
<p>See <a href="/list">/list</a> for information about hyphae on this wiki.</p>
|
<p>See <a href="/list">/list</a> for information about hyphae on this wiki.</p>
|
||||||
</section>
|
</section>
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
`)
|
`)
|
||||||
//line views/stuff.qtpl:132
|
//line views/stuff.qtpl:131
|
||||||
}
|
}
|
||||||
|
|
||||||
//line views/stuff.qtpl:132
|
//line views/stuff.qtpl:131
|
||||||
func WriteAboutHTML(qq422016 qtio422016.Writer) {
|
func WriteAboutHTML(qq422016 qtio422016.Writer) {
|
||||||
//line views/stuff.qtpl:132
|
//line views/stuff.qtpl:131
|
||||||
qw422016 := qt422016.AcquireWriter(qq422016)
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
||||||
//line views/stuff.qtpl:132
|
//line views/stuff.qtpl:131
|
||||||
StreamAboutHTML(qw422016)
|
StreamAboutHTML(qw422016)
|
||||||
//line views/stuff.qtpl:132
|
//line views/stuff.qtpl:131
|
||||||
qt422016.ReleaseWriter(qw422016)
|
qt422016.ReleaseWriter(qw422016)
|
||||||
//line views/stuff.qtpl:132
|
//line views/stuff.qtpl:131
|
||||||
}
|
}
|
||||||
|
|
||||||
//line views/stuff.qtpl:132
|
//line views/stuff.qtpl:131
|
||||||
func AboutHTML() string {
|
func AboutHTML() string {
|
||||||
//line views/stuff.qtpl:132
|
//line views/stuff.qtpl:131
|
||||||
qb422016 := qt422016.AcquireByteBuffer()
|
qb422016 := qt422016.AcquireByteBuffer()
|
||||||
//line views/stuff.qtpl:132
|
//line views/stuff.qtpl:131
|
||||||
WriteAboutHTML(qb422016)
|
WriteAboutHTML(qb422016)
|
||||||
//line views/stuff.qtpl:132
|
//line views/stuff.qtpl:131
|
||||||
qs422016 := string(qb422016.B)
|
qs422016 := string(qb422016.B)
|
||||||
//line views/stuff.qtpl:132
|
//line views/stuff.qtpl:131
|
||||||
qt422016.ReleaseByteBuffer(qb422016)
|
qt422016.ReleaseByteBuffer(qb422016)
|
||||||
//line views/stuff.qtpl:132
|
//line views/stuff.qtpl:131
|
||||||
return qs422016
|
return qs422016
|
||||||
//line views/stuff.qtpl:132
|
//line views/stuff.qtpl:131
|
||||||
}
|
}
|
||||||
|
|
||||||
//line views/stuff.qtpl:134
|
//line views/stuff.qtpl:133
|
||||||
func StreamAdminPanelHTML(qw422016 *qt422016.Writer) {
|
func StreamAdminPanelHTML(qw422016 *qt422016.Writer) {
|
||||||
//line views/stuff.qtpl:134
|
//line views/stuff.qtpl:133
|
||||||
qw422016.N().S(`
|
qw422016.N().S(`
|
||||||
<div class="layout">
|
<div class="layout">
|
||||||
<main class="main-width">
|
<main class="main-width">
|
||||||
@ -500,80 +499,80 @@ func StreamAdminPanelHTML(qw422016 *qt422016.Writer) {
|
|||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
`)
|
`)
|
||||||
//line views/stuff.qtpl:169
|
//line views/stuff.qtpl:168
|
||||||
}
|
}
|
||||||
|
|
||||||
//line views/stuff.qtpl:169
|
//line views/stuff.qtpl:168
|
||||||
func WriteAdminPanelHTML(qq422016 qtio422016.Writer) {
|
func WriteAdminPanelHTML(qq422016 qtio422016.Writer) {
|
||||||
//line views/stuff.qtpl:169
|
//line views/stuff.qtpl:168
|
||||||
qw422016 := qt422016.AcquireWriter(qq422016)
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
||||||
//line views/stuff.qtpl:169
|
//line views/stuff.qtpl:168
|
||||||
StreamAdminPanelHTML(qw422016)
|
StreamAdminPanelHTML(qw422016)
|
||||||
//line views/stuff.qtpl:169
|
//line views/stuff.qtpl:168
|
||||||
qt422016.ReleaseWriter(qw422016)
|
qt422016.ReleaseWriter(qw422016)
|
||||||
//line views/stuff.qtpl:169
|
//line views/stuff.qtpl:168
|
||||||
}
|
}
|
||||||
|
|
||||||
//line views/stuff.qtpl:169
|
//line views/stuff.qtpl:168
|
||||||
func AdminPanelHTML() string {
|
func AdminPanelHTML() string {
|
||||||
//line views/stuff.qtpl:169
|
//line views/stuff.qtpl:168
|
||||||
qb422016 := qt422016.AcquireByteBuffer()
|
qb422016 := qt422016.AcquireByteBuffer()
|
||||||
//line views/stuff.qtpl:169
|
//line views/stuff.qtpl:168
|
||||||
WriteAdminPanelHTML(qb422016)
|
WriteAdminPanelHTML(qb422016)
|
||||||
//line views/stuff.qtpl:169
|
//line views/stuff.qtpl:168
|
||||||
qs422016 := string(qb422016.B)
|
qs422016 := string(qb422016.B)
|
||||||
//line views/stuff.qtpl:169
|
//line views/stuff.qtpl:168
|
||||||
qt422016.ReleaseByteBuffer(qb422016)
|
qt422016.ReleaseByteBuffer(qb422016)
|
||||||
//line views/stuff.qtpl:169
|
//line views/stuff.qtpl:168
|
||||||
return qs422016
|
return qs422016
|
||||||
//line views/stuff.qtpl:169
|
//line views/stuff.qtpl:168
|
||||||
}
|
}
|
||||||
|
|
||||||
//line views/stuff.qtpl:171
|
//line views/stuff.qtpl:170
|
||||||
func streamomnipresentScripts(qw422016 *qt422016.Writer) {
|
func streamomnipresentScripts(qw422016 *qt422016.Writer) {
|
||||||
//line views/stuff.qtpl:171
|
//line views/stuff.qtpl:170
|
||||||
qw422016.N().S(`
|
qw422016.N().S(`
|
||||||
`)
|
`)
|
||||||
//line views/stuff.qtpl:172
|
//line views/stuff.qtpl:171
|
||||||
for _, scriptPath := range cfg.OmnipresentScripts {
|
for _, scriptPath := range cfg.OmnipresentScripts {
|
||||||
//line views/stuff.qtpl:172
|
//line views/stuff.qtpl:171
|
||||||
qw422016.N().S(`
|
qw422016.N().S(`
|
||||||
<script src="`)
|
<script src="`)
|
||||||
//line views/stuff.qtpl:173
|
//line views/stuff.qtpl:172
|
||||||
qw422016.E().S(scriptPath)
|
qw422016.E().S(scriptPath)
|
||||||
//line views/stuff.qtpl:173
|
//line views/stuff.qtpl:172
|
||||||
qw422016.N().S(`"></script>
|
qw422016.N().S(`"></script>
|
||||||
`)
|
`)
|
||||||
//line views/stuff.qtpl:174
|
//line views/stuff.qtpl:173
|
||||||
}
|
}
|
||||||
//line views/stuff.qtpl:174
|
//line views/stuff.qtpl:173
|
||||||
qw422016.N().S(`
|
qw422016.N().S(`
|
||||||
`)
|
`)
|
||||||
//line views/stuff.qtpl:175
|
//line views/stuff.qtpl:174
|
||||||
}
|
}
|
||||||
|
|
||||||
//line views/stuff.qtpl:175
|
//line views/stuff.qtpl:174
|
||||||
func writeomnipresentScripts(qq422016 qtio422016.Writer) {
|
func writeomnipresentScripts(qq422016 qtio422016.Writer) {
|
||||||
//line views/stuff.qtpl:175
|
//line views/stuff.qtpl:174
|
||||||
qw422016 := qt422016.AcquireWriter(qq422016)
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
||||||
//line views/stuff.qtpl:175
|
//line views/stuff.qtpl:174
|
||||||
streamomnipresentScripts(qw422016)
|
streamomnipresentScripts(qw422016)
|
||||||
//line views/stuff.qtpl:175
|
//line views/stuff.qtpl:174
|
||||||
qt422016.ReleaseWriter(qw422016)
|
qt422016.ReleaseWriter(qw422016)
|
||||||
//line views/stuff.qtpl:175
|
//line views/stuff.qtpl:174
|
||||||
}
|
}
|
||||||
|
|
||||||
//line views/stuff.qtpl:175
|
//line views/stuff.qtpl:174
|
||||||
func omnipresentScripts() string {
|
func omnipresentScripts() string {
|
||||||
//line views/stuff.qtpl:175
|
//line views/stuff.qtpl:174
|
||||||
qb422016 := qt422016.AcquireByteBuffer()
|
qb422016 := qt422016.AcquireByteBuffer()
|
||||||
//line views/stuff.qtpl:175
|
//line views/stuff.qtpl:174
|
||||||
writeomnipresentScripts(qb422016)
|
writeomnipresentScripts(qb422016)
|
||||||
//line views/stuff.qtpl:175
|
//line views/stuff.qtpl:174
|
||||||
qs422016 := string(qb422016.B)
|
qs422016 := string(qb422016.B)
|
||||||
//line views/stuff.qtpl:175
|
//line views/stuff.qtpl:174
|
||||||
qt422016.ReleaseByteBuffer(qb422016)
|
qt422016.ReleaseByteBuffer(qb422016)
|
||||||
//line views/stuff.qtpl:175
|
//line views/stuff.qtpl:174
|
||||||
return qs422016
|
return qs422016
|
||||||
//line views/stuff.qtpl:175
|
//line views/stuff.qtpl:174
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user