Commit Graph
100 Commits
Author SHA1 Message Date
BrokenEagle d1aed303fd Fix blacklist code executing muliple times
- When enabling/disabling all, it was executing on every single blacklist line
- When starting out disabled, it was executing several times
2020-03-07 08:13:13 +00:00
BrokenEagle d84150b232 Fix posts not being processed by blacklist after post updates
- Blacklisting individual posts was moved into its own function
- Fixed Javascript variables being leaked into the user environment
- Fixed post qTips being orphaned by replacements by destroying them first
- Moved edit form check into post success to avoid repeating post check
2020-03-07 08:13:08 +00:00
BrokenEagle f671a5528d Adapt which note body corner is used for note box rotations
Beforehand it was always using the left corner, which was causing
the note body to be to the right of the note box whenever the bottom
angle of the note box was descending. Now it selects the left or
the right corner depending on the angle, which keeps the note body
in a better position right beneath the note box.
2020-02-25 17:16:32 +00:00
BrokenEagle 2dca001e12 Fix searching artist commentaries by post ID 2020-02-21 21:58:29 +00:00
BrokenEagle 2b0d52b5bb Restrict note container resizing to embedded notes 2020-02-21 20:07:19 +00:00
BrokenEagle 878a3badd1 Only show dimension transitions on relevent changes 2020-02-20 19:27:38 +00:00
BrokenEagle 818426cda3 Add cosplay related tags for other wikis
- Queries on *_(cosplay) tags will now also display the base tag.
- Also fixes an issue with list_of_* related wikis.
-- The request errors out if the list_of_* wiki doesn't actually exist.
2020-02-18 02:41:35 +00:00
BrokenEagle e4ff641c9a Fix autocomplete insert completion
It was removing line returns, even when line returns are important,
such as in the blacklist and frequent tags input fields. Besides those,
it was also causing confusion when editing tags on a post, as those
are divided into categories, but adding an additional tag for a category
at the end of a group causes groups of tags to be combined.
2020-02-18 00:00:58 +00:00
BrokenEagle 56087561a0 User: Use model counts instead of SQL queries 2020-02-15 19:44:45 +00:00
BrokenEagle 2affd4a3b5 Fix post resize image control
It was resizing images to the original width and height, even if
they were currently being shown in their large image format (850px).
This was causing excessive blur and artifacts in some cases.
2020-02-14 20:49:37 +00:00
BrokenEagle 115355ab7b Fix dialogue text for new notes
It was showing "Editing note #xx" and so on for all new notes past the first initial new note.
2020-02-14 20:49:17 +00:00
BrokenEagle e807326372 Use association on post flags instead of doing a new query
- Because associations can be preloaded in the controller
2020-02-12 23:58:55 +00:00
BrokenEagle 75f4af8991 Don't do unnecessary processing on posts when using the API 2020-02-12 23:58:54 +00:00
BrokenEagle f7495f5e26 Removed unused controller code 2020-02-12 23:58:54 +00:00
BrokenEagle 63b3503bfc Add ability to use nested only parameter
- The only string works much the same as before with its comma separation
-- Nested includes are indicated with square brackets "[ ]"
-- The nested include is the value immediately preceding the square brackets
-- The only string is the comma separated string inside those brackets
- Default includes are split between format types when necessary
-- This prevents unnecessary includes from being added on page load
- Available includes are those items which are allowed to be accessible to the user
-- Some aren't because they are sensitive, such as the creator of a flag
-- Some aren't because the number of associated items is too large
- The amount of times the same model can be included to prevent recursions
-- One exception is the root model may include the same model once
--- e.g. the user model can include the inviter which is also the user model
-- Another exception is if the include is a has_many association
--- e.g. artist urls can include the artist, and then artist urls again
2020-02-12 23:58:53 +00:00
BrokenEagle 44f32a1e5e Add ability to copy certain style attributes to the outer note boxes
- Attributes are pulled from the first element with class "note-box-attributes"
- Transform is note box only to prevent applying the same transform twice
-- Only rotations are allowed to prevent excessive scaling of note boxes
-- Note box positions are adjusted after drag/nudge/resize to prevent out-of-bounds
-- The note body is placed on the lowest box corner that is farthest left
- Background color is inner box only since the note box is already transparent
-- Backgrounds with any transparency aren't allowed as they would interfere with the text below
- Border radius is both since they both have borders
- Add full namespaces to all event removes to prevent bad removes
2020-02-11 04:56:27 +00:00
BrokenEagle c082a258c7 Add note key resize function
- Same as using the key nudge, however it's used with the shift key
2020-02-11 04:56:26 +00:00
BrokenEagle 9fbeb5ec3a Add note key nudge function
- Notes must be clicked in order to engage the nudge function for that note
-- This status is indicated by a green border around the note
-- Clicking the note or another note will turn off nudging for that note
- Also prevent notes from being nudged outside of the image borders
2020-02-11 04:56:26 +00:00
BrokenEagle e0e60a9546 Remove dead embedded code 2020-02-10 17:23:27 -06:00
BrokenEagle 778619301e Resize font and other size parameters when the image resizes
- Each element has the size style elements scaled to the font size with "em"
-- The font size of the element is scaled in percentage to the parent element
- All sizes are then scaled by changing the font size of the note container
- The scale resize calculation uses the large image size
-- Since this is the assumed default size for a user
- Preview sets the font size of the inner box to the base font size
-- This allows the calculations to be performed correctly
2020-02-10 17:22:27 -06:00
BrokenEagle 44bcef03e1 Add additional styles for embedded notes
- Use CSS classes instead of applying the styles to the elements.
-- Allows a user to override any of the default styles being applied.
- Remove the borders and handles when not hovering over the box.
- Increase the opacity for embedded notes to full to avoid conflicts with
  the text underneath.
- Decrease the opacity a little when editing embedded notes.
-- Allows for better seeing of the text underneath while still being able
   to see the translation text above.
-- Compensated for by showing full opacity when hovering over the note box.
2020-02-10 17:20:56 -06:00
BrokenEagle 8ff00cfc7d Rework post version view
- Added a changes column explicitly listing all of the changes
-- This makes it more in line with the other views now
2020-02-08 22:57:30 +00:00
BrokenEagle 7b1efd1204 Rework artist versions index view
- Added a changes column explicitly listing all of the changes
-- This makes it more in line with the other version views now
- Does a symmetric difference on the array fields to detect changes
2020-02-08 22:57:29 +00:00
BrokenEagle de1324098d Rework wiki page versions index/diff views
- Changed to using the diff-body CSS class
-- Removed unnecessary elements from the CSS style file
- Does a symmetric difference on the array fields to detect differences
- Add more descriptors to the status/changes column
- Specifically add <br> to statuses to cause line breaks
2020-02-08 22:57:29 +00:00
BrokenEagle ede7167bb8 Rework pool versions index/diff views
- Changed to using the diff-body CSS class
-- Removed unneeded CSS style file
- Removed trailing whitespace after the >>> link
-- It was causing artifact line-throughs to appear after the link
- Changed the diff link to only render when a text field has changed
-- Because the post changes are already shown on the index view
- Specifically add <br> to statuses to cause line breaks
2020-02-08 22:57:29 +00:00
BrokenEagle d62f7e786e Revise display on artist commentary versions index
- All text fields are now shown in their non-rendered form
-- This allows changes to be highlighted with the diff builder
-- The different fields were labeled and separated for easier discernment
-- Fields are only shown if they have text in either the current or previous versions
- Various changes are also verbalized for easier discovery
- The date and the user columns were combined
-- This is more in line with other indexes, plus it saves on space
- The revert listing was changed to use a thumbnail instead of post ID links
-- This makes it more in line with the post versions index
2020-02-08 22:57:28 +00:00
BrokenEagle d8fd1c212e Revise display on note versions index
- Body now uses the diff builder to highlight changes
-- A generalized diff-body class was added instead of something specific
- The status changes are now verbalized instead of being shown with styles
- The position and sizes are now split up
-- Changes directly reference the previous version
- The date and user columns were combined
-- This is more in line with other indexes, plus it saves space
2020-02-08 22:57:27 +00:00
BrokenEagle 154849a501 Added/modified common stylesheets
- Added a generalized diff-body class
- Added a generalized versions stylesheet
2020-02-08 22:57:27 +00:00
BrokenEagle 434e031faa Add additional helper methods 2020-02-08 22:49:07 +00:00
BrokenEagle 76dcccb7de Alter previous method on all versions models
This is to prevent redoing the same SQL query which wasn't being cached.
2020-02-08 16:14:51 +00:00
BrokenEagle d2021256f0 Fix instances where a carriage return is replaced with another
- It was causing two <br> elements to be inserted
- Now the delete and insert paragraph marks are located next to each other
2020-02-08 07:01:39 +00:00
BrokenEagle 0569e8346c Fix profile url for normalization when Pawoo errors 2020-01-29 22:27:10 +00:00
BrokenEagle 09841c5b55 Fix errors caused by Pawoo exceptions 2020-01-29 22:27:10 +00:00
BrokenEagle a1f959bacb Fix missing "to_h" error message on Pawoo sources 2020-01-29 22:27:10 +00:00
BrokenEagle ac8ec7cb15 Add parameters for searching text attributes by array with case insensitivity 2020-01-26 22:15:01 +00:00
BrokenEagle df8d7485ad Add parameters for searching array attributes with case insensitivity
It does the by performing a lowercase on the text, so the user of these
params must also do a lowercase on their end before sending the query.
2020-01-26 21:46:48 +00:00
BrokenEagle 3b2b5abb6a Fix title parameter checking
It was fixed on the quick search form with 217f5e6 but wasn't
fixed on the parameter checking in the controller.
2020-01-26 07:19:07 +00:00
BrokenEagle 217f5e6c81 Added redirect parameter to quick search function
- Also fixed quick search parameter on wiki pages
2020-01-25 20:48:01 +00:00
BrokenEagle 75ac11166c Added universal redirect on the index action
- Only controllers with show actions will redirect on the index action
- Parameter checking is individualized per controller for the redirect check
2020-01-25 20:48:01 +00:00
BrokenEagle 76082debf6 Fix has bit flags module query 2020-01-23 03:30:38 +00:00
BrokenEagle d9e5b94838 Added search for posts with the embedded flag enabled 2020-01-23 03:30:38 +00:00
BrokenEagle 5f746c1a34 Made recommended changes to moderator reports (see #4267) 2020-01-21 01:38:08 +00:00
BrokenEagle 34368272e8 Added ability to search for URL array parameters
- Also added in different string splitters for the text fields
- Removed or renamed parameters covered by the main search function
2020-01-19 23:59:23 +00:00
BrokenEagle 29e8b89c93 Use better method for querying moderation reports on posts and topics
- Also moved the control logic out of the views and into the models
2020-01-19 20:16:22 +00:00
BrokenEagle 16100ecfe6 Use better method of querying the moderation reports for an instance
The use of any? and count was forcing new SQL requests for each statement.
Instead, present? and length were used which act on the reports once loaded.
Although unneeded, the comment and forum views were changed as well for consistency.
2020-01-19 00:09:51 +00:00
BrokenEagle f3ce811def Add tests for moderation reports
Added an HTML render for the new endpoint to get the tests to work.
It should probably have had one anyways so this is alright.
2020-01-18 23:37:58 +00:00
BrokenEagle 491d476456 Add pruning of reports older than a week 2020-01-18 21:42:31 +00:00
BrokenEagle a3e889bdf5 Added highlighting and notices for moderators
- Posts and topics have an added moderation_reports function
-- This is so all moderation reports can be loaded in a single query
- Those moderation reports are passed into the render functions separately
-- This is so the individual comments/posts don't have to be queried
2020-01-18 21:10:50 +00:00
BrokenEagle 4cef0e45c2 Create the ability to send reports to moderators
- Limited to Builders+
-- Moderator+ can also use as they may be too busy ATM
- Only on users, comments, and forum posts
- Multiple reports can be generated per instance
- Primarily posts to a moderator-only topic for viewability
- Secondarily has a table for searchability
-- Viewable only by moderators
2020-01-18 06:40:20 +00:00
BrokenEagle b2d12e2e20 Remove posts not shown for blank message check 2020-01-17 07:01:16 +00:00
BrokenEagle 3a422b26df Removed unneeded commentary tag checkboxes
As per the discussion on GitHub, these will be handled instead
by the existing mechanisms of related and frequent tags.
2020-01-16 21:40:14 +00:00
BrokenEagle 82b621d87d Added upload commentary enhancements
- Can now translate commentary from the upload page
- Can now add commentary tags with a checkbox
2020-01-14 23:59:27 +00:00
BrokenEagle 4ec6bacac0 Lock comments edited/deleted by moderators 2020-01-14 19:02:07 +00:00
BrokenEagle b3b896a9e3 Fix search by post ID and note ID links
- These were missing and needed on the vanilla note versions index
- Now they appear only if that particular URL parameter is not present
2020-01-13 21:21:15 +00:00
BrokenEagle 5d5cc66502 Remove empty column 2020-01-13 21:21:14 +00:00
BrokenEagle 63203d24cc Standardize use of column width parameter 2020-01-13 21:21:14 +00:00
BrokenEagle 3ab2c4c3ea Use optional parameter to set column class
- Fixes the extremely long class name on the post versions view
- Can now use one value instead of having to set th and td
- Added missing column classes on all tables
2020-01-13 21:21:13 +00:00
BrokenEagle 114637f594 Use more efficient use of regexes for Twitter hashtag normalization 2020-01-10 15:30:54 +00:00
BrokenEagle 2eef73e8fe Add additional Twitter hashtag
- It was mentioned on issue #4047 but was forgotten to be included
2020-01-10 14:52:49 +00:00
BrokenEagle 4a873626c8 Moved note title to the body so that it can be copied
- Adjusted the title text for new notes
- Adjusted the starting dialog sizes to fit the new text
2020-01-09 22:14:01 +00:00
BrokenEagle 6127492361 Fix missing post HTML attributes 2020-01-09 21:15:31 +00:00
BrokenEagle ef29ede448 Fix issue where numeric keypad was setting bad values 2020-01-08 00:22:28 +00:00
BrokenEagle 6f698ec104 Convert tag script storage to local storage 2020-01-08 00:22:28 +00:00
BrokenEagle 57befe894d Fix the error from missing jQuery-ui effects 2020-01-07 22:32:01 +00:00
BrokenEagle ad1e22af0b Add search page
- Fix issue with updater_name erroring out
- Add search options is_new and name_changed
2020-01-07 18:48:52 +00:00
BrokenEagle 9182a4f556 Highlight carriage return changes 2020-01-07 18:48:51 +00:00
BrokenEagle 34542fdf5c Pool versions diff: Use diff builder to highlight description changes
- Add highlights for name changes
- Separate and name the sections
2020-01-07 18:48:51 +00:00
BrokenEagle 4ab90e5d6e Move diff logic out of helper 2020-01-07 18:48:50 +00:00
BrokenEagle 8531636330 Change Desc Chg column to status column
- Add a diff column
- Reword post column name for better clarity
2020-01-07 18:48:50 +00:00
BrokenEagle 642e121ad9 Have artist wiki links go to artist page 2020-01-07 05:21:29 +00:00
BrokenEagle 67860a845c Add normalization for Twitter hashtags 2020-01-05 23:01:50 +00:00
BrokenEagle 5e03c3d84e Adjust naming of user and model attributes
- Remove unnecessary attributes that cause additional SQL queries
- Remove unneeded check for nil on current_item
2020-01-05 19:46:08 +00:00
BrokenEagle 4b904dff5a Convert classes to use data attributes
- Remote resolved classes on post flags since they were unused
2020-01-04 22:02:45 +00:00
BrokenEagle 223a6df5d8 Add API data to show/index views 2020-01-04 22:02:44 +00:00
BrokenEagle e8a96c1a2a Standardized naming of version list views 2020-01-04 22:02:44 +00:00
BrokenEagle be92282990 Combine version partials into one file 2020-01-04 22:02:43 +00:00
BrokenEagle 89df0a6ace Adjust how deleted forums get shown
- In some cases deleted items weren't visible from the index view
- There also shouldn't be any reason why they can't be shown when searched for specifically
-- This also matches the behavior on comments
2020-01-04 22:02:43 +00:00
BrokenEagle 043944e1dd Convert index tables to using table builder 2020-01-04 22:02:43 +00:00
BrokenEagle 4c6d3a5608 Added scary font 2020-01-01 03:06:40 +00:00
BrokenEagle 94340ccaf3 Remove references to Keeper/TopTagger 2019-04-01 13:17:18 -07:00
BrokenEagle 4c85cf4a32 Fix #3853: Blacklist minscore is broken. 2018-08-30 17:42:21 -05:00
BrokenEagle 30401591fb Set blank results when a non-autocomplete metatag is used
-Otherwise, the last valid autocomplete result will remain
--Causes incorrect results on Tab/Enter completion
-This clears the autocomplete results instead
2018-02-12 17:20:12 -08:00
BrokenEagle 31114b716a Fix the auto resize in desktop mode (ref: a95af95e) 2018-02-05 10:20:24 -08:00
BrokenEagle 3933c273c4 Add mod action for move favorites 2018-01-30 11:27:28 -08:00
BrokenEagle 92f7bb46a2 Add missing mod action category 2018-01-30 11:27:24 -08:00
BrokenEagle d829ab3a00 Move all order logic to models
- Have a default order for each model
-- The overall default is ID DESC
- Allow for custom orderings
-- When comma-separated IDs are used
2018-01-29 11:42:53 -08:00
BrokenEagle f626c7ebd7 Fix how cosplay tags are handled 2018-01-15 18:01:06 -08:00
BrokenEagle 160829d262 Don't update the updater_id when nothing has changed 2018-01-14 20:15:41 -08:00
BrokenEagle f1bf1440b4 Don't save wiki page when notes value is null 2018-01-14 20:15:29 -08:00
BrokenEagle dd8d80eaf7 Updated tests for mod actions 2018-01-14 00:07:20 -08:00
BrokenEagle 85f04a826a Added additional mod actions 2018-01-14 00:07:20 -08:00
BrokenEagle fcdc61f111 Add search interface for mod actions 2018-01-14 00:07:16 -08:00
BrokenEagle 3c45273694 Add category for mod actions 2018-01-13 20:55:52 -08:00
BrokenEagle b9964e97a7 Don't log comment update action on delete 2018-01-13 20:42:07 -08:00
BrokenEagle 65eb94f8f9 Remove unused mod actions 2018-01-13 20:42:02 -08:00
BrokenEagle ba7fadf6e9 Fix missing controllers for search[id] 2018-01-13 10:01:57 -08:00
BrokenEagle 17ffc36b60 Fix fuzzy autocomlete results 2018-01-03 09:08:19 -08:00
BrokenEagle 2e6f216e10 Fix spacing issues on versions
- Removed pipe character '|' on post version standard listing
2018-01-02 22:50:25 -08:00
BrokenEagle 8f0e4398eb Fix metatags being treated as normal tags
- Add parent metatag defaults any and none
- Add missing user-based metatags to user source
- Remove all negative metatags since the prior code strips the '-'
2018-01-02 19:52:13 -08:00
BrokenEagle 613beee375 Differentiate version views with reversion links 2018-01-01 19:36:27 -08:00