diff --git a/e2e/Sandbox/DashboardCreators/AmazonRedshiftDashboard.cs b/e2e/Sandbox/DashboardCreators/AmazonRedshiftDashboard.cs new file mode 100644 index 00000000..57d7ab33 --- /dev/null +++ b/e2e/Sandbox/DashboardCreators/AmazonRedshiftDashboard.cs @@ -0,0 +1,19 @@ +using Reveal.Sdk.Dom; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Sandbox.DashboardFactories +{ + internal class AmazonRedshiftDashboard : IDashboardCreator + { + public string Name => "Amazon Redshift Data Source"; + + public RdashDocument CreateDashboard() + { + throw new NotImplementedException(); + } + } +} diff --git a/e2e/Sandbox/DashboardCreators/AmazonS3Dashboard.cs b/e2e/Sandbox/DashboardCreators/AmazonS3Dashboard.cs new file mode 100644 index 00000000..499aee37 --- /dev/null +++ b/e2e/Sandbox/DashboardCreators/AmazonS3Dashboard.cs @@ -0,0 +1,19 @@ +using Reveal.Sdk.Dom; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Sandbox.DashboardFactories +{ + internal class AmazonS3Dashboard : IDashboardCreator + { + public string Name => "Amazon S3 Data Source"; + + public RdashDocument CreateDashboard() + { + throw new NotImplementedException(); + } + } +} diff --git a/e2e/Sandbox/DashboardCreators/GoogleAnalytic4Dashboard.cs b/e2e/Sandbox/DashboardCreators/GoogleAnalytic4Dashboard.cs new file mode 100644 index 00000000..25c416db --- /dev/null +++ b/e2e/Sandbox/DashboardCreators/GoogleAnalytic4Dashboard.cs @@ -0,0 +1,19 @@ +using Reveal.Sdk.Dom; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Sandbox.DashboardFactories +{ + internal class GoogleAnalytic4Dashboard : IDashboardCreator + { + public string Name => "Google Analytic4 Data Source"; + + public RdashDocument CreateDashboard() + { + throw new NotImplementedException(); + } + } +} diff --git a/e2e/Sandbox/DashboardCreators/GoogleBigQueryDashboard.cs b/e2e/Sandbox/DashboardCreators/GoogleBigQueryDashboard.cs new file mode 100644 index 00000000..31e4b580 --- /dev/null +++ b/e2e/Sandbox/DashboardCreators/GoogleBigQueryDashboard.cs @@ -0,0 +1,19 @@ +using Reveal.Sdk.Dom; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Sandbox.DashboardFactories +{ + internal class GoogleBigQueryDashboard : IDashboardCreator + { + public string Name => "Google Big Query Data Source"; + + public RdashDocument CreateDashboard() + { + throw new NotImplementedException(); + } + } +} diff --git a/e2e/Sandbox/DashboardCreators/GoogleDriveDashboard.cs b/e2e/Sandbox/DashboardCreators/GoogleDriveDashboard.cs new file mode 100644 index 00000000..73911f8e --- /dev/null +++ b/e2e/Sandbox/DashboardCreators/GoogleDriveDashboard.cs @@ -0,0 +1,19 @@ +using Reveal.Sdk.Dom; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Sandbox.DashboardFactories +{ + internal class GoogleDriveDashboard : IDashboardCreator + { + public string Name => "Google Drive Data Source"; + + public RdashDocument CreateDashboard() + { + throw new NotImplementedException(); + } + } +} diff --git a/e2e/Sandbox/DashboardCreators/GoogleSheetDashboard.cs b/e2e/Sandbox/DashboardCreators/GoogleSheetDashboard.cs new file mode 100644 index 00000000..b3d117f9 --- /dev/null +++ b/e2e/Sandbox/DashboardCreators/GoogleSheetDashboard.cs @@ -0,0 +1,19 @@ +using Reveal.Sdk.Dom; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Sandbox.DashboardFactories +{ + internal class GoogleSheetDashboard : IDashboardCreator + { + public string Name => "Google Sheet Data Source"; + + public RdashDocument CreateDashboard() + { + throw new NotImplementedException(); + } + } +} diff --git a/e2e/Sandbox/DashboardCreators/HttpAnalysisDashboard.cs b/e2e/Sandbox/DashboardCreators/HttpAnalysisDashboard.cs new file mode 100644 index 00000000..01098f04 --- /dev/null +++ b/e2e/Sandbox/DashboardCreators/HttpAnalysisDashboard.cs @@ -0,0 +1,19 @@ +using Reveal.Sdk.Dom; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Sandbox.DashboardFactories +{ + internal class HttpAnalysisDashboard : IDashboardCreator + { + public string Name => "Http Analysis Data Source"; + + public RdashDocument CreateDashboard() + { + throw new NotImplementedException(); + } + } +} diff --git a/e2e/Sandbox/DashboardCreators/MSAnalysisServiceDashboard.cs b/e2e/Sandbox/DashboardCreators/MSAnalysisServiceDashboard.cs new file mode 100644 index 00000000..d02f481f --- /dev/null +++ b/e2e/Sandbox/DashboardCreators/MSAnalysisServiceDashboard.cs @@ -0,0 +1,19 @@ +using Reveal.Sdk.Dom; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Sandbox.DashboardFactories +{ + internal class MSAnalysisServiceDashboard : IDashboardCreator + { + public string Name => "MS Analysis Service Data Source"; + + public RdashDocument CreateDashboard() + { + throw new NotImplementedException(); + } + } +} diff --git a/e2e/Sandbox/DashboardCreators/MSAzureAnalysisServiceDashboard.cs b/e2e/Sandbox/DashboardCreators/MSAzureAnalysisServiceDashboard.cs new file mode 100644 index 00000000..9e63f100 --- /dev/null +++ b/e2e/Sandbox/DashboardCreators/MSAzureAnalysisServiceDashboard.cs @@ -0,0 +1,19 @@ +using Reveal.Sdk.Dom; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Sandbox.DashboardFactories +{ + internal class MSAzureAnalysisServiceDashboard : IDashboardCreator + { + public string Name => "MS Azure Analysis Service Data Source"; + + public RdashDocument CreateDashboard() + { + throw new NotImplementedException(); + } + } +} diff --git a/e2e/Sandbox/DashboardCreators/MSAzureSqlDashboard.cs b/e2e/Sandbox/DashboardCreators/MSAzureSqlDashboard.cs new file mode 100644 index 00000000..130e7fa9 --- /dev/null +++ b/e2e/Sandbox/DashboardCreators/MSAzureSqlDashboard.cs @@ -0,0 +1,20 @@ +using Reveal.Sdk.Dom; +using Sandbox.DashboardFactories; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Sandbox.DashboardFactories +{ + internal class MSAzureSqlDashboard : IDashboardCreator + { + public string Name => "MS Azure Sql Data Source"; + + public RdashDocument CreateDashboard() + { + throw new NotImplementedException(); + } + } +} diff --git a/e2e/Sandbox/DashboardCreators/MongoDashboard.cs b/e2e/Sandbox/DashboardCreators/MongoDashboard.cs new file mode 100644 index 00000000..27256a45 --- /dev/null +++ b/e2e/Sandbox/DashboardCreators/MongoDashboard.cs @@ -0,0 +1,19 @@ +using Reveal.Sdk.Dom; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Sandbox.DashboardFactories +{ + internal class MongoDashboard : IDashboardCreator + { + public string Name => "Mongo Data Source"; + + public RdashDocument CreateDashboard() + { + throw new NotImplementedException(); + } + } +} diff --git a/e2e/Sandbox/DashboardCreators/MySqlDashboard.cs b/e2e/Sandbox/DashboardCreators/MySqlDashboard.cs new file mode 100644 index 00000000..a2cf5e90 --- /dev/null +++ b/e2e/Sandbox/DashboardCreators/MySqlDashboard.cs @@ -0,0 +1,19 @@ +using Reveal.Sdk.Dom; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Sandbox.DashboardFactories +{ + internal class MySqlDashboard : IDashboardCreator + { + public string Name => "MySql data source"; + + public RdashDocument CreateDashboard() + { + throw new NotImplementedException(); + } + } +} diff --git a/e2e/Sandbox/DashboardCreators/ODataDashboard.cs b/e2e/Sandbox/DashboardCreators/ODataDashboard.cs new file mode 100644 index 00000000..f9ea04c4 --- /dev/null +++ b/e2e/Sandbox/DashboardCreators/ODataDashboard.cs @@ -0,0 +1,19 @@ +using Reveal.Sdk.Dom; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Sandbox.DashboardFactories +{ + internal class ODataDashboard : IDashboardCreator + { + public string Name => "OData Data Source"; + + public RdashDocument CreateDashboard() + { + throw new NotImplementedException(); + } + } +} diff --git a/e2e/Sandbox/DashboardCreators/OracleDashboard.cs b/e2e/Sandbox/DashboardCreators/OracleDashboard.cs new file mode 100644 index 00000000..35b41431 --- /dev/null +++ b/e2e/Sandbox/DashboardCreators/OracleDashboard.cs @@ -0,0 +1,19 @@ +using Reveal.Sdk.Dom; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Sandbox.DashboardFactories +{ + internal class OracleDashboard : IDashboardCreator + { + public string Name => "Oracle Data Source"; + + public RdashDocument CreateDashboard() + { + throw new NotImplementedException(); + } + } +} diff --git a/e2e/Sandbox/DashboardCreators/SnowFlakeDashboard.cs b/e2e/Sandbox/DashboardCreators/SnowFlakeDashboard.cs index a54c8b70..cbb6f696 100644 --- a/e2e/Sandbox/DashboardCreators/SnowFlakeDashboard.cs +++ b/e2e/Sandbox/DashboardCreators/SnowFlakeDashboard.cs @@ -47,4 +47,4 @@ public RdashDocument CreateDashboard() return document; } } -} +} \ No newline at end of file diff --git a/e2e/Sandbox/DashboardCreators/SynapseAnalyticsDashboard.cs b/e2e/Sandbox/DashboardCreators/SynapseAnalyticsDashboard.cs new file mode 100644 index 00000000..b2078604 --- /dev/null +++ b/e2e/Sandbox/DashboardCreators/SynapseAnalyticsDashboard.cs @@ -0,0 +1,19 @@ +using Reveal.Sdk.Dom; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Sandbox.DashboardFactories +{ + internal class SynapseAnalyticsDashboard : IDashboardCreator + { + public string Name => "MS Synapse Analytics DataSource"; + + public RdashDocument CreateDashboard() + { + throw new NotImplementedException(); + } + } +} diff --git a/e2e/Sandbox/DashboardCreators/WebServiceDataSourceDashboard.cs b/e2e/Sandbox/DashboardCreators/WebServiceDataSourceDashboard.cs new file mode 100644 index 00000000..d39bc591 --- /dev/null +++ b/e2e/Sandbox/DashboardCreators/WebServiceDataSourceDashboard.cs @@ -0,0 +1,19 @@ +using Reveal.Sdk.Dom; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Sandbox.DashboardFactories +{ + internal class WebServiceDataSourceDashboard : IDashboardCreator + { + public string Name => "Web Service Data Source"; + + public RdashDocument CreateDashboard() + { + throw new NotImplementedException(); + } + } +} diff --git a/e2e/Sandbox/MainWindow.xaml.cs b/e2e/Sandbox/MainWindow.xaml.cs index f04b78aa..587bbcd5 100644 --- a/e2e/Sandbox/MainWindow.xaml.cs +++ b/e2e/Sandbox/MainWindow.xaml.cs @@ -43,18 +43,33 @@ public partial class MainWindow : Window List _dashboardCreators = new List { new AmazonAthenaDashboard(), + new AmazonS3Dashboard(), + new AmazonRedshiftDashboard(), new CampaignsDashboard(), new CustomDashboard(), new DashboardLinkingDashboard(), + new GoogleAnalytic4Dashboard(), + new GoogleBigQueryDashboard(), + new GoogleDriveDashboard(), + new GoogleSheetDashboard(), new HealthcareDashboard(), + new HttpAnalysisDashboard(), new ManufacturingDashboard(), new MarketingDashboard(), + new MongoDashboard(), + new MSAnalysisServiceDashboard(), + new MSAzureAnalysisServiceDashboard(), + new MSAzureSqlDashboard(), + new MySqlDashboard(), new MSAzureSqlServerDSDashboard(), + new ODataDashboard(), + new OracleDashboard(), new PostgresqlDashboard(), new RestDataSourceDashboard(), new SalesDashboard(), new SnowflakeDashboard(), new SqlServerDataSourceDashboards(), + new WebServiceDataSourceDashboard(), }; public MainWindow() @@ -63,8 +78,22 @@ public MainWindow() RevealSdkSettings.DataSourceProvider = new DataSourceProvider(); RevealSdkSettings.AuthenticationProvider = new AuthenticationProvider(); - RevealSdkSettings.DataSources.RegisterMicrosoftSqlServer().RegisterMicrosoftAnalysisServices().RegisterPostgreSQL().RegisterAmazonAthena(); - RevealSdkSettings.DataSources.RegisterSnowflake(); + RevealSdkSettings.DataSources + .RegisterMicrosoftSqlServer() + .RegisterMicrosoftAnalysisServices() + .RegisterPostgreSQL() + .RegisterAmazonAthena() + .RegisterMicrosoftSynapseAnalytics() + .RegisterSnowflake() + .RegisterMySql() + .RegisterMongoDB() + .RegisterGoogleDrive() + .RegisterGoogleBigQuery() + .RegisterGoogleAnalytics4() + .RegisterAmazonRedshift() + .RegisterAmazonS3() + .RegisterGoogleDrive() + .RegisterOracle(); LoadDashboards(); @@ -223,6 +252,7 @@ private async void CreateDashboardWithTypeBtn_Click(object sender, RoutedEventAr if (creator != null) { RdashDocument document = creator.CreateDashboard(); + var json = document.ToJsonString(); _revealView.Dashboard = await RVDashboard.LoadFromJsonAsync(json);