Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the code with latest code #2

Merged
merged 935 commits into from
May 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
935 commits
Select commit Hold shift + click to select a range
7dad2c1
Use locale supported date formatter for lists
sampoyigi Nov 1, 2021
91fede6
Fix possible unknown named parameter error
sampoyigi Nov 5, 2021
3abb891
Fixes case when file doesnt actually exist (eg translation js) (#888)
ryanmitchell Nov 10, 2021
0128adc
Enable timestamp on menu item options model
sampoyigi Nov 10, 2021
b2f53c1
Change logical operators to comply with coding guidelines (#889)
sampoyigi Nov 11, 2021
37ca3f3
Display current staff role instead of groups in user panel
sampoyigi Nov 15, 2021
8dc35f7
Exclude updates from extension/theme install
sampoyigi Nov 15, 2021
db29868
Minor fixes
sampoyigi Nov 15, 2021
1db1076
Adapt october's assetic stylesheet minify filter
sampoyigi Nov 17, 2021
70dd6ac
Ability to rollback migration steps for extensions
sampoyigi Nov 17, 2021
9ccf79c
Improve database design: Add foreign key constraints (#883)
sampoyigi Nov 18, 2021
eddc46a
Fix blank reservation stay time when created from admin (#891)
ryanmitchell Nov 18, 2021
cb55107
Minor fixes
sampoyigi Nov 18, 2021
3cada99
Merge remote-tracking branch 'origin/develop'
sampoyigi Nov 22, 2021
0f849a6
Minor fixes
sampoyigi Nov 30, 2021
5ba1eb9
Add ability to replace elements when handling AJAX responses
sampoyigi Dec 2, 2021
1c85ba2
Ensure all widget alias is in studly case format
sampoyigi Dec 2, 2021
69ad761
Initialize record editor form widget on subsequent request after form…
sampoyigi Dec 2, 2021
e9d12a4
Bring back traceLog helper method
sampoyigi Dec 2, 2021
c8f80ae
Fix ignore update button not working
sampoyigi Dec 3, 2021
26e41d6
Remove symfony's deprecated FatalThrowableError exception class
sampoyigi Dec 3, 2021
b64b3e7
Minor fix
sampoyigi Dec 5, 2021
b4d774a
Remove octobercms
sampoyigi Dec 5, 2021
186711c
Auto refresh available update list after updating
sampoyigi Dec 9, 2021
e2ebc0a
Merge branch 'develop'
sampoyigi Dec 9, 2021
e078637
Add PHP 8.1, MySQL8 and MariaDB 10.2 to actions for testing (#903)
ryanmitchell Dec 14, 2021
e55c5c2
Allow separate logos for emails and invoices
sampoyigi Dec 15, 2021
5e24874
Minor fixes
sampoyigi Dec 19, 2021
155e27c
Remove redundant env variables
sampoyigi Dec 19, 2021
1398368
Improve admin order details design
sampoyigi Dec 26, 2021
c7a0d8e
Merge branch 'develop'
sampoyigi Jan 4, 2022
1a343d3
Ensure mailGetData() returns all model attributes using toArray()
sampoyigi Jan 5, 2022
379c620
Add guest order setting on location level (#913)
ryanmitchell Jan 17, 2022
9ba9e5b
Minor fix
sampoyigi Jan 17, 2022
24ebc77
Add support for videos, audios and documents in media manager
sampoyigi Jan 27, 2022
2892d91
Apply fixes from StyleCI (#916)
sampoyigi Jan 29, 2022
680704f
Use laravel style validation array (#914)
ryanmitchell Jan 31, 2022
1a708f2
Remove support for plain .php template files (#907)
ryanmitchell Jan 31, 2022
3244ffe
Minor fixes
sampoyigi Jan 29, 2022
dc27bc2
Define tables relationship on locations model
sampoyigi Feb 5, 2022
19b221e
Sponsored Development: Improve stock management (#899)
sampoyigi Feb 7, 2022
5d19813
Allow orders & reservations to be searched by status (#910)
ryanmitchell Feb 8, 2022
ce1a878
Implement low stock email alerts
sampoyigi Feb 9, 2022
80cc31d
Merge branch 'develop'
sampoyigi Feb 9, 2022
7ed7caa
Pass the correct number of arguments to ValidatesForm::validate() method
sampoyigi Feb 9, 2022
3cb5c05
Merge branch 'develop'
sampoyigi Feb 9, 2022
b833c40
Activate admin user created during igniter:install by default (#921)
Asdamp Feb 10, 2022
1da4091
Fix call to undefined method getConfigAttributes error
sampoyigi Feb 10, 2022
eecb89f
Merge branch 'develop'
sampoyigi Feb 10, 2022
81b8dd1
Add composer.json to modules
sampoyigi Feb 11, 2022
4265ae7
Bring back support for old validation array style for payment gateways.
sampoyigi Feb 12, 2022
ec507a0
Fixes #931
sampoyigi Feb 16, 2022
9a9328b
Remove overloaded getDefaultConfirmCallback method from IgniterDown c…
sampoyigi Feb 18, 2022
ec41dcd
Auto activate enabled admin user after save
sampoyigi Feb 21, 2022
0576d56
Fix issue with address not getting formatted correctly
sampoyigi Feb 22, 2022
6e72878
Merge branch 'develop'
sampoyigi Feb 23, 2022
5f883c2
Change modules branch alias to 3.x
sampoyigi Feb 23, 2022
b3938e9
Require core modules
sampoyigi Feb 23, 2022
3eb06a6
Merge branch 'develop'
sampoyigi Feb 23, 2022
e5480f2
Change modules branch alias to 3.x
sampoyigi Feb 23, 2022
437a70f
Require core modules
sampoyigi Feb 23, 2022
1b0a77a
Add modules split workflow
sampoyigi Feb 23, 2022
6aaea80
pull composer/installer master branch
sampoyigi Feb 23, 2022
07c3102
Override component partials from admin theme template editor (#922)
sampoyigi Feb 24, 2022
122d1ed
Add workflow to archive stale pr and issues
sampoyigi Mar 1, 2022
65ea0da
Fixes tastyigniter/TastyIgniter#942
sampoyigi Mar 1, 2022
1097972
Fix allergens showing nothing / empty page #946
sampoyigi Mar 1, 2022
6fc7a94
Deprecate event controller.form.extendQuery, for admin.controller.ext…
sampoyigi Mar 1, 2022
ce17fef
Add location setting to include start time in timeslots or start from…
sampoyigi Mar 5, 2022
4e01681
Fix url issue in reservation mail template.
sampoyigi Mar 5, 2022
5c84edb
Add 3.x branch to tests workflow
sampoyigi Mar 5, 2022
e716ec3
Update admin assets dependencies
sampoyigi Mar 10, 2022
992d4ce
Minor fixes
sampoyigi Mar 10, 2022
e5dc18f
Add composer support for themes
sampoyigi Mar 11, 2022
2ec68ff
Prevents SQL Error when either subtract_stock field is NULL (#952)
CupNoodles Mar 21, 2022
f1eea18
Fix admin/orders status filter no working (#953)
AyFun Mar 21, 2022
6debfa8
Minor fixes
sampoyigi Mar 29, 2022
ef609bc
Fix error on admin order page when order has no payment
sampoyigi Mar 29, 2022
0c08f3c
Merge branch '3.x'
sampoyigi Mar 30, 2022
eb3fe37
Make theme manifest author index optional
sampoyigi Apr 9, 2022
420f2bc
Changed AdminLocation::listLocations() logic to return list of locati…
sampoyigi Apr 9, 2022
7206949
New Menu_options_model::attachToMenu helper method
sampoyigi Apr 9, 2022
8b17e75
Rename menu_options option_values field to values to avoid conflict w…
sampoyigi Apr 9, 2022
65228fa
Improvements to stocks: hide stocks field on create, diff logic for t…
sampoyigi Apr 9, 2022
6494170
Add unique validation rule to allergen, category, location, mealtime,…
sampoyigi Apr 9, 2022
1813235
Clear view cache on theme activation
sampoyigi Apr 9, 2022
288e0e5
Minor improvements
sampoyigi Apr 11, 2022
4f797c0
Add ability to add custom extensions and themes paths
sampoyigi Apr 12, 2022
8cc3127
Minor improvements
sampoyigi Apr 12, 2022
8bfcc2d
Remove modules branch alias
sampoyigi Apr 12, 2022
32c1b9c
Revert changes to method return types
sampoyigi Apr 12, 2022
7ad4adb
Bring back modules split action workflow
sampoyigi Apr 13, 2022
f9499df
Minor improvements
sampoyigi Apr 17, 2022
fc3ce60
Fix Unknown column 'stock_qty' in 'order clause' #957
sampoyigi Apr 20, 2022
34b38c7
Minor fixes
sampoyigi Apr 20, 2022
0396009
Minor fixes
sampoyigi Apr 20, 2022
088ab55
Minor fix
sampoyigi Apr 20, 2022
c327804
Minor fixes
sampoyigi Apr 26, 2022
d111be6
Merge branch '3.x'
sampoyigi Apr 26, 2022
364f680
Add table prefix to related table in search query (#960)
thienvu18 Apr 26, 2022
021144d
Update to bootstrap 5 and Install all vendor assets using npm (#951)
sampoyigi Apr 26, 2022
03126c9
Fixes #959 (#961)
smoleniuch Apr 26, 2022
154c608
Update to bootstrap 5
sampoyigi Apr 26, 2022
301a5af
Improvements to admin user state
sampoyigi Apr 27, 2022
f3634fe
Make staff nav menu a child of system menu item
sampoyigi Apr 27, 2022
b85b588
Move menu and reservation page setting from Setup to General
sampoyigi Apr 28, 2022
fe628d3
Minor improvements & npm assets update
sampoyigi Apr 28, 2022
3fc52b6
Minor improvements
sampoyigi Apr 29, 2022
93424c3
Minor fixes
sampoyigi Apr 30, 2022
4b0c39c
Use selectlist scope type to replace dropped select2
sampoyigi May 3, 2022
cd9449e
Refactor admin location picker
sampoyigi May 3, 2022
01a64dc
Allow customisation of admin 404 and access denied pages
sampoyigi May 3, 2022
2efa285
Remove 'Administrator Panel' from admin pages title
sampoyigi May 3, 2022
b8b4195
Fix error with file not found when clearing templates cache
sampoyigi May 4, 2022
374fc73
Install languages from crowdin via the admin dashboard (#966)
sampoyigi May 4, 2022
3e1138b
Organise location options fields (#965)
sampoyigi May 4, 2022
2cc33d9
Apply fixes from StyleCI (#967)
sampoyigi May 4, 2022
4aa9d7c
Minor fixes
sampoyigi May 4, 2022
dc04cbc
Don't insert location options and delivery area when seeding initial …
sampoyigi May 5, 2022
a8bb7fb
refactor location options
sampoyigi May 5, 2022
4beab84
Use outline styling on back button
sampoyigi May 5, 2022
cd71e3c
Remove tax validation rules from setup settings
sampoyigi May 5, 2022
f4488fe
refactor location options
sampoyigi May 5, 2022
a08568e
minor fixes
sampoyigi May 5, 2022
c28e29f
Set startDate and endDate to today to fix invalid date #969 (#973)
ryanmitchell May 10, 2022
2919379
Load default value for filter scope (#968)
thienvu18 May 10, 2022
22fe51b
Add primary key on working_hours table
sampoyigi May 10, 2022
b9fae9f
Minor UI adjustments
sampoyigi May 10, 2022
9d25ad4
Merge parent theme requires into child theme when enabling required e…
sampoyigi May 10, 2022
8678fc6
Revert "Merge parent theme requires into child theme when enabling re…
sampoyigi May 10, 2022
be92fda
Remove locked property from composer.json manifest
sampoyigi May 10, 2022
b9df4df
Drop asset minification feature to fix JS issue with admin not able t…
sampoyigi May 20, 2022
55351d3
Merge branch '3.x'
sampoyigi May 20, 2022
ed16a6d
Add allergens relation to 3.x branch (#978)
ryanmitchell May 30, 2022
e8d8717
minor fix
sampoyigi May 30, 2022
ccbba69
Fix location_options issue when creating a location #981
sampoyigi Jun 1, 2022
721943a
minor fixes
sampoyigi Jun 3, 2022
20a9e62
Remove unique validation rule on allergen, category, location, mealti…
sampoyigi Jun 5, 2022
16f24e0
Add permissions to order, reservation delete bulk action #986
sampoyigi Jun 6, 2022
bc9ceb1
Add padding to modal form fields container
sampoyigi Jun 8, 2022
3b95b83
Merge branch '3.x'
sampoyigi Jun 8, 2022
f70ccc7
Add branch name to split GA
sampoyigi Jun 8, 2022
aeb055b
New admin.list.extendRecords event (#989)
thienvu18 Jun 11, 2022
f499635
Minor fix
sampoyigi Jun 13, 2022
3f5303e
Use locale dates formats in order and reservation emails
sampoyigi Jun 14, 2022
d5fd36c
Minor refactor to assignables
sampoyigi Jun 15, 2022
d91683e
Add location logo mail variables
sampoyigi Jun 15, 2022
a4530bd
Move allocate table logic from booking manager to reservation model
sampoyigi Jun 20, 2022
4d9bdeb
Minor fix
sampoyigi Jun 20, 2022
ec0542b
Add migration to drop all foreign keys due to irritating foreign key …
sampoyigi Jun 30, 2022
5e84a71
Ensure list column names do not much model relation name
sampoyigi Jun 30, 2022
ee29b34
Merge branch '3.x'
sampoyigi Jun 30, 2022
bbaa079
Check foreign key/index exists before dropping
sampoyigi Jul 2, 2022
115c602
Merge branch '3.x'
sampoyigi Jul 2, 2022
4635985
Use customer email as replyTo when appropriate (#1002)
ryanmitchell Jul 5, 2022
a3f024a
Ensure guest_num and duration have minimum values (#1001)
ryanmitchell Jul 5, 2022
137734c
use lowest menu option price when menu item price is 0
sampoyigi Jul 5, 2022
652cb6e
Add location options as HasMany relation
sampoyigi Jul 5, 2022
68e405b
Fix location list order type filter
sampoyigi Jul 5, 2022
3016c2f
Add comment column to reservations list tastyigniter/ti-ext-reservati…
sampoyigi Jul 6, 2022
f30bbff
Sort menu item option dropdown alphabetically
sampoyigi Jul 18, 2022
f2c500c
Fix issue where cart item option quantity type calculated value is no…
sampoyigi Jul 19, 2022
b3732a3
Update README.md
sampoyigi Aug 16, 2022
2a754e4
Install core update first instead of ignoring non-core updates
sampoyigi Aug 29, 2022
a937a00
Fix broken link
sampoyigi Aug 29, 2022
395b864
Merge branch '3.x'
sampoyigi Aug 29, 2022
6486a89
Minor fix
sampoyigi Aug 30, 2022
2c1f30d
Fix issue where media finder attachment config modal not opening (#1010)
CupNoodles Sep 2, 2022
5bf7b4e
Minor fix
sampoyigi Sep 13, 2022
cfe5f96
Cache location options
sampoyigi Sep 20, 2022
5ec9a23
Make location options fields unique (#1011)
philipxyc Sep 20, 2022
8371bc8
Merge branch '3.x'
sampoyigi Sep 21, 2022
5cbaced
Minor fixes
sampoyigi Sep 30, 2022
da6bc02
Add support for locationable trait on HasManyThrough, HasOneThrough r…
sampoyigi Sep 30, 2022
ed2a910
Allow rendering of multiple list widgets
sampoyigi Oct 4, 2022
98bc919
Fix dashboard news widget feed url
sampoyigi Oct 4, 2022
895d994
Reorder reservation form fields
sampoyigi Oct 4, 2022
5e7fbc5
Minor UI fix
sampoyigi Oct 4, 2022
de8ec05
Fix issue where reservation list can not be filtered by multiple stat…
sampoyigi Oct 15, 2022
9ceb025
Ensure admin password max length is 32 when installing
sampoyigi Oct 15, 2022
359687e
Minor fix
sampoyigi Oct 15, 2022
80a8ba3
Fix dashboard charts not displaying data
sampoyigi Oct 15, 2022
b780b42
Minor refactor
sampoyigi Oct 21, 2022
88f9243
Strip html tags from formatted address
sampoyigi Oct 21, 2022
cd89efb
Support multiple extension paths (#1017)
sampoyigi Oct 23, 2022
c61f8de
Allow payments, themes form query to be extended
sampoyigi Oct 23, 2022
3128a19
Fix issue where staff list is empty
sampoyigi Oct 23, 2022
b889685
Code field on mail layouts and partials should always be unique
sampoyigi Oct 30, 2022
723ed8c
Avoid marking order as processed more than once
sampoyigi Oct 30, 2022
d3da0a0
Minor UI fix
sampoyigi Oct 30, 2022
cf831c8
Minor fix
sampoyigi Nov 1, 2022
5736c74
Merge branch '3.x'
sampoyigi Nov 1, 2022
00b3b41
Update split modules github action to apply on all branches
sampoyigi Nov 5, 2022
aa53905
Fixed issue where its impossible to unassign a group or staff
sampoyigi Nov 12, 2022
303444d
Fix issue with clockpicker positioning and some minor UI adjustments
sampoyigi Nov 13, 2022
4c01c0d
Added new query scope doesntHaveStatusInHistory
sampoyigi Nov 17, 2022
f9501d9
Avoid negative order total when calculating totals
sampoyigi Nov 17, 2022
c8ff487
Fix issue with managing records when recordeditor is in radio mode
sampoyigi Nov 17, 2022
f6579ba
Minor fix
sampoyigi Dec 1, 2022
6e77da7
Minor fix
sampoyigi Jan 9, 2023
56a53e1
Fix issue opening multiple record editor modals.
sampoyigi Jan 13, 2023
2e70026
Use str_replace to remove double slash instead of realpath to avoid i…
sampoyigi Jan 17, 2023
adeead0
Merge branch '3.x'
sampoyigi Jan 18, 2023
8d7c0e8
Move subtract stock listener to cart extension, fixes #1019 stock sol…
sampoyigi Jan 28, 2023
06fb712
Add missing low_stock_alert mail template
sampoyigi Jan 28, 2023
3582ec1
Add missing user invite mail templates
sampoyigi Jan 28, 2023
e0c5809
Remove unused mail template lang strings
sampoyigi Jan 28, 2023
9093f72
Sort stock history in descending order
sampoyigi Jan 28, 2023
edc398e
Fix issue extending system settings fields
sampoyigi Jan 28, 2023
e3944d3
Update lang string
sampoyigi Jan 28, 2023
70362a5
Fixed filtering issue on admin staff page (#1026)
sampoyigi Feb 2, 2023
a85efb9
Fixed issue with list filter scope conditions
sampoyigi Feb 2, 2023
2ea79ab
Fixed issue with loading assets from symlink
sampoyigi Feb 11, 2023
7aaab3d
Added support for order delivery notes
sampoyigi Feb 11, 2023
db8e593
Ensure menu item minimum quantity is always 1 when nothing is specified
sampoyigi Feb 18, 2023
d9aa44b
Replaced bootstrap-color-picker with HTML color picker
sampoyigi Feb 18, 2023
05bf264
Update UI assets
sampoyigi Feb 18, 2023
a5e50d7
Replaced boostrap-multiselect with slimselect js library
sampoyigi Feb 19, 2023
6a19259
Added github action for compiling assets
sampoyigi Feb 19, 2023
bdde19f
Set working directory on compile assets github action
sampoyigi Feb 19, 2023
fb9e807
Set write permission and commit options on compile assets github action
sampoyigi Feb 19, 2023
71ef030
Add token to compile assets github action
sampoyigi Feb 19, 2023
415499e
Compile Assets
sampoyigi Feb 19, 2023
6fc0b21
Update broken badge
sampoyigi Feb 19, 2023
da85192
Prevent errors in one file from affecting the execution of other file…
sampoyigi Feb 23, 2023
9139f87
Fix issue replacing html DOM on ajaxUpdate
sampoyigi Feb 27, 2023
ca11825
Compile Assets
sampoyigi Feb 27, 2023
f457de8
Merge branch '3.x'
sampoyigi Feb 27, 2023
99d9d39
Bump symplify/github-action-monorepo-split from 2.0 to 2.3
sampoyigi Mar 1, 2023
d0d82ee
Bump symplify/github-action-monorepo-split to 2.3.0
sampoyigi Mar 1, 2023
bdbd593
Bump symplify/github-action-monorepo-split to 2.3.0
sampoyigi Mar 1, 2023
569f76e
Merge remote-tracking branch 'origin/3.x'
sampoyigi Mar 9, 2023
eb0b7a3
Remove colorpicker js library
sampoyigi Mar 15, 2023
5a7a6a9
Apply fixes from StyleCI (#1030)
sampoyigi Mar 15, 2023
c61abcb
Bump webpack from 5.75.0 to 5.76.1 in /app/admin/assets (#1029)
dependabot[bot] Mar 15, 2023
b15e906
Merge branch '3.x'
sampoyigi Mar 15, 2023
0d08f5a
Merge branch '3.x'
sampoyigi Mar 15, 2023
1099e13
Fake commit to bump flame library
sampoyigi Mar 15, 2023
28bf564
Merge branch '3.x'
sampoyigi Mar 15, 2023
7c12951
Move order & reservation cancel logic to model
sampoyigi Mar 16, 2023
f7e3aef
Fix typo in list colum type
sampoyigi Apr 12, 2023
2a30fc3
Remove JSScope assetic filter
sampoyigi Apr 12, 2023
ea6f83a
Bring back option to manually set reservation tables
sampoyigi Apr 12, 2023
d59856c
Merge branch '3.x'
sampoyigi Apr 20, 2023
c56482a
Change access token for compile action
sampoyigi Apr 20, 2023
f09796e
Compile Assets
sampoyigi Apr 20, 2023
dfc4f8b
Merge branch '3.x'
sampoyigi Apr 20, 2023
cd31324
Compile Assets
sampoyigi Apr 20, 2023
a37e6c2
Add binding of toolbar widget to controller in ListController.
sampoyigi May 3, 2023
ccd5cf5
Merge branch '3.x'
sampoyigi May 3, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 18 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs: editorconfig.org

root = true

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

[*.md]
trim_trailing_whitespace = false

[*.{yml,yaml,json,scss,css}]
indent_size = 2
15 changes: 3 additions & 12 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
assets/js/* linguist-vendored
*.css linguist-vendored
*.scss linguist-vendored
*.js linguist-vendored

# Set the default behavior, in case people don't have core.autocrlf set.
text=auto

# Ignore files when exporting
.gitattributes export-ignore
.gitignore export-ignore
.travis.yml export-ignore
CHANGELOG.md export-ignore
CONTRIBUTING.md export-ignore
ISSUE_TEMPLATE.md export-ignore
package.json export-ignore
phpunit.xml export-ignore
server.php export-ignore
File renamed without changes.
27 changes: 27 additions & 0 deletions .github/workflows/archive.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Archive

on:
schedule:
- cron: "0 0 * * *"

jobs:
archive:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v1.1.0
with:
repo-token: ${{ secrets.ACCESS_TOKEN }}
days-before-stale: 60
days-before-close: 3
stale-issue-message: >
This issue will be closed and archived in 3 days, as there has been no activity in the last 60 days.
If this issue is still relevant or you would like to see it actioned, please respond and we will re-open this issue.
If this issue is critical to your business, consider the [Dedicated Support Service](https://tastyigniter.com/premium-support) where a Service Level Agreement is offered.
stale-pr-message: >
This pull request will be closed and archived in 3 days, as there has been no activity in the last 60 days.
If this is still being worked on, please respond and we will re-open this pull request.
If this pull request is critical to your business, consider the [Dedicated Support Service](https://tastyigniter.com/premium-support) where a Service Level Agreement is offered.
stale-issue-label: 'Status: Archived'
stale-pr-label: 'Status: Archived'
exempt-issue-label: 'Status: In Progress'
exempt-pr-label: 'Status: In Progress'
33 changes: 33 additions & 0 deletions .github/workflows/compile-assets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Compile Assets

on: [push]

jobs:
compile:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
token: ${{ secrets.ACCESS_TOKEN }}

- uses: actions/setup-node@v3
with:
node-version: 16

- name: Install NPM dependencies
working-directory: ./app/admin/assets
run: npm ci

- name: Compile assets
working-directory: ./app/admin/assets
run: npm run prod

- name: Commit compiled files
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Compile Assets
commit_options: '--no-verify --signoff'
file_pattern: app/
57 changes: 57 additions & 0 deletions .github/workflows/split.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Split Modules

on:
push:
branches:
- '*'
tags:
- '*'

jobs:
split_modules:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
package:
- path: 'admin'
repository: 'ti-module-admin'
- path: 'main'
repository: 'ti-module-main'
- path: 'system'
repository: 'ti-module-system'

steps:
- uses: actions/checkout@v2

# no tag
- if: "!startsWith(github.ref, 'refs/tags/')"
# Uses an action in the root directory
name: Module Split of app/${{ matrix.package.path }}
uses: danharrin/monorepo-split-github-action@v2.3.0
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
with:
branch: ${GITHUB_REF#refs/heads/}

package_directory: 'app/${{ matrix.package.path }}'
repository_organization: 'tastyigniter'
repository_name: '${{ matrix.package.repository }}'
user_name: "Sam Poyigi"
user_email: "6567634+sampoyigi@users.noreply.github.com"

# with tag
- if: "startsWith(github.ref, 'refs/tags/')"
# Uses an action in the root directory
name: Modules Tagged Split of ${{ matrix.package.path }}
uses: danharrin/monorepo-split-github-action@v2.3.0
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
with:
tag: ${GITHUB_REF#refs/tags/}

package_directory: 'app/${{ matrix.package.path }}'
repository_organization: 'tastyigniter'
repository_name: '${{ matrix.package.repository }}'
user_name: "Sam Poyigi"
user_email: "6567634+sampoyigi@users.noreply.github.com"
83 changes: 83 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
name: Tests

on:
push:
branches:
- master
- develop
- 3.x
pull_request:

jobs:
PHPUnitTests:
# runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
strategy:
max-parallel: 6
matrix:
# os: [ubuntu-latest, windows-latest]
php: ['7.4', '8.0', '8.1']
db: ['mysql:5.7', 'mysql:8.0', 'mariadb:10.2', 'mariadb:10.6']
include:
- db: 'mysql:5.7'
dbName: 'MySQL 5.7'
- db: 'mysql:8.0'
dbName: 'MySQL'
- db: 'mariadb:10.2'
dbName: 'MariaDB 10.2'
- db: 'mariadb:10.6'
dbName: 'MariaDB'
fail-fast: false

services:
mysql:
image: ${{ matrix.db }}
ports:
- 3306

name: 'PHPUnit Tests ${{ matrix.php }} / ${{ matrix.dbName }}'

steps:
- name: Checkout changes
uses: actions/checkout@v1

- name: Create MySQL Database
run: |
sudo systemctl start mysql
mysql -u${{ env.DB_USERNAME }} -p${{ env.DB_PASSWORD }} -e 'CREATE DATABASE ${{ env.DB_DATABASE }};' --port ${{ env.DB_PORT }}

- name: Install PHP
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php }}
extensions: mbstring, intl, gd, xml, sqlite

- name: Install composer dependencies
run: composer install --no-interaction --prefer-dist --no-progress --no-scripts

- name: Reset TastyIgniter library
run: |
git reset --hard HEAD
rm -rf ./vendor/tastyigniter/flame
wget https://github.com/tastyigniter/flame/archive/master.zip -O ./vendor/tastyigniter/master.zip
unzip ./vendor/tastyigniter/master.zip -d ./vendor/tastyigniter
mv ./vendor/tastyigniter/flame-master ./vendor/tastyigniter/flame
composer dump-autoload

- name: Run composer post-update scripts
run: |
php artisan key:generate --force
php artisan igniter:install --no-interaction
php artisan igniter:util set version
php artisan package:discover

- name: Run PHPUnit Test Suite
run: ./vendor/bin/phpunit

env:
DB_PORT: 3306
DB_DATABASE: test
DB_USERNAME: root
DB_PASSWORD: root
DB_PREFIX: 'ti_'
IGNITER_LOCATION_MODE: multiple
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@
# Ignore all vendor files included by composer and the lock file
/vendor
composer.lock
node_modules
33 changes: 33 additions & 0 deletions .nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
## Pass requests that don't refer directly to files in the filesystem to index.php
location / { try_files $uri $uri/ /index.php?$query_string; }

## Pass the PHP scripts to FastCGI server
location ~ ^/index.php {
## Write your FPM configuration here

}

## Whitelist
location ~ ^/favicon\.ico { try_files $uri /index.php; }
location ~ ^/sitemap\.xml { try_files $uri /index.php; }

## Block all .dotfiles except well-known
location ~ /\.(?!well-known).* { deny all; }

### Let nginx return 404 if static file does not exists
location ~ ^/assets/media { try_files $uri 404; }
location ~ ^/storage/temp/public { try_files $uri 404; }

location ~ ^/app/.*/assets { try_files $uri 404; }
location ~ ^/app/.*/actions/.*/assets { try_files $uri 404; }
location ~ ^/app/.*/dashboardwidgets/.*/assets { try_files $uri 404; }
location ~ ^/app/.*/formwidgets/.*/assets { try_files $uri 404; }
location ~ ^/app/.*/widgets/.*/assets { try_files $uri 404; }

location ~ ^/extensions/.*/.*/assets { try_files $uri 404; }
location ~ ^/extensions/.*/.*/actions/.*/assets { try_files $uri 404; }
location ~ ^/extensions/.*/.*/dashboardwidgets/.*/assets { try_files $uri 404; }
location ~ ^/extensions/.*/.*/formwidgets/.*/assets { try_files $uri 404; }
location ~ ^/extensions/.*/.*/widgets/.*/assets { try_files $uri 404; }

location ~ ^/themes/.*/assets { try_files $uri 404; }
29 changes: 0 additions & 29 deletions .travis.yml

This file was deleted.

14 changes: 0 additions & 14 deletions ISSUE_TEMPLATE.md

This file was deleted.

Loading