Skip to content

Commit fb43a44

Browse files
authored
Custom CP CSS and add logging config (#20)
1 parent bfe0433 commit fb43a44

File tree

4 files changed

+42
-4
lines changed

4 files changed

+42
-4
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"name": "transformstudios/front",
33
"require": {
44
"php": "^8.3",
5-
"illuminate/contracts": "^11.0 || ^12.0",
65
"pixelfear/composer-dist-plugin": "^0.1.4",
7-
"statamic/cms": "^5.0 || ^6.0"
6+
"statamic/cms": "^5.0 || ^6.0",
7+
"stillat/proteus": "^4.0"
88
},
99
"require-dev": {
1010
"mockery/mockery": "^1.3.1",

resources/css/cp.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
11
#front-chat-container {
22
z-index: 100 !important
33
}
4+
5+
/* !Front Chat */
6+
#front-chat-container .fc-1_tjF {
7+
display: none!important;
8+
}
9+
10+
#front-chat-iframe {
11+
z-index: 1!important;
12+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?php
2+
3+
namespace TransformStudios\Front\UpdateScripts;
4+
5+
use Illuminate\Support\Facades\App;
6+
use Illuminate\Support\Facades\Config;
7+
use Statamic\UpdateScripts\UpdateScript;
8+
use Stillat\Proteus\Support\Facades\ConfigWriter;
9+
10+
class AddToLoggingConfig extends UpdateScript
11+
{
12+
public function shouldUpdate($newVersion, $oldVersion)
13+
{
14+
return App::isLocal();
15+
}
16+
17+
public function update()
18+
{
19+
if (Config::has('logging.channels.front')) {
20+
return;
21+
}
22+
23+
ConfigWriter::edit('logging')
24+
->set('channels.front', [
25+
'driver' => 'custom',
26+
'via' => \TransformStudios\Front\Logging\Logger::class,
27+
'level' => ConfigWriter::f()->env('FRONT_LOGGING_LEVEL', 'error'),
28+
])->save();
29+
dd('saved');
30+
}
31+
}

vite.config.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { defineConfig } from 'vite';
22
import laravel from 'laravel-vite-plugin';
3-
import vue from '@vitejs/plugin-vue2';
43

54
export default defineConfig({
65
plugins: [
@@ -13,6 +12,5 @@ export default defineConfig({
1312
publicDirectory: 'dist',
1413
hotFile: 'dist/hot',
1514
}),
16-
vue(),
1715
],
1816
});

0 commit comments

Comments
 (0)