Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Sleeping Owl committed Oct 13, 2014
0 parents commit 32c37c7
Show file tree
Hide file tree
Showing 414 changed files with 36,325 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/vendor
composer.phar
composer.lock
.DS_Store
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
language: php

php:
- 5.4
- 5.5
- 5.6
- hhvm

before_script:
- travis_retry composer self-update
- travis_retry composer install --prefer-source --no-interaction --dev

script: phpunit
20 changes: 20 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
The MIT License (MIT)

Copyright 2014 SleepingOwl <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
50 changes: 50 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
## Laravel 4 Admin Module

SleepingOwl Admin is administrative interface builder for Laravel.

It includes:

- [sb-admin-2 template](http://startbootstrap.com/template-overviews/sb-admin-2/)
- [jQuery 1.11.0](http://jquery.org)
- [Bootstrap v3.2.0](http://getbootstrap.com)
- [Bootstrap Multiselect v0.9.8](https://github.com/davidstutz/bootstrap-multiselect)
- [DataTables 1.10.0-dev](http://www.sprymedia.co.uk)
- [Lightbox for Bootstrap 3](https://github.com/ashleydw/lightbox)
- [Font Awesome 4.1.0](http://fontawesome.io)
- [Metismenu 1.0.3](https://github.com/onokumus/metisMenu)
- [morris.js v0.5.0]()
- [bootbox.js v4.3.0](http://bootboxjs.com)
- [Bootstrap datetimepicker](http://eonasdan.github.io/bootstrap-datetimepicker/)
- [CKEditor](http://ckeditor.com)

## Installation

1. Require this package in your composer.json and run composer update (or run `composer require sleeping-owl/admin:1.x` directly):

"sleeping-owl/admin": "1.*"

2. After composer update, add service providers to the `app/config/app.php`

'SleepingOwl\Admin\AdminServiceProvider',

3. Add this to the facades in `app/config/app.php`:

'Admin' => 'SleepingOwl\Admin\Admin',
'AdminAuth' => 'SleepingOwl\AdminAuth\Facades\AdminAuth',
'AssetManager' => 'SleepingOwl\Admin\AssetManager\AssetManager',
'Column' => 'SleepingOwl\Admin\Columns\Column',
'FormItem' => 'SleepingOwl\Admin\Models\Form\FormItem',
'ModelItem' => 'SleepingOwl\Admin\Models\ModelItem',

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)):

$ php artisan admin:install

## Documentation

Documentation can be found at [sleeping owl documentation](http://sleeping-owl.github.io/admin).
You can also find it in the `/src/docs` directory.

## Copyright and License

Admin was written by Sleeping Owl for the Laravel framework and is released under the MIT License. See the LICENSE file for details.
31 changes: 31 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"name": "sleeping-owl/admin",
"description": "Advanced admin module for your eloquent models.",
"license": "MIT",
"authors": [
{
"name": "Sleeping Owl",
"email": "[email protected]"
}
],
"require": {
"php": ">=5.4.0",
"illuminate/support": "4.2.*",
"intervention/image": "2.*",
"intervention/imagecache": "2.*"
},
"require-dev": {
"doctrine/dbal": "~2.3",
"phpunit/phpunit": "4.*",
"mockery/mockery": "0.9.*"
},
"autoload": {
"psr-0": {
"SleepingOwl\\Admin": "src/",
"SleepingOwl\\DateFormatter": "src/",
"SleepingOwl\\Html": "src/",
"SleepingOwl\\Models": "src/",
"SleepingOwl\\RandomFilenamer": "src/"
}
}
}
30 changes: 30 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
var gulp = require('gulp');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var concatCSS = require('gulp-concat-css');
var minifyCSS = require('gulp-minify-css');
var notify = require('gulp-notify');

var src = './resources/';
var dest = './public/';
gulp.task('css', function () {
gulp.src(src + 'css/*.css')
.pipe(concatCSS('all.min.css'))
.pipe(minifyCSS({keepSpecialComments:0}))
.pipe(gulp.dest(dest))
.pipe(notify('Minified CSS created.'));
});

gulp.task('js', function () {
gulp.src([src + 'js/jquery-1.11.0.js', src + 'js/plugins/**/*.js', src + 'js/*.js'])
.pipe(concat('all.min.js'))
.pipe(uglify())
.pipe(gulp.dest(dest))
.pipe(notify('Minified JS created.'));
});

gulp.task('default', function () {
gulp.run(['js', 'css']);
gulp.watch(src + 'js/*.js', ['js']);
gulp.watch(src + 'css/*.css', ['css']);
});
23 changes: 23 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
>
<testsuites>
<testsuite name="Package Test Suite">
<directory suffix=".php">./tests/</directory>
</testsuite>
</testsuites>
<listeners>
<listener
class='Mockery\Adapter\Phpunit\TestListener'
file='./vendor/mockery/mockery/library/Mockery/Adapter/Phpunit/TestListener.php'/>
</listeners>
</phpunit>
1 change: 1 addition & 0 deletions public/all.min.css

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions public/all.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 32c37c7

Please sign in to comment.