@titaui/pc 1.9.75 → 1.9.76

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.
package/.eslintrc.js CHANGED
@@ -125,7 +125,7 @@ module.exports = {
125
125
  "react/jsx-no-constructed-context-values": 1,
126
126
  "new-cap": 2,
127
127
  "function-paren-newline": 2,
128
- "global-require": 2,
128
+ "global-require": 1,
129
129
  "jsx-a11y/alt-text": 2,
130
130
  "react/no-array-index-key": 2,
131
131
  "react/no-unstable-nested-components": 2,
@@ -18,7 +18,7 @@ var MBlogBox = _styledComponents["default"].div(_templateObject || (_templateObj
18
18
 
19
19
  exports.MBlogBox = MBlogBox;
20
20
 
21
- var DivMblogContent = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding: 8px 10px 6px;\n border: 1px solid #DFE3EA;\n border-radius: 8px;\n background-color: #fff;\n position: relative;\n transition: all .2s ease-in-out;\n height: 124px;\n box-sizing: border-box;\n\n &.input_default-active {\n box-shadow: inset 0px 0px 4px 0px rgba(40, 121, 255, 0.3);\n border-color: #2879ff;\n }\n"])));
21
+ var DivMblogContent = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding: 8px 10px 6px;\n border: 1px solid #DFE3EA;\n border-radius: 8px;\n background-color: #fff;\n position: relative;\n transition: all .2s ease-in-out;\n height: 200px;\n box-sizing: border-box;\n\n &.input_default-active {\n box-shadow: inset 0px 0px 4px 0px rgba(40, 121, 255, 0.3);\n border-color: #2879ff;\n }\n"])));
22
22
 
23
23
  exports.DivMblogContent = DivMblogContent;
24
24
 
@@ -36,7 +36,7 @@ var TextareaWrapper = _styledComponents["default"].div(_templateObject5 || (_tem
36
36
 
37
37
  exports.TextareaWrapper = TextareaWrapper;
38
38
 
39
- var Textarea = _styledComponents["default"].textarea(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n width: 100%;\n padding: 0;\n border: 0 none;\n background-color: transparent;\n color: #3F4755;\n resize: none;\n word-break: break-all;\n word-wrap: break-word;\n height: 86px;\n\n &.textarea-setheight {\n visibility: hidden;\n position: absolute;\n }\n/* \n &.private__bg {\n background: url(", ") no-repeat right top;\n } */\n"])), require("./assets/lock-radius.png"));
39
+ var Textarea = _styledComponents["default"].textarea(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n width: 100%;\n padding: 0;\n border: 0 none;\n background-color: transparent;\n color: #3F4755;\n resize: none;\n word-break: break-all;\n word-wrap: break-word;\n height: 160px;\n\n &.textarea-setheight {\n visibility: hidden;\n position: absolute;\n }\n/* \n &.private__bg {\n background: url(", ") no-repeat right top;\n } */\n"])), require("./assets/lock-radius.png"));
40
40
 
41
41
  exports.Textarea = Textarea;
42
42
 
@@ -140,7 +140,7 @@
140
140
  }
141
141
 
142
142
  .okr-cases-library__navFirst__item-active::after {
143
- content: "";
143
+ content: '';
144
144
  position: absolute;
145
145
  bottom: -14px;
146
146
  left: 0;
@@ -277,6 +277,7 @@
277
277
  }
278
278
 
279
279
  .okr-cases-library__cardList__card__title__btn {
280
+ font-size: 14px;
280
281
  position: absolute;
281
282
  right: 15px;
282
283
  top: 60px;
@@ -289,6 +290,7 @@
289
290
  cursor: pointer;
290
291
  opacity: 0;
291
292
  transition: all 0.5s;
293
+ font-weight: 500;
292
294
  }
293
295
 
294
296
  .okr-cases-library__cardList__card__title__btn-show {
@@ -11,6 +11,8 @@ var _react = _interopRequireWildcard(require("react"));
11
11
 
12
12
  var _localStorage = require("../../utils/local-storage");
13
13
 
14
+ var _notAllowData = require("./not-allow-data");
15
+
14
16
  require("./index.css");
15
17
 
16
18
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -31,6 +33,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
31
33
 
32
34
  var preCls = "part-notice";
33
35
  var storage = new _localStorage.LocalStorage();
36
+ var tenantId = window.BSGlobal.tenantInfo.Id;
34
37
 
35
38
  var PartNotice = function PartNotice(_ref) {
36
39
  var storageName = _ref.storageName,
@@ -69,6 +72,9 @@ var PartNotice = function PartNotice(_ref) {
69
72
  window.open(link, "_target");
70
73
  };
71
74
 
75
+ if (!_notAllowData.notAllowData.find(function (item) {
76
+ return item === tenantId;
77
+ })) return /*#__PURE__*/_react["default"].createElement("span", null);
72
78
  if (!visible) return /*#__PURE__*/_react["default"].createElement("span", null);
73
79
  return /*#__PURE__*/_react["default"].createElement("div", {
74
80
  className: "".concat(preCls)
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.notAllowData = exports["default"] = void 0;
7
+ var notAllowData = [366131, 307425, 386434, 318995, 516911, 520530, 529247, 283929, 521974, 525553, 524783, 533197, 506389, 541245, 265530, 542555, 322665, 388103, 523558, 521070, 547650, 527324, 543000, 536771, 377798, 548066, 541479, 538509, 509148, 383549, 533456, 395251, 516682, 546877, 521818, 552965, 551336, 518051, 544736, 552455, 534044, 529329, 554018, 518791, 392024, 553462, 504585, 551576, 547861, 504087, 555603, 526408, 536559, 555641, 553800, 553083, 554654, 552158, 542587, 379998, 510788, 553836, 529906, 511358, 551913, 543085, 514568, 397292, 556796, 538802, 546456, 549378, 542520, 560327, 548612, 522327, 555225, 530370, 565991, 547082, 564585, 535986, 502385, 391420, 560552, 558317, 564416, 552974, 318867, 570075, 560793, 565994, 533855, 375844, 549354, 571823, 537982, 528567, 568168, 569066, 515852, 566360, 548969, 553532, 352728, 562259, 521375];
8
+ exports.notAllowData = notAllowData;
9
+ var _default = notAllowData;
10
+ exports["default"] = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.9.75",
3
+ "version": "1.9.76",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "src/index.js",
@@ -26,7 +26,7 @@ export const DivMblogContent = styled.div`
26
26
  background-color: #fff;
27
27
  position: relative;
28
28
  transition: all .2s ease-in-out;
29
- height: 124px;
29
+ height: 200px;
30
30
  box-sizing: border-box;
31
31
 
32
32
  &.input_default-active {
@@ -60,7 +60,7 @@ export const Textarea = styled.textarea`
60
60
  resize: none;
61
61
  word-break: break-all;
62
62
  word-wrap: break-word;
63
- height: 86px;
63
+ height: 160px;
64
64
 
65
65
  &.textarea-setheight {
66
66
  visibility: hidden;
@@ -25,7 +25,7 @@
25
25
  // url("./image/head-background-right1.png");
26
26
  background-repeat: no-repeat;
27
27
  // background-position: center bottom, left bottom, right bottom;
28
- background-image: url("./image/head-background.png");
28
+ background-image: url('./image/head-background.png');
29
29
  background-position: center top;
30
30
  // &-mask {
31
31
  // height: 100%;
@@ -135,7 +135,7 @@
135
135
  position: relative;
136
136
  font-weight: 600;
137
137
  &::after {
138
- content: "";
138
+ content: '';
139
139
  position: absolute;
140
140
  bottom: -14px;
141
141
  left: 0;
@@ -253,6 +253,7 @@
253
253
  font-weight: 600;
254
254
  }
255
255
  &__btn {
256
+ font-size: 14px;
256
257
  position: absolute;
257
258
  right: 15px;
258
259
  top: 60px;
@@ -265,6 +266,7 @@
265
266
  cursor: pointer;
266
267
  opacity: 0;
267
268
  transition: all 0.5s;
269
+ font-weight: 500;
268
270
  &-show {
269
271
  top: 37px;
270
272
  opacity: 1;
@@ -287,12 +289,12 @@
287
289
  }
288
290
  }
289
291
  &-blue {
290
- background-image: url("./image/蓝.png");
292
+ background-image: url('./image/蓝.png');
291
293
  background-color: #f4f8ff;
292
294
  color: #2879ff;
293
295
  }
294
296
  &-red {
295
- background-image: url("./image/红.png");
297
+ background-image: url('./image/红.png');
296
298
  background-color: rgba(240, 94, 94, 0.1);
297
299
  color: #f05e5e;
298
300
  }
@@ -415,7 +417,7 @@
415
417
  height: 64px;
416
418
  box-shadow: 0px 0px 8px 0px rgba(127, 145, 180, 0.1);
417
419
  border-radius: 6px;
418
- background-image: url("./image/会员背景.png");
420
+ background-image: url('./image/会员背景.png');
419
421
  background-size: 100%;
420
422
  background-repeat: no-repeat;
421
423
  background-position: center;
@@ -439,7 +441,7 @@
439
441
  width: 100%;
440
442
  height: 114px;
441
443
  background-color: #fff;
442
- background-image: url("./image/广告图片.png");
444
+ background-image: url('./image/广告图片.png');
443
445
  background-size: 100%;
444
446
  background-repeat: no-repeat;
445
447
  background-position: center;
@@ -536,7 +538,7 @@
536
538
  flex-direction: column;
537
539
  justify-content: start;
538
540
  align-items: center;
539
- background-image: url("./image/支付背景.svg");
541
+ background-image: url('./image/支付背景.svg');
540
542
  background-repeat: no-repeat;
541
543
  background-position: center;
542
544
  background-size: 100%;
@@ -1,5 +1,6 @@
1
1
  import React, { FC, useState, useCallback } from "react";
2
2
  import { LocalStorage } from "../../utils/local-storage";
3
+ import { notAllowData } from "./not-allow-data";
3
4
  import "./index.scss";
4
5
 
5
6
  interface Props {
@@ -10,6 +11,7 @@ interface Props {
10
11
 
11
12
  const preCls = "part-notice";
12
13
  const storage = new LocalStorage();
14
+ const tenantId = window.BSGlobal.tenantInfo.Id;
13
15
 
14
16
  const PartNotice: FC<Props> = ({ storageName, text, link }) => {
15
17
  const [visible, setVisible] = useState(() => {
@@ -33,6 +35,7 @@ const PartNotice: FC<Props> = ({ storageName, text, link }) => {
33
35
  const handleOpenLink = () => {
34
36
  window.open(link, "_target");
35
37
  };
38
+ if (!notAllowData.find((item) => item === tenantId)) return <span />;
36
39
  if (!visible) return <span />;
37
40
  return (
38
41
  <div className={`${preCls}`}>
@@ -0,0 +1,110 @@
1
+ export const notAllowData = [
2
+ 366131,
3
+ 307425,
4
+ 386434,
5
+ 318995,
6
+ 516911,
7
+ 520530,
8
+ 529247,
9
+ 283929,
10
+ 521974,
11
+ 525553,
12
+ 524783,
13
+ 533197,
14
+ 506389,
15
+ 541245,
16
+ 265530,
17
+ 542555,
18
+ 322665,
19
+ 388103,
20
+ 523558,
21
+ 521070,
22
+ 547650,
23
+ 527324,
24
+ 543000,
25
+ 536771,
26
+ 377798,
27
+ 548066,
28
+ 541479,
29
+ 538509,
30
+ 509148,
31
+ 383549,
32
+ 533456,
33
+ 395251,
34
+ 516682,
35
+ 546877,
36
+ 521818,
37
+ 552965,
38
+ 551336,
39
+ 518051,
40
+ 544736,
41
+ 552455,
42
+ 534044,
43
+ 529329,
44
+ 554018,
45
+ 518791,
46
+ 392024,
47
+ 553462,
48
+ 504585,
49
+ 551576,
50
+ 547861,
51
+ 504087,
52
+ 555603,
53
+ 526408,
54
+ 536559,
55
+ 555641,
56
+ 553800,
57
+ 553083,
58
+ 554654,
59
+ 552158,
60
+ 542587,
61
+ 379998,
62
+ 510788,
63
+ 553836,
64
+ 529906,
65
+ 511358,
66
+ 551913,
67
+ 543085,
68
+ 514568,
69
+ 397292,
70
+ 556796,
71
+ 538802,
72
+ 546456,
73
+ 549378,
74
+ 542520,
75
+ 560327,
76
+ 548612,
77
+ 522327,
78
+ 555225,
79
+ 530370,
80
+ 565991,
81
+ 547082,
82
+ 564585,
83
+ 535986,
84
+ 502385,
85
+ 391420,
86
+ 560552,
87
+ 558317,
88
+ 564416,
89
+ 552974,
90
+ 318867,
91
+ 570075,
92
+ 560793,
93
+ 565994,
94
+ 533855,
95
+ 375844,
96
+ 549354,
97
+ 571823,
98
+ 537982,
99
+ 528567,
100
+ 568168,
101
+ 569066,
102
+ 515852,
103
+ 566360,
104
+ 548969,
105
+ 553532,
106
+ 352728,
107
+ 562259,
108
+ 521375,
109
+ ];
110
+ export default notAllowData;
package/yarn-error.log ADDED
@@ -0,0 +1,103 @@
1
+ Arguments:
2
+ /usr/local/bin/node /usr/local/bin/yarn
3
+
4
+ PATH:
5
+ /opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/opt/homebrew/bin:/opt/homebrew/sbin
6
+
7
+ Yarn version:
8
+ 1.22.10
9
+
10
+ Node version:
11
+ 12.22.1
12
+
13
+ Platform:
14
+ darwin x64
15
+
16
+ Trace:
17
+ SyntaxError: /Users/yang/tita/titaui-pc/package.json: Unexpected token < in JSON at position 26
18
+ at JSON.parse (<anonymous>)
19
+ at /usr/local/lib/node_modules/yarn/lib/cli.js:1625:59
20
+ at Generator.next (<anonymous>)
21
+ at step (/usr/local/lib/node_modules/yarn/lib/cli.js:310:30)
22
+ at /usr/local/lib/node_modules/yarn/lib/cli.js:321:13
23
+
24
+ npm manifest:
25
+ {
26
+ "name": "@titaui/pc",
27
+ <<<<<<< HEAD
28
+ "version": "1.2.22",
29
+ =======
30
+ "version": "1.2.13",
31
+ >>>>>>> master
32
+ "nameCN": "",
33
+ "description": "",
34
+ "main": "src/index.js",
35
+ "scripts": {
36
+ "storybook": "start-storybook -p 6006 --no-dll",
37
+ "start": "dev_server=on webpack-dev-server --disableHostCheck=true --progress --colors --config webpack-stories.config.js",
38
+ "build-storybook": "build-storybook --docs --no-dll",
39
+ "build:es": "babel src -d es --ignore **/__tests__",
40
+ "build:lib": "cross-env OUTPUT_MODULE=commonjs babel src -d lib --ignore **/__tests__",
41
+ "build:umd": "webpack --config ./.scripts/webpack.umd.js",
42
+ "build": "npm run build:lib && npm run build:es && npm run build:umd"
43
+ },
44
+ "author": "",
45
+ "license": "ISC",
46
+ "devDependencies": {
47
+ "del": "^6.0.0",
48
+ "gulp": "^3.x",
49
+ "gulp-autoprefixer": "^7.0.1",
50
+ "gulp-babel": "^8.0.0",
51
+ "gulp-concat": "^2.6.1",
52
+ "gulp-cssbeautify": "^3.0.0",
53
+ "gulp-cssnano": "^2.1.3",
54
+ "gulp-filesize": "0.0.6",
55
+ "gulp-postcss": "^9.0.0",
56
+ "gulp-rename": "^2.0.0",
57
+ "gulp-replace": "^1.0.0",
58
+ "gulp-sass": "^4.1.0",
59
+ "gulp-sourcemaps": "^2.6.5",
60
+ "sass-resources-loader": "^2.2.1"
61
+ },
62
+ "dependencies": {
63
+ "@titaui/dagre": "^0.8.8-pre",
64
+ "@titaui/rc-tree2": "^4.1.15",
65
+ "@titaui/rc-trigger": "^5.2.5",
66
+ "@titaui/react-flow-renderer": "9.5.4",
67
+ "@titaui/toast": "^1.0.0",
68
+ "axios": "^0.21.1",
69
+ "classnames": "^2.2.6",
70
+ "clone-deep": "^4.0.1",
71
+ "d3-cloud": "^1.2.5",
72
+ "dayjs": "^1.10.4",
73
+ "html2canvas": "^1.0.0-rc.7",
74
+ "moment": "^2.29.1",
75
+ "qs": "^6.10.1",
76
+ "rc-checkbox": "^2.3.2",
77
+ "rc-dialog": "8.5.2",
78
+ "rc-drawer": "^4.3.1",
79
+ "rc-input-number": "^5.0.0",
80
+ "rc-pagination": "^3.1.6",
81
+ "rc-queue-anim": "1.4.1",
82
+ "rc-select": "^12.1.7",
83
+ "rc-switch": "^3.2.2",
84
+ "rc-table": "^7.13.2",
85
+ "rc-tabs": "^11.7.3",
86
+ "rc-tooltip": "^5.1.1",
87
+ "rc-tree": "^4.1.5",
88
+ "rc-trigger": "^5.2.3",
89
+ "rc-upload": "^4.2.0-alpha.0",
90
+ "rc-util": "^5.13.1",
91
+ "react-collapse": "^5.1.0",
92
+ "react-perfect-scrollbar": "^1.5.2",
93
+ "url-parse": "^1.5.1",
94
+ "uuid": "^3.1.0",
95
+ "wordcloud": "^1.2.2"
96
+ }
97
+ }
98
+
99
+ yarn manifest:
100
+ No manifest
101
+
102
+ Lockfile:
103
+ No lockfile