[feature](webapp) add script command to accommodate different Node.js versions and change lerna + npm to pnpm workspaces (#61)

This commit is contained in:
williamhliu
2023-09-07 21:29:13 +08:00
committed by GitHub
parent 898108d7e1
commit 90f6a20516
26 changed files with 332 additions and 149 deletions

View File

@@ -62,6 +62,9 @@ const ExecuteItem: React.FC<Props> = ({
</div>
<div className={`${prefixCls}-content-container ${prefixCls}-last-node`}>
<Spin spinning={entitySwitchLoading}>
{data.queryAuthorization?.message && (
<div className={`${prefixCls}-auth-tip`}>{data.queryAuthorization.message}</div>
)}
{data?.queryMode === 'WEB_PAGE' ? (
<WebPage id={queryId!} data={data} />
) : (

View File

@@ -31,7 +31,7 @@ const FilterItem: React.FC<Props> = ({ modelId, filters, filter, onFiltersChange
};
useEffect(() => {
if (typeof filter.value === 'string' && options.length === 0) {
if ((typeof filter.value === 'string' || isArray(filter.value)) && options.length === 0) {
initData();
}
}, []);

View File

@@ -228,10 +228,14 @@ const ParseTip: React.FC<Props> = ({
const entityDimensions = entityInfo?.dimensions?.filter(
item =>
!['zyqk_song_id', 'song_name', 'singer_id'].includes(item.bizName) &&
!['zyqk_song_id', 'song_name', 'singer_id', 'zyqk_cmpny_id'].includes(item.bizName) &&
!(
entityInfo?.dimensions?.some(dimension => dimension.bizName === 'singer_id') &&
item.bizName === 'singer_name'
) &&
!(
entityInfo?.dimensions?.some(dimension => dimension.bizName === 'zyqk_cmpny_id') &&
item.bizName === 'cmpny_name'
)
);

View File

@@ -113,6 +113,13 @@
padding-bottom: 10px;
}
&-auth-tip {
font-size: 13px;
color: var(--text-color-secondary);
margin-bottom: 12px;
line-height: 20px;
}
&-switch-entity-tip {
display: flex;
align-items: center;