Browse Source

initial commit

master
c? 10 months ago
commit
f980faff8e
8 changed files with 1182 additions and 0 deletions
  1. +2
    -0
      .gitignore
  2. +1056
    -0
      public/css/theme-arc-blue.css
  3. BIN
      public/img/favicon.png
  4. BIN
      public/img/gitea-lg.png
  5. BIN
      public/img/gitea-sm.png
  6. +25
    -0
      templates/base/footer_content.tmpl
  7. +22
    -0
      templates/home.tmpl
  8. +77
    -0
      templates/user/auth/signin_inner_home.tmpl

+ 2
- 0
.gitignore View File

@@ -0,0 +1,2 @@
conf/app.ini
public/speed/

+ 1056
- 0
public/css/theme-arc-blue.css
File diff suppressed because it is too large
View File


BIN
public/img/favicon.png View File

Before After
Width: 512  |  Height: 512  |  Size: 273 KiB

BIN
public/img/gitea-lg.png View File

Before After
Width: 92  |  Height: 92  |  Size: 2.6 KiB

BIN
public/img/gitea-sm.png View File

Before After
Width: 512  |  Height: 512  |  Size: 273 KiB

+ 25
- 0
templates/base/footer_content.tmpl View File

@@ -0,0 +1,25 @@
<footer>
<div class="ui container">
<div class="ui left">
© drg | <strong>mikuru!git α</strong>{{if (or .ShowFooterVersion .PageIsAdmin)}} v{{AppVer}}{{end}}{{if ShowFooterTemplateLoadTime}} | {{.i18n.Tr "page"}}: <strong>{{LoadTimes .PageStartTime}}</strong> | {{.i18n.Tr "template"}}: <strong>{{call .TmplLoadTimes}}</strong>{{end}} | El Psy Kongroo.
</div>
<div class="ui right links">
{{if .ShowFooterBranding}}
<a target="_blank" rel="noopener noreferrer" href="https://github.com/go-gitea/gitea"><i class="fa fa-github-square"></i><span class="sr-only">GitHub</span></a>
{{end}}
<div class="ui language bottom floating slide up dropdown link item">
<i class="world icon"></i>
<div class="text">{{.LangName}}</div>
<div class="menu">
{{range .AllLangs}}
<a lang="{{.Lang}}" class="item {{if eq $.Lang .Lang}}active selected{{end}}" href="{{if eq $.Lang .Lang}}#{{else}}{{$.Link}}?lang={{.Lang}}{{end}}">{{.Name}}</a>
{{end}}
</div>
</div>
<a href="{{AppSubUrl}}/vendor/librejs.html" data-jslicense="1">JavaScript licenses</a>
{{if .EnableSwagger}}<a href="{{AppSubUrl}}/api/swagger">API</a>{{end}}
<a target="_blank" rel="noopener noreferrer" href="https://drg.li/">drg.li</a>
{{if (or .ShowFooterVersion .PageIsAdmin)}}<span class="version">{{GoVer}}</span>{{end}}
</div>
</div>
</footer>

+ 22
- 0
templates/home.tmpl View File

@@ -0,0 +1,22 @@
{{template "base/head" .}}
<div class="home">
<div class="ui stackable middle very relaxed page grid">
<div class="sixteen wide center aligned centered column">
<div>
<img class="logo" src="{{AppSubUrl}}/img/gitea-lg.png" />
</div>
<div class="hero">
<h2>free git repo hosting from drg.li</h2>
powered by <b>mikuru!git</b> (a slightly modified <a href="https://gitea.io/">gitea</a>)
<br>
<br>
</div>
</div>
</div>
</div>
<div class="user signin">
<div class="ui container">
{{template "user/auth/signin_inner_home" .}}
</div>
</div>
{{template "base/footer" .}}

+ 77
- 0
templates/user/auth/signin_inner_home.tmpl View File

@@ -0,0 +1,77 @@
{{if or (not .LinkAccountMode) (and .LinkAccountMode .LinkAccountModeSignIn)}}
{{template "base/alert" .}}
{{end}}
<h4 class="ui top attached header center">
{{if .LinkAccountMode}}
{{.i18n.Tr "auth.oauth_signin_title"}}
{{else}}
{{.i18n.Tr "auth.login_userpass"}}
{{end}}
</h4>
<div class="ui attached segment">
<form class="ui form" action="/user/login" method="post">
{{.CsrfTokenHtml}}
<div class="required inline field {{if and (.Err_UserName) (or (not .LinkAccountMode) (and .LinkAccountMode .LinkAccountModeSignIn))}}error{{end}}">
<label for="user_name">{{.i18n.Tr "home.uname_holder"}}</label>
<input id="user_name" name="user_name" value="{{.user_name}}" autofocus required>
</div>
{{if not .DisablePassword}}
<div class="required inline field {{if and (.Err_Password) (or (not .LinkAccountMode) (and .LinkAccountMode .LinkAccountModeSignIn))}}error{{end}}">
<label for="password">{{.i18n.Tr "password"}}</label>
<input id="password" name="password" type="password" value="{{.password}}" autocomplete="off" required>
</div>
{{end}}
{{if not .LinkAccountMode}}
<div class="inline field">
<label></label>
<div class="ui checkbox">
<label>{{.i18n.Tr "auth.remember_me"}}</label>
<input name="remember" type="checkbox">
</div>
</div>
{{end}}

<div class="inline field">
<label></label>
<button class="ui green button">
{{if .LinkAccountMode}}
{{.i18n.Tr "auth.oauth_signin_submit"}}
{{else}}
{{.i18n.Tr "sign_in"}}
{{end}}
</button>
<a href="{{AppSubUrl}}/user/forgot_password">{{.i18n.Tr "auth.forgot_password"}}</a>
</div>

{{if .ShowRegistrationButton}}
<div class="inline field">
<label></label>
<a href="{{AppSubUrl}}/user/sign_up">{{.i18n.Tr "auth.sign_up_now" | Str2html}}</a>
</div>
{{end}}

{{if and .OrderedOAuth2Names .OAuth2Providers}}
<div class="ui attached segment">
<div class="oauth2 center">
<div id="oauth2-login-loader" class="ui disabled centered loader"></div>
<div>
<div id="oauth2-login-navigator">
<p>{{.i18n.Tr "sign_in_with"}}</p>
{{range $key := .OrderedOAuth2Names}}
{{$provider := index $.OAuth2Providers $key}}
<a href="{{AppSubUrl}}/user/oauth2/{{$key}}">
<img
alt="{{$provider.DisplayName}}{{if eq $provider.Name "openidConnect"}} ({{$key}}){{end}}"
title="{{$provider.DisplayName}}{{if eq $provider.Name "openidConnect"}} ({{$key}}){{end}}"
class="{{$provider.Name}}"
src="{{AppSubUrl}}{{$provider.Image}}"
onclick="onOAuthLoginClick()"
></a>
{{end}}
</div>
</div>
</div>
</div>
{{end}}
</form>
</div>

Loading…
Cancel
Save