minor changes
This commit is contained in:
		
							parent
							
								
									df147d9014
								
							
						
					
					
						commit
						da2422e44a
					
				| 
						 | 
					@ -40,9 +40,9 @@ class Shortlink extends Model
 | 
				
			||||||
        $this->save();
 | 
					        $this->save();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    function generateNewId(int $length = 6): string {
 | 
					    function generateNewId(int $length = 5): string {
 | 
				
			||||||
        $characters = 'qwrtypsdfghjklzxcvbnmQWRTYPSDFGHJKLZXCVBNM256789_';
 | 
					        $characters = 'qwrtypsdfghjklzxcvbnmQWRTYPSDFGHJKLZXCVBNM256789_';
 | 
				
			||||||
        // try n x 2 times to generate a new id, if it finds an id, return it, otherwise, try to look for an id of length + 1
 | 
					        // try n x 2 times to generate a new id, if it finds an id, return it, otherwise, try to look for an id of length n + 1
 | 
				
			||||||
        for ($i = 0; $i < $length * 2; $i++) {
 | 
					        for ($i = 0; $i < $length * 2; $i++) {
 | 
				
			||||||
            $id = '';
 | 
					            $id = '';
 | 
				
			||||||
            for ($i = 0; $i < $length; $i++) {
 | 
					            for ($i = 0; $i < $length; $i++) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -395,6 +395,7 @@ button {
 | 
				
			||||||
table {
 | 
					table {
 | 
				
			||||||
    font-size: 1.5em;
 | 
					    font-size: 1.5em;
 | 
				
			||||||
    border-collapse: collapse;
 | 
					    border-collapse: collapse;
 | 
				
			||||||
 | 
					    margin-bottom: 40px;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
table td, table th {
 | 
					table td, table th {
 | 
				
			||||||
| 
						 | 
					@ -420,10 +421,6 @@ table th:last-child, table td:last-child {
 | 
				
			||||||
    border-right: none;
 | 
					    border-right: none;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
table {
 | 
					 | 
				
			||||||
    margin-bottom: 40px;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
footer {
 | 
					footer {
 | 
				
			||||||
    margin-top: auto;
 | 
					    margin-top: auto;
 | 
				
			||||||
    height: 50px;
 | 
					    height: 50px;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -5,10 +5,15 @@
 | 
				
			||||||
@endsection
 | 
					@endsection
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@section('content')
 | 
					@section('content')
 | 
				
			||||||
 | 
					    <div id="title-container" class="container">
 | 
				
			||||||
        <h1>Profile</h1>
 | 
					        <h1>Profile</h1>
 | 
				
			||||||
 | 
					    </div>
 | 
				
			||||||
 | 
					    <div id="profile-container" class="container">
 | 
				
			||||||
        <p>Username: <em>{{ Auth::user()->name }}</em></p>
 | 
					        <p>Username: <em>{{ Auth::user()->name }}</em></p>
 | 
				
			||||||
        <p>Email: <em>{{ Auth::user()->email }}</em></p>
 | 
					        <p>Email: <em>{{ Auth::user()->email }}</em></p>
 | 
				
			||||||
        <p>Created at: <em>{{ Auth::user()->created_at }}</em></p>
 | 
					        <p>Created at: <em>{{ Auth::user()->created_at }}</em></p>
 | 
				
			||||||
 | 
					    </div>
 | 
				
			||||||
 | 
					    <div id="table-container" class="container">
 | 
				
			||||||
        <table>
 | 
					        <table>
 | 
				
			||||||
            <tr>
 | 
					            <tr>
 | 
				
			||||||
                <th>Link</th>
 | 
					                <th>Link</th>
 | 
				
			||||||
| 
						 | 
					@ -23,4 +28,5 @@
 | 
				
			||||||
                </tr>
 | 
					                </tr>
 | 
				
			||||||
            @endforeach
 | 
					            @endforeach
 | 
				
			||||||
        </table>
 | 
					        </table>
 | 
				
			||||||
 | 
					    </div>
 | 
				
			||||||
@endsection
 | 
					@endsection
 | 
				
			||||||
		Loading…
	
		Reference in New Issue