* feat(charts-v2): init * chore(charts-v2): init chart renderer * feat(chart-v2): add chart grid and initializer * feat(chart-v2): improve ui * feat(chart-v2): ui * feat(charts-v2): query sort ui * feat(charts-v2): field select component * feat(charts-v2): improve ui && add query action * feat(charts-v2): imporve ui, work in progress * fix(charts-v2): chart renderer request api twice * feat(charts-v2): add dimension formatter * feat(charts-v2): filter, sort, limit * feat(charts-v2): sql mode ui * feat(charts-v2): support duplicate & sql mode * fix(charts-v2): wrong defaultValue of json config * feat(charts-v2): transformer ui * feat(charts-v2): transformer * chore(charts-v2): rename transfromer to transform * feat(charts-v2): support cache * feat(charts-v2): add acl provider * chore(charts-v2): hide sql mode * refactor(charts-v2): add renderer provider * feat: collection permission check * feat(charts-v2): add antd statistic * test(charts-v2): backend * chore: improve code * test(charts-v2): add test * chore: add Chinese translation * fix(charts-v2): locale switch bug * chore: add dependency * feat(charts-v2): init chart config from query * feat: change layout * test: fix frontend test * feat: improve auto infer * fix: ui issues * chore: translation * fix: sql error * fix: some issues * feat: support table * fix: bug * chore: improve code and fix query * feat: add config reference * chore: add translation * fix: process data due to pg issue * test: fix parseBuilder * chore: upgrade formily to 2.2.25 * fix: some issues and import style * fix: bug when query with sort * feat: parse enum data * fix: yarn.lock * fix: type error * fix: infer bug and frontend test * test: fix frontend * fix: test * feat: improve preview * chore: downgrade formily * feat: support associations, draft, in testing * fix: typo * test: frontend & backend * fix: infer bug * feat: measure selection of statistics * fix: bug of group by alias * fix: some issues * fix: order issues * fix: yarn.lock * chore: fix filter include & 'data-visualization' * style: improve style * docs: add readme * chore: add translation --------- Co-authored-by: chenos <chenlinxh@gmail.com>
71 lines
1.1 KiB
TypeScript
71 lines
1.1 KiB
TypeScript
import { lang } from '../locale';
|
|
|
|
export default {
|
|
datetime: [
|
|
{
|
|
label: lang('YYYY'),
|
|
value: 'YYYY',
|
|
},
|
|
{
|
|
label: lang('MM'),
|
|
value: 'MM',
|
|
},
|
|
{
|
|
label: lang('DD'),
|
|
value: 'DD',
|
|
},
|
|
{
|
|
label: lang('YYYY-MM'),
|
|
value: 'YYYY-MM',
|
|
},
|
|
{
|
|
label: lang('YYYY-MM-DD'),
|
|
value: 'YYYY-MM-DD',
|
|
},
|
|
{
|
|
label: lang('YYYY-MM-DD hh:mm'),
|
|
value: 'YYYY-MM-DD hh:mm',
|
|
},
|
|
{
|
|
label: lang('YYYY-MM-DD hh:mm:ss'),
|
|
value: 'YYYY-MM-DD hh:mm:ss',
|
|
},
|
|
],
|
|
date: [
|
|
{
|
|
label: lang('YYYY'),
|
|
value: 'YYYY',
|
|
},
|
|
{
|
|
label: lang('MM'),
|
|
value: 'MM',
|
|
},
|
|
{
|
|
label: lang('DD'),
|
|
value: 'DD',
|
|
},
|
|
{
|
|
label: lang('YYYY-MM'),
|
|
value: 'YYYY-MM',
|
|
},
|
|
{
|
|
label: lang('YYYY-MM-DD'),
|
|
value: 'YYYY-MM-DD',
|
|
},
|
|
],
|
|
time: [
|
|
{
|
|
label: lang('hh:mm:ss'),
|
|
value: 'hh:mm:ss',
|
|
},
|
|
{
|
|
label: lang('hh:mm'),
|
|
value: 'hh:mm',
|
|
},
|
|
{
|
|
label: lang('hh'),
|
|
value: 'hh',
|
|
},
|
|
],
|
|
};
|