-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Added isMultiplayer to receive log * Adds universal OAuth, preliminary connector installer and new column in GetByURL table (#41) * ci: Added step to sign MEZ file * ci: Fix output dir * ci: Added innosetup installer test * ci: Fix path * ci: Fix sign tool path 🤦🏼♂️ * ci: Don't sign * feat: Added parent object column to GetByUrl result * feat: Universal OAuth login * fix: Installer function fail, non-critical. Reverted to simple implementation
- Loading branch information
Showing
54 changed files
with
12,087 additions
and
96 deletions.
There are no files selected for viewing
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,45 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="BuildMez"> | ||
<PropertyGroup> | ||
<OutputPath Condition="'$(OutputPath)' == ''">$(MSBuildProjectDirectory)\bin\</OutputPath> | ||
<IntermediateOutputPath Condition="'$(IntermediateOutputPath)' == ''">$(MSBuildProjectDirectory)\obj\</IntermediateOutputPath> | ||
<MezIntermediatePath>$(IntermediateOutputPath)MEZ\</MezIntermediatePath> | ||
<MezOutputPath>$(OutputPath)$(MsBuildProjectName).mez</MezOutputPath> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<MezContent Include="Speckle.pq" /> | ||
<MezContent Include="utilities\**\*.pqm" /> | ||
<MezContent Include="speckle\**\*.pqm" /> | ||
<MezContent Include="assets\SpeckleLogo16.png" /> | ||
<MezContent Include="assets\SpeckleLogo20.png" /> | ||
<MezContent Include="assets\SpeckleLogo24.png" /> | ||
<MezContent Include="assets\SpeckleLogo32.png" /> | ||
<MezContent Include="assets\SpeckleLogo40.png" /> | ||
<MezContent Include="assets\SpeckleLogo48.png" /> | ||
<MezContent Include="assets\SpeckleLogo64.png" /> | ||
<MezContent Include="assets\SpeckleLogo80.png" /> | ||
<MezContent Include="assets\resources.resx" /> | ||
</ItemGroup> | ||
<Target Name="BuildMez" AfterTargets="Build" Inputs="@(MezContent)" Outputs="$(MezOutputPath)"> | ||
<RemoveDir Directories="$(MezIntermediatePath)" /> | ||
<Copy SourceFiles="@(MezContent)" DestinationFolder="$(MezIntermediatePath)" /> | ||
<MakeDir Directories="$(OutputPath)" Condition="!Exists('$(OutputPath)')" /> | ||
<ZipDirectory SourceDirectory="$(MezIntermediatePath)" DestinationFile="$(MezOutputPath)" Overwrite="true" /> | ||
</Target> | ||
<Target Name="CopyToConnectors" AfterTargets="BuildMez"> | ||
<Message Text="Copying .mez file to: $(UserProfile)\Documents\Power BI Desktop\Custom Connectors" Importance="High" /> | ||
<MakeDir Directories="$(UserProfile)\Documents\Power BI Desktop\Custom Connectors\" /> | ||
<Copy SourceFiles="$(MezOutputPath)" DestinationFolder="$(UserProfile)\Documents\Power BI Desktop\Custom Connectors\"/> | ||
</Target> | ||
<Target Name="Clean"> | ||
<RemoveDir Directories="$(MezIntermediatePath)" /> | ||
<Delete Files="$(MezOutputPath)" /> | ||
</Target> | ||
</Project> | ||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" | ||
DefaultTargets="BuildMez"> | ||
<PropertyGroup> | ||
<Version Condition="'$(Version)' == ''">2.0.0-wip</Version> | ||
<OutputPath Condition="'$(OutputPath)' == ''">$(MSBuildProjectDirectory)\bin\</OutputPath> | ||
<IntermediateOutputPath Condition="'$(IntermediateOutputPath)' == ''"> | ||
$(MSBuildProjectDirectory)\obj\</IntermediateOutputPath> | ||
<MezIntermediatePath>$(IntermediateOutputPath)MEZ\</MezIntermediatePath> | ||
<MezOutputPath>$(OutputPath)$(MsBuildProjectName).mez</MezOutputPath> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<MezContent Include="Speckle.pq" /> | ||
<MezContent Include="utilities\**\*.pqm" /> | ||
<MezContent Include="speckle\**\*.pqm" /> | ||
<MezContent Include="assets\SpeckleLogo16.png" /> | ||
<MezContent Include="assets\SpeckleLogo20.png" /> | ||
<MezContent Include="assets\SpeckleLogo24.png" /> | ||
<MezContent Include="assets\SpeckleLogo32.png" /> | ||
<MezContent Include="assets\SpeckleLogo40.png" /> | ||
<MezContent Include="assets\SpeckleLogo48.png" /> | ||
<MezContent Include="assets\SpeckleLogo64.png" /> | ||
<MezContent Include="assets\SpeckleLogo80.png" /> | ||
<MezContent Include="assets\resources.resx" /> | ||
</ItemGroup> | ||
<Target Name="BuildMez" AfterTargets="Build" Inputs="@(MezContent)" Outputs="$(MezOutputPath)"> | ||
<RemoveDir Directories="$(MezIntermediatePath)" /> | ||
<Copy SourceFiles="@(MezContent)" DestinationFolder="$(MezIntermediatePath)" /> | ||
<MakeDir Directories="$(OutputPath)" Condition="!Exists('$(OutputPath)')" /> | ||
<ZipDirectory SourceDirectory="$(MezIntermediatePath)" DestinationFile="$(MezOutputPath)" | ||
Overwrite="true" /> | ||
</Target> | ||
<Target Name="CopyToConnectors" AfterTargets="BuildMez"> | ||
<Message | ||
Text="Copying .mez file to: $(UserProfile)\Documents\Power BI Desktop\Custom Connectors" | ||
Importance="High" /> | ||
<MakeDir Directories="$(UserProfile)\Documents\Power BI Desktop\Custom Connectors\" /> | ||
<Copy SourceFiles="$(MezOutputPath)" | ||
DestinationFolder="$(UserProfile)\Documents\Power BI Desktop\Custom Connectors\" /> | ||
</Target> | ||
<Target Name="Clean"> | ||
<RemoveDir Directories="$(MezIntermediatePath)" /> | ||
<Delete Files="$(MezOutputPath)" /> | ||
</Target> | ||
</Project> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
// Use this file to write queries to test your data connector | ||
let result = Speckle.GetByUrl.Structured("https://speckle.xyz/streams/ceecc65de7") in Record.ToTable(result) | ||
let result = Speckle.GetByUrl("https://latest.speckle.dev/streams/c1faab5c62/commits/aefb7a5fff") in result |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ in | |
id | ||
sourceApplication | ||
referencedObject | ||
authorId | ||
} | ||
} | ||
}", | ||
|
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
let | ||
GetApplicationSlug = Extension.LoadFunction("GetApplicationSlug.pqm"), | ||
GetUser = Extension.LoadFunction("Api.GetUser.pqm"), | ||
LogEvent = Extension.LoadFunction("LogEvent.pqm"), | ||
Hash = Extension.LoadFunction("Hash.pqm"), | ||
Extension.LoadFunction = (fileName as text) => | ||
let | ||
binary = Extension.Contents(fileName), asText = Text.FromBinary(binary) | ||
in | ||
try | ||
Expression.Evaluate(asText, #shared) catch (e) => | ||
error | ||
[ | ||
Reason = "Extension.LoadFunction Failure", | ||
Message.Format = "Loading '#{0}' failed - '#{1}': '#{2}'", | ||
Message.Parameters = {fileName, e[Reason], e[Message]}, | ||
Detail = [File = fileName, Error = e] | ||
] | ||
in | ||
(server as text, commit as text) => | ||
let | ||
user = GetUser(server), | ||
event = "Receive", | ||
properties = [ | ||
server_id = Hash(server), | ||
token = "acd87c5a50b56df91a795e999812a3a4", | ||
hostApp = "powerbi", | ||
sourceHostApp = GetApplicationSlug(commit[sourceApplication]), | ||
sourceHostAppVersion = commit[sourceApplication], | ||
isMultiplayer = commit[authorId] <> user[id] | ||
] | ||
in | ||
LogEvent(server, event, properties) |
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
Oops, something went wrong.