The student app's login page offers Microsoft 365 when the provider is configured, /auth/oauth/callback redeems the one-time code, a consent screen finishes a first sign-in, the profile attaches Microsoft through a link ticket, and the service worker leaves /oauth alone. The build also carries the summer presentation theme already committed in the frontend sources.
2 lines
1.9 KiB
JavaScript
2 lines
1.9 KiB
JavaScript
import{_ as b}from"./PageHead.vue_vue_type_script_setup_true_lang-CDCZ4Rtf.js";import{d as h,u as _,O as k,P as z,c as s,i,b as t,F as w,B as f,e as n,f as g,t as l,x as j,n as o,s as v,j as P,l as x,_ as u}from"./index-DmTksCHf.js";const C={class:"stack"},B={class:"row-main",style:{"align-items":"center"}},N={class:"muted small"},D={class:"row-main",style:{"align-items":"center"}},W=h({__name:"MoreView",setup(F){const r=_(),c=k(),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:"/sylabusy",label:"Sylabusy",hint:"Karty przedmiotów do pobrania (PDF)",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=j(()=>d?[{to:"/pilot",label:"Pilot",hint:"Ostatnia prezentacja otwierana na tym urządzeniu",icon:"slides"},...m]:m);return(V,e)=>{const y=x("router-link");return o(),s("div",null,[i(b,{eyebrow:"Pozostałe",title:"Więcej"}),t("div",C,[(o(!0),s(w,null,f(p.value,a=>(o(),v(y,{key:a.to,to:a.to,class:"card link"},{default:P(()=>[t("div",B,[t("div",null,[t("h3",null,l(a.label),1),t("span",N,l(a.hint),1)]),i(u,{name:"chevron",style:{width:"20px",height:"20px"}})])]),_:2},1032,["to"]))),128)),n(c).canInstall?(o(),s("button",{key:0,type:"button",class:"card link",onClick:e[0]||(e[0]=a=>n(c).install())},[t("div",D,[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"}})])])):g("",!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};
|