Skip to content
Permalink
Browse files

Subtitle WIP - Create Controller, Cookie Handler in Global Routes and…

… add more Data in View
  • Loading branch information...
Insax committed Jun 4, 2017
1 parent fb418fc commit eaf3294100c8e8c228b980bcd0e58db8711c5f60
@@ -6,8 +6,17 @@
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Support\Facades\View;
use Illuminate\Http\Request;
class Controller extends BaseController
{
use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
public function __construct(Request $request)
{
$cookies = $request->cookie('projects');
if($cookies)
View::share('cookies', $cookies);
}
}
@@ -0,0 +1,13 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class SubtitleController extends Controller
{
public function index()
{
return view('subtitle.home');
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square150x150logo src="/mstile-150x150.png"/>
<TileColor>#da532c</TileColor>
</tile>
</msapplication>
</browserconfig>

Large diffs are not rendered by default.

BIN +862 Bytes public/favicon-16x16.png
Binary file not shown.
Binary file not shown.
BIN +13.6 KB (1300%) public/favicon.ico
Binary file not shown.
@@ -0,0 +1,18 @@
{
"name": "",
"icons": [
{
"src": "/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}
Binary file not shown.
@@ -0,0 +1,57 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
width="600.000000pt" height="600.000000pt" viewBox="0 0 600.000000 600.000000"
preserveAspectRatio="xMidYMid meet">
<metadata>
Created by potrace 1.11, written by Peter Selinger 2001-2013
</metadata>
<g transform="translate(0.000000,600.000000) scale(0.100000,-0.100000)"
fill="#000000" stroke="none">
<path d="M2875 5972 c-2 -2 -29 -5 -62 -7 -62 -4 -148 -13 -198 -21 -16 -2
-43 -6 -60 -8 -428 -55 -937 -264 -1307 -538 -154 -114 -366 -306 -468 -424
-425 -491 -662 -1032 -736 -1679 -2 -16 -6 -67 -8 -112 -2 -45 -6 -86 -8 -90
-9 -17 5 -328 16 -390 2 -10 7 -49 10 -87 4 -38 9 -72 11 -76 2 -3 6 -24 9
-46 39 -292 197 -720 372 -1010 78 -130 206 -312 256 -365 7 -8 36 -41 63 -74
28 -33 97 -106 155 -164 247 -244 548 -448 890 -604 93 -43 330 -124 445 -153
17 -4 35 -8 40 -10 33 -8 165 -36 195 -40 19 -3 60 -9 90 -14 56 -9 107 -15
235 -26 115 -10 295 -11 295 -1 0 5 7 4 15 -3 8 -7 15 -8 15 -3 0 5 15 9 33 9
39 1 183 13 217 19 14 2 43 6 65 10 22 3 47 7 55 10 8 2 31 6 50 9 281 44 681
195 955 361 147 89 365 244 373 267 2 4 7 8 12 8 15 0 221 197 315 301 107
117 267 338 349 479 60 103 156 303 199 410 40 103 101 285 111 336 3 10 11
48 20 84 8 36 18 83 22 104 3 21 8 48 10 60 36 169 57 526 40 691 -3 28 -8 79
-11 115 -8 79 -13 117 -27 195 -6 33 -12 69 -13 80 -2 11 -11 52 -20 90 -9 39
-19 78 -21 89 -4 24 -44 156 -54 181 -4 11 -22 61 -40 110 -31 86 -147 333
-207 441 -16 28 -63 102 -105 165 -267 399 -632 732 -1055 961 -290 158 -672
286 -968 324 -22 2 -46 7 -53 9 -13 5 -174 18 -229 19 -18 1 -33 3 -33 6 0 5
-250 7 -255 2z m275 -406 c69 -3 136 -8 150 -10 14 -3 43 -7 65 -10 245 -28
634 -156 854 -280 35 -20 67 -36 72 -36 5 0 9 -4 9 -10 0 -5 5 -10 11 -10 13
0 169 -104 252 -168 263 -201 506 -478 669 -762 41 -71 114 -220 138 -280 12
-30 26 -64 30 -75 12 -28 61 -167 65 -185 2 -8 18 -68 34 -133 16 -65 32 -137
35 -160 3 -23 7 -51 9 -62 15 -67 22 -177 22 -380 0 -261 -6 -328 -47 -530
-67 -328 -207 -656 -397 -929 -62 -91 -57 -83 -141 -186 -248 -302 -579 -553
-945 -715 -106 -47 -258 -102 -334 -121 -9 -2 -43 -11 -76 -19 -33 -9 -69 -18
-80 -20 -11 -2 -45 -8 -75 -14 -85 -16 -109 -20 -174 -27 -115 -12 -131 -13
-281 -13 -228 -1 -317 8 -560 54 -97 19 -268 71 -400 122 -105 41 -336 155
-382 189 -17 13 -34 24 -37 24 -17 0 -261 181 -335 249 -352 318 -584 665
-733 1096 -47 135 -103 360 -113 460 -3 26 -14 121 -20 165 -5 40 -5 344 0
406 4 52 15 151 21 187 12 76 15 93 19 107 2 8 7 31 10 50 9 56 53 213 86 308
144 411 408 803 729 1081 36 31 70 61 76 66 140 122 428 294 650 388 147 62
461 146 606 163 29 3 64 8 78 10 14 3 81 7 150 11 69 3 126 7 128 8 2 2 11 1
20 -1 9 -1 73 -5 142 -8z"/>
<path d="M2930 4050 c0 -3 171 -518 381 -1145 l381 -1140 212 0 211 0 57 165
c31 91 57 167 58 170 2 3 4 10 6 15 2 10 349 1045 547 1635 l102 306 -297 0
-297 0 -15 -51 c-8 -27 -43 -142 -76 -255 -33 -113 -65 -216 -71 -230 -5 -14
-11 -34 -13 -45 -5 -24 -51 -181 -71 -240 -7 -22 -39 -128 -71 -235 -31 -107
-60 -198 -64 -203 -6 -7 -21 38 -85 253 -8 25 -34 113 -60 195 -25 83 -48 157
-50 165 -2 8 -48 157 -101 330 l-96 316 -294 0 c-162 0 -294 -3 -294 -6z"/>
<path d="M1320 4007 c-1 -51 -1 -2093 0 -2185 l0 -83 133 3 132 3 2 488 c0
269 4 491 7 494 3 4 162 7 353 9 220 1 363 6 388 13 22 7 51 14 65 16 57 12
207 95 260 147 103 98 169 223 187 352 23 161 -2 322 -70 451 -38 71 -142 178
-218 222 -69 41 -182 81 -262 92 -34 5 -268 9 -519 10 l-458 0 0 -32z m975
-216 c135 -44 224 -126 267 -248 69 -198 -2 -419 -166 -512 -103 -59 -141 -64
-476 -65 -168 -1 -312 0 -320 2 -13 3 -15 55 -13 405 1 221 2 410 2 419 1 23
39 24 386 17 187 -4 293 -10 320 -18z"/>
</g>
</svg>
@@ -2,6 +2,7 @@
// Body
$body-bg: #161618;


// Borders
$laravel-border-color: darken($body-bg, 10%);
$list-group-border: $laravel-border-color;
@@ -24,7 +25,7 @@ $line-height-base: 1.6;
$text-color: #636b6f;

// Navbar
$navbar-default-bg: #161618;
$navbar-default-bg: #040404;

// Buttons
$btn-default-color: $text-color;
@@ -793,4 +793,34 @@ $panel-default-heading-bg: #161618;
display: none;
}
}
}
}

.jumbotron {
background-color: #161618;
}

.container .jumbotron a {
color: #333333;
&:hover {
color: #EE4D2E;
cursor: pointer;
}
}

.navbar-default .navbar-nav > li > a {
color: #fff;
}

.navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus {
color: #EE4D2E;
}

body {
color: #fff;
}

.navbar-default .navbar-brand {
color: #fff;
text-transform: uppercase;
}

@@ -1,9 +1,11 @@
@extends('layouts.app')

@section('content')
<div class="content">
<div class="title m-b-md">
Changelog
<div class="container text-center">
<div class="jumbotron">
<div class="row">
<h1>pr0verter</h1>
</div>
</div>
</div>
<div class="container col-md-6 col-md-offset-3">
@@ -1,10 +1,11 @@
@extends('layouts.app')
@section('content')
<div class="content">
<div class="title m-b-md">
mp4 Converter
<div class="container text-center">
<div class="jumbotron">
<div class="row">
<h1>pr0verter</h1>
</div>
</div>
</div>
<div class="container-steps slider-start-active">
<div class="steps">
<div class="step step-start">
@@ -162,6 +163,7 @@
</div>
</div>
</div>
</div>



@@ -5,6 +5,14 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

<!-- Favicons -->
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/manifest.json">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<meta name="theme-color" content="#ffffff">

<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">

@@ -49,14 +57,23 @@
<div class="collapse navbar-collapse" id="app-navbar-collapse">
<!-- Left Side Of Navbar -->
<ul class="nav navbar-nav">
<li><a href="{{ url('converter') }}">mp4 Converter</a></li>
<li><a href="{{ url('faq') }}">FAQ</a></li>
<li><a href="{{ url('contact') }}">Kontakt</a></li>
<li><a href="{{ url('changelog') }}">Changelog</a></li>
<li class="{{Route::is('converter') ? 'active' : ''}}"><a href="{{ route('converter') }}">mp4 Converter</a></li>
<li class="{{Route::is('subtitle') ? 'active' : ''}}"><a href="{{ route('subtitle') }}">Subtitle Editor</a></li>
</ul>

<!-- Right Side Of Navbar -->
<ul class="nav navbar-nav navbar-right">
<li class="{{Route::is('faq') ? 'active' : ''}}"><a href="{{ route('faq') }}">FAQ</a></li>
<li class="{{Route::is('contact') ? 'active' : ''}}"><a href="{{ route('contact') }}">Kontakt</a></li>
<li class="{{Route::is('changelog') ? 'active' : ''}}"><a href="{{ route('changelog') }}">Changelog</a></li>
@if(isset($cookies))
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Deine pr0jekte <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#">Action</a></li>
</ul>
</li>
@endif
</ul>
</div>
</div>
@@ -1,14 +1,15 @@
@extends('layouts.app')
@section('content')
<div class="content">
<div class="title m-b-md">
Kontakt
</div>

<div class="links">
<a href="http://pr0gramm.com/user/kabel2" target="_blank">@kabel2</a>
<a href="http://pr0gramm.com/user/insax" target="_blank">@insax</a>
<a href="mailto:pr0verter@gmail.com?Subject=pr0verter" target="_blank">pr0verter@gmail.com</a>
<div class="container text-center">
<div class="jumbotron">
<div class="row">
<h1>pr0verter</h1>
</div>
<div class="row">
| <a href="http://pr0gramm.com/user/kabel2" target="_blank">@kabel2</a> |
<a href="http://pr0gramm.com/user/insax" target="_blank">@insax</a> |
<a href="mailto:pr0verter@gmail.com?Subject=pr0verter" target="_blank">pr0verter@gmail.com</a> |
</div>
</div>
</div>
@endsection
@@ -1,8 +1,10 @@
@extends('layouts.app')
@section('content')
<div class="content">
<div class="title m-b-md">
FAQ
<div class="container text-center">
<div class="jumbotron">
<div class="row">
<h1>FAQ</h1>
</div>
</div>
</div>
<div class="container col-md-5 col-md-offset-4 row">
@@ -1,19 +1,18 @@
@extends('layouts.app')

@section('content')
<div class="flex-center position-ref full-height">

</div>
<div class="content">
<div class="title m-b-md">
pr0verter
</div>

<div class="links">
<a href="{{ route('converter') }}">mp4 Converter</a>
<a href="{{ route('faq') }}">FAQ</a>
<a href="{{ route('contact') }}">Kontakt</a>
<a href="{{ route('changelog') }}">Changelog</a>
<div class="container text-center">
<div class="jumbotron">
<div class="row">
<h1>pr0verter</h1>
</div>
<div class="row">
| <a href="{{ route('converter') }}">mp4 Converter</a> |
<a href="{{ route('subtitle') }}">Subtitle Editor</a> |
<a href="{{ route('faq') }}">FAQ</a> |
<a href="{{ route('contact') }}">Kontakt</a> |
<a href="{{ route('changelog') }}">Changelog</a> |
</div>
</div>
</div>
@endsection
@@ -0,0 +1,11 @@
@extends('layouts.app')

@section('content')
<div class="container text-center">
<div class="jumbotron">
<div class="row">
<h1>Untertitel Editor</h1>
</div>
</div>
</div>
@endsection
@@ -19,6 +19,7 @@
Route::get('converter', 'StaticsController@converter')->name('converter');
Route::get('faq', 'StaticsController@faq')->name('faq');
Route::get('contact', 'StaticsController@contact')->name('contact');
Route::get('subtitle', 'SubtitleController@index')->name('subtitle');
});
/*
@@ -37,6 +38,14 @@
Route::post('convert', 'ConverterController@convert')->name('convert');
});
/*
* Subtitle Routes
*/
Route::group(['prefix' => 'subtitle', 'middleware' => 'web'], function () {
Route::get('test', 'SubtitleController@test')->name('test');
});
/*
* Routes for file handling
*/

0 comments on commit eaf3294

Please sign in to comment.
You can’t perform that action at this time.