128 Commits

Author SHA1 Message Date
Bojidar Marinov
c813670d9e Refactor all routes to use Controllers, make authentication via middleware 2018-04-10 00:00:46 +03:00
Bojidar Marinov
f9872d5c31 Merge pull request #137 from YeldhamDev/agpl_mpl_no_license
Added the AGPLv3 and MPL-2.0 licenses
2018-03-29 13:14:37 +03:00
Michael Alexsander Silva Dias
c25e9b4bbc Added the AGPLv3 and MPL-2.0 licenses. 2018-03-28 16:22:26 -03:00
Rémi Verschelde
102619e145 Footer: Fix copyright year 2018-03-20 08:35:22 +01:00
Bojidar Marinov
9bb601c641 Fix a mistake in migration 5, asset-edits' fields should be nullable
You can just rerun the migration.

Fixups 366b86c93e
2018-01-22 14:55:38 +02:00
Bojidar Marinov
366b86c93e Increase maximum commit ref size 2017-11-27 15:53:27 +02:00
Bojidar Marinov
9cd0e06a63 Make assets page more responsive, fix slight indentation issue
Should fix #69.
2017-11-06 21:28:13 +02:00
Bojidar Marinov
e7a4bc3127 Add a "Custom" download provider, which can be used by moderators only
It would allow us to link demos in the asset library.
Refs godotengine/godot-demo-projects#33
2017-11-06 21:11:26 +02:00
Bojidar Marinov
6895f19cca Fix regression which didn't allow new submissions
Fixup 9ebc302f63
2017-11-06 21:05:04 +02:00
Bojidar Marinov
f0486a66df Make asset preview page use screen space better
Fixes #103
2017-11-05 22:20:04 +02:00
Bojidar Marinov
9ebc302f63 Disallow the creation empty edits, show a warning for such edits
Fixes #101
2017-11-05 17:49:33 +02:00
Bojidar Marinov
572b862bb2 Fix inablity to set Issues URL to the default value
Fixes #113
2017-11-05 17:48:17 +02:00
Bojidar Marinov
332d839232 Fixup indentation slightly, make selecting a license add to the current filter
Refs #115
2017-09-29 22:34:53 +03:00
Bojidar Marinov
5e6e0f2e02 Merge pull request #118 from merumelu/remove-redirect
Remove legacy redirect when the URL starts with "frontend"
2017-09-29 22:32:29 +03:00
merumelu
ab64931330 Remove legacy redirect when the URL starts with "frontend"
No other pages links to godotengine.org/asset-library/frontend except
two Google results, but only if you explicitly include the "frontend"
part in your search query.
2017-09-29 21:07:24 +02:00
mhilbrunner
bd0db4cd10 Better asset descriptions: Clickable username+license for filtering, add modify_date (#115)
* Make username and license for asset description links to filtered asset list

* Fix links in asset list

* Add modify_date to asset description

* Use $basepath instead of ".." in relative links

* Use 'user' parameter instead of 'filter' to search user's assets

* Replace $asset with $data in asset.phtml template
2017-09-29 21:48:12 +03:00
Bojidar Marinov
3b882793b9 Merge pull request #117 from merumelu/use-autoloading
Use composer to autoload classes
2017-09-29 21:18:04 +03:00
merumelu
6ae3ffd01f Use composer's autoloading for Tokens and Util classes 2017-09-29 13:18:16 +02:00
Bojidar Marinov
5d61653dd1 Fix #116, deletion resulting in fatal error
Fixup of 7b366e6.
2017-09-28 11:22:26 +03:00
mhilbrunner
aa657e4ca0 Small fixes: Remove empty files, fix comment, update footer to 2017 (#114)
* Remove empty files (api\api.php, api\config.php)

* Fix comment (undelete instead of delete)

* Updated footer to 2017
2017-09-27 13:36:58 +03:00
Bojidar Marinov
7b366e6df1 Remove use of php features unavailable on tuxfamily 2017-09-13 21:20:00 +03:00
Bojidar Marinov
3c56e74370 Add backward-compatibility for the godot_version filter
Api clients will get only 2.1.x results if they don't specify a version.
2017-09-13 21:05:47 +03:00
Bojidar Marinov
c47cf0b25b Many assorted fixes on the fronted, fixup previous commit slightly
Fixes #104 and fixes #102
2017-09-13 20:44:03 +03:00
Bojidar Marinov
c3f7cb78b1 Add Godot version field to assets and an undelete route
Closes #100
2017-09-13 17:37:11 +03:00
Bojidar Marinov
6f7ea844b9 Merge pull request #90 from TomWor/delete-assets
Added delete asset route. Fixes #67
2017-09-13 10:02:47 +03:00
Tom Wor
589b4d2b18 Made adjustments according to comments on PR #90 2017-06-21 14:30:02 +02:00
Tom Wor
2822faa21d Updated delete route to be POST method
Added js confirmation popup
2017-06-13 13:36:39 +02:00
Tom Wor
9f1c734e45 Added delete asset route. Fixes #67 2017-06-13 12:31:41 +02:00
Rémi Verschelde
a9e8ef3832 Merge pull request #91 from merumelu/psr1_2
Use four spaces for indetation and follow PSR-1 and PSR-2
2017-01-02 11:46:17 +01:00
merumelu
ebc9dfb129 Apply PSR-1 and PSR-2 standard using php-cs-fixer --level=psr2
Manual fixes:
- Change method names to camelCase to comply with PSR-1 section 4.3
- Add namespace to Utils and Tokens classes to comply with PSR-1 section 3
- Capitalize src/helpers/, src/helpers/utils.php, and src/helpers/tokens.php
so they match with the class names. This also makes it possible to add them
to Composer's autoloader
2016-12-17 17:39:31 +01:00
merumelu
4531dbd6e8 Use four spaces for indentation everywhere 2016-12-17 17:27:44 +01:00
Bojidar Marinov
6b09f251d9 Merge pull request #97 from brunosxs/master
Fixed handling of empty array in route '/reset_password'

Fixes #95.
2016-11-06 11:38:25 +02:00
Bruno SXS
b2c7563f08 fixed handling of empty array in route '/reset_password' 2016-11-05 18:08:09 -02:00
Bojidar Marinov
c7fb7b639d Merge pull request #88 from TomWor/asset-title
Added asset name in page title if on detail page, fixes #79
2016-11-02 15:43:35 +02:00
Bojidar Marinov
4e3f4fd94b Fixup ugly HTML in title and reset emails a bit; also make SMTP a bit better 2016-10-31 18:03:47 +02:00
Bojidar Marinov
8e2dffbebe Quick syntax fixup for older PHP versions 2016-10-31 16:37:33 +02:00
Bojidar Marinov
d509da4156 Hopefully fix a few issues with issue urls of assets
Or just saveguard stuff, who knows...
2016-10-31 16:00:32 +02:00
Bojidar Marinov
6ff8c81a39 Merge pull request #87 from TomWor/editorconfig
Added editorconfig #82
2016-10-26 12:07:57 +03:00
Rémi Verschelde
598c472e3f Merge pull request #89 from TomWor/settings
Fixed array key in mail settings
2016-10-25 21:17:48 +02:00
Tom Wor
680c52829a Fixed array key in mail settings 2016-10-25 21:00:08 +02:00
Tom Wor
633b2e73c4 Added asset name in page title if on detail page #79 2016-10-25 20:02:42 +02:00
Bojidar Marinov
b4f70ece35 Merge pull request #86 from TomWor/settings-example
Fixed bug in default settings array keyname #85
2016-10-25 20:13:32 +03:00
Tom Wor
09b318370f Added editorconfig #82 2016-10-25 17:10:00 +02:00
Tom Wor
62aa079e86 Fixed bug in default settings array keyname #85 2016-10-25 16:44:38 +02:00
Bojidar Marinov
88cab7e6a2 Experimental reset and change password support.
Closes #51 and #37! 🎉
2016-10-20 15:13:48 +03:00
Bojidar Marinov
019de22e01 Merge pull request #81 from merumelu/frontend_constant
Use a constant to mark requests coming from frontend
2016-10-15 14:23:42 +03:00
merumelu
4a2ad38cc4 Use a constant to mark requests coming from frontend 2016-10-14 21:04:54 +02:00
Bojidar Marinov
a0c26036fc Make default sort order Updated instead of Rating
Closes #62
2016-10-14 20:20:23 +03:00
Bojidar Marinov
982363a967 Implement unimplemented user filter for asset edits
Good we go some random testing now and then...
2016-10-14 18:53:25 +03:00
Bojidar Marinov
9f92ea114c Fix pagination ellipsis, allow for more than 10 pages to be shown (finally)
Fixes #73
2016-10-14 18:22:20 +03:00