This commit is contained in:
Tomas Mirchev 2025-06-27 01:58:11 +00:00
parent 7fda18edd7
commit 9b211f563f
5 changed files with 5 additions and 8 deletions

File diff suppressed because one or more lines are too long

View File

@ -6,7 +6,7 @@
<link rel="icon" type="image/svg+xml" href="/vite.svg" /> <link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Конспект</title> <title>Конспект</title>
<script type="module" crossorigin src="/assets/index-uQMIeWPE.js"></script> <script type="module" crossorigin src="/assets/index-DOocijki.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-D8a8nrqF.css"> <link rel="stylesheet" crossorigin href="/assets/index-D8a8nrqF.css">
</head> </head>

View File

@ -381,8 +381,6 @@ export function PDFViewer({ file, compact, zoomFactor, justifyText }) {
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/5.4.0/github-markdown-light.min.css">
<style> <style>
body { body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
@ -468,7 +466,6 @@ export function PDFViewer({ file, compact, zoomFactor, justifyText }) {
title={`File: ${file.id}`} title={`File: ${file.id}`}
className="w-full h-full border-0" className="w-full h-full border-0"
key={file.id} key={file.id}
sandbox="allow-same-origin"
allow="fullscreen" allow="fullscreen"
onLoad={() => { onLoad={() => {
if (iframeRef.current?.contentDocument?.body) { if (iframeRef.current?.contentDocument?.body) {

View File

@ -3,7 +3,7 @@ import { apiInstance } from "./api.js";
function getLocalSubjectIdx() { function getLocalSubjectIdx() {
let subject = localStorage.getItem("subject"); let subject = localStorage.getItem("subject");
if (typeof subject === "undefined") { if (typeof subject === "undefined" || subject === null) {
subject = 0; subject = 0;
} }
subject = parseInt(subject); subject = parseInt(subject);

View File

@ -4,7 +4,7 @@ import tailwindcss from "@tailwindcss/vite";
// https://vite.dev/config/ // https://vite.dev/config/
export default defineConfig({ export default defineConfig({
plugins: [react(), tailwindcss()], plugins: [tailwindcss(), react()],
server: { server: {
allowedHosts: ["personal.orb.local"], allowedHosts: ["personal.orb.local"],
}, },