├── app ├── source │ ├── styles │ │ ├── update.scss │ │ ├── dashboard.scss │ │ ├── login.scss │ │ ├── partials │ │ │ ├── _nanobar.scss │ │ │ ├── _utilities.scss │ │ │ ├── _se-preview.scss │ │ │ ├── _announce.scss │ │ │ ├── _alertable.scss │ │ │ ├── _layout.scss │ │ │ ├── _loader.scss │ │ │ ├── _panel.scss │ │ │ ├── _badge-cover.scss │ │ │ ├── _locater.scss │ │ │ ├── _variables.scss │ │ │ ├── _editor-toolbar.scss │ │ │ ├── _overrides.scss │ │ │ └── _input-inner-addon.scss │ │ ├── import.scss │ │ ├── admin-toolbar.scss │ │ ├── navigation.scss │ │ ├── editor.scss │ │ ├── lib.scss │ │ ├── tags.scss │ │ ├── users.scss │ │ └── plugins.scss │ ├── templates │ │ ├── tags.new.hbs │ │ ├── posts.new.hbs │ │ ├── users.new.hbs │ │ ├── partials │ │ │ ├── admin-toolbar.hbs │ │ │ ├── locater-items.hbs │ │ │ ├── footer.hbs │ │ │ ├── navigation-item.hbs │ │ │ ├── user-list.hbs │ │ │ ├── tag-list.hbs │ │ │ ├── header.hbs │ │ │ ├── media-list.hbs │ │ │ ├── backups-table.hbs │ │ │ ├── menu.hbs │ │ │ ├── update-table.hbs │ │ │ ├── plugin-list.hbs │ │ │ ├── history-table.hbs │ │ │ └── post-list.hbs │ │ ├── update.hbs │ │ ├── dashboard.hbs │ │ ├── login.recover.hbs │ │ ├── login.reset.hbs │ │ ├── error.system.hbs │ │ ├── maintenance.hbs │ │ ├── login.hbs │ │ ├── plugins.hbs │ │ ├── tags.hbs │ │ ├── users.hbs │ │ ├── uploads.hbs │ │ ├── helpers │ │ │ └── admin.php │ │ └── navigation.hbs │ ├── images │ │ ├── leaf.jpg │ │ ├── note.jpg │ │ ├── autumn.jpg │ │ ├── leaves.jpg │ │ ├── light.jpg │ │ ├── app-icon.png │ │ ├── flowers.jpg │ │ ├── ladybug.jpg │ │ ├── ladybug.png │ │ ├── raccoon.jpg │ │ ├── sunflower.jpg │ │ ├── loader-dark.gif │ │ ├── logo-color.png │ │ ├── loader-light.gif │ │ ├── icon-plus-white.svg │ │ └── icon-pencil-white.svg │ ├── defaults │ │ ├── default.robots.txt │ │ ├── default.database.php │ │ ├── default.htaccess │ │ ├── post.themes.html │ │ ├── post.support.html │ │ ├── post.editor.html │ │ └── post.welcome.html │ ├── config │ │ ├── themes.json │ │ ├── plugins.json │ │ ├── middleware.php │ │ ├── dependencies.php │ │ └── languages.json │ ├── classes │ │ ├── Events │ │ │ ├── ILeafpubEvent.php │ │ │ ├── Tag │ │ │ │ ├── Add.php │ │ │ │ ├── Added.php │ │ │ │ ├── Delete.php │ │ │ │ ├── Deleted.php │ │ │ │ ├── Update.php │ │ │ │ ├── Updated.php │ │ │ │ ├── Retrieve.php │ │ │ │ ├── Retrieved.php │ │ │ │ ├── BeforeRender.php │ │ │ │ ├── ManyRetrieve.php │ │ │ │ └── ManyRetrieved.php │ │ │ ├── Post │ │ │ │ ├── Add.php │ │ │ │ ├── Added.php │ │ │ │ ├── Delete.php │ │ │ │ ├── Update.php │ │ │ │ ├── Deleted.php │ │ │ │ ├── Updated.php │ │ │ │ ├── PostViewed.php │ │ │ │ ├── Retrieve.php │ │ │ │ ├── Retrieved.php │ │ │ │ ├── ManyRetrieve.php │ │ │ │ ├── BeforeRender.php │ │ │ │ └── ManyRetrieved.php │ │ │ ├── User │ │ │ │ ├── Add.php │ │ │ │ ├── Added.php │ │ │ │ ├── Delete.php │ │ │ │ ├── Update.php │ │ │ │ ├── Deleted.php │ │ │ │ ├── Updated.php │ │ │ │ ├── Retrieve.php │ │ │ │ ├── Retrieved.php │ │ │ │ ├── ManyRetrieve.php │ │ │ │ ├── BeforeRender.php │ │ │ │ └── ManyRetrieved.php │ │ │ ├── Upload │ │ │ │ ├── Add.php │ │ │ │ ├── Added.php │ │ │ │ ├── Delete.php │ │ │ │ ├── Deleted.php │ │ │ │ ├── Update.php │ │ │ │ ├── Updated.php │ │ │ │ ├── Retrieve.php │ │ │ │ ├── Retrieved.php │ │ │ │ ├── BeforeRender.php │ │ │ │ ├── ManyRetrieve.php │ │ │ │ ├── ManyRetrieved.php │ │ │ │ ├── SaveImageFile.php │ │ │ │ └── GenerateThumbnail.php │ │ │ ├── Application │ │ │ │ ├── Login.php │ │ │ │ ├── Logout.php │ │ │ │ ├── Startup.php │ │ │ │ ├── MailSend.php │ │ │ │ ├── Shutdown.php │ │ │ │ ├── LeafpubFoot.php │ │ │ │ ├── LeafpubHead.php │ │ │ │ └── MailCompose.php │ │ │ ├── Navigation │ │ │ │ └── AdminMenu.php │ │ │ └── LeafpubEvent.php │ │ ├── Mailer │ │ │ ├── MailerException.php │ │ │ ├── Bridge │ │ │ │ ├── MailerInterface.php │ │ │ │ └── MailMailer.php │ │ │ └── Mail │ │ │ │ ├── AddressFactory.php │ │ │ │ ├── Mail.php │ │ │ │ ├── MailFactory.php │ │ │ │ └── Address.php │ │ ├── Models │ │ │ ├── Tables │ │ │ │ ├── Tag.php │ │ │ │ ├── Post.php │ │ │ │ ├── User.php │ │ │ │ ├── Plugin.php │ │ │ │ ├── Upload.php │ │ │ │ ├── History.php │ │ │ │ ├── PostMeta.php │ │ │ │ ├── PostTags.php │ │ │ │ ├── PostUploads.php │ │ │ │ ├── UploadTags.php │ │ │ │ ├── Setting.php │ │ │ │ ├── TableGateway.php │ │ │ │ └── TruncateTable.php │ │ │ ├── Ddl │ │ │ │ ├── Column │ │ │ │ │ ├── Boolean.php │ │ │ │ │ ├── Longtext.php │ │ │ │ │ └── Enum.php │ │ │ │ ├── Constraint │ │ │ │ │ └── Fulltext.php │ │ │ │ ├── Drop.php │ │ │ │ ├── Setting.php │ │ │ │ ├── PostTags.php │ │ │ │ ├── UploadTags.php │ │ │ │ ├── PostUploads.php │ │ │ │ ├── PostMeta.php │ │ │ │ ├── History.php │ │ │ │ ├── Tag.php │ │ │ │ ├── Upload.php │ │ │ │ ├── User.php │ │ │ │ ├── Plugin.php │ │ │ │ └── Post.php │ │ │ ├── ModelInterface.php │ │ │ ├── AbstractModel.php │ │ │ └── PostMeta.php │ │ ├── Listeners │ │ │ └── Application.php │ │ ├── Controller │ │ │ └── Controller.php │ │ ├── Importer │ │ │ └── ImportFactory.php │ │ ├── Importer.php │ │ ├── Mailer.php │ │ ├── Widget.php │ │ ├── Error.php │ │ └── Theme.php │ ├── scripts │ │ ├── update.js │ │ ├── lib.js │ │ ├── installer.js │ │ ├── login.js │ │ └── modules │ │ │ └── reauthenticate.js │ └── runtime.php ├── backups │ └── .gitignore └── content │ ├── cache │ └── .gitignore │ ├── plugins │ └── .gitignore │ ├── themes │ └── .gitignore │ └── uploads │ ├── 2016 │ └── 10 │ │ ├── leaf.jpg │ │ ├── note.jpg │ │ ├── autumn.jpg │ │ ├── leaves.jpg │ │ ├── light.jpg │ │ ├── flowers.jpg │ │ ├── ladybug.jpg │ │ ├── sunflower.jpg │ │ └── logo-color.png │ └── .gitignore ├── .editorconfig ├── .gitignore ├── .jshintrc ├── .github ├── ISSUE_TEMPLATE.md └── PULL_REQUEST_TEMPLATE.md ├── composer.json ├── package.json └── INSTALL.md /app/source/styles/update.scss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/backups/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /app/content/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /app/content/plugins/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /app/content/themes/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /app/source/templates/tags.new.hbs: -------------------------------------------------------------------------------- 1 | {{> tags.edit}} -------------------------------------------------------------------------------- /app/source/templates/posts.new.hbs: -------------------------------------------------------------------------------- 1 | {{> posts.edit}} -------------------------------------------------------------------------------- /app/source/templates/users.new.hbs: -------------------------------------------------------------------------------- 1 | {{> users.edit}} -------------------------------------------------------------------------------- /app/content/uploads/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | !2016/10/** -------------------------------------------------------------------------------- /app/source/styles/dashboard.scss: -------------------------------------------------------------------------------- 1 | // Gridstack 2 | @import "gridstack/src/gridstack"; -------------------------------------------------------------------------------- /app/source/images/leaf.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Leafpub/leafpub/HEAD/app/source/images/leaf.jpg -------------------------------------------------------------------------------- /app/source/images/note.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Leafpub/leafpub/HEAD/app/source/images/note.jpg -------------------------------------------------------------------------------- /app/source/defaults/default.robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: /admin/ 3 | 4 | Sitemap: {{sitemap_url}} -------------------------------------------------------------------------------- /app/source/images/autumn.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Leafpub/leafpub/HEAD/app/source/images/autumn.jpg -------------------------------------------------------------------------------- /app/source/images/leaves.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Leafpub/leafpub/HEAD/app/source/images/leaves.jpg -------------------------------------------------------------------------------- /app/source/images/light.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Leafpub/leafpub/HEAD/app/source/images/light.jpg -------------------------------------------------------------------------------- /app/source/images/app-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Leafpub/leafpub/HEAD/app/source/images/app-icon.png -------------------------------------------------------------------------------- /app/source/images/flowers.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Leafpub/leafpub/HEAD/app/source/images/flowers.jpg -------------------------------------------------------------------------------- /app/source/images/ladybug.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Leafpub/leafpub/HEAD/app/source/images/ladybug.jpg -------------------------------------------------------------------------------- /app/source/images/ladybug.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Leafpub/leafpub/HEAD/app/source/images/ladybug.png -------------------------------------------------------------------------------- /app/source/images/raccoon.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Leafpub/leafpub/HEAD/app/source/images/raccoon.jpg -------------------------------------------------------------------------------- /app/source/images/sunflower.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Leafpub/leafpub/HEAD/app/source/images/sunflower.jpg -------------------------------------------------------------------------------- /app/source/images/loader-dark.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Leafpub/leafpub/HEAD/app/source/images/loader-dark.gif -------------------------------------------------------------------------------- /app/source/images/logo-color.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Leafpub/leafpub/HEAD/app/source/images/logo-color.png -------------------------------------------------------------------------------- /app/content/uploads/2016/10/leaf.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Leafpub/leafpub/HEAD/app/content/uploads/2016/10/leaf.jpg -------------------------------------------------------------------------------- /app/content/uploads/2016/10/note.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Leafpub/leafpub/HEAD/app/content/uploads/2016/10/note.jpg -------------------------------------------------------------------------------- /app/source/images/loader-light.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Leafpub/leafpub/HEAD/app/source/images/loader-light.gif -------------------------------------------------------------------------------- /app/content/uploads/2016/10/autumn.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Leafpub/leafpub/HEAD/app/content/uploads/2016/10/autumn.jpg -------------------------------------------------------------------------------- /app/content/uploads/2016/10/leaves.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Leafpub/leafpub/HEAD/app/content/uploads/2016/10/leaves.jpg -------------------------------------------------------------------------------- /app/content/uploads/2016/10/light.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Leafpub/leafpub/HEAD/app/content/uploads/2016/10/light.jpg -------------------------------------------------------------------------------- /app/content/uploads/2016/10/flowers.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Leafpub/leafpub/HEAD/app/content/uploads/2016/10/flowers.jpg -------------------------------------------------------------------------------- /app/content/uploads/2016/10/ladybug.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Leafpub/leafpub/HEAD/app/content/uploads/2016/10/ladybug.jpg -------------------------------------------------------------------------------- /app/content/uploads/2016/10/sunflower.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Leafpub/leafpub/HEAD/app/content/uploads/2016/10/sunflower.jpg -------------------------------------------------------------------------------- /app/content/uploads/2016/10/logo-color.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Leafpub/leafpub/HEAD/app/content/uploads/2016/10/logo-color.png -------------------------------------------------------------------------------- /app/source/styles/login.scss: -------------------------------------------------------------------------------- 1 | @import 'partials/variables'; 2 | 3 | .login-form { 4 | max-width: 18rem; 5 | margin: 12vh auto; 6 | } 7 | 8 | .logo { 9 | width: 6rem; 10 | } -------------------------------------------------------------------------------- /app/source/styles/partials/_nanobar.scss: -------------------------------------------------------------------------------- 1 | // Nanobar plugin 2 | .nanobar { 3 | height: 5px; 4 | overflow: hidden; 5 | .bar { 6 | background-color: $leafpub-blue; 7 | } 8 | } -------------------------------------------------------------------------------- /app/source/templates/partials/admin-toolbar.hbs: -------------------------------------------------------------------------------- 1 |
-------------------------------------------------------------------------------- /app/source/config/themes.json: -------------------------------------------------------------------------------- 1 | [ 2 | {"name": "Range", "url": "https://github.com/Leafpub/range"}, 3 | {"name": "Casper", "url": "https://github.com/Leafpub/casper"}, 4 | {"name": "Mapache", "url": "https://github.com/Leafpub/mapache"} 5 | ] -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | indent_style = space 5 | indent_size = 4 6 | end_of_line = lf 7 | charset = utf-8 8 | trim_trailing_whitespace = true 9 | insert_final_newline = false 10 | 11 | [*.md] 12 | trim_trailing_whitespace = false -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Files 2 | .DS_Store 3 | .htaccess 4 | npm-debug.log 5 | 6 | # Folders 7 | /app/database.php 8 | /app/db_upload_fix.php 9 | /app/source/assets 10 | /app/source/vendor 11 | /app/log 12 | /design 13 | /dist 14 | /node_modules 15 | .vscode -------------------------------------------------------------------------------- /app/source/styles/partials/_utilities.scss: -------------------------------------------------------------------------------- 1 | // Vertical alignment 2 | .valign { 3 | display: table; 4 | width: 100%; 5 | height: 100%; 6 | .valign-middle { 7 | display: table-cell; 8 | vertical-align: middle; 9 | } 10 | } -------------------------------------------------------------------------------- /app/source/config/plugins.json: -------------------------------------------------------------------------------- 1 | [ 2 | {"name": "SwiftMailer", "url": "https://github.com/Leafpub/SwiftMailer"}, 3 | {"name": "Latest Posts", "url": "https://github.com/Leafpub/LatestPosts"}, 4 | {"name": "Quick Post", "url": "https://github.com/Leafpub/QuickPost"} 5 | ] -------------------------------------------------------------------------------- /app/source/classes/Events/ILeafpubEvent.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/source/defaults/default.database.php: -------------------------------------------------------------------------------- 1 | '{{driver}}', 4 | 'host' => '{{host}}', 5 | 'port' => '{{port}}', 6 | 'database' => '{{database}}', 7 | 'user' => '{{user}}', 8 | 'password' => '{{password}}', 9 | 'prefix' => '{{prefix}}', 10 | 'charset' => 'utf8mb4' 11 | ]; -------------------------------------------------------------------------------- /app/source/defaults/default.htaccess: -------------------------------------------------------------------------------- 1 | # Rewrites 2 | RewriteEngine On 3 | 4 | # Uncomment RewriteBase if you are using a subdomain 5 | #RewriteBase / 6 | 7 | # Forbid access to these folders 8 | RewriteRule ^backups/ - [F] 9 | 10 | # Route requests through index 11 | RewriteCond %{REQUEST_FILENAME} !-f 12 | RewriteCond %{REQUEST_FILENAME} !-d 13 | RewriteRule ^ index.php [QSA,L] -------------------------------------------------------------------------------- /.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "browser": true, 3 | "jquery": true, 4 | "bitwise": true, 5 | "eqeqeq": true, 6 | "freeze": true, 7 | "latedef": "nofunc", 8 | "newcap": true, 9 | "noarg": true, 10 | "node": true, 11 | "nonew": true, 12 | "regexp": true, 13 | "undef": true, 14 | "unused": true, 15 | "elision": true, 16 | "notypeof": true 17 | } -------------------------------------------------------------------------------- /app/source/styles/import.scss: -------------------------------------------------------------------------------- 1 | @import "partials/variables"; 2 | 3 | .import-form { 4 | padding: 3rem 1rem; 5 | } 6 | 7 | .upload-xml { 8 | transition: all .5s linear; 9 | opacity: 0; 10 | } 11 | 12 | .upload-xml.visible { 13 | opacity: 1; 14 | } 15 | 16 | // XS breakpoint 17 | @include media-breakpoint-down(xs) { 18 | .import-form { 19 | padding: 1.5rem .5rem; 20 | } 21 | } -------------------------------------------------------------------------------- /app/source/images/icon-plus-white.svg: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /app/source/classes/Mailer/MailerException.php: -------------------------------------------------------------------------------- 1 | add('Leafpub\Middleware:removeTrailingSlashes'); 5 | $app->add('Leafpub\Middleware:maintenance'); 6 | $app->add('Leafpub\Middleware:updateRegister'); 7 | $app->add('Leafpub\Middleware:imageMiddleware'); 8 | if (LEAFPUB_DEV){ 9 | $app->add(new \RunTracy\Middlewares\TracyMiddleware($app)); 10 | $app->add('Leafpub\Middleware:tracy'); 11 | } 12 | ?> -------------------------------------------------------------------------------- /app/source/templates/partials/locater-items.hbs: -------------------------------------------------------------------------------- 1 | {{#each items}} 2 | 3 | {{#if avatar}} 4 |your database scheme version: {{dbScheme}}
10 |The actual scheme version: {{schemeVersion}}
11 | Update 12 |