webpack.modules.js 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. /**
  2. * @copyright Copyright (c) 2021 John Molakvoæ <skjnldsv@protonmail.com>
  3. *
  4. * @author John Molakvoæ <skjnldsv@protonmail.com>
  5. *
  6. * @license AGPL-3.0-or-later
  7. *
  8. * This program is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU Affero General Public License as
  10. * published by the Free Software Foundation, either version 3 of the
  11. * License, or (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU Affero General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Affero General Public License
  19. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  20. *
  21. */
  22. const path = require('path')
  23. module.exports = {
  24. comments: {
  25. 'comments-app': path.join(__dirname, 'apps/comments/src', 'comments-app.js'),
  26. 'comments-tab': path.join(__dirname, 'apps/comments/src', 'comments-tab.js'),
  27. init: path.join(__dirname, 'apps/comments/src', 'init.ts'),
  28. },
  29. core: {
  30. files_client: path.join(__dirname, 'core/src', 'files/client.js'),
  31. files_fileinfo: path.join(__dirname, 'core/src', 'files/fileinfo.js'),
  32. install: path.join(__dirname, 'core/src', 'install.js'),
  33. login: path.join(__dirname, 'core/src', 'login.js'),
  34. main: path.join(__dirname, 'core/src', 'main.js'),
  35. maintenance: path.join(__dirname, 'core/src', 'maintenance.js'),
  36. profile: path.join(__dirname, 'core/src', 'profile.ts'),
  37. recommendedapps: path.join(__dirname, 'core/src', 'recommendedapps.js'),
  38. systemtags: path.resolve(__dirname, 'core/src', 'systemtags/merged-systemtags.js'),
  39. 'unified-search': path.join(__dirname, 'core/src', 'unified-search.ts'),
  40. 'legacy-unified-search': path.join(__dirname, 'core/src', 'legacy-unified-search.js'),
  41. 'unsupported-browser': path.join(__dirname, 'core/src', 'unsupported-browser.js'),
  42. 'unsupported-browser-redirect': path.join(__dirname, 'core/src', 'unsupported-browser-redirect.js'),
  43. public: path.join(__dirname, 'core/src', 'public.ts'),
  44. },
  45. dashboard: {
  46. main: path.join(__dirname, 'apps/dashboard/src', 'main.js'),
  47. },
  48. dav: {
  49. 'settings-admin-caldav': path.join(__dirname, 'apps/dav/src', 'settings.js'),
  50. 'settings-personal-availability': path.join(__dirname, 'apps/dav/src', 'settings-personal-availability.js'),
  51. },
  52. files: {
  53. sidebar: path.join(__dirname, 'apps/files/src', 'sidebar.js'),
  54. main: path.join(__dirname, 'apps/files/src', 'main.ts'),
  55. init: path.join(__dirname, 'apps/files/src', 'init.ts'),
  56. search: path.join(__dirname, 'apps/files/src/plugins/search', 'folderSearch.ts'),
  57. 'personal-settings': path.join(__dirname, 'apps/files/src', 'main-personal-settings.js'),
  58. 'reference-files': path.join(__dirname, 'apps/files/src', 'reference-files.ts'),
  59. },
  60. files_external: {
  61. init: path.join(__dirname, 'apps/files_external/src', 'init.ts'),
  62. },
  63. files_reminders: {
  64. init: path.join(__dirname, 'apps/files_reminders/src', 'init.ts'),
  65. },
  66. files_sharing: {
  67. additionalScripts: path.join(__dirname, 'apps/files_sharing/src', 'additionalScripts.js'),
  68. collaboration: path.join(__dirname, 'apps/files_sharing/src', 'collaborationresourceshandler.js'),
  69. files_sharing_tab: path.join(__dirname, 'apps/files_sharing/src', 'files_sharing_tab.js'),
  70. init: path.join(__dirname, 'apps/files_sharing/src', 'init.ts'),
  71. main: path.join(__dirname, 'apps/files_sharing/src', 'main.ts'),
  72. 'personal-settings': path.join(__dirname, 'apps/files_sharing/src', 'personal-settings.js'),
  73. },
  74. files_trashbin: {
  75. init: path.join(__dirname, 'apps/files_trashbin/src', 'files-init.ts'),
  76. },
  77. files_versions: {
  78. files_versions: path.join(__dirname, 'apps/files_versions/src', 'files_versions_tab.js'),
  79. },
  80. oauth2: {
  81. oauth2: path.join(__dirname, 'apps/oauth2/src', 'main.js'),
  82. },
  83. federatedfilesharing: {
  84. external: path.join(__dirname, 'apps/federatedfilesharing/src', 'external.js'),
  85. 'vue-settings-admin': path.join(__dirname, 'apps/federatedfilesharing/src', 'main-admin.js'),
  86. 'vue-settings-personal': path.join(__dirname, 'apps/federatedfilesharing/src', 'main-personal.js'),
  87. },
  88. settings: {
  89. apps: path.join(__dirname, 'apps/settings/src', 'apps.js'),
  90. 'legacy-admin': path.join(__dirname, 'apps/settings/src', 'admin.js'),
  91. 'vue-settings-admin-basic-settings': path.join(__dirname, 'apps/settings/src', 'main-admin-basic-settings.js'),
  92. 'vue-settings-admin-ai': path.join(__dirname, 'apps/settings/src', 'main-admin-ai.js'),
  93. 'vue-settings-admin-delegation': path.join(__dirname, 'apps/settings/src', 'main-admin-delegation.js'),
  94. 'vue-settings-admin-security': path.join(__dirname, 'apps/settings/src', 'main-admin-security.js'),
  95. 'vue-settings-admin-sharing': path.join(__dirname, 'apps/settings/src', 'admin-settings-sharing.ts'),
  96. 'vue-settings-apps-users-management': path.join(__dirname, 'apps/settings/src', 'main-apps-users-management.ts'),
  97. 'vue-settings-nextcloud-pdf': path.join(__dirname, 'apps/settings/src', 'main-nextcloud-pdf.js'),
  98. 'vue-settings-personal-info': path.join(__dirname, 'apps/settings/src', 'main-personal-info.js'),
  99. 'vue-settings-personal-password': path.join(__dirname, 'apps/settings/src', 'main-personal-password.js'),
  100. 'vue-settings-personal-security': path.join(__dirname, 'apps/settings/src', 'main-personal-security.js'),
  101. 'vue-settings-personal-webauthn': path.join(__dirname, 'apps/settings/src', 'main-personal-webauth.js'),
  102. 'declarative-settings-forms': path.join(__dirname, 'apps/settings/src', 'main-declarative-settings-forms.ts'),
  103. },
  104. sharebymail: {
  105. 'vue-settings-admin-sharebymail': path.join(__dirname, 'apps/sharebymail/src', 'main-admin.js'),
  106. },
  107. systemtags: {
  108. init: path.join(__dirname, 'apps/systemtags/src', 'init.ts'),
  109. admin: path.join(__dirname, 'apps/systemtags/src', 'admin.ts'),
  110. },
  111. theming: {
  112. 'personal-theming': path.join(__dirname, 'apps/theming/src', 'personal-settings.js'),
  113. 'admin-theming': path.join(__dirname, 'apps/theming/src', 'admin-settings.js'),
  114. },
  115. twofactor_backupcodes: {
  116. settings: path.join(__dirname, 'apps/twofactor_backupcodes/src', 'settings.js'),
  117. },
  118. updatenotification: {
  119. init: path.join(__dirname, 'apps/updatenotification/src', 'init.ts'),
  120. 'view-changelog-page': path.join(__dirname, 'apps/updatenotification/src', 'view-changelog-page.ts'),
  121. updatenotification: path.join(__dirname, 'apps/updatenotification/src', 'updatenotification.js'),
  122. },
  123. user_status: {
  124. menu: path.join(__dirname, 'apps/user_status/src', 'menu.js'),
  125. },
  126. weather_status: {
  127. 'weather-status': path.join(__dirname, 'apps/weather_status/src', 'weather-status.js'),
  128. },
  129. workflowengine: {
  130. workflowengine: path.join(__dirname, 'apps/workflowengine/src', 'workflowengine.js'),
  131. },
  132. }