getpop / resources
Resources for the website (CSS, JS files)
Requires
- php: ^8.1
- getpop/component-model-configuration: ^1.0.6
Requires (Dev)
- phpstan/phpstan: ^1.8
- phpunit/phpunit: ^10.2
- rector/rector: ^0.18
- squizlabs/php_codesniffer: ^3.6
Conflicts
- gatographql/extension-demo: <1.0.6
- gatographql/external-dependency-wrappers: <1.0.6
- gatographql/gatographql: <1.0.6
- gatographql/plugin-utils: <1.0.6
- gatographql/testing-schema: <1.0.6
- getpop/access-control: <1.0.6
- getpop/application: <1.0.6
- getpop/application-wp: <1.0.6
- getpop/cache-control: <1.0.6
- getpop/component-model: <1.0.6
- getpop/componentrouting: <1.0.6
- getpop/definitionpersistence: <1.0.6
- getpop/definitions: <1.0.6
- getpop/definitions-base36: <1.0.6
- getpop/definitions-emoji: <1.0.6
- getpop/dom-crawler: <1.0.6
- getpop/engine: <1.0.6
- getpop/engine-wp: <1.0.6
- getpop/engine-wp-bootloader: <1.0.6
- getpop/filestore: <1.0.6
- getpop/graphql-parser: <1.0.6
- getpop/guzzle-http: <1.0.6
- getpop/loosecontracts: <1.0.6
- getpop/mandatory-directives-by-configuration: <1.0.6
- getpop/markdown-convertor: <1.0.6
- getpop/multisite: <1.0.6
- getpop/resourceloader: <1.0.6
- getpop/root: <1.0.6
- getpop/root-wp: <1.0.6
- getpop/site: <1.0.6
- getpop/site-builder-api: <1.0.6
- getpop/site-wp: <1.0.6
- getpop/spa: <1.0.6
- getpop/static-site-generator: <1.0.6
- graphql-by-pop/graphiql: <1.0.6
- graphql-by-pop/graphql-clients-for-wp: <1.0.6
- graphql-by-pop/graphql-endpoint-for-wp: <1.0.6
- graphql-by-pop/graphql-request: <1.0.6
- graphql-by-pop/graphql-server: <1.0.6
- graphql-by-pop/graphql-voyager: <1.0.6
- phpunit-for-gatographql/dummy-schema: <1.0.6
- phpunit-for-gatographql/dummy-wp-schema: <1.0.6
- phpunit-for-gatographql/gatographql: <1.0.6
- phpunit-for-gatographql/gatographql-testing: <1.0.6
- phpunit-for-gatographql/webserver-requests: <1.0.6
- phpunit-for-gatographql/wpfaker-schema: <1.0.6
- pop-api/api: <1.0.6
- pop-api/api-clients: <1.0.6
- pop-api/api-endpoints: <1.0.6
- pop-api/api-endpoints-for-wp: <1.0.6
- pop-api/api-graphql: <1.0.6
- pop-api/api-mirrorquery: <1.0.6
- pop-api/api-rest: <1.0.6
- pop-backbone/php-hooks: <1.0.6
- pop-backbone/wp-data-parser: <1.0.6
- pop-cms-schema/categories: <1.0.6
- pop-cms-schema/categories-wp: <1.0.6
- pop-cms-schema/comment-mutations: <1.0.6
- pop-cms-schema/comment-mutations-wp: <1.0.6
- pop-cms-schema/commentmeta: <1.0.6
- pop-cms-schema/commentmeta-wp: <1.0.6
- pop-cms-schema/comments: <1.0.6
- pop-cms-schema/comments-wp: <1.0.6
- pop-cms-schema/custompost-categories-wp: <1.0.6
- pop-cms-schema/custompost-category-mutations: <1.0.6
- pop-cms-schema/custompost-mutations: <1.0.6
- pop-cms-schema/custompost-mutations-wp: <1.0.6
- pop-cms-schema/custompost-tag-mutations: <1.0.6
- pop-cms-schema/custompost-tags-wp: <1.0.6
- pop-cms-schema/custompost-user-mutations: <1.0.6
- pop-cms-schema/custompost-user-mutations-wp: <1.0.6
- pop-cms-schema/custompostmedia: <1.0.6
- pop-cms-schema/custompostmedia-mutations: <1.0.6
- pop-cms-schema/custompostmedia-mutations-wp: <1.0.6
- pop-cms-schema/custompostmedia-wp: <1.0.6
- pop-cms-schema/custompostmeta: <1.0.6
- pop-cms-schema/custompostmeta-wp: <1.0.6
- pop-cms-schema/customposts: <1.0.6
- pop-cms-schema/customposts-wp: <1.0.6
- pop-cms-schema/media: <1.0.6
- pop-cms-schema/media-wp: <1.0.6
- pop-cms-schema/menus: <1.0.6
- pop-cms-schema/menus-wp: <1.0.6
- pop-cms-schema/meta: <1.0.6
- pop-cms-schema/metaquery-wp: <1.0.6
- pop-cms-schema/page-mutations: <1.0.6
- pop-cms-schema/pagemedia-mutations: <1.0.6
- pop-cms-schema/pages: <1.0.6
- pop-cms-schema/pages-wp: <1.0.6
- pop-cms-schema/post-categories: <1.0.6
- pop-cms-schema/post-categories-wp: <1.0.6
- pop-cms-schema/post-category-mutations: <1.0.6
- pop-cms-schema/post-category-mutations-wp: <1.0.6
- pop-cms-schema/post-mutations: <1.0.6
- pop-cms-schema/post-tag-mutations: <1.0.6
- pop-cms-schema/post-tag-mutations-wp: <1.0.6
- pop-cms-schema/post-tags: <1.0.6
- pop-cms-schema/post-tags-wp: <1.0.6
- pop-cms-schema/postmedia-mutations: <1.0.6
- pop-cms-schema/posts: <1.0.6
- pop-cms-schema/posts-wp: <1.0.6
- pop-cms-schema/queriedobject: <1.0.6
- pop-cms-schema/queriedobject-wp: <1.0.6
- pop-cms-schema/schema-commons: <1.0.6
- pop-cms-schema/schema-commons-wp: <1.0.6
- pop-cms-schema/settings: <1.0.6
- pop-cms-schema/settings-wp: <1.0.6
- pop-cms-schema/tags: <1.0.6
- pop-cms-schema/tags-wp: <1.0.6
- pop-cms-schema/taxonomies: <1.0.6
- pop-cms-schema/taxonomies-wp: <1.0.6
- pop-cms-schema/taxonomymeta: <1.0.6
- pop-cms-schema/taxonomymeta-wp: <1.0.6
- pop-cms-schema/taxonomyquery: <1.0.6
- pop-cms-schema/taxonomyquery-wp: <1.0.6
- pop-cms-schema/user-avatars: <1.0.6
- pop-cms-schema/user-avatars-wp: <1.0.6
- pop-cms-schema/user-roles: <1.0.6
- pop-cms-schema/user-roles-wp: <1.0.6
- pop-cms-schema/user-state: <1.0.6
- pop-cms-schema/user-state-mutations: <1.0.6
- pop-cms-schema/user-state-mutations-wp: <1.0.6
- pop-cms-schema/user-state-wp: <1.0.6
- pop-cms-schema/usermeta: <1.0.6
- pop-cms-schema/usermeta-wp: <1.0.6
- pop-cms-schema/users: <1.0.6
- pop-cms-schema/users-wp: <1.0.6
- pop-schema/directive-commons: <1.0.6
- pop-schema/extended-schema-commons: <1.0.6
- pop-schema/http-requests: <1.0.6
- pop-schema/schema-commons: <1.0.6
- pop-sites-wassup/comment-mutations: <1.0.6
- pop-sites-wassup/contactus-mutations: <1.0.6
- pop-sites-wassup/contactuser-mutations: <1.0.6
- pop-sites-wassup/custompost-mutations: <1.0.6
- pop-sites-wassup/custompostlink-mutations: <1.0.6
- pop-sites-wassup/flag-mutations: <1.0.6
- pop-sites-wassup/form-mutations: <1.0.6
- pop-sites-wassup/gravityforms-mutations: <1.0.6
- pop-sites-wassup/highlight-mutations: <1.0.6
- pop-sites-wassup/newsletter-mutations: <1.0.6
- pop-sites-wassup/notification-mutations: <1.0.6
- pop-sites-wassup/post-mutations: <1.0.6
- pop-sites-wassup/postlink-mutations: <1.0.6
- pop-sites-wassup/share-mutations: <1.0.6
- pop-sites-wassup/socialnetwork-mutations: <1.0.6
- pop-sites-wassup/stance-mutations: <1.0.6
- pop-sites-wassup/system-mutations: <1.0.6
- pop-sites-wassup/user-state-mutations: <1.0.6
- pop-sites-wassup/volunteer-mutations: <1.0.6
- pop-wp-schema/block-content-parser: <1.0.6
- pop-wp-schema/block-metadata-for-wp: <1.0.6
- pop-wp-schema/blocks: <1.0.6
- pop-wp-schema/commentmeta: <1.0.6
- pop-wp-schema/comments: <1.0.6
- pop-wp-schema/custompostmeta: <1.0.6
- pop-wp-schema/customposts: <1.0.6
- pop-wp-schema/media: <1.0.6
- pop-wp-schema/menus: <1.0.6
- pop-wp-schema/meta: <1.0.6
- pop-wp-schema/pages: <1.0.6
- pop-wp-schema/posts: <1.0.6
- pop-wp-schema/schema-commons: <1.0.6
- pop-wp-schema/taxonomymeta: <1.0.6
- pop-wp-schema/usermeta: <1.0.6
- pop-wp-schema/users: <1.0.6
This package is auto-updated.
Last update: 2024-12-07 12:33:55 UTC
README
Resources for the website (CSS, JS files)
Install
Via Composer
composer require getpop/resources
Development
The source code is hosted on the GatoGraphQL monorepo, under SiteBuilder/packages/resources
.
Usage
Initialize the component:
\PoP\Root\App::stockAndInitializeModuleClasses([([ \PoP\Resources\Module::class, ]);
Architecture foundations
Layouts are rendered through custom-built reactivity, based on observing a unique JavaScript object (which contains database and configuration data).
The view is implemented through Handlebars templates, which can be loaded both in the client (through the Handlebars runtime) and in the server (through PHP library LightnCandy). This approach is isomorphic: the same code works on both environments.
Implementation coming soon.
Main Concepts
Rendering through JavaScript templates
Will be added soon...
Isomorphic Server-Side Rendering
Will be added soon...
Reactivity
Will be added soon...
Architecture Design and Implementation
Dataloading
Dataloading Modules
Handlebars
Will be added soon...
LightnCandy
Will be added soon...
Code Splitting
Will be added soon...
Progressive-Web App
Will be added soon...
Single-Page Application
Will be added soon...
Content CDN
Will be added soon...
A/B Testing
Will be added soon...
Form Input Modules
Will be added soon...
Client-side Rendering
Will be added soon...
JavaScript templates through Handlebars
Will be added soon...
Executing JavaScript functions
Will be added soon...
Resources
Will be added soon...
Asset-bundling
Will be added soon...
Progressive Booting
Will be added soon...
Links in body
Will be added soon...
State Management
Will be added soon...
Data Cache, Configuration Cache and Replication
Will be added soon...
Reactivity
Will be added soon...
Server-Side Rendering
Will be added soon...
Isomorphism
Will be added soon...
JavaScript templates into PHP through LightnCandy
Will be added soon...
Rendering a Webpage as a Transactional Email
Will be added soon...
PHP versions
Requirements:
- PHP 8.1+ for development
- PHP 7.2+ for production
Supported PHP features
Check the list of Supported PHP features in GatoGraphQL/GatoGraphQL
Preview downgrade to PHP 7.2
Via Rector (dry-run mode):
composer preview-code-downgrade
Standards
To check the coding standards via PHP CodeSniffer, run:
composer check-style
To automatically fix issues, run:
composer fix-style
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
To execute PHPUnit, run:
composer test
Static Analysis
To execute PHPStan, run:
composer analyse
Report issues
To report a bug or request a new feature please do it on the GatoGraphQL monorepo issue tracker.
Contributing
We welcome contributions for this package on the GatoGraphQL monorepo (where the source code for this package is hosted).
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email leo@getpop.org instead of using the issue tracker.
Credits
License
GNU General Public License v2 (or later). Please see License File for more information.