feat: implement report
parent
1c4937763e
commit
f8b94547a1
|
@ -23,6 +23,7 @@ export default tseslint.config(
|
|||
'@typescript-eslint/no-explicit-any': 'off',
|
||||
'@typescript-eslint/no-duplicate-enum-values': 'off',
|
||||
'@typescript-eslint/no-unused-expressions': 'warn',
|
||||
'@typescript-eslint/no-unused-vars': 'warn',
|
||||
},
|
||||
},
|
||||
);
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
<link rel="icon" type="image/svg+xml" href="/icon.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Vite + React + TS</title>
|
||||
<title>We - Report</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
|
|
|
@ -8,9 +8,6 @@
|
|||
"name": "pos-realtime-report",
|
||||
"version": "0.0.0",
|
||||
"dependencies": {
|
||||
"ag-grid-community": "^32.2.1",
|
||||
"ag-grid-enterprise": "^32.2.1",
|
||||
"ag-grid-react": "^32.2.1",
|
||||
"antd": "^5.21.2",
|
||||
"axios": "^1.7.7",
|
||||
"crypto-js": "^4.2.0",
|
||||
|
@ -1818,55 +1815,6 @@
|
|||
"acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/ag-charts-community": {
|
||||
"version": "10.2.0",
|
||||
"resolved": "https://registry.npmjs.org/ag-charts-community/-/ag-charts-community-10.2.0.tgz",
|
||||
"integrity": "sha512-zRB5xvMj14Mli8kEmcy4wDBzJpdOF7+3yqCXrr8ug3sGjMlAJaf33Vu6qqxzlS/Vpip6TNvjPK9Q6RdtDHslRw==",
|
||||
"dependencies": {
|
||||
"ag-charts-locale": "10.2.0",
|
||||
"ag-charts-types": "10.2.0"
|
||||
}
|
||||
},
|
||||
"node_modules/ag-charts-locale": {
|
||||
"version": "10.2.0",
|
||||
"resolved": "https://registry.npmjs.org/ag-charts-locale/-/ag-charts-locale-10.2.0.tgz",
|
||||
"integrity": "sha512-JAwuJFXwoVE94YFuwo1ZtnCJa4rFLQna+t2xT5qT2KUaohVPHB+Zd8ivP62lOv9j2ZgzSg4WANBo2UT1LCtl2Q=="
|
||||
},
|
||||
"node_modules/ag-charts-types": {
|
||||
"version": "10.2.0",
|
||||
"resolved": "https://registry.npmjs.org/ag-charts-types/-/ag-charts-types-10.2.0.tgz",
|
||||
"integrity": "sha512-PUqH1QtugpYLnlbMdeSZVf5PpT1XZVsP69qN1JXhetLtQpVC28zaj7ikwu9CMA9N9b+dBboA9QcjUQUJZVUokQ=="
|
||||
},
|
||||
"node_modules/ag-grid-community": {
|
||||
"version": "32.2.1",
|
||||
"resolved": "https://registry.npmjs.org/ag-grid-community/-/ag-grid-community-32.2.1.tgz",
|
||||
"integrity": "sha512-mrnm1DnLI9Wd408mMwP+6p7lbTC3FYgzNIUPygBvNh3SzZnbzTEUJF/BTKXi+MARWtG5S0IMUYy4hqBiLbobaQ==",
|
||||
"dependencies": {
|
||||
"ag-charts-types": "10.2.0"
|
||||
}
|
||||
},
|
||||
"node_modules/ag-grid-enterprise": {
|
||||
"version": "32.2.1",
|
||||
"resolved": "https://registry.npmjs.org/ag-grid-enterprise/-/ag-grid-enterprise-32.2.1.tgz",
|
||||
"integrity": "sha512-Mm2u35SZ2ayZmqbXd5mM/yJzE0kArpGAxii7wg6RD+ymc34/ybp5D4UGbnUmDgBhUHP3ZwSR5SAmJ5xosjaNoA==",
|
||||
"dependencies": {
|
||||
"ag-charts-community": "10.2.0",
|
||||
"ag-grid-community": "32.2.1"
|
||||
}
|
||||
},
|
||||
"node_modules/ag-grid-react": {
|
||||
"version": "32.2.1",
|
||||
"resolved": "https://registry.npmjs.org/ag-grid-react/-/ag-grid-react-32.2.1.tgz",
|
||||
"integrity": "sha512-lojTKsT/ncRZ81mrDa7qkIhZePfYlLCHIiAL1WbzL1mNPrglaa7QQKkE6hhhuAXvAm2uUhK1OfkMPnrqsEFldA==",
|
||||
"dependencies": {
|
||||
"ag-grid-community": "32.2.1",
|
||||
"prop-types": "^15.8.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^16.3.0 || ^17.0.0 || ^18.0.0",
|
||||
"react-dom": "^16.3.0 || ^17.0.0 || ^18.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/ajv": {
|
||||
"version": "6.12.6",
|
||||
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",
|
||||
|
@ -3565,6 +3513,7 @@
|
|||
"version": "4.1.1",
|
||||
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
|
||||
"integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
|
@ -3920,16 +3869,6 @@
|
|||
"node": ">=6.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/prop-types": {
|
||||
"version": "15.8.1",
|
||||
"resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz",
|
||||
"integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==",
|
||||
"dependencies": {
|
||||
"loose-envify": "^1.4.0",
|
||||
"object-assign": "^4.1.1",
|
||||
"react-is": "^16.13.1"
|
||||
}
|
||||
},
|
||||
"node_modules/proxy-from-env": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz",
|
||||
|
|
|
@ -10,9 +10,6 @@
|
|||
"preview": "vite preview"
|
||||
},
|
||||
"dependencies": {
|
||||
"ag-grid-community": "^32.2.1",
|
||||
"ag-grid-enterprise": "^32.2.1",
|
||||
"ag-grid-react": "^32.2.1",
|
||||
"antd": "^5.21.2",
|
||||
"axios": "^1.7.7",
|
||||
"crypto-js": "^4.2.0",
|
||||
|
|
|
@ -0,0 +1,30 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="256" height="256">
|
||||
<path d="M0 0 C84.48 0 168.96 0 256 0 C256 84.48 256 168.96 256 256 C171.52 256 87.04 256 0 256 C0 171.52 0 87.04 0 0 Z " fill="#FEFEFE" transform="translate(0,0)"/>
|
||||
<path d="M0 0 C0.75925781 0.04382813 1.51851562 0.08765625 2.30078125 0.1328125 C5.88256367 1.24662373 7.35627671 2.94923494 9.6875 5.875 C10.38636492 8.7821452 10.33880328 11.59960954 10.2890625 14.578125 C10.30107193 15.83396393 10.30107193 15.83396393 10.31332397 17.11517334 C10.33634552 19.78561026 10.32696368 22.45452308 10.3125 25.125 C10.30863334 27.78091091 10.31227496 30.43614332 10.33309937 33.09197998 C10.34504114 34.74041809 10.34276684 36.38904702 10.32339478 38.03741455 C10.35655269 44.96696276 11.70293363 51.65106204 16 57.25 C20.80687995 61.94509205 24.41586916 63.07457211 31.0625 63.3125 C37.66113439 63.13964283 42.30357431 61.96391678 47.2109375 57.484375 C52.98608723 51.14172501 53.0220721 44.12906469 53.078125 36.06445312 C53.23710783 31.10507195 53.98187576 28.49041241 57.6875 24.875 C60.91609847 23.26070077 64.19743653 23.27929343 67.6875 23.875 C70.71258145 25.61102105 73.10540069 27.71080137 74.6875 30.875 C74.78126265 32.81276134 74.87029918 34.75096463 74.92626953 36.69018555 C75.18723573 44.86568609 75.41439937 51.56374669 81.4375 57.640625 C87.31153996 62.87831063 91.22939784 63.23759941 99.1328125 63.140625 C104.86151127 62.71254641 108.10210323 61.20982287 112.31982422 57.40087891 C119.03589965 49.31997148 117.4327965 38.58940584 117.3125 28.6875 C117.2883876 25.81354328 117.27329066 22.94062677 117.28207397 20.0665741 C117.2866224 18.28681931 117.27217189 16.50688113 117.23574829 14.72749329 C117.23811259 9.28512271 118.03461232 6.18130101 121.6875 1.875 C124.7649905 -0.03803463 126.54559708 -0.12753398 130.1875 -0.0625 C134.57008476 1.11140663 135.95077541 2.25518265 138.6875 5.875 C139.42300541 9.24060211 139.38855824 12.53422026 139.3515625 15.96875 C139.35634613 16.95186157 139.36112976 17.93497314 139.36605835 18.94787598 C139.36945711 21.02906899 139.36025641 23.11031541 139.33935547 25.19140625 C139.31281894 28.33719113 139.33898502 31.47933264 139.37109375 34.625 C139.39574969 48.76064945 138.22743404 60.65399233 128.69140625 71.87890625 C119.1936116 81.33967246 108.83413084 85.22967171 95.625 85.375 C84.38872798 85.25110469 77.27893263 82.67695308 68.59765625 75.4609375 C66.56945094 73.72066214 66.56945094 73.72066214 63.6875 71.875 C63.23761719 72.32230469 62.78773437 72.76960938 62.32421875 73.23046875 C51.77234919 83.14795738 41.02355743 85.29017124 27.11328125 85.0859375 C22.16430505 84.91873538 18.11087031 84.15135431 13.6875 81.875 C12.87152344 81.4728125 12.05554688 81.070625 11.21484375 80.65625 C-0.00064927 74.56638954 -5.8942231 65.67745595 -10.3125 53.875 C-12.25987347 46.49697144 -11.61568004 38.4551793 -11.66259766 30.88305664 C-11.6791851 28.92102215 -11.70651167 26.95904877 -11.74462891 24.99731445 C-11.79947742 22.15544588 -11.82127816 19.31498319 -11.8359375 16.47265625 C-11.85860687 15.6006105 -11.88127625 14.72856476 -11.90463257 13.83009338 C-11.8897916 9.53782747 -11.65870649 6.74328663 -8.90478516 3.33764648 C-5.63556645 0.23191951 -4.36845408 -0.33772922 0 0 Z " fill="#DA3937" transform="translate(22.3125,98.125)"/>
|
||||
<path d="M0 0 C4.0258559 3.27481388 7.30968734 6.66093596 7.875 12 C6.75105261 20.8070842 -4.37992952 28.5308171 -10.3125 34.4375 C-11.67084961 35.80165039 -11.67084961 35.80165039 -13.05664062 37.19335938 C-13.92095703 38.05638672 -14.78527344 38.91941406 -15.67578125 39.80859375 C-16.45864502 40.59032959 -17.24150879 41.37206543 -18.0480957 42.17749023 C-21.21735696 45.13665662 -23.63554273 45.33229052 -27.9609375 45.29296875 C-31.13134567 44.83745033 -32.8192402 43.24684343 -35 41 C-36.78149839 37.43700323 -36.7459738 33.87284733 -36 30 C-34.09083674 26.88596847 -31.63123449 24.5131978 -29 22 C-27.52070653 20.50012505 -26.04153671 19.00012814 -24.5625 17.5 C-23.37752704 16.33076672 -22.19096751 15.16312671 -21 14 C-28.32321806 13.24818674 -33.64732559 13.85822619 -39.828125 18.03125 C-44.49256837 22.25945047 -47.17710462 27.81612113 -47.5 34.125 C-46.55071493 41.48195929 -44.26093654 46.73906346 -39 52 C-33.42999429 56.17750428 -26.65528342 55.74037994 -20 55 C-15.77214124 53.68301524 -12.74807808 51.65684904 -9.4375 48.75 C-6.04352048 46.31329676 -4.09269986 46.35378423 0 47 C2.96728289 48.79895674 5.42350428 50.84700857 7 54 C7.42583737 58.42870863 7.34511995 61.79967173 4.58984375 65.45703125 C-2.84947327 72.67700722 -12.60305762 77.33334848 -22.95141602 77.41772461 C-23.75119873 77.40362549 -24.55098145 77.38952637 -25.375 77.375 C-26.21281006 77.36412354 -27.05062012 77.35324707 -27.91381836 77.34204102 C-39.86302764 77.03428123 -48.32577793 73.38070943 -57.04296875 65.046875 C-60.98541004 60.77659744 -63.84358486 56.39103784 -66 51 C-66.44859375 49.89398438 -66.44859375 49.89398438 -66.90625 48.765625 C-70.42022271 38.80936898 -70.34243627 28.27811088 -66.26171875 18.52734375 C-60.13873502 6.26241969 -51.73411193 -1.67740001 -38.97265625 -6.81640625 C-25.36010454 -10.93182886 -11.70261033 -7.23608737 0 0 Z " fill="#85BF46" transform="translate(238,106)"/>
|
||||
<path d="M0 0 C2.83059923 2.03815535 4.70238869 3.63815922 5.46759033 7.13964844 C5.6630773 9.8034328 5.69283232 12.4228801 5.6640625 15.09375 C5.66884613 16.07686157 5.67362976 17.05997314 5.67855835 18.07287598 C5.68195711 20.15406899 5.67275641 22.23531541 5.65185547 24.31640625 C5.62531894 27.46219113 5.65148502 30.60433264 5.68359375 33.75 C5.70824969 47.88564945 4.53993404 59.77899233 -4.99609375 71.00390625 C-14.4938884 80.46467246 -24.85336916 84.35467171 -38.0625 84.5 C-49.80679782 84.37050301 -58.45933207 81.39341503 -67 73 C-68.37890625 71.02734375 -68.37890625 71.02734375 -69 69 C-68.27734375 67.09765625 -68.27734375 67.09765625 -66.9375 65.0625 C-63.46319984 59.35472116 -61.27445489 53.26200984 -59 47 C-57.73339027 48.8999146 -56.51734045 50.83537229 -55.375 52.8125 C-51.52637448 57.97776057 -48.22942947 61.5031647 -41.6484375 62.515625 C-33.48082522 62.76047847 -27.48574697 62.05099315 -21.36767578 56.52587891 C-14.65160035 48.44497148 -16.2547035 37.71440584 -16.375 27.8125 C-16.3991124 24.93854328 -16.41420934 22.06562677 -16.40542603 19.1915741 C-16.4008776 17.41181931 -16.41532811 15.63188113 -16.45175171 13.85249329 C-16.44938741 8.41012271 -15.65288768 5.30630101 -12 1 C-7.90407986 -1.54611252 -4.58302563 -1.22759615 0 0 Z " fill="#F1D041" transform="translate(156,99)"/>
|
||||
<path d="M0 0 C0.66 0.33 1.32 0.66 2 1 C2 1.33 2 1.66 2 2 C4.87841298 3.33749938 4.87841298 3.33749938 7.0625 2.0625 C11.40212921 0.49284688 15.44856211 0.16432616 20 1 C22.83172351 2.71161954 23.34817945 3.91660164 25 7 C25.93484138 11.83001379 25.93484138 11.83001379 25 15 C23.75805664 16.78588867 23.75805664 16.78588867 22.09765625 18.60546875 C21.46456543 19.29930664 20.83147461 19.99314453 20.17919922 20.70800781 C16.08118474 25.01813104 11.9019555 29.24143485 7.6875 33.4375 C6.32915039 34.80165039 6.32915039 34.80165039 4.94335938 36.19335938 C4.07904297 37.05638672 3.21472656 37.91941406 2.32421875 38.80859375 C1.54135498 39.59032959 0.75849121 40.37206543 -0.0480957 41.17749023 C-3.21735696 44.13665662 -5.63554273 44.33229052 -9.9609375 44.29296875 C-13.13134567 43.83745033 -14.8192402 42.24684343 -17 40 C-18.78149839 36.43700323 -18.7459738 32.87284733 -18 29 C-16.09083674 25.88596847 -13.63123449 23.5131978 -11 21 C-9.52070653 19.50012505 -8.04153671 18.00012814 -6.5625 16.5 C-5.37752704 15.33076672 -4.19096751 14.16312671 -3 13 C-10.32321806 12.24818674 -15.64732559 12.85822619 -21.828125 17.03125 C-26.49256837 21.25945047 -29.17710462 26.81612113 -29.5 33.125 C-28.61168202 40.00946437 -26.52866303 46.41430987 -21 51 C-17.75680898 52.88522913 -14.43364904 54.49319479 -11 56 C-11.375 58.4296875 -11.375 58.4296875 -12 61 C-14 62.125 -14 62.125 -16 63 C-16.33 63.99 -16.66 64.98 -17 66 C-18.32 66 -19.64 66 -21 66 C-20.01 64.68 -19.02 63.36 -18 62 C-19.32 61.67 -20.64 61.34 -22 61 C-21.34 61 -20.68 61 -20 61 C-20.66 59.68 -21.32 58.36 -22 57 C-22 57.99 -22 58.98 -22 60 C-23.485 60.495 -23.485 60.495 -25 61 C-25.33 60.34 -25.66 59.68 -26 59 C-26.66 59 -27.32 59 -28 59 C-28 59.66 -28 60.32 -28 61 C-29.32 60.67 -30.64 60.34 -32 60 C-31.34 60 -30.68 60 -30 60 C-30.33 57.36 -30.66 54.72 -31 52 C-31.66 52 -32.32 52 -33 52 C-33.33 52.66 -33.66 53.32 -34 54 C-33.67 51.69 -33.34 49.38 -33 47 C-33.66 47 -34.32 47 -35 47 C-36.49297212 44.01405576 -36.11755228 41.29146376 -36 38 C-35.67 37.34 -35.34 36.68 -35 36 C-35.66 36 -36.32 36 -37 36 C-38.6875 34.1875 -38.6875 34.1875 -40 32 C-39.505 30.515 -39.505 30.515 -39 29 C-38.01 29 -37.02 29 -36 29 C-36.33 28.01 -36.66 27.02 -37 26 C-36.67 25.01 -36.34 24.02 -36 23 C-35.34 23 -34.68 23 -34 23 C-32.54815522 18.46298506 -31.76490804 14.81938524 -32 10 C-31.34 10 -30.68 10 -30 10 C-29.67 10.66 -29.34 11.32 -29 12 C-28.34 10.68 -27.68 9.36 -27 8 C-25.68 8 -24.36 8 -23 8 C-22.67 8.66 -22.34 9.32 -22 10 C-20.87483915 8.16715557 -20.87483915 8.16715557 -20 6 C-20.33 5.01 -20.66 4.02 -21 3 C-17.04 3 -13.08 3 -9 3 C-8.67 2.34 -8.34 1.68 -8 1 C-7.34 1.66 -6.68 2.32 -6 3 C-5.38125 2.649375 -4.7625 2.29875 -4.125 1.9375 C-3.073125 1.4734375 -3.073125 1.4734375 -2 1 C-1.34 1.33 -0.68 1.66 0 2 C0 1.34 0 0.68 0 0 Z " fill="#77B14F" transform="translate(220,107)"/>
|
||||
<path d="M0 0 C3.02508145 1.73602105 5.41790069 3.83580137 7 7 C8.05316927 21.86473193 6.93285296 35.08057644 -3 47 C-9.89364818 41.48508146 -12.97912981 32.58793895 -14 24 C-14.20093611 20.97779304 -14.27523693 17.9657452 -14.3125 14.9375 C-14.35600586 13.75317383 -14.35600586 13.75317383 -14.40039062 12.54492188 C-14.44447468 8.49936162 -14.32100871 6.50765708 -12.10546875 3.00390625 C-8.48613131 -0.44084349 -4.84984078 -0.82780214 0 0 Z " fill="#F0782A" transform="translate(90,122)"/>
|
||||
<path d="M0 0 C4.35399383 0.95787864 6.48218854 1.5384724 9.875 4.5625 C13.9236515 7.72044817 17.02850663 7.79879714 22 8 C17.64199371 13.21065969 13.06625699 18.08712959 8.25 22.875 C7.57839844 23.55046875 6.90679687 24.2259375 6.21484375 24.921875 C5.57160156 25.56382812 4.92835938 26.20578125 4.265625 26.8671875 C3.68586914 27.44581543 3.10611328 28.02444336 2.50878906 28.62060547 C-0.40677094 31.28612554 -3.07461064 31.32829899 -6.9609375 31.29296875 C-10.13134567 30.83745033 -11.8192402 29.24684343 -14 27 C-15.78149839 23.43700323 -15.7459738 19.87284733 -15 16 C-13.09083674 12.88596847 -10.63123449 10.5131978 -8 8 C-6.52070653 6.50012505 -5.04153671 5.00012814 -3.5625 3.5 C-2.37752704 2.33076672 -1.19096751 1.16312671 0 0 Z " fill="#6FCAEC" transform="translate(217,120)"/>
|
||||
<path d="M0 0 C0.99 0.66 1.98 1.32 3 2 C3 2.99 3 3.98 3 5 C2.071875 5.12375 2.071875 5.12375 1.125 5.25 C-1.18437567 5.81258459 -1.18437567 5.81258459 -2.25 8.0625 C-2.4975 8.701875 -2.745 9.34125 -3 10 C-2.34 10 -1.68 10 -1 10 C0.66965451 10.31802943 2.33678518 10.64984951 4 11 C3.34 12.32 2.68 13.64 2 15 C1.34 14.67 0.68 14.34 0 14 C-0.33 15.65 -0.66 17.3 -1 19 C-1.969375 19.28875 -2.93875 19.5775 -3.9375 19.875 C-7.10664203 20.64214682 -7.10664203 20.64214682 -8 23 C-8.66 23.33 -9.32 23.66 -10 24 C-10.99 23.01 -11.98 22.02 -13 21 C-13.66 21.99 -14.32 22.98 -15 24 C-15.763125 23.835 -16.52625 23.67 -17.3125 23.5 C-20.03596236 22.90854604 -20.03596236 22.90854604 -23 23 C-23 23.66 -23 24.32 -23 25 C-24.45880109 24.85892253 -25.91703551 24.71197585 -27.375 24.5625 C-28.59316406 24.44068359 -28.59316406 24.44068359 -29.8359375 24.31640625 C-32 24 -32 24 -34 23 C-34.33 23.99 -34.66 24.98 -35 26 C-35.33 23.69 -35.66 21.38 -36 19 C-35.360625 18.731875 -34.72125 18.46375 -34.0625 18.1875 C-31.66868314 17.11332248 -31.66868314 17.11332248 -31 14 C-30.65179959 12.33637583 -30.31595508 10.67004829 -30 9 C-29.13117188 8.90203125 -28.26234375 8.8040625 -27.3671875 8.703125 C-19.44315188 7.67495036 -14.97845663 6.5934447 -9.0625 1.25 C-5.99051051 -0.61181181 -3.51251956 -0.31931996 0 0 Z " fill="#7EB847" transform="translate(238,153)"/>
|
||||
<path d="M0 0 C2.55294071 0.59044719 3.66972969 1.16813059 5.47265625 3.04296875 C7.69408024 7.18962686 8.44009872 9.95471038 7.34765625 14.54296875 C5.01599436 18.89540428 5.01599436 18.89540428 2.34765625 20.54296875 C-2.08652995 21.66862837 -5.91681553 21.52198467 -9.9375 19.25390625 C-12.02734375 17.66796875 -12.02734375 17.66796875 -13.86328125 16.05078125 C-15.69812854 14.50438157 -17.47468772 13.53106818 -19.65234375 12.54296875 C-17.7111169 10.15429599 -15.70721895 7.83458072 -13.65234375 5.54296875 C-13.19601563 5.0221875 -12.7396875 4.50140625 -12.26953125 3.96484375 C-8.52853862 0.24522822 -5.04432989 -0.28150861 0 0 Z " fill="#109752" transform="translate(237.65234375,107.45703125)"/>
|
||||
<path d="M0 0 C3.85301975 0.61159044 5.91247934 1.22277771 8.9375 3.625 C11.39415197 7.30997796 11.63836491 10.34471786 10.9375 14.625 C9.14386089 17.4350346 7.91869065 19.13440468 4.9375 20.625 C1.87829426 21.04571592 -1.0092746 21.11014117 -4.0625 20.625 C-7.68868614 17.7542693 -9.75449537 15.51702846 -10.5 10.9375 C-9.96184786 6.86291949 -8.68255074 4.94683908 -5.91015625 1.984375 C-3.79445945 0.42779469 -2.605729 0.09888915 0 0 Z " fill="#ED423B" transform="translate(21.0625,72.375)"/>
|
||||
<path d="M0 0 C3.25964342 2.53527822 4.50240735 5.2250807 5.1875 9.25 C4.48339925 13.56261712 2.72657145 15.20106971 -0.3125 18.3125 C-3.52944364 19.92097182 -6.83387222 19.92559149 -10.3125 19.3125 C-13.00355198 17.13675584 -14.76782928 15.40184144 -16.3125 12.3125 C-16.70697548 8.13105989 -16.76285186 6.00303952 -14.4375 2.4375 C-10.39085487 -1.60914513 -5.30014526 -1.57571886 0 0 Z " fill="#F18834" transform="translate(92.3125,97.6875)"/>
|
||||
<path d="M0 0 C2.8100346 1.79363911 4.50940468 3.01880935 6 6 C6.49170132 10.91701315 6.48320696 13.09801367 4.125 17.5 C1.65261326 20.07128221 -0.48217516 20.51897867 -4 20.75 C-7.90848027 20.48749013 -8.90345728 20.07530332 -12.125 17.5625 C-14.32095875 14.24101401 -14.78895183 11.06072933 -14.54296875 7.125 C-13.80256378 4.22729998 -12.30876653 2.48814955 -9.84765625 0.8125 C-6.29712896 -0.74883124 -3.86365346 -0.55195049 0 0 Z " fill="#F6DB61" transform="translate(155,73)"/>
|
||||
<path d="M0 0 C4.35399383 0.95787864 6.48218854 1.5384724 9.875 4.5625 C13.88278197 7.68856994 17.04156869 7.8787939 22 8 C18.49925018 12.17443363 15.02049157 16.3145494 11 20 C10.34 20 9.68 20 9 20 C8.34 18.02 7.68 16.04 7 14 C6.34 14 5.68 14 5 14 C4.67 12.35 4.34 10.7 4 9 C2.02 8.34 0.04 7.68 -2 7 C-1.34 4.69 -0.68 2.38 0 0 Z " fill="#5BBCE3" transform="translate(217,120)"/>
|
||||
<path d="M0 0 C0.66 0 1.32 0 2 0 C2 0.66 2 1.32 2 2 C3.32 2.33 4.64 2.66 6 3 C4.68 3.33 3.36 3.66 2 4 C1.87625 4.639375 1.7525 5.27875 1.625 5.9375 C1.315625 6.9584375 1.315625 6.9584375 1 8 C0.01 8.495 0.01 8.495 -1 9 C-0.67 10.65 -0.34 12.3 0 14 C-2.18789679 14 -4.37594878 13.9517211 -6.5625 13.875 C-10.06571214 13.61174965 -10.06571214 13.61174965 -12 16 C-12.66 16 -13.32 16 -14 16 C-14.99 16.33 -15.98 16.66 -17 17 C-17.12375 16.195625 -17.2475 15.39125 -17.375 14.5625 C-17.684375 13.2940625 -17.684375 13.2940625 -18 12 C-18.66 11.67 -19.32 11.34 -20 11 C-20 10.01 -20 9.02 -20 8 C-19.35933594 7.82984375 -18.71867188 7.6596875 -18.05859375 7.484375 C-13.7640936 6.28114694 -9.87339157 5.10522912 -6.0625 2.75 C-5.051875 2.1725 -4.04125 1.595 -3 1 C-2.01 1.33 -1.02 1.66 0 2 C0 1.34 0 0.68 0 0 Z " fill="#75AF50" transform="translate(231,155)"/>
|
||||
<path d="M0 0 C1.32 0.33 2.64 0.66 4 1 C4 1.66 4 2.32 4 3 C4.66 3 5.32 3 6 3 C5.96519531 3.61488281 5.93039063 4.22976562 5.89453125 4.86328125 C5.86746094 5.67152344 5.84039062 6.47976562 5.8125 7.3125 C5.77769531 8.11300781 5.74289063 8.91351563 5.70703125 9.73828125 C6.06198392 12.47851584 6.89366282 13.29171079 9 15 C8.34 16.32 7.68 17.64 7 19 C5.68 19 4.36 19 3 19 C3 18.01 3 17.02 3 16 C2.34 16 1.68 16 1 16 C1 15.01 1 14.02 1 13 C0.34 13 -0.32 13 -1 13 C-2.625 11 -2.625 11 -4 9 C-3.34 9 -2.68 9 -2 9 C-2 8.34 -2 7.68 -2 7 C-1.34 6.34 -0.68 5.68 0 5 C-0.99 4.67 -1.98 4.34 -3 4 C-2.01 2.68 -1.02 1.36 0 0 Z " fill="#7DB748" transform="translate(179,140)"/>
|
||||
<path d="M0 0 C6.75 3.75 6.75 3.75 9 6 C11.20250992 6.46006346 11.20250992 6.46006346 13.625 6.625 C15.06875 6.74875 16.5125 6.8725 18 7 C16.02 9.31 14.04 11.62 12 14 C8.61516396 12.87172132 6.64846603 11.36214538 4 9 C4 8.34 4 7.68 4 7 C3.34 7 2.68 7 2 7 C0.61767557 5.37373596 -0.71937515 3.7074998 -2 2 C-1.34 1.34 -0.68 0.68 0 0 Z " fill="#3FADD0" transform="translate(221,121)"/>
|
||||
<path d="M0 0 C0.5625 1.9375 0.5625 1.9375 1 4 C0 5 0 5 -3.81640625 5.09765625 C-5.39846682 5.09098089 -6.98051159 5.07901875 -8.5625 5.0625 C-9.36880859 5.05798828 -10.17511719 5.05347656 -11.00585938 5.04882812 C-13.00393756 5.03700518 -15.00197783 5.01906914 -17 5 C-17 4.34 -17 3.68 -17 3 C-10.89118599 -2.59974618 -7.55539312 -2.14069472 0 0 Z " fill="#72AD4F" transform="translate(219,114)"/>
|
||||
<path d="M0 0 C0.99 0.66 1.98 1.32 3 2 C3 2.99 3 3.98 3 5 C0.36 4.67 -2.28 4.34 -5 4 C-5 3.34 -5 2.68 -5 2 C-5.66 2 -6.32 2 -7 2 C-7 2.66 -7 3.32 -7 4 C-7.99 4 -8.98 4 -10 4 C-9.67 3.01 -9.34 2.02 -9 1 C-5.98131566 -0.50934217 -3.32702771 -0.17510672 0 0 Z M-3 5 C-2.34 5.33 -1.68 5.66 -1 6 C-1.66 7.98 -2.32 9.96 -3 12 C-3.99 11.67 -4.98 11.34 -6 11 C-5.625 8.5625 -5.625 8.5625 -5 6 C-4.34 5.67 -3.68 5.34 -3 5 Z " fill="#7CB456" transform="translate(238,153)"/>
|
||||
<path d="M0 0 C0 2.31 0 4.62 0 7 C-4.93270529 8.6442351 -7.54024193 7.18615592 -12 5 C-10.25 3.4375 -10.25 3.4375 -8 2 C-5.75 2.3125 -5.75 2.3125 -4 3 C-4 2.34 -4 1.68 -4 1 C-2 0 -2 0 0 0 Z " fill="#8CC34B" transform="translate(203,174)"/>
|
||||
<path d="M0 0 C2.64 0 5.28 0 8 0 C8 0.33 8 0.66 8 1 C6.35 1 4.7 1 3 1 C3 1.99 3 2.98 3 4 C3.99 4.33 4.98 4.66 6 5 C5.6875 6.875 5.6875 6.875 5 9 C4.01 9.66 3.02 10.32 2 11 C2 10.34 2 9.68 2 9 C0.68 8.34 -0.64 7.68 -2 7 C-1.67 6.34 -1.34 5.68 -1 5 C-0.64386903 3.33805547 -0.30791692 1.671549 0 0 Z " fill="#80B65C" transform="translate(208,162)"/>
|
||||
<path d="M0 0 C-2 3 -2 3 -4.5 3.5625 C-5.325 3.706875 -6.15 3.85125 -7 4 C-7.66 4.66 -8.32 5.32 -9 6 C-10.5 4.6875 -10.5 4.6875 -12 3 C-12 2.01 -12 1.02 -12 0 C-7.74433453 -1.16063604 -4.3164922 -0.76173392 0 0 Z " fill="#6DA852" transform="translate(223,163)"/>
|
||||
<path d="M0 0 C1.98 0.99 1.98 0.99 4 2 C4 2.66 4 3.32 4 4 C4.66 3.67 5.32 3.34 6 3 C8.3329866 2.95977609 10.66706666 2.95679753 13 3 C11.35 4.98 9.7 6.96 8 9 C4.46766245 7.82255415 4.13691925 7.04394359 2.3125 3.9375 C1.87550781 3.20402344 1.43851563 2.47054687 0.98828125 1.71484375 C0.49908203 0.86599609 0.49908203 0.86599609 0 0 Z " fill="#48B1DA" transform="translate(225,126)"/>
|
||||
<path d="M0 0 C0.66 0.33 1.32 0.66 2 1 C2 3.64 2 6.28 2 9 C1.2575 9.28875 0.515 9.5775 -0.25 9.875 C-2.56739797 10.82302644 -4.77917115 11.84845911 -7 13 C-6.21625 11.96875 -5.4325 10.9375 -4.625 9.875 C-2.35603148 6.71901262 -1.01464129 3.78184481 0 0 Z " fill="#D73B3A" transform="translate(75,145)"/>
|
||||
<path d="M0 0 C0.99 0 1.98 0 3 0 C3.49046322 5.39509537 3.49046322 5.39509537 1.125 8.3125 C-1 10 -1 10 -3 11 C-2.67 9.35 -2.34 7.7 -2 6 C-1.34 6 -0.68 6 0 6 C0.33 5.01 0.66 4.02 1 3 C0.01 3.33 -0.98 3.66 -2 4 C-1.34 2.68 -0.68 1.36 0 0 Z " fill="#6FAA51" transform="translate(187,137)"/>
|
||||
<path d="M0 0 C1.98 0.99 1.98 0.99 4 2 C3.67 4.31 3.34 6.62 3 9 C2.01 8.67 1.02 8.34 0 8 C0 5.36 0 2.72 0 0 Z " fill="#71AC4F" transform="translate(187,146)"/>
|
||||
<path d="M0 0 C0.66 0.33 1.32 0.66 2 1 C1.67 2.65 1.34 4.3 1 6 C0.01 6 -0.98 6 -2 6 C-2.33 4.68 -2.66 3.36 -3 2 C-2.01 1.34 -1.02 0.68 0 0 Z " fill="#71AB4F" transform="translate(199,116)"/>
|
||||
<path d="M0 0 C0.66 0.33 1.32 0.66 2 1 C2 2.32 2 3.64 2 5 C1.34 5 0.68 5 0 5 C-0.66 6.32 -1.32 7.64 -2 9 C-2 5.61976483 -1.12544378 3.16531063 0 0 Z " fill="#E04F44" transform="translate(75,145)"/>
|
||||
</svg>
|
After Width: | Height: | Size: 19 KiB |
|
@ -1,21 +1,122 @@
|
|||
import { Navigate, Route, Routes } from 'react-router-dom';
|
||||
import axios from 'axios';
|
||||
import AdminLayout from './layout';
|
||||
import { StorageDefaultURL } from '@pos/base';
|
||||
|
||||
function DefaultUrl() {
|
||||
const path: any = StorageDefaultURL.get();
|
||||
return <Navigate to={path} replace />;
|
||||
}
|
||||
import { API_URL, currencyFormatter } from '@pos/base';
|
||||
import { useEffect, useState } from 'react';
|
||||
import { Card, Col, DatePicker, Row, Table, Typography } from 'antd';
|
||||
import dayjs from 'dayjs';
|
||||
import { filter } from 'lodash';
|
||||
|
||||
export default function Admin() {
|
||||
const [dataItem, setDataItem] = useState<any[]>([]);
|
||||
const [dataItemMaster, setDataItemMaster] = useState<any[]>([]);
|
||||
|
||||
const [loadingDataItem, setLoadingDataItem] = useState<boolean>(false);
|
||||
const [loadingDataItemMaster, setLoadingDataItemMaster] = useState<boolean>(false);
|
||||
const [filterDate, setFilerDate] = useState(dayjs());
|
||||
|
||||
async function getDataItem(params: any) {
|
||||
setLoadingDataItem(true);
|
||||
await axios
|
||||
.get(API_URL.REPORT_SUMMARY_INCOME_ITEM, { params: params })
|
||||
.then((resp) => {
|
||||
const data = resp.data.data;
|
||||
setDataItem(data);
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log(err);
|
||||
})
|
||||
.finally(() => {
|
||||
setLoadingDataItem(false);
|
||||
});
|
||||
}
|
||||
|
||||
async function getDataItemMaster(params: any) {
|
||||
setLoadingDataItemMaster(true);
|
||||
await axios
|
||||
.get(API_URL.REPORT_SUMMARY_INCOME_ITEM_MASTER, { params: params })
|
||||
.then((resp) => {
|
||||
const data = resp.data.data;
|
||||
setDataItemMaster(data);
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log(err);
|
||||
})
|
||||
.finally(() => {
|
||||
setLoadingDataItemMaster(false);
|
||||
});
|
||||
}
|
||||
|
||||
function handleGetDate(date: any) {
|
||||
getDataItem({ date });
|
||||
getDataItemMaster({ date });
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
if (filterDate) {
|
||||
handleGetDate(filterDate.format('DD-MM-YYYY'));
|
||||
}
|
||||
}, [filterDate]);
|
||||
|
||||
return (
|
||||
<AdminLayout>
|
||||
<Routes>
|
||||
<Route path="/item" element={<div>item</div>} />
|
||||
<Route path="/item-master" element={<div>item master</div>} />
|
||||
<Route path="/" element={<DefaultUrl />} />
|
||||
<Route path="*" element={<Navigate to={'/404'} replace={true} />} />
|
||||
</Routes>
|
||||
<Row>
|
||||
<Col xl={8} lg={8} md={12} span={24}>
|
||||
<DatePicker value={filterDate} style={{ width: '100%' }} format={'DD-MM-YYYY'} onChange={setFilerDate} />
|
||||
</Col>
|
||||
</Row>
|
||||
<div style={{ marginBottom: 20 }}></div>
|
||||
|
||||
<Card title={'PENDAPATAN PER ITEM'}>
|
||||
<Table
|
||||
bordered
|
||||
size="small"
|
||||
dataSource={dataItem}
|
||||
pagination={false}
|
||||
loading={loadingDataItem}
|
||||
scroll={{ x: 'max-width', y: 350 }}
|
||||
columns={[
|
||||
{ dataIndex: 'main__payment_date', title: 'Date', width: 100 },
|
||||
{ dataIndex: 'item_owner', title: 'Ownership', width: 100 },
|
||||
{ dataIndex: 'tr_item__item_name', title: 'Item', width: 150 },
|
||||
{ dataIndex: 'tr_item__qty', title: 'PAX', width: 70 },
|
||||
{
|
||||
dataIndex: 'tr_item__total_net_price',
|
||||
title: 'Revenue',
|
||||
width: 150,
|
||||
render: (value) => currencyFormatter({ value }),
|
||||
},
|
||||
]}
|
||||
/>
|
||||
</Card>
|
||||
<div style={{ marginBottom: 20 }}></div>
|
||||
<Card title="PENDAPATAN PER ITEM MASTER">
|
||||
<Table
|
||||
bordered
|
||||
size="small"
|
||||
dataSource={dataItemMaster}
|
||||
pagination={false}
|
||||
loading={loadingDataItemMaster}
|
||||
scroll={{ x: 'max-width', y: 350 }}
|
||||
columns={[
|
||||
{ dataIndex: 'main__payment_date', title: 'Date', width: 100 },
|
||||
{ dataIndex: 'item_owner', title: 'Ownership', width: 100 },
|
||||
{
|
||||
dataIndex: 'tr_item_bundling__item_name',
|
||||
title: 'Item Bundling',
|
||||
width: 150,
|
||||
render: (item) => item ?? '-',
|
||||
},
|
||||
{ dataIndex: 'tr_item__item_name', title: 'Item', width: 150 },
|
||||
{ dataIndex: 'tr_item__qty', title: 'PAX', width: 70 },
|
||||
{
|
||||
dataIndex: 'tr_item_bundling__total_net_price',
|
||||
title: 'Revenue',
|
||||
width: 150,
|
||||
render: (value) => currencyFormatter({ value }),
|
||||
},
|
||||
]}
|
||||
/>
|
||||
</Card>
|
||||
</AdminLayout>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
import { Layout } from 'antd';
|
||||
import { ReactNode } from 'react';
|
||||
import { Content } from 'antd/es/layout/layout';
|
||||
import { Button, Flex, Layout, Popconfirm, Tooltip, Typography } from 'antd';
|
||||
import { ReactNode, useState } from 'react';
|
||||
import { Content, Header } from 'antd/es/layout/layout';
|
||||
import { API_URL, handleLogout, IconWrapper } from '@pos/base';
|
||||
import { FaUser } from 'react-icons/fa';
|
||||
import axios from 'axios';
|
||||
|
||||
interface AdminLayoutProps {
|
||||
children: ReactNode;
|
||||
|
@ -8,17 +11,52 @@ interface AdminLayoutProps {
|
|||
|
||||
export default function AdminLayout(props: AdminLayoutProps) {
|
||||
const { children } = props;
|
||||
const [loadingLogout, setLoadingLogout] = useState(false);
|
||||
|
||||
async function handleClickLogout() {
|
||||
setLoadingLogout(true);
|
||||
try {
|
||||
await axios({ url: `${API_URL.LOGOUT}`, method: 'delete' });
|
||||
setLoadingLogout(false);
|
||||
await handleLogout();
|
||||
} catch (err: any) {
|
||||
setLoadingLogout(false);
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
<Layout>
|
||||
<Layout
|
||||
<Header
|
||||
style={{
|
||||
maxWidth: '100vw',
|
||||
overflowX: 'hidden',
|
||||
position: 'sticky',
|
||||
top: 0,
|
||||
zIndex: 1,
|
||||
width: '100%',
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
// background: token.colorPrimary,
|
||||
background: '#fff',
|
||||
borderBottom: '1px solid #ddd',
|
||||
}}
|
||||
>
|
||||
<Flex style={{ width: '100%' }} align="center">
|
||||
<Flex>
|
||||
<div style={{ fontWeight: 800, fontSize: 16 }}>LAPORAN</div>
|
||||
</Flex>
|
||||
<Flex style={{ marginLeft: 'auto' }}>
|
||||
<Popconfirm
|
||||
title="Are you sure want to logout?"
|
||||
placement="bottomRight"
|
||||
onConfirm={() => handleClickLogout()}
|
||||
>
|
||||
<Tooltip title="Logout" placement="bottom">
|
||||
<FaUser style={{ fontSize: 16 }} />
|
||||
</Tooltip>
|
||||
</Popconfirm>
|
||||
</Flex>
|
||||
</Flex>
|
||||
</Header>
|
||||
<Content style={{ overflow: 'initial', background: '#fff', padding: 10 }}>{children}</Content>
|
||||
</Layout>
|
||||
</Layout>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ export default function LoginPage() {
|
|||
|
||||
await handleLogin(user);
|
||||
if (role === 'tenant') {
|
||||
navigate(WEB_URL.REPORT_TENANT);
|
||||
navigate(WEB_URL.APP);
|
||||
} else {
|
||||
if (queryParam.get('u')) {
|
||||
const encPrevUrl = decryptData(decodeURIComponent(queryParam.get('u') as string));
|
||||
|
|
|
@ -23,7 +23,7 @@ export default function App() {
|
|||
>
|
||||
<Routes>
|
||||
<Route path="/auth/*" element={<AuthApp />} />
|
||||
<Route path="/app/*" element={<PrivateApp />} />
|
||||
<Route path="/app" element={<PrivateApp />} />
|
||||
<Route path="/404" element={<NotFoundPage />} />
|
||||
<Route path="/403" element={<ForbiddenAccessPage />} />
|
||||
<Route path="*" element={<Navigate to="/app" />} />
|
||||
|
|
|
@ -3,7 +3,6 @@ export const API_URL = {
|
|||
LOGOUT: '/v1/auth/logout',
|
||||
FORCE_LOGOUT: '/v1/auth/force-logout',
|
||||
|
||||
REPORT: '/v1/report',
|
||||
REPORT_TENANT: '/v1/report',
|
||||
REPORT_BOOKMARK: '/v1/report-bookmark',
|
||||
REPORT_SUMMARY_INCOME_ITEM: '/v1/report-summary/income-item',
|
||||
REPORT_SUMMARY_INCOME_ITEM_MASTER: '/v1/report-summary/income-item-master',
|
||||
};
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
export enum REPORT_GROUP {
|
||||
transaction_report = 'transaction_report',
|
||||
tenant_report = 'tenant_report',
|
||||
realtime_report = 'realtime_report',
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
export const WEB_URL = {
|
||||
ITEM: '/app/item',
|
||||
ITEM_MASTER: '/app/item-master',
|
||||
APP: '/app',
|
||||
};
|
||||
|
|
|
@ -32,7 +32,7 @@ export async function handleLogin(respLogin: any) {
|
|||
await StorageUserData.create(userData);
|
||||
|
||||
// find web url module for first menu to access
|
||||
await StorageDefaultURL.create({ value: WEB_URL.ITEM });
|
||||
await StorageDefaultURL.create({ value: WEB_URL.APP });
|
||||
|
||||
// save default url to local storage
|
||||
} catch (error) {
|
||||
|
|
|
@ -1,94 +0,0 @@
|
|||
Copyright 2011 The Paytone Project Authors (https://github.com/googlefonts/paytoneFont),
|
||||
with Reserved Font Names "Paytone" and "Paytone One".
|
||||
|
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
This license is copied below, and is also available with a FAQ at:
|
||||
https://openfontlicense.org
|
||||
|
||||
|
||||
-----------------------------------------------------------
|
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||
-----------------------------------------------------------
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||
development of collaborative font projects, to support the font creation
|
||||
efforts of academic and linguistic communities, and to provide a free and
|
||||
open framework in which fonts may be shared and improved in partnership
|
||||
with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves. The
|
||||
fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply
|
||||
to any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such. This may
|
||||
include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software components as
|
||||
distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||
or substituting -- in part or in whole -- any of the components of the
|
||||
Original Version, by changing formats or by porting the Font Software to a
|
||||
new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical
|
||||
writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION & CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||
redistribute, and sell modified and unmodified copies of the Font
|
||||
Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components,
|
||||
in Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the corresponding
|
||||
Copyright Holder. This restriction only applies to the primary font name as
|
||||
presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole,
|
||||
must be distributed entirely under this license, and must not be
|
||||
distributed under any other license. The requirement for fonts to
|
||||
remain under this license does not apply to any document created
|
||||
using the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are
|
||||
not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
Binary file not shown.
|
@ -1,93 +0,0 @@
|
|||
Copyright 2021 The Urbanist Project Authors (https://github.com/coreyhu/Urbanist)
|
||||
|
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
This license is copied below, and is also available with a FAQ at:
|
||||
https://openfontlicense.org
|
||||
|
||||
|
||||
-----------------------------------------------------------
|
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||
-----------------------------------------------------------
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||
development of collaborative font projects, to support the font creation
|
||||
efforts of academic and linguistic communities, and to provide a free and
|
||||
open framework in which fonts may be shared and improved in partnership
|
||||
with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves. The
|
||||
fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply
|
||||
to any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such. This may
|
||||
include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software components as
|
||||
distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||
or substituting -- in part or in whole -- any of the components of the
|
||||
Original Version, by changing formats or by porting the Font Software to a
|
||||
new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical
|
||||
writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION & CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||
redistribute, and sell modified and unmodified copies of the Font
|
||||
Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components,
|
||||
in Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the corresponding
|
||||
Copyright Holder. This restriction only applies to the primary font name as
|
||||
presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole,
|
||||
must be distributed entirely under this license, and must not be
|
||||
distributed under any other license. The requirement for fonts to
|
||||
remain under this license does not apply to any document created
|
||||
using the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are
|
||||
not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
@ -1,81 +0,0 @@
|
|||
Urbanist Variable Font
|
||||
======================
|
||||
|
||||
This download contains Urbanist as both variable fonts and static fonts.
|
||||
|
||||
Urbanist is a variable font with this axis:
|
||||
wght
|
||||
|
||||
This means all the styles are contained in these files:
|
||||
Urbanist/Urbanist-VariableFont_wght.ttf
|
||||
Urbanist/Urbanist-Italic-VariableFont_wght.ttf
|
||||
|
||||
If your app fully supports variable fonts, you can now pick intermediate styles
|
||||
that aren’t available as static fonts. Not all apps support variable fonts, and
|
||||
in those cases you can use the static font files for Urbanist:
|
||||
Urbanist/static/Urbanist-Thin.ttf
|
||||
Urbanist/static/Urbanist-ExtraLight.ttf
|
||||
Urbanist/static/Urbanist-Light.ttf
|
||||
Urbanist/static/Urbanist-Regular.ttf
|
||||
Urbanist/static/Urbanist-Medium.ttf
|
||||
Urbanist/static/Urbanist-SemiBold.ttf
|
||||
Urbanist/static/Urbanist-Bold.ttf
|
||||
Urbanist/static/Urbanist-ExtraBold.ttf
|
||||
Urbanist/static/Urbanist-Black.ttf
|
||||
Urbanist/static/Urbanist-ThinItalic.ttf
|
||||
Urbanist/static/Urbanist-ExtraLightItalic.ttf
|
||||
Urbanist/static/Urbanist-LightItalic.ttf
|
||||
Urbanist/static/Urbanist-Italic.ttf
|
||||
Urbanist/static/Urbanist-MediumItalic.ttf
|
||||
Urbanist/static/Urbanist-SemiBoldItalic.ttf
|
||||
Urbanist/static/Urbanist-BoldItalic.ttf
|
||||
Urbanist/static/Urbanist-ExtraBoldItalic.ttf
|
||||
Urbanist/static/Urbanist-BlackItalic.ttf
|
||||
|
||||
Get started
|
||||
-----------
|
||||
|
||||
1. Install the font files you want to use
|
||||
|
||||
2. Use your app's font picker to view the font family and all the
|
||||
available styles
|
||||
|
||||
Learn more about variable fonts
|
||||
-------------------------------
|
||||
|
||||
https://developers.google.com/web/fundamentals/design-and-ux/typography/variable-fonts
|
||||
https://variablefonts.typenetwork.com
|
||||
https://medium.com/variable-fonts
|
||||
|
||||
In desktop apps
|
||||
|
||||
https://theblog.adobe.com/can-variable-fonts-illustrator-cc
|
||||
https://helpx.adobe.com/nz/photoshop/using/fonts.html#variable_fonts
|
||||
|
||||
Online
|
||||
|
||||
https://developers.google.com/fonts/docs/getting_started
|
||||
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/Variable_Fonts_Guide
|
||||
https://developer.microsoft.com/en-us/microsoft-edge/testdrive/demos/variable-fonts
|
||||
|
||||
Installing fonts
|
||||
|
||||
MacOS: https://support.apple.com/en-us/HT201749
|
||||
Linux: https://www.google.com/search?q=how+to+install+a+font+on+gnu%2Blinux
|
||||
Windows: https://support.microsoft.com/en-us/help/314960/how-to-install-or-remove-a-font-in-windows
|
||||
|
||||
Android Apps
|
||||
|
||||
https://developers.google.com/fonts/docs/android
|
||||
https://developer.android.com/guide/topics/ui/look-and-feel/downloadable-fonts
|
||||
|
||||
License
|
||||
-------
|
||||
Please read the full license text (OFL.txt) to understand the permissions,
|
||||
restrictions and requirements for usage, redistribution, and modification.
|
||||
|
||||
You can use them in your products & projects – print or digital,
|
||||
commercial or otherwise.
|
||||
|
||||
This isn't legal advice, please consider consulting a lawyer and see the full
|
||||
license for all details.
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,34 +0,0 @@
|
|||
@font-face {
|
||||
font-family: 'Paytone One';
|
||||
src: url('./Paytone_One/PaytoneOne-Regular.ttf') format('truetype');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Urbanist';
|
||||
src: url('./Urbanist/static/Urbanist-Regular.ttf') format('truetype');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Urbanist';
|
||||
src: url('./Urbanist/static/Urbanist-Bold.ttf') format('truetype');
|
||||
font-weight: bold;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Urbanist';
|
||||
src: url('./Urbanist/static/Urbanist-Italic.ttf') format('truetype');
|
||||
font-weight: normal;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Urbanist';
|
||||
src: url('./Urbanist/static/Urbanist-BoldItalic.ttf') format('truetype');
|
||||
font-weight: bold;
|
||||
font-style: italic;
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -2,13 +2,8 @@
|
|||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
|
||||
@import url('./ag-grid-theme-builder.css');
|
||||
@import url('../fonts/fonts.less');
|
||||
|
||||
* {
|
||||
font-family: Urbanist, sans-serif;
|
||||
}
|
||||
|
||||
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
|
||||
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
|
||||
html {
|
||||
-webkit-text-size-adjust: 100%;
|
||||
scroll-behavior: smooth;
|
||||
|
@ -17,56 +12,3 @@ html {
|
|||
body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
label {
|
||||
font-size: 15px !important;
|
||||
}
|
||||
|
||||
.ant-modal-title,
|
||||
.color-primary,
|
||||
label {
|
||||
color: #623c7c !important;
|
||||
}
|
||||
|
||||
.bg-warning {
|
||||
background-color: #d4940d;
|
||||
}
|
||||
|
||||
.bg-turqoise {
|
||||
background-color: #c2edf0;
|
||||
}
|
||||
|
||||
.bg-softpurple {
|
||||
background-color: #d5c7f0;
|
||||
}
|
||||
|
||||
.bg-softcyan {
|
||||
background-color: #c4dcf0;
|
||||
}
|
||||
|
||||
.bg-secondary {
|
||||
background-color: #78cbbb;
|
||||
}
|
||||
|
||||
.force-px-2 {
|
||||
.ant-input-number-input {
|
||||
padding: 2px 4px !important;
|
||||
}
|
||||
padding: 2px 4px !important;
|
||||
}
|
||||
|
||||
.bg-primary {
|
||||
background-color: #7a41a1 !important;
|
||||
}
|
||||
|
||||
.bg-waiting {
|
||||
background-color: #6c5dd0;
|
||||
}
|
||||
|
||||
.bg-refunded {
|
||||
background-color: #d7a29a;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none !important;
|
||||
}
|
||||
|
|
|
@ -1,43 +1,25 @@
|
|||
import { ThemeConfig } from 'antd';
|
||||
|
||||
const globalInputConfig = {
|
||||
borderRadius: 16,
|
||||
colorBgContainer: '#f0e6f6',
|
||||
colorBorder: '#f0e6f6',
|
||||
addonBg: '#f0e6f6',
|
||||
paddingInline: 18,
|
||||
};
|
||||
|
||||
export const LIGHT: ThemeConfig = {
|
||||
token: {
|
||||
fontSize: 13,
|
||||
colorPrimary: '#7a41a1',
|
||||
// colorPrimary: '#934ac0',
|
||||
fontFamily: `Urbanist, sans-serif`,
|
||||
// fontFamily: `Inter, sans-serif`,
|
||||
fontFamily: `Roboto, sans-serif`,
|
||||
wireframe: true,
|
||||
colorFillSecondary: '#f0e6f6',
|
||||
fontSize: 14,
|
||||
},
|
||||
components: {
|
||||
Menu: {
|
||||
algorithm: true,
|
||||
motionDurationSlow: '0s',
|
||||
motionDurationMid: '0s',
|
||||
},
|
||||
Card: {
|
||||
borderRadiusLG: 9,
|
||||
borderRadiusLG: 4,
|
||||
padding: 10,
|
||||
paddingLG: 14,
|
||||
},
|
||||
Select: {
|
||||
borderRadius: 168,
|
||||
colorText: '#722ED1',
|
||||
},
|
||||
Input: globalInputConfig,
|
||||
InputNumber: globalInputConfig,
|
||||
DatePicker: globalInputConfig,
|
||||
Table: {
|
||||
borderRadius: 16,
|
||||
borderColor: '#ddd',
|
||||
headerColor: '#7a41a1',
|
||||
colorText: '#666666',
|
||||
padding: 4,
|
||||
paddingXS: 4,
|
||||
headerBorderRadius: 4,
|
||||
// headerBg: 'rgb(1,23,110)',
|
||||
// headerColor: 'rgba(255,255,255,0.88)',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
@ -6,7 +6,6 @@ import App from './apps';
|
|||
//Utils
|
||||
import './utils/axios-interceptor.ts';
|
||||
import './utils/credential-checker.ts';
|
||||
import './utils/g-license.ts';
|
||||
|
||||
// Styles
|
||||
import '@pos/assets/styles/main.less';
|
||||
|
@ -16,6 +15,5 @@ ReactDOM.createRoot(document.getElementById('root')!).render(
|
|||
<BrowserRouter>
|
||||
<App />
|
||||
</BrowserRouter>
|
||||
,
|
||||
</React.StrictMode>,
|
||||
);
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
import { LicenseManager } from 'ag-grid-enterprise';
|
||||
|
||||
LicenseManager.prototype.isDisplayWatermark = () => false;
|
||||
LicenseManager.prototype.validateLicense = () => {
|
||||
// Hehe boys
|
||||
};
|
Loading…
Reference in New Issue