Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
asika32764 committed Jun 9, 2024
0 parents commit 97fdd3b
Show file tree
Hide file tree
Showing 148 changed files with 12,905 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[*]
charset=utf-8
end_of_line=lf
insert_final_newline=true
indent_style=space
indent_size=4

[{*.css,*.less,*scss}]
indent_size=2

[{*.applejs,*.js,*.mjs}]
indent_size=2

[{*.ats,*.ts}]
indent_size=2

[*.vue]
indent_size=2
5 changes: 5 additions & 0 deletions .env.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# System
APP_DEBUG=1
LANG_DEBUG=1

APP_ENV=dev
34 changes: 34 additions & 0 deletions .env.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Dev
DEV_ALLOW_IPS=
PROXY_TRUSTED_IPS=

# System
APP_SECRET=
SYSTEM_OFFLINE=0
COOKIES_AUTO_SECURE=1
FORCE_SSL=0

# Database
DATABASE_DRIVER=pdo_mysql
DATABASE_HOST=localhost
DATABASE_NAME=acme
DATABASE_USER=root
DATABASE_PASSWORD=

# Mail
MAIL_ENABLED=0
MAIL_DSN_DEFAULT="smtp://{user}:{pass}@host.com:2525"
MAIL_FROM=
MAIL_REPLY_TO=

# Queue
QUEUE_DEFAULT=sync
QUEUE_SQS_KEY=
QUEUE_SQS_SECRET=

# Storage
UPLOAD_STORAGE_DEFAULT=local
AWS_ACCESS_KEY=
AWS_SECRET=
AWS_S3_BUCKET=lyratest
AWS_S3_SUBFOLDER=earth
10 changes: 10 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "airbnb",
"rules": {
"func-names": ["error", "never"],
"no-console": "off",
"no-undef": "off",
"no-underscore-dangle": "off",
"strict": "off"
}
}
39 changes: 39 additions & 0 deletions .github/workflows/phpcs-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Code Styles for PR

on: [ pull_request ]

env:
COMPOSER_VENDOR: /home/runner/.composer/vendor

jobs:
phpcs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
coverage: none
tools: composer, cs2pr, mbstring, intl

- name: Get Composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Setup cache
uses: pat-s/[email protected]
with:
path: ${{ steps.composer-cache.outputs.dir }}
# Use the hash of composer.json as the key for your cache if you do not commit composer.lock.
# key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

- name: Install dependencies
run: composer global require squizlabs/php_codesniffer --prefer-dist --no-suggest --no-progress

- name: Detect coding standard violations
run: $COMPOSER_VENDOR/bin/phpcs src resources -n --extensions=php --standard=PSR12 -q --report=checkstyle | cs2pr --graceful-warnings
39 changes: 39 additions & 0 deletions .github/workflows/phpcs-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Code Styles for Push

on: [ push ]

env:
COMPOSER_VENDOR: /home/runner/.composer/vendor

jobs:
phpcs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
coverage: none
tools: composer, cs2pr, mbstring, intl

- name: Get Composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Setup cache
uses: pat-s/[email protected]
with:
path: ${{ steps.composer-cache.outputs.dir }}
# Use the hash of composer.json as the key for your cache if you do not commit composer.lock.
# key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

- name: Install dependencies
run: composer global require squizlabs/php_codesniffer --prefer-dist --no-suggest --no-progress

- name: Detect coding standard violations
run: $COMPOSER_VENDOR/bin/phpcs src resources -n --extensions=php --standard=PSR12
47 changes: 47 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# OS generated files #
.DS_Store
.DS_Store?
ehthumbs.db
Icon?
Thumbs.db

# IDE Ignores #
.idea/
.vscode/

# Extra #
!.gitkeep

# Configuration #
.env
.env.local
.env*.local
!.env.dist

# Libraries
/vendor
/node_modules
/bower_components
/yarn-error.log
/.yarn/
/.yarnrc
.yarnrc.yml
.npmrc
/theme

# Remove above lines when you start a project
# composer.lock
# yarn.lock
package-lock.json

#Test
/phpunit.xml
/phpunit.core.xml

# Others

# @Dev
etc/packages/*.php
!etc/packages/debugger.php
!etc/packages/session.php
# @EndDev
6 changes: 6 additions & 0 deletions .gulp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"description": "Windwalker Fusion",
"flags": {
"gulpfile": "fusionfile.mjs"
}
}
5 changes: 5 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Protect .git
RedirectMatch 404 /\.git

# No index
Options -Indexes
2 changes: 2 additions & 0 deletions .npmrc.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@fortawesome:registry=https://npm.fontawesome.com/
//npm.fontawesome.com/:_authToken=${FA_TOKEN}
10 changes: 10 additions & 0 deletions .portal.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
title: Earth
public: /www
parses:
- build/portal/.env.dist
- build/portal/.npmrc.dist
scripts:
- cp build/portal/.env.dist .env
- cp build/portal/.npmrc.dist .npmrc
- composer install
- php windwalker run preparedev
5 changes: 5 additions & 0 deletions .yarnrc.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
npmScopes:
fortawesome:
npmAlwaysAuth: true
npmAuthToken: "${FA_TOKEN}"
npmRegistryServer: "https://npm.fontawesome.com/"
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# LYRASOFT Earth 2.0

## Installation Via Composer

``` bash
composer create-project lyrasoft/earth your_project
```

## Prepare System

Type this command in your terminal to deploy system and run migration for production environment:

``` bash
php windwalker run prepare
```

If you want to set prepare to dev mode, you can use this command in your terminal to run assets sync, migrations and seeders:

``` bash
php windwalker run preparedev
```

## Getting Started

Open `http://{Your project root}/www/admin`, you will see the sample page.

Open `http://{Your project root}/www/dev.php`, you will enter the development mode.

31 changes: 31 additions & 0 deletions build/portal/.env.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Dev
DEV_ALLOW_IPS=LYRA_PORTAL_ENV_STATIC_IP

# System
APP_NAME=earth
SYSTEM_OFFLINE=0

# Database
DATABASE_DRIVER=pdo_mysql
DATABASE_HOST=localhost
DATABASE_NAME=LYRA_PORTAL_ENV_MYSQL_DBNAME
DATABASE_USER=LYRA_PORTAL_ENV_MYSQL_USER
DATABASE_PASSWORD=LYRA_PORTAL_ENV_MYSQL_PASS

# Mail
MAIL_ENABLED=0
MAIL_DSN_DEFAULT="smtp://LYRA_PORTAL_ENV_MAILTRAP_USER:[email protected]:2525"
MAIL_FROM=
MAIL_SMTP_VERIFY=1

# Queue
QUEUE_CONNECTION=sync
QUEUE_SQS_KEY=LYRA_PORTAL_ENV_AWS_TEST_ACCESS
QUEUE_SQS_SECRET=LYRA_PORTAL_ENV_AWS_TEST_SECRET

# Storage
UPLOAD_STORAGE_DEFAULT=local
AWS_ACCESS_KEY=LYRA_PORTAL_ENV_AWS_TEST_ACCESS
AWS_SECRET=LYRA_PORTAL_ENV_AWS_TEST_SECRET
AWS_S3_BUCKET=LYRA_PORTAL_ENV_AWS_TEST_BUCKET
AWS_S3_SUBFOLDER="${APP_NAME}"
2 changes: 2 additions & 0 deletions build/portal/.npmrc.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@fortawesome:registry=https://npm.fontawesome.com/
//npm.fontawesome.com/:_authToken=LYRA_PORTAL_ENV_FONTAWESOME_TOKEN
5 changes: 5 additions & 0 deletions cache/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# System
*
!.gitignore
!/.htaccess
!/web.config
3 changes: 3 additions & 0 deletions cache/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
order deny,allow
deny from all
allow from none
8 changes: 8 additions & 0 deletions cache/web.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<authorization>
<deny users="*"/>
</authorization>
</system.web>
</configuration>
58 changes: 58 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"name": "windwalker/starter",
"description": "Windwalker Starter.",
"homepage": "https://github.com/windwalker-io/starter",
"license": "MIT",
"minimum-stability": "beta",
"authors": [
{
"name": "Simon Asika",
"email": "[email protected]"
}
],
"require": {
"php": ">=8.2",
"ext-json": "*",
"windwalker/core": "^4.0",
"windwalker/renderer": "^4.0",
"windwalker/dom": "^4.0",
"windwalker/edge": "^4.0",
"asika/cross-env": "^1.0"
},
"require-dev": {
"nunomaduro/collision": "^7.8||^8.0",
"windwalker/framework": "^4.1@beta"
},
"scripts": {
"post-create-project-cmd": [
"Windwalker\\Core\\Composer\\StarterInstaller::rootInstall",
"php windwalker run prepare"
],
"post-autoload-dump": [
"php windwalker pkg:install --tag config",
"php windwalker asset:sync || true",
"php windwalker cache:clear renderer"
],
"env": [
"Windwalker\\Core\\Composer\\StarterInstaller::genEnv"
]
},
"autoload": {
"psr-4": {
"App\\": "src/"
},
"files": [
"src/bootstrap.php"
]
},
"config": {
"platform": {
"php": "8.2"
}
},
"extra": {
"branch-alias": {
"dev-master": "4.x-dev"
}
}
}
Loading

0 comments on commit 97fdd3b

Please sign in to comment.