GithubHelp home page GithubHelp logo

asgardcms / platform Goto Github PK

View Code? Open in Web Editor NEW
781.0 66.0 242.0 50.49 MB

A modular multilingual CMS built with Laravel 5.

Home Page: https://asgardcms.com/

License: MIT License

PHP 73.98% Shell 0.15% Vue 12.91% Dockerfile 0.14% Blade 10.27% Less 2.55%
asgardcms php laravel framework cmf cms hacktoberfest

platform's Introduction

Latest Version Build Status Software License Total Downloads Total Downloads Total Downloads PHP7 Compatible

AsgardCMS Platform

View the documentation at AsgardCMS.com/docs.

Join the conversation on Slack Slack

License

The AsgardCMS is open-sourced software licensed under the MIT license.

platform's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

platform's Issues

Issue on upload on page

Hi,
When I try to upload an image in the page editor, I got an error (take some time to see it, it could be a good idea to catch it throught javascript ...).

Error is

 TokenMismatchException in compiled.php line 2548

I test it throught php artisen serve with PHP 5.6.4

Backend Permissions View

I suggest the following:

  • Make the permissions render in 2 column list
  • Split the perms up via the permission into tabs
  • On each 'section' header, have a checkbox that would ideally toggle the permission state in that section

Workshop: module generation issues

Their a couple of issues related to scaffolding a new module:

  • module.json, providers key: $MODULE_NAMESPACE$ not replaced
  • route generation: Route [admin.product.product.create] not defined
  • RouteServiceProvider, unused class import use Illuminate\Routing\Router;.
  • RouteServiceProvider not added in the module.json file.
  • ServiceProvider: removing Illuminate\Support\Facades\Config unused import
  • $table->foreign('category_id')->references('id')->on('product.categories')->onDelete('cascade'); should be on(product__categories'
  • Add module prefix in migration class name.
  • Add Translations suffix in needed migrations class name.

Login Page is missing its styles

I've come to the conclusion that its trying to load backend assets from the frontend theme, adding
\Stylist::activate(\Config::get('asgard.core.core.admin-theme')); just in the getLogin() of Modules\User\Http\Controllers\AuthController seems to fix it on my install(s)

I haven't put this into a pull request cause i'm pretty sure there's something else at play here, not sure what :S

Create page fields not sticky

If you create page without entering template name, the following forms are not sticky when the page reloads:

  • Meta description
  • Facebook description
  • Body WYSIWYG editor

unsticky-form-fields

Make the Unit Tests usable outside Laravel app

For all modules, find a way to be able to run the unit tests outside a laravel application.
For instance in a CI service like Travis-Ci. Also to make contributing to AsgardCMS easier.

Notifications System

Still looking for the best solution

  • Ajax call every x seconds to get the notifications,
  • Use sockets for real time notifications ( http://socketo.me/ )

An additional email notification could be sent if the user is offline. This would require an user account setting to disable email notifications.

Also use http://lab.ejci.net/favico.js/ to add notification count in favicon.

Installation Issue

Hi

i try to run php artisan asgard:install but give me error

 [Illuminate\Database\QueryException]
  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'asgardcms.settin
  g__settings' doesn't exist (SQL: select * from `setting__settings` where `n
  ame` = core::locales limit 1)






  [PDOException]
  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'asgardcms.settin
  g__settings' doesn't exist

any idea?

try to run php artisan migrate and php artisan module:migrate but still no luck

Thanks

Add a Theme Scaffold command

Add a Theme scaffold command

A command that generates all base files for a theme.

  • theme.json
  • gulpfile.js
  • package.json
  • elixir.json
  • views/layouts
  • views/partials
  • views/default.blade.php

Table: dashboard__widgets missing.

Hi there,

Seems like the table dashboard__widgets is missing.
After a successful installation I've got this error after I'd log in:

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'database.dashboard__widgets' doesn't exist (SQL: select * from dashboard__widgets where user_id = 1 limit 1)

Guess this has been forgotten to be added to migrations as this is a new feature.

Install error, can't reinstall it

When you have an error at the install you can't reinstall it

Steps:

php artisan asgard:install

Welcome!                              
Starting the installation process...  

Enter your database host [localhost]:
Enter your database name []: asgardcms
Enter your database username [root]:
Enter your database password []:
Database successfully configured

  User Module                        
Starting the User Module setup...  

Which user driver do you wish to use? Please make sure you installed your preferred driver beforehand. [1] 
   [0] Sentinel (Paid)
   [1] Sentry (Free)
> 1

SQLSTATE[HY000] [1049] Unknown database 'asgardcms'

And after fixing it, I have the following message

php artisan asgard:install

 Welcome!                              
 Starting the installation process...  

Asgard has already been installed. You can already log into your administration.

Packages for AsgardCms 5.1 upgrade

I'll list the packages needed for AsgardCms, and if they're 5.1 ready, or not.

  • Stylist : Pull request sent
  • Sentry
  • Sentinel
  • pingpong/modules, custom branch needed.
  • laravelcollective/html
  • laracasts/flash
  • laracasts/presenter
  • dimsav/laravel-translatable
  • mcamara/laravel-localization PR sent
  • maatwebsite/laravel-sidebar
  • intervention/image
  • pingpong/menus , version 2.1@dev
  • typicms/nestablecollection
  • orchestra/testbench: 3.1.x@dev
  • debugbar

Module Scaffold error

Just trying to create a module and it errored out

 $ art asgard:scaffold
Please enter the module name. Example: vendor/name. xlink/faq
Do you want to use Eloquent or Doctrine ? [eloquent]
  [0] Eloquent
  [1] Doctrine
 > 0
Enter entity name. Leaving option empty will continue script. Faq
Enter entity name. Leaving option empty will continue script.
Enter value object name. Leaving option empty will continue script.
exception 'ErrorException' with message 'file_put_contents(/Faq/Providers/FaqServiceProvider.php): failed to open stream: No such file or directory' in /Users/danaldridge/Sites/portfolio/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:74
Stack trace:
#0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'file_put_conten...', '/Users/danaldri...', 74, Array)
#1 /Users/danaldridge/Sites/portfolio/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(74): file_put_contents('/Faq/Providers/...', '<?php namespace...', 0)
#2 /Users/danaldridge/Sites/portfolio/Modules/Workshop/Scaffold/Generators/Generator.php(93): Illuminate\Filesystem\Filesystem->put('/Faq/Providers/...', '<?php namespace...')
#3 /Users/danaldridge/Sites/portfolio/Modules/Workshop/Scaffold/Generators/FilesGenerator.php(30): Modules\Workshop\Scaffold\Generators\Generator->writeFile('/Faq/Providers/...', '<?php namespace...')
#4 /Users/danaldridge/Sites/portfolio/Modules/Workshop/Scaffold/ModuleScaffold.php(101): Modules\Workshop\Scaffold\Generators\FilesGenerator->generateModuleProvider()
#5 /Users/danaldridge/Sites/portfolio/Modules/Workshop/Console/ScaffoldCommand.php(52): Modules\Workshop\Scaffold\ModuleScaffold->scaffold()
#6 [internal function]: Modules\Workshop\Console\ScaffoldCommand->fire()
#7 /Users/danaldridge/Sites/portfolio/vendor/laravel/framework/src/Illuminate/Container/Container.php(523): call_user_func_array(Array, Array)
#8 /Users/danaldridge/Sites/portfolio/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array)
#9 /Users/danaldridge/Sites/portfolio/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(253): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 /Users/danaldridge/Sites/portfolio/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 /Users/danaldridge/Sites/portfolio/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 /Users/danaldridge/Sites/portfolio/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(Modules\Workshop\Console\ScaffoldCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 /Users/danaldridge/Sites/portfolio/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#14 /Users/danaldridge/Sites/portfolio/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(91): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#15 /Users/danaldridge/Sites/portfolio/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#16 {main}

Updating modules via GUI not working

Very weird bug, since the GUI just calls an artisan command to update a specific module.
If calling that artisan command via the CLI, it works as expected.

artisan migrate exception CreateWidgetsTable not found

When running

php artisan migrate:refresh --seed

I'll get the following error

  [Symfony\Component\Debug\Exception\FatalErrorException]
  Class 'CreateWidgetsTable' not found 

Can someone hint me in the right direction? I can submit my logfile if this is necessary.

Modify installation sequence

During the installation process, when run php artisan asgard:install, you should modify the sequence order to have all prompt at first and create/modify after.
Like this, if an error occurred during any prompt, we can run again this command.

In order, I think :

  • Sentinel/Sentry
  • Database : name
  • Database : Username
  • Database : Password
  • Admin user account : First name
  • Admin user account : Last name
  • Admin user account : Email
  • Admin user account : Password
  • Admin user account : Confirm Password

Installation error with MySQL in mode STRICT_TRANS_TABLE (default with MySQL 5.6+)

Migrated: 2015_04_02_184200_create_widgets_table

  Seeds
  Running the module seeds ...

Module [Setting] seeded.
SQLSTATE[HY000]: General error: 1364 Field 'status' doesn't have a default value (SQL: insert into `page__page_translations` (`locale`, `title`, `slug`, `body`, `meta_title`, `page_id`, `updated_at`, `created_at`) values (en, Home page, home, <p><strong>You made it!</strong></p>
<p>You&#39;ve installed AsgardCMS and are ready to proceed to the <a href="/en/backend">administration area</a>.</p>
<h2>What&#39;s next Home page</h2>
<p>Learn how you can develop modules for AsgardCMS by reading our <a href="https://github.com/AsgardCms/Documentation">documentation</a>.</p>
, 1, 2015-06-01 13:53:19, 2015-06-01 13:53:19, ?))

Add button to remove modules

Add a button next to disable module in the workshop module, to remove a module.

Thinks to consider:

  • Don't delete a core module
  • Remove the module permissions from DB (this might be tricky since every auth driver implements permissions differently)
  • Remove the module published assets (public/modules/{name})

Language tab display incorrectly

Instead of simply displaying the language name in a tab eg: Chinese (simplified), the language name is displayed thus:

core::core.tab.chinese (simplified)

screen shot 2015-06-09 at 09 40 44

Add an assets manager

Add a way to add assets to the view.

So in the view we can just loop over those to include assets.

API draft:

$this->assetPipeline->javascript->require('jquery');
$this->assetPipeline->css->require('main');
# $this->assetManager->addAsset('keyname '/path/to/asset', order);
$this->assetManager->addAsset('jquery', '/path/to/asset.js', 1);
$this->assetManager->addAsset('main', '/path/to/asset.css', 1);
$this->assetManager->allCss()
$this->assetManager->allJs()

Integration with Stapler?

I think it would interesting to be able to integrate Stapler (should it get updated to a L5-stable version) into AsgardCMS, since Stapler provides out-of-the-box support for stuff like partitioned filepaths and Amazon S3 storage. It would make for a terrific combination with the whole media-library idea.

File slug isn't unique

There should be a unique check on the file slug.

A big problem for this: the file slug is not yet created at that point.

Modules update to latest Laravel 5 progress

The current progress of upgrading all Modules to the latest version of Laravel 5.

  • Core
  • Dashboard
  • User
  • Setting
  • Menu
  • Page
  • Media
  • Workshop
  • Blog

After all Modules are migrated, the platform repository will be updated to latest laravel 5 version and using the latest modules versions.

Backend error after installation

I've just install AsgardCms and after I login backend I get:
FatalErrorException in compiled.php line 1039

from log:
PHP message: PHP 61. Illuminate\View\Engines\PhpEngine->evaluatePath() /home/pavel/Code/asgardcms/bootstrap/cache/compiled.php:14240
PHP message: PHP 62. include() /home/pavel/Code/asgardcms/bootstrap/cache/compiled.php:14206
PHP message: PHP 63. Illuminate\View\View->render() /home/pavel/Code/asgardcms/storage/framework/views/02a792ed0def4b4c8b7225a181f45171:160
PHP message: PHP 64. Illuminate\View\View->renderContents() /home/pavel/Code/asgardcms/bootstrap/cache/compiled.php:14055
PHP message: PHP 65. Illuminate\View\View->getContents() /home/pavel/Code/asgardcms/bootstrap/cache/compiled.php:14064
PHP message: PHP 66. Illuminate\View\Engines\CompilerEngine->get() /home/pavel/Code/asgardcms/bootstrap/cache/compiled.php:14077
PHP message: PHP 67. Illuminate\View\Engines\PhpEngine->evaluatePath() /home/pavel/Code/asgardcms/bootstrap/cache/compiled.php:14240
PHP message: PHP 68. include() /home/pavel/Code/asgardcms/bootstrap/cache/compiled.php:14206
PHP message: PHP 69. Illuminate\View\Factory->make() /home/pavel/Code/asgardcms/storage/framework/views/1e9c3965dee229487b53b2437e835b89:37
PHP message: PHP 70. Illuminate\View\Factory->callCreator() /home/pavel/Code/asgardcms/bootstrap/cache/co

Could you please help me? Thanks.
Pavel.

New issue on fresh installation

FatalErrorException in E:\Jekyll\agardcms\vendor\maatwebsite\laravel-sidebar\src\Maatwebsite\Sidebar\SidebarBadge.php line 3:

Maximum function nesting level of '100' reached, aborting!

Pb with installation

When I try php artisan asgard:install, I have an error at the end of script :

[Predis\Connection\ConnectionException]    
Connection refused [tcp://127.0.0.1:6379]

Validation of models

Would it be possible to do all model validation within the models themselves using https://github.com/dwightwatson/validating for example, in addition (or instead of) using the BaseFormRequest classes to define rules concerning data validation?

For example:

<?php

use Watson\Validating\ValidatingTrait;
use Dimsav\Translatable\Translatable;

class Post extends Eloquent {
  use Translatable;
  use ValidatingTrait;

  protected $rules = [
    'title' => 'required',
    'body' => 'required'
  ];
}

It would make doing more complex stuff regarding validation easier, since you'd have direct access to your model when defining rules (such as: defining rules dynamically for example).

Would love to hear your thoughts about this!

Add prompt control during installation process

When you have a password prompt, you should have an other prompt for confirm this password and a loop for check if this two entries are same.

And I think you should add a chek prompt at the end of prompts who resume all entries and ask if all it's OK.

module:publish-migration

In my opinion, the php artisan module:publish-migration should be part of the Composer post-install-cmd and post-update-cmd, to keep everything centralized and not force developers to change the way migrations work or the way they are executed.

See also #51.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.