diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bcdaf8ef5f0520158ca9dc22b0700ae76fc1dfd6..073444304c92ea7e4b496d8cb5641dafa4d87652 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -56,7 +56,7 @@ before_script: test: stage: test script: - - php vendor/bin/phpunit --coverage-text --coverage-html ./report + - php vendor/bin/phpunit --coverage-text --colors=never --coverage-html ./report artifacts: paths: - report/ @@ -73,4 +73,4 @@ pages: - public expire_in: 30days only: - - test_ci + - master diff --git a/readme.md b/readme.md index 5e90f480ac0c451c0d7a0ee4692d52988e4e1a50..036270ac548ba80479eacb1408ed68c34705c227 100644 --- a/readme.md +++ b/readme.md @@ -1,59 +1,40 @@ -<p align="center"><img src="https://laravel.com/assets/img/components/logo-laravel.svg"></p> +<p align="center"><img src="http://icici-bme.itb.ac.id/wp-content/uploads/STEI-ITB-with-text-Habibur-237x300.png"><b>Web Alumni STEI</b></p> <p align="center"> -<a href="https://travis-ci.org/laravel/framework"><img src="https://travis-ci.org/laravel/framework.svg" alt="Build Status"></a> -<a href="https://packagist.org/packages/laravel/framework"><img src="https://poser.pugx.org/laravel/framework/d/total.svg" alt="Total Downloads"></a> -<a href="https://packagist.org/packages/laravel/framework"><img src="https://poser.pugx.org/laravel/framework/v/stable.svg" alt="Latest Stable Version"></a> -<a href="https://packagist.org/packages/laravel/framework"><img src="https://poser.pugx.org/laravel/framework/license.svg" alt="License"></a> +<a href="http://gitlab.informatika.org/IF3250-2018-K01-I-4/WebAlumniSTEI/commits/master"><img alt="pipeline status" src="http://gitlab.informatika.org/IF3250-2018-K01-I-4/WebAlumniSTEI/badges/master/pipeline.svg" /></a> +<a href="http://gitlab.informatika.org/IF3250-2018-K01-I-4/WebAlumniSTEI/commits/master"><img alt="coverage report" src="http://gitlab.informatika.org/IF3250-2018-K01-I-4/WebAlumniSTEI/badges/master/coverage.svg" /></a> </p> -## About Laravel - -Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as: - -- [Simple, fast routing engine](https://laravel.com/docs/routing). -- [Powerful dependency injection container](https://laravel.com/docs/container). -- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage. -- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent). -- Database agnostic [schema migrations](https://laravel.com/docs/migrations). -- [Robust background job processing](https://laravel.com/docs/queues). -- [Real-time event broadcasting](https://laravel.com/docs/broadcasting). - -Laravel is accessible, yet powerful, providing tools needed for large, robust applications. - -## Learning Laravel - -Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of any modern web application framework, making it a breeze to get started learning the framework. - -If you're not in the mood to read, [Laracasts](https://laracasts.com) contains over 1100 video tutorials on a range of topics including Laravel, modern PHP, unit testing, JavaScript, and more. Boost the skill level of yourself and your entire team by digging into our comprehensive video library. - -## Laravel Sponsors - -We would like to extend our thanks to the following sponsors for helping fund on-going Laravel development. If you are interested in becoming a sponsor, please visit the Laravel [Patreon page](https://patreon.com/taylorotwell): - -- **[Vehikl](https://vehikl.com/)** -- **[Tighten Co.](https://tighten.co)** -- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)** -- **[British Software Development](https://www.britishsoftware.co)** -- [Fragrantica](https://www.fragrantica.com) -- [SOFTonSOFA](https://softonsofa.com/) -- [User10](https://user10.com) -- [Soumettre.fr](https://soumettre.fr/) -- [CodeBrisk](https://codebrisk.com) -- [1Forge](https://1forge.com) -- [TECPRESSO](https://tecpresso.co.jp/) -- [Pulse Storm](http://www.pulsestorm.net/) -- [Runtime Converter](http://runtimeconverter.com/) -- [WebL'Agence](https://weblagence.com/) - -## Contributing - -Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions). - -## Security Vulnerabilities - -If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed. - -## License - -The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT). +## About Web Alumni STEI + +<p>Sekolah Teknik Elektro dan Informatika (STEI-ITB) yang diresmikan pada 1 Januari 2006 merupakan gabungan dua departemen di ITB, yaitu Departemen Teknik Elektro dan Teknik Informatika (SK Rektor No. 012/SK/01/OT/2005). Kedua departemen ini mempunyai sejarah yang panjang dalam penyelenggaraan pendidikan tinggi Teknik Elektro (EL) sejak tahun 1974, dan Teknik Informatika (IF) sejak tahun 1982.</p> +<p>Seiring dengan perkembangan Kurikulum 2008 dan kebutuhan masyarakat serta industri STEI ITB membuka dan menambah tiga program studi baru. Hal ini dibuktikan dengan terbitnya SK Rektor Nomor : 268/SK/K01/OT/2008 tentang Pembukaan Program Studi Sarjana Teknik Tenaga Listrik, Teknik Telekomunikasi, Sistem dan Teknologi Informasi tanggal 26 nopember 2008. Pada tahun 2016, Program Studi Teknik Biomedika resmi beroperasi. Oleh karena itu saat ini STEI menyelenggarakan pendidikan sejumlah 6 (enam) Program Sarjana Teknik (S1), yaitu Sarjana Teknik Elektro, Sarjana Teknik Informatika, Sarjana Teknik Tenaga Listrik, Sarjana Teknik Telekomunikasi, Sarjana Sistem dan Teknologi Informasi, dan Sarjana Teknik Biomedika yang masing – masing berlangsung 8 semester dengan total kredit 144 SKS. Selain itu STEI ITB juga menyelenggarakan Program Magister Teknik (S2) dan Program Doktor (S3).</p> + +## Prerequisites +- MySQL 5.7 or later +- PHP 7.2 or later +- Apache webserver +- Composer +- npm + +## Instalasi +``` +- Setup .env +- composer install +- composer update +- npm install +- npm run dev +- php artisan storage:link +- php artisan key:generate +- php artisan config:cache +- php artisan migrate +``` + +## Authors + +- **[Aditya Pratama](http://gitlab.informatika.org/adityapratama)** +- **[Rachel Sidney Devianti](http://gitlab.informatika.org/crahels)** +- **[Robby Syaifullah](http://gitlab.informatika.org/robbysyaifullah)** +- **[Stevanno Hero Leadervand](http://gitlab.informatika.org/stevannohero)** +- **[Tasya](http://gitlab.informatika.org/agathastellatasya)** +- **[Winarto](http://gitlab.informatika.org/yowinarto)** diff --git a/resources/views/article.blade.php b/resources/views/article.blade.php index 3187a73d9fae378818a5b8a8ca0ec247ad943f68..df43af7d4b222b56c4c2ee69499b11addff964fb 100644 --- a/resources/views/article.blade.php +++ b/resources/views/article.blade.php @@ -71,7 +71,7 @@ <div class="col-8 post-card"> <h3><a href="/posts/{{$post->id}}">{{$post->title}}</a></h3> <div style="word-wrap: break-word;"> {!!substr($post->body, 0, 200)!!}... </div> - <small style="font-weight: bolder;">Written on {{$post->created_at}} by <span style="color: red">Admin</span></small> + <small style="font-weight: bolder;">Written on {{$post->created_at->format('d M Y')}} by <span style="color: red">Admin</span></small> </div> <div class="col-4 img-card"> <img style="width:100%" src="/storage/cover_images/{{$post->cover_image}}"> diff --git a/resources/views/dashboard-user.blade.php b/resources/views/dashboard-user.blade.php index 7dfa78d827ac661d0b5399cb09fea6681c8a71df..d8ac5fdfe5425abe0727be2145335faab6bdea98 100644 --- a/resources/views/dashboard-user.blade.php +++ b/resources/views/dashboard-user.blade.php @@ -50,7 +50,7 @@ <div class="row"> <div class="col-8 post-card"> <h3><a href="/posts/{{$post->id}}">{{$post->title}}</a></h3> - <i>Written on {{$post->created_at}} by {{$post->user->name}}</i> + <i>Written on {{$post->created_at->format('d M Y')}} by {{$post->user->name}}</i> </div> <div class="col-4 img-card"> <img style="width:100%" src="/storage/cover_images/{{$post->cover_image}}"> diff --git a/resources/views/home.blade.php b/resources/views/home.blade.php index 9d160e1d62dd9c43c718cd12849a6d6fbf45368f..50d0bb763cecd406f4b0a2bfadfbe2deaf52201d 100644 --- a/resources/views/home.blade.php +++ b/resources/views/home.blade.php @@ -91,7 +91,7 @@ <h1 class="animated1"> <span>{{$question->topic}}</span> </h1> - <p class="animated2">BBB</p> + {{-- <p class="animated2">{{$question->body}}</p> --}} <a href="/questions/{{$question->id}}" class="page-scroll btn btn-primary animated3">View question</a> </div> </div> diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php index aec10051282054b87b4db921990efbbb1721119d..67e78f0ee03fe666d0833b06e145839a48c99954 100644 --- a/resources/views/layouts/app.blade.php +++ b/resources/views/layouts/app.blade.php @@ -8,6 +8,7 @@ <link rel="stylesheet" href="{{asset('css/style.css')}}"> <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> + <link rel="icon" href="/storage/logo_itb.png" type="image/x-icon"/> <title>@yield('title')</title> <!-- CSRF Token --> diff --git a/resources/views/layouts/apphome.blade.php b/resources/views/layouts/apphome.blade.php index 20193a9764de30a2c0fc9dc18bd8a35e110a862a..9e22efe100201ba72039e74cb1686d49ccfb1e14 100644 --- a/resources/views/layouts/apphome.blade.php +++ b/resources/views/layouts/apphome.blade.php @@ -8,7 +8,7 @@ <meta name="author" content=""> <title>Web Alumni STEI</title> - + <link rel="icon" href="/storage/logo_itb.png" type="image/x-icon"/> <!-- Bootstrap Core CSS --> <link href="{{ asset('template/asset/css/bootstrap.css') }}" rel="stylesheet"> diff --git a/resources/views/showarticle.blade.php b/resources/views/showarticle.blade.php index f32ebbb77a1458806b6992fe0eabaa742732ad30..16988faafd5a1f1044931d9285a83f5a93ac087e 100644 --- a/resources/views/showarticle.blade.php +++ b/resources/views/showarticle.blade.php @@ -27,8 +27,8 @@ <!-- FOOTER --> <div class="footer-article"> <hr> - <small>Written on {{$post->created_at}}</small><br> - <small>Last Editted on {{$post->updated_at}}</small><br> + <small>Written on {{$post->created_at->format('d M Y')}}</small><br> + <small>Last Editted on {{$post->updated_at->format('d M Y')}}</small><br> <small>by Admin</small> <hr> diff --git a/resources/views/users/qna/showeachanswer.blade.php b/resources/views/users/qna/showeachanswer.blade.php index dec70dbc8043da5c26e53e62059c9434d703d0ac..0164ed918be40dfc8249f3ee9e237495ecb4e18f 100755 --- a/resources/views/users/qna/showeachanswer.blade.php +++ b/resources/views/users/qna/showeachanswer.blade.php @@ -39,11 +39,11 @@ </tr> <tr> <td>Written On</td> - <td>: {{$answer->created_at}}</td> + <td>: {{$answer->created_at->format('d M Y')}}</td> </tr> <tr> <td>Last Editted On</td> - <td>: {{$answer->updated_at}}</td> + <td>: {{$answer->updated_at->format('d M Y')}}</td> </tr> <tr> <td>Written By</td> diff --git a/resources/views/users/qna/showeachquestion.blade.php b/resources/views/users/qna/showeachquestion.blade.php index df3c7e80a126df98b047e45b243a3ffc4a243248..b9d5614833f0c8936ae11476f596084ccc20f3ed 100755 --- a/resources/views/users/qna/showeachquestion.blade.php +++ b/resources/views/users/qna/showeachquestion.blade.php @@ -10,8 +10,8 @@ <h1 style="word-wrap: break-word;">{{$question->topic}}</h1> <div class="body-article" style="font-size:1.5em; word-wrap: break-word;">{{$question->body}}</div> <div class="footer-article"><hr> - <small>Written on {{$question->created_at}}</small><br> - <small>Last Editted on {{$question->updated_at}}</small><br> + <small>Written on {{$question->created_at->format('d M Y')}}</small><br> + <small>Last Editted on {{$question->updated_at->format('d M Y')}}</small><br> <small> @if ($question->is_anon == 1) by Anonymous diff --git a/resources/views/users/qna/showquestion.blade.php b/resources/views/users/qna/showquestion.blade.php index a39f250394d8faa54e13f7893937e86a143b540f..20e49477b7773812ae7a0f134959113f965b811d 100755 --- a/resources/views/users/qna/showquestion.blade.php +++ b/resources/views/users/qna/showquestion.blade.php @@ -79,7 +79,7 @@ <p style="font-size: 1.3em; word-wrap: break-word;">{{$question->body}}</p> <small> <i> - Written on {{$question->created_at}} + Written on {{$question->created_at->format('d M Y')}} @if ($question->is_anon == 1) by Anonymous @else @@ -111,7 +111,7 @@ <span style="word-wrap: break-word;">{{$answer->body}}</span><br> <a href="/answers/{{$answer->id}}"> <small> - Written on {{$answer->created_at}} + Written on {{$answer->created_at->format('d M Y')}} </small> </a> @if ($answer->is_admin == 1)