Skip to content

Commit

Permalink
Add all code
Browse files Browse the repository at this point in the history
Fix admin access


Fix typo
  • Loading branch information
arxeiss committed Mar 15, 2021
1 parent e5edbbb commit 7174b46
Show file tree
Hide file tree
Showing 399 changed files with 50,292 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Browsers we support via Babel, Autoprefixer etc.
# https://github.com/ai/browserslist

>1%
last 2 versions
Firefox ESR
ie >= 10
21 changes: 21 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.{yml,js,jsx,ts,tsx}]
indent_size = 2

[*.neon]
indent_style = tabs

[Makefile]
indent_style = tabs
47 changes: 47 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
APP_NAME="CzechitasApp"
APP_ENV=production
# Generate via php artisan key:generate and set as Heroku environment variable
#APP_KEY=base64:UBSDAecgGF/HzdFBQNwsRsPJxH0PlVo97bxqOP4KRH8=
APP_DEBUG=false
APP_URL=
APP_FORCE_URL=false

HTTPS_ENABLE=false
# SESSION_SECURE_COOKIE=true
# HSTS_LIFETIME=2592000

LOG_CHANNEL=daily
DAILY_LOG_DAYS=30

DB_CONNECTION=mysql
DB_HOST=
DB_PORT=3306
DB_DATABASE=
DB_USERNAME=
DB_PASSWORD=

CACHE_DRIVER=file
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120

# On Heroku we need to use S3 as Heroku does not have permanent storage
# FILESYSTEM_DRIVER=s3
# AWS_ACCESS_KEY_ID=
# AWS_SECRET_ACCESS_KEY=
# AWS_DEFAULT_REGION=
# AWS_BUCKET=
# AWS_URL=

# MAILER array just save it locally, set to smtp/mailgun/ses etc to send real emails
MAIL_MAILER=array
MAIL_FROM_ADDRESS="[email protected]"
MAIL_FROM_NAME="Czechitas"
MAIL_SUBJECT_ADD="Czechitas"
MAIL_REPLY_TO_ADDRESS="[email protected]"
MAIL_REPLY_TO_NAME="Czechitas"
#MAIL_HOST=smtp.mailtrap.io
#MAIL_PORT=2525
#MAIL_USERNAME=
#MAIL_PASSWORD=
#MAIL_ENCRYPTION=tls
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
* text=auto
*.css linguist-vendored
*.scss linguist-vendored
*.js linguist-vendored
CHANGELOG.md export-ignore
36 changes: 36 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
### Laravel ###
/bootstrap/compiled.php
/storage/*.key
/vendor
/public/storage
/public/hot
Homestead.yaml
Homestead.json
.env
*.log
composer.phar

### OSX ###
.DS_Store

### Bundler ###
Gemfile.lock

### Node ###
/node_modules

### Bower ###
bower_components

### Sass ###
*.sass-cache

### Netbeans ###
nbproject

### PhpStorm ###
.idea

### Sublime Text ###
*.sublime-*
!*.sublime-project
15 changes: 15 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
ErrorDocument 404 /error
ErrorDocument 403 /error

<IfModule mod_rewrite.c>
RewriteEngine on

RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

RewriteRule docs/?$ public/index.php [L]
RewriteRule docs/?$ public/index.php [L,R=301]

RewriteCond %{REQUEST_URI} !^public
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
public/
resources/assets/js/libs/
12 changes: 12 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"printWidth": 120,
"tabWidth": 2,
"useTabs": false,
"singleQuote": true,
"semi": true,
"quoteProps": "consistent",
"jsxSingleQuote": false,
"trailingComma": "es5",
"bracketSpacing": true,
"jsxBracketSameLine": false
}
Loading

0 comments on commit 7174b46

Please sign in to comment.