Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
S
sidekick
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Privat - Marco Schmiedel
sidekick
Commits
e04a0af2
Commit
e04a0af2
authored
Aug 16, 2022
by
Kevin Yumang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SERV-2286 - pdf viewer modal element (resource publisher manager modifications) WIP
parent
25a28678
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
3 deletions
+12
-3
pdf-sample-2.pdf
resources/Elements/pdfmodal/pdf-sample-2.pdf
+0
-0
ResourcePublisherManager.php
...ers/ResourcePublisherManager/ResourcePublisherManager.php
+2
-0
pdf-modal.js
src/Views/Limitless/PdfModal/Attachments/pdf-modal.js
+6
-0
Index.blade.php
src/Views/Limitless/PdfModal/Documentation/Index.blade.php
+4
-2
PdfModal.blade.php
src/Views/Limitless/PdfModal/PdfModal.blade.php
+0
-1
No files found.
resources/Elements/pdfmodal/pdf-sample-2.pdf
0 → 100644
View file @
e04a0af2
File added
src/Managers/ResourcePublisherManager/ResourcePublisherManager.php
View file @
e04a0af2
...
...
@@ -242,6 +242,8 @@
exit
();
}
header
(
"Access-Control-Allow-Origin: *"
);
/*
|----------------------------------------------------------------------------------------
| ...otherwise by default, load the file and return a successfull response.
...
...
src/Views/Limitless/PdfModal/Attachments/pdf-modal.js
View file @
e04a0af2
...
...
@@ -7,3 +7,9 @@ $(window).on('touchstart click resize', function () {
});
},
300
);
});
$
(
document
).
ready
(
function
()
{
});
\ No newline at end of file
src/Views/Limitless/PdfModal/Documentation/Index.blade.php
View file @
e04a0af2
...
...
@@ -4,11 +4,13 @@
@
section
(
'Limitless::Content'
)
@
php
$pdfPath
=
secure_url
(
"/ceetrox/sidekick/resource/public/Elements/pdfmodal/pdf-sample.pdf"
);
$pdfPath1
=
secure_url
(
"/ceetrox/sidekick/resource/public/Elements/pdfmodal/pdf-sample.pdf"
);
$pdfPath2
=
secure_url
(
"/ceetrox/sidekick/resource/public/Elements/pdfmodal/pdf-sample-2.pdf"
);
@
endphp
@
Limitless
::
CardStart
([
'title'
=>
"Description"
,
'icon'
=>
'icon-info22'
])
@
Limitless
::
PdfModal
([
'url'
=>
$pdfPath
])
@
Limitless
::
PdfModal
([
'title'
=>
'PDF 1'
,
'url'
=>
$pdfPath1
])
@
Limitless
::
PdfModal
([
'title'
=>
'PDF 2'
,
'url'
=>
$pdfPath2
])
@
Limitless
::
CardStop
...
...
src/Views/Limitless/PdfModal/PdfModal.blade.php
View file @
e04a0af2
...
...
@@ -16,7 +16,6 @@
</div>
<div
class=
"modal-body"
>
<iframe
class=
"pdfIframe"
{{
header
("
Access-Control-Allow-Origin:
*")
}}
src=
"https://cdn.backoffice.online/pdfjs/web/viewer.html?file={{ urlencode($url) }}"
style=
"border:1px solid #999999;"
width=
"100%"
>
</iframe>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment