Dashboard (work in progress)

This commit is contained in:
Alfonso Saavedra "Son Link" 2024-04-07 22:42:48 +02:00
parent bcadfb6dd3
commit 1e8229275f
No known key found for this signature in database
GPG Key ID: D3594BCF897F74D8
10 changed files with 462 additions and 2 deletions

164
public/css/config.json Normal file
View File

@ -0,0 +1,164 @@
{
"name": "",
"css_prefix_text": "icon-",
"css_use_suffix": false,
"hinting": true,
"units_per_em": 1000,
"ascent": 850,
"glyphs": [
{
"uid": "8bb5f4cedeee03abf17f6570e2665e2c",
"css": "help",
"code": 59395,
"src": "custom_icons",
"selected": true,
"svg": {
"path": "M458.3 750H541.7V666.7H458.3V750M500 83.3C270 83.3 83.3 270 83.3 500 83.3 730 270 916.7 500 916.7 730 916.7 916.7 730 916.7 500 916.7 270 730 83.3 500 83.3M500 833.3C316.3 833.3 166.7 683.8 166.7 500 166.7 316.3 316.3 166.7 500 166.7 683.8 166.7 833.3 316.3 833.3 500 833.3 683.8 683.8 833.3 500 833.3M500 250C407.9 250 333.3 324.6 333.3 416.7H416.7C416.7 370.8 454.2 333.3 500 333.3 545.8 333.3 583.3 370.8 583.3 416.7 583.3 500 458.3 489.6 458.3 625H541.7C541.7 531.3 666.7 520.8 666.7 416.7 666.7 324.6 592.1 250 500 250Z",
"width": 1000
},
"search": [
"help-circle-outline"
]
},
{
"uid": "c79fe951730ce6bdd3b7f911d8144ef9",
"css": "toggle-switch",
"code": 59396,
"src": "custom_icons",
"selected": true,
"svg": {
"path": "M708.3 291.7H291.7C176.7 291.7 83.3 385 83.3 500 83.3 615 176.7 708.3 291.7 708.3H708.3C823.3 708.3 916.7 615 916.7 500 916.7 385 823.3 291.7 708.3 291.7M708.3 625C639.2 625 583.3 569.2 583.3 500 583.3 430.8 639.2 375 708.3 375 777.5 375 833.3 430.8 833.3 500 833.3 569.2 777.5 625 708.3 625Z",
"width": 1000
},
"search": [
"toggle-switch"
]
},
{
"uid": "483ab1c40d2785fb496b729046b30164",
"css": "toggle-switch-off",
"code": 59397,
"src": "custom_icons",
"selected": true,
"svg": {
"path": "M708.3 291.7H291.7A208.3 208.3 0 0 0 83.3 500 208.3 208.3 0 0 0 291.7 708.3H708.3A208.3 208.3 0 0 0 916.7 500 208.3 208.3 0 0 0 708.3 291.7M291.7 625A125 125 0 0 1 166.7 500 125 125 0 0 1 291.7 375 125 125 0 0 1 416.7 500 125 125 0 0 1 291.7 625Z",
"width": 1000
},
"search": [
"toggle-switch-off"
]
},
{
"uid": "de11d87afea7e9861d4bcfe783e4fee0",
"css": "chart",
"code": 59398,
"src": "custom_icons",
"selected": true,
"svg": {
"path": "M375 708.3H291.7V416.7H375V708.3M541.7 708.3H458.3V291.7H541.7V708.3M708.3 708.3H625V541.7H708.3V708.3M791.7 791.7H208.3V208.3H791.7V795.8M791.7 125H208.3C162.5 125 125 162.5 125 208.3V791.7C125 837.5 162.5 875 208.3 875H791.7C837.5 875 875 837.5 875 791.7V208.3C875 162.5 837.5 125 791.7 125Z",
"width": 1000
},
"search": [
"chart-box-outline"
]
},
{
"uid": "62c83b269c9f43f3013754062f79c0f6",
"css": "account-group",
"code": 59400,
"src": "custom_icons",
"selected": true,
"svg": {
"path": "M500 229.2C580.4 229.2 645.8 294.6 645.8 375 645.8 455.4 580.4 520.8 500 520.8 419.6 520.8 354.2 455.4 354.2 375 354.2 294.6 419.6 229.2 500 229.2M208.3 333.3C231.7 333.3 253.3 339.6 272.1 350.8 265.8 410.4 283.3 469.6 319.2 515.8 298.3 555.8 256.7 583.3 208.3 583.3 139.2 583.3 83.3 527.5 83.3 458.3 83.3 389.2 139.2 333.3 208.3 333.3M791.7 333.3C860.8 333.3 916.7 389.2 916.7 458.3 916.7 527.5 860.8 583.3 791.7 583.3 743.3 583.3 701.7 555.8 680.8 515.8 716.7 469.6 734.2 410.4 727.9 350.8 746.7 339.6 768.3 333.3 791.7 333.3M229.2 760.4C229.2 674.2 350.4 604.2 500 604.2 649.6 604.2 770.8 674.2 770.8 760.4V833.3H229.2V760.4M0 833.3V770.8C0 712.9 78.7 664.2 185.4 650 160.8 678.3 145.8 717.5 145.8 760.4V833.3H0M1000 833.3H854.2V760.4C854.2 717.5 839.2 678.3 814.6 650 921.2 664.2 1000 712.9 1000 770.8V833.3Z",
"width": 1000
},
"search": [
"account-group"
]
},
{
"uid": "7560da23baae3502e75bcdcb0c9c36c2",
"css": "account",
"code": 59399,
"src": "custom_icons",
"selected": true,
"svg": {
"path": "M500 166.7C592.1 166.7 666.7 241.3 666.7 333.3 666.7 425.4 592.1 500 500 500 407.9 500 333.3 425.4 333.3 333.3 333.3 241.3 407.9 166.7 500 166.7M500 583.3C684.2 583.3 833.3 657.9 833.3 750V833.3H166.7V750C166.7 657.9 315.8 583.3 500 583.3Z",
"width": 1000
},
"search": [
"account"
]
},
{
"uid": "121b609a5ed82e5b9b1b1e8ab006203b",
"css": "car",
"code": 59401,
"src": "custom_icons",
"selected": true,
"svg": {
"path": "M500 354.2H291.7L166.7 458.3H125C78.7 458.3 41.7 495.4 41.7 541.7V666.7H132.1C150 716.7 197.1 750 250 750 302.9 750 350 716.7 367.5 666.7H632.1C650 716.7 697.1 750 750 750 802.9 750 850 716.7 867.5 666.7H958.3V625C958.3 578.8 915.4 563.7 875 541.7L500 354.2M218.8 500L312.5 416.7H479.2L645.8 500H218.8M250 562.5C284.6 562.5 312.5 590.4 312.5 625 312.5 659.6 284.6 687.5 250 687.5 215.4 687.5 187.5 659.6 187.5 625 187.5 590.4 215.4 562.5 250 562.5M750 562.5C784.6 562.5 812.5 590.4 812.5 625 812.5 659.6 784.6 687.5 750 687.5 715.4 687.5 687.5 659.6 687.5 625 687.5 590.4 715.4 562.5 750 562.5Z",
"width": 1000
},
"search": [
"car-sports"
]
},
{
"uid": "092443161b74a405cbf5deacbe2fe715",
"css": "logout",
"code": 59402,
"src": "custom_icons",
"selected": true,
"svg": {
"path": "M666.7 708.3V583.3H375V416.7H666.7V291.7L875 500 666.7 708.3M583.3 83.3C629.2 83.3 666.7 120.8 666.7 166.7V250H583.3V166.7H208.3V833.3H583.3V750H666.7V833.3C666.7 879.2 629.2 916.7 583.3 916.7H208.3C162.5 916.7 125 879.2 125 833.3V166.7C125 120.8 162.5 83.3 208.3 83.3H583.3Z",
"width": 1000
},
"search": [
"logout"
]
},
{
"uid": "4e2117a461603a0c0ae5871b4c79525d",
"css": "backspace",
"code": 59392,
"src": "custom_icons",
"selected": false,
"svg": {
"path": "M791.7 649.6L732.9 708.3 583.3 558.8 433.8 708.3 375 649.6 524.6 500 375 350.4 433.8 291.7 583.3 441.2 732.9 291.7 791.7 350.4 642.1 500 791.7 649.6M916.7 125A83.3 83.3 0 0 1 1000 208.3V791.7A83.3 83.3 0 0 1 916.7 875H291.7C262.9 875 240.4 860 225.4 837.9L0 500 225.4 161.7C240.4 139.6 262.9 125 291.7 125H916.7M916.7 208.3H291.7L95 500 291.7 791.7H916.7V208.3Z",
"width": 1000
},
"search": [
"backspace"
]
},
{
"uid": "d8ad66860fcd3dc772084d9f5e547fa4",
"css": "enter",
"code": 59393,
"src": "custom_icons",
"selected": false,
"svg": {
"path": "M791.7 291.7V458.3H242.9L392.1 308.8 333.3 250 83.3 500 333.3 750 392.1 690.8 242.9 541.7H875V291.7H791.7Z",
"width": 1000
},
"search": [
"enter"
]
},
{
"uid": "23e1d583d9a8e28f3cdc15278977af8f",
"css": "conf",
"code": 59394,
"src": "custom_icons",
"selected": false,
"svg": {
"path": "M500 645.8C419.6 645.8 354.2 580.4 354.2 500 354.2 419.6 419.6 354.2 500 354.2 580.4 354.2 645.8 419.6 645.8 500 645.8 580.4 580.4 645.8 500 645.8M809.6 540.4C811.2 527.1 812.5 513.8 812.5 500 812.5 486.2 811.2 472.5 809.6 458.3L897.5 390.4C905.4 384.2 907.5 372.9 902.5 363.8L819.2 219.6C814.2 210.4 802.9 206.7 793.8 210.4L690 252.1C668.3 235.8 645.8 221.7 619.6 211.3L604.2 100.8C602.5 90.8 593.8 83.3 583.3 83.3H416.7C406.3 83.3 397.5 90.8 395.8 100.8L380.4 211.3C354.2 221.7 331.7 235.8 310 252.1L206.3 210.4C197.1 206.7 185.8 210.4 180.8 219.6L97.5 363.8C92.1 372.9 94.6 384.2 102.5 390.4L190.4 458.3C188.8 472.5 187.5 486.2 187.5 500 187.5 513.8 188.8 527.1 190.4 540.4L102.5 609.6C94.6 615.8 92.1 627.1 97.5 636.3L180.8 780.4C185.8 789.6 197.1 792.9 206.3 789.6L310 747.5C331.7 764.2 354.2 778.3 380.4 788.8L395.8 899.2C397.5 909.2 406.3 916.7 416.7 916.7H583.3C593.8 916.7 602.5 909.2 604.2 899.2L619.6 788.8C645.8 777.9 668.3 764.2 690 747.5L793.8 789.6C802.9 792.9 814.2 789.6 819.2 780.4L902.5 636.3C907.5 627.1 905.4 615.8 897.5 609.6L809.6 540.4Z",
"width": 1000
},
"search": [
"cog"
]
}
]
}

44
public/css/dashboard.css Normal file
View File

@ -0,0 +1,44 @@
body {
color: #4a4a4a;
margin: 0px;
padding:0px;
font-family: "Open Sans";
line-height: 1.5em;
font-size: 14px;
}
a {
color: #4a4a4a;
text-decoration: underline;
transition: all .3s ease
}
a:hover,
a.selected {
color: #13aff0;
}
#dashmenu,
header {
margin-top: 1rem;
}
/* Menu */
#dashmenu a {
text-decoration: none;
}
/* Edit user */
#user-edit-form label {
height: 30px;
line-height: 30px;
display: block;
padding: .2rem 0;
font-weight: bold;
}
#profile-img {
width: 128px;
}

67
public/css/fontello-embedded.css vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewBox="0 0 24 24"><path d="M12,5.5C13.93,5.5 15.5,7.07 15.5,9C15.5,10.93 13.93,12.5 12,12.5C10.07,12.5 8.5,10.93 8.5,9C8.5,7.07 10.07,5.5 12,5.5M5,8C5.56,8 6.08,8.15 6.53,8.42C6.38,9.85 6.8,11.27 7.66,12.38C7.16,13.34 6.16,14 5,14C3.34,14 2,12.66 2,11C2,9.34 3.34,8 5,8M19,8C20.66,8 22,9.34 22,11C22,12.66 20.66,14 19,14C17.84,14 16.84,13.34 16.34,12.38C17.2,11.27 17.62,9.85 17.47,8.42C17.92,8.15 18.44,8 19,8M5.5,18.25C5.5,16.18 8.41,14.5 12,14.5C15.59,14.5 18.5,16.18 18.5,18.25V20H5.5V18.25M0,20V18.5C0,17.11 1.89,15.94 4.45,15.6C3.86,16.28 3.5,17.22 3.5,18.25V20H0M24,20H20.5V18.25C20.5,17.22 20.14,16.28 19.55,15.6C22.11,15.94 24,17.11 24,18.5V20Z" /></svg>

After

Width:  |  Height:  |  Size: 921 B

View File

@ -0,0 +1 @@
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewBox="0 0 24 24"><path d="M12,4C14.21,4 16,5.79 16,8C16,10.21 14.21,12 12,12C9.79,12 8,10.21 8,8C8,5.79 9.79,4 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z" /></svg>

After

Width:  |  Height:  |  Size: 445 B

View File

@ -0,0 +1,164 @@
{
"name": "",
"css_prefix_text": "icon-",
"css_use_suffix": false,
"hinting": true,
"units_per_em": 1000,
"ascent": 850,
"glyphs": [
{
"uid": "8bb5f4cedeee03abf17f6570e2665e2c",
"css": "help",
"code": 59395,
"src": "custom_icons",
"selected": true,
"svg": {
"path": "M458.3 750H541.7V666.7H458.3V750M500 83.3C270 83.3 83.3 270 83.3 500 83.3 730 270 916.7 500 916.7 730 916.7 916.7 730 916.7 500 916.7 270 730 83.3 500 83.3M500 833.3C316.3 833.3 166.7 683.8 166.7 500 166.7 316.3 316.3 166.7 500 166.7 683.8 166.7 833.3 316.3 833.3 500 833.3 683.8 683.8 833.3 500 833.3M500 250C407.9 250 333.3 324.6 333.3 416.7H416.7C416.7 370.8 454.2 333.3 500 333.3 545.8 333.3 583.3 370.8 583.3 416.7 583.3 500 458.3 489.6 458.3 625H541.7C541.7 531.3 666.7 520.8 666.7 416.7 666.7 324.6 592.1 250 500 250Z",
"width": 1000
},
"search": [
"help-circle-outline"
]
},
{
"uid": "c79fe951730ce6bdd3b7f911d8144ef9",
"css": "toggle-switch",
"code": 59396,
"src": "custom_icons",
"selected": true,
"svg": {
"path": "M708.3 291.7H291.7C176.7 291.7 83.3 385 83.3 500 83.3 615 176.7 708.3 291.7 708.3H708.3C823.3 708.3 916.7 615 916.7 500 916.7 385 823.3 291.7 708.3 291.7M708.3 625C639.2 625 583.3 569.2 583.3 500 583.3 430.8 639.2 375 708.3 375 777.5 375 833.3 430.8 833.3 500 833.3 569.2 777.5 625 708.3 625Z",
"width": 1000
},
"search": [
"toggle-switch"
]
},
{
"uid": "483ab1c40d2785fb496b729046b30164",
"css": "toggle-switch-off",
"code": 59397,
"src": "custom_icons",
"selected": true,
"svg": {
"path": "M708.3 291.7H291.7A208.3 208.3 0 0 0 83.3 500 208.3 208.3 0 0 0 291.7 708.3H708.3A208.3 208.3 0 0 0 916.7 500 208.3 208.3 0 0 0 708.3 291.7M291.7 625A125 125 0 0 1 166.7 500 125 125 0 0 1 291.7 375 125 125 0 0 1 416.7 500 125 125 0 0 1 291.7 625Z",
"width": 1000
},
"search": [
"toggle-switch-off"
]
},
{
"uid": "de11d87afea7e9861d4bcfe783e4fee0",
"css": "chart",
"code": 59398,
"src": "custom_icons",
"selected": true,
"svg": {
"path": "M375 708.3H291.7V416.7H375V708.3M541.7 708.3H458.3V291.7H541.7V708.3M708.3 708.3H625V541.7H708.3V708.3M791.7 791.7H208.3V208.3H791.7V795.8M791.7 125H208.3C162.5 125 125 162.5 125 208.3V791.7C125 837.5 162.5 875 208.3 875H791.7C837.5 875 875 837.5 875 791.7V208.3C875 162.5 837.5 125 791.7 125Z",
"width": 1000
},
"search": [
"chart-box-outline"
]
},
{
"uid": "62c83b269c9f43f3013754062f79c0f6",
"css": "account-group",
"code": 59400,
"src": "custom_icons",
"selected": true,
"svg": {
"path": "M500 229.2C580.4 229.2 645.8 294.6 645.8 375 645.8 455.4 580.4 520.8 500 520.8 419.6 520.8 354.2 455.4 354.2 375 354.2 294.6 419.6 229.2 500 229.2M208.3 333.3C231.7 333.3 253.3 339.6 272.1 350.8 265.8 410.4 283.3 469.6 319.2 515.8 298.3 555.8 256.7 583.3 208.3 583.3 139.2 583.3 83.3 527.5 83.3 458.3 83.3 389.2 139.2 333.3 208.3 333.3M791.7 333.3C860.8 333.3 916.7 389.2 916.7 458.3 916.7 527.5 860.8 583.3 791.7 583.3 743.3 583.3 701.7 555.8 680.8 515.8 716.7 469.6 734.2 410.4 727.9 350.8 746.7 339.6 768.3 333.3 791.7 333.3M229.2 760.4C229.2 674.2 350.4 604.2 500 604.2 649.6 604.2 770.8 674.2 770.8 760.4V833.3H229.2V760.4M0 833.3V770.8C0 712.9 78.7 664.2 185.4 650 160.8 678.3 145.8 717.5 145.8 760.4V833.3H0M1000 833.3H854.2V760.4C854.2 717.5 839.2 678.3 814.6 650 921.2 664.2 1000 712.9 1000 770.8V833.3Z",
"width": 1000
},
"search": [
"account-group"
]
},
{
"uid": "7560da23baae3502e75bcdcb0c9c36c2",
"css": "account",
"code": 59399,
"src": "custom_icons",
"selected": true,
"svg": {
"path": "M500 166.7C592.1 166.7 666.7 241.3 666.7 333.3 666.7 425.4 592.1 500 500 500 407.9 500 333.3 425.4 333.3 333.3 333.3 241.3 407.9 166.7 500 166.7M500 583.3C684.2 583.3 833.3 657.9 833.3 750V833.3H166.7V750C166.7 657.9 315.8 583.3 500 583.3Z",
"width": 1000
},
"search": [
"account"
]
},
{
"uid": "121b609a5ed82e5b9b1b1e8ab006203b",
"css": "car",
"code": 59401,
"src": "custom_icons",
"selected": true,
"svg": {
"path": "M500 354.2H291.7L166.7 458.3H125C78.7 458.3 41.7 495.4 41.7 541.7V666.7H132.1C150 716.7 197.1 750 250 750 302.9 750 350 716.7 367.5 666.7H632.1C650 716.7 697.1 750 750 750 802.9 750 850 716.7 867.5 666.7H958.3V625C958.3 578.8 915.4 563.7 875 541.7L500 354.2M218.8 500L312.5 416.7H479.2L645.8 500H218.8M250 562.5C284.6 562.5 312.5 590.4 312.5 625 312.5 659.6 284.6 687.5 250 687.5 215.4 687.5 187.5 659.6 187.5 625 187.5 590.4 215.4 562.5 250 562.5M750 562.5C784.6 562.5 812.5 590.4 812.5 625 812.5 659.6 784.6 687.5 750 687.5 715.4 687.5 687.5 659.6 687.5 625 687.5 590.4 715.4 562.5 750 562.5Z",
"width": 1000
},
"search": [
"car-sports"
]
},
{
"uid": "092443161b74a405cbf5deacbe2fe715",
"css": "logout",
"code": 59402,
"src": "custom_icons",
"selected": true,
"svg": {
"path": "M666.7 708.3V583.3H375V416.7H666.7V291.7L875 500 666.7 708.3M583.3 83.3C629.2 83.3 666.7 120.8 666.7 166.7V250H583.3V166.7H208.3V833.3H583.3V750H666.7V833.3C666.7 879.2 629.2 916.7 583.3 916.7H208.3C162.5 916.7 125 879.2 125 833.3V166.7C125 120.8 162.5 83.3 208.3 83.3H583.3Z",
"width": 1000
},
"search": [
"logout"
]
},
{
"uid": "4e2117a461603a0c0ae5871b4c79525d",
"css": "backspace",
"code": 59392,
"src": "custom_icons",
"selected": false,
"svg": {
"path": "M791.7 649.6L732.9 708.3 583.3 558.8 433.8 708.3 375 649.6 524.6 500 375 350.4 433.8 291.7 583.3 441.2 732.9 291.7 791.7 350.4 642.1 500 791.7 649.6M916.7 125A83.3 83.3 0 0 1 1000 208.3V791.7A83.3 83.3 0 0 1 916.7 875H291.7C262.9 875 240.4 860 225.4 837.9L0 500 225.4 161.7C240.4 139.6 262.9 125 291.7 125H916.7M916.7 208.3H291.7L95 500 291.7 791.7H916.7V208.3Z",
"width": 1000
},
"search": [
"backspace"
]
},
{
"uid": "d8ad66860fcd3dc772084d9f5e547fa4",
"css": "enter",
"code": 59393,
"src": "custom_icons",
"selected": false,
"svg": {
"path": "M791.7 291.7V458.3H242.9L392.1 308.8 333.3 250 83.3 500 333.3 750 392.1 690.8 242.9 541.7H875V291.7H791.7Z",
"width": 1000
},
"search": [
"enter"
]
},
{
"uid": "23e1d583d9a8e28f3cdc15278977af8f",
"css": "conf",
"code": 59394,
"src": "custom_icons",
"selected": false,
"svg": {
"path": "M500 645.8C419.6 645.8 354.2 580.4 354.2 500 354.2 419.6 419.6 354.2 500 354.2 580.4 354.2 645.8 419.6 645.8 500 645.8 580.4 580.4 645.8 500 645.8M809.6 540.4C811.2 527.1 812.5 513.8 812.5 500 812.5 486.2 811.2 472.5 809.6 458.3L897.5 390.4C905.4 384.2 907.5 372.9 902.5 363.8L819.2 219.6C814.2 210.4 802.9 206.7 793.8 210.4L690 252.1C668.3 235.8 645.8 221.7 619.6 211.3L604.2 100.8C602.5 90.8 593.8 83.3 583.3 83.3H416.7C406.3 83.3 397.5 90.8 395.8 100.8L380.4 211.3C354.2 221.7 331.7 235.8 310 252.1L206.3 210.4C197.1 206.7 185.8 210.4 180.8 219.6L97.5 363.8C92.1 372.9 94.6 384.2 102.5 390.4L190.4 458.3C188.8 472.5 187.5 486.2 187.5 500 187.5 513.8 188.8 527.1 190.4 540.4L102.5 609.6C94.6 615.8 92.1 627.1 97.5 636.3L180.8 780.4C185.8 789.6 197.1 792.9 206.3 789.6L310 747.5C331.7 764.2 354.2 778.3 380.4 788.8L395.8 899.2C397.5 909.2 406.3 916.7 416.7 916.7H583.3C593.8 916.7 602.5 909.2 604.2 899.2L619.6 788.8C645.8 777.9 668.3 764.2 690 747.5L793.8 789.6C802.9 792.9 814.2 789.6 819.2 780.4L902.5 636.3C907.5 627.1 905.4 615.8 897.5 609.6L809.6 540.4Z",
"width": 1000
},
"search": [
"cog"
]
}
]
}

View File

@ -0,0 +1 @@
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewBox="0 0 24 24"><path d="M16,17V14H9V10H16V7L21,12L16,17M14,2C15.1,2 16,2.9 16,4V6H14V4H5V20H14V18H16V20C16,21.1 15.1,22 14,22H5C3.9,22 3,21.1 3,20V4C3,2.9 3.9,2 5,2H14Z" /></svg>

After

Width:  |  Height:  |  Size: 439 B

17
public/js/dashboard.js Normal file
View File

@ -0,0 +1,17 @@
$('#login-form').on('submit', function(e) {
e.preventDefault();
const form_data = new FormData(this);
$('#login-error').hide();
$().ajax(`${base_url}/dashboard/login`, {
type: 'POST',
data: form_data,
success: (resp) => {
if (resp.ok) {
location.href = `${base_url}/dashboard`;
} else {
$('#login-error').show();
}
}
});
});

1
public/js/dashboard.min.js vendored Normal file
View File

@ -0,0 +1 @@
$("#login-form").on("submit",(function(e){e.preventDefault();const form_data=new FormData(this);$("#login-error").hide(),$().ajax(`${base_url}/dashboard/login`,{type:"POST",data:form_data,success:resp=>{resp.ok?location.href=`${base_url}/dashboard`:$("#login-error").show()}})}));

View File

@ -112,7 +112,7 @@ var $ = (function () {
* @param {string} [display] Set the display [block, flex, inline-block, etc] (by default is block)
*
* @example $('#modal').show();
* @example $('.blocks').display('flex');
* @example $('.blocks').show('flex');
*/
Constructor.prototype.show = function (display) {
this.each(function (ele) {
@ -271,7 +271,7 @@ var $ = (function () {
};
/**
* Trigger a event.
* Trigger a event for the element.
* @param {eventname} event The event to trigger
* @example $('#myform').trigger('submit')
*/