├── docs ├── .gitignore ├── themes │ └── hugo-book │ │ ├── layouts │ │ ├── partials │ │ │ └── docs │ │ │ │ ├── inject │ │ │ │ ├── body.html │ │ │ │ ├── footer.html │ │ │ │ ├── head.html │ │ │ │ ├── menu-after.html │ │ │ │ ├── menu-before.html │ │ │ │ ├── toc-after.html │ │ │ │ ├── toc-before.html │ │ │ │ ├── content-after.html │ │ │ │ └── content-before.html │ │ │ │ ├── html-head-title.html │ │ │ │ ├── toc.html │ │ │ │ ├── comments.html │ │ │ │ ├── date.html │ │ │ │ ├── menu-bundle.html │ │ │ │ ├── brand.html │ │ │ │ ├── search.html │ │ │ │ ├── header.html │ │ │ │ ├── title.html │ │ │ │ ├── taxonomy.html │ │ │ │ ├── post-meta.html │ │ │ │ └── menu-hugo.html │ │ ├── _default │ │ │ ├── list.html │ │ │ ├── single.html │ │ │ └── _markup │ │ │ │ └── render-heading.html │ │ ├── shortcodes │ │ │ ├── hint.html │ │ │ ├── columns.html │ │ │ ├── section.html │ │ │ ├── details.html │ │ │ ├── tab.html │ │ │ ├── button.html │ │ │ ├── mermaid.html │ │ │ ├── expand.html │ │ │ ├── tabs.html │ │ │ └── katex.html │ │ ├── posts │ │ │ ├── single.html │ │ │ └── list.html │ │ └── taxonomy │ │ │ ├── list.html │ │ │ └── taxonomy.html │ │ ├── go.mod │ │ ├── assets │ │ ├── themes │ │ │ ├── _dark.scss │ │ │ ├── _light.scss │ │ │ └── _auto.scss │ │ ├── _custom.scss │ │ ├── _variables.scss │ │ ├── mermaid.json │ │ ├── sw-register.js │ │ ├── menu-reset.js │ │ ├── _print.scss │ │ ├── book.scss │ │ ├── manifest.json │ │ ├── plugins │ │ │ └── _scrollbars.scss │ │ ├── clipboard.js │ │ └── search-data.json │ │ ├── .gitignore │ │ ├── exampleSite │ │ ├── assets │ │ │ ├── _variables.scss │ │ │ └── _custom.scss │ │ ├── content.en │ │ │ ├── docs │ │ │ │ ├── shortcodes │ │ │ │ │ ├── _index.md │ │ │ │ │ ├── section │ │ │ │ │ │ ├── _index.md │ │ │ │ │ │ ├── first-page.md │ │ │ │ │ │ └── second-page.md │ │ │ │ │ ├── buttons.md │ │ │ │ │ └── details.md │ │ │ │ └── example │ │ │ │ │ └── collapsed │ │ │ │ │ ├── _index.md │ │ │ │ │ └── 3rd-level │ │ │ │ │ └── 4th-level.md │ │ │ └── posts │ │ │ │ └── _index.md │ │ └── resources │ │ │ └── _gen │ │ │ └── assets │ │ │ └── scss │ │ │ └── book.scss_e129fe35b8d0a70789c8a08429469073.json │ │ ├── images │ │ ├── tn.png │ │ └── screenshot.png │ │ ├── static │ │ ├── favicon.png │ │ ├── fonts │ │ │ ├── roboto-v27-latin-700.woff │ │ │ ├── roboto-v27-latin-700.woff2 │ │ │ ├── roboto-v27-latin-regular.woff │ │ │ ├── roboto-v27-latin-regular.woff2 │ │ │ ├── roboto-mono-v13-latin-regular.woff │ │ │ └── roboto-mono-v13-latin-regular.woff2 │ │ ├── katex │ │ │ └── fonts │ │ │ │ ├── KaTeX_Main-Bold.ttf │ │ │ │ ├── KaTeX_Main-Bold.woff │ │ │ │ ├── KaTeX_AMS-Regular.ttf │ │ │ │ ├── KaTeX_AMS-Regular.woff │ │ │ │ ├── KaTeX_AMS-Regular.woff2 │ │ │ │ ├── KaTeX_Fraktur-Bold.ttf │ │ │ │ ├── KaTeX_Fraktur-Bold.woff │ │ │ │ ├── KaTeX_Main-Bold.woff2 │ │ │ │ ├── KaTeX_Main-Italic.ttf │ │ │ │ ├── KaTeX_Main-Italic.woff │ │ │ │ ├── KaTeX_Main-Italic.woff2 │ │ │ │ ├── KaTeX_Main-Regular.ttf │ │ │ │ ├── KaTeX_Main-Regular.woff │ │ │ │ ├── KaTeX_Math-Italic.ttf │ │ │ │ ├── KaTeX_Math-Italic.woff │ │ │ │ ├── KaTeX_Math-Italic.woff2 │ │ │ │ ├── KaTeX_Size1-Regular.ttf │ │ │ │ ├── KaTeX_Size2-Regular.ttf │ │ │ │ ├── KaTeX_Size3-Regular.ttf │ │ │ │ ├── KaTeX_Size4-Regular.ttf │ │ │ │ ├── KaTeX_Fraktur-Bold.woff2 │ │ │ │ ├── KaTeX_Fraktur-Regular.ttf │ │ │ │ ├── KaTeX_Main-BoldItalic.ttf │ │ │ │ ├── KaTeX_Main-Regular.woff2 │ │ │ │ ├── KaTeX_Math-BoldItalic.ttf │ │ │ │ ├── KaTeX_SansSerif-Bold.ttf │ │ │ │ ├── KaTeX_SansSerif-Bold.woff │ │ │ │ ├── KaTeX_Script-Regular.ttf │ │ │ │ ├── KaTeX_Script-Regular.woff │ │ │ │ ├── KaTeX_Size1-Regular.woff │ │ │ │ ├── KaTeX_Size1-Regular.woff2 │ │ │ │ ├── KaTeX_Size2-Regular.woff │ │ │ │ ├── KaTeX_Size2-Regular.woff2 │ │ │ │ ├── KaTeX_Size3-Regular.woff │ │ │ │ ├── KaTeX_Size3-Regular.woff2 │ │ │ │ ├── KaTeX_Size4-Regular.woff │ │ │ │ ├── KaTeX_Size4-Regular.woff2 │ │ │ │ ├── KaTeX_Caligraphic-Bold.ttf │ │ │ │ ├── KaTeX_Caligraphic-Bold.woff │ │ │ │ ├── KaTeX_Caligraphic-Bold.woff2 │ │ │ │ ├── KaTeX_Fraktur-Regular.woff │ │ │ │ ├── KaTeX_Fraktur-Regular.woff2 │ │ │ │ ├── KaTeX_Main-BoldItalic.woff │ │ │ │ ├── KaTeX_Main-BoldItalic.woff2 │ │ │ │ ├── KaTeX_Math-BoldItalic.woff │ │ │ │ ├── KaTeX_Math-BoldItalic.woff2 │ │ │ │ ├── KaTeX_SansSerif-Bold.woff2 │ │ │ │ ├── KaTeX_SansSerif-Italic.ttf │ │ │ │ ├── KaTeX_SansSerif-Italic.woff │ │ │ │ ├── KaTeX_SansSerif-Italic.woff2 │ │ │ │ ├── KaTeX_SansSerif-Regular.ttf │ │ │ │ ├── KaTeX_SansSerif-Regular.woff │ │ │ │ ├── KaTeX_Script-Regular.woff2 │ │ │ │ ├── KaTeX_Typewriter-Regular.ttf │ │ │ │ ├── KaTeX_Caligraphic-Regular.ttf │ │ │ │ ├── KaTeX_Caligraphic-Regular.woff │ │ │ │ ├── KaTeX_SansSerif-Regular.woff2 │ │ │ │ ├── KaTeX_Typewriter-Regular.woff │ │ │ │ ├── KaTeX_Typewriter-Regular.woff2 │ │ │ │ └── KaTeX_Caligraphic-Regular.woff2 │ │ ├── favicon.svg │ │ └── svg │ │ │ ├── menu.svg │ │ │ ├── toc.svg │ │ │ ├── calendar.svg │ │ │ ├── edit.svg │ │ │ └── translate.svg │ │ ├── archetypes │ │ ├── posts.md │ │ └── docs.md │ │ ├── i18n │ │ ├── am.yaml │ │ ├── en.yaml │ │ ├── nb.yaml │ │ ├── pt.yaml │ │ ├── tr.yaml │ │ ├── de.yaml │ │ ├── es.yaml │ │ ├── it.yaml │ │ ├── sv.yaml │ │ ├── cs.yaml │ │ ├── fr.yaml │ │ ├── bn.yaml │ │ ├── uk.yaml │ │ ├── ru.yaml │ │ ├── zh.yaml │ │ ├── ja.yaml │ │ ├── zh-TW.yaml │ │ ├── ko.yaml │ │ ├── cn.yaml │ │ ├── jp.yaml │ │ └── fa.yaml │ │ └── theme.toml ├── content.en │ ├── menu │ │ └── index.md │ └── docs │ │ ├── tutorials │ │ ├── _index.md │ │ ├── app-start.md │ │ ├── servant-register.md │ │ └── interface-define.md │ │ ├── recommends │ │ └── _index.md │ │ └── quick-start │ │ └── projects-use-go-mir.md ├── content.zh │ ├── menu │ │ └── index.md │ └── docs │ │ ├── tutorials │ │ ├── _index.md │ │ ├── app-start.md │ │ └── servant-register.md │ │ ├── recommends │ │ └── _index.md │ │ └── quck-start │ │ └── projects-use-go-mir.md ├── assets │ ├── _variables.scss │ └── _custom.scss ├── public │ ├── favicon.png │ ├── images │ │ ├── mir-arc.png │ │ ├── mir-logo.png │ │ └── logo-origin.jpeg │ ├── fonts │ │ ├── roboto-v27-latin-700.woff │ │ ├── roboto-v27-latin-700.woff2 │ │ ├── roboto-v27-latin-regular.woff │ │ ├── roboto-v27-latin-regular.woff2 │ │ ├── roboto-mono-v13-latin-regular.woff │ │ └── roboto-mono-v13-latin-regular.woff2 │ ├── katex │ │ └── fonts │ │ │ ├── KaTeX_Main-Bold.ttf │ │ │ ├── KaTeX_Main-Bold.woff │ │ │ ├── KaTeX_AMS-Regular.ttf │ │ │ ├── KaTeX_AMS-Regular.woff │ │ │ ├── KaTeX_Fraktur-Bold.ttf │ │ │ ├── KaTeX_Main-Bold.woff2 │ │ │ ├── KaTeX_Main-Italic.ttf │ │ │ ├── KaTeX_Main-Italic.woff │ │ │ ├── KaTeX_Main-Regular.ttf │ │ │ ├── KaTeX_Math-Italic.ttf │ │ │ ├── KaTeX_Math-Italic.woff │ │ │ ├── KaTeX_AMS-Regular.woff2 │ │ │ ├── KaTeX_Fraktur-Bold.woff │ │ │ ├── KaTeX_Fraktur-Bold.woff2 │ │ │ ├── KaTeX_Fraktur-Regular.ttf │ │ │ ├── KaTeX_Main-BoldItalic.ttf │ │ │ ├── KaTeX_Main-Italic.woff2 │ │ │ ├── KaTeX_Main-Regular.woff │ │ │ ├── KaTeX_Main-Regular.woff2 │ │ │ ├── KaTeX_Math-BoldItalic.ttf │ │ │ ├── KaTeX_Math-Italic.woff2 │ │ │ ├── KaTeX_SansSerif-Bold.ttf │ │ │ ├── KaTeX_SansSerif-Bold.woff │ │ │ ├── KaTeX_Script-Regular.ttf │ │ │ ├── KaTeX_Script-Regular.woff │ │ │ ├── KaTeX_Size1-Regular.ttf │ │ │ ├── KaTeX_Size1-Regular.woff │ │ │ ├── KaTeX_Size1-Regular.woff2 │ │ │ ├── KaTeX_Size2-Regular.ttf │ │ │ ├── KaTeX_Size2-Regular.woff │ │ │ ├── KaTeX_Size2-Regular.woff2 │ │ │ ├── KaTeX_Size3-Regular.ttf │ │ │ ├── KaTeX_Size3-Regular.woff │ │ │ ├── KaTeX_Size3-Regular.woff2 │ │ │ ├── KaTeX_Size4-Regular.ttf │ │ │ ├── KaTeX_Size4-Regular.woff │ │ │ ├── KaTeX_Size4-Regular.woff2 │ │ │ ├── KaTeX_Caligraphic-Bold.ttf │ │ │ ├── KaTeX_Caligraphic-Bold.woff │ │ │ ├── KaTeX_Fraktur-Regular.woff │ │ │ ├── KaTeX_Fraktur-Regular.woff2 │ │ │ ├── KaTeX_Main-BoldItalic.woff │ │ │ ├── KaTeX_Main-BoldItalic.woff2 │ │ │ ├── KaTeX_Math-BoldItalic.woff │ │ │ ├── KaTeX_Math-BoldItalic.woff2 │ │ │ ├── KaTeX_SansSerif-Bold.woff2 │ │ │ ├── KaTeX_SansSerif-Italic.ttf │ │ │ ├── KaTeX_SansSerif-Italic.woff │ │ │ ├── KaTeX_SansSerif-Regular.ttf │ │ │ ├── KaTeX_Script-Regular.woff2 │ │ │ ├── KaTeX_Caligraphic-Bold.woff2 │ │ │ ├── KaTeX_Caligraphic-Regular.ttf │ │ │ ├── KaTeX_Caligraphic-Regular.woff │ │ │ ├── KaTeX_SansSerif-Italic.woff2 │ │ │ ├── KaTeX_SansSerif-Regular.woff │ │ │ ├── KaTeX_SansSerif-Regular.woff2 │ │ │ ├── KaTeX_Typewriter-Regular.ttf │ │ │ ├── KaTeX_Typewriter-Regular.woff │ │ │ ├── KaTeX_Typewriter-Regular.woff2 │ │ │ └── KaTeX_Caligraphic-Regular.woff2 │ ├── sw.min.cc53640256a4c5a819e5408f192a460fbdab1162f59e2640475ed9eaeba2a25b.js │ ├── favicon.svg │ ├── svg │ │ ├── menu.svg │ │ ├── toc.svg │ │ ├── calendar.svg │ │ ├── edit.svg │ │ └── translate.svg │ ├── zh │ │ └── index.html │ ├── tags │ │ ├── page │ │ │ └── 1 │ │ │ │ └── index.html │ │ └── index.xml │ ├── en │ │ ├── tags │ │ │ ├── page │ │ │ │ └── 1 │ │ │ │ │ └── index.html │ │ │ └── index.xml │ │ ├── categories │ │ │ ├── page │ │ │ │ └── 1 │ │ │ │ │ └── index.html │ │ │ └── index.xml │ │ └── docs │ │ │ ├── index.xml │ │ │ └── recommends │ │ │ └── index.xml │ ├── categories │ │ ├── page │ │ │ └── 1 │ │ │ │ └── index.html │ │ └── index.xml │ ├── manifest.json │ ├── sitemap.xml │ └── docs │ │ ├── index.xml │ │ └── recommends │ │ └── index.xml ├── static │ ├── favicon.png │ └── images │ │ ├── mir-arc.png │ │ ├── mir-logo.png │ │ └── logo-origin.jpeg ├── archetypes │ └── default.md └── resources │ └── _gen │ └── assets │ └── scss │ └── book.scss_e129fe35b8d0a70789c8a08429469073.json ├── internal ├── generator │ ├── templates │ │ └── README.md │ └── generator_test.go ├── naming │ └── naming.go └── internal_test.go ├── examples ├── sail-example │ ├── scripts │ │ ├── migration │ │ │ ├── postgres │ │ │ │ ├── 0007_content_type_alter.down.sql │ │ │ │ ├── 0005_topic_follow.down.sql │ │ │ │ ├── 0009_user_following.down.sql │ │ │ │ ├── 0004_share_count.down.sql │ │ │ │ ├── 0011_comment_essence.down.sql │ │ │ │ ├── 0013_user_relation_view.down.sql │ │ │ │ ├── 0002_post_visibility.down.sql │ │ │ │ ├── 0004_share_count.up.sql │ │ │ │ ├── 0011_comment_essence.up.sql │ │ │ │ ├── 0003_feature_contact.down.sql │ │ │ │ ├── 0002_post_visibility.up.sql │ │ │ │ ├── 0014_topic_user_pin.down.sql │ │ │ │ ├── 0008_create_view_post_filter.down.sql │ │ │ │ ├── 0012_rank_metrics.down.sql │ │ │ │ ├── 0014_topic_user_pin.up.sql │ │ │ │ ├── 0013_user_relation_view.up.sql │ │ │ │ ├── 0006_comment_thumbs.down.sql │ │ │ │ ├── 0010_home_timeline.down.sql │ │ │ │ ├── 0009_user_following.up.sql │ │ │ │ ├── 0007_content_type_alter.up.sql │ │ │ │ ├── 0001_initialize_schema.down.sql │ │ │ │ └── 0005_topic_follow.up.sql │ │ │ ├── sqlite3 │ │ │ │ ├── 0008_content_type_alter.down.sql │ │ │ │ ├── 0006_topic_follow.down.sql │ │ │ │ ├── 0010_user_following.down.sql │ │ │ │ ├── 0014_user_relation_view.down.sql │ │ │ │ ├── 0002_post_visibility.down.sql │ │ │ │ ├── 0005_share_count.down.sql │ │ │ │ ├── 0012_comment_essence.down.sql │ │ │ │ ├── 0005_share_count.up.sql │ │ │ │ ├── 0012_comment_essence.up.sql │ │ │ │ ├── 0015_topic_user_pin.down.sql │ │ │ │ ├── 0009_create_view_post_filter.down.sql │ │ │ │ ├── 0013_rank_metrics.down.sql │ │ │ │ ├── 0003_feature_contact.down.sql │ │ │ │ ├── 0002_post_visibility.up.sql │ │ │ │ ├── 0015_topic_user_pin.up.sql │ │ │ │ ├── 0014_user_relation_view.up.sql │ │ │ │ ├── 0007_comment_thumbs.down.sql │ │ │ │ ├── 0011_home_timeline.down.sql │ │ │ │ ├── 0010_user_following.up.sql │ │ │ │ ├── 0001_initialize_schema.down.sql │ │ │ │ └── 0006_topic_follow.up.sql │ │ │ ├── mysql │ │ │ │ ├── 0006_topic_follow.down.sql │ │ │ │ ├── 0010_user_following.down.sql │ │ │ │ ├── 0005_share_count.down.sql │ │ │ │ ├── 0014_user_relation_view.down.sql │ │ │ │ ├── 0002_post_visibility.down.sql │ │ │ │ ├── 0012_comment_essence.down.sql │ │ │ │ ├── 0005_share_count.up.sql │ │ │ │ ├── 0003_feature_contact.down.sql │ │ │ │ ├── 0009_create_view_post_filter.down.sql │ │ │ │ ├── 0012_comment_essence.up.sql │ │ │ │ ├── 0015_topic_user_pin.down.sql │ │ │ │ ├── 0013_rank_metrics.down.sql │ │ │ │ ├── 0002_post_visibility.up.sql │ │ │ │ ├── 0015_topic_user_pin.up.sql │ │ │ │ ├── 0014_user_relation_view.up.sql │ │ │ │ ├── 0007_comment_thumbs.down.sql │ │ │ │ ├── 0011_home_timeline.down.sql │ │ │ │ ├── 0008_content_type_alter.down.sql │ │ │ │ ├── 0008_content_type_alter.up.sql │ │ │ │ ├── 0010_user_following.up.sql │ │ │ │ └── 0001_initialize_schema.down.sql │ │ │ └── embed.go │ │ ├── README │ │ └── docker │ │ │ ├── Dockerfile.backend-runner │ │ │ ├── Dockerfile.backend-builder │ │ │ └── README.md │ ├── docs │ │ ├── README.md │ │ └── openapi │ │ │ ├── embed.go │ │ │ └── index.html │ ├── mirc │ │ ├── bot │ │ │ └── README.md │ │ └── gen.go │ ├── README.md │ ├── internal │ │ ├── conf │ │ │ └── mir.go │ │ ├── internal.go │ │ ├── dao │ │ │ └── dao.go │ │ ├── core │ │ │ └── core.go │ │ └── servants │ │ │ ├── docs │ │ │ ├── docs.go │ │ │ └── docs_embed.go │ │ │ ├── bot │ │ │ ├── bot.go │ │ │ └── user.go │ │ │ └── web │ │ │ ├── site.go │ │ │ ├── site_b.go │ │ │ ├── site_c.go │ │ │ ├── admin_a.go │ │ │ └── site_a.go │ ├── pkg │ │ ├── utils │ │ │ ├── utils.go │ │ │ └── str.go │ │ ├── debug │ │ │ ├── errors.go │ │ │ └── annotation.go │ │ ├── xerror │ │ │ └── common.go │ │ └── types │ │ │ └── types.go │ ├── config.yaml │ ├── main.go │ ├── .gitignore │ ├── cmd │ │ ├── version.go │ │ └── migrate │ │ │ └── migrate.go │ └── Dockerfile ├── mir-example │ ├── README.md │ ├── servants │ │ ├── site.go │ │ ├── site_b.go │ │ ├── site_c.go │ │ ├── admin_a.go │ │ └── site_a.go │ ├── Makefile │ ├── .gitignore │ ├── main.go │ └── mirc │ │ └── gen.go └── README.md ├── .gitattributes ├── mirc ├── build │ └── go2tmpl.sh ├── .gitignore ├── templates │ ├── chi │ │ ├── README.md.tmpl │ │ ├── servants │ │ │ ├── site.go.tmpl │ │ │ ├── site_b.go.tmpl │ │ │ ├── site_c.go.tmpl │ │ │ ├── site_a.go.tmpl │ │ │ ├── servants.go.tmpl │ │ │ └── core.go.tmpl │ │ ├── main.go.tmpl │ │ ├── go.mod.tmpl │ │ ├── .gitignore.tmpl │ │ ├── Makefile.tmpl │ │ └── mirc │ │ │ └── gen.go.tmpl │ ├── echo │ │ ├── README.md.tmpl │ │ ├── servants │ │ │ ├── site.go.tmpl │ │ │ ├── site_a.go.tmpl │ │ │ ├── site_b.go.tmpl │ │ │ ├── servants.go.tmpl │ │ │ └── core.go.tmpl │ │ ├── main.go.tmpl │ │ ├── .gitignore.tmpl │ │ ├── Makefile.tmpl │ │ └── mirc │ │ │ └── gen.go.tmpl │ ├── gin │ │ ├── README.md.tmpl │ │ ├── servants │ │ │ ├── site.go.tmpl │ │ │ ├── site_b.go.tmpl │ │ │ ├── admin_a.go.tmpl │ │ │ ├── site_c.go.tmpl │ │ │ ├── site_a.go.tmpl │ │ │ ├── servants.go.tmpl │ │ │ └── core.go.tmpl │ │ ├── main.go.tmpl │ │ ├── .gitignore.tmpl │ │ ├── Makefile.tmpl │ │ └── mirc │ │ │ └── gen.go.tmpl │ ├── iris │ │ ├── README.md.tmpl │ │ ├── servants │ │ │ ├── site.go.tmpl │ │ │ ├── site_a.go.tmpl │ │ │ ├── site_b.go.tmpl │ │ │ └── servants.go.tmpl │ │ ├── main.go.tmpl │ │ ├── .gitignore.tmpl │ │ ├── Makefile.tmpl │ │ └── mirc │ │ │ └── gen.go.tmpl │ ├── mux │ │ ├── README.md.tmpl │ │ ├── servants │ │ │ ├── site.go.tmpl │ │ │ ├── site_a.go.tmpl │ │ │ ├── site_b.go.tmpl │ │ │ ├── servants.go.tmpl │ │ │ └── core.go.tmpl │ │ ├── main.go.tmpl │ │ ├── go.mod.tmpl │ │ ├── .gitignore.tmpl │ │ ├── Makefile.tmpl │ │ └── mirc │ │ │ └── gen.go.tmpl │ ├── fiber │ │ ├── README.md.tmpl │ │ ├── servants │ │ │ ├── site.go.tmpl │ │ │ ├── site_a.go.tmpl │ │ │ ├── site_b.go.tmpl │ │ │ ├── servants.go.tmpl │ │ │ └── core.go.tmpl │ │ ├── main.go.tmpl │ │ ├── .gitignore.tmpl │ │ ├── Makefile.tmpl │ │ └── mirc │ │ │ └── gen.go.tmpl │ ├── hertz │ │ ├── README.md.tmpl │ │ ├── servants │ │ │ ├── site.go.tmpl │ │ │ ├── admin_a.go.tmpl │ │ │ ├── site_b.go.tmpl │ │ │ ├── site_c.go.tmpl │ │ │ ├── site_a.go.tmpl │ │ │ ├── servants.go.tmpl │ │ │ └── core.go.tmpl │ │ ├── main.go.tmpl │ │ ├── .gitignore.tmpl │ │ ├── Makefile.tmpl │ │ └── mirc │ │ │ └── gen.go.tmpl │ ├── macaron │ │ ├── README.md.tmpl │ │ ├── servants │ │ │ ├── site.go.tmpl │ │ │ ├── site_a.go.tmpl │ │ │ ├── site_b.go.tmpl │ │ │ └── servants.go.tmpl │ │ ├── main.go.tmpl │ │ ├── .gitignore.tmpl │ │ ├── Makefile.tmpl │ │ └── mirc │ │ │ └── gen.go.tmpl │ └── httprouter │ │ ├── README.md.tmpl │ │ ├── servants │ │ ├── site.go.tmpl │ │ ├── site_a.go.tmpl │ │ ├── site_b.go.tmpl │ │ ├── site_c.go.tmpl │ │ └── servants.go.tmpl │ │ ├── main.go.tmpl │ │ ├── go.mod.tmpl │ │ ├── .gitignore.tmpl │ │ ├── Makefile.tmpl │ │ └── mirc │ │ └── gen.go.tmpl ├── go.mod └── main.go ├── go.mod ├── engine ├── internal │ ├── internal.go │ └── help.go └── engine_test.go ├── service ├── runtime.go ├── help.go └── http_server.go ├── .gitignore ├── .golangci.yml ├── .github └── dependabot.yml ├── go.sum └── Makefile /docs/.gitignore: -------------------------------------------------------------------------------- 1 | .hugo_build.lock -------------------------------------------------------------------------------- /docs/themes/hugo-book/layouts/partials/docs/inject/body.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/themes/hugo-book/layouts/partials/docs/inject/footer.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/themes/hugo-book/layouts/partials/docs/inject/head.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/content.en/menu/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | headless: false 3 | --- 4 | -------------------------------------------------------------------------------- /docs/content.zh/menu/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | headless: false 3 | --- 4 | -------------------------------------------------------------------------------- /docs/themes/hugo-book/layouts/partials/docs/inject/menu-after.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/themes/hugo-book/layouts/partials/docs/inject/menu-before.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/themes/hugo-book/layouts/partials/docs/inject/toc-after.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/themes/hugo-book/layouts/partials/docs/inject/toc-before.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/themes/hugo-book/layouts/partials/docs/inject/content-after.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/themes/hugo-book/layouts/partials/docs/inject/content-before.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/assets/_variables.scss: -------------------------------------------------------------------------------- 1 | /* You can override SASS variables here. */ 2 | -------------------------------------------------------------------------------- /docs/themes/hugo-book/layouts/_default/list.html: -------------------------------------------------------------------------------- 1 | {{ define "dummy" }}{{ end }} 2 | -------------------------------------------------------------------------------- /docs/themes/hugo-book/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/alex-shpak/hugo-book 2 | 3 | go 1.16 4 | -------------------------------------------------------------------------------- /docs/themes/hugo-book/layouts/_default/single.html: -------------------------------------------------------------------------------- 1 | {{ define "dummy" }}{{ end }} 2 | -------------------------------------------------------------------------------- /docs/public/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/favicon.png -------------------------------------------------------------------------------- /docs/static/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/static/favicon.png -------------------------------------------------------------------------------- /docs/themes/hugo-book/assets/themes/_dark.scss: -------------------------------------------------------------------------------- 1 | :root { 2 | @include theme-dark; 3 | } 4 | -------------------------------------------------------------------------------- /docs/themes/hugo-book/assets/themes/_light.scss: -------------------------------------------------------------------------------- 1 | :root { 2 | @include theme-light; 3 | } 4 | -------------------------------------------------------------------------------- /internal/generator/templates/README.md: -------------------------------------------------------------------------------- 1 | # templates 2 | use for generate interface's template. -------------------------------------------------------------------------------- /examples/sail-example/scripts/migration/postgres/0007_content_type_alter.down.sql: -------------------------------------------------------------------------------- 1 | -- nothing 2 | -------------------------------------------------------------------------------- /examples/sail-example/scripts/migration/sqlite3/0008_content_type_alter.down.sql: -------------------------------------------------------------------------------- 1 | -- nothing 2 | -------------------------------------------------------------------------------- /docs/themes/hugo-book/.gitignore: -------------------------------------------------------------------------------- 1 | public/ 2 | exampleSite/public/ 3 | .DS_Store 4 | .hugo_build.lock 5 | -------------------------------------------------------------------------------- /docs/public/images/mir-arc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/images/mir-arc.png -------------------------------------------------------------------------------- /docs/public/images/mir-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/images/mir-logo.png -------------------------------------------------------------------------------- /docs/static/images/mir-arc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/static/images/mir-arc.png -------------------------------------------------------------------------------- /docs/static/images/mir-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/static/images/mir-logo.png -------------------------------------------------------------------------------- /docs/themes/hugo-book/exampleSite/assets/_variables.scss: -------------------------------------------------------------------------------- 1 | /* You can override SASS variables here. */ 2 | -------------------------------------------------------------------------------- /examples/sail-example/docs/README.md: -------------------------------------------------------------------------------- 1 | ## 开发文档 2 | 本目录包含一些开发者文档。 3 | 4 | * [openapi](openapi): api相关文档 5 | -------------------------------------------------------------------------------- /examples/sail-example/scripts/migration/mysql/0006_topic_follow.down.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS `p_topic_user`; -------------------------------------------------------------------------------- /docs/themes/hugo-book/exampleSite/content.en/docs/shortcodes/_index.md: -------------------------------------------------------------------------------- 1 | --- 2 | bookFlatSection: true 3 | --- 4 | -------------------------------------------------------------------------------- /examples/sail-example/scripts/migration/postgres/0005_topic_follow.down.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS p_topic_user; -------------------------------------------------------------------------------- /examples/sail-example/scripts/migration/sqlite3/0006_topic_follow.down.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS `p_topic_user`; -------------------------------------------------------------------------------- /docs/content.zh/docs/tutorials/_index.md: -------------------------------------------------------------------------------- 1 | --- 2 | weight: 2 3 | bookFlatSection: true 4 | title: "使用指南" 5 | --- 6 | -------------------------------------------------------------------------------- /docs/public/images/logo-origin.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/images/logo-origin.jpeg -------------------------------------------------------------------------------- /docs/static/images/logo-origin.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/static/images/logo-origin.jpeg -------------------------------------------------------------------------------- /docs/themes/hugo-book/images/tn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/images/tn.png -------------------------------------------------------------------------------- /docs/themes/hugo-book/layouts/partials/docs/html-head-title.html: -------------------------------------------------------------------------------- 1 | {{ partial "docs/title" . }} | {{ .Site.Title -}} 2 | -------------------------------------------------------------------------------- /examples/sail-example/scripts/migration/mysql/0010_user_following.down.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS `p_following`; 2 | -------------------------------------------------------------------------------- /examples/sail-example/scripts/migration/postgres/0009_user_following.down.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS p_following; 2 | -------------------------------------------------------------------------------- /examples/sail-example/scripts/migration/sqlite3/0010_user_following.down.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS "p_following"; 2 | -------------------------------------------------------------------------------- /docs/content.en/docs/tutorials/_index.md: -------------------------------------------------------------------------------- 1 | --- 2 | weight: 2 3 | bookFlatSection: true 4 | title: "Turotials" 5 | --- 6 | -------------------------------------------------------------------------------- /docs/themes/hugo-book/assets/_custom.scss: -------------------------------------------------------------------------------- 1 | /* You can add custom styles here. */ 2 | 3 | // @import "plugins/numbered"; 4 | -------------------------------------------------------------------------------- /examples/sail-example/mirc/bot/README.md: -------------------------------------------------------------------------------- 1 | ### Bot系列RESTful API相关定义文件 2 | 本目录包含 Bot相关API定义文件。 3 | 4 | * v1 - v1版本API 5 | -------------------------------------------------------------------------------- /examples/sail-example/scripts/migration/mysql/0005_share_count.down.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE `p_post` DROP COLUMN `share_count`; 2 | -------------------------------------------------------------------------------- /examples/sail-example/scripts/migration/mysql/0014_user_relation_view.down.sql: -------------------------------------------------------------------------------- 1 | DROP VIEW IF EXISTS p_user_relation; 2 | -------------------------------------------------------------------------------- /examples/sail-example/scripts/migration/postgres/0004_share_count.down.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE p_post DROP COLUMN share_count; 2 | -------------------------------------------------------------------------------- /examples/sail-example/scripts/migration/postgres/0011_comment_essence.down.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE p_comment DROP COLUMN is_essence; -------------------------------------------------------------------------------- /examples/sail-example/scripts/migration/postgres/0013_user_relation_view.down.sql: -------------------------------------------------------------------------------- 1 | DROP VIEW IF EXISTS p_user_relation; 2 | -------------------------------------------------------------------------------- /examples/sail-example/scripts/migration/sqlite3/0014_user_relation_view.down.sql: -------------------------------------------------------------------------------- 1 | DROP VIEW IF EXISTS p_user_relation; 2 | -------------------------------------------------------------------------------- /docs/themes/hugo-book/assets/_variables.scss: -------------------------------------------------------------------------------- 1 | /* You can override SASS variables here. */ 2 | 3 | // @import "plugins/dark"; 4 | -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/favicon.png -------------------------------------------------------------------------------- /examples/sail-example/scripts/README: -------------------------------------------------------------------------------- 1 | All files in subdirectories are templates, do modifications based on your environment first. -------------------------------------------------------------------------------- /examples/sail-example/scripts/migration/mysql/0002_post_visibility.down.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE `p_post` DROP COLUMN `visibility`; 2 | -------------------------------------------------------------------------------- /examples/sail-example/scripts/migration/mysql/0012_comment_essence.down.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE `p_comment` DROP COLUMN `is_essence`; -------------------------------------------------------------------------------- /examples/sail-example/scripts/migration/postgres/0002_post_visibility.down.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE p_post DROP COLUMN visibility; 2 | -------------------------------------------------------------------------------- /examples/sail-example/scripts/migration/sqlite3/0002_post_visibility.down.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE `p_post` DROP COLUMN `visibility`; 2 | -------------------------------------------------------------------------------- /examples/sail-example/scripts/migration/sqlite3/0005_share_count.down.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE `p_post` DROP COLUMN `share_count`; 2 | -------------------------------------------------------------------------------- /docs/public/fonts/roboto-v27-latin-700.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/fonts/roboto-v27-latin-700.woff -------------------------------------------------------------------------------- /docs/public/fonts/roboto-v27-latin-700.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/fonts/roboto-v27-latin-700.woff2 -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Main-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Main-Bold.ttf -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Main-Bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Main-Bold.woff -------------------------------------------------------------------------------- /docs/themes/hugo-book/images/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/images/screenshot.png -------------------------------------------------------------------------------- /examples/sail-example/scripts/migration/sqlite3/0012_comment_essence.down.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE "p_comment" DROP COLUMN "is_essence"; 2 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.js linguist-language=go 2 | *.css linguist-language=go 3 | *.scss linguist-language=go 4 | *.html linguist-language=go -------------------------------------------------------------------------------- /docs/archetypes/default.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "{{ replace .Name "-" " " | title }}" 3 | date: {{ .Date }} 4 | draft: true 5 | --- 6 | 7 | -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_AMS-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_AMS-Regular.ttf -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_AMS-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_AMS-Regular.woff -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Fraktur-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Fraktur-Bold.ttf -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Main-Bold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Main-Bold.woff2 -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Main-Italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Main-Italic.ttf -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Main-Italic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Main-Italic.woff -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Main-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Main-Regular.ttf -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Math-Italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Math-Italic.ttf -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Math-Italic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Math-Italic.woff -------------------------------------------------------------------------------- /docs/themes/hugo-book/assets/mermaid.json: -------------------------------------------------------------------------------- 1 | { 2 | "flowchart": { 3 | "useMaxWidth":true 4 | }, 5 | "theme": "default" 6 | } 7 | -------------------------------------------------------------------------------- /docs/themes/hugo-book/exampleSite/content.en/docs/example/collapsed/_index.md: -------------------------------------------------------------------------------- 1 | --- 2 | bookCollapseSection: true 3 | weight: 20 4 | --- 5 | -------------------------------------------------------------------------------- /docs/assets/_custom.scss: -------------------------------------------------------------------------------- 1 | /* You can add custom styles here. */ 2 | 3 | // @import "plugins/numbered"; 4 | // @import "plugins/scrollbars"; 5 | -------------------------------------------------------------------------------- /docs/public/fonts/roboto-v27-latin-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/fonts/roboto-v27-latin-regular.woff -------------------------------------------------------------------------------- /docs/public/fonts/roboto-v27-latin-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/fonts/roboto-v27-latin-regular.woff2 -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_AMS-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_AMS-Regular.woff2 -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Fraktur-Bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Fraktur-Bold.woff -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Fraktur-Bold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Fraktur-Bold.woff2 -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Fraktur-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Fraktur-Regular.ttf -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Main-BoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Main-BoldItalic.ttf -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Main-Italic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Main-Italic.woff2 -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Main-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Main-Regular.woff -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Main-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Main-Regular.woff2 -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Math-BoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Math-BoldItalic.ttf -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Math-Italic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Math-Italic.woff2 -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_SansSerif-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_SansSerif-Bold.ttf -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_SansSerif-Bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_SansSerif-Bold.woff -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Script-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Script-Regular.ttf -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Script-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Script-Regular.woff -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Size1-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Size1-Regular.ttf -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Size1-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Size1-Regular.woff -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Size1-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Size1-Regular.woff2 -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Size2-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Size2-Regular.ttf -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Size2-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Size2-Regular.woff -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Size2-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Size2-Regular.woff2 -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Size3-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Size3-Regular.ttf -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Size3-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Size3-Regular.woff -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Size3-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Size3-Regular.woff2 -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Size4-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Size4-Regular.ttf -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Size4-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Size4-Regular.woff -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Size4-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Size4-Regular.woff2 -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Caligraphic-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Caligraphic-Bold.ttf -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Caligraphic-Bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Caligraphic-Bold.woff -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Fraktur-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Fraktur-Regular.woff -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Fraktur-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Fraktur-Regular.woff2 -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Main-BoldItalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Main-BoldItalic.woff -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Main-BoldItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Main-BoldItalic.woff2 -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Math-BoldItalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Math-BoldItalic.woff -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Math-BoldItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Math-BoldItalic.woff2 -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_SansSerif-Bold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_SansSerif-Bold.woff2 -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_SansSerif-Italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_SansSerif-Italic.ttf -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_SansSerif-Italic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_SansSerif-Italic.woff -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_SansSerif-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_SansSerif-Regular.ttf -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Script-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Script-Regular.woff2 -------------------------------------------------------------------------------- /examples/sail-example/scripts/migration/sqlite3/0005_share_count.up.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE `p_post` ADD COLUMN `share_count` integer NOT NULL DEFAULT 0; -------------------------------------------------------------------------------- /docs/public/fonts/roboto-mono-v13-latin-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/fonts/roboto-mono-v13-latin-regular.woff -------------------------------------------------------------------------------- /docs/public/fonts/roboto-mono-v13-latin-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/fonts/roboto-mono-v13-latin-regular.woff2 -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Caligraphic-Bold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Caligraphic-Bold.woff2 -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Caligraphic-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Caligraphic-Regular.ttf -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Caligraphic-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Caligraphic-Regular.woff -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_SansSerif-Italic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_SansSerif-Italic.woff2 -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_SansSerif-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_SansSerif-Regular.woff -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_SansSerif-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_SansSerif-Regular.woff2 -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Typewriter-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Typewriter-Regular.ttf -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Typewriter-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Typewriter-Regular.woff -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Typewriter-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Typewriter-Regular.woff2 -------------------------------------------------------------------------------- /docs/themes/hugo-book/exampleSite/content.en/posts/_index.md: -------------------------------------------------------------------------------- 1 | --- 2 | menu: 3 | after: 4 | name: blog 5 | weight: 5 6 | title: Blog 7 | --- 8 | -------------------------------------------------------------------------------- /examples/sail-example/scripts/migration/mysql/0005_share_count.up.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE `p_post` ADD COLUMN `share_count` BIGINT unsigned NOT NULL DEFAULT 0; -------------------------------------------------------------------------------- /examples/sail-example/scripts/migration/postgres/0004_share_count.up.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE p_post ADD COLUMN share_count BIGINT NOT NULL DEFAULT 0; -- 分享数 2 | -------------------------------------------------------------------------------- /examples/sail-example/scripts/migration/postgres/0011_comment_essence.up.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE p_comment ADD COLUMN is_essence SMALLINT NOT NULL DEFAULT 0; 2 | -------------------------------------------------------------------------------- /docs/public/katex/fonts/KaTeX_Caligraphic-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/public/katex/fonts/KaTeX_Caligraphic-Regular.woff2 -------------------------------------------------------------------------------- /docs/themes/hugo-book/layouts/shortcodes/hint.html: -------------------------------------------------------------------------------- 1 |
2 | {{ .Inner | .Page.RenderString }} 3 |4 | -------------------------------------------------------------------------------- /examples/sail-example/scripts/migration/mysql/0003_feature_contact.down.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS `p_contact`; 2 | DROP TABLE IF EXISTS `p_contact_group`; 3 | -------------------------------------------------------------------------------- /examples/sail-example/scripts/migration/postgres/0003_feature_contact.down.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS p_contact; 2 | DROP TABLE IF EXISTS p_contact_group; 3 | -------------------------------------------------------------------------------- /examples/sail-example/scripts/migration/sqlite3/0012_comment_essence.up.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE "p_comment" ADD COLUMN "is_essence" integer NOT NULL DEFAULT 0; 2 | -------------------------------------------------------------------------------- /mirc/build/go2tmpl.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | GOFILES=$(find . -type f) 4 | 5 | for filename in $GOFILES 6 | do 7 | mv ${filename} ${filename}.tmpl 8 | done -------------------------------------------------------------------------------- /docs/themes/hugo-book/layouts/partials/docs/toc.html: -------------------------------------------------------------------------------- 1 | {{ partial "docs/inject/toc-before" . }} 2 | {{ .TableOfContents }} 3 | {{ partial "docs/inject/toc-after" . }} 4 | -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/fonts/roboto-v27-latin-700.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/fonts/roboto-v27-latin-700.woff -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/fonts/roboto-v27-latin-700.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/fonts/roboto-v27-latin-700.woff2 -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Main-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Main-Bold.ttf -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Main-Bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Main-Bold.woff -------------------------------------------------------------------------------- /examples/sail-example/scripts/migration/mysql/0009_create_view_post_filter.down.sql: -------------------------------------------------------------------------------- 1 | DROP VIEW IF EXISTS p_post_by_media; 2 | DROP VIEW IF EXISTS p_post_by_comment; 3 | -------------------------------------------------------------------------------- /docs/public/sw.min.cc53640256a4c5a819e5408f192a460fbdab1162f59e2640475ed9eaeba2a25b.js: -------------------------------------------------------------------------------- 1 | navigator.serviceWorker&&navigator.serviceWorker.register("/mir/sw.js",{scope:"/"}) -------------------------------------------------------------------------------- /docs/themes/hugo-book/exampleSite/assets/_custom.scss: -------------------------------------------------------------------------------- 1 | /* You can add custom styles here. */ 2 | 3 | // @import "plugins/numbered"; 4 | // @import "plugins/scrollbars"; 5 | -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/fonts/roboto-v27-latin-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/fonts/roboto-v27-latin-regular.woff -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_AMS-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_AMS-Regular.ttf -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_AMS-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_AMS-Regular.woff -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_AMS-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_AMS-Regular.woff2 -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Fraktur-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Fraktur-Bold.ttf -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Fraktur-Bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Fraktur-Bold.woff -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Main-Bold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Main-Bold.woff2 -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Main-Italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Main-Italic.ttf -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Main-Italic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Main-Italic.woff -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Main-Italic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Main-Italic.woff2 -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Main-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Main-Regular.ttf -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Main-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Main-Regular.woff -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Math-Italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Math-Italic.ttf -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Math-Italic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Math-Italic.woff -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Math-Italic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Math-Italic.woff2 -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Size1-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Size1-Regular.ttf -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Size2-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Size2-Regular.ttf -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Size3-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Size3-Regular.ttf -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Size4-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Size4-Regular.ttf -------------------------------------------------------------------------------- /examples/sail-example/scripts/migration/postgres/0002_post_visibility.up.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE p_post ADD COLUMN visibility SMALLINT NOT NULL DEFAULT 0; -- 可见性 0公开 1私密 2好友可见 2 | -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/fonts/roboto-v27-latin-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/fonts/roboto-v27-latin-regular.woff2 -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Fraktur-Bold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Fraktur-Bold.woff2 -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Fraktur-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Fraktur-Regular.ttf -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Main-BoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Main-BoldItalic.ttf -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Main-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Main-Regular.woff2 -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Math-BoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Math-BoldItalic.ttf -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_SansSerif-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_SansSerif-Bold.ttf -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_SansSerif-Bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_SansSerif-Bold.woff -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Script-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Script-Regular.ttf -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Script-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Script-Regular.woff -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Size1-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Size1-Regular.woff -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Size1-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Size1-Regular.woff2 -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Size2-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Size2-Regular.woff -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Size2-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Size2-Regular.woff2 -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Size3-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Size3-Regular.woff -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Size3-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Size3-Regular.woff2 -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Size4-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Size4-Regular.woff -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Size4-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Size4-Regular.woff2 -------------------------------------------------------------------------------- /examples/sail-example/scripts/migration/mysql/0012_comment_essence.up.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE `p_comment` ADD COLUMN `is_essence` tinyint unsigned NOT NULL DEFAULT 0 COMMENT '是否精选'; 2 | -------------------------------------------------------------------------------- /examples/sail-example/scripts/migration/postgres/0014_topic_user_pin.down.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE p_topic_user DROP COLUMN is_pin; 2 | DROP INDEX IF EXISTS idx_topic_user_uid_ispin; 3 | -------------------------------------------------------------------------------- /mirc/.gitignore: -------------------------------------------------------------------------------- 1 | /mirc 2 | /gin 3 | /hertz 4 | /chi 5 | /chi-v5 6 | /mux 7 | /httprouter 8 | /macaron 9 | /echo 10 | /iris 11 | /fiber 12 | /fiber-v2 13 | /release/* 14 | -------------------------------------------------------------------------------- /docs/themes/hugo-book/archetypes/posts.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "{{ .Name | humanize | title }}" 3 | date: {{ .Date }} 4 | # bookComments: false 5 | # bookSearchExclude: false 6 | --- 7 | -------------------------------------------------------------------------------- /docs/themes/hugo-book/layouts/partials/docs/comments.html: -------------------------------------------------------------------------------- 1 | 2 | {{ template "_internal/disqus.html" . }} 3 | -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/fonts/roboto-mono-v13-latin-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/fonts/roboto-mono-v13-latin-regular.woff -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Caligraphic-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Caligraphic-Bold.ttf -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Caligraphic-Bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Caligraphic-Bold.woff -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Caligraphic-Bold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Caligraphic-Bold.woff2 -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Fraktur-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Fraktur-Regular.woff -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Fraktur-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Fraktur-Regular.woff2 -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Main-BoldItalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Main-BoldItalic.woff -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Main-BoldItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Main-BoldItalic.woff2 -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Math-BoldItalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Math-BoldItalic.woff -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Math-BoldItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Math-BoldItalic.woff2 -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_SansSerif-Bold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_SansSerif-Bold.woff2 -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_SansSerif-Italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_SansSerif-Italic.ttf -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_SansSerif-Italic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_SansSerif-Italic.woff -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_SansSerif-Italic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_SansSerif-Italic.woff2 -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_SansSerif-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_SansSerif-Regular.ttf -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_SansSerif-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_SansSerif-Regular.woff -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Script-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Script-Regular.woff2 -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Typewriter-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Typewriter-Regular.ttf -------------------------------------------------------------------------------- /examples/sail-example/scripts/migration/mysql/0015_topic_user_pin.down.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE `p_topic_user` DROP COLUMN `is_pin`; 2 | DROP INDEX IF EXISTS `idx_topic_user_uid_ispin`; 3 | -------------------------------------------------------------------------------- /examples/sail-example/scripts/migration/sqlite3/0015_topic_user_pin.down.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE "p_topic_user" DROP COLUMN "is_pin"; 2 | DROP INDEX IF EXISTS "idx_topic_user_uid_ispin"; 3 | -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/fonts/roboto-mono-v13-latin-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/fonts/roboto-mono-v13-latin-regular.woff2 -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Caligraphic-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Caligraphic-Regular.ttf -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Caligraphic-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Caligraphic-Regular.woff -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_SansSerif-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_SansSerif-Regular.woff2 -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Typewriter-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Typewriter-Regular.woff -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Typewriter-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Typewriter-Regular.woff2 -------------------------------------------------------------------------------- /examples/sail-example/scripts/migration/postgres/0008_create_view_post_filter.down.sql: -------------------------------------------------------------------------------- 1 | DROP VIEW IF EXISTS p_post_by_media; 2 | DROP VIEW IF EXISTS p_post_by_comment; 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /examples/sail-example/scripts/migration/sqlite3/0009_create_view_post_filter.down.sql: -------------------------------------------------------------------------------- 1 | DROP VIEW IF EXISTS p_post_by_media; 2 | DROP VIEW IF EXISTS p_post_by_comment; 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /docs/themes/hugo-book/static/katex/fonts/KaTeX_Caligraphic-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alimy/mir/HEAD/docs/themes/hugo-book/static/katex/fonts/KaTeX_Caligraphic-Regular.woff2 -------------------------------------------------------------------------------- /examples/mir-example/README.md: -------------------------------------------------------------------------------- 1 | ## mir-example 2 | just a simple mir's examples for explain how to use mir in your project. 3 | 4 | #### Usage 5 | ```bash 6 | % make generate 7 | % make run 8 | ``` 9 | -------------------------------------------------------------------------------- /docs/public/favicon.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/themes/hugo-book/assets/themes/_auto.scss: -------------------------------------------------------------------------------- 1 | :root { 2 | @include theme-light; 3 | } 4 | 5 | @media (prefers-color-scheme: dark) { 6 | :root { 7 | @include theme-dark; 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /examples/sail-example/README.md: -------------------------------------------------------------------------------- 1 | ## sail-example 2 | just a simple mir's examples for explain how to use mir in your project. 3 | 4 | #### Usage 5 | ```bash 6 | % make generate 7 | % make serve 8 | ``` 9 | -------------------------------------------------------------------------------- /mirc/templates/chi/README.md.tmpl: -------------------------------------------------------------------------------- 1 | ## mir-examples 2 | just a simple mir's examples for explain how to use mir in your project. 3 | 4 | #### Usage 5 | ```bash 6 | % make generate 7 | % make build 8 | ``` 9 | -------------------------------------------------------------------------------- /mirc/templates/echo/README.md.tmpl: -------------------------------------------------------------------------------- 1 | ## mir-examples 2 | just a simple mir's examples for explain how to use mir in your project. 3 | 4 | #### Usage 5 | ```bash 6 | % make generate 7 | % make build 8 | ``` 9 | -------------------------------------------------------------------------------- /mirc/templates/gin/README.md.tmpl: -------------------------------------------------------------------------------- 1 | ## mir-examples 2 | just a simple mir's examples for explain how to use mir in your project. 3 | 4 | #### Usage 5 | ```bash 6 | % make generate 7 | % make build 8 | ``` 9 | -------------------------------------------------------------------------------- /mirc/templates/iris/README.md.tmpl: -------------------------------------------------------------------------------- 1 | ## mir-examples 2 | just a simple mir's examples for explain how to use mir in your project. 3 | 4 | #### Usage 5 | ```bash 6 | % make generate 7 | % make build 8 | ``` 9 | -------------------------------------------------------------------------------- /mirc/templates/mux/README.md.tmpl: -------------------------------------------------------------------------------- 1 | ## mir-examples 2 | just a simple mir's examples for explain how to use mir in your project. 3 | 4 | #### Usage 5 | ```bash 6 | % make generate 7 | % make build 8 | ``` 9 | -------------------------------------------------------------------------------- /docs/public/svg/menu.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /mirc/templates/fiber/README.md.tmpl: -------------------------------------------------------------------------------- 1 | ## mir-examples 2 | just a simple mir's examples for explain how to use mir in your project. 3 | 4 | #### Usage 5 | ```bash 6 | % make generate 7 | % make build 8 | ``` 9 | -------------------------------------------------------------------------------- /mirc/templates/hertz/README.md.tmpl: -------------------------------------------------------------------------------- 1 | ## mir-examples 2 | just a simple mir's examples for explain how to use mir in your project. 3 | 4 | #### Usage 5 | ```bash 6 | % make generate 7 | % make build 8 | ``` 9 | -------------------------------------------------------------------------------- /mirc/templates/macaron/README.md.tmpl: -------------------------------------------------------------------------------- 1 | ## mir-examples 2 | just a simple mir's examples for explain how to use mir in your project. 3 | 4 | #### Usage 5 | ```bash 6 | % make generate 7 | % make build 8 | ``` 9 | -------------------------------------------------------------------------------- /examples/sail-example/scripts/migration/mysql/0013_rank_metrics.down.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE `p_comment` DROP COLUMN `reply_count`; 2 | DROP TABLE IF EXISTS `p_comment_metric`; 3 | DROP TABLE IF EXISTS `p_user_metric`; 4 | -------------------------------------------------------------------------------- /examples/sail-example/scripts/migration/sqlite3/0013_rank_metrics.down.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE "p_comment" DROP COLUMN "reply_count"; 2 | DROP TABLE IF EXISTS "p_comment_metric"; 3 | DROP TABLE IF EXISTS "p_user_metric"; 4 | -------------------------------------------------------------------------------- /mirc/templates/httprouter/README.md.tmpl: -------------------------------------------------------------------------------- 1 | ## mir-examples 2 | just a simple mir's examples for explain how to use mir in your project. 3 | 4 | #### Usage 5 | ```bash 6 | % make generate 7 | % make build 8 | ``` 9 | -------------------------------------------------------------------------------- /examples/sail-example/scripts/migration/postgres/0012_rank_metrics.down.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE p_comment DROP COLUMN IF EXISTS reply_count; 2 | DROP TABLE IF EXISTS p_comment_metric; 3 | DROP TABLE IF EXISTS p_user_metric; 4 | -------------------------------------------------------------------------------- /docs/themes/hugo-book/layouts/_default/_markup/render-heading.html: -------------------------------------------------------------------------------- 1 |
11 | {{- .Inner -}} 12 |
13 | -------------------------------------------------------------------------------- /examples/mir-example/servants/site.go: -------------------------------------------------------------------------------- 1 | // Copyright 2025 Michael Li9 | {{- .Summary -}} 10 | {{ if .Truncated }} 11 | ... 12 | {{ end }} 13 |
14 |9 | {{- .Summary -}} 10 | {{ if .Truncated }} 11 | ... 12 | {{ end }} 13 |
14 |
17 | {{ with .Resources.GetMatch .Params.image }}
18 |
19 | {{ else }}
20 |
21 | {{ end }}
22 |