Skip to content

Commit

Permalink
Merge b7b38c0 into 4063892
Browse files Browse the repository at this point in the history
  • Loading branch information
exabyssus committed Sep 16, 2019
2 parents 4063892 + b7b38c0 commit 0462a7c
Show file tree
Hide file tree
Showing 461 changed files with 18,623 additions and 10,488 deletions.
21 changes: 0 additions & 21 deletions .codeclimate.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/.idea
/vendor
/node_modules
.DS_Store
/tests/coverage
composer.lock
1 change: 1 addition & 0 deletions .styleci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
preset: laravel
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ language: php
php:
- '7.1'
- '7.2'
- nightly
- '7.3'
branches:
only:
- master
- 1.0
install:
- composer install
notifications:
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
## Changelog
32 changes: 12 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
[![Packagist](https://img.shields.io/packagist/v/arbory/arbory.svg)](https://packagist.org/packages/arbory/arbory)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/arbory/arbory/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/arbory/arbory/?branch=master)
[![Build Status](https://travis-ci.org/arbory/arbory.svg?branch=master)](https://travis-ci.org/arbory/arbory)
[![StyleCI](https://github.styleci.io/repos/44740139/shield?branch=master&style=flat)](https://github.styleci.io/repos/44740139)
[![Coverage Status](https://coveralls.io/repos/github/arbory/arbory/badge.svg?branch=master)](https://coveralls.io/github/arbory/arbory?branch=master)

## Installation
#### Create new Laravel project
```bash
composer create-project --prefer-dist laravel/laravel my-project "5.6.*"
composer create-project --prefer-dist laravel/laravel=5.6 my-project
```

#### Go to project root
Expand All @@ -16,7 +17,7 @@ cd my-project

#### Require Arbory package
```bash
composer require arbory/arbory "0.2.*"
composer require arbory/arbory
```

#### Fill in database info
Expand All @@ -29,6 +30,11 @@ vi .env
php artisan arbory:install
```

#### That's it!
```bash
Visit http://localhost/admin
```

## Usage

### Registering new pages
Expand Down Expand Up @@ -177,30 +183,16 @@ return [
]
```

## Generators

### Quick generator
## Generate admin User

```bash
php artisan arbory:generate {type?} {--T|table=}
```

Generators available for

* Model
* Page
* Controller
* View
* AdminController - appends a new route to `routes/admin.php`

### Verbose Generator

```bash
php artisan arbory:generator
php artisan arbory:create-user
```

## Coding style

Use PSR-1/2

### JS

We use `airbnb` coding style for both JS and SASS (links below).
Expand Down
33 changes: 31 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
{
"name": "arbory/arbory",
"description": "Administration interface for Laravel",
"keywords": ["laravel", "admin", "cms", "arbory"],
"type": "library",
"license": "MIT",
"support": {
"issues": "https://github.com/arbory/arbory/issues",
"source": "https://github.com/arbory/arbory"
},
"authors": [
{
"name": "Roberts",
Expand All @@ -11,6 +16,7 @@
],
"require": {
"php": "^7.1",
"ext-json": "*",
"laravel/framework": "^5.5.0|^5.6.0",
"laravelcollective/html": "^5.5.0|^5.6.0",
"doctrine/dbal": "^2.5",
Expand All @@ -26,7 +32,7 @@
"roboc/laravel-glide": "^1.1.0",
"spatie/laravel-sluggable": "^2.1.0",
"maatwebsite/excel": "^3.0.5",
"unisharp/laravel-filemanager": "^1.8.0"
"unisharp/laravel-filemanager": "^1.8.5"
},
"require-dev" : {
"satooshi/php-coveralls": "^1.0",
Expand All @@ -42,12 +48,35 @@
"laravel": {
"providers": [
"Arbory\\Base\\Providers\\ArboryServiceProvider",
"Arbory\\Base\\Providers\\NodeServiceProvider"
"Arbory\\Base\\Providers\\NodeServiceProvider",
"Arbory\\Base\\Providers\\TranslationServiceProvider",
"Dimsav\\Translatable\\TranslatableServiceProvider",
"Arbory\\Base\\Providers\\FileServiceProvider",
"Arbory\\Base\\Providers\\AuthServiceProvider",
"Roboc\\Glide\\GlideImageServiceProvider",
"Arbory\\Base\\Providers\\SettingsServiceProvider",
"Maatwebsite\\Excel\\ExcelServiceProvider",
"Arbory\\Base\\Providers\\FormBuilderServiceProvider",
"Arbory\\Base\\Providers\\FileManagerServiceProvider",
"Arbory\\Base\\Providers\\RoutesServiceProvider",
"Arbory\\Base\\Providers\\LayoutServiceProvider",
"Arbory\\Base\\Providers\\ValidationRulesServiceProvider",
"Arbory\\Base\\Providers\\ConstructorServiceProvider"
],
"aliases": {
"Activation": "Cartalyst\\Sentinel\\Laravel\\Facades\\Activation",
"Reminder": "Cartalyst\\Sentinel\\Laravel\\Facades\\Reminde",
"Sentinel": "Cartalyst\\Sentinel\\Laravel\\Facades\\Sentinel",
"GlideImage": "Roboc\\Glide\\Support\\Facades\\GlideImage",
"Excel": "Maatwebsite\\Excel\\Facades\\Excel"
},
"dont-discover": [
"waavi/translation",
"cartalyst/sentinel"
]
}
},
"config": {
"component-dir": "vendor/components"
}
}
65 changes: 54 additions & 11 deletions config/arbory.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<?php

return [
'title' => 'Arbory',
'uri' => 'admin',

'locales' => [
'en'
'en',
],

'menu' => [
Expand All @@ -15,7 +16,7 @@
Arbory\Base\Http\Controllers\Admin\RedirectsController::class,
[
Arbory\Base\Http\Controllers\Admin\UsersController::class,
Arbory\Base\Http\Controllers\Admin\RolesController::class
Arbory\Base\Http\Controllers\Admin\RolesController::class,
],
],

Expand All @@ -29,24 +30,61 @@
'coordinates' => [
'lat' => 56.94725473000847,
'lng' => 24.099142639160167,
]
],
],
'sprite_icon' => [
'path' => base_path( 'resources/assets/svg/icons.svg' ),
'path' => base_path('resources/assets/svg/icons.svg'),
],
],

'field_types' => [
'belongsTo' => Arbory\Base\Admin\Form\Fields\BelongsTo::class,
'belongsToMany' => Arbory\Base\Admin\Form\Fields\BelongsToMany::class,
'boolean' => Arbory\Base\Admin\Form\Fields\Boolean::class,
'checkbox' => Arbory\Base\Admin\Form\Fields\Checkbox::class,
'dateTime' => Arbory\Base\Admin\Form\Fields\DateTime::class,
'file' => Arbory\Base\Admin\Form\Fields\ArboryFile::class,
'hasMany' => Arbory\Base\Admin\Form\Fields\HasMany::class,
'hasOne' => Arbory\Base\Admin\Form\Fields\HasOne::class,
'hidden' => Arbory\Base\Admin\Form\Fields\Hidden::class,
'icon' => Arbory\Base\Admin\Form\Fields\IconPicker::class,
'image' => Arbory\Base\Admin\Form\Fields\ArboryImage::class,
'link' => Arbory\Base\Admin\Form\Fields\Link::class,
'mapCoordinates' => Arbory\Base\Admin\Form\Fields\MapCoordinates::class,
'markup' => Arbory\Base\Admin\Form\Fields\CompactRichtext::class,
'multipleSelect' => Arbory\Base\Admin\Form\Fields\MultipleSelect::class,
'objectRelation' => Arbory\Base\Admin\Form\Fields\ObjectRelation::class,
'password' => Arbory\Base\Admin\Form\Fields\Password::class,
'richtext' => Arbory\Base\Admin\Form\Fields\Richtext::class,
'select' => Arbory\Base\Admin\Form\Fields\Select::class,
'slug' => Arbory\Base\Admin\Form\Fields\Slug::class,
'text' => Arbory\Base\Admin\Form\Fields\Text::class,
'textarea' => Arbory\Base\Admin\Form\Fields\Textarea::class,
'translatable' => Arbory\Base\Admin\Form\Fields\Translatable::class,
'constructor' => Arbory\Base\Admin\Form\Fields\Constructor::class,
],

'field_styles' => [
'normal' => \Arbory\Base\Admin\Form\Fields\Renderer\Styles\LabeledFieldStyle::class,
'basic' => \Arbory\Base\Admin\Form\Fields\Renderer\Styles\BasicFieldStyle::class,
'raw' => \Arbory\Base\Admin\Form\Fields\Renderer\Styles\RawFieldStyle::class,
'nested' => \Arbory\Base\Admin\Form\Fields\Renderer\Styles\NestedFieldStyle::class,
'section' => \Arbory\Base\Admin\Form\Fields\Renderer\Styles\SectionFieldStyle::class,
],

'default_field_style' => 'normal',

'auth' => [
'ip' => [
'allowed' => []
'allowed' => [],
],
'activations' => [
'expires' => 259200,
'lottery' => [ 2, 100 ],
'lottery' => [2, 100],
],
'reminders' => [
'expires' => 14400,
'lottery' => [ 2, 100 ],
'lottery' => [2, 100],
],
'throttling' => [
'global' => [
Expand All @@ -57,7 +95,7 @@
30 => 4,
40 => 8,
50 => 16,
60 => 12
60 => 12,
],
],
'ip' => [
Expand All @@ -73,7 +111,12 @@

'services' => [
'google' => [
'maps_api_key' => env('GOOGLE_MAPS_API_KEY')
]
]
'maps_api_key' => env('GOOGLE_MAPS_API_KEY'),
],
],

'preview' => [
'enabled' => true,
'slug_salt' => env('APP_KEY'),
],
];
2 changes: 1 addition & 1 deletion config/settings.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php

return [
];
];
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

class CreateLanguagesTable extends Migration
{

/**
* Run the migrations.
*
Expand All @@ -30,5 +29,4 @@ public function down()
{
Schema::drop('translator_languages');
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

class CreateTranslationsTable extends Migration
{

/**
* Run the migrations.
*
Expand Down Expand Up @@ -36,5 +35,4 @@ public function down()
{
Schema::drop('translator_translations');
}

}
Loading

0 comments on commit 0462a7c

Please sign in to comment.