Make application name configurable and add repo URL
This commit is contained in:
parent
0f1f9b9ede
commit
0b44d10f06
|
@ -1,3 +1,6 @@
|
||||||
|
APP_NAME=pastethingy
|
||||||
|
APP_REPO=https://git.fuwafuwa.moe/lesderid/pastethingy
|
||||||
|
|
||||||
APP_DEBUG=true
|
APP_DEBUG=true
|
||||||
APP_URL=http://pastethingy.app
|
APP_URL=http://pastethingy.app
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,28 @@
|
||||||
|
|
||||||
return [
|
return [
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Application Name
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| Global human-readable name for the application.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
'name' => env('APP_NAME', 'pastethingy'),
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Application Repository URL
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| Repository URL for the application.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
'repo' => env('APP_REPO', 'https://git.fuwafuwa.moe/lesderid/pastethingy'),
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Application Debug Mode
|
| Application Debug Mode
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>pastethingy</title>
|
<title>{{ config('app.name') }}</title>
|
||||||
|
|
||||||
<link href='https://fonts.googleapis.com/css?family=Roboto+Mono:400,300' rel='stylesheet' type='text/css'>
|
<link href='https://fonts.googleapis.com/css?family=Roboto+Mono:400,300' rel='stylesheet' type='text/css'>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
/* how do I CSS */
|
/* how do I CSS */
|
||||||
|
|
||||||
html, body {
|
html, body {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
@ -57,7 +57,7 @@
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
margin: 0 0;
|
margin: 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
label {
|
label {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
|
@ -80,16 +80,16 @@
|
||||||
if(e.keyCode === 9) { //tab
|
if(e.keyCode === 9) { //tab
|
||||||
var start = this.selectionStart;
|
var start = this.selectionStart;
|
||||||
var end = this.selectionEnd;
|
var end = this.selectionEnd;
|
||||||
|
|
||||||
var target = e.target;
|
var target = e.target;
|
||||||
var value = target.value;
|
var value = target.value;
|
||||||
|
|
||||||
target.value = value.substring(0, start)
|
target.value = value.substring(0, start)
|
||||||
+ "\t"
|
+ "\t"
|
||||||
+ value.substring(end);
|
+ value.substring(end);
|
||||||
|
|
||||||
this.selectionStart = this.selectionEnd = start + 1;
|
this.selectionStart = this.selectionEnd = start + 1;
|
||||||
|
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
},false);
|
},false);
|
||||||
|
@ -98,7 +98,7 @@
|
||||||
@endif
|
@endif
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<header>pastethingy</header>
|
<header>{{ config('app.name') }}</header>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<form action="/paste" method="post">
|
<form action="/paste" method="post">
|
||||||
|
@ -190,6 +190,7 @@
|
||||||
@else
|
@else
|
||||||
<a href="/?js=1">Tab key support (requires JS)</a>
|
<a href="/?js=1">Tab key support (requires JS)</a>
|
||||||
@endif
|
@endif
|
||||||
|
<p>· <a href="{{ config('app.repo') }}">Source code</a></p>
|
||||||
<p>· Dates and times are UTC.</p>
|
<p>· Dates and times are UTC.</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="title">pastethingy</div>
|
<div class="title">{{ config('app.name') }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Reference in New Issue