├── public ├── favicon.ico ├── robots.txt ├── .htaccess ├── web.config ├── index.php └── svg │ ├── 404.svg │ ├── 503.svg │ └── 403.svg ├── database ├── .gitignore ├── seeds │ └── DatabaseSeeder.php ├── factories │ └── UserFactory.php └── migrations │ ├── 2019_05_16_040008_create_puzzles_table.php │ ├── 2019_01_16_125135_create_clues_table.php │ ├── 2019_03_11_235548_create_houses_table.php │ ├── 2019_03_11_235627_create_orientation_groups_table.php │ └── 2019_03_12_000109_create_orientation_group_leaders_table.php ├── bootstrap ├── cache │ └── .gitignore └── app.php ├── storage ├── logs │ └── .gitignore ├── app │ ├── public │ │ └── .gitignore │ └── .gitignore └── framework │ ├── testing │ └── .gitignore │ ├── views │ └── .gitignore │ ├── cache │ ├── data │ │ └── .gitignore │ └── .gitignore │ ├── sessions │ └── .gitignore │ └── .gitignore ├── resources ├── views │ ├── vendor │ │ ├── mail │ │ │ ├── markdown │ │ │ │ ├── panel.blade.php │ │ │ │ ├── table.blade.php │ │ │ │ ├── footer.blade.php │ │ │ │ ├── promotion.blade.php │ │ │ │ ├── subcopy.blade.php │ │ │ │ ├── button.blade.php │ │ │ │ ├── header.blade.php │ │ │ │ ├── promotion │ │ │ │ │ └── button.blade.php │ │ │ │ ├── layout.blade.php │ │ │ │ └── message.blade.php │ │ │ └── html │ │ │ │ ├── table.blade.php │ │ │ │ ├── header.blade.php │ │ │ │ ├── subcopy.blade.php │ │ │ │ ├── promotion.blade.php │ │ │ │ ├── footer.blade.php │ │ │ │ ├── panel.blade.php │ │ │ │ ├── promotion │ │ │ │ └── button.blade.php │ │ │ │ ├── message.blade.php │ │ │ │ ├── button.blade.php │ │ │ │ ├── layout.blade.php │ │ │ │ └── themes │ │ │ │ └── default.css │ │ ├── pagination │ │ │ ├── simple-default.blade.php │ │ │ ├── simple-bootstrap-4.blade.php │ │ │ ├── semantic-ui.blade.php │ │ │ ├── default.blade.php │ │ │ └── bootstrap-4.blade.php │ │ └── notifications │ │ │ └── email.blade.php │ ├── fake404.blade.php │ ├── staging_warning.blade.php │ └── errors │ │ ├── 500.blade.php │ │ ├── 401.blade.php │ │ ├── 429.blade.php │ │ ├── 419.blade.php │ │ ├── 403.blade.php │ │ ├── 503.blade.php │ │ ├── 404.blade.php │ │ └── layout.blade.php ├── img │ ├── nic.jpg │ ├── frame_1.jpg │ ├── frame_2.jpg │ ├── olethros.png │ ├── trendlink.jpg │ ├── preview_logo.png │ └── vela.svg ├── embeds │ └── teaser.mp3 ├── fonts │ ├── calculator.ttf │ └── phage_regular.otf ├── lang │ └── en │ │ ├── pagination.php │ │ ├── auth.php │ │ ├── passwords.php │ │ └── validation.php ├── js │ ├── components │ │ └── ExampleComponent.vue │ ├── 404.js │ ├── bootstrap.js │ ├── preloader.js │ └── app.js └── sass │ ├── 404.scss │ ├── preloader.scss │ └── app.scss ├── .gitattributes ├── app ├── House.php ├── Puzzle.php ├── OGL.php ├── GroupChat.php ├── OG.php ├── Http │ ├── Middleware │ │ ├── EncryptCookies.php │ │ ├── CheckForMaintenanceMode.php │ │ ├── TrimStrings.php │ │ ├── TrustProxies.php │ │ ├── Authenticate.php │ │ ├── VerifyCsrfToken.php │ │ └── RedirectIfAuthenticated.php │ ├── Controllers │ │ ├── Controller.php │ │ └── Auth │ │ │ ├── ForgotPasswordController.php │ │ │ ├── LoginController.php │ │ │ ├── ResetPasswordController.php │ │ │ ├── VerificationController.php │ │ │ └── RegisterController.php │ └── Kernel.php ├── Providers │ ├── BroadcastServiceProvider.php │ ├── AppServiceProvider.php │ ├── AuthServiceProvider.php │ ├── EventServiceProvider.php │ └── RouteServiceProvider.php ├── Clue.php ├── User.php ├── Console │ └── Kernel.php ├── TelegramBot │ └── Commands │ │ ├── PingCommand.php │ │ ├── HelloCommand.php │ │ ├── KeyCommand.php │ │ └── RegisterCommand.php └── Exceptions │ └── Handler.php ├── config ├── debug-server.php ├── tinker.php ├── view.php ├── services.php ├── hashing.php ├── broadcasting.php ├── trustedproxy.php ├── filesystems.php ├── telegram.php ├── queue.php ├── logging.php ├── cache.php ├── auth.php ├── database.php ├── mail.php ├── session.php └── app.php ├── tests ├── TestCase.php ├── Unit │ └── ExampleTest.php ├── Feature │ └── ExampleTest.php └── CreatesApplication.php ├── .gitignore ├── routes ├── channels.php ├── console.php ├── api.php └── web.php ├── server.php ├── webpack.mix.js ├── .env.example ├── phpunit.xml ├── package.json ├── composer.json ├── artisan └── readme.md /public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /database/.gitignore: -------------------------------------------------------------------------------- 1 | *.sqlite 2 | -------------------------------------------------------------------------------- /bootstrap/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/logs/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /storage/app/public/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/app/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !public/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/framework/testing/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/views/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/cache/data/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/sessions/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /resources/views/vendor/mail/markdown/panel.blade.php: -------------------------------------------------------------------------------- 1 | {{ $slot }} 2 | -------------------------------------------------------------------------------- /resources/views/vendor/mail/markdown/table.blade.php: -------------------------------------------------------------------------------- 1 | {{ $slot }} 2 | -------------------------------------------------------------------------------- /storage/framework/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !data/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /resources/views/vendor/mail/markdown/footer.blade.php: -------------------------------------------------------------------------------- 1 | {{ $slot }} 2 | -------------------------------------------------------------------------------- /resources/views/vendor/mail/markdown/promotion.blade.php: -------------------------------------------------------------------------------- 1 | {{ $slot }} 2 | -------------------------------------------------------------------------------- /resources/views/vendor/mail/markdown/subcopy.blade.php: -------------------------------------------------------------------------------- 1 | {{ $slot }} 2 | -------------------------------------------------------------------------------- /resources/views/vendor/mail/markdown/button.blade.php: -------------------------------------------------------------------------------- 1 | {{ $slot }}: {{ $url }} 2 | -------------------------------------------------------------------------------- /resources/views/vendor/mail/markdown/header.blade.php: -------------------------------------------------------------------------------- 1 | [{{ $slot }}]({{ $url }}) 2 | -------------------------------------------------------------------------------- /resources/views/vendor/mail/markdown/promotion/button.blade.php: -------------------------------------------------------------------------------- 1 | [{{ $slot }}]({{ $url }}) 2 | -------------------------------------------------------------------------------- /resources/img/nic.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenSUTD/orientation2019/master/resources/img/nic.jpg -------------------------------------------------------------------------------- /resources/img/frame_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenSUTD/orientation2019/master/resources/img/frame_1.jpg -------------------------------------------------------------------------------- /resources/img/frame_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenSUTD/orientation2019/master/resources/img/frame_2.jpg -------------------------------------------------------------------------------- /resources/embeds/teaser.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenSUTD/orientation2019/master/resources/embeds/teaser.mp3 -------------------------------------------------------------------------------- /resources/img/olethros.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenSUTD/orientation2019/master/resources/img/olethros.png -------------------------------------------------------------------------------- /resources/img/trendlink.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenSUTD/orientation2019/master/resources/img/trendlink.jpg -------------------------------------------------------------------------------- /resources/fonts/calculator.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenSUTD/orientation2019/master/resources/fonts/calculator.ttf -------------------------------------------------------------------------------- /resources/img/preview_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenSUTD/orientation2019/master/resources/img/preview_logo.png -------------------------------------------------------------------------------- /resources/fonts/phage_regular.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenSUTD/orientation2019/master/resources/fonts/phage_regular.otf -------------------------------------------------------------------------------- /resources/views/vendor/mail/html/table.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {{ Illuminate\Mail\Markdown::parse($slot) }} 3 |
4 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | *.css linguist-vendored 3 | *.scss linguist-vendored 4 | *.js linguist-vendored 5 | CHANGELOG.md export-ignore 6 | -------------------------------------------------------------------------------- /storage/framework/.gitignore: -------------------------------------------------------------------------------- 1 | config.php 2 | routes.php 3 | schedule-* 4 | compiled.php 5 | services.json 6 | events.scanned.php 7 | routes.scanned.php 8 | down 9 | -------------------------------------------------------------------------------- /app/House.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | {{ $slot }} 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /config/debug-server.php: -------------------------------------------------------------------------------- 1 | 'tcp://127.0.0.1:9912', 8 | ]; 9 | -------------------------------------------------------------------------------- /app/OGL.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |

Not 404

6 |
Oops! You tried to get an intentional 404 didn't you? Try going to a page that actually doesn't exist.
7 | 8 | -------------------------------------------------------------------------------- /resources/views/vendor/mail/markdown/layout.blade.php: -------------------------------------------------------------------------------- 1 | {!! strip_tags($header) !!} 2 | 3 | {!! strip_tags($slot) !!} 4 | @isset($subcopy) 5 | 6 | {!! strip_tags($subcopy) !!} 7 | @endisset 8 | 9 | {!! strip_tags($footer) !!} 10 | -------------------------------------------------------------------------------- /app/GroupChat.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | {{ Illuminate\Mail\Markdown::parse($slot) }} 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /app/OG.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | {{ Illuminate\Mail\Markdown::parse($slot) }} 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | **/.DS_Store 2 | /node_modules 3 | /public/hot 4 | /public/storage 5 | /storage/*.key 6 | /vendor 7 | .env 8 | .phpunit.result.cache 9 | Homestead.json 10 | Homestead.yaml 11 | npm-debug.log 12 | yarn-error.log 13 | /public/adminer.php 14 | public/css 15 | public/js 16 | .editorconfig -------------------------------------------------------------------------------- /database/seeds/DatabaseSeeder.php: -------------------------------------------------------------------------------- 1 | call(UsersTableSeeder::class); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /app/Http/Middleware/EncryptCookies.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /resources/views/vendor/mail/html/footer.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /resources/views/staging_warning.blade.php: -------------------------------------------------------------------------------- 1 |
2 | You are viewing the Orientation website on the staging server: Things may appear broken or may change by the minute. 3 | 4 |
-------------------------------------------------------------------------------- /resources/views/errors/500.blade.php: -------------------------------------------------------------------------------- 1 | @extends('errors::illustrated-layout') 2 | 3 | @section('code', '500') 4 | @section('title', __('Error')) 5 | 6 | @section('image') 7 |
8 |
9 | @endsection 10 | 11 | @section('message', __('Whoops, something went wrong on our servers.')) 12 | -------------------------------------------------------------------------------- /resources/views/errors/401.blade.php: -------------------------------------------------------------------------------- 1 | @extends('errors::illustrated-layout') 2 | 3 | @section('code', '401') 4 | @section('title', __('Unauthorized')) 5 | 6 | @section('image') 7 |
8 |
9 | @endsection 10 | 11 | @section('message', __('Sorry, you are not authorized to access this page.')) 12 | -------------------------------------------------------------------------------- /app/Http/Controllers/Controller.php: -------------------------------------------------------------------------------- 1 | 8 | 9 | @endsection 10 | 11 | @section('message', __('Sorry, you are making too many requests to our servers.')) 12 | -------------------------------------------------------------------------------- /app/Http/Middleware/CheckForMaintenanceMode.php: -------------------------------------------------------------------------------- 1 | 8 | 9 | @endsection 10 | 11 | @section('message', __('Sorry, your session has expired. Please refresh and try again.')) 12 | -------------------------------------------------------------------------------- /resources/views/errors/403.blade.php: -------------------------------------------------------------------------------- 1 | @extends('errors::illustrated-layout') 2 | 3 | @section('code', '403') 4 | @section('title', __('Forbidden')) 5 | 6 | @section('image') 7 |
8 |
9 | @endsection 10 | 11 | @section('message', __($exception->getMessage() ?: 'Sorry, you are forbidden from accessing this page.')) 12 | -------------------------------------------------------------------------------- /tests/Feature/ExampleTest.php: -------------------------------------------------------------------------------- 1 | get('/'); 18 | 19 | $response->assertStatus(200); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /resources/views/errors/503.blade.php: -------------------------------------------------------------------------------- 1 | @extends('errors::illustrated-layout') 2 | 3 | @section('code', '503') 4 | @section('title', __('Service Unavailable')) 5 | 6 | @section('image') 7 |
8 |
9 | @endsection 10 | 11 | @section('message', __($exception->getMessage() ?: 'Sorry, we are doing some maintenance. Please check back soon.')) 12 | -------------------------------------------------------------------------------- /tests/CreatesApplication.php: -------------------------------------------------------------------------------- 1 | make(Kernel::class)->bootstrap(); 19 | 20 | return $app; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /app/Providers/BroadcastServiceProvider.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 10 |
7 | {{ Illuminate\Mail\Markdown::parse($slot) }} 8 |
11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /resources/views/vendor/mail/html/promotion/button.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 12 | 13 |
4 | 5 | 6 | 9 | 10 |
7 | {{ $slot }} 8 |
11 |
14 | -------------------------------------------------------------------------------- /app/Clue.php: -------------------------------------------------------------------------------- 1 | hasMany(self::class, 'unlocks_id', 'id'); 19 | } 20 | 21 | public function requires() 22 | { 23 | return $this->belongsTo(self::class, 'unlocks_id', 'id'); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /app/Http/Middleware/TrustProxies.php: -------------------------------------------------------------------------------- 1 | expectsJson()) { 18 | return route('login'); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /routes/channels.php: -------------------------------------------------------------------------------- 1 | id === (int) $id; 16 | }); 17 | -------------------------------------------------------------------------------- /app/Http/Middleware/VerifyCsrfToken.php: -------------------------------------------------------------------------------- 1 | '« Previous', 17 | 'next' => 'Next »', 18 | 19 | ]; 20 | -------------------------------------------------------------------------------- /routes/console.php: -------------------------------------------------------------------------------- 1 | comment(Inspiring::quote()); 18 | })->describe('Display an inspiring quote'); 19 | -------------------------------------------------------------------------------- /server.php: -------------------------------------------------------------------------------- 1 | 8 | */ 9 | 10 | $uri = urldecode( 11 | parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) 12 | ); 13 | 14 | // This file allows us to emulate Apache's "mod_rewrite" functionality from the 15 | // built-in PHP web server. This provides a convenient way to test a Laravel 16 | // application without having installed a "real" web server software here. 17 | if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) { 18 | return false; 19 | } 20 | 21 | require_once __DIR__.'/public/index.php'; 22 | -------------------------------------------------------------------------------- /app/Http/Middleware/RedirectIfAuthenticated.php: -------------------------------------------------------------------------------- 1 | check()) { 21 | return redirect('/home'); 22 | } 23 | 24 | return $next($request); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /public/.htaccess: -------------------------------------------------------------------------------- 1 | 2 | 3 | Options -MultiViews -Indexes 4 | 5 | 6 | RewriteEngine On 7 | 8 | # Handle Authorization Header 9 | RewriteCond %{HTTP:Authorization} . 10 | RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] 11 | 12 | # Redirect Trailing Slashes If Not A Folder... 13 | RewriteCond %{REQUEST_FILENAME} !-d 14 | RewriteCond %{REQUEST_URI} (.+)/$ 15 | RewriteRule ^ %1 [L,R=301] 16 | 17 | # Handle Front Controller... 18 | RewriteCond %{REQUEST_FILENAME} !-d 19 | RewriteCond %{REQUEST_FILENAME} !-f 20 | RewriteRule ^ index.php [L] 21 | 22 | -------------------------------------------------------------------------------- /app/User.php: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 |
5 |
6 |
Example Component
7 | 8 |
9 | I'm an example component. 10 |
11 |
12 |
13 |
14 |
15 | 16 | 17 | 24 | -------------------------------------------------------------------------------- /resources/lang/en/auth.php: -------------------------------------------------------------------------------- 1 | 'These credentials do not match our records.', 17 | 'throttle' => 'Too many login attempts. Please try again in :seconds seconds.', 18 | 19 | ]; 20 | -------------------------------------------------------------------------------- /app/Providers/AuthServiceProvider.php: -------------------------------------------------------------------------------- 1 | 'App\Policies\ModelPolicy', 17 | ]; 18 | 19 | /** 20 | * Register any authentication / authorization services. 21 | * 22 | * @return void 23 | */ 24 | public function boot() 25 | { 26 | $this->registerPolicies(); 27 | 28 | // 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /resources/views/vendor/mail/html/message.blade.php: -------------------------------------------------------------------------------- 1 | @component('mail::layout') 2 | {{-- Header --}} 3 | @slot('header') 4 | @component('mail::header', ['url' => config('app.url')]) 5 | {{ config('app.name') }} 6 | @endcomponent 7 | @endslot 8 | 9 | {{-- Body --}} 10 | {{ $slot }} 11 | 12 | {{-- Subcopy --}} 13 | @isset($subcopy) 14 | @slot('subcopy') 15 | @component('mail::subcopy') 16 | {{ $subcopy }} 17 | @endcomponent 18 | @endslot 19 | @endisset 20 | 21 | {{-- Footer --}} 22 | @slot('footer') 23 | @component('mail::footer') 24 | © {{ date('Y') }} {{ config('app.name') }}. @lang('All rights reserved.') 25 | @endcomponent 26 | @endslot 27 | @endcomponent 28 | -------------------------------------------------------------------------------- /resources/views/vendor/mail/markdown/message.blade.php: -------------------------------------------------------------------------------- 1 | @component('mail::layout') 2 | {{-- Header --}} 3 | @slot('header') 4 | @component('mail::header', ['url' => config('app.url')]) 5 | {{ config('app.name') }} 6 | @endcomponent 7 | @endslot 8 | 9 | {{-- Body --}} 10 | {{ $slot }} 11 | 12 | {{-- Subcopy --}} 13 | @isset($subcopy) 14 | @slot('subcopy') 15 | @component('mail::subcopy') 16 | {{ $subcopy }} 17 | @endcomponent 18 | @endslot 19 | @endisset 20 | 21 | {{-- Footer --}} 22 | @slot('footer') 23 | @component('mail::footer') 24 | © {{ date('Y') }} {{ config('app.name') }}. @lang('All rights reserved.') 25 | @endcomponent 26 | @endslot 27 | @endcomponent 28 | -------------------------------------------------------------------------------- /resources/views/vendor/pagination/simple-default.blade.php: -------------------------------------------------------------------------------- 1 | @if ($paginator->hasPages()) 2 | 17 | @endif 18 | -------------------------------------------------------------------------------- /resources/sass/404.scss: -------------------------------------------------------------------------------- 1 | 2 | .message_box{ 3 | border: 2px solid blue; 4 | max-width: 100vw; 5 | height: auto; 6 | word-break: break-word; 7 | font-family: monospace; 8 | } 9 | .actual_message{ 10 | display: none; 11 | } 12 | .expected_password{ 13 | display: none; 14 | } 15 | .message_group{ 16 | width:100%; 17 | border: 2px dashed green; 18 | margin-bottom: 5vh; 19 | } 20 | .guess_password{ 21 | width: 50%; 22 | height: 5vh; 23 | font-size:3em; 24 | border: 1px solid red; 25 | } 26 | .guess_password_btn{ 27 | width: auto; 28 | height: 5vh; 29 | font-size: 3em; 30 | background-color: grey; 31 | } 32 | .puzzle_title{ 33 | margin-top: 1vh; 34 | margin-bottom: 1vh; 35 | border-bottom: 1px solid black; 36 | font-weight: bold; 37 | } 38 | div{ 39 | font-size: 1.5em; 40 | } 41 | body{ 42 | overflow-x: hidden; 43 | } -------------------------------------------------------------------------------- /resources/views/vendor/mail/html/button.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 18 | 19 |
4 | 5 | 6 | 15 | 16 |
7 | 8 | 9 | 12 | 13 |
10 | {{ $slot }} 11 |
14 |
17 |
20 | -------------------------------------------------------------------------------- /resources/js/404.js: -------------------------------------------------------------------------------- 1 | window.addEventListener("DOMContentLoaded", function(){ 2 | var inputButtons = Array.from(document.querySelectorAll('.guess_password_btn')); 3 | inputButtons.forEach(function(inputBtn, pos){ 4 | inputBtn.addEventListener("click", function(){ 5 | let guessed_password = document.querySelectorAll('.guess_password')[pos].value.trim(); 6 | console.log(guessed_password); 7 | fetch('/api/try_puzzle/'+(pos+1).toString(), { 8 | method: "POST", 9 | headers: { 10 | 'Content-Type': 'application/json' 11 | }, 12 | body: JSON.stringify({ password: guessed_password }) 13 | }).then(response => response.text()) 14 | .then(function(response){ 15 | let message_box = document.querySelectorAll('.message_box')[pos]; 16 | message_box.innerHTML = response; 17 | }); 18 | }); 19 | }); 20 | }); -------------------------------------------------------------------------------- /app/Providers/EventServiceProvider.php: -------------------------------------------------------------------------------- 1 | [ 19 | SendEmailVerificationNotification::class, 20 | ], 21 | ]; 22 | 23 | /** 24 | * Register any events for your application. 25 | * 26 | * @return void 27 | */ 28 | public function boot() 29 | { 30 | parent::boot(); 31 | 32 | // 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /resources/lang/en/passwords.php: -------------------------------------------------------------------------------- 1 | 'Passwords must be at least six characters and match the confirmation.', 17 | 'reset' => 'Your password has been reset!', 18 | 'sent' => 'We have e-mailed your password reset link!', 19 | 'token' => 'This password reset token is invalid.', 20 | 'user' => "We can't find a user with that e-mail address.", 21 | 22 | ]; 23 | -------------------------------------------------------------------------------- /database/factories/UserFactory.php: -------------------------------------------------------------------------------- 1 | define(App\User::class, function (Faker $faker) { 17 | return [ 18 | 'name' => $faker->name, 19 | 'email' => $faker->unique()->safeEmail, 20 | 'email_verified_at' => now(), 21 | 'password' => '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', // secret 22 | 'remember_token' => str_random(10), 23 | ]; 24 | }); 25 | -------------------------------------------------------------------------------- /webpack.mix.js: -------------------------------------------------------------------------------- 1 | const mix = require('laravel-mix'); 2 | 3 | /* 4 | |-------------------------------------------------------------------------- 5 | | Mix Asset Management 6 | |-------------------------------------------------------------------------- 7 | | 8 | | Mix provides a clean, fluent API for defining some Webpack build steps 9 | | for your Laravel application. By default, we are compiling the Sass 10 | | file for the application as well as bundling up all the JS files. 11 | | 12 | */ 13 | 14 | mix.copyDirectory('resources/img', 'public/img') 15 | .copyDirectory("resources/embeds", "public/embeds") 16 | .js("resources/js/app.js", "public/js") 17 | .js('resources/js/preloader.js', 'public/js') 18 | .js('resources/js/404.js', 'public/js') 19 | .sass('resources/sass/preloader.scss', 'public/css') 20 | .sass("resources/sass/app.scss", "public/css") 21 | .sass('resources/sass/404.scss', 'public/css'); -------------------------------------------------------------------------------- /resources/views/errors/404.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |

404

8 |

Page Not Found

9 |

However, we found these instead......

10 | 13 | @foreach(App\Puzzle::all() as $puzzle) 14 |
15 |
{{$puzzle->name}}
16 |
{!!$puzzle->hint!!}
17 |
18 | @php 19 | echo str_random(256); 20 | @endphp 21 |
22 |
23 | Enter decryption key: 24 |
25 | @endforeach 26 | 27 | -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- 1 | APP_NAME=Laravel 2 | APP_ENV=local 3 | APP_KEY= 4 | APP_DEBUG=true 5 | APP_URL=http://localhost 6 | 7 | TELEGRAM_BOT_TOKEN=something 8 | TELEGRAM_ENDPOINT_SECRET=tokengoeshere 9 | 10 | GMAPS_API_KEY=something 11 | 12 | LOG_CHANNEL=stack 13 | 14 | DB_CONNECTION=mysql 15 | DB_HOST=127.0.0.1 16 | DB_PORT=3306 17 | DB_DATABASE=homestead 18 | DB_USERNAME=homestead 19 | DB_PASSWORD=secret 20 | 21 | BROADCAST_DRIVER=log 22 | CACHE_DRIVER=file 23 | QUEUE_CONNECTION=sync 24 | SESSION_DRIVER=file 25 | SESSION_LIFETIME=120 26 | 27 | REDIS_HOST=127.0.0.1 28 | REDIS_PASSWORD=null 29 | REDIS_PORT=6379 30 | 31 | MAIL_DRIVER=smtp 32 | MAIL_HOST=smtp.mailtrap.io 33 | MAIL_PORT=2525 34 | MAIL_USERNAME=null 35 | MAIL_PASSWORD=null 36 | MAIL_ENCRYPTION=null 37 | 38 | PUSHER_APP_ID= 39 | PUSHER_APP_KEY= 40 | PUSHER_APP_SECRET= 41 | PUSHER_APP_CLUSTER=mt1 42 | 43 | MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" 44 | MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" 45 | -------------------------------------------------------------------------------- /database/migrations/2019_05_16_040008_create_puzzles_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('name'); 19 | $table->longText('hint'); 20 | $table->string('password'); 21 | $table->longText('lore'); 22 | $table->timestamps(); 23 | }); 24 | } 25 | 26 | /** 27 | * Reverse the migrations. 28 | * 29 | * @return void 30 | */ 31 | public function down() 32 | { 33 | Schema::dropIfExists('puzzles'); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /public/web.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/ForgotPasswordController.php: -------------------------------------------------------------------------------- 1 | middleware('guest'); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /database/migrations/2019_01_16_125135_create_clues_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('key'); 19 | $table->text('clueText'); 20 | $table->integer('unlocks_id')->unsigned()->nullable(); 21 | $table->foreign('unlocks_id')->references('id')->on('clues')->onDelete('cascade'); 22 | $table->timestamps(); 23 | }); 24 | } 25 | 26 | /** 27 | * Reverse the migrations. 28 | * 29 | * @return void 30 | */ 31 | public function down() 32 | { 33 | Schema::dropIfExists('clues'); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /database/migrations/2019_03_11_235548_create_houses_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('name'); 19 | $table->timestamps(); 20 | }); 21 | DB::table('houses')->insert([ 22 | ['name' => 'Nova'], 23 | ['name' => 'Vela'], 24 | ['name' => 'Pyxis'], 25 | ['name' => 'Auryx'], 26 | ]); 27 | } 28 | 29 | /** 30 | * Reverse the migrations. 31 | * 32 | * @return void 33 | */ 34 | public function down() 35 | { 36 | Schema::dropIfExists('houses'); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /app/Console/Kernel.php: -------------------------------------------------------------------------------- 1 | command('inspire') 28 | // ->hourly(); 29 | } 30 | 31 | /** 32 | * Register the commands for the application. 33 | * 34 | * @return void 35 | */ 36 | protected function commands() 37 | { 38 | $this->load(__DIR__.'/Commands'); 39 | 40 | require base_path('routes/console.php'); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /app/TelegramBot/Commands/PingCommand.php: -------------------------------------------------------------------------------- 1 | getUpdate()->getMessage()->getdate()) * 2; 27 | $response = 'Pong... *'.$ping.'ms*'; 28 | $response .= PHP_EOL.'CPU Load: '.implode(', ', $loadAverages); 29 | $response .= PHP_EOL.'Threads: '.$threads; 30 | // Reply with the commands list 31 | $this->replyWithMessage(['text' => $response, 'parse_mode' => 'Markdown']); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /routes/api.php: -------------------------------------------------------------------------------- 1 | get('callback_query') == null) { 19 | } 20 | Log::debug(var_export($update, true)); 21 | 22 | return 'ok'; 23 | }); 24 | 25 | Route::post('try_puzzle/{id}', function (Request $request, $id) { 26 | $puzzle = App\Puzzle::find($id); 27 | if ($request->input('password') == $puzzle->password) { 28 | return $puzzle->lore; 29 | } else { 30 | return str_random(255); 31 | } 32 | }); 33 | -------------------------------------------------------------------------------- /database/migrations/2019_03_11_235627_create_orientation_groups_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->integer('points')->default(0); 19 | $table->string('name'); 20 | $table->bigInteger('chat_id'); 21 | $table->integer('house_id')->unsigned()->nullable(); 22 | $table->foreign('house_id')->references('id')->on('houses'); 23 | $table->timestamps(); 24 | }); 25 | } 26 | 27 | /** 28 | * Reverse the migrations. 29 | * 30 | * @return void 31 | */ 32 | public function down() 33 | { 34 | Schema::dropIfExists('orientation_groups'); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /resources/views/vendor/pagination/simple-bootstrap-4.blade.php: -------------------------------------------------------------------------------- 1 | @if ($paginator->hasPages()) 2 | 25 | @endif 26 | -------------------------------------------------------------------------------- /config/tinker.php: -------------------------------------------------------------------------------- 1 | [ 17 | // App\Console\Commands\ExampleCommand::class, 18 | ], 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Alias Blacklist 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Typically, Tinker automatically aliases classes as you require them in 26 | | Tinker. However, you may wish to never alias certain classes, which 27 | | you may accomplish by listing the classes in the following array. 28 | | 29 | */ 30 | 31 | 'dont_alias' => [], 32 | 33 | ]; 34 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/LoginController.php: -------------------------------------------------------------------------------- 1 | middleware('guest')->except('logout'); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /database/migrations/2019_03_12_000109_create_orientation_group_leaders_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('name'); 19 | $table->string('user_id'); 20 | $table->enum('role', ['cydroid', 'endroid', 'GM']); 21 | $table->integer('og_id')->unsigned()->nullable(); 22 | $table->foreign('og_id')->references('id')->on('orientation_groups'); 23 | $table->timestamps(); 24 | }); 25 | } 26 | 27 | /** 28 | * Reverse the migrations. 29 | * 30 | * @return void 31 | */ 32 | public function down() 33 | { 34 | Schema::dropIfExists('orientation_group_leaders'); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/ResetPasswordController.php: -------------------------------------------------------------------------------- 1 | middleware('guest'); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /app/TelegramBot/Commands/HelloCommand.php: -------------------------------------------------------------------------------- 1 | ()` all the available methods are dynamically 27 | // handled when you replace `send` with `replyWith` and use the same parameters - except chat_id does NOT need to be included in the array. 28 | 29 | $response = 'Hello '.$this->getUpdate()->getMessage()->getFrom()->getUsername(); 30 | 31 | // Reply with the commands list 32 | $this->replyWithMessage(['text' => $response]); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /config/view.php: -------------------------------------------------------------------------------- 1 | [ 17 | resource_path('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' => env( 32 | 'VIEW_COMPILED_PATH', 33 | realpath(storage_path('framework/views')) 34 | ), 35 | 36 | ]; 37 | -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | ./tests/Unit 14 | 15 | 16 | 17 | ./tests/Feature 18 | 19 | 20 | 21 | 22 | ./app 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /routes/web.php: -------------------------------------------------------------------------------- 1 | middleware('auth'); 38 | $this->middleware('signed')->only('verify'); 39 | $this->middleware('throttle:6,1')->only('verify', 'resend'); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /app/Exceptions/Handler.php: -------------------------------------------------------------------------------- 1 | [ 18 | 'domain' => env('MAILGUN_DOMAIN'), 19 | 'secret' => env('MAILGUN_SECRET'), 20 | 'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'), 21 | ], 22 | 23 | 'ses' => [ 24 | 'key' => env('SES_KEY'), 25 | 'secret' => env('SES_SECRET'), 26 | 'region' => env('SES_REGION', 'us-east-1'), 27 | ], 28 | 29 | 'sparkpost' => [ 30 | 'secret' => env('SPARKPOST_SECRET'), 31 | ], 32 | 33 | 'stripe' => [ 34 | 'model' => App\User::class, 35 | 'key' => env('STRIPE_KEY'), 36 | 'secret' => env('STRIPE_SECRET'), 37 | 'webhook' => [ 38 | 'secret' => env('STRIPE_WEBHOOK_SECRET'), 39 | 'tolerance' => env('STRIPE_WEBHOOK_TOLERANCE', 300), 40 | ], 41 | ], 42 | 43 | ]; 44 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "scripts": { 4 | "dev": "npm run development", 5 | "development": "NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", 6 | "watch": "npm run development -- --watch", 7 | "watch-poll": "npm run watch -- --watch-poll", 8 | "hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js", 9 | "prod": "npm run production", 10 | "production": "NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js" 11 | }, 12 | "devDependencies": { 13 | "axios": "^0.18", 14 | "bootstrap": "^4.0.0", 15 | "cross-env": "^5.1", 16 | "jquery": "^3.2", 17 | "laravel-mix": "^4.0.7", 18 | "lodash": "^4.17.5", 19 | "popper.js": "^1.12", 20 | "resolve-url-loader": "^2.3.1", 21 | "sass": "^1.15.2", 22 | "sass-loader": "^7.1.0", 23 | "vue": "^2.5.17", 24 | "vue-template-compiler": "^2.6.6" 25 | }, 26 | "dependencies": { 27 | "animejs": "^3.0", 28 | "aos": "^2.3.1", 29 | "sass-text-stroke": "^1.0.1", 30 | "scrollmagic": "^2.0.6" 31 | } 32 | } -------------------------------------------------------------------------------- /resources/views/vendor/notifications/email.blade.php: -------------------------------------------------------------------------------- 1 | @component('mail::message') 2 | {{-- Greeting --}} 3 | @if (! empty($greeting)) 4 | # {{ $greeting }} 5 | @else 6 | @if ($level === 'error') 7 | # @lang('Whoops!') 8 | @else 9 | # @lang('Hello!') 10 | @endif 11 | @endif 12 | 13 | {{-- Intro Lines --}} 14 | @foreach ($introLines as $line) 15 | {{ $line }} 16 | 17 | @endforeach 18 | 19 | {{-- Action Button --}} 20 | @isset($actionText) 21 | 31 | @component('mail::button', ['url' => $actionUrl, 'color' => $color]) 32 | {{ $actionText }} 33 | @endcomponent 34 | @endisset 35 | 36 | {{-- Outro Lines --}} 37 | @foreach ($outroLines as $line) 38 | {{ $line }} 39 | 40 | @endforeach 41 | 42 | {{-- Salutation --}} 43 | @if (! empty($salutation)) 44 | {{ $salutation }} 45 | @else 46 | @lang('Regards'),
{{ config('app.name') }} 47 | @endif 48 | 49 | {{-- Subcopy --}} 50 | @isset($actionText) 51 | @component('mail::subcopy') 52 | @lang( 53 | "If you’re having trouble clicking the \":actionText\" button, copy and paste the URL below\n". 54 | 'into your web browser: [:actionURL](:actionURL)', 55 | [ 56 | 'actionText' => $actionText, 57 | 'actionURL' => $actionUrl, 58 | ] 59 | ) 60 | @endcomponent 61 | @endisset 62 | @endcomponent 63 | -------------------------------------------------------------------------------- /app/TelegramBot/Commands/KeyCommand.php: -------------------------------------------------------------------------------- 1 | replyWithMessage(['text' => 'Please enter a key']); 26 | 27 | return 'ok'; 28 | } else { 29 | if (is_string($arguments)) { 30 | $key = $arguments; 31 | } elseif (is_array($arguments)) { 32 | $key = $arguments[0]; 33 | } 34 | } 35 | // This will send a message using `sendMessage` method behind the scenes to 36 | // the user/chat id who triggered this command. 37 | // `replyWith()` all the available methods are dynamically 38 | // handled when you replace `send` with `replyWith` and use the same parameters - except chat_id does NOT need to be included in the array. 39 | $clue = \App\Clue::where('key', $key)->first(); 40 | if ($clue == null) { 41 | $this->replyWithMessage(['text' => 'Invalid Key.']); 42 | } else { 43 | $this->replyWithMessage(['text' => "Report unlocked! It says... \n".$clue->clueText]); 44 | } 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /resources/views/errors/layout.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | @yield('title') 8 | 9 | 10 | 11 | 12 | 13 | 14 | 47 | 48 | 49 |
50 |
51 |
52 | @yield('message') 53 |
54 |
55 |
56 | 57 | 58 | -------------------------------------------------------------------------------- /config/hashing.php: -------------------------------------------------------------------------------- 1 | 'bcrypt', 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Bcrypt Options 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may specify the configuration options that should be used when 26 | | passwords are hashed using the Bcrypt algorithm. This will allow you 27 | | to control the amount of time it takes to hash the given password. 28 | | 29 | */ 30 | 31 | 'bcrypt' => [ 32 | 'rounds' => env('BCRYPT_ROUNDS', 10), 33 | ], 34 | 35 | /* 36 | |-------------------------------------------------------------------------- 37 | | Argon Options 38 | |-------------------------------------------------------------------------- 39 | | 40 | | Here you may specify the configuration options that should be used when 41 | | passwords are hashed using the Argon algorithm. These will allow you 42 | | to control the amount of time it takes to hash the given password. 43 | | 44 | */ 45 | 46 | 'argon' => [ 47 | 'memory' => 1024, 48 | 'threads' => 2, 49 | 'time' => 2, 50 | ], 51 | 52 | ]; 53 | -------------------------------------------------------------------------------- /bootstrap/app.php: -------------------------------------------------------------------------------- 1 | singleton( 30 | Illuminate\Contracts\Http\Kernel::class, 31 | App\Http\Kernel::class 32 | ); 33 | 34 | $app->singleton( 35 | Illuminate\Contracts\Console\Kernel::class, 36 | App\Console\Kernel::class 37 | ); 38 | 39 | $app->singleton( 40 | Illuminate\Contracts\Debug\ExceptionHandler::class, 41 | App\Exceptions\Handler::class 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 | -------------------------------------------------------------------------------- /resources/views/vendor/pagination/semantic-ui.blade.php: -------------------------------------------------------------------------------- 1 | @if ($paginator->hasPages()) 2 | 36 | @endif 37 | -------------------------------------------------------------------------------- /config/broadcasting.php: -------------------------------------------------------------------------------- 1 | env('BROADCAST_DRIVER', 'null'), 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Broadcast Connections 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may define all of the broadcast connections that will be used 26 | | to broadcast events to other systems or over websockets. Samples of 27 | | each available type of connection are provided inside this array. 28 | | 29 | */ 30 | 31 | 'connections' => [ 32 | 33 | 'pusher' => [ 34 | 'driver' => 'pusher', 35 | 'key' => env('PUSHER_APP_KEY'), 36 | 'secret' => env('PUSHER_APP_SECRET'), 37 | 'app_id' => env('PUSHER_APP_ID'), 38 | 'options' => [ 39 | 'cluster' => env('PUSHER_APP_CLUSTER'), 40 | 'encrypted' => true, 41 | ], 42 | ], 43 | 44 | 'redis' => [ 45 | 'driver' => 'redis', 46 | 'connection' => 'default', 47 | ], 48 | 49 | 'log' => [ 50 | 'driver' => 'log', 51 | ], 52 | 53 | 'null' => [ 54 | 'driver' => 'null', 55 | ], 56 | 57 | ], 58 | 59 | ]; 60 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "laravel/laravel", 3 | "type": "project", 4 | "description": "The Laravel Framework.", 5 | "keywords": [ 6 | "framework", 7 | "laravel" 8 | ], 9 | "license": "MIT", 10 | "require": { 11 | "php": "^7.1.3", 12 | "fideloper/proxy": "^4.0", 13 | "laravel/framework": "5.7.*", 14 | "laravel/tinker": "^1.0", 15 | "irazasyed/telegram-bot-sdk": "^2.0" 16 | }, 17 | "require-dev": { 18 | "beyondcode/laravel-dump-server": "^1.0", 19 | "filp/whoops": "^2.0", 20 | "fzaninotto/faker": "^1.4", 21 | "mockery/mockery": "^1.0", 22 | "nunomaduro/collision": "^2.0", 23 | "phpunit/phpunit": "^7.0" 24 | }, 25 | "config": { 26 | "optimize-autoloader": true, 27 | "preferred-install": "dist", 28 | "sort-packages": true 29 | }, 30 | "extra": { 31 | "laravel": { 32 | "dont-discover": [] 33 | } 34 | }, 35 | "autoload": { 36 | "psr-4": { 37 | "App\\": "app/" 38 | }, 39 | "classmap": [ 40 | "database/seeds", 41 | "database/factories" 42 | ] 43 | }, 44 | "autoload-dev": { 45 | "psr-4": { 46 | "Tests\\": "tests/" 47 | } 48 | }, 49 | "minimum-stability": "dev", 50 | "prefer-stable": true, 51 | "scripts": { 52 | "post-autoload-dump": [ 53 | "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", 54 | "@php artisan package:discover --ansi" 55 | ], 56 | "post-root-package-install": [ 57 | "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" 58 | ], 59 | "post-create-project-cmd": [ 60 | "@php artisan key:generate --ansi" 61 | ] 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /app/Providers/RouteServiceProvider.php: -------------------------------------------------------------------------------- 1 | mapApiRoutes(); 39 | 40 | $this->mapWebRoutes(); 41 | 42 | // 43 | } 44 | 45 | /** 46 | * Define the "web" routes for the application. 47 | * 48 | * These routes all receive session state, CSRF protection, etc. 49 | * 50 | * @return void 51 | */ 52 | protected function mapWebRoutes() 53 | { 54 | Route::middleware('web') 55 | ->namespace($this->namespace) 56 | ->group(base_path('routes/web.php')); 57 | } 58 | 59 | /** 60 | * Define the "api" routes for the application. 61 | * 62 | * These routes are typically stateless. 63 | * 64 | * @return void 65 | */ 66 | protected function mapApiRoutes() 67 | { 68 | Route::prefix('api') 69 | ->middleware('api') 70 | ->namespace($this->namespace) 71 | ->group(base_path('routes/api.php')); 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /artisan: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env php 2 | make(Illuminate\Contracts\Console\Kernel::class); 34 | 35 | $status = $kernel->handle( 36 | $input = new Symfony\Component\Console\Input\ArgvInput, 37 | new Symfony\Component\Console\Output\ConsoleOutput 38 | ); 39 | 40 | /* 41 | |-------------------------------------------------------------------------- 42 | | Shutdown The Application 43 | |-------------------------------------------------------------------------- 44 | | 45 | | Once Artisan has finished running, we will fire off the shutdown events 46 | | so that any final work may be done by the application before we shut 47 | | down the process. This is the last thing to happen to the request. 48 | | 49 | */ 50 | 51 | $kernel->terminate($input, $status); 52 | 53 | exit($status); 54 | -------------------------------------------------------------------------------- /resources/views/vendor/pagination/default.blade.php: -------------------------------------------------------------------------------- 1 | @if ($paginator->hasPages()) 2 | 44 | @endif 45 | -------------------------------------------------------------------------------- /config/trustedproxy.php: -------------------------------------------------------------------------------- 1 | null, // [,], '*', ',' 19 | 20 | /* 21 | * To trust one or more specific proxies that connect 22 | * directly to your server, use an array or a string separated by comma of IP addresses: 23 | */ 24 | // 'proxies' => ['192.168.1.1'], 25 | // 'proxies' => '192.168.1.1, 192.168.1.2', 26 | 27 | /* 28 | * Or, to trust all proxies that connect 29 | * directly to your server, use a "*" 30 | */ 31 | // 'proxies' => '*', 32 | 33 | /* 34 | * Which headers to use to detect proxy related data (For, Host, Proto, Port) 35 | * 36 | * Options include: 37 | * 38 | * - Illuminate\Http\Request::HEADER_X_FORWARDED_ALL (use all x-forwarded-* headers to establish trust) 39 | * - Illuminate\Http\Request::HEADER_FORWARDED (use the FORWARDED header to establish trust) 40 | * - Illuminate\Http\Request::HEADER_X_FORWARDED_AWS_ELB (If you are using AWS Elastic Load Balancer) 41 | * 42 | * - 'HEADER_X_FORWARDED_ALL' (use all x-forwarded-* headers to establish trust) 43 | * - 'HEADER_FORWARDED' (use the FORWARDED header to establish trust) 44 | * - 'HEADER_X_FORWARDED_AWS_ELB' (If you are using AWS Elastic Load Balancer) 45 | * 46 | * @link https://symfony.com/doc/current/deployment/proxies.html 47 | */ 48 | 'headers' => Illuminate\Http\Request::HEADER_X_FORWARDED_ALL, 49 | 50 | ]; 51 | -------------------------------------------------------------------------------- /resources/js/bootstrap.js: -------------------------------------------------------------------------------- 1 | 2 | window._ = require('lodash'); 3 | 4 | /** 5 | * We'll load jQuery and the Bootstrap jQuery plugin which provides support 6 | * for JavaScript based Bootstrap features such as modals and tabs. This 7 | * code may be modified to fit the specific needs of your application. 8 | */ 9 | 10 | try { 11 | window.Popper = require('popper.js').default; 12 | window.$ = window.jQuery = require('jquery'); 13 | 14 | require('bootstrap'); 15 | } catch (e) {} 16 | 17 | /** 18 | * We'll load the axios HTTP library which allows us to easily issue requests 19 | * to our Laravel back-end. This library automatically handles sending the 20 | * CSRF token as a header based on the value of the "XSRF" token cookie. 21 | */ 22 | 23 | window.axios = require('axios'); 24 | 25 | window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; 26 | 27 | /** 28 | * Next we will register the CSRF Token as a common header with Axios so that 29 | * all outgoing HTTP requests automatically have it attached. This is just 30 | * a simple convenience so we don't have to attach every token manually. 31 | */ 32 | 33 | let token = document.head.querySelector('meta[name="csrf-token"]'); 34 | 35 | if (token) { 36 | window.axios.defaults.headers.common['X-CSRF-TOKEN'] = token.content; 37 | } else { 38 | console.error('CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token'); 39 | } 40 | 41 | /** 42 | * Echo exposes an expressive API for subscribing to channels and listening 43 | * for events that are broadcast by Laravel. Echo and event broadcasting 44 | * allows your team to easily build robust real-time web applications. 45 | */ 46 | 47 | // import Echo from 'laravel-echo' 48 | 49 | // window.Pusher = require('pusher-js'); 50 | 51 | // window.Echo = new Echo({ 52 | // broadcaster: 'pusher', 53 | // key: process.env.MIX_PUSHER_APP_KEY, 54 | // cluster: process.env.MIX_PUSHER_APP_CLUSTER, 55 | // encrypted: true 56 | // }); 57 | -------------------------------------------------------------------------------- /public/index.php: -------------------------------------------------------------------------------- 1 | 8 | */ 9 | 10 | define('LARAVEL_START', microtime(true)); 11 | 12 | /* 13 | |-------------------------------------------------------------------------- 14 | | Register The Auto Loader 15 | |-------------------------------------------------------------------------- 16 | | 17 | | Composer provides a convenient, automatically generated class loader for 18 | | our application. We just need to utilize it! We'll simply require it 19 | | into the script here so that we don't have to worry about manual 20 | | loading any of our classes later on. It feels great to relax. 21 | | 22 | */ 23 | 24 | require __DIR__.'/../vendor/autoload.php'; 25 | 26 | /* 27 | |-------------------------------------------------------------------------- 28 | | Turn On The Lights 29 | |-------------------------------------------------------------------------- 30 | | 31 | | We need to illuminate PHP development, so let us turn on the lights. 32 | | This bootstraps the framework and gets it ready for use, then it 33 | | will load up this application so that we can run it and send 34 | | the responses back to the browser and delight our users. 35 | | 36 | */ 37 | 38 | $app = require_once __DIR__.'/../bootstrap/app.php'; 39 | 40 | /* 41 | |-------------------------------------------------------------------------- 42 | | Run The Application 43 | |-------------------------------------------------------------------------- 44 | | 45 | | Once we have the application, we can handle the incoming request 46 | | through the kernel, and send the associated response back to 47 | | the client's browser allowing them to enjoy the creative 48 | | and wonderful application we have prepared for them. 49 | | 50 | */ 51 | 52 | $kernel = $app->make(Illuminate\Contracts\Http\Kernel::class); 53 | 54 | $response = $kernel->handle( 55 | $request = Illuminate\Http\Request::capture() 56 | ); 57 | 58 | $response->send(); 59 | 60 | $kernel->terminate($request, $response); 61 | -------------------------------------------------------------------------------- /resources/views/vendor/mail/html/layout.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 25 | 26 | 27 | 28 | 51 | 52 |
29 | 30 | {{ $header ?? '' }} 31 | 32 | 33 | 34 | 46 | 47 | 48 | {{ $footer ?? '' }} 49 |
35 | 36 | 37 | 38 | 43 | 44 |
39 | {{ Illuminate\Mail\Markdown::parse($slot) }} 40 | 41 | {{ $subcopy ?? '' }} 42 |
45 |
50 |
53 | 54 | 55 | -------------------------------------------------------------------------------- /resources/views/vendor/pagination/bootstrap-4.blade.php: -------------------------------------------------------------------------------- 1 | @if ($paginator->hasPages()) 2 | 44 | @endif 45 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/RegisterController.php: -------------------------------------------------------------------------------- 1 | middleware('guest'); 41 | } 42 | 43 | /** 44 | * Get a validator for an incoming registration request. 45 | * 46 | * @param array $data 47 | * @return \Illuminate\Contracts\Validation\Validator 48 | */ 49 | protected function validator(array $data) 50 | { 51 | return Validator::make($data, [ 52 | 'name' => ['required', 'string', 'max:255'], 53 | 'email' => ['required', 'string', 'email', 'max:255', 'unique:users'], 54 | 'password' => ['required', 'string', 'min:6', 'confirmed'], 55 | ]); 56 | } 57 | 58 | /** 59 | * Create a new user instance after a valid registration. 60 | * 61 | * @param array $data 62 | * @return \App\User 63 | */ 64 | protected function create(array $data) 65 | { 66 | return User::create([ 67 | 'name' => $data['name'], 68 | 'email' => $data['email'], 69 | 'password' => Hash::make($data['password']), 70 | ]); 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /config/filesystems.php: -------------------------------------------------------------------------------- 1 | env('FILESYSTEM_DRIVER', 'local'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Default Cloud Filesystem Disk 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Many applications store files both locally and in the cloud. For this 24 | | reason, you may specify a default "cloud" driver here. This driver 25 | | will be bound as the Cloud disk implementation in the container. 26 | | 27 | */ 28 | 29 | 'cloud' => env('FILESYSTEM_CLOUD', 's3'), 30 | 31 | /* 32 | |-------------------------------------------------------------------------- 33 | | Filesystem Disks 34 | |-------------------------------------------------------------------------- 35 | | 36 | | Here you may configure as many filesystem "disks" as you wish, and you 37 | | may even configure multiple disks of the same driver. Defaults have 38 | | been setup for each driver as an example of the required options. 39 | | 40 | | Supported Drivers: "local", "ftp", "sftp", "s3", "rackspace" 41 | | 42 | */ 43 | 44 | 'disks' => [ 45 | 46 | 'local' => [ 47 | 'driver' => 'local', 48 | 'root' => storage_path('app'), 49 | ], 50 | 51 | 'public' => [ 52 | 'driver' => 'local', 53 | 'root' => storage_path('app/public'), 54 | 'url' => env('APP_URL').'/storage', 55 | 'visibility' => 'public', 56 | ], 57 | 58 | 's3' => [ 59 | 'driver' => 's3', 60 | 'key' => env('AWS_ACCESS_KEY_ID'), 61 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 62 | 'region' => env('AWS_DEFAULT_REGION'), 63 | 'bucket' => env('AWS_BUCKET'), 64 | 'url' => env('AWS_URL'), 65 | ], 66 | 67 | ], 68 | 69 | ]; 70 | -------------------------------------------------------------------------------- /config/telegram.php: -------------------------------------------------------------------------------- 1 | env('TELEGRAM_BOT_TOKEN', 'YOUR-BOT-TOKEN'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Asynchronous Requests [Optional] 21 | |-------------------------------------------------------------------------- 22 | | 23 | | When set to True, All the requests would be made non-blocking (Async). 24 | | 25 | | Default: false 26 | | Possible Values: (Boolean) "true" OR "false" 27 | | 28 | */ 29 | 'async_requests' => env('TELEGRAM_ASYNC_REQUESTS', false), 30 | 31 | /* 32 | |-------------------------------------------------------------------------- 33 | | HTTP Client Handler [Optional] 34 | |-------------------------------------------------------------------------- 35 | | 36 | | If you'd like to use a custom HTTP Client Handler. 37 | | Should be an instance of \Telegram\Bot\HttpClients\HttpClientInterface 38 | | 39 | | Default: GuzzlePHP 40 | | 41 | */ 42 | 'http_client_handler' => null, 43 | 44 | /* 45 | |-------------------------------------------------------------------------- 46 | | Register Telegram Commands [Optional] 47 | |-------------------------------------------------------------------------- 48 | | 49 | | If you'd like to use the SDK's built in command handler system, 50 | | You can register all the commands here. 51 | | 52 | | The command class should extend the \Telegram\Bot\Commands\Command class. 53 | | 54 | | Default: The SDK registers, a help command which when a user sends /help 55 | | will respond with a list of available commands and description. 56 | | 57 | */ 58 | 'commands' => [ 59 | Telegram\Bot\Commands\HelpCommand::class, 60 | App\TelegramBot\Commands\HelloCommand::class, 61 | App\TelegramBot\Commands\RegisterCommand::class, 62 | App\TelegramBot\Commands\KeyCommand::class, 63 | App\TelegramBot\Commands\PingCommand::class, 64 | ], 65 | ]; 66 | -------------------------------------------------------------------------------- /app/TelegramBot/Commands/RegisterCommand.php: -------------------------------------------------------------------------------- 1 | ()` all the available methods are dynamically 29 | // handled when you replace `send` with `replyWith` and use the same parameters - except chat_id does NOT need to be included in the array. 30 | 31 | $chat_id = $this->getUpdate()->getMessage()->getChat()->getId(); 32 | if (!isset($arguments[0])) { 33 | $this->replyWithMessage(['text' => 'Please enter OG name']); 34 | 35 | return 'ok'; 36 | } else { 37 | if (is_string($arguments)) { 38 | $og_name = $arguments; 39 | } elseif (is_array($arguments)) { 40 | $og_name = $arguments[0]; 41 | } 42 | } 43 | $existingOG = OG::where('chat_id', $chat_id)->first(); 44 | if ($existingOG != null) { 45 | $this->replyWithMessage(['text' => 'This chat already belongs to: '.$existingOG->name]); 46 | 47 | return; 48 | } 49 | $house_select_markup = new \stdClass(); 50 | $house_select_markup->inline_keyboard = 51 | House::pluck('name')->map(function ($item) { 52 | return ['text' => $item, 'callback_data' => $item]; 53 | })->toArray(); 54 | $response = $this->replyWithMessage([ 55 | 'text' => 'What house does this belong to?', 56 | 'reply_markup' => $house_select_markup, 57 | ]); 58 | $existingOG = OG::where('name', $og_name)->first(); 59 | if ($existingOG != null) { 60 | $this->replyWithMessage(['text' => 'This name is already taken by: '.$exisingOG->chat_id]); 61 | 62 | return; 63 | } 64 | //return; 65 | $newOG = OG::create(['chat_id' => $chat_id, 'name' => $og_name]); 66 | // Reply with the commands list 67 | $this->replyWithMessage(['text' => $og_name.' has been registered to chat '.$chat_id]); 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /config/queue.php: -------------------------------------------------------------------------------- 1 | env('QUEUE_CONNECTION', 'sync'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Queue Connections 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Here you may configure the connection information for each server that 24 | | is used by your application. A default configuration has been added 25 | | for each back-end shipped with Laravel. You are free to add more. 26 | | 27 | | Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null" 28 | | 29 | */ 30 | 31 | 'connections' => [ 32 | 33 | 'sync' => [ 34 | 'driver' => 'sync', 35 | ], 36 | 37 | 'database' => [ 38 | 'driver' => 'database', 39 | 'table' => 'jobs', 40 | 'queue' => 'default', 41 | 'retry_after' => 90, 42 | ], 43 | 44 | 'beanstalkd' => [ 45 | 'driver' => 'beanstalkd', 46 | 'host' => 'localhost', 47 | 'queue' => 'default', 48 | 'retry_after' => 90, 49 | ], 50 | 51 | 'sqs' => [ 52 | 'driver' => 'sqs', 53 | 'key' => env('SQS_KEY', 'your-public-key'), 54 | 'secret' => env('SQS_SECRET', 'your-secret-key'), 55 | 'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'), 56 | 'queue' => env('SQS_QUEUE', 'your-queue-name'), 57 | 'region' => env('SQS_REGION', 'us-east-1'), 58 | ], 59 | 60 | 'redis' => [ 61 | 'driver' => 'redis', 62 | 'connection' => 'default', 63 | 'queue' => env('REDIS_QUEUE', 'default'), 64 | 'retry_after' => 90, 65 | 'block_for' => null, 66 | ], 67 | 68 | ], 69 | 70 | /* 71 | |-------------------------------------------------------------------------- 72 | | Failed Queue Jobs 73 | |-------------------------------------------------------------------------- 74 | | 75 | | These options configure the behavior of failed queue job logging so you 76 | | can control which database and table are used to store the jobs that 77 | | have failed. You may change them to any database / table you wish. 78 | | 79 | */ 80 | 81 | 'failed' => [ 82 | 'database' => env('DB_CONNECTION', 'mysql'), 83 | 'table' => 'failed_jobs', 84 | ], 85 | 86 | ]; 87 | -------------------------------------------------------------------------------- /config/logging.php: -------------------------------------------------------------------------------- 1 | env('LOG_CHANNEL', 'stack'), 20 | 21 | /* 22 | |-------------------------------------------------------------------------- 23 | | Log Channels 24 | |-------------------------------------------------------------------------- 25 | | 26 | | Here you may configure the log channels for your application. Out of 27 | | the box, Laravel uses the Monolog PHP logging library. This gives 28 | | you a variety of powerful log handlers / formatters to utilize. 29 | | 30 | | Available Drivers: "single", "daily", "slack", "syslog", 31 | | "errorlog", "monolog", 32 | | "custom", "stack" 33 | | 34 | */ 35 | 36 | 'channels' => [ 37 | 'stack' => [ 38 | 'driver' => 'stack', 39 | 'channels' => ['daily'], 40 | ], 41 | 42 | 'single' => [ 43 | 'driver' => 'single', 44 | 'path' => storage_path('logs/laravel.log'), 45 | 'level' => 'debug', 46 | ], 47 | 48 | 'daily' => [ 49 | 'driver' => 'daily', 50 | 'path' => storage_path('logs/laravel.log'), 51 | 'level' => 'debug', 52 | 'days' => 14, 53 | ], 54 | 55 | 'slack' => [ 56 | 'driver' => 'slack', 57 | 'url' => env('LOG_SLACK_WEBHOOK_URL'), 58 | 'username' => 'Laravel Log', 59 | 'emoji' => ':boom:', 60 | 'level' => 'critical', 61 | ], 62 | 63 | 'papertrail' => [ 64 | 'driver' => 'monolog', 65 | 'level' => 'debug', 66 | 'handler' => SyslogUdpHandler::class, 67 | 'handler_with' => [ 68 | 'host' => env('PAPERTRAIL_URL'), 69 | 'port' => env('PAPERTRAIL_PORT'), 70 | ], 71 | ], 72 | 73 | 'stderr' => [ 74 | 'driver' => 'monolog', 75 | 'handler' => StreamHandler::class, 76 | 'formatter' => env('LOG_STDERR_FORMATTER'), 77 | 'with' => [ 78 | 'stream' => 'php://stderr', 79 | ], 80 | ], 81 | 82 | 'syslog' => [ 83 | 'driver' => 'syslog', 84 | 'level' => 'debug', 85 | ], 86 | 87 | 'errorlog' => [ 88 | 'driver' => 'errorlog', 89 | 'level' => 'debug', 90 | ], 91 | ], 92 | 93 | ]; 94 | -------------------------------------------------------------------------------- /config/cache.php: -------------------------------------------------------------------------------- 1 | env('CACHE_DRIVER', 'file'), 21 | 22 | /* 23 | |-------------------------------------------------------------------------- 24 | | Cache Stores 25 | |-------------------------------------------------------------------------- 26 | | 27 | | Here you may define all of the cache "stores" for your application as 28 | | well as their drivers. You may even define multiple stores for the 29 | | same cache driver to group types of items stored in your caches. 30 | | 31 | */ 32 | 33 | 'stores' => [ 34 | 35 | 'apc' => [ 36 | 'driver' => 'apc', 37 | ], 38 | 39 | 'array' => [ 40 | 'driver' => 'array', 41 | ], 42 | 43 | 'database' => [ 44 | 'driver' => 'database', 45 | 'table' => 'cache', 46 | 'connection' => null, 47 | ], 48 | 49 | 'file' => [ 50 | 'driver' => 'file', 51 | 'path' => storage_path('framework/cache/data'), 52 | ], 53 | 54 | 'memcached' => [ 55 | 'driver' => 'memcached', 56 | 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'), 57 | 'sasl' => [ 58 | env('MEMCACHED_USERNAME'), 59 | env('MEMCACHED_PASSWORD'), 60 | ], 61 | 'options' => [ 62 | // Memcached::OPT_CONNECT_TIMEOUT => 2000, 63 | ], 64 | 'servers' => [ 65 | [ 66 | 'host' => env('MEMCACHED_HOST', '127.0.0.1'), 67 | 'port' => env('MEMCACHED_PORT', 11211), 68 | 'weight' => 100, 69 | ], 70 | ], 71 | ], 72 | 73 | 'redis' => [ 74 | 'driver' => 'redis', 75 | 'connection' => 'cache', 76 | ], 77 | 78 | ], 79 | 80 | /* 81 | |-------------------------------------------------------------------------- 82 | | Cache Key Prefix 83 | |-------------------------------------------------------------------------- 84 | | 85 | | When utilizing a RAM based store such as APC or Memcached, there might 86 | | be other applications utilizing the same cache. So, we'll specify a 87 | | value to get prefixed to all our keys so we can avoid collisions. 88 | | 89 | */ 90 | 91 | 'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache'), 92 | 93 | ]; 94 | -------------------------------------------------------------------------------- /app/Http/Kernel.php: -------------------------------------------------------------------------------- 1 | [ 31 | \App\Http\Middleware\EncryptCookies::class, 32 | \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, 33 | \Illuminate\Session\Middleware\StartSession::class, 34 | // \Illuminate\Session\Middleware\AuthenticateSession::class, 35 | \Illuminate\View\Middleware\ShareErrorsFromSession::class, 36 | \App\Http\Middleware\VerifyCsrfToken::class, 37 | \Illuminate\Routing\Middleware\SubstituteBindings::class, 38 | ], 39 | 40 | 'api' => [ 41 | 'throttle:60,1', 42 | 'bindings', 43 | ], 44 | ]; 45 | 46 | /** 47 | * The application's route middleware. 48 | * 49 | * These middleware may be assigned to groups or used individually. 50 | * 51 | * @var array 52 | */ 53 | protected $routeMiddleware = [ 54 | 'auth' => \App\Http\Middleware\Authenticate::class, 55 | 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, 56 | 'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class, 57 | 'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class, 58 | 'can' => \Illuminate\Auth\Middleware\Authorize::class, 59 | 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, 60 | 'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class, 61 | 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, 62 | 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class, 63 | ]; 64 | 65 | /** 66 | * The priority-sorted list of middleware. 67 | * 68 | * This forces non-global middleware to always be in the given order. 69 | * 70 | * @var array 71 | */ 72 | protected $middlewarePriority = [ 73 | \Illuminate\Session\Middleware\StartSession::class, 74 | \Illuminate\View\Middleware\ShareErrorsFromSession::class, 75 | \App\Http\Middleware\Authenticate::class, 76 | \Illuminate\Session\Middleware\AuthenticateSession::class, 77 | \Illuminate\Routing\Middleware\SubstituteBindings::class, 78 | \Illuminate\Auth\Middleware\Authorize::class, 79 | ]; 80 | } 81 | -------------------------------------------------------------------------------- /resources/sass/preloader.scss: -------------------------------------------------------------------------------- 1 | $screen-sm-min: 768px; 2 | @mixin sm { 3 | @media (max-width: #{$screen-sm-min}) { 4 | @content; 5 | } 6 | } 7 | @mixin md { 8 | @media (min-width: #{$screen-sm-min}) { 9 | @content; 10 | } 11 | } 12 | @font-face { 13 | font-family: calculator; 14 | font-display: swap; 15 | src: url("../fonts/calculator.ttf"); 16 | } 17 | 18 | .loaderText { 19 | font-family: calculator; 20 | text-transform: capitalize; 21 | } 22 | @keyframes flicker { 23 | 0%, 24 | 100%, 25 | 12%, 26 | 18.999%, 27 | 23%, 28 | 31.999%, 29 | 37%, 30 | 44.999%, 31 | 46%, 32 | 49.999%, 33 | 51%, 34 | 58.999%, 35 | 61%, 36 | 68.999%, 37 | 71%, 38 | 85.999%, 39 | 96% { 40 | opacity: 0.99; 41 | text-shadow: 0 0 80px red,0 0 30px FireBrick,0 0 6px DarkRed; 42 | } 43 | 44 | 19%, 45 | 22.99%, 46 | 32%, 47 | 36.999%, 48 | 45%, 49 | 45.999%, 50 | 50%, 51 | 50.99%, 52 | 59%, 53 | 60.999%, 54 | 69%, 55 | 70.999%, 56 | 86%, 57 | 95.999% { 58 | opacity: 0.4; 59 | text-shadow: none; 60 | } 61 | } 62 | 63 | body { 64 | color: white; 65 | background-color: black; 66 | } 67 | 68 | loader h1 span {} 69 | 70 | loader h1 span.loading { 71 | opacity: 0.2; 72 | } 73 | 74 | loader .loaderRing { 75 | position: absolute; 76 | transform: translate(-50%,-50%); 77 | top: 50%; 78 | left: 50%; 79 | filter: drop-shadow(0px 0px 12px rgb(255, 0, 0)); 80 | @include md { 81 | width: 35vw; 82 | height: auto; 83 | } 84 | } 85 | 86 | loader .loaderRing .loaderRingCircle { 87 | transition: 0.35s stroke-dashoffset; 88 | // axis compensation 89 | transform: rotate(-90deg); 90 | transform-origin: 50% 50%; 91 | } 92 | 93 | loader .loaderRing.ready { 94 | filter: drop-shadow(0px 0px 12px rgb(255, 255, 255)); 95 | opacity: 0.5; 96 | } 97 | 98 | loader .loaderRing.start { 99 | filter: none 100 | } 101 | 102 | loader h1 span.loaded { 103 | animation: flicker 3s infinite linear; 104 | opacity: 0.5; 105 | } 106 | 107 | loader h1 span.ready { 108 | color: blue; 109 | text-shadow: 0 0 80px blue; 110 | } 111 | 112 | loader h1 span.start { 113 | color: white; 114 | animation-name: loaderTextStartAnimation; 115 | animation-duration: 1s; 116 | text-shadow: 0 0 80px blue; 117 | } 118 | @keyframes loaderTextStartAnimation { 119 | 0%, 120 | 100%, 121 | 50% { 122 | color: white; 123 | } 124 | 125 | 25%, 126 | 75% { 127 | color: blue; 128 | } 129 | } 130 | 131 | loader.exit { 132 | animation-name: loaderExitAnimation; 133 | animation-duration: 0.75s; 134 | animation-fill-mode: forwards; 135 | } 136 | @keyframes loaderExitAnimation { 137 | from { 138 | opacity: 1; 139 | } 140 | 141 | to { 142 | opacity: 0; 143 | } 144 | } 145 | 146 | loader { 147 | width: 100%; 148 | text-align: center; 149 | position: absolute; 150 | transform: translate(-50%,-50%); 151 | top: 50%; 152 | left: 50%; 153 | } 154 | 155 | content.loading { 156 | visibility: hidden; 157 | } -------------------------------------------------------------------------------- /resources/js/preloader.js: -------------------------------------------------------------------------------- 1 | document.addEventListener("DOMContentLoaded", function() { 2 | var total = document.images.length; 3 | var current = 0; 4 | //initialise preloader 5 | var circle = document.querySelector('.loaderRingCircle'); 6 | var radius = circle.r.baseVal.value; 7 | var circumference = radius * 2 * Math.PI; 8 | circle.style.strokeDasharray = `${circumference} ${circumference}`; 9 | circle.style.strokeDashoffset = `${circumference}`; 10 | //count cached items 11 | current = Array.from(document.querySelectorAll("content *")).reduce((sum, elem) => 12 | sum + ((elem.complete && elem.naturalHeight !== 0) ? 1 : 0),0); 13 | document.querySelectorAll("content *").forEach(function(elem, i) { 14 | elem.addEventListener("load", function() { 15 | console.log("loaded"); 16 | current++; 17 | var charElems = Array.from(document.querySelectorAll(".loaderText span")) 18 | var chars = charElems.slice(0, Math.ceil(charElems.length * current / total)); 19 | chars.forEach(function(elem, i) { 20 | elem.classList.remove("loading") 21 | elem.classList.add("loaded") 22 | void elem.offsetWidth; 23 | }); 24 | circle.style.strokeDashoffset = circumference * (1 - Math.min(current / total, 1)); 25 | }); 26 | }); 27 | window.addEventListener("load", function() { 28 | var loaderTexts = document.querySelectorAll('.loaderText span'); 29 | var delays = Array.from({ 30 | length: loaderTexts.length 31 | }, () => Math.floor(Math.random() * 1000)); 32 | loaderTexts.forEach(function(elem, i) { 33 | elem.classList.remove("loaded"); 34 | elem.classList.add("ready"); 35 | var readyString = "Ready"; 36 | window.setTimeout(function() { 37 | elem.innerHTML = (i >= readyString.length ? "" : readyString[i]); 38 | if (delays[i] == delays.reduce((max, cur) => cur >= max ? cur : max, 0)) { 39 | window.setTimeout(function() { 40 | document.querySelector("loader").addEventListener("animationend", function(e) { 41 | if (e.animationName == "loaderTextStartAnimation") { 42 | var startEvent = function(e) { 43 | if (e.animationName == "loaderExitAnimation") { 44 | if (window.start) { 45 | window.start(); 46 | } 47 | } 48 | }; 49 | document.querySelector("loader").addEventListener("animationend", startEvent); 50 | document.querySelector("loader").classList.add("exit"); 51 | } 52 | }); 53 | loaderTexts.forEach(function(elem, i) { 54 | elem.classList.remove("ready") 55 | elem.classList.add("start") 56 | }); 57 | }, 500); 58 | } 59 | }, delays[i]); 60 | }); 61 | circle.style.stroke = "blue"; 62 | circle.parentElement.classList.add("ready"); 63 | }); 64 | console.log("Delegation complete"); 65 | }, { 66 | once: true 67 | }) -------------------------------------------------------------------------------- /config/auth.php: -------------------------------------------------------------------------------- 1 | [ 17 | 'guard' => 'web', 18 | 'passwords' => 'users', 19 | ], 20 | 21 | /* 22 | |-------------------------------------------------------------------------- 23 | | Authentication Guards 24 | |-------------------------------------------------------------------------- 25 | | 26 | | Next, you may define every authentication guard for your application. 27 | | Of course, a great default configuration has been defined for you 28 | | here which uses session storage and the Eloquent user provider. 29 | | 30 | | All authentication drivers have a user provider. This defines how the 31 | | users are actually retrieved out of your database or other storage 32 | | mechanisms used by this application to persist your user's data. 33 | | 34 | | Supported: "session", "token" 35 | | 36 | */ 37 | 38 | 'guards' => [ 39 | 'web' => [ 40 | 'driver' => 'session', 41 | 'provider' => 'users', 42 | ], 43 | 44 | 'api' => [ 45 | 'driver' => 'token', 46 | 'provider' => 'users', 47 | ], 48 | ], 49 | 50 | /* 51 | |-------------------------------------------------------------------------- 52 | | User Providers 53 | |-------------------------------------------------------------------------- 54 | | 55 | | All authentication drivers have a user provider. This defines how the 56 | | users are actually retrieved out of your database or other storage 57 | | mechanisms used by this application to persist your user's data. 58 | | 59 | | If you have multiple user tables or models you may configure multiple 60 | | sources which represent each model / table. These sources may then 61 | | be assigned to any extra authentication guards you have defined. 62 | | 63 | | Supported: "database", "eloquent" 64 | | 65 | */ 66 | 67 | 'providers' => [ 68 | 'users' => [ 69 | 'driver' => 'eloquent', 70 | 'model' => App\User::class, 71 | ], 72 | 73 | // 'users' => [ 74 | // 'driver' => 'database', 75 | // 'table' => 'users', 76 | // ], 77 | ], 78 | 79 | /* 80 | |-------------------------------------------------------------------------- 81 | | Resetting Passwords 82 | |-------------------------------------------------------------------------- 83 | | 84 | | You may specify multiple password reset configurations if you have more 85 | | than one user table or model in the application and you want to have 86 | | separate password reset settings based on the specific user types. 87 | | 88 | | The expire time is the number of minutes that the reset token should be 89 | | considered valid. This security feature keeps tokens short-lived so 90 | | they have less time to be guessed. You may change this as needed. 91 | | 92 | */ 93 | 94 | 'passwords' => [ 95 | 'users' => [ 96 | 'provider' => 'users', 97 | 'table' => 'password_resets', 98 | 'expire' => 60, 99 | ], 100 | ], 101 | 102 | ]; 103 | -------------------------------------------------------------------------------- /public/svg/404.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /config/database.php: -------------------------------------------------------------------------------- 1 | env('DB_CONNECTION', 'mysql'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Database Connections 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Here are each of the database connections setup for your application. 24 | | Of course, examples of configuring each database platform that is 25 | | supported by Laravel is shown below to make development simple. 26 | | 27 | | 28 | | All database work in Laravel is done through the PHP PDO facilities 29 | | so make sure you have the driver for your particular database of 30 | | choice installed on your machine before you begin development. 31 | | 32 | */ 33 | 34 | 'connections' => [ 35 | 36 | 'sqlite' => [ 37 | 'driver' => 'sqlite', 38 | 'database' => env('DB_DATABASE', database_path('database.sqlite')), 39 | 'prefix' => '', 40 | 'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true), 41 | ], 42 | 43 | 'mysql' => [ 44 | 'driver' => 'mysql', 45 | 'host' => env('DB_HOST', '127.0.0.1'), 46 | 'port' => env('DB_PORT', '3306'), 47 | 'database' => env('DB_DATABASE', 'forge'), 48 | 'username' => env('DB_USERNAME', 'forge'), 49 | 'password' => env('DB_PASSWORD', ''), 50 | 'unix_socket' => env('DB_SOCKET', ''), 51 | 'charset' => 'utf8mb4', 52 | 'collation' => 'utf8mb4_unicode_ci', 53 | 'prefix' => '', 54 | 'prefix_indexes' => true, 55 | 'strict' => true, 56 | 'engine' => null, 57 | ], 58 | 59 | 'pgsql' => [ 60 | 'driver' => 'pgsql', 61 | 'host' => env('DB_HOST', '127.0.0.1'), 62 | 'port' => env('DB_PORT', '5432'), 63 | 'database' => env('DB_DATABASE', 'forge'), 64 | 'username' => env('DB_USERNAME', 'forge'), 65 | 'password' => env('DB_PASSWORD', ''), 66 | 'charset' => 'utf8', 67 | 'prefix' => '', 68 | 'prefix_indexes' => true, 69 | 'schema' => 'public', 70 | 'sslmode' => 'prefer', 71 | ], 72 | 73 | 'sqlsrv' => [ 74 | 'driver' => 'sqlsrv', 75 | 'host' => env('DB_HOST', 'localhost'), 76 | 'port' => env('DB_PORT', '1433'), 77 | 'database' => env('DB_DATABASE', 'forge'), 78 | 'username' => env('DB_USERNAME', 'forge'), 79 | 'password' => env('DB_PASSWORD', ''), 80 | 'charset' => 'utf8', 81 | 'prefix' => '', 82 | 'prefix_indexes' => true, 83 | ], 84 | 85 | ], 86 | 87 | /* 88 | |-------------------------------------------------------------------------- 89 | | Migration Repository Table 90 | |-------------------------------------------------------------------------- 91 | | 92 | | This table keeps track of all the migrations that have already run for 93 | | your application. Using this information, we can determine which of 94 | | the migrations on disk haven't actually been run in the database. 95 | | 96 | */ 97 | 98 | 'migrations' => 'migrations', 99 | 100 | /* 101 | |-------------------------------------------------------------------------- 102 | | Redis Databases 103 | |-------------------------------------------------------------------------- 104 | | 105 | | Redis is an open source, fast, and advanced key-value store that also 106 | | provides a richer body of commands than a typical key-value system 107 | | such as APC or Memcached. Laravel makes it easy to dig right in. 108 | | 109 | */ 110 | 111 | 'redis' => [ 112 | 113 | 'client' => 'predis', 114 | 115 | 'default' => [ 116 | 'host' => env('REDIS_HOST', '127.0.0.1'), 117 | 'password' => env('REDIS_PASSWORD', null), 118 | 'port' => env('REDIS_PORT', 6379), 119 | 'database' => env('REDIS_DB', 0), 120 | ], 121 | 122 | 'cache' => [ 123 | 'host' => env('REDIS_HOST', '127.0.0.1'), 124 | 'password' => env('REDIS_PASSWORD', null), 125 | 'port' => env('REDIS_PORT', 6379), 126 | 'database' => env('REDIS_CACHE_DB', 1), 127 | ], 128 | 129 | ], 130 | 131 | ]; 132 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | # OLETHROS – SUTD Orientation 2019 2 | 3 | ![Olethros](https://raw.githubusercontent.com/OpenSUTD/orientation2019/master/resources/img/preview_logo.png) 4 | 5 | ## About this repository 6 | 7 | This repository houses both the front-end product of the Orientation Website (front-facing landing page), and the backend that handles queries to/from the Telegram Bot server for the Orientation Bot. 8 | 9 | This project is built on the [Laravel PHP framework](https://laravel.com/) and self-hosted on a LAMP stack. 10 | 11 | ## Getting around this repository 12 | 13 | I published this repository on openSUTD in hope that someone else would be able to study this and gain insights. Here are some starting points depending on what you're interested in. 14 | 15 | ### Frontend (website) 16 | If you're only interested in studying the HTML/CSS/JS of the landing page, look at the following files and folders: 17 | 18 | - `resources/views/welcome.blade.php` – ignore the .blade.php extension and anything in the file that doesn't look like HTML. 19 | - `resources/sass` – for the CSS assets. I used the [SASS CSS preprocessor](https://sass-lang.com/). 20 | - `resources/js` – for the JS assets. Dependencies managed with [npm](https://www.npmjs.com/) and compiled with webpack (laravel gulp). 21 | 22 | ### Backend (telegram bot) 23 | Coming soon. 24 | 25 | ## Settings up your own copy 26 | You need to set up a stack that is capable of meeting [Laravel's requirements](https://laravel.com/docs/5.7/installation). I used a monolithic LAMP stack on [Google Cloud Compute](https://cloud.google.com/compute/) but you are free to do whatever you want as long as it works. 27 | 28 | Clone this repository into your server directory: 29 | 30 | ```bash 31 | git clone https://github.com/OpenSUTD/orientation2019.git 32 | ``` 33 | 34 | As with all Laravel setups, you need to point your web server's DocumentRoot into the `public` subfolder, *not* the root of the project. 35 | 36 | Install PHP dependencies with composer: 37 | 38 | ```bash 39 | composer install 40 | ``` 41 | 42 | Install JS dependencies with npm: 43 | 44 | ```bash 45 | npm install 46 | ``` 47 | 48 | Setup environment variables: Create a new file `.env` by copying `.env.example`: 49 | 50 | ```bash 51 | cp .env.example .env 52 | ``` 53 | 54 | Then, with your text editor, you need to populate these variables inside your newly created environment file: 55 | 56 | - `APP_URL` – URL of where your project is hosted 57 | - `TELEGRAM_BOT_TOKEN` – your Telegram API's bot token 58 | - `TELEGRAM_ENDPOINT_SECRET` – a random string, this is the path where you will instruct the [Telegram Bot API](https://core.telegram.org/bots/api) to send webhook updates to. 59 | - `GMAPS_API_KEY` – API Key obtained from [Google Cloud Platform Maps Embed API](https://developers.google.com/maps/documentation/embed/start), in order to display the embedded maps in the homepage correctly. 60 | - `DB_*` – Database connection details. 61 | The other variables can be ignored. 62 | 63 | Laravel setups: perform migrations and database and generate encryption keys: 64 | ```bash 65 | php artisan migrate 66 | php artisan key:generate 67 | ``` 68 | 69 | Finally, compile frontend assets: (replace `dev` with `prod` if you want to minify and stuff) 70 | ```bash 71 | npm run dev 72 | ``` 73 | 74 | If laravel complains about "unable to open stream" in logs, you need to `chown` and `chmod` your `storage/logs` directory and give your web server account the correct permissions. 75 | 76 | In addition, for your telegram bot to receive the webhook updates correctly, you need to tell the Telegram Bot API that the location of the webhook is at `https://.com/telegram/`. Example [here](https://medium.com/@xabaras/setting-your-telegram-bot-webhook-the-easy-way-c7577b2d6f72). 77 | 78 | ## Frequently asked questions 79 | 80 | ### Who made this? 81 | See Credits section below. 82 | 83 | ### Why PHP? 84 | ~~Because I don't know how to do it in Python~~ Because I don't want to perpetuate the current mindset in SUTD that Python is the magical cure-all for every single problem and application. And also the Laravel ORM is lit af. 85 | 86 | ### But PHP sucks- 87 | Ok. 88 | 89 | ### Can I use this as a base for my own orientation/activity/project? 90 | Yes, as long as you practise common sense and follow the [License](https://github.com/OpenSUTD/orientation2019/blob/master/license.md). 91 | 92 | ## Credits 93 | - Orientation 2019 Committee – general event organisation 94 | - Jeslyn Ng, Class of 2021 95 | - Evan Sidhi, Class of 2021 96 | - Philia Neo, Class of 2021 97 | - ... some others I never seen 98 | - Orientation 2019 Creative Subcommittee - house conceptualisation and logo designs 99 | - Diane Lee, Class of 2021 100 | - Sesila Fenina Gunawan, Class of 2021 101 | - Hazel , Class of 2021 102 | - Yu Bing, Class of 2021 103 | - ... some others who didn't give their names to me 104 | - Dev Team - tank the software side 105 | - [Chester Koh](https://github.com/chesnutcase), Class of 2021 106 | - ... damn it's lonely in here -------------------------------------------------------------------------------- /config/mail.php: -------------------------------------------------------------------------------- 1 | env('MAIL_DRIVER', 'smtp'), 20 | 21 | /* 22 | |-------------------------------------------------------------------------- 23 | | SMTP Host Address 24 | |-------------------------------------------------------------------------- 25 | | 26 | | Here you may provide the host address of the SMTP server used by your 27 | | applications. A default option is provided that is compatible with 28 | | the Mailgun mail service which will provide reliable deliveries. 29 | | 30 | */ 31 | 32 | 'host' => env('MAIL_HOST', 'smtp.mailgun.org'), 33 | 34 | /* 35 | |-------------------------------------------------------------------------- 36 | | SMTP Host Port 37 | |-------------------------------------------------------------------------- 38 | | 39 | | This is the SMTP port used by your application to deliver e-mails to 40 | | users of the application. Like the host we have set this value to 41 | | stay compatible with the Mailgun e-mail application by default. 42 | | 43 | */ 44 | 45 | 'port' => env('MAIL_PORT', 587), 46 | 47 | /* 48 | |-------------------------------------------------------------------------- 49 | | Global "From" Address 50 | |-------------------------------------------------------------------------- 51 | | 52 | | You may wish for all e-mails sent by your application to be sent from 53 | | the same address. Here, you may specify a name and address that is 54 | | used globally for all e-mails that are sent by your application. 55 | | 56 | */ 57 | 58 | 'from' => [ 59 | 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'), 60 | 'name' => env('MAIL_FROM_NAME', 'Example'), 61 | ], 62 | 63 | /* 64 | |-------------------------------------------------------------------------- 65 | | E-Mail Encryption Protocol 66 | |-------------------------------------------------------------------------- 67 | | 68 | | Here you may specify the encryption protocol that should be used when 69 | | the application send e-mail messages. A sensible default using the 70 | | transport layer security protocol should provide great security. 71 | | 72 | */ 73 | 74 | 'encryption' => env('MAIL_ENCRYPTION', 'tls'), 75 | 76 | /* 77 | |-------------------------------------------------------------------------- 78 | | SMTP Server Username 79 | |-------------------------------------------------------------------------- 80 | | 81 | | If your SMTP server requires a username for authentication, you should 82 | | set it here. This will get used to authenticate with your server on 83 | | connection. You may also set the "password" value below this one. 84 | | 85 | */ 86 | 87 | 'username' => env('MAIL_USERNAME'), 88 | 89 | 'password' => env('MAIL_PASSWORD'), 90 | 91 | /* 92 | |-------------------------------------------------------------------------- 93 | | Sendmail System Path 94 | |-------------------------------------------------------------------------- 95 | | 96 | | When using the "sendmail" driver to send e-mails, we will need to know 97 | | the path to where Sendmail lives on this server. A default path has 98 | | been provided here, which will work well on most of your systems. 99 | | 100 | */ 101 | 102 | 'sendmail' => '/usr/sbin/sendmail -bs', 103 | 104 | /* 105 | |-------------------------------------------------------------------------- 106 | | Markdown Mail Settings 107 | |-------------------------------------------------------------------------- 108 | | 109 | | If you are using Markdown based email rendering, you may configure your 110 | | theme and component paths here, allowing you to customize the design 111 | | of the emails. Or, you may simply stick with the Laravel defaults! 112 | | 113 | */ 114 | 115 | 'markdown' => [ 116 | 'theme' => 'default', 117 | 118 | 'paths' => [ 119 | resource_path('views/vendor/mail'), 120 | ], 121 | ], 122 | 123 | /* 124 | |-------------------------------------------------------------------------- 125 | | Log Channel 126 | |-------------------------------------------------------------------------- 127 | | 128 | | If you are using the "log" driver, you may specify the logging channel 129 | | if you prefer to keep mail messages separate from other log entries 130 | | for simpler reading. Otherwise, the default channel will be used. 131 | | 132 | */ 133 | 134 | 'log_channel' => env('MAIL_LOG_CHANNEL'), 135 | 136 | ]; 137 | -------------------------------------------------------------------------------- /public/svg/503.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /resources/js/app.js: -------------------------------------------------------------------------------- 1 | /** 2 | * First we will load all of this project's JavaScript dependencies which 3 | * includes Vue and other libraries. It is a great starting point when 4 | * building robust, powerful web applications using Vue and Laravel. 5 | */ 6 | 7 | // require('./bootstrap'); 8 | 9 | 10 | window.$ = require("jquery"); 11 | 12 | import anime from 'animejs'; 13 | 14 | window.aos = require("aos"); 15 | window.anime = anime; 16 | 17 | // import ScrollMagic from "scrollmagic"; 18 | 19 | window.start = function() { 20 | console.log("hello world!"); 21 | var isMobile = window.matchMedia("only screen and (max-width: 768px)").matches; 22 | let $ = window.$; 23 | window.aos.init(); 24 | $("content").removeClass("loading"); 25 | //$("content").css("opacity",0); 26 | document.querySelector("svg.globe").querySelectorAll("line, polyline, path, polygon").forEach(function(elem) { 27 | elem.setAttribute("data-length", elem.getTotalLength()); 28 | elem.style.strokeDasharray = elem.getTotalLength(); 29 | elem.style.strokeDashoffset = elem.getTotalLength(); 30 | }); 31 | var tl = anime.timeline({ 32 | easing: "linear" 33 | }).add({ 34 | targets: ".backgrounds", 35 | opacity: [0, 1], 36 | duration: 500, 37 | endDelay: 500, 38 | }).add({ 39 | targets: "#logosection", 40 | opacity: [0, 1], 41 | delay: 100, 42 | duration: 1500, 43 | endDelay: 500 44 | }).add({ 45 | targets: document.querySelector("svg.globe").querySelectorAll("line, polyline, path, polygon"), 46 | easing: "linear", 47 | strokeDashoffset: 0, 48 | delay: -2000, 49 | duration: 2500, 50 | }).add({ 51 | targets: "#logosection", 52 | translateX: (!isMobile ? [-100, 0] : [0, 0]), 53 | easing: "easeOutExpo", 54 | duration: 1500, 55 | complete: function(anim) { 56 | console.log(isMobile); 57 | tl2.play(); 58 | redrawGlobe(); 59 | } 60 | }).add({ 61 | targets: ".frame:nth-child(1) .subframe:nth-child(1)", 62 | opacity: [0, 1], 63 | translateY: [-100, 0], 64 | easing: "easeOutExpo", 65 | duration: 1500, 66 | }, "-=1500").add({ 67 | targets: ".frame:nth-child(1) .subframe:nth-child(1) .subtitle", 68 | opacity: [0, 1], 69 | translateY: [-75, 0], 70 | easing: "easeOutExpo", 71 | duration: 1500, 72 | }); 73 | tl.play(); 74 | var tl2 = anime({ 75 | targets: $("svg.globe")[0], 76 | easing: "linear", 77 | rotate: "+=360", 78 | duration: 25000, 79 | loop: true, 80 | autoplay: false 81 | }); 82 | var redrawGlobe = function() { 83 | anime({ 84 | targets: document.querySelector("svg.globe").querySelectorAll("line, polyline, path, polygon"), 85 | strokeDashoffset: function(t, i, il) { 86 | //console.log(t.style.strokeDashoffset); 87 | if (t.style.strokeDashoffset != 0) { 88 | return 0; 89 | } else { 90 | return Math.random() * 2 * t.getAttribute("data-length"); 91 | } 92 | }, 93 | easing: "linear", 94 | duration: 3000, 95 | complete: redrawGlobe 96 | }); 97 | } 98 | /* 99 | var controller = new ScrollMagic.Controller(); 100 | // create a scene 101 | new ScrollMagic.Scene({ 102 | duration: window.innerHeight * 0.5, // the scene should last for a scroll distance of 100px 103 | }) 104 | .on("progress", function(event) { 105 | //to be added 106 | }) 107 | .setPin(".frame:nth-of-type(1)", { 108 | pushFollowers: true 109 | }) // pins the element for the the scene's duration 110 | .addTo(controller); // assign the scene to the controller 111 | */ 112 | let $backgrounds = $(".backgrounds"); 113 | let waiting = false 114 | window.addEventListener("scroll", function(e) { 115 | if (waiting) { 116 | return; 117 | } else if (window.scrollY > window.innerHeight) { 118 | return 119 | } 120 | waiting = true; 121 | let blur = function() { 122 | let blurAmt = 4 * Math.min(window.scrollY / window.innerHeight, 1); 123 | let opacityAmt = 1 - Math.min(window.scrollY / window.innerHeight, 1) + 0.75; 124 | $backgrounds.css("filter", "blur(" + blurAmt + "px)"); 125 | $backgrounds.css("opacity", opacityAmt); 126 | } 127 | blur() 128 | setTimeout(function() { 129 | waiting = false; 130 | }, 100); 131 | setTimeout(blur, 200); 132 | }); 133 | document.body.addEventListener("mousemove", function(e) { 134 | if ('ontouchstart' in window || navigator.msMaxTouchPoints) { 135 | return; //dont do this if this is a touchscreen 136 | } 137 | let img = $(".backgrounds img") 138 | let x = (e.screenX / window.innerWidth) - 0.5; 139 | let y = (e.screenY / window.innerHeight) - 0.5; 140 | img.first().css("transform", "translate(" + ((-10) + (x * 2.5)).toString() + "%," + ((-10) + (y * 2.5)).toString() + "%)"); 141 | }); 142 | $("#logosection").click(function() { 143 | $("#cluehint").removeClass("hidden"); 144 | anime.timeline().add({ 145 | targets: $("#cluehint")[0], 146 | easing: "easeOutExpo", 147 | left: ["0", !isMobile ? "-50%" : "0"], 148 | top: ["0", isMobile ? "-50%" : 0], 149 | opacity: [0, 1], 150 | duration: 1000, 151 | }).add({ 152 | targets: $("#cluehint")[0], 153 | easing: "easeOutExpo", 154 | opacity: [1, 0], 155 | delay: 3000, 156 | duration: 1000, 157 | complete: function() { 158 | $("#cluehint").addClass("hidden"); 159 | } 160 | }).play(); 161 | }); 162 | delete window.start; 163 | } -------------------------------------------------------------------------------- /resources/views/vendor/mail/html/themes/default.css: -------------------------------------------------------------------------------- 1 | /* Base */ 2 | 3 | body, body *:not(html):not(style):not(br):not(tr):not(code) { 4 | font-family: Avenir, Helvetica, sans-serif; 5 | box-sizing: border-box; 6 | } 7 | 8 | body { 9 | background-color: #f5f8fa; 10 | color: #74787E; 11 | height: 100%; 12 | hyphens: auto; 13 | line-height: 1.4; 14 | margin: 0; 15 | -moz-hyphens: auto; 16 | -ms-word-break: break-all; 17 | width: 100% !important; 18 | -webkit-hyphens: auto; 19 | -webkit-text-size-adjust: none; 20 | word-break: break-all; 21 | word-break: break-word; 22 | } 23 | 24 | p, 25 | ul, 26 | ol, 27 | blockquote { 28 | line-height: 1.4; 29 | text-align: left; 30 | } 31 | 32 | a { 33 | color: #3869D4; 34 | } 35 | 36 | a img { 37 | border: none; 38 | } 39 | 40 | /* Typography */ 41 | 42 | h1 { 43 | color: #2F3133; 44 | font-size: 19px; 45 | font-weight: bold; 46 | margin-top: 0; 47 | text-align: left; 48 | } 49 | 50 | h2 { 51 | color: #2F3133; 52 | font-size: 16px; 53 | font-weight: bold; 54 | margin-top: 0; 55 | text-align: left; 56 | } 57 | 58 | h3 { 59 | color: #2F3133; 60 | font-size: 14px; 61 | font-weight: bold; 62 | margin-top: 0; 63 | text-align: left; 64 | } 65 | 66 | p { 67 | color: #74787E; 68 | font-size: 16px; 69 | line-height: 1.5em; 70 | margin-top: 0; 71 | text-align: left; 72 | } 73 | 74 | p.sub { 75 | font-size: 12px; 76 | } 77 | 78 | img { 79 | max-width: 100%; 80 | } 81 | 82 | /* Layout */ 83 | 84 | .wrapper { 85 | background-color: #f5f8fa; 86 | margin: 0; 87 | padding: 0; 88 | width: 100%; 89 | -premailer-cellpadding: 0; 90 | -premailer-cellspacing: 0; 91 | -premailer-width: 100%; 92 | } 93 | 94 | .content { 95 | margin: 0; 96 | padding: 0; 97 | width: 100%; 98 | -premailer-cellpadding: 0; 99 | -premailer-cellspacing: 0; 100 | -premailer-width: 100%; 101 | } 102 | 103 | /* Header */ 104 | 105 | .header { 106 | padding: 25px 0; 107 | text-align: center; 108 | } 109 | 110 | .header a { 111 | color: #bbbfc3; 112 | font-size: 19px; 113 | font-weight: bold; 114 | text-decoration: none; 115 | text-shadow: 0 1px 0 white; 116 | } 117 | 118 | /* Body */ 119 | 120 | .body { 121 | background-color: #FFFFFF; 122 | border-bottom: 1px solid #EDEFF2; 123 | border-top: 1px solid #EDEFF2; 124 | margin: 0; 125 | padding: 0; 126 | width: 100%; 127 | -premailer-cellpadding: 0; 128 | -premailer-cellspacing: 0; 129 | -premailer-width: 100%; 130 | } 131 | 132 | .inner-body { 133 | background-color: #FFFFFF; 134 | margin: 0 auto; 135 | padding: 0; 136 | width: 570px; 137 | -premailer-cellpadding: 0; 138 | -premailer-cellspacing: 0; 139 | -premailer-width: 570px; 140 | } 141 | 142 | /* Subcopy */ 143 | 144 | .subcopy { 145 | border-top: 1px solid #EDEFF2; 146 | margin-top: 25px; 147 | padding-top: 25px; 148 | } 149 | 150 | .subcopy p { 151 | font-size: 12px; 152 | } 153 | 154 | /* Footer */ 155 | 156 | .footer { 157 | margin: 0 auto; 158 | padding: 0; 159 | text-align: center; 160 | width: 570px; 161 | -premailer-cellpadding: 0; 162 | -premailer-cellspacing: 0; 163 | -premailer-width: 570px; 164 | } 165 | 166 | .footer p { 167 | color: #AEAEAE; 168 | font-size: 12px; 169 | text-align: center; 170 | } 171 | 172 | /* Tables */ 173 | 174 | .table table { 175 | margin: 30px auto; 176 | width: 100%; 177 | -premailer-cellpadding: 0; 178 | -premailer-cellspacing: 0; 179 | -premailer-width: 100%; 180 | } 181 | 182 | .table th { 183 | border-bottom: 1px solid #EDEFF2; 184 | padding-bottom: 8px; 185 | margin: 0; 186 | } 187 | 188 | .table td { 189 | color: #74787E; 190 | font-size: 15px; 191 | line-height: 18px; 192 | padding: 10px 0; 193 | margin: 0; 194 | } 195 | 196 | .content-cell { 197 | padding: 35px; 198 | } 199 | 200 | /* Buttons */ 201 | 202 | .action { 203 | margin: 30px auto; 204 | padding: 0; 205 | text-align: center; 206 | width: 100%; 207 | -premailer-cellpadding: 0; 208 | -premailer-cellspacing: 0; 209 | -premailer-width: 100%; 210 | } 211 | 212 | .button { 213 | border-radius: 3px; 214 | box-shadow: 0 2px 3px rgba(0, 0, 0, 0.16); 215 | color: #FFF; 216 | display: inline-block; 217 | text-decoration: none; 218 | -webkit-text-size-adjust: none; 219 | } 220 | 221 | .button-blue, 222 | .button-primary { 223 | background-color: #3097D1; 224 | border-top: 10px solid #3097D1; 225 | border-right: 18px solid #3097D1; 226 | border-bottom: 10px solid #3097D1; 227 | border-left: 18px solid #3097D1; 228 | } 229 | 230 | .button-green, 231 | .button-success { 232 | background-color: #2ab27b; 233 | border-top: 10px solid #2ab27b; 234 | border-right: 18px solid #2ab27b; 235 | border-bottom: 10px solid #2ab27b; 236 | border-left: 18px solid #2ab27b; 237 | } 238 | 239 | .button-red, 240 | .button-error { 241 | background-color: #bf5329; 242 | border-top: 10px solid #bf5329; 243 | border-right: 18px solid #bf5329; 244 | border-bottom: 10px solid #bf5329; 245 | border-left: 18px solid #bf5329; 246 | } 247 | 248 | /* Panels */ 249 | 250 | .panel { 251 | margin: 0 0 21px; 252 | } 253 | 254 | .panel-content { 255 | background-color: #EDEFF2; 256 | padding: 16px; 257 | } 258 | 259 | .panel-item { 260 | padding: 0; 261 | } 262 | 263 | .panel-item p:last-of-type { 264 | margin-bottom: 0; 265 | padding-bottom: 0; 266 | } 267 | 268 | /* Promotions */ 269 | 270 | .promotion { 271 | background-color: #FFFFFF; 272 | border: 2px dashed #9BA2AB; 273 | margin: 0; 274 | margin-bottom: 25px; 275 | margin-top: 25px; 276 | padding: 24px; 277 | width: 100%; 278 | -premailer-cellpadding: 0; 279 | -premailer-cellspacing: 0; 280 | -premailer-width: 100%; 281 | } 282 | 283 | .promotion h1 { 284 | text-align: center; 285 | } 286 | 287 | .promotion p { 288 | font-size: 15px; 289 | text-align: center; 290 | } 291 | -------------------------------------------------------------------------------- /public/svg/403.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /config/session.php: -------------------------------------------------------------------------------- 1 | env('SESSION_DRIVER', 'file'), 22 | 23 | /* 24 | |-------------------------------------------------------------------------- 25 | | Session Lifetime 26 | |-------------------------------------------------------------------------- 27 | | 28 | | Here you may specify the number of minutes that you wish the session 29 | | to be allowed to remain idle before it expires. If you want them 30 | | to immediately expire on the browser closing, set that option. 31 | | 32 | */ 33 | 34 | 'lifetime' => env('SESSION_LIFETIME', 120), 35 | 36 | 'expire_on_close' => false, 37 | 38 | /* 39 | |-------------------------------------------------------------------------- 40 | | Session Encryption 41 | |-------------------------------------------------------------------------- 42 | | 43 | | This option allows you to easily specify that all of your session data 44 | | should be encrypted before it is stored. All encryption will be run 45 | | automatically by Laravel and you can use the Session like normal. 46 | | 47 | */ 48 | 49 | 'encrypt' => false, 50 | 51 | /* 52 | |-------------------------------------------------------------------------- 53 | | Session File Location 54 | |-------------------------------------------------------------------------- 55 | | 56 | | When using the native session driver, we need a location where session 57 | | files may be stored. A default has been set for you but a different 58 | | location may be specified. This is only needed for file sessions. 59 | | 60 | */ 61 | 62 | 'files' => storage_path('framework/sessions'), 63 | 64 | /* 65 | |-------------------------------------------------------------------------- 66 | | Session Database Connection 67 | |-------------------------------------------------------------------------- 68 | | 69 | | When using the "database" or "redis" session drivers, you may specify a 70 | | connection that should be used to manage these sessions. This should 71 | | correspond to a connection in your database configuration options. 72 | | 73 | */ 74 | 75 | 'connection' => env('SESSION_CONNECTION', null), 76 | 77 | /* 78 | |-------------------------------------------------------------------------- 79 | | Session Database Table 80 | |-------------------------------------------------------------------------- 81 | | 82 | | When using the "database" session driver, you may specify the table we 83 | | should use to manage the sessions. Of course, a sensible default is 84 | | provided for you; however, you are free to change this as needed. 85 | | 86 | */ 87 | 88 | 'table' => 'sessions', 89 | 90 | /* 91 | |-------------------------------------------------------------------------- 92 | | Session Cache Store 93 | |-------------------------------------------------------------------------- 94 | | 95 | | When using the "apc" or "memcached" session drivers, you may specify a 96 | | cache store that should be used for these sessions. This value must 97 | | correspond with one of the application's configured cache stores. 98 | | 99 | */ 100 | 101 | 'store' => env('SESSION_STORE', null), 102 | 103 | /* 104 | |-------------------------------------------------------------------------- 105 | | Session Sweeping Lottery 106 | |-------------------------------------------------------------------------- 107 | | 108 | | Some session drivers must manually sweep their storage location to get 109 | | rid of old sessions from storage. Here are the chances that it will 110 | | happen on a given request. By default, the odds are 2 out of 100. 111 | | 112 | */ 113 | 114 | 'lottery' => [2, 100], 115 | 116 | /* 117 | |-------------------------------------------------------------------------- 118 | | Session Cookie Name 119 | |-------------------------------------------------------------------------- 120 | | 121 | | Here you may change the name of the cookie used to identify a session 122 | | instance by ID. The name specified here will get used every time a 123 | | new session cookie is created by the framework for every driver. 124 | | 125 | */ 126 | 127 | 'cookie' => env( 128 | 'SESSION_COOKIE', 129 | Str::slug(env('APP_NAME', 'laravel'), '_').'_session' 130 | ), 131 | 132 | /* 133 | |-------------------------------------------------------------------------- 134 | | Session Cookie Path 135 | |-------------------------------------------------------------------------- 136 | | 137 | | The session cookie path determines the path for which the cookie will 138 | | be regarded as available. Typically, this will be the root path of 139 | | your application but you are free to change this when necessary. 140 | | 141 | */ 142 | 143 | 'path' => '/', 144 | 145 | /* 146 | |-------------------------------------------------------------------------- 147 | | Session Cookie Domain 148 | |-------------------------------------------------------------------------- 149 | | 150 | | Here you may change the domain of the cookie used to identify a session 151 | | in your application. This will determine which domains the cookie is 152 | | available to in your application. A sensible default has been set. 153 | | 154 | */ 155 | 156 | 'domain' => env('SESSION_DOMAIN', null), 157 | 158 | /* 159 | |-------------------------------------------------------------------------- 160 | | HTTPS Only Cookies 161 | |-------------------------------------------------------------------------- 162 | | 163 | | By setting this option to true, session cookies will only be sent back 164 | | to the server if the browser has a HTTPS connection. This will keep 165 | | the cookie from being sent to you if it can not be done securely. 166 | | 167 | */ 168 | 169 | 'secure' => env('SESSION_SECURE_COOKIE', false), 170 | 171 | /* 172 | |-------------------------------------------------------------------------- 173 | | HTTP Access Only 174 | |-------------------------------------------------------------------------- 175 | | 176 | | Setting this value to true will prevent JavaScript from accessing the 177 | | value of the cookie and the cookie will only be accessible through 178 | | the HTTP protocol. You are free to modify this option if needed. 179 | | 180 | */ 181 | 182 | 'http_only' => true, 183 | 184 | /* 185 | |-------------------------------------------------------------------------- 186 | | Same-Site Cookies 187 | |-------------------------------------------------------------------------- 188 | | 189 | | This option determines how your cookies behave when cross-site requests 190 | | take place, and can be used to mitigate CSRF attacks. By default, we 191 | | do not enable this as other CSRF protection services are in place. 192 | | 193 | | Supported: "lax", "strict" 194 | | 195 | */ 196 | 197 | 'same_site' => null, 198 | 199 | ]; 200 | -------------------------------------------------------------------------------- /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 | 'after_or_equal' => 'The :attribute must be a date after or equal to :date.', 20 | 'alpha' => 'The :attribute may only contain letters.', 21 | 'alpha_dash' => 'The :attribute may only contain letters, numbers, dashes and underscores.', 22 | 'alpha_num' => 'The :attribute may only contain letters and numbers.', 23 | 'array' => 'The :attribute must be an array.', 24 | 'before' => 'The :attribute must be a date before :date.', 25 | 'before_or_equal' => 'The :attribute must be a date before or equal to :date.', 26 | 'between' => [ 27 | 'numeric' => 'The :attribute must be between :min and :max.', 28 | 'file' => 'The :attribute must be between :min and :max kilobytes.', 29 | 'string' => 'The :attribute must be between :min and :max characters.', 30 | 'array' => 'The :attribute must have between :min and :max items.', 31 | ], 32 | 'boolean' => 'The :attribute field must be true or false.', 33 | 'confirmed' => 'The :attribute confirmation does not match.', 34 | 'date' => 'The :attribute is not a valid date.', 35 | 'date_equals' => 'The :attribute must be a date equal to :date.', 36 | 'date_format' => 'The :attribute does not match the format :format.', 37 | 'different' => 'The :attribute and :other must be different.', 38 | 'digits' => 'The :attribute must be :digits digits.', 39 | 'digits_between' => 'The :attribute must be between :min and :max digits.', 40 | 'dimensions' => 'The :attribute has invalid image dimensions.', 41 | 'distinct' => 'The :attribute field has a duplicate value.', 42 | 'email' => 'The :attribute must be a valid email address.', 43 | 'exists' => 'The selected :attribute is invalid.', 44 | 'file' => 'The :attribute must be a file.', 45 | 'filled' => 'The :attribute field must have a value.', 46 | 'gt' => [ 47 | 'numeric' => 'The :attribute must be greater than :value.', 48 | 'file' => 'The :attribute must be greater than :value kilobytes.', 49 | 'string' => 'The :attribute must be greater than :value characters.', 50 | 'array' => 'The :attribute must have more than :value items.', 51 | ], 52 | 'gte' => [ 53 | 'numeric' => 'The :attribute must be greater than or equal :value.', 54 | 'file' => 'The :attribute must be greater than or equal :value kilobytes.', 55 | 'string' => 'The :attribute must be greater than or equal :value characters.', 56 | 'array' => 'The :attribute must have :value items or more.', 57 | ], 58 | 'image' => 'The :attribute must be an image.', 59 | 'in' => 'The selected :attribute is invalid.', 60 | 'in_array' => 'The :attribute field does not exist in :other.', 61 | 'integer' => 'The :attribute must be an integer.', 62 | 'ip' => 'The :attribute must be a valid IP address.', 63 | 'ipv4' => 'The :attribute must be a valid IPv4 address.', 64 | 'ipv6' => 'The :attribute must be a valid IPv6 address.', 65 | 'json' => 'The :attribute must be a valid JSON string.', 66 | 'lt' => [ 67 | 'numeric' => 'The :attribute must be less than :value.', 68 | 'file' => 'The :attribute must be less than :value kilobytes.', 69 | 'string' => 'The :attribute must be less than :value characters.', 70 | 'array' => 'The :attribute must have less than :value items.', 71 | ], 72 | 'lte' => [ 73 | 'numeric' => 'The :attribute must be less than or equal :value.', 74 | 'file' => 'The :attribute must be less than or equal :value kilobytes.', 75 | 'string' => 'The :attribute must be less than or equal :value characters.', 76 | 'array' => 'The :attribute must not have more than :value items.', 77 | ], 78 | 'max' => [ 79 | 'numeric' => 'The :attribute may not be greater than :max.', 80 | 'file' => 'The :attribute may not be greater than :max kilobytes.', 81 | 'string' => 'The :attribute may not be greater than :max characters.', 82 | 'array' => 'The :attribute may not have more than :max items.', 83 | ], 84 | 'mimes' => 'The :attribute must be a file of type: :values.', 85 | 'mimetypes' => 'The :attribute must be a file of type: :values.', 86 | 'min' => [ 87 | 'numeric' => 'The :attribute must be at least :min.', 88 | 'file' => 'The :attribute must be at least :min kilobytes.', 89 | 'string' => 'The :attribute must be at least :min characters.', 90 | 'array' => 'The :attribute must have at least :min items.', 91 | ], 92 | 'not_in' => 'The selected :attribute is invalid.', 93 | 'not_regex' => 'The :attribute format is invalid.', 94 | 'numeric' => 'The :attribute must be a number.', 95 | 'present' => 'The :attribute field must be present.', 96 | 'regex' => 'The :attribute format is invalid.', 97 | 'required' => 'The :attribute field is required.', 98 | 'required_if' => 'The :attribute field is required when :other is :value.', 99 | 'required_unless' => 'The :attribute field is required unless :other is in :values.', 100 | 'required_with' => 'The :attribute field is required when :values is present.', 101 | 'required_with_all' => 'The :attribute field is required when :values are present.', 102 | 'required_without' => 'The :attribute field is required when :values is not present.', 103 | 'required_without_all' => 'The :attribute field is required when none of :values are present.', 104 | 'same' => 'The :attribute and :other must match.', 105 | 'size' => [ 106 | 'numeric' => 'The :attribute must be :size.', 107 | 'file' => 'The :attribute must be :size kilobytes.', 108 | 'string' => 'The :attribute must be :size characters.', 109 | 'array' => 'The :attribute must contain :size items.', 110 | ], 111 | 'starts_with' => 'The :attribute must start with one of the following: :values', 112 | 'string' => 'The :attribute must be a string.', 113 | 'timezone' => 'The :attribute must be a valid zone.', 114 | 'unique' => 'The :attribute has already been taken.', 115 | 'uploaded' => 'The :attribute failed to upload.', 116 | 'url' => 'The :attribute format is invalid.', 117 | 'uuid' => 'The :attribute must be a valid UUID.', 118 | 119 | /* 120 | |-------------------------------------------------------------------------- 121 | | Custom Validation Language Lines 122 | |-------------------------------------------------------------------------- 123 | | 124 | | Here you may specify custom validation messages for attributes using the 125 | | convention "attribute.rule" to name the lines. This makes it quick to 126 | | specify a specific custom language line for a given attribute rule. 127 | | 128 | */ 129 | 130 | 'custom' => [ 131 | 'attribute-name' => [ 132 | 'rule-name' => 'custom-message', 133 | ], 134 | ], 135 | 136 | /* 137 | |-------------------------------------------------------------------------- 138 | | Custom Validation Attributes 139 | |-------------------------------------------------------------------------- 140 | | 141 | | The following language lines are used to swap our attribute placeholder 142 | | with something more reader friendly such as "E-Mail Address" instead 143 | | of "email". This simply helps us make our message more expressive. 144 | | 145 | */ 146 | 147 | 'attributes' => [], 148 | 149 | ]; 150 | -------------------------------------------------------------------------------- /resources/sass/app.scss: -------------------------------------------------------------------------------- 1 | $screen-sm-min: 768px; 2 | @mixin sm { 3 | @media (max-width: #{$screen-sm-min}) { 4 | @content; 5 | } 6 | } 7 | @mixin md { 8 | @media (min-width: #{$screen-sm-min}) { 9 | @content; 10 | } 11 | } 12 | @function strip-unit($value) { 13 | @return $value / ($value * 0 + 1); 14 | } 15 | $min_width: 320px; 16 | $max_width: 3840px; 17 | $min_font: 16px; 18 | $max_font: 40px; 19 | @mixin fluid-type($min-vw, $max-vw, $min-font-size, $max-font-size, $scale:1.0) { 20 | $u1: unit($min-vw); 21 | $u2: unit($max-vw); 22 | $u3: unit($min-font-size); 23 | $u4: unit($max-font-size); 24 | @if $u1 == $u2 and $u1 == $u3 and $u1 == $u4 { 25 | & { 26 | font-size: $min-font-size; 27 | @media screen and (min-width: $min-vw) { 28 | font-size: calc((#{$min-font-size} + #{strip-unit($max-font-size - $min-font-size)} * ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})) * #{$scale}); 29 | } 30 | @media screen and (min-width: $max-vw) { 31 | font-size: calc(1.5vw * #{$scale}); 32 | } 33 | } 34 | } 35 | } 36 | @font-face { 37 | font-family: phage; 38 | font-display: swap; 39 | src: url("../fonts/phage_regular.otf"); 40 | } 41 | @import "~sass-text-stroke/_text-stroke"; 42 | 43 | .frame:nth-child(1) .subframe { 44 | @include sm { 45 | width: auto; 46 | } 47 | } 48 | $nova: #ffd100; 49 | $vela: #6fcfeb; 50 | $pyxis: #b6b8dd; 51 | $auryx: #f68639; 52 | 53 | #logo { 54 | height: 50vmin; 55 | // position: absolute; 56 | top: 0; 57 | left: 0; 58 | // transform: translate(10%,-50%); 59 | @include sm { 60 | //display: none; 61 | } 62 | } 63 | 64 | .globeParent { 65 | position: absolute; 66 | z-index: -1; 67 | top: 0; 68 | left: 0; 69 | // transform: translate(10%,-50%); 70 | width: 50vmin; 71 | height: auto; 72 | } 73 | 74 | .globe { 75 | width: 100%; 76 | height: 100%; 77 | transform-origin: center center; 78 | } 79 | 80 | .title { 81 | font-size: 9vmax; 82 | font-family: calculator; 83 | text-align: center; 84 | } 85 | 86 | .frame-title { 87 | @include md { 88 | font-size: 9vmax; 89 | } 90 | @include sm { 91 | @include fluid-type($min_width, $max_width, $min_font, $max_font, 4); 92 | } 93 | text-align: center; 94 | font-family: calculator; 95 | } 96 | 97 | .subtitle { 98 | margin-top: 5%; 99 | font-size: 2vmax; 100 | letter-spacing: 0.5px; 101 | text-align: justify; 102 | font-family: "Andale Mono", "Consolas", "Courier New", monospace; 103 | text-align: center; 104 | } 105 | 106 | .frame-subtitle { 107 | margin: 5% 2%; 108 | @include fluid-type($min_width, $max_width, $min_font, $max_font, 1); 109 | @include sm { 110 | letter-spacing: unset; 111 | } 112 | letter-spacing: 0.5px; 113 | text-align: justify; 114 | font-family: "Andale Mono", "Consolas", "Courier New", monospace; 115 | } 116 | 117 | .frame-largetext { 118 | //font-size: 2vmax; 119 | @include sm { 120 | //font-size: 3.3vmax; 121 | letter-spacing: unset; 122 | } 123 | letter-spacing: 0.5px; 124 | text-align: justify; 125 | font-family: "Andale Mono", "Consolas", "Courier New", monospace; 126 | } 127 | 128 | #logosection { 129 | position: relative; 130 | @include sm { 131 | margin: 2%; 132 | } 133 | } 134 | 135 | #logosection * {} 136 | 137 | #main_description { 138 | font-size: 1.6vmax; 139 | font-family: Tahoma; 140 | margin: 5%; 141 | } 142 | 143 | .frame { 144 | width: 100%; 145 | height: auto; 146 | } 147 | 148 | .frame > * { 149 | margin-left: 2%; 150 | margin-right: 2%; 151 | } 152 | 153 | .frame:nth-child(4) { 154 | background-image: url("/img/frame_2.jpg"); 155 | background-size: cover; 156 | } 157 | 158 | .flex { 159 | display: flex; 160 | @include sm { 161 | flex-wrap: wrap; 162 | flex-direction: column-reverse; 163 | } 164 | @include sm { 165 | justify-content: center; 166 | } 167 | @include md { 168 | justify-content: space-evenly; 169 | } 170 | align-items: center; 171 | } 172 | 173 | .full { 174 | height: 100vh; 175 | } 176 | 177 | .subframe { 178 | display: inline-block; 179 | } 180 | 181 | .content_frame { 182 | width: auto; 183 | height: 100%; 184 | margin: 2% 10%; 185 | @include sm { 186 | margin: 2% 1%; 187 | } 188 | // background-color: rgba(0,0,0,0.5); 189 | } 190 | 191 | .house_frame { 192 | @include md { 193 | display: block; 194 | } 195 | @include sm { 196 | display: flex; 197 | justify-content: center; 198 | align-items: center; 199 | align-content: center; 200 | flex-direction: column; 201 | flex-wrap: nowrap; 202 | column-count: unset; 203 | } 204 | } 205 | 206 | .house_logo_frame { 207 | @include md { 208 | display: inline-block; 209 | width: 45%; 210 | } 211 | @include sm { 212 | order: 2; 213 | } 214 | } 215 | 216 | .house_logo { 217 | display: block; 218 | margin-left: auto; 219 | margin-right: auto; 220 | @include md { 221 | height: 50vh; 222 | max-width: 35vw; 223 | } 224 | @include sm { 225 | max-width: 70vw; 226 | height: auto; 227 | } 228 | } 229 | 230 | .house_logo_lore { 231 | letter-spacing: 0.5px; 232 | text-align: center; 233 | font-family: "Andale Mono", "Consolas", "Courier New", monospace; 234 | @include fluid-type($min_width, $max_width, $min_font, $max_font, 1); 235 | margin: 5% 1%; 236 | @include sm { 237 | font-size: 1em; 238 | } 239 | } 240 | 241 | .house_name_frame { 242 | @include md { 243 | display: flex; 244 | width: 100%; 245 | clear: both; 246 | justify-content: space-around; 247 | align-items: center; 248 | } 249 | @include sm { 250 | order: 1; 251 | } 252 | } 253 | 254 | .house_names { 255 | font-family: phage; 256 | font-size: 6em; 257 | text-align: center; 258 | @include md { 259 | display: inline; 260 | } 261 | } 262 | 263 | .house_names.nova { 264 | color: $nova; 265 | } 266 | 267 | .house_names.vela { 268 | color: $vela; 269 | } 270 | 271 | .house_names.pyxis { 272 | color: $pyxis; 273 | } 274 | 275 | .house_names.auryx { 276 | color: $auryx; 277 | } 278 | 279 | .house_nicknames { 280 | font-family: phage; 281 | font-size: 2.5em; 282 | text-align: center; 283 | @include md { 284 | display: inline; 285 | } 286 | } 287 | 288 | .house_nicknames.nova { 289 | @include text-stroke(2, $nova); 290 | } 291 | 292 | .house_nicknames.vela { 293 | @include text-stroke(2, $vela); 294 | } 295 | 296 | .house_nicknames.pyxis { 297 | @include text-stroke(2, $pyxis); 298 | } 299 | 300 | .house_nicknames.auryx { 301 | @include text-stroke(2, $auryx); 302 | } 303 | 304 | .house_lore { 305 | flex: 1 0 35%; 306 | letter-spacing: 0.5px; 307 | text-align: justify; 308 | font-family: "Andale Mono", "Consolas", "Courier New", monospace; 309 | //font-size: 1.5em; 310 | @include fluid-type($min_width, $max_width, $min_font, $max_font); 311 | margin: 2% 1%; 312 | @include md { 313 | order: 3; 314 | max-width: 50%; 315 | float: right; 316 | display: inline-block; 317 | } 318 | @include sm { 319 | order: 3; 320 | margin: 5% 1%; 321 | } 322 | } 323 | 324 | .backgrounds { 325 | position: fixed; 326 | z-index: -9001; 327 | top: 0; 328 | left: 0; 329 | } 330 | 331 | .backgrounds img { 332 | position: absolute; 333 | overflow-x: hidden; 334 | z-index: -9001; 335 | min-width: calc(100vmax * 1.2); 336 | top: 0; 337 | left: 0; 338 | transform: translate(-10%,-10%); //starting position 339 | } 340 | 341 | .contact-info { 342 | @include md { 343 | width: 50%; 344 | display: inline-block; 345 | } 346 | @include sm { 347 | width: 100%; 348 | } 349 | letter-spacing: 0.5px; 350 | justify-content: center; 351 | text-align: left !important; 352 | font-family: "Andale Mono", "Consolas", "Courier New", monospace; 353 | @include fluid-type($min_width, $max_width, $min_font, $max_font, 1.2); 354 | font-size: 1.0em; 355 | margin: 5% 1%; 356 | } 357 | 358 | #maps { 359 | position: relative; 360 | overflow: hidden; 361 | padding-top: 56.25%; 362 | } 363 | 364 | #maps iframe { 365 | overflow: hidden; 366 | position: absolute; 367 | top: 0; 368 | left: 0; 369 | width: 100%; 370 | height: 100%; 371 | border: 0; 372 | } 373 | 374 | #cluehint.hidden { 375 | display: none; 376 | } 377 | 378 | #cluehint { 379 | position: absolute; 380 | top: 50%; 381 | //transform: translate(0, -50%); 382 | @include md { 383 | max-width: 20vmax; 384 | font-size: 2em; 385 | } 386 | @include sm { 387 | max-height: 20vmax; 388 | font-size: 1em; 389 | } 390 | border: 2px solid red; 391 | font-family: "Andale Mono", "Consolas", "Courier New", monospace; 392 | display: inline-block; 393 | background-color: white; 394 | color: black; 395 | } 396 | 397 | body { 398 | margin: 0; 399 | width: 100%; 400 | height: auto; 401 | overflow-x: hidden; 402 | } 403 | 404 | content { 405 | width: 100%; 406 | height: auto; 407 | overflow-y: auto; 408 | } 409 | 410 | footer { 411 | color: #fff; 412 | background-color: #000; 413 | letter-spacing: 0.5px; 414 | justify-content: center; 415 | text-align: left !important; 416 | font-family: "Andale Mono", "Consolas", "Courier New", monospace; 417 | @include fluid-type($min_width, $max_width, $min_font, $max_font, 1.2); 418 | } 419 | 420 | footer .subframe div { 421 | padding: 2vmin; 422 | } 423 | 424 | footer img { 425 | height: 10vmin; 426 | } -------------------------------------------------------------------------------- /resources/img/vela.svg: -------------------------------------------------------------------------------- 1 | the four houses -------------------------------------------------------------------------------- /config/app.php: -------------------------------------------------------------------------------- 1 | env('APP_NAME', 'Laravel'), 16 | 17 | /* 18 | |-------------------------------------------------------------------------- 19 | | Application Environment 20 | |-------------------------------------------------------------------------- 21 | | 22 | | This value determines the "environment" your application is currently 23 | | running in. This may determine how you prefer to configure various 24 | | services the application utilizes. Set this in your ".env" file. 25 | | 26 | */ 27 | 28 | 'env' => env('APP_ENV', 'production'), 29 | 30 | /* 31 | |-------------------------------------------------------------------------- 32 | | Application Debug Mode 33 | |-------------------------------------------------------------------------- 34 | | 35 | | When your application is in debug mode, detailed error messages with 36 | | stack traces will be shown on every error that occurs within your 37 | | application. If disabled, a simple generic error page is shown. 38 | | 39 | */ 40 | 41 | 'debug' => env('APP_DEBUG', false), 42 | 43 | /* 44 | |-------------------------------------------------------------------------- 45 | | Application URL 46 | |-------------------------------------------------------------------------- 47 | | 48 | | This URL is used by the console to properly generate URLs when using 49 | | the Artisan command line tool. You should set this to the root of 50 | | your application so that it is used when running Artisan tasks. 51 | | 52 | */ 53 | 54 | 'url' => env('APP_URL', 'http://localhost'), 55 | 56 | 'asset_url' => env('ASSET_URL', null), 57 | 58 | /* 59 | |-------------------------------------------------------------------------- 60 | | Application Timezone 61 | |-------------------------------------------------------------------------- 62 | | 63 | | Here you may specify the default timezone for your application, which 64 | | will be used by the PHP date and date-time functions. We have gone 65 | | ahead and set this to a sensible default for you out of the box. 66 | | 67 | */ 68 | 69 | 'timezone' => 'UTC', 70 | 71 | /* 72 | |-------------------------------------------------------------------------- 73 | | Application Locale Configuration 74 | |-------------------------------------------------------------------------- 75 | | 76 | | The application locale determines the default locale that will be used 77 | | by the translation service provider. You are free to set this value 78 | | to any of the locales which will be supported by the application. 79 | | 80 | */ 81 | 82 | 'locale' => 'en', 83 | 84 | /* 85 | |-------------------------------------------------------------------------- 86 | | Application Fallback Locale 87 | |-------------------------------------------------------------------------- 88 | | 89 | | The fallback locale determines the locale to use when the current one 90 | | is not available. You may change the value to correspond to any of 91 | | the language folders that are provided through your application. 92 | | 93 | */ 94 | 95 | 'fallback_locale' => 'en', 96 | 97 | /* 98 | |-------------------------------------------------------------------------- 99 | | Faker Locale 100 | |-------------------------------------------------------------------------- 101 | | 102 | | This locale will be used by the Faker PHP library when generating fake 103 | | data for your database seeds. For example, this will be used to get 104 | | localized telephone numbers, street address information and more. 105 | | 106 | */ 107 | 108 | 'faker_locale' => 'en_US', 109 | 110 | /* 111 | |-------------------------------------------------------------------------- 112 | | Encryption Key 113 | |-------------------------------------------------------------------------- 114 | | 115 | | This key is used by the Illuminate encrypter service and should be set 116 | | to a random, 32 character string, otherwise these encrypted strings 117 | | will not be safe. Please do this before deploying an application! 118 | | 119 | */ 120 | 121 | 'key' => env('APP_KEY'), 122 | 123 | 'cipher' => 'AES-256-CBC', 124 | 125 | /* 126 | |-------------------------------------------------------------------------- 127 | | Autoloaded Service Providers 128 | |-------------------------------------------------------------------------- 129 | | 130 | | The service providers listed here will be automatically loaded on the 131 | | request to your application. Feel free to add your own services to 132 | | this array to grant expanded functionality to your applications. 133 | | 134 | */ 135 | 136 | 'providers' => [ 137 | /* 138 | * Laravel Framework Service Providers... 139 | */ 140 | Illuminate\Auth\AuthServiceProvider::class, 141 | Illuminate\Broadcasting\BroadcastServiceProvider::class, 142 | Illuminate\Bus\BusServiceProvider::class, 143 | Illuminate\Cache\CacheServiceProvider::class, 144 | Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class, 145 | Illuminate\Cookie\CookieServiceProvider::class, 146 | Illuminate\Database\DatabaseServiceProvider::class, 147 | Illuminate\Encryption\EncryptionServiceProvider::class, 148 | Illuminate\Filesystem\FilesystemServiceProvider::class, 149 | Illuminate\Foundation\Providers\FoundationServiceProvider::class, 150 | Illuminate\Hashing\HashServiceProvider::class, 151 | Illuminate\Mail\MailServiceProvider::class, 152 | Illuminate\Notifications\NotificationServiceProvider::class, 153 | Illuminate\Pagination\PaginationServiceProvider::class, 154 | Illuminate\Pipeline\PipelineServiceProvider::class, 155 | Illuminate\Queue\QueueServiceProvider::class, 156 | Illuminate\Redis\RedisServiceProvider::class, 157 | Illuminate\Auth\Passwords\PasswordResetServiceProvider::class, 158 | Illuminate\Session\SessionServiceProvider::class, 159 | Illuminate\Translation\TranslationServiceProvider::class, 160 | Illuminate\Validation\ValidationServiceProvider::class, 161 | Illuminate\View\ViewServiceProvider::class, 162 | 163 | /* 164 | * Package Service Providers... 165 | */ 166 | Telegram\Bot\Laravel\TelegramServiceProvider::class, 167 | /* 168 | * Application Service Providers... 169 | */ 170 | App\Providers\AppServiceProvider::class, 171 | App\Providers\AuthServiceProvider::class, 172 | // App\Providers\BroadcastServiceProvider::class, 173 | App\Providers\EventServiceProvider::class, 174 | App\Providers\RouteServiceProvider::class, 175 | ], 176 | 177 | /* 178 | |-------------------------------------------------------------------------- 179 | | Class Aliases 180 | |-------------------------------------------------------------------------- 181 | | 182 | | This array of class aliases will be registered when this application 183 | | is started. However, feel free to register as many as you wish as 184 | | the aliases are "lazy" loaded so they don't hinder performance. 185 | | 186 | */ 187 | 188 | 'aliases' => [ 189 | 'App' => Illuminate\Support\Facades\App::class, 190 | 'Artisan' => Illuminate\Support\Facades\Artisan::class, 191 | 'Auth' => Illuminate\Support\Facades\Auth::class, 192 | 'Blade' => Illuminate\Support\Facades\Blade::class, 193 | 'Broadcast' => Illuminate\Support\Facades\Broadcast::class, 194 | 'Bus' => Illuminate\Support\Facades\Bus::class, 195 | 'Cache' => Illuminate\Support\Facades\Cache::class, 196 | 'Config' => Illuminate\Support\Facades\Config::class, 197 | 'Cookie' => Illuminate\Support\Facades\Cookie::class, 198 | 'Crypt' => Illuminate\Support\Facades\Crypt::class, 199 | 'DB' => Illuminate\Support\Facades\DB::class, 200 | 'Eloquent' => Illuminate\Database\Eloquent\Model::class, 201 | 'Event' => Illuminate\Support\Facades\Event::class, 202 | 'File' => Illuminate\Support\Facades\File::class, 203 | 'Gate' => Illuminate\Support\Facades\Gate::class, 204 | 'Hash' => Illuminate\Support\Facades\Hash::class, 205 | 'Lang' => Illuminate\Support\Facades\Lang::class, 206 | 'Log' => Illuminate\Support\Facades\Log::class, 207 | 'Mail' => Illuminate\Support\Facades\Mail::class, 208 | 'Notification' => Illuminate\Support\Facades\Notification::class, 209 | 'Password' => Illuminate\Support\Facades\Password::class, 210 | 'Queue' => Illuminate\Support\Facades\Queue::class, 211 | 'Redirect' => Illuminate\Support\Facades\Redirect::class, 212 | 'Redis' => Illuminate\Support\Facades\Redis::class, 213 | 'Request' => Illuminate\Support\Facades\Request::class, 214 | 'Response' => Illuminate\Support\Facades\Response::class, 215 | 'Route' => Illuminate\Support\Facades\Route::class, 216 | 'Schema' => Illuminate\Support\Facades\Schema::class, 217 | 'Session' => Illuminate\Support\Facades\Session::class, 218 | 'Storage' => Illuminate\Support\Facades\Storage::class, 219 | 'URL' => Illuminate\Support\Facades\URL::class, 220 | 'Validator' => Illuminate\Support\Facades\Validator::class, 221 | 'View' => Illuminate\Support\Facades\View::class, 222 | 'Telegram' => Telegram\Bot\Laravel\Facades\Telegram::class, 223 | ], 224 | ]; 225 | --------------------------------------------------------------------------------