2020-03-11 14:34:54 -05:00
|
|
|
import './publicpath.js';
|
2020-02-23 16:34:28 -05:00
|
|
|
|
2021-10-14 21:35:26 -05:00
|
|
|
import {initVueEnv} from './components/VueComponentLoader.js';
|
|
|
|
import {initRepoActivityTopAuthorsChart} from './components/RepoActivityTopAuthors.vue';
|
|
|
|
import {initDashboardRepoList} from './components/DashboardRepoList.js';
|
|
|
|
|
2021-05-07 03:43:41 -05:00
|
|
|
import attachTribute from './features/tribute.js';
|
2021-10-16 12:28:04 -05:00
|
|
|
import initGlobalCopyToClipboardListener from './features/clipboard.js';
|
2020-03-11 14:34:54 -05:00
|
|
|
import initContextPopups from './features/contextpopup.js';
|
|
|
|
import initGitGraph from './features/gitgraph.js';
|
2020-11-18 17:00:16 -05:00
|
|
|
import initHeatmap from './features/heatmap.js';
|
2021-05-07 03:43:41 -05:00
|
|
|
import initImageDiff from './features/imagediff.js';
|
|
|
|
import initMigration from './features/migration.js';
|
2020-08-16 22:07:38 -05:00
|
|
|
import initProject from './features/projects.js';
|
2020-05-21 20:45:34 -05:00
|
|
|
import initServiceWorker from './features/serviceworker.js';
|
2020-06-24 17:23:05 -05:00
|
|
|
import initTableSort from './features/tablesort.js';
|
2021-10-12 13:11:35 -05:00
|
|
|
import {initAdminUserListSearchForm} from './features/admin-users.js';
|
2021-05-07 03:43:41 -05:00
|
|
|
import {initMarkupAnchors} from './markup/anchors.js';
|
2021-10-16 12:28:04 -05:00
|
|
|
import {initNotificationCount, initNotificationsTable} from './features/notification.js';
|
2021-10-08 08:08:22 -05:00
|
|
|
import {initLastCommitLoader} from './features/lastcommitloader.js';
|
2021-10-10 17:40:03 -05:00
|
|
|
import {initIssueContentHistory} from './features/issue-content-history.js';
|
2021-01-21 09:51:52 -05:00
|
|
|
import {initStopwatch} from './features/stopwatch.js';
|
2021-10-15 11:05:33 -05:00
|
|
|
import {initDiffShowMore} from './features/diff.js';
|
2021-10-16 12:28:04 -05:00
|
|
|
import {initCommentContent, initMarkupContent} from './markup/content.js';
|
|
|
|
|
|
|
|
import {initUserAuthLinkAccountView, initUserAuthOauth2} from './features/user-auth.js';
|
|
|
|
import {
|
|
|
|
initRepoDiffConversationForm,
|
|
|
|
initRepoDiffFileViewToggle,
|
|
|
|
initRepoDiffReviewButton,
|
|
|
|
} from './features/repo-diff.js';
|
|
|
|
import {
|
|
|
|
initRepoIssueDue,
|
|
|
|
initRepoIssueList,
|
|
|
|
initRepoIssueReferenceRepositorySearch,
|
|
|
|
initRepoIssueTimeTracking,
|
|
|
|
initRepoIssueWipTitle,
|
|
|
|
initRepoPullRequestMergeInstruction,
|
|
|
|
initRepoPullRequestReview,
|
|
|
|
} from './features/repo-issue.js';
|
|
|
|
import {initRepoCommitButton} from './features/repo-commit.js';
|
|
|
|
import {
|
|
|
|
initFootLanguageMenu,
|
|
|
|
initGlobalButtonClickOnEnter,
|
|
|
|
initGlobalButtons,
|
|
|
|
initGlobalCommon,
|
|
|
|
initGlobalDropzone,
|
|
|
|
initGlobalEnterQuickSubmit,
|
|
|
|
initGlobalFormDirtyLeaveConfirm,
|
|
|
|
initGlobalLinkActions,
|
|
|
|
initHeadNavbarContentToggle,
|
|
|
|
} from './features/common-global.js';
|
|
|
|
import {initRepoTopicBar} from './features/repo-home.js';
|
|
|
|
import {initAdminEmails} from './features/admin-emails.js';
|
|
|
|
import {initAdminCommon} from './features/admin-common.js';
|
|
|
|
import {initRepoTemplateSearch} from './features/repo-template.js';
|
|
|
|
import {initRepoCodeView} from './features/repo-code.js';
|
|
|
|
import {initSshKeyFormParser} from './features/sshkey-helper.js';
|
|
|
|
import {initUserSettings} from './features/user-settings.js';
|
|
|
|
import {initRepoArchiveLinks} from './features/repo-common.js';
|
|
|
|
import {initRepoMigrationStatusChecker} from './features/repo-migrate.js';
|
|
|
|
import {
|
|
|
|
initRepoSettingGitHook,
|
|
|
|
initRepoSettingsCollaboration,
|
|
|
|
initRepoSettingSearchTeamBox,
|
|
|
|
} from './features/repo-settings.js';
|
|
|
|
import {initOrgTeamSearchRepoBox, initOrgTeamSettings} from './features/org-team.js';
|
|
|
|
import {initUserAuthU2fAuth, initUserAuthU2fRegister} from './features/user-auth-u2f.js';
|
|
|
|
import {initRepoRelease, initRepoReleaseEditor} from './features/repo-release.js';
|
|
|
|
import {initRepoEditor} from './features/repo-editor.js';
|
|
|
|
import {initSearchUserBox} from './features/comp/SearchUserBox.js';
|
|
|
|
import {initInstall} from './features/install.js';
|
|
|
|
import {initWebHookEditor} from './features/comp/WebHookEditor.js';
|
|
|
|
import {initCommonIssue} from './features/common-issue.js';
|
|
|
|
import {initRepoBranchButton} from './features/repo-branch.js';
|
|
|
|
import {initCommonOrganization} from './features/common-organization.js';
|
|
|
|
import {initRepoWikiForm} from './features/repo-wiki.js';
|
|
|
|
import {initRepoCommentForm, initRepository} from './features/repo-legacy.js';
|
2019-11-13 09:52:13 -05:00
|
|
|
|
2020-01-11 21:57:32 -05:00
|
|
|
// Silence fomantic's error logging when tabs are used without a target content element
|
|
|
|
$.fn.tab.settings.silent = true;
|
2019-11-14 16:39:51 -05:00
|
|
|
|
2021-10-16 12:28:04 -05:00
|
|
|
initVueEnv();
|
2021-02-21 20:14:27 -05:00
|
|
|
|
2020-01-28 16:57:20 -05:00
|
|
|
$(document).ready(async () => {
|
2021-10-16 12:28:04 -05:00
|
|
|
initGlobalCommon();
|
|
|
|
initGlobalDropzone();
|
|
|
|
initGlobalLinkActions();
|
|
|
|
initGlobalButtons();
|
|
|
|
initRepoBranchButton();
|
2019-11-14 16:39:51 -05:00
|
|
|
|
2021-10-16 12:28:04 -05:00
|
|
|
initCommonIssue();
|
2019-11-14 16:39:51 -05:00
|
|
|
|
2021-10-16 12:28:04 -05:00
|
|
|
initSearchUserBox();
|
|
|
|
initRepoSettingSearchTeamBox();
|
|
|
|
initOrgTeamSearchRepoBox();
|
2019-11-14 16:39:51 -05:00
|
|
|
|
2021-10-16 12:28:04 -05:00
|
|
|
initGlobalButtonClickOnEnter();
|
2021-05-07 03:43:41 -05:00
|
|
|
initMarkupAnchors();
|
2021-05-23 09:14:03 -05:00
|
|
|
initCommentContent();
|
2021-10-16 12:28:04 -05:00
|
|
|
initRepoCommentForm();
|
2019-11-14 16:39:51 -05:00
|
|
|
initInstall();
|
2021-10-16 12:28:04 -05:00
|
|
|
initRepoArchiveLinks();
|
2019-11-14 16:39:51 -05:00
|
|
|
initRepository();
|
|
|
|
initMigration();
|
2021-10-16 12:28:04 -05:00
|
|
|
initRepoWikiForm();
|
|
|
|
initRepoEditor();
|
|
|
|
initCommonOrganization();
|
|
|
|
initWebHookEditor();
|
|
|
|
initAdminCommon();
|
|
|
|
initRepoCodeView();
|
2021-10-14 21:35:26 -05:00
|
|
|
initRepoActivityTopAuthorsChart();
|
|
|
|
initDashboardRepoList();
|
2021-10-16 12:28:04 -05:00
|
|
|
initOrgTeamSettings();
|
|
|
|
initGlobalEnterQuickSubmit();
|
|
|
|
initHeadNavbarContentToggle();
|
|
|
|
initFootLanguageMenu();
|
|
|
|
initRepoTopicBar();
|
|
|
|
initUserAuthU2fAuth();
|
|
|
|
initUserAuthU2fRegister();
|
|
|
|
initRepoIssueList();
|
|
|
|
initRepoIssueTimeTracking();
|
|
|
|
initRepoIssueDue();
|
|
|
|
initRepoIssueWipTitle();
|
|
|
|
initRepoPullRequestReview();
|
|
|
|
initRepoMigrationStatusChecker();
|
|
|
|
initRepoTemplateSearch();
|
|
|
|
initRepoIssueReferenceRepositorySearch();
|
2020-02-11 20:53:18 -05:00
|
|
|
initContextPopups();
|
2020-06-24 17:23:05 -05:00
|
|
|
initTableSort();
|
2020-04-23 22:57:38 -05:00
|
|
|
initNotificationsTable();
|
2021-10-08 08:08:22 -05:00
|
|
|
initLastCommitLoader();
|
2021-10-16 12:28:04 -05:00
|
|
|
initRepoPullRequestMergeInstruction();
|
|
|
|
initRepoDiffFileViewToggle();
|
|
|
|
initRepoReleaseEditor();
|
|
|
|
initRepoRelease();
|
2021-10-15 11:05:33 -05:00
|
|
|
initDiffShowMore();
|
2021-10-10 17:40:03 -05:00
|
|
|
initIssueContentHistory();
|
2021-10-12 13:11:35 -05:00
|
|
|
initAdminUserListSearchForm();
|
2021-10-16 12:28:04 -05:00
|
|
|
initGlobalCopyToClipboardListener();
|
|
|
|
initUserAuthOauth2();
|
|
|
|
initRepoDiffReviewButton();
|
|
|
|
initRepoCommitButton();
|
|
|
|
initAdminEmails();
|
|
|
|
initGlobalEnterQuickSubmit();
|
|
|
|
initSshKeyFormParser();
|
|
|
|
initGlobalFormDirtyLeaveConfirm();
|
|
|
|
initUserSettings();
|
|
|
|
initRepoSettingsCollaboration();
|
|
|
|
initUserAuthLinkAccountView();
|
|
|
|
initRepoDiffConversationForm();
|
2019-11-14 16:39:51 -05:00
|
|
|
|
2020-05-24 02:36:40 -05:00
|
|
|
// parallel init of async loaded features
|
2020-04-13 08:02:31 -05:00
|
|
|
await Promise.all([
|
2020-05-20 21:00:43 -05:00
|
|
|
attachTribute(document.querySelectorAll('#content, .emoji-input')),
|
2020-02-07 18:03:42 -05:00
|
|
|
initGitGraph(),
|
2020-11-18 17:00:16 -05:00
|
|
|
initHeatmap(),
|
2020-08-16 22:07:38 -05:00
|
|
|
initProject(),
|
2020-05-21 20:45:34 -05:00
|
|
|
initServiceWorker(),
|
2020-07-03 04:55:36 -05:00
|
|
|
initNotificationCount(),
|
2021-01-21 09:51:52 -05:00
|
|
|
initStopwatch(),
|
2021-05-23 09:14:03 -05:00
|
|
|
initMarkupContent(),
|
2021-10-16 12:28:04 -05:00
|
|
|
initRepoSettingGitHook(),
|
2021-02-27 12:25:00 -05:00
|
|
|
initImageDiff(),
|
2020-01-28 16:57:20 -05:00
|
|
|
]);
|
2019-11-14 16:39:51 -05:00
|
|
|
});
|