hoodcms 6.0.8 → 6.0.9

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.
package/src/js/login.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * hoodcms v6.0.8
2
+ * hoodcms v6.0.9
3
3
  * A fully customisable content management system built in ASP.NET Core 5 & Bootstrap 5.
4
4
  * Written by George Whysall, 2022
5
5
  * Released under the GPL-3.0 License.
@@ -174,7 +174,7 @@ export class MediaService {
174
174
  thumbnailHeight: 80,
175
175
  parallelUploads: 5,
176
176
  paramName: 'files',
177
- acceptedFiles: $("#media-upload").data('types') || ".png,.jpg,.jpeg,.gif",
177
+ acceptedFiles: $("#media-upload").data('types') || ".png,.jpg,.jpeg,.gif,.pdf",
178
178
  autoProcessQueue: true, // Make sure the files aren't queued until manually added
179
179
  previewsContainer: false, // Define the container to display the previews
180
180
  clickable: "#media-add", // Define the element that should be used as click trigger to select files.
@@ -4,9 +4,9 @@ import { Alerts } from '../core/Alerts';
4
4
  declare global {
5
5
  interface JQuery {
6
6
  exists(): number;
7
- restrictToSlug(): void;
8
- restrictToPageSlug(): void;
9
- restrictToMetaSlug(): void;
7
+ restrictToSlug(restrictPattern?: RegExp): void;
8
+ restrictToPageSlug(restrictPattern?: RegExp): void;
9
+ restrictToMetaSlug(restrictPattern?: RegExp): void;
10
10
  characterCounter(): void;
11
11
  warningAlert(): void;
12
12
  }