Skip to content

Commit

Permalink
Merge pull request #6 from mauricerenck/develop
Browse files Browse the repository at this point in the history
chore: add kirby folder for autoload
  • Loading branch information
mauricerenck authored Nov 12, 2020
2 parents 9502c84 + 3cbcc7b commit aa92453
Show file tree
Hide file tree
Showing 373 changed files with 95,076 additions and 0 deletions.
15 changes: 15 additions & 0 deletions kirby/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org

# PHP PSR-2 Coding Standards
# http://www.php-fig.org/psr/psr-2/

root = true

[*.php]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 4
3 changes: 3 additions & 0 deletions kirby/SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Security Policy

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.
83 changes: 83 additions & 0 deletions kirby/assets/whoops.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
body {
background: #efefef;
font: normal normal 400 12px/1.5 -apple-system, BlinkMacSystemFont, Segoe UI,
Roboto, Helvetica, Arial, sans-serif;
}

.left-panel {
background: transparent;
}

header {
background-color: #313740;
}

.exc-title-primary {
color: hsl(0, 71%, 55%);
}

.frame.active {
color: hsl(0, 71%, 55%);
box-shadow: inset -5px 0 0 0 #d16464;
}

.frame:not(.active):hover {
background: rgba(203, 215, 229, 0.5);
}

.rightButton {
color: #999;
box-shadow: inset 0 0 0 1px #777;
border-radius: 0;
}

.rightButton:hover {
box-shadow: inset 0 0 0 1px #555;
color: #777;
}

.details-heading {
color: #7e9abf;
font-weight: 500;
}

.frame-code {
background: #000;
}

pre.code-block,
code.code-block,
.frame-args.code-block,
.frame-args.code-block samp {
background: #16171a;
}

.linenums li.current {
background: transparent;
}

.linenums li.current.active {
background: rgba(209, 100, 100, 0.3);
}

pre .atv,
code .atv,
pre .str,
code .str {
color: #a7bd68;
}

pre .tag,
code .tag {
color: #d16464;
}

pre .kwd,
code .kwd {
color: #8abeb7;
}

pre .atn,
code .atn {
color: #de935f;
}
35 changes: 35 additions & 0 deletions kirby/bootstrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?php

/**
* Validate the PHP version to already
* stop at older or too recent versions
*/
if (
version_compare(PHP_VERSION, '7.2.0', '>=') === false ||
version_compare(PHP_VERSION, '7.5.0', '<') === false
) {
die(include __DIR__ . '/views/php.php');
}

if (is_file($autoloader = dirname(__DIR__) . '/vendor/autoload.php')) {

/**
* Always prefer a site-wide Composer autoloader
* if it exists, it means that the user has probably
* installed additional packages
*/
include $autoloader;
} elseif (is_file($autoloader = __DIR__ . '/vendor/autoload.php')) {

/**
* Fall back to the local autoloader if that exists
*/
include $autoloader;
} else {

/**
* If neither one exists, don't bother searching;
* it's a custom directory setup and the users need to
* load the autoloader themselves
*/
}
3,447 changes: 3,447 additions & 0 deletions kirby/cacert.pem

Large diffs are not rendered by default.

53 changes: 53 additions & 0 deletions kirby/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"name": "getkirby/cms",
"description": "The Kirby 3 core",
"version": "3.4.4",
"license": "proprietary",
"keywords": ["kirby", "cms", "core"],
"homepage": "https://getkirby.com",
"type": "kirby-cms",
"authors": [
{
"name": "Kirby Team",
"email": "[email protected]",
"homepage": "https://getkirby.com"
}
],
"support": {
"email": "[email protected]",
"issues": "https://github.com/getkirby/kirby/issues",
"forum": "https://forum.getkirby.com",
"source": "https://github.com/getkirby/kirby"
},
"require": {
"php": ">=7.2.0 <7.5.0",
"ext-mbstring": "*",
"ext-ctype": "*",
"getkirby/composer-installer": "^1.0",
"mustangostang/spyc": "0.6.3",
"michelf/php-smartypants": "1.8.1",
"claviska/simpleimage": "3.3.4",
"phpmailer/phpmailer": "6.1.6",
"filp/whoops": "2.7.2",
"true/punycode": "2.1.1",
"laminas/laminas-escaper": "2.6.1"
},
"autoload": {
"files": ["config/setup.php"],
"classmap": ["dependencies/"],
"psr-4": {
"Kirby\\": "src/"
}
},
"scripts": {
"analyze": "phpstan analyse",
"build": "./scripts/build",
"fix": "php-cs-fixer fix --config .php_cs",
"post-update-cmd": "curl -o cacert.pem https://curl.haxx.se/ca/cacert.pem",
"test": "phpunit --stderr --coverage-html=tests/coverage",
"zip": "composer archive --format=zip --file=dist"
},
"config": {
"optimize-autoloader": true
}
}
Loading

0 comments on commit aa92453

Please sign in to comment.