Skip to content

Commit 2b3e1b4

Browse files
v0.3.0-beta.4
1 parent b096f44 commit 2b3e1b4

File tree

65 files changed

+3162
-835
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+3162
-835
lines changed

global.d.ts

Lines changed: 2513 additions & 546 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "quickblox-react-ui-kit",
3-
"version": "0.3.0-beta.3",
3+
"version": "0.3.0-beta.4",
44
"main": "dist/index-ui.js",
55
"license": "MIT",
66
"dependencies": {

src/App.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
body {
2+
font-family: 'Roboto';
3+
}

src/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ function App() {
2727
const { connectionRepository } = useQBConnection();
2828

2929
const initLoginData: LoginData = {
30-
login: '',
31-
password: '',
30+
login: 'artik', // vit1 380990579507
31+
password: 'quickblox',
3232
};
3333

3434
const [currentUser, setCurrentUser] = React.useState(initLoginData);

src/Data/Creator.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export class Creator {
6666
if (error) {
6767
reject(error);
6868
} else {
69-
resolve(result.blob.uid);
69+
resolve(result!.blob.uid);
7070
}
7171
});
7272
});
@@ -99,7 +99,6 @@ export class Creator {
9999
name: '',
100100
size: 0,
101101
type: FileType.image,
102-
data: '',
103102
};
104103
}
105104
}

src/Data/DefaultConfigurations.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,10 @@ export class DefaultConfigurations {
133133
static getDefaultQBConfig(): QBConfig {
134134
return {
135135
credentials: {
136-
appId: -1,
137-
accountKey: '',
138-
authKey: '',
139-
authSecret: '',
136+
appId: 75949,
137+
accountKey: 'uK_8uinNyz8-npTNB6tx',
138+
authKey: 'DdS7zxMEm5Q7DaS',
139+
authSecret: 'g88RhdOjnDOqFkv',
140140
sessionToken: '',
141141
},
142142
configAIApi: {

src/Data/Stubs.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ export class Stubs {
6464
name: '',
6565
size: 0,
6666
type: FileType.image,
67-
data: '',
6867
};
6968
}
7069

@@ -867,7 +866,7 @@ export class Stubs {
867866
login: string,
868867
created_at: string,
869868
updated_at: string,
870-
last_request_at: string,
869+
last_request_at: number,
871870
custom_data: string | null = null,
872871
user_tags: string | null = null,
873872
blob_id = '',
@@ -965,7 +964,7 @@ export class Stubs {
965964
'login_user11',
966965
'31.03.2023',
967966
'31.03.2023',
968-
'31.03.2023',
967+
0,
969968
);
970969

971970
const user12: UserEntity = Stubs.createUserEntityWithParams(
@@ -975,7 +974,7 @@ export class Stubs {
975974
'login_user12',
976975
'31.03.2023',
977976
'31.03.2023',
978-
'31.03.2023',
977+
0,
979978
);
980979

981980
const user13: UserEntity = Stubs.createUserEntityWithParams(
@@ -985,7 +984,7 @@ export class Stubs {
985984
'login_user13',
986985
'31.03.2023',
987986
'31.03.2023',
988-
'31.03.2023',
987+
0,
989988
);
990989

991990
users.push(user11);

src/Data/dto/file/RemoteFileDTO.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ export class RemoteFileDTO {
1111

1212
public type: string;
1313

14-
public data: string | File;
14+
public data: File | undefined;
1515

1616
constructor() {
1717
this.id = '';
1818
this.type = '';
19-
this.data = '';
19+
this.data = undefined;
2020

2121
this.uid = '';
2222
this.url = '';

src/Data/dto/message/RemoteMessageDTO.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export class RemoteMessageDTO {
66

77
public dialogId: string;
88

9-
public message: string;
9+
public message: string | null;
1010

1111
public created_at: string;
1212

src/Data/dto/user/LocalUserDTO.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export class LocalUserDTO {
1313

1414
public updated_at: string;
1515

16-
public last_request_at: string;
16+
public last_request_at: number;
1717

1818
public custom_data: string | null;
1919

@@ -29,7 +29,7 @@ export class LocalUserDTO {
2929
this.login = '';
3030
this.created_at = '';
3131
this.updated_at = '';
32-
this.last_request_at = '';
32+
this.last_request_at = 0;
3333
this.custom_data = '';
3434
this.user_tags = '';
3535
this.blob_id = '';

0 commit comments

Comments
 (0)