@banch0u/core-project-test-repository 1.8.2 → 1.8.4

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.
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { ContractsIcon, DocumentCirculationIcon, HRIcon } from "../../assets/icons";
2
+ import { ContractsIcon, DocumentCirculationIcon, HRIcon, ArchiveIcon, TransportIcon, LabIcon, UserIcon } from "../../assets/icons";
3
3
  var rootUrl;
4
4
  if (window.location.hostname === "localhost") {
5
5
  rootUrl = "http://localhost:" + window.location.port;
@@ -14,7 +14,7 @@ export var entryData = [{
14
14
  scopes: "docflow"
15
15
  }, {
16
16
  id: 2,
17
- value: " Kadrlar sistemi",
17
+ value: "Kadrlar sistemi",
18
18
  pathname: "".concat(rootUrl, "/hr/hr"),
19
19
  icon: /*#__PURE__*/React.createElement(HRIcon, null),
20
20
  scopes: "hr"
@@ -24,4 +24,31 @@ export var entryData = [{
24
24
  pathname: "".concat(rootUrl, "/contracts/unread-contract"),
25
25
  icon: /*#__PURE__*/React.createElement(ContractsIcon, null),
26
26
  scopes: "contracts"
27
+ }, {
28
+ id: 4,
29
+ value: "Şəxsi Kabinet",
30
+ pathname: "".concat(rootUrl, "/account/private"),
31
+ icon: /*#__PURE__*/React.createElement(UserIcon, null),
32
+ scopes: "account"
33
+ }, {
34
+ id: 5,
35
+ value: "Arxiv",
36
+ pathname: "".concat(rootUrl, "/archive/organization-administrative"),
37
+ icon: /*#__PURE__*/React.createElement(ArchiveIcon, null),
38
+ scopes: "archive",
39
+ construction: true
40
+ }, {
41
+ id: 6,
42
+ value: "Nəqliyyat",
43
+ pathname: "".concat(rootUrl, "/transport"),
44
+ icon: /*#__PURE__*/React.createElement(TransportIcon, null),
45
+ scopes: "transport",
46
+ construction: true
47
+ }, {
48
+ id: 7,
49
+ value: "Laboratoriya",
50
+ pathname: "".concat(rootUrl, "/lab"),
51
+ icon: /*#__PURE__*/React.createElement(LabIcon, null),
52
+ scopes: "lab",
53
+ construction: true
27
54
  }];
@@ -7,7 +7,7 @@ import { entryData } from "./constant";
7
7
  import { Link } from "react-router-dom";
8
8
  import { getProfileInfo, scopes } from "../../store/slices/auth";
9
9
  import { useSelector, useDispatch } from "react-redux";
10
- import { DsgLogo, SettingsCogIcon, UserIcon } from "../../assets/icons";
10
+ import { DsgLogo, SettingsCogIcon, ConstructionRibbon } from "../../assets/icons";
11
11
  import { SETTINGS_PERMISSIONS } from "../../utils/path";
12
12
  import { getCompanyInfo } from "../../store/slices/companyInfo";
13
13
  import api from "../../utils/axios";
@@ -107,39 +107,28 @@ var Platform = function Platform() {
107
107
  }, "Data Platform"), /*#__PURE__*/React.createElement("div", {
108
108
  className: style.links
109
109
  }, entryData === null || entryData === void 0 ? void 0 : entryData.map(function (item) {
110
- if (scopesData === "*") {
111
- return /*#__PURE__*/React.createElement(Link, {
112
- to: item === null || item === void 0 ? void 0 : item.pathname,
113
- key: item === null || item === void 0 ? void 0 : item.id
114
- }, item === null || item === void 0 ? void 0 : item.icon, /*#__PURE__*/React.createElement("div", {
115
- "data-no-invert": true
116
- }, item === null || item === void 0 ? void 0 : item.value));
117
- } else {
118
- if (!(scopesData !== null && scopesData !== void 0 && scopesData.includes(item.scopes))) {
119
- return /*#__PURE__*/React.createElement("div", {
120
- className: style.disableMenu,
121
- key: item === null || item === void 0 ? void 0 : item.id
122
- }, item === null || item === void 0 ? void 0 : item.icon, /*#__PURE__*/React.createElement("div", {
123
- "data-no-invert": true
124
- }, item === null || item === void 0 ? void 0 : item.value));
125
- } else {
126
- return /*#__PURE__*/React.createElement(Link, {
127
- to: item === null || item === void 0 ? void 0 : item.pathname,
128
- key: item === null || item === void 0 ? void 0 : item.id
129
- }, item === null || item === void 0 ? void 0 : item.icon, /*#__PURE__*/React.createElement("div", {
130
- "data-no-invert": true
131
- }, item === null || item === void 0 ? void 0 : item.value));
132
- }
110
+ if (item.construction && window.location.hostname.includes("intranet")) {
111
+ return null;
133
112
  }
134
- }), /*#__PURE__*/React.createElement(Link, {
135
- to: "".concat(rootUrl, "/accounts/private")
136
- }, /*#__PURE__*/React.createElement(UserIcon, null), /*#__PURE__*/React.createElement("div", {
137
- "data-no-invert": true
138
- }, "\u015E\u0259xsi kabinet")))), /*#__PURE__*/React.createElement("div", {
113
+ var isPrivate = item.scopes === "account";
114
+ var ItemContent = /*#__PURE__*/React.createElement(React.Fragment, null, item === null || item === void 0 ? void 0 : item.icon, /*#__PURE__*/React.createElement("div", {
115
+ "data-no-invert": true
116
+ }, item === null || item === void 0 ? void 0 : item.value));
117
+ return /*#__PURE__*/React.createElement("div", {
118
+ className: style.itemWrapper,
119
+ key: item === null || item === void 0 ? void 0 : item.id
120
+ }, (item === null || item === void 0 ? void 0 : item.construction) && /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(ConstructionRibbon, null)), scopesData === "*" || isPrivate ? /*#__PURE__*/React.createElement(Link, {
121
+ to: item === null || item === void 0 ? void 0 : item.pathname
122
+ }, ItemContent) : !(scopesData !== null && scopesData !== void 0 && scopesData.includes(item.scopes)) ? /*#__PURE__*/React.createElement("div", {
123
+ className: style.disableMenu
124
+ }, ItemContent) : /*#__PURE__*/React.createElement(Link, {
125
+ to: item === null || item === void 0 ? void 0 : item.pathname
126
+ }, ItemContent));
127
+ }))), /*#__PURE__*/React.createElement("div", {
139
128
  className: style.settings_button,
140
129
  "data-no-invert-2": true
141
130
  }, scopesData === "*" ? /*#__PURE__*/React.createElement(Link, {
142
- to: "".concat(rootUrl, "/docflow/").concat(SETTINGS_PERMISSIONS)
131
+ to: "".concat(rootUrl, "/docflow").concat(SETTINGS_PERMISSIONS)
143
132
  }, /*#__PURE__*/React.createElement(SettingsCogIcon, null), /*#__PURE__*/React.createElement("div", {
144
133
  "data-no-invert": true
145
134
  }, "T\u0259nziml\u0259m\u0259l\u0259r")) : null));
@@ -3,19 +3,19 @@
3
3
  width: 100%;
4
4
  align-items: center;
5
5
  flex-direction: column;
6
- padding-top: 87px;
6
+ padding-top: 47px;
7
7
  height: 100vh;
8
8
  background: #f8f8f8;
9
9
  .logo {
10
10
  svg {
11
11
  width: 250px;
12
12
  height: auto;
13
- margin-bottom: 165px;
13
+ margin-bottom: 40px;
14
14
  }
15
15
  img {
16
16
  width: 250px;
17
17
  height: auto;
18
- margin-bottom: 85px;
18
+ margin-bottom: 40px;
19
19
  }
20
20
  }
21
21
  .buttons {
@@ -34,7 +34,8 @@
34
34
  margin-bottom: 37px;
35
35
  }
36
36
  .links {
37
- display: flex;
37
+ display: grid;
38
+ grid-template-columns: repeat(4, 1fr);
38
39
  justify-content: space-between;
39
40
  gap: 30px;
40
41
  a {
@@ -57,6 +58,8 @@
57
58
  color: var(--darkBlueColor);
58
59
  svg {
59
60
  margin-top: 45px;
61
+ height: 70px;
62
+ width: auto;
60
63
  }
61
64
  }
62
65
  .disableMenu {
@@ -78,8 +81,11 @@
78
81
  color: #979797;
79
82
  svg {
80
83
  margin-top: 45px;
84
+ height: 70px;
85
+ width: auto;
81
86
  path {
82
- fill: #979797;
87
+ filter: brightness(0) saturate(100%) invert(66%) sepia(0%)
88
+ saturate(2270%) hue-rotate(123deg) brightness(88%) contrast(94%);
83
89
  }
84
90
  }
85
91
  }
@@ -108,3 +114,12 @@
108
114
  }
109
115
  }
110
116
  }
117
+ .itemWrapper {
118
+ position: relative;
119
+ overflow: hidden;
120
+ span {
121
+ position: absolute;
122
+ top: 28px;
123
+ right: -7px;
124
+ }
125
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@banch0u/core-project-test-repository",
3
- "version": "1.8.2",
3
+ "version": "1.8.4",
4
4
  "description": "Shared core features for all projects",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -32,7 +32,6 @@
32
32
  "axios": "^1.8.4",
33
33
  "dayjs": "^1.11.13",
34
34
  "js-cookie": "^3.0.5",
35
- "next": "^15.3.0",
36
35
  "react-beautiful-dnd": "^13.1.1",
37
36
  "react-redux": "^9.2.0",
38
37
  "sass": "^1.86.3"