Skip to content

Commit

Permalink
Merge branch 'feature/To_URLConnection' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
ktekinay committed Jul 3, 2020
2 parents 5b2bcb8 + e75a421 commit a7812bf
Show file tree
Hide file tree
Showing 45 changed files with 1,999 additions and 1,188 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ Kaju Admin App/Builds - Kaju Admin.xojo_project
Kaju Admin CLI/kaju.debug
Kaju Admin CLI/Builds - Kaju Admin CLI.xojo_project
*.gz
Update Test App/Builds - Kaju Update Test
Kaju Admin App/Builds - Kaju Admin
Kaju Admin CLI/Builds - Kaju Admin CLI
14 changes: 7 additions & 7 deletions Admin Classes/KajuFile.xojo_code
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,6 @@ Protected Class KajuFile
binaryData.Value( Kaju.BinaryInformation.kKeyURL ) = url
end if
next

//
// Add a security token
//
dim rawKey as string = Crypto.GenerateRandomBytes( 8 )
dim encodedKey as string = EncodeBase64( rawKey, 0 )
thisVersionData.Value( Kaju.kNameSecurityToken ) = encodedKey
next

dim dataString as string = data.ToString
Expand Down Expand Up @@ -268,32 +261,39 @@ Protected Class KajuFile
Group="ID"
InitialValue="-2147483648"
Type="Integer"
EditorType=""
#tag EndViewProperty
#tag ViewProperty
Name="Left"
Visible=true
Group="Position"
InitialValue="0"
Type="Integer"
EditorType=""
#tag EndViewProperty
#tag ViewProperty
Name="Name"
Visible=true
Group="ID"
InitialValue=""
Type="String"
EditorType=""
#tag EndViewProperty
#tag ViewProperty
Name="Super"
Visible=true
Group="ID"
InitialValue=""
Type="String"
EditorType=""
#tag EndViewProperty
#tag ViewProperty
Name="Top"
Visible=true
Group="Position"
InitialValue="0"
Type="Integer"
EditorType=""
#tag EndViewProperty
#tag EndViewBehavior
End Class
Expand Down
132 changes: 81 additions & 51 deletions Kaju Admin App/Controls/BinaryInformationControl.xojo_window
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ Begin ContainerControl BinaryInformationControl
AutoDeactivate = True
BackColor = &cFFFFFF00
Backdrop = 0
Compatibility = ""
DoubleBuffer = False
Enabled = True
EraseBackground = True
Expand All @@ -29,7 +28,7 @@ Begin ContainerControl BinaryInformationControl
Begin PushButton btnHashFromURL
AutoDeactivate = True
Bold = False
ButtonStyle = "0"
ButtonStyle = 0
Cancel = False
Caption = "From URL"
Default = False
Expand Down Expand Up @@ -429,14 +428,13 @@ End

hashField.Text = ""

dim http as new Kaju.HTTPSSocket
url = http.GetRedirectAddress( url, 5 )
dim http as new Kaju.HTTPSocketAsync

dim file as FolderItem = GetTemporaryFolderItem
dim r as boolean = http.Get( url, file, 30 )
if not r or http.LastErrorCode <> 0 then
http.GetSync( url, file, 30 )
if http.HTTPStatusCode <> 200 then

MsgBox "Could not get the executable from that url: " + str( http.LastErrorCode )
MsgBox "Could not get the executable from that url: " + str( http.HTTPStatusCode )

else

Expand Down Expand Up @@ -560,54 +558,82 @@ End
#tag EndEvents
#tag ViewBehavior
#tag ViewProperty
Name="DoubleBuffer"
Name="AllowAutoDeactivate"
Visible=true
Group="Windows Behavior"
Group="Appearance"
InitialValue="True"
Type="Boolean"
EditorType=""
#tag EndViewProperty
#tag ViewProperty
Name="Tooltip"
Visible=true
Group="Appearance"
InitialValue=""
Type="String"
EditorType="MultiLineEditor"
#tag EndViewProperty
#tag ViewProperty
Name="AllowFocusRing"
Visible=true
Group="Appearance"
InitialValue="False"
Type="Boolean"
EditorType="Boolean"
EditorType=""
#tag EndViewProperty
#tag ViewProperty
Name="AcceptFocus"
Name="BackgroundColor"
Visible=true
Group="Behavior"
Group="Background"
InitialValue="&hFFFFFF"
Type="Color"
EditorType="Color"
#tag EndViewProperty
#tag ViewProperty
Name="HasBackgroundColor"
Visible=true
Group="Background"
InitialValue="False"
Type="Boolean"
EditorType="Boolean"
EditorType=""
#tag EndViewProperty
#tag ViewProperty
Name="AcceptTabs"
Name="AllowFocus"
Visible=true
Group="Behavior"
InitialValue="True"
InitialValue="False"
Type="Boolean"
EditorType="Boolean"
EditorType=""
#tag EndViewProperty
#tag ViewProperty
Name="AutoDeactivate"
Name="AllowTabs"
Visible=true
Group="Appearance"
Group="Behavior"
InitialValue="True"
Type="Boolean"
EditorType=""
#tag EndViewProperty
#tag ViewProperty
Name="BackColor"
Name="DoubleBuffer"
Visible=true
Group="Background"
InitialValue="&hFFFFFF"
Type="Color"
Group="Windows Behavior"
InitialValue="False"
Type="Boolean"
EditorType=""
#tag EndViewProperty
#tag ViewProperty
Name="Backdrop"
Visible=true
Group="Background"
InitialValue=""
Type="Picture"
EditorType="Picture"
EditorType=""
#tag EndViewProperty
#tag ViewProperty
Name="BinaryName"
Visible=true
Group="Behavior"
InitialValue=""
Type="String"
EditorType="MultiLineEditor"
#tag EndViewProperty
Expand All @@ -617,146 +643,150 @@ End
Group="Appearance"
InitialValue="True"
Type="Boolean"
EditorType="Boolean"
EditorType=""
#tag EndViewProperty
#tag ViewProperty
Name="EraseBackground"
Visible=true
Group="Behavior"
InitialValue="True"
Type="Boolean"
EditorType="Boolean"
#tag EndViewProperty
#tag ViewProperty
Name="HasBackColor"
Visible=true
Group="Background"
InitialValue="False"
Type="Boolean"
EditorType=""
#tag EndViewProperty
#tag ViewProperty
Name="Height"
Visible=true
Group="Size"
InitialValue="300"
Type="Integer"
#tag EndViewProperty
#tag ViewProperty
Name="HelpTag"
Visible=true
Group="Appearance"
Type="String"
EditorType=""
#tag EndViewProperty
#tag ViewProperty
Name="InitialParent"
Visible=false
Group="Position"
InitialValue=""
Type="String"
EditorType=""
#tag EndViewProperty
#tag ViewProperty
Name="IsChecked"
Visible=false
Group="Behavior"
InitialValue=""
Type="Boolean"
EditorType=""
#tag EndViewProperty
#tag ViewProperty
Name="Left"
Visible=true
Group="Position"
InitialValue=""
Type="Integer"
EditorType=""
#tag EndViewProperty
#tag ViewProperty
Name="LockBottom"
Visible=true
Group="Position"
InitialValue=""
Type="Boolean"
EditorType=""
#tag EndViewProperty
#tag ViewProperty
Name="LockLeft"
Visible=true
Group="Position"
InitialValue=""
Type="Boolean"
EditorType=""
#tag EndViewProperty
#tag ViewProperty
Name="LockRight"
Visible=true
Group="Position"
InitialValue=""
Type="Boolean"
EditorType=""
#tag EndViewProperty
#tag ViewProperty
Name="LockTop"
Visible=true
Group="Position"
InitialValue=""
Type="Boolean"
EditorType=""
#tag EndViewProperty
#tag ViewProperty
Name="Name"
Visible=true
Group="ID"
InitialValue=""
Type="String"
EditorType="String"
EditorType=""
#tag EndViewProperty
#tag ViewProperty
Name="Super"
Visible=true
Group="ID"
InitialValue=""
Type="String"
EditorType="String"
EditorType=""
#tag EndViewProperty
#tag ViewProperty
Name="TabIndex"
Visible=true
Group="Position"
InitialValue="0"
Type="Integer"
EditorType=""
#tag EndViewProperty
#tag ViewProperty
Name="TabPanelIndex"
Visible=false
Group="Position"
InitialValue="0"
Type="Integer"
EditorType=""
#tag EndViewProperty
#tag ViewProperty
Name="TabStop"
Visible=true
Group="Position"
InitialValue="True"
Type="Boolean"
EditorType="Boolean"
EditorType=""
#tag EndViewProperty
#tag ViewProperty
Name="Top"
Visible=true
Group="Position"
InitialValue=""
Type="Integer"
EditorType=""
#tag EndViewProperty
#tag ViewProperty
Name="Transparent"
Visible=true
Group="Behavior"
InitialValue="True"
Type="Boolean"
EditorType="Boolean"
#tag EndViewProperty
#tag ViewProperty
Name="UseFocusRing"
Visible=true
Group="Appearance"
InitialValue="False"
Type="Boolean"
EditorType="Boolean"
EditorType=""
#tag EndViewProperty
#tag ViewProperty
Name="Visible"
Visible=true
Group="Appearance"
InitialValue="True"
Type="Boolean"
EditorType="Boolean"
EditorType=""
#tag EndViewProperty
#tag ViewProperty
Name="Width"
Visible=true
Group="Size"
InitialValue="300"
Type="Integer"
EditorType=""
#tag EndViewProperty
#tag EndViewBehavior
Loading

0 comments on commit a7812bf

Please sign in to comment.