server.modules.mjs 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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. import { dirname, join } from 'path'
  23. import { fileURLToPath } from 'url'
  24. const __dirname = globalThis?.__dirname ?? import.meta.dirname ?? dirname(fileURLToPath(import.meta.url))
  25. export default {
  26. comments: {
  27. 'comments-app': join(__dirname, 'apps/comments/src', 'comments-app.js'),
  28. 'comments-tab': join(__dirname, 'apps/comments/src', 'comments-tab.js'),
  29. init: join(__dirname, 'apps/comments/src', 'init.ts'),
  30. },
  31. core: {
  32. 'shared-vue': join(__dirname, 'core/src', 'modules/vue.ts'),
  33. 'shared-nextcloud-vue': join(__dirname, 'core/src', 'modules/nextcloud-vue.ts'),
  34. backgroundjobs: join(__dirname, 'core/src', 'cron.ts'),
  35. files_client: join(__dirname, 'core/src', 'files/client.js'),
  36. files_fileinfo: join(__dirname, 'core/src', 'files/fileinfo.js'),
  37. install: join(__dirname, 'core/src', 'install.js'),
  38. login: join(__dirname, 'core/src', 'login.js'),
  39. main: join(__dirname, 'core/src', 'main.js'),
  40. maintenance: join(__dirname, 'core/src', 'maintenance.js'),
  41. profile: join(__dirname, 'core/src', 'profile.ts'),
  42. recommendedapps: join(__dirname, 'core/src', 'recommendedapps.js'),
  43. systemtags: join(__dirname, 'core/src', 'systemtags/merged-systemtags.js'),
  44. 'unified-search': join(__dirname, 'core/src', 'unified-search.ts'),
  45. 'legacy-unified-search': join(__dirname, 'core/src', 'legacy-unified-search.js'),
  46. 'unsupported-browser': join(__dirname, 'core/src', 'unsupported-browser.js'),
  47. 'unsupported-browser-redirect': join(__dirname, 'core/src', 'unsupported-browser-redirect.js'),
  48. },
  49. dashboard: {
  50. main: join(__dirname, 'apps/dashboard/src', 'main.js'),
  51. },
  52. dav: {
  53. 'settings-admin-caldav': join(__dirname, 'apps/dav/src', 'settings.js'),
  54. 'settings-personal-availability': join(__dirname, 'apps/dav/src', 'settings-personal-availability.js'),
  55. },
  56. files: {
  57. sidebar: join(__dirname, 'apps/files/src', 'sidebar.js'),
  58. main: join(__dirname, 'apps/files/src', 'main.ts'),
  59. init: join(__dirname, 'apps/files/src', 'init.ts'),
  60. 'personal-settings': join(__dirname, 'apps/files/src', 'main-personal-settings.js'),
  61. 'reference-files': join(__dirname, 'apps/files/src', 'reference-files.ts'),
  62. search: join(__dirname, 'apps/files/src/plugins/search', 'folderSearch.ts'),
  63. },
  64. files_external: {
  65. init: join(__dirname, 'apps/files_external/src', 'init.ts'),
  66. },
  67. files_reminders: {
  68. init: join(__dirname, 'apps/files_reminders/src', 'init.ts'),
  69. },
  70. files_sharing: {
  71. additionalScripts: join(__dirname, 'apps/files_sharing/src', 'additionalScripts.js'),
  72. collaboration: join(__dirname, 'apps/files_sharing/src', 'collaborationresourceshandler.js'),
  73. files_sharing_tab: join(__dirname, 'apps/files_sharing/src', 'files_sharing_tab.js'),
  74. init: join(__dirname, 'apps/files_sharing/src', 'init.ts'),
  75. main: join(__dirname, 'apps/files_sharing/src', 'main.ts'),
  76. 'personal-settings': join(__dirname, 'apps/files_sharing/src', 'personal-settings.js'),
  77. },
  78. files_trashbin: {
  79. main: join(__dirname, 'apps/files_trashbin/src', 'main.ts'),
  80. },
  81. files_versions: {
  82. files_versions: join(__dirname, 'apps/files_versions/src', 'files_versions_tab.js'),
  83. },
  84. oauth2: {
  85. oauth2: join(__dirname, 'apps/oauth2/src', 'main.js'),
  86. },
  87. federatedfilesharing: {
  88. external: join(__dirname, 'apps/federatedfilesharing/src', 'external.js'),
  89. 'vue-settings-admin': join(__dirname, 'apps/federatedfilesharing/src', 'main-admin.js'),
  90. 'vue-settings-personal': join(__dirname, 'apps/federatedfilesharing/src', 'main-personal.js'),
  91. },
  92. settings: {
  93. apps: join(__dirname, 'apps/settings/src', 'apps.js'),
  94. 'legacy-admin': join(__dirname, 'apps/settings/src', 'admin.js'),
  95. 'declarative-settings-forms': join(__dirname, 'apps/settings/src', 'main-declarative-settings-forms.ts'),
  96. 'vue-settings-admin-basic-settings': join(__dirname, 'apps/settings/src', 'main-admin-basic-settings.js'),
  97. 'vue-settings-admin-ai': join(__dirname, 'apps/settings/src', 'main-admin-ai.js'),
  98. 'vue-settings-admin-delegation': join(__dirname, 'apps/settings/src', 'main-admin-delegation.js'),
  99. 'vue-settings-admin-security': join(__dirname, 'apps/settings/src', 'main-admin-security.js'),
  100. 'vue-settings-admin-sharing': join(__dirname, 'apps/settings/src', 'admin-settings-sharing.ts'),
  101. 'vue-settings-apps-users-management': join(__dirname, 'apps/settings/src', 'main-apps-users-management.ts'),
  102. 'vue-settings-nextcloud-pdf': join(__dirname, 'apps/settings/src', 'main-nextcloud-pdf.js'),
  103. 'vue-settings-personal-info': join(__dirname, 'apps/settings/src', 'main-personal-info.js'),
  104. 'vue-settings-personal-password': join(__dirname, 'apps/settings/src', 'main-personal-password.js'),
  105. 'vue-settings-personal-security': join(__dirname, 'apps/settings/src', 'main-personal-security.js'),
  106. 'vue-settings-personal-webauthn': join(__dirname, 'apps/settings/src', 'main-personal-webauth.js'),
  107. },
  108. sharebymail: {
  109. 'vue-settings-admin-sharebymail': join(__dirname, 'apps/sharebymail/src', 'main-admin.js'),
  110. },
  111. systemtags: {
  112. init: join(__dirname, 'apps/systemtags/src', 'init.ts'),
  113. admin: join(__dirname, 'apps/systemtags/src', 'admin.ts'),
  114. },
  115. theming: {
  116. 'personal-theming': join(__dirname, 'apps/theming/src', 'personal-settings.js'),
  117. 'admin-theming': join(__dirname, 'apps/theming/src', 'admin-settings.js'),
  118. },
  119. twofactor_backupcodes: {
  120. settings: join(__dirname, 'apps/twofactor_backupcodes/src', 'settings.js'),
  121. },
  122. updatenotification: {
  123. init: join(__dirname, 'apps/updatenotification/src', 'init.ts'),
  124. updatenotification: join(__dirname, 'apps/updatenotification/src', 'updatenotification.js'),
  125. 'view-changelog-page': join(__dirname, 'apps/updatenotification/src', 'view-changelog-page.ts'),
  126. },
  127. user_status: {
  128. menu: join(__dirname, 'apps/user_status/src', 'menu.js'),
  129. },
  130. weather_status: {
  131. 'weather-status': join(__dirname, 'apps/weather_status/src', 'weather-status.js'),
  132. },
  133. workflowengine: {
  134. workflowengine: join(__dirname, 'apps/workflowengine/src', 'workflowengine.js'),
  135. },
  136. }