2020-03-11 15:34:54 -04:00
|
|
|
import './publicpath.js';
|
2020-02-23 16:34:28 -05:00
|
|
|
|
2021-10-14 22:35:26 -04:00
|
|
|
import {initVueEnv} from './components/VueComponentLoader.js';
|
|
|
|
import {initRepoActivityTopAuthorsChart} from './components/RepoActivityTopAuthors.vue';
|
|
|
|
import {initDashboardRepoList} from './components/DashboardRepoList.js';
|
|
|
|
|
2021-05-07 04:43:41 -04:00
|
|
|
import attachTribute from './features/tribute.js';
|
2021-10-16 13:28:04 -04:00
|
|
|
import initGlobalCopyToClipboardListener from './features/clipboard.js';
|
2020-03-11 15:34:54 -04: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 04:43:41 -04:00
|
|
|
import initImageDiff from './features/imagediff.js';
|
|
|
|
import initMigration from './features/migration.js';
|
2020-08-16 23:07:38 -04:00
|
|
|
import initProject from './features/projects.js';
|
2020-05-21 21:45:34 -04:00
|
|
|
import initServiceWorker from './features/serviceworker.js';
|
2020-06-24 18:23:05 -04:00
|
|
|
import initTableSort from './features/tablesort.js';
|
2021-10-12 14:11:35 -04:00
|
|
|
import {initAdminUserListSearchForm} from './features/admin-users.js';
|
2021-05-07 04:43:41 -04:00
|
|
|
import {initMarkupAnchors} from './markup/anchors.js';
|
2021-10-16 13:28:04 -04:00
|
|
|
import {initNotificationCount, initNotificationsTable} from './features/notification.js';
|
2021-10-08 09:08:22 -04:00
|
|
|
import {initLastCommitLoader} from './features/lastcommitloader.js';
|
2021-10-10 18:40:03 -04: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 12:05:33 -04:00
|
|
|
import {initDiffShowMore} from './features/diff.js';
|
2021-10-16 13:28:04 -04: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 13:28:04 -04:00
|
|
|
initVueEnv();
|
2021-02-21 20:14:27 -05:00
|
|
|
|
2020-01-28 16:57:20 -05:00
|
|
|
$(document).ready(async () => {
|
2021-10-16 13:28:04 -04:00
|
|
|
initGlobalCommon();
|
|
|
|
initGlobalDropzone();
|
|
|
|
initGlobalLinkActions();
|
|
|
|
initGlobalButtons();
|
|
|
|
initRepoBranchButton();
|
2019-11-14 16:39:51 -05:00
|
|
|
|
2021-10-16 13:28:04 -04:00
|
|
|
initCommonIssue();
|
2019-11-14 16:39:51 -05:00
|
|
|
|
2021-10-16 13:28:04 -04:00
|
|
|
initSearchUserBox();
|
|
|
|
initRepoSettingSearchTeamBox();
|
|
|
|
initOrgTeamSearchRepoBox();
|
2019-11-14 16:39:51 -05:00
|
|
|
|
2021-10-16 13:28:04 -04:00
|
|
|
initGlobalButtonClickOnEnter();
|
2021-05-07 04:43:41 -04:00
|
|
|
initMarkupAnchors();
|
2021-05-23 10:14:03 -04:00
|
|
|
initCommentContent();
|
2021-10-16 13:28:04 -04:00
|
|
|
initRepoCommentForm();
|
2019-11-14 16:39:51 -05:00
|
|
|
initInstall();
|
2021-10-16 13:28:04 -04:00
|
|
|
initRepoArchiveLinks();
|
2019-11-14 16:39:51 -05:00
|
|
|
initRepository();
|
|
|
|
initMigration();
|
2021-10-16 13:28:04 -04:00
|
|
|
initRepoWikiForm();
|
|
|
|
initRepoEditor();
|
|
|
|
initCommonOrganization();
|
|
|
|
initWebHookEditor();
|
|
|
|
initAdminCommon();
|
|
|
|
initRepoCodeView();
|
2021-10-14 22:35:26 -04:00
|
|
|
initRepoActivityTopAuthorsChart();
|
|
|
|
initDashboardRepoList();
|
2021-10-16 13:28:04 -04: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 18:23:05 -04:00
|
|
|
initTableSort();
|
2020-04-23 23:57:38 -04:00
|
|
|
initNotificationsTable();
|
2021-10-08 09:08:22 -04:00
|
|
|
initLastCommitLoader();
|
2021-10-16 13:28:04 -04:00
|
|
|
initRepoPullRequestMergeInstruction();
|
|
|
|
initRepoDiffFileViewToggle();
|
|
|
|
initRepoReleaseEditor();
|
|
|
|
initRepoRelease();
|
2021-10-15 12:05:33 -04:00
|
|
|
initDiffShowMore();
|
2021-10-10 18:40:03 -04:00
|
|
|
initIssueContentHistory();
|
2021-10-12 14:11:35 -04:00
|
|
|
initAdminUserListSearchForm();
|
2021-10-16 13:28:04 -04:00
|
|
|
initGlobalCopyToClipboardListener();
|
|
|
|
initUserAuthOauth2();
|
|
|
|
initRepoDiffReviewButton();
|
|
|
|
initRepoCommitButton();
|
|
|
|
initAdminEmails();
|
|
|
|
initGlobalEnterQuickSubmit();
|
|
|
|
initSshKeyFormParser();
|
|
|
|
initGlobalFormDirtyLeaveConfirm();
|
|
|
|
initUserSettings();
|
|
|
|
initRepoSettingsCollaboration();
|
|
|
|
initUserAuthLinkAccountView();
|
|
|
|
initRepoDiffConversationForm();
|
2019-11-14 16:39:51 -05:00
|
|
|
|
2020-05-24 03:36:40 -04:00
|
|
|
// parallel init of async loaded features
|
2020-04-13 09:02:31 -04:00
|
|
|
await Promise.all([
|
2020-05-20 22:00:43 -04: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 23:07:38 -04:00
|
|
|
initProject(),
|
2020-05-21 21:45:34 -04:00
|
|
|
initServiceWorker(),
|
2020-07-03 05:55:36 -04:00
|
|
|
initNotificationCount(),
|
2021-01-21 09:51:52 -05:00
|
|
|
initStopwatch(),
|
2021-05-23 10:14:03 -04:00
|
|
|
initMarkupContent(),
|
2021-10-16 13:28:04 -04: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
|
|
|
});
|