9 Commits

Author SHA1 Message Date
Gregorio Chiko Putra
4a7e3b64c9 Merge branch 'hotfix/accesslog' 2019-05-24 16:50:26 +07:00
Gregorio Chiko Putra
2c16e32a57 Bumped version to v1.1.4 2019-05-24 16:50:15 +07:00
Gregorio Chiko Putra
8a993a62ab Fixed access log conflict 2019-05-24 16:49:45 +07:00
Gregorio Chiko Putra
05af7a9ae5 Merge branch 'hotfix/compile-js' 2019-05-20 08:45:53 +07:00
Gregorio Chiko Putra
69ccceb125 Bumped version to v1.1.3 2019-05-20 08:45:38 +07:00
Gregorio Chiko Putra
103861d5e0 Compile js production 2019-05-20 08:44:41 +07:00
Gregorio Chiko Putra
d0743b7443 Merge branch 'hotfix/https-and-input-description' 2019-05-20 08:32:32 +07:00
Gregorio Chiko Putra
3f53b17ba2 Bumped version to v1.1.2 2019-05-20 08:32:29 +07:00
Gregorio Chiko Putra
4fbc685015 Added proxy to fix https issue, changed the description for form inputs 2019-05-20 08:31:32 +07:00
8 changed files with 24 additions and 47513 deletions

View File

@@ -47,8 +47,22 @@ class SiswaController extends Controller
$siswa = Siswa::where('nisn', $request->nisn)
->where('tanggal_lahir', $tanggalLahir);
if ($request->with !== null)
if ($request->with !== null) {
if (is_array($request->with)) {
$relationships = [];
foreach ($request->with as $relation) {
if ($relation === 'accessLog')
$relationships[$relation] = function ($query) use ($request) {
$query->where('src', '=', $request->src);
};
else
$relationships[$relation] = function ($query) { $query; };
}
$request->with = $relationships;
}
$siswa = $siswa->with($request->with);
}
$siswa = $siswa->first();

View File

@@ -12,7 +12,9 @@ class TrustProxies extends Middleware
*
* @var array
*/
protected $proxies;
protected $proxies = [
'192.168.1.40',
];
/**
* The headers that should be used to detect proxies.

2
package-lock.json generated
View File

@@ -1,6 +1,6 @@
{
"name": "smk-kelulusan",
"version": "1.1.1",
"version": "1.1.4",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@@ -1,6 +1,6 @@
{
"name": "smk-kelulusan",
"version": "1.1.1",
"version": "1.1.4",
"description": "",
"main": "webpack.mix.js",
"directories": {

42226
public/css/main.css vendored

File diff suppressed because one or more lines are too long

5283
public/js/app.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -58,7 +58,7 @@ var component = {
' siswa yang telah mencetak surat keterangan hasil belajar.'
]),
m('h1.title', 'Surat Keterangan Hasil Belajar Siswa SMK Bhakti Anindya'),
m('span', 'Silahkan masukkan Nama Lengkap dan NISN kamu di bawah ini.'),
m('span', 'Silahkan masukkan NISN dan Tanggal Lahir kamu di bawah ini.'),
]),
m('form.form', {
onsubmit: e => {

View File

@@ -22,7 +22,7 @@ var component = {
' siswa yang telah melihat pengumuman kelulusan.'
]),
m('h1.title', 'Surat Kelulusan Siswa SMK Bhakti Anindya'),
m('span', 'Silahkan masukkan Nama Lengkap dan NISN kamu di bawah ini.'),
m('span', 'Silahkan masukkan NISN dan Tanggal Lahir kamu di bawah ini.'),
]),
m('form.form', {
onsubmit: e => {