-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 97fdd3b
Showing
148 changed files
with
12,905 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# System | ||
APP_DEBUG=1 | ||
LANG_DEBUG=1 | ||
|
||
APP_ENV=dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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_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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"description": "Windwalker Fusion", | ||
"flags": { | ||
"gulpfile": "fusionfile.mjs" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Protect .git | ||
RedirectMatch 404 /\.git | ||
|
||
# No index | ||
Options -Indexes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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_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}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# System | ||
* | ||
!.gitignore | ||
!/.htaccess | ||
!/web.config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
order deny,allow | ||
deny from all | ||
allow from none |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} |
Oops, something went wrong.