mirror of
https://github.com/ThisIsBenny/iOS-Widgets.git
synced 2025-06-07 05:57:41 +00:00
Workaround for German month issue
This commit is contained in:
parent
c8e42df4e1
commit
73c14baacf
1 changed files with 5 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
// Variables used by Scriptable.
|
// Variables used by Scriptable.
|
||||||
// These must be at the very top of the file. Do not edit.
|
// These must be at the very top of the file. Do not edit.
|
||||||
// icon-color: deep-blue; icon-glyph: shopping-cart;
|
// icon-color: deep-blue; icon-glyph: shopping-cart;
|
||||||
// Version 1.2.0
|
// Version 1.2.1
|
||||||
|
|
||||||
/// Used by enums
|
/// Used by enums
|
||||||
const enumValue = (name) => Object.freeze({toString: () => name})
|
const enumValue = (name) => Object.freeze({toString: () => name})
|
||||||
|
@ -239,6 +239,7 @@ const parseShortDate = (stringDate, orderDate) => {
|
||||||
'Aug': 7,
|
'Aug': 7,
|
||||||
'Sep': 8,
|
'Sep': 8,
|
||||||
'Oct': 9,
|
'Oct': 9,
|
||||||
|
'Okt': 9,
|
||||||
'Nov': 10,
|
'Nov': 10,
|
||||||
'Dec': 11
|
'Dec': 11
|
||||||
}
|
}
|
||||||
|
@ -407,6 +408,7 @@ if (!orderDetails) {
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e)
|
console.error(e)
|
||||||
}
|
}
|
||||||
|
|
||||||
const itemName = itemDetails['d']['productName']
|
const itemName = itemDetails['d']['productName']
|
||||||
const itemImageUrl = itemDetails['d']['imageData']['src'].replace(/wid=[\d]+/, 'wid=200').replace(/hei=[\d]+/, 'hei=200')
|
const itemImageUrl = itemDetails['d']['imageData']['src'].replace(/wid=[\d]+/, 'wid=200').replace(/hei=[\d]+/, 'hei=200')
|
||||||
const itemImage = await(new Request(itemImageUrl)).loadImage()
|
const itemImage = await(new Request(itemImageUrl)).loadImage()
|
||||||
|
@ -423,11 +425,13 @@ if (!orderDetails) {
|
||||||
|
|
||||||
widget.addSpacer(5)
|
widget.addSpacer(5)
|
||||||
|
|
||||||
|
|
||||||
const productStack = widget.addStack()
|
const productStack = widget.addStack()
|
||||||
productStack.layoutHorizontally()
|
productStack.layoutHorizontally()
|
||||||
|
|
||||||
const imageStack = productStack.addStack()
|
const imageStack = productStack.addStack()
|
||||||
|
|
||||||
|
|
||||||
imageStack.backgroundColor = Color.white()
|
imageStack.backgroundColor = Color.white()
|
||||||
imageStack.size = new Size(37, 37)
|
imageStack.size = new Size(37, 37)
|
||||||
imageStack.setPadding(1, 1, 1, 1)
|
imageStack.setPadding(1, 1, 1, 1)
|
||||||
|
|
Loading…
Add table
Reference in a new issue