Browse Source

Added app icons, started work on template parser

master
Claire Davis 4 years ago
parent
commit
7e6244f25a
  1. 46
      Adaptive Card Editor UWP/Adaptive Card Editor UWP.csproj
  2. BIN
      Adaptive Card Editor UWP/Assets/LargeTile.scale-100.png
  3. BIN
      Adaptive Card Editor UWP/Assets/LargeTile.scale-125.png
  4. BIN
      Adaptive Card Editor UWP/Assets/LargeTile.scale-150.png
  5. BIN
      Adaptive Card Editor UWP/Assets/LargeTile.scale-200.png
  6. BIN
      Adaptive Card Editor UWP/Assets/LargeTile.scale-400.png
  7. BIN
      Adaptive Card Editor UWP/Assets/SmallTile.scale-100.png
  8. BIN
      Adaptive Card Editor UWP/Assets/SmallTile.scale-125.png
  9. BIN
      Adaptive Card Editor UWP/Assets/SmallTile.scale-150.png
  10. BIN
      Adaptive Card Editor UWP/Assets/SmallTile.scale-200.png
  11. BIN
      Adaptive Card Editor UWP/Assets/SmallTile.scale-400.png
  12. BIN
      Adaptive Card Editor UWP/Assets/SplashScreen.scale-100.png
  13. BIN
      Adaptive Card Editor UWP/Assets/SplashScreen.scale-125.png
  14. BIN
      Adaptive Card Editor UWP/Assets/SplashScreen.scale-150.png
  15. BIN
      Adaptive Card Editor UWP/Assets/SplashScreen.scale-200.png
  16. BIN
      Adaptive Card Editor UWP/Assets/SplashScreen.scale-400.png
  17. BIN
      Adaptive Card Editor UWP/Assets/Square150x150Logo.scale-100.png
  18. BIN
      Adaptive Card Editor UWP/Assets/Square150x150Logo.scale-125.png
  19. BIN
      Adaptive Card Editor UWP/Assets/Square150x150Logo.scale-150.png
  20. BIN
      Adaptive Card Editor UWP/Assets/Square150x150Logo.scale-200.png
  21. BIN
      Adaptive Card Editor UWP/Assets/Square150x150Logo.scale-400.png
  22. BIN
      Adaptive Card Editor UWP/Assets/Square44x44Logo.altform-lightunplated_targetsize-16.png
  23. BIN
      Adaptive Card Editor UWP/Assets/Square44x44Logo.altform-lightunplated_targetsize-24.png
  24. BIN
      Adaptive Card Editor UWP/Assets/Square44x44Logo.altform-lightunplated_targetsize-256.png
  25. BIN
      Adaptive Card Editor UWP/Assets/Square44x44Logo.altform-lightunplated_targetsize-32.png
  26. BIN
      Adaptive Card Editor UWP/Assets/Square44x44Logo.altform-lightunplated_targetsize-48.png
  27. BIN
      Adaptive Card Editor UWP/Assets/Square44x44Logo.altform-unplated_targetsize-16.png
  28. BIN
      Adaptive Card Editor UWP/Assets/Square44x44Logo.altform-unplated_targetsize-256.png
  29. BIN
      Adaptive Card Editor UWP/Assets/Square44x44Logo.altform-unplated_targetsize-32.png
  30. BIN
      Adaptive Card Editor UWP/Assets/Square44x44Logo.altform-unplated_targetsize-48.png
  31. BIN
      Adaptive Card Editor UWP/Assets/Square44x44Logo.scale-100.png
  32. BIN
      Adaptive Card Editor UWP/Assets/Square44x44Logo.scale-125.png
  33. BIN
      Adaptive Card Editor UWP/Assets/Square44x44Logo.scale-150.png
  34. BIN
      Adaptive Card Editor UWP/Assets/Square44x44Logo.scale-200.png
  35. BIN
      Adaptive Card Editor UWP/Assets/Square44x44Logo.scale-400.png
  36. BIN
      Adaptive Card Editor UWP/Assets/Square44x44Logo.targetsize-16.png
  37. BIN
      Adaptive Card Editor UWP/Assets/Square44x44Logo.targetsize-24.png
  38. BIN
      Adaptive Card Editor UWP/Assets/Square44x44Logo.targetsize-24_altform-unplated.png
  39. BIN
      Adaptive Card Editor UWP/Assets/Square44x44Logo.targetsize-256.png
  40. BIN
      Adaptive Card Editor UWP/Assets/Square44x44Logo.targetsize-32.png
  41. BIN
      Adaptive Card Editor UWP/Assets/Square44x44Logo.targetsize-48.png
  42. 0
      Adaptive Card Editor UWP/Assets/StoreLogo.backup.png
  43. BIN
      Adaptive Card Editor UWP/Assets/StoreLogo.scale-100.png
  44. BIN
      Adaptive Card Editor UWP/Assets/StoreLogo.scale-125.png
  45. BIN
      Adaptive Card Editor UWP/Assets/StoreLogo.scale-150.png
  46. BIN
      Adaptive Card Editor UWP/Assets/StoreLogo.scale-200.png
  47. BIN
      Adaptive Card Editor UWP/Assets/StoreLogo.scale-400.png
  48. BIN
      Adaptive Card Editor UWP/Assets/Thumbs.db
  49. BIN
      Adaptive Card Editor UWP/Assets/Wide310x150Logo.scale-100.png
  50. BIN
      Adaptive Card Editor UWP/Assets/Wide310x150Logo.scale-125.png
  51. BIN
      Adaptive Card Editor UWP/Assets/Wide310x150Logo.scale-150.png
  52. BIN
      Adaptive Card Editor UWP/Assets/Wide310x150Logo.scale-200.png
  53. BIN
      Adaptive Card Editor UWP/Assets/Wide310x150Logo.scale-400.png
  54. 22
      Adaptive Card Editor UWP/MainPage.xaml.cs
  55. 7
      Adaptive Card Editor UWP/Package.appxmanifest
  56. 6410
      Assets/Wide310x150Logo.ai
  57. BIN
      Assets/Wide310x150Logo.png
  58. BIN
      Assets/Wide310x150Logo.scale-100.png
  59. BIN
      Assets/Wide310x150Logo.scale-125.png
  60. BIN
      Assets/Wide310x150Logo.scale-150.png
  61. BIN
      Assets/Wide310x150Logo.scale-200.png
  62. BIN
      Assets/Wide310x150Logo.scale-400.png
  63. 3
      Scripts/template parser.linq

46
Adaptive Card Editor UWP/Adaptive Card Editor UWP.csproj

@ -130,13 +130,57 @@
</AppxManifest>
</ItemGroup>
<ItemGroup>
<Content Include="Assets\LargeTile.scale-100.png" />
<Content Include="Assets\LargeTile.scale-125.png" />
<Content Include="Assets\LargeTile.scale-150.png" />
<Content Include="Assets\LargeTile.scale-200.png" />
<Content Include="Assets\LargeTile.scale-400.png" />
<Content Include="Assets\SmallTile.scale-100.png" />
<Content Include="Assets\SmallTile.scale-125.png" />
<Content Include="Assets\SmallTile.scale-150.png" />
<Content Include="Assets\SmallTile.scale-200.png" />
<Content Include="Assets\SmallTile.scale-400.png" />
<Content Include="Assets\SplashScreen.scale-100.png" />
<Content Include="Assets\SplashScreen.scale-125.png" />
<Content Include="Assets\SplashScreen.scale-150.png" />
<Content Include="Assets\SplashScreen.scale-400.png" />
<Content Include="Assets\Square150x150Logo.scale-100.png" />
<Content Include="Assets\Square150x150Logo.scale-125.png" />
<Content Include="Assets\Square150x150Logo.scale-150.png" />
<Content Include="Assets\Square150x150Logo.scale-400.png" />
<Content Include="Assets\Square44x44Logo.altform-lightunplated_targetsize-16.png" />
<Content Include="Assets\Square44x44Logo.altform-lightunplated_targetsize-24.png" />
<Content Include="Assets\Square44x44Logo.altform-lightunplated_targetsize-256.png" />
<Content Include="Assets\Square44x44Logo.altform-lightunplated_targetsize-32.png" />
<Content Include="Assets\Square44x44Logo.altform-lightunplated_targetsize-48.png" />
<Content Include="Assets\Square44x44Logo.altform-unplated_targetsize-16.png" />
<Content Include="Assets\Square44x44Logo.altform-unplated_targetsize-256.png" />
<Content Include="Assets\Square44x44Logo.altform-unplated_targetsize-32.png" />
<Content Include="Assets\Square44x44Logo.altform-unplated_targetsize-48.png" />
<Content Include="Assets\Square44x44Logo.scale-100.png" />
<Content Include="Assets\Square44x44Logo.scale-125.png" />
<Content Include="Assets\Square44x44Logo.scale-150.png" />
<Content Include="Assets\Square44x44Logo.scale-400.png" />
<Content Include="Assets\Square44x44Logo.targetsize-16.png" />
<Content Include="Assets\Square44x44Logo.targetsize-24.png" />
<Content Include="Assets\Square44x44Logo.targetsize-256.png" />
<Content Include="Assets\Square44x44Logo.targetsize-32.png" />
<Content Include="Assets\Square44x44Logo.targetsize-48.png" />
<Content Include="Assets\StoreLogo.scale-100.png" />
<Content Include="Assets\StoreLogo.scale-125.png" />
<Content Include="Assets\StoreLogo.scale-150.png" />
<Content Include="Assets\StoreLogo.scale-200.png" />
<Content Include="Assets\StoreLogo.scale-400.png" />
<Content Include="Assets\Wide310x150Logo.scale-100.png" />
<Content Include="Assets\Wide310x150Logo.scale-125.png" />
<Content Include="Assets\Wide310x150Logo.scale-150.png" />
<Content Include="Assets\Wide310x150Logo.scale-400.png" />
<Content Include="Properties\Default.rd.xml" />
<Content Include="Assets\LockScreenLogo.scale-200.png" />
<Content Include="Assets\SplashScreen.scale-200.png" />
<Content Include="Assets\Square150x150Logo.scale-200.png" />
<Content Include="Assets\Square44x44Logo.scale-200.png" />
<Content Include="Assets\Square44x44Logo.targetsize-24_altform-unplated.png" />
<Content Include="Assets\StoreLogo.png" />
<Content Include="Assets\Wide310x150Logo.scale-200.png" />
</ItemGroup>
<ItemGroup>

BIN
Adaptive Card Editor UWP/Assets/LargeTile.scale-100.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 4.3 KiB

BIN
Adaptive Card Editor UWP/Assets/LargeTile.scale-125.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 5.3 KiB

BIN
Adaptive Card Editor UWP/Assets/LargeTile.scale-150.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 6.5 KiB

BIN
Adaptive Card Editor UWP/Assets/LargeTile.scale-200.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 8.7 KiB

BIN
Adaptive Card Editor UWP/Assets/LargeTile.scale-400.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 20 KiB

BIN
Adaptive Card Editor UWP/Assets/SmallTile.scale-100.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
Adaptive Card Editor UWP/Assets/SmallTile.scale-125.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
Adaptive Card Editor UWP/Assets/SmallTile.scale-150.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 2.2 KiB

BIN
Adaptive Card Editor UWP/Assets/SmallTile.scale-200.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 3.1 KiB

BIN
Adaptive Card Editor UWP/Assets/SmallTile.scale-400.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 4.3 KiB

BIN
Adaptive Card Editor UWP/Assets/SplashScreen.scale-100.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 4.4 KiB

BIN
Adaptive Card Editor UWP/Assets/SplashScreen.scale-125.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 5.3 KiB

BIN
Adaptive Card Editor UWP/Assets/SplashScreen.scale-150.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 6.7 KiB

BIN
Adaptive Card Editor UWP/Assets/SplashScreen.scale-200.png

diff.bin_not_shown

Before

Width:  |  Height:  |  Size: 7.5 KiB

After

Width:  |  Height:  |  Size: 9.5 KiB

BIN
Adaptive Card Editor UWP/Assets/SplashScreen.scale-400.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 25 KiB

BIN
Adaptive Card Editor UWP/Assets/Square150x150Logo.scale-100.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
Adaptive Card Editor UWP/Assets/Square150x150Logo.scale-125.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 2.5 KiB

BIN
Adaptive Card Editor UWP/Assets/Square150x150Logo.scale-150.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 2.7 KiB

BIN
Adaptive Card Editor UWP/Assets/Square150x150Logo.scale-200.png

diff.bin_not_shown

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

BIN
Adaptive Card Editor UWP/Assets/Square150x150Logo.scale-400.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 8.5 KiB

BIN
Adaptive Card Editor UWP/Assets/Square44x44Logo.altform-lightunplated_targetsize-16.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 395 B

BIN
Adaptive Card Editor UWP/Assets/Square44x44Logo.altform-lightunplated_targetsize-24.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 538 B

BIN
Adaptive Card Editor UWP/Assets/Square44x44Logo.altform-lightunplated_targetsize-256.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 4.5 KiB

BIN
Adaptive Card Editor UWP/Assets/Square44x44Logo.altform-lightunplated_targetsize-32.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 675 B

BIN
Adaptive Card Editor UWP/Assets/Square44x44Logo.altform-lightunplated_targetsize-48.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
Adaptive Card Editor UWP/Assets/Square44x44Logo.altform-unplated_targetsize-16.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 397 B

BIN
Adaptive Card Editor UWP/Assets/Square44x44Logo.altform-unplated_targetsize-256.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 4.5 KiB

BIN
Adaptive Card Editor UWP/Assets/Square44x44Logo.altform-unplated_targetsize-32.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 649 B

BIN
Adaptive Card Editor UWP/Assets/Square44x44Logo.altform-unplated_targetsize-48.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
Adaptive Card Editor UWP/Assets/Square44x44Logo.scale-100.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
Adaptive Card Editor UWP/Assets/Square44x44Logo.scale-125.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
Adaptive Card Editor UWP/Assets/Square44x44Logo.scale-150.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
Adaptive Card Editor UWP/Assets/Square44x44Logo.scale-200.png

diff.bin_not_shown

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
Adaptive Card Editor UWP/Assets/Square44x44Logo.scale-400.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 4.3 KiB

BIN
Adaptive Card Editor UWP/Assets/Square44x44Logo.targetsize-16.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 406 B

BIN
Adaptive Card Editor UWP/Assets/Square44x44Logo.targetsize-24.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 564 B

BIN
Adaptive Card Editor UWP/Assets/Square44x44Logo.targetsize-24_altform-unplated.png

diff.bin_not_shown

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
Adaptive Card Editor UWP/Assets/Square44x44Logo.targetsize-256.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 5.8 KiB

BIN
Adaptive Card Editor UWP/Assets/Square44x44Logo.targetsize-32.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 812 B

BIN
Adaptive Card Editor UWP/Assets/Square44x44Logo.targetsize-48.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 1.2 KiB

0
Adaptive Card Editor UWP/Assets/StoreLogo.png → Adaptive Card Editor UWP/Assets/StoreLogo.backup.png

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
Adaptive Card Editor UWP/Assets/StoreLogo.scale-100.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
Adaptive Card Editor UWP/Assets/StoreLogo.scale-125.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
Adaptive Card Editor UWP/Assets/StoreLogo.scale-150.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
Adaptive Card Editor UWP/Assets/StoreLogo.scale-200.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 2.0 KiB

BIN
Adaptive Card Editor UWP/Assets/StoreLogo.scale-400.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 3.5 KiB

BIN
Adaptive Card Editor UWP/Assets/Thumbs.db

diff.bin_not_shown

BIN
Adaptive Card Editor UWP/Assets/Wide310x150Logo.scale-100.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
Adaptive Card Editor UWP/Assets/Wide310x150Logo.scale-125.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
Adaptive Card Editor UWP/Assets/Wide310x150Logo.scale-150.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
Adaptive Card Editor UWP/Assets/Wide310x150Logo.scale-200.png

diff.bin_not_shown

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
Adaptive Card Editor UWP/Assets/Wide310x150Logo.scale-400.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 7.6 KiB

22
Adaptive Card Editor UWP/MainPage.xaml.cs

@ -135,10 +135,10 @@ namespace Adaptive_Card_Editor_UWP
// we don't care what the input is; if it's not valid JSON ignore this keystroke
// render the text as a plain textbox
TextBlock txtOutput = new TextBlock();
txtOutput.TextWrapping = TextWrapping.Wrap;
txtOutput.Padding = new Thickness(10);
txtOutput.Text = txtInput.Text;
TextBlock cardOutput = new TextBlock();
cardOutput.TextWrapping = TextWrapping.Wrap;
cardOutput.Padding = new Thickness(10);
cardOutput.Text = txtInput.Text;
// clear the grid of existing content
grdCard.Children.Clear();
@ -155,8 +155,8 @@ namespace Adaptive_Card_Editor_UWP
{
// this means bad data was ingested by the adaptive card renderer
// so just display the exception details
txtOutput.Text = ex.ToString();
grdCard.Children.Add(txtOutput);
cardOutput.Text = ex.ToString();
grdCard.Children.Add(cardOutput);
}
// render a card using template and data
@ -175,10 +175,16 @@ namespace Adaptive_Card_Editor_UWP
}
catch (Exception ex)
{
// render the text as a plain textbox
TextBlock templateOutput = new TextBlock();
templateOutput.TextWrapping = TextWrapping.Wrap;
templateOutput.Padding = new Thickness(10);
templateOutput.Text = txtInput.Text;
// this means bad data was ingested by the adaptive card renderer
// so just display the exception details
txtOutput.Text = ex.ToString();
grdTemplated.Children.Add(txtOutput);
templateOutput.Text = ex.ToString();
grdTemplated.Children.Add(templateOutput);
}
grdCard.UpdateLayout();

7
Adaptive Card Editor UWP/Package.appxmanifest

@ -37,7 +37,12 @@
Square44x44Logo="Assets\Square44x44Logo.png"
Description="Adaptive Card Editor UWP"
BackgroundColor="transparent">
<uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png"/>
<uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png" Square71x71Logo="Assets\SmallTile.png" Square310x310Logo="Assets\LargeTile.png">
<uap:ShowNameOnTiles>
<uap:ShowOn Tile="square310x310Logo"/>
<uap:ShowOn Tile="wide310x150Logo"/>
</uap:ShowNameOnTiles>
</uap:DefaultTile >
<uap:SplashScreen Image="Assets\SplashScreen.png" />
</uap:VisualElements>
</Application>

6410
Assets/Wide310x150Logo.ai

File diff suppressed because it is too large diff.load

BIN
Assets/Wide310x150Logo.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
Assets/Wide310x150Logo.scale-100.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
Assets/Wide310x150Logo.scale-125.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
Assets/Wide310x150Logo.scale-150.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
Assets/Wide310x150Logo.scale-200.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
Assets/Wide310x150Logo.scale-400.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 7.6 KiB

3
Scripts/template parser.linq

@ -26,6 +26,9 @@ public string JsonFromTemplate(string strTemplate, string strData)
JArray TemplateBody = (JArray)Template["body"];
// for each jobject in this array
TemplateBody.Dump();
return output;

Loading…
Cancel
Save