I hereby claim:
-
I am sniffdk on github.
-
I am sniffdk (https://keybase.io/sniffdk) on keybase.
-
I have a public key ASBZAFC_yIlaOhmzIQ87-JL9NJP3ehfKL8RXsW9OmDIjwQo
public class ContentCopierAppComponent : IUserComposer | |
{ | |
public void Compose(Composition composition) | |
{ | |
composition.ContentApps().Append<ContentCopierApp>(); | |
} | |
} | |
public class ContentCopierApp : IContentAppFactory | |
{ |
I hereby claim:
I am sniffdk on github.
I am sniffdk (https://keybase.io/sniffdk) on keybase.
I have a public key ASBZAFC_yIlaOhmzIQ87-JL9NJP3ehfKL8RXsW9OmDIjwQo
public class DetachedIdPublishedContent : DetachedPublishedContent | |
{ | |
public DetachedIdPublishedContent(int id, Guid key, string name, PublishedContentType contentType, IEnumerable<IPublishedProperty> properties, IPublishedContent containerNode = null, int sortOrder = 0, bool isPreviewing = false) | |
: base(key, name, contentType, properties, containerNode, sortOrder, isPreviewing) | |
{ | |
Id = id; | |
} | |
public override int Id { get; } | |
} |
public class PdfModule : IHttpModule | |
{ | |
public void Init(HttpApplication context) | |
{ | |
context.PostAuthorizeRequest += PostAuthorizeRequest; | |
} | |
void PostAuthorizeRequest(object sender, EventArgs e) | |
{ | |
var context = HttpContext.Current; |
angular.module("umbraco").controller("SimpleDropDown", | |
function ($scope) { | |
}); |
private static string baseUrl = "https://playgroundapi.ost.com"; | |
private static string key = "xxx"; | |
var name = "apiuser"; | |
var timestamp = DateTimeOffset.UtcNow.ToUnixTimeSeconds().ToString(); | |
var request = $"/users/create?api_key={key}&name={name}&request_timestamp={timestamp}"; | |
var signature = Sign(request); | |
var values = new Dictionary<string, string> |
-- https://stackoverflow.com/a/4341677/701242 | |
UPDATE [table] | |
SET [column] = CAST(REPLACE(CAST([column] as NVarchar(MAX)),'find','replace') AS NText) | |
WHERE [column] LIKE '%find%' |
0451e06107fce07bfdf8128a88173cf75575dc07c8949bb28f53c76e2481ae80fe7ac196389a4626c5e12abddf45986b875b6c9f2f39beab372a16bc295a97b2b2 |
The basic idea is, that I want to avoid writing html in the tag helper class. | |
This poc, if it worked, would simply pass the ModelExpression down to a view component, where the actual html lives. | |
From there we would then render various tag helpers based on the ModelExpression. | |
Unfortunately, it seems that tag helpers in the view component simply creates a ModelExpression of the passed in ModelExpression, inception? | |
So, to make it work, I guess I would need to "trick" tag helpers into accepting an existing ModelExpression? Doable? |
(function ($) { | |
var expander = function (node) { | |
var overlay = $(node); | |
// The toggle is already added, don't do anything | |
if (overlay.find(".overlay-expander--toggle").length > 0) { | |
return; | |
} | |
var toggle = $("<a href class='btn overlay-expander--toggle'><i class='icon icon-navigation-left'></i></a>"); |