Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Codecrew
/
Moya Info Tools
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1410e8eb
authored
Jun 09, 2019
by
Liv Haapala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moyasignup, päivityksiä
1 parent
4ff65cec
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
142 additions
and
15 deletions
MoyaAdmin/MoyaAdminUI/MoyaAdminLib/Properties/AssemblyInfo.cs
MoyaAdmin/MoyaAdminUI/MoyaAdminLib/RestClient.cs
MoyaAdmin/MoyaAdminUI/MoyaAdminUI/ListCardsForm.resx
MoyaAdmin/MoyaAdminUI/haarcascade_frontalface_default.xml
MoyaSignup/Properties/AssemblyInfo.cs
MoyaSignup/UserDetailsEditor.cs
MoyaSignup/autopublish.xml
MoyaSignup/out_moya.nsi
MoyaAdmin/MoyaAdminUI/MoyaAdminLib/Properties/AssemblyInfo.cs
View file @
1410e8e
...
...
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.
2
.0")]
[assembly: AssemblyFileVersion("1.0.
2
.0")]
[assembly: AssemblyVersion("1.0.
3
.0")]
[assembly: AssemblyFileVersion("1.0.
3
.0")]
MoyaAdmin/MoyaAdminUI/MoyaAdminLib/RestClient.cs
View file @
1410e8e
...
...
@@ -37,21 +37,21 @@ namespace MoyaAdminLib
EndPoint
=
ApiURL
;
Method
=
HttpVerb
.
GET
;
ContentType
=
"application/json"
;
ContentType
=
"application/json
; charset=utf-8
"
;
PostData
=
""
;
}
public
RestClient
(
string
endpoint
)
{
EndPoint
=
endpoint
;
Method
=
HttpVerb
.
GET
;
ContentType
=
"application/json"
;
ContentType
=
"application/json
; charset=utf-8
"
;
PostData
=
""
;
}
public
RestClient
(
string
endpoint
,
HttpVerb
method
)
{
EndPoint
=
endpoint
;
Method
=
method
;
ContentType
=
"application/json"
;
ContentType
=
"application/json
; charset=utf-8
"
;
PostData
=
""
;
}
...
...
@@ -59,7 +59,7 @@ namespace MoyaAdminLib
{
EndPoint
=
endpoint
;
Method
=
method
;
ContentType
=
"application/json"
;
ContentType
=
"application/json
; charset=utf-8
"
;
PostData
=
postData
;
}
...
...
@@ -130,11 +130,12 @@ namespace MoyaAdminLib
request
.
Method
=
Method
.
ToString
();
request
.
ContentLength
=
0
;
request
.
ContentType
=
ContentType
;
if
(!
string
.
IsNullOrEmpty
(
PostData
)
&&
(
Method
==
HttpVerb
.
POST
||
Method
==
HttpVerb
.
PUT
))
{
var
encoding
=
new
UTF8Encoding
();
var
bytes
=
Encoding
.
GetEncoding
(
"
iso-8859-1
"
).
GetBytes
(
PostData
);
var
bytes
=
Encoding
.
GetEncoding
(
"
utf-8
"
).
GetBytes
(
PostData
);
request
.
ContentLength
=
bytes
.
Length
;
using
(
var
writeStream
=
request
.
GetRequestStream
())
...
...
@@ -219,7 +220,7 @@ namespace MoyaAdminLib
request.PreAuthenticate = true;
*/
string
encoded
=
System
.
Convert
.
ToBase64String
(
System
.
Text
.
Encoding
.
GetEncoding
(
"
ISO
-8859-1"
).
GetBytes
(
username
+
":"
+
pw
));
string
encoded
=
System
.
Convert
.
ToBase64String
(
System
.
Text
.
Encoding
.
GetEncoding
(
"
iso
-8859-1"
).
GetBytes
(
username
+
":"
+
pw
));
request
.
Headers
.
Add
(
"Authorization"
,
"Basic "
+
encoded
);
request
.
Method
=
"POST"
;
...
...
MoyaAdmin/MoyaAdminUI/MoyaAdminUI/ListCardsForm.resx
0 → 100644
View file @
1410e8e
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
\ No newline at end of file
MoyaAdmin/MoyaAdminUI/haarcascade_frontalface_default.xml
0 → 100644
View file @
1410e8e
This diff could not be displayed because it is too large.
MoyaSignup/Properties/AssemblyInfo.cs
View file @
1410e8e
...
...
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.5
6
.0")]
[assembly: AssemblyFileVersion("1.0.5
6
.0")]
[assembly: AssemblyVersion("1.0.5
7
.0")]
[assembly: AssemblyFileVersion("1.0.5
7
.0")]
MoyaSignup/UserDetailsEditor.cs
View file @
1410e8e
...
...
@@ -125,6 +125,7 @@ namespace MoyaSignup
txtCity
.
ReadOnly
=
false
;
txtPhone
.
ReadOnly
=
false
;
this
.
usersPictureBox
.
Image
=
null
;
// this.usersPictureBox.Image.Dispose();
if
(
txtEmail
.
Text
.
Length
>
0
)
{
...
...
@@ -318,7 +319,7 @@ namespace MoyaSignup
JavaScriptSerializer
ser
=
new
JavaScriptSerializer
();
client
.
PostData
=
ser
.
Serialize
(
user
);
client
.
ContentType
=
"application/json"
;
client
.
ContentType
=
"application/json
;charset=utf-8
"
;
try
{
string
json
=
client
.
MakeRequest
(
"v2/user/create/"
);
...
...
@@ -657,6 +658,8 @@ namespace MoyaSignup
public
void
loadUserImage
(
User
user
)
{
//usersPictureBox.Image?.Dispose();
usersPictureBox
.
Image
=
null
;
//PictureTaken = false;
if
(
user
.
UserId
==
0
)
return
;
...
...
@@ -668,7 +671,8 @@ namespace MoyaSignup
{
using
(
Stream
stream
=
response
.
GetResponseStream
())
{
usersPictureBox
.
Image
=
Bitmap
.
FromStream
(
stream
);
usersPictureBox
.
Image
=
Image
.
FromStream
(
stream
);
usersPictureBox
.
Update
();
}
}
...
...
MoyaSignup/autopublish.xml
View file @
1410e8e
<?xml version="1.0" encoding="utf-8"?>
<AutoPublishSettings
xmlns:xs
d=
"http://www.w3.org/2001/XMLSchema"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance
"
>
<AutoPublishSettings
xmlns:xs
i=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd=
"http://www.w3.org/2001/XMLSchema
"
>
<UploadUser>
f-solu-06
</UploadUser>
<PrivateKeyPath
/>
<UploadPath>
/home/f-solu-06/software.f-solutions.fi
</UploadPath>
<UploadHost>
www4.f-solutions.fi
</UploadHost>
<ProjectName>
MoyaSignup
</ProjectName>
...
...
MoyaSignup/out_moya.nsi
View file @
1410e8e
...
...
@@ -22,7 +22,7 @@
Name "MoyaSignup moya v1_00_5
6
"
Name "MoyaSignup moya v1_00_5
7
"
; DO NOT CHANGE OutFile "installer_temp.exe" !!! AutoPublish requires this.
...
...
@@ -198,7 +198,7 @@ FunctionEnd
Section "!MoyaSignup moya stable v1_00_5
6
" SecMain
Section "!MoyaSignup moya stable v1_00_5
7
" SecMain
SetShellVarContext current
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment