code.gitea.io/gitea@v1.21.7/web_src/js/index.js (about)

     1  // bootstrap module must be the first one to be imported, it handles webpack lazy-loading and global errors
     2  import './bootstrap.js';
     3  
     4  import {initRepoActivityTopAuthorsChart} from './components/RepoActivityTopAuthors.vue';
     5  import {initScopedAccessTokenCategories} from './components/ScopedAccessTokenSelector.vue';
     6  import {initDashboardRepoList} from './components/DashboardRepoList.vue';
     7  
     8  import {initGlobalCopyToClipboardListener} from './features/clipboard.js';
     9  import {initContextPopups} from './features/contextpopup.js';
    10  import {initRepoGraphGit} from './features/repo-graph.js';
    11  import {initHeatmap} from './features/heatmap.js';
    12  import {initImageDiff} from './features/imagediff.js';
    13  import {initRepoMigration} from './features/repo-migration.js';
    14  import {initRepoProject} from './features/repo-projects.js';
    15  import {initTableSort} from './features/tablesort.js';
    16  import {initAdminUserListSearchForm} from './features/admin/users.js';
    17  import {initAdminConfigs} from './features/admin/config.js';
    18  import {initMarkupAnchors} from './markup/anchors.js';
    19  import {initNotificationCount, initNotificationsTable} from './features/notification.js';
    20  import {initRepoIssueContentHistory} from './features/repo-issue-content.js';
    21  import {initStopwatch} from './features/stopwatch.js';
    22  import {initFindFileInRepo} from './features/repo-findfile.js';
    23  import {initCommentContent, initMarkupContent} from './markup/content.js';
    24  import {initPdfViewer} from './render/pdf.js';
    25  
    26  import {initUserAuthLinkAccountView, initUserAuthOauth2} from './features/user-auth.js';
    27  import {
    28    initRepoIssueDue,
    29    initRepoIssueReferenceRepositorySearch,
    30    initRepoIssueTimeTracking,
    31    initRepoIssueWipTitle,
    32    initRepoPullRequestMergeInstruction,
    33    initRepoPullRequestAllowMaintainerEdit,
    34    initRepoPullRequestReview, initRepoIssueSidebarList, initArchivedLabelHandler,
    35  } from './features/repo-issue.js';
    36  import {
    37    initRepoEllipsisButton,
    38    initRepoCommitLastCommitLoader,
    39    initCommitStatuses,
    40  } from './features/repo-commit.js';
    41  import {
    42    initFootLanguageMenu,
    43    initGlobalButtonClickOnEnter,
    44    initGlobalButtons,
    45    initGlobalCommon,
    46    initGlobalDropzone,
    47    initGlobalEnterQuickSubmit,
    48    initGlobalFormDirtyLeaveConfirm,
    49    initGlobalLinkActions,
    50    initHeadNavbarContentToggle,
    51  } from './features/common-global.js';
    52  import {initRepoTopicBar} from './features/repo-home.js';
    53  import {initAdminEmails} from './features/admin/emails.js';
    54  import {initAdminCommon} from './features/admin/common.js';
    55  import {initRepoTemplateSearch} from './features/repo-template.js';
    56  import {initRepoCodeView} from './features/repo-code.js';
    57  import {initSshKeyFormParser} from './features/sshkey-helper.js';
    58  import {initUserSettings} from './features/user-settings.js';
    59  import {initRepoArchiveLinks} from './features/repo-common.js';
    60  import {initRepoMigrationStatusChecker} from './features/repo-migrate.js';
    61  import {
    62    initRepoSettingGitHook,
    63    initRepoSettingsCollaboration,
    64    initRepoSettingSearchTeamBox,
    65  } from './features/repo-settings.js';
    66  import {initRepoDiffView} from './features/repo-diff.js';
    67  import {initOrgTeamSearchRepoBox, initOrgTeamSettings} from './features/org-team.js';
    68  import {initUserAuthWebAuthn, initUserAuthWebAuthnRegister} from './features/user-auth-webauthn.js';
    69  import {initRepoRelease, initRepoReleaseNew} from './features/repo-release.js';
    70  import {initRepoEditor} from './features/repo-editor.js';
    71  import {initCompSearchUserBox} from './features/comp/SearchUserBox.js';
    72  import {initInstall} from './features/install.js';
    73  import {initCompWebHookEditor} from './features/comp/WebHookEditor.js';
    74  import {initRepoBranchButton} from './features/repo-branch.js';
    75  import {initCommonOrganization} from './features/common-organization.js';
    76  import {initRepoWikiForm} from './features/repo-wiki.js';
    77  import {initRepoCommentForm, initRepository} from './features/repo-legacy.js';
    78  import {initCopyContent} from './features/copycontent.js';
    79  import {initCaptcha} from './features/captcha.js';
    80  import {initRepositoryActionView} from './components/RepoActionView.vue';
    81  import {initGlobalTooltips} from './modules/tippy.js';
    82  import {initGiteaFomantic} from './modules/fomantic.js';
    83  import {onDomReady} from './utils/dom.js';
    84  import {initRepoIssueList} from './features/repo-issue-list.js';
    85  import {initCommonIssueListQuickGoto} from './features/common-issue-list.js';
    86  import {initRepoDiffCommitBranchesAndTags} from './features/repo-diff-commit.js';
    87  import {initDirAuto} from './modules/dirauto.js';
    88  
    89  // Init Gitea's Fomantic settings
    90  initGiteaFomantic();
    91  initDirAuto();
    92  
    93  onDomReady(() => {
    94    initGlobalCommon();
    95  
    96    initGlobalTooltips();
    97    initGlobalButtonClickOnEnter();
    98    initGlobalButtons();
    99    initGlobalCopyToClipboardListener();
   100    initGlobalDropzone();
   101    initGlobalEnterQuickSubmit();
   102    initGlobalFormDirtyLeaveConfirm();
   103    initGlobalLinkActions();
   104  
   105    initCommonOrganization();
   106    initCommonIssueListQuickGoto();
   107  
   108    initCompSearchUserBox();
   109    initCompWebHookEditor();
   110  
   111    initInstall();
   112  
   113    initHeadNavbarContentToggle();
   114    initFootLanguageMenu();
   115  
   116    initCommentContent();
   117    initContextPopups();
   118    initHeatmap();
   119    initImageDiff();
   120    initMarkupAnchors();
   121    initMarkupContent();
   122    initSshKeyFormParser();
   123    initStopwatch();
   124    initTableSort();
   125    initFindFileInRepo();
   126    initCopyContent();
   127  
   128    initAdminCommon();
   129    initAdminEmails();
   130    initAdminUserListSearchForm();
   131    initAdminConfigs();
   132  
   133    initDashboardRepoList();
   134  
   135    initNotificationCount();
   136    initNotificationsTable();
   137  
   138    initOrgTeamSearchRepoBox();
   139    initOrgTeamSettings();
   140  
   141    initRepoActivityTopAuthorsChart();
   142    initRepoArchiveLinks();
   143    initRepoBranchButton();
   144    initRepoCodeView();
   145    initRepoCommentForm();
   146    initRepoEllipsisButton();
   147    initRepoDiffCommitBranchesAndTags();
   148    initRepoCommitLastCommitLoader();
   149    initRepoEditor();
   150    initRepoGraphGit();
   151    initRepoIssueContentHistory();
   152    initRepoIssueDue();
   153    initRepoIssueList();
   154    initRepoIssueSidebarList();
   155    initArchivedLabelHandler();
   156    initRepoIssueReferenceRepositorySearch();
   157    initRepoIssueTimeTracking();
   158    initRepoIssueWipTitle();
   159    initRepoMigration();
   160    initRepoMigrationStatusChecker();
   161    initRepoProject();
   162    initRepoPullRequestMergeInstruction();
   163    initRepoPullRequestAllowMaintainerEdit();
   164    initRepoPullRequestReview();
   165    initRepoRelease();
   166    initRepoReleaseNew();
   167    initRepoSettingGitHook();
   168    initRepoSettingSearchTeamBox();
   169    initRepoSettingsCollaboration();
   170    initRepoTemplateSearch();
   171    initRepoTopicBar();
   172    initRepoWikiForm();
   173    initRepository();
   174    initRepositoryActionView();
   175  
   176    initCommitStatuses();
   177    initCaptcha();
   178  
   179    initUserAuthLinkAccountView();
   180    initUserAuthOauth2();
   181    initUserAuthWebAuthn();
   182    initUserAuthWebAuthnRegister();
   183    initUserSettings();
   184    initRepoDiffView();
   185    initPdfViewer();
   186    initScopedAccessTokenCategories();
   187  });