@vocollege/app 0.0.70 → 0.0.72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -450,6 +450,8 @@
450
450
  "createUser": "Skapa användare",
451
451
  "updateUser": "Uppdatera användare:",
452
452
  "searchField": "Sök…",
453
+ "searchFieldResult": "Sök… ::number objekt hittades",
454
+ "numberOfObjects": "Antal objekt: ::number",
453
455
  "loadingContent": "Laddar innehåll...",
454
456
  "createArticle": "Skapa artikel",
455
457
  "createPage": "Skapa sida",
@@ -618,7 +620,8 @@
618
620
  "clear": "Rensa",
619
621
  "delete": "Radera",
620
622
  "download": "Ladda ner",
621
- "copyLink": "Kopiera länk"
623
+ "copyLink": "Kopiera länk",
624
+ "apply": "Tillämpa"
622
625
  },
623
626
  "status": {
624
627
  "unpublished": "Opublicerat",
@@ -704,7 +707,8 @@
704
707
  "active": "Aktiv",
705
708
  "inactive": "Inaktiv",
706
709
  "myAccount": "Mitt konto",
707
- "managing": "Hanterar"
710
+ "managing": "Hanterar",
711
+ "validig": "Validig"
708
712
  },
709
713
  "diploma": {
710
714
  "label": "Diplom",
@@ -1,2 +1,3 @@
1
+ export declare const GET_ARTICLES_FIELDS: import("@apollo/client").DocumentNode;
1
2
  export declare const GET_ARTICLE: import("@apollo/client").DocumentNode;
2
3
  export declare const GET_ARTICLES: import("@apollo/client").DocumentNode;
@@ -4,8 +4,9 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
4
4
  return cooked;
5
5
  };
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.GET_ARTICLES = exports.GET_ARTICLE = void 0;
7
+ exports.GET_ARTICLES = exports.GET_ARTICLE = exports.GET_ARTICLES_FIELDS = void 0;
8
8
  var client_1 = require("@apollo/client");
9
- exports.GET_ARTICLE = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n query Article($id: ID!) {\n article(id: $id) {\n id\n title\n body\n status\n url\n editUrl\n author {\n ... on User {\n id\n name\n type\n }\n }\n date\n tags {\n id\n label\n }\n images {\n id\n title\n filename\n filesize\n filetype\n url\n }\n attachments {\n id\n title\n filename\n filesize\n filetype\n url\n type\n }\n created_at\n updated_at\n }\n # setting(name: \"frontFilesPortfolio\") {\n # name\n # category\n # value\n # }\n\n # portfolio(id: \"02a2f313-8a89-48dc-a242-f8c5177c0561\") {\n # id\n # disk\n # name\n # disk\n # title\n # description\n # created_at\n # updated_at\n # }\n }\n"], ["\n query Article($id: ID!) {\n article(id: $id) {\n id\n title\n body\n status\n url\n editUrl\n author {\n ... on User {\n id\n name\n type\n }\n }\n date\n tags {\n id\n label\n }\n images {\n id\n title\n filename\n filesize\n filetype\n url\n }\n attachments {\n id\n title\n filename\n filesize\n filetype\n url\n type\n }\n created_at\n updated_at\n }\n # setting(name: \"frontFilesPortfolio\") {\n # name\n # category\n # value\n # }\n\n # portfolio(id: \"02a2f313-8a89-48dc-a242-f8c5177c0561\") {\n # id\n # disk\n # name\n # disk\n # title\n # description\n # created_at\n # updated_at\n # }\n }\n"])));
10
- exports.GET_ARTICLES = (0, client_1.gql)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n query Articles(\n $search: String\n $page: Int\n $limit: Int\n $orderBy: [GetArticlesOrderByClause]\n ) {\n articles(search: $search, page: $page, limit: $limit, orderBy: $orderBy) {\n paginatorInfo {\n total\n currentPage\n hasMorePages\n }\n data {\n id\n title\n status\n author {\n ... on User {\n id\n name\n type\n }\n }\n date\n created_at\n updated_at\n }\n }\n }\n"], ["\n query Articles(\n $search: String\n $page: Int\n $limit: Int\n $orderBy: [GetArticlesOrderByClause]\n ) {\n articles(search: $search, page: $page, limit: $limit, orderBy: $orderBy) {\n paginatorInfo {\n total\n currentPage\n hasMorePages\n }\n data {\n id\n title\n status\n author {\n ... on User {\n id\n name\n type\n }\n }\n date\n created_at\n updated_at\n }\n }\n }\n"])));
11
- var templateObject_1, templateObject_2;
9
+ exports.GET_ARTICLES_FIELDS = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n fragment ArticlesFields on Article {\n id\n title\n status\n author {\n ... on User {\n id\n name\n type\n }\n }\n date\n created_at\n updated_at\n }\n"], ["\n fragment ArticlesFields on Article {\n id\n title\n status\n author {\n ... on User {\n id\n name\n type\n }\n }\n date\n created_at\n updated_at\n }\n"])));
10
+ exports.GET_ARTICLE = (0, client_1.gql)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n query Article($id: ID!) {\n article(id: $id) {\n id\n title\n body\n status\n url\n editUrl\n author {\n ... on User {\n id\n name\n type\n }\n }\n date\n tags {\n id\n label\n }\n images {\n id\n title\n filename\n filesize\n filetype\n url\n }\n attachments {\n id\n title\n filename\n filesize\n filetype\n url\n type\n }\n created_at\n updated_at\n }\n # setting(name: \"frontFilesPortfolio\") {\n # name\n # category\n # value\n # }\n\n # portfolio(id: \"02a2f313-8a89-48dc-a242-f8c5177c0561\") {\n # id\n # disk\n # name\n # disk\n # title\n # description\n # created_at\n # updated_at\n # }\n }\n"], ["\n query Article($id: ID!) {\n article(id: $id) {\n id\n title\n body\n status\n url\n editUrl\n author {\n ... on User {\n id\n name\n type\n }\n }\n date\n tags {\n id\n label\n }\n images {\n id\n title\n filename\n filesize\n filetype\n url\n }\n attachments {\n id\n title\n filename\n filesize\n filetype\n url\n type\n }\n created_at\n updated_at\n }\n # setting(name: \"frontFilesPortfolio\") {\n # name\n # category\n # value\n # }\n\n # portfolio(id: \"02a2f313-8a89-48dc-a242-f8c5177c0561\") {\n # id\n # disk\n # name\n # disk\n # title\n # description\n # created_at\n # updated_at\n # }\n }\n"])));
11
+ exports.GET_ARTICLES = (0, client_1.gql)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n query Articles(\n $search: String\n $page: Int\n $limit: Int\n $orderBy: [GetArticlesOrderByClause]\n $filters: [GetArticlesFilter]\n ) {\n articles(\n search: $search\n page: $page\n limit: $limit\n orderBy: $orderBy\n filters: $filters\n ) {\n paginatorInfo {\n total\n currentPage\n hasMorePages\n }\n data {\n ...ArticlesFields\n }\n }\n }\n ", "\n"], ["\n query Articles(\n $search: String\n $page: Int\n $limit: Int\n $orderBy: [GetArticlesOrderByClause]\n $filters: [GetArticlesFilter]\n ) {\n articles(\n search: $search\n page: $page\n limit: $limit\n orderBy: $orderBy\n filters: $filters\n ) {\n paginatorInfo {\n total\n currentPage\n hasMorePages\n }\n data {\n ...ArticlesFields\n }\n }\n }\n ", "\n"])), exports.GET_ARTICLES_FIELDS);
12
+ var templateObject_1, templateObject_2, templateObject_3;
@@ -1,3 +1,4 @@
1
1
  export declare const SEARCH_CONTENT: import("@apollo/client").DocumentNode;
2
2
  export declare const SEARCH_USER: import("@apollo/client").DocumentNode;
3
+ export declare const SEARCH_USERS_LIST: import("@apollo/client").DocumentNode;
3
4
  export declare const SEARCH_GROUP: import("@apollo/client").DocumentNode;
@@ -4,9 +4,12 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
4
4
  return cooked;
5
5
  };
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.SEARCH_GROUP = exports.SEARCH_USER = exports.SEARCH_CONTENT = void 0;
7
+ exports.SEARCH_GROUP = exports.SEARCH_USERS_LIST = exports.SEARCH_USER = exports.SEARCH_CONTENT = void 0;
8
8
  var client_1 = require("@apollo/client");
9
+ // Custom.
10
+ var users_1 = require("./users");
9
11
  exports.SEARCH_CONTENT = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n query SearchContent(\n $search: String!\n $types: [String]\n $primaryField: String\n $limit: Int\n $entity: Boolean\n ) {\n searchContent(\n search: $search\n types: $types\n primaryField: $primaryField\n limit: $limit\n entity: $entity\n ) {\n id\n title\n type\n urlAlias {\n id\n usage_id\n usage_type\n alias\n }\n }\n }\n"], ["\n query SearchContent(\n $search: String!\n $types: [String]\n $primaryField: String\n $limit: Int\n $entity: Boolean\n ) {\n searchContent(\n search: $search\n types: $types\n primaryField: $primaryField\n limit: $limit\n entity: $entity\n ) {\n id\n title\n type\n urlAlias {\n id\n usage_id\n usage_type\n alias\n }\n }\n }\n"])));
10
12
  exports.SEARCH_USER = (0, client_1.gql)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n query SearchUser(\n $search: String!\n $roles: [String]\n $limit: Int\n $entity: Boolean\n ) {\n searchUser(search: $search, roles: $roles, limit: $limit, entity: $entity) {\n id\n name\n email\n firstname\n lastname\n type\n }\n }\n"], ["\n query SearchUser(\n $search: String!\n $roles: [String]\n $limit: Int\n $entity: Boolean\n ) {\n searchUser(search: $search, roles: $roles, limit: $limit, entity: $entity) {\n id\n name\n email\n firstname\n lastname\n type\n }\n }\n"])));
11
- exports.SEARCH_GROUP = (0, client_1.gql)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n query SearchGroup($categories: [String], $search: String!, $limit: Int) {\n searchGroup(categories: $categories, search: $search, limit: $limit) {\n id\n name\n title\n category\n certified\n type\n logo {\n id\n title\n filename\n filesize\n filetype\n url\n }\n logo2 {\n id\n title\n filename\n filesize\n filetype\n url\n }\n parentGroups {\n id\n name\n title\n logo {\n id\n title\n filename\n filesize\n filetype\n url\n }\n logo2 {\n id\n title\n filename\n filesize\n filetype\n url\n }\n parentGroups {\n id\n name\n title\n logo {\n id\n title\n filename\n filesize\n filetype\n url\n }\n logo2 {\n id\n title\n filename\n filesize\n filetype\n url\n }\n }\n }\n }\n }\n"], ["\n query SearchGroup($categories: [String], $search: String!, $limit: Int) {\n searchGroup(categories: $categories, search: $search, limit: $limit) {\n id\n name\n title\n category\n certified\n type\n logo {\n id\n title\n filename\n filesize\n filetype\n url\n }\n logo2 {\n id\n title\n filename\n filesize\n filetype\n url\n }\n parentGroups {\n id\n name\n title\n logo {\n id\n title\n filename\n filesize\n filetype\n url\n }\n logo2 {\n id\n title\n filename\n filesize\n filetype\n url\n }\n parentGroups {\n id\n name\n title\n logo {\n id\n title\n filename\n filesize\n filetype\n url\n }\n logo2 {\n id\n title\n filename\n filesize\n filetype\n url\n }\n }\n }\n }\n }\n"])));
12
- var templateObject_1, templateObject_2, templateObject_3;
13
+ exports.SEARCH_USERS_LIST = (0, client_1.gql)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n query SearchUser(\n $search: String!\n $roles: [String]\n $limit: Int\n $entity: Boolean\n ) {\n searchUser(search: $search, roles: $roles, limit: $limit, entity: $entity) {\n ...UsersFields\n }\n }\n ", "\n"], ["\n query SearchUser(\n $search: String!\n $roles: [String]\n $limit: Int\n $entity: Boolean\n ) {\n searchUser(search: $search, roles: $roles, limit: $limit, entity: $entity) {\n ...UsersFields\n }\n }\n ", "\n"])), users_1.GET_USERS_FIELDS);
14
+ exports.SEARCH_GROUP = (0, client_1.gql)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n query SearchGroup($categories: [String], $search: String!, $limit: Int) {\n searchGroup(categories: $categories, search: $search, limit: $limit) {\n id\n name\n title\n category\n certified\n type\n logo {\n id\n title\n filename\n filesize\n filetype\n url\n }\n logo2 {\n id\n title\n filename\n filesize\n filetype\n url\n }\n parentGroups {\n id\n name\n title\n logo {\n id\n title\n filename\n filesize\n filetype\n url\n }\n logo2 {\n id\n title\n filename\n filesize\n filetype\n url\n }\n parentGroups {\n id\n name\n title\n logo {\n id\n title\n filename\n filesize\n filetype\n url\n }\n logo2 {\n id\n title\n filename\n filesize\n filetype\n url\n }\n }\n }\n }\n }\n"], ["\n query SearchGroup($categories: [String], $search: String!, $limit: Int) {\n searchGroup(categories: $categories, search: $search, limit: $limit) {\n id\n name\n title\n category\n certified\n type\n logo {\n id\n title\n filename\n filesize\n filetype\n url\n }\n logo2 {\n id\n title\n filename\n filesize\n filetype\n url\n }\n parentGroups {\n id\n name\n title\n logo {\n id\n title\n filename\n filesize\n filetype\n url\n }\n logo2 {\n id\n title\n filename\n filesize\n filetype\n url\n }\n parentGroups {\n id\n name\n title\n logo {\n id\n title\n filename\n filesize\n filetype\n url\n }\n logo2 {\n id\n title\n filename\n filesize\n filetype\n url\n }\n }\n }\n }\n }\n"])));
15
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
@@ -1,3 +1,4 @@
1
+ export declare const GET_USERS_FIELDS: import("@apollo/client").DocumentNode;
1
2
  export declare const GET_USER: import("@apollo/client").DocumentNode;
2
3
  export declare const GET_USERS: import("@apollo/client").DocumentNode;
3
4
  export declare const GET_ACCOUNT: import("@apollo/client").DocumentNode;
@@ -4,9 +4,10 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
4
4
  return cooked;
5
5
  };
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.GET_ACCOUNT = exports.GET_USERS = exports.GET_USER = void 0;
7
+ exports.GET_ACCOUNT = exports.GET_USERS = exports.GET_USER = exports.GET_USERS_FIELDS = void 0;
8
8
  var client_1 = require("@apollo/client");
9
- exports.GET_USER = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n query User($id: ID!) {\n user(id: $id) {\n id\n name\n email\n firstname\n lastname\n active\n personal_number\n address1\n address2\n postalcode\n town\n country\n phone1\n profession\n status\n gdpr\n description\n updated_at\n created_at\n images {\n id\n title\n filename\n filesize\n filetype\n url\n }\n roles {\n id\n label\n type\n }\n groupRoles {\n id\n label\n type\n }\n groups {\n id\n title\n type\n }\n }\n }\n"], ["\n query User($id: ID!) {\n user(id: $id) {\n id\n name\n email\n firstname\n lastname\n active\n personal_number\n address1\n address2\n postalcode\n town\n country\n phone1\n profession\n status\n gdpr\n description\n updated_at\n created_at\n images {\n id\n title\n filename\n filesize\n filetype\n url\n }\n roles {\n id\n label\n type\n }\n groupRoles {\n id\n label\n type\n }\n groups {\n id\n title\n type\n }\n }\n }\n"])));
10
- exports.GET_USERS = (0, client_1.gql)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n # query Users($page: Int!, $search: String) {\n # users(page: $page, search: $search) {\n # paginatorInfo {\n # total\n # currentPage\n # hasMorePages\n # }\n # data {\n # name\n # email\n # }\n # }\n # }\n\n query Users(\n $search: String\n $page: Int\n $limit: Int\n $orderBy: [GetUsersOrderByClause]\n ) {\n users(search: $search, page: $page, limit: $limit, orderBy: $orderBy) {\n paginatorInfo {\n total\n currentPage\n hasMorePages\n }\n data {\n id\n name\n email\n active\n status\n updated_at\n created_at\n roles {\n id\n label\n type\n }\n groupRoles {\n id\n label\n type\n }\n groups {\n id\n name\n title\n }\n validig {\n id\n }\n }\n }\n }\n"], ["\n # query Users($page: Int!, $search: String) {\n # users(page: $page, search: $search) {\n # paginatorInfo {\n # total\n # currentPage\n # hasMorePages\n # }\n # data {\n # name\n # email\n # }\n # }\n # }\n\n query Users(\n $search: String\n $page: Int\n $limit: Int\n $orderBy: [GetUsersOrderByClause]\n ) {\n users(search: $search, page: $page, limit: $limit, orderBy: $orderBy) {\n paginatorInfo {\n total\n currentPage\n hasMorePages\n }\n data {\n id\n name\n email\n active\n status\n updated_at\n created_at\n roles {\n id\n label\n type\n }\n groupRoles {\n id\n label\n type\n }\n groups {\n id\n name\n title\n }\n validig {\n id\n }\n }\n }\n }\n"])));
11
- exports.GET_ACCOUNT = (0, client_1.gql)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n query Account($id: ID!) {\n user(id: $id) {\n id\n name\n email\n firstname\n lastname\n active\n personal_number\n address1\n address2\n postalcode\n town\n country\n phone1\n profession\n status\n description\n workplace\n gdpr\n images {\n id\n title\n filename\n filesize\n filetype\n url\n }\n }\n userSettings {\n publicDefaultPortfolio {\n id\n name\n disk\n }\n }\n }\n"], ["\n query Account($id: ID!) {\n user(id: $id) {\n id\n name\n email\n firstname\n lastname\n active\n personal_number\n address1\n address2\n postalcode\n town\n country\n phone1\n profession\n status\n description\n workplace\n gdpr\n images {\n id\n title\n filename\n filesize\n filetype\n url\n }\n }\n userSettings {\n publicDefaultPortfolio {\n id\n name\n disk\n }\n }\n }\n"])));
12
- var templateObject_1, templateObject_2, templateObject_3;
9
+ exports.GET_USERS_FIELDS = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n fragment UsersFields on User {\n id\n name\n email\n active\n status\n updated_at\n created_at\n roles {\n id\n label\n type\n }\n groupRoles {\n id\n label\n type\n }\n groups {\n id\n name\n title\n }\n validig {\n id\n }\n }\n"], ["\n fragment UsersFields on User {\n id\n name\n email\n active\n status\n updated_at\n created_at\n roles {\n id\n label\n type\n }\n groupRoles {\n id\n label\n type\n }\n groups {\n id\n name\n title\n }\n validig {\n id\n }\n }\n"])));
10
+ exports.GET_USER = (0, client_1.gql)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n query User($id: ID!) {\n user(id: $id) {\n id\n name\n email\n firstname\n lastname\n active\n personal_number\n address1\n address2\n postalcode\n town\n country\n phone1\n profession\n status\n gdpr\n description\n updated_at\n created_at\n images {\n id\n title\n filename\n filesize\n filetype\n url\n }\n roles {\n id\n label\n type\n }\n groupRoles {\n id\n label\n type\n }\n groups {\n id\n title\n type\n }\n }\n }\n"], ["\n query User($id: ID!) {\n user(id: $id) {\n id\n name\n email\n firstname\n lastname\n active\n personal_number\n address1\n address2\n postalcode\n town\n country\n phone1\n profession\n status\n gdpr\n description\n updated_at\n created_at\n images {\n id\n title\n filename\n filesize\n filetype\n url\n }\n roles {\n id\n label\n type\n }\n groupRoles {\n id\n label\n type\n }\n groups {\n id\n title\n type\n }\n }\n }\n"])));
11
+ exports.GET_USERS = (0, client_1.gql)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n # query Users($page: Int!, $search: String) {\n # users(page: $page, search: $search) {\n # paginatorInfo {\n # total\n # currentPage\n # hasMorePages\n # }\n # data {\n # name\n # email\n # }\n # }\n # }\n\n query Users(\n $search: String\n $page: Int\n $limit: Int\n $orderBy: [GetUsersOrderByClause]\n $filters: [GetUsersFilter]\n ) {\n allGroups(categories: [\"region\", \"local\"]) {\n id\n title\n }\n roles {\n id\n name\n label\n }\n users(\n search: $search\n page: $page\n limit: $limit\n orderBy: $orderBy\n filters: $filters\n ) {\n paginatorInfo {\n total\n currentPage\n hasMorePages\n }\n data {\n ...UsersFields\n }\n }\n }\n ", "\n"], ["\n # query Users($page: Int!, $search: String) {\n # users(page: $page, search: $search) {\n # paginatorInfo {\n # total\n # currentPage\n # hasMorePages\n # }\n # data {\n # name\n # email\n # }\n # }\n # }\n\n query Users(\n $search: String\n $page: Int\n $limit: Int\n $orderBy: [GetUsersOrderByClause]\n $filters: [GetUsersFilter]\n ) {\n allGroups(categories: [\"region\", \"local\"]) {\n id\n title\n }\n roles {\n id\n name\n label\n }\n users(\n search: $search\n page: $page\n limit: $limit\n orderBy: $orderBy\n filters: $filters\n ) {\n paginatorInfo {\n total\n currentPage\n hasMorePages\n }\n data {\n ...UsersFields\n }\n }\n }\n ", "\n"])), exports.GET_USERS_FIELDS);
12
+ exports.GET_ACCOUNT = (0, client_1.gql)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n query Account($id: ID!) {\n user(id: $id) {\n id\n name\n email\n firstname\n lastname\n active\n personal_number\n address1\n address2\n postalcode\n town\n country\n phone1\n profession\n status\n description\n workplace\n gdpr\n images {\n id\n title\n filename\n filesize\n filetype\n url\n }\n }\n userSettings {\n publicDefaultPortfolio {\n id\n name\n disk\n }\n }\n }\n"], ["\n query Account($id: ID!) {\n user(id: $id) {\n id\n name\n email\n firstname\n lastname\n active\n personal_number\n address1\n address2\n postalcode\n town\n country\n phone1\n profession\n status\n description\n workplace\n gdpr\n images {\n id\n title\n filename\n filesize\n filetype\n url\n }\n }\n userSettings {\n publicDefaultPortfolio {\n id\n name\n disk\n }\n }\n }\n"])));
13
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
@@ -234,10 +234,12 @@ var VoAuth = /** @class */ (function (_super) {
234
234
  : "";
235
235
  };
236
236
  VoAuth.prototype.resetSession = function () {
237
- console.log("VoConfig.get.AUTH_DOMAIN", VoConfig_1.default.get.AUTH_DOMAIN);
238
237
  var refreshTokenKey = VoConfig_1.default.get.AUTH_STORAGE_REFRESH_TOKEN || "";
239
238
  Helpers.localStorage.remove(refreshTokenKey);
240
- js_cookie_1.default.remove(refreshTokenKey, { domain: VoConfig_1.default.get.AUTH_DOMAIN });
239
+ js_cookie_1.default.remove(refreshTokenKey, {
240
+ domain: VoConfig_1.default.get.AUTH_DOMAIN,
241
+ sameSite: "Lax",
242
+ });
241
243
  var accessTokenKey = VoConfig_1.default.get.AUTH_STORAGE_ACCESS_TOKEN || "";
242
244
  Helpers.localStorage.remove(accessTokenKey);
243
245
  js_cookie_1.default.remove(accessTokenKey, {
@@ -63,7 +63,6 @@ var VoRouter = /** @class */ (function () {
63
63
  }
64
64
  };
65
65
  VoRouter.prototype.redirectToHome = function () {
66
- // window.location.href = VoConfig.getConfigByKey('app').HOME;
67
66
  window.location.href = VoConfig_1.default.get.HOME || "";
68
67
  };
69
68
  VoRouter.prototype.pathIsActive = function (to) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vocollege/app",
3
- "version": "0.0.70",
3
+ "version": "0.0.72",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -450,6 +450,8 @@
450
450
  "createUser": "Skapa användare",
451
451
  "updateUser": "Uppdatera användare:",
452
452
  "searchField": "Sök…",
453
+ "searchFieldResult": "Sök… ::number objekt hittades",
454
+ "numberOfObjects": "Antal objekt: ::number",
453
455
  "loadingContent": "Laddar innehåll...",
454
456
  "createArticle": "Skapa artikel",
455
457
  "createPage": "Skapa sida",
@@ -618,7 +620,8 @@
618
620
  "clear": "Rensa",
619
621
  "delete": "Radera",
620
622
  "download": "Ladda ner",
621
- "copyLink": "Kopiera länk"
623
+ "copyLink": "Kopiera länk",
624
+ "apply": "Tillämpa"
622
625
  },
623
626
  "status": {
624
627
  "unpublished": "Opublicerat",
@@ -704,7 +707,8 @@
704
707
  "active": "Aktiv",
705
708
  "inactive": "Inaktiv",
706
709
  "myAccount": "Mitt konto",
707
- "managing": "Hanterar"
710
+ "managing": "Hanterar",
711
+ "validig": "Validig"
708
712
  },
709
713
  "diploma": {
710
714
  "label": "Diplom",
@@ -1,5 +1,22 @@
1
1
  import { gql } from "@apollo/client";
2
2
 
3
+ export const GET_ARTICLES_FIELDS = gql`
4
+ fragment ArticlesFields on Article {
5
+ id
6
+ title
7
+ status
8
+ author {
9
+ ... on User {
10
+ id
11
+ name
12
+ type
13
+ }
14
+ }
15
+ date
16
+ created_at
17
+ updated_at
18
+ }
19
+ `;
3
20
  export const GET_ARTICLE = gql`
4
21
  query Article($id: ID!) {
5
22
  article(id: $id) {
@@ -66,28 +83,24 @@ export const GET_ARTICLES = gql`
66
83
  $page: Int
67
84
  $limit: Int
68
85
  $orderBy: [GetArticlesOrderByClause]
86
+ $filters: [GetArticlesFilter]
69
87
  ) {
70
- articles(search: $search, page: $page, limit: $limit, orderBy: $orderBy) {
88
+ articles(
89
+ search: $search
90
+ page: $page
91
+ limit: $limit
92
+ orderBy: $orderBy
93
+ filters: $filters
94
+ ) {
71
95
  paginatorInfo {
72
96
  total
73
97
  currentPage
74
98
  hasMorePages
75
99
  }
76
100
  data {
77
- id
78
- title
79
- status
80
- author {
81
- ... on User {
82
- id
83
- name
84
- type
85
- }
86
- }
87
- date
88
- created_at
89
- updated_at
101
+ ...ArticlesFields
90
102
  }
91
103
  }
92
104
  }
105
+ ${GET_ARTICLES_FIELDS}
93
106
  `;
@@ -1,5 +1,9 @@
1
1
  import { gql } from "@apollo/client";
2
2
 
3
+ // Custom.
4
+ import { GET_USERS_FIELDS } from "./users";
5
+ import { GET_ARTICLES_FIELDS } from "./articles";
6
+
3
7
  export const SEARCH_CONTENT = gql`
4
8
  query SearchContent(
5
9
  $search: String!
@@ -46,6 +50,20 @@ export const SEARCH_USER = gql`
46
50
  }
47
51
  `;
48
52
 
53
+ export const SEARCH_USERS_LIST = gql`
54
+ query SearchUser(
55
+ $search: String!
56
+ $roles: [String]
57
+ $limit: Int
58
+ $entity: Boolean
59
+ ) {
60
+ searchUser(search: $search, roles: $roles, limit: $limit, entity: $entity) {
61
+ ...UsersFields
62
+ }
63
+ }
64
+ ${GET_USERS_FIELDS}
65
+ `;
66
+
49
67
  export const SEARCH_GROUP = gql`
50
68
  query SearchGroup($categories: [String], $search: String!, $limit: Int) {
51
69
  searchGroup(categories: $categories, search: $search, limit: $limit) {
@@ -1,5 +1,35 @@
1
1
  import { gql } from "@apollo/client";
2
2
 
3
+ export const GET_USERS_FIELDS = gql`
4
+ fragment UsersFields on User {
5
+ id
6
+ name
7
+ email
8
+ active
9
+ status
10
+ updated_at
11
+ created_at
12
+ roles {
13
+ id
14
+ label
15
+ type
16
+ }
17
+ groupRoles {
18
+ id
19
+ label
20
+ type
21
+ }
22
+ groups {
23
+ id
24
+ name
25
+ title
26
+ }
27
+ validig {
28
+ id
29
+ }
30
+ }
31
+ `;
32
+
3
33
  export const GET_USER = gql`
4
34
  query User($id: ID!) {
5
35
  user(id: $id) {
@@ -69,42 +99,35 @@ export const GET_USERS = gql`
69
99
  $page: Int
70
100
  $limit: Int
71
101
  $orderBy: [GetUsersOrderByClause]
102
+ $filters: [GetUsersFilter]
72
103
  ) {
73
- users(search: $search, page: $page, limit: $limit, orderBy: $orderBy) {
104
+ allGroups(categories: ["region", "local"]) {
105
+ id
106
+ title
107
+ }
108
+ roles {
109
+ id
110
+ name
111
+ label
112
+ }
113
+ users(
114
+ search: $search
115
+ page: $page
116
+ limit: $limit
117
+ orderBy: $orderBy
118
+ filters: $filters
119
+ ) {
74
120
  paginatorInfo {
75
121
  total
76
122
  currentPage
77
123
  hasMorePages
78
124
  }
79
125
  data {
80
- id
81
- name
82
- email
83
- active
84
- status
85
- updated_at
86
- created_at
87
- roles {
88
- id
89
- label
90
- type
91
- }
92
- groupRoles {
93
- id
94
- label
95
- type
96
- }
97
- groups {
98
- id
99
- name
100
- title
101
- }
102
- validig {
103
- id
104
- }
126
+ ...UsersFields
105
127
  }
106
128
  }
107
129
  }
130
+ ${GET_USERS_FIELDS}
108
131
  `;
109
132
 
110
133
  export const GET_ACCOUNT = gql`
@@ -141,11 +141,12 @@ class VoAuth extends VoBase {
141
141
  : "";
142
142
  }
143
143
  resetSession() {
144
- console.log("VoConfig.get.AUTH_DOMAIN", VoConfig.get.AUTH_DOMAIN);
145
-
146
144
  let refreshTokenKey = VoConfig.get.AUTH_STORAGE_REFRESH_TOKEN || "";
147
145
  Helpers.localStorage.remove(refreshTokenKey);
148
- JsCookies.remove(refreshTokenKey, { domain: VoConfig.get.AUTH_DOMAIN });
146
+ JsCookies.remove(refreshTokenKey, {
147
+ domain: VoConfig.get.AUTH_DOMAIN,
148
+ sameSite: "Lax",
149
+ });
149
150
 
150
151
  let accessTokenKey = VoConfig.get.AUTH_STORAGE_ACCESS_TOKEN || "";
151
152
  Helpers.localStorage.remove(accessTokenKey);
@@ -63,7 +63,6 @@ class VoRouter {
63
63
  }
64
64
  }
65
65
  redirectToHome() {
66
- // window.location.href = VoConfig.getConfigByKey('app').HOME;
67
66
  window.location.href = VoConfig.get.HOME || "";
68
67
  }
69
68
  pathIsActive(to: string): boolean {