├── .gitignore ├── README.md ├── app ├── Auth │ ├── CommentPolicy.php │ ├── OptionPolicy.php │ ├── PagePolicy.php │ ├── PostPolicy.php │ ├── TermPolicy.php │ └── UserPolicy.php ├── Controllers │ ├── CategoryController.php │ ├── CommentController.php │ ├── OptionController.php │ ├── PageController.php │ ├── PostController.php │ ├── TagController.php │ └── UserController.php ├── Http │ ├── Kernel.php │ └── Middleware │ │ └── VerifyNonce.php ├── Models │ ├── Attachment.php │ ├── Category.php │ ├── Comment.php │ ├── Option.php │ ├── Page.php │ ├── Post.php │ ├── Tag.php │ └── User.php └── Services │ └── AuthService.php ├── composer.json ├── config ├── app.php ├── editor.php ├── external.php ├── galaxy.php ├── paths.php └── urls.php ├── galaxy ├── init.php ├── package.json ├── resources ├── assets │ ├── js │ │ ├── admin.js │ │ └── theme.js │ └── sass │ │ ├── admin.scss │ │ └── theme.scss ├── components │ └── builder │ │ └── content.php ├── pages │ └── extensions │ │ └── theme-options.php ├── themes │ └── templates │ │ ├── 401.php │ │ ├── 404.php │ │ ├── 500.php │ │ ├── functions.php │ │ ├── index.php │ │ ├── screenshot.png │ │ └── style.css ├── views │ └── master.php └── visuals │ └── builder │ └── content.php ├── routes └── public.php ├── server.php ├── storage └── cache │ └── .gitignore ├── webpack.mix.js └── wordpress └── assets ├── components └── builder │ └── content.png ├── templates ├── admin │ ├── css │ │ └── admin.css │ └── js │ │ └── admin.js ├── mix-manifest.json ├── screenshot.png └── theme │ ├── css │ └── theme.css │ └── js │ └── theme.js └── typerocket ├── css ├── core.css ├── dev.css └── redactor.css ├── fonts ├── typerocket-icons.eot ├── typerocket-icons.svg ├── typerocket-icons.ttf └── typerocket-icons.woff ├── img ├── chosen-sprite.png └── chosen-sprite@2x.png ├── js ├── builder.ext.js ├── core.js ├── global.js ├── lib │ ├── chosen.min.js │ └── redactor │ │ ├── _langs │ │ ├── ar.js │ │ ├── cs.js │ │ ├── da.js │ │ ├── de.js │ │ ├── en.js │ │ ├── es.js │ │ ├── fa.js │ │ ├── fi.js │ │ ├── fr.js │ │ ├── he.js │ │ ├── hr.js │ │ ├── hu.js │ │ ├── it.js │ │ ├── ja.js │ │ ├── ko.js │ │ ├── nl.js │ │ ├── no.js │ │ ├── pl.js │ │ ├── pt_br.js │ │ ├── ro.js │ │ ├── ru.js │ │ ├── sk.js │ │ ├── sl.js │ │ ├── sv.js │ │ ├── tr.js │ │ ├── zh_cn.js │ │ └── zh_tw.js │ │ ├── _plugins │ │ ├── alignment │ │ │ ├── alignment.js │ │ │ └── alignment.min.js │ │ ├── beyondgrammar │ │ │ ├── beyondgrammar.js │ │ │ └── beyondgrammar.min.js │ │ ├── clips │ │ │ ├── clips.css │ │ │ ├── clips.js │ │ │ ├── clips.min.css │ │ │ └── clips.min.js │ │ ├── counter │ │ │ ├── counter.js │ │ │ └── counter.min.js │ │ ├── definedlinks │ │ │ ├── definedlinks.js │ │ │ └── definedlinks.min.js │ │ ├── filemanager │ │ │ ├── filemanager.css │ │ │ ├── filemanager.js │ │ │ ├── filemanager.min.css │ │ │ └── filemanager.min.js │ │ ├── fontcolor │ │ │ ├── fontcolor.js │ │ │ └── fontcolor.min.js │ │ ├── fontfamily │ │ │ ├── fontfamily.js │ │ │ └── fontfamily.min.js │ │ ├── fontsize │ │ │ ├── fontsize.js │ │ │ └── fontsize.min.js │ │ ├── fullscreen │ │ │ ├── fullscreen.js │ │ │ └── fullscreen.min.js │ │ ├── handle │ │ │ ├── handle.css │ │ │ ├── handle.js │ │ │ ├── handle.min.css │ │ │ └── handle.min.js │ │ ├── imagemanager │ │ │ ├── imagemanager.js │ │ │ └── imagemanager.min.js │ │ ├── inlinestyle │ │ │ ├── inlinestyle.css │ │ │ ├── inlinestyle.js │ │ │ ├── inlinestyle.min.css │ │ │ └── inlinestyle.min.js │ │ ├── limiter │ │ │ ├── limiter.js │ │ │ └── limiter.min.js │ │ ├── properties │ │ │ ├── properties.js │ │ │ └── properties.min.js │ │ ├── specialchars │ │ │ ├── specialchars.js │ │ │ └── specialchars.min.js │ │ ├── table │ │ │ ├── table.js │ │ │ └── table.min.js │ │ ├── textdirection │ │ │ ├── textdirection.js │ │ │ └── textdirection.min.js │ │ ├── textexpander │ │ │ ├── textexpander.js │ │ │ └── textexpander.min.js │ │ ├── variable │ │ │ ├── variable.css │ │ │ ├── variable.js │ │ │ ├── variable.min.css │ │ │ └── variable.min.js │ │ ├── video │ │ │ ├── video.js │ │ │ └── video.min.js │ │ └── widget │ │ │ ├── widget.js │ │ │ └── widget.min.js │ │ ├── redactor.js │ │ └── redactor.min.js └── location.field.js └── mix-manifest.json /.gitignore: -------------------------------------------------------------------------------- 1 | # Your Files 2 | 3 | # Vendor 4 | node_modules 5 | /vendor 6 | package-lock.json 7 | 8 | # Environment 9 | .env 10 | /wp-config.php 11 | /sql/run/* 12 | .phpunit.result.cache 13 | npm-debug.log 14 | yarn-error.log 15 | /galaxy-config.php 16 | 17 | # WordPress 18 | /wordpress/*.* 19 | /wordpress/.maintenance 20 | /wordpress/wp-admin 21 | /wordpress/wp-includes 22 | /wordpress/wp-content/* 23 | !/wordpress/wp-content/mu-plugins/ 24 | 25 | # Source Maps 26 | *.css.map 27 | *.js.map 28 | 29 | # OS 30 | *~ 31 | .DS_Store* 32 | ehthumbs.db 33 | Thumbs.db 34 | 35 | # IDE 36 | .idea 37 | .settings 38 | .project 39 | .build 40 | .vscode 41 | 42 | # File Types 43 | *.log 44 | *.zip 45 | .svn -------------------------------------------------------------------------------- /app/Auth/CommentPolicy.php: -------------------------------------------------------------------------------- 1 | isCapable('edit_posts') || $comment->getUserID() == $auth->getID()) { 13 | return true; 14 | } 15 | 16 | return false; 17 | } 18 | 19 | public function create(AuthUser $auth) 20 | { 21 | if( $auth->isCapable('edit_posts') ) { 22 | return true; 23 | } 24 | 25 | return false; 26 | } 27 | 28 | public function destroy(AuthUser $auth, WPComment $comment) 29 | { 30 | if( $auth->isCapable('edit_posts') || $comment->getUserID() == $auth->getID()) { 31 | return true; 32 | } 33 | 34 | return false; 35 | } 36 | } -------------------------------------------------------------------------------- /app/Auth/OptionPolicy.php: -------------------------------------------------------------------------------- 1 | isCapable('manage_options') ) { 13 | return true; 14 | } 15 | 16 | return false; 17 | } 18 | 19 | public function create(AuthUser $auth) 20 | { 21 | if( $auth->isCapable('manage_options') ) { 22 | return true; 23 | } 24 | 25 | return false; 26 | } 27 | 28 | public function destroy(AuthUser $auth) 29 | { 30 | if( $auth->isCapable('manage_options') ) { 31 | return true; 32 | } 33 | 34 | return false; 35 | } 36 | 37 | 38 | } -------------------------------------------------------------------------------- /app/Auth/PagePolicy.php: -------------------------------------------------------------------------------- 1 | isCapable('edit_pages') || $auth->getID() == $page->getUserID()) { 17 | return true; 18 | } 19 | 20 | return false; 21 | } 22 | 23 | public function create(AuthUser $auth ) 24 | { 25 | if( $auth->isCapable('edit_pages') ) { 26 | return true; 27 | } 28 | 29 | return false; 30 | } 31 | 32 | public function destroy(AuthUser $auth, Page $page) 33 | { 34 | if( $auth->isCapable('delete_pages') || $page->getUserID() == $auth->getID()) { 35 | return true; 36 | } 37 | 38 | return false; 39 | } 40 | 41 | } -------------------------------------------------------------------------------- /app/Auth/PostPolicy.php: -------------------------------------------------------------------------------- 1 | isCapable('edit_posts') || $auth->getID() == $post->getUserID()) { 17 | return true; 18 | } 19 | 20 | return false; 21 | } 22 | 23 | public function create(AuthUser $auth ) 24 | { 25 | if( $auth->isCapable('edit_posts') ) { 26 | return true; 27 | } 28 | 29 | return false; 30 | } 31 | 32 | public function destroy(AuthUser $auth, WPPost $post) 33 | { 34 | if( $auth->isCapable('edit_posts') || $post->getUserID() == $auth->getID()) { 35 | return true; 36 | } 37 | 38 | return false; 39 | } 40 | 41 | } -------------------------------------------------------------------------------- /app/Auth/TermPolicy.php: -------------------------------------------------------------------------------- 1 | isCapable('manage_categories') ) { 12 | return true; 13 | } 14 | 15 | return false; 16 | } 17 | 18 | public function create(AuthUser $auth) 19 | { 20 | if( $auth->isCapable('manage_categories') ) { 21 | return true; 22 | } 23 | 24 | return false; 25 | } 26 | 27 | public function destroy(AuthUser $auth) 28 | { 29 | if( $auth->isCapable('manage_categories') ) { 30 | return true; 31 | } 32 | 33 | return false; 34 | } 35 | } -------------------------------------------------------------------------------- /app/Auth/UserPolicy.php: -------------------------------------------------------------------------------- 1 | isCapable('edit_users') || $user->getID() != $auth->getID()) { 13 | return true; 14 | } 15 | 16 | return false; 17 | } 18 | 19 | public function create(AuthUser $auth) 20 | { 21 | if( $auth->isCapable('create_users') ) { 22 | return true; 23 | } 24 | 25 | return false; 26 | } 27 | 28 | public function destroy(AuthUser $auth, WPUser $user) 29 | { 30 | if( $auth->isCapable('delete_users') || $user->getID() != $auth->getID()) { 31 | return true; 32 | } 33 | 34 | return false; 35 | } 36 | } -------------------------------------------------------------------------------- /app/Controllers/CategoryController.php: -------------------------------------------------------------------------------- 1 | 17 | [], 18 | 'http' => 19 | [ VerifyNonce::class ], 20 | 'user' => 21 | [ CanEditUsers::class ], 22 | 'post' => 23 | [ CanEditPosts::class ], 24 | 'comment' => 25 | [ CanEditComments::class ], 26 | 'option' => 27 | [ CanManageOptions::class ], 28 | 'term' => 29 | [ CanManageCategories::class ], 30 | 'search' => 31 | [ AuthAdmin::class ], 32 | 'rest' => 33 | [ AuthAdmin::class ], 34 | ]; 35 | } 36 | -------------------------------------------------------------------------------- /app/Http/Middleware/VerifyNonce.php: -------------------------------------------------------------------------------- 1 | belongsToTaxonomy(Category::class, 'category'); 13 | } 14 | 15 | public function tags() 16 | { 17 | return $this->belongsToTaxonomy(Tag::class, 'post_tag'); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /app/Models/Tag.php: -------------------------------------------------------------------------------- 1 | '\App\Auth\PostPolicy', 11 | '\App\Models\Page' => '\App\Auth\PagePolicy', 12 | '\App\Models\Attachment' => '\App\Auth\PostPolicy', 13 | '\App\Models\Tag' => '\App\Auth\TermPolicy', 14 | '\App\Models\Category' => '\App\Auth\TermPolicy', 15 | '\App\Models\Option' => '\App\Auth\OptionPolicy', 16 | '\App\Models\User' => '\App\Auth\UserPolicy', 17 | '\App\Models\Comment' => '\App\Auth\CommentPolicy', 18 | 19 | // TypeRocket 20 | '\TypeRocket\Models\WPPost' => '\App\Auth\PostPolicy', 21 | '\TypeRocket\Models\WPTerm' => '\App\Auth\TermPolicy', 22 | '\TypeRocket\Models\WPUser' => '\App\Auth\UserPolicy', 23 | '\TypeRocket\Models\WPComment' => '\App\Auth\CommentPolicy', 24 | '\TypeRocket\Models\WPOption' => '\App\Auth\OptionPolicy', 25 | ]; 26 | } -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "typerocket/pro", 3 | "description": "TypeRocket Pro for WordPress.", 4 | "keywords": ["framework", "typerocket", "wordpress"], 5 | "license": "GPL-3.0-or-later", 6 | "homepage": "https://typerocket.com", 7 | "repositories": { 8 | "wpackagist": { 9 | "type": "composer", 10 | "url": "https://wpackagist.org" 11 | } 12 | }, 13 | "authors": [ 14 | { 15 | "name": "Robojuice", 16 | "homepage": "https://robojuice.com", 17 | "role": "Creator" 18 | } 19 | ], 20 | "support": { 21 | "docs": "https://typerocket.com/docs/v1/" 22 | }, 23 | "require": { 24 | "php": ">=7", 25 | "typerocket/pro-core": "^1.1", 26 | "ext-json": "*" 27 | }, 28 | "scripts": { 29 | "post-create-project-cmd": [ 30 | "php galaxy config:seed" 31 | ], 32 | "post-update-cmd": [ 33 | "php galaxy core:update" 34 | ] 35 | }, 36 | "minimum-stability": "stable" 37 | } -------------------------------------------------------------------------------- /config/app.php: -------------------------------------------------------------------------------- 1 | [ 12 | '\TypeRocket\Extensions\Seo' => [ null ], 13 | '\TypeRocket\Extensions\PageBuilder' => null, 14 | '\TypeRocket\Extensions\PostTypesUI' => null, 15 | '\TypeRocket\Extensions\ThemeOptions' => null, 16 | '\TypeRocket\Extensions\DevTools' => [ true ], 17 | '\TypeRocket\Extensions\PostMessages' => null, 18 | '\TypeRocket\Extensions\Gutenberg' => [ true ], 19 | ], 20 | 21 | /* 22 | |-------------------------------------------------------------------------- 23 | | Services 24 | |-------------------------------------------------------------------------- 25 | | 26 | | Services you want loaded into the container as singletons. 27 | | 28 | */ 29 | 'services' => [ 30 | '\App\Services\AuthService', 31 | ], 32 | 33 | /* 34 | |-------------------------------------------------------------------------- 35 | | Front-end 36 | |-------------------------------------------------------------------------- 37 | | 38 | | Require TypeRocket on the front-end. 39 | | 40 | */ 41 | 'frontend' => false, 42 | 43 | /* 44 | |-------------------------------------------------------------------------- 45 | | Debug 46 | |-------------------------------------------------------------------------- 47 | | 48 | | Turn on Debugging for TypeRocket. Set to false to disable. 49 | | 50 | */ 51 | 'debug' => immutable('WP_DEBUG', true), 52 | 53 | /* 54 | |-------------------------------------------------------------------------- 55 | | Seed 56 | |-------------------------------------------------------------------------- 57 | | 58 | | A 'random' string of text to help with security from time to time. 59 | | 60 | */ 61 | 'seed' => 'PUT_TYPEROCKET_SEED_HERE', 62 | 63 | /* 64 | |-------------------------------------------------------------------------- 65 | | Class Overrides 66 | |-------------------------------------------------------------------------- 67 | | 68 | | Set the classes to use as the default for helper functions. 69 | | 70 | */ 71 | 'class' => [ 72 | 'icons' => '\TypeRocket\Elements\Icons', 73 | 'form' => '\TypeRocket\Elements\Form', 74 | ], 75 | 76 | /* 77 | |-------------------------------------------------------------------------- 78 | | Template Engine 79 | |-------------------------------------------------------------------------- 80 | | 81 | | The template engine used to build views for the front-end and admin. 82 | | 83 | | Options: 84 | | - \TypeRocket\Template\TemplateEngine 85 | | - \TypeRocket\Template\TwigTemplateEngine 86 | | 87 | */ 88 | 'templates' => [ 89 | 'views' => '\TypeRocket\Template\TemplateEngine', 90 | 'pages' => '\TypeRocket\Template\TemplateEngine', 91 | ], 92 | 93 | /* 94 | |-------------------------------------------------------------------------- 95 | | Rooting 96 | |-------------------------------------------------------------------------- 97 | | 98 | | The templates to use for the TypeRocket theme. Must be using TypeRocket 99 | | as root for this feature to work. 100 | | 101 | */ 102 | 'root' => [ 103 | 'override' => true, 104 | 'theme' => 'templates', 105 | 'wordpress' => 'wordpress' 106 | ], 107 | 108 | /* 109 | |-------------------------------------------------------------------------- 110 | | Reporting 111 | |-------------------------------------------------------------------------- 112 | */ 113 | 'report' => [ 114 | 'error' => '\TypeRocket\Utility\ExceptionReport' 115 | ], 116 | 117 | /* 118 | |-------------------------------------------------------------------------- 119 | | Error Handling 120 | |-------------------------------------------------------------------------- 121 | */ 122 | 'errors' => [ 123 | /* 124 | |-------------------------------------------------------------------------- 125 | | Whoops PHP 126 | |-------------------------------------------------------------------------- 127 | | 128 | | Use Whoops PHP when TypeRocket debugging is enabled. 129 | | 130 | */ 131 | 'whoops' => true, 132 | 133 | /* 134 | |-------------------------------------------------------------------------- 135 | | Throw Errors 136 | |-------------------------------------------------------------------------- 137 | | 138 | | TypeRocket defines an error handler function that throws \ErrorException. 139 | | You can disable this functionality but it may impact the template error 140 | | system that allows you to define 500.php theme templates. 141 | | 142 | | @link https://www.php.net/manual/en/function.set-error-handler.php 143 | | 144 | | Recommended Levels: `E_ALL` or `E_ERROR | E_PARSE` 145 | | 146 | */ 147 | 'throw' => true, 148 | 'level' => E_ALL 149 | ] 150 | 151 | ]; 152 | -------------------------------------------------------------------------------- /config/editor.php: -------------------------------------------------------------------------------- 1 | [ 22 | 'wpmedia', 23 | 'specialchars', 24 | ], 25 | 26 | /* 27 | |-------------------------------------------------------------------------- 28 | | Redactor Load File 29 | |-------------------------------------------------------------------------- 30 | | 31 | | Options include: `minified` and `dev` 32 | | 33 | */ 34 | 'load' => 'minified', 35 | 36 | /* 37 | |-------------------------------------------------------------------------- 38 | | Redactor Language 39 | |-------------------------------------------------------------------------- 40 | | 41 | | Options can be found @link https://imperavi.com/redactor/docs/get-started/languages/ 42 | | 43 | */ 44 | 'lang' => 'en' 45 | 46 | ]; -------------------------------------------------------------------------------- /config/external.php: -------------------------------------------------------------------------------- 1 | [ 14 | 'api_key' => immutable('TR_GOOGLE_MAPS_API_KEY'), 15 | 'map_zoom' => 15, 16 | 'ui' => false 17 | ] 18 | ]; -------------------------------------------------------------------------------- /config/galaxy.php: -------------------------------------------------------------------------------- 1 | tr_wp_root(), 15 | 16 | /* 17 | |-------------------------------------------------------------------------- 18 | | Commands 19 | |-------------------------------------------------------------------------- 20 | | 21 | | Add your custom commands for Galaxy. TypeRocket commands use Symfony 22 | | framework see http://symfony.com/doc/current/console.html 23 | | 24 | */ 25 | 'commands' => [] 26 | ]; -------------------------------------------------------------------------------- /config/paths.php: -------------------------------------------------------------------------------- 1 | TR_APP_ROOT_PATH . '/app', 12 | 13 | /* 14 | |-------------------------------------------------------------------------- 15 | | Storage 16 | |-------------------------------------------------------------------------- 17 | | 18 | | The PATH where files are to be stored. 19 | | 20 | */ 21 | 'storage' => TR_ALT_PATH . '/storage', 22 | 23 | /* 24 | |-------------------------------------------------------------------------- 25 | | Cache 26 | |-------------------------------------------------------------------------- 27 | | 28 | | The PATH where files are to be cached. 29 | | 30 | */ 31 | 'cache' => TR_ALT_PATH . '/storage/cache', 32 | 33 | /* 34 | |-------------------------------------------------------------------------- 35 | | Resources 36 | |-------------------------------------------------------------------------- 37 | | 38 | | The PATH were resources can be found. 39 | | 40 | */ 41 | 'resources' => TR_ALT_PATH . '/resources', 42 | 43 | /* 44 | |-------------------------------------------------------------------------- 45 | | Views 46 | |-------------------------------------------------------------------------- 47 | | 48 | | The PATH were front-end views can be found. 49 | | 50 | */ 51 | 'views' => TR_ALT_PATH . '/resources/views', 52 | 53 | /* 54 | |-------------------------------------------------------------------------- 55 | | Pages 56 | |-------------------------------------------------------------------------- 57 | | 58 | | The PATH were admin pages can be found. 59 | | 60 | */ 61 | 'pages' => TR_ALT_PATH . '/resources/pages', 62 | 63 | /* 64 | |-------------------------------------------------------------------------- 65 | | Visuals 66 | |-------------------------------------------------------------------------- 67 | | 68 | | The PATH were component visuals can be found. 69 | | 70 | */ 71 | 'visuals' => TR_ALT_PATH . '/resources/visuals', 72 | 73 | /* 74 | |-------------------------------------------------------------------------- 75 | | Components 76 | |-------------------------------------------------------------------------- 77 | | 78 | | The PATH were components can be found. 79 | | 80 | */ 81 | 'components' => TR_ALT_PATH . '/resources/components', 82 | 83 | /* 84 | |-------------------------------------------------------------------------- 85 | | Themes 86 | |-------------------------------------------------------------------------- 87 | | 88 | | The PATH were theme templates can be found. Used if you install 89 | | TypeRocket as root. 90 | | 91 | */ 92 | 'themes' => TR_ALT_PATH . '/resources/themes', 93 | 94 | /* 95 | |-------------------------------------------------------------------------- 96 | | Routes 97 | |-------------------------------------------------------------------------- 98 | | 99 | | The PATH were theme templates can be found. Used if you install 100 | | TypeRocket as root. 101 | | 102 | */ 103 | 'routes' => TR_ALT_PATH . '/routes', 104 | 105 | /* 106 | |-------------------------------------------------------------------------- 107 | | Migrations 108 | |-------------------------------------------------------------------------- 109 | | 110 | | The PATHs for migrations and run migrations. 111 | | 112 | */ 113 | 'migrations' => TR_ALT_PATH . '/database/migrations', 114 | 115 | /* 116 | |-------------------------------------------------------------------------- 117 | | Composer Vendor 118 | |-------------------------------------------------------------------------- 119 | | 120 | | The PATH were composer vendor files are located. 121 | | 122 | */ 123 | 'vendor' => TR_PATH . '/vendor', 124 | 125 | /* 126 | |-------------------------------------------------------------------------- 127 | | Core 128 | |-------------------------------------------------------------------------- 129 | | 130 | | The PATH were composer vendor files are located. 131 | | 132 | */ 133 | 'core' => TR_PATH . '/vendor/typerocket/pro-core', 134 | 135 | /* 136 | |-------------------------------------------------------------------------- 137 | | Assets 138 | |-------------------------------------------------------------------------- 139 | | 140 | | The PATH where TypeRocket theme and build assets are located. 141 | | 142 | */ 143 | 'assets' => TR_PATH . '/wordpress/assets', 144 | 145 | /* 146 | |-------------------------------------------------------------------------- 147 | | TypeRocket Base 148 | |-------------------------------------------------------------------------- 149 | | 150 | | The PATH where TypeRocket root is located. 151 | | 152 | */ 153 | 'base' => TR_PATH, 154 | ]; 155 | -------------------------------------------------------------------------------- /config/urls.php: -------------------------------------------------------------------------------- 1 | tr_assets_url_build(), 12 | 13 | /* 14 | |-------------------------------------------------------------------------- 15 | | Components 16 | |-------------------------------------------------------------------------- 17 | | 18 | | The URL where TypeRocket component assets are found. 19 | | 20 | */ 21 | 'components' => tr_assets_url_build( '/components' ), 22 | 23 | /* 24 | |-------------------------------------------------------------------------- 25 | | Typerocket Assets 26 | |-------------------------------------------------------------------------- 27 | | 28 | | The URL where TypeRocket assets are found. 29 | | 30 | */ 31 | 'typerocket' => tr_assets_url_build( '/typerocket' ), 32 | ]; 33 | -------------------------------------------------------------------------------- /galaxy: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env php 2 | TR_APP_NAMESPACE . '\\', 'folder' => __DIR__ . '/app/']); 26 | 27 | // Run vendor autoloader 28 | if( !defined('TR_AUTO_LOADER') ) 29 | require __DIR__ . '/vendor/autoload.php'; 30 | else 31 | call_user_func(TR_AUTO_LOADER); 32 | 33 | // Run app autoloader 34 | $tr_autoload_map = TR_AUTOLOAD_APP; 35 | tr_autoload_psr4($tr_autoload_map); 36 | 37 | // Define configuration path 38 | if( !defined('TR_CORE_CONFIG_PATH') ) 39 | define('TR_CORE_CONFIG_PATH', __DIR__ . '/config' ); 40 | 41 | // Boot container 42 | ( new Container )->boot(); 43 | 44 | // Load TypeRocket 45 | if (defined('WPINC')) { 46 | (new System)->boot(); 47 | } -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "scripts": { 4 | "dev": "npm run development", 5 | "development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", 6 | "watch": "npm run development -- --watch", 7 | "watch-poll": "npm run watch -- --watch-poll", 8 | "hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js", 9 | "prod": "npm run production", 10 | "production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js" 11 | }, 12 | "devDependencies": { 13 | "cross-env": "^5.1", 14 | "laravel-mix": "^4.0.7", 15 | "lodash": "^4.17.13", 16 | "resolve-url-loader": "^2.3.1", 17 | "sass": "^1.15.2", 18 | "sass-loader": "^7.1.0", 19 | "ts-loader": "^6.2.0", 20 | "typescript": "^3.6.4", 21 | "vue-template-compiler": "^2.6.10" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /resources/assets/js/admin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TypeRocket/pro/c1f8ff21679c6d9d157bdcb2322935f2da3992fe/resources/assets/js/admin.js -------------------------------------------------------------------------------- /resources/assets/js/theme.js: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /resources/assets/sass/admin.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TypeRocket/pro/c1f8ff21679c6d9d157bdcb2322935f2da3992fe/resources/assets/sass/admin.scss -------------------------------------------------------------------------------- /resources/assets/sass/theme.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TypeRocket/pro/c1f8ff21679c6d9d157bdcb2322935f2da3992fe/resources/assets/sass/theme.scss -------------------------------------------------------------------------------- /resources/components/builder/content.php: -------------------------------------------------------------------------------- 1 |