mirror of
https://github.com/PretendoNetwork/juxtaposition-ui.git
synced 2026-04-25 16:20:11 -05:00
Fixed default language selection when not signed into Juxt
This commit is contained in:
parent
c86aca3982
commit
47034dc7cd
|
|
@ -6,6 +6,7 @@ function auth(request, response, next) {
|
|||
|| request.path.includes('/js/') || request.path.includes('/icons/') || request.path.includes('/banner/') || request.path.includes('/posts/')) {
|
||||
if(request.subdomains.indexOf('juxt') !== -1) {
|
||||
request.directory = 'web';
|
||||
request.lang = util.data.processLanguage();
|
||||
}
|
||||
else {
|
||||
request.directory = request.subdomains[1];
|
||||
|
|
|
|||
|
|
@ -1,40 +1,3 @@
|
|||
<!--<menu id="nav-bar">
|
||||
<li id="nav-bar-profile" data-pjax="/users/me" <% if(selection === 0) {%>class="selected"<%}%>>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="#373F53" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-user">
|
||||
<path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"/>
|
||||
<circle cx="12" cy="7" r="4"/></svg>
|
||||
<a><%= lang.global.user_page %></a>
|
||||
</li>
|
||||
<li id="nav-bar-activity-feed" data-pjax="/activity-feed" style="margin-top: 1px;"<% if(selection === 1) {%>class="selected"<%}%>>
|
||||
<svg id="test" xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="#373F53" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-inbox">
|
||||
<polyline points="22 12 16 12 14 15 10 15 8 12 2 12"/>
|
||||
<path d="M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"/>
|
||||
</svg>
|
||||
<a><%= lang.global.activity_feed %></a>
|
||||
</li>
|
||||
<li id="nav-bar-communities" data-pjax="/communities" <% if(selection === 2) {%>class="selected"<%}%>>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="#373F53" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-users">
|
||||
<path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"/>
|
||||
<circle cx="9" cy="7" r="4"/>
|
||||
<path d="M23 21v-2a4 4 0 0 0-3-3.87"/><path d="M16 3.13a4 4 0 0 1 0 7.75"/></svg>
|
||||
<a><%= lang.global.communities %></a>
|
||||
</li>
|
||||
<li id="nav-bar-messages" data-pjax="/messages" <% if(selection === 3) {%>class="selected"<%}%>>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="#373F53" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-mail">
|
||||
<path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"/>
|
||||
<polyline points="22,6 12,13 2,6"/>
|
||||
</svg>
|
||||
<a><%= lang.global.messages %><span id="messages-badge" class="badge" style=""></span></a>
|
||||
</li>
|
||||
<li id="nav-bar-news" data-pjax="/news" <% if(selection === 4) {%>class="selected"<%}%>>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="#373F53" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-bell">
|
||||
<path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"/>
|
||||
<path d="M13.73 21a2 2 0 0 1-3.46 0"/>
|
||||
</svg>
|
||||
<a><%= lang.global.notifications %><span id="news-badge" class="badge" style=""></span></a>
|
||||
</li >
|
||||
</menu>-->
|
||||
|
||||
<header>
|
||||
<a href="/" class="logo-link">
|
||||
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 232.63 100.33" style=""><defs><style>.cls-1{fill:#fff;}.cls-2{fill:#9d6ff3;}.cls-3{font-size:30.54px;fill:#59c9a5;font-family:Poppins-Bold, Poppins;font-weight:700;}</style></defs><path class="cls-1" d="M25.62,0H40V40.2c0,12.69-7.73,19.41-19.41,19.41C8.49,59.61,0,52.55,0,39.28H14.28c0,5,2.19,7.47,5.88,7.47,3.45,0,5.46-2.18,5.46-6.55Z"/><path class="cls-1" d="M51.33,0H65.69V35.33c0,7,3.45,11,10.25,11s10.42-4,10.42-11V0h14.37v35.2c0,16.3-11.43,24.37-25,24.37S51.33,51.54,51.33,35.24Z"/><path class="cls-1" d="M134.92,41,124.33,59H108l18.91-30L107.61,0h16.72l11.85,17.81L146.6,0h16.29L144.16,29.78,163.65,59H146.93Z"/><path class="cls-2" d="M119.86,18.41,126.94,29,108,59h16.3L134.92,41l12,18.06h16.72L144.16,29.78,162.89,0H146.6L136.18,17.85l-7-10.54A70.15,70.15,0,0,0,119.86,18.41Z"/><path class="cls-2" d="M167.68,0H213.3V11.51H197.67V59H183.31V11.51H167.68Z"/><circle class="cls-2" cx="225.67" cy="52.02" r="6.96"/><text class="cls-3" transform="translate(77.71 100.33)">BETA</text></svg>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user