File tree Expand file tree Collapse file tree 5 files changed +16
-22
lines changed
ghcjs/delivery-calculator
pub/xlsx/src/Codec/Xlsx/Types Expand file tree Collapse file tree 5 files changed +16
-22
lines changed Original file line number Diff line number Diff line change 1
1
cabal-version : 2.2
2
2
name : delivery-calculator
3
- version : 0.1.0.1
3
+ version : 0.1.0.2
4
4
synopsis : Delivery Calculator
5
5
category : Web
6
6
build-type : Simple
Original file line number Diff line number Diff line change @@ -18,9 +18,7 @@ newXlsx st imgs = xlsx
18
18
xlsx =
19
19
fromXlsx 0
20
20
$ def
21
- & # xlStyles
22
- .~ renderStyleSheet style
23
- & atSheet " Delivery_Calculator"
21
+ & atSheet " Delivery Calculator"
24
22
?~ sheet
25
23
sheet =
26
24
def
@@ -70,18 +68,6 @@ newColProps rows = nubOrd $ do
70
68
cpBestFit = False
71
69
}
72
70
73
- style :: StyleSheet
74
- style =
75
- def
76
- & # styleSheetCellXfs
77
- .~ [ def
78
- & # cellXfAlignment
79
- ?~ ( def
80
- & # _alignmentVertical
81
- ?~ CellVerticalAlignmentCenter
82
- )
83
- ]
84
-
85
71
addHeader :: St Unique -> Worksheet -> Worksheet
86
72
addHeader st sheet =
87
73
case sortOn length headers of
@@ -173,7 +159,7 @@ addCol imgs sheet rowIdx colIdx field =
173
159
. _Just
174
160
%~ \ case
175
161
Drawing xs ->
176
- Drawing $ newImg rowIdx colIdx (length xs) img : xs
162
+ Drawing $ newImg rowIdx colIdx (length xs + 1 ) img : xs
177
163
where
178
164
txt = field ^. # fieldInput . # uniqueValue
179
165
@@ -190,12 +176,19 @@ newImg (RowIndex rowIdx) (ColumnIndex colIdx) imgIdx rfc2397 =
190
176
anchClientData = def
191
177
}
192
178
where
179
+ mime = decodeUtf8 $ rfc2397Mime rfc2397
180
+ ext =
181
+ from @ Text @ String
182
+ . maybe mempty (" ." <> )
183
+ . safeHead
184
+ . reverse
185
+ $ splitWhen (== ' /' ) mime
193
186
obj =
194
187
picture
195
188
(DrawingElementId imgIdx)
196
189
FileInfo
197
- { fiFilename = " img " ,
198
- fiContentType = decodeUtf8 $ rfc2397Mime rfc2397 ,
190
+ { fiFilename = " image " <> inspect imgIdx <> ext ,
191
+ fiContentType = mime ,
199
192
fiContents = rfc2397Bytes rfc2397
200
193
}
201
194
Original file line number Diff line number Diff line change 1
1
platforms :
2
2
android :
3
3
appName : Delivery Calculator
4
- versionCode : 1
5
- versionName : 0.1.0.1
4
+ versionCode : 2
5
+ versionName : 0.1.0.2
6
6
packageName : com.functora.delivery_calculator
7
7
manifest :
8
8
- file : AndroidManifest.xml
Original file line number Diff line number Diff line change 563
563
xorg . xev
564
564
yewtube
565
565
niv
566
+ zip
566
567
unzip
567
568
pciutils
568
569
docker-compose
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ picture dId fi =
139
139
shProps =
140
140
ShapeProperties
141
141
{ spXfrm = Nothing ,
142
- spGeometry = Nothing ,
142
+ spGeometry = Just PresetGeometry ,
143
143
spFill = Just NoFill ,
144
144
spOutline = Just $ def {_lnFill = Just NoFill }
145
145
}
You can’t perform that action at this time.
0 commit comments