Skip to content

Commit

Permalink
netlify
Browse files Browse the repository at this point in the history
  • Loading branch information
gutenye committed May 9, 2024
1 parent 66412af commit 0afcdf1
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -176,3 +176,6 @@ dist

# Finder (MacOS) folder config
.DS_Store

# Local Netlify folder
.netlify
1 change: 1 addition & 0 deletions packages/browser/example/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ async function main() {
dictionaryPath: '/assets/ppocr_keys_v1.txt',
},
})
document.querySelector('.hide')!.style.visibility = 'visible'
document.querySelector('#title')!.textContent = 'OCR is ready'

createApp(async ({ imageUrl }) => {
Expand Down
4 changes: 4 additions & 0 deletions packages/browser/example/index.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.result {
display: flex;
}

.hide {
visibility: hidden;
}
3 changes: 3 additions & 0 deletions packages/browser/example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
<body>
<h1 id="title">OCR is Loading</h1>
<div>
<a href="https://github.com/gutenye/ocr">Star me on GitHub</a>
</div>
<div class="hide">
<input type="file" id="input-image" />
<br />
<div id="performance"></div>
Expand Down
4 changes: 4 additions & 0 deletions packages/browser/example/netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[build]
publish = "build"
base = "."
command = "bun run build.ts"

0 comments on commit 0afcdf1

Please sign in to comment.