Files
sm-bm-plugin/public/assets/MoreView-Df76H9VC.js
Jakub Zych ebd9117f8c feat: lecturer on class sessions and in the session course ref
The schedule showed a lecturer only where the session notes named one
(Globalizacja), so the student plan had nobody under the other courses.
The session JSON now carries the course lecturer in its course ref and an
optional per-session lecturer (new nullable column, admin field, seed key)
for courses shared between two people. The student app shows the
session's own lecturer or, failing that, the course's.
2026-10-17 11:20:11 +02:00

2 lines
1.9 KiB
JavaScript

import{_ as h}from"./PageHead.vue_vue_type_script_setup_true_lang-BJjYuJvl.js";import{d as k,u as _,M as b,N as z,c as o,h as i,a as t,F as w,y as g,b as n,e as f,t as l,s as v,o as s,B as j,i as P,k as x,_ as u}from"./index-C9sCss04.js";const C={class:"stack"},N={class:"row-main",style:{"align-items":"center"}},B={class:"muted small"},M={class:"row-main",style:{"align-items":"center"}},W=k({__name:"MoreView",setup(V){const r=_(),c=b(),d=z(),m=[{to:"/terminarz",label:"Terminarz",hint:"Zaliczenia, egzaminy, sprawy organizacyjne",icon:"flag"},{to:"/przedmioty",label:"Przedmioty",hint:"Program studiów, prowadzący, materiały",icon:"grad"},{to:"/materialy",label:"Materiały",hint:"Notatki, PDF-y, linki",icon:"file"},{to:"/moje-prezentacje",label:"Moje prezentacje",hint:"Wersje prelegenta i linki publiczne",icon:"slides"},{to:"/profil",label:"Profil",hint:"Dane, hasło, wybór przedmiotów",icon:"user"}],p=v(()=>d?[{to:"/pilot",label:"Pilot",hint:"Ostatnia prezentacja otwierana na tym urządzeniu",icon:"slides"},...m]:m);return($,e)=>{const y=x("router-link");return s(),o("div",null,[i(h,{eyebrow:"Pozostałe",title:"Więcej"}),t("div",C,[(s(!0),o(w,null,g(p.value,a=>(s(),j(y,{key:a.to,to:a.to,class:"card link"},{default:P(()=>[t("div",N,[t("div",null,[t("h3",null,l(a.label),1),t("span",B,l(a.hint),1)]),i(u,{name:"chevron",style:{width:"20px",height:"20px"}})])]),_:2},1032,["to"]))),128)),n(c).canInstall?(s(),o("button",{key:0,type:"button",class:"card link",onClick:e[0]||(e[0]=a=>n(c).install())},[t("div",M,[e[2]||(e[2]=t("div",null,[t("h3",null,"Zainstaluj aplikację"),t("span",{class:"muted small"},"Ikona na ekranie głównym i szybki dostęp do pilota")],-1)),i(u,{name:"chevron",style:{width:"20px",height:"20px"}})])])):f("",!0),t("button",{class:"btn miss",type:"button",onClick:e[1]||(e[1]=a=>n(r).logout())},"Wyloguj ("+l(n(r).displayName)+")",1)])])}}});export{W as default};