This file contains 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
import QtQuick 2.2 | |
import QtQuick.Window 2.1 | |
import QtQuick.Controls 1.1 | |
import QtQuick.Controls.Styles 1.2 | |
import QtMultimedia 5.0 | |
Window { | |
id: mainWindow | |
title: "QApplication" |
This file contains 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
import QtQuick 2.3 | |
import QtQuick.Controls 1.2 | |
import QtQuick.Window 2.2 | |
ApplicationWindow { | |
title: qsTr("Hello World") | |
width: 640 | |
height: 480 | |
This file contains 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 class MomentJsFormatConverterTest | |
{ | |
[TestClass] | |
public class ConvertToMomentJsFormatTest | |
{ | |
[TestMethod] | |
public void TestDefaultDateAndTimeFormat() | |
{ | |
Assert.AreEqual("YYYY-MM-DD HH:mm", MomentJsFormatConverter.ConvertFormat("g")); | |
} |
This file contains 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 MomentJsFormatConverterExtensions | |
{ | |
public static string ConvertToMomentJsFormat(this HtmlHelper html, string format) | |
{ | |
if (html == null) | |
throw new ArgumentNullException("html"); | |
return MomentJsFormatConverter.ConvertFormat(format); | |
} | |
} |
This file contains 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 class Assets | |
{ | |
private static IBundleResolver resolver; | |
internal static IBundleResolver Resolver | |
{ | |
get { return resolver ?? BundleResolver.Current; } | |
set { resolver = value; } | |
} | |
private static IHtmlString RenderTag(string template, params string[] attributes) |
This file contains 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 class EmbededStyleBundle : EmbededResourceBundle | |
{ | |
public EmbededStyleBundle(Assembly assembly, string virtualPath) : base(assembly, virtualPath, "text/css", new CssMinify()) | |
{ | |
} | |
} |
This file contains 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 class EmbededScriptBundle : EmbededResourceBundle | |
{ | |
public EmbededScriptBundle(Assembly assembly, string virtualPath) : base(assembly, virtualPath, "text/javascript", new JsMinify()) | |
{ | |
ConcatenationToken = ";"; | |
} | |
} |
This file contains 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 abstract class EmbededResourceBundle : Bundle | |
{ | |
private Assembly assembly; | |
private readonly HashSet<string> resourceNames = new HashSet<string>(); | |
private readonly string contentType; | |
public EmbededResourceBundle(Assembly assembly, string virtualPath, string contentType, params IBundleTransform[] transforms) : base(virtualPath, null, transforms) | |
{ | |
this.assembly = assembly; | |
this.contentType = contentType; |
This file contains 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 class Rebundler | |
{ | |
private readonly Assembly assembly; | |
private readonly string virtualPath; | |
private readonly HashSet<string> resourceNames = new HashSet<string>(); | |
public Rebundler(Assembly assembly, string virtualPath) | |
{ | |
this.assembly = assembly; | |
this.virtualPath = virtualPath; |
This file contains 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
link-color = #bca36c; | |
hover-color = #004263; | |
disabled-color = #bbb; | |
text-color = #333; | |
html { | |
height:100%; | |
} | |
body { |