Наваял немного по гайдам, над доделать. Коммит, чтобы проект не застрял на рабочем пк
This commit is contained in:
parent
0800dfa00e
commit
4b609ca71b
|
@ -0,0 +1,22 @@
|
||||||
|
<template>
|
||||||
|
<v-app>
|
||||||
|
<v-sheet class="bg h-100 w-100 d-flex justify-center">
|
||||||
|
</v-sheet>
|
||||||
|
</v-app>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "Register"
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
|
||||||
|
.bg {
|
||||||
|
background: rgb(238, 174, 202)!important;
|
||||||
|
background: radial-gradient(circle, rgba(238, 174, 202, 1) 0%, rgba(148, 187, 233, 1) 100%)!important;;
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
|
@ -4,7 +4,7 @@
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<title>Аутентификация</title>
|
<title>Аутентификация</title>
|
||||||
@vite('resources/views/auth/auth.js')
|
@vite('resources/views/auth/login.js')
|
||||||
@vite('resources/css/app.css')
|
@vite('resources/css/app.css')
|
||||||
</head>
|
</head>
|
||||||
<body class="antialiased">
|
<body class="antialiased">
|
|
@ -0,0 +1,13 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<title>Аутентификация</title>
|
||||||
|
@vite('resources/views/auth/registration.js')
|
||||||
|
@vite('resources/css/app.css')
|
||||||
|
</head>
|
||||||
|
<body class="antialiased">
|
||||||
|
<div id="app"></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,15 @@
|
||||||
|
import '../../js/bootstrap.js';
|
||||||
|
import {createApp} from 'vue'
|
||||||
|
import App from './Registration.vue'
|
||||||
|
import { createVuetify } from 'vuetify'
|
||||||
|
import 'vuetify/styles'
|
||||||
|
import * as components from 'vuetify/components'
|
||||||
|
import * as directives from 'vuetify/directives'
|
||||||
|
import '@mdi/font/css/materialdesignicons.css'
|
||||||
|
|
||||||
|
const vuetify = createVuetify({
|
||||||
|
components,
|
||||||
|
directives
|
||||||
|
})
|
||||||
|
|
||||||
|
createApp(App).use(vuetify).mount("#app")
|
|
@ -1,5 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Support\Facades\Auth;
|
||||||
use Illuminate\Support\Facades\Route;
|
use Illuminate\Support\Facades\Route;
|
||||||
use App\Http\Controllers\DownloadController;
|
use App\Http\Controllers\DownloadController;
|
||||||
|
|
||||||
|
@ -26,8 +27,23 @@ Route::get('/resume', function () {
|
||||||
return view('resume/resume');
|
return view('resume/resume');
|
||||||
});
|
});
|
||||||
|
|
||||||
Route::get('/login', function () {
|
Route::name('user.')->group(function (){
|
||||||
return view('auth/auth');
|
Route::view('/admin', 'admin')->middleware('auth')->name('admin');
|
||||||
|
Route::get('/login', function (){
|
||||||
|
if (Auth::check()){
|
||||||
|
return redirect(route('user.admin'));
|
||||||
|
}
|
||||||
|
return view('auth/login');
|
||||||
|
})->name('login');
|
||||||
|
// Route::post('/login', []);
|
||||||
|
// Route::get('/logout', [])->name('logout');
|
||||||
|
Route::get('/registration', function (){
|
||||||
|
if (Auth::check()){
|
||||||
|
return redirect(route('user.admin'));
|
||||||
|
}
|
||||||
|
return view('auth/registration');
|
||||||
|
});
|
||||||
|
// Route::post('/registration', []);
|
||||||
});
|
});
|
||||||
|
|
||||||
Route::get('/download/{file}', 'App\Http\Controllers\DownloadController@download');
|
Route::get('/download/{file}', 'App\Http\Controllers\DownloadController@download');
|
||||||
|
|
|
@ -6,7 +6,14 @@ export default defineConfig({
|
||||||
plugins: [
|
plugins: [
|
||||||
vue(),
|
vue(),
|
||||||
laravel({
|
laravel({
|
||||||
input: ['resources/css/app.css', 'resources/app.js', 'resources/welcome.js', 'resources/caesar.js', "resources/views/auth/auth.js"],
|
input: [
|
||||||
|
'resources/css/app.css',
|
||||||
|
'resources/app.js',
|
||||||
|
'resources/welcome.js',
|
||||||
|
'resources/caesar.js',
|
||||||
|
"resources/views/auth/login.js",
|
||||||
|
"resources/views/auth/registration.js"
|
||||||
|
],
|
||||||
refresh: true,
|
refresh: true,
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue