mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 06:03:04 -04:00
rebrand gcv -> lens
This commit is contained in:
parent
0fe41c25f1
commit
6438e7b63f
9 changed files with 21 additions and 16 deletions
|
@ -81,8 +81,8 @@ module.exports = {
|
||||||
},
|
},
|
||||||
description: codeblock("ansi", ["" + ocr.response.body.text.substr(0,3900)]),
|
description: codeblock("ansi", ["" + ocr.response.body.text.substr(0,3900)]),
|
||||||
footer: {
|
footer: {
|
||||||
iconUrl: STATICS.google,
|
iconUrl: STATICS.googlelens,
|
||||||
text: `Google Cloud Vision • ${context.application.name} • Took ${ocr.timings}s`
|
text: `Google Lens • ${context.application.name} • Took ${ocr.timings}s`
|
||||||
}
|
}
|
||||||
}],
|
}],
|
||||||
components
|
components
|
||||||
|
|
|
@ -25,8 +25,8 @@ function createReverseImageSearchResultPage(context, result, source) {
|
||||||
url: source
|
url: source
|
||||||
},
|
},
|
||||||
footer: {
|
footer: {
|
||||||
iconUrl: STATICS.google,
|
iconUrl: STATICS.googlelens,
|
||||||
text: `Google Cloud Vision • ${context.application.name}`
|
text: `Google Lens • ${context.application.name}`
|
||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
if (result.thumbnail) res.embeds[0].thumbnail = { url: result.thumbnail };
|
if (result.thumbnail) res.embeds[0].thumbnail = { url: result.thumbnail };
|
||||||
|
|
|
@ -51,8 +51,8 @@ module.exports = {
|
||||||
},
|
},
|
||||||
description: codeblock("ansi", ["" + stringwrap(ocr.response.body.text, 2000)]),
|
description: codeblock("ansi", ["" + stringwrap(ocr.response.body.text, 2000)]),
|
||||||
footer: {
|
footer: {
|
||||||
iconUrl: STATICS.google,
|
iconUrl: STATICS.googlelens,
|
||||||
text: `Google Cloud Vision • ${context.application.name} • Took ${ocr.timings}s`
|
text: `Google Lens • ${context.application.name} • Took ${ocr.timings}s`
|
||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
}catch(e){
|
}catch(e){
|
||||||
|
|
|
@ -35,8 +35,8 @@ module.exports = {
|
||||||
url: image
|
url: image
|
||||||
},
|
},
|
||||||
footer: {
|
footer: {
|
||||||
iconUrl: STATICS.google,
|
iconUrl: STATICS.googlelens,
|
||||||
text: `Google Cloud Vision • ${context.application.name}`
|
text: `Google Lens • ${context.application.name}`
|
||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
},
|
},
|
||||||
|
|
|
@ -40,8 +40,8 @@ module.exports = {
|
||||||
url: image
|
url: image
|
||||||
},
|
},
|
||||||
footer: {
|
footer: {
|
||||||
iconUrl: STATICS.google,
|
iconUrl: STATICS.googlelens,
|
||||||
text: `Google Cloud Vision • ${context.application.name}`
|
text: `Google Lens • ${context.application.name}`
|
||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
},
|
},
|
||||||
|
|
|
@ -25,8 +25,8 @@ function createReverseImageSearchResultPage(context, result, source) {
|
||||||
url: source
|
url: source
|
||||||
},
|
},
|
||||||
footer: {
|
footer: {
|
||||||
iconUrl: STATICS.google,
|
iconUrl: STATICS.googlelens,
|
||||||
text: `Google Cloud Vision • ${context.application.name}`
|
text: `Google Lens • ${context.application.name}`
|
||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
if (result.thumbnail) res.embeds[0].thumbnail = { url: result.thumbnail };
|
if (result.thumbnail) res.embeds[0].thumbnail = { url: result.thumbnail };
|
||||||
|
|
|
@ -39,8 +39,8 @@ module.exports = {
|
||||||
},
|
},
|
||||||
description: codeblock("ansi", [ocr.response.body.text.substr(0,4000)]),
|
description: codeblock("ansi", [ocr.response.body.text.substr(0,4000)]),
|
||||||
footer: {
|
footer: {
|
||||||
iconUrl: STATICS.google,
|
iconUrl: STATICS.googlelens,
|
||||||
text: `Google Cloud Vision • ${context.application.name} • Took ${ocr.timings}s`
|
text: `Google Lens • ${context.application.name} • Took ${ocr.timings}s`
|
||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
},
|
},
|
||||||
|
|
|
@ -63,8 +63,8 @@ module.exports = {
|
||||||
url: image
|
url: image
|
||||||
},
|
},
|
||||||
footer: {
|
footer: {
|
||||||
iconUrl: STATICS.google,
|
iconUrl: STATICS.googlelens,
|
||||||
text: `Google Cloud Vision • ${context.application.name}`
|
text: `Google Lens • ${context.application.name}`
|
||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
}catch(e){
|
}catch(e){
|
||||||
|
|
|
@ -68,6 +68,10 @@ const Statics = Object.freeze({
|
||||||
file: "brands/googlefinance.png",
|
file: "brands/googlefinance.png",
|
||||||
revision: 0
|
revision: 0
|
||||||
},
|
},
|
||||||
|
googlelens: {
|
||||||
|
file: "brands/lens.png",
|
||||||
|
revision: 0
|
||||||
|
},
|
||||||
googlemaps: {
|
googlemaps: {
|
||||||
file: "brands/maps.png",
|
file: "brands/maps.png",
|
||||||
revision: 0
|
revision: 0
|
||||||
|
@ -225,6 +229,7 @@ module.exports.STATICS = Object.freeze({
|
||||||
chatgpt: staticAsset(Statics.brands.chatgpt),
|
chatgpt: staticAsset(Statics.brands.chatgpt),
|
||||||
genius: staticAsset(Statics.brands.genius),
|
genius: staticAsset(Statics.brands.genius),
|
||||||
google: staticAsset(Statics.brands.google),
|
google: staticAsset(Statics.brands.google),
|
||||||
|
googlelens: staticAsset(Statics.brands.googlelens),
|
||||||
googlefinance: staticAsset(Statics.brands.googlefinance),
|
googlefinance: staticAsset(Statics.brands.googlefinance),
|
||||||
googlemaps: staticAsset(Statics.brands.googlemaps),
|
googlemaps: staticAsset(Statics.brands.googlemaps),
|
||||||
googletranslate: staticAsset(Statics.brands.googletranslate),
|
googletranslate: staticAsset(Statics.brands.googletranslate),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue