Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 48 additions & 28 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,55 +4,75 @@ APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost

STATAMIC_LICENSE_KEY=
STATAMIC_STACHE_WATCHER=true
STATAMIC_STATIC_CACHING_STRATEGY=null
STATAMIC_REVISIONS_ENABLED=false
STATAMIC_GRAPHQL_ENABLED=false
STATAMIC_API_ENABLED=false
STATAMIC_GIT_ENABLED=false
APP_LOCALE=en
APP_FALLBACK_LOCALE=en
APP_FAKER_LOCALE=en_US

PODCASTER_PUBSUBHUBBUB_ENABLED=false
APP_MAINTENANCE_DRIVER=file
# APP_MAINTENANCE_STORE=file

# PHP_CLI_SERVER_WORKERS=4

BCRYPT_ROUNDS=12

LOG_CHANNEL=stack
LOG_STACK=single
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=
DB_CONNECTION=sqlite
# DB_HOST=127.0.0.1
# DB_PORT=3306
# DB_DATABASE=laravel
# DB_USERNAME=root
# DB_PASSWORD=

BROADCAST_DRIVER=log
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120
SESSION_ENCRYPT=false
SESSION_PATH=/
SESSION_DOMAIN=null

BROADCAST_CONNECTION=log
FILESYSTEM_DISK=local
QUEUE_CONNECTION=sync

CACHE_STORE=file
#CACHE_PREFIX=

MEMCACHED_HOST=127.0.0.1

REDIS_CLIENT=phpredis
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_MAILER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_MAILER=log
MAIL_SCHEME=null
MAIL_HOST=127.0.0.1
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS=null
MAIL_FROM_ADDRESS="[email protected]"
MAIL_FROM_NAME="${APP_NAME}"

PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1

AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
AWS_USE_PATH_STYLE_ENDPOINT=false

MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
VITE_APP_NAME="${APP_NAME}"

STATAMIC_LICENSE_KEY=
STATAMIC_PRO_ENABLED=false
STATAMIC_STACHE_WATCHER=auto
STATAMIC_STATIC_CACHING_STRATEGY=null
STATAMIC_REVISIONS_ENABLED=false
STATAMIC_GRAPHQL_ENABLED=false
STATAMIC_API_ENABLED=false
STATAMIC_GIT_ENABLED=false

DEBUGBAR_ENABLED=false

PODCASTER_PUBSUBHUBBUB_ENABLED=false
9 changes: 3 additions & 6 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace App\Providers;

use Livewire\Livewire;
use Illuminate\Support\ServiceProvider;
use Statamic\Statamic;

class AppServiceProvider extends ServiceProvider
{
Expand All @@ -12,17 +12,14 @@ class AppServiceProvider extends ServiceProvider
*/
public function register(): void
{
\Livewire\Livewire::forceAssetInjection();
Livewire::forceAssetInjection();
}

/**
* Bootstrap any application services.
*/
public function boot(): void
{
// Statamic::vite('app', [
// 'resources/js/cp.js',
// 'resources/css/cp.css',
// ]);
//
}
}
37 changes: 0 additions & 37 deletions app/Providers/EventServiceProvider.php

This file was deleted.

3 changes: 2 additions & 1 deletion app/Widgets/GettingStartedWithPodcaster.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace App\Widgets;

use Statamic\Facades\Entry;
use Statamic\Widgets\Widget;

class GettingStartedWithPodcaster extends Widget
Expand All @@ -13,7 +14,7 @@ class GettingStartedWithPodcaster extends Widget
*/
public function html()
{
$episodes = \Statamic\Facades\Entry::query()->where('collection', 'episodes')->count();
$episodes = Entry::query()->where('collection', 'episodes')->count();

return view('widgets.getting-started', compact('episodes'));
}
Expand Down
3 changes: 2 additions & 1 deletion config/podcaster.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@

'pubsubhubbub' => [
'enabled' => env('PODCASTER_PUBSUBHUBBUB_ENABLED', false),
]
],

];
93 changes: 71 additions & 22 deletions config/statamic/cp.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

use Statamic\CP\Color;

return [

/*
Expand All @@ -15,6 +17,21 @@

'route' => env('CP_ROUTE', 'cp'),

/*
|--------------------------------------------------------------------------
| Authentication
|--------------------------------------------------------------------------
|
| Whether the Control Panel's authentication pages should be enabled,
| and where users should be redirected in order to authenticate.
|
*/

'auth' => [
'enabled' => true,
'redirect_to' => null,
],

/*
|--------------------------------------------------------------------------
| Start Page
Expand All @@ -41,34 +58,20 @@
'getting_started_with_podcaster',
],

/*
|--------------------------------------------------------------------------
| Date Format
|--------------------------------------------------------------------------
|
| When a date is encountered throughout the Control Panel, it will be
| rendered in the following format unless overridden in specific
| fields, and so on. Any PHP date variables are permitted.
|
| This takes precedence over the date_format in system.php.
|
| https://www.php.net/manual/en/function.date.php
|
*/

'date_format' => 'Y-m-d',

/*
|--------------------------------------------------------------------------
| Pagination
|--------------------------------------------------------------------------
|
| The numbers of items to show on each paginated page.
| Here you may define the default pagination size as well as the options
| the user can select on any paginated listing in the Control Panel.
|
*/

'pagination_size' => 50,

'pagination_size_options' => [10, 25, 50, 100, 500],

/*
|--------------------------------------------------------------------------
| Links to Documentation
Expand Down Expand Up @@ -97,12 +100,41 @@
| Theme
|--------------------------------------------------------------------------
|
| Optionally spice up the login and other outside-the-control-panel
| screens. You may choose between "rad" or "business" themes.
| Adjust the colors used in the Control Panel. Use the Color class
| to easily access the Tailwind CSS color palette.
|
*/

'theme' => env('STATAMIC_THEME', 'rad'),
'theme' => [
// 'grays' => Color::Zinc,

// 'primary' => Color::Zinc[800],
// 'success' => Color::Green[400],
// 'danger' => Color::Red[600],

// 'ui-accent-bg' => Color::Zinc[800],
// 'ui-accent-text' => Color::Zinc[800],
// 'dark-ui-accent-bg' => Color::Zinc[950],
// 'dark-ui-accent-text' => Color::Zinc[400],

// 'body-bg' => Color::Zinc[100],
// 'body-border' => Color::Transparent,
// 'dark-body-bg' => Color::Zinc[900],
// 'dark-body-border' => Color::Zinc[950],

// 'global-header-bg' => Color::Zinc[800],
// 'dark-global-header-bg' => Color::Zinc[800],

// 'content-bg' => "linear-gradient(to right, hsl(0,0%,99%), #ffffff)",
// 'content-border' => Color::Zinc[200],
// 'dark-content-bg' => Color::Zinc[900],
// 'dark-content-border' => Color::Zinc[950],

// 'progress-bar' => Color::Volt,

// 'switch-bg' => Color::Green[500],
// 'dark-switch-bg' => Color::Green[600],
],

/*
|--------------------------------------------------------------------------
Expand All @@ -119,8 +151,25 @@

'custom_logo_url' => env('STATAMIC_CUSTOM_LOGO_URL', null),

'custom_dark_logo_url' => env('STATAMIC_CUSTOM_DARK_LOGO_URL', null),

'custom_logo_text' => env('STATAMIC_CUSTOM_LOGO_TEXT', null),

'custom_favicon_url' => env('STATAMIC_CUSTOM_FAVICON_URL', null),

'custom_css_url' => env('STATAMIC_CUSTOM_CSS_URL', null),

];
/*
|--------------------------------------------------------------------------
| Thumbnails
|--------------------------------------------------------------------------
|
| Here you may define additional CP asset thumbnail presets.
|
*/

'thumbnail_presets' => [
// 'medium' => 800,
],

];
1 change: 1 addition & 0 deletions content/collections/episodes.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
title: Episodes
icon: computer-voice-mail-microphone
template: episodes/show
layout: layout
mount: 902d111c-b83e-43fe-98e0-80b83a33d750
Expand Down
1 change: 1 addition & 0 deletions content/collections/links.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
title: Links
icon: link
template: default
layout: layout
mount: 4c620c7f-b39e-4046-ab29-e095cedd57f4
Expand Down
1 change: 1 addition & 0 deletions content/collections/pages.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
title: Pages
icon: page
structure:
root: true
route: '{parent_uri}/{slug}'
20 changes: 20 additions & 0 deletions content/globals/default/podcast.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
title: 'Breakfast Cereal'
cover_art: artwork/breakfast-cereal-cover.jpg
description: 'One bowl of cereal eaten and meticulously reviewed, week by week.'
type: desc
primary_category: Comedy
secondary_category: 'Health & Fitness » Nutrition'
keywords:
- cereal
- reviews
- breakfast
spoken_language: en
author: 'Jack McDade'
copyright: '© {{ now format="Y" }} Jack McDade'
owner_name: 'Jack McDade'
owner_email: [email protected]
explicit: false
itunes_block: false
google_block: false
locked: false
complete: false
15 changes: 15 additions & 0 deletions content/globals/default/theme.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
social_links:
-
name: Twitter
url: 'https://twitter.com/jackmcdade'
icon: theme/social/twitter.svg
-
name: Github
url: 'https://github.com/jackmcdade'
icon: theme/social/github.svg
-
name: Email
url: 'mailto:[email protected]'
icon: theme/social/email.svg
primary_color: '#FA7268'
secondary_color: '#C62368'
Loading