Skip to content

Commit 9f840a8

Browse files
committed
initial commit
0 parents  commit 9f840a8

File tree

241 files changed

+37140
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

241 files changed

+37140
-0
lines changed

.editorconfig

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
indent_style = space
8+
indent_size = 4
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false
13+
14+
[*.{yml,yaml}]
15+
indent_size = 2
16+
17+
[docker-compose.yml]
18+
indent_size = 4

.env.example

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
APP_NAME=Statamic
2+
APP_ENV=local
3+
APP_KEY=
4+
APP_DEBUG=true
5+
APP_URL=http://localhost
6+
7+
STATAMIC_LICENSE_KEY=
8+
STATAMIC_STACHE_WATCHER=true
9+
STATAMIC_STATIC_CACHING_STRATEGY=null
10+
STATAMIC_REVISIONS_ENABLED=false
11+
STATAMIC_GRAPHQL_ENABLED=false
12+
STATAMIC_API_ENABLED=false
13+
STATAMIC_GIT_ENABLED=false
14+
15+
LOG_CHANNEL=stack
16+
LOG_DEPRECATIONS_CHANNEL=null
17+
LOG_LEVEL=debug
18+
19+
DB_CONNECTION=mysql
20+
DB_HOST=127.0.0.1
21+
DB_PORT=3306
22+
DB_DATABASE=laravel
23+
DB_USERNAME=root
24+
DB_PASSWORD=
25+
26+
BROADCAST_DRIVER=log
27+
CACHE_DRIVER=file
28+
FILESYSTEM_DISK=local
29+
QUEUE_CONNECTION=sync
30+
SESSION_DRIVER=file
31+
SESSION_LIFETIME=120
32+
33+
MEMCACHED_HOST=127.0.0.1
34+
35+
REDIS_HOST=127.0.0.1
36+
REDIS_PASSWORD=null
37+
REDIS_PORT=6379
38+
39+
MAIL_MAILER=smtp
40+
MAIL_HOST=mailhog
41+
MAIL_PORT=1025
42+
MAIL_USERNAME=null
43+
MAIL_PASSWORD=null
44+
MAIL_ENCRYPTION=null
45+
MAIL_FROM_ADDRESS=null
46+
MAIL_FROM_NAME="${APP_NAME}"
47+
48+
AWS_ACCESS_KEY_ID=
49+
AWS_SECRET_ACCESS_KEY=
50+
AWS_DEFAULT_REGION=us-east-1
51+
AWS_BUCKET=
52+
AWS_USE_PATH_STYLE_ENDPOINT=false
53+
54+
PUSHER_APP_ID=
55+
PUSHER_APP_KEY=
56+
PUSHER_APP_SECRET=
57+
PUSHER_APP_CLUSTER=mt1
58+
59+
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
60+
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
61+
62+
DEBUGBAR_ENABLED=false

.gitattributes

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
* text=auto
2+
*.css linguist-vendored
3+
*.scss linguist-vendored
4+
*.js linguist-vendored
5+
CHANGELOG.md export-ignore
6+
/.github export-ignore

.gitignore

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/node_modules
2+
/public/hot
3+
/public/storage
4+
/public/vendor/statamic
5+
/storage/*.key
6+
/vendor
7+
.env
8+
.env.backup
9+
.phpunit.result.cache
10+
.php_cs.cache
11+
docker-compose.override.yml
12+
Homestead.json
13+
Homestead.yaml
14+
npm-debug.log
15+
yarn-error.log
16+
.DS_Store
17+
/.idea
18+
/.vscode

.styleci.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
php:
2+
preset: laravel
3+
version: 8
4+
disabled:
5+
- no_unused_imports
6+
finder:
7+
not-name:
8+
- index.php
9+
- server.php
10+
js:
11+
finder:
12+
not-name:
13+
- webpack.mix.js
14+
css: true

README.md

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<p align="center"><img src="https://statamic.com/assets/branding/Statamic-Logo+Wordmark-Rad.svg" width="400" alt="Statamic Logo" /></p>
2+
3+
## About Statamic 3
4+
5+
Statamic 3 is the flat-first, Laravel + Git powered CMS designed for building beautiful, easy to manage websites.
6+
7+
> **Note:** This repository contains the code for the Statamic application. To contribute to the core package, visit the [Statamic core package repository][cms-repo].
8+
9+
10+
## Learning Statamic
11+
12+
Statamic 3 has extensive [documentation][docs]. We dedicate a significant amount of time and energy every day to improving them, so if something is unclear, feel free to open issues for anything you find confusing or incomplete. We are happy to consider anything you feel will make the docs and CMS better.
13+
14+
## Support
15+
16+
We provide official developer support on [Statamic 3 Pro](https://statamic.com/pricing) projects. Community-driven support is available on the [forum](https://statamic.com/forum) and in [Discord][discord].
17+
18+
19+
## Contributing
20+
21+
Thank you for considering contributing to Statamic! We simply ask that you review the [contribution guide][contribution] before you open issues or send pull requests.
22+
23+
24+
## Code of Conduct
25+
26+
In order to ensure that the Statamic community is welcoming to all and generally a rad place to belong, please review and abide by the [Code of Conduct](https://github.com/statamic/cms/wiki/Code-of-Conduct).
27+
28+
29+
## Important Links
30+
31+
- [Statamic Main Site](https://statamic.com)
32+
- [Statamic 3 Documentation][docs]
33+
- [Statamic 3 Core Package Repo][cms-repo]
34+
- [Statamic 3 Migrator](https://github.com/statamic/migrator)
35+
- [Statamic Discord][discord]
36+
37+
[docs]: https://statamic.dev/
38+
[discord]: https://statamic.com/discord
39+
[contribution]: https://github.com/statamic/cms/blob/master/CONTRIBUTING.md
40+
[cms-repo]: https://github.com/statamic/cms
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
vendor
3+
mix-manifest.json
+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Quotefetcher
2+
3+
> Quotefetcher is a Statamic addon that does something pretty neat.
4+
5+
## Features
6+
7+
This addon does:
8+
9+
- This
10+
- And this
11+
- And even this
12+
13+
## How to Install
14+
15+
You can search for this addon in the `Tools > Addons` section of the Statamic control panel and click **install**, or run the following command from your project root:
16+
17+
``` bash
18+
composer require statamic/quotefetcher
19+
```
20+
21+
## How to Use
22+
23+
Here's where you can explain how to use this wonderful addon.
+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "statamic/quotefetcher",
3+
"autoload": {
4+
"psr-4": {
5+
"Statamic\\Quotefetcher\\": "src"
6+
}
7+
},
8+
"extra": {
9+
"statamic": {
10+
"name": "Quotefetcher",
11+
"description": "Quotefetcher addon"
12+
},
13+
"laravel": {
14+
"providers": [
15+
"Statamic\\Quotefetcher\\ServiceProvider"
16+
]
17+
}
18+
}
19+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
namespace Statamic\Quotefetcher;
4+
5+
use Statamic\Providers\AddonServiceProvider;
6+
7+
class ServiceProvider extends AddonServiceProvider
8+
{
9+
protected $tags = [
10+
Tags\Quotefetcher::class,
11+
];
12+
public function bootAddon()
13+
{
14+
//
15+
}
16+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?php
2+
3+
namespace Statamic\Quotefetcher\Tags;
4+
5+
use Statamic\Tags\Tags;
6+
7+
class Quotefetcher extends Tags
8+
{
9+
/**
10+
* The {{ quotefetcher }} tag.
11+
*
12+
* @return string|array
13+
*/
14+
public function index()
15+
{
16+
//
17+
}
18+
19+
/**
20+
* The {{ quotefetcher:example }} tag.
21+
*
22+
* @return string|array
23+
*/
24+
public function example()
25+
{
26+
//
27+
}
28+
}

app/Console/Kernel.php

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?php
2+
3+
namespace App\Console;
4+
5+
use Illuminate\Console\Scheduling\Schedule;
6+
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
7+
8+
class Kernel extends ConsoleKernel
9+
{
10+
/**
11+
* Define the application's command schedule.
12+
*
13+
* @param \Illuminate\Console\Scheduling\Schedule $schedule
14+
* @return void
15+
*/
16+
protected function schedule(Schedule $schedule)
17+
{
18+
// $schedule->command('inspire')->hourly();
19+
}
20+
21+
/**
22+
* Register the commands for the application.
23+
*
24+
* @return void
25+
*/
26+
protected function commands()
27+
{
28+
$this->load(__DIR__.'/Commands');
29+
30+
require base_path('routes/console.php');
31+
}
32+
}

app/Exceptions/Handler.php

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?php
2+
3+
namespace App\Exceptions;
4+
5+
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
6+
use Throwable;
7+
8+
class Handler extends ExceptionHandler
9+
{
10+
/**
11+
* A list of the exception types that are not reported.
12+
*
13+
* @var array<int, class-string<Throwable>>
14+
*/
15+
protected $dontReport = [
16+
//
17+
];
18+
19+
/**
20+
* A list of the inputs that are never flashed for validation exceptions.
21+
*
22+
* @var array<int, string>
23+
*/
24+
protected $dontFlash = [
25+
'current_password',
26+
'password',
27+
'password_confirmation',
28+
];
29+
30+
/**
31+
* Register the exception handling callbacks for the application.
32+
*
33+
* @return void
34+
*/
35+
public function register()
36+
{
37+
$this->reportable(function (Throwable $e) {
38+
//
39+
});
40+
}
41+
}

app/Http/Controllers/Controller.php

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
namespace App\Http\Controllers;
4+
5+
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
6+
use Illuminate\Foundation\Bus\DispatchesJobs;
7+
use Illuminate\Foundation\Validation\ValidatesRequests;
8+
use Illuminate\Routing\Controller as BaseController;
9+
10+
class Controller extends BaseController
11+
{
12+
use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
13+
}

0 commit comments

Comments
 (0)