2020-03-11 19:34:54 +00:00
|
|
|
import './publicpath.js';
|
2020-02-23 21:34:28 +00:00
|
|
|
|
2021-10-15 02:35:26 +00:00
|
|
|
import {initVueEnv} from './components/VueComponentLoader.js';
|
|
|
|
import {initRepoActivityTopAuthorsChart} from './components/RepoActivityTopAuthors.vue';
|
|
|
|
import {initDashboardRepoList} from './components/DashboardRepoList.js';
|
|
|
|
|
2021-05-07 08:43:41 +00:00
|
|
|
import attachTribute from './features/tribute.js';
|
2021-10-16 17:28:04 +00:00
|
|
|
import initGlobalCopyToClipboardListener from './features/clipboard.js';
|
2020-03-11 19:34:54 +00:00
|
|
|
import initContextPopups from './features/contextpopup.js';
|
2021-11-09 09:27:25 +00:00
|
|
|
import initRepoGraphGit from './features/repo-graph.js';
|
2020-11-18 22:00:16 +00:00
|
|
|
import initHeatmap from './features/heatmap.js';
|
2021-05-07 08:43:41 +00:00
|
|
|
import initImageDiff from './features/imagediff.js';
|
2021-11-09 09:27:25 +00:00
|
|
|
import initRepoMigration from './features/repo-migration.js';
|
|
|
|
import initRepoProject from './features/repo-projects.js';
|
2020-05-22 01:45:34 +00:00
|
|
|
import initServiceWorker from './features/serviceworker.js';
|
2020-06-24 22:23:05 +00:00
|
|
|
import initTableSort from './features/tablesort.js';
|
2021-10-12 18:11:35 +00:00
|
|
|
import {initAdminUserListSearchForm} from './features/admin-users.js';
|
2021-05-07 08:43:41 +00:00
|
|
|
import {initMarkupAnchors} from './markup/anchors.js';
|
2021-10-16 17:28:04 +00:00
|
|
|
import {initNotificationCount, initNotificationsTable} from './features/notification.js';
|
2021-11-09 09:27:25 +00:00
|
|
|
import {initRepoIssueContentHistory} from './features/repo-issue-content.js';
|
2021-01-21 14:51:52 +00:00
|
|
|
import {initStopwatch} from './features/stopwatch.js';
|
2021-10-16 17:28:04 +00:00
|
|
|
import {initCommentContent, initMarkupContent} from './markup/content.js';
|
|
|
|
|
|
|
|
import {initUserAuthLinkAccountView, initUserAuthOauth2} from './features/user-auth.js';
|
|
|
|
import {
|
|
|
|
initRepoDiffConversationForm,
|
|
|
|
initRepoDiffFileViewToggle,
|
2021-11-09 09:27:25 +00:00
|
|
|
initRepoDiffReviewButton, initRepoDiffShowMore,
|
2021-10-16 17:28:04 +00:00
|
|
|
} from './features/repo-diff.js';
|
|
|
|
import {
|
|
|
|
initRepoIssueDue,
|
|
|
|
initRepoIssueList,
|
|
|
|
initRepoIssueReferenceRepositorySearch,
|
|
|
|
initRepoIssueTimeTracking,
|
|
|
|
initRepoIssueWipTitle,
|
|
|
|
initRepoPullRequestMergeInstruction,
|
|
|
|
initRepoPullRequestReview,
|
|
|
|
} from './features/repo-issue.js';
|
2021-11-23 02:44:38 +00:00
|
|
|
import {initRepoEllipsisButton, initRepoCommitLastCommitLoader} from './features/repo-commit.js';
|
2021-10-16 17:28:04 +00:00
|
|
|
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';
|
2021-11-09 09:27:25 +00:00
|
|
|
import {initCompSearchUserBox} from './features/comp/SearchUserBox.js';
|
2021-10-16 17:28:04 +00:00
|
|
|
import {initInstall} from './features/install.js';
|
2021-11-09 09:27:25 +00:00
|
|
|
import {initCompWebHookEditor} from './features/comp/WebHookEditor.js';
|
2021-10-16 17:28:04 +00:00
|
|
|
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 14:52:13 +00:00
|
|
|
|
2020-01-12 02:57:32 +00:00
|
|
|
// Silence fomantic's error logging when tabs are used without a target content element
|
|
|
|
$.fn.tab.settings.silent = true;
|
2019-11-14 21:39:51 +00:00
|
|
|
|
2021-10-16 17:28:04 +00:00
|
|
|
initVueEnv();
|
2021-02-22 01:14:27 +00:00
|
|
|
|
2021-11-09 09:27:25 +00:00
|
|
|
$(document).ready(() => {
|
2021-10-16 17:28:04 +00:00
|
|
|
initGlobalCommon();
|
2021-11-09 09:27:25 +00:00
|
|
|
|
|
|
|
initGlobalButtonClickOnEnter();
|
|
|
|
initGlobalButtons();
|
|
|
|
initGlobalCopyToClipboardListener();
|
2021-10-16 17:28:04 +00:00
|
|
|
initGlobalDropzone();
|
2021-11-09 09:27:25 +00:00
|
|
|
initGlobalEnterQuickSubmit();
|
|
|
|
initGlobalFormDirtyLeaveConfirm();
|
2021-10-16 17:28:04 +00:00
|
|
|
initGlobalLinkActions();
|
2021-11-09 09:27:25 +00:00
|
|
|
|
|
|
|
attachTribute(document.querySelectorAll('#content, .emoji-input'));
|
2019-11-14 21:39:51 +00:00
|
|
|
|
2021-10-16 17:28:04 +00:00
|
|
|
initCommonIssue();
|
2021-11-09 09:27:25 +00:00
|
|
|
initCommonOrganization();
|
2019-11-14 21:39:51 +00:00
|
|
|
|
2021-11-09 09:27:25 +00:00
|
|
|
initCompSearchUserBox();
|
|
|
|
initCompWebHookEditor();
|
2019-11-14 21:39:51 +00:00
|
|
|
|
|
|
|
initInstall();
|
2021-11-09 09:27:25 +00:00
|
|
|
|
|
|
|
initHeadNavbarContentToggle();
|
|
|
|
initFootLanguageMenu();
|
|
|
|
|
|
|
|
initCommentContent();
|
|
|
|
initContextPopups();
|
|
|
|
initHeatmap();
|
|
|
|
initImageDiff();
|
|
|
|
initMarkupAnchors();
|
|
|
|
initMarkupContent();
|
|
|
|
initServiceWorker();
|
|
|
|
initSshKeyFormParser();
|
|
|
|
initStopwatch();
|
|
|
|
initTableSort();
|
|
|
|
|
2021-10-16 17:28:04 +00:00
|
|
|
initAdminCommon();
|
2021-11-09 09:27:25 +00:00
|
|
|
initAdminEmails();
|
|
|
|
initAdminUserListSearchForm();
|
|
|
|
|
2021-10-15 02:35:26 +00:00
|
|
|
initDashboardRepoList();
|
2021-11-09 09:27:25 +00:00
|
|
|
|
|
|
|
initNotificationCount();
|
|
|
|
initNotificationsTable();
|
|
|
|
|
|
|
|
initOrgTeamSearchRepoBox();
|
2021-10-16 17:28:04 +00:00
|
|
|
initOrgTeamSettings();
|
2021-11-09 09:27:25 +00:00
|
|
|
|
|
|
|
initRepoActivityTopAuthorsChart();
|
|
|
|
initRepoArchiveLinks();
|
|
|
|
initRepoBranchButton();
|
|
|
|
initRepoCodeView();
|
|
|
|
initRepoCommentForm();
|
2021-11-23 02:44:38 +00:00
|
|
|
initRepoEllipsisButton();
|
2021-11-09 09:27:25 +00:00
|
|
|
initRepoCommitLastCommitLoader();
|
|
|
|
initRepoDiffConversationForm();
|
|
|
|
initRepoDiffFileViewToggle();
|
|
|
|
initRepoDiffReviewButton();
|
|
|
|
initRepoDiffShowMore();
|
|
|
|
initRepoEditor();
|
|
|
|
initRepoGraphGit();
|
|
|
|
initRepoIssueContentHistory();
|
|
|
|
initRepoIssueDue();
|
2021-10-16 17:28:04 +00:00
|
|
|
initRepoIssueList();
|
2021-11-09 09:27:25 +00:00
|
|
|
initRepoIssueReferenceRepositorySearch();
|
2021-10-16 17:28:04 +00:00
|
|
|
initRepoIssueTimeTracking();
|
|
|
|
initRepoIssueWipTitle();
|
2021-11-09 09:27:25 +00:00
|
|
|
initRepoMigration();
|
2021-10-16 17:28:04 +00:00
|
|
|
initRepoMigrationStatusChecker();
|
2021-11-09 09:27:25 +00:00
|
|
|
initRepoProject();
|
2021-10-16 17:28:04 +00:00
|
|
|
initRepoPullRequestMergeInstruction();
|
2021-11-09 09:27:25 +00:00
|
|
|
initRepoPullRequestReview();
|
2021-10-16 17:28:04 +00:00
|
|
|
initRepoRelease();
|
2021-11-09 09:27:25 +00:00
|
|
|
initRepoReleaseEditor();
|
|
|
|
initRepoSettingGitHook();
|
|
|
|
initRepoSettingSearchTeamBox();
|
2021-10-16 17:28:04 +00:00
|
|
|
initRepoSettingsCollaboration();
|
2021-11-09 09:27:25 +00:00
|
|
|
initRepoTemplateSearch();
|
|
|
|
initRepoTopicBar();
|
|
|
|
initRepoWikiForm();
|
|
|
|
initRepository();
|
2019-11-14 21:39:51 +00:00
|
|
|
|
2021-11-09 09:27:25 +00:00
|
|
|
initUserAuthLinkAccountView();
|
|
|
|
initUserAuthOauth2();
|
|
|
|
initUserAuthU2fAuth();
|
|
|
|
initUserAuthU2fRegister();
|
|
|
|
initUserSettings();
|
2019-11-14 21:39:51 +00:00
|
|
|
});
|