1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-10-30 19:56:16 +00:00
mycorrhiza/assets/assets.qtpl.go

833 lines
28 KiB
Go
Raw Normal View History

// Code generated by qtc from "assets.qtpl". DO NOT EDIT.
2020-10-25 18:02:52 +00:00
// See https://github.com/valyala/quicktemplate for details.
//line assets/assets.qtpl:1
package assets
2020-10-25 18:02:52 +00:00
//line assets/assets.qtpl:1
2020-10-25 18:02:52 +00:00
import (
qtio422016 "io"
qt422016 "github.com/valyala/quicktemplate"
)
//line assets/assets.qtpl:1
2020-10-25 18:02:52 +00:00
var (
_ = qtio422016.Copy
_ = qt422016.AcquireByteBuffer
)
//line assets/assets.qtpl:1
2021-03-09 14:27:14 +00:00
func StreamHelpMessage(qw422016 *qt422016.Writer) {
//line assets/assets.qtpl:1
2021-03-09 14:27:14 +00:00
qw422016.N().S(`Usage of %s:
`)
//line assets/assets.qtpl:3
}
//line assets/assets.qtpl:3
func WriteHelpMessage(qq422016 qtio422016.Writer) {
//line assets/assets.qtpl:3
qw422016 := qt422016.AcquireWriter(qq422016)
//line assets/assets.qtpl:3
StreamHelpMessage(qw422016)
//line assets/assets.qtpl:3
qt422016.ReleaseWriter(qw422016)
//line assets/assets.qtpl:3
}
//line assets/assets.qtpl:3
func HelpMessage() string {
//line assets/assets.qtpl:3
qb422016 := qt422016.AcquireByteBuffer()
//line assets/assets.qtpl:3
WriteHelpMessage(qb422016)
//line assets/assets.qtpl:3
qs422016 := string(qb422016.B)
//line assets/assets.qtpl:3
qt422016.ReleaseByteBuffer(qb422016)
//line assets/assets.qtpl:3
return qs422016
//line assets/assets.qtpl:3
}
//line assets/assets.qtpl:5
func StreamExampleConfig(qw422016 *qt422016.Writer) {
//line assets/assets.qtpl:6
qw422016.N().S(`WikiName = My wiki
NaviTitleIcon = 🐑
[Hyphae]
HomeHypha = home
UserHypha = u
HeaderLinksHypha = header-links
[Network]
HTTPPort = 8080
URL = https://wiki
GeminiCertificatePath = /home/wiki/gemcerts
[Authorization]
UseFixedAuth = true
FixedAuthCredentialsPath = /home/wiki/mycocredentials.json
UseRegistration = true
RegistrationCredentialsPath = /home/wiki/mycoregistration.json
LimitRegistration = 10
2021-03-09 14:27:14 +00:00
`)
//line assets/assets.qtpl:6
qw422016.N().S(`
`)
//line assets/assets.qtpl:7
}
//line assets/assets.qtpl:7
func WriteExampleConfig(qq422016 qtio422016.Writer) {
//line assets/assets.qtpl:7
qw422016 := qt422016.AcquireWriter(qq422016)
//line assets/assets.qtpl:7
StreamExampleConfig(qw422016)
//line assets/assets.qtpl:7
qt422016.ReleaseWriter(qw422016)
//line assets/assets.qtpl:7
}
//line assets/assets.qtpl:7
func ExampleConfig() string {
//line assets/assets.qtpl:7
qb422016 := qt422016.AcquireByteBuffer()
//line assets/assets.qtpl:7
WriteExampleConfig(qb422016)
//line assets/assets.qtpl:7
qs422016 := string(qb422016.B)
//line assets/assets.qtpl:7
qt422016.ReleaseByteBuffer(qb422016)
//line assets/assets.qtpl:7
return qs422016
//line assets/assets.qtpl:7
}
//line assets/assets.qtpl:9
func StreamDefaultCSS(qw422016 *qt422016.Writer) {
//line assets/assets.qtpl:9
2020-10-25 18:02:52 +00:00
qw422016.N().S(`
2020-11-29 11:32:52 +00:00
`)
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:10
qw422016.N().S(`.non-existent-hypha { }
.non-existent-hypha__ways { display: flex; flex-direction: column; width: 100%; margin: 0 0 1rem 0;}
.non-existent-hypha__way { border: 1px #999 solid; border-radius: .25rem; padding: .25rem; }
.non-existent-hypha__title { margin-bottom: 1rem; }
.non-existent-hypha__subtitle { margin: 0; }
2021-04-12 16:40:25 +00:00
.amnt-grid { display: grid; grid-template-columns: 1fr 1fr; }
#upload-binary__input { display: block; margin: .25rem 0 .25rem 0; }
2021-02-24 17:34:42 +00:00
.modal__title { font-size: 2rem; }
.modal__title_small { font-size: 1.5rem; }
.modal__confirmation-msg { margin: 0 0 .5rem 0; }
.modal__action { display: inline-block; font-size: 1rem; padding: .25rem; border-radius: .25rem; }
.modal__submit { border: 1px #999 solid; }
.modal__cancel { border: 1px #999 dashed; text-decoration: none; }
2021-02-22 18:37:23 +00:00
.hypha-list { padding-left: 0; }
.hypha-list__entry { list-style-type: none; }
.hypha-list__link { text-decoration: none; display: inline-block; padding: .25rem; }
.hypha-list__link:hover { text-decoration: underline; }
.hypha-list__amnt-type { font-size: smaller; color: #999; }
/* General element positions, from small to big */
2021-01-25 18:37:21 +00:00
/* Phones and whatnot */
2021-02-19 16:56:31 +00:00
.layout { display: grid; row-gap: 1rem; }
2021-01-25 18:37:21 +00:00
header { width: 100%; margin-bottom: 1rem; }
.header-links__list, .hypha-tabs__flex { margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.header-links__entry, .hypha-tabs__tab { list-style-type: none; }
.header-links__entry { margin-right: .5rem; }
.header-links__entry_user { font-style:italic; }
.header-links__link { display: inline-block; padding: .25rem; text-decoration: none; }
.hypha-tabs { padding: 0; margin: 0; }
.hypha-tabs__tab { margin-right: .5rem; padding: 0; }
.hypha-tabs__link { display: inline-block; padding: .25rem; text-decoration: none; }
.hypha-tabs__selection { display: inline-block; padding: .25rem; font-weight: bold; }
2021-02-19 16:56:31 +00:00
.layout-card li { list-style-type: none; }
.backlinks__list { padding: 0; margin: 0; }
.backlinks__link { text-decoration: none; display: block; padding: .25rem; padding-left: 1.25rem; }
2021-01-25 18:37:21 +00:00
@media screen and (max-width: 800px) {
2021-02-24 17:34:42 +00:00
.amnt-grid { grid-template-columns: 1fr; }
.layout { grid-template-columns: auto; grid-template-rows: auto auto auto; }
2021-01-25 18:37:21 +00:00
.main-width { width: 100%; }
main { padding: 1rem; margin: 0; }
}
@media screen and (min-width: 500px) {
.non-existent-hypha__way { flex: 1; margin-right: .5rem; }
.non-existent-hypha__ways { flex-direction: row; }
.non-existent-hypha__way:last-child { margin-right: 0; }
}
2021-01-25 18:37:21 +00:00
/* No longer a phone but still small screen: draw normal tabs, center main */
@media screen and (min-width: 801px) {
.main-width { padding: 1rem 2rem; width: 800px; margin: 0 auto; }
main { border-radius: .25rem; }
2021-02-19 16:56:31 +00:00
.layout-card { width: 800px; margin: 0 auto; }
2021-01-25 18:37:21 +00:00
.header-links { padding: 0; }
2021-01-23 19:00:58 +00:00
.header-links__entry { margin-right: 1.5rem; }
2021-01-24 07:30:14 +00:00
.header-links__entry_user { margin: 0 2rem 0 auto; }
2021-01-23 19:00:58 +00:00
.header-links__entry:nth-of-type(1),
2021-01-25 18:37:21 +00:00
.hypha-tabs { padding: 0; }
.hypha-tabs__tab { border-radius: .25rem .25rem 0 0; margin-right: 0; }
.hypha-tabs__selection, .hypha-tabs__link { padding: .25rem .5rem; }
.header-links__entry:nth-of-type(1), .hypha-tabs__tab:nth-of-type(1) { margin-left: 2rem; }
2020-10-25 18:02:52 +00:00
}
2021-01-25 18:37:21 +00:00
2021-04-12 16:40:25 +00:00
2021-01-25 18:37:21 +00:00
/* Wide enough to fit two columns ok */
2021-02-19 16:56:31 +00:00
@media screen and (min-width: 1100px) {
.layout { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; margin: 0 1rem; row-gap: 1rem; }
2021-01-25 18:37:21 +00:00
.main-width { margin: 0; }
main { grid-column: 1 / span 1; grid-row: 1 / span 2; }
2021-04-12 16:40:25 +00:00
.relative-hyphae, .edit-toolbar { grid-column: 2 / span 1; grid-row: 1 / span 1; }
2021-02-19 16:56:31 +00:00
.layout-card { width: 100%; }
2021-04-12 16:40:25 +00:00
.edit-toolbar__buttons {display: grid; }
}
@media screen and (min-width: 1150px) {
.edit-toolbar__buttons { grid-template-columns: 1fr 1fr; }
2021-01-25 18:37:21 +00:00
}
2021-02-19 16:56:31 +00:00
@media screen and (min-width: 1250px) {
2021-01-25 18:37:21 +00:00
.layout { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
2021-04-12 16:40:25 +00:00
.layout-card {max-width: 18rem;}
2021-01-25 18:37:21 +00:00
.main-width { margin: 0 auto; }
2021-02-19 16:56:31 +00:00
.backlinks { grid-column: 1 / span 1; margin-right: 0; }
2021-01-25 18:37:21 +00:00
main { grid-column: 2 / span 1; }
2021-04-12 16:40:25 +00:00
.relative-hyphae, .edit-toolbar { grid-column: 3 / span 1; margin-left: 0; }
.edit-toolbar__buttons { grid-template-columns: 1fr; }
2021-02-19 16:56:31 +00:00
.backlinks__title { text-align: right; }
.backlinks__link { text-align: right; padding-right: 1.25rem; padding-left: .25rem; }
2020-10-25 18:02:52 +00:00
}
2021-01-25 18:37:21 +00:00
2021-04-12 16:40:25 +00:00
@media screen and (min-width: 1400px) {
.edit-toolbar__buttons { grid-template-columns: 1fr 1fr; }
}
2020-10-25 18:02:52 +00:00
*, *::before, *::after {box-sizing: border-box;}
2021-01-16 16:57:57 +00:00
html { height:100%; padding:0; }
body {height:100%; margin:0; }
body, input { font-size:16px; font-family: 'PT Sans', 'Liberation Sans', sans-serif;}
2020-10-25 18:02:52 +00:00
main > form {margin-bottom:1rem;}
2021-01-14 11:59:30 +00:00
textarea {font-size:16px; font-family: 'PT Sans', 'Liberation Sans', sans-serif;}
2021-01-26 05:41:57 +00:00
.edit { min-height: 80vh; }
.edit__title { margin-top: 0; }
2021-01-16 16:42:18 +00:00
.edit__preview { border: 2px dashed #ddd; }
2021-01-26 05:41:57 +00:00
.edit-form {height:70vh;}
.edit-form textarea {width:100%;height:95%;}
2021-01-16 16:42:18 +00:00
.edit-form__save { font-weight: bold; }
.edit-toolbar__buttons, .edit-toolbar__ad { margin: .5rem; }
2021-01-26 05:41:57 +00:00
.icon {margin-right: .25rem; vertical-align: bottom; }
2020-10-25 18:02:52 +00:00
2020-10-30 13:25:48 +00:00
main h1:not(.navi-title) {font-size:1.7rem;}
2021-01-15 14:10:08 +00:00
blockquote { margin-left: 0; padding-left: 1rem; }
.wikilink_external::before { display: inline-block; width: 18px; height: 16px; vertical-align: sub; }
/* .wikilink_external { padding-left: 16px; } */
.wikilink_gopher::before { content: url("/assets/icon/gopher"); }
.wikilink_http::before { content: url("/assets/icon/http"); }
.wikilink_https::before { content: url("/assets/icon/http"); }
/* .wikilink_https { background: transparent url("/assets/icon/http") center left no-repeat; } */
.wikilink_gemini::before { content: url("/assets/icon/gemini"); }
.wikilink_mailto::before { content: url("/assets/icon/mailto"); }
2020-12-15 18:59:36 +00:00
2021-01-10 13:01:38 +00:00
article { overflow-wrap: break-word; word-wrap: break-word; word-break: break-word; line-height: 150%; }
2021-02-19 18:12:36 +00:00
main h1, main h2, main h3, main h4, main h5, main h6 { margin: 1.5rem 0 0 0; }
2021-03-02 16:36:57 +00:00
.heading__link { text-decoration: none; display: inline-block; }
.heading__link::after { width: 1rem; content: "§"; color: transparent; }
.heading__link:hover::after, .heading__link:active::after { color: #999; }
2021-01-10 13:01:38 +00:00
article p { margin: .5rem 0; }
article ul, ol { padding-left: 1.5rem; margin: .5rem 0; }
2021-01-15 14:10:08 +00:00
article code { padding: .1rem .3rem; border-radius: .25rem; font-size: 90%; }
article pre.codeblock { padding:.5rem; white-space: pre-wrap; border-radius: .25rem;}
2020-11-24 17:23:45 +00:00
.codeblock code {padding:0; font-size:15px;}
2021-01-15 14:10:08 +00:00
.transclusion { border-radius: .25rem; }
2020-11-02 19:04:36 +00:00
.transclusion__content > *:not(.binary-container) {margin: 0.5rem; }
2021-01-15 14:10:08 +00:00
.transclusion__link {display: block; text-align: right; font-style: italic; margin-top: .5rem; margin-right: .25rem; text-decoration: none;}
2020-11-02 19:04:36 +00:00
.transclusion__link::before {content: "⇐ ";}
2020-10-25 18:02:52 +00:00
2020-12-17 13:33:07 +00:00
/* Derived from https://commons.wikimedia.org/wiki/File:U%2B21D2.svg */
.launchpad__entry { list-style-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' version='1.0' width='25' height='12'%3E%3Cg transform='scale(0.7,0.8) translate(-613.21429,-421)'%3E%3Cpath fill='%23999' d='M 638.06773,429.49751 L 631.01022,436.87675 L 630.1898,436.02774 L 632.416,433.30375 L 613.46876,433.30375 L 613.46876,431.66382 L 633.82089,431.66382 L 635.57789,429.5261 L 633.79229,427.35979 L 613.46876,427.35979 L 613.46876,425.71985 L 632.416,425.71985 L 630.1898,422.99587 L 631.01022,422.08788 L 638.06773,429.49751 z '/%3E%3C/g%3E%3C/svg%3E"); }
2020-12-15 18:59:36 +00:00
2020-10-25 18:02:52 +00:00
.binary-container_with-img img,
.binary-container_with-video video,
.binary-container_with-audio audio {width: 100%}
2021-01-14 11:51:17 +00:00
2021-02-23 09:15:25 +00:00
.subhyphae__title { padding-bottom: .5rem; clear: both; }
2021-01-20 13:53:30 +00:00
.navi-title { padding-bottom: .5rem; margin: .25rem 0; }
2021-01-14 11:51:17 +00:00
.navi-title a {text-decoration:none; }
2021-01-10 11:58:02 +00:00
.navi-title__separator { margin: 0 .25rem; }
2021-01-14 11:51:17 +00:00
.navi-title__colon { margin-right: .5rem; }
2021-01-15 14:10:08 +00:00
.upload-amnt { clear: both; padding: .5rem; border-radius: .25rem; }
2021-01-19 18:08:59 +00:00
.upload-amnt__unattach { display: block; }
2021-01-15 14:10:08 +00:00
aside { clear: both; }
2021-01-14 11:51:17 +00:00
2020-11-29 11:32:52 +00:00
.img-gallery { text-align: center; margin-top: .25rem; margin-bottom: .25rem; }
2021-01-15 14:10:08 +00:00
.img-gallery_many-images { border-radius: .25rem; padding: .5rem; }
2020-11-26 18:41:26 +00:00
.img-gallery img { max-width: 100%; max-height: 50vh; }
2020-11-03 15:41:50 +00:00
figure { margin: 0; }
2020-11-26 18:41:26 +00:00
figcaption { padding-bottom: .5rem; }
2020-10-25 18:02:52 +00:00
#new-name {width:100%;}
2021-01-20 13:53:30 +00:00
2020-11-04 11:00:17 +00:00
2021-02-20 16:50:25 +00:00
.rc-entry { display: grid; list-style-type: none; padding: .25rem; grid-template-columns: 1fr 1fr; border-radius: .25rem; }
2020-11-04 11:00:17 +00:00
.rc-entry__time { font-style: italic; }
.rc-entry__hash { font-style: italic; text-align: right; }
2021-02-20 16:50:25 +00:00
.rc-entry__links, .rc-entry__msg { grid-column: 1 / span 2; }
.rc-entry__author { font-style: italic; }
2020-11-29 11:32:52 +00:00
.prevnext__el { display: inline-block; min-width: 40%; padding: .5rem; margin-bottom: .25rem; text-decoration: none; border-radius: .25rem; }
2020-11-29 11:32:52 +00:00
.prevnext__prev { float: left; }
.prevnext__next { float: right; text-align: right; }
.page-separator { clear: both; }
2020-11-29 17:06:45 +00:00
.history__entries { background-color: #eee; margin: 0; padding: 0; border-radius: .25rem; }
.history__month-anchor { text-decoration: none; color: inherit; }
2020-11-29 17:06:45 +00:00
.history__entry { list-style-type: none; padding: .25rem; }
.history-entry { padding: .25rem; }
.history-entry__time { font-weight: bold; }
.history-entry__author { font-style: italic; }
2021-01-15 14:10:08 +00:00
table { border: #ddd 1px solid; border-radius: .25rem; min-width: 4rem; }
td { padding: .25rem; }
2021-01-01 04:07:56 +00:00
caption { caption-side: top; font-size: small; }
2021-01-15 14:10:08 +00:00
2021-02-19 18:12:36 +00:00
.subhyphae__list, .subhyphae__list ul { display: flex; padding: 0; margin: 0; flex-wrap: wrap; }
.subhyphae__list ul { font-size: 90%; }
2021-02-19 18:12:36 +00:00
.subhyphae__entry { list-style-type: none; border: 1px solid #999; padding: 0; margin: .125rem; border-radius: .25rem; }
.subhyphae__link { display: block; padding: .25rem; text-decoration: none; }
.subhyphae__link:hover { background: #eee; }
.relative-hyphae__list { padding: 0; margin: 0; }
.relative-hyphae__entry { clear: both; }
.relative-hyphae__count { display: inline-block; float: right; }
.relative-hyphae__entry_this { padding: .25rem .5rem; font-weight: bold; }
.relative-hyphae__link { text-decoration: none; display: block; padding: .25rem .5rem; }
2021-02-19 16:56:31 +00:00
::-webkit-file-upload-button,
.btn { line-height: normal; display: inline-block; border: 1px #999 solid; border-radius: .25rem; text-decoration: none; padding: .25rem; font-size: 1rem; margin: 0; }
.btn_weak { border: 1px #999 dashed; }
2021-01-15 14:10:08 +00:00
/* Color stuff */
/* Lighter stuff #eee */
::-webkit-file-upload-button, .btn { background-color: #eee; color: black; }
.btn:visited { color: black; }
.btn_weak { background-color: transparent; }
2021-01-15 14:10:08 +00:00
article code,
article .codeblock,
.transclusion,
.img-gallery_many-images,
.rc-entry,
.prevnext__el,
table { background-color: #eee; }
.hypha-tabs__tab { background-color: #eee; }
.hypha-tabs__tab a { color: black; }
.hypha-tabs__tab_active { border-bottom: 2px white solid; background: white; }
2021-01-20 13:53:30 +00:00
@media screen and (max-width: 800px) {
.hypha-tabs,
.hypha-tabs__tab { background-color: white; }
2021-01-20 13:53:30 +00:00
}
2021-01-25 18:37:21 +00:00
@media screen and (min-width: 801px) {
.hypha-tabs__tab { border: 1px #ddd solid; }
.hypha-tabs__tab_active { border-bottom: 1px white solid; }
}
.layout-card { border-radius: .25rem; background-color: white; }
.layout-card__title { font-size: 1rem; margin: 0; padding: .25rem .5rem; border-radius: .25rem .25rem 0 0; }
.layout-card__title { background-color: #eee; }
2021-01-15 14:10:08 +00:00
/* Other stuff */
2021-01-16 16:57:57 +00:00
html { background-color: #ddd;
2021-04-19 17:29:25 +00:00
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='199' viewBox='0 0 100 199'%3E%3Cg fill='%23bbbbbb' %3E%3Cpath d='M0 199V0h1v1.99L100 199h-1.12L1 4.22V199H0zM100 2h-.12l-1-2H100v2z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
2021-01-16 16:57:57 +00:00
} /* heropatterns.com */
2021-01-23 19:00:58 +00:00
header { background-color: #bbb; }
.header-links__link { color: black; }
.header-links__link:hover { background-color: #eee; }
main { background-color: white; }
2021-01-20 13:53:30 +00:00
2021-01-15 14:10:08 +00:00
blockquote { border-left: 4px black solid; }
.wikilink_new {color:#a55858;}
.transclusion code, .transclusion .codeblock {background-color:#ddd;}
.transclusion__link { color: black; }
.wikilink_new:visited {color:#a55858;}
.navi-title { border-bottom: #eee 1px solid; }
.upload-amnt { border: #eee 1px solid; }
td { border: #ddd 1px solid; }
.relative-hyphae__link:hover, .backlinks__link:hover { background-color: #eee; }
2021-02-19 16:56:31 +00:00
2021-01-15 14:10:08 +00:00
/* Dark theme! */
@media (prefers-color-scheme: dark) {
2021-01-16 16:57:57 +00:00
html { background: #222; color: #ddd; }
2021-01-25 18:37:21 +00:00
main, article, .hypha-tabs__tab, header, .layout-card { background-color: #343434; color: #ddd; }
2021-01-20 13:53:30 +00:00
2021-01-16 15:44:49 +00:00
a, .wikilink_external { color: #f1fa8c; }
a:visited, .wikilink_external:visited { color: #ffb86c; }
.wikilink_new, .wikilink_new:visited { color: #dd4444; }
.subhyphae__link:hover, .relative-hyphae__link:hover, .backlinks__link:hover { background-color: #444; }
2021-01-23 19:00:58 +00:00
.header-links__link, .header-links__link:visited,
2021-01-16 15:44:49 +00:00
.prevnext__el, .prevnext__el:visited { color: #ddd; }
2021-01-23 19:00:58 +00:00
.header-links__link:hover { background-color: #444; }
2021-01-15 14:10:08 +00:00
2021-01-20 13:53:30 +00:00
.hypha-tabs__tab a, .hypha-tabs__tab { color: #ddd; background-color: #232323; border: 0; }
2021-01-25 18:37:21 +00:00
.layout-card__title, .hypha-tabs__tab_active { background-color: #343434; }
2021-01-20 13:53:30 +00:00
blockquote { border-left: 4px #ddd solid; }
2021-01-15 14:10:08 +00:00
.transclusion .transclusion__link { color: #ddd; }
input[type="text"], input[type="password"],
::-webkit-file-upload-button,
.btn,
2021-01-15 14:10:08 +00:00
article code,
article .codeblock,
.transclusion,
.img-gallery_many-images,
.rc-entry,
.history__entry,
.prevnext__el,
.upload-amnt,
textarea,
2021-01-16 15:44:49 +00:00
table { border: 0; background-color: #444444; color: #ddd; }
.btn:visited { color: #ddd;}
.btn { border: #444 solid 1px; border-radius: .25rem; }
.btn_weak { background-color: transparent; }
2021-01-15 14:10:08 +00:00
.transclusion code,
2021-01-16 15:44:49 +00:00
.transclusion .codeblock { background-color: #454545; }
2021-01-16 16:57:57 +00:00
mark { background: rgba(130, 80, 30, 5); color: inherit; }
2021-01-20 13:53:30 +00:00
@media screen and (max-width: 800px) {
.hypha-tabs { background-color: #232323; }
}
2021-01-15 14:10:08 +00:00
}
2021-04-12 16:40:25 +00:00
2020-11-29 11:32:52 +00:00
`)
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:10
2020-11-29 11:32:52 +00:00
qw422016.N().S(`
2020-10-25 18:02:52 +00:00
`)
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:11
2020-10-25 18:02:52 +00:00
}
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:11
2020-10-25 18:02:52 +00:00
func WriteDefaultCSS(qq422016 qtio422016.Writer) {
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:11
2020-10-25 18:02:52 +00:00
qw422016 := qt422016.AcquireWriter(qq422016)
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:11
2020-10-25 18:02:52 +00:00
StreamDefaultCSS(qw422016)
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:11
2020-10-25 18:02:52 +00:00
qt422016.ReleaseWriter(qw422016)
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:11
2020-10-25 18:02:52 +00:00
}
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:11
2020-10-25 18:02:52 +00:00
func DefaultCSS() string {
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:11
2020-10-25 18:02:52 +00:00
qb422016 := qt422016.AcquireByteBuffer()
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:11
2020-10-25 18:02:52 +00:00
WriteDefaultCSS(qb422016)
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:11
2020-10-25 18:02:52 +00:00
qs422016 := string(qb422016.B)
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:11
2020-10-25 18:02:52 +00:00
qt422016.ReleaseByteBuffer(qb422016)
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:11
2020-10-25 18:02:52 +00:00
return qs422016
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:11
2020-10-25 18:02:52 +00:00
}
2020-12-15 18:59:36 +00:00
2021-03-20 13:55:00 +00:00
//line assets/assets.qtpl:13
func StreamToolbarJS(qw422016 *qt422016.Writer) {
//line assets/assets.qtpl:13
2020-12-15 18:59:36 +00:00
qw422016.N().S(`
`)
2021-03-20 13:55:00 +00:00
//line assets/assets.qtpl:14
2021-03-20 14:21:27 +00:00
qw422016.N().S(`const editTextarea = document.getElementsByClassName('edit-form__textarea')[0]
2021-03-20 13:55:00 +00:00
function placeCursor(position, el = editTextarea) {
el.selectionEnd = position
el.selectionStart = el.selectionEnd
}
function getSelectedText(el = editTextarea) {
const [start, end] = [el.selectionStart, el.selectionEnd]
const text = el.value
return text.substring(start, end)
}
function textInserter(text, cursorPosition = null, el = editTextarea) {
return function() {
const [start, end] = [el.selectionStart, el.selectionEnd]
el.setRangeText(text, start, end, 'select')
el.focus()
if (cursorPosition == null) {
placeCursor(end + text.length)
} else {
placeCursor(end + cursorPosition)
}
}
2021-03-20 13:55:00 +00:00
}
function selectionWrapper(cursorPosition, prefix, postfix = null, el = editTextarea) {
return function() {
const [start, end] = [el.selectionStart, el.selectionEnd]
if (postfix == null) {
postfix = prefix
}
2021-04-26 16:29:41 +00:00
let text = getSelectedText(el)
let result = prefix + text + postfix
el.setRangeText(result, start, end, 'select')
el.focus()
placeCursor(end + cursorPosition)
}
}
const wrapBold = selectionWrapper(2, '**'),
wrapItalic = selectionWrapper(2, '//'),
wrapMonospace = selectionWrapper(1, '`)
//line assets/assets.qtpl:14
qw422016.N().S("`")
//line assets/assets.qtpl:14
qw422016.N().S(`'),
wrapHighlighted = selectionWrapper(2, '!!'),
wrapLifted = selectionWrapper(1, '^'),
wrapLowered = selectionWrapper(2, ',,'),
wrapStrikethrough = selectionWrapper(2, '~~'),
wrapLink = selectionWrapper(2, '[[', ']]')
const insertHorizontalBar = textInserter('\n----\n'),
insertImgBlock = textInserter('\nimg {\n \n}\n', 10),
insertTableBlock = textInserter('\ntable {\n \n}\n', 12),
insertRocket = textInserter('\n=> '),
insertXcl = textInserter('\n<= '),
insertHeading2 = textInserter('\n## '),
insertHeading3 = textInserter('\n### '),
insertCodeblock = textInserter('\n`)
//line assets/assets.qtpl:14
qw422016.N().S("`")
//line assets/assets.qtpl:14
qw422016.N().S(``)
//line assets/assets.qtpl:14
qw422016.N().S("`")
//line assets/assets.qtpl:14
qw422016.N().S(``)
//line assets/assets.qtpl:14
qw422016.N().S("`")
//line assets/assets.qtpl:14
qw422016.N().S(`\n\n`)
//line assets/assets.qtpl:14
qw422016.N().S("`")
//line assets/assets.qtpl:14
qw422016.N().S(``)
//line assets/assets.qtpl:14
qw422016.N().S("`")
//line assets/assets.qtpl:14
qw422016.N().S(``)
//line assets/assets.qtpl:14
qw422016.N().S("`")
//line assets/assets.qtpl:14
qw422016.N().S(`\n', 5),
insertBulletedList = textInserter('\n* '),
insertNumberedList = textInserter('\n*. ')
function insertDate() {
let date = new Date().toISOString().split('T')[0]
textInserter(date)()
}
function insertTimeUTC() {
let time = new Date().toISOString().substring(11, 19) + " UTC"
textInserter(time)()
}
function insertUserlink() {
const userlink = document.querySelector('.header-links__entry_user a')
const userHypha = userlink.getAttribute('href').substring(7) // no /hypha/
textInserter('[[' + userHypha + ']]')()
}
2020-12-15 18:59:36 +00:00
`)
2021-03-20 13:55:00 +00:00
//line assets/assets.qtpl:14
2020-12-15 18:59:36 +00:00
qw422016.N().S(`
`)
2021-03-20 13:55:00 +00:00
//line assets/assets.qtpl:15
2020-12-15 18:59:36 +00:00
}
2021-03-20 13:55:00 +00:00
//line assets/assets.qtpl:15
func WriteToolbarJS(qq422016 qtio422016.Writer) {
//line assets/assets.qtpl:15
2020-12-15 18:59:36 +00:00
qw422016 := qt422016.AcquireWriter(qq422016)
2021-03-20 13:55:00 +00:00
//line assets/assets.qtpl:15
StreamToolbarJS(qw422016)
//line assets/assets.qtpl:15
2020-12-15 18:59:36 +00:00
qt422016.ReleaseWriter(qw422016)
2021-03-20 13:55:00 +00:00
//line assets/assets.qtpl:15
2020-12-15 18:59:36 +00:00
}
2021-03-20 13:55:00 +00:00
//line assets/assets.qtpl:15
func ToolbarJS() string {
//line assets/assets.qtpl:15
2020-12-15 18:59:36 +00:00
qb422016 := qt422016.AcquireByteBuffer()
2021-03-20 13:55:00 +00:00
//line assets/assets.qtpl:15
WriteToolbarJS(qb422016)
//line assets/assets.qtpl:15
2020-12-15 18:59:36 +00:00
qs422016 := string(qb422016.B)
2021-03-20 13:55:00 +00:00
//line assets/assets.qtpl:15
2020-12-15 18:59:36 +00:00
qt422016.ReleaseByteBuffer(qb422016)
2021-03-20 13:55:00 +00:00
//line assets/assets.qtpl:15
2020-12-15 18:59:36 +00:00
return qs422016
2021-03-20 13:55:00 +00:00
//line assets/assets.qtpl:15
2020-12-15 18:59:36 +00:00
}
2021-03-20 13:55:00 +00:00
// Next three are from https://remixicon.com/
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:18
2021-03-20 13:55:00 +00:00
func StreamIconHTTP(qw422016 *qt422016.Writer) {
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:18
2020-12-15 18:59:36 +00:00
qw422016.N().S(`
`)
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:19
2021-03-20 13:55:00 +00:00
qw422016.N().S(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16"><path fill="#999" d="M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm-2.29-2.333A17.9 17.9 0 0 1 8.027 13H4.062a8.008 8.008 0 0 0 5.648 6.667zM10.03 13c.151 2.439.848 4.73 1.97 6.752A15.905 15.905 0 0 0 13.97 13h-3.94zm9.908 0h-3.965a17.9 17.9 0 0 1-1.683 6.667A8.008 8.008 0 0 0 19.938 13zM4.062 11h3.965A17.9 17.9 0 0 1 9.71 4.333 8.008 8.008 0 0 0 4.062 11zm5.969 0h3.938A15.905 15.905 0 0 0 12 4.248 15.905 15.905 0 0 0 10.03 11zm4.259-6.667A17.9 17.9 0 0 1 15.973 11h3.965a8.008 8.008 0 0 0-5.648-6.667z"/></svg>
2020-12-15 18:59:36 +00:00
`)
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:19
2020-12-15 18:59:36 +00:00
qw422016.N().S(`
`)
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:20
2020-12-15 18:59:36 +00:00
}
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:20
2021-03-20 13:55:00 +00:00
func WriteIconHTTP(qq422016 qtio422016.Writer) {
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:20
2020-12-15 18:59:36 +00:00
qw422016 := qt422016.AcquireWriter(qq422016)
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:20
2021-03-20 13:55:00 +00:00
StreamIconHTTP(qw422016)
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:20
2020-12-15 18:59:36 +00:00
qt422016.ReleaseWriter(qw422016)
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:20
2020-12-15 18:59:36 +00:00
}
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:20
2021-03-20 13:55:00 +00:00
func IconHTTP() string {
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:20
2020-12-15 18:59:36 +00:00
qb422016 := qt422016.AcquireByteBuffer()
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:20
2021-03-20 13:55:00 +00:00
WriteIconHTTP(qb422016)
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:20
2020-12-15 18:59:36 +00:00
qs422016 := string(qb422016.B)
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:20
2020-12-15 18:59:36 +00:00
qt422016.ReleaseByteBuffer(qb422016)
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:20
2020-12-15 18:59:36 +00:00
return qs422016
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:20
2020-12-15 18:59:36 +00:00
}
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:22
2021-03-20 13:55:00 +00:00
func StreamIconGemini(qw422016 *qt422016.Writer) {
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:22
2020-12-15 18:59:36 +00:00
qw422016.N().S(`
`)
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:23
2021-03-20 13:55:00 +00:00
qw422016.N().S(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16"><path fill="#999" d="M15.502 20A6.523 6.523 0 0 1 12 23.502 6.523 6.523 0 0 1 8.498 20h2.26c.326.489.747.912 1.242 1.243.495-.33.916-.754 1.243-1.243h2.259zM18 14.805l2 2.268V19H4v-1.927l2-2.268V9c0-3.483 2.504-6.447 6-7.545C15.496 2.553 18 5.517 18 9v5.805zM17.27 17L16 15.56V9c0-2.318-1.57-4.43-4-5.42C9.57 4.57 8 6.681 8 9v6.56L6.73 17h10.54zM12 11a2 2 0 1 1 0-4 2 2 0 0 1 0 4z"/></svg>
2020-12-15 18:59:36 +00:00
`)
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:23
2020-12-15 18:59:36 +00:00
qw422016.N().S(`
`)
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:24
2020-12-15 18:59:36 +00:00
}
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:24
2021-03-20 13:55:00 +00:00
func WriteIconGemini(qq422016 qtio422016.Writer) {
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:24
2020-12-15 18:59:36 +00:00
qw422016 := qt422016.AcquireWriter(qq422016)
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:24
2021-03-20 13:55:00 +00:00
StreamIconGemini(qw422016)
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:24
2020-12-15 18:59:36 +00:00
qt422016.ReleaseWriter(qw422016)
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:24
2020-12-15 18:59:36 +00:00
}
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:24
2021-03-20 13:55:00 +00:00
func IconGemini() string {
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:24
2020-12-15 18:59:36 +00:00
qb422016 := qt422016.AcquireByteBuffer()
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:24
2021-03-20 13:55:00 +00:00
WriteIconGemini(qb422016)
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:24
2020-12-15 18:59:36 +00:00
qs422016 := string(qb422016.B)
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:24
2020-12-15 18:59:36 +00:00
qt422016.ReleaseByteBuffer(qb422016)
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:24
2020-12-15 18:59:36 +00:00
return qs422016
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:24
2020-12-15 18:59:36 +00:00
}
2021-03-20 13:55:00 +00:00
//line assets/assets.qtpl:26
func StreamIconMailto(qw422016 *qt422016.Writer) {
//line assets/assets.qtpl:26
qw422016.N().S(`
`)
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:27
2021-03-20 13:55:00 +00:00
qw422016.N().S(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16"><path fill="#999" d="M3 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm17 4.238l-7.928 7.1L4 7.216V19h16V7.238zM4.511 5l7.55 6.662L19.502 5H4.511z"/></svg>
`)
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:27
2020-12-15 18:59:36 +00:00
qw422016.N().S(`
`)
2021-03-09 14:27:14 +00:00
//line assets/assets.qtpl:28
2021-03-20 13:55:00 +00:00
}
//line assets/assets.qtpl:28
func WriteIconMailto(qq422016 qtio422016.Writer) {
//line assets/assets.qtpl:28
qw422016 := qt422016.AcquireWriter(qq422016)
//line assets/assets.qtpl:28
StreamIconMailto(qw422016)
//line assets/assets.qtpl:28
qt422016.ReleaseWriter(qw422016)
//line assets/assets.qtpl:28
}
//line assets/assets.qtpl:28
func IconMailto() string {
//line assets/assets.qtpl:28
qb422016 := qt422016.AcquireByteBuffer()
//line assets/assets.qtpl:28
WriteIconMailto(qb422016)
//line assets/assets.qtpl:28
qs422016 := string(qb422016.B)
//line assets/assets.qtpl:28
qt422016.ReleaseByteBuffer(qb422016)
//line assets/assets.qtpl:28
return qs422016
//line assets/assets.qtpl:28
}
// This is a modified version of https://www.svgrepo.com/svg/232085/rat
//line assets/assets.qtpl:31
func StreamIconGopher(qw422016 *qt422016.Writer) {
//line assets/assets.qtpl:31
qw422016.N().S(`
`)
//line assets/assets.qtpl:32
qw422016.N().S(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="16" height="16">
<path fill="#999" d="M447.238,204.944v-70.459c0-8.836-7.164-16-16-16c-34.051,0-64.414,21.118-75.079,55.286
2020-12-15 18:59:36 +00:00
C226.094,41.594,0,133.882,0,319.435c0,0.071,0.01,0.14,0.011,0.21c0.116,44.591,36.423,80.833,81.04,80.833h171.203
c8.836,0,16-7.164,16-16c0-8.836-7.164-16-16-16H81.051c-21.441,0-39.7-13.836-46.351-33.044H496c8.836,0,16-7.164,16-16
C512,271.82,486.82,228.692,447.238,204.944z M415.238,153.216v37.805c-10.318-2.946-19.556-4.305-29.342-4.937
C390.355,168.611,402.006,157.881,415.238,153.216z M295.484,303.435L295.484,303.435c-7.562-41.495-43.948-73.062-87.593-73.062
c-8.836,0-16,7.164-16,16c0,8.836,7.164,16,16,16c25.909,0,47.826,17.364,54.76,41.062H32.722
c14.415-159.15,218.064-217.856,315.136-90.512c3.545,4.649,9.345,6.995,15.124,6.118
c55.425-8.382,107.014,29.269,115.759,84.394H295.484z"/>
<circle fill="#999" cx="415.238" cy="260.05" r="21.166"/>
2020-12-15 18:59:36 +00:00
</svg>
`)
2021-03-20 13:55:00 +00:00
//line assets/assets.qtpl:32
2020-12-15 18:59:36 +00:00
qw422016.N().S(`
`)
2021-03-20 13:55:00 +00:00
//line assets/assets.qtpl:33
2020-12-15 18:59:36 +00:00
}
2021-03-20 13:55:00 +00:00
//line assets/assets.qtpl:33
2020-12-15 18:59:36 +00:00
func WriteIconGopher(qq422016 qtio422016.Writer) {
2021-03-20 13:55:00 +00:00
//line assets/assets.qtpl:33
2020-12-15 18:59:36 +00:00
qw422016 := qt422016.AcquireWriter(qq422016)
2021-03-20 13:55:00 +00:00
//line assets/assets.qtpl:33
2020-12-15 18:59:36 +00:00
StreamIconGopher(qw422016)
2021-03-20 13:55:00 +00:00
//line assets/assets.qtpl:33
2020-12-15 18:59:36 +00:00
qt422016.ReleaseWriter(qw422016)
2021-03-20 13:55:00 +00:00
//line assets/assets.qtpl:33
2020-12-15 18:59:36 +00:00
}
2021-03-20 13:55:00 +00:00
//line assets/assets.qtpl:33
2020-12-15 18:59:36 +00:00
func IconGopher() string {
2021-03-20 13:55:00 +00:00
//line assets/assets.qtpl:33
2020-12-15 18:59:36 +00:00
qb422016 := qt422016.AcquireByteBuffer()
2021-03-20 13:55:00 +00:00
//line assets/assets.qtpl:33
2020-12-15 18:59:36 +00:00
WriteIconGopher(qb422016)
2021-03-20 13:55:00 +00:00
//line assets/assets.qtpl:33
2020-12-15 18:59:36 +00:00
qs422016 := string(qb422016.B)
2021-03-20 13:55:00 +00:00
//line assets/assets.qtpl:33
2020-12-15 18:59:36 +00:00
qt422016.ReleaseByteBuffer(qb422016)
2021-03-20 13:55:00 +00:00
//line assets/assets.qtpl:33
2020-12-15 18:59:36 +00:00
return qs422016
2021-03-20 13:55:00 +00:00
//line assets/assets.qtpl:33
2020-12-15 18:59:36 +00:00
}
2021-04-04 17:22:14 +00:00
// https://upload.wikimedia.org/wikipedia/commons/4/46/Generic_Feed-icon.svg
//line assets/assets.qtpl:36
func StreamIconFeed(qw422016 *qt422016.Writer) {
//line assets/assets.qtpl:36
qw422016.N().S(`
`)
//line assets/assets.qtpl:37
qw422016.N().S(`<svg xmlns="http://www.w3.org/2000/svg"
id="RSSicon"
viewBox="0 0 8 8" width="256" height="256">
<title>RSS feed icon</title>
<style type="text/css">
.button {stroke: none; fill: orange;}
.symbol {stroke: none; fill: white;}
</style>
<rect class="button" width="8" height="8" rx="1.5" />
<circle class="symbol" cx="2" cy="6" r="1" />
<path class="symbol" d="m 1,4 a 3,3 0 0 1 3,3 h 1 a 4,4 0 0 0 -4,-4 z" />
<path class="symbol" d="m 1,2 a 5,5 0 0 1 5,5 h 1 a 6,6 0 0 0 -6,-6 z" />
</svg>
`)
//line assets/assets.qtpl:37
qw422016.N().S(`
`)
//line assets/assets.qtpl:38
}
//line assets/assets.qtpl:38
func WriteIconFeed(qq422016 qtio422016.Writer) {
//line assets/assets.qtpl:38
qw422016 := qt422016.AcquireWriter(qq422016)
//line assets/assets.qtpl:38
StreamIconFeed(qw422016)
//line assets/assets.qtpl:38
qt422016.ReleaseWriter(qw422016)
//line assets/assets.qtpl:38
}
//line assets/assets.qtpl:38
func IconFeed() string {
//line assets/assets.qtpl:38
qb422016 := qt422016.AcquireByteBuffer()
//line assets/assets.qtpl:38
WriteIconFeed(qb422016)
//line assets/assets.qtpl:38
qs422016 := string(qb422016.B)
//line assets/assets.qtpl:38
qt422016.ReleaseByteBuffer(qb422016)
//line assets/assets.qtpl:38
return qs422016
//line assets/assets.qtpl:38
}