Skip to content
forked from uatrend/pagekit

A modular and lightweight CMS built with Symfony components and Vue.js。Pagekit CMS upgrade version, support PHP7.4, PHP8.0, PHP8.1, PHP8.2, PHP8.3, PHP8.4, support Mysql 8.4, update to Symfony 5.4, Composer 2.0

License

Notifications You must be signed in to change notification settings

cssailing/pagekit

 
 

Repository files navigation

Pagekit

Symfony Vue UIkit Build Status Discord

Preview summary
Pagekit Dashboard Pagekit home page
Installer languages Installer buttons option-back-next Installer select demo content
Editor settings Storage Modal starage
Page Edit Page theme settings Site theme settings
Theme-one Blog page Position page

Homepage - Official home page.

This is an updated build Pagekit CMS (for developers).

Build includes the following updated components:

Download the latest code, install from source before installation.
The installation procedure is the same as in the official documentation.

Marketplace functionality like install, update and remove works the same like in original version.

Note! Before enabling extensions, update them for compatibility. Debug mode and debug panel work the same as in the main version.


Major changes:

  • Required PHP Version - 7.4+, support for PHP 8.0, 8.1, 8.2
  • Required MySQL Version - 5.7+, support for MySQL 8.4
  • Required Node Version - 14.0+, support for Node 16.0, 18.0
  • Required Composer Version - 2.0+
  • Required Yarn Version - 1.22.0+
  • Used Symfony 5.4 framework
  • Used UIkit 3 and Vue 2 frameworks
  • Updated Symfony and Composer frameworks
  • Updated Composer dependencies
  • Updated Node dependencies
  • Updated PHP core components
  • Updated Javascript core components

Removed jQuery from all scripts. UIkit functions are used instead. Several bugs that are present in the original assembly have been fixed, some styles have been changed for ease of use. The mobile version has remained the same with minor changes.

Install from source

You can install Node dependencies, build the front-end components and run scripts via yarn.

Clone Repository

$ git clone [email protected]:cssailing/pagekit.git project-folder
$ cd project-folder

Install PHP dependencies

$ composer install

Install Node dependencies

if Node Version > node@14, run

export NODE_OPTIONS=--openssl-legacy-provider 

then

$ yarn install

Docker run

$ docker-compose up -d

Open http://localhost:8080 in your browser for the site

Open http://localhost:8080/admin in your browser for phpmyadmin

Scripts

Javascript watch or compile:

$ yarn watch-js
$ yarn compile-js

To build in production mode:

$ yarn compile-js --mode=production

LESS watch or compile:

$ yarn watch-less
$ yarn compile-less

JS/LESS watch at the same time:

$ yarn watch-all

ESlint lint or watch *.js/*.vue files:

$ yarn lint
$ yarn lint-watch

CLDR locale data:

$ yarn cldr

Copying required assets:

$ yarn assets

Admin theme

Theme is fully compatible with UIkit 3. Reworked scripts, layout and colors. Added side and top menus with dropdowns. Removed unused styles.

For individual markup of each page, added a class page in the body tag automatically generated through PHP.

For example, body class for dashboard page looks like:

<body class=“dashboard”>

and for system Settings:

<body class=“system-settings”>

Theme icons

uikit-icons.js are now used for Pagekit icons.

Editor Settings

You can choose the default editor in the system settings:

  • HTML Editor
  • Tinymce (with split mode option)
  • Codemirror

Moved all editors dependencies to editor/assets folder.

Theme Plugin

(added to core /app/system/app/lib/theme.js)

Ability to programmatically configure the buttons, dropdown lists, pagination and search form in the top menu for each component used (see code).

Example: dashboard - index.js

name: 'dashboard',

mixins: [Theme.Mixins.Helper],

...

theme: {
    hideEls: '#dashboard > div:first-child > div:last-child',
    elements() {
        var vm = this;
        return {
            addwidget: {
                scope: 'topmenu-left',
                type: 'dropdown',
                caption: 'Add Widget',
                class: 'uk-button uk-button-text',
                icon: { attrs: { 'uk-icon': 'triangle-down' }},
                dropdown: { options: () => 'mode: click' },
                items: () => vm.getTypes().map((type) => {
                    let props = {
                        on: {click: () => vm.add(type)},
                        caption: type.label,
                        class: 'uk-dropdown-close'
                    }
                    return {...type, ...props}
                }),
            }
        }
    }
}

Adding side menu items through PHP - $view->$data()

'view.data' => function ($event, $data) use ($app) {
    if (!$app->isAdmin()) {
        return;
    }
    $data->add('Theme', [
        'SidebarItems' => [
            'additem' => [
                'addpost' => [
                    'caption' => 'Add Post',
                    'attrs' => [
                        'href' => $app['url']->get('admin/blog/post/edit')
                    ],
                    'priority' => 1
                ]
            ]
        ]
    ]);
}

Thanks

Thanks to Yootheme and developers!

Thanks to uatrend !

About

A modular and lightweight CMS built with Symfony components and Vue.js。Pagekit CMS upgrade version, support PHP7.4, PHP8.0, PHP8.1, PHP8.2, PHP8.3, PHP8.4, support Mysql 8.4, update to Symfony 5.4, Composer 2.0

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 74.8%
  • JavaScript 7.5%
  • Less 7.1%
  • Vue 6.5%
  • CSS 3.9%
  • HTML 0.2%