Skip to content

Commit

Permalink
Relocated samples from old PnP repo to Office Add-in repo
Browse files Browse the repository at this point in the history
  • Loading branch information
VesaJuvonen committed Sep 10, 2015
1 parent 74c1278 commit 67584d0
Show file tree
Hide file tree
Showing 1,094 changed files with 397,439 additions and 0 deletions.
180 changes: 180 additions & 0 deletions .gitignore
@@ -0,0 +1,180 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

# User-specific files
*.suo
*.user
*.sln.docstates

# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
x64/
build/
bld/
[Bb]in/
[Oo]bj/

# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*

#NUNIT
*.VisualState.xml
TestResult.xml

# Build Results of an ATL Project
[Dd]ebugPS/
[Rr]eleasePS/
dlldata.c

*_i.c
*_p.c
*_i.h
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc

# Chutzpah Test files
_Chutzpah*

# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf
*.cachefile

# Visual Studio profiler
*.psess
*.vsp
*.vspx

# TFS 2012 Local Workspace
$tf/

# Guidance Automation Toolkit
*.gpState

# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user

# JustCode is a .NET coding addin-in
.JustCode

# TeamCity is a build add-in
_TeamCity*

# DotCover is a Code Coverage Tool
*.dotCover

# NCrunch
*.ncrunch*
_NCrunch_*
.*crunch*.local.xml

# MightyMoose
*.mm.*
AutoTest.Net/

# Web workbench (sass)
.sass-cache/

# Installshield output folder
[Ee]xpress/

# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html

# Click-Once directory
publish/

# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml

# NuGet Packages Directory
packages/
## TODO: If the tool you use requires repositories.config uncomment the next line
#!packages/repositories.config

# Enable "build/" folder in the NuGet Packages folder since NuGet packages use it for MSBuild targets
# This line needs to be after the ignore of the build folder (and the packages folder if the line above has been uncommented)
!packages/build/

# Windows Azure Build Output
csx/
*.build.csdef

# Windows Store app package directory
AppPackages/

# Others
sql/
*.Cache
ClientBin/
[Ss]tyle[Cc]op.*
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.pfx
*.publishsettings
node_modules/

# RIA/Silverlight projects
Generated_Code/

# Backup & report files from converting an old project file to a newer
# Visual Studio version. Backup files are not needed, because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm

# SQL Server files
*.mdf
*.ldf

# Business Intelligence projects
*.rdl.data
*.bim.layout
*.bim_*.settings

# Microsoft Fakes
FakesAssemblies/

# App.Config files
[Aa]pp.[Cc]onfig

# Visual Studio 2015 cache/options directory
.vs/
37 changes: 37 additions & 0 deletions Samples/Core.MailApps/Core.MailApps.sln
@@ -0,0 +1,37 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.30324.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Core.MailApps", "Core.MailApps\Core.MailApps.csproj", "{886B0803-9DC5-45EB-A883-9DE770A7C97C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Core.MailAppsWeb", "Core.MailAppsWeb\Core.MailAppsWeb.csproj", "{59CB9E7F-B5D3-4F86-ADDC-5ED997D9D5E9}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Documentation", "Documentation", "{EB607F4C-51DB-408B-8F84-2D2D20C6F6E3}"
ProjectSection(SolutionItems) = preProject
readme.txt = readme.txt
UpdateAppUrl.ps1 = UpdateAppUrl.ps1
YouTube Mail App Sample.docx = YouTube Mail App Sample.docx
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{886B0803-9DC5-45EB-A883-9DE770A7C97C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{886B0803-9DC5-45EB-A883-9DE770A7C97C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{886B0803-9DC5-45EB-A883-9DE770A7C97C}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{886B0803-9DC5-45EB-A883-9DE770A7C97C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{886B0803-9DC5-45EB-A883-9DE770A7C97C}.Release|Any CPU.Build.0 = Release|Any CPU
{886B0803-9DC5-45EB-A883-9DE770A7C97C}.Release|Any CPU.Deploy.0 = Release|Any CPU
{59CB9E7F-B5D3-4F86-ADDC-5ED997D9D5E9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{59CB9E7F-B5D3-4F86-ADDC-5ED997D9D5E9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{59CB9E7F-B5D3-4F86-ADDC-5ED997D9D5E9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{59CB9E7F-B5D3-4F86-ADDC-5ED997D9D5E9}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
70 changes: 70 additions & 0 deletions Samples/Core.MailApps/Core.MailApps/Core.MailApps.csproj
@@ -0,0 +1,70 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{886B0803-9DC5-45EB-A883-9DE770A7C97C}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Contoso.MailApps</RootNamespace>
<AssemblyName>Contoso.MailApps</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetOfficeVersion>15.0</TargetOfficeVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{C1CDDADD-2546-481F-9697-4EA41081F2FC};{14822709-B5A1-4724-98CA-57A101D1B079};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<IncludeAssemblyInPackage>False</IncludeAssemblyInPackage>
<AppFeaturePartId>{28bd55a4-e664-48d9-9194-60963f8ada9a}</AppFeaturePartId>
<WspPartId>{2aa07327-3e0d-4df4-895e-5f51e410247a}</WspPartId>
<WorkflowPartId>{898775b3-8909-405f-adbf-1287bfcd9999}</WorkflowPartId>
<CspkgPartId>{3f5aae6a-a372-495a-8e81-941e85cb05ca}</CspkgPartId>
<SqlPackagePartId>{9a8a7bb7-c25f-4b46-9be7-11d74217202a}</SqlPackagePartId>
<ProjectMode>MailApp</ProjectMode>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<UseVSHostingProcess>false</UseVSHostingProcess>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<UseVSHostingProcess>false</UseVSHostingProcess>
</PropertyGroup>
<ItemGroup>
<None Include="Core.YouTubeApp\SharePointProjectItem.spdata">
<SharePointProjectItemId>{464f489b-4b2c-4e1c-8e28-dcf86569f490}</SharePointProjectItemId>
</None>
<Content Include="Core.YouTubeApp\Core.YouTubeApp.xml">
<OpcRelationship>manifest-oemanifest</OpcRelationship>
</Content>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Core.MailAppsWeb\Core.MailAppsWeb.csproj">
<Project>{59CB9E7F-B5D3-4F86-ADDC-5ED997D9D5E9}</Project>
<Name>Core.MailAppsWeb</Name>
<Private>True</Private>
<RoleType>Web</RoleType>
<OutputItemType>SharePointWebProjectOutput</OutputItemType>
<RoleName>Contoso.MailAppsWeb</RoleName>
<ReferenceOutputAssembly>False</ReferenceOutputAssembly>
</ProjectReference>
</ItemGroup>
<PropertyGroup>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
</PropertyGroup>
<Import Project="$(VSToolsPath)\SharePointTools\Microsoft.VisualStudio.SharePoint.targets" Condition="'$(VSToolsPath)' != ''" />
<PropertyGroup>
<PostBuildEvent>powershell -File "$(ProjectDir)..\UpdateAppUrl.ps1"</PostBuildEvent>
</PropertyGroup>
</Project>
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--Created:cb85b80c-f585-40ff-8bfc-12ff4d0e34a9-->
<OfficeApp xmlns="http://schemas.microsoft.com/office/appforoffice/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="MailApp">
<Id>e1c173ce-6df8-479e-86c1-59fa33774441</Id>
<Version>1.0.0.0</Version>
<ProviderName>Contoso</ProviderName>
<DefaultLocale>en-US</DefaultLocale>
<DisplayName DefaultValue="YouTube" />
<Description DefaultValue="YouTube video player"/>
<Capabilities>
<Capability Name="Mailbox" />
</Capabilities>
<DesktopSettings>
<SourceLocation DefaultValue="~remoteAppUrl/AppRead/YouTube/YouTube.html" />
<RequestedHeight>350</RequestedHeight>
</DesktopSettings>
<Permissions>ReadItem</Permissions>
<Rule xsi:type="RuleCollection" Mode="Or">
<Rule xsi:type="ItemIs" ItemType="Message"/>
<Rule xsi:type="ItemHasKnownEntity" EntityType="Url" IgnoreCase="true" FilterName="YouTubeVideos" RegExFilter="youtube\.com\/watch" />
</Rule>
<DisableEntityHighlighting>false</DisableEntityHighlighting>
</OfficeApp>
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<ProjectItem Type="Microsoft.VisualStudio.SharePoint.OfficeApp" DefaultFile="Core.YouTubeApp.xml" SupportedTrustLevels="All" SupportedDeploymentScopes="AppPackage" xmlns="http://schemas.microsoft.com/VisualStudio/2010/SharePointTools/SharePointProjectItemModel">
<Files>
<ProjectItemFile Source="Core.YouTubeApp.xml" Type="AppPackage" />
</Files>
<ExtensionData>
<ExtensionDataItem Key="OfficeAppManifestRelativePath" Value="Core.YouTubeApp\Core.YouTubeApp.xml" />
</ExtensionData>
</ProjectItem>
54 changes: 54 additions & 0 deletions Samples/Core.MailApps/Core.MailAppsWeb/AppRead/App.css
@@ -0,0 +1,54 @@
/* Common app styling */

#content-main {
background: #fff;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
/* bottom: 50px; Same value as #content-footer's height */
overflow: auto; /* Enable scrollbars within main content section */
}

#content-footer {
background-color: #cecece;
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 50px; /* Fixed footer height */
overflow: hidden; /* Disable scrollbars for footer */
}

.padding {
padding: 15px;
}

#notification-message {
background-color: #818285;
color: #fff;
position: absolute;
width: 100%;
min-height: 80px;
right: 0;
z-index: 100;
bottom: 0;
display: none; /* Hidden until invoked */
}

#notification-message #notification-message-header {
font-size: medium;
margin-bottom: 10px;
}

#notification-message #notification-message-close {
background-image: url("../Images/Close.png");
background-repeat: no-repeat;
width: 24px;
height: 24px;
position: absolute;
right: 5px;
top: 5px;
cursor: pointer;
}

0 comments on commit 67584d0

Please sign in to comment.