Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Dung Diego
/
ocr-tool
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Authored by
Dung Diego
2026-07-16 08:47:22 +0700
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Commit
688c28ec6120612fa0f92870bfa2e2edb17d46f9
688c28ec
1 parent
3a60946f
up
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
resources/views/dashboard.blade.php
resources/views/ocr/ocr_pdf.blade.php
resources/views/dashboard.blade.php
View file @
688c28e
...
...
@@ -17,7 +17,10 @@
<script
src=
"{{ asset("
assets
/
js
/
vue
.
min
.
js
")
}}"
></script>
</head>
<body>
<div
id=
"app"
class=
"container mt-3"
>
<div
class=
"wrapper"
>
<div
class=
"content-wrapper position-relative"
>
<section
class=
"contents"
>
<div
id=
"app"
class=
"container mt-3"
>
<button
class=
"btn btn-primary"
@
click=
"$refs.pdf.click()"
>
<i
class=
"fas fa-upload"
></i>
Upload PDF
</button>
...
...
@@ -30,6 +33,10 @@
@
change=
"upload_pdf"
>
</div>
</section>
</div>
</div>
<script
type=
"text/javascript"
>
var
app
=
new
Vue
({
el
:
'#app'
,
...
...
resources/views/ocr/ocr_pdf.blade.php
View file @
688c28e
...
...
@@ -68,10 +68,7 @@
</style>
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/axios/1.6.8/axios.min.js"
></script>
<script
src=
"{{ asset("
assets
/
js
/
vue
.
min
.
js
")
}}"
></script>
<div
class=
"wrapper"
>
<div
class=
"content-wrapper position-relative"
>
<section
class=
"contents"
>
<div
id=
"app"
>
<div
id=
"app"
>
<div
class=
"loading text-center"
><div
class=
"spinner-container"
><div
role=
"status"
class=
"spinner-border text-primary"
><span
class=
"sr-only"
>
Loading...
</span></div></div></div>
<div
class=
"pdf-container"
:style=
"{width: this.ocr.mst_template.image.width*0.3155 + 'px',height: this.ocr.mst_template.image.height*0.3155 + 'px'}"
>
<div
class=
"text-center"
@
mousedown=
"ocr_start_select"
@
mousemove=
"ocr_move_select"
@
mouseup=
"ocr_end_select"
>
...
...
@@ -133,10 +130,6 @@
<img
:src=
"`{{ route('order.show_pdf') }}?file_path=` + ocr.image_path.replace(/\.jpg$/, `_${page_num}.jpg`)"
class=
"img-fluid border"
draggable=
"false"
/>
</div>
</div>
</section>
</div>
</div>
...
...
Please
register
or
sign in
to post a comment