Skip to content
This repository was archived by the owner on May 7, 2021. It is now read-only.

Commit f41405c

Browse files
Nathan LeSageNathan LeSage
authored andcommitted
First commit
0 parents  commit f41405c

File tree

182 files changed

+26802
-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.

182 files changed

+26802
-0
lines changed

.env.example

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
APP_ENV=production
2+
APP_DEBUG=false
3+
APP_KEY=null
4+
APP_TITLE=zettlrWiki
5+
APP_URL=http://localhost
6+
APP_DEFAULT_LOCALE=en
7+
8+
LOG_STORAGE=daily
9+
LOG_FILES=30
10+
LOG_LEVEL=info
11+
12+
DB_CONNECTION=sqlite
13+
DB_HOST=127.0.0.1
14+
DB_PORT=3306
15+
DB_DATABASE=database.sqlite
16+
DB_USERNAME=null
17+
DB_PASSWORD=null
18+
DB_PREFIX=null
19+
20+
CACHE_DRIVER=file
21+
SESSION_DRIVER=file
22+
QUEUE_DRIVER=sync
23+
24+
REDIS_HOST=127.0.0.1
25+
REDIS_PASSWORD=null
26+
REDIS_PORT=6379
27+
28+
MAIL_DRIVER=smtp
29+
MAIL_HOST=mailtrap.io
30+
MAIL_PORT=2525
31+
MAIL_USERNAME=null
32+
MAIL_PASSWORD=null
33+
MAIL_ENCRYPTION=null

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
* text=auto
2+
*.css linguist-vendored
3+
*.scss linguist-vendored

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/vendor
2+
/node_modules
3+
/public/storage
4+
Homestead.yaml
5+
Homestead.json
6+
.env
7+
.DS_Store
8+
.com.apple.timemachine.supported

Gruntfile.js

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
module.exports = function(grunt) {
2+
3+
grunt.initConfig({
4+
pkg: grunt.file.readJSON('package.json'),
5+
6+
// Throw all our JS-files into one
7+
concat: {
8+
options: {
9+
separator: ';'
10+
},
11+
dist: {
12+
src: ['public/js/zettlr.editor.js',
13+
'public/js/zettlr.helper.js',
14+
'public/js/zettlr.media-library.js'],
15+
dest: 'public/js/<%= pkg.name %>.js'
16+
}
17+
},
18+
19+
// Minify them
20+
uglify: {
21+
options: {
22+
banner: '/* <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
23+
},
24+
dist: {
25+
files: {
26+
'public/js/<%= pkg.name %>.min.js' : ['<%= concat.dist.dest %>']
27+
}
28+
}
29+
},
30+
31+
// Use JSHint for validating the file
32+
jshint: {
33+
files: ['Gruntfile.js', 'public/js/zettlr.*.js'],
34+
options: {
35+
globals: {
36+
jQuery: true,
37+
console: true,
38+
module: true,
39+
document: true
40+
},
41+
// We need multistr for our Medialibrary, as it also brings HTML with line escapings (\)
42+
// TODO: Will be removed in next jshint release, so then we can remove it here as well
43+
multistr: true
44+
}
45+
},
46+
47+
// Watchdog to watch for changes
48+
watch: {
49+
files: ['<%= jshint.files %>'],
50+
tasks: ['jshint']
51+
}
52+
});
53+
54+
grunt.loadNpmTasks('grunt-contrib-uglify');
55+
grunt.loadNpmTasks('grunt-contrib-jshint');
56+
grunt.loadNpmTasks('grunt-contrib-watch');
57+
grunt.loadNpmTasks('grunt-contrib-concat');
58+
59+
// Register default task
60+
grunt.registerTask('default', ['jshint', 'concat', 'uglify']);
61+
grunt.registerTask('build', ['jshint', 'concat', 'uglify'])
62+
};

app/Console/Commands/Inspire.php

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?php
2+
3+
namespace App\Console\Commands;
4+
5+
use Illuminate\Console\Command;
6+
use Illuminate\Foundation\Inspiring;
7+
8+
class Inspire extends Command
9+
{
10+
/**
11+
* The name and signature of the console command.
12+
*
13+
* @var string
14+
*/
15+
protected $signature = 'inspire';
16+
17+
/**
18+
* The console command description.
19+
*
20+
* @var string
21+
*/
22+
protected $description = 'Display an inspiring quote';
23+
24+
/**
25+
* Execute the console command.
26+
*
27+
* @return mixed
28+
*/
29+
public function handle()
30+
{
31+
$this->comment(PHP_EOL.Inspiring::quote().PHP_EOL);
32+
}
33+
}

app/Console/Kernel.php

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+
* The Artisan commands provided by your application.
12+
*
13+
* @var array
14+
*/
15+
protected $commands = [
16+
// Commands\Inspire::class,
17+
];
18+
19+
/**
20+
* Define the application's command schedule.
21+
*
22+
* @param \Illuminate\Console\Scheduling\Schedule $schedule
23+
* @return void
24+
*/
25+
protected function schedule(Schedule $schedule)
26+
{
27+
// $schedule->command('inspire')
28+
// ->hourly();
29+
}
30+
}

app/Events/Event.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
namespace App\Events;
4+
5+
abstract class Event
6+
{
7+
//
8+
}

app/Exceptions/Handler.php

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<?php
2+
3+
namespace App\Exceptions;
4+
5+
use Exception;
6+
use Illuminate\Validation\ValidationException;
7+
use Illuminate\Auth\Access\AuthorizationException;
8+
use Illuminate\Database\Eloquent\ModelNotFoundException;
9+
use Symfony\Component\HttpKernel\Exception\HttpException;
10+
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
11+
12+
class Handler extends ExceptionHandler
13+
{
14+
/**
15+
* A list of the exception types that should not be reported.
16+
*
17+
* @var array
18+
*/
19+
protected $dontReport = [
20+
AuthorizationException::class,
21+
HttpException::class,
22+
ModelNotFoundException::class,
23+
ValidationException::class,
24+
];
25+
26+
/**
27+
* Report or log an exception.
28+
*
29+
* This is a great spot to send exceptions to Sentry, Bugsnag, etc.
30+
*
31+
* @param \Exception $e
32+
* @return void
33+
*/
34+
public function report(Exception $e)
35+
{
36+
parent::report($e);
37+
}
38+
39+
/**
40+
* Render an exception into an HTTP response.
41+
*
42+
* @param \Illuminate\Http\Request $request
43+
* @param \Exception $e
44+
* @return \Illuminate\Http\Response
45+
*/
46+
public function render($request, Exception $e)
47+
{
48+
return parent::render($request, $e);
49+
}
50+
}

0 commit comments

Comments
 (0)