File tree Expand file tree Collapse file tree 4 files changed +148
-180
lines changed Expand file tree Collapse file tree 4 files changed +148
-180
lines changed Original file line number Diff line number Diff line change 39
39
push : true
40
40
tags : ${{ steps.meta.outputs.tags }}
41
41
labels : ${{ steps.meta.outputs.labels }}
42
-
43
- streamlit :
44
- runs-on : ubuntu-latest
45
- permissions :
46
- contents : read
47
- packages : write
48
-
49
- steps :
50
- - name : Checkout repository
51
- uses : actions/checkout@v4
52
-
53
- - name : Log in to the Container registry
54
- uses : docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20
55
- with :
56
- registry : ${{ env.REGISTRY }}
57
- username : ${{ github.actor }}
58
- password : ${{ secrets.GITHUB_TOKEN }}
59
-
60
- - name : Extract metadata (tags, labels) for Docker
61
- id : meta
62
- uses : docker/metadata-action@f7b4ed12385588c3f9bc252f0a2b520d83b52d48
63
- with :
64
- images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-streamlit
65
-
66
- - name : Build and push Docker image
67
- uses : docker/build-push-action@2a53c6ccda456d31fb62eedc658aae06e238b7bd
68
- with :
69
- context : ./streamlit
70
- push : true
71
- tags : ${{ steps.meta.outputs.tags }}
72
- labels : ${{ steps.meta.outputs.labels }}
73
- file : ./streamlit/Dockerfile
Original file line number Diff line number Diff line change 2
2
// for information about these interfaces
3
3
// and what to do when importing types
4
4
declare global {
5
- namespace App {
6
- // interface Error {}
7
- // interface Locals {}
8
- // interface PageData {}
9
- // interface Platform {}
10
- }
5
+ namespace App {
6
+ // interface Error {}
7
+ // interface Locals {}
8
+ // interface PageData {}
9
+ // interface Platform {}
10
+ }
11
11
}
12
12
13
13
export { } ;
14
14
15
15
declare module "exceljs" {
16
- export * from "exceljs" ;
17
- export default ExcelJS ;
16
+ export * from "exceljs" ;
17
+ export default ExcelJS ;
18
18
}
Original file line number Diff line number Diff line change 162
162
const input = event .target as HTMLInputElement ;
163
163
if (input .files && input .files [0 ]) {
164
164
const file = input .files [0 ];
165
- if (file .type === ' application/pdf' || file .type .startsWith (' image/' )) {
165
+ if (file .type === " application/pdf" || file .type .startsWith (" image/" )) {
166
166
pictureFile = file ;
167
167
picture = URL .createObjectURL (file );
168
168
} else {
169
169
toast .error (" Please upload a PDF or image file." );
170
- input .value = ' ' ;
170
+ input .value = " " ;
171
171
}
172
172
}
173
173
}
You can’t perform that action at this time.
0 commit comments