Skip to content

Commit dcd8d71

Browse files
authored
Merge pull request #4 from microsoft/dev/avi/initialContent
file cleanup
2 parents de57502 + fe3646a commit dcd8d71

12 files changed

Lines changed: 466 additions & 116 deletions

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ PublishScripts/
197197
# NuGet Symbol Packages
198198
*.snupkg
199199
# The packages folder can be ignored because of Package Restore
200-
**/[Pp]ackages/*
200+
# **/[Pp]ackages/*
201201
# except build/, which is used as an MSBuild target.
202202
!**/[Pp]ackages/build/
203203
# Uncomment if necessary however generally it will be regenerated when needed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<xs:schema id="CommonDefinitions"
3+
elementFormDefault="qualified"
4+
xmlns=""
5+
xmlns:xs="http://www.w3.org/2001/XMLSchema">
6+
7+
<xs:simpleType name="SchemaVersion">
8+
<xs:annotation>
9+
<xs:documentation>
10+
The version should be SemVer compliant. https://semver.org/
11+
</xs:documentation>
12+
</xs:annotation>
13+
<xs:restriction base ="xs:string">
14+
<xs:minLength value="1" />
15+
<xs:maxLength value="16" />
16+
<xs:pattern value="(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?" />
17+
</xs:restriction>
18+
</xs:simpleType>
19+
<xs:simpleType name="Guid">
20+
<xs:annotation>
21+
<xs:documentation>
22+
The representation of a Guid.
23+
</xs:documentation>
24+
</xs:annotation>
25+
<xs:restriction base="xs:string">
26+
<xs:pattern value="[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}"/>
27+
</xs:restriction>
28+
</xs:simpleType>
29+
<xs:simpleType name="NonEmptyString">
30+
<xs:annotation>
31+
<xs:documentation>
32+
The representation of a non empty string.
33+
</xs:documentation>
34+
</xs:annotation>
35+
<xs:restriction base="xs:string">
36+
<xs:minLength value="1" />
37+
</xs:restriction>
38+
</xs:simpleType>
39+
</xs:schema>
Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
{
2+
"artifacts": [],
3+
"extension": {"url":"appUrl"},
4+
"product": {
5+
"name": "idan",
6+
"displayName": "Idans data Analysis",
7+
"favicon": "Trident_API_Playground_Favicon.ico",
8+
"icon": {
9+
"sprite": "product-color-icons",
10+
"name": "analyze"
11+
},
12+
"homePage": {
13+
"learningMaterials": [
14+
{
15+
"title": "LearningMaterial_example1",
16+
"description": "LearningMaterial_example1_description",
17+
"onClick": {
18+
"extensionName": "react-example",
19+
"action": "open.learningMaterial.dialog1"
20+
},
21+
"visibilityChecker": "TestArtifact",
22+
"image": {
23+
"extensionName": "react-example",
24+
"path": "/assets/example-learning-material.jpeg"
25+
}
26+
},
27+
{
28+
"title": "LearningMaterial_example2",
29+
"description": "LearningMaterial_example2_description",
30+
"image": "https://th.bing.com/th/id/OIP.PBCsrpFNi1lnTiEvTbrmggHaEj?pid=ImgDet&rs=1",
31+
"onClick": {
32+
"extensionName": "react-example",
33+
"action": "open.learningMaterial.dialog2"
34+
},
35+
"visibilityChecker": {
36+
"action": "check.learningMaterial.dialog2.visibility",
37+
"extensionName": "react-example"
38+
}
39+
},
40+
{
41+
"title": "LearningMaterial_example3",
42+
"description": "LearningMaterial_example3_description",
43+
"link": "https://powerbi.visualstudio.com/Trident/_wiki/wikis/Trident.wiki/16197/Onboarding-to-Workload-Homepage-Template",
44+
"image": {
45+
"extensionName": "react-example",
46+
"path": "/assets/example-learning-material.jpeg"
47+
}
48+
}
49+
],
50+
"recommendedArtifactTypes": [
51+
"HomeOne"
52+
]
53+
},
54+
"createExperience": {
55+
"description": "CreateHub_Product_Description",
56+
"cards": [
57+
{
58+
"title": "Sentiment Analysis",
59+
"description": "Enrich your data by adding sentiment Analysis",
60+
"icon": {
61+
"name": "pipeline_24_regular"
62+
},
63+
"icon_small": {
64+
"name": "pipeline_20_regular"
65+
},
66+
"onClick": {
67+
"extensionName": "my-extension",
68+
"action": "open.createSentimentAnalysis"
69+
},
70+
"availableIn": [
71+
"home",
72+
"create-hub",
73+
"workspace-plus-new"
74+
],
75+
"visibilityChecker": "HomeOne"
76+
},
77+
{
78+
"title": "Translator",
79+
"description": "localize your data",
80+
"icon": {
81+
"sprite": "artifact-icons",
82+
"name": "lakehouse_24"
83+
},
84+
"icon_small": {
85+
"sprite": "artifact-icons",
86+
"name": "lakehouse_20"
87+
},
88+
"onClick": {
89+
"extensionName": "my-extension",
90+
"action": "open.createTranslater"
91+
},
92+
"availableIn": [
93+
"home",
94+
"create-hub",
95+
"workspace-plus-new"
96+
],
97+
"visibilityChecker": "HomeOne"
98+
}
99+
]
100+
},
101+
"workspaceSettings": {
102+
"getWorkspaceSettings": {
103+
"extensionName": "react-example",
104+
"action": "getWorkspaceSettings"
105+
}
106+
},
107+
"helpPanel": {
108+
"productCards": [
109+
{
110+
"title": "Extension API playground get started",
111+
"description": "Extension API playground documentation provides expert information and answers to get you started.",
112+
"link": "https://powerbi.visualstudio.com/Trident/_wiki/wikis/Trident.wiki/16197/Onboarding-to-Workload-Homepage-Template",
113+
"defaultCollapsed": false
114+
}
115+
],
116+
"productPageFeatureCards": [
117+
{
118+
"pageName": "/home",
119+
"cards": [
120+
{
121+
"title": "Page Card",
122+
"description": "This is a Product Page Card of /home.",
123+
"link": "https://powerbi.visualstudio.com/Trident/_wiki/wikis/Trident.wiki/16197/Onboarding-to-Workload-Homepage-Template",
124+
"defaultCollapsed": false
125+
}
126+
]
127+
},
128+
{
129+
"pageName": "/datahub",
130+
"cards": [
131+
{
132+
"title": "Page Card",
133+
"description": "This is a Product Page Card of /datahub.",
134+
"link": "https://powerbi.visualstudio.com/Trident/_wiki/wikis/Trident.wiki/16197/Onboarding-to-Workload-Homepage-Template",
135+
"defaultCollapsed": false
136+
}
137+
]
138+
}
139+
]
140+
}
141+
}
142+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<ItemManifestConfiguration xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" SchemaVersion="1.0.0">
3+
<Item TypeName="Org.WorkloadSample.SampleWorkloadItem" Category="Data">
4+
<Workload WorkloadName="Org.WorkloadSample" />
5+
<JobScheduler>
6+
<!-- Set the deduplicate option for on demand item job.
7+
- None to not deduplicate job.
8+
- PerItem so there is only one job run for the same item and same job type.
9+
- PerUser so there is only one job run for the same user and same item.-->
10+
<OnDemandJobDeduplicateOptions>PerItem</OnDemandJobDeduplicateOptions>
11+
<ScheduledJobDeduplicateOptions>PerItem</ScheduledJobDeduplicateOptions>
12+
<ItemJobTypes>
13+
<ItemJobType Name="Org.WorkloadSample.SampleWorkloadItem.ScheduledJob" />
14+
<ItemJobType Name="Org.WorkloadSample.SampleWorkloadItem.CalculateAsText" />
15+
<ItemJobType Name="Org.WorkloadSample.SampleWorkloadItem.CalculateAsParquet" />
16+
</ItemJobTypes>
17+
</JobScheduler>
18+
</Item>
19+
</ItemManifestConfiguration>
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<xs:schema id="ItemDefinition"
3+
elementFormDefault="qualified"
4+
xmlns=""
5+
xmlns:xs="http://www.w3.org/2001/XMLSchema">
6+
<xs:include schemaLocation="./CommonTypesDefinitions.xsd" />
7+
8+
<xs:element name="ItemManifestConfiguration">
9+
<xs:complexType>
10+
<xs:sequence>
11+
<xs:element name="Item" type="ItemMetadata" />
12+
</xs:sequence>
13+
<xs:attribute name="SchemaVersion" type="SchemaVersion" use="required" fixed="1.0.0" />
14+
</xs:complexType>
15+
</xs:element>
16+
17+
<xs:complexType name="ItemMetadata">
18+
<xs:sequence>
19+
<xs:element name="Workload" minOccurs="1" maxOccurs="1">
20+
<xs:complexType>
21+
<xs:attribute name="WorkloadName" type="WorkloadName" use="required" />
22+
</xs:complexType>
23+
</xs:element>
24+
<xs:element name="JobScheduler" type="JobScheduler" minOccurs="0" maxOccurs="1">
25+
</xs:element>
26+
</xs:sequence>
27+
<xs:attribute name="TypeName" type="TypeName" use="required"/>
28+
<xs:attribute name="Category" type="Category" use="optional" default="Unknown" />
29+
</xs:complexType>
30+
31+
<xs:complexType name="JobScheduler">
32+
<xs:all>
33+
<xs:element name="OnDemandJobDeduplicateOptions" type="JobDeduplicateOption" minOccurs="1" maxOccurs="1" />
34+
<xs:element name="ScheduledJobDeduplicateOptions" type="JobDeduplicateOption" minOccurs="1" maxOccurs="1" />
35+
<xs:element name="ItemJobTypes" minOccurs="1" maxOccurs="1">
36+
<xs:complexType>
37+
<xs:sequence>
38+
<xs:element name="ItemJobType" type="JobType" minOccurs="1" maxOccurs="unbounded" />
39+
</xs:sequence>
40+
</xs:complexType>
41+
</xs:element>
42+
</xs:all>
43+
</xs:complexType>
44+
<xs:complexType name="JobType">
45+
<xs:attribute name="Name" type="JobTypeName" use="required" />
46+
</xs:complexType>
47+
<xs:simpleType name="Category">
48+
<xs:restriction base="xs:string">
49+
<xs:enumeration value="Code" />
50+
<xs:enumeration value="Data" />
51+
<xs:enumeration value="Unknown" />
52+
</xs:restriction>
53+
</xs:simpleType>
54+
<xs:simpleType name="JobDeduplicateOption">
55+
<xs:restriction base="xs:string">
56+
<xs:enumeration value="None" />
57+
<xs:enumeration value="PerItem" />
58+
<xs:enumeration value="PerUser" />
59+
</xs:restriction>
60+
</xs:simpleType>
61+
<xs:simpleType name="WorkloadName">
62+
<xs:restriction base ="xs:string">
63+
<xs:minLength value="1" />
64+
<xs:maxLength value="32" />
65+
<xs:pattern value="([a-zA-Z0-9-]+)\.([a-zA-Z0-9-]+)" />
66+
</xs:restriction>
67+
</xs:simpleType>
68+
<xs:simpleType name="TypeName">
69+
<xs:annotation>
70+
<xs:documentation>
71+
TypeName should contain WorkloadName as a prefix, e.g. Org.WorkloadSample.SampleWorkloadItem
72+
</xs:documentation>
73+
</xs:annotation>
74+
<xs:restriction base ="xs:string">
75+
<xs:minLength value="1" />
76+
<xs:maxLength value="64" />
77+
<xs:pattern value="([a-zA-Z0-9-]+)\.([a-zA-Z0-9-]+)\.([a-zA-Z0-9-]+)" />
78+
</xs:restriction>
79+
</xs:simpleType>
80+
<xs:simpleType name="JobTypeName">
81+
<xs:annotation>
82+
<xs:documentation>
83+
JobTypeName should contain Item's TypeName as a prefix, e.g. Org.WorkloadSample.SampleWorkloadItem.SampleJobType
84+
</xs:documentation>
85+
</xs:annotation>
86+
<xs:restriction base ="xs:string">
87+
<xs:minLength value="1" />
88+
<xs:maxLength value="96" />
89+
<xs:pattern value="([a-zA-Z0-9-]+)\.([a-zA-Z0-9-]+)\.([a-zA-Z0-9-]+)\.([a-zA-Z0-9-]+)" />
90+
</xs:restriction>
91+
</xs:simpleType>
92+
</xs:schema>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0"?>
2+
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
3+
<metadata>
4+
<!-- Package information -->
5+
<id>ManifestPackage</id>
6+
<version>1.0.0</version>
7+
<authors>author</authors>
8+
<owners>owner</owners>
9+
<description>A NuGet package that holds the workload and frontend manifests.</description>
10+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
11+
</metadata>
12+
<files>
13+
<!-- Include the XML and JSON files in the root of the package -->
14+
<file src="WorkloadManifest.xml" target="BE\WorkloadManifest.xml" />
15+
<file src="Item1.xml" target="BE\Item1.xml" />
16+
<file src="FrontEndManifest.json" target="" />
17+
</files>
18+
</package>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0"?>
2+
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
3+
<metadata>
4+
<!-- Package information -->
5+
<id>ManifestPackageRelease</id>
6+
<version>1.0.0</version>
7+
<authors>author</authors>
8+
<owners>owner</owners>
9+
<description>A NuGet package ready for uploading to fabric.</description>
10+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
11+
</metadata>
12+
<files>
13+
<!-- Include the XML and FE files -->
14+
<file src="WorkloadManifest.xml" target="BE\WorkloadManifest.xml" />
15+
<file src="Item1.xml" target="BE\Item1.xml" />
16+
<file src="..\..\..\..\Frontend\Package\*" target="FE" />
17+
<file src="..\..\..\..\Frontend\Package\assets\*" target="FE\assets" />
18+
</files>
19+
</package>

0 commit comments

Comments
 (0)