Commit 3e3998e3 authored by Florian Heder's avatar Florian Heder

Initial commit

parents
Pipeline #4554 failed with stages
This diff is collapsed.
# Read about configuration, here:
# https://craftcms.com/docs/4.x/config/
# The application ID used to to uniquely store session and cache data, mutex locks, and more
CRAFT_APP_ID=
# The environment Craft is currently running in (dev, staging, production, etc.)
CRAFT_ENVIRONMENT=dev
# The secure key Craft will use for hashing and encrypting data
CRAFT_SECURITY_KEY=
# Database connection settings
CRAFT_DB_DRIVER=mysql
CRAFT_DB_SERVER=127.0.0.1
CRAFT_DB_PORT=3306
CRAFT_DB_DATABASE=
CRAFT_DB_USER=root
CRAFT_DB_PASSWORD=
CRAFT_DB_SCHEMA=public
CRAFT_DB_TABLE_PREFIX=
# General settings (see config/general.php)
DEV_MODE=true
ALLOW_ADMIN_CHANGES=true
DISALLOW_ROBOTS=true
# Read about configuration, here:
# https://craftcms.com/docs/4.x/config/
# The application ID used to to uniquely store session and cache data, mutex locks, and more
CRAFT_APP_ID=
# The environment Craft is currently running in (dev, staging, production, etc.)
CRAFT_ENVIRONMENT=production
# The secure key Craft will use for hashing and encrypting data
CRAFT_SECURITY_KEY=
# Database connection settings
CRAFT_DB_DRIVER=mysql
CRAFT_DB_SERVER=127.0.0.1
CRAFT_DB_PORT=3306
CRAFT_DB_DATABASE=
CRAFT_DB_USER=root
CRAFT_DB_PASSWORD=
CRAFT_DB_SCHEMA=public
CRAFT_DB_TABLE_PREFIX=
# General settings (see config/general.php)
DEV_MODE=false
ALLOW_ADMIN_CHANGES=false
DISALLOW_ROBOTS=false
# Read about configuration, here:
# https://craftcms.com/docs/4.x/config/
# The application ID used to to uniquely store session and cache data, mutex locks, and more
CRAFT_APP_ID=
# The environment Craft is currently running in (dev, staging, production, etc.)
CRAFT_ENVIRONMENT=staging
# The secure key Craft will use for hashing and encrypting data
CRAFT_SECURITY_KEY=
# Database connection settings
CRAFT_DB_DRIVER=mysql
CRAFT_DB_SERVER=127.0.0.1
CRAFT_DB_PORT=3306
CRAFT_DB_DATABASE=
CRAFT_DB_USER=root
CRAFT_DB_PASSWORD=
CRAFT_DB_SCHEMA=public
CRAFT_DB_TABLE_PREFIX=
# General settings (see config/general.php)
DEV_MODE=false
ALLOW_ADMIN_CHANGES=false
DISALLOW_ROBOTS=true
/.env
/.idea
/vendor
.DS_Store
<?php
/**
* Shared bootstrap file
*/
// Define path constants
define('CRAFT_BASE_PATH', __DIR__);
define('CRAFT_VENDOR_PATH', CRAFT_BASE_PATH . '/vendor');
// Load Composer's autoloader
require_once CRAFT_VENDOR_PATH . '/autoload.php';
// Load dotenv?
if (class_exists(Dotenv\Dotenv::class)) {
// By default, this will allow .env file values to override environment variables
// with matching names. Use `createUnsafeImmutable` to disable this.
Dotenv\Dotenv::createUnsafeMutable(CRAFT_BASE_PATH)->safeLoad();
}
{
"require": {
"craftcms/cms": "^4.4.0",
"vlucas/phpdotenv": "^5.4.0"
},
"require-dev": {
"craftcms/generator": "^1.3.0",
"yiisoft/yii2-shell": "^2.0.3"
},
"autoload": {
"psr-4": {
"modules\\": "modules/"
}
},
"config": {
"allow-plugins": {
"craftcms/plugin-installer": true,
"yiisoft/yii2-composer": true
},
"sort-packages": true,
"optimize-autoloader": true,
"platform": {
"php": "8.0.2"
}
},
"scripts": {
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example.dev', '.env');\""
]
}
}
This diff is collapsed.
<?php
/**
* Yii Application Config
*
* Edit this file at your own risk!
*
* The array returned by this file will get merged with
* vendor/craftcms/cms/src/config/app.php and app.[web|console].php, when
* Craft's bootstrap script is defining the configuration for the entire
* application.
*
* You can define custom modules and system components, and even override the
* built-in system components.
*
* If you want to modify the application config for *only* web requests or
* *only* console requests, create an app.web.php or app.console.php file in
* your config/ folder, alongside this one.
*
* Read more about application configuration:
* https://craftcms.com/docs/4.x/config/app.html
*/
use craft\helpers\App;
return [
'id' => App::env('CRAFT_APP_ID') ?: 'CraftCMS',
];
<?php
/**
* General Configuration
*
* All of your system's general configuration settings go in here. You can see a
* list of the available settings in vendor/craftcms/cms/src/config/GeneralConfig.php.
*
* @see \craft\config\GeneralConfig
*/
use craft\config\GeneralConfig;
use craft\helpers\App;
return GeneralConfig::create()
// Set the default week start day for date pickers (0 = Sunday, 1 = Monday, etc.)
->defaultWeekStartDay(1)
// Prevent generated URLs from including "index.php"
->omitScriptNameInUrls()
// Enable Dev Mode (see https://craftcms.com/guides/what-dev-mode-does)
->devMode(App::env('DEV_MODE') ?? false)
// Preload Single entries as Twig variables
->preloadSingles()
// Allow administrative changes
->allowAdminChanges(App::env('ALLOW_ADMIN_CHANGES') ?? false)
// Disallow robots
->disallowRobots(App::env('DISALLOW_ROBOTS') ?? false)
// Prevent user enumeration attacks
->preventUserEnumeration()
// Set the @webroot alias so the clear-caches command knows where to find CP resources
->aliases([
'@webroot' => dirname(__DIR__) . '/web',
])
;
{
"Attr.AllowedFrameTargets": [
"_blank"
],
"Attr.EnableID": true,
"HTML.AllowedComments": [
"pagebreak"
],
"HTML.SafeIframe": true,
"URI.SafeIframeRegexp": "%^(https?:)?//(www.youtube.com/|player.vimeo.com/)%"
}
temp
\ No newline at end of file
dateModified: 1699372423
email:
fromEmail: florian.heder@hebotek.at
fromName: ved
transportType: craft\mail\transportadapters\Sendmail
meta:
__names__:
3c78e765-175a-432b-8c24-55e24676872b: ved # ved
4c0d4c60-489a-4aa5-968e-2575893d382d: Common # Common
5d91e3db-86d5-4070-938f-56dba883bc10: ved # ved
system:
edition: solo
live: true
name: ved
schemaVersion: 4.5.3.0
timeZone: America/Los_Angeles
users:
allowPublicRegistration: false
defaultGroup: null
photoSubpath: null
photoVolumeUid: null
requireEmailVerification: true
baseUrl: $PRIMARY_SITE_URL
handle: default
hasUrls: true
language: de-DE
name: ved
primary: true
siteGroup: 3c78e765-175a-432b-8c24-55e24676872b # ved
sortOrder: 1
<?php
/**
* Site URL Rules
*
* You can define custom site URL rules here, which Craft will check in addition
* to routes defined in Settings → Routes.
*
* Read all about Craft’s routing behavior, here:
* https://craftcms.com/docs/4.x/routing.html
*/
return [];
#!/usr/bin/env php
<?php
/**
* Craft console bootstrap file
*/
// Load shared bootstrap
require __DIR__ . '/bootstrap.php';
// Load and run Craft
/** @var craft\console\Application $app */
$app = require CRAFT_VENDOR_PATH . '/craftcms/cms/bootstrap/console.php';
$exitCode = $app->run();
exit($exitCode);
backups
composer-backups
config-backups
logs
runtime
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta charset="utf-8" />
<title>Welcome to Craft CMS</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover" />
<meta name="referrer" content="origin-when-cross-origin" />
<style>
html,
body {
font-size: 16px;
-webkit-text-size-adjust: 100%;
height: 100%;
font-family: system-ui, BlinkMacSystemFont, -apple-system, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}
body {
margin: 0;
padding: 0;
background-color: hsl(212, 60%, 97%);
color: hsl(209, 18%, 30%);
display: flex;
}
h1 {
margin-top: 0;
}
h2 {
margin-top: 24px;
font-size: 1em;
}
h2:first-child {
margin-top: 0;
}
p {
line-height: 1.4em;
margin-bottom: 1.4em;
}
ul {
line-height: 1.3em;
padding-left: 20px;
margin-bottom: 0;
}
ul li {
margin-bottom: 0.35em;
}
a {
color: #0B69A3;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.go {
color: #0B69A3;
}
.go:after {
padding-left: 4px;
content: '→';
text-decoration: none !important;
}
small {
color: hsl(211, 11%, 59%);
}
code {
display: inline-block;
color: #EF4E4E;
padding: 0 2px;
background: hsl(212, 60%, 97%);
border-radius: 3px;
line-height: 1.3;
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
font-size: 0.9em;
}
#container {
flex-grow: 1;
}
#modal {
background: #fff;
}
#aside {
background: hsl(212, 60%, 97%);
}
.content {
padding: 35px;
padding-left: calc(35px + env(safe-area-inset-left));
padding-right: calc(35px + env(safe-area-inset-right));
}
@media (min-width:768px) {
#modal {
display: flex;
}
#main {
width: 50%;
overflow: auto;
}
#aside {
width: 50%;
overflow: auto;
}
}
@media (min-width:768px) and (min-height: 376px) {
body {
background-color: hsl(212, 50%, 93%);
background-image: url("{{ view.getAssetManager().getPublishedUrl('@app/web/assets/installer/dist', true, 'images/installer-bg.png') }}");
background-repeat: no-repeat;
background-size: cover;
background-position: center center;
}
#container {
display: flex;
padding: 24px;
align-items: center;
justify-content: center;
}
#modal {
height: 100%;
max-width: 800px;
max-height: 525px;
border-radius: 4px;
overflow: auto;
box-shadow: 0 25px 100px rgba(0, 0, 0, 0.5);
}
#aside {
overflow: auto;
}
}
</style>
</head>
<body class="ltr">
<div id="container">
<div id="modal">
<div id="main">
<div class="content">
<h1>Welcome</h1>
<p>Thanks for installing Craft CMS!</p>
<p>You’re looking at the <code>index.twig</code> template file located in your
<code>templates/</code> folder. Once you’re ready to start building out your site’s
front end, you can replace this with something custom.</p>
<p>If you’re new to Craft CMS, take some time to check out the resources on the right
when you get a chance&mdash;especially
<a href="https://craftcms.com/discord" target="_blank">Discord</a>
and <a href="http://craftcms.stackexchange.com/" target="_blank">Stack Exchange</a>.
The Craft community is full of smart, friendly, and helpful people!</p>
<p><span class="go"><a href="{{ cpUrl('') }}">Go to your control panel</a></span></p>
</div>
</div>
<div id="aside">
<div class="content">
<h2>Popular Resources</h2>
<ul>
<li><a href="https://craftcms.com/docs/getting-started-tutorial/" target="_blank">Tutorial</a><br><small>Learn the basics.</small></li>
<li><a href="https://craftcms.com/docs/4.x/" target="_blank">Documentation</a><br><small>Read the official docs.</small></li>
<li><a href="https://craftcms.com/guides" target="_blank">Knowledge Base</a><br><small>Find answers to common problems.</small></li>
<li><a href="https://twitter.com/hashtag/craftcms" target="_blank">#craftcms</a><br><small>See the latest tweets about Craft.</small></li>
<li><a href="https://craftcms.com/discord" target="_blank">Discord</a><br><small>Meet the community.</small></li>
<li><a href="http://craftcms.stackexchange.com/" target="_blank">Stack Exchange</a><br><small>Get help and help others.</small></li>
<li><a href="https://craftquest.io/" target="_blank">CraftQuest</a><br><small>Watch unlimited video lessons and courses.</small></li>
<li><a href="http://craftlinklist.com/" target="_blank">Craft Link List</a><br><small>Stay in-the-know.</small></li>
<li><a href="https://nystudio107.com/blog" target="_blank">nystudio107 Blog</a><br><small>Learn Craft and modern web development.</small></li>
</ul>
</div>
</div>
</div>
</div>
</body>
</html>
<IfModule mod_rewrite.c>
RewriteEngine On
# Send would-be 404 requests to Craft
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/(favicon\.ico|apple-touch-icon.*\.png)$ [NC]
RewriteRule (.+) index.php?p=$1 [QSA,L]
</IfModule>
<?php
/**
* Craft web bootstrap file
*/
// Load shared bootstrap
require dirname(__DIR__) . '/bootstrap.php';
// Load and run Craft
/** @var craft\web\Application $app */
$app = require CRAFT_VENDOR_PATH . '/craftcms/cms/bootstrap/web.php';
$app->run();
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Rewrite" stopProcessing="true">
<match url="(.+)" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
<add input="{URL}" pattern="^/(favicon\.ico|apple-touch-icon.*\.png)$" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?p={R:1}" appendQueryString="true" />
</rule>
</rules>
</rewrite>
<urlCompression doStaticCompression="true" doDynamicCompression="true" />
<defaultDocument>
<files>
<clear />
<add value="index.php" />
<add value="index.htm" />
<add value="index.html" />
</files>
</defaultDocument>
</system.webServer>
</configuration>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment