From dd136858f1ea40ad3c94191d647487fa4f31926c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 18 Oct 2024 20:33:49 +0200 Subject: Adding upstream version 9.0.0. Signed-off-by: Daniel Baumann --- templates/devtest/gitea-ui.tmpl | 330 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 330 insertions(+) create mode 100644 templates/devtest/gitea-ui.tmpl (limited to 'templates/devtest/gitea-ui.tmpl') diff --git a/templates/devtest/gitea-ui.tmpl b/templates/devtest/gitea-ui.tmpl new file mode 100644 index 0000000..8c5db4d --- /dev/null +++ b/templates/devtest/gitea-ui.tmpl @@ -0,0 +1,330 @@ +{{template "base/head" .}} + +
+
+

Link

+
+ normal + muted + suppressed + silenced +
+

Button

+
+ Style: + + + + +
+
+ State: + +
+
+
    +
  • +

    General purpose:

    + + + + + + + + +
  • +
  • +

    Recommended colors:

    + + + + + + + + + + +
  • +
  • +

    Supported but not recommended:

    +

    Do not use if there is no strong requirement. Do not use grey/black buttons, they don't work well with dark theme.

    + + + + + + + + + + + + + + +
  • +
  • +

    Inline / Plain:

    +
    + + + +
    +
  • +
+ +
+
+ +
+

Buttons

+
+
+
+
+
+ +
+

Tooltip

+
text with tooltip
+
text with interactive tooltip
+
+ +
+

Loading

+
loading ...
+
+

loading ...

+

loading ...

+

loading ...

+

loading ...

+
+
+ +
+

<origin-url>

+
+
+
+ +
+

<overflow-menu>

+ + + +
+ +
+

GiteaAbsoluteDate

+
+
+
+
+
+
relative-time:
+
+ +
+

LocaleNumber

+
{{ctx.Locale.PrettyNumber 1}}
+
{{ctx.Locale.PrettyNumber 12}}
+
{{ctx.Locale.PrettyNumber 123}}
+
{{ctx.Locale.PrettyNumber 1234}}
+
{{ctx.Locale.PrettyNumber 12345}}
+
{{ctx.Locale.PrettyNumber 123456}}
+
{{ctx.Locale.PrettyNumber 1234567}}
+
+ +
+

TimeSince

+
Now: {{TimeSince .TimeNow ctx.Locale}}
+
5s past: {{TimeSince .TimePast5s ctx.Locale}}
+
5s future: {{TimeSince .TimeFuture5s ctx.Locale}}
+
2m past: {{TimeSince .TimePast2m ctx.Locale}}
+
2m future: {{TimeSince .TimeFuture2m ctx.Locale}}
+
1y past: {{TimeSince .TimePast1y ctx.Locale}}
+
1y future: {{TimeSince .TimeFuture1y ctx.Locale}}
+
+ +
+

SVG alignment

+ +

Text with SVG

+
{{svg "octicon-alert"}} {{svg "octicon-x"}} text (block)
+
{{svg "octicon-alert"}} {{svg "octicon-x"}} text
(inline)
+ +
{{svg "octicon-alert"}} flex item with very very very very very very very very long content
+ +
+
{{svg "octicon-alert"}} flex every line
+
{{svg "octicon-alert"}} flex every item
+
{{svg "octicon-alert"}} flex item with very very very very very very very very long content
+
+ +

Button with SVG

+
+ +
+ + 123 +
+ +
+ +

Input with SVG

+
+ +
+ +

Dropdown with SVG

+
+ + + + +
+ + +
+
+ +
+ + + + +
+ +
+ + + + +
+ +
+
+
Button align with ...
+ +
+
+ +
+

Toast

+
+ + + +
+
+ +
+

ComboMarkdownEditor

+
ps: no JS code attached, so just a layout
+ {{template "shared/combomarkdowneditor" .}} +
+ +

Tailwind CSS Demo

+
+ +
+ + +
+{{template "base/footer" .}} -- cgit v1.2.3