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

Merge Develop to master #530

Open
wants to merge 891 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
891 commits
Select commit Hold shift + click to select a range
86eee51
pixel perfect codes
Didier-ds Oct 2, 2021
1e3fc99
Merge branch 'develop' of https://github.com/zurichat/zc_plugin_todo …
tjfaith Oct 2, 2021
30aa35b
Merge branch 'develop' of https://github.com/zurichat/zc_plugin_todo …
Oct 2, 2021
b21c728
pulled from upstream again
Oct 2, 2021
b0669e3
yarn build successful
Oct 2, 2021
0b529e5
Merge pull request #712 from Kemmie001/develop
EricOgie Oct 2, 2021
970352c
Added Validation checks to AssignCollabroator test
Ericogia Oct 2, 2021
82164fe
Merge branch 'develop' of https://github.com/zurichat/zc_plugin_todo
Ericogia Oct 2, 2021
173eb47
sidebar updated
omoh09 Oct 2, 2021
fb00efe
Merge branch 'develop' of https://github.com/zurichat/zc_plugin_todo …
omoh09 Oct 2, 2021
7eb8f18
bild collaborator
tjfaith Oct 2, 2021
d863dbd
Merge pull request #715 from EricOgie/master
EricOgie Oct 2, 2021
3f081cc
Merge pull request #713 from omoh09/develop
EricOgie Oct 2, 2021
cf3760b
Merge branch 'develop' of https://github.com/zurichat/zc_plugin_todo …
tjfaith Oct 2, 2021
acbbaa5
Merge pull request #716 from tjfaithpro/develop
EricOgie Oct 2, 2021
365ac94
add task
Didier-ds Oct 2, 2021
790b871
todo creation pop
tjfaith Oct 2, 2021
0507305
add task
Didier-ds Oct 2, 2021
1deaab3
update
tjfaith Oct 2, 2021
5356427
mail notification for adding tasks, marking a task
vrrayz Oct 2, 2021
ce22368
merge fix
vrrayz Oct 2, 2021
6ed07ac
perfect implementation
Didier-ds Oct 2, 2021
cb6d114
Merge pull request #718 from tjfaithpro/develop
EricOgie Oct 2, 2021
d393967
Merge branch 'develop' of https://github.com/zurichat/zc_plugin_todo …
vrrayz Oct 2, 2021
eaa7349
Merge branch 'develop' of https://github.com/zurichat/zc_plugin_todo …
vrrayz Oct 2, 2021
11afee2
pixel perfect and centrifugo implemntation
Didier-ds Oct 2, 2021
60739a5
change funtion location
tjfaith Oct 2, 2021
4674566
pixel perfect and centrifugo implemetation
Didier-ds Oct 2, 2021
4634c79
build
tjfaith Oct 2, 2021
26d9d61
Merge pull request #721 from tjfaithpro/develop
EricOgie Oct 2, 2021
67d5d2d
Update AssignUserController.php
Tmakinde Oct 2, 2021
177d43f
implement task reminder
meshmmanuel Oct 2, 2021
a43cb5f
jsdjdsj
Didier-ds Oct 2, 2021
9bfed49
Merge pull request #725 from meshmmanuel/master
meshmmanuel Oct 2, 2021
541e673
pixel perfect and centrifugo implemetation
Didier-ds Oct 2, 2021
4b10aef
Merge branch 'develop' of https://github.com/zurichat/zc_plugin_todo
Didier-ds Oct 2, 2021
56d5d2b
j
tjfaith Oct 2, 2021
1047a2c
Merge pull request #727 from Didier-ds/master
kayleb01 Oct 2, 2021
45f9b2b
Merge pull request #723 from Tmakinde/develop
EricOgie Oct 2, 2021
dfa6985
commit
Ruthiejayjay Oct 3, 2021
b907f62
Merge branch 'develop' of https://github.com/zurichat/zc_plugin_todo …
Ruthiejayjay Oct 3, 2021
d53718f
fixed issues
Ruthiejayjay Oct 3, 2021
4cfd17b
neww commit
Ruthiejayjay Oct 3, 2021
b3c7109
Merge branch 'develop' of https://github.com/zurichat/zc_plugin_todo …
Ruthiejayjay Oct 3, 2021
e07ecb6
another new commit
Ruthiejayjay Oct 3, 2021
02bbf82
Merge branch 'develop' of https://github.com/zurichat/zc_plugin_todo …
Ruthiejayjay Oct 3, 2021
f80b73d
commit
Ruthiejayjay Oct 3, 2021
7efc3b7
Merge pull request #729 from Ruthiejayjay/MakeUserAdmin2
EricOgie Oct 2, 2021
ff8d03a
change organisation id to workspace id
tjfaith Oct 3, 2021
73e8047
Merge branch 'develop' of https://github.com/zurichat/zc_plugin_todo …
tjfaith Oct 3, 2021
2272b36
de
tjfaith Oct 3, 2021
40a88b9
Change org id to workspace id
tjfaith Oct 3, 2021
64401d0
Merge pull request #730 from tjfaithpro/develop
EricOgie Oct 3, 2021
362ff9e
Call the getMembers() in click event
tjfaith Oct 3, 2021
5bc7e01
sidebar
omoh09 Oct 3, 2021
4e0a982
sidebar
omoh09 Oct 3, 2021
0b33b7b
fixed delete todo
kayleb01 Oct 3, 2021
22c0ed4
fix the delete
kayleb01 Oct 3, 2021
70640d5
Merge pull request #732 from kayleb01/develop
kayleb01 Oct 3, 2021
b8754ed
centifuger
Didier-ds Oct 3, 2021
59c8fd5
centifuger
Didier-ds Oct 3, 2021
7f14eca
Merge branch 'develop' of https://github.com/zurichat/zc_plugin_todo
Didier-ds Oct 3, 2021
ce64735
Merge branch 'develop' into develop
vrrayz Oct 3, 2021
c2b0232
centri
Didier-ds Oct 3, 2021
ef7dff4
Merge pull request #733 from Didier-ds/master
kayleb01 Oct 3, 2021
04b6096
sidebar fix
omoh09 Oct 3, 2021
751e890
Merge branch 'develop' of https://github.com/zurichat/zc_plugin_todo …
omoh09 Oct 3, 2021
d08c097
Merge pull request #734 from omoh09/develop
kayleb01 Oct 3, 2021
3bb8bf1
fix
omoh09 Oct 3, 2021
38c29e8
Merge branch 'develop' of https://github.com/zurichat/zc_plugin_todo …
omoh09 Oct 3, 2021
daa4865
Merge pull request #735 from omoh09/develop
EricOgie Oct 3, 2021
52015b6
CI: Update workflow
duoarc Oct 3, 2021
aa3ae9f
mark task
Didier-ds Oct 3, 2021
f86daef
Merge branch 'develop' of https://github.com/zurichat/zc_plugin_todo
Didier-ds Oct 3, 2021
c79a782
collab
tjfaith Oct 3, 2021
ac04cea
mark as done
Didier-ds Oct 3, 2021
1dca375
Merge pull request #736 from Didier-ds/master
kayleb01 Oct 3, 2021
d770fdd
Merge branch 'develop' of https://github.com/zurichat/zc_plugin_todo …
tjfaith Oct 4, 2021
80d39ac
cleared conflicts
tjfaith Oct 4, 2021
6cde21f
Merge branch 'develop' into develop
tjfaith Oct 4, 2021
dc68f85
made it run even on 500 error, but it wont save to db
tjfaith Oct 4, 2021
72156f0
load wen error only in frontend
tjfaith Oct 4, 2021
e0be830
Merge branch 'develop' of https://github.com/tjfaithpro/zc_plugin_tod…
tjfaith Oct 4, 2021
765d495
removed bugs on reminder and collaborators
tjfaith Oct 4, 2021
c178fb6
Added CommentTest
Ericogia Oct 4, 2021
5458bc3
Merge branch 'develop' of https://github.com/zurichat/zc_plugin_todo
Ericogia Oct 4, 2021
fde003f
Bug Fix AssignController
Ericogia Oct 4, 2021
d816e2f
Merge pull request #741 from EricOgie/master
EricOgie Oct 4, 2021
7b9b329
mark and unmark
Didier-ds Oct 4, 2021
c4b74c9
mark and unmark
Didier-ds Oct 4, 2021
122c0a6
Merge branch 'develop' of https://github.com/zurichat/zc_plugin_todo
Didier-ds Oct 4, 2021
826273d
Merge pull request #742 from Didier-ds/master
EricOgie Oct 4, 2021
2833d85
Added API to Fetch Collaborators on a TODO
Ericogia Oct 4, 2021
ea65ee8
Merge pull request #743 from EricOgie/master
EricOgie Oct 4, 2021
81d6ad5
Merge pull request #720 from vrrayz/develop
EricOgie Oct 4, 2021
22c33d0
mark and unmark todo
Didier-ds Oct 4, 2021
5260dda
Bug Fix
Ericogia Oct 4, 2021
b4a0111
Merge pull request #744 from EricOgie/master
EricOgie Oct 4, 2021
2d89315
added add collaborator button
tjfaith Oct 4, 2021
f2e432c
Merge branch 'develop' into develop
tjfaith Oct 4, 2021
044213f
Merge pull request #745 from tjfaithpro/develop
EricOgie Oct 4, 2021
3fd750d
Ignore if authorization header isn't passed
vrrayz Oct 4, 2021
5f70ee3
Merge pull request #746 from vrrayz/develop
kayleb01 Oct 6, 2021
00d3e0d
component arrangement
Didier-ds Oct 9, 2021
18778c5
components arrangement
Didier-ds Oct 9, 2021
d305c38
Included A Global Constant Class
Ericogia Oct 10, 2021
05a658f
Added AminFirst sort to Collaborators fetch
Ericogia Oct 10, 2021
8318fb1
Merge pull request #747 from EricOgie/master
EricOgie Oct 10, 2021
ae6acd2
Update AssignUserController.php
Ericogia Oct 10, 2021
f1d5953
Merge pull request #748 from EricOgie/master
EricOgie Oct 10, 2021
5dbdcec
new arrangements
Didier-ds Oct 12, 2021
c38297a
Merge branch 'develop' of https://github.com/zurichat/zc_plugin_todo
Didier-ds Oct 12, 2021
16e5b31
standalone page to test search
meshmmanuel Oct 12, 2021
6fdb687
Added a standalone page to test functionality of endpoints
Tmakinde Oct 12, 2021
dfcea83
Update package.json
Tmakinde Oct 12, 2021
0445ee6
Merge pull request #751 from meshmmanuel/master
kayleb01 Oct 12, 2021
621537e
new build
Didier-ds Oct 12, 2021
8fc2420
Merge branch 'develop' of https://github.com/zurichat/zc_plugin_todo
Didier-ds Oct 12, 2021
1bf8b92
Added test
Tmakinde Oct 12, 2021
834d989
Merge branch 'develop' of https://github.com/zurichat/zc_plugin_todo …
Tmakinde Oct 12, 2021
c3a1243
Added a page to test functionality
Tmakinde Oct 12, 2021
f3f5fca
Merge branch 'develop' of https://github.com/Tmakinde/zc_plugin_todo …
Tmakinde Oct 12, 2021
90a68de
Merge pull request #754 from Tmakinde/develop
kayleb01 Oct 12, 2021
3b045de
security
chixmxkx Oct 12, 2021
d7c15fa
M
Ericogia Oct 12, 2021
6046c5b
Merge branch 'develop' of https://github.com/zurichat/zc_plugin_todo
Ericogia Oct 12, 2021
52df64f
sidebar RTC update
omoh09 Oct 12, 2021
873d9a3
Merge pull request #756 from omoh09/develop
kayleb01 Oct 13, 2021
d229a28
Merge pull request #755 from chixmxkx/develop
kayleb01 Oct 13, 2021
8198274
modified test page
Tmakinde Oct 13, 2021
c4f19b8
Merge branch 'develop' of https://github.com/zurichat/zc_plugin_todo …
Tmakinde Oct 13, 2021
a313a46
modified test page
Tmakinde Oct 13, 2021
d01ab85
Merge pull request #757 from Tmakinde/develop
kayleb01 Oct 13, 2021
bc89b6e
modified search endpoint
kayleb01 Oct 13, 2021
f4254a9
implement installation of plugin
meshmmanuel Oct 13, 2021
dad396b
Merge pull request #758 from meshmmanuel/master
meshmmanuel Oct 13, 2021
a9b8599
change request method
meshmmanuel Oct 13, 2021
e293893
Merge pull request #759 from meshmmanuel/master
meshmmanuel Oct 13, 2021
a5b4a44
add plugin id to install payload
meshmmanuel Oct 13, 2021
be63f09
Merge pull request #760 from meshmmanuel/master
meshmmanuel Oct 13, 2021
5a767df
new changes
Tmakinde Oct 13, 2021
60242d6
Merge branch 'develop' of https://github.com/zurichat/zc_plugin_todo …
Tmakinde Oct 13, 2021
3df3ba9
add plugin_id to service
meshmmanuel Oct 13, 2021
9e74da9
Merge pull request #761 from meshmmanuel/master
meshmmanuel Oct 13, 2021
0b9d2c5
Merge branch 'develop' of https://github.com/zurichat/zc_plugin_todo …
Tmakinde Oct 13, 2021
fede00e
Added an endpoint to uninstall plugin
Tmakinde Oct 13, 2021
4246093
Merge pull request #762 from Tmakinde/develop
meshmmanuel Oct 13, 2021
2a7ee37
fix install
meshmmanuel Oct 14, 2021
b9a31a6
Merge pull request #763 from meshmmanuel/master
meshmmanuel Oct 14, 2021
93634bb
fixing uninstall
meshmmanuel Oct 14, 2021
2fc1085
fix install plugin
meshmmanuel Oct 14, 2021
888db36
Merge pull request #764 from meshmmanuel/master
meshmmanuel Oct 14, 2021
477a015
catch other error
meshmmanuel Oct 14, 2021
8c3034d
Merge pull request #765 from meshmmanuel/master
meshmmanuel Oct 14, 2021
36236ee
remove host from url
meshmmanuel Oct 14, 2021
69fbaa5
Merge pull request #766 from meshmmanuel/master
meshmmanuel Oct 14, 2021
3b1937b
added search according to the apps standard
kayleb01 Oct 14, 2021
d5d6711
search filter and contain
kayleb01 Oct 14, 2021
a2ace3c
search according to the standard
kayleb01 Oct 14, 2021
0459364
added the uri params
kayleb01 Oct 14, 2021
2a0e673
added comments
kayleb01 Oct 14, 2021
3bb86b4
Merge pull request #767 from kayleb01/develop
kayleb01 Oct 14, 2021
372711c
small bug fix to make it case insensitive
kayleb01 Oct 14, 2021
01f2c0b
case insensitive code
kayleb01 Oct 14, 2021
48a703f
Merge pull request #768 from kayleb01/develop
kayleb01 Oct 14, 2021
f226397
*
Ericogia Oct 14, 2021
10c6681
refactored get APIs to asc order
Eno-obongEnoh25 Oct 14, 2021
437a803
Added Zuri Search Bar Suggestion API
Ericogia Oct 14, 2021
58e8b2b
Merge pull request #770 from EricOgie/master
EricOgie Oct 14, 2021
32d9a97
completed returning in asc or desc order
Eno-obongEnoh25 Oct 15, 2021
a724b07
Merge branch 'develop' of https://github.com/zurichat/zc_plugin_todo …
Eno-obongEnoh25 Oct 15, 2021
fc6d1ff
Registered A new Plugin
Ericogia Oct 15, 2021
5bc3ef4
Merge pull request #771 from EricOgie/master
EricOgie Oct 15, 2021
23470cf
Update AppConstants.php
Ericogia Oct 15, 2021
4ae7baa
Merge pull request #772 from EricOgie/master
EricOgie Oct 15, 2021
a976227
Added Plugin Id
Ericogia Oct 15, 2021
db3b383
Merge pull request #773 from EricOgie/master
EricOgie Oct 15, 2021
fd5b085
sidebar notification updated
omoh09 Oct 15, 2021
93796c7
siderbar notification
omoh09 Oct 15, 2021
c919a26
fix the search
kayleb01 Oct 15, 2021
aedbae8
search modifications
kayleb01 Oct 15, 2021
e69fc59
fix the search
kayleb01 Oct 15, 2021
cd6eacc
fix the search
kayleb01 Oct 15, 2021
39e0949
Merge pull request #774 from kayleb01/develop
kayleb01 Oct 15, 2021
891dd82
fix the search
kayleb01 Oct 15, 2021
4617b77
Merge pull request #775 from kayleb01/develop
kayleb01 Oct 15, 2021
6d20363
Re structure Search suggestion response
Ericogia Oct 15, 2021
7e24ff3
Merge branch 'develop' of https://github.com/zurichat/zc_plugin_todo
Ericogia Oct 15, 2021
2f720a3
Merge pull request #776 from EricOgie/master
EricOgie Oct 15, 2021
cc52b1b
Added dictionary
Ericogia Oct 15, 2021
8278c09
*
Ericogia Oct 15, 2021
8c6116b
Merge pull request #777 from EricOgie/master
EricOgie Oct 15, 2021
4ed75b2
fix the search
kayleb01 Oct 16, 2021
956b059
sidebar notification rtc
omoh09 Oct 16, 2021
55a839c
Merge branch 'develop' of https://github.com/zurichat/zc_plugin_todo …
omoh09 Oct 16, 2021
11097eb
sidebar notification dynamic
omoh09 Oct 16, 2021
5ee7fbd
fixes on the centrifugo
omoh09 Oct 16, 2021
8abf933
Merge pull request #779 from kayleb01/develop
kayleb01 Oct 16, 2021
69ec4fd
added the proper url
kayleb01 Oct 16, 2021
6befdf6
Merge pull request #780 from kayleb01/develop
kayleb01 Oct 16, 2021
2bb6455
corrected the getuserinfo function
Didier-ds Oct 16, 2021
b56d506
Merge branch 'develop' of https://github.com/zurichat/zc_plugin_todo
Didier-ds Oct 16, 2021
7cbd1a8
Merge pull request #753 from Didier-ds/master
kayleb01 Oct 16, 2021
83f644c
added the proper url
kayleb01 Oct 16, 2021
27e386f
Merge pull request #781 from kayleb01/develop
kayleb01 Oct 16, 2021
e99c0af
Merge pull request #769 from Eno-obongEnoh25/develop
kayleb01 Oct 16, 2021
846d6cc
chunk
omoh09 Oct 16, 2021
83ca90b
chunk
omoh09 Oct 16, 2021
6c9e2dd
chunk
omoh09 Oct 17, 2021
ec614d3
chunk
omoh09 Oct 17, 2021
65e431e
Merge pull request #778 from omoh09/develop
kayleb01 Oct 17, 2021
324773b
added linting
kayleb01 Oct 26, 2021
1aee95f
added linting
kayleb01 Oct 26, 2021
2c687f2
Testing lint
kayleb01 Oct 26, 2021
2d3d542
added the lint
kayleb01 Oct 26, 2021
ab4a06d
Pre-Upstream Pull
Ericogia Oct 26, 2021
bc81bbf
Updated from Upstream Develop
Ericogia Oct 26, 2021
4a72feb
a new frontend folder
Didier-ds Oct 28, 2021
267e0f8
Merge branch 'develop' of https://github.com/zurichat/zc_plugin_todo
Didier-ds Oct 28, 2021
5ed2fbc
Merge pull request #783 from Didier-ds/master
Didier-ds Oct 29, 2021
0a44c62
Merge branch 'develop' of https://github.com/zurichat/zc_plugin_todo
Ericogia Oct 29, 2021
b039afb
starred room implementation
omoh09 Oct 29, 2021
a405d79
Merge branch 'develop' of https://github.com/zurichat/zc_plugin_todo …
omoh09 Oct 29, 2021
d612c41
Abstracted Create todo to service layer
Ericogia Oct 29, 2021
76b4142
comment out the even for better restructuring
omoh09 Oct 29, 2021
449e4ff
Abstracted Fetch todo logic to service layer
Ericogia Oct 29, 2021
2cab1fc
Added Code documentation to TodoController
Ericogia Oct 29, 2021
0e0c559
*
Ericogia Oct 29, 2021
e90ce0b
Merge pull request #785 from EricOgie/master
EricOgie Oct 29, 2021
6ed81f0
resolved conflit and refactored
omoh09 Oct 30, 2021
81a8e99
fix
omoh09 Oct 30, 2021
c2ff429
fixes
omoh09 Oct 30, 2021
cffde4d
refactoring
kayleb01 Oct 30, 2021
a6f5e53
Merge pull request #784 from omoh09/develop
kayleb01 Oct 30, 2021
efb3b14
refactoring and add a pre-commit
kayleb01 Oct 31, 2021
d595374
before precomit and refactoring
kayleb01 Oct 31, 2021
f70c1c4
refactor taskcontroller
kayleb01 Oct 31, 2021
671cc16
Merge pull request #786 from kayleb01/develop
kayleb01 Oct 31, 2021
f221c32
Revert "Refactoring of taskController"
kayleb01 Oct 31, 2021
223f60a
Merge pull request #787 from zurichat/revert-786-develop
kayleb01 Oct 31, 2021
5c80071
fix sidebar
omoh09 Oct 31, 2021
bf2ac2a
Merge branch 'develop' of https://github.com/zurichat/zc_plugin_todo …
omoh09 Oct 31, 2021
8cf3ce5
Merge pull request #788 from omoh09/develop
kayleb01 Oct 31, 2021
527a4a7
fix some linting
kayleb01 Oct 31, 2021
25b7257
resolved conflicts
kayleb01 Oct 31, 2021
c8d629c
Merge pull request #789 from kayleb01/develop
kayleb01 Oct 31, 2021
630fffe
fixing the sidebar issue
kayleb01 Oct 31, 2021
ae3d119
Merge pull request #790 from kayleb01/develop
kayleb01 Oct 31, 2021
e367190
added a pre-commit hook for the team
kayleb01 Oct 31, 2021
dec531b
Merge pull request #791 from kayleb01/develop
kayleb01 Oct 31, 2021
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
  •  
  •  
  •  
51 changes: 51 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
APP_NAME=Todo-Zuri
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://todo.zuri.chat

LOG_CHANNEL=stack
LOG_LEVEL=debug

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

BROADCAST_DRIVER=log
CACHE_DRIVER=file
FILESYSTEM_DRIVER=local
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120

MEMCACHED_HOST=127.0.0.1

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=
REDIS_PORT=

MAIL_MAILER=smtp
MAIL_HOST=mailhog
MAIL_PORT=
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS=null
MAIL_FROM_NAME=

AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=
AWS_BUCKET=
AWS_USE_PATH_STYLE_ENDPOINT=false

PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1

MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
1 change: 1 addition & 0 deletions .env.standalone
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
STANDALONE_SINGLE_SPA=true
33 changes: 33 additions & 0 deletions .github/workflows/be_laravel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Laravel

on:
workflow_dispatch:
#pull_request:
#branches: [ master, develop ]

jobs:
laravel-tests:

runs-on: ubuntu-latest

steps:
- uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e
with:
php-version: '8.0'
- uses: actions/checkout@v2
#- name: Copy .env
#run: php -r "file_exists('.env') || copy('.env.example', '.env');"
- name: Cache Composer dependencies
uses: actions/cache@v2
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Generate key
run: php artisan key:generate
- name: Directory Permissions
run: chmod -R 775 storage bootstrap/cache
- name: Execute tests (Unit and Feature tests) via PHPUnit
run: vendor/bin/phpunit
24 changes: 24 additions & 0 deletions .github/workflows/fe_checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Lint - [Frontend]

# Triggers the workflow on pull requests
on:
workflow_dispatch:
#pull_request:

jobs:
run-linters:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Use cached node_modules
uses: c-hive/gha-yarn-cache@v2
with:
directory: .

- name: Install yarn dependencies and Run ESLint
run: |
yarn install
yarn run lint
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ name: CI todo.zuri.chat
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ develop ]
#push:
#branches: [ develop ]



Expand Down
65 changes: 65 additions & 0 deletions .github/workflows/spa_deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Todo Deployment Pipeline

on:
# Triggers the workflow on push or pull request events but for the dev branch
push:
branches: [develop]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:

deploy:


runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
#- name: Use cached node_modules
#uses: c-hive/gha-yarn-cache@v2
#with:
#directory: frontend
#- name: Install yarn dependencies and build react-spa project
#run: |
#cd frontend
#yarn install

#- name: Copy epictetus folder to server
#uses: Creepios/[email protected]
#with:
#password: ${{ secrets.SSH_PASS }}
#host: ${{ secrets.SSH_HOST }}
#username: ${{ secrets.SSH_USER }}
#localPath: './public/'
#remotePath: '/var/www/zc_plugin_todo/public/'

- name: Deployment
uses: appleboy/ssh-action@master
with:
password: ${{ secrets.SSH_PASS }}
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
script: |
cd /var/www/zc_plugin_todo/
cd public
rm -rf js
cd /var/www/zc_plugin_todo/
git checkout develop
git stash
git pull origin develop
composer install --ignore-platform-reqs
cd frontend
yarn install
#yarn run build

- name: Create app.js
uses: appleboy/ssh-action@master
with:
password: ${{ secrets.SSH_PASS }}
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
script: |
cd /var/www/zc_plugin_todo/public/js
ls
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ composer.phar
/journal
/diagnostic.data
docker-compose.yml
composer.lock
Procfile
21 changes: 21 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>

RewriteEngine On

# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]

# Send Requests To Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
47 changes: 47 additions & 0 deletions app/Console/Commands/TaskReminder.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?php

namespace App\Console\Commands;

use App\Services\TaskReminderService;
use App\Services\TodoService;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Mail;

class TaskReminder extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'task:reminder';

/**
* The console command description.
*
* @var string
*/
protected $description = 'Trigger task reminder job';

/**
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}

/**
* Execute the console command.
*
* @return int
*/
public function handle(?TaskReminderService $service)
{
$service->commandHandler();

// Mail::raw('Hello World!', function($msg) {$msg->to('[email protected]')->subject('Test Email'); });
}
}
1 change: 1 addition & 0 deletions app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class Kernel extends ConsoleKernel
protected function schedule(Schedule $schedule)
{
// $schedule->command('inspire')->hourly();
$schedule->command('task:reminder')->everyTwoMinutes();
}

/**
Expand Down
58 changes: 58 additions & 0 deletions app/Constants/AppConstants.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<?php

namespace App\Constants;

class AppConstants
{
// PLUGIN
const PLUGIN_ID = "616997699dd41e54786c9e04";

// ZC Core Realated Constants
const ZC_BASE_URL = 'https://api.zuri.chat/';
const REQUEST_WRITE = 'data/write';
const REQUEST_READ = 'data/read';

// RTC Related Constants
const CENTRIFUGO_URL = "https://realtime.zuri.chat/api";
const CENTRIFUGO_API_KEY = 'apikey 58c2400b-831d-411d-8fe8-31b6e337738b';

// RTC Publish Actons
const ACTION_CREATE = "create";
const ACTION_UPDATE = "update";
const ACTION_DELETE = "delete";
const ACTION_TOGGLE_ADMIN = "toggle_admin";
const ACTION_REACT = "react";

// RTC ROOMS
const SIDEBAR_ROOM = "public_rooms";


// Resource or collection Type
const TYPE_TODO = "Todo";
const TYPE_TASK = "Task";
const TYPE_COMMENT = "Comment";
const TYPE_COLLABORATOR = "Collaborator";
const TYPE_REACTION = "Reaction";

const TYPE_TODOS = "Todo Collection";
const TYPE_TASKS = "Tasks Collection";
const TYPE_COMMENTS = "Comment Collection";
const TYPE_COLLABORATORS = "Collaborators Collection";
const TYPE_REACTIONS = "Reaction Collection";

// Status Code
const STATUS_NOT_FOUND = 404;
const STATUS_NO_AUTH = 401;
const STATUS_OK = 200;
const STATUS_ERROR = 500;
const STATUS_FORBIDDEN = 403;

// Status Message
const MSG_404 = "Resource Not Found";
const MSG_500 = "Server Error";
const MSG_200 = "Success";
const MSG_401 = "Lacking Authorization";
const MSG_403 = "Forbidden";
const MSG_204 = "Updated Successfully";
const MSG_DELETED = "Deleted Successfully";
}
38 changes: 38 additions & 0 deletions app/Contracts/CentrifugoInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?php

namespace App\Contracts;

interface CentrifugoInterface
{
/**
* pass data to be send as message
* @param $data
* @return
*/

public function publishToCommonRoom(array $data, string $newChannel, string $subscriberId, string $collection, string $unSubsciberId);

/**
* pass data to be send as message
* @param $data
* @return
*/

public function publishToRoomChannel(string $channel, array $data, string $collection, string $action);

/**
* pass user id
* @param $data
* @return
*/

public function unSubscribe(string $channel, $id);

/**
* send same message to many channels
* @param $data
* @return
*/

public function broadcast(array $channel, array $data);
}
Loading