mirror of
https://github.com/cydrobolt/polr.git
synced 2024-11-09 11:42:28 +01:00
Add setup views
This commit is contained in:
parent
96f5b1e270
commit
091ef08793
@ -1,6 +1,6 @@
|
||||
APP_ENV=local
|
||||
APP_DEBUG=true
|
||||
APP_KEY=NOTREALLYRANDOMP
|
||||
APP_KEY=F8Lj#2v%!@$ku6FXrTBscBSs^O$VOvus
|
||||
|
||||
APP_LOCALE=en
|
||||
APP_FALLBACK_LOCALE=en
|
||||
@ -17,3 +17,8 @@ POLR_SETUP_RAN=false
|
||||
CACHE_DRIVER=file
|
||||
SESSION_DRIVER=file
|
||||
QUEUE_DRIVER=file
|
||||
|
||||
VERSION=2.0.0 Alpha
|
||||
VERSION_RELMONTH=January
|
||||
VERSION_RELDAY=17
|
||||
VERSION_RELYEAR=2016
|
||||
|
7
public/css/setup-bootstrap.css
Normal file
7
public/css/setup-bootstrap.css
Normal file
File diff suppressed because one or more lines are too long
@ -1,3 +1,51 @@
|
||||
@import url(https://fonts.googleapis.com/css?family=Lobster);
|
||||
@import url(https://fonts.googleapis.com/css?family=Open+Sans);
|
||||
|
||||
.navbar-brand {
|
||||
font-family: "Lobster";
|
||||
}
|
||||
|
||||
.setup-body {
|
||||
font-family: 'Open Sans', sans-serif;
|
||||
}
|
||||
|
||||
.setup-logo {
|
||||
height: 70px;
|
||||
margin-top: 60px;
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
|
||||
.setup-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.setup-form {
|
||||
margin:0 auto;
|
||||
width: 650px;
|
||||
}
|
||||
|
||||
.setup-item {
|
||||
width: 650px;
|
||||
}
|
||||
|
||||
.setup-body {
|
||||
margin-top: 5%;
|
||||
}
|
||||
|
||||
.setup-form-buttons {
|
||||
margin-top: 40px;
|
||||
margin-bottom: 50px;
|
||||
}
|
||||
|
||||
.setup-form-buttons > input {
|
||||
width: 150px;
|
||||
margin-right: 20px;
|
||||
}
|
||||
|
||||
.setup-footer {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
h4, p {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
@ -5,14 +5,161 @@ Setup
|
||||
@endsection
|
||||
|
||||
@section('css')
|
||||
<link rel='stylesheet' href='/css/setup.css'>
|
||||
|
||||
<link rel='stylesheet' href='/css/default-bootstrap.min.css'>
|
||||
<link rel='stylesheet' href='/css/setup.css'>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<img class='setup-logo' src='/img/logo.png' />
|
||||
<h1>Setup</h1>
|
||||
<div class="navbar navbar-default navbar-fixed-top">
|
||||
<a class="navbar-brand" href="/">Polr 2</a>
|
||||
</div>
|
||||
|
||||
<div class='row'>
|
||||
<div class='col-md-3'></div>
|
||||
<div class='col-md-6 setup-body'>
|
||||
<div class='setup-center'>
|
||||
<img class='setup-logo' src='/img/logo.png'>
|
||||
</div>
|
||||
|
||||
<form class='setup-form' method='POST' action='/setup'>
|
||||
<h4>Database Configuration</h4>
|
||||
|
||||
<p>Database Host:</p>
|
||||
<input type='text' class='form-control' name='db:host' value='localhost'>
|
||||
|
||||
<p>Database Username:</p>
|
||||
<input type='text' class='form-control' name='db:username' value='root'>
|
||||
|
||||
<p>Database Password:</p>
|
||||
<input type='password' class='form-control' name='db:password' value='password'>
|
||||
|
||||
<p>Database Name:</p>
|
||||
<input type='text' class='form-control' name='db:name' value='polr'>
|
||||
|
||||
|
||||
<h4>Application Settings</h4>
|
||||
|
||||
<p>Application Name:</p>
|
||||
<input type='text' class='form-control' name='app:name' value='Polr'>
|
||||
|
||||
<p>Application URL (path to Polr, no http://, www., or trailing slash):</p>
|
||||
|
||||
<input type='text' class='form-control' name='app:external_url' value='yoursite.com'>
|
||||
|
||||
<p>Shortening Permissions:</p>
|
||||
<select name='setting:shorten_permission' class='form-control'>
|
||||
<option value='false' selected='selected'>All users can shorten URLs</option>
|
||||
<option value='true'>Only logged in users may shorten URLs</option>
|
||||
</select>
|
||||
|
||||
<p>Show Public Interface:</p>
|
||||
<select name='setting:public_interface' class='form-control'>
|
||||
<option value='false' selected='selected'>Show public interface (default)</option>
|
||||
<option value='true'>Hide public interface (for private shorteners)</option>
|
||||
</select>
|
||||
|
||||
<p>If public interface is hidden, redirect index page to:</p>
|
||||
<input type='text' class='form-control' name='setting:index_redirect' placeholder='http://your-main-site.com'>
|
||||
<p class='text-muted'>
|
||||
If a redirect is enabled you will need to go to
|
||||
http://PATHTOPOLR/login before you can access the index
|
||||
page. Leave the redirect blank to show a generic index page.
|
||||
</p>
|
||||
|
||||
<h4>Admin Account Settings</h4>
|
||||
|
||||
<p>Setup Access Password:</p>
|
||||
<input type='text' class='form-control' name='app:setup_password' value='password123'>
|
||||
|
||||
<p>Admin Username:</p>
|
||||
<input type='text' class='form-control' name='acct:username' value='polr'>
|
||||
|
||||
<p>Admin Email:</p>
|
||||
<input type='text' class='form-control' name='acct:email' value='polr@admin.tld'>
|
||||
|
||||
<p>Admin Password:</p>
|
||||
<input type='password' class='form-control' name='acct:password' value='polr'>
|
||||
|
||||
<h4>SMTP Settings</h4>
|
||||
|
||||
<p class='text-muted'>(leave blank if you are not using email verification/password recovery)</p>
|
||||
|
||||
<p>SMTP Servers (semicolon separated):</p>
|
||||
|
||||
<input type='text' class='form-control' name='app:smtp_servers' placeholder='smtp.gmail.com'>
|
||||
|
||||
<p>SMTP Username:</p>
|
||||
<input type='text' class='form-control' name='app:smtp_username' placeholder='example@gmail.com'>
|
||||
|
||||
<p>SMTP Password:</p>
|
||||
<input type='password' class='form-control' name='app:smtp_password' placeholder='password'>
|
||||
|
||||
<p>SMTP From:</p>
|
||||
<input type='text' class='form-control' name='app:smtp_from' placeholder='example@gmail.com'>
|
||||
|
||||
<h4>Other Settings</h4>
|
||||
|
||||
<p>Registration:</p>
|
||||
<select name='setting:registration_permission' class='form-control'>
|
||||
<option value='none'>No registration</option>
|
||||
<option value='email'>Email verification required</option>
|
||||
<option value='free'>No email verification required</option>
|
||||
</select>
|
||||
|
||||
<p>Password Recovery:</p>
|
||||
|
||||
<select name='setting:password_recovery' class='form-control'>
|
||||
<option value='false'>No (default)</option>
|
||||
<option value='true'>Yes</option>
|
||||
</select>
|
||||
<p class='text-muted'>
|
||||
Please ensure SMTP is properly set up before enabling password recovery.
|
||||
</p>
|
||||
|
||||
<p>Path relative to root (leave blank if /, if http://site.com/polr, then write /polr/):</p>
|
||||
<input type='text' class='form-control' name='path' placeholder='/polr/' value=''>
|
||||
|
||||
<br />Theme (click <a href='https://github.com/Cydrobolt/polr/wiki/Themes-Screenshots'>here</a> for screenshots:
|
||||
<select name='t' class='form-control'>
|
||||
<option value=''>Modern (default)</option>
|
||||
<option value='//maxcdn.bootstrapcdn.com/bootswatch/3.3.4/cyborg/bootstrap.min.css'>Midnight Black</option>
|
||||
<option value='/css/install-bootstrap.css'>Cheery (deprecated)</option>
|
||||
<option value='//maxcdn.bootstrapcdn.com/bootswatch/3.3.4/united/bootstrap.min.css'>Orange</option>
|
||||
<option value='//maxcdn.bootstrapcdn.com/bootswatch/3.3.4/simplex/bootstrap.min.css'>Crisp White</option>
|
||||
<option value='//maxcdn.bootstrapcdn.com/bootswatch/3.3.4/darkly/bootstrap.min.css'>Cloudy Night</option>
|
||||
<option value='//maxcdn.bootstrapcdn.com/bootswatch/3.3.4/cerulean/bootstrap.min.css'>Calm Skies</option>
|
||||
<option value='//maxcdn.bootstrapcdn.com/bootswatch/3.3.4/paper/bootstrap.min.css'>Android Material Design</option>
|
||||
<option value='//maxcdn.bootstrapcdn.com/bootswatch/3.3.4/superhero/bootstrap.min.css'>Blue Metro</option>
|
||||
<option value='//maxcdn.bootstrapcdn.com/bootswatch/3.3.4/sandstone/bootstrap.min.css'>Sandstone</option>
|
||||
<option value='//maxcdn.bootstrapcdn.com/bootswatch/3.3.4/cyborg/bootstrap.min.css'>Jet Black</option>
|
||||
<option value='//maxcdn.bootstrapcdn.com/bootswatch/3.3.4/lumen/bootstrap.min.css'>Newspaper</option>
|
||||
</select>
|
||||
|
||||
<div class='setup-form-buttons'>
|
||||
<input type='submit' class='btn btn-success' value='Install'>
|
||||
|
||||
<input type='reset' class='btn btn-warning' value='Clear Fields'>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class='col-md-3'></div>
|
||||
</div>
|
||||
|
||||
<div class='setup-footer well'>
|
||||
Polr is <a href='http://en.wikipedia.org/wiki/Open-source_software'>open-source
|
||||
software</a> licensed under the <a href='//www.gnu.org/copyleft/gpl.html'>GPLv2+
|
||||
License</a>. By continuing to use Polr, you agree to the terms of the GPL License.
|
||||
|
||||
<div>
|
||||
Polr Version {{env('VERSION')}} released {{env('VERSION_RELMONTH')}} {{env('VERSION_RELDAY')}}, {{env('VERSION_RELYEAR')}} -
|
||||
<a href='//github.com/cydrobolt/polr'>Github</a></div></div><br />
|
||||
|
||||
<span>
|
||||
© Copyright {{env('VERSION_RELYEAR')}}
|
||||
<a href='//cydrobolt.com'>Chaoyi Zha</a> &
|
||||
<a href='//github.com/Cydrobolt/polr/graphs/contributors'>Other Polr Contributors</a>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
|
Loading…
Reference in New Issue
Block a user