├── .dockerignore ├── .env.example ├── .gitattributes ├── .gitignore ├── Dockerfile ├── app ├── Console │ ├── Commands │ │ └── Inspire.php │ └── Kernel.php ├── Events │ └── Event.php ├── Exceptions │ └── Handler.php ├── Http │ ├── Controllers │ │ ├── AccountController.php │ │ ├── Auth │ │ │ ├── AuthController.php │ │ │ └── PasswordController.php │ │ ├── AuthorController.php │ │ ├── BaseController.php │ │ ├── CategoryController.php │ │ ├── Controller.php │ │ ├── HomeController.php │ │ ├── LoginController.php │ │ ├── ProjectController.php │ │ ├── StatsController.php │ │ └── WelcomeController.php │ ├── Kernel.php │ ├── Middleware │ │ ├── Authenticate.php │ │ ├── AutoLanguage.php │ │ ├── RedirectIfAuthenticated.php │ │ └── VerifyCsrfToken.php │ ├── Requests │ │ └── Request.php │ └── routes.php ├── Jobs │ └── Command.php ├── Listeners │ ├── Commands │ │ └── .gitkeep │ └── Events │ │ └── .gitkeep ├── Models │ ├── Author.php │ ├── Category.php │ ├── Ndless.php │ ├── Project.php │ └── User.php ├── Providers │ ├── AppServiceProvider.php │ ├── BusServiceProvider.php │ ├── ConfigServiceProvider.php │ ├── EventServiceProvider.php │ └── RouteServiceProvider.php ├── Services │ └── Registrar.php └── User.php ├── artisan ├── bootstrap ├── app.php ├── autoload.php └── cache │ └── .gitignore ├── composer.json ├── composer.lock ├── config ├── app.php ├── auth.php ├── cache.php ├── compile.php ├── database.php ├── filesystems.php ├── mail.php ├── queue.php ├── services.php ├── session.php └── view.php ├── database ├── .gitignore ├── migrations │ ├── .gitkeep │ ├── 2014_03_18_171300_create_authors_table.php │ ├── 2014_03_18_171423_create_users_table.php │ ├── 2014_03_18_172218_create_projects_table.php │ ├── 2014_03_18_173747_create_ndless_table.php │ ├── 2014_03_18_173911_create_compatibility_table.php │ ├── 2014_03_18_174825_create_categories_table.php │ ├── 2014_03_18_175035_create_project_categories_table.php │ ├── 2014_03_18_175906_create_project_authors_table.php │ ├── 2014_03_22_182951_users_add_editor_admin_columns.php │ ├── 2014_04_11_140118_projects_on_delete_changes.php │ ├── 2014_04_11_140733_project_authors_on_delete_changes.php │ ├── 2014_05_24_183352_projects_add_featured_column.php │ ├── 2014_05_24_184232_projects_add_screenshot_column.php │ ├── 2014_08_23_160223_users_add_remember_token_column.php │ ├── 2014_09_15_132451_projects_remove_screenshot_column.php │ └── 2016_01_06_193557_ndless_add_deprecated_column.php └── seeds │ ├── .gitkeep │ └── DatabaseSeeder.php ├── database_dump.sql ├── docker ├── default └── supervisord.conf ├── gulpfile.js ├── package.json ├── phpspec.yml ├── phpunit.xml ├── public ├── .htaccess ├── css │ ├── login.less │ └── login.min.css ├── favicon.ico ├── favicon.png ├── img │ └── screenshot │ │ └── .gitkeep ├── index.php ├── packages │ └── .gitkeep └── robots.txt ├── readme.md ├── resources ├── assets │ ├── js │ │ ├── clickcounter.js │ │ ├── projectlist.js │ │ └── stats.js │ └── less │ │ └── app.less ├── lang │ ├── de │ │ ├── account.php │ │ ├── authors.php │ │ ├── categories.php │ │ ├── login.php │ │ ├── master.php │ │ ├── pagination.php │ │ ├── projects.php │ │ ├── reminders.php │ │ ├── stats.php │ │ └── validation.php │ ├── en │ │ ├── account.php │ │ ├── authors.php │ │ ├── categories.php │ │ ├── login.php │ │ ├── master.php │ │ ├── pagination.php │ │ ├── passwords.php │ │ ├── projects.php │ │ ├── reminders.php │ │ ├── stats.php │ │ └── validation.php │ └── fr │ │ ├── account.php │ │ ├── authors.php │ │ ├── categories.php │ │ ├── login.php │ │ ├── master.php │ │ ├── pagination.php │ │ ├── projects.php │ │ ├── reminders.php │ │ ├── stats.php │ │ └── validation.php └── views │ ├── account.blade.php │ ├── app.blade.php │ ├── auth │ ├── login.blade.php │ ├── password.blade.php │ ├── register.blade.php │ └── reset.blade.php │ ├── author │ ├── create.blade.php │ ├── edit.blade.php │ ├── index.blade.php │ ├── partials │ │ └── list.blade.php │ └── show.blade.php │ ├── category │ └── show.blade.php │ ├── emails │ ├── auth │ │ └── reminder.blade.php │ └── password.blade.php │ ├── errors │ └── 503.blade.php │ ├── hello.php │ ├── home.blade.php │ ├── layouts │ └── master.blade.php │ ├── login.blade.php │ ├── project │ ├── create.blade.php │ ├── edit.blade.php │ ├── index.blade.php │ ├── partials │ │ ├── controls.blade.php │ │ ├── list.blade.php │ │ └── row.blade.php │ └── show.blade.php │ ├── stats.blade.php │ ├── vendor │ └── .gitkeep │ └── welcome.blade.php ├── server.php ├── storage ├── .gitignore ├── app │ └── .gitignore ├── framework │ ├── .gitignore │ ├── cache │ │ └── .gitignore │ ├── sessions │ │ └── .gitignore │ └── views │ │ └── .gitignore └── logs │ └── .gitignore └── tests ├── ExampleTest.php └── TestCase.php /.dockerignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | composer.phar -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- 1 | APP_ENV=local 2 | APP_DEBUG=true 3 | APP_KEY=SomeRandomString 4 | APP_URL=http://localhost 5 | 6 | DB_HOST=localhost 7 | DB_DATABASE=homestead 8 | DB_USERNAME=homestead 9 | DB_PASSWORD=secret 10 | 11 | CACHE_DRIVER=file 12 | SESSION_DRIVER=file 13 | QUEUE_DRIVER=sync 14 | 15 | MAIL_DRIVER=smtp 16 | MAIL_HOST=mailtrap.io 17 | MAIL_PORT=2525 18 | MAIL_USERNAME=null 19 | MAIL_PASSWORD=null 20 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | *.css linguist-vendored 3 | *.less linguist-vendored 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /vendor 2 | /node_modules 3 | /.idea 4 | .env 5 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM php:7.0-fpm 2 | RUN apt-get update -y && apt-get install -y openssl zip unzip git libmcrypt-dev supervisor nginx 3 | RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer 4 | RUN docker-php-ext-install pdo mbstring mcrypt pdo_mysql 5 | WORKDIR /var/www/html 6 | COPY . /var/www/html 7 | RUN chown -R www-data:www-data storage/ bootstrap/cache/ 8 | RUN composer install 9 | 10 | COPY docker/supervisord.conf /etc/supervisor/supervisord.conf 11 | COPY docker/default /etc/nginx/sites-available/default 12 | 13 | VOLUME /var/www/html/public/img/screenshot 14 | 15 | ENTRYPOINT ["supervisord", "-c", "/etc/supervisor/supervisord.conf"] 16 | -------------------------------------------------------------------------------- /app/Console/Commands/Inspire.php: -------------------------------------------------------------------------------- 1 | comment(PHP_EOL.Inspiring::quote().PHP_EOL); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /app/Console/Kernel.php: -------------------------------------------------------------------------------- 1 | command('inspire') 26 | ->hourly(); 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /app/Events/Event.php: -------------------------------------------------------------------------------- 1 | middleware('auth', array( 7 | 'on' => 'postIndex' 8 | )); 9 | } 10 | 11 | public function getIndex() 12 | { 13 | return View::make('account'); 14 | } 15 | 16 | public function postIndex() 17 | { 18 | if(Input::has('changepw')) 19 | { 20 | $rules = array( 21 | 'oldPass' => 'required', 22 | 'newPass1' => 'required|min:8', 23 | 'newPass2' => 'required|min:8|same:newPass1' 24 | ); 25 | 26 | $input = Input::all(); 27 | $validator = Validator::make($input,$rules); 28 | 29 | if($validator->fails()) 30 | { 31 | return Redirect::to('/account')->withErrors($validator); 32 | } 33 | 34 | $user = Auth::user(); 35 | 36 | if(!Auth::validate(array('name' => $user->name, 'password' => $input['oldPass']))) 37 | { 38 | return Redirect::to('/account')->withErrors(array('message' => 'You have entered a wrong password.')); 39 | } 40 | 41 | $user->password = Hash::make($input['newPass2']); 42 | 43 | $user->save(); 44 | 45 | return Redirect::to('/account'); 46 | } 47 | elseif(Input::has('removeacc')) 48 | { 49 | $rules = array( 50 | 'remPass' => 'required|min:8' 51 | ); 52 | 53 | $input = Input::all(); 54 | $validator = Validator::make($input,$rules); 55 | 56 | if($validator->fails()) 57 | { 58 | return Redirect::to('/account')->withErrors($validator); 59 | } 60 | 61 | $user = Auth::user(); 62 | 63 | if(!Auth::validate(array('name' => $user->name, 'password' => $input['remPass']))) 64 | { 65 | return Redirect::to('/account')->withErrors(array('message' => 'You have entered a wrong password.')); 66 | } 67 | 68 | $user->delete(); 69 | 70 | Auth::logout(); 71 | 72 | return Redirect::to('/'); 73 | } 74 | } 75 | } 76 | 77 | ?> 78 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/AuthController.php: -------------------------------------------------------------------------------- 1 | auth = $auth; 33 | $this->registrar = $registrar; 34 | 35 | $this->middleware('guest', ['except' => 'getLogout']); 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/PasswordController.php: -------------------------------------------------------------------------------- 1 | auth = $auth; 33 | $this->passwords = $passwords; 34 | 35 | $this->middleware('guest'); 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /app/Http/Controllers/AuthorController.php: -------------------------------------------------------------------------------- 1 | middleware('auth:editor', array( 8 | 'except' => array( 9 | 'index', 10 | 'show' 11 | ) 12 | )); 13 | } 14 | 15 | /** 16 | * Display a listing of the resource. 17 | * 18 | * @return Response 19 | */ 20 | public function index() 21 | { 22 | return View::make('author.index') 23 | ->withAuthors( 24 | DB::table('authors') 25 | ->select(DB::raw('id, count(project) as count, name')) 26 | ->join('project_authors', 'project_authors.author', '=', 'authors.id') 27 | ->groupBy('author') 28 | ->orderBy('name') 29 | ->get() 30 | ); 31 | } 32 | 33 | /** 34 | * Show the form for creating a new resource. 35 | * 36 | * @return Response 37 | */ 38 | public function create() 39 | { 40 | return View::make('author.create'); 41 | } 42 | 43 | /** 44 | * Store a newly created resource in storage. 45 | * 46 | * @return Response 47 | */ 48 | public function store() 49 | { 50 | $rules = array( 51 | 'name' => 'required' 52 | ); 53 | 54 | $input = Input::all(); 55 | $validator = Validator::make($input,$rules); 56 | 57 | if($validator->fails()) 58 | { 59 | return Redirect::to("/authors/create")->withErrors($validator)->withInput(); 60 | } 61 | 62 | $author = new Author; 63 | 64 | $author->name = $input['name']; 65 | 66 | $author->save(); 67 | 68 | return Redirect::to("/authors/{$author->id}"); 69 | } 70 | 71 | /** 72 | * Display the specified resource. 73 | * 74 | * @param int $id 75 | * @return Response 76 | */ 77 | public function show($id) 78 | { 79 | return View::make('author.show') 80 | ->withAuthor( 81 | DB::table('authors') 82 | ->select(DB::raw('count(project) as count, name, id')) 83 | ->where('id', '=', $id) 84 | ->join('project_authors', 'project_authors.author', '=', 'authors.id') 85 | ->first() 86 | ) 87 | ->withProjects( 88 | Author::with('projects', 'projects.categories', 'projects.versions', 'projects.authors')->findOrFail($id)->projects->sortBy(function($project) { 89 | return strtolower($project->name); 90 | }) 91 | ); 92 | } 93 | 94 | /** 95 | * Show the form for editing the specified resource. 96 | * 97 | * @param int $id 98 | * @return Response 99 | */ 100 | public function edit($id) 101 | { 102 | return View::make('author.edit') 103 | ->withAuthor( 104 | Author::findOrFail($id) 105 | ); 106 | } 107 | 108 | /** 109 | * Update the specified resource in storage. 110 | * 111 | * @param int $id 112 | * @return Response 113 | */ 114 | public function update($id) 115 | { 116 | $rules = array( 117 | 'name' => 'required' 118 | ); 119 | 120 | $input = Input::all(); 121 | $validator = Validator::make($input,$rules); 122 | 123 | if($validator->fails()) 124 | { 125 | return Redirect::to("/authors/$id")->withErrors($validator); 126 | } 127 | 128 | $author = Author::findOrFail($id); 129 | 130 | $author->name = $input['name']; 131 | 132 | $author->save(); 133 | 134 | return Redirect::to("/authors/{$author->id}"); 135 | } 136 | 137 | /** 138 | * Remove the specified resource from storage. 139 | * 140 | * @param int $id 141 | * @return Response 142 | */ 143 | public function destroy($id) 144 | { 145 | Author::destroy($id); 146 | 147 | return Redirect::to('/authors'); 148 | } 149 | 150 | } -------------------------------------------------------------------------------- /app/Http/Controllers/BaseController.php: -------------------------------------------------------------------------------- 1 | layout)) 13 | { 14 | $this->layout = View::make($this->layout); 15 | } 16 | } 17 | 18 | } -------------------------------------------------------------------------------- /app/Http/Controllers/CategoryController.php: -------------------------------------------------------------------------------- 1 | withCategory( 15 | DB::table('categories') 16 | ->select(DB::raw('count(project) as count, name, id')) 17 | ->where('id', '=', $id) 18 | ->join('project_categories', 'project_categories.category', '=', 'categories.id') 19 | ->first() 20 | ) 21 | ->withProjects( 22 | Category::with('projects.authors', 'projects.versions', 'projects.categories')->findOrFail($id)->projects->sortBy(function($project) { 23 | return strtolower($project->name); 24 | }) 25 | ); 26 | } 27 | 28 | 29 | } 30 | -------------------------------------------------------------------------------- /app/Http/Controllers/Controller.php: -------------------------------------------------------------------------------- 1 | withNavbar(false); 7 | } 8 | 9 | public function postIndex() 10 | { 11 | $rules = array( 12 | 'username' => 'required|alpha_dash', 13 | 'password' => 'required|min:8' 14 | ); 15 | 16 | $input = Input::all(); 17 | $validator = Validator::make($input,$rules); 18 | 19 | $validator->sometimes('username', 'unique:users,name', function($input) { 20 | return $input->action == 'register'; 21 | }); 22 | 23 | if($validator->fails()) 24 | { 25 | return Redirect::to('login')->withErrors($validator); 26 | } 27 | 28 | if($input['action'] == 'login') 29 | { 30 | if(Auth::attempt(array( 31 | 'name' => $input['username'], 32 | 'password' => $input['password'] 33 | ), Input::has('remember') ? true : false)) { 34 | return Redirect::to('/'); 35 | } 36 | else { 37 | return Redirect::to('login')->withErrors(array('message' => Lang::get('login.error'))); 38 | } 39 | } 40 | elseif($input['action'] == 'register') 41 | { 42 | $user = new User; 43 | $user->name = $input['username']; 44 | $user->password = Hash::make($input['password']); 45 | $user->save(); 46 | Auth::login($user); 47 | return Redirect::intended('/'); 48 | } 49 | } 50 | } -------------------------------------------------------------------------------- /app/Http/Controllers/StatsController.php: -------------------------------------------------------------------------------- 1 | array( 8 | 'countAuthors' => DB::table('authors')->count(), 9 | 'countProjects' => DB::table('projects')->count(), 10 | 'countClicks' => DB::table('projects')->sum('clicks'), 11 | 'countCx' => DB::table('projects')->where('cx',1)->count(), 12 | 'countClassic' => DB::table('projects')->where('classic',1)->count(), 13 | 'comp' => DB::table('compatibility') 14 | ->join('ndless', 'compatibility.version', '=', 'ndless.id') 15 | ->groupBy('compatibility.version') 16 | ->orderBy('version', 'DESC') 17 | ->select(DB::raw('count(project) as count, ndless.version as version')) 18 | ->get(), 19 | 'author' => DB::table('project_authors') 20 | ->join('authors', 'author', '=', 'id') 21 | ->groupBy('name') 22 | ->orderBy('count', 'DESC') 23 | ->select(DB::raw('count(project) as count, name')) 24 | ->take(10) 25 | ->get() 26 | ) 27 | )); 28 | } 29 | } -------------------------------------------------------------------------------- /app/Http/Controllers/WelcomeController.php: -------------------------------------------------------------------------------- 1 | middleware('guest'); 24 | } 25 | 26 | /** 27 | * Show the application welcome screen to the user. 28 | * 29 | * @return Response 30 | */ 31 | public function index() 32 | { 33 | return view('welcome'); 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /app/Http/Kernel.php: -------------------------------------------------------------------------------- 1 | 'App\Http\Middleware\Authenticate', 28 | 'auth.basic' => 'Illuminate\Auth\Middleware\AuthenticateWithBasicAuth', 29 | 'guest' => 'App\Http\Middleware\RedirectIfAuthenticated', 30 | 'csrf' => 'App\Http\Middleware\VerifyCsrfToken', 31 | ]; 32 | 33 | } 34 | -------------------------------------------------------------------------------- /app/Http/Middleware/Authenticate.php: -------------------------------------------------------------------------------- 1 | auth = $auth; 24 | } 25 | 26 | /** 27 | * Handle an incoming request. 28 | * 29 | * @param \Illuminate\Http\Request $request 30 | * @param \Closure $next 31 | * @return mixed 32 | */ 33 | public function handle($request, Closure $next, $editor = '') 34 | { 35 | if ($this->auth->guest() || ($editor == 'editor' && !$this->auth->user()->editor)) 36 | { 37 | if ($request->ajax()) 38 | { 39 | return response('Unauthorized.', 401); 40 | } 41 | else 42 | { 43 | return redirect()->guest('login'); 44 | } 45 | } 46 | 47 | return $next($request); 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /app/Http/Middleware/AutoLanguage.php: -------------------------------------------------------------------------------- 1 | segment(1); 17 | $session_lang = session()->get('language'); 18 | $browser_lang = substr($request->server('HTTP_ACCEPT_LANGUAGE'), 0, 2); 19 | 20 | if(!empty($url_lang) && in_array($url_lang, config()->get('app.languages'))) 21 | { 22 | if($url_lang != $session_lang) 23 | session()->put('language',$url_lang); 24 | 25 | app()->setLocale($url_lang); 26 | } 27 | else if(!empty($session_lang) && in_array($session_lang, config()->get('app.languages'))) 28 | { 29 | app()->setLocale($session_lang); 30 | } 31 | else if(!empty($browser_lang) AND in_array($browser_lang, config()->get('app.languages'))) 32 | { 33 | if($browser_lang != $session_lang) 34 | session()->put('language',$browser_lang); 35 | 36 | app()->setLocale($browser_lang); 37 | } 38 | else 39 | { 40 | app()->setLocale(config()->get('app.locale')); 41 | } 42 | 43 | return $next($request); 44 | } 45 | 46 | } 47 | -------------------------------------------------------------------------------- /app/Http/Middleware/RedirectIfAuthenticated.php: -------------------------------------------------------------------------------- 1 | auth = $auth; 25 | } 26 | 27 | /** 28 | * Handle an incoming request. 29 | * 30 | * @param \Illuminate\Http\Request $request 31 | * @param \Closure $next 32 | * @return mixed 33 | */ 34 | public function handle($request, Closure $next) 35 | { 36 | if ($this->auth->check()) 37 | { 38 | return new RedirectResponse(url('/home')); 39 | } 40 | 41 | return $next($request); 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /app/Http/Middleware/VerifyCsrfToken.php: -------------------------------------------------------------------------------- 1 | 'csrf', function() 26 | { 27 | Auth::logout(); 28 | return Redirect::to('/'); 29 | })); 30 | 31 | Route::get('impressum', function(){ 32 | return View::make('impressum'); 33 | }); 34 | 35 | Route::get('projects/{id}/click', 'ProjectController@click'); 36 | 37 | Route::controller('login','LoginController'); 38 | Route::controller('account','AccountController'); 39 | Route::controller('stats','StatsController'); 40 | 41 | Route::resource('projects','ProjectController'); 42 | Route::resource('authors','AuthorController'); 43 | Route::resource('categories','CategoryController'); 44 | -------------------------------------------------------------------------------- /app/Jobs/Command.php: -------------------------------------------------------------------------------- 1 | belongsToMany('Project','project_authors','author','project'); 9 | } 10 | } -------------------------------------------------------------------------------- /app/Models/Category.php: -------------------------------------------------------------------------------- 1 | belongsToMany('Project','project_categories','category','project'); 7 | } 8 | } -------------------------------------------------------------------------------- /app/Models/Ndless.php: -------------------------------------------------------------------------------- 1 | belongsToMany('Project', 'compatibility', 'version', 'project'); 10 | } 11 | 12 | public static function latest() 13 | { 14 | $ttl = Config::get('cache.ttl'); 15 | 16 | return Cache::remember('latestVersion', $ttl, function() { 17 | return Ndless::orderBy('version','desc')->first(); 18 | }); 19 | } 20 | 21 | public static function current() 22 | { 23 | $ttl = Config::get('cache.ttl'); 24 | 25 | return Cache::remember('currentVersions', $ttl, function() { 26 | return Ndless::where('deprecated', 0)->orderBy('version')->get(); 27 | }); 28 | } 29 | 30 | public function getFilterAttribute() 31 | { 32 | return str_replace('.', '', $this->version); 33 | } 34 | } -------------------------------------------------------------------------------- /app/Models/Project.php: -------------------------------------------------------------------------------- 1 | belongsToMany('Author','project_authors','project','author'); 9 | } 10 | 11 | public function categories() 12 | { 13 | return $this->belongsToMany('Category','project_categories','project','category'); 14 | } 15 | 16 | public function versions() 17 | { 18 | return $this->belongsToMany('Ndless','compatibility','project','version')->orderBy('ndless.version'); 19 | } 20 | 21 | function getDeprecatedAttribute() 22 | { 23 | $ttl = Config::get('cache.ttl'); 24 | 25 | $versions = Cache::remember('versions', $ttl, function() { 26 | return DB::table('compatibility') 27 | ->select('compatibility.project') 28 | ->distinct() 29 | ->join('ndless', 'ndless.id', '=', 'compatibility.version') 30 | ->where('ndless.deprecated', '=', '0') 31 | ->get(); 32 | }); 33 | 34 | foreach($versions as $elem) { 35 | if($elem->project == $this->id) { 36 | return false; 37 | } 38 | } 39 | 40 | return true; 41 | } 42 | 43 | function getClassicFormattedAttribute() 44 | { 45 | if($this->classic) 46 | return 'Classic'; 47 | else 48 | return 'Classic'; 49 | } 50 | 51 | function getCxFormattedAttribute() 52 | { 53 | if($this->cx) 54 | return 'CX'; 55 | else 56 | return 'CX'; 57 | } 58 | 59 | function getDownloadLinkAttribute() 60 | { 61 | if($this->tiplanet) 62 | return "http://tiplanet.org/forum/archives_voir.php?id={$this->tiplanet}"; 63 | elseif($this->ticalc) 64 | return "http://www.ticalc.org/archives/files/fileinfo/".substr(strval($this->ticalc),0,3)."/{$this->ticalc}.html"; 65 | else 66 | return; 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /app/Models/User.php: -------------------------------------------------------------------------------- 1 | getKey(); 33 | } 34 | 35 | /** 36 | * Get the password for the user. 37 | * 38 | * @return string 39 | */ 40 | public function getAuthPassword() 41 | { 42 | return $this->password; 43 | } 44 | 45 | /** 46 | * Get the e-mail address where password reminders are sent. 47 | * 48 | * @return string 49 | */ 50 | public function getReminderEmail() 51 | { 52 | return $this->email; 53 | } 54 | 55 | public function getRememberToken() 56 | { 57 | return $this->remember_token; 58 | } 59 | 60 | public function setRememberToken($value) 61 | { 62 | $this->remember_token = $value; 63 | } 64 | 65 | public function getRememberTokenName() 66 | { 67 | return 'remember_token'; 68 | } 69 | 70 | } -------------------------------------------------------------------------------- /app/Providers/AppServiceProvider.php: -------------------------------------------------------------------------------- 1 | app->bind( 29 | 'Illuminate\Contracts\Auth\Registrar', 30 | 'App\Services\Registrar' 31 | ); 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /app/Providers/BusServiceProvider.php: -------------------------------------------------------------------------------- 1 | mapUsing(function($command) 17 | { 18 | return Dispatcher::simpleMapping( 19 | $command, 'App\Commands', 'App\Handlers\Commands' 20 | ); 21 | }); 22 | } 23 | 24 | /** 25 | * Register any application services. 26 | * 27 | * @return void 28 | */ 29 | public function register() 30 | { 31 | // 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /app/Providers/ConfigServiceProvider.php: -------------------------------------------------------------------------------- 1 | [ 15 | 'EventListener', 16 | ], 17 | ]; 18 | 19 | /** 20 | * Register any other events for your application. 21 | * 22 | * @param \Illuminate\Contracts\Events\Dispatcher $events 23 | * @return void 24 | */ 25 | public function boot(DispatcherContract $events) 26 | { 27 | parent::boot($events); 28 | 29 | // 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /app/Providers/RouteServiceProvider.php: -------------------------------------------------------------------------------- 1 | group(['namespace' => $this->namespace], function($router) 97 | { 98 | require app_path('Http/routes.php'); 99 | }); 100 | } 101 | 102 | } 103 | -------------------------------------------------------------------------------- /app/Services/Registrar.php: -------------------------------------------------------------------------------- 1 | 'required|max:255', 19 | 'email' => 'required|email|max:255|unique:users', 20 | 'password' => 'required|confirmed|min:6', 21 | ]); 22 | } 23 | 24 | /** 25 | * Create a new user instance after a valid registration. 26 | * 27 | * @param array $data 28 | * @return User 29 | */ 30 | public function create(array $data) 31 | { 32 | return User::create([ 33 | 'name' => $data['name'], 34 | 'email' => $data['email'], 35 | 'password' => bcrypt($data['password']), 36 | ]); 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /app/User.php: -------------------------------------------------------------------------------- 1 | make('Illuminate\Contracts\Console\Kernel'); 32 | 33 | $status = $kernel->handle( 34 | $input = new Symfony\Component\Console\Input\ArgvInput, 35 | new Symfony\Component\Console\Output\ConsoleOutput 36 | ); 37 | 38 | /* 39 | |-------------------------------------------------------------------------- 40 | | Shutdown The Application 41 | |-------------------------------------------------------------------------- 42 | | 43 | | Once Artisan has finished running. We will fire off the shutdown events 44 | | so that any final work may be done by the application before we shut 45 | | down the process. This is the last thing to happen to the request. 46 | | 47 | */ 48 | 49 | $kernel->terminate($input, $status); 50 | 51 | exit($status); 52 | -------------------------------------------------------------------------------- /bootstrap/app.php: -------------------------------------------------------------------------------- 1 | singleton( 30 | 'Illuminate\Contracts\Http\Kernel', 31 | 'App\Http\Kernel' 32 | ); 33 | 34 | $app->singleton( 35 | 'Illuminate\Contracts\Console\Kernel', 36 | 'App\Console\Kernel' 37 | ); 38 | 39 | $app->singleton( 40 | 'Illuminate\Contracts\Debug\ExceptionHandler', 41 | 'App\Exceptions\Handler' 42 | ); 43 | 44 | /* 45 | |-------------------------------------------------------------------------- 46 | | Return The Application 47 | |-------------------------------------------------------------------------- 48 | | 49 | | This script returns the application instance. The instance is given to 50 | | the calling script so we can separate the building of the instances 51 | | from the actual running of the application and sending responses. 52 | | 53 | */ 54 | 55 | return $app; 56 | -------------------------------------------------------------------------------- /bootstrap/autoload.php: -------------------------------------------------------------------------------- 1 | env('APP_DEBUG'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Application URL 21 | |-------------------------------------------------------------------------- 22 | | 23 | | This URL is used by the console to properly generate URLs when using 24 | | the Artisan command line tool. You should set this to the root of 25 | | your application so that it is used when running Artisan tasks. 26 | | 27 | */ 28 | 29 | 'url' => env('APP_URL', 'http://localhost'), 30 | 31 | /* 32 | |-------------------------------------------------------------------------- 33 | | Application Timezone 34 | |-------------------------------------------------------------------------- 35 | | 36 | | Here you may specify the default timezone for your application, which 37 | | will be used by the PHP date and date-time functions. We have gone 38 | | ahead and set this to a sensible default for you out of the box. 39 | | 40 | */ 41 | 42 | 'timezone' => 'UTC', 43 | 44 | /* 45 | |-------------------------------------------------------------------------- 46 | | Application Locale Configuration 47 | |-------------------------------------------------------------------------- 48 | | 49 | | The application locale determines the default locale that will be used 50 | | by the translation service provider. You are free to set this value 51 | | to any of the locales which will be supported by the application. 52 | | 53 | */ 54 | 55 | 'locale' => 'en', 56 | 57 | /* 58 | |-------------------------------------------------------------------------- 59 | | Application Fallback Locale 60 | |-------------------------------------------------------------------------- 61 | | 62 | | The fallback locale determines the locale to use when the current one 63 | | is not available. You may change the value to correspond to any of 64 | | the language folders that are provided through your application. 65 | | 66 | */ 67 | 68 | 'fallback_locale' => 'en', 69 | 70 | 'languages' => array('en', 'de', 'fr'), 71 | 72 | /* 73 | |-------------------------------------------------------------------------- 74 | | Encryption Key 75 | |-------------------------------------------------------------------------- 76 | | 77 | | This key is used by the Illuminate encrypter service and should be set 78 | | to a random, 32 character string, otherwise these encrypted strings 79 | | will not be safe. Please do this before deploying an application! 80 | | 81 | */ 82 | 83 | 'key' => env('APP_KEY', 'SomeRandomString'), 84 | 85 | 'cipher' => MCRYPT_RIJNDAEL_128, 86 | 87 | /* 88 | |-------------------------------------------------------------------------- 89 | | Logging Configuration 90 | |-------------------------------------------------------------------------- 91 | | 92 | | Here you may configure the log settings for your application. Out of 93 | | the box, Laravel uses the Monolog PHP logging library. This gives 94 | | you a variety of powerful log handlers / formatters to utilize. 95 | | 96 | | Available Settings: "single", "daily", "syslog", "errorlog" 97 | | 98 | */ 99 | 100 | 'log' => 'daily', 101 | 102 | /* 103 | |-------------------------------------------------------------------------- 104 | | Autoloaded Service Providers 105 | |-------------------------------------------------------------------------- 106 | | 107 | | The service providers listed here will be automatically loaded on the 108 | | request to your application. Feel free to add your own services to 109 | | this array to grant expanded functionality to your applications. 110 | | 111 | */ 112 | 113 | 'providers' => [ 114 | 115 | /* 116 | * Laravel Framework Service Providers... 117 | */ 118 | 'Illuminate\Foundation\Providers\ArtisanServiceProvider', 119 | 'Illuminate\Auth\AuthServiceProvider', 120 | 'Illuminate\Bus\BusServiceProvider', 121 | 'Illuminate\Cache\CacheServiceProvider', 122 | 'Illuminate\Foundation\Providers\ConsoleSupportServiceProvider', 123 | 'Illuminate\Routing\ControllerServiceProvider', 124 | 'Illuminate\Cookie\CookieServiceProvider', 125 | 'Illuminate\Database\DatabaseServiceProvider', 126 | 'Illuminate\Encryption\EncryptionServiceProvider', 127 | 'Illuminate\Filesystem\FilesystemServiceProvider', 128 | 'Illuminate\Foundation\Providers\FoundationServiceProvider', 129 | 'Illuminate\Hashing\HashServiceProvider', 130 | 'Illuminate\Mail\MailServiceProvider', 131 | 'Illuminate\Pagination\PaginationServiceProvider', 132 | 'Illuminate\Pipeline\PipelineServiceProvider', 133 | 'Illuminate\Queue\QueueServiceProvider', 134 | 'Illuminate\Redis\RedisServiceProvider', 135 | 'Illuminate\Auth\Passwords\PasswordResetServiceProvider', 136 | 'Illuminate\Session\SessionServiceProvider', 137 | 'Illuminate\Translation\TranslationServiceProvider', 138 | 'Illuminate\Validation\ValidationServiceProvider', 139 | 'Illuminate\View\ViewServiceProvider', 140 | 'Illuminate\Broadcasting\BroadcastServiceProvider', 141 | 142 | /* 143 | * Application Service Providers... 144 | */ 145 | 'App\Providers\AppServiceProvider', 146 | 'App\Providers\BusServiceProvider', 147 | 'App\Providers\ConfigServiceProvider', 148 | 'App\Providers\EventServiceProvider', 149 | 'App\Providers\RouteServiceProvider', 150 | 151 | Barryvdh\Debugbar\ServiceProvider::class, 152 | 153 | ], 154 | 155 | /* 156 | |-------------------------------------------------------------------------- 157 | | Class Aliases 158 | |-------------------------------------------------------------------------- 159 | | 160 | | This array of class aliases will be registered when this application 161 | | is started. However, feel free to register as many as you wish as 162 | | the aliases are "lazy" loaded so they don't hinder performance. 163 | | 164 | */ 165 | 166 | 'aliases' => [ 167 | 168 | 'App' => 'Illuminate\Support\Facades\App', 169 | 'Artisan' => 'Illuminate\Support\Facades\Artisan', 170 | 'Auth' => 'Illuminate\Support\Facades\Auth', 171 | 'Blade' => 'Illuminate\Support\Facades\Blade', 172 | 'Bus' => 'Illuminate\Support\Facades\Bus', 173 | 'Cache' => 'Illuminate\Support\Facades\Cache', 174 | 'Config' => 'Illuminate\Support\Facades\Config', 175 | 'Cookie' => 'Illuminate\Support\Facades\Cookie', 176 | 'Crypt' => 'Illuminate\Support\Facades\Crypt', 177 | 'DB' => 'Illuminate\Support\Facades\DB', 178 | 'Eloquent' => 'Illuminate\Database\Eloquent\Model', 179 | 'Event' => 'Illuminate\Support\Facades\Event', 180 | 'File' => 'Illuminate\Support\Facades\File', 181 | 'Hash' => 'Illuminate\Support\Facades\Hash', 182 | 'Input' => 'Illuminate\Support\Facades\Input', 183 | 'Inspiring' => 'Illuminate\Foundation\Inspiring', 184 | 'Lang' => 'Illuminate\Support\Facades\Lang', 185 | 'Log' => 'Illuminate\Support\Facades\Log', 186 | 'Mail' => 'Illuminate\Support\Facades\Mail', 187 | 'Password' => 'Illuminate\Support\Facades\Password', 188 | 'Queue' => 'Illuminate\Support\Facades\Queue', 189 | 'Redirect' => 'Illuminate\Support\Facades\Redirect', 190 | 'Redis' => 'Illuminate\Support\Facades\Redis', 191 | 'Request' => 'Illuminate\Support\Facades\Request', 192 | 'Response' => 'Illuminate\Support\Facades\Response', 193 | 'Route' => 'Illuminate\Support\Facades\Route', 194 | 'Schema' => 'Illuminate\Support\Facades\Schema', 195 | 'Session' => 'Illuminate\Support\Facades\Session', 196 | 'Storage' => 'Illuminate\Support\Facades\Storage', 197 | 'URL' => 'Illuminate\Support\Facades\URL', 198 | 'Validator' => 'Illuminate\Support\Facades\Validator', 199 | 'View' => 'Illuminate\Support\Facades\View', 200 | 'Debugbar' => Barryvdh\Debugbar\Facade::class, 201 | 202 | ], 203 | 204 | ]; 205 | -------------------------------------------------------------------------------- /config/auth.php: -------------------------------------------------------------------------------- 1 | 'eloquent', 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Authentication Model 23 | |-------------------------------------------------------------------------- 24 | | 25 | | When using the "Eloquent" authentication driver, we need to know which 26 | | Eloquent model should be used to retrieve your users. Of course, it 27 | | is often just the "User" model but you may use whatever you like. 28 | | 29 | */ 30 | 31 | 'model' => 'App\User', 32 | 33 | /* 34 | |-------------------------------------------------------------------------- 35 | | Authentication Table 36 | |-------------------------------------------------------------------------- 37 | | 38 | | When using the "Database" authentication driver, we need to know which 39 | | table should be used to retrieve your users. We have chosen a basic 40 | | default value but you may easily change it to any table you like. 41 | | 42 | */ 43 | 44 | 'table' => 'users', 45 | 46 | /* 47 | |-------------------------------------------------------------------------- 48 | | Password Reset Settings 49 | |-------------------------------------------------------------------------- 50 | | 51 | | Here you may set the options for resetting passwords including the view 52 | | that is your password reset e-mail. You can also set the name of the 53 | | table that maintains all of the reset tokens for your application. 54 | | 55 | | The expire time is the number of minutes that the reset token should be 56 | | considered valid. This security feature keeps tokens short-lived so 57 | | they have less time to be guessed. You may change this as needed. 58 | | 59 | */ 60 | 61 | 'password' => [ 62 | 'email' => 'emails.password', 63 | 'table' => 'password_resets', 64 | 'expire' => 60, 65 | ], 66 | 67 | ]; 68 | -------------------------------------------------------------------------------- /config/cache.php: -------------------------------------------------------------------------------- 1 | env('CACHE_DRIVER', 'file'), 17 | 18 | 'ttl' => env('CACHE_TTL', 30), 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Cache Stores 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may define all of the cache "stores" for your application as 26 | | well as their drivers. You may even define multiple stores for the 27 | | same cache driver to group types of items stored in your caches. 28 | | 29 | */ 30 | 31 | 'stores' => [ 32 | 33 | 'apc' => [ 34 | 'driver' => 'apc' 35 | ], 36 | 37 | 'array' => [ 38 | 'driver' => 'array' 39 | ], 40 | 41 | 'database' => [ 42 | 'driver' => 'database', 43 | 'table' => 'cache', 44 | 'connection' => null, 45 | ], 46 | 47 | 'file' => [ 48 | 'driver' => 'file', 49 | 'path' => storage_path().'/framework/cache', 50 | ], 51 | 52 | 'memcached' => [ 53 | 'driver' => 'memcached', 54 | 'servers' => [ 55 | [ 56 | 'host' => '127.0.0.1', 'port' => 11211, 'weight' => 100 57 | ], 58 | ], 59 | ], 60 | 61 | 'redis' => [ 62 | 'driver' => 'redis', 63 | 'connection' => 'default', 64 | ], 65 | 66 | ], 67 | 68 | /* 69 | |-------------------------------------------------------------------------- 70 | | Cache Key Prefix 71 | |-------------------------------------------------------------------------- 72 | | 73 | | When utilizing a RAM based store such as APC or Memcached, there might 74 | | be other applications utilizing the same cache. So, we'll specify a 75 | | value to get prefixed to all our keys so we can avoid collisions. 76 | | 77 | */ 78 | 79 | 'prefix' => 'laravel', 80 | 81 | ]; 82 | -------------------------------------------------------------------------------- /config/compile.php: -------------------------------------------------------------------------------- 1 | [ 17 | 18 | realpath(__DIR__.'/../app/Providers/AppServiceProvider.php'), 19 | realpath(__DIR__.'/../app/Providers/BusServiceProvider.php'), 20 | realpath(__DIR__.'/../app/Providers/ConfigServiceProvider.php'), 21 | realpath(__DIR__.'/../app/Providers/EventServiceProvider.php'), 22 | realpath(__DIR__.'/../app/Providers/RouteServiceProvider.php'), 23 | 24 | ], 25 | 26 | /* 27 | |-------------------------------------------------------------------------- 28 | | Compiled File Providers 29 | |-------------------------------------------------------------------------- 30 | | 31 | | Here you may list service providers which define a "compiles" function 32 | | that returns additional files that should be compiled, providing an 33 | | easy way to get common files from any packages you are utilizing. 34 | | 35 | */ 36 | 37 | 'providers' => [ 38 | // 39 | ], 40 | 41 | ]; 42 | -------------------------------------------------------------------------------- /config/database.php: -------------------------------------------------------------------------------- 1 | PDO::FETCH_CLASS, 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Default Database Connection Name 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Here you may specify which of the database connections below you wish 24 | | to use as your default connection for all database work. Of course 25 | | you may use many connections at once using the Database library. 26 | | 27 | */ 28 | 29 | 'default' => 'mysql', 30 | 31 | /* 32 | |-------------------------------------------------------------------------- 33 | | Database Connections 34 | |-------------------------------------------------------------------------- 35 | | 36 | | Here are each of the database connections setup for your application. 37 | | Of course, examples of configuring each database platform that is 38 | | supported by Laravel is shown below to make development simple. 39 | | 40 | | 41 | | All database work in Laravel is done through the PHP PDO facilities 42 | | so make sure you have the driver for your particular database of 43 | | choice installed on your machine before you begin development. 44 | | 45 | */ 46 | 47 | 'connections' => [ 48 | 49 | 'sqlite' => [ 50 | 'driver' => 'sqlite', 51 | 'database' => storage_path().'/database.sqlite', 52 | 'prefix' => '', 53 | ], 54 | 55 | 'mysql' => [ 56 | 'driver' => 'mysql', 57 | 'host' => env('DB_HOST', 'localhost'), 58 | 'database' => env('DB_DATABASE', 'forge'), 59 | 'username' => env('DB_USERNAME', 'forge'), 60 | 'password' => env('DB_PASSWORD', ''), 61 | 'charset' => 'utf8', 62 | 'collation' => 'utf8_unicode_ci', 63 | 'prefix' => '', 64 | 'strict' => false, 65 | ], 66 | 67 | 'pgsql' => [ 68 | 'driver' => 'pgsql', 69 | 'host' => env('DB_HOST', 'localhost'), 70 | 'database' => env('DB_DATABASE', 'forge'), 71 | 'username' => env('DB_USERNAME', 'forge'), 72 | 'password' => env('DB_PASSWORD', ''), 73 | 'charset' => 'utf8', 74 | 'prefix' => '', 75 | 'schema' => 'public', 76 | ], 77 | 78 | 'sqlsrv' => [ 79 | 'driver' => 'sqlsrv', 80 | 'host' => env('DB_HOST', 'localhost'), 81 | 'database' => env('DB_DATABASE', 'forge'), 82 | 'username' => env('DB_USERNAME', 'forge'), 83 | 'password' => env('DB_PASSWORD', ''), 84 | 'prefix' => '', 85 | ], 86 | 87 | ], 88 | 89 | /* 90 | |-------------------------------------------------------------------------- 91 | | Migration Repository Table 92 | |-------------------------------------------------------------------------- 93 | | 94 | | This table keeps track of all the migrations that have already run for 95 | | your application. Using this information, we can determine which of 96 | | the migrations on disk haven't actually been run in the database. 97 | | 98 | */ 99 | 100 | 'migrations' => 'migrations', 101 | 102 | /* 103 | |-------------------------------------------------------------------------- 104 | | Redis Databases 105 | |-------------------------------------------------------------------------- 106 | | 107 | | Redis is an open source, fast, and advanced key-value store that also 108 | | provides a richer set of commands than a typical key-value systems 109 | | such as APC or Memcached. Laravel makes it easy to dig right in. 110 | | 111 | */ 112 | 113 | 'redis' => [ 114 | 115 | 'cluster' => false, 116 | 117 | 'default' => [ 118 | 'host' => '127.0.0.1', 119 | 'port' => 6379, 120 | 'database' => env('REDIS_DB', 0), 121 | ], 122 | 123 | ], 124 | 125 | ]; 126 | -------------------------------------------------------------------------------- /config/filesystems.php: -------------------------------------------------------------------------------- 1 | 'local', 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Default Cloud Filesystem Disk 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Many applications store files both locally and in the cloud. For this 26 | | reason, you may specify a default "cloud" driver here. This driver 27 | | will be bound as the Cloud disk implementation in the container. 28 | | 29 | */ 30 | 31 | 'cloud' => 's3', 32 | 33 | /* 34 | |-------------------------------------------------------------------------- 35 | | Filesystem Disks 36 | |-------------------------------------------------------------------------- 37 | | 38 | | Here you may configure as many filesystem "disks" as you wish, and you 39 | | may even configure multiple disks of the same driver. Defaults have 40 | | been setup for each driver as an example of the required options. 41 | | 42 | */ 43 | 44 | 'disks' => [ 45 | 46 | 'local' => [ 47 | 'driver' => 'local', 48 | 'root' => storage_path().'/app', 49 | ], 50 | 51 | 's3' => [ 52 | 'driver' => 's3', 53 | 'key' => 'your-key', 54 | 'secret' => 'your-secret', 55 | 'region' => 'your-region', 56 | 'bucket' => 'your-bucket', 57 | ], 58 | 59 | 'rackspace' => [ 60 | 'driver' => 'rackspace', 61 | 'username' => 'your-username', 62 | 'key' => 'your-key', 63 | 'container' => 'your-container', 64 | 'endpoint' => 'https://identity.api.rackspacecloud.com/v2.0/', 65 | 'region' => 'IAD', 66 | 'url_type' => 'publicURL' 67 | ], 68 | 69 | ], 70 | 71 | ]; 72 | -------------------------------------------------------------------------------- /config/mail.php: -------------------------------------------------------------------------------- 1 | env('MAIL_DRIVER', 'smtp'), 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | SMTP Host Address 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may provide the host address of the SMTP server used by your 26 | | applications. A default option is provided that is compatible with 27 | | the Mailgun mail service which will provide reliable deliveries. 28 | | 29 | */ 30 | 31 | 'host' => env('MAIL_HOST', 'smtp.mailgun.org'), 32 | 33 | /* 34 | |-------------------------------------------------------------------------- 35 | | SMTP Host Port 36 | |-------------------------------------------------------------------------- 37 | | 38 | | This is the SMTP port used by your application to deliver e-mails to 39 | | users of the application. Like the host we have set this value to 40 | | stay compatible with the Mailgun e-mail application by default. 41 | | 42 | */ 43 | 44 | 'port' => env('MAIL_PORT', 587), 45 | 46 | /* 47 | |-------------------------------------------------------------------------- 48 | | Global "From" Address 49 | |-------------------------------------------------------------------------- 50 | | 51 | | You may wish for all e-mails sent by your application to be sent from 52 | | the same address. Here, you may specify a name and address that is 53 | | used globally for all e-mails that are sent by your application. 54 | | 55 | */ 56 | 57 | 'from' => ['address' => null, 'name' => null], 58 | 59 | /* 60 | |-------------------------------------------------------------------------- 61 | | E-Mail Encryption Protocol 62 | |-------------------------------------------------------------------------- 63 | | 64 | | Here you may specify the encryption protocol that should be used when 65 | | the application send e-mail messages. A sensible default using the 66 | | transport layer security protocol should provide great security. 67 | | 68 | */ 69 | 70 | 'encryption' => 'tls', 71 | 72 | /* 73 | |-------------------------------------------------------------------------- 74 | | SMTP Server Username 75 | |-------------------------------------------------------------------------- 76 | | 77 | | If your SMTP server requires a username for authentication, you should 78 | | set it here. This will get used to authenticate with your server on 79 | | connection. You may also set the "password" value below this one. 80 | | 81 | */ 82 | 83 | 'username' => env('MAIL_USERNAME'), 84 | 85 | /* 86 | |-------------------------------------------------------------------------- 87 | | SMTP Server Password 88 | |-------------------------------------------------------------------------- 89 | | 90 | | Here you may set the password required by your SMTP server to send out 91 | | messages from your application. This will be given to the server on 92 | | connection so that the application will be able to send messages. 93 | | 94 | */ 95 | 96 | 'password' => env('MAIL_PASSWORD'), 97 | 98 | /* 99 | |-------------------------------------------------------------------------- 100 | | Sendmail System Path 101 | |-------------------------------------------------------------------------- 102 | | 103 | | When using the "sendmail" driver to send e-mails, we will need to know 104 | | the path to where Sendmail lives on this server. A default path has 105 | | been provided here, which will work well on most of your systems. 106 | | 107 | */ 108 | 109 | 'sendmail' => '/usr/sbin/sendmail -bs', 110 | 111 | /* 112 | |-------------------------------------------------------------------------- 113 | | Mail "Pretend" 114 | |-------------------------------------------------------------------------- 115 | | 116 | | When this option is enabled, e-mail will not actually be sent over the 117 | | web and will instead be written to your application's logs files so 118 | | you may inspect the message. This is great for local development. 119 | | 120 | */ 121 | 122 | 'pretend' => false, 123 | 124 | ]; 125 | -------------------------------------------------------------------------------- /config/queue.php: -------------------------------------------------------------------------------- 1 | env('QUEUE_DRIVER', 'sync'), 20 | 21 | /* 22 | |-------------------------------------------------------------------------- 23 | | Queue Connections 24 | |-------------------------------------------------------------------------- 25 | | 26 | | Here you may configure the connection information for each server that 27 | | is used by your application. A default configuration has been added 28 | | for each back-end shipped with Laravel. You are free to add more. 29 | | 30 | */ 31 | 32 | 'connections' => [ 33 | 34 | 'sync' => [ 35 | 'driver' => 'sync', 36 | ], 37 | 38 | 'database' => [ 39 | 'driver' => 'database', 40 | 'table' => 'jobs', 41 | 'queue' => 'default', 42 | 'expire' => 60, 43 | ], 44 | 45 | 'beanstalkd' => [ 46 | 'driver' => 'beanstalkd', 47 | 'host' => 'localhost', 48 | 'queue' => 'default', 49 | 'ttr' => 60, 50 | ], 51 | 52 | 'sqs' => [ 53 | 'driver' => 'sqs', 54 | 'key' => 'your-public-key', 55 | 'secret' => 'your-secret-key', 56 | 'queue' => 'your-queue-url', 57 | 'region' => 'us-east-1', 58 | ], 59 | 60 | 'iron' => [ 61 | 'driver' => 'iron', 62 | 'host' => 'mq-aws-us-east-1.iron.io', 63 | 'token' => 'your-token', 64 | 'project' => 'your-project-id', 65 | 'queue' => 'your-queue-name', 66 | 'encrypt' => true, 67 | ], 68 | 69 | 'redis' => [ 70 | 'driver' => 'redis', 71 | 'queue' => 'default', 72 | 'expire' => 60, 73 | ], 74 | 75 | ], 76 | 77 | /* 78 | |-------------------------------------------------------------------------- 79 | | Failed Queue Jobs 80 | |-------------------------------------------------------------------------- 81 | | 82 | | These options configure the behavior of failed queue job logging so you 83 | | can control which database and table are used to store the jobs that 84 | | have failed. You may change them to any database / table you wish. 85 | | 86 | */ 87 | 88 | 'failed' => [ 89 | 'database' => 'mysql', 'table' => 'failed_jobs', 90 | ], 91 | 92 | ]; 93 | -------------------------------------------------------------------------------- /config/services.php: -------------------------------------------------------------------------------- 1 | [ 18 | 'domain' => '', 19 | 'secret' => '', 20 | ], 21 | 22 | 'mandrill' => [ 23 | 'secret' => '', 24 | ], 25 | 26 | 'ses' => [ 27 | 'key' => '', 28 | 'secret' => '', 29 | 'region' => 'us-east-1', 30 | ], 31 | 32 | 'stripe' => [ 33 | 'model' => 'App\User', 34 | 'secret' => '', 35 | ], 36 | 37 | ]; 38 | -------------------------------------------------------------------------------- /config/session.php: -------------------------------------------------------------------------------- 1 | env('SESSION_DRIVER', 'file'), 20 | 21 | /* 22 | |-------------------------------------------------------------------------- 23 | | Session Lifetime 24 | |-------------------------------------------------------------------------- 25 | | 26 | | Here you may specify the number of minutes that you wish the session 27 | | to be allowed to remain idle before it expires. If you want them 28 | | to immediately expire on the browser closing, set that option. 29 | | 30 | */ 31 | 32 | 'lifetime' => 120, 33 | 34 | 'expire_on_close' => false, 35 | 36 | /* 37 | |-------------------------------------------------------------------------- 38 | | Session Encryption 39 | |-------------------------------------------------------------------------- 40 | | 41 | | This option allows you to easily specify that all of your session data 42 | | should be encrypted before it is stored. All encryption will be run 43 | | automatically by Laravel and you can use the Session like normal. 44 | | 45 | */ 46 | 47 | 'encrypt' => false, 48 | 49 | /* 50 | |-------------------------------------------------------------------------- 51 | | Session File Location 52 | |-------------------------------------------------------------------------- 53 | | 54 | | When using the native session driver, we need a location where session 55 | | files may be stored. A default has been set for you but a different 56 | | location may be specified. This is only needed for file sessions. 57 | | 58 | */ 59 | 60 | 'files' => storage_path().'/framework/sessions', 61 | 62 | /* 63 | |-------------------------------------------------------------------------- 64 | | Session Database Connection 65 | |-------------------------------------------------------------------------- 66 | | 67 | | When using the "database" or "redis" session drivers, you may specify a 68 | | connection that should be used to manage these sessions. This should 69 | | correspond to a connection in your database configuration options. 70 | | 71 | */ 72 | 73 | 'connection' => null, 74 | 75 | /* 76 | |-------------------------------------------------------------------------- 77 | | Session Database Table 78 | |-------------------------------------------------------------------------- 79 | | 80 | | When using the "database" session driver, you may specify the table we 81 | | should use to manage the sessions. Of course, a sensible default is 82 | | provided for you; however, you are free to change this as needed. 83 | | 84 | */ 85 | 86 | 'table' => 'sessions', 87 | 88 | /* 89 | |-------------------------------------------------------------------------- 90 | | Session Sweeping Lottery 91 | |-------------------------------------------------------------------------- 92 | | 93 | | Some session drivers must manually sweep their storage location to get 94 | | rid of old sessions from storage. Here are the chances that it will 95 | | happen on a given request. By default, the odds are 2 out of 100. 96 | | 97 | */ 98 | 99 | 'lottery' => [2, 100], 100 | 101 | /* 102 | |-------------------------------------------------------------------------- 103 | | Session Cookie Name 104 | |-------------------------------------------------------------------------- 105 | | 106 | | Here you may change the name of the cookie used to identify a session 107 | | instance by ID. The name specified here will get used every time a 108 | | new session cookie is created by the framework for every driver. 109 | | 110 | */ 111 | 112 | 'cookie' => 'laravel_session', 113 | 114 | /* 115 | |-------------------------------------------------------------------------- 116 | | Session Cookie Path 117 | |-------------------------------------------------------------------------- 118 | | 119 | | The session cookie path determines the path for which the cookie will 120 | | be regarded as available. Typically, this will be the root path of 121 | | your application but you are free to change this when necessary. 122 | | 123 | */ 124 | 125 | 'path' => '/', 126 | 127 | /* 128 | |-------------------------------------------------------------------------- 129 | | Session Cookie Domain 130 | |-------------------------------------------------------------------------- 131 | | 132 | | Here you may change the domain of the cookie used to identify a session 133 | | in your application. This will determine which domains the cookie is 134 | | available to in your application. A sensible default has been set. 135 | | 136 | */ 137 | 138 | 'domain' => null, 139 | 140 | /* 141 | |-------------------------------------------------------------------------- 142 | | HTTPS Only Cookies 143 | |-------------------------------------------------------------------------- 144 | | 145 | | By setting this option to true, session cookies will only be sent back 146 | | to the server if the browser has a HTTPS connection. This will keep 147 | | the cookie from being sent to you if it can not be done securely. 148 | | 149 | */ 150 | 151 | 'secure' => false, 152 | 153 | ]; 154 | -------------------------------------------------------------------------------- /config/view.php: -------------------------------------------------------------------------------- 1 | [ 17 | realpath(base_path('resources/views')) 18 | ], 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Compiled View Path 23 | |-------------------------------------------------------------------------- 24 | | 25 | | This option determines where all the compiled Blade templates will be 26 | | stored for your application. Typically, this is within the storage 27 | | directory. However, as usual, you are free to change this value. 28 | | 29 | */ 30 | 31 | 'compiled' => realpath(storage_path().'/framework/views'), 32 | 33 | ]; 34 | -------------------------------------------------------------------------------- /database/.gitignore: -------------------------------------------------------------------------------- 1 | *.sqlite 2 | -------------------------------------------------------------------------------- /database/migrations/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compujuckel/ndless-apps/b646238dbc9057b9783ca613fd4abd65666d0cb5/database/migrations/.gitkeep -------------------------------------------------------------------------------- /database/migrations/2014_03_18_171300_create_authors_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('name')->unique(); 19 | $table->timestamps(); 20 | }); 21 | } 22 | 23 | /** 24 | * Reverse the migrations. 25 | * 26 | * @return void 27 | */ 28 | public function down() 29 | { 30 | Schema::drop('authors'); 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /database/migrations/2014_03_18_171423_create_users_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('name')->unique(); 19 | $table->string('password'); 20 | $table->unsignedInteger('author_id')->nullable(); 21 | $table->foreign('author_id')->references('id')->on('authors'); 22 | $table->timestamps(); 23 | }); 24 | } 25 | 26 | /** 27 | * Reverse the migrations. 28 | * 29 | * @return void 30 | */ 31 | public function down() 32 | { 33 | Schema::drop('users'); 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /database/migrations/2014_03_18_172218_create_projects_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('name')->unique(); 19 | $table->text('description'); 20 | $table->boolean('classic'); 21 | $table->boolean('cx'); 22 | $table->integer('tiplanet'); 23 | $table->integer('ticalc'); 24 | $table->text('website'); 25 | $table->integer('clicks'); 26 | $table->timestamps(); 27 | }); 28 | } 29 | 30 | /** 31 | * Reverse the migrations. 32 | * 33 | * @return void 34 | */ 35 | public function down() 36 | { 37 | Schema::drop('projects'); 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /database/migrations/2014_03_18_173747_create_ndless_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('version',3); 19 | }); 20 | } 21 | 22 | /** 23 | * Reverse the migrations. 24 | * 25 | * @return void 26 | */ 27 | public function down() 28 | { 29 | Schema::drop('ndless'); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /database/migrations/2014_03_18_173911_create_compatibility_table.php: -------------------------------------------------------------------------------- 1 | unsignedInteger('project'); 18 | $table->unsignedInteger('version'); 19 | $table->foreign('project')->references('id')->on('projects'); 20 | $table->foreign('version')->references('id')->on('ndless'); 21 | $table->primary(array('project','version')); 22 | }); 23 | } 24 | 25 | /** 26 | * Reverse the migrations. 27 | * 28 | * @return void 29 | */ 30 | public function down() 31 | { 32 | Schema::drop('compatibility'); 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /database/migrations/2014_03_18_174825_create_categories_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('name')->unique(); 19 | }); 20 | } 21 | 22 | /** 23 | * Reverse the migrations. 24 | * 25 | * @return void 26 | */ 27 | public function down() 28 | { 29 | Schema::drop('categories'); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /database/migrations/2014_03_18_175035_create_project_categories_table.php: -------------------------------------------------------------------------------- 1 | unsignedInteger('project'); 18 | $table->unsignedInteger('category'); 19 | $table->foreign('project')->references('id')->on('projects'); 20 | $table->foreign('category')->references('id')->on('categories'); 21 | $table->primary(array('project','category')); 22 | }); 23 | } 24 | 25 | /** 26 | * Reverse the migrations. 27 | * 28 | * @return void 29 | */ 30 | public function down() 31 | { 32 | Schema::drop('project_categories'); 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /database/migrations/2014_03_18_175906_create_project_authors_table.php: -------------------------------------------------------------------------------- 1 | unsignedInteger('project'); 18 | $table->unsignedInteger('author'); 19 | $table->foreign('project')->references('id')->on('projects'); 20 | $table->foreign('author')->references('id')->on('authors'); 21 | $table->primary(array('project','author')); 22 | }); 23 | } 24 | 25 | /** 26 | * Reverse the migrations. 27 | * 28 | * @return void 29 | */ 30 | public function down() 31 | { 32 | Schema::drop('project_authors'); 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /database/migrations/2014_03_22_182951_users_add_editor_admin_columns.php: -------------------------------------------------------------------------------- 1 | boolean('editor')->default(0); 17 | $table->boolean('admin')->default(0); 18 | }); 19 | } 20 | 21 | /** 22 | * Reverse the migrations. 23 | * 24 | * @return void 25 | */ 26 | public function down() 27 | { 28 | Schema::table('users', function($table){ 29 | $table->dropColumn('editor', 'admin'); 30 | }); 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /database/migrations/2014_04_11_140118_projects_on_delete_changes.php: -------------------------------------------------------------------------------- 1 | dropForeign('compatibility_project_foreign'); 18 | $table->foreign('project')->references('id')->on('projects')->onDelete('cascade'); 19 | 20 | $table->dropForeign('compatibility_version_foreign'); 21 | $table->foreign('version')->references('id')->on('ndless')->onDelete('cascade'); 22 | }); 23 | } 24 | 25 | /** 26 | * Reverse the migrations. 27 | * 28 | * @return void 29 | */ 30 | public function down() 31 | { 32 | Schema::table('compatibility', function($table) 33 | { 34 | $table->dropForeign('compatibility_project_foreign'); 35 | $table->foreign('project')->references('id')->on('projects'); 36 | 37 | $table->dropForeign('compatibility_version_foreign'); 38 | $table->foreign('version')->references('id')->on('ndless'); 39 | }); 40 | } 41 | 42 | } 43 | -------------------------------------------------------------------------------- /database/migrations/2014_04_11_140733_project_authors_on_delete_changes.php: -------------------------------------------------------------------------------- 1 | dropForeign('project_authors_project_foreign'); 18 | $table->foreign('project')->references('id')->on('projects')->onDelete('cascade'); 19 | }); 20 | } 21 | 22 | /** 23 | * Reverse the migrations. 24 | * 25 | * @return void 26 | */ 27 | public function down() 28 | { 29 | Schema::table('project_authors', function($table) 30 | { 31 | $table->dropForeign('project_authors_project_foreign'); 32 | $table->foreign('project')->references('id')->on('projects'); 33 | }); 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /database/migrations/2014_05_24_183352_projects_add_featured_column.php: -------------------------------------------------------------------------------- 1 | integer('featured')->nullable(); 18 | }); 19 | } 20 | 21 | /** 22 | * Reverse the migrations. 23 | * 24 | * @return void 25 | */ 26 | public function down() 27 | { 28 | Schema::table('projects', function($table) 29 | { 30 | $table->dropColumn('featured'); 31 | }); 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /database/migrations/2014_05_24_184232_projects_add_screenshot_column.php: -------------------------------------------------------------------------------- 1 | text('screenshot')->nullable(); 18 | }); 19 | } 20 | 21 | /** 22 | * Reverse the migrations. 23 | * 24 | * @return void 25 | */ 26 | public function down() 27 | { 28 | Schema::table('projects', function($table) 29 | { 30 | $table->dropColumn('screenshot'); 31 | }); 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /database/migrations/2014_08_23_160223_users_add_remember_token_column.php: -------------------------------------------------------------------------------- 1 | text('remember_token')->nullable(); 18 | }); 19 | } 20 | 21 | /** 22 | * Reverse the migrations. 23 | * 24 | * @return void 25 | */ 26 | public function down() 27 | { 28 | Schema::table('users', function($table) 29 | { 30 | $table->dropColumn('remember_token'); 31 | }); 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /database/migrations/2014_09_15_132451_projects_remove_screenshot_column.php: -------------------------------------------------------------------------------- 1 | dropColumn('screenshot'); 18 | }); 19 | } 20 | 21 | /** 22 | * Reverse the migrations. 23 | * 24 | * @return void 25 | */ 26 | public function down() 27 | { 28 | Schema::table('projects', function($table) 29 | { 30 | $table->text('screenshot')->nullable(); 31 | }); 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /database/migrations/2016_01_06_193557_ndless_add_deprecated_column.php: -------------------------------------------------------------------------------- 1 | boolean('deprecated'); 17 | }); 18 | } 19 | 20 | /** 21 | * Reverse the migrations. 22 | * 23 | * @return void 24 | */ 25 | public function down() 26 | { 27 | Schema::table('ndless', function($table){ 28 | $table->dropColumn('deprecated'); 29 | }); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /database/seeds/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compujuckel/ndless-apps/b646238dbc9057b9783ca613fd4abd65666d0cb5/database/seeds/.gitkeep -------------------------------------------------------------------------------- /database/seeds/DatabaseSeeder.php: -------------------------------------------------------------------------------- 1 | call('UserTableSeeder'); 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /docker/default: -------------------------------------------------------------------------------- 1 | server { 2 | listen 80; 3 | server_name _; 4 | 5 | root /var/www/html/public; 6 | index index.html index.htm index.php; 7 | 8 | error_log /dev/stderr warn; 9 | access_log /dev/stdout; 10 | 11 | location / { 12 | try_files $uri $uri/ /index.php?$query_string; 13 | 14 | location ~ \.php$ { 15 | fastcgi_split_path_info ^(.+\.php)(/.+)$; 16 | fastcgi_pass 127.0.0.1:9000; 17 | fastcgi_index index.php; 18 | include fastcgi.conf; 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /docker/supervisord.conf: -------------------------------------------------------------------------------- 1 | [supervisord] 2 | logfile = /dev/null 3 | loglevel = info 4 | pidfile = /var/run/supervisord.pid 5 | nodaemon = true 6 | 7 | [program:php-fpm] 8 | command = php-fpm 9 | autostart = true 10 | autorestart = true 11 | stdout_logfile = /dev/stdout 12 | stdout_logfile_maxbytes = 0 13 | stderr_logfile = /dev/stderr 14 | stderr_logfile_maxbytes = 0 15 | 16 | [program:nginx] 17 | command = /usr/sbin/nginx -g "daemon off;" 18 | autostart = true 19 | autorestart = true 20 | stdout_logfile = /dev/stdout 21 | stdout_logfile_maxbytes = 0 22 | stderr_logfile = /dev/stderr 23 | stderr_logfile_maxbytes = 0 -------------------------------------------------------------------------------- /gulpfile.js: -------------------------------------------------------------------------------- 1 | var elixir = require('laravel-elixir'); 2 | 3 | /* 4 | |-------------------------------------------------------------------------- 5 | | Elixir Asset Management 6 | |-------------------------------------------------------------------------- 7 | | 8 | | Elixir provides a clean, fluent API for defining some basic Gulp tasks 9 | | for your Laravel application. By default, we are compiling the Less 10 | | file for our application, as well as publishing vendor resources. 11 | | 12 | */ 13 | 14 | elixir(function(mix) { 15 | mix.less('app.less') 16 | .scripts([ 17 | './node_modules/jquery/dist/jquery.js', 18 | './node_modules/bootstrap/dist/js/bootstrap.js', 19 | './node_modules/list.js/dist/list.js', 20 | './node_modules/holderjs/holder.js', 21 | './node_modules/smooth-scroll/dist/js/smooth-scroll.js', 22 | './node_modules/chart.js/dist/Chart.js', 23 | 'projectlist.js', 24 | 'clickcounter.js', 25 | 'stats.js' 26 | ], 'public/js/app.js') 27 | .version(['js/app.js', 'css/app.css']) 28 | .copy('node_modules/font-awesome/fonts', 'public/fonts') 29 | ; 30 | }); 31 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "devDependencies": { 4 | "bootstrap": "^3.3.7", 5 | "chart.js": "^2.4.0", 6 | "font-awesome": "^4.7.0", 7 | "gulp": "^3.8.8", 8 | "holderjs": "^2.9.4", 9 | "jquery": "^3.1.1", 10 | "laravel-elixir": "*", 11 | "list.js": "^1.4.1", 12 | "smooth-scroll": "github:cferdinandi/smooth-scroll" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /phpspec.yml: -------------------------------------------------------------------------------- 1 | suites: 2 | main: 3 | namespace: App 4 | psr4_prefix: App 5 | src_path: app -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- 1 | 2 | 12 | 13 | 14 | ./tests/ 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /public/.htaccess: -------------------------------------------------------------------------------- 1 | 2 | 3 | Options -MultiViews 4 | 5 | 6 | RewriteEngine On 7 | 8 | # Redirect Trailing Slashes... 9 | RewriteRule ^(.*)/$ /$1 [L,R=301] 10 | 11 | # Handle Front Controller... 12 | RewriteCond %{REQUEST_FILENAME} !-d 13 | RewriteCond %{REQUEST_FILENAME} !-f 14 | RewriteRule ^ index.php [L] 15 | 16 | -------------------------------------------------------------------------------- /public/css/login.less: -------------------------------------------------------------------------------- 1 | body { 2 | background: #eee; 3 | } 4 | 5 | form { 6 | max-width: 330px; 7 | margin: 0 auto; 8 | } -------------------------------------------------------------------------------- /public/css/login.min.css: -------------------------------------------------------------------------------- 1 | body{background:#eee}form{max-width:330px;margin:0 auto} -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compujuckel/ndless-apps/b646238dbc9057b9783ca613fd4abd65666d0cb5/public/favicon.ico -------------------------------------------------------------------------------- /public/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compujuckel/ndless-apps/b646238dbc9057b9783ca613fd4abd65666d0cb5/public/favicon.png -------------------------------------------------------------------------------- /public/img/screenshot/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compujuckel/ndless-apps/b646238dbc9057b9783ca613fd4abd65666d0cb5/public/img/screenshot/.gitkeep -------------------------------------------------------------------------------- /public/index.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | 9 | /* 10 | |-------------------------------------------------------------------------- 11 | | Register The Auto Loader 12 | |-------------------------------------------------------------------------- 13 | | 14 | | Composer provides a convenient, automatically generated class loader for 15 | | our application. We just need to utilize it! We'll simply require it 16 | | into the script here so that we don't have to worry about manual 17 | | loading any of our classes later on. It feels nice to relax. 18 | | 19 | */ 20 | 21 | require __DIR__.'/../bootstrap/autoload.php'; 22 | 23 | /* 24 | |-------------------------------------------------------------------------- 25 | | Turn On The Lights 26 | |-------------------------------------------------------------------------- 27 | | 28 | | We need to illuminate PHP development, so let us turn on the lights. 29 | | This bootstraps the framework and gets it ready for use, then it 30 | | will load up this application so that we can run it and send 31 | | the responses back to the browser and delight our users. 32 | | 33 | */ 34 | 35 | $app = require_once __DIR__.'/../bootstrap/app.php'; 36 | 37 | /* 38 | |-------------------------------------------------------------------------- 39 | | Run The Application 40 | |-------------------------------------------------------------------------- 41 | | 42 | | Once we have the application, we can handle the incoming request 43 | | through the kernel, and send the associated response back to 44 | | the client's browser allowing them to enjoy the creative 45 | | and wonderful application we have prepared for them. 46 | | 47 | */ 48 | 49 | $kernel = $app->make('Illuminate\Contracts\Http\Kernel'); 50 | 51 | $response = $kernel->handle( 52 | $request = Illuminate\Http\Request::capture() 53 | ); 54 | 55 | $response->send(); 56 | 57 | $kernel->terminate($request, $response); 58 | -------------------------------------------------------------------------------- /public/packages/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compujuckel/ndless-apps/b646238dbc9057b9783ca613fd4abd65666d0cb5/public/packages/.gitkeep -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | ## Laravel PHP Framework 2 | 3 | [![Build Status](https://travis-ci.org/laravel/framework.svg)](https://travis-ci.org/laravel/framework) 4 | [![Total Downloads](https://poser.pugx.org/laravel/framework/downloads.svg)](https://packagist.org/packages/laravel/framework) 5 | [![Latest Stable Version](https://poser.pugx.org/laravel/framework/v/stable.svg)](https://packagist.org/packages/laravel/framework) 6 | [![Latest Unstable Version](https://poser.pugx.org/laravel/framework/v/unstable.svg)](https://packagist.org/packages/laravel/framework) 7 | [![License](https://poser.pugx.org/laravel/framework/license.svg)](https://packagist.org/packages/laravel/framework) 8 | 9 | Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable, creative experience to be truly fulfilling. Laravel attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as authentication, routing, sessions, queueing, and caching. 10 | 11 | Laravel is accessible, yet powerful, providing powerful tools needed for large, robust applications. A superb inversion of control container, expressive migration system, and tightly integrated unit testing support give you the tools you need to build any application with which you are tasked. 12 | 13 | ## Official Documentation 14 | 15 | Documentation for the framework can be found on the [Laravel website](http://laravel.com/docs). 16 | 17 | ## Contributing 18 | 19 | Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](http://laravel.com/docs/contributions). 20 | 21 | ### License 22 | 23 | The Laravel framework is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT) 24 | -------------------------------------------------------------------------------- /resources/assets/js/clickcounter.js: -------------------------------------------------------------------------------- 1 | var ClickCounter = (function(){ 2 | "use strict"; 3 | 4 | function clickEventHandler(e) { 5 | e.preventDefault(); 6 | var dest = $(this).attr('href'); 7 | if(e.which == 1 /* left button */ || e.which == 2 /* middle button */) { 8 | $.get('/projects/' + this.classList[0].slice(6) + '/click', function(){ 9 | // Left click -> open in this window. Otherwise do not redirect, target will be opened in new tab 10 | if(e.which == 1) 11 | window.location.href = dest; 12 | }); 13 | } 14 | } 15 | 16 | function init() { 17 | $('[class^=count]').mousedown(clickEventHandler); 18 | } 19 | 20 | return { 21 | init: init 22 | }; 23 | })(); -------------------------------------------------------------------------------- /resources/assets/js/projectlist.js: -------------------------------------------------------------------------------- 1 | var ProjectList = (function () { 2 | "use strict"; 3 | 4 | var listOptions = { 5 | valueNames: [ 'name', 'description', 'id', 'downloads', 'timestamp' ] 6 | }; 7 | 8 | var list; 9 | var currentNdlessVersions; 10 | 11 | function filterClassicChecked() { 12 | return $('label.filter-classic').hasClass('active'); 13 | } 14 | 15 | function filterCxChecked() { 16 | return $('label.filter-cx').hasClass('active'); 17 | } 18 | 19 | function showDeprecatedChecked() { 20 | return $('label.show-deprecated').hasClass('active'); 21 | } 22 | 23 | function ndlessVersionsChecked() { 24 | var ret = {}; 25 | 26 | currentNdlessVersions.forEach(function (elem) { 27 | ret['filter-' + elem.filter] = $('label.filter-' + elem.filter).hasClass('active'); 28 | }); 29 | 30 | return ret; 31 | } 32 | 33 | function updateDeprecatedLabels() { 34 | if(showDeprecatedChecked()) { 35 | $('.label-ndless-deprecated').show(); 36 | } else { 37 | $('.label-ndless-deprecated').hide(); 38 | } 39 | } 40 | 41 | function sortEventHandler(field, order, event) { 42 | event.preventDefault(); 43 | list.sort(field,{ 44 | order: order 45 | }); 46 | list.update(); 47 | } 48 | 49 | function projectListFilter() { 50 | var options = { 51 | classic: filterClassicChecked(), 52 | cx: filterCxChecked(), 53 | deprecated: showDeprecatedChecked(), 54 | versions: ndlessVersionsChecked() 55 | }; 56 | 57 | return function (item) { 58 | var listItem = $('.id-'+item.values().id); 59 | 60 | if(!options.deprecated && $(listItem).hasClass('project-deprecated')) 61 | return false; 62 | if(options.classic && !$('.classic', listItem).hasClass('label-success')) 63 | return false; 64 | if(options.cx && !$('.cx', listItem).hasClass('label-success')) 65 | return false; 66 | 67 | var v; 68 | for (v in options.versions) { 69 | if(options.versions[v] && !$('.' + v, listItem).length) 70 | return false; 71 | } 72 | 73 | return true; 74 | }; 75 | } 76 | 77 | function filterProjectList() { 78 | list.filter(); 79 | list.filter(projectListFilter()); 80 | list.update(); 81 | updateDeprecatedLabels(); 82 | } 83 | 84 | function initProjectList() { 85 | list = new List('project-list', listOptions); 86 | } 87 | 88 | function initEventHandlers() { 89 | $('.sort-name').click($.proxy(sortEventHandler, null, 'name', 'asc')); 90 | $('.sort-downloads').click($.proxy(sortEventHandler, null, 'downloads', 'desc')); 91 | $('.sort-timestamp').click($.proxy(sortEventHandler, null, 'timestamp', 'desc')); 92 | 93 | currentNdlessVersions.forEach(function (elem) { 94 | $('a.filter-' + elem.filter).click(function () { 95 | $('label.filter-' + elem.filter).click(); 96 | }); 97 | }); 98 | 99 | $('label.filter-classic, label.filter-cx, label.show-deprecated' 100 | + currentNdlessVersions.reduce(function (prev, cur) { return prev + ', label.filter-' + cur.filter; }, '') 101 | ).click(function(){ 102 | setTimeout(filterProjectList, 1); 103 | }); 104 | } 105 | 106 | function init() { 107 | initProjectList(); 108 | 109 | // Get current Ndless versions from hidden input field 110 | currentNdlessVersions = JSON.parse($('#current-ndless-versions').html()); 111 | 112 | $('.p-count, .p-total').text(list.size()); 113 | 114 | // Update matching count after filtering 115 | list.on('updated', function(){ 116 | $('.p-count').text(list.matchingItems.length); 117 | }); 118 | 119 | filterProjectList(); 120 | 121 | // Deprecated Ndless versions hidden by default 122 | $('.label-ndless-deprecated').hide(); 123 | 124 | initEventHandlers(); 125 | } 126 | 127 | return { 128 | init: init 129 | }; 130 | })(); -------------------------------------------------------------------------------- /resources/assets/js/stats.js: -------------------------------------------------------------------------------- 1 | var Stats = (function(){ 2 | "use strict"; 3 | 4 | var data; 5 | var lang; 6 | 7 | var compChartCX; 8 | var compChartCl; 9 | var versChart; 10 | var authChart; 11 | 12 | function parseJson() { 13 | data = JSON.parse($('#stats-data').html()); 14 | lang = JSON.parse($('#lang-data').html()); 15 | } 16 | 17 | function buildDoughnutChart(countTotal, countPart, labelSupport, labelNoSupport, selector) { 18 | return new Chart( 19 | $(selector).get(0).getContext("2d"), 20 | { 21 | type: 'doughnut', 22 | data: { 23 | labels: [labelSupport, labelNoSupport], 24 | datasets: [ 25 | { 26 | data: [countPart, countTotal - countPart], 27 | backgroundColor: ['#46BFBD', '#F7464A'], 28 | hoverBackgroundColor: ['#5AD3D1', '#FF5A5E'] 29 | } 30 | ] 31 | } 32 | } 33 | ); 34 | } 35 | 36 | function buildBarChart(labels, values, name, selector) { 37 | return new Chart( 38 | $(selector).get(0).getContext("2d"), 39 | { 40 | type: 'bar', 41 | data: { 42 | labels: labels, 43 | datasets: [{ 44 | label: name, 45 | backgroundColor: "rgba(151,187,205,0.5)", 46 | borderColor: "rgba(151,187,205,0.8)", 47 | hoverBackgroundColor: "rgba(151,187,205,0.75)", 48 | hoverBorderColor: "rgba(151,187,205,1)", 49 | data: values 50 | }] 51 | }, 52 | options: { 53 | scales: { 54 | xAxes: [{ 55 | gridLines: { 56 | display: false 57 | } 58 | }], 59 | yAxes: [{ 60 | gridLines: { 61 | display: false 62 | }, 63 | ticks: { 64 | min: 0 65 | } 66 | }] 67 | } 68 | } 69 | } 70 | ); 71 | } 72 | 73 | function init() { 74 | Chart.defaults.global.responsive = true; 75 | Chart.defaults.global.legend.display = false; 76 | 77 | parseJson(); 78 | 79 | compChartCX = buildDoughnutChart(data.countProjects, data.countCx, lang.cxsupport, lang.nocxsupport, '#compChartCX'); 80 | compChartCl = buildDoughnutChart(data.countProjects, data.countClassic, lang.clsupport, lang.noclsupport, '#compChartCl'); 81 | 82 | versChart = buildBarChart( 83 | data.comp.map(function (elem) { return elem.version; }), 84 | data.comp.map(function (elem) { return elem.count; }), 85 | lang.compatible, 86 | '#versChart' 87 | ); 88 | 89 | authChart = buildBarChart( 90 | data.author.map(function (elem) { return elem.name; }), 91 | data.author.map(function (elem) { return elem.count; }), 92 | lang.contributions, 93 | '#authChart' 94 | ); 95 | } 96 | 97 | return { 98 | init: init 99 | }; 100 | })(); 101 | -------------------------------------------------------------------------------- /resources/assets/less/app.less: -------------------------------------------------------------------------------- 1 | @import "../../../node_modules/bootstrap/less/bootstrap"; 2 | @import "../../../node_modules/font-awesome/less/font-awesome"; 3 | 4 | @fa-font-path: "../../fonts"; 5 | 6 | body { 7 | padding-top: 60px; 8 | } 9 | 10 | .navbar { 11 | //background-color: rgb(21, 27, 39); 12 | } 13 | 14 | .section { 15 | text-align: center; 16 | padding-bottom: 30px; 17 | border-bottom: 1px solid #ccc; 18 | h1 { 19 | font-size: 5em; 20 | } 21 | @media screen and (max-width: 768px) { 22 | h1 { 23 | font-size: 3em; 24 | } 25 | } 26 | .bottom { 27 | margin-bottom: 20px; 28 | } 29 | .row { 30 | padding: 20px 0px; 31 | border: 1px solid #ddd; 32 | border-radius: 3px; 33 | } 34 | } 35 | 36 | .section:nth-child(even) { 37 | .section; 38 | background: #fff; 39 | .row { 40 | background: #eee; 41 | } 42 | } 43 | 44 | .section:nth-child(odd) { 45 | .section; 46 | background: #eee; 47 | .row { 48 | background: #fff; 49 | } 50 | } 51 | 52 | .list-group { 53 | text-align: left; 54 | } 55 | 56 | .btn-star { 57 | min-width: 45px; 58 | } 59 | 60 | .btn-dl { 61 | min-width: 130px; 62 | } 63 | 64 | .dropdown-menu { 65 | text-align: left; 66 | } 67 | 68 | a.anchor { 69 | display: block; 70 | position: relative; 71 | top: -50px; 72 | } 73 | 74 | .img-responsive { 75 | margin: 0 auto; 76 | } -------------------------------------------------------------------------------- /resources/lang/de/account.php: -------------------------------------------------------------------------------- 1 | 'Kontoeinstellungen', 5 | 'changepw' => 'Passwort ändern', 6 | 'oldpw' => 'Altes Passwort', 7 | 'newpw' => 'Neues Passwort (min. 8 Zeichen)', 8 | 'confirmpw' => 'Neues Passwort bestätigen', 9 | 'delete' => 'Konto löschen', 10 | 'enterpw' => 'Passwort eingeben', 11 | 'yousure' => 'Ja, ich möchte mein Konto dauerhaft löschen.' 12 | ); -------------------------------------------------------------------------------- /resources/lang/de/authors.php: -------------------------------------------------------------------------------- 1 | 'Hat zu :count Projekt beigetragen|Hat zu :count Projekten beigetragen', 5 | 'create' => 'Autor erstellen', 6 | 'edit' => 'Autor bearbeiten', 7 | 'yousure' => 'Bist du sicher, dass du diesen Autor löschen willst?', 8 | 'allauthors' => 'Alle Autoren', 9 | 'contributions' => 'Beiträge' 10 | ); -------------------------------------------------------------------------------- /resources/lang/de/categories.php: -------------------------------------------------------------------------------- 1 | 'Spiel|Spiele', 5 | '2' => 'Utensil|Utensilien', 6 | '3' => 'Bibliothek|Bibliotheken', 7 | '4' => 'Demo|Demos', 8 | '5' => 'System|System', 9 | 10 | 'all1' => 'Alle Spiele', 11 | 'all2' => 'Alle Utensilien', 12 | 'all3' => 'Alle Bibliotheken', 13 | 'all4' => 'Alle Demos', 14 | 'all5' => 'Alle Systemprogramme', 15 | 16 | 'incategory' => 'Zeige :count von :total Apps in dieser Kategorie' 17 | ); -------------------------------------------------------------------------------- /resources/lang/de/login.php: -------------------------------------------------------------------------------- 1 | 'Einloggen oder registrieren', 5 | 'username' => 'Nutzername', 6 | 'password' => 'Passwort', 7 | 'remember' => 'Eingeloggt bleiben', 8 | 'signin' => 'Einloggen', 9 | 'register' => 'Registrieren', 10 | 'error' => 'Falscher Nutzername oder falsches Passwort.' 11 | ); -------------------------------------------------------------------------------- /resources/lang/de/master.php: -------------------------------------------------------------------------------- 1 | 'Ndless-Apps', 5 | 'togglenav' => 'Navigation umschalten', 6 | 'apps' => 'Apps', 7 | 'categories' => 'Kategorien', 8 | 'authors' => 'Autoren', 9 | 'stats' => 'Statistiken', 10 | 'bug' => 'Fehler melden', 11 | 'settings' => 'Einstellungen', 12 | 'logout' => 'Ausloggen', 13 | 'login' => 'Einloggen', 14 | 15 | 'edit' => 'Bearbeiten', 16 | 'search' => 'Suchen...', 17 | 'sort' => 'Sortieren', 18 | 'name' => 'Name', 19 | 'clicks' => 'Klicks', 20 | 'timestamp' => 'Zuletzt hinzugefügt', 21 | 'add' => 'Hinzufügen', 22 | 'delete' => 'Löschen', 23 | 'yes' => 'Ja', 24 | 'no' => 'Nein', 25 | 'showdeprecated' => 'Veraltete Versionen anzeigen', 26 | 'action' => 'Aktion', 27 | 'remove' => 'Entfernen', 28 | 'delete_obj' => ':name löschen', 29 | 'github' => 'Der Sourcecode dieser Webseite ist verfügbar auf :link.', 30 | 31 | 'thousands_sep' => '.', 32 | 'dec_point' => ',' 33 | ); -------------------------------------------------------------------------------- /resources/lang/de/pagination.php: -------------------------------------------------------------------------------- 1 | '« Previous', 17 | 18 | 'next' => 'Next »', 19 | 20 | ); -------------------------------------------------------------------------------- /resources/lang/de/projects.php: -------------------------------------------------------------------------------- 1 | 'Ausgewählt', 5 | 'mostclicked' => 'Am meisten geklickt', 6 | 'all' => 'Alle', 7 | 'nopic' => 'Kein Screenshot verfügbar', 8 | 'download' => 'Herunterladen', 9 | 'allapps' => 'Alle Apps', 10 | 11 | 'create' => 'App hinzufügen', 12 | 'description' => 'Beschreibung (eng.)', 13 | 'website' => 'Webseite', 14 | 'tiplanet' => 'TI-Planet-ID', 15 | 'ticalc' => 'ticalc-ID', 16 | 'clsupport' => 'Classic-Unterstüzung', 17 | 'cxsupport' => 'CX-Unterstützung', 18 | 19 | 'edit_title' => ':name bearbeiten', 20 | 'edit' => 'App bearbeiten', 21 | 'save' => 'Speichern', 22 | 'delete' => ':name löschen', 23 | 'yousure' => 'Bist du sicher, dass du diese App löschen willst?', 24 | 'authors' => 'Autoren bearbeiten', 25 | 'ndless' => 'Unterstützte Ndless-Versionen bearbeiten', 26 | 'categories' => 'Kategorien bearbeiten', 27 | 'version' => 'Version', 28 | 'screenshot' => 'Screenshot', 29 | 'curscreen' => 'Aktueller Screenshot', 30 | 'noscreen' => 'Bis jetzt wurde kein Screenshot hochgeladen.', 31 | 'upscreen' => 'Bitte wähle eine PNG-Datei mit einer Auflösung von 320x240 Pixeln.', 32 | 'upload' => 'Hochladen', 33 | 'count' => 'Zeige :count von :total Apps', 34 | ); -------------------------------------------------------------------------------- /resources/lang/de/reminders.php: -------------------------------------------------------------------------------- 1 | "Passwords must be at least six characters and match the confirmation.", 17 | 18 | "user" => "We can't find a user with that e-mail address.", 19 | 20 | "token" => "This password reset token is invalid.", 21 | 22 | "sent" => "Password reminder sent!", 23 | 24 | ); 25 | -------------------------------------------------------------------------------- /resources/lang/de/stats.php: -------------------------------------------------------------------------------- 1 | 'Verfolge :pcount Apps von :acount Autoren', 5 | 'title2' => 'Insgesamt wurden sie :count mal angeklickt.', 6 | 'support' => ':percent aller Apps laufen auf dem TI-Nspire CX...', 7 | 'support2' => '... und :percent laufen auf dem alten TI-Nspire.', 8 | 'cxsupport' => 'TI-Nspire CX-Unterstüzung', 9 | 'clsupport' => 'TI-Nspire-Unterstützung', 10 | 'ndless' => ':percent laufen auf dem neuesten Ndless :version', 11 | 'contributions' => ':name hat zu :count Projekten beigetragen.', 12 | 'contributions2' => 'Dies sind die Autoren mit den meisten Beiträgen.', 13 | 'nocxsupport' => 'Keine TI-Nspire CX-Unterstützung', 14 | 'noclsupport' => 'Keine TI-Nspire-Unterstützung', 15 | 'compatible' => 'Kompatibel', 16 | 'contributions3' => 'Beiträge' 17 | ); -------------------------------------------------------------------------------- /resources/lang/de/validation.php: -------------------------------------------------------------------------------- 1 | "The :attribute must be accepted.", 17 | "active_url" => "The :attribute is not a valid URL.", 18 | "after" => "The :attribute must be a date after :date.", 19 | "alpha" => "The :attribute may only contain letters.", 20 | "alpha_dash" => "The :attribute may only contain letters, numbers, and dashes.", 21 | "alpha_num" => "The :attribute may only contain letters and numbers.", 22 | "array" => "The :attribute must be an array.", 23 | "before" => "The :attribute must be a date before :date.", 24 | "between" => array( 25 | "numeric" => "The :attribute must be between :min and :max.", 26 | "file" => "The :attribute must be between :min and :max kilobytes.", 27 | "string" => "The :attribute must be between :min and :max characters.", 28 | "array" => "The :attribute must have between :min and :max items.", 29 | ), 30 | "confirmed" => "The :attribute confirmation does not match.", 31 | "date" => "The :attribute is not a valid date.", 32 | "date_format" => "The :attribute does not match the format :format.", 33 | "different" => "The :attribute and :other must be different.", 34 | "digits" => "The :attribute must be :digits digits.", 35 | "digits_between" => "The :attribute must be between :min and :max digits.", 36 | "email" => "The :attribute format is invalid.", 37 | "exists" => "The selected :attribute is invalid.", 38 | "image" => "The :attribute must be an image.", 39 | "in" => "The selected :attribute is invalid.", 40 | "integer" => "The :attribute must be an integer.", 41 | "ip" => "The :attribute must be a valid IP address.", 42 | "max" => array( 43 | "numeric" => "The :attribute may not be greater than :max.", 44 | "file" => "The :attribute may not be greater than :max kilobytes.", 45 | "string" => "The :attribute may not be greater than :max characters.", 46 | "array" => "The :attribute may not have more than :max items.", 47 | ), 48 | "mimes" => "The :attribute must be a file of type: :values.", 49 | "min" => array( 50 | "numeric" => "The :attribute must be at least :min.", 51 | "file" => "The :attribute must be at least :min kilobytes.", 52 | "string" => "The :attribute must be at least :min characters.", 53 | "array" => "The :attribute must have at least :min items.", 54 | ), 55 | "not_in" => "The selected :attribute is invalid.", 56 | "numeric" => "The :attribute must be a number.", 57 | "regex" => "The :attribute format is invalid.", 58 | "required" => "The :attribute field is required.", 59 | "required_if" => "The :attribute field is required when :other is :value.", 60 | "required_with" => "The :attribute field is required when :values is present.", 61 | "required_without" => "The :attribute field is required when :values is not present.", 62 | "same" => "The :attribute and :other must match.", 63 | "size" => array( 64 | "numeric" => "The :attribute must be :size.", 65 | "file" => "The :attribute must be :size kilobytes.", 66 | "string" => "The :attribute must be :size characters.", 67 | "array" => "The :attribute must contain :size items.", 68 | ), 69 | "unique" => "The :attribute has already been taken.", 70 | "url" => "The :attribute format is invalid.", 71 | 72 | /* 73 | |-------------------------------------------------------------------------- 74 | | Custom Validation Language Lines 75 | |-------------------------------------------------------------------------- 76 | | 77 | | Here you may specify custom validation messages for attributes using the 78 | | convention "attribute.rule" to name the lines. This makes it quick to 79 | | specify a specific custom language line for a given attribute rule. 80 | | 81 | */ 82 | 83 | 'custom' => array(), 84 | 85 | /* 86 | |-------------------------------------------------------------------------- 87 | | Custom Validation Attributes 88 | |-------------------------------------------------------------------------- 89 | | 90 | | The following language lines are used to swap attribute place-holders 91 | | with something more reader friendly such as E-Mail Address instead 92 | | of "email". This simply helps us make messages a little cleaner. 93 | | 94 | */ 95 | 96 | 'attributes' => array(), 97 | 98 | ); 99 | -------------------------------------------------------------------------------- /resources/lang/en/account.php: -------------------------------------------------------------------------------- 1 | 'Account settings', 5 | 'changepw' => 'Change password', 6 | 'oldpw' => 'Old password', 7 | 'newpw' => 'New password (min. 8 characters)', 8 | 'confirmpw' => 'Confirm new password', 9 | 'delete' => 'Delete account', 10 | 'enterpw' => 'Enter password', 11 | 'yousure' => 'Yes, I want to permanently remove my account.' 12 | ); -------------------------------------------------------------------------------- /resources/lang/en/authors.php: -------------------------------------------------------------------------------- 1 | 'Contributed to :count project|Contributed to :count projects', 5 | 'create' => 'Create author', 6 | 'edit' => 'Edit author', 7 | 'yousure' => 'Are you sure you want to delete this author?', 8 | 'allauthors' => 'All authors', 9 | 'contributions' => 'Contributions' 10 | ); -------------------------------------------------------------------------------- /resources/lang/en/categories.php: -------------------------------------------------------------------------------- 1 | 'Game|Games', 5 | '2' => 'Utility|Utilities', 6 | '3' => 'Library|Libraries', 7 | '4' => 'Demo|Demos', 8 | '5' => 'System|System', 9 | 10 | 'all1' => 'All games', 11 | 'all2' => 'All utilities', 12 | 'all3' => 'All libraries', 13 | 'all4' => 'All demos', 14 | 'all5' => 'All system programs', 15 | 16 | 'incategory' => 'Showing :count of :total apps in this category' 17 | ); -------------------------------------------------------------------------------- /resources/lang/en/login.php: -------------------------------------------------------------------------------- 1 | 'Sign in or register', 5 | 'username' => 'Username', 6 | 'password' => 'Password', 7 | 'remember' => 'Remember me', 8 | 'signin' => 'Sign in', 9 | 'register' => 'Register', 10 | 'error' => 'Wrong username or password.' 11 | ); -------------------------------------------------------------------------------- /resources/lang/en/master.php: -------------------------------------------------------------------------------- 1 | 'Ndless Apps', 5 | 'togglenav' => 'Toggle navigation', 6 | 'apps' => 'Apps', 7 | 'categories' => 'Categories', 8 | 'authors' => 'Authors', 9 | 'stats' => 'Statistics', 10 | 'bug' => 'Report bug', 11 | 'settings' => 'Settings', 12 | 'logout' => 'Logout', 13 | 'login' => 'Login', 14 | 15 | 'edit' => 'Edit', 16 | 'search' => 'Search...', 17 | 'sort' => 'Sort', 18 | 'name' => 'Name', 19 | 'clicks' => 'Clicks', 20 | 'timestamp' => 'Recently added', 21 | 'add' => 'Add', 22 | 'delete' => 'Delete', 23 | 'yes' => 'Yes', 24 | 'no' => 'No', 25 | 'showdeprecated' => 'Show deprecated versions', 26 | 'action' => 'Action', 27 | 'remove' => 'Remove', 28 | 'delete_obj' => 'Delete :name', 29 | 'github' => 'The source code of this website is available on :link.', 30 | 31 | 'thousands_sep' => ',', 32 | 'dec_point' => '.' 33 | ); 34 | -------------------------------------------------------------------------------- /resources/lang/en/pagination.php: -------------------------------------------------------------------------------- 1 | '« Previous', 17 | 18 | 'next' => 'Next »', 19 | 20 | ); -------------------------------------------------------------------------------- /resources/lang/en/passwords.php: -------------------------------------------------------------------------------- 1 | "Passwords must be at least six characters and match the confirmation.", 17 | "user" => "We can't find a user with that e-mail address.", 18 | "token" => "This password reset token is invalid.", 19 | "sent" => "We have e-mailed your password reset link!", 20 | "reset" => "Your password has been reset!", 21 | 22 | ]; 23 | -------------------------------------------------------------------------------- /resources/lang/en/projects.php: -------------------------------------------------------------------------------- 1 | 'Featured', 5 | 'mostclicked' => 'Most clicked', 6 | 'all' => 'All', 7 | 'nopic' => 'No screenshot available', 8 | 'download' => 'Download', 9 | 'allapps' => 'All Apps', 10 | 11 | 'create' => 'Create app', 12 | 'description' => 'Description', 13 | 'website' => 'Website', 14 | 'tiplanet' => 'TI-Planet ID', 15 | 'ticalc' => 'ticalc ID', 16 | 'clsupport' => 'Classic support', 17 | 'cxsupport' => 'CX support', 18 | 19 | 'edit_title' => 'Edit :name', 20 | 'edit' => 'Edit app', 21 | 'save' => 'Save changes', 22 | 'delete' => 'Delete :name', 23 | 'yousure' => 'Are you sure you want to delete this app?', 24 | 'authors' => 'Edit authors', 25 | 'ndless' => 'Edit supported Ndless versions', 26 | 'categories' => 'Edit categories', 27 | 'version' => 'Version', 28 | 'screenshot' => 'Screenshot', 29 | 'curscreen' => 'Current screenshot', 30 | 'noscreen' => 'No screenshot has been uploaded yet.', 31 | 'upscreen' => 'Please choose a PNG file with a resolution of 320x240 pixels.', 32 | 'upload' => 'Upload', 33 | 'count' => 'Showing :count of :total apps', 34 | ); -------------------------------------------------------------------------------- /resources/lang/en/reminders.php: -------------------------------------------------------------------------------- 1 | "Passwords must be at least six characters and match the confirmation.", 17 | 18 | "user" => "We can't find a user with that e-mail address.", 19 | 20 | "token" => "This password reset token is invalid.", 21 | 22 | "sent" => "Password reminder sent!", 23 | 24 | ); 25 | -------------------------------------------------------------------------------- /resources/lang/en/stats.php: -------------------------------------------------------------------------------- 1 | 'Tracking :pcount apps by :acount authors', 5 | 'title2' => 'In total, they have been clicked :count times.', 6 | 'support' => ':percent of all apps run on TI-Nspire CX models...', 7 | 'support2' => '... and :percent run on the old TI-Nspire.', 8 | 'cxsupport' => 'TI-Nspire CX support', 9 | 'clsupport' => 'TI-Nspire support', 10 | 'ndless' => ':percent run on the latest Ndless :version', 11 | 'contributions' => ':name has contributed to :count projects.', 12 | 'contributions2' => 'These are the authors with the most contributions.', 13 | 'nocxsupport' => 'No TI-Nspire CX support', 14 | 'noclsupport' => 'No TI-Nspire support', 15 | 'compatible' => 'compatible', 16 | 'contributions3' => 'contributions' 17 | ); -------------------------------------------------------------------------------- /resources/lang/en/validation.php: -------------------------------------------------------------------------------- 1 | "The :attribute must be accepted.", 17 | "active_url" => "The :attribute is not a valid URL.", 18 | "after" => "The :attribute must be a date after :date.", 19 | "alpha" => "The :attribute may only contain letters.", 20 | "alpha_dash" => "The :attribute may only contain letters, numbers, and dashes.", 21 | "alpha_num" => "The :attribute may only contain letters and numbers.", 22 | "array" => "The :attribute must be an array.", 23 | "before" => "The :attribute must be a date before :date.", 24 | "between" => array( 25 | "numeric" => "The :attribute must be between :min and :max.", 26 | "file" => "The :attribute must be between :min and :max kilobytes.", 27 | "string" => "The :attribute must be between :min and :max characters.", 28 | "array" => "The :attribute must have between :min and :max items.", 29 | ), 30 | "confirmed" => "The :attribute confirmation does not match.", 31 | "date" => "The :attribute is not a valid date.", 32 | "date_format" => "The :attribute does not match the format :format.", 33 | "different" => "The :attribute and :other must be different.", 34 | "digits" => "The :attribute must be :digits digits.", 35 | "digits_between" => "The :attribute must be between :min and :max digits.", 36 | "email" => "The :attribute format is invalid.", 37 | "exists" => "The selected :attribute is invalid.", 38 | "image" => "The :attribute must be an image.", 39 | "in" => "The selected :attribute is invalid.", 40 | "integer" => "The :attribute must be an integer.", 41 | "ip" => "The :attribute must be a valid IP address.", 42 | "max" => array( 43 | "numeric" => "The :attribute may not be greater than :max.", 44 | "file" => "The :attribute may not be greater than :max kilobytes.", 45 | "string" => "The :attribute may not be greater than :max characters.", 46 | "array" => "The :attribute may not have more than :max items.", 47 | ), 48 | "mimes" => "The :attribute must be a file of type: :values.", 49 | "min" => array( 50 | "numeric" => "The :attribute must be at least :min.", 51 | "file" => "The :attribute must be at least :min kilobytes.", 52 | "string" => "The :attribute must be at least :min characters.", 53 | "array" => "The :attribute must have at least :min items.", 54 | ), 55 | "not_in" => "The selected :attribute is invalid.", 56 | "numeric" => "The :attribute must be a number.", 57 | "regex" => "The :attribute format is invalid.", 58 | "required" => "The :attribute field is required.", 59 | "required_if" => "The :attribute field is required when :other is :value.", 60 | "required_with" => "The :attribute field is required when :values is present.", 61 | "required_without" => "The :attribute field is required when :values is not present.", 62 | "same" => "The :attribute and :other must match.", 63 | "size" => array( 64 | "numeric" => "The :attribute must be :size.", 65 | "file" => "The :attribute must be :size kilobytes.", 66 | "string" => "The :attribute must be :size characters.", 67 | "array" => "The :attribute must contain :size items.", 68 | ), 69 | "unique" => "The :attribute has already been taken.", 70 | "url" => "The :attribute format is invalid.", 71 | 72 | /* 73 | |-------------------------------------------------------------------------- 74 | | Custom Validation Language Lines 75 | |-------------------------------------------------------------------------- 76 | | 77 | | Here you may specify custom validation messages for attributes using the 78 | | convention "attribute.rule" to name the lines. This makes it quick to 79 | | specify a specific custom language line for a given attribute rule. 80 | | 81 | */ 82 | 83 | 'custom' => array(), 84 | 85 | /* 86 | |-------------------------------------------------------------------------- 87 | | Custom Validation Attributes 88 | |-------------------------------------------------------------------------- 89 | | 90 | | The following language lines are used to swap attribute place-holders 91 | | with something more reader friendly such as E-Mail Address instead 92 | | of "email". This simply helps us make messages a little cleaner. 93 | | 94 | */ 95 | 96 | 'attributes' => array(), 97 | 98 | ); 99 | -------------------------------------------------------------------------------- /resources/lang/fr/account.php: -------------------------------------------------------------------------------- 1 | 'Paramètres du compte', 5 | 'changepw' => 'Changer le mot de passe', 6 | 'oldpw' => 'Ancien mot de passe', 7 | 'newpw' => 'Nouveau mot de passe (min. 8 caractères)', 8 | 'confirmpw' => 'Confirmer le nouveau mot de passe', 9 | 'delete' => 'Supprimer le compte', 10 | 'enterpw' => 'Entrer mot de passe', 11 | 'yousure' => 'Oui, je veux supprimer définitivement mon compte.' 12 | ); -------------------------------------------------------------------------------- /resources/lang/fr/authors.php: -------------------------------------------------------------------------------- 1 | 'A contribué à :count projet|A contribué à :count projets', 5 | 'create' => 'Créer un auteur', 6 | 'edit' => 'Éditer un auteur', 7 | 'yousure' => 'Êtes-vous sûr de vouloir supprimer cet auteur ?', 8 | 'allauthors' => 'Tous les auteurs', 9 | 'contributions' => 'Contributions' 10 | ); -------------------------------------------------------------------------------- /resources/lang/fr/categories.php: -------------------------------------------------------------------------------- 1 | 'Jeu|Jeux', 5 | '2' => 'Outil|Outils', 6 | '3' => 'Librairie|Librairies', 7 | '4' => 'Démo|Démos', 8 | '5' => 'Système|Système', 9 | 10 | 'all1' => 'Tous les jeux', 11 | 'all2' => 'Tous les outils', 12 | 'all3' => 'Toutes les libs', 13 | 'all4' => 'Toutes les démos', 14 | 'all5' => 'Tous les programes système', 15 | 16 | 'incategory' => 'Affichage de :count programmes sur :total dans cette catégorie' 17 | ); -------------------------------------------------------------------------------- /resources/lang/fr/login.php: -------------------------------------------------------------------------------- 1 | 'Se connecter ou s\'inscrire', 5 | 'username' => 'Nom d\'utilisateur', 6 | 'password' => 'Mot de passe', 7 | 'remember' => 'Retenir les identifiants', 8 | 'signin' => 'Se connecter', 9 | 'register' => 'S\'inscrire', 10 | 'error' => 'Nom d\'utilisateur ou mot de passe incorrect.' 11 | ); -------------------------------------------------------------------------------- /resources/lang/fr/master.php: -------------------------------------------------------------------------------- 1 | 'Programmes Ndless', 5 | 'togglenav' => 'Changer la navigation', 6 | 'apps' => 'Programmes', 7 | 'categories' => 'Catégories', 8 | 'authors' => 'Auteurs', 9 | 'stats' => 'Statistiques', 10 | 'bug' => 'Rapporter un bug', 11 | 'settings' => 'Paramètres', 12 | 'logout' => 'Se déconnecter', 13 | 'login' => 'Se connecter', 14 | 15 | 'edit' => 'Éditer', 16 | 'search' => 'Rechercher...', 17 | 'sort' => 'Trier', 18 | 'name' => 'Nom', 19 | 'clicks' => 'Clics', 20 | 'timestamp' => 'Ajouté récemment', 21 | 'add' => 'Ajouter', 22 | 'delete' => 'Supprimer', 23 | 'yes' => 'Oui', 24 | 'no' => 'Non', 25 | 'showdeprecated' => 'Afficher les versions obsolètes', 26 | 'action' => 'Action', 27 | 'remove' => 'Retirer', 28 | 'delete_obj' => 'Supprimer :name', 29 | 'github' => 'Le code source de ce site est disponible sur :link.', 30 | 31 | 'thousands_sep' => '.', 32 | 'dec_point' => ',' 33 | ); -------------------------------------------------------------------------------- /resources/lang/fr/pagination.php: -------------------------------------------------------------------------------- 1 | '« Previous', 17 | 18 | 'next' => 'Next »', 19 | 20 | ); -------------------------------------------------------------------------------- /resources/lang/fr/projects.php: -------------------------------------------------------------------------------- 1 | 'Featured', 5 | 'mostclicked' => 'Le plus cliqué', 6 | 'all' => 'Tous', 7 | 'nopic' => 'Pas de screenshot disponible', 8 | 'download' => 'Télécharger', 9 | 'allapps' => 'Tous les programmes', 10 | 11 | 'create' => 'Créer un programme', 12 | 'description' => 'Description', 13 | 'website' => 'Site web', 14 | 'tiplanet' => 'ID TI-Planet', 15 | 'ticalc' => 'ID ticalc', 16 | 'clsupport' => 'Support non-CX', 17 | 'cxsupport' => 'Support CX', 18 | 19 | 'edit_title' => 'Éditer :name', 20 | 'edit' => 'Éditer programme', 21 | 'save' => 'Sauvegarder les changements', 22 | 'delete' => 'Supprimer :name', 23 | 'yousure' => 'Voulez-vous vraiment supprimer ce programme?', 24 | 'authors' => 'Éditer les auteurs', 25 | 'ndless' => 'Éditer les version de Ndless supportées', 26 | 'categories' => 'Éditer les catégories', 27 | 'version' => 'Version', 28 | 'screenshot' => 'Screenshot', 29 | 'curscreen' => 'Screenshot actuel', 30 | 'noscreen' => 'Aucun screenshot n\'a été uploadé.', 31 | 'upscreen' => 'Veuillez choisir un fichier PNG avec une resolution de 320x240 pixels.', 32 | 'upload' => 'Upload', 33 | 'count' => 'Affichage de :count programme sur :total', 34 | ); -------------------------------------------------------------------------------- /resources/lang/fr/reminders.php: -------------------------------------------------------------------------------- 1 | "Passwords must be at least six characters and match the confirmation.", 17 | 18 | "user" => "We can't find a user with that e-mail address.", 19 | 20 | "token" => "This password reset token is invalid.", 21 | 22 | "sent" => "Password reminder sent!", 23 | 24 | ); 25 | -------------------------------------------------------------------------------- /resources/lang/fr/stats.php: -------------------------------------------------------------------------------- 1 | 'Référence :pcount programmes par :acount auteurs', 5 | 'title2' => 'Au total, ils ont été cliqués :count fois.', 6 | 'support' => ':percent de tous les programmes fonctionnent sur les modèles TI-Nspire CX...', 7 | 'support2' => '... et :percent sur les TI-Nspire non-CX.', 8 | 'cxsupport' => 'Supporte les TI-Nspire CX', 9 | 'clsupport' => 'Supporte les TI-Nspire non-CX', 10 | 'ndless' => ':percent fonctionne sur le dernier Ndless :version', 11 | 'contributions' => ':name a contribué à :count projets.', 12 | 'contributions2' => 'Voici les auteurs avec le plus de contributions.', 13 | 'nocxsupport' => 'Ne supporte pas les TI-Nspire CX', 14 | 'noclsupport' => 'Ne supporte pas les TI-Nspire non-CX', 15 | 'compatible' => 'compatible', 16 | 'contributions3' => 'Contributions' 17 | ); -------------------------------------------------------------------------------- /resources/lang/fr/validation.php: -------------------------------------------------------------------------------- 1 | "The :attribute must be accepted.", 17 | "active_url" => "The :attribute is not a valid URL.", 18 | "after" => "The :attribute must be a date after :date.", 19 | "alpha" => "The :attribute may only contain letters.", 20 | "alpha_dash" => "The :attribute may only contain letters, numbers, and dashes.", 21 | "alpha_num" => "The :attribute may only contain letters and numbers.", 22 | "array" => "The :attribute must be an array.", 23 | "before" => "The :attribute must be a date before :date.", 24 | "between" => array( 25 | "numeric" => "The :attribute must be between :min and :max.", 26 | "file" => "The :attribute must be between :min and :max kilobytes.", 27 | "string" => "The :attribute must be between :min and :max characters.", 28 | "array" => "The :attribute must have between :min and :max items.", 29 | ), 30 | "confirmed" => "The :attribute confirmation does not match.", 31 | "date" => "The :attribute is not a valid date.", 32 | "date_format" => "The :attribute does not match the format :format.", 33 | "different" => "The :attribute and :other must be different.", 34 | "digits" => "The :attribute must be :digits digits.", 35 | "digits_between" => "The :attribute must be between :min and :max digits.", 36 | "email" => "The :attribute format is invalid.", 37 | "exists" => "The selected :attribute is invalid.", 38 | "image" => "The :attribute must be an image.", 39 | "in" => "The selected :attribute is invalid.", 40 | "integer" => "The :attribute must be an integer.", 41 | "ip" => "The :attribute must be a valid IP address.", 42 | "max" => array( 43 | "numeric" => "The :attribute may not be greater than :max.", 44 | "file" => "The :attribute may not be greater than :max kilobytes.", 45 | "string" => "The :attribute may not be greater than :max characters.", 46 | "array" => "The :attribute may not have more than :max items.", 47 | ), 48 | "mimes" => "The :attribute must be a file of type: :values.", 49 | "min" => array( 50 | "numeric" => "The :attribute must be at least :min.", 51 | "file" => "The :attribute must be at least :min kilobytes.", 52 | "string" => "The :attribute must be at least :min characters.", 53 | "array" => "The :attribute must have at least :min items.", 54 | ), 55 | "not_in" => "The selected :attribute is invalid.", 56 | "numeric" => "The :attribute must be a number.", 57 | "regex" => "The :attribute format is invalid.", 58 | "required" => "The :attribute field is required.", 59 | "required_if" => "The :attribute field is required when :other is :value.", 60 | "required_with" => "The :attribute field is required when :values is present.", 61 | "required_without" => "The :attribute field is required when :values is not present.", 62 | "same" => "The :attribute and :other must match.", 63 | "size" => array( 64 | "numeric" => "The :attribute must be :size.", 65 | "file" => "The :attribute must be :size kilobytes.", 66 | "string" => "The :attribute must be :size characters.", 67 | "array" => "The :attribute must contain :size items.", 68 | ), 69 | "unique" => "The :attribute has already been taken.", 70 | "url" => "The :attribute format is invalid.", 71 | 72 | /* 73 | |-------------------------------------------------------------------------- 74 | | Custom Validation Language Lines 75 | |-------------------------------------------------------------------------- 76 | | 77 | | Here you may specify custom validation messages for attributes using the 78 | | convention "attribute.rule" to name the lines. This makes it quick to 79 | | specify a specific custom language line for a given attribute rule. 80 | | 81 | */ 82 | 83 | 'custom' => array(), 84 | 85 | /* 86 | |-------------------------------------------------------------------------- 87 | | Custom Validation Attributes 88 | |-------------------------------------------------------------------------- 89 | | 90 | | The following language lines are used to swap attribute place-holders 91 | | with something more reader friendly such as E-Mail Address instead 92 | | of "email". This simply helps us make messages a little cleaner. 93 | | 94 | */ 95 | 96 | 'attributes' => array(), 97 | 98 | ); 99 | -------------------------------------------------------------------------------- /resources/views/account.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.master') 2 | 3 | @section('content') 4 |
5 |

{{ trans('account.settings') }}

6 | @if($errors->any()) 7 |
{{{ $errors->first() }}}
8 | @endif 9 |
10 |
11 |
12 |
13 | {{ trans('account.changepw') }} 14 |
15 |
16 |
17 |
18 | 19 | 20 |
21 |
22 | 23 | 24 |
25 |
26 | 27 | 28 |
29 | 30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 | {{ trans('account.delete') }} 38 |
39 |
40 |
41 |
42 | 43 | 44 |
45 |
46 |
47 | 51 |
52 |
53 | 54 |
55 |
56 |
57 |
58 |
59 |
60 | @stop 61 | 62 | @section('scripts') 63 | 112 | @stop -------------------------------------------------------------------------------- /resources/views/app.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Laravel 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 20 | 21 | 22 | 55 | 56 | @yield('content') 57 | 58 | 59 | 60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /resources/views/auth/login.blade.php: -------------------------------------------------------------------------------- 1 | @extends('app') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |
Login
9 |
10 | @if (count($errors) > 0) 11 |
12 | Whoops! There were some problems with your input.

13 |
    14 | @foreach ($errors->all() as $error) 15 |
  • {{ $error }}
  • 16 | @endforeach 17 |
18 |
19 | @endif 20 | 21 |
22 | 23 | 24 |
25 | 26 |
27 | 28 |
29 |
30 | 31 |
32 | 33 |
34 | 35 |
36 |
37 | 38 |
39 |
40 |
41 | 44 |
45 |
46 |
47 | 48 |
49 |
50 | 51 | 52 | Forgot Your Password? 53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 | @endsection 62 | -------------------------------------------------------------------------------- /resources/views/auth/password.blade.php: -------------------------------------------------------------------------------- 1 | @extends('app') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |
Reset Password
9 |
10 | @if (session('status')) 11 |
12 | {{ session('status') }} 13 |
14 | @endif 15 | 16 | @if (count($errors) > 0) 17 |
18 | Whoops! There were some problems with your input.

19 |
    20 | @foreach ($errors->all() as $error) 21 |
  • {{ $error }}
  • 22 | @endforeach 23 |
24 |
25 | @endif 26 | 27 |
28 | 29 | 30 |
31 | 32 |
33 | 34 |
35 |
36 | 37 |
38 |
39 | 42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 | @endsection 51 | -------------------------------------------------------------------------------- /resources/views/auth/register.blade.php: -------------------------------------------------------------------------------- 1 | @extends('app') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |
Register
9 |
10 | @if (count($errors) > 0) 11 |
12 | Whoops! There were some problems with your input.

13 |
    14 | @foreach ($errors->all() as $error) 15 |
  • {{ $error }}
  • 16 | @endforeach 17 |
18 |
19 | @endif 20 | 21 |
22 | 23 | 24 |
25 | 26 |
27 | 28 |
29 |
30 | 31 |
32 | 33 |
34 | 35 |
36 |
37 | 38 |
39 | 40 |
41 | 42 |
43 |
44 | 45 |
46 | 47 |
48 | 49 |
50 |
51 | 52 |
53 |
54 | 57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 | @endsection 66 | -------------------------------------------------------------------------------- /resources/views/auth/reset.blade.php: -------------------------------------------------------------------------------- 1 | @extends('app') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |
Reset Password
9 |
10 | @if (count($errors) > 0) 11 |
12 | Whoops! There were some problems with your input.

13 |
    14 | @foreach ($errors->all() as $error) 15 |
  • {{ $error }}
  • 16 | @endforeach 17 |
18 |
19 | @endif 20 | 21 |
22 | 23 | 24 | 25 |
26 | 27 |
28 | 29 |
30 |
31 | 32 |
33 | 34 |
35 | 36 |
37 |
38 | 39 |
40 | 41 |
42 | 43 |
44 |
45 | 46 |
47 |
48 | 51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 | @endsection 60 | -------------------------------------------------------------------------------- /resources/views/author/create.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.master') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |
9 |
{{ trans('authors.create') }}
10 |
11 | @if($errors->any()) 12 |
{{{ $errors->first() }}}
13 | @endif 14 |
15 | 16 | 17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 | @stop -------------------------------------------------------------------------------- /resources/views/author/edit.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.master') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 | 9 |
10 |
{{ trans('authors.edit') }}
11 |
12 | @if($errors->any()) 13 |
{{{ $errors->first() }}}
14 | @endif 15 |
16 | 17 | 18 |
19 | 20 | {{ trans('master.delete') }} 21 |
22 |
23 |
24 | 43 |
44 |
45 |
46 | @stop -------------------------------------------------------------------------------- /resources/views/author/index.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.master') 2 | 3 | @section('content') 4 |
5 |
6 |

{{ trans('master.authors') }}

7 |
8 |
9 |
10 |
11 |

{{ trans('authors.allauthors') }}

12 |
13 |
14 |
15 | 16 | 17 |
18 |
19 |
20 |
21 | 24 | 28 |
29 | @if(Auth::check() && Auth::user()->editor) 30 | {{ trans('master.add') }} 31 | @endif 32 |
33 |
34 |
35 | @include('author.partials.list', array('authors' => $authors)) 36 |
37 |
38 | @stop 39 | 40 | @section('scripts') 41 | 62 | @stop -------------------------------------------------------------------------------- /resources/views/author/partials/list.blade.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /resources/views/author/show.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.master') 2 | 3 | @section('content') 4 |
5 |

6 | {{{ $author->name }}} 7 | @if(Auth::check() && Auth::user()->editor) 8 | {{ trans('master.edit') }} 9 | @endif 10 |

11 |

12 | {{ Lang::choice('authors.contributed', $author->count, array('count' => $author->count)) }} 13 |

14 | @include('project.partials.list', array('projects' => $projects)) 15 |
16 | @stop 17 | 18 | @section('scripts') 19 | 24 | @stop -------------------------------------------------------------------------------- /resources/views/category/show.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.master') 2 | 3 | @section('content') 4 |
5 |
6 |

{{ Lang::choice("categories.{$category->id}",2) }}

7 |
8 |
9 |
10 |
11 |

{{ trans("categories.all{$category->id}") }}

12 |

{!! trans('categories.incategory', array('count' => '', 'total' => '')) !!}

13 | @include('project.partials.controls') 14 |
15 | @include('project.partials.list', array('projects' => $projects)) 16 |
17 |
18 | @stop 19 | 20 | @section('scripts') 21 | 27 | @stop -------------------------------------------------------------------------------- /resources/views/emails/auth/reminder.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |

Password Reset

8 | 9 |
10 | To reset your password, complete this form: {{ URL::to('password/reset', array($token)) }}. 11 |
12 | 13 | -------------------------------------------------------------------------------- /resources/views/emails/password.blade.php: -------------------------------------------------------------------------------- 1 | Click here to reset your password: {{ url('password/reset/'.$token) }} 2 | -------------------------------------------------------------------------------- /resources/views/errors/503.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 33 | 34 | 35 |
36 |
37 |
Be right back.
38 |
39 |
40 | 41 | 42 | -------------------------------------------------------------------------------- /resources/views/hello.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Laravel PHP Framework 6 | 35 | 36 | 37 |
38 | 39 |

You have arrived.

40 |
41 | 42 | 43 | -------------------------------------------------------------------------------- /resources/views/home.blade.php: -------------------------------------------------------------------------------- 1 | @extends('app') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |
Home
9 | 10 |
11 | You are logged in! 12 |
13 |
14 |
15 |
16 |
17 | @endsection 18 | -------------------------------------------------------------------------------- /resources/views/layouts/master.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | @yield('styles') 9 | 10 | {{ trans('master.title') }} 11 | 12 | 13 | @if(!isset($navbar) || $navbar == true) 14 | 60 | @endif 61 | 62 | @yield('content') 63 | 64 | @if(!isset($navbar) || $navbar == true) 65 | 70 | @endif 71 | 72 | @yield('data') 73 | 74 | @yield('scripts') 75 | 76 | 77 | -------------------------------------------------------------------------------- /resources/views/login.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.master') 2 | 3 | @section('styles') 4 | 5 | @stop 6 | 7 | @section('content') 8 |
9 |
10 |

{{ trans('login.title') }}

11 |
12 | 13 | 14 |
15 |
16 |
17 | 18 | 19 |
20 | 23 | 24 | 25 | @if($errors->any()) 26 |
27 |
{{{ $errors->first() }}}
28 | @endif 29 |
30 |
31 | @stop -------------------------------------------------------------------------------- /resources/views/project/create.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.master') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |
9 |
{{ trans('projects.create') }}
10 |
11 | @if($errors->any()) 12 |
{{{ $errors->first() }}}
13 | @endif 14 |
15 | 16 | 17 |
18 |
19 | 20 | 21 |
22 |
23 | 24 | 25 |
26 |
27 |
28 |
29 | 30 | 31 |
32 |
33 |
34 |
35 | 36 | 37 |
38 |
39 |
40 |
41 | 44 |
45 |
46 | 49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 | @stop -------------------------------------------------------------------------------- /resources/views/project/edit.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.master') 2 | 3 | @section('content') 4 |
5 |

{{{ trans('projects.edit_title', array('name' => $project->name)) }}}

6 |
7 |
8 |
9 | 10 |
11 |
{{ trans('projects.edit') }}
12 |
13 | @if($errors->any()) 14 |
{{{ $errors->first() }}}
15 | @endif 16 |
17 | 18 | 19 |
20 |
21 | 22 | 23 |
24 |
25 | 26 | 27 |
28 |
29 |
30 |
31 | 32 | 33 |
34 |
35 |
36 |
37 | 38 | 39 |
40 |
41 |
42 |
43 | 46 |
47 |
48 | 51 |
52 | 53 | {{ trans('master.delete') }} 54 |
55 |
56 |
57 | 76 |
77 |
78 |
79 | 80 |
81 |
{{ trans('projects.authors') }}
82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 102 | 103 | 104 | 105 | 106 | @foreach($project->authors as $author) 107 | 108 | 109 | 110 | 111 | @endforeach 112 | 113 |
{{ trans('master.name') }}{{ trans('master.action') }}
96 | 101 |
{{{ $author->name }}}
114 |
115 |
116 |
117 | 118 |
119 |
{{ trans('projects.ndless') }}
120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 140 | 141 | 142 | 143 | 144 | @foreach($project->versions as $version) 145 | 146 | 147 | 148 | 149 | @endforeach 150 | 151 |
{{ trans('projects.version') }}{{ trans('master.action') }}
134 | 139 |
{{{ $version->version }}}
152 |
153 |
154 |
155 | 156 |
157 |
{{ trans('projects.categories') }}
158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 178 | 179 | 180 | 181 | 182 | @foreach($project->categories as $category) 183 | 184 | 185 | 186 | 187 | @endforeach 188 | 189 |
{{ trans('master.name') }}{{ trans('master.action') }}
172 | 177 |
{{ Lang::choice("categories.{$category->id}",1) }}
190 |
191 |
192 |
193 | 194 |
195 |
{{ trans('projects.screenshot') }}
196 |
197 | @if($screenshot) 198 | {{ trans('projects.curscreen') }} 199 | 200 | @else 201 | {{ trans('projects.noscreen') }} 202 | @endif 203 |

204 | {{ trans('projects.upscreen') }} 205 | 206 | 207 | 208 |

209 |
210 |
211 |
212 |
213 |
214 |
215 | @stop -------------------------------------------------------------------------------- /resources/views/project/index.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.master') 2 | 3 | @section('navbar') 4 |
  • {{ trans('projects.featured') }}
  • 5 |
  • {{ trans('projects.mostclicked') }}
  • 6 |
  • {{ trans('projects.all') }}
  • 7 | @stop 8 | 9 | @section('content') 10 |
    11 |
    12 |

    {{ trans('master.title') }}

    13 |
    14 |
    15 | @include('project.partials.row', array('projects' => $featured, 'title' => 'featured', 'alternating' => false)) 16 | @include('project.partials.row', array('projects' => $mostclicked, 'title' => 'mostclicked', 'alternating' => true)) 17 |
    18 | 19 |
    20 |

    {{ trans('projects.allapps') }}

    21 |

    {!! trans('projects.count',array('count' => '', 'total' => '')) !!}

    22 | @include('project.partials.controls') 23 |
    24 | @include('project.partials.list', array('projects' => $projects)) 25 |
    26 |
    27 | @stop 28 | 29 | @section('scripts') 30 | 37 | @stop -------------------------------------------------------------------------------- /resources/views/project/partials/controls.blade.php: -------------------------------------------------------------------------------- 1 |
    2 |
    3 |
    4 | 5 | 6 |
    7 |
    8 |
    9 |
    10 | 13 |
    14 |
    15 | 18 | 21 |
    22 |
    23 | @foreach(Ndless::current() as $version) 24 | 27 | @endforeach 28 |
    29 |
    30 | 33 | 38 |
    39 | @if(Auth::check() && Auth::user()->editor) 40 | {{ trans('master.add') }} 41 | @endif 42 |
    43 |
    44 | 45 | @section('data') 46 | 47 | @stop 48 | -------------------------------------------------------------------------------- /resources/views/project/partials/list.blade.php: -------------------------------------------------------------------------------- 1 | 45 | -------------------------------------------------------------------------------- /resources/views/project/partials/row.blade.php: -------------------------------------------------------------------------------- 1 |
    2 | 3 |
    4 |

    {{ trans('projects.' . $title) }}

    5 |
    6 | @foreach($projects as $project) 7 |
    8 | @if(!file_exists(public_path() . "/img/screenshot/{$project->id}.png")) 9 | {{{ $project->name }}} 10 | @else 11 | {{{ $project->name }}} 12 | @endif 13 |

    {{{ $project->name }}}

    14 |

    15 | 16 | @foreach($project->authors as $author) 17 | {{{ $author->name }}} 18 | @endforeach 19 | 20 |

    21 |

    22 | {{{ $project->description }}} 23 |

    24 |

    25 | @foreach($project->categories as $category) 26 | {{ Lang::choice("categories.{$category->id}",1) }} 27 | @endforeach 28 | @foreach($project->versions as $version) 29 | @if(!$version->deprecated) 30 | {{{ $version->version }}} 31 | @else 32 | {{{ $version->version }}} 33 | @endif 34 | @endforeach 35 | {!! $project->classic_formatted !!} 36 | {!! $project->cx_formatted !!} 37 |

    38 |

    39 | @if(Auth::check() && Auth::user()->editor) 40 | {{ trans('master.edit') }} 41 | @endif 42 | @if($project->download_link) 43 | {{ trans('projects.download') }} {{ $project->clicks }} 44 | @else 45 | 46 | @endif 47 |

    48 |
    49 | @endforeach 50 |
    51 |
    52 |
    53 | -------------------------------------------------------------------------------- /resources/views/project/show.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.master') 2 | 3 | @section('content') 4 |
    5 |

    {{{ $project->name }}}

    6 | @include('project.partials.list', array('projects' => array($project))) 7 |
    8 | @stop -------------------------------------------------------------------------------- /resources/views/stats.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.master') 2 | 3 | @section('content') 4 |
    5 |
    6 |

    {{ trans('master.stats') }}

    7 |
    8 |
    9 |
    10 |
    11 |

    {!! trans('stats.title', array('pcount' => "".$data['countProjects']."", 'acount' => "".$data['countAuthors']."")) !!}

    12 |

    {!! trans('stats.title2', array('count' => "".number_format($data['countClicks'], 0, trans('master.dec_point'), trans('master.thousands_sep'))."")) !!}

    13 |
    14 |
    15 |
    16 |
    17 |

    {!! trans('stats.support', array('percent' => "".round($data['countCx']/$data['countProjects']*100)."%")) !!}

    18 |

    {!! trans('stats.support2', array('percent' => "".round($data['countClassic']/$data['countProjects']*100)."%")) !!}

    19 |
    20 |
    21 |

    {{ trans('stats.cxsupport') }}

    22 |
    23 | 24 |
    25 |
    26 |
    27 |

    {{ trans('stats.clsupport') }}

    28 |
    29 | 30 |
    31 |
    32 |
    33 |
    34 |
    35 |
    36 |
    37 |

    {!! trans('stats.ndless', array('percent' => "".round($data['comp'][0]->count/$data['countProjects']*100)."%", 'version' => Ndless::latest()->version)) !!}

    38 |
    39 |
    40 |
    41 | 42 |
    43 |
    44 |
    45 |
    46 |
    47 |
    48 |
    49 |

    {!! trans('stats.contributions', array('name' => "".$data['author'][0]->name."", 'count' => "".$data['author'][0]->count."")) !!}

    50 |

    {{ trans('stats.contributions2') }}

    51 |
    52 |
    53 |
    54 | 55 |
    56 |
    57 |
    58 |
    59 |
    60 | @stop 61 | 62 | @section('data') 63 | 66 | 76 | @stop 77 | 78 | @section('scripts') 79 | 84 | @stop -------------------------------------------------------------------------------- /resources/views/vendor/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compujuckel/ndless-apps/b646238dbc9057b9783ca613fd4abd65666d0cb5/resources/views/vendor/.gitkeep -------------------------------------------------------------------------------- /resources/views/welcome.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | Laravel 4 | 5 | 6 | 7 | 39 | 40 | 41 |
    42 |
    43 |
    Laravel 5
    44 |
    {{ Inspiring::quote() }}
    45 |
    46 |
    47 | 48 | 49 | -------------------------------------------------------------------------------- /server.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | 9 | $uri = urldecode( 10 | parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) 11 | ); 12 | 13 | // This file allows us to emulate Apache's "mod_rewrite" functionality from the 14 | // built-in PHP web server. This provides a convenient way to test a Laravel 15 | // application without having installed a "real" web server software here. 16 | if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) 17 | { 18 | return false; 19 | } 20 | 21 | require_once __DIR__.'/public/index.php'; 22 | -------------------------------------------------------------------------------- /storage/.gitignore: -------------------------------------------------------------------------------- 1 | laravel.log -------------------------------------------------------------------------------- /storage/app/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /storage/framework/.gitignore: -------------------------------------------------------------------------------- 1 | config.php 2 | routes.php 3 | compiled.php 4 | services.json 5 | events.scanned.php 6 | routes.scanned.php 7 | -------------------------------------------------------------------------------- /storage/framework/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /storage/framework/sessions/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/views/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/logs/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /tests/ExampleTest.php: -------------------------------------------------------------------------------- 1 | call('GET', '/'); 13 | 14 | $this->assertEquals(200, $response->getStatusCode()); 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- 1 | make('Illuminate\Contracts\Console\Kernel')->bootstrap(); 16 | 17 | return $app; 18 | } 19 | 20 | } 21 | --------------------------------------------------------------------------------