diff --git a/front/views/components/avatar.blade.php b/front/views/components/avatar.blade.php
deleted file mode 100644
index a887a45..0000000
--- a/front/views/components/avatar.blade.php
+++ /dev/null
@@ -1,43 +0,0 @@
-@php
- $side = $side ?? 48;
-
- $colors = [
- "#00AA55",
- "#009FD4",
- "#B381B3",
- "#939393",
- "#E3BC00",
- "#D47500",
- "#DC2A2A",
- "#3ede91",
- "#377dd4",
- "#0256b0",
- "#053d82",
- "#3d026e",
- "#b378e3",
- "#c4065c",
- "#543208",
- "#d97811",
- "#0c6b40",
- ];
- $initials = function($name){
- $segs = explode(" ",$name);
- if(count($segs) > 1){
- return strtoupper($segs[0][0]).strtoupper($segs[1][0]);
- }
- return strtoupper($segs[0][0]).strtoupper($segs[0][1]);
- };
-
- $name = $user["name"];
- $charIndex = ord($name[1]) + strlen($name);
- $colorIndex = $charIndex % 19;
- $bgColor = $colors[$colorIndex];
-@endphp
-
-
-
{{$initials($user["name"])}}
-
\ No newline at end of file
diff --git a/front/views/components/button-indicator.blade.php b/front/views/components/button-indicator.blade.php
deleted file mode 100644
index f647611..0000000
--- a/front/views/components/button-indicator.blade.php
+++ /dev/null
@@ -1,4 +0,0 @@
-
\ No newline at end of file
diff --git a/front/views/components/notice.blade.php b/front/views/components/notice.blade.php
deleted file mode 100644
index e1382df..0000000
--- a/front/views/components/notice.blade.php
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
{{$title}}
-
{{ $slot }}
-
\ No newline at end of file
diff --git a/front/views/home.blade.php b/front/views/home.blade.php
deleted file mode 100644
index 40fc268..0000000
--- a/front/views/home.blade.php
+++ /dev/null
@@ -1,23 +0,0 @@
-@extends("lucent::layouts.channel")
-
-@section("content")
-
-
-
- @if($records->isNotEmpty())
-
-
-
-
- @foreach($records as $record)
-
- @include("lucent::records.card-row")
-
- @endforeach
-
-
-
-
- @endif
-
-@endsection
\ No newline at end of file
diff --git a/front/views/includes/assets.blade.php b/front/views/includes/assets.blade.php
new file mode 100644
index 0000000..42438d6
--- /dev/null
+++ b/front/views/includes/assets.blade.php
@@ -0,0 +1,11 @@
+@if(config("lucent.env") == "production")
+
+
+
+@else
+
+ @php
+ echo '';
+ @endphp
+
+@endif
\ No newline at end of file
diff --git a/front/views/includes/header.blade.php b/front/views/includes/header.blade.php
deleted file mode 100644
index 089113a..0000000
--- a/front/views/includes/header.blade.php
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
\ No newline at end of file
diff --git a/front/views/layouts/account.blade.php b/front/views/layouts/account.blade.php
index 93e7cd9..1d6cf23 100644
--- a/front/views/layouts/account.blade.php
+++ b/front/views/layouts/account.blade.php
@@ -1,34 +1,15 @@
-
-
@yield('title') - Lucent Data Platform
-
- @if(config("lucent.env") === "production")
-
-
-
- @else
-
- @php
- echo '';
- @endphp
-
- @endif
-
-
- {{--
--}}
-
+
@yield('title') - {{ config("lucent.name") }}
+ @include("lucent::includes.assets")
+
-
- @yield('content')
-
-
+ @yield('content')
-
diff --git a/front/views/layouts/channel.blade.php b/front/views/layouts/channel.blade.php
index 843d0ce..03659a6 100644
--- a/front/views/layouts/channel.blade.php
+++ b/front/views/layouts/channel.blade.php
@@ -1,33 +1,15 @@
-
-
+
-
@yield('title') - Lucent Data Platform
- @if(config("lucent.env") == "production")
-
-
-
- @else
-
- @php
- echo '';
- @endphp
-
- @endif
-
+
@yield('title') - {{ config("lucent.name") }}
+ @include("lucent::includes.assets")
-
-
-
@yield('content')
-
-
-
diff --git a/front/views/records/card-row.blade.php b/front/views/records/card-row.blade.php
deleted file mode 100644
index 325a3d4..0000000
--- a/front/views/records/card-row.blade.php
+++ /dev/null
@@ -1,33 +0,0 @@
-@php
- $schema = $schemas->where("name",$record->schema)->first();
-@endphp
-
- @if($schema->type === "files")
-
- @else
-
- {{$viewModel->getRecordName($record, $schemas)}}
-
-
- {{$record->status->value === "draft" ? "Draft" : ""}}
- @endif
-
- |
-
{{$schema->label}}
- |
-
-
-
-{{-- --}}
-{{-- --}}
-{{-- --}}
-{{-- {frieldlyUpdatedAt}--}}
-{{-- --}}
-{{-- --}}
- |
diff --git a/front/views/sidebar/sidebar-item.blade.php b/front/views/sidebar/sidebar-item.blade.php
deleted file mode 100644
index 8283aaa..0000000
--- a/front/views/sidebar/sidebar-item.blade.php
+++ /dev/null
@@ -1,7 +0,0 @@
-@php
-$currentSchema = $currentSchema ?? null;
-$activeClass = $schema->name === $currentSchema?->name ? "active" : "";
-@endphp
-
-
\ No newline at end of file
diff --git a/front/views/sidebar/sidebar.blade.php b/front/views/sidebar/sidebar.blade.php
deleted file mode 100644
index cfcac2b..0000000
--- a/front/views/sidebar/sidebar.blade.php
+++ /dev/null
@@ -1,22 +0,0 @@
-
{{$channel->name}}
-
\ No newline at end of file
diff --git a/front/vite.config.js b/front/vite.config.js
index fcb56a2..6a5934e 100644
--- a/front/vite.config.js
+++ b/front/vite.config.js
@@ -1,13 +1,11 @@
import { defineConfig } from 'vite'
import { svelte } from '@sveltejs/vite-plugin-svelte'
import path from 'path'
-// https://vitejs.dev/config/
export default defineConfig({
plugins: [svelte()],
root: 'js',
build: {
// generate manifest.json in outDir
-
outDir: '../dist',
emptyOutDir: true,
manifest: "manifest.json",
@@ -15,7 +13,5 @@ export default defineConfig({
// overwrite default .html entry
input: path.resolve(__dirname, 'js/main.js')
},
-
-
},
})
diff --git a/src/Http/Controller/AuthController.php b/src/Http/Controller/AuthController.php
index 0de07ab..83c71da 100644
--- a/src/Http/Controller/AuthController.php
+++ b/src/Http/Controller/AuthController.php
@@ -13,7 +13,6 @@ use Lucent\Account\AuthService;
use Lucent\Channel\ChannelService;
use Lucent\LucentException;
use Lucent\Svelte\Svelte;
-use Lucent\Util\Form\FormException;
use Lucent\Util\Form\ResponseFormError;
use function Lucent\Response\fail;
use function Lucent\Response\ok;
@@ -38,12 +37,10 @@ class AuthController
return redirect($this->channelService->channel->lucentUrl . "/login");
}
-
return $this->svelte->render(
layout: "account",
view: "register",
title: "Create an account",
-
);
}