Skip to content

Commit 32c37c7

Browse files
author
Sleeping Owl
committed
Initial commit
0 parents  commit 32c37c7

File tree

414 files changed

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

414 files changed

+36325
-0
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/vendor
2+
composer.phar
3+
composer.lock
4+
.DS_Store

.travis.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
language: php
2+
3+
php:
4+
- 5.4
5+
- 5.5
6+
- 5.6
7+
- hhvm
8+
9+
before_script:
10+
- travis_retry composer self-update
11+
- travis_retry composer install --prefer-source --no-interaction --dev
12+
13+
script: phpunit

LICENSE

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
The MIT License (MIT)
2+
3+
Copyright 2014 SleepingOwl <[email protected]>
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
the Software, and to permit persons to whom the Software is furnished to do so,
10+
subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
## Laravel 4 Admin Module
2+
3+
SleepingOwl Admin is administrative interface builder for Laravel.
4+
5+
It includes:
6+
7+
- [sb-admin-2 template](http://startbootstrap.com/template-overviews/sb-admin-2/)
8+
- [jQuery 1.11.0](http://jquery.org)
9+
- [Bootstrap v3.2.0](http://getbootstrap.com)
10+
- [Bootstrap Multiselect v0.9.8](https://github.com/davidstutz/bootstrap-multiselect)
11+
- [DataTables 1.10.0-dev](http://www.sprymedia.co.uk)
12+
- [Lightbox for Bootstrap 3](https://github.com/ashleydw/lightbox)
13+
- [Font Awesome 4.1.0](http://fontawesome.io)
14+
- [Metismenu 1.0.3](https://github.com/onokumus/metisMenu)
15+
- [morris.js v0.5.0]()
16+
- [bootbox.js v4.3.0](http://bootboxjs.com)
17+
- [Bootstrap datetimepicker](http://eonasdan.github.io/bootstrap-datetimepicker/)
18+
- [CKEditor](http://ckeditor.com)
19+
20+
## Installation
21+
22+
1. Require this package in your composer.json and run composer update (or run `composer require sleeping-owl/admin:1.x` directly):
23+
24+
"sleeping-owl/admin": "1.*"
25+
26+
2. After composer update, add service providers to the `app/config/app.php`
27+
28+
'SleepingOwl\Admin\AdminServiceProvider',
29+
30+
3. Add this to the facades in `app/config/app.php`:
31+
32+
'Admin' => 'SleepingOwl\Admin\Admin',
33+
'AdminAuth' => 'SleepingOwl\AdminAuth\Facades\AdminAuth',
34+
'AssetManager' => 'SleepingOwl\Admin\AssetManager\AssetManager',
35+
'Column' => 'SleepingOwl\Admin\Columns\Column',
36+
'FormItem' => 'SleepingOwl\Admin\Models\Form\FormItem',
37+
'ModelItem' => 'SleepingOwl\Admin\Models\ModelItem',
38+
39+
4. Run this command in terminal (if you want to know what exactly this command makes, see [install command documentation](http://sleeping-owl.github.io/admin/Commands/Install.html)):
40+
41+
$ php artisan admin:install
42+
43+
## Documentation
44+
45+
Documentation can be found at [sleeping owl documentation](http://sleeping-owl.github.io/admin).
46+
You can also find it in the `/src/docs` directory.
47+
48+
## Copyright and License
49+
50+
Admin was written by Sleeping Owl for the Laravel framework and is released under the MIT License. See the LICENSE file for details.

composer.json

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"name": "sleeping-owl/admin",
3+
"description": "Advanced admin module for your eloquent models.",
4+
"license": "MIT",
5+
"authors": [
6+
{
7+
"name": "Sleeping Owl",
8+
"email": "[email protected]"
9+
}
10+
],
11+
"require": {
12+
"php": ">=5.4.0",
13+
"illuminate/support": "4.2.*",
14+
"intervention/image": "2.*",
15+
"intervention/imagecache": "2.*"
16+
},
17+
"require-dev": {
18+
"doctrine/dbal": "~2.3",
19+
"phpunit/phpunit": "4.*",
20+
"mockery/mockery": "0.9.*"
21+
},
22+
"autoload": {
23+
"psr-0": {
24+
"SleepingOwl\\Admin": "src/",
25+
"SleepingOwl\\DateFormatter": "src/",
26+
"SleepingOwl\\Html": "src/",
27+
"SleepingOwl\\Models": "src/",
28+
"SleepingOwl\\RandomFilenamer": "src/"
29+
}
30+
}
31+
}

gulpfile.js

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
var gulp = require('gulp');
2+
var concat = require('gulp-concat');
3+
var uglify = require('gulp-uglify');
4+
var concatCSS = require('gulp-concat-css');
5+
var minifyCSS = require('gulp-minify-css');
6+
var notify = require('gulp-notify');
7+
8+
var src = './resources/';
9+
var dest = './public/';
10+
gulp.task('css', function () {
11+
gulp.src(src + 'css/*.css')
12+
.pipe(concatCSS('all.min.css'))
13+
.pipe(minifyCSS({keepSpecialComments:0}))
14+
.pipe(gulp.dest(dest))
15+
.pipe(notify('Minified CSS created.'));
16+
});
17+
18+
gulp.task('js', function () {
19+
gulp.src([src + 'js/jquery-1.11.0.js', src + 'js/plugins/**/*.js', src + 'js/*.js'])
20+
.pipe(concat('all.min.js'))
21+
.pipe(uglify())
22+
.pipe(gulp.dest(dest))
23+
.pipe(notify('Minified JS created.'));
24+
});
25+
26+
gulp.task('default', function () {
27+
gulp.run(['js', 'css']);
28+
gulp.watch(src + 'js/*.js', ['js']);
29+
gulp.watch(src + 'css/*.css', ['css']);
30+
});

phpunit.xml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit backupGlobals="false"
3+
backupStaticAttributes="false"
4+
bootstrap="vendor/autoload.php"
5+
colors="true"
6+
convertErrorsToExceptions="true"
7+
convertNoticesToExceptions="true"
8+
convertWarningsToExceptions="true"
9+
processIsolation="false"
10+
stopOnFailure="false"
11+
syntaxCheck="false"
12+
>
13+
<testsuites>
14+
<testsuite name="Package Test Suite">
15+
<directory suffix=".php">./tests/</directory>
16+
</testsuite>
17+
</testsuites>
18+
<listeners>
19+
<listener
20+
class='Mockery\Adapter\Phpunit\TestListener'
21+
file='./vendor/mockery/mockery/library/Mockery/Adapter/Phpunit/TestListener.php'/>
22+
</listeners>
23+
</phpunit>

public/all.min.css

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/all.min.js

+17
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)