Commit Graph

110 Commits

Author SHA1 Message Date
0c92958fe2 chore: Add phpstan and phpinsights 2021-04-28 13:40:38 -03:00
aa55e10e69 chore: add helper scripts
- Deploy (merge into production, push, composer install and npm install)
- start_vagrant (just start vagrant and browser)
- ssh_homestead (a simple ssh into homestead)
2021-04-21 08:09:53 -03:00
df2ac8f223 chore: add script to update Composer and NPM 2021-04-21 07:22:44 -03:00
0199e40625 chore: Update npm 2021-04-21 07:22:24 -03:00
41fa056fba chore: update composer packages 2021-04-20 12:03:45 -03:00
d398f7e308 chore: update npm ssri to 6.0.2 2021-04-20 09:57:04 -03:00
49082aa880 Updating NPM packages 2021-02-23 20:06:56 -03:00
94d1435d81 Update to Laravel 8.* 2021-02-23 20:00:23 -03:00
2244ca22dc Update Laravel to 7.x 2021-02-19 20:27:28 -03:00
7c225605e8 Update Laravel to version 6.* 2021-02-17 20:02:27 -03:00
90bcb44067 Fix "@production" message appearing on screen
It was just for the privacy respect statistics script not appearing on
test phase.
2021-02-16 20:13:12 -03:00
be758cba4c Update Laravel to 5.8.* 2021-02-16 20:03:05 -03:00
3f49799d57 Update js libraries 2021-02-14 23:20:43 -03:00
c8f1881118 Showing tracker only in production 2020-08-22 20:01:58 -03:00
b060452861 Update NPM and compile assets 2020-08-22 14:14:46 -03:00
b6ba9a6193 Including the Tracking number directly 2020-08-22 14:10:59 -03:00
5e0637a1fd Including my OWA Tracker 2020-08-22 11:44:03 -03:00
b335bcc613 Composer update 2020-08-22 01:26:20 -03:00
593cb694a5 NPM Update 2020-08-22 01:26:08 -03:00
22fdb908cd npm updated 2020-04-05 12:19:23 -03:00
a3af7d5625 Updating npm and composer 2019-12-03 00:02:43 -03:00
vagrant
ee10b79a8e Updating libraries 2019-07-18 22:56:17 +00:00
ffbb387afa Merge branch 'master' of github.com:brunofontes/shareit 2019-07-18 19:46:11 -03:00
846624cec5 Including home.blade -> hasFocus test 2019-05-31 11:42:18 -03:00
584bb023de Composer update 2019-05-31 11:42:00 -03:00
3c17af2d7c Create test.php 2019-02-26 20:18:22 -03:00
7637400ec7 Bug Fixing - forgot to add the use App\FlashMessage on AlertController 2018-10-21 13:13:09 -03:00
e22f49bc6a Avoiding issues and refactoring code
I made the code more passive, avoiding issued at taking, returning,
storing alerts or removing alerts from an item.

Now they all check if it is with you before returning/deleting
alert etc. I am not sure if all cases are covered, but they are
better than before. I had one only issued on this on that time,
but I prefer to prioritize safety/security.

I took the opportunitie to move some code from Controllers to
the model itself, as they were changing with the DB.
2018-10-21 13:09:06 -03:00
1f9da456a5 Bug Fixed: avoiding item waiting_user across take/return
It happend once: a user asked to be added to the waiting
list at the same time other user was returning the item.

So the user ended up waiting for the user he was already
using.
2018-10-21 11:57:23 -03:00
999157825f Fixed bug causing error 500 on production
Some PHP version or configuration were causing this error.

On app.blade.php of local branch, I could use "$usedItems ? :"
even if $usedItems were null, but I had to check an "isset" to the production.

On HomecController, I had to change the "object" parameter of getUsername
to "\Illuminate\Database\Eloquent\Collection" to make it work.

I took the chance to just show the number of itens in use
if it were greater than 0.
2018-10-16 20:28:59 -03:00
840f0a777a Trying to fix an 500 error on production 2018-10-16 20:18:10 -03:00
8ae1e92a63 Refreshing and Including number of used items on Title
It was necessary to keep refreshing the page to
check if an item was returned when we did not
want to be alerted. So, now, the page refresh
itself every 2 minutes (while I do not know how
to use Laravel broadcasting) and the title shows
the number of items in use (including when used
by you).
2018-10-16 15:15:05 -03:00
1c1c42df7b Refactoring
Including some use for classes;
REfactoring the HomeController, to make it cleaner
and avoid repeating code.
2018-10-10 00:46:28 -03:00
a85b971ec5 Let me know if anyone subscribed during alpha
As the project is still alpha, I just want to know if someone
subscribed at it using a dummy e-mail address.
2018-10-03 19:42:35 -03:00
c39c69d81f Composer update
Plugins updated with composer.
2018-10-03 00:32:23 -03:00
675200303a Added: language to User profile (DB)
The language were set only on session. But now it is
stored with user profile, on DB.

It is important as now I can send alert e-mails to each
user on their own languages and not the activer
user language.

Also, wherever the user logs out and logs in again,
it will see the same site locale.
2018-10-02 23:53:35 -03:00
82a8bcb7a2 Refactoring: just including "use App" to make code a bit cleaner
I was using "\App::setLocale" on code, but it was annoind me.
So I included the "use App" and now I am colling
directly the "App::setLocale".
2018-10-02 23:49:16 -03:00
1e1c178214 Refactoring: TakeController returned item Mail moved to a listener
The TakeController was manually sending the email message
as well as dealing with item return, so I moved the email message
to it's own listener, I created an event for it and moved the
return part to the item model.
2018-09-30 21:37:44 -03:00
8575895341 BugFixing: home page were blank on no items
When we had no items showing on home page, it were just blank.
Turns out that the @empty call that shows the default message
were appearing just when it had no items on a product, instead
of no items at all.

Fixed it moving the paragraph to the right place.
2018-09-29 12:09:18 -03:00
f56d8f4b7a Added: buttons to change language
Now the welcome.blade has two new links to change language.
Other pages has a footer with the language switcher too.
2018-09-29 01:49:02 -03:00
ce0ddad1e7 Help Page translated into PTB
Now the entire website should be translated into PTB.
2018-09-28 19:14:29 -03:00
e5b3f5d445 Adding: help file translation to PTB
The help file is now translated into PTB
2018-09-28 02:09:00 -03:00
c9c92f7e07 Adding translation of product page
The news/product/*.blade.php files are translated into PTB.
2018-09-28 01:54:51 -03:00
63ef369e16 Added PTB Translation of emails and some pages
Now the main page, item page and e-mails are translated
into Brazilian Portuguese
2018-09-27 20:13:14 -03:00
1ff8a4f492 Starting to add localization into PTB 2018-09-26 23:06:38 -03:00
55e0c68094 Creating a readme.md file
The first readme.md was just some annotations to myself.
Now I created a first draft of a readme.md.
2018-09-22 16:07:49 -03:00
06002ca782 Removing start_vagrant.sh from git 2018-09-22 15:50:50 -03:00
816ec4ed89 Improving email contents
On email body, it usually appeared as the button to the website
would take directly an action, so the text was changed to make
sure the user will understand he is only going to access
the website.
2018-09-22 15:47:24 -03:00
b168473002 Groups HOME itesm by Product 2018-09-21 00:45:06 -03:00
78bc539a5a Fixing home alignment when person name is too big 2018-09-21 00:05:57 -03:00