Skip to content

Commit

Permalink
Events and permissions (#17)
Browse files Browse the repository at this point in the history
* Update npm commands, run linter, fix indentation and config files

* Add view/edit permissions, add event
Change translation namespace to match extension ID
Add ugc rel to links

* Apply fixes from StyleCI

* Remove leftover var_dump
  • Loading branch information
clarkwinkelmann authored Jun 25, 2020
1 parent e16d82a commit 58d5da0
Show file tree
Hide file tree
Showing 20 changed files with 5,015 additions and 4,865 deletions.
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
root = true
[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 4
[*.md]
indent_size = 2
trim_trailing_whitespace = false
13 changes: 13 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.gitattributes export-ignore
.github export-ignore
.gitignore export-ignore
.gitmodules export-ignore
js/src export-ignore
js/admin.js export-ignore
js/forum.js export-ignore
js/webpack.config.js export-ignore
js/package.json export-ignore
js/package-lock.json export-ignore

js/dist/*.js -diff
js/dist/*.map -diff
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
js/node_modules
vendor/
composer.lock
composer.lock
3 changes: 3 additions & 0 deletions extend.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@
(new Extend\Frontend('forum'))
->js(__DIR__.'/js/dist/forum.js')
->css(__DIR__.'/resources/less/forum.less'),
(new Extend\Frontend('admin'))
->js(__DIR__.'/js/dist/admin.js'),
new Extend\Locales(__DIR__.'/resources/locale'),
function (Dispatcher $events) {
$events->subscribe(Access\UserPolicy::class);
$events->subscribe(Listeners\AddUserBioAttribute::class);
$events->subscribe(Listeners\SaveUserBio::class);
},
Expand Down
1 change: 1 addition & 0 deletions js/admin.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './src/admin';
2 changes: 2 additions & 0 deletions js/dist/admin.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions js/dist/admin.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/dist/forum.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 58d5da0

Please sign in to comment.