История коммитов

simba77
fix(forum): mark a hidden post with the dashed border of a hidden topic
The rule of the comment came later in the styles and took the border back; the text of the post is muted and the line above its actions takes the colour of the border.
simba77
feat(forum): redesign the filter by author
The authors of the topic are a list of boxes with their counts in a card, under full breadcrumbs and a link back to the topic. The script of the forum held only what the whole site uses: the lightbox moves to lightbox.js, the label of a chosen file to file-input.js without jQuery.
simba77
feat(forum): redesign the page of a topic
The heading carries the marks of the topic, the count of posts and views, the button of the answer and the menu of the moderator in a popover. The poll is a card with a bar for each answer, the leader marked in the accent; the colours of the answers are gone from the configuration. The form of the answer is the editor of the comments, always on the page — above the posts when the newest go first; a guest and a closed topic get a word instead. Pages carry the range of the posts, at the top as well.

The poll no longer escapes its text when it is read: the template escapes it, and a name with an ampersand was shown escaped twice.
simba77
feat(forum): show the posts of a topic as the comments of the site
A post is built once by ForumPostRows into ForumPostDTO — the text rendered, the author with the roles of all the authors read at once, the files, the actions — for the topic and for the page of a single post. The post model loses the accessors that served the old templates and the services it took from di() on every instance.

The author edits the first post of the topic in a section that lets them, not whichever of their posts opens a page. The visitors of a topic are matched by their address in PHP rather than with functions only MySQL has, so the topic page opens for a member in the SQLite suite.
simba77
refactor(forum): keep only the order of posts in the forum settings
The quick-reply form, the preview switch and the pinned first post are gone from the profile and the forum: the reply form is always on the topic page and the preview button of a new topic always shows. The order of posts is read by one service (ForumUserSettings) instead of nine copies of the defaults.
simba77
feat(forum): redesign the listings of topics
A section, the unread topics, a period and the latest ones list their topics as rows: the state as an icon and badges, the count of posts leading to the last page and lit when something is unread, the author and the last post; across the forum each row names its section. A section puts New Topic beside its heading and sums its topics and posts under it.

A hidden topic shows to whoever may see it, struck through, with who hid it and the buttons each one's own permission allows: restoring it by a form, deleting it for good after the dialog. Marking every topic as read asks first (RequireConfirmationMiddleware) and comes back to the unread ones with a toast. A period is asked for in hours by a GET form.

ForumTopicRows makes the rows of all four from the columns of the table; the addresses come from ForumSectionPaths, every section read once per request, instead of a query or two for each row. The accessors of the topic model that served the old templates are gone, with the services every model fetched on creation.
simba77
feat: let a public page put its main action beside the heading
The layout of the site takes a page_actions block, as the panel does: the button stands at the end of the line of the heading and wraps under it on narrow screens.
simba77
feat(forum): redesign the root of the forum and its categories
The root and a category list their sections as rows: what a section holds counted over every section under it, the topic of the last post with its author and date, and the sections right under it opening below. The heading sums topics and posts, the bar above holds the collections as chips and the search of the forum, the line below who is here and the rules.

The rows come from three queries whatever the size of the forum (ForumSectionRows): every section, the counts grouped by section, and the topics that end them; the path of every section is worked out in memory instead of asking for each parent. Hidden topics count, and may be the last one, only with forum.deleted.view. The bar and the line below serve the pages of topics as they are until those are redrawn.
simba77
refactor: move the search field of the news into the controls of the theme
The field with its button inside served the news and the downloads under the name of the news; it is .site-search-field of _controls.scss now, shown in the style guide, ready for the forum as the third.
simba77
feat(forum): move and change a topic in a dialog
Moving and changing a topic open a dialog on the topic page; the links of the menu keep leading to the pages of the two forms, which work without the script and show the errors of the fields. Changing a topic keeps its meta tags.

Moving lists every section that holds topics with its path in one choice, instead of going through the categories one by one (TopicMoveTargets); the queries of the old way are gone.

confirm.js: a link with data-confirm-form sends the form of that id, so its dialog asks; the focus comes back to the link. Shown in the style guide.