forked from Shiloh/githaven
e4e98979ff
Use [PDFObject](https://pdfobject.com/) to embed PDFs, replacing our outdated PDF.js copy we vendor (the last non-webpack vendoring). [Commit 1](673e0263da
) is the PDFObject integration [Commit 2](9336f5769d
) is the removal of PDF.js <img width="1251" alt="Screenshot 2023-05-27 at 09 57 52" src="https://github.com/go-gitea/gitea/assets/115237/169ce50c-bd1d-4bb0-86e5-1710bd0400a9"> <img width="1257" alt="Screenshot 2023-05-27 at 10 12 50" src="https://github.com/go-gitea/gitea/assets/115237/318f7ee9-fb11-4093-83e7-17475aa70629"> Fallback for unsupporting browsers (most mobile ones, except Firefox Mobile): <img width="358" alt="Screenshot 2023-05-27 at 09 43 34" src="https://github.com/go-gitea/gitea/assets/115237/8c12d7ba-57d6-4228-89a0-5fef9fad0cbb"> --------- Co-authored-by: Giteabot <teabot@gitea.io>
183 lines
6.3 KiB
JavaScript
183 lines
6.3 KiB
JavaScript
// bootstrap module must be the first one to be imported, it handles webpack lazy-loading and global errors
|
|
import './bootstrap.js';
|
|
|
|
import {initRepoActivityTopAuthorsChart} from './components/RepoActivityTopAuthors.vue';
|
|
import {initDashboardRepoList} from './components/DashboardRepoList.vue';
|
|
|
|
import {initGlobalCopyToClipboardListener} from './features/clipboard.js';
|
|
import {initContextPopups} from './features/contextpopup.js';
|
|
import {initRepoGraphGit} from './features/repo-graph.js';
|
|
import {initHeatmap} from './features/heatmap.js';
|
|
import {initImageDiff} from './features/imagediff.js';
|
|
import {initRepoMigration} from './features/repo-migration.js';
|
|
import {initRepoProject} from './features/repo-projects.js';
|
|
import {initServiceWorker} from './features/serviceworker.js';
|
|
import {initTableSort} from './features/tablesort.js';
|
|
import {initAdminUserListSearchForm} from './features/admin/users.js';
|
|
import {initAdminConfigs} from './features/admin/config.js';
|
|
import {initMarkupAnchors} from './markup/anchors.js';
|
|
import {initNotificationCount, initNotificationsTable} from './features/notification.js';
|
|
import {initRepoIssueContentHistory} from './features/repo-issue-content.js';
|
|
import {initStopwatch} from './features/stopwatch.js';
|
|
import {initFindFileInRepo} from './features/repo-findfile.js';
|
|
import {initCommentContent, initMarkupContent} from './markup/content.js';
|
|
import {initPdfViewer} from './render/pdf.js';
|
|
|
|
import {initUserAuthLinkAccountView, initUserAuthOauth2} from './features/user-auth.js';
|
|
import {
|
|
initRepoIssueDue,
|
|
initRepoIssueReferenceRepositorySearch,
|
|
initRepoIssueTimeTracking,
|
|
initRepoIssueWipTitle,
|
|
initRepoPullRequestMergeInstruction,
|
|
initRepoPullRequestAllowMaintainerEdit,
|
|
initRepoPullRequestReview, initRepoIssueSidebarList
|
|
} from './features/repo-issue.js';
|
|
import {
|
|
initRepoEllipsisButton,
|
|
initRepoCommitLastCommitLoader,
|
|
initCommitStatuses,
|
|
} 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 {initRepoDiffView} from './features/repo-diff.js';
|
|
import {initOrgTeamSearchRepoBox, initOrgTeamSettings} from './features/org-team.js';
|
|
import {initUserAuthWebAuthn, initUserAuthWebAuthnRegister} from './features/user-auth-webauthn.js';
|
|
import {initRepoRelease, initRepoReleaseNew} from './features/repo-release.js';
|
|
import {initRepoEditor} from './features/repo-editor.js';
|
|
import {initCompSearchUserBox} from './features/comp/SearchUserBox.js';
|
|
import {initInstall} from './features/install.js';
|
|
import {initCompWebHookEditor} from './features/comp/WebHookEditor.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';
|
|
import {initCopyContent} from './features/copycontent.js';
|
|
import {initCaptcha} from './features/captcha.js';
|
|
import {initRepositoryActionView} from './components/RepoActionView.vue';
|
|
import {initGlobalTooltips} from './modules/tippy.js';
|
|
import {initGiteaFomantic} from './modules/fomantic.js';
|
|
import {onDomReady} from './utils/dom.js';
|
|
import {initRepoIssueList} from './features/repo-issue-list.js';
|
|
import {initCommonIssueListQuickGoto} from './features/common-issue-list.js';
|
|
|
|
// Init Gitea's Fomantic settings
|
|
initGiteaFomantic();
|
|
|
|
onDomReady(() => {
|
|
initGlobalCommon();
|
|
|
|
initGlobalTooltips();
|
|
initGlobalButtonClickOnEnter();
|
|
initGlobalButtons();
|
|
initGlobalCopyToClipboardListener();
|
|
initGlobalDropzone();
|
|
initGlobalEnterQuickSubmit();
|
|
initGlobalFormDirtyLeaveConfirm();
|
|
initGlobalLinkActions();
|
|
|
|
initCommonOrganization();
|
|
initCommonIssueListQuickGoto();
|
|
|
|
initCompSearchUserBox();
|
|
initCompWebHookEditor();
|
|
|
|
initInstall();
|
|
|
|
initHeadNavbarContentToggle();
|
|
initFootLanguageMenu();
|
|
|
|
initCommentContent();
|
|
initContextPopups();
|
|
initHeatmap();
|
|
initImageDiff();
|
|
initMarkupAnchors();
|
|
initMarkupContent();
|
|
initServiceWorker();
|
|
initSshKeyFormParser();
|
|
initStopwatch();
|
|
initTableSort();
|
|
initFindFileInRepo();
|
|
initCopyContent();
|
|
|
|
initAdminCommon();
|
|
initAdminEmails();
|
|
initAdminUserListSearchForm();
|
|
initAdminConfigs();
|
|
|
|
initDashboardRepoList();
|
|
|
|
initNotificationCount();
|
|
initNotificationsTable();
|
|
|
|
initOrgTeamSearchRepoBox();
|
|
initOrgTeamSettings();
|
|
|
|
initRepoActivityTopAuthorsChart();
|
|
initRepoArchiveLinks();
|
|
initRepoBranchButton();
|
|
initRepoCodeView();
|
|
initRepoCommentForm();
|
|
initRepoEllipsisButton();
|
|
initRepoCommitLastCommitLoader();
|
|
initRepoEditor();
|
|
initRepoGraphGit();
|
|
initRepoIssueContentHistory();
|
|
initRepoIssueDue();
|
|
initRepoIssueList();
|
|
initRepoIssueSidebarList();
|
|
initRepoIssueReferenceRepositorySearch();
|
|
initRepoIssueTimeTracking();
|
|
initRepoIssueWipTitle();
|
|
initRepoMigration();
|
|
initRepoMigrationStatusChecker();
|
|
initRepoProject();
|
|
initRepoPullRequestMergeInstruction();
|
|
initRepoPullRequestAllowMaintainerEdit();
|
|
initRepoPullRequestReview();
|
|
initRepoRelease();
|
|
initRepoReleaseNew();
|
|
initRepoSettingGitHook();
|
|
initRepoSettingSearchTeamBox();
|
|
initRepoSettingsCollaboration();
|
|
initRepoTemplateSearch();
|
|
initRepoTopicBar();
|
|
initRepoWikiForm();
|
|
initRepository();
|
|
initRepositoryActionView();
|
|
|
|
initCommitStatuses();
|
|
initCaptcha();
|
|
|
|
initUserAuthLinkAccountView();
|
|
initUserAuthOauth2();
|
|
initUserAuthWebAuthn();
|
|
initUserAuthWebAuthnRegister();
|
|
initUserSettings();
|
|
initRepoDiffView();
|
|
initPdfViewer();
|
|
});
|