Официальный сайт SLAED CMS
Журнал изменений
The window canon read its geometry through getBoundingClientRect(), which returns the transformed box while the entry animation still holds the window at scale(0.97). Every placement, pin and clamp now reads offsetWidth, offsetLeft and offsetTop, which ignore transforms. The same class of defect is fixed where editor JavaScript wrote inline geometry over the phone sheet rule of the canon, and the last duplicate of the canon foot is gone.
Core changes:
- The canon engine (plugins/system/slaed.js):
setWindowPlace centres on the layout width instead of the drawn one
- an 880px window was written to left 293px instead of 280px, measured at 1440
- the error was always the width times 1.5%, and invisible under prefers-reduced-motion
The drag pins the layout position rather than the transformed one
- grabbing the head during the opening animation jumped the window 13.2px by X and 24.0px by Y
- the jump then stuck, because data-sl-moved stops the canon re-centring the window
- setWindowBounds clamps against the layout width for the same reason
- The emoji panel (plugins/editors/toastui/assets/editor-emoji.js):
place() and sizePanel() stand down on a phone
- both wrote inline geometry that beat the sheet rule of the canon and pushed the panel past the edge
- the owner is now written before that turn is taken, or a second press stops closing the panel
- The editor fullscreen (plugins/editors/toastui/assets/editor-tags.js):
Escape reaches the fullscreen only when no window stands in front of it
- one press used to close the file manager and drop the fullscreen at once
- The window foot (templates//assets/editors/toastui/skin.css, templates//partials/editor-toastui-files.html):
The file manager takes the canon foot, buttons and status line
- 74 lines per theme that restated the canon values under sl-fm-* names are deleted
- the foot now follows --sl-modal-pad, so on a phone it agrees with every other window
The canon gains :hover:not([disabled]) on both foot buttons
- the guard existed only in the deleted copy, so a disabled button lit up in every other window
- Sizes and names (templates/*/assets/css/theme.css, templates/lite/fragments/window-share.html):
- sl-modal-md is deleted: it restated the default 560px and the default needs no class
- Documentation (docs/WINDOW.md, demo/window-canon.html):
docs/WINDOW.md describes the window as it is: structure, four axes, tokens, data attributes, JavaScript API, naming, where each window lives, traps and a check list
- docs/WINDOW-CANON-2026.md is removed; it was a work plan and its work is done
The reference page drops a dead sl-toastui-shot class, draws its gallery with the shipped sl-shot-* rules instead of an inline grid, and states what is rather than what was
Benefits:
- A window opens where it is meant to, and a hand that reaches for it at once is not punished
- One declaration of the foot, so a change to the canon reaches the file manager too
- The reference page cannot show a layout the system does not ship
Technical notes:
Visible change in the admin theme: the primary foot button of the file manager now darkens on hover (#076698) where it used to lighten (#207fb6), because the canon derives the hover from --sl-modal-tone while the deleted copy used --sl-color-primary-hover. It now behaves as every other canon button in that theme
.sl-modal-info collapses when empty, which the deleted .sl-fm-foot-info did not; the foot keeps its right alignment either way
- .sl-fm-foot in the admin theme is untouched: it belongs to the file browser, which is not a window
Verified in both themes at 1440x900 and 390x844: 37 checks green, centring error 0px, drag jump 0x0, console clean; 829 tests pass
Every dialog of the project is now the same native <dialog> under one set of class names, so a window is described once and every theme only sets its own values for it. The program is recorded in docs/WINDOW-CANON-2026.md, which now describes what ships rather than what to do.
Core changes:
- The canon (templates/*/assets/css/theme.css):
One block, byte-identical in both themes, replaces five different chromes
- head plate 42px, ghost action cluster, body with its own scroll, foot with a status line
- values copied from the editor file manager, which is the window that already worked
Four axes and nothing else
- size sm 420 / md 560 / lg 880 / xl 1120 / full
- presentation: modal by default, data-sl-window stands beside the page
- tone: danger, warn, success paint the icon, the stripe and the primary button
- foot: present or simply not written
- .sl-modal-close and .sl-modal-wide are gone with the markup that needed them
- The engine (plugins/system/slaed.js):
- The focus trap, the top layer and the return of the focus are the browser's work now
What the platform does not give is written once: setWindowOpen, setWindowClose, setWindowFront, setWindowPlace, setWindowExpand, setWindowBounds, setWindowRelease, setFirstFocus, setPageLock, isWindowModal
- Three Escape handlers became one, and it still lets an open speed dial win
- The page under a modal window stops scrolling and does not shift sideways
- One gallery instead of four (templates/*/partials/window-gallery.html):
The editor gallery of two themes, the admin browser gallery and the lightbox built as a string in JavaScript are now one fragment with three renders
- Three sets of data attributes became the data-sl-shot family
- core/admin.php and plugins/editors/toastui/driver.php pass data to the same fragment
- The file manager and the emoji panel (plugins/editors/toastui/):
Both are dialogs beside the page; the manual aria-hidden, the manual focus return, the manual drag and the fixed z-index ladder 31 / 10020 / 10050 are deleted
- skin.css keeps no sl-toastui-window-* rule at all
- The panel of the emoji opens above its button when there is no room below it
- Windows renamed to one rule (templates//fragments, templates//partials):
confirm-modal, share-dialogs and icon-picker-modal become window-confirm, window-share, window-qr and window-icons
- The id sl_icon_modal becomes sl-icon-window; no id of the canon uses an underscore
Benefits:
- A window is one structure, so a new one costs markup and no CSS
- The gallery is one file, so a fix to it reaches the editor, the browser and the site
- Themes stay independent: the block is shared, the values come from tokens
Technical notes:
--sl-space-xl is declared in base.css of both themes; .sl-toast consumed it undeclared, which left the toast at its static position and out of sight
- DeskKeysTest follows the focus and Escape rule into the canon it moved to
demo/window-canon.html is one file with no stylesheet and no script of its own, so it cannot drift from what ships
- No behaviour of the file manager changed except its placing, which the canon owns
The two shipped themes become reference etalons for hundreds of independent copies, so the plan fixes the only thing that travels between them: convention. It replaces the wish for consolidation with one machine-checked metric and records the architecture decisions that are now closed.
Core changes:
- Theme etalon plan (docs/THEME-ETALON-2026.md):
Records the closed decisions so they are not re-litigated
- Themes stay independent: no inheritance in Template, no shared core.css
- No PHP changes: the theme path boundary and the engine grammar stay as they are
- One canon of names and semantics, values per theme
- Three CSS files per theme: tokens.css, base.css, theme.css
Carries the measured baseline the audit tool has to reproduce
- 1164 literal visual declarations in lite/theme.css, 655 in admin
- 236 selectors shared by both themes, 121 of them divergent
- 33 same-named templates carrying different markup
- gradients, transition and z-index are tokenised nowhere at all
Defines ten batches, each with its cause, its steps and its own check
- admin reaches zero literals first, lite mirrors it afterwards
- token hygiene runs before the scales, while renaming is still free
- the public token API is frozen last, once both themes reach zero
Benefits:
- One address per visual decision, verified by a tool instead of by eye
- A new theme is created by editing tokens.css and nothing else
- The etalon stops contradicting itself before hundreds of themes inherit it
Technical notes:
- No code, no CSS and no template changes in this commit
- The audit tool, the strict rule file and the baseline screenshots are batch 0
- Utilities and a shared core were dropped on purpose: a 6% gain against theme independence
The extension field of the dashboard answered one and the same string whether it had found every module of the directory loaded or had never been able to read that directory at all, so an installation whose extension_dir lies outside open_basedir was told that nothing was missing. The same commit writes down the plan for the journals and for the data around them.
Core changes:
- Three states where there were two (admin/modules/monitor.php):
Whether the module directory can be read at all is decided before it is walked
- extension_dir is not set, lies outside open_basedir, or is not a readable directory
- The reason travels with the verdict and names both paths, so the answer can be acted on
- None now means every module on disk is loaded, and N/A means the directory was never read
The block follows the rules of the project again: names without underscores, no single line if and else in braces, no blank line inside the body
- A plan for the journals and the data around them (docs/PRIVATE-DATA-2026.md):
Batch 1: no secret reaches a journal
- The login report stops printing the password it is handed on a failed attempt
- The request dump passes through the masking rule Logger already owns, and records the key
names of the session and the cookies instead of their content
Batch 2: the installation proves its private directories are private
- A marker fetched over its own address and judged by the body, because a status code decides
nothing where errors are mapped onto a page
- Three verdicts and never two: closed, open, and a transport that could not run
Batch 3: a server configuration in the delivery, held to the tree by a test that enumerates the directories declaring themselves private and demands the fragment cover each of them
- Batch 4: the runtime tree out of the document root, as the migration of a major release
Batch 5: one prefix per meaning in the journal names
- error_ is what the system could not do, log_ is what happened
- The file journal splits into log_file.log for every operation and error_file.log for the
error level alone, hack.log becomes log_hack.log and warn.log becomes log_warn.log
- The routing follows the levels that are already set, so no record is classified twice
Benefits:
- A field of the dashboard stops answering a question nobody asked it
The decisions taken about the journals are written down with their reasons instead of living in a conversation
Technical notes:
- No behaviour of the site changes: the monitor reports differently and the document adds no code
The plan names functions, files and constants rather than line numbers, so it survives the next edit of the files it points at
The label map of the security section keeps the retired keys, so journals already on disk do not lose their names when batch 5 lands
The structural validators of the upload service walk a container to a bounded depth, and three of them refused a file the moment that bound was reached. An ordinary tar of 300 members, a fragmented MP4 and a gzip file of concatenated members were rejected on a build without Fileinfo, while the magic database accepted all three.
Core changes:
- Bounded walks that answer at their bound (core/classes/upload.php):
checkTarBody() reads the two closing zero blocks from the end of the file
- Where the walk reaches the marker it still reads both blocks itself, so a half marker followed
by junk, a missing marker and data running past the end of the file all stay refused
- The bound alone ends the walk, so the member count of an archive no longer decides its type
checkBoxBody() answers the declared track at the bound, so a file of more boxes than the walk visits is proven by its file type box, its brands and the handler of its track
checkGzipBody() walks a gzip file member by member
- getGzipHead() reads the RFC 1952 header of one member at any offset of the file
- getGzipStop() takes the end of a stream from inflate_get_read_len(), holds the member against
its own checksum and length and returns the offset the next member begins at
- Bytes behind the last member that open no header are refused, as is a member whose trailer
disagrees with its stream
- Regression fixtures (tests/Support/upload_probe.php, tests/Unit/UploadFallbackTest.php):
New bulky scenario: a 300 member tar, a padded archive, a 403 box MP4 and a concatenated gzip are published, each under its own extension and with the canonical type of its format
Their corrupt counterparts stay refused: a broken header inside the walk, a missing end of archive, a half marker, no marker at all, many boxes without a track, a broken second member and trailing bytes behind the last one
- Help revision (admin/info/uploads/ru.md):
New section on how the type of an upload is decided
- Fileinfo is the preferred reader and belongs on the server; the structural walk answers only
where it is absent, does not open or cannot name the file
- A type the database named against the extension is refused rather than asked a second time
- One table of what each of the 21 formats has to prove, one of the components a server needs,
and one of the four capability reasons error_file.log distinguishes
Two corrections of the catalogue description
- The upload rule belongs to the module of the open directory, not to the record of all, and the
quota of that module does not limit the administration
- The template variables list [quot] and the real order behind [width], [height], [tsrc] and [rel]
- Task file (docs/UPLOAD-FILEINFO-PLAN-2026.md):
- Removed, because the plan it carried is implemented and verified
Benefits:
- An ordinary long archive is published again on a build without Fileinfo
- A disguised, truncated or corrupted container is still refused by the structure it claims
One page names the preferred reader, the components a server needs and the two different reasons an upload can be refused for
Technical notes:
- Routes, JSON, the eight key result shape and the database are unchanged
- No new required extension: inflate_get_read_len() belongs to ext-zlib, which stays a suggestion
Verified on a build with the extension and on one without it: the suite, every one of the 21 formats, real world archives, and the HTTP flows of the catalogue, the editor and the frontend
The upload service gains one structural validator per format, so a PHP build compiled without Fileinfo publishes every one of the 21 allowed types by walking the container instead of trusting a name. The same commit carries the word limit of comments, private messages and the forum, where zero now bounds no word instead of refusing every body.
Core changes:
- Content validation without Fileinfo (core/classes/upload.php):
The magic database stays the first reader and the fallback answers only where it cannot
- Bounded fopen, fread and fseek, so a file of any size is judged without being held in memory
- Fifteen validators: image type marker, two consecutive MPEG frames, RIFF chunk chain, FLAC
metadata blocks, Ogg page checksum and codec, ISO BMFF brands with the track handler that
separates m4a from mp4, EBML doctype, PDF header and trailer, zip central directory, RAR block
chains, gzip stream against its own CRC and length, 7z start header, tar header checksums
- A type the database did name is answered unchanged, so a conflict with the extension is refused
rather than asked a second time
- The check order is fixed: missing, size, transfer and extension answer before anything is read
getTypeReader() becomes protected, which is the seam a test closes while every other extension of the machine stays available
- One validator for both flows (core/classes/upload.php):
- getFileMime() takes the verified extension and answers the canonical type of the format
- addRemoteFile() no longer refuses a whole build over the type reader; cURL keeps its own check
- A missing capability told apart from a refused file (core/system.php, modules, lang):
- unsupported gets the neutral _ERROR_SERV text in all six locales
- The three inline mappings of the modules now read the one getUploadFailText() resolver
- error_file.log distinguishes fileinfo_missing, fileinfo_init_failed, decoder_missing, curl_missing
- Word limit of zero (core/classes/comment.php, core/classes/privat.php, modules/forum):
- Zero bounds no word instead of refusing every body, and the longest word is counted in characters
- The forum setting becomes a number field with its hint instead of a yes or no switch
- Tests (tests/Support/upload_probe.php, tests/Unit/UploadFallbackTest.php):
- Every non-image fixture is structurally complete now, checksums included
New scenarios: each format without a magic database, the matrix of one body under every foreign extension, corrupted and polyglot bodies, the refusals that come first, and the remote half
Benefits:
- A production build without Fileinfo publishes uploads again without weakening content validation
- A disguised, truncated or corrupted file is refused by the structure of the format it claims
- One mapping explains a refused upload on every screen
Technical notes:
- Routes, JSON, the eight key result shape and the database are unchanged
- ext-fileinfo, ext-zip and ext-zlib move from require to suggest in composer.json
- The suite passes on a build with the extension and on one without it
The document stopped being a briefing that asks the reader to confirm a problem and became the task itself: the cause is named, the four points that produce it are given with file and line, and every one of the twenty-one allowed types gets the structural check its fallback must pass.
Core changes:
- Statement of the task (docs/UPLOAD-FILEINFO-PLAN-2026.md):
the constraint is stated first: a clean SLAED without Composer or vendor
- routes, JSON, result shape and the database stay as they are
- content validation is not weakened, and GD and cURL stay required where they already were
- the cause is named: production PHP 8.4.22 built with --disable-fileinfo
- The points that produce the refusal:
- checkUploadInput() answers unsupported before input, size and extension are looked at
- the same read blocks remote upload
- getFileMime() answers null when finfo is absent or cannot be created
- the route shows unsupported as a format error
- The filename contract:
the extension comes from the submitted name and the content from the temporary path
- the fallback never reads the type off the name the file is finally stored under
- The work itself:
- the order of checks is fixed so a missing Fileinfo cannot mask missing, size or transfer
- one content validator serves local and remote upload, reading through fopen/fread/fseek
- a table gives the required structural check and the canonical MIME for each allowed type
Benefits:
- the reader of the plan can start writing code instead of first reproducing the fault
- a per-format table makes the acceptance of the change checkable rather than arguable
Technical notes:
- documentation only: no code, schema or configuration is touched by this commit
Every string this page shows stands in a chip, a shelf note, a card or a counter, and never inside a sentence, so each one begins with a capital and drops the words its box cannot carry. The forward prefix stops being an untranslated abbreviation and becomes the noun each locale really uses, the way the reply prefix already did.
Core changes:
- The chips of the compose header (lang/*.php):
- _PRWAIT reads «Интервал 60 сек.» where it read «интервал между отправками 60 секунд»
_PRLIMTO and _PRLIMSUB name the field and the bound and nothing else
- «Имя, до 25 символов» and «Заголовок, до 100 символов»
- all three now stand on one line at 1240 and 800 and on two at 390, where they wrapped
- The recipient card (lang/*.php):
_PRBOXFULL, _PRBOXNEAR and _PRBOXROOM drop «получателя»
- the name of the account stands one line above them in the same card
- The forward prefix (lang/*.php):
_PRFWD was the untranslated Fwd in all six locales
- it becomes «Пересылка», Forwarded, Weitergeleitet, Transfert, Przekazane, «Пересилання»
- a forwarded subject now reads «Пересылка: …» the way a reply reads «Ответ: …»
- Capitals where a string stands alone (lang/*.php):
_PRFREE, _PRSHOWN and _PRNOLIMIT, plus the Polish _PRFOCUSN
- an outbox holding nothing prints _PRNOLIMIT with no counter before it, so it starts a line
- the counter prints _PRSHOWN alone whenever no search is running
Benefits:
- a chip says what it means without being cut or wrapped
- nothing in the interface is left in an abbreviation only one language reads
Technical notes:
- values only: no constant is added, renamed or retired, and every placeholder is preserved
- all six locales carry the same wording in the same change
- docs/PRIVATE-MESSAGES-2026.md records the pass and the widths it was measured at
Batches 5 and 6 of docs/PRIVATE-MESSAGES-2026.md finish the two-column mailbox: the compose form answers with a recipient card that grades the mailbox a message would land in, and a focus deck puts the unread of both received folders above the list instead of on page four of one. The same pass corrects a quota that refused sends it had no business refusing and one that refused every send whenever the setting was zero.
Core changes:
- Recipient card and the bounded autocomplete (core/system.php, core/helpers.php):
getUserCardData() resolves one exactly matched name and grades the mailbox it would land in
- the grade folds getPercentTone() into room, nearly full and full, and never shows a number
- a mailbox no setting bounds is graded none rather than well
getUserList() answers a richer shape behind rich=1 and bounds both branches
- {items, card} in one round trip, card filled only when the name resolved exactly
- the rich branch answers 10 and the flat one 50, where it answered 1246 for a single letter
- getTplUserSearchInput() takes the card container a field opts in with
- Focus deck over the inbox (core/user.php, core/classes/privat.php):
- getRecentList() takes an unread argument reading the cabinet badge predicate across both folders
- getNewWhere() is that predicate, written once for the badge and the deck instead of twice
getPrivatFocus() builds the deck, which renders over the inbox alone as the demo draws it
- every slot addresses the inbox and carries the page, the search, the filters and the sort
- the inbox action set gains unsave, because the deck shows saved messages never read
- Forwarding and the compose state (core/user.php, templates/lite/partials/privat-view.html):
the compose view reads id and fwd, loads the source under the reader's own predicate
- an empty recipient, a localised prefix and the body without the quote wrapper
- the compose state names what bounds a send: the interval and the two stored lengths
- Quota corrections (core/classes/privat.php):
checkQuota() no longer refuses on the recipient's saved folder
- an arriving row carries no saved flag, so it can only land in the inbox
- the saved quota stays enforced in setMessageSaved(), where a message is moved into it
both quota reads test the bound before comparing against it
- a setting of zero is the absence of a bound, as the outbox, the ring and both alerts read it
- count >= 0 used to be true forever, so a zero setting refused every send and every save
- Out-of-band discipline (core/user.php):
the row travels back only where the caller stands on it, which the list row asks for
- the deck and the deep link do not, because a swap with no target is an error and not a no-op
Benefits:
- a full mailbox is visible before the send and not only in the refusal that follows it
- what is unread is reachable from the top of the list rather than through the pager
- a suggestion list is bounded, so a large membership cannot answer a page of a database
- one predicate behind the badge and the deck, so a counter and its cards cannot drift apart
Technical notes:
- no schema change: setup/sql is untouched and batch 7 is closed on its measurement
- the flat autocomplete keeps its array shape for the twelve forms that read it, bounded at 50
- span.html and input.html gain additive keys only; no existing caller renders differently
- ten strings restyled and _PRFWD translated across de, en, fr, pl, ru and uk
- PHPStan clean, 819 tests, PHP-CS-Fixer clean; the two quota tests fail against the unfixed code
The private message page no longer redraws a whole tab for every action. A reader opens a message beside its list instead of in place of it, narrows the mailbox from a toolbar above it, and reads the quota off a ring on each shelf rather than off an alert that fired from half capacity.
Core changes:
- Private message subsystem (core/classes/privat.php):
The list answers a selection instead of a whole mailbox
- getPickWhere() lays the state, period and search conditions over the box predicate
- one placeholder per column and a declared ESCAPE, because prepares are native here
- the period binds a number of days, so the boundary is drawn by the server that wrote the row
- getBoxFacets() answers every chip number in one aggregate row
- getSortOrder() picks from four fixed shapes, each closing on a unique tie-breaker on the id
- getUnreadBoxCount(), getBoxLimit() and getBoxFill() answer the shelves and their rings
- The list row carries a snippet the server cuts, and getMessageView() answers the same cut
- Routes and adapters (core/user.php, modules/account/index.php):
- privat() loses the four htmx tabs and reads id, typ and uname
- getPrivateMessageView() answers one column: a mailbox, a message or the empty pane
- setPrivateMessageRead() answers the reading pane, with the row and the counters out of band
- getPrivatPick() reads the selection under fixed names and reduces it to fixed values
- getPrivatRowData(), getPrivatShelves() and getPrivatBadges() own the row and the counters
- The page number leaves cid and travels as pnum, so cid keeps its two meanings and gains no third
- Templates (templates/lite):
- partials/privat-page.html, privat-list.html, privat-view.html and fragments/privat-row.html
- One swap boundary each: the shell, the left column, the reading pane and a single row
- The shelf strip, the toolbar, the filter chips and the shared sl-knob ring
- Client behaviour (plugins/system/slaed.js):
- The pane switch and the back button of the narrow layout
- The reply form filled through the editor API from a hidden carrier textarea
- The filter chips, each group holding its value in one hidden field
Benefits:
- Opening a message keeps the scroll position, the checkbox selection and the editor instance
- The list, the filtered count and the pager come out of one predicate set inside one answer
- The shelves and the chip facets answer the mailbox and stay independent of the toolbar
- One tone ladder serves the quota rings, the server gauges and the debug panel
Technical notes:
- No schema change and no new route; every state-changing route stays behind POST and the token
- Row and reading-pane actions send no body at all, so the selection form cannot override them
- Every new language constant is present in all six locales
- The search stays a scan of one mailbox: EXPLAIN answers ref on in_box and never a table scan
- docs/PRIVATE-MESSAGES-2026.md records which batches landed and what was measured
- docs/UPLOAD-FILEINFO-PLAN-2026.md is an unrelated plan document carried in the same tree