Whitespace and newline nazi.
このコミットが含まれているのは:
コミット
2a8222b383
|
@ -8,18 +8,29 @@ use Illuminate\Support\Facades\Log;
|
|||
|
||||
class CategoryController extends Controller {
|
||||
public function getCategories() { // /api/rpc/category/getcategories
|
||||
return DB::table('str_category')->select('*')->get();
|
||||
return DB::table('str_category')
|
||||
->select('*')
|
||||
->get();
|
||||
}
|
||||
|
||||
public function getCategory($id) { // /api/rpc/category/getcategory/1
|
||||
return DB::table('str_category')->select('*')->where('id', $id)->get();
|
||||
return DB::table('str_category')
|
||||
->select('*')
|
||||
->where('id', $id)
|
||||
->get();
|
||||
}
|
||||
|
||||
public function getCategoryParent($id) { // /api/rpc/category/getcategoryparent/1
|
||||
return DB::table('str_category')->select('parent_id')->where('id', $id)->get();
|
||||
return DB::table('str_category')
|
||||
->select('parent_id')
|
||||
->where('id', $id)
|
||||
->get();
|
||||
}
|
||||
|
||||
public function getCategoryMinScreenshots($id) { // /api/rpc/category/getcategoryminscrot/1
|
||||
return DB::table('str_category')->select('min_screenshots')->where('id', $id)->get();
|
||||
return DB::table('str_category')
|
||||
->select('min_screenshots')
|
||||
->where('id', $id)
|
||||
->get();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,19 +8,30 @@ use Illuminate\Support\Facades\Log;
|
|||
|
||||
class FileController extends Controller {
|
||||
public function getAllFiles() { // /api/rpc/file/getallfiles
|
||||
return DB::table('str_file')->select('*')->get();
|
||||
return DB::table('str_file')
|
||||
->select('*')
|
||||
->get();
|
||||
}
|
||||
|
||||
public function getAllApprovedFiles() { // /api/rpc/file/getallapprovedfiles
|
||||
return DB::table('str_file')->select('*')->where('isApproved', 1)->get();
|
||||
return DB::table('str_file')
|
||||
->select('*')
|
||||
->where('isApproved', 1)
|
||||
->get();
|
||||
}
|
||||
|
||||
public function getAllBrokenFiles() { // /api/rpc/file/getallbrokenfiles
|
||||
return DB::table('str_file')->select('*')->where('isBroken', 1)->get();
|
||||
return DB::table('str_file')
|
||||
->select('*')
|
||||
->where('isBroken', 1)
|
||||
->get();
|
||||
}
|
||||
|
||||
public function getAllPendingFiles() { // /api/rpc/file/getallpendingfiles
|
||||
return DB::table('str_file')->select('*')->where('isApproved', 0)->get();
|
||||
return DB::table('str_file')
|
||||
->select('*')
|
||||
->where('isApproved', 0)
|
||||
->get();
|
||||
}
|
||||
|
||||
public function getNewFiles() { // /api/rpc/file/getnewfiles
|
||||
|
@ -42,10 +53,16 @@ class FileController extends Controller {
|
|||
}
|
||||
|
||||
public function getFile($id) { // /api/rpc/file/getfile/id
|
||||
return DB::table('str_file')->select('*')->where('id', $id)->get();
|
||||
return DB::table('str_file')
|
||||
->select('*')
|
||||
->where('id', $id)
|
||||
->get();
|
||||
}
|
||||
|
||||
public function getFilesInCategory($cat_id) { // /api/rpc/file/getfilesincategory/cat_id
|
||||
return DB::table('str_file')->select('*')->where('cat_id', $cat_id)->get();
|
||||
return DB::table('str_file')
|
||||
->select('*')
|
||||
->where('cat_id', $cat_id)
|
||||
->get();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,14 +16,23 @@ class OwnerController extends Controller {
|
|||
}
|
||||
|
||||
public function getOwner($id) { // /api/rpc/owner/getowner/id
|
||||
return DB::table('str_owners')->select('*')->where('id', $id)->get();
|
||||
return DB::table('str_owners')
|
||||
->select('*')
|
||||
->where('id', $id)
|
||||
->get();
|
||||
}
|
||||
|
||||
public function getOwnerFile($file_id) { // /api/rpc/owner/getownerfile/id
|
||||
return DB::table('str_owners')->select('*')->where('file_id', $file_id)->get();
|
||||
return DB::table('str_owners')
|
||||
->select('*')
|
||||
->where('file_id', $file_id)
|
||||
->get();
|
||||
}
|
||||
|
||||
public function getOwnerUser($user_id) { // /api/rpc/owner/getowneruser/id
|
||||
return DB::table('str_owners')->select('*')->where('user_id', $user_id)->get();
|
||||
return DB::table('str_owners')
|
||||
->select('*')
|
||||
->where('user_id', $user_id)
|
||||
->get();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,34 +8,55 @@ use Illuminate\Support\Facades\Log;
|
|||
|
||||
class PermissionController extends Controller {
|
||||
public function getPermissionsFromModule() { // /api/rpc/permission/getpermissionsfrommodule
|
||||
return DB::table('usr_perm_module')->select('*')->get();
|
||||
return DB::table('usr_perm_module')
|
||||
->select('*')
|
||||
->get();
|
||||
}
|
||||
|
||||
public function getPermissionFromModule($id) { // /api/rpc/permission/getpermissionsfrommodule/id
|
||||
return DB::table('usr_perm_module')->select('*')->where('id', $id)->get();
|
||||
return DB::table('usr_perm_module')
|
||||
->select('*')
|
||||
->where('id', $id)
|
||||
->get();
|
||||
}
|
||||
|
||||
public function getStorePermissions() { // /api/rpc/permission/getstorepermissions
|
||||
return DB::table('str_permissions')->select('*')->get();
|
||||
return DB::table('str_permissions')
|
||||
->select('*')
|
||||
->get();
|
||||
}
|
||||
|
||||
public function getStorePermissionGroup($id) { // /api/rpc/permission/getstorepermissiongroup/id
|
||||
return DB::table('str_permissions')->select('*')->where('id', $id)->get();
|
||||
return DB::table('str_permissions')
|
||||
->select('*')
|
||||
->where('id', $id)
|
||||
->get();
|
||||
}
|
||||
|
||||
public function getStorePermissionUser($id) { // /api/rpc/permission/getstorepermissionuser/id
|
||||
return DB::table('str_user_permissions')->select('*')->where('id', $id)->get();
|
||||
return DB::table('str_user_permissions')
|
||||
->select('*')
|
||||
->where('id', $id)
|
||||
->get();
|
||||
}
|
||||
|
||||
public function getUserPermissions() { // /api/rpc/permission/getuserpermissions
|
||||
return DB::table('usr_permissions')->select('*')->get();
|
||||
return DB::table('usr_permissions')
|
||||
->select('*')
|
||||
->get();
|
||||
}
|
||||
|
||||
public function getUserPermissionGroup($id) { // /api/rpc/permission/getuserpermissiongroup/id
|
||||
return DB::table('usr_permissions')->select('*')->where('id', $id)->get();
|
||||
return DB::table('usr_permissions')
|
||||
->select('*')
|
||||
->where('id', $id)
|
||||
->get();
|
||||
}
|
||||
|
||||
public function getUserPermissionUser($id) { // /api/rpc/permission/getuserpermissionuser/id
|
||||
return DB::table('usr_user_permissions')->select('*')->where('id', $id)->get();
|
||||
return DB::table('usr_user_permissions')
|
||||
->select('*')
|
||||
->where('id', $id)
|
||||
->get();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,7 +10,9 @@ use Illuminate\Support\Facades\Log;
|
|||
|
||||
class UserController extends Controller {
|
||||
public function getUsers() { // /api/rpc/user/getusers
|
||||
return DB::table('for_users')->select('*')->get();
|
||||
return DB::table('for_users')
|
||||
->select('*')
|
||||
->get();
|
||||
}
|
||||
|
||||
public function getUser($id) { // /api/rpc/user/getuser/id
|
||||
|
|
|
@ -8,12 +8,11 @@
|
|||
<div class="panel-heading">@lang('homepage.newitems')</div>
|
||||
|
||||
<div class="panel-body">
|
||||
@if (session('status'))
|
||||
<!-- @if (session('status'))
|
||||
<div class="alert alert-success">
|
||||
{{ session('status') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@endif -->
|
||||
<new-items />
|
||||
</div>
|
||||
</div>
|
||||
|
|
新しいイシューから参照