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