-
-
Notifications
You must be signed in to change notification settings - Fork 520
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* release/6.0.5: compile assets Apply fixes from StyleCI (#856) adding tests fixes #855 Apply fixes from StyleCI (#854) refactor to service class Apply fixes from StyleCI (#853) cleanup and refactoring Apply fixes from StyleCI (#852) command cleanup specify devDependencies route updates for Laravel 8
- Loading branch information
Showing
39 changed files
with
742 additions
and
748 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"/js/app.js": "/js/app.js?id=029003d84e5ed3d24c69", | ||
"/js/app.js": "/js/app.js?id=78fb3c1c3f8e654c6623", | ||
"/css/app.css": "/css/app.css?id=275ebb89871e5f9dca7a", | ||
"/js/app.js.map": "/js/app.js.map?id=31898060bcd3393f9abd", | ||
"/js/app.js.map": "/js/app.js.map?id=a5de649d315b6e05ba9f", | ||
"/css/app.css.map": "/css/app.css.map?id=db11b78da46b5c2c6055" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
mix.js('resources/js/canvas-ui/app.js', 'public/js/canvas-ui.js').sass( | ||
'resources/sass/canvas-ui.scss', | ||
'public/css/canvas-ui.css' | ||
); |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
<?php | ||
|
||
use Canvas\Http\Controllers\Auth\ForgotPasswordController; | ||
use Canvas\Http\Controllers\Auth\LoginController; | ||
use Canvas\Http\Controllers\Auth\ResetPasswordController; | ||
use Canvas\Http\Controllers\HomeController; | ||
use Canvas\Http\Controllers\PostController; | ||
use Canvas\Http\Controllers\SearchController; | ||
use Canvas\Http\Controllers\StatsController; | ||
use Canvas\Http\Controllers\TagController; | ||
use Canvas\Http\Controllers\TopicController; | ||
use Canvas\Http\Controllers\UploadsController; | ||
use Canvas\Http\Controllers\UserController; | ||
use Canvas\Http\Middleware\Admin; | ||
use Canvas\Http\Middleware\Authorize; | ||
use Illuminate\Support\Facades\Route; | ||
|
||
// Authentication routes... | ||
Route::namespace('Auth')->group(function () { | ||
Route::prefix('login')->group(function () { | ||
Route::get('/', 'LoginController@showLoginForm')->name('canvas.login'); | ||
Route::post('/', 'LoginController@login'); | ||
}); | ||
|
||
Route::prefix('password')->group(function () { | ||
Route::get('reset', [ForgotPasswordController::class, 'showLinkRequestForm'])->name('canvas.password.request'); | ||
Route::post('email', [ForgotPasswordController::class, 'sendResetLinkEmail'])->name('canvas.password.email'); | ||
Route::get('reset/{token}', [ResetPasswordController::class, 'showResetForm'])->name('canvas.password.reset'); | ||
Route::post('reset', [ResetPasswordController::class, 'reset'])->name('canvas.password.update'); | ||
}); | ||
|
||
Route::get('logout', [LoginController::class, 'logout'])->name('canvas.logout'); | ||
}); | ||
|
||
// API routes... | ||
Route::middleware([Authorize::class])->group(function () { | ||
Route::prefix('api')->group(function () { | ||
Route::prefix('uploads')->group(function () { | ||
Route::post('/', [UploadsController::class, 'store']); | ||
Route::delete('/', [UploadsController::class, 'destroy']); | ||
}); | ||
|
||
Route::prefix('posts')->group(function () { | ||
Route::get('/', [PostController::class, 'index']); | ||
Route::get('create', [PostController::class, 'create']); | ||
Route::get('{id}', [PostController::class, 'show']); | ||
Route::post('{id}', [PostController::class, 'store']); | ||
Route::delete('{id}', [PostController::class, 'destroy']); | ||
}); | ||
|
||
Route::prefix('stats')->group(function () { | ||
Route::get('/', [StatsController::class, 'index']); | ||
Route::get('{id}', [StatsController::class, 'show']); | ||
}); | ||
|
||
Route::prefix('tags')->middleware([Admin::class])->group(function () { | ||
Route::get('/', [TagController::class, 'index']); | ||
Route::get('create', [TagController::class, 'create']); | ||
Route::get('{id}', [TagController::class, 'show']); | ||
Route::get('{id}/posts', [TagController::class, 'showPosts']); | ||
Route::post('{id}', [TagController::class, 'store']); | ||
Route::delete('{id}', [TagController::class, 'destroy']); | ||
}); | ||
|
||
Route::prefix('topics')->middleware([Admin::class])->group(function () { | ||
Route::get('/', [TopicController::class, 'index']); | ||
Route::get('create', [TopicController::class, 'create']); | ||
Route::get('{id}', [TopicController::class, 'show']); | ||
Route::get('{id}/posts', [TopicController::class, 'showPosts']); | ||
Route::post('{id}', [TopicController::class, 'store']); | ||
Route::delete('{id}', [TopicController::class, 'destroy']); | ||
}); | ||
|
||
Route::prefix('users')->group(function () { | ||
Route::get('/', [UserController::class, 'index'])->middleware([Admin::class]); | ||
Route::get('create', [UserController::class, 'create'])->middleware([Admin::class]); | ||
Route::get('{id}', [UserController::class, 'show']); | ||
Route::get('{id}/posts', [UserController::class, 'showPosts']); | ||
Route::post('{id}', [UserController::class, 'store']); | ||
Route::delete('{id}', [UserController::class, 'destroy'])->middleware([Admin::class]); | ||
}); | ||
|
||
Route::prefix('search')->group(function () { | ||
Route::get('posts', [SearchController::class, 'showPosts']); | ||
Route::get('tags', [SearchController::class, 'showTags'])->middleware([Admin::class]); | ||
Route::get('topics', [SearchController::class, 'showTopics'])->middleware([Admin::class]); | ||
Route::get('users', [SearchController::class, 'showUsers'])->middleware([Admin::class]); | ||
}); | ||
}); | ||
|
||
// Catch-all route... | ||
Route::get('/{view?}', [HomeController::class, 'index'])->where('view', '(.*)')->name('canvas'); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.