2019-05-09 18:54:39 +12:00
|
|
|
(function (window) {
|
|
|
|
"use strict";
|
|
|
|
|
2019-05-09 20:01:51 +12:00
|
|
|
window.ls.container.set('console', function (window) {
|
2022-08-02 22:21:31 +12:00
|
|
|
var client = new Appwrite.Client();
|
2021-09-03 19:38:46 +12:00
|
|
|
var endpoint = window.location.origin + '/v1';
|
2019-05-09 18:54:39 +12:00
|
|
|
|
2022-08-02 22:21:31 +12:00
|
|
|
client
|
2021-09-03 19:38:46 +12:00
|
|
|
.setEndpoint(endpoint)
|
2019-08-06 17:25:54 +12:00
|
|
|
.setProject('console')
|
2019-08-06 16:58:32 +12:00
|
|
|
.setLocale(APP_ENV.LOCALE)
|
2019-08-06 17:25:54 +12:00
|
|
|
;
|
2019-05-09 18:54:39 +12:00
|
|
|
|
2022-08-02 22:21:31 +12:00
|
|
|
return {
|
|
|
|
client: client,
|
|
|
|
account: new Appwrite.Account(client),
|
|
|
|
avatars: new Appwrite.Avatars(client),
|
|
|
|
databases: new Appwrite.Databases(client),
|
|
|
|
functions: new Appwrite.Functions(client),
|
|
|
|
health: new Appwrite.Health(client),
|
|
|
|
locale: new Appwrite.Locale(client),
|
|
|
|
projects: new Appwrite.Projects(client),
|
|
|
|
storage: new Appwrite.Storage(client),
|
|
|
|
teams: new Appwrite.Teams(client),
|
|
|
|
users: new Appwrite.Users(client)
|
|
|
|
}
|
2019-05-09 18:54:39 +12:00
|
|
|
}, true);
|
|
|
|
|
|
|
|
})(window);
|