@next-core/brick-kit 2.92.2 → 2.93.0

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/CHANGELOG.md CHANGED
@@ -3,211 +3,132 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [2.92.2](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.92.1...@next-core/brick-kit@2.92.2) (2021-12-15)
7
-
6
+ # [2.93.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.92.2...@next-core/brick-kit@2.93.0) (2021-12-17)
8
7
 
9
- ### Bug Fixes
10
8
 
11
- * pass data through tpl in useBrick ([3b6538c](https://github.com/easyops-cn/next-core/commit/3b6538cd37b8267f6a279f3b14c3a2fdefcb2ba9))
9
+ ### Features
12
10
 
11
+ * add new constant BASE_URL in evaluations ([80451fe](https://github.com/easyops-cn/next-core/commit/80451fe3c9e6f80488e207f6c164db2ace7191ac))
13
12
 
14
13
 
15
14
 
16
15
 
17
- ## [2.92.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.92.0...@next-core/brick-kit@2.92.1) (2021-12-06)
18
16
 
17
+ ## [2.92.2](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.92.1...@next-core/brick-kit@2.92.2) (2021-12-15)
19
18
 
20
19
  ### Bug Fixes
21
20
 
22
- * fix empty image ([f941e83](https://github.com/easyops-cn/next-core/commit/f941e835cf42b4a0a94418004c19b0c37b3d24e0))
23
-
21
+ - pass data through tpl in useBrick ([3b6538c](https://github.com/easyops-cn/next-core/commit/3b6538cd37b8267f6a279f3b14c3a2fdefcb2ba9))
24
22
 
23
+ ## [2.92.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.92.0...@next-core/brick-kit@2.92.1) (2021-12-06)
25
24
 
25
+ ### Bug Fixes
26
26
 
27
+ - fix empty image ([f941e83](https://github.com/easyops-cn/next-core/commit/f941e835cf42b4a0a94418004c19b0c37b3d24e0))
27
28
 
28
29
  # [2.92.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.91.2...@next-core/brick-kit@2.92.0) (2021-12-06)
29
30
 
30
-
31
31
  ### Features
32
32
 
33
- * expose http code ([#1227](https://github.com/easyops-cn/next-core/issues/1227)) ([9e22deb](https://github.com/easyops-cn/next-core/commit/9e22deb2dc27b7d907bb782790fa4a59960ccc82))
34
-
35
-
36
-
37
-
33
+ - expose http code ([#1227](https://github.com/easyops-cn/next-core/issues/1227)) ([9e22deb](https://github.com/easyops-cn/next-core/commit/9e22deb2dc27b7d907bb782790fa4a59960ccc82))
38
34
 
39
35
  ## [2.91.2](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.91.1...@next-core/brick-kit@2.91.2) (2021-12-05)
40
36
 
41
-
42
37
  ### Bug Fixes
43
38
 
44
- * add icons field ([7415b3f](https://github.com/easyops-cn/next-core/commit/7415b3ffaafe109c3bd555878a1d5ab2cd117183))
45
-
46
-
47
-
48
-
39
+ - add icons field ([7415b3f](https://github.com/easyops-cn/next-core/commit/7415b3ffaafe109c3bd555878a1d5ab2cd117183))
49
40
 
50
41
  ## [2.91.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.91.0...@next-core/brick-kit@2.91.1) (2021-12-03)
51
42
 
52
-
53
43
  ### Bug Fixes
54
44
 
55
- * fix page tracker ([dbf1d00](https://github.com/easyops-cn/next-core/commit/dbf1d003cd2e60ad18471e403c5dc9c9690b30fa))
56
-
57
-
58
-
59
-
45
+ - fix page tracker ([dbf1d00](https://github.com/easyops-cn/next-core/commit/dbf1d003cd2e60ad18471e403c5dc9c9690b30fa))
60
46
 
61
47
  # [2.91.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.90.2...@next-core/brick-kit@2.91.0) (2021-12-03)
62
48
 
63
-
64
49
  ### Features
65
50
 
66
- * support isAdmin ([f160156](https://github.com/easyops-cn/next-core/commit/f1601567b59c9f4a27aa130dc3e2e327c84c35db))
67
-
68
-
69
-
70
-
51
+ - support isAdmin ([f160156](https://github.com/easyops-cn/next-core/commit/f1601567b59c9f4a27aa130dc3e2e327c84c35db))
71
52
 
72
53
  ## [2.90.2](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.90.1...@next-core/brick-kit@2.90.2) (2021-12-01)
73
54
 
74
-
75
55
  ### Bug Fixes
76
56
 
77
- * remove flags ([ed7f66b](https://github.com/easyops-cn/next-core/commit/ed7f66b40c5be427171ec5fc8817eee64c499f60))
78
-
79
-
80
-
81
-
57
+ - remove flags ([ed7f66b](https://github.com/easyops-cn/next-core/commit/ed7f66b40c5be427171ec5fc8817eee64c499f60))
82
58
 
83
59
  ## [2.90.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.90.0...@next-core/brick-kit@2.90.1) (2021-11-29)
84
60
 
85
61
  **Note:** Version bump only for package @next-core/brick-kit
86
62
 
87
-
88
-
89
-
90
-
91
63
  # [2.90.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.89.2...@next-core/brick-kit@2.90.0) (2021-11-26)
92
64
 
93
-
94
65
  ### Bug Fixes
95
66
 
96
- * fix a regression of caching resolves ([e9cd56d](https://github.com/easyops-cn/next-core/commit/e9cd56d882d0a13ee1cb13c4ed752a15f2c15bfd))
97
-
67
+ - fix a regression of caching resolves ([e9cd56d](https://github.com/easyops-cn/next-core/commit/e9cd56d882d0a13ee1cb13c4ed752a15f2c15bfd))
98
68
 
99
69
  ### Features
100
70
 
101
- * support i18n in storyboard functions ([5891932](https://github.com/easyops-cn/next-core/commit/589193250f22735b20e93d32c807896f4ae0932b))
102
- * support i18n in widgets ([6020545](https://github.com/easyops-cn/next-core/commit/60205457fedbc7c000bb60b1e97729e3151be33d))
103
- * support img in widgets ([f19ad53](https://github.com/easyops-cn/next-core/commit/f19ad5329b95c71e612f4be0ffa57b5a3d9ec570))
104
-
105
-
106
-
107
-
71
+ - support i18n in storyboard functions ([5891932](https://github.com/easyops-cn/next-core/commit/589193250f22735b20e93d32c807896f4ae0932b))
72
+ - support i18n in widgets ([6020545](https://github.com/easyops-cn/next-core/commit/60205457fedbc7c000bb60b1e97729e3151be33d))
73
+ - support img in widgets ([f19ad53](https://github.com/easyops-cn/next-core/commit/f19ad5329b95c71e612f4be0ffa57b5a3d9ec570))
108
74
 
109
75
  ## [2.89.2](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.89.1...@next-core/brick-kit@2.89.2) (2021-11-25)
110
76
 
111
-
112
77
  ### Bug Fixes
113
78
 
114
- * get stroyboard v2 ([602d086](https://github.com/easyops-cn/next-core/commit/602d0860fc6c7c9e5ffc116ff023addb0f57efe1))
115
-
116
-
117
-
118
-
79
+ - get stroyboard v2 ([602d086](https://github.com/easyops-cn/next-core/commit/602d0860fc6c7c9e5ffc116ff023addb0f57efe1))
119
80
 
120
81
  ## [2.89.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.89.0...@next-core/brick-kit@2.89.1) (2021-11-25)
121
82
 
122
-
123
83
  ### Bug Fixes
124
84
 
125
- * bootsrtrap 增加开关控制 ([360b913](https://github.com/easyops-cn/next-core/commit/360b913f324f10ac79b1d637ec598583a89a61da))
126
-
127
-
128
-
129
-
85
+ - bootsrtrap 增加开关控制 ([360b913](https://github.com/easyops-cn/next-core/commit/360b913f324f10ac79b1d637ec598583a89a61da))
130
86
 
131
87
  # [2.89.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.88.1...@next-core/brick-kit@2.89.0) (2021-11-25)
132
88
 
133
-
134
89
  ### Bug Fixes
135
90
 
136
- * refine storyboard function ([90c42c1](https://github.com/easyops-cn/next-core/commit/90c42c1f49a7d7e8297d424bd02a3957787fb8e3))
137
-
91
+ - refine storyboard function ([90c42c1](https://github.com/easyops-cn/next-core/commit/90c42c1f49a7d7e8297d424bd02a3957787fb8e3))
138
92
 
139
93
  ### Features
140
94
 
141
- * use global noCurrentApp as default ([4e18163](https://github.com/easyops-cn/next-core/commit/4e18163eeefa24cb022cb9b936746c9e7ad80e70))
142
-
143
-
144
-
145
-
95
+ - use global noCurrentApp as default ([4e18163](https://github.com/easyops-cn/next-core/commit/4e18163eeefa24cb022cb9b936746c9e7ad80e70))
146
96
 
147
97
  ## [2.88.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.88.0...@next-core/brick-kit@2.88.1) (2021-11-25)
148
98
 
149
-
150
99
  ### Bug Fixes
151
100
 
152
- * app 字段合并 boostrap 接口详情的 app 信息 ([2dffa41](https://github.com/easyops-cn/next-core/commit/2dffa41e020e92994c6275a62977128b0a7a4bad))
153
- * use boostreap v2 api ([e1fbf03](https://github.com/easyops-cn/next-core/commit/e1fbf0366e29b28f823915bda4707368910c013e))
154
-
155
-
156
-
157
-
101
+ - app 字段合并 boostrap 接口详情的 app 信息 ([2dffa41](https://github.com/easyops-cn/next-core/commit/2dffa41e020e92994c6275a62977128b0a7a4bad))
102
+ - use boostreap v2 api ([e1fbf03](https://github.com/easyops-cn/next-core/commit/e1fbf0366e29b28f823915bda4707368910c013e))
158
103
 
159
104
  # [2.88.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.87.0...@next-core/brick-kit@2.88.0) (2021-11-23)
160
105
 
161
-
162
106
  ### Features
163
107
 
164
- * **Router:** set noCurrentApp default value ([8d5efe1](https://github.com/easyops-cn/next-core/commit/8d5efe14230b72ede0a87eeacf8881433b1e4829))
165
-
166
-
167
-
168
-
108
+ - **Router:** set noCurrentApp default value ([8d5efe1](https://github.com/easyops-cn/next-core/commit/8d5efe14230b72ede0a87eeacf8881433b1e4829))
169
109
 
170
110
  # [2.87.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.86.1...@next-core/brick-kit@2.87.0) (2021-11-23)
171
111
 
172
-
173
112
  ### Features
174
113
 
175
- * **locationContext:** add noCurrentApp ([8efc245](https://github.com/easyops-cn/next-core/commit/8efc245513f8e9ebf0aadcabfedd15647333d318))
176
-
177
-
178
-
179
-
114
+ - **locationContext:** add noCurrentApp ([8efc245](https://github.com/easyops-cn/next-core/commit/8efc245513f8e9ebf0aadcabfedd15647333d318))
180
115
 
181
116
  ## [2.86.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.86.0...@next-core/brick-kit@2.86.1) (2021-11-23)
182
117
 
183
118
  **Note:** Version bump only for package @next-core/brick-kit
184
119
 
185
-
186
-
187
-
188
-
189
120
  # [2.86.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.85.0...@next-core/brick-kit@2.86.0) (2021-11-18)
190
121
 
191
-
192
122
  ### Features
193
123
 
194
- * use a single build for standalone apps ([cb5db11](https://github.com/easyops-cn/next-core/commit/cb5db11829952fedfa9cf3898de3e62cfe647a16))
195
-
196
-
197
-
198
-
124
+ - use a single build for standalone apps ([cb5db11](https://github.com/easyops-cn/next-core/commit/cb5db11829952fedfa9cf3898de3e62cfe647a16))
199
125
 
200
126
  # [2.85.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.84.2...@next-core/brick-kit@2.85.0) (2021-11-18)
201
127
 
202
-
203
128
  ### Features
204
129
 
205
- * fetch conf in standalone micro-apps ([6175855](https://github.com/easyops-cn/next-core/commit/61758554f23ca685cd29f01130e46805c7674433))
206
- * support getting images by static files ([c23d88a](https://github.com/easyops-cn/next-core/commit/c23d88aa70f5009453a1d3c58e7f4a0d6249c719))
207
-
208
-
209
-
210
-
130
+ - fetch conf in standalone micro-apps ([6175855](https://github.com/easyops-cn/next-core/commit/61758554f23ca685cd29f01130e46805c7674433))
131
+ - support getting images by static files ([c23d88a](https://github.com/easyops-cn/next-core/commit/c23d88aa70f5009453a1d3c58e7f4a0d6249c719))
211
132
 
212
133
  ## [2.84.2](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.84.1...@next-core/brick-kit@2.84.2) (2021-11-12)
213
134
 
@@ -1848,6 +1848,10 @@
1848
1848
  globalVariables.MISC = getRuntime().getMiscSettings();
1849
1849
  }
1850
1850
 
1851
+ if (attemptToVisitGlobals.has("BASE_URL")) {
1852
+ globalVariables.BASE_URL = getBasePath().replace(/\/$/, "");
1853
+ }
1854
+
1851
1855
  try {
1852
1856
  var result = brickUtils.cook(precooked.expression, precooked.source, {
1853
1857
  globalVariables: supply(precooked.attemptToVisitGlobals, globalVariables)