4 | * @license 0BSD
5 | */
6 | Polymer(
7 | is : 'cs-fotorama-styles-wrapper'
8 | behaviors : [cs.Polymer.behaviors.inject_light_styles]
9 | _styles_dom_module : 'cs-fotorama-styles-wrapper-styles'
10 | )
11 |
--------------------------------------------------------------------------------
/modules/Fotorama/events.php:
--------------------------------------------------------------------------------
1 |
6 | * @license 0BSD
7 | */
8 | namespace cs;
9 | use
10 | h;
11 |
12 | Event::instance()->on(
13 | 'System/Page/render/before',
14 | function () {
15 | if (!Config::instance()->module('Fotorama')->enabled()) {
16 | return;
17 | }
18 | }
19 | );
20 |
--------------------------------------------------------------------------------
/modules/Fotorama/readme.html:
--------------------------------------------------------------------------------
1 | Wrap anything you want to apply Fotorama to with cs-fotorama-styles-wrapper
element or otherwise styling might not work under Shadow DOM
2 |
--------------------------------------------------------------------------------
/modules/Fotorama/readme.md:
--------------------------------------------------------------------------------
1 | Fotorama during next update will need some tweaks:
2 | * Make sure to compile `assets/html/cs-fotorama-styles-wrapper/index.pug` after updating `fotorama.css` near it
3 | * if AMD support not merged yet (https://github.com/artpolikarpov/fotorama/pull/309) then wrap JS with `require(['jquery'], function (jQuery) {..});`
4 |
--------------------------------------------------------------------------------
/modules/Http_server/supervisor.php:
--------------------------------------------------------------------------------
1 |
6 | * @license 0BSD
7 | */
8 | if ($argc < 2) {
9 | echo "Supervisor takes command as argument and execute it. If command stops for some reason - supervisor will start it again in 1 second and will do that until alive itself.\nUsage: php supervisor.php 'some-command'";
10 | return;
11 | }
12 | while (true) {
13 | exec($argv[1]);
14 | sleep(1);
15 | }
16 |
--------------------------------------------------------------------------------
/modules/HybridAuth/Hybrid/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | 403 Forbidden
4 |
5 |
6 |
7 | Directory access is forbidden.
8 |
9 |
10 |
--------------------------------------------------------------------------------
/modules/HybridAuth/Hybrid/resources/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | 403 Forbidden
4 |
5 |
6 |
7 | Directory access is forbidden.
8 |
9 |
10 |
--------------------------------------------------------------------------------
/modules/HybridAuth/Hybrid/resources/openid_policy.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | OpenID Policy
4 |
5 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/modules/HybridAuth/Hybrid/resources/openid_xrds.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 | http://specs.openid.net/auth/2.0/return_to
9 | {RETURN_TO_URL}
10 |
11 |
12 |
--------------------------------------------------------------------------------
/modules/HybridAuth/Hybrid/thirdparty/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | 403 Forbidden
4 |
5 |
6 |
7 | Directory access is forbidden.
8 |
9 |
10 |
--------------------------------------------------------------------------------
/modules/HybridAuth/admin/index.json:
--------------------------------------------------------------------------------
1 | [
2 | "providers_list"
3 | ]
4 |
--------------------------------------------------------------------------------
/modules/HybridAuth/assets/html/.htaccess:
--------------------------------------------------------------------------------
1 |
2 | RewriteEngine Off
3 |
4 |
--------------------------------------------------------------------------------
/modules/HybridAuth/assets/html/cs-hybridauth-sign-in/index.html:
--------------------------------------------------------------------------------
1 | [[L.or_sign_in_with]]: [[item.name]]
--------------------------------------------------------------------------------
/modules/HybridAuth/assets/html/cs-hybridauth-sign-in/index.pug:
--------------------------------------------------------------------------------
1 | dom-module#cs-hybridauth-sign-in
2 | link(rel="import" href="style.css" type="css")
3 | template
4 | h3 [[L.or_sign_in_with]]:
5 | cs-group(vertical)
6 | template(is="dom-repeat" items="[[providers]]")
7 | cs-link-button(icon="[[item.icon]]"): a(href="/HybridAuth/[[item.provider]]") [[item.name]]
8 | = ' '
9 | script(src="script.js")
10 |
--------------------------------------------------------------------------------
/modules/HybridAuth/assets/html/cs-hybridauth-sign-in/style.css:
--------------------------------------------------------------------------------
1 | :host{display:block}cs-group{width:100%}
2 |
--------------------------------------------------------------------------------
/modules/HybridAuth/assets/html/cs-hybridauth-sign-in/style.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * @package HybridAuth
3 | * @category modules
4 | * @author Nazar Mokrynskyi
5 | * @license 0BSD
6 | */
7 | :host {
8 | display : block;
9 | }
10 |
11 | cs-group {
12 | width : 100%;
13 | }
14 |
--------------------------------------------------------------------------------
/modules/HybridAuth/assets/js/general.js:
--------------------------------------------------------------------------------
1 | // Generated by LiveScript 1.5.0
2 | /**
3 | * @package HybridAuth
4 | * @category modules
5 | * @author Nazar Mokrynskyi
6 | * @license 0BSD
7 | */
8 | (function(){
9 | cs.Event.on('cs-system-sign-in', function(target){
10 | var ref$;
11 | if ((ref$ = cs.hybridauth) != null && ref$.providers) {
12 | target.shadowRoot.appendChild(document.createElement('cs-hybridauth-sign-in'));
13 | }
14 | });
15 | }).call(this);
16 |
--------------------------------------------------------------------------------
/modules/HybridAuth/assets/js/general.ls:
--------------------------------------------------------------------------------
1 | /**
2 | * @package HybridAuth
3 | * @category modules
4 | * @author Nazar Mokrynskyi
5 | * @license 0BSD
6 | */
7 | cs.Event.on(
8 | 'cs-system-sign-in'
9 | (target) !->
10 | if cs.hybridauth?.providers
11 | target.shadowRoot.appendChild(
12 | document.createElement('cs-hybridauth-sign-in')
13 | )
14 | )
15 |
--------------------------------------------------------------------------------
/modules/HybridAuth/meta/install_db/integration/MySQLi.sql:
--------------------------------------------------------------------------------
1 | CREATE TABLE IF NOT EXISTS `[prefix]users_social_integration` (
2 | `id` int(10) unsigned NOT NULL COMMENT 'User id',
3 | `provider` varchar(255) NOT NULL,
4 | `identifier` varchar(255) NOT NULL COMMENT 'Identifier of provider (unique for every provider)',
5 | `profile` varchar(1024) NOT NULL,
6 | UNIQUE KEY `provider` (`provider`(191),`identifier`(191)),
7 | KEY `id` (`id`)
8 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_ci;
9 |
--------------------------------------------------------------------------------
/modules/HybridAuth/meta/uninstall_db/integration/MySQLi.sql:
--------------------------------------------------------------------------------
1 | DROP TABLE `[prefix]users_social_integration`;
2 |
--------------------------------------------------------------------------------
/modules/Json_ld/meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "package" : "Json_ld",
3 | "category" : "modules",
4 | "version" : "0.8.0+build-13",
5 | "description" : "Useful tools for simplifying generating of JSON-LD snippets",
6 | "author" : "Nazar Mokrynskyi",
7 | "website" : "cleverstyle.org/Framework",
8 | "license" : "0BSD",
9 | "provide" : "json_ld",
10 | "require" : [
11 | "System>=7.0",
12 | "System<8.0"
13 | ]
14 | }
15 |
--------------------------------------------------------------------------------
/modules/OAuth2/admin/clients.php:
--------------------------------------------------------------------------------
1 |
6 | * @license 0BSD
7 | */
8 | namespace cs;
9 | include __DIR__.'/clients/save.php';
10 |
--------------------------------------------------------------------------------
/modules/OAuth2/admin/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "clients" : [
3 | "list",
4 | "add",
5 | "edit",
6 | "delete"
7 | ]
8 | }
9 |
--------------------------------------------------------------------------------
/modules/OAuth2/assets/css/admin.css:
--------------------------------------------------------------------------------
1 | body form{text-align:center}
2 |
--------------------------------------------------------------------------------
/modules/OAuth2/assets/css/admin.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * @package OAuth2
3 | * @category modules
4 | * @author Nazar Mokrynskyi
5 | * @license 0BSD
6 | */
7 | body form {
8 | text-align : center;
9 | }
10 |
--------------------------------------------------------------------------------
/modules/OAuth2/assets/css/user.css:
--------------------------------------------------------------------------------
1 | form{text-align:center}
2 |
--------------------------------------------------------------------------------
/modules/OAuth2/assets/css/user.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * @package OAuth2
3 | * @category modules
4 | * @author Nazar Mokrynskyi
5 | * @license 0BSD
6 | */
7 | form {
8 | text-align : center;
9 | }
10 |
--------------------------------------------------------------------------------
/modules/OAuth2/blank.php:
--------------------------------------------------------------------------------
1 |
6 | * @license 0BSD
7 | */
8 | namespace cs;
9 | Page::instance()->interface = false;
10 |
--------------------------------------------------------------------------------
/modules/OAuth2/index.json:
--------------------------------------------------------------------------------
1 | [
2 | "blank",
3 | "authorize",
4 | "token",
5 | "invalidate_token"
6 | ]
7 |
--------------------------------------------------------------------------------
/modules/OAuth2/meta/uninstall_db/oauth2/MySQLi.sql:
--------------------------------------------------------------------------------
1 | DROP TABLE `[prefix]oauth2_clients`, `[prefix]oauth2_clients_grant_access`, `[prefix]oauth2_clients_sessions`;
2 |
--------------------------------------------------------------------------------
/modules/Photo_gallery/admin/galleries.php:
--------------------------------------------------------------------------------
1 |
6 | * @license 0BSD
7 | */
8 | include __DIR__.'/galleries/save.php';
9 |
--------------------------------------------------------------------------------
/modules/Photo_gallery/admin/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "galleries" : [
3 | "browse",
4 | "add",
5 | "edit",
6 | "delete"
7 | ]
8 | }
9 |
--------------------------------------------------------------------------------
/modules/Photo_gallery/api/index.json:
--------------------------------------------------------------------------------
1 | [
2 | "images"
3 | ]
4 |
--------------------------------------------------------------------------------
/modules/Photo_gallery/assets/css/admin.css:
--------------------------------------------------------------------------------
1 | body form{text-align:center}
2 |
--------------------------------------------------------------------------------
/modules/Photo_gallery/assets/css/admin.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * @package Photo gallery
3 | * @category modules
4 | * @author Nazar Mokrynskyi
5 | * @license 0BSD
6 | */
7 | body form {
8 | text-align : center;
9 | }
10 |
--------------------------------------------------------------------------------
/modules/Photo_gallery/assets/img/empty.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/modules/Photo_gallery/assets/img/empty.gif
--------------------------------------------------------------------------------
/modules/Photo_gallery/index.json:
--------------------------------------------------------------------------------
1 | [
2 | "galleries",
3 | "gallery",
4 | "edit_images"
5 | ]
6 |
--------------------------------------------------------------------------------
/modules/Photo_gallery/meta/uninstall_db/galleries/MySQLi.sql:
--------------------------------------------------------------------------------
1 | DROP TABLE `[prefix]photo_gallery_galleries`, `[prefix]photo_gallery_images`;
2 |
--------------------------------------------------------------------------------
/modules/Polls/admin/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "polls" : [
3 | "list",
4 | "edit",
5 | "delete"
6 | ]
7 | }
8 |
--------------------------------------------------------------------------------
/modules/Polls/admin/polls.php:
--------------------------------------------------------------------------------
1 |
6 | * @license 0BSD
7 | */
8 | include __DIR__.'/polls/save.php';
9 |
--------------------------------------------------------------------------------
/modules/Polls/assets/css/admin.css:
--------------------------------------------------------------------------------
1 | body form{text-align:center}
2 |
--------------------------------------------------------------------------------
/modules/Polls/assets/css/admin.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * @package Polls
3 | * @category modules
4 | * @author Nazar Mokrynskyi
5 | * @license 0BSD
6 | */
7 | body form {
8 | text-align : center;
9 | }
10 |
--------------------------------------------------------------------------------
/modules/Polls/meta/uninstall_db/polls/MySQLi.sql:
--------------------------------------------------------------------------------
1 | DROP TABLE `[prefix]polls`, `[prefix]polls_options`, `[prefix]polls_options_answers`;
2 |
--------------------------------------------------------------------------------
/modules/Prism/assets/.htaccess:
--------------------------------------------------------------------------------
1 |
2 | RewriteEngine Off
3 |
4 |
--------------------------------------------------------------------------------
/modules/Prism/assets/html/cs-prism-styles/index.pug:
--------------------------------------------------------------------------------
1 | dom-module#cs-prism-styles
2 | template
3 | style
4 | include prism.css
5 | custom-style: style(include="cs-prism-styles")
6 |
--------------------------------------------------------------------------------
/modules/Prism/assets/js/components/!include:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/modules/Prism/assets/js/components/!include
--------------------------------------------------------------------------------
/modules/Prism/assets/js/components/prism-brainfuck.min.js:
--------------------------------------------------------------------------------
1 | Prism.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/};
--------------------------------------------------------------------------------
/modules/Prism/assets/js/components/prism-css-extras.min.js:
--------------------------------------------------------------------------------
1 | Prism.languages.css.selector={pattern:/[^{}\s][^{}]*(?=\s*\{)/,inside:{"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+(?:\(.*\))?/,"class":/\.[-:.\w]+/,id:/#[-:.\w]+/,attribute:/\[[^\]]+\]/}},Prism.languages.insertBefore("css","function",{hexcode:/#[\da-f]{3,8}/i,entity:/\\[\da-f]{1,8}/i,number:/[\d%.]+/});
--------------------------------------------------------------------------------
/modules/Prism/assets/js/components/prism-diff.min.js:
--------------------------------------------------------------------------------
1 | Prism.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d+.*$/m],deleted:/^[-<].*$/m,inserted:/^[+>].*$/m,diff:{pattern:/^!(?!!).+$/m,alias:"important"}};
--------------------------------------------------------------------------------
/modules/Prism/assets/js/components/prism-docker.min.js:
--------------------------------------------------------------------------------
1 | Prism.languages.docker={keyword:{pattern:/(^\s*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)/im,lookbehind:!0},string:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,comment:/#.*/,punctuation:/---|\.\.\.|[:[\]{}\-,|>?]/},Prism.languages.dockerfile=Prism.languages.docker;
--------------------------------------------------------------------------------
/modules/Prism/assets/js/components/prism-git.min.js:
--------------------------------------------------------------------------------
1 | Prism.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/m,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/m}},coord:/^@@.*@@$/m,commit_sha1:/^commit \w{40}$/m};
--------------------------------------------------------------------------------
/modules/Prism/assets/js/components/prism-graphql.min.js:
--------------------------------------------------------------------------------
1 | Prism.languages.graphql={comment:/#.*/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b/,"boolean":/\b(?:true|false)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":/[a-z_]\w*(?=\s*:)/i,keyword:[{pattern:/(fragment\s+(?!on)[a-z_]\w*\s+|\.{3}\s*)on\b/,lookbehind:!0},/\b(?:query|fragment|mutation)\b/],operator:/!|=|\.{3}/,punctuation:/[!(){}\[\]:=,]/};
--------------------------------------------------------------------------------
/modules/Prism/assets/js/components/prism-ini.min.js:
--------------------------------------------------------------------------------
1 | Prism.languages.ini={comment:/^[ \t]*;.*$/m,selector:/^[ \t]*\[.*?\]/m,constant:/^[ \t]*[^\s=]+?(?=[ \t]*=)/m,"attr-value":{pattern:/=.*/,inside:{punctuation:/^[=]/}}};
--------------------------------------------------------------------------------
/modules/Prism/assets/js/components/prism-json.min.js:
--------------------------------------------------------------------------------
1 | Prism.languages.json={property:/"(?:\\.|[^\\"\r\n])*"(?=\s*:)/i,string:{pattern:/"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,greedy:!0},number:/\b-?(?:0x[\dA-Fa-f]+|\d*\.?\d+(?:[Ee][+-]?\d+)?)\b/,punctuation:/[{}[\]);,]/,operator:/:/g,"boolean":/\b(?:true|false)\b/i,"null":/\bnull\b/i},Prism.languages.jsonp=Prism.languages.json;
--------------------------------------------------------------------------------
/modules/Prism/assets/js/components/prism-matlab.min.js:
--------------------------------------------------------------------------------
1 | Prism.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/\b-?(?:\d*\.?\d+(?:[eE][+-]?\d+)?(?:[ij])?|[ij])\b/,keyword:/\b(?:break|case|catch|continue|else|elseif|end|for|function|if|inf|NaN|otherwise|parfor|pause|pi|return|switch|try|while)\b/,"function":/(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/};
--------------------------------------------------------------------------------
/modules/Prism/assets/js/components/prism-php-extras.min.js:
--------------------------------------------------------------------------------
1 | Prism.languages.insertBefore("php","variable",{"this":/\$this\b/,global:/\$(?:_(?:SERVER|GET|POST|FILES|REQUEST|SESSION|ENV|COOKIE)|GLOBALS|HTTP_RAW_POST_DATA|argc|argv|php_errormsg|http_response_header)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/static|self|parent/,punctuation:/::|\\/}}});
--------------------------------------------------------------------------------
/modules/Prism/assets/js/components/prism-prolog.min.js:
--------------------------------------------------------------------------------
1 | Prism.languages.prolog={comment:[/%.+/,/\/\*[\s\S]*?\*\//],string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,variable:/\b[A-Z_]\w*/,"function":/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+\.?\d*/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/};
--------------------------------------------------------------------------------
/modules/Prism/assets/js/components/prism-properties.min.js:
--------------------------------------------------------------------------------
1 | Prism.languages.properties={comment:/^[ \t]*[#!].*$/m,"attr-value":{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+?(?: *[=:] *| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0},"attr-name":/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+?(?= *[=:] *| )/m,punctuation:/[=:]/};
--------------------------------------------------------------------------------
/modules/Prism/assets/js/components/prism-protobuf.min.js:
--------------------------------------------------------------------------------
1 | Prism.languages.protobuf=Prism.languages.extend("clike",{keyword:/\b(?:package|import|message|enum)\b/,builtin:/\b(?:required|repeated|optional|reserved)\b/,primitive:{pattern:/\b(?:double|float|int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string|bytes)\b/,alias:"symbol"}});
--------------------------------------------------------------------------------
/modules/Prism/assets/js/components/prism-roboconf.min.js:
--------------------------------------------------------------------------------
1 | Prism.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{)|(?:external|import)\b)/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*)[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/};
--------------------------------------------------------------------------------
/modules/Prism/readme.html:
--------------------------------------------------------------------------------
1 | Prism integration provides 2 things:
2 |
3 | Syntax highlighting for elements within global document tree
4 | Syntax highlighting withing arbitrary Shadow DOM trees by subscribing to the System/content_enhancement
event
5 |
6 |
--------------------------------------------------------------------------------
/modules/Prism/readme.md:
--------------------------------------------------------------------------------
1 | Prism during next update will need some tweaks:
2 | * `prism.css` needs to be renamed to `_prism.scss` in order to be patched for Web Components support
3 |
--------------------------------------------------------------------------------
/modules/Service_worker_cache/assets/js/!include:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/modules/Service_worker_cache/assets/js/!include
--------------------------------------------------------------------------------
/modules/Service_worker_cache/assets/js/.htaccess:
--------------------------------------------------------------------------------
1 |
2 | ExpiresActive On
3 | ExpiresDefault "access plus 1 month"
4 |
5 |
6 | Header set Cache-Control "max-age=2592000, immutable"
7 | Header set Service-Worker-Allowed /
8 |
9 |
--------------------------------------------------------------------------------
/modules/Service_worker_cache/assets/js/register.js:
--------------------------------------------------------------------------------
1 | // Generated by LiveScript 1.5.0
2 | /**
3 | * @package Service worker cache
4 | * @category modules
5 | * @author Nazar Mokrynskyi
6 | * @license 0BSD
7 | */
8 | (function(){
9 | if (navigator.serviceWorker) {
10 | navigator.serviceWorker.register('/modules/Service_worker_cache/assets/js/service-worker.js?' + cs.service_worker_cache.version, {
11 | scope: '/'
12 | });
13 | }
14 | }).call(this);
15 |
--------------------------------------------------------------------------------
/modules/Service_worker_cache/assets/js/register.ls:
--------------------------------------------------------------------------------
1 | /**
2 | * @package Service worker cache
3 | * @category modules
4 | * @author Nazar Mokrynskyi
5 | * @license 0BSD
6 | */
7 | if navigator.serviceWorker
8 | navigator.serviceWorker.register(
9 | '/modules/Service_worker_cache/assets/js/service-worker.js?' + cs.service_worker_cache.version
10 | scope : '/'
11 | )
12 |
--------------------------------------------------------------------------------
/modules/Service_worker_cache/readme.html:
--------------------------------------------------------------------------------
1 | Service Worker cache - uses Service Worker to cache requests to static assets like CSS/JS/HTML/fonts/images to improve subsequent page loads, especially on bad internet connection
2 | Only one caveat here, make sure Nginx should be configured properly (Nginx config sample ).
3 |
--------------------------------------------------------------------------------
/modules/Shop/admin/index.json:
--------------------------------------------------------------------------------
1 | [
2 | "orders",
3 | "general",
4 | "categories",
5 | "items",
6 | "attributes",
7 | "order_statuses",
8 | "shipping_types"
9 | ]
10 |
--------------------------------------------------------------------------------
/modules/Shop/api/admin/attributes.delete.php:
--------------------------------------------------------------------------------
1 |
6 | * @license 0BSD
7 | */
8 | namespace cs\modules\Shop;
9 | use
10 | cs\ExitException,
11 | cs\Request;
12 |
13 | $Request = Request::instance();
14 | if (!isset($Request->route_ids[0])) {
15 | throw new ExitException(400);
16 | }
17 | if (!Attributes::instance()->del($Request->route_ids[0])) {
18 | throw new ExitException(500);
19 | }
20 |
--------------------------------------------------------------------------------
/modules/Shop/api/admin/categories.delete.php:
--------------------------------------------------------------------------------
1 |
6 | * @license 0BSD
7 | */
8 | namespace cs\modules\Shop;
9 | use
10 | cs\ExitException,
11 | cs\Request;
12 |
13 | $Request = Request::instance();
14 | if (!isset($Request->route_ids[0])) {
15 | throw new ExitException(400);
16 | }
17 | if (!Categories::instance()->del($Request->route_ids[0])) {
18 | throw new ExitException(500);
19 | }
20 |
--------------------------------------------------------------------------------
/modules/Shop/api/admin/items.delete.php:
--------------------------------------------------------------------------------
1 |
6 | * @license 0BSD
7 | */
8 | namespace cs\modules\Shop;
9 | use
10 | cs\ExitException,
11 | cs\Request;
12 |
13 | $Request = Request::instance();
14 | if (!isset($Request->route_ids[0])) {
15 | throw new ExitException(400);
16 | }
17 | if (!Items::instance()->del($Request->route_ids[0])) {
18 | throw new ExitException(500);
19 | }
20 |
--------------------------------------------------------------------------------
/modules/Shop/api/admin/order_statuses.delete.php:
--------------------------------------------------------------------------------
1 |
6 | * @license 0BSD
7 | */
8 | namespace cs\modules\Shop;
9 | use
10 | cs\ExitException,
11 | cs\Request;
12 |
13 | $Request = Request::instance();
14 | if (!isset($Request->route_ids[0])) {
15 | throw new ExitException(400);
16 | }
17 | if (!Order_statuses::instance()->del($Request->route_ids[0])) {
18 | throw new ExitException(500);
19 | }
20 |
--------------------------------------------------------------------------------
/modules/Shop/api/admin/orders.delete.php:
--------------------------------------------------------------------------------
1 |
6 | * @license 0BSD
7 | */
8 | namespace cs\modules\Shop;
9 | use
10 | cs\ExitException,
11 | cs\Request;
12 |
13 | $Request = Request::instance();
14 | if (!isset($Request->route_ids[0])) {
15 | throw new ExitException(400);
16 | }
17 | if (!Orders::instance()->del($Request->route_ids[0])) {
18 | throw new ExitException(500);
19 | }
20 |
--------------------------------------------------------------------------------
/modules/Shop/api/admin/shipping_types.delete.php:
--------------------------------------------------------------------------------
1 |
6 | * @license 0BSD
7 | */
8 | namespace cs\modules\Shop;
9 | use
10 | cs\ExitException,
11 | cs\Request;
12 |
13 | $Request = Request::instance();
14 | if (!isset($Request->route_ids[0])) {
15 | throw new ExitException(400);
16 | }
17 | if (!Shipping_types::instance()->del($Request->route_ids[0])) {
18 | throw new ExitException(500);
19 | }
20 |
--------------------------------------------------------------------------------
/modules/Shop/api/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "admin" : [
3 | "attributes",
4 | "categories",
5 | "items",
6 | "order_statuses",
7 | "orders",
8 | "shipping_types"
9 | ],
10 | "cart" : [],
11 | "settings" : [],
12 | "attributes" : [],
13 | "categories" : [],
14 | "items" : [],
15 | "orders" : [],
16 | "payment_methods" : []
17 | }
18 |
--------------------------------------------------------------------------------
/modules/Shop/api/payment_methods.get.php:
--------------------------------------------------------------------------------
1 |
6 | * @license 0BSD
7 | */
8 | namespace cs\modules\Shop;
9 | use
10 | cs\Page;
11 |
12 | Page::instance()->json(
13 | Orders::instance()->get_payment_methods()
14 | );
15 |
--------------------------------------------------------------------------------
/modules/Shop/api/settings.get.php:
--------------------------------------------------------------------------------
1 |
6 | * @license 0BSD
7 | */
8 | namespace cs;
9 | Page::instance()->json(
10 | Config::instance()->components['modules']['Shop']['data']
11 | );
12 |
--------------------------------------------------------------------------------
/modules/Shop/assets/.htaccess:
--------------------------------------------------------------------------------
1 |
2 | RewriteEngine Off
3 |
4 |
--------------------------------------------------------------------------------
/modules/Shop/assets/css/admin.css:
--------------------------------------------------------------------------------
1 | body form{text-align:center}
2 |
--------------------------------------------------------------------------------
/modules/Shop/assets/css/admin.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * @package Shop
3 | * @category modules
4 | * @author Nazar Mokrynskyi
5 | * @license 0BSD
6 | */
7 | body form {
8 | text-align : center;
9 | }
10 |
--------------------------------------------------------------------------------
/modules/Shop/assets/html/cs-shop-add-to-cart/index.pug:
--------------------------------------------------------------------------------
1 | dom-module#cs-shop-add-to-cart
2 | link(rel="import" href="style.css" type="css")
3 | template
4 | cs-group(hidden="[[!in_cart]]")
5 | cs-button(primary): button(on-tap="add" type="button") [[L.add_to_cart]]
6 | cs-link-button(tooltip="[[L.already_in_cart]]"): a#in_cart(href="/Shop/cart") [[in_cart]]
7 | cs-button(hidden="[[and(in_cart)]]" primary): button(on-tap="add" type="button" ) [[L.add_to_cart]]
8 | script(src="script.js")
9 |
--------------------------------------------------------------------------------
/modules/Shop/assets/html/cs-shop-add-to-cart/style.css:
--------------------------------------------------------------------------------
1 | :host{display:inline-block}
2 |
--------------------------------------------------------------------------------
/modules/Shop/assets/html/cs-shop-add-to-cart/style.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * @package Shop
3 | * @category modules
4 | * @author Nazar Mokrynskyi
5 | * @license 0BSD
6 | */
7 | :host {
8 | display : inline-block;
9 | }
10 |
--------------------------------------------------------------------------------
/modules/Shop/assets/html/cs-shop-cart/cs-shop-cart-item/style.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * @package Shop
3 | * @category modules
4 | * @author Nazar Mokrynskyi
5 | * @license 0BSD
6 | */
7 | @import '../../../../../../assets/css/flexy-plexy';
8 |
9 | #content {
10 | @include flexy-plexy(.5em, 1 9)
11 | }
12 |
13 | #img {
14 | background : #fff;
15 | border : 1px solid #e5e5e5;
16 | box-sizing : border-box;
17 | padding : .3em;
18 | }
19 |
--------------------------------------------------------------------------------
/modules/Shop/assets/html/cs-shop-categories/cs-shop-category-nested/index.html:
--------------------------------------------------------------------------------
1 | [[category_title]]
--------------------------------------------------------------------------------
/modules/Shop/assets/html/cs-shop-categories/cs-shop-category-nested/index.pug:
--------------------------------------------------------------------------------
1 | dom-module#cs-shop-category-nested
2 | link(rel="import" href="style.css" type="css")
3 | template
4 | style(include="advanced-styles")
5 | a.cs-margin-top.cs-text-center(href="[[href]]")
6 | img#img
7 | .cs-padding-top [[category_title]]
8 | script(src="script.js")
9 |
--------------------------------------------------------------------------------
/modules/Shop/assets/html/cs-shop-categories/cs-shop-category-nested/style.css:
--------------------------------------------------------------------------------
1 | #img{background:#fff;border:1px solid #e5e5e5;box-sizing:border-box;display:block;padding:.3em}
2 |
--------------------------------------------------------------------------------
/modules/Shop/assets/html/cs-shop-categories/cs-shop-category-nested/style.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * @package Shop
3 | * @category modules
4 | * @author Nazar Mokrynskyi
5 | * @license 0BSD
6 | */
7 |
8 | #img {
9 | background : #fff;
10 | border : 1px solid #e5e5e5;
11 | box-sizing : border-box;
12 | display : block;
13 | padding : .3em;
14 | }
15 |
--------------------------------------------------------------------------------
/modules/Shop/assets/html/cs-shop-categories/cs-shop-category/index.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/modules/Shop/assets/html/cs-shop-categories/cs-shop-category/index.pug:
--------------------------------------------------------------------------------
1 | dom-module#cs-shop-category
2 | link(rel="import" href="style.css" type="css")
3 | template
4 | style(include="basic-styles")
5 | #content.cs-margin-top
6 | div
7 | a(href="[[href]]")
8 | img#img
9 | div
10 | h1
11 | content(select="h1")
12 | #description
13 | #nested
14 | script(src="script.js")
15 |
--------------------------------------------------------------------------------
/modules/Shop/assets/html/cs-shop-empty-cart/index.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/modules/Shop/assets/html/cs-shop-empty-cart/index.pug:
--------------------------------------------------------------------------------
1 | dom-module#cs-shop-empty-cart
2 | template
3 | p.cs-text-lead.cs-text-center
4 | slot
5 | script(src="script.js")
6 |
--------------------------------------------------------------------------------
/modules/Shop/assets/html/cs-shop-empty-cart/script.js:
--------------------------------------------------------------------------------
1 | // Generated by LiveScript 1.5.0
2 | /**
3 | * @package Shop
4 | * @category modules
5 | * @author Nazar Mokrynskyi
6 | * @license 0BSD
7 | */
8 | (function(){
9 | Polymer({
10 | is: 'cs-shop-empty-cart'
11 | });
12 | }).call(this);
13 |
--------------------------------------------------------------------------------
/modules/Shop/assets/html/cs-shop-empty-cart/script.ls:
--------------------------------------------------------------------------------
1 | /**
2 | * @package Shop
3 | * @category modules
4 | * @author Nazar Mokrynskyi
5 | * @license 0BSD
6 | */
7 | Polymer(
8 | is : 'cs-shop-empty-cart'
9 | )
10 |
--------------------------------------------------------------------------------
/modules/Shop/assets/html/cs-shop-item/style.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * @package Shop
3 | * @category modules
4 | * @author Nazar Mokrynskyi
5 | * @license 0BSD
6 | */
7 | @import '../../../../../assets/css/flexy-plexy';
8 |
9 | #content {
10 | @include flexy-plexy(1em, 1 1);
11 |
12 | > :nth-of-type(2) {
13 | border-left : 1px solid #ddd;
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/modules/Shop/assets/html/cs-shop-orders/cs-shop-order/cs-shop-order-item/index.pug:
--------------------------------------------------------------------------------
1 | dom-module#cs-shop-order-item
2 | link(rel="import" href="style.css" type="css")
3 | template
4 | style(include="advanced-styles")
5 | #content.cs-margin-top
6 | div
7 | a#img-link
8 | img#img
9 | div
10 | .cs-text-lead
11 | a#link [[item_title]]
12 | | : [[units]] x [[unit_price_formatted]] = [[price_formatted]]
13 | span#discount
14 | div
15 | #description
16 | script(src="script.js")
17 |
--------------------------------------------------------------------------------
/modules/Shop/assets/html/cs-shop-orders/cs-shop-order/cs-shop-order-item/style.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * @package Shop
3 | * @category modules
4 | * @author Nazar Mokrynskyi
5 | * @license 0BSD
6 | */
7 | @import '../../../../../../../assets/css/flexy-plexy';
8 |
9 | #content {
10 | @include flexy-plexy(.5em, 1 9);
11 | }
12 |
13 | #img {
14 | background : #fff;
15 | border : 1px solid #e5e5e5;
16 | box-sizing : border-box;
17 | padding : .3em;
18 | }
19 |
--------------------------------------------------------------------------------
/modules/Shop/assets/html/cs-shop-orders/index.html:
--------------------------------------------------------------------------------
1 | [[L.your_orders]]
--------------------------------------------------------------------------------
/modules/Shop/assets/html/cs-shop-orders/index.pug:
--------------------------------------------------------------------------------
1 | dom-module#cs-shop-orders
2 | template
3 | style(include="advanced-styles")
4 | h1.cs-text-center [[L.your_orders]]
5 | #orders
6 | script(src="script.js")
7 |
--------------------------------------------------------------------------------
/modules/Shop/assets/html/cs-shop-orders/script.js:
--------------------------------------------------------------------------------
1 | // Generated by LiveScript 1.5.0
2 | /**
3 | * @package Shop
4 | * @category modules
5 | * @author Nazar Mokrynskyi
6 | * @license 0BSD
7 | */
8 | (function(){
9 | Polymer({
10 | is: 'cs-shop-orders',
11 | behaviors: [cs.Polymer.behaviors.Language('shop_')],
12 | ready: function(){
13 | this.$.orders.innerHTML = this.querySelector('#orders').innerHTML;
14 | }
15 | });
16 | }).call(this);
17 |
--------------------------------------------------------------------------------
/modules/Shop/assets/html/cs-shop-orders/script.ls:
--------------------------------------------------------------------------------
1 | /**
2 | * @package Shop
3 | * @category modules
4 | * @author Nazar Mokrynskyi
5 | * @license 0BSD
6 | */
7 | Polymer(
8 | is : 'cs-shop-orders'
9 | behaviors : [
10 | cs.Polymer.behaviors.Language('shop_')
11 | ]
12 | ready : !->
13 | @$.orders.innerHTML = @querySelector('#orders').innerHTML
14 | )
15 |
--------------------------------------------------------------------------------
/modules/Shop/index.json:
--------------------------------------------------------------------------------
1 | [
2 | "categories_",
3 | "items_",
4 | "orders_",
5 | "cart",
6 | "pay"
7 | ]
8 |
--------------------------------------------------------------------------------
/modules/Shop/index.php:
--------------------------------------------------------------------------------
1 |
6 | * @license 0BSD
7 | */
8 | namespace cs\modules\Shop;
9 | use
10 | cs\Config,
11 | cs\Page;
12 | Page::instance()->config(
13 | Config::instance()->components['modules']['Shop']['data'],
14 | 'cs.shop.settings'
15 | );
16 |
--------------------------------------------------------------------------------
/modules/Shop/meta/uninstall_db/shop/MySQLi.sql:
--------------------------------------------------------------------------------
1 | DROP TABLE
2 | `[prefix]shop_attributes`,
3 | `[prefix]shop_categories`,
4 | `[prefix]shop_category_attributes`,
5 | `[prefix]shop_items`,
6 | `[prefix]shop_items_attributes`,
7 | `[prefix]shop_items_images`,
8 | `[prefix]shop_items_tags`,
9 | `[prefix]shop_items_videos`,
10 | `[prefix]shop_orders`,
11 | `[prefix]shop_orders_history`,
12 | `[prefix]shop_orders_items`,
13 | `[prefix]shop_order_statuses`,
14 | `[prefix]shop_shipping_types`,
15 | `[prefix]shop_tags`;
16 |
--------------------------------------------------------------------------------
/modules/Static_pages/admin/index.json:
--------------------------------------------------------------------------------
1 | [
2 | "browse_categories",
3 | "browse_pages"
4 | ]
5 |
--------------------------------------------------------------------------------
/modules/Static_pages/api/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "admin" : {
3 | "categories" : [
4 | "_",
5 | "pages"
6 | ],
7 | "pages" : []
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/modules/Static_pages/assets/html/.htaccess:
--------------------------------------------------------------------------------
1 |
2 | RewriteEngine Off
3 |
4 |
--------------------------------------------------------------------------------
/modules/Static_pages/assets/html/cs-static-pages-admin-categories-add-edit-form/style.css:
--------------------------------------------------------------------------------
1 | td{vertical-align:top}
2 |
--------------------------------------------------------------------------------
/modules/Static_pages/assets/html/cs-static-pages-admin-categories-add-edit-form/style.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * @package Static pages
3 | * @category modules
4 | * @author Nazar Mokrynskyi
5 | * @license 0BSD
6 | */
7 | td {
8 | vertical-align : top;
9 | }
10 |
--------------------------------------------------------------------------------
/modules/Static_pages/assets/html/cs-static-pages-admin-categories-list/style.css:
--------------------------------------------------------------------------------
1 | td:nth-child(2n+1){@apply --layout;@apply --layout-justified}td:nth-child(2n+1) span{font-weight:bold}
2 |
--------------------------------------------------------------------------------
/modules/Static_pages/assets/html/cs-static-pages-admin-categories-list/style.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * @package Static pages
3 | * @category modules
4 | * @author Nazar Mokrynskyi
5 | * @license 0BSD
6 | */
7 | td:nth-child(2n+1) {
8 | @apply --layout;
9 | @apply --layout-justified;
10 |
11 | span {
12 | font-weight : bold;
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/modules/Static_pages/assets/html/cs-static-pages-admin-pages-add-edit-form/style.css:
--------------------------------------------------------------------------------
1 | td{vertical-align:top}
2 |
--------------------------------------------------------------------------------
/modules/Static_pages/assets/html/cs-static-pages-admin-pages-add-edit-form/style.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * @package Static pages
3 | * @category modules
4 | * @author Nazar Mokrynskyi
5 | * @license 0BSD
6 | */
7 | td {
8 | vertical-align : top;
9 | }
10 |
--------------------------------------------------------------------------------
/modules/Static_pages/assets/html/cs-static-pages-page/style.css:
--------------------------------------------------------------------------------
1 | cs-editor-inline{display:block}#title,cs-editor-inline{outline:#333 dotted 1px}
2 |
--------------------------------------------------------------------------------
/modules/Static_pages/assets/html/cs-static-pages-page/style.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * @package Static pages
3 | * @category modules
4 | * @author Nazar Mokrynskyi
5 | * @license 0BSD
6 | */
7 | cs-editor-inline {
8 | display : block;
9 | }
10 |
11 | #title,
12 | cs-editor-inline {
13 | outline : #333 dotted 1px
14 | }
15 |
--------------------------------------------------------------------------------
/modules/Static_pages/meta/uninstall_db/pages/MySQLi.sql:
--------------------------------------------------------------------------------
1 | DROP TABLE `[prefix]static_pages`, `[prefix]static_pages_categories`;
2 |
--------------------------------------------------------------------------------
/modules/System/admin/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "components" : [
3 | "modules",
4 | "blocks",
5 | "databases",
6 | "storages"
7 | ],
8 | "general" : [
9 | "site_info",
10 | "system",
11 | "optimization",
12 | "appearance",
13 | "languages",
14 | "about_server"
15 | ],
16 | "users" : [
17 | "general",
18 | "users",
19 | "groups",
20 | "permissions",
21 | "security",
22 | "mail"
23 | ]
24 | }
25 |
--------------------------------------------------------------------------------
/modules/System/admin/index_simple.json:
--------------------------------------------------------------------------------
1 | {
2 | "components" : [
3 | "modules",
4 | "blocks"
5 | ],
6 | "general" : [
7 | "site_info",
8 | "system",
9 | "optimization",
10 | "appearance",
11 | "languages",
12 | "about_server"
13 | ],
14 | "users" : [
15 | "general",
16 | "users",
17 | "groups",
18 | "permissions",
19 | "security",
20 | "mail"
21 | ]
22 | }
23 |
--------------------------------------------------------------------------------
/modules/System/assets/html/.htaccess:
--------------------------------------------------------------------------------
1 |
2 | RewriteEngine Off
3 |
4 |
--------------------------------------------------------------------------------
/modules/System/assets/html/cs-system-admin-blocks-form/style.css:
--------------------------------------------------------------------------------
1 | :host{display:block;margin-bottom:1em}
2 |
--------------------------------------------------------------------------------
/modules/System/assets/html/cs-system-admin-blocks-form/style.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * @package CleverStyle Framework
3 | * @subpackage System module
4 | * @category modules
5 | * @author Nazar Mokrynskyi
6 | * @license 0BSD
7 | */
8 | :host {
9 | display : block;
10 | margin-bottom : 1em;
11 | }
12 |
--------------------------------------------------------------------------------
/modules/System/assets/html/cs-system-admin-security/index.pug:
--------------------------------------------------------------------------------
1 | include ../_settings_mixins
2 | dom-module#cs-system-admin-security
3 | template
4 | style(include="advanced-styles")
5 | cs-form: form.cs-text-center
6 | +input("key_expire", null, "number", 1)
7 | = ' '
8 | | [[L.system_time_seconds]]
9 | +on-off-switcher("gravatar_support")
10 | +footer-buttons
11 | script(src="script.js")
12 |
--------------------------------------------------------------------------------
/modules/System/assets/html/cs-system-admin-system/index.pug:
--------------------------------------------------------------------------------
1 | include ../_settings_mixins
2 | dom-module#cs-system-admin-system
3 | template
4 | style(include="advanced-styles")
5 | cs-form: form.cs-text-center
6 | +on-off-switcher("site_mode")
7 | +input("closed_title")
8 | +editor("closed_text")
9 | +input("title_delimiter")
10 | +on-off-switcher("title_reverse")
11 | +on-off-switcher("simple_admin_mode")
12 | +footer-buttons
13 | script(src="script.js")
14 |
--------------------------------------------------------------------------------
/modules/System/assets/html/cs-system-admin-system/script.ls:
--------------------------------------------------------------------------------
1 | /**
2 | * @package CleverStyle Framework
3 | * @subpackage System module
4 | * @category modules
5 | * @author Nazar Mokrynskyi
6 | * @license 0BSD
7 | */
8 | Polymer(
9 | is : 'cs-system-admin-system'
10 | behaviors : [
11 | cs.Polymer.behaviors.Language('system_admin_system_')
12 | cs.Polymer.behaviors.admin.System.settings
13 | ]
14 | properties :
15 | settings_api_url : 'api/System/admin/system'
16 | )
17 |
--------------------------------------------------------------------------------
/modules/System/assets/html/cs-system-admin-users-add-user-form/index.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/modules/System/assets/html/cs-system-admin-users-add-user-form/index.pug:
--------------------------------------------------------------------------------
1 | dom-module#cs-system-admin-users-add-user-form
2 | template
3 | cs-form: form
4 | label Email
5 | cs-input-text: input(type="email" value="{{email}}")
6 | p
7 | cs-button(primary): button(type="button" on-tap="save" disabled="[[!email]]") [[L.save]]
8 | script(src="script.js")
9 |
--------------------------------------------------------------------------------
/modules/System/assets/html/cs-system-admin-users-edit-user-form/style.css:
--------------------------------------------------------------------------------
1 | img{max-height:var(--form-element-width, 30em);max-width:var(--form-element-width, 30em)}
2 |
--------------------------------------------------------------------------------
/modules/System/assets/html/cs-system-admin-users-edit-user-form/style.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * @package CleverStyle Framework
3 | * @subpackage System module
4 | * @category modules
5 | * @author Nazar Mokrynskyi
6 | * @license 0BSD
7 | */
8 |
9 | img {
10 | max-height : var(--form-element-width, 30em);
11 | max-width : var(--form-element-width, 30em);
12 | }
13 |
--------------------------------------------------------------------------------
/modules/System/assets/html/cs-system-admin-users-groups-form/style.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * @package CleverStyle Framework
3 | * @subpackage System module
4 | * @category modules
5 | * @author Nazar Mokrynskyi
6 | * @license 0BSD
7 | */
8 | @import '../../../../../assets/css/flexy-plexy';
9 |
10 | :host {
11 | display : block;
12 | min-width : 40vw;
13 | }
14 |
15 | #grid {
16 | @include flexy-plexy(2em, 1 1);
17 |
18 | > div > div {
19 | margin-bottom : .5em;
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/modules/System/cli/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "_" : [],
3 | "optimization" : []
4 | }
5 |
--------------------------------------------------------------------------------
/modules/System/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "blank" : [],
3 | "profile" : [
4 | "registration_confirmation",
5 | "restore_password_confirmation"
6 | ],
7 | "robots.txt" : []
8 | }
9 |
--------------------------------------------------------------------------------
/modules/System/meta/update/6.46.php:
--------------------------------------------------------------------------------
1 |
6 | * @license 0BSD
7 | */
8 | namespace cs;
9 |
10 | file_put_contents(
11 | DIR.'/.htaccess',
12 | str_replace(
13 | 'Header set Cache-Control "max-age=2592000, public"',
14 | 'Header set Cache-Control "max-age=2592000, immutable"',
15 | file_get_contents(DIR.'/.htaccess')
16 | )
17 | );
18 |
--------------------------------------------------------------------------------
/modules/System/meta/update_db/users/6.7/MySQLi.sql:
--------------------------------------------------------------------------------
1 | ALTER TABLE `[prefix]users` DROP `block_until`;
2 |
--------------------------------------------------------------------------------
/modules/System/meta/update_db/users/6.7/PostgreSQL.sql:
--------------------------------------------------------------------------------
1 | ALTER TABLE "[prefix]users" DROP "block_until";
2 |
--------------------------------------------------------------------------------
/modules/System/meta/update_db/users/6.8/MySQLi.sql:
--------------------------------------------------------------------------------
1 | DROP TABLE `[prefix]sign_ins`;
2 |
--------------------------------------------------------------------------------
/modules/System/meta/update_db/users/6.8/PostgreSQL.sql:
--------------------------------------------------------------------------------
1 | DROP TABLE "[prefix]sign_ins";
2 |
--------------------------------------------------------------------------------
/modules/System/meta/update_db/users/6.8/SQLite.sql:
--------------------------------------------------------------------------------
1 | DROP TABLE `[prefix]sign_ins`;
2 |
--------------------------------------------------------------------------------
/modules/System/readme.html:
--------------------------------------------------------------------------------
1 | System module of CleverStyle Framework.
2 | It contains main administration interface, main API, and base functionality for Home page of CleverStyle Framework.
3 | It is strongly recommended not to delete the module.
4 |
--------------------------------------------------------------------------------
/modules/System/robots.txt:
--------------------------------------------------------------------------------
1 | User-agent: *
2 | Disallow: /admin
3 | Disallow: /api
4 | Disallow: /assets
5 | Disallow: /modules
6 | Disallow: /storage
7 | Disallow: /themes
8 |
--------------------------------------------------------------------------------
/modules/Tags/meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "package" : "Tags",
3 | "category" : "modules",
4 | "version" : "2.2.0+build-9",
5 | "description" : "Contains trait that is used for Tags creation and search by other modules",
6 | "author" : "Nazar Mokrynskyi",
7 | "website" : "cleverstyle.org/Framework",
8 | "license" : "0BSD",
9 | "require" : [
10 | "System>=7.0",
11 | "System<8.0"
12 | ]
13 | }
14 |
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/html/.htaccess:
--------------------------------------------------------------------------------
1 |
2 | RewriteEngine Off
3 |
4 |
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/html/cs-0-behaviors-&-mixins/index.pug:
--------------------------------------------------------------------------------
1 | dom-module#cs-editor-styles
2 | template
3 | style
4 | include ../../js/skins/lightgray/content.inline.min.css
5 | include ../../js/skins/lightgray/skin.min.css
6 | script(src="common.js")
7 |
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/html/cs-editor-inline/index.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/html/cs-editor-inline/index.pug:
--------------------------------------------------------------------------------
1 | dom-module#cs-editor-inline
2 | link(rel="import" href="style.css" type="css")
3 | template
4 | cs-icon(icon="spinner" spin hidden="[[loaded]]")
5 | slot
6 | script(src="script.js")
7 |
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/html/cs-editor-inline/script.js:
--------------------------------------------------------------------------------
1 | // Generated by LiveScript 1.5.0
2 | /**
3 | * @package TinyMCE
4 | * @category modules
5 | * @author Nazar Mokrynskyi
6 | * @license 0BSD
7 | */
8 | (function(){
9 | Polymer({
10 | is: 'cs-editor-inline',
11 | behaviors: [TinyMCE_Polymer_editor_behavior, cs.Polymer.behaviors.inject_light_styles],
12 | _styles_dom_module: 'cs-editor-styles',
13 | editor_config: 'editor_config_inline'
14 | });
15 | }).call(this);
16 |
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/html/cs-editor-inline/script.ls:
--------------------------------------------------------------------------------
1 | /**
2 | * @package TinyMCE
3 | * @category modules
4 | * @author Nazar Mokrynskyi
5 | * @license 0BSD
6 | */
7 | Polymer(
8 | is : 'cs-editor-inline'
9 | behaviors : [
10 | TinyMCE_Polymer_editor_behavior,
11 | cs.Polymer.behaviors.inject_light_styles
12 | ]
13 | _styles_dom_module : 'cs-editor-styles'
14 | editor_config : 'editor_config_inline'
15 | )
16 |
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/html/cs-editor-inline/style.css:
--------------------------------------------------------------------------------
1 | /**
2 | * @package TinyMCE
3 | * @category modules
4 | * @author Nazar Mokrynskyi
5 | * @license 0BSD
6 | */
7 | :host:not(hidden) {
8 | display : inline-block;
9 | }
10 |
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/html/cs-editor-simple-inline/index.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/html/cs-editor-simple-inline/index.pug:
--------------------------------------------------------------------------------
1 | dom-module#cs-editor-simple-inline
2 | link(rel="import" href="style.css" type="css")
3 | template
4 | cs-icon(icon="spinner" spin hidden="[[loaded]]")
5 | slot
6 | script(src="script.js")
7 |
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/html/cs-editor-simple-inline/script.ls:
--------------------------------------------------------------------------------
1 | /**
2 | * @package TinyMCE
3 | * @category modules
4 | * @author Nazar Mokrynskyi
5 | * @license 0BSD
6 | */
7 | Polymer(
8 | is : 'cs-editor-simple-inline'
9 | behaviors : [
10 | TinyMCE_Polymer_editor_behavior,
11 | cs.Polymer.behaviors.inject_light_styles
12 | ]
13 | _styles_dom_module : 'cs-editor-styles'
14 | editor_config : 'editor_config_simple_inline'
15 | )
16 |
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/html/cs-editor-simple-inline/style.css:
--------------------------------------------------------------------------------
1 | /**
2 | * @package TinyMCE
3 | * @category modules
4 | * @author Nazar Mokrynskyi
5 | * @license 0BSD
6 | */
7 | :host:not(hidden) {
8 | display : inline-block;
9 | }
10 |
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/html/cs-editor-simple/index.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/html/cs-editor-simple/index.pug:
--------------------------------------------------------------------------------
1 | dom-module#cs-editor-simple
2 | link(rel="import" href="style.css" type="css")
3 | template
4 | cs-icon(icon="spinner" spin hidden="[[loaded]]")
5 | slot
6 | script(src="script.js")
7 |
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/html/cs-editor-simple/script.js:
--------------------------------------------------------------------------------
1 | // Generated by LiveScript 1.5.0
2 | /**
3 | * @package TinyMCE
4 | * @category modules
5 | * @author Nazar Mokrynskyi
6 | * @license 0BSD
7 | */
8 | (function(){
9 | Polymer({
10 | is: 'cs-editor-simple',
11 | behaviors: [TinyMCE_Polymer_editor_behavior, cs.Polymer.behaviors.inject_light_styles],
12 | _styles_dom_module: 'cs-editor-styles',
13 | editor_config: 'editor_config_simple'
14 | });
15 | }).call(this);
16 |
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/html/cs-editor-simple/script.ls:
--------------------------------------------------------------------------------
1 | /**
2 | * @package TinyMCE
3 | * @category modules
4 | * @author Nazar Mokrynskyi
5 | * @license 0BSD
6 | */
7 | Polymer(
8 | is : 'cs-editor-simple'
9 | behaviors : [
10 | TinyMCE_Polymer_editor_behavior,
11 | cs.Polymer.behaviors.inject_light_styles
12 | ]
13 | _styles_dom_module : 'cs-editor-styles'
14 | editor_config : 'editor_config_simple'
15 | )
16 |
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/html/cs-editor-simple/style.css:
--------------------------------------------------------------------------------
1 | /**
2 | * @package TinyMCE
3 | * @category modules
4 | * @author Nazar Mokrynskyi
5 | * @license 0BSD
6 | */
7 | :host:not(hidden) {
8 | display : inline-block;
9 | }
10 |
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/html/cs-editor/index.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/html/cs-editor/index.pug:
--------------------------------------------------------------------------------
1 | dom-module#cs-editor
2 | link(rel="import" href="style.css" type="css")
3 | template
4 | cs-icon(icon="spinner" spin hidden="[[loaded]]")
5 | slot
6 | script(src="script.js")
7 |
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/html/cs-editor/script.js:
--------------------------------------------------------------------------------
1 | // Generated by LiveScript 1.5.0
2 | /**
3 | * @package TinyMCE
4 | * @category modules
5 | * @author Nazar Mokrynskyi
6 | * @license 0BSD
7 | */
8 | (function(){
9 | Polymer({
10 | is: 'cs-editor',
11 | behaviors: [TinyMCE_Polymer_editor_behavior, cs.Polymer.behaviors.inject_light_styles],
12 | _styles_dom_module: 'cs-editor-styles',
13 | editor_config: 'editor_config_full'
14 | });
15 | }).call(this);
16 |
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/html/cs-editor/script.ls:
--------------------------------------------------------------------------------
1 | /**
2 | * @package TinyMCE
3 | * @category modules
4 | * @author Nazar Mokrynskyi
5 | * @license 0BSD
6 | */
7 | Polymer(
8 | is : 'cs-editor'
9 | behaviors : [
10 | TinyMCE_Polymer_editor_behavior,
11 | cs.Polymer.behaviors.inject_light_styles
12 | ]
13 | _styles_dom_module : 'cs-editor-styles'
14 | editor_config : 'editor_config_full'
15 | )
16 |
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/html/cs-editor/style.css:
--------------------------------------------------------------------------------
1 | /**
2 | * @package TinyMCE
3 | * @category modules
4 | * @author Nazar Mokrynskyi
5 | * @license 0BSD
6 | */
7 | :host:not(hidden) {
8 | display : inline-block;
9 | }
10 |
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/js/!include:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/modules/TinyMCE/assets/js/!include
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/js/plugins/visualblocks/img/address.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/modules/TinyMCE/assets/js/plugins/visualblocks/img/address.gif
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/js/plugins/visualblocks/img/article.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/modules/TinyMCE/assets/js/plugins/visualblocks/img/article.gif
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/js/plugins/visualblocks/img/aside.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/modules/TinyMCE/assets/js/plugins/visualblocks/img/aside.gif
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/js/plugins/visualblocks/img/blockquote.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/modules/TinyMCE/assets/js/plugins/visualblocks/img/blockquote.gif
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/js/plugins/visualblocks/img/div.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/modules/TinyMCE/assets/js/plugins/visualblocks/img/div.gif
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/js/plugins/visualblocks/img/dl.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/modules/TinyMCE/assets/js/plugins/visualblocks/img/dl.gif
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/js/plugins/visualblocks/img/figure.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/modules/TinyMCE/assets/js/plugins/visualblocks/img/figure.gif
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/js/plugins/visualblocks/img/h1.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/modules/TinyMCE/assets/js/plugins/visualblocks/img/h1.gif
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/js/plugins/visualblocks/img/h2.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/modules/TinyMCE/assets/js/plugins/visualblocks/img/h2.gif
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/js/plugins/visualblocks/img/h3.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/modules/TinyMCE/assets/js/plugins/visualblocks/img/h3.gif
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/js/plugins/visualblocks/img/h4.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/modules/TinyMCE/assets/js/plugins/visualblocks/img/h4.gif
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/js/plugins/visualblocks/img/h5.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/modules/TinyMCE/assets/js/plugins/visualblocks/img/h5.gif
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/js/plugins/visualblocks/img/h6.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/modules/TinyMCE/assets/js/plugins/visualblocks/img/h6.gif
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/js/plugins/visualblocks/img/hgroup.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/modules/TinyMCE/assets/js/plugins/visualblocks/img/hgroup.gif
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/js/plugins/visualblocks/img/ol.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/modules/TinyMCE/assets/js/plugins/visualblocks/img/ol.gif
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/js/plugins/visualblocks/img/p.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/modules/TinyMCE/assets/js/plugins/visualblocks/img/p.gif
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/js/plugins/visualblocks/img/pre.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/modules/TinyMCE/assets/js/plugins/visualblocks/img/pre.gif
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/js/plugins/visualblocks/img/section.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/modules/TinyMCE/assets/js/plugins/visualblocks/img/section.gif
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/js/plugins/visualblocks/img/ul.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/modules/TinyMCE/assets/js/plugins/visualblocks/img/ul.gif
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/js/skins/lightgray/fonts/tinymce-small.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/modules/TinyMCE/assets/js/skins/lightgray/fonts/tinymce-small.eot
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/js/skins/lightgray/fonts/tinymce-small.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/modules/TinyMCE/assets/js/skins/lightgray/fonts/tinymce-small.ttf
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/js/skins/lightgray/fonts/tinymce-small.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/modules/TinyMCE/assets/js/skins/lightgray/fonts/tinymce-small.woff
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/js/skins/lightgray/fonts/tinymce.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/modules/TinyMCE/assets/js/skins/lightgray/fonts/tinymce.eot
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/js/skins/lightgray/fonts/tinymce.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/modules/TinyMCE/assets/js/skins/lightgray/fonts/tinymce.ttf
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/js/skins/lightgray/fonts/tinymce.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/modules/TinyMCE/assets/js/skins/lightgray/fonts/tinymce.woff
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/js/skins/lightgray/img/anchor.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/modules/TinyMCE/assets/js/skins/lightgray/img/anchor.gif
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/js/skins/lightgray/img/loader.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/modules/TinyMCE/assets/js/skins/lightgray/img/loader.gif
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/js/skins/lightgray/img/object.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/modules/TinyMCE/assets/js/skins/lightgray/img/object.gif
--------------------------------------------------------------------------------
/modules/TinyMCE/assets/js/skins/lightgray/img/trans.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/modules/TinyMCE/assets/js/skins/lightgray/img/trans.gif
--------------------------------------------------------------------------------
/modules/Uploader/assets/css/admin.css:
--------------------------------------------------------------------------------
1 | body form{text-align:center}
2 |
--------------------------------------------------------------------------------
/modules/Uploader/assets/css/admin.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * @package Uploader
3 | * @category modules
4 | * @author Nazar Mokrynskyi
5 | * @license 0BSD
6 | */
7 | body form {
8 | text-align : center;
9 | }
10 |
--------------------------------------------------------------------------------
/modules/Uploader/meta/uninstall_db/files/MySQLi.sql:
--------------------------------------------------------------------------------
1 | DROP TABLE `[prefix]uploader_files`, `[prefix]uploader_files_tags`;
2 |
--------------------------------------------------------------------------------
/modules/WebSockets/assets/css/admin.css:
--------------------------------------------------------------------------------
1 | body form{text-align:center}
2 |
--------------------------------------------------------------------------------
/modules/WebSockets/assets/css/admin.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * @package WebSockets
3 | * @category modules
4 | * @author Nazar Mokrynskyi
5 | * @license 0BSD
6 | */
7 | body form {
8 | text-align : center;
9 | }
10 |
--------------------------------------------------------------------------------
/modules/WebSockets/meta/install_db/pool/MySQLi.sql:
--------------------------------------------------------------------------------
1 | CREATE TABLE IF NOT EXISTS `[prefix]websockets_pool` (
2 | `address` varchar(1024) NOT NULL,
3 | `date` bigint(20) NOT NULL
4 | ) ENGINE=MEMORY DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
5 |
6 | ALTER TABLE `[prefix]websockets_pool`
7 | ADD PRIMARY KEY (`address`(191)),
8 | ADD KEY `date` (`date`);
9 |
--------------------------------------------------------------------------------
/modules/WebSockets/meta/uninstall_db/pool/MySQLi.sql:
--------------------------------------------------------------------------------
1 | DROP TABLE `[prefix]websockets_pool`;
2 |
--------------------------------------------------------------------------------
/modules/WebSockets/supervisor.php:
--------------------------------------------------------------------------------
1 |
6 | * @license 0BSD
7 | */
8 | if ($argc < 2) {
9 | echo "Supervisor takes command as argument and execute it. If command stops for some reason - supervisor will start it again in 1 second and will do that until alive itself.\nUsage: php supervisor.php 'some-command'";
10 | return;
11 | }
12 | while (true) {
13 | exec($argv[1]);
14 | sleep(1);
15 | }
16 |
--------------------------------------------------------------------------------
/service_scripts/make_htmlpurifier_standalone_phar.php:
--------------------------------------------------------------------------------
1 | startBuffering();
7 | $phar->buildFromDirectory($argv[1]);
8 | $phar->setAlias('htmlpurifier.phar');
9 | $phar->stopBuffering();
10 |
--------------------------------------------------------------------------------
/storage/.htaccess:
--------------------------------------------------------------------------------
1 | Deny from all
2 | RewriteEngine Off
3 |
4 | SetHandler default-handler
5 |
6 |
--------------------------------------------------------------------------------
/storage/public/.htaccess:
--------------------------------------------------------------------------------
1 | Allow From All
2 |
3 | ExpiresActive On
4 | ExpiresDefault "access plus 1 year"
5 |
6 |
7 | Header set Cache-Control "max-age=946080000, immutable"
8 | Header always append X-Frame-Options DENY
9 | Header set Content-Type application/octet-stream
10 |
11 |
--------------------------------------------------------------------------------
/storage/public_cache/.htaccess:
--------------------------------------------------------------------------------
1 | Allow From All
2 |
3 | Deny From All
4 |
5 |
--------------------------------------------------------------------------------
/storage/temp/.htaccess:
--------------------------------------------------------------------------------
1 | Allow From All
2 |
--------------------------------------------------------------------------------
/tests/php-code-coverage.phar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/php-code-coverage.phar
--------------------------------------------------------------------------------
/tests/quick/App/blocks/block.Custom_block.php:
--------------------------------------------------------------------------------
1 | =$block['title']?>
2 | Some content here
3 |
--------------------------------------------------------------------------------
/tests/quick/App/modules/Module_with_cli_index_php/cli/index.get.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/App/modules/Module_with_cli_index_php/cli/index.get.php
--------------------------------------------------------------------------------
/tests/quick/App/modules/Module_with_controller_routing/Controller.php:
--------------------------------------------------------------------------------
1 |
3 |
--------------------------------------------------------------------------------
/tests/quick/Cache/APCu_basic.phpt:
--------------------------------------------------------------------------------
1 | --SKIPIF--
2 |
7 | --INI--
8 | apc.enable_cli = 1
9 | --FILE--
10 | 'APCu']);
14 | require __DIR__.'/_test.php';
15 | ?>
16 | --EXPECT--
17 |
8 | --EXPECT--
9 | Config file not found, is system installed properly?
10 | How to install CleverStyle Framework: https://github.com/nazar-pc/CleverStyle-Framework/tree/master/docs/installation/Installation.md
11 |
--------------------------------------------------------------------------------
/tests/quick/Core/Core_error_web.phpt:
--------------------------------------------------------------------------------
1 | --FILE--
2 |
12 | --EXPECT--
13 |
14 | Config file not found, is system installed properly?
15 | How to install CleverStyle Framework
16 |
--------------------------------------------------------------------------------
/tests/quick/Event/modules/Module_test/events.php:
--------------------------------------------------------------------------------
1 | on('xyz', 'module_xyz_test');
8 |
--------------------------------------------------------------------------------
/tests/quick/Mail/attachment.txt:
--------------------------------------------------------------------------------
1 | Attachment content
2 |
--------------------------------------------------------------------------------
/tests/quick/Mail/phpmailer.phpt:
--------------------------------------------------------------------------------
1 | --FILE--
2 |
12 | --EXPECT--
13 |
--------------------------------------------------------------------------------
/tests/quick/Page/Assets_processing/image.svg:
--------------------------------------------------------------------------------
1 | 11111
--------------------------------------------------------------------------------
/tests/quick/Page/Assets_processing/imported-2.css:
--------------------------------------------------------------------------------
1 | .imported-class-2 {
2 | color: black;
3 | }
4 |
--------------------------------------------------------------------------------
/tests/quick/Page/Assets_processing/imported-external-scripts.html:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/tests/quick/Page/Assets_processing/imported-no-scripts.html:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
--------------------------------------------------------------------------------
/tests/quick/Page/Assets_processing/imported-no-styles.html:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/tests/quick/Page/Assets_processing/imported.css:
--------------------------------------------------------------------------------
1 | .imported-class {
2 | color: black;
3 | }
4 |
--------------------------------------------------------------------------------
/tests/quick/Page/Assets_processing/imported.html:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
11 |
--------------------------------------------------------------------------------
/tests/quick/Page/Assets_processing/script.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Some comment
3 | */
4 | var bar = 'bar'; /* another comment */
5 | // Single-line comment
6 |
7 | var foo = 'foo'; // Single-line after code
8 | (function (bar, foo) {
9 | return foo + bar +
10 | (10 * 15 / 5);
11 | })(bar, foo);
12 |
13 | if ( !( bar > foo ) )
14 | {
15 | console . log (foo), console.log(
16 | bar
17 | );
18 | }
19 |
20 | var script_code = "";
21 |
--------------------------------------------------------------------------------
/tests/quick/Page/Assets_processing/style-2.css:
--------------------------------------------------------------------------------
1 | :host {
2 | color: black;
3 | }
4 |
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/assets/css/file1.css:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/Collecting/assets/css/file1.css
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/assets/html/file1.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/Collecting/assets/html/file1.html
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/assets/js/Polymer/a.Polymer.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/Collecting/assets/js/Polymer/a.Polymer.js
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/assets/js/Polymer/b.Polymer.behavior.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/Collecting/assets/js/Polymer/b.Polymer.behavior.js
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/assets/js/file1.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/Collecting/assets/js/file1.js
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/assets/js/file2.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/Collecting/assets/js/file2.js
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/modules/Disabled_no_map_no_meta/assets/css/file1.css:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/Collecting/modules/Disabled_no_map_no_meta/assets/css/file1.css
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/modules/Disabled_no_map_no_meta/assets/html/file1.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/Collecting/modules/Disabled_no_map_no_meta/assets/html/file1.html
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/modules/Disabled_no_map_no_meta/assets/js/file1.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/Collecting/modules/Disabled_no_map_no_meta/assets/js/file1.js
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/modules/Disabled_no_map_no_meta/assets/js/file2.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/Collecting/modules/Disabled_no_map_no_meta/assets/js/file2.js
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/modules/Disabled_with_map_and_meta/assets/css/file1.css:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/Collecting/modules/Disabled_with_map_and_meta/assets/css/file1.css
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/modules/Disabled_with_map_and_meta/assets/html/file1.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/Collecting/modules/Disabled_with_map_and_meta/assets/html/file1.html
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/modules/Disabled_with_map_and_meta/assets/js/file1.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/Collecting/modules/Disabled_with_map_and_meta/assets/js/file1.js
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/modules/Disabled_with_map_and_meta/assets/js/file2.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/Collecting/modules/Disabled_with_map_and_meta/assets/js/file2.js
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/modules/Disabled_with_map_and_meta/meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "package" : "Disabled_with_map_and_meta",
3 | "assets" : {
4 | "Disabled_with_map_and_meta" : "*"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/modules/Enabled_has_dependencies/assets/css/file1.css:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/Collecting/modules/Enabled_has_dependencies/assets/css/file1.css
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/modules/Enabled_has_dependencies/assets/html/file1.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/Collecting/modules/Enabled_has_dependencies/assets/html/file1.html
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/modules/Enabled_has_dependencies/assets/js/file1.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/Collecting/modules/Enabled_has_dependencies/assets/js/file1.js
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/modules/Enabled_has_dependencies/assets/js/file2.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/Collecting/modules/Enabled_has_dependencies/assets/js/file2.js
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/modules/Enabled_has_dependencies/meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "package" : "Enabled_has_dependencies",
3 | "assets" : {
4 | "Enabled_has_dependencies" : "*"
5 | },
6 | "require" : "enabled",
7 | "optional" : "Enabled3>=0"
8 | }
9 |
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/modules/Enabled_no_assets/.gitkept:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/Collecting/modules/Enabled_no_assets/.gitkept
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/modules/Enabled_provide/assets/css/file1.css:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/Collecting/modules/Enabled_provide/assets/css/file1.css
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/modules/Enabled_provide/assets/html/file1.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/Collecting/modules/Enabled_provide/assets/html/file1.html
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/modules/Enabled_provide/assets/js/file1.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/Collecting/modules/Enabled_provide/assets/js/file1.js
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/modules/Enabled_provide/assets/js/file2.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/Collecting/modules/Enabled_provide/assets/js/file2.js
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/modules/Enabled_provide/meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "package" : "Enabled_provide",
3 | "assets" : {
4 | "Enabled_provide" : "file1.*"
5 | },
6 | "provide" : "enabled"
7 | }
8 |
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/modules/Enabled_provides_feature/assets/css/file1.css:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/Collecting/modules/Enabled_provides_feature/assets/css/file1.css
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/modules/Enabled_provides_feature/assets/html/file1.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/Collecting/modules/Enabled_provides_feature/assets/html/file1.html
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/modules/Enabled_provides_feature/assets/js/file1.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/Collecting/modules/Enabled_provides_feature/assets/js/file1.js
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/modules/Enabled_provides_feature/assets/js/file2.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/Collecting/modules/Enabled_provides_feature/assets/js/file2.js
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/modules/Enabled_provides_feature/meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "package" : "Enabled_provides_feature",
3 | "assets" : {
4 | "Enabled_provides_feature" : "*"
5 | },
6 | "provide" : [
7 | "Enabled3/feature"
8 | ]
9 | }
10 |
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/modules/System/assets/css/file1.css:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/Collecting/modules/System/assets/css/file1.css
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/modules/System/assets/html/file1.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/Collecting/modules/System/assets/html/file1.html
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/modules/System/assets/js/file1.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/Collecting/modules/System/assets/js/file1.js
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/modules/System/assets/js/file2.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/Collecting/modules/System/assets/js/file2.js
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/modules/System/meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "package" : "System",
3 | "assets" : {
4 | "admin/System" : [
5 | "file1.js",
6 | "file2.js",
7 | "file1.html"
8 | ]
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/modules/Uninstalled/assets/css/file1.css:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/Collecting/modules/Uninstalled/assets/css/file1.css
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/modules/Uninstalled/assets/html/file1.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/Collecting/modules/Uninstalled/assets/html/file1.html
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/modules/Uninstalled/assets/js/file1.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/Collecting/modules/Uninstalled/assets/js/file1.js
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/modules/Uninstalled/assets/js/file2.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/Collecting/modules/Uninstalled/assets/js/file2.js
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/themes/CleverStyle/css/file1.css:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/Collecting/themes/CleverStyle/css/file1.css
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/themes/CleverStyle/html/file1.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/Collecting/themes/CleverStyle/html/file1.html
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/themes/CleverStyle/js/file1.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/Collecting/themes/CleverStyle/js/file1.js
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/themes/CleverStyle/js/file2.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/Collecting/themes/CleverStyle/js/file2.js
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/themes/Custom/css/file1.css:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/Collecting/themes/Custom/css/file1.css
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/themes/Custom/html/file1.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/Collecting/themes/Custom/html/file1.html
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/themes/Custom/js/file1.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/Collecting/themes/Custom/js/file1.js
--------------------------------------------------------------------------------
/tests/quick/Page/Collecting/themes/Custom/js/file2.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/Collecting/themes/Custom/js/file2.js
--------------------------------------------------------------------------------
/tests/quick/Page/RequireJS/bower_components/package-js/bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "main" : "package.js"
3 | }
4 |
--------------------------------------------------------------------------------
/tests/quick/Page/RequireJS/bower_components/package-js/package.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/RequireJS/bower_components/package-js/package.js
--------------------------------------------------------------------------------
/tests/quick/Page/RequireJS/bower_components/package-min-js/bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "main" : "package.js"
3 | }
4 |
--------------------------------------------------------------------------------
/tests/quick/Page/RequireJS/bower_components/package-min-js/package.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/RequireJS/bower_components/package-min-js/package.js
--------------------------------------------------------------------------------
/tests/quick/Page/RequireJS/bower_components/package-min-js/package.min.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/RequireJS/bower_components/package-min-js/package.min.js
--------------------------------------------------------------------------------
/tests/quick/Page/RequireJS/modules/Disabled/assets/js/.gitkept:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/RequireJS/modules/Disabled/assets/js/.gitkept
--------------------------------------------------------------------------------
/tests/quick/Page/RequireJS/modules/Disabled/meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "provide" : [
3 | "disabled_alias1",
4 | "disabled_alias2"
5 | ]
6 | }
7 |
--------------------------------------------------------------------------------
/tests/quick/Page/RequireJS/modules/Enabled/.gitkept:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/RequireJS/modules/Enabled/.gitkept
--------------------------------------------------------------------------------
/tests/quick/Page/RequireJS/modules/System/assets/js/.gitkept:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/RequireJS/modules/System/assets/js/.gitkept
--------------------------------------------------------------------------------
/tests/quick/Page/RequireJS/modules/Uninstalled/assets/js/.gitkept:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/RequireJS/modules/Uninstalled/assets/js/.gitkept
--------------------------------------------------------------------------------
/tests/quick/Page/RequireJS/node_modules/package-browser/package.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/RequireJS/node_modules/package-browser/package.js
--------------------------------------------------------------------------------
/tests/quick/Page/RequireJS/node_modules/package-browser/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "browser" : "package"
3 | }
4 |
--------------------------------------------------------------------------------
/tests/quick/Page/RequireJS/node_modules/package-js-browser-min/package.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/RequireJS/node_modules/package-js-browser-min/package.js
--------------------------------------------------------------------------------
/tests/quick/Page/RequireJS/node_modules/package-js-browser-min/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "browser" : "package.js"
3 | }
4 |
--------------------------------------------------------------------------------
/tests/quick/Page/RequireJS/node_modules/package-js-browser-min/package.min.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/RequireJS/node_modules/package-js-browser-min/package.min.js
--------------------------------------------------------------------------------
/tests/quick/Page/RequireJS/node_modules/package-js-browser/package.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/RequireJS/node_modules/package-js-browser/package.js
--------------------------------------------------------------------------------
/tests/quick/Page/RequireJS/node_modules/package-js-browser/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "browser" : "package.js"
3 | }
4 |
--------------------------------------------------------------------------------
/tests/quick/Page/RequireJS/node_modules/package-jspm-main/package.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/RequireJS/node_modules/package-jspm-main/package.js
--------------------------------------------------------------------------------
/tests/quick/Page/RequireJS/node_modules/package-jspm-main/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "main" : "package.jspm.js",
3 | "jspm" : {
4 | "main" : "package.jspm.js"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/tests/quick/Page/RequireJS/node_modules/package-jspm-main/package.jspm.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/RequireJS/node_modules/package-jspm-main/package.jspm.js
--------------------------------------------------------------------------------
/tests/quick/Page/RequireJS/node_modules/package-main-bad/package.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/tests/quick/Page/RequireJS/node_modules/package-main-not-found/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "main" : "package.js"
3 | }
4 |
--------------------------------------------------------------------------------
/tests/quick/Page/RequireJS/node_modules/package-main/package.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/Page/RequireJS/node_modules/package-main/package.js
--------------------------------------------------------------------------------
/tests/quick/Page/RequireJS/node_modules/package-main/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "main" : "package.js"
3 | }
4 |
--------------------------------------------------------------------------------
/tests/quick/Request/.gitattributes:
--------------------------------------------------------------------------------
1 | *.bin binary
2 |
--------------------------------------------------------------------------------
/tests/quick/Request/multipart_body_bad_header.bin:
--------------------------------------------------------------------------------
1 | ------8V0y5s0FruAd7840
2 | Content-Disposition:
3 | Content-Type: text/html
4 |
5 | 0123456789abcdef
6 |
7 | ------8V0y5s0FruAd7840--
--------------------------------------------------------------------------------
/tests/quick/Request/multipart_body_empty_data.bin:
--------------------------------------------------------------------------------
1 | ------8V0y5s0FruAd7840
2 | Content-Disposition: form-data; name="empty_data"
3 |
4 |
5 | ------8V0y5s0FruAd7840--
--------------------------------------------------------------------------------
/tests/quick/Request/multipart_body_empty_filename.bin:
--------------------------------------------------------------------------------
1 | ------8V0y5s0FruAd7840
2 | Content-Disposition: form-data; name="single_file"; filename=""
3 | Content-Type: text/html
4 |
5 | 0123456789abcdef
6 |
7 | ------8V0y5s0FruAd7840--
--------------------------------------------------------------------------------
/tests/quick/Request/multipart_body_empty_name.bin:
--------------------------------------------------------------------------------
1 | ------8V0y5s0FruAd7840
2 | Content-Disposition: form-data; name=""; filename="upload1.html"
3 | Content-Type: text/html
4 |
5 | 0123456789abcdef
6 |
7 | ------8V0y5s0FruAd7840--
--------------------------------------------------------------------------------
/tests/quick/Request/multipart_body_no_headers.bin:
--------------------------------------------------------------------------------
1 | ------8V0y5s0FruAd7840
2 |
3 |
4 | v1
5 | ------8V0y5s0FruAd7840--
--------------------------------------------------------------------------------
/tests/quick/Request/upload1.html:
--------------------------------------------------------------------------------
1 | 0123456789abcdef
2 |
--------------------------------------------------------------------------------
/tests/quick/Request/upload2.html:
--------------------------------------------------------------------------------
1 | 0123456789
2 |
--------------------------------------------------------------------------------
/tests/quick/Singleton/custom/classes/nested/Extended_Module_name1.php:
--------------------------------------------------------------------------------
1 | =1.0",
7 | "System<2.0"
8 | ]
9 | }
10 |
--------------------------------------------------------------------------------
/tests/quick/modules/System/Packages_dependencies/modules/TinyMCE/meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "package" : "TinyMCE",
3 | "category" : "modules",
4 | "version" : "1.0.0+custom-patches+cs-1.0.0",
5 | "provide" : [
6 | "editor",
7 | "simple_editor",
8 | "inline_editor",
9 | "simple_inline_editor"
10 | ],
11 | "require" : "System>=2.0",
12 | "optional" : [
13 | "Plupload",
14 | "file_upload"
15 | ]
16 | }
17 |
--------------------------------------------------------------------------------
/tests/quick/modules/System/Packages_manipulation/module_Test_module_1.0.0+build-1.phar.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/modules/System/Packages_manipulation/module_Test_module_1.0.0+build-1.phar.php
--------------------------------------------------------------------------------
/tests/quick/modules/System/Packages_manipulation/module_Test_module_2.0.0+build-2.phar.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nazar-pc/CleverStyle-Framework/3a4cd2fb6aa9e486511498061f60b53ba9267311/tests/quick/modules/System/Packages_manipulation/module_Test_module_2.0.0+build-2.phar.php
--------------------------------------------------------------------------------
/tests/quick/readme.md:
--------------------------------------------------------------------------------
1 | Tests in this directory are relatively quick, they do not require system installation and can even be executed in parallel in arbitrary order
2 |
--------------------------------------------------------------------------------
/tests/sequential/1.install/0.install-mysqli-web-0.php:
--------------------------------------------------------------------------------
1 | 'cscms.travis',
4 | 'HTTP_ACCEPT_LANGUAGE' => 'en-us;q=0.5,en;q=0.3',
5 | 'SERVER_NAME' => 'cscms.travis',
6 | 'SERVER_PROTOCOL' => 'HTTP/1.1',
7 | 'REQUEST_METHOD' => 'GET',
8 | 'QUERY_STRING' => '',
9 | 'REQUEST_URI' => '/web.php'
10 | ];
11 | require 'phar://'.__DIR__.'/../../cscms.travis/distributive.phar.php/web.php';
12 |
--------------------------------------------------------------------------------
/tests/sequential/2.pages/administration_403.phpt:
--------------------------------------------------------------------------------
1 | --FILE--
2 | body;
8 | ?>
9 | --EXPECT--
10 |
11 | 403 Forbidden
12 | 403 Forbidden
13 |
--------------------------------------------------------------------------------
/tests/sequential/2.pages/home_closed.phpt:
--------------------------------------------------------------------------------
1 | --FILE--
2 | core['site_mode'] = 0;
6 | do_request();
7 | echo Response::instance()->body;
8 | ?>
9 | --EXPECTF--
10 |
11 | Site closed
12 | Site closed for maintenance
13 |
--------------------------------------------------------------------------------
/tests/sequential/CRUD/advanced.cleanup.sql:
--------------------------------------------------------------------------------
1 | DROP TABLE `[prefix]crud_test_advanced`;
2 | DROP TABLE `[prefix]crud_test_advanced_joined_table1`;
3 | DROP TABLE `[prefix]crud_test_advanced_joined_table2`;
4 |
--------------------------------------------------------------------------------
/tests/sequential/CRUD/basic.SQLite.sql:
--------------------------------------------------------------------------------
1 | CREATE TABLE "[prefix]crud_test_basic" (
2 | "id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
3 | "max" INTEGER NOT NULL,
4 | "set" varchar(1) NOT NULL,
5 | "number" INTEGER NOT NULL,
6 | "title" varchar(1024) NOT NULL,
7 | "description" TEXT NOT NULL,
8 | "data" TEXT NOT NULL
9 | );
10 |
11 | CREATE TABLE "[prefix]crud_test_basic_joined_table" (
12 | "id" smallint(5) NOT NULL,
13 | "value" tinyint(1) NOT NULL,
14 | PRIMARY KEY ("id", "value")
15 | );
16 |
--------------------------------------------------------------------------------
/tests/sequential/CRUD/basic.cleanup.sql:
--------------------------------------------------------------------------------
1 | DROP TABLE `[prefix]crud_test_basic`;
2 | DROP TABLE `[prefix]crud_test_basic_joined_table`;
3 |
--------------------------------------------------------------------------------
/tests/sequential/readme.md:
--------------------------------------------------------------------------------
1 | Tests in this directory are relatively slow, they require system installation and should be executed sequentially one after another one test at a time
2 |
--------------------------------------------------------------------------------
/tests/sequential/z.clean/clean.phpt:
--------------------------------------------------------------------------------
1 | --SKIPIF--
2 |
7 | --FILE--
8 |
13 | --EXPECT--
14 | Done
15 |
--------------------------------------------------------------------------------
/themes/CleverStyle/css/style.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * @package CleverStyle Framework
3 | * @subpackage CleverStyle theme
4 | * @author Nazar Mokrynskyi
5 | * @license 0BSD
6 | */
7 |
8 | @import "layout";
9 | @import "header";
10 |
--------------------------------------------------------------------------------
/themes/CleverStyle/html/.htaccess:
--------------------------------------------------------------------------------
1 |
2 | RewriteEngine Off
3 |
4 |
--------------------------------------------------------------------------------
/themes/CleverStyle/html/cs-cleverstyle-header-user-block/style.css:
--------------------------------------------------------------------------------
1 | :host{box-sizing:border-box;height:48px;padding:2px 5px;text-align:center;@apply --layout-horizontal}:host [small-button]{height:1.8em !important}:host>div>cs-group{display:block}img{max-height:44px;margin-right:5px;max-width:44px}cs-icon{cursor:pointer}button{white-space:nowrap}
2 |
--------------------------------------------------------------------------------
/themes/CleverStyle/meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "package" : "CleverStyle",
3 | "category" : "themes",
4 | "description" : "Stock theme for CleverStyle Framework",
5 | "author" : "Nazar Mokrynskyi",
6 | "website" : "cleverstyle.org/Framework",
7 | "license" : "0BSD"
8 | }
9 |
--------------------------------------------------------------------------------
/themes/DarkEnergy/css/style.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * @package CleverStyle Framework
3 | * @subpackage DarkEnergy theme
4 | * @author Nazar Mokrynskyi
5 | * @license 0BSD
6 | */
7 | @import "layout";
8 |
--------------------------------------------------------------------------------
/themes/DarkEnergy/html/.htaccess:
--------------------------------------------------------------------------------
1 |
2 | RewriteEngine Off
3 |
4 |
--------------------------------------------------------------------------------
/themes/DarkEnergy/js/menu.ls:
--------------------------------------------------------------------------------
1 | /**
2 | * @package CleverStyle Framework
3 | * @subpackage DarkEnergy theme
4 | * @author Nazar Mokrynskyi
5 | * @license 0BSD
6 | */
7 | cs.ui.ready.then !->
8 | document.querySelector('.cs-mobile-menu').addEventListener('click', !->
9 | if @hasAttribute('show')
10 | @removeAttribute('show')
11 | else
12 | @setAttribute('show', '')
13 | )
14 |
--------------------------------------------------------------------------------
/themes/DarkEnergy/meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "package" : "DarkEnergy",
3 | "category" : "themes",
4 | "version" : "2.24.2+build-65",
5 | "description" : "Dark responsive theme for CleverStyle Framework",
6 | "author" : "Nazar Mokrynskyi",
7 | "website" : "cleverstyle.org/Framework",
8 | "license" : "0BSD"
9 | }
10 |
--------------------------------------------------------------------------------