mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 18:10:06 -05:00
- models/cards.js defined assignMember ... toggleAssigner twice in one
Cards.helpers({}); in an object literal the last key wins, so the first
twelve methods (about a hundred lines, with their own linked-board
branches) never ran. models/users.js had two copies of the swimlane-height
storage helpers, and the header's event map an empty
'click .js-open-bookmarks' the real handler replaced. Each first copy is
removed; what runs is unchanged.
- An Admin Panel attachment settings pane: attachmentSettings.jade (four
templates) and about 300 lines of settingBody.js for S3, transfer limits
and storage paths. No menu opened it and no template drew it; Admin Panel /
Attachments (attachments.js) is the one in use.
- Templates drawn by nothing: dateBadge, dateCustomField and
cardCustomFieldDate with its JS, orgAvatar and teamAvatar, the three
*ModalTitle templates of My Cards, Due Cards and Global Search, boardLists,
boardCreateRulePopup, addMemberPopupTest, and subtasksItems with the two
templates only it used.
- CSS repeated word for word: accessibility.css opened with a copy of
myCards.css's first 74 lines; list.css repeated its 768px collapsed-list
block at 1024px and 1200px, which 768px already covers; boardHeader.css
repeated its .mobile-mode rules inside a 801px media query. The later
copies decided nothing, so the result is the same.
tests/noDuplicateObjectKeys.test.cjs parses every app and package file and
fails on an object literal that defines a key twice, and
tests/templatesAreRendered.test.cjs fails on a template nothing draws,
apart from runtime-built names and three listed exceptions. Tests that read
the removed copies now read the code that runs.
Thanks to xet7 !
65 lines
3.7 KiB
JavaScript
65 lines
3.7 KiB
JavaScript
import '/client/components/settings/adminProblems.jade';
|
|
import '/client/components/settings/attachments.jade';
|
|
import '/client/components/settings/connectionMethod.jade';
|
|
import '/client/components/settings/informationBody.jade';
|
|
import '/client/components/settings/invitationCode.jade';
|
|
import '/client/components/settings/migrationProgress.jade';
|
|
import '/client/components/settings/notificationSettingsPopup.jade';
|
|
import '/client/components/settings/notificationDeliverySettings.jade';
|
|
import '/client/components/settings/emailToCardSettings.jade';
|
|
import '/client/components/settings/emailBounces.jade';
|
|
import '/client/components/settings/peopleBody.jade';
|
|
import '/client/components/settings/settingBody.jade';
|
|
import '/client/components/settings/sharedLabelsSettings.jade';
|
|
import '/client/components/settings/settingHeader.jade';
|
|
import '/client/components/settings/leftMenu.jade';
|
|
import '/client/components/settings/tablePage.jade';
|
|
import '/client/components/settings/tablePage.js';
|
|
import '/client/components/settings/translationBody.jade';
|
|
|
|
import '/client/components/settings/adminProblems.js';
|
|
import '/client/components/settings/attachments.js';
|
|
import '/client/components/settings/connectionMethod.js';
|
|
import '/client/components/settings/informationBody.js';
|
|
import '/client/components/settings/invitationCode.js';
|
|
// The left menu's caret. Its .jade above only DRAWS the caret: the click that
|
|
// folds the menu and the `isLeftMenuCollapsed` helper that says whether it is
|
|
// folded live here, and package.json sets meteor.mainModule, so a file nobody
|
|
// imports is simply not in the bundle. Without this line the caret rendered and
|
|
// did nothing - an unregistered helper is undefined, so the panel never took
|
|
// the `collapsed` class either. docs/Features/All-Boards/Left-Menu.md
|
|
import '/client/components/settings/leftMenu.js';
|
|
import '/client/components/settings/lockedUsersBody.js';
|
|
import '/client/components/settings/migrationProgress.js';
|
|
import '/client/components/settings/notificationSettingsPopup.js';
|
|
// #3695: notification delivery (content, grouping, schedule) per channel, in
|
|
// Notification Settings and in each outgoing webhook form.
|
|
import '/client/components/settings/notificationDeliverySettings.js';
|
|
// #794: email to card, in the same popup.
|
|
import '/client/components/settings/emailToCardSettings.js';
|
|
// #794: Admin Panel -> E-mail -> Bounces.
|
|
import '/client/components/settings/emailBounces.js';
|
|
import '/client/components/settings/peopleBody.js';
|
|
import '/client/components/settings/settingBody.js';
|
|
import '/client/components/settings/sharedLabelsSettings.js';
|
|
import '/client/components/settings/settingHeader.js';
|
|
import '/client/components/settings/problemsSummary.jade';
|
|
import '/client/components/settings/problemsSummary.js';
|
|
import '/client/components/settings/translationBody.js';
|
|
|
|
// adminProblems.css was missing here, so NONE of the Admin Panel report styling
|
|
// was in the bundle (package.json sets meteor.mainModule, so a CSS file that is
|
|
// never imported is simply not loaded). That is why the report search box and
|
|
// the prev/next pagination buttons fell back to the global `button` rule in
|
|
// forms.css and rendered with a black/grey background instead of the theme.
|
|
import '/client/components/settings/adminProblems.css';
|
|
import '/client/components/settings/attachments.css';
|
|
import '/client/components/settings/informationBody.css';
|
|
import '/client/components/settings/lockedUsersBody.css';
|
|
import '/client/components/settings/migrationProgress.css';
|
|
import '/client/components/settings/peopleBody.css';
|
|
import '/client/components/settings/settingBody.css';
|
|
import '/client/components/settings/settingHeader.css';
|
|
import '/client/components/settings/tablePage.css';
|
|
import '/client/components/settings/translationBody.css';
|