create-berna-stencil 1.0.12 → 1.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (373) hide show
  1. package/.eleventy.js +1 -1
  2. package/bin/create.js +1 -1
  3. package/package.json +5 -5
  4. package/src/api/.htaccess +11 -5
  5. package/src/api/core/.htaccess +2 -0
  6. package/src/api/{init.php → core/init.php} +7 -2
  7. package/src/api/endpoints/protected/secret.php +1 -1
  8. package/src/api/endpoints/public/ping.php +1 -1
  9. package/src/api/index.php +4 -2
  10. package/src/api/endpoints/protected/send-mail.php +0 -75
  11. /package/src/api/{composer.json → core/composer.json} +0 -0
  12. /package/src/api/{composer.lock → core/composer.lock} +0 -0
  13. /package/src/api/{modules → core/modules}/Response.php +0 -0
  14. /package/src/api/{vendor → core/vendor}/autoload.php +0 -0
  15. /package/src/api/{vendor → core/vendor}/composer/ClassLoader.php +0 -0
  16. /package/src/api/{vendor → core/vendor}/composer/InstalledVersions.php +0 -0
  17. /package/src/api/{vendor → core/vendor}/composer/LICENSE +0 -0
  18. /package/src/api/{vendor → core/vendor}/composer/autoload_classmap.php +0 -0
  19. /package/src/api/{vendor → core/vendor}/composer/autoload_files.php +0 -0
  20. /package/src/api/{vendor → core/vendor}/composer/autoload_namespaces.php +0 -0
  21. /package/src/api/{vendor → core/vendor}/composer/autoload_psr4.php +0 -0
  22. /package/src/api/{vendor → core/vendor}/composer/autoload_real.php +0 -0
  23. /package/src/api/{vendor → core/vendor}/composer/autoload_static.php +0 -0
  24. /package/src/api/{vendor → core/vendor}/composer/installed.json +0 -0
  25. /package/src/api/{vendor → core/vendor}/composer/installed.php +0 -0
  26. /package/src/api/{vendor → core/vendor}/composer/platform_check.php +0 -0
  27. /package/src/api/{vendor → core/vendor}/graham-campbell/result-type/.gitattributes +0 -0
  28. /package/src/api/{vendor → core/vendor}/graham-campbell/result-type/.github/CODE_OF_CONDUCT.md +0 -0
  29. /package/src/api/{vendor → core/vendor}/graham-campbell/result-type/.github/CONTRIBUTING.md +0 -0
  30. /package/src/api/{vendor → core/vendor}/graham-campbell/result-type/.github/FUNDING.yml +0 -0
  31. /package/src/api/{vendor → core/vendor}/graham-campbell/result-type/.github/SECURITY.md +0 -0
  32. /package/src/api/{vendor → core/vendor}/graham-campbell/result-type/.github/workflows/stale.yml +0 -0
  33. /package/src/api/{vendor → core/vendor}/graham-campbell/result-type/.github/workflows/tests.yml +0 -0
  34. /package/src/api/{vendor → core/vendor}/graham-campbell/result-type/CHANGELOG.md +0 -0
  35. /package/src/api/{vendor → core/vendor}/graham-campbell/result-type/LICENSE +0 -0
  36. /package/src/api/{vendor → core/vendor}/graham-campbell/result-type/README.md +0 -0
  37. /package/src/api/{vendor → core/vendor}/graham-campbell/result-type/composer.json +0 -0
  38. /package/src/api/{vendor → core/vendor}/graham-campbell/result-type/phpunit.xml.dist +0 -0
  39. /package/src/api/{vendor → core/vendor}/graham-campbell/result-type/src/Error.php +0 -0
  40. /package/src/api/{vendor → core/vendor}/graham-campbell/result-type/src/Result.php +0 -0
  41. /package/src/api/{vendor → core/vendor}/graham-campbell/result-type/src/Success.php +0 -0
  42. /package/src/api/{vendor → core/vendor}/graham-campbell/result-type/tests/ResultTest.php +0 -0
  43. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/.codecov.yml +0 -0
  44. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/.editorconfig +0 -0
  45. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/.gitattributes +0 -0
  46. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/.github/FUNDING.yml +0 -0
  47. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  48. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/.github/actions/build-docs/Dockerfile +0 -0
  49. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/.github/actions/build-docs/entrypoint.sh +0 -0
  50. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/.github/dependabot.yml +0 -0
  51. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/.github/workflows/docs.yaml +0 -0
  52. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/.github/workflows/scorecards.yml +0 -0
  53. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/.github/workflows/tests.yml +0 -0
  54. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/.phan/config.php +0 -0
  55. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/COMMITMENT +0 -0
  56. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/LICENSE +0 -0
  57. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/README.md +0 -0
  58. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/SECURITY.md +0 -0
  59. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/SMTPUTF8.md +0 -0
  60. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/UPGRADING.md +0 -0
  61. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/VERSION +0 -0
  62. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/changelog.md +0 -0
  63. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/composer.json +0 -0
  64. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/docs/README.md +0 -0
  65. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/DKIM_gen_keys.phps +0 -0
  66. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/DKIM_sign.phps +0 -0
  67. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/README.md +0 -0
  68. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/azure_xoauth2.phps +0 -0
  69. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/callback.phps +0 -0
  70. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/contactform-ajax.phps +0 -0
  71. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/contactform.phps +0 -0
  72. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/contents.html +0 -0
  73. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/contentsutf8.html +0 -0
  74. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/exceptions.phps +0 -0
  75. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/extending.phps +0 -0
  76. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/gmail.phps +0 -0
  77. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/gmail_xoauth.phps +0 -0
  78. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/images/PHPMailer card logo.afdesign +0 -0
  79. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/images/PHPMailer card logo.png +0 -0
  80. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/images/PHPMailer card logo.svg +0 -0
  81. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/images/phpmailer.png +0 -0
  82. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/images/phpmailer_mini.png +0 -0
  83. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/mail.phps +0 -0
  84. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/mailing_list.phps +0 -0
  85. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/pop_before_smtp.phps +0 -0
  86. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/send_file_upload.phps +0 -0
  87. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/send_multiple_file_upload.phps +0 -0
  88. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/sendmail.phps +0 -0
  89. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/sendoauth2.phps +0 -0
  90. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/simple_contact_form.phps +0 -0
  91. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/smime_signed_mail.phps +0 -0
  92. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/smtp.phps +0 -0
  93. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/smtp_check.phps +0 -0
  94. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/smtp_low_memory.phps +0 -0
  95. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/smtp_no_auth.phps +0 -0
  96. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/ssl_options.phps +0 -0
  97. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/get_oauth_token.php +0 -0
  98. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-af.php +0 -0
  99. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-ar.php +0 -0
  100. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-as.php +0 -0
  101. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-az.php +0 -0
  102. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-ba.php +0 -0
  103. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-be.php +0 -0
  104. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-bg.php +0 -0
  105. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-bn.php +0 -0
  106. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-ca.php +0 -0
  107. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-cs.php +0 -0
  108. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-da.php +0 -0
  109. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-de.php +0 -0
  110. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-el.php +0 -0
  111. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-eo.php +0 -0
  112. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-es.php +0 -0
  113. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-et.php +0 -0
  114. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-fa.php +0 -0
  115. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-fi.php +0 -0
  116. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-fo.php +0 -0
  117. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-fr.php +0 -0
  118. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-gl.php +0 -0
  119. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-he.php +0 -0
  120. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-hi.php +0 -0
  121. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-hr.php +0 -0
  122. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-hu.php +0 -0
  123. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-hy.php +0 -0
  124. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-id.php +0 -0
  125. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-it.php +0 -0
  126. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-ja.php +0 -0
  127. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-ka.php +0 -0
  128. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-ko.php +0 -0
  129. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-ku.php +0 -0
  130. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-lt.php +0 -0
  131. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-lv.php +0 -0
  132. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-mg.php +0 -0
  133. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-mn.php +0 -0
  134. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-ms.php +0 -0
  135. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-nb.php +0 -0
  136. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-nl.php +0 -0
  137. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-pl.php +0 -0
  138. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-pt.php +0 -0
  139. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-pt_br.php +0 -0
  140. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-ro.php +0 -0
  141. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-ru.php +0 -0
  142. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-si.php +0 -0
  143. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-sk.php +0 -0
  144. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-sl.php +0 -0
  145. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-sr.php +0 -0
  146. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-sr_latn.php +0 -0
  147. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-sv.php +0 -0
  148. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-tl.php +0 -0
  149. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-tr.php +0 -0
  150. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-uk.php +0 -0
  151. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-ur.php +0 -0
  152. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-vi.php +0 -0
  153. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-zh.php +0 -0
  154. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-zh_cn.php +0 -0
  155. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/phpcs.xml.dist +0 -0
  156. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/phpdoc.dist.xml +0 -0
  157. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/phpunit.xml.dist +0 -0
  158. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/src/DSNConfigurator.php +0 -0
  159. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/src/Exception.php +0 -0
  160. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/src/OAuth.php +0 -0
  161. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/src/OAuthTokenProvider.php +0 -0
  162. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/src/PHPMailer.php +0 -0
  163. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/src/POP3.php +0 -0
  164. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/src/SMTP.php +0 -0
  165. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/DebugLogTestListener.php +0 -0
  166. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/Fixtures/FileIsAccessibleTest/accessible.txt +0 -0
  167. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/Fixtures/FileIsAccessibleTest/inaccessible.txt +0 -0
  168. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-fr.php +0 -0
  169. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-nl.php +0 -0
  170. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-xa_scri_cc.php +0 -0
  171. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-xb_scri.php +0 -0
  172. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-xc_cc.php +0 -0
  173. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-xd_cc.php +0 -0
  174. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-xd_scri.php +0 -0
  175. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-xe.php +0 -0
  176. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-xx.php +0 -0
  177. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-yy.php +0 -0
  178. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-yz.php +0 -0
  179. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-zz.php +0 -0
  180. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/Language/TranslationCompletenessTest.php +0 -0
  181. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/OAuth/OAuthTest.php +0 -0
  182. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/AddEmbeddedImageTest.php +0 -0
  183. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/AddStringAttachmentTest.php +0 -0
  184. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/AddStringEmbeddedImageTest.php +0 -0
  185. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/AddrFormatTest.php +0 -0
  186. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/AuthCRAMMD5Test.php +0 -0
  187. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/CustomHeaderTest.php +0 -0
  188. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/DKIMTest.php +0 -0
  189. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/DKIMWithoutExceptionsTest.php +0 -0
  190. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/DSNConfiguratorTest.php +0 -0
  191. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/EncodeQTest.php +0 -0
  192. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/EncodeStringTest.php +0 -0
  193. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/FileIsAccessibleTest.php +0 -0
  194. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/FilenameToTypeTest.php +0 -0
  195. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/GenerateIdTest.php +0 -0
  196. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/GetLastMessageIDTest.php +0 -0
  197. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/HasLineLongerThanMaxTest.php +0 -0
  198. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/Html2TextTest.php +0 -0
  199. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/ICalTest.php +0 -0
  200. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/IsPermittedPathTest.php +0 -0
  201. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/IsValidHostTest.php +0 -0
  202. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/LocalizationTest.php +0 -0
  203. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/MailTransportTest.php +0 -0
  204. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/MbPathinfoTest.php +0 -0
  205. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/MimeTypesTest.php +0 -0
  206. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/NormalizeBreaksTest.php +0 -0
  207. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/PHPMailerTest.php +0 -0
  208. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/ParseAddressesTest.php +0 -0
  209. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/PunyencodeAddressTest.php +0 -0
  210. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/QuotedStringTest.php +0 -0
  211. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/ReplyToGetSetClearTest.php +0 -0
  212. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/SetErrorTest.php +0 -0
  213. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/SetFromTest.php +0 -0
  214. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/SetTest.php +0 -0
  215. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/SetWordWrapTest.php +0 -0
  216. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/Utf8CharBoundaryTest.php +0 -0
  217. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/ValidateAddressCustomValidatorTest.php +0 -0
  218. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/ValidateAddressTest.php +0 -0
  219. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/WrapTextTest.php +0 -0
  220. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/XMailerTest.php +0 -0
  221. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/POP3/PopBeforeSmtpTest.php +0 -0
  222. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PreSendTestCase.php +0 -0
  223. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/Security/DenialOfServiceVectorsTest.php +0 -0
  224. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/SendTestCase.php +0 -0
  225. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/TestCase.php +0 -0
  226. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/fakepopserver.sh +0 -0
  227. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/fakesendmail.sh +0 -0
  228. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/runfakepopserver.sh +0 -0
  229. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/testbootstrap-dist.php +0 -0
  230. /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/validators.php +0 -0
  231. /package/src/api/{vendor → core/vendor}/phpoption/phpoption/.gitattributes +0 -0
  232. /package/src/api/{vendor → core/vendor}/phpoption/phpoption/.github/CODE_OF_CONDUCT.md +0 -0
  233. /package/src/api/{vendor → core/vendor}/phpoption/phpoption/.github/CONTRIBUTING.md +0 -0
  234. /package/src/api/{vendor → core/vendor}/phpoption/phpoption/.github/FUNDING.yml +0 -0
  235. /package/src/api/{vendor → core/vendor}/phpoption/phpoption/.github/SECURITY.md +0 -0
  236. /package/src/api/{vendor → core/vendor}/phpoption/phpoption/.github/workflows/static.yml +0 -0
  237. /package/src/api/{vendor → core/vendor}/phpoption/phpoption/.github/workflows/tests.yml +0 -0
  238. /package/src/api/{vendor → core/vendor}/phpoption/phpoption/LICENSE +0 -0
  239. /package/src/api/{vendor → core/vendor}/phpoption/phpoption/Makefile +0 -0
  240. /package/src/api/{vendor → core/vendor}/phpoption/phpoption/README.md +0 -0
  241. /package/src/api/{vendor → core/vendor}/phpoption/phpoption/composer.json +0 -0
  242. /package/src/api/{vendor → core/vendor}/phpoption/phpoption/phpstan-baseline.neon +0 -0
  243. /package/src/api/{vendor → core/vendor}/phpoption/phpoption/phpstan.neon.dist +0 -0
  244. /package/src/api/{vendor → core/vendor}/phpoption/phpoption/phpunit.xml.dist +0 -0
  245. /package/src/api/{vendor → core/vendor}/phpoption/phpoption/src/PhpOption/LazyOption.php +0 -0
  246. /package/src/api/{vendor → core/vendor}/phpoption/phpoption/src/PhpOption/None.php +0 -0
  247. /package/src/api/{vendor → core/vendor}/phpoption/phpoption/src/PhpOption/Option.php +0 -0
  248. /package/src/api/{vendor → core/vendor}/phpoption/phpoption/src/PhpOption/Some.php +0 -0
  249. /package/src/api/{vendor → core/vendor}/phpoption/phpoption/tests/PhpOption/Tests/EnsureTest.php +0 -0
  250. /package/src/api/{vendor → core/vendor}/phpoption/phpoption/tests/PhpOption/Tests/LazyOptionTest.php +0 -0
  251. /package/src/api/{vendor → core/vendor}/phpoption/phpoption/tests/PhpOption/Tests/NoneTest.php +0 -0
  252. /package/src/api/{vendor → core/vendor}/phpoption/phpoption/tests/PhpOption/Tests/OptionTest.php +0 -0
  253. /package/src/api/{vendor → core/vendor}/phpoption/phpoption/tests/PhpOption/Tests/SomeTest.php +0 -0
  254. /package/src/api/{vendor → core/vendor}/phpoption/phpoption/tests/bootstrap.php +0 -0
  255. /package/src/api/{vendor → core/vendor}/phpoption/phpoption/vendor-bin/phpstan/composer.json +0 -0
  256. /package/src/api/{vendor → core/vendor}/symfony/polyfill-ctype/Ctype.php +0 -0
  257. /package/src/api/{vendor → core/vendor}/symfony/polyfill-ctype/LICENSE +0 -0
  258. /package/src/api/{vendor → core/vendor}/symfony/polyfill-ctype/README.md +0 -0
  259. /package/src/api/{vendor → core/vendor}/symfony/polyfill-ctype/bootstrap.php +0 -0
  260. /package/src/api/{vendor → core/vendor}/symfony/polyfill-ctype/bootstrap80.php +0 -0
  261. /package/src/api/{vendor → core/vendor}/symfony/polyfill-ctype/composer.json +0 -0
  262. /package/src/api/{vendor → core/vendor}/symfony/polyfill-mbstring/LICENSE +0 -0
  263. /package/src/api/{vendor → core/vendor}/symfony/polyfill-mbstring/Mbstring.php +0 -0
  264. /package/src/api/{vendor → core/vendor}/symfony/polyfill-mbstring/README.md +0 -0
  265. /package/src/api/{vendor → core/vendor}/symfony/polyfill-mbstring/Resources/unidata/caseFolding.php +0 -0
  266. /package/src/api/{vendor → core/vendor}/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php +0 -0
  267. /package/src/api/{vendor → core/vendor}/symfony/polyfill-mbstring/Resources/unidata/titleCaseRegexp.php +0 -0
  268. /package/src/api/{vendor → core/vendor}/symfony/polyfill-mbstring/Resources/unidata/upperCase.php +0 -0
  269. /package/src/api/{vendor → core/vendor}/symfony/polyfill-mbstring/bootstrap.php +0 -0
  270. /package/src/api/{vendor → core/vendor}/symfony/polyfill-mbstring/bootstrap80.php +0 -0
  271. /package/src/api/{vendor → core/vendor}/symfony/polyfill-mbstring/composer.json +0 -0
  272. /package/src/api/{vendor → core/vendor}/symfony/polyfill-php80/LICENSE +0 -0
  273. /package/src/api/{vendor → core/vendor}/symfony/polyfill-php80/Php80.php +0 -0
  274. /package/src/api/{vendor → core/vendor}/symfony/polyfill-php80/PhpToken.php +0 -0
  275. /package/src/api/{vendor → core/vendor}/symfony/polyfill-php80/README.md +0 -0
  276. /package/src/api/{vendor → core/vendor}/symfony/polyfill-php80/Resources/stubs/Attribute.php +0 -0
  277. /package/src/api/{vendor → core/vendor}/symfony/polyfill-php80/Resources/stubs/PhpToken.php +0 -0
  278. /package/src/api/{vendor → core/vendor}/symfony/polyfill-php80/Resources/stubs/Stringable.php +0 -0
  279. /package/src/api/{vendor → core/vendor}/symfony/polyfill-php80/Resources/stubs/UnhandledMatchError.php +0 -0
  280. /package/src/api/{vendor → core/vendor}/symfony/polyfill-php80/Resources/stubs/ValueError.php +0 -0
  281. /package/src/api/{vendor → core/vendor}/symfony/polyfill-php80/bootstrap.php +0 -0
  282. /package/src/api/{vendor → core/vendor}/symfony/polyfill-php80/composer.json +0 -0
  283. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/.editorconfig +0 -0
  284. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/.gitattributes +0 -0
  285. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/.github/CODE_OF_CONDUCT.md +0 -0
  286. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/.github/CONTRIBUTING.md +0 -0
  287. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/.github/FUNDING.yml +0 -0
  288. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/.github/SECURITY.md +0 -0
  289. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/.github/workflows/static.yml +0 -0
  290. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/.github/workflows/tests.yml +0 -0
  291. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/LICENSE +0 -0
  292. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/Makefile +0 -0
  293. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/README.md +0 -0
  294. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/UPGRADING.md +0 -0
  295. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/composer.json +0 -0
  296. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/phpstan-baseline.neon +0 -0
  297. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/phpstan.neon.dist +0 -0
  298. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/phpunit.xml.dist +0 -0
  299. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Dotenv.php +0 -0
  300. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Exception/ExceptionInterface.php +0 -0
  301. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Exception/InvalidEncodingException.php +0 -0
  302. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Exception/InvalidFileException.php +0 -0
  303. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Exception/InvalidPathException.php +0 -0
  304. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Exception/ValidationException.php +0 -0
  305. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Loader/Loader.php +0 -0
  306. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Loader/LoaderInterface.php +0 -0
  307. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Loader/Resolver.php +0 -0
  308. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Parser/Entry.php +0 -0
  309. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Parser/EntryParser.php +0 -0
  310. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Parser/Lexer.php +0 -0
  311. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Parser/Lines.php +0 -0
  312. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Parser/Parser.php +0 -0
  313. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Parser/ParserInterface.php +0 -0
  314. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Parser/Value.php +0 -0
  315. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Repository/Adapter/AdapterInterface.php +0 -0
  316. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Repository/Adapter/ApacheAdapter.php +0 -0
  317. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Repository/Adapter/ArrayAdapter.php +0 -0
  318. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Repository/Adapter/EnvConstAdapter.php +0 -0
  319. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Repository/Adapter/GuardedWriter.php +0 -0
  320. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Repository/Adapter/ImmutableWriter.php +0 -0
  321. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Repository/Adapter/MultiReader.php +0 -0
  322. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Repository/Adapter/MultiWriter.php +0 -0
  323. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Repository/Adapter/PutenvAdapter.php +0 -0
  324. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Repository/Adapter/ReaderInterface.php +0 -0
  325. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Repository/Adapter/ReplacingWriter.php +0 -0
  326. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Repository/Adapter/ServerConstAdapter.php +0 -0
  327. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Repository/Adapter/WriterInterface.php +0 -0
  328. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Repository/AdapterRepository.php +0 -0
  329. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Repository/RepositoryBuilder.php +0 -0
  330. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Repository/RepositoryInterface.php +0 -0
  331. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Store/File/Paths.php +0 -0
  332. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Store/File/Reader.php +0 -0
  333. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Store/FileStore.php +0 -0
  334. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Store/StoreBuilder.php +0 -0
  335. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Store/StoreInterface.php +0 -0
  336. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Store/StringStore.php +0 -0
  337. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Util/Regex.php +0 -0
  338. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Util/Str.php +0 -0
  339. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Validator.php +0 -0
  340. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/Dotenv/DotenvTest.php +0 -0
  341. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/Dotenv/Loader/LoaderTest.php +0 -0
  342. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/Dotenv/Parser/EntryParserTest.php +0 -0
  343. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/Dotenv/Parser/LexerTest.php +0 -0
  344. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/Dotenv/Parser/LinesTest.php +0 -0
  345. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/Dotenv/Parser/ParserTest.php +0 -0
  346. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/Dotenv/Repository/Adapter/ArrayAdapterTest.php +0 -0
  347. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/Dotenv/Repository/Adapter/EnvConstAdapterTest.php +0 -0
  348. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/Dotenv/Repository/Adapter/PutenvAdapterTest.php +0 -0
  349. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/Dotenv/Repository/Adapter/ServerConstAdapterTest.php +0 -0
  350. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/Dotenv/Repository/RepositoryTest.php +0 -0
  351. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/Dotenv/Store/StoreTest.php +0 -0
  352. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/Dotenv/ValidatorTest.php +0 -0
  353. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/fixtures/env/.env +0 -0
  354. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/fixtures/env/assertions.env +0 -0
  355. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/fixtures/env/booleans.env +0 -0
  356. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/fixtures/env/commented.env +0 -0
  357. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/fixtures/env/empty.env +0 -0
  358. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/fixtures/env/example.env +0 -0
  359. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/fixtures/env/exported.env +0 -0
  360. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/fixtures/env/immutable.env +0 -0
  361. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/fixtures/env/integers.env +0 -0
  362. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/fixtures/env/large.env +0 -0
  363. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/fixtures/env/multibyte.env +0 -0
  364. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/fixtures/env/multiline.env +0 -0
  365. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/fixtures/env/multiple.env +0 -0
  366. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/fixtures/env/mutable.env +0 -0
  367. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/fixtures/env/nested.env +0 -0
  368. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/fixtures/env/quoted.env +0 -0
  369. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/fixtures/env/specialchars.env +0 -0
  370. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/fixtures/env/unicodevarnames.env +0 -0
  371. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/fixtures/env/utf8-with-bom-encoding.env +0 -0
  372. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/fixtures/env/windows.env +0 -0
  373. /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/vendor-bin/phpstan/composer.json +0 -0
package/.eleventy.js CHANGED
@@ -4,7 +4,7 @@ const Image = require("@11ty/eleventy-img");
4
4
  const fs = require("fs");
5
5
  const path = require("path");
6
6
 
7
- const OUTPUT_DIR = "out";
7
+ const OUTPUT_DIR = "c:/laragon/www/Berna-Stencil-out";
8
8
 
9
9
  module.exports = function (eleventyConfig) {
10
10
 
package/bin/create.js CHANGED
@@ -18,7 +18,7 @@ const COPY_TARGETS = [
18
18
 
19
19
  const PROJECT_PACKAGE = {
20
20
  name: path.basename(targetDir),
21
- version: '1.0.12',
21
+ version: '1.0.14',
22
22
  private: true,
23
23
  scripts: {
24
24
  'build:css': 'sass src/scss:out/css --no-source-map --style=compressed --quiet',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-berna-stencil",
3
- "version": "1.0.12",
3
+ "version": "1.0.14",
4
4
  "description": "Eleventy boilerplate with per-page SCSS/JS pipeline, esbuild bundling, multi-framework CSS support and a built-in page management CLI",
5
5
  "keywords": [
6
6
  "eleventy",
@@ -58,12 +58,12 @@
58
58
  "sass": "^1.77.0"
59
59
  },
60
60
  "scripts": {
61
- "build:css": "sass src/scss:out/css --no-source-map --style=compressed --quiet",
62
- "build:js": "esbuild \"src/js/pages/*.js\" --bundle --outdir=out/js/pages --minify",
61
+ "build:css": "sass src/scss:c:/laragon/www/Berna-Stencil-out/css --no-source-map --style=compressed --quiet",
62
+ "build:js": "esbuild \"src/js/pages/*.js\" --bundle --outdir=c:/laragon/www/Berna-Stencil-out/js/pages --minify",
63
63
  "build:11ty": "eleventy",
64
64
  "build": "npm run build:css && npm run build:js && npm run build:11ty",
65
- "serve:css": "sass --watch src/scss:out/css --no-source-map --quiet",
66
- "serve:js": "esbuild \"src/js/pages/*.js\" --bundle --outdir=out/js/pages --watch",
65
+ "serve:css": "sass --watch src/scss:c:/laragon/www/Berna-Stencil-out/css --no-source-map --quiet",
66
+ "serve:js": "esbuild \"src/js/pages/*.js\" --bundle --outdir=c:/laragon/www/Berna-Stencil-out/js/pages --watch",
67
67
  "serve:11ty": "eleventy --serve --quiet",
68
68
  "clean": "node _tools/cleanOutput.js",
69
69
  "serve": "npm run clean && concurrently \"npm run serve:11ty\" \"npm run serve:css\" \"npm run serve:js\"",
package/src/api/.htaccess CHANGED
@@ -2,11 +2,17 @@
2
2
  RewriteEngine On
3
3
  RewriteBase /api/
4
4
 
5
- # Non processare file reali (immagini, vendor, ecc.)
6
- RewriteCond %{REQUEST_FILENAME} -f [OR]
7
- RewriteCond %{REQUEST_FILENAME} -d
8
- RewriteRule ^ - [L]
5
+ # 1. Proteggi i file sensibili (come .env o file di log)
6
+ <FilesMatch "^\.env|composer\.(json|lock)$">
7
+ Require all denied
8
+ </FilesMatch>
9
9
 
10
- # Tutto il resto va a index.php
10
+ # 2. Impedisce l'accesso diretto alla cartella core e endpoints
11
+ # Se qualcuno cerca di navigare in queste cartelle, becca un 403
12
+ RewriteRule ^(core|endpoints|modules)($|/) - [F,L]
13
+
14
+ # 3. Regola standard per il routing verso il motore
15
+ RewriteCond %{REQUEST_FILENAME} !-f
16
+ RewriteCond %{REQUEST_FILENAME} !-d
11
17
  RewriteRule ^(.*)$ index.php [QSA,L]
12
18
  </IfModule>
@@ -0,0 +1,2 @@
1
+ # Impedisce a chiunque di accedere a questa cartella tramite URL
2
+ Require all denied
@@ -2,6 +2,11 @@
2
2
 
3
3
  declare(strict_types=1);
4
4
 
5
+ if (!defined('CORE_ACCESS')) {
6
+ http_response_code(403);
7
+ die('Accesso diretto non consentito.');
8
+ }
9
+
5
10
  require_once __DIR__ . '/vendor/autoload.php';
6
11
  require_once __DIR__ . '/modules/Response.php';
7
12
 
@@ -21,9 +26,9 @@ set_error_handler(function ($severity, $message, $file, $line) {
21
26
  });
22
27
 
23
28
  // --- CARICAMENTO DOTENV ---
24
- // dirname(__DIR__, 1) sale di un livello (da api/ a Berna-Stencil-out/)
29
+ // dirname(__DIR__, 2) sale di un livello (da api/ a Berna-Stencil-out/)
25
30
  try {
26
- $dotenv = Dotenv\Dotenv::createImmutable(dirname(__DIR__, 1));
31
+ $dotenv = Dotenv\Dotenv::createImmutable(dirname(__DIR__, 2));
27
32
  $dotenv->load();
28
33
  } catch (Exception $e) {
29
34
  Response::error("Impossibile caricare il file .env. Assicurati che esista nella root e si chiami esattamente .env", 500);
@@ -2,7 +2,7 @@
2
2
 
3
3
  declare(strict_types=1);
4
4
 
5
- require_once __DIR__ . '/../../modules/Response.php';
5
+ require_once __DIR__ . '/../../core/modules/Response.php';
6
6
 
7
7
  if ($method !== 'GET') {
8
8
  Response::error('Method not allowed', 405);
@@ -2,7 +2,7 @@
2
2
 
3
3
  declare(strict_types=1);
4
4
 
5
- require_once __DIR__ . '/../../modules/Response.php';
5
+ require_once __DIR__ . '/../../core/modules/Response.php';
6
6
 
7
7
  if ($method !== 'GET') {
8
8
  Response::error('Method not allowed', 405);
package/src/api/index.php CHANGED
@@ -2,11 +2,13 @@
2
2
 
3
3
  declare(strict_types=1);
4
4
 
5
+ define('CORE_ACCESS', true);
6
+
5
7
  /**
6
8
  * Caricamento delle dipendenze e configurazione iniziale.
7
9
  */
8
- require_once __DIR__ . '/init.php';
9
- require_once __DIR__ . '/modules/Response.php';
10
+ require_once __DIR__ . '/core/init.php';
11
+ require_once __DIR__ . '/core/modules/Response.php';
10
12
 
11
13
  // =====================================================
12
14
  // 1. ANALISI DELLA RICHIESTA (REQUEST PARSING)
@@ -1,75 +0,0 @@
1
- <?php
2
-
3
- declare(strict_types=1);
4
-
5
- use PHPMailer\PHPMailer\PHPMailer;
6
- use PHPMailer\PHPMailer\Exception;
7
-
8
- /**
9
- * NOTA: Non serve require 'vendor/autoload.php' o 'init.php'
10
- * perché questo file viene incluso da index.php che ha già caricato tutto.
11
- */
12
-
13
- // 1. Controllo Metodo (Vogliamo solo POST)
14
- if ($method !== 'POST') {
15
- Response::error('Method not allowed', 405);
16
- }
17
-
18
- // 2. Funzioni di Sanitizzazione (Locali o spostabili in un helper)
19
- $clean = fn($v) => htmlspecialchars(trim((string)($v ?? '')), ENT_QUOTES, 'UTF-8');
20
- $safeNum = fn($v) => filter_var($v ?? '', FILTER_SANITIZE_NUMBER_INT);
21
-
22
- // 3. Recupero Dati (supporta sia $_POST standard che JSON)
23
- $input = $_POST;
24
- if (empty($input)) {
25
- $input = json_decode(file_get_contents('php://input'), true) ?? [];
26
- }
27
-
28
- $formType = $clean($input['formType'] ?? 'Contatto Generico');
29
- $name = $clean($input['name'] ?? '');
30
- $phoneNumber = $safeNum($input['phoneNumber'] ?? '');
31
-
32
- // Validazione minima
33
- if (empty($name)) {
34
- Response::error('Il campo nome è obbligatorio');
35
- }
36
-
37
- // 4. Configurazione PHPMailer
38
- $mail = new PHPMailer(true);
39
-
40
- try {
41
- // Usiamo le variabili d'ambiente caricate da init.php
42
- $mail->isSMTP();
43
- $mail->Host = $_ENV['MAIL_HOST'];
44
- $mail->SMTPAuth = true;
45
- $mail->Username = $_ENV['MAIL_USERNAME'];
46
- $mail->Password = $_ENV['MAIL_PASSWORD'];
47
- $mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS;
48
- $mail->Port = (int)$_ENV['MAIL_PORT'];
49
- $mail->CharSet = 'UTF-8';
50
-
51
- $mail->setFrom($_ENV['MAIL_USERNAME'], $_ENV['MAIL_FROM_NAME'] ?? 'API Robot');
52
- $mail->addAddress($_ENV['MAIL_TO_ADDRESS'], $_ENV['MAIL_TO_NAME'] ?? 'Admin');
53
-
54
- $mail->isHTML(true);
55
- $mail->Subject = "Nuovo invio modulo: {$formType}";
56
-
57
- // Costruzione Body
58
- $htmlBody = "<h2>Dettagli Richiesta</h2>";
59
- $htmlBody .= "<p><strong>Nome:</strong> {$name}</p>";
60
- if (!empty($phoneNumber)) {
61
- $htmlBody .= "<p><strong>Telefono:</strong> {$phoneNumber}</p>";
62
- }
63
-
64
- $mail->Body = $htmlBody;
65
- $mail->AltBody = strip_tags(str_replace(['<br>', '</p>'], ["\n", "\n\n"], $htmlBody));
66
-
67
- $mail->send();
68
-
69
- // Risposta JSON di successo
70
- Response::success(['message' => 'Email inviata con successo']);
71
-
72
- } catch (Exception $e) {
73
- // Risposta JSON di errore
74
- Response::error("Errore nell'invio della mail: {$mail->ErrorInfo}", 500);
75
- }
File without changes
File without changes
File without changes
File without changes