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