This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "openapi": "3.0.1", | |
| "info": { | |
| "title": "Umbraco Delivery API", | |
| "description": "You can find out more about the Umbraco Delivery API in [the documentation](https://docs.umbraco.com/umbraco-cms/reference/content-delivery-api).", | |
| "version": "Latest" | |
| }, | |
| "paths": { | |
| "/umbraco/delivery/api/v1/content": { | |
| "get": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PRINT '==============================================' | |
| PRINT 'CLEARING LOG AND AUDIT TABLES' | |
| PRINT '==============================================' | |
| GO | |
| PRINT '==============================================' | |
| PRINT 'TRUNCATE TABLE umbracoLog' | |
| PRINT '==============================================' | |
| GO |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| setInterval(function() { window.scrollTo(0, document.body.scrollHeight); Array.from(document.querySelectorAll('button span')) | |
| .filter(el => el.textContent === 'unhide').forEach(el=>el.click()); }, 1000); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "uSync": { | |
| "ForceFips": true, | |
| "Settings": { | |
| "RootFolder": "uSync/v9/", | |
| "DefaultSet": "Default", | |
| "ImportAtStartup": "None", | |
| "ExportAtStartup": "None", | |
| "ExportOnSave": "All", | |
| "UiEnabledGroups": "All", | |
| "ReportDebug": false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using Hangfire; | |
| using Hangfire.Console; | |
| using Hangfire.SqlServer; | |
| using Microsoft.AspNetCore.Builder; | |
| using Microsoft.Extensions.Configuration; | |
| using Microsoft.Extensions.DependencyInjection; | |
| using Umbraco.Cms.Core.Composing; | |
| using Umbraco.Cms.Core.DependencyInjection; | |
| using Umbraco.Cms.Web.BackOffice.Authorization; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| truncate table [dbo].[cmsMember2MemberGroup] | |
| delete from [dbo].[cmsmember] | |
| delete from [dbo].[vendrOrderAppliedDiscount] | |
| delete from [dbo].[vendrOrderAppliedDiscountCode] | |
| delete from [dbo].[vendrOrderAppliedGiftCard] | |
| delete from [dbo].[vendrorderlineproperty] | |
| delete from [dbo].[vendrorderline] | |
| delete from [dbo].[vendrFrozenPrice] | |
| delete from [dbo].[vendrOrderProperty] | |
| delete from [dbo].[vendrorder] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #umb-grid .umb-card-grid.-four-in-row, | |
| #umb-grid .umb-card-grid.-three-in-row { | |
| flex-flow: column wrap; | |
| } | |
| #umb-grid .umb-card-grid.-four-in-row .umb-card-grid-item, | |
| #umb-grid .umb-card-grid.-three-in-row .umb-card-grid-item { | |
| padding-top: 12%; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static class PagingExtensions | |
| { | |
| public static IEnumerable<T> Page<T>(this IEnumerable<T> list, int pageSize, int page) | |
| { | |
| return list.Skip((page - 1) * pageSize).Take(pageSize); | |
| } | |
| public static IQueryable<T> Page<T>(this IQueryable<T> list, int pageSize, int page) | |
| { | |
| return list.Skip((page - 1) * pageSize).Take(pageSize); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @model PaginationModel | |
| @if (Model == null || Model.PageCount <= 1) { return; } | |
| <ul class="pagination"> | |
| @foreach (var link in Model.PaginationLinks) | |
| { | |
| @BuildLink(link) | |
| } | |
| </ul> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Linq; | |
| using Umbraco.Core; | |
| using Umbraco.Core.Models; | |
| using Umbraco.Web; | |
| using Umbraco.Web.Routing; | |
| namespace Business.ContentFinders | |
| { | |
| public class LastChanceContentFinder : IContentFinder | |
| { |
NewerOlder