-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PDF output, editor tweaks, deleted folder system etc...
- Loading branch information
1 parent
9cff491
commit f993ef3
Showing
16 changed files
with
98 additions
and
234 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace App\Http\Controllers\Document; | ||
|
||
use App\Http\Controllers\Controller; | ||
use Illuminate\Http\Request; | ||
use App\Models\Document; | ||
use Spipu\Html2Pdf\Html2Pdf; | ||
use Spipu\Html2Pdf\Exception\Html2PdfException; | ||
use Spipu\Html2Pdf\Exception\ExceptionFormatter; | ||
|
||
class PDFController extends Controller | ||
{ | ||
public static function renderAsHtml($documentId) | ||
{ | ||
$document = Document::where('id', $documentId)->first(); | ||
$html = view('pdf.show', ['document' => $document])->render(); | ||
|
||
return $html; | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,85 +1,3 @@ | ||
@import 'tailwindcss/base'; | ||
@import 'tailwindcss/components'; | ||
@import 'tailwindcss/utilities'; | ||
|
||
:root { | ||
--ck-sample-base-spacing: 2em; | ||
--ck-sample-color-white: #fff; | ||
--ck-sample-color-green: #279863; | ||
--ck-sample-color-blue: #1a9aef; | ||
--ck-sample-container-width: 1285px; | ||
--ck-sample-sidebar-width: 350px; | ||
--ck-sample-editor-min-height: 400px; | ||
} | ||
|
||
.editor__editable, | ||
/* Classic build. */ | ||
main .ck-editor[role='application'] .ck.ck-content, | ||
/* Decoupled document build. */ | ||
.ck.editor__editable[role='textbox'], | ||
.ck.ck-editor__editable[role='textbox'], | ||
/* Inline & Balloon build. */ | ||
.ck.editor[role='textbox'] { | ||
width: 100%; | ||
background: #fff; | ||
font-size: 1em; | ||
line-height: 1.6em; | ||
min-height: var(--ck-sample-editor-min-height); | ||
padding: 1.5em 2em; | ||
} | ||
|
||
.ck.ck-editor__editable { | ||
background: #fff; | ||
border: 1px solid hsl(0, 0%, 70%); | ||
width: 100%; | ||
} | ||
|
||
.ck.ck-editor { | ||
/* To enable toolbar wrapping. */ | ||
width: 100%; | ||
overflow-x: hidden; | ||
} | ||
|
||
/* Because of sidebar `position: relative`, Edge is overriding the outline of a focused editor. */ | ||
.ck.ck-editor__editable { | ||
position: relative; | ||
z-index: 10; | ||
} | ||
|
||
/* --------- DECOUPLED (DOCUMENT) BUILD. ---------------------------------------------*/ | ||
body[data-editor='DecoupledDocumentEditor'] .document-editor__toolbar { | ||
width: 100%; | ||
} | ||
|
||
body[ data-editor='DecoupledDocumentEditor'] .collaboration-demo__editable, | ||
body[ data-editor='DecoupledDocumentEditor'] .row-editor .editor { | ||
width: 18.5cm; | ||
height: 100%; | ||
min-height: 26.25cm; | ||
padding: 1.75cm 1.5cm; | ||
margin: 2.5rem; | ||
border: 1px hsl(0, 0%, 82.7%) solid; | ||
background-color: var(--ck-sample-color-white); | ||
box-shadow: 0 0 5px hsla(0, 0%, 0%, .1); | ||
} | ||
|
||
body[ data-editor='DecoupledDocumentEditor'] .row-editor { | ||
display: flex; | ||
position: relative; | ||
justify-content: center; | ||
overflow-y: auto; | ||
background-color: #f2f2f2; | ||
border: 1px solid hsl(0, 0%, 77%); | ||
} | ||
|
||
body[data-editor='DecoupledDocumentEditor'] .sidebar { | ||
background: transparent; | ||
border: 0; | ||
box-shadow: none; | ||
} | ||
|
||
.ck-toolbar { | ||
background: #fff !important; | ||
font-family: 'Inter', Inter !important; | ||
border-radius: 5px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
40 changes: 0 additions & 40 deletions
40
server/resources/views/livewire/folder/list-contents.blade.php
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<!DOCTYPE html> | ||
<html lang="tr"> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>{{ $document->name }}</title> | ||
<!-- Google Font --> | ||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet"> | ||
<!-- Styles --> | ||
<link rel="stylesheet" href="http://127.0.0.1:8000/css/app.css"> | ||
</head> | ||
|
||
<body class="font-sans antialiased py-0"> | ||
<div class="py-0"> | ||
<div style="max-width: 21cm;"> | ||
<div class="w-full"> | ||
<div id="full-container"> | ||
<div class="editor ql-container ql-editor" style="margin:0;box-shadow:none;border:0!important;padding:0;width:auto;">{!! $document->content !!}</div> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> | ||
<!-- Quill editörü gereksinimleri --> | ||
<script src="{{ asset('editor/highlight.min.js') }}" type="text/javascript"></script> | ||
<link href="{{ asset('editor/quill.css') }}" rel="stylesheet"> | ||
<script> | ||
setTimeout(() => { | ||
alert("Çıkan yazdırma ekranında PDF olarak kaydet seçeneğini seçiniz."); | ||
window.print(); | ||
window.history.back(); | ||
}, 1000); | ||
</script> | ||
</body> | ||
|
||
</html> |
Oops, something went wrong.