Skip to content

Commit 2e47bf7

Browse files
committed
feat: bluemenu web editor
0 parents  commit 2e47bf7

4,698 files changed

Lines changed: 39495 additions & 0 deletions

File tree

Some content is hidden

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

.editorconfig

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 4
7+
indent_style = space
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false
13+
14+
[*.{yml,yaml}]
15+
indent_size = 2
16+
17+
[{compose,docker-compose}.{yml,yaml}]
18+
indent_size = 4

.env.example

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
APP_NAME=BlueMenu
2+
APP_ENV=local
3+
APP_KEY=
4+
APP_DEBUG=true
5+
APP_URL=http://localhost:8000
6+
7+
APP_LOCALE=en
8+
APP_FALLBACK_LOCALE=en
9+
APP_FAKER_LOCALE=en_US
10+
11+
APP_MAINTENANCE_DRIVER=file
12+
# APP_MAINTENANCE_STORE=database
13+
14+
# PHP_CLI_SERVER_WORKERS=4
15+
16+
BCRYPT_ROUNDS=12
17+
18+
LOG_CHANNEL=stack
19+
LOG_STACK=single
20+
LOG_DEPRECATIONS_CHANNEL=null
21+
LOG_LEVEL=debug
22+
23+
DB_CONNECTION=sqlite
24+
# DB_HOST=127.0.0.1
25+
# DB_PORT=3306
26+
# DB_DATABASE=laravel
27+
# DB_USERNAME=root
28+
# DB_PASSWORD=
29+
30+
SESSION_DRIVER=database
31+
SESSION_LIFETIME=120
32+
SESSION_ENCRYPT=false
33+
SESSION_PATH=/
34+
SESSION_DOMAIN=null
35+
36+
BROADCAST_CONNECTION=reverb
37+
38+
REVERB_APP_ID=
39+
REVERB_APP_KEY=
40+
REVERB_APP_SECRET=
41+
REVERB_HOST="localhost"
42+
REVERB_PORT=8080
43+
REVERB_SCHEME=http
44+
45+
VITE_REVERB_APP_KEY="${REVERB_APP_KEY}"
46+
VITE_REVERB_HOST="${REVERB_HOST}"
47+
VITE_REVERB_PORT="${REVERB_PORT}"
48+
VITE_REVERB_SCHEME="${REVERB_SCHEME}"
49+
FILESYSTEM_DISK=local
50+
QUEUE_CONNECTION=database
51+
52+
CACHE_STORE=database
53+
# CACHE_PREFIX=
54+
55+
MEMCACHED_HOST=127.0.0.1
56+
57+
REDIS_CLIENT=phpredis
58+
REDIS_HOST=127.0.0.1
59+
REDIS_PASSWORD=null
60+
REDIS_PORT=6379
61+
62+
MAIL_MAILER=log
63+
MAIL_SCHEME=null
64+
MAIL_HOST=127.0.0.1
65+
MAIL_PORT=2525
66+
MAIL_USERNAME=null
67+
MAIL_PASSWORD=null
68+
MAIL_FROM_ADDRESS="hello@example.com"
69+
MAIL_FROM_NAME="${APP_NAME}"
70+
71+
AWS_ACCESS_KEY_ID=
72+
AWS_SECRET_ACCESS_KEY=
73+
AWS_DEFAULT_REGION=us-east-1
74+
AWS_BUCKET=
75+
AWS_USE_PATH_STYLE_ENDPOINT=false
76+
77+
VITE_APP_NAME="${APP_NAME}"

.gitattributes

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
* text=auto eol=lf
2+
3+
*.blade.php diff=html
4+
*.css diff=css
5+
*.html diff=html
6+
*.md diff=markdown
7+
*.php diff=php
8+
9+
/.github export-ignore
10+
CHANGELOG.md export-ignore
11+
.styleci.yml export-ignore

.github/workflows/deploy.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: CI and deploy
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
workflow_dispatch:
8+
9+
jobs:
10+
check:
11+
runs-on: [self-hosted, linux, x64]
12+
concurrency:
13+
group: check-${{ github.ref }}
14+
cancel-in-progress: true
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Install dependencies
19+
run: |
20+
set -e
21+
cp .env.example .env
22+
composer install --no-interaction --prefer-dist
23+
php artisan key:generate
24+
npm ci
25+
26+
- name: Typecheck
27+
run: npm run typecheck
28+
29+
- name: Build
30+
run: npm run build
31+
32+
- name: Frontend tests
33+
run: npm test
34+
env:
35+
LARAVEL_BYPASS_ENV_CHECK: 1
36+
37+
- name: Tests
38+
run: php artisan test --compact
39+
40+
deploy:
41+
needs: check
42+
if: github.event_name != 'pull_request'
43+
runs-on: [self-hosted, linux, x64]
44+
concurrency:
45+
group: deploy
46+
cancel-in-progress: false
47+
steps:
48+
- name: Pull and deploy
49+
run: |
50+
set -e
51+
cd /srv/apps/blueva-menu
52+
git pull --ff-only
53+
composer install --no-dev --no-interaction --prefer-dist --optimize-autoloader
54+
npm ci
55+
npm run build
56+
php artisan migrate --force
57+
php artisan optimize:clear
58+
php artisan optimize

.gitignore

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
*.log
2+
.DS_Store
3+
.env
4+
.env.backup
5+
.env.production
6+
.phpactor.json
7+
.phpunit.result.cache
8+
/.idea
9+
/.nova
10+
/.phpunit.cache
11+
/.vscode
12+
/.zed
13+
/auth.json
14+
/node_modules
15+
/public/build
16+
/public/fonts-manifest.dev.json
17+
/public/hot
18+
/public/storage
19+
/storage/*.key
20+
/storage/pail
21+
/vendor
22+
_ide_helper.php
23+
Homestead.json
24+
Homestead.yaml
25+
Thumbs.db

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ignore-scripts=true
2+
audit=true

0 commit comments

Comments
 (0)