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