1
0
mirror of https://github.com/flarum/core.git synced 2025-08-18 14:22:02 +02:00
Commit Graph

8914 Commits

Author SHA1 Message Date
dcsjapan
2183daa70e Fixes core.deleted_username as well. 2015-10-02 16:37:09 +09:00
dcsjapan
f2f03cc6e4 Add "forum" namespacing to previously renamed core keys
- Does not affect "core.deleted_user" global string.
- Corresponding YAML will be sent later w/ more extracted strings.
2015-10-02 15:54:39 +09:00
Toby Zerner
7fe52f2494 Fix suspend modal submit button 2015-10-01 15:15:52 +09:30
Toby Zerner
0caaea8c50 Fix scrubber dragging division by zero
closes #64
2015-09-29 17:46:05 +09:30
Toby Zerner
be8c79183e Update docblocks 2015-09-29 16:41:34 +09:30
Toby Zerner
06355b54f9 Properly mark all notifications as read
Previously, clicking the "mark all notifications as read" button would individually mark each of the visible notifications as read. Since we now always show a badge with the number of unread notifications, we need to make sure that all notifications (not just the visible ones) can be marked as read. Otherwise it would be possible to get stuck with an unread badge there.

This commit adds a new API endpoint which marks *all* of a user's notifications as read. The JSON-API spec doesn't cover this kind of thing (updating all instances of a certain resource type), so I'm a bit unsure regarding what the endpoint should actually be. For now I've gone with POST /notifications/read, but I'm open to suggestions.

ref #500
2015-09-29 16:41:05 +09:30
Toby Zerner
e81c94961e Remove "go to email provider" translations
ref flarum/core#541
2015-09-29 15:20:02 +09:30
Toby Zerner
81e6ab664a Properly handle errors in change email modal 2015-09-29 15:19:06 +09:30
Toby Zerner
470a3d20e2 Remove "go to email provider" buttons
closes #541
2015-09-29 15:18:55 +09:30
Toby Zerner
247d8116b0 Add missing semicolon 2015-09-29 14:29:40 +09:30
Franz Liedke
f5c9fd5d8d Update both unread and new notification count when a new notification appears
Related to flarum/core#500.
2015-09-29 01:39:44 +02:00
Franz Liedke
44e634ea47 Remove unused import 2015-09-29 01:31:34 +02:00
Franz Liedke
68215b4e0f Make linter happy 2015-09-29 01:31:09 +02:00
Franz Liedke
16992aa1fb Sync notification count when clicking on them or marking all as read
Refs #500.
2015-09-29 01:28:47 +02:00
Franz Liedke
66d4e51a18 Use correct method for notification drawer on mobile
Refs #500.
2015-09-29 01:28:47 +02:00
Franz Liedke
0bef17149c Return both unread and new notification count from the API
Related to #500.
2015-09-29 01:28:47 +02:00
Franz Liedke
e4b90296bc Merge pull request #554 from kirkbushell/feature/admin-tests
Admin tests
2015-09-29 00:59:09 +02:00
Franz Liedke
a436bef93c Implement third state for notification list dropdown
Related to #500.
2015-09-29 00:50:28 +02:00
kirkbushell
9198e96385 Added tests for admin login/cookie checks 2015-09-28 16:02:37 +01:00
kirkbushell
a4c61efee2 Added zend-stragility (missing), removed some redundant code. 2015-09-28 15:59:07 +01:00
Franz Liedke
da4dad3bb8 Merge pull request #553 from kirkbushell/feature/settings-tests
Tests for core settings code
2015-09-28 16:47:04 +02:00
kirkbushell
374e9f09e4 Moved psr-4 loading for tests out of the autoload 2015-09-28 15:44:35 +01:00
kirkbushell
a388fe7883 Added some tests for the database setting repository 2015-09-28 15:34:32 +01:00
kirkbushell
b93d5570d0 Removed phpsec as the testing library, added phpunit and converted the first spec test to phpunit format. Also added mockery. 2015-09-28 15:09:13 +01:00
Toby Zerner
5136eaf497 Merge pull request #6 from maelsoucaze/standardization
Standardization
2015-09-26 08:50:53 +09:30
Toby Zerner
a642181230 Merge pull request #5 from maelsoucaze/gitkeep-removal
Remove the unecessary .gitkeep
2015-09-26 08:50:27 +09:30
Toby Zerner
18713e8dba Merge pull request #4 from maelsoucaze/fontawesome-icon
Change the Font Awesome icon
2015-09-26 08:50:12 +09:30
Toby Zerner
994d4f5997 Merge pull request #3 from maelsoucaze/license
Add a LICENSE file
2015-09-26 08:49:22 +09:30
Maël Soucaze
7048909284 Ignore junks files to be added
It includes common OS junk files, some common backup and log files and
ensure that .git is ignored.
2015-09-25 17:43:47 +02:00
Maël Soucaze
cd02134e09 Normalize line endings and export-ignore
Ensure to normalize line endings to Unix (LF) and exclude some extra
files which are uncessary to the extension itself when exporting an
archive.
2015-09-25 17:42:09 +02:00
Maël Soucaze
17375aafa1 Add .editorconfig for consistent coding styles 2015-09-25 17:39:33 +02:00
Maël Soucaze
c7b3dd9d6b Remove the unecessary .gitkeep
The ".gitkeep" file is unecessary because the "locale/" subdirectory is
now correctly tracked by Git due to its content.
2015-09-25 17:33:07 +02:00
Maël Soucaze
3b86c486b5 Change the Font Awesome icon
The "language" icon is better and more specific by default than the
"globe" icon, which can be used on many non-language extensions.
2015-09-25 17:28:14 +02:00
Maël Soucaze
2b55cfc78f Add a LICENSE file
Because the skeleton is using the MIT License, we should add the LICENSE
file. It will prevent translators to release the language extension
without a LICENSE file (MIT or not, they will be able to change that
file accoring to their choosen license). This will be explained in the
future L10n documentation.
2015-09-25 17:22:19 +02:00
Toby Zerner
9b51edc939 Prevent infinite redraw loop in IE
Welp, this is probably the most subtle bug I've ever tracked down and fixed.

Turns out that IE has this bug where the "oninput" event will be triggered whenever the "placeholder" attribute is changed. Most placeholders get their value from app.trans. The app.trans method returns a VirtualElement – which is an array, not a string! That means when Mithril's diffing algorithm was comparing the old value to the new value, it was comparing two different array instances, and thus deciding the value was dirty and the placeholder attribute needed to be updated. Due to the IE bug, that was leading to the "oninput" event being triggered... and then through Mithril's auto-redraw mechanism, a redraw would be triggered, and so the cycle continued.

Since the inputs in the LogInModal (among others) only update the component state on the "onchange" event (i.e. when the input loses focus), the intermittent redraws would cause the input's value to be cleared continuously. That's what was causing #464. Could've been easily and superficially patched by changing them to use "oninput" events, but luckily I dived a little deeper!

Glad that's over. Running IE11's buggy dev tools in an underpowered VM isn't fun. Would not recommend.

closes #464
2015-09-25 23:44:15 +09:30
Toby Zerner
9347d79913 Prevent empty beforeunload dialog on Internet Explorer 2015-09-25 23:21:10 +09:30
Toby Zerner
5d9d04d2ab Add license 2015-09-25 16:15:31 +09:30
Toby Zerner
d76e27559e Add license 2015-09-25 16:15:23 +09:30
Toby Zerner
e65536cdf8 Extract English translations into a language pack
To make this work, we add support for the client working without any locale.

Also fixes #412.
2015-09-25 16:12:09 +09:30
Toby Zerner
38919ac72f Merge pull request #1 from Petrouchka/patch-1
Update README.md
2015-09-25 16:07:51 +09:30
Petrouchka
b64f19332b Update README.md 2015-09-25 08:35:08 +02:00
Toby Zerner
7889b15f09 Allow extensions to return a callback instead of a provider name
This is useful for very simple extensions like language packs, because it means no Composer/namespacing and thus bootstrap.php doesn't have to be changed at all.
2015-09-25 16:05:01 +09:30
Toby Zerner
3d709b73d0 Initial commit 2015-09-25 15:37:00 +09:30
Toby Zerner
575ff76002 Condense discussion list last reply icons 2015-09-25 13:55:32 +09:30
Toby Zerner
c2c1461fdc Merge pull request #545 from dcsjapan/dashboard-update-retry
Revises the dashboard links to emphasize beta testing procedure.
2015-09-25 13:27:57 +09:30
dcsjapan
f7c7f96300 Revises the dashboard links to emphasize beta testing procedure.
Closes flarum/core#542
- Includes a disclaimer stating that the software is provided mainly
for testing.
- Directs bug reports to the Support tag in the forums instead of the
issue tracker
- Directs feedback to the Features tag in the forums
2015-09-25 12:55:13 +09:00
Franz Liedke
136a07361f Change name of header for faking HTTP methods
Refs #502.
2015-09-25 00:35:57 +02:00
Franz Liedke
dfef23e50c Implement middleware for faking HTTP methods
Refs #502.
2015-09-25 00:31:31 +02:00
Daniel Klabbers
b9a63c48d6 heavier validation for username 2015-09-24 23:07:30 +02:00
Franz Liedke
8e7b056b84 Clean up unused variable
Closes #501.
2015-09-24 16:27:00 +02:00