fix unauthed bug and icons
This commit is contained in:
parent
cede9d3021
commit
9cdf2326b8
3 changed files with 130 additions and 2 deletions
73
public/join.svg
Normal file
73
public/join.svg
Normal file
|
@ -0,0 +1,73 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
width="49.540333"
|
||||||
|
height="56.952953"
|
||||||
|
viewBox="0 0 49.540333 56.952955"
|
||||||
|
version="1.1"
|
||||||
|
id="svg1"
|
||||||
|
inkscape:version="1.4 (e7c3feb100, 2024-10-09)"
|
||||||
|
sodipodi:docname="join.svg"
|
||||||
|
xml:space="preserve"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"><sodipodi:namedview
|
||||||
|
id="namedview1"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#000000"
|
||||||
|
borderopacity="0.25"
|
||||||
|
inkscape:showpageshadow="2"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:deskcolor="#d1d1d1"
|
||||||
|
inkscape:document-units="px"
|
||||||
|
showguides="false"
|
||||||
|
inkscape:zoom="8"
|
||||||
|
inkscape:cx="30.875"
|
||||||
|
inkscape:cy="26.8125"
|
||||||
|
inkscape:window-width="1918"
|
||||||
|
inkscape:window-height="1056"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="22"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="g4"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:lockguides="true" /><defs
|
||||||
|
id="defs1" /><g
|
||||||
|
inkscape:label="Layer 1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1"
|
||||||
|
transform="translate(-53.165689,-59.782458)"><g
|
||||||
|
id="g4"
|
||||||
|
style="stroke-width:10;stroke-dasharray:none"><path
|
||||||
|
id="path5"
|
||||||
|
style="fill:#ab88aa;fill-opacity:1;stroke:#0d0c11;stroke-width:1.93612;stroke-dasharray:none"
|
||||||
|
d="m 63.848757,70.622476 c -1.702413,1.752051 -2.742402,3.995081 -3.079016,6.433401 -0.336616,2.438321 9.278778,14.075487 10.389672,16.60851 l 7.962667,-8.17941 7.962678,-8.179414 c -2.56361,-1.043159 -14.456423,-10.342312 -16.886013,-9.93924 -2.429588,0.403071 -4.644621,1.504774 -6.349988,3.256153 z"
|
||||||
|
sodipodi:nodetypes="cscccsc" /><circle
|
||||||
|
style="fill:#ab88aa;fill-opacity:1;stroke:#0d0c11;stroke-width:1.93612;stroke-dasharray:none"
|
||||||
|
id="circle5"
|
||||||
|
cx="-5.8844852"
|
||||||
|
cy="89.763954"
|
||||||
|
r="6.0867848"
|
||||||
|
transform="rotate(-45.76929)" /><path
|
||||||
|
id="path4"
|
||||||
|
style="fill:#ab88aa;fill-opacity:1;stroke:#0d0c11;stroke-width:1.93612;stroke-dasharray:none"
|
||||||
|
d="M 92.953662,88.578001 C 90.815239,87.396884 88.377545,86.984079 85.936619,87.301249 83.495693,87.618418 74.800367,99.958221 72.649146,101.69677 l 9.987131,5.52848 9.987134,5.52849 c 0.331468,-2.7478 6.171702,-16.669184 5.143237,-18.906958 -1.028464,-2.237773 -2.674433,-4.084637 -4.812986,-5.268781 z"
|
||||||
|
sodipodi:nodetypes="cscccsc" /><circle
|
||||||
|
style="fill:#ab88aa;fill-opacity:1;stroke:#0d0c11;stroke-width:1.93612;stroke-dasharray:none"
|
||||||
|
id="circle4"
|
||||||
|
cx="124.40546"
|
||||||
|
cy="27.229727"
|
||||||
|
r="6.0867848"
|
||||||
|
transform="rotate(28.967173)" /><path
|
||||||
|
id="circle3"
|
||||||
|
style="fill:#ab88aa;fill-opacity:1;stroke:#0d0c11;stroke-width:3;stroke-dasharray:none"
|
||||||
|
d="m 79.597542,82.213863 c -3.785289,0.0035 -7.39972,1.273268 -10.470736,3.534985 -3.071015,2.261717 -5.598616,25.515362 -7.210245,29.486562 h 17.687752 17.687752 c -1.612672,-3.97377 -4.142434,-27.228931 -7.215963,-29.490766 -3.073528,-2.261835 -6.690823,-3.53034 -10.47856,-3.530781 z"
|
||||||
|
sodipodi:nodetypes="cscccsc" /><circle
|
||||||
|
style="fill:#ab88aa;fill-opacity:1;stroke:#0d0c11;stroke-width:3;stroke-dasharray:none"
|
||||||
|
id="path3"
|
||||||
|
cx="79.878731"
|
||||||
|
cy="74.081078"
|
||||||
|
r="9.4314156" /></g></g></svg>
|
After Width: | Height: | Size: 3.5 KiB |
53
public/login.svg
Normal file
53
public/login.svg
Normal file
|
@ -0,0 +1,53 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
width="39.830627"
|
||||||
|
height="53.585747"
|
||||||
|
viewBox="0 0 39.830628 53.585748"
|
||||||
|
version="1.1"
|
||||||
|
id="svg1"
|
||||||
|
inkscape:version="1.4 (e7c3feb100, 2024-10-09)"
|
||||||
|
sodipodi:docname="login.svg"
|
||||||
|
xml:space="preserve"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"><sodipodi:namedview
|
||||||
|
id="namedview1"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#000000"
|
||||||
|
borderopacity="0.25"
|
||||||
|
inkscape:showpageshadow="2"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:deskcolor="#d1d1d1"
|
||||||
|
inkscape:document-units="px"
|
||||||
|
showguides="false"
|
||||||
|
inkscape:zoom="8"
|
||||||
|
inkscape:cx="24.375"
|
||||||
|
inkscape:cy="23.4375"
|
||||||
|
inkscape:window-width="1918"
|
||||||
|
inkscape:window-height="1056"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="22"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="g4"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:lockguides="true" /><defs
|
||||||
|
id="defs1" /><g
|
||||||
|
inkscape:label="Layer 1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1"
|
||||||
|
transform="translate(-59.689,-63.149662)"><g
|
||||||
|
id="g4"
|
||||||
|
style="stroke-width:10;stroke-dasharray:none"><path
|
||||||
|
id="circle3"
|
||||||
|
style="fill:#ab88aa;fill-opacity:1;stroke:#0d0c11;stroke-width:3;stroke-dasharray:none"
|
||||||
|
d="m 79.597542,82.213863 c -3.785289,0.0035 -7.39972,1.273268 -10.470736,3.534985 -3.071015,2.261717 -5.598616,25.515362 -7.210245,29.486562 h 17.687752 17.687752 c -1.612672,-3.97377 -4.142434,-27.228931 -7.215963,-29.490766 -3.073528,-2.261835 -6.690823,-3.53034 -10.47856,-3.530781 z"
|
||||||
|
sodipodi:nodetypes="cscccsc" /><circle
|
||||||
|
style="fill:#ab88aa;fill-opacity:1;stroke:#0d0c11;stroke-width:3;stroke-dasharray:none"
|
||||||
|
id="path3"
|
||||||
|
cx="79.878731"
|
||||||
|
cy="74.081078"
|
||||||
|
r="9.4314156" /></g></g></svg>
|
After Width: | Height: | Size: 2 KiB |
|
@ -31,6 +31,7 @@ async function auther(req, res, next) {
|
||||||
|
|
||||||
if (!token) {
|
if (!token) {
|
||||||
res.auth = {};
|
res.auth = {};
|
||||||
|
next();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -66,8 +67,9 @@ function initr(req, res, next) {
|
||||||
if (!res.auth || !res.auth.valid) {
|
if (!res.auth || !res.auth.valid) {
|
||||||
headerCtx = [
|
headerCtx = [
|
||||||
{ link: '/walls/get/home', icon: '/icon.svg', name: 'DervNet' },
|
{ link: '/walls/get/home', icon: '/icon.svg', name: 'DervNet' },
|
||||||
{ link: '/you/login', icon: '/walls.svg', name: 'Log in' },
|
{ link: '/walls/list', icon: '/walls.svg', name: 'Explore' },
|
||||||
{ link: '/you/new', icon: '/walls.svg', name: 'Join' }
|
{ link: '/you/login', icon: '/login.svg', name: 'Log in' },
|
||||||
|
{ link: '/you/new', icon: '/join.svg', name: 'Join' }
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue