Skip to content

Commit 80644a1

Browse files
committed
Updated first setup page
1 parent 8315940 commit 80644a1

File tree

4 files changed

+52
-3
lines changed

4 files changed

+52
-3
lines changed

app/Http/Controllers/InstallerController.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ public function createAdmin(request $request)
5050

5151
$email = $request->email;
5252
$password = $request->password;
53+
$handle = $request->handle;
54+
$name = $request->name;
5355

5456

5557
if(DB::table('users')->count() == '0'){
@@ -59,11 +61,11 @@ public function createAdmin(request $request)
5961
Schema::enableForeignKeyConstraints();
6062

6163
$user = User::create([
62-
'name' => 'Admin',
64+
'name' => $name,
6365
'email' => $email,
6466
'email_verified_at' => '0001-01-01 00:00:00',
6567
'password' => Hash::make($password),
66-
'littlelink_name' => 'admin',
68+
'littlelink_name' => $handle,
6769
'littlelink_description' => 'admin page',
6870
'block' => 'no',
6971
]);

resources/views/installer/installer.blade.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,13 @@
148148
<input style="max-width:275px;" class="form-control" placeholder="[email protected]" name="email" type="email" required>
149149
<label>Admin password:</label>
150150
<input style="max-width:275px;" class="form-control" placeholder="12345678" name="password" type="password" required>
151+
<label>Handle:</label>
152+
<div class="input-group">
153+
<div class="input-group-prepend"><div class="input-group-text">@</div></div>
154+
<input style="max-width:237px; padding-left:50px;" class="form-control" name="handle" type="text" />
155+
</div>
156+
<label>Name:</label>
157+
<input style="max-width:275px;" class="form-control" name="name" type="text" />
151158
<div class="input-group">
152159
</div></div><br>
153160
<input type="hidden" name="_token" value="{{csrf_token()}}">

resources/views/layouts/installing.blade.php

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,46 @@
186186
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
187187
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
188188
}
189+
.input-group {
190+
position: relative;
191+
display: --webkit-box;
192+
display: --ms-flexbox;
193+
-ms-flex-wrap: wrap;
194+
flex-wrap: wrap;
195+
-webkit-box-align: stretch;
196+
-ms-flex-align: stretch;
197+
align-items: stretch;
198+
width: 100%;
199+
z-index: 200000;
200+
}
201+
.input-group-text {
202+
display: -webkit-box;
203+
display: -ms-flexbox;
204+
display: flex;
205+
-webkit-box-align: center;
206+
-ms-flex-align: center;
207+
align-items: center;
208+
padding: 0.375rem 1rem;
209+
margin-bottom: -52px;
210+
font-size: 1rem;
211+
font-weight: 400;
212+
line-height: 1.5;
213+
color: #495057;
214+
text-align: center;
215+
dark-space: nowrap;
216+
background-color: #e9ecef;
217+
border: 1px solid #ced4da;
218+
border-top-left-radius: 0.25rem;
219+
border-bottom-left-radius: 0.25rem;
220+
z-index: 200000;
221+
}
222+
.input-group-prepend {
223+
margin-right: -1px;
224+
display: flex;
225+
display: -webkit-box;
226+
display: -ms-flexbox;
227+
z-index: 200000;
228+
}
189229
.glass-container{
190230
display: block;
191231
padding: 10px;

resources/views/littlelink.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function themeAsset($path){
7575

7676
<!-- Custom icons font-awesome -->
7777
<script src="{{ asset('studio/external-dependencies/fontawesome.js') }}" crossorigin="anonymous"></script>
78-
<link rel="stylesheet" href="{{ asset('studio/external-dependencies/fontawesome.css') }}"/>
78+
<link rel="stylesheet" href="{{ asset('studio/external-dependencies/fontawesome.css') }}" />
7979

8080
<link href="//fonts.bunny.net/css?family=Open+Sans:400,600,800&display=swap" rel="stylesheet">
8181
<link rel="stylesheet" href="{{ asset('littlelink/css/normalize.css') }}">

0 commit comments

Comments
 (0)