Skip to content

Commit aa92453

Browse files
authored
Merge pull request #6 from mauricerenck/develop
chore: add kirby folder for autoload
2 parents 9502c84 + 3cbcc7b commit aa92453

File tree

373 files changed

+95076
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

373 files changed

+95076
-0
lines changed

kirby/.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# This file is for unifying the coding style for different editors and IDEs
2+
# editorconfig.org
3+
4+
# PHP PSR-2 Coding Standards
5+
# http://www.php-fig.org/psr/psr-2/
6+
7+
root = true
8+
9+
[*.php]
10+
charset = utf-8
11+
end_of_line = lf
12+
insert_final_newline = true
13+
trim_trailing_whitespace = true
14+
indent_style = space
15+
indent_size = 4

kirby/SECURITY.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Security Policy
2+
3+
Please see the [Security Policy on the Kirby website](https://getkirby.com/security) for a list of the currently supported Kirby versions and of past security incidents as well as for information on how to report security vulnerabilities in the Kirby core or in the Panel.

kirby/assets/whoops.css

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
body {
2+
background: #efefef;
3+
font: normal normal 400 12px/1.5 -apple-system, BlinkMacSystemFont, Segoe UI,
4+
Roboto, Helvetica, Arial, sans-serif;
5+
}
6+
7+
.left-panel {
8+
background: transparent;
9+
}
10+
11+
header {
12+
background-color: #313740;
13+
}
14+
15+
.exc-title-primary {
16+
color: hsl(0, 71%, 55%);
17+
}
18+
19+
.frame.active {
20+
color: hsl(0, 71%, 55%);
21+
box-shadow: inset -5px 0 0 0 #d16464;
22+
}
23+
24+
.frame:not(.active):hover {
25+
background: rgba(203, 215, 229, 0.5);
26+
}
27+
28+
.rightButton {
29+
color: #999;
30+
box-shadow: inset 0 0 0 1px #777;
31+
border-radius: 0;
32+
}
33+
34+
.rightButton:hover {
35+
box-shadow: inset 0 0 0 1px #555;
36+
color: #777;
37+
}
38+
39+
.details-heading {
40+
color: #7e9abf;
41+
font-weight: 500;
42+
}
43+
44+
.frame-code {
45+
background: #000;
46+
}
47+
48+
pre.code-block,
49+
code.code-block,
50+
.frame-args.code-block,
51+
.frame-args.code-block samp {
52+
background: #16171a;
53+
}
54+
55+
.linenums li.current {
56+
background: transparent;
57+
}
58+
59+
.linenums li.current.active {
60+
background: rgba(209, 100, 100, 0.3);
61+
}
62+
63+
pre .atv,
64+
code .atv,
65+
pre .str,
66+
code .str {
67+
color: #a7bd68;
68+
}
69+
70+
pre .tag,
71+
code .tag {
72+
color: #d16464;
73+
}
74+
75+
pre .kwd,
76+
code .kwd {
77+
color: #8abeb7;
78+
}
79+
80+
pre .atn,
81+
code .atn {
82+
color: #de935f;
83+
}

kirby/bootstrap.php

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?php
2+
3+
/**
4+
* Validate the PHP version to already
5+
* stop at older or too recent versions
6+
*/
7+
if (
8+
version_compare(PHP_VERSION, '7.2.0', '>=') === false ||
9+
version_compare(PHP_VERSION, '7.5.0', '<') === false
10+
) {
11+
die(include __DIR__ . '/views/php.php');
12+
}
13+
14+
if (is_file($autoloader = dirname(__DIR__) . '/vendor/autoload.php')) {
15+
16+
/**
17+
* Always prefer a site-wide Composer autoloader
18+
* if it exists, it means that the user has probably
19+
* installed additional packages
20+
*/
21+
include $autoloader;
22+
} elseif (is_file($autoloader = __DIR__ . '/vendor/autoload.php')) {
23+
24+
/**
25+
* Fall back to the local autoloader if that exists
26+
*/
27+
include $autoloader;
28+
} else {
29+
30+
/**
31+
* If neither one exists, don't bother searching;
32+
* it's a custom directory setup and the users need to
33+
* load the autoloader themselves
34+
*/
35+
}

kirby/cacert.pem

Lines changed: 3447 additions & 0 deletions
Large diffs are not rendered by default.

kirby/composer.json

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"name": "getkirby/cms",
3+
"description": "The Kirby 3 core",
4+
"version": "3.4.4",
5+
"license": "proprietary",
6+
"keywords": ["kirby", "cms", "core"],
7+
"homepage": "https://getkirby.com",
8+
"type": "kirby-cms",
9+
"authors": [
10+
{
11+
"name": "Kirby Team",
12+
"email": "[email protected]",
13+
"homepage": "https://getkirby.com"
14+
}
15+
],
16+
"support": {
17+
"email": "[email protected]",
18+
"issues": "https://github.com/getkirby/kirby/issues",
19+
"forum": "https://forum.getkirby.com",
20+
"source": "https://github.com/getkirby/kirby"
21+
},
22+
"require": {
23+
"php": ">=7.2.0 <7.5.0",
24+
"ext-mbstring": "*",
25+
"ext-ctype": "*",
26+
"getkirby/composer-installer": "^1.0",
27+
"mustangostang/spyc": "0.6.3",
28+
"michelf/php-smartypants": "1.8.1",
29+
"claviska/simpleimage": "3.3.4",
30+
"phpmailer/phpmailer": "6.1.6",
31+
"filp/whoops": "2.7.2",
32+
"true/punycode": "2.1.1",
33+
"laminas/laminas-escaper": "2.6.1"
34+
},
35+
"autoload": {
36+
"files": ["config/setup.php"],
37+
"classmap": ["dependencies/"],
38+
"psr-4": {
39+
"Kirby\\": "src/"
40+
}
41+
},
42+
"scripts": {
43+
"analyze": "phpstan analyse",
44+
"build": "./scripts/build",
45+
"fix": "php-cs-fixer fix --config .php_cs",
46+
"post-update-cmd": "curl -o cacert.pem https://curl.haxx.se/ca/cacert.pem",
47+
"test": "phpunit --stderr --coverage-html=tests/coverage",
48+
"zip": "composer archive --format=zip --file=dist"
49+
},
50+
"config": {
51+
"optimize-autoloader": true
52+
}
53+
}

0 commit comments

Comments
 (0)