Журнал изменений

Журнал изменений

Фильтр и поиск

Всего: 1091 Доступных коммитов | Отфильтровано: 1091 Коммиты | Страница: 13 / 110
02.07.2026
Refactor: unify list tables - gear in the number cell, date in the title tip
Автор: Eduard Laas | Дата: 18:59 02.07.2026

Every frontend list now renders the moderator gear menu before the number anchor in one cell and moves the date column into the info tip before the title, freeing ~120px for titles.

Core changes:

  1. Generic list row (table-row.html, table.html):
  2. Moderator popover merged into the sl-table-col-num cell, the separate "Functions" column and its col_func header removed

  3. Date cell replaced by a report tip before the title link; data-sort keeps tablesort clean; col_date header removed

  4. List modules (files, pages, news, links, media, faq, help, shop):
  5. time_text/time_iso/time_label replaced by one getTplTitleTip call
  6. col_func / col_date dropped from table_open
  7. Voting and content:
  8. voting-home.html: gear menu ordered before the number anchor
  9. content: cells reordered to match the header (title, number) fixing the header/body column misalignment

Benefits:

  • Identical gear+number pattern across all modules
  • Header and body columns always match for guests and moderators
Fix: Toast UI toolbar fits its column and folds extras into "..."
Автор: Eduard Laas | Дата: 18:59 02.07.2026

The toolbar classifier measured a mid-parse column width and never re-ran, so icons spilled over the sidebar; the editor mount div also shrink-wrapped to the toolbar instead of matching the other fields.

Core changes:

  1. Toolbar refit (slaed-tags.js):
  2. Pin the toolbar to the real remaining row width (minus md tabs) so the native ResizeObserver reclassifies against honest numbers

  3. Re-run on window load, window resize and editor changeMode
  4. Editor sizing and reflash (slaed-icons.css):
  5. Mount div gets flex basis / width 100% like every .sl-field input, in both markdown and wysiwyg modes

  6. overflow-x clip on the toolbar row keeps the brief all-icons re-render inside the frame; dropdown and popups stay visible

Benefits:

  • Icons never paint over the sidebar at any viewport width
  • Surplus icons land in the native "..." dropdown as designed
Chore: ignore local CLAUDE.md and AGENTS.md agent entry points
Автор: Eduard Laas | Дата: 18:59 02.07.2026
Fix: vote button includes its form token explicitly (hx-include)
Автор: Eduard Laas | Дата: 15:15 02.07.2026

The voting button relied on HTMX implicitly including the enclosing form's token; make it explicit like the other form-based ajax actions (addComment, addPrivateMessage).

Core changes:

  1. Voting widget (core/system.php):
  2. Pass hx_include => '#form'.$votid to the vote action so the form (token + answers) is included
  3. Action fragment (templates/{lite,admin}/fragments/comment-action-ajax.html):
  4. Render an optional hx-include attribute when provided (no-op for other callers)
Fix: friendly CSRF token-mismatch response on the ajax gate
Автор: Eduard Laas | Дата: 15:15 02.07.2026

A stale or missing CSRF token on a go=1/2/5 request died with a raw "Illegal file access". Return the localized alert instead, and make the token constant available on the front end where the gate runs.

Core changes:

  1. Ajax gate (index.php):
  2. On token mismatch return the _TOKENMISS alert fragment instead of a bare die()
  3. Language constants:
  4. Add _TOKENMISS to all front-end lang files (loaded first at bootstrap, before the gate)
  5. Remove the now-duplicate _TOKENMISS from admin lang files
Docs: render admin help callouts by moving them out of list items
Автор: Eduard Laas | Дата: 15:15 02.07.2026

Callouts nested inside list items were emitted as raw "> [!...]" text instead of rendering as alert blocks.

Core changes:

  1. auto_links / changelog admin help (modules/*/admin/info/ru.md):
  2. Move the [!TIP]/[!IMPORTANT] callouts to top level so they render as .sl-alert
Fix: smiley parser ignores *NN inside bold and multi-digit numbers
Автор: Eduard Laas | Дата: 15:15 02.07.2026

The *NN smiley rule matched the digits of bold markup and longer numbers, rendering a stray smiley (e.g. 12 ... produced smiley 12).

Core changes:

  1. BB block parser (core/classes/parser.php):
  2. Match smilies as (?<!\)\(0[1-9]|1[0-8])(?!\d): not after another asterisk, not inside a longer number
  3. Bold like 12 and numbers like *180 stay as text; Смайл - 05..Смайл - 18 still render
01.07.2026
Docs: drop admin.php?name= path from help intros; rewrite ratings help
Автор: Eduard Laas | Дата: 16:09 01.07.2026

Remove the redundant control-panel path from the first line of every admin help page, and restructure the ratings help so a non-technical admin can grasp all the rules at a glance.

Core changes:

  1. All admin help (admin/info/, modules//admin/info/*):
  2. Strip the "(admin.php?name=xxx)" reference from the section intro (44 pages)
  3. Reword the search help sentence that spelled out the path
  4. Ratings help (admin/info/ratings/ru.md):
  5. Group the content into: where rating works, the three per-module settings, and anti-farm protection
  6. Document the built-in protections (self-vote block, existing/published target only, no points for profile rating, daily point cap, 1-5 clamp)
  7. Move callouts to top level so they render, and drop bold that collided with the smiley syntax
Fix: smiley parser maps *NN only to existing 01-18 icons
Автор: Eduard Laas | Дата: 16:08 01.07.2026

The BB smiley rule turned any asterisk followed by two digits into an <img smilies/NN.gif>, but only icons 01-18 exist. Codes like 19-99 (and the leading digits of bold such as 30) rendered as a broken image anywhere user text is parsed (forum, comments, help docs).

Core changes:

  1. BB block parser (core/classes/parser.php):
  2. Narrow the smiley match from \(\d{2}) to \(0[1-9]|1[0-8])
  3. Out-of-range *NN now stays as plain text instead of a broken image
Feature: points on approval, action-point dedup, rating anti-farm hardening
Автор: Eduard Laas | Дата: 15:51 01.07.2026

Overhaul how contribution points are earned and harden the rating endpoint against inflation, with a naming-compliance rename of the points primitives. No schema changes.

Core changes:

  1. Points primitives (core/system.php):
  2. Rename update_points -> updatePoints, addActionPoint -> addPointsAction (camelCase per .rules naming)
  3. addPointsAction: credit repeatable-action points once per (event, item, user/ip) within the retention window, reusing the _rating dedup table
  4. setContentActive: atomically promote pending content to active and credit submission points to the AUTHOR; replaces addPointsAuthor + a manual status flip
  5. Award timing moved submit -> approval (modules//index.php, modules//admin/index.php):
  6. Drop the immediate submit-time credit in news/pages/media/jokes/faq/links/files
  7. Credit the author via setContentActive on every promote-to-active path (full-edit save, single approve, batch activate)
  8. Repeatable-action dedup at call sites (modules/auto_links, files, links):
  9. auto_links view and file/link download now go through addPointsAction (no more unlimited farming by reloading the URL)
  10. Rating hardening (core/system.php getRatingView, core/helpers.php, index.php):
  11. Block rating your own account
  12. Accept votes only for an existing, visible target (status != 0) -> kills farming via non-existent ids
  13. Account rating awards no points; per-voter daily cap (<=30) on rating-earned points
  14. Keep the 0..5 rate clamp; wrap the vote in a transaction; number_format the average
  15. Narrow the go=1/2/5 CSRF-token exemption so only go=4 uploads may defer the token

Benefits:

  • Removes point-inflation and group-escalation vectors (URL farming, rating id enumeration, self-rating)
  • One forget-proof approval helper instead of 12 scattered award+flip sites
  • Consistent camelCase points API

Technical notes:

  • Reuses the existing _rating table for dedup and the per-voter cap; no schema change
  • Behavior change: contribution points now appear when a moderator approves the item, not on submission

Всего: 1091 на 110 страницах по 10 на каждой странице

1 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 110
Хотите опробовать SLAED CMS в действии?
Идеи и предложения
Обратная связь
Подтверждение

Поделиться
QR-код