{
"enable": true,
"disablePaths": [
"./_fresh",
"./.vscode",
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| deco create | |
| # Isso cria uma pasta no seu pc, agora entre nela com "cd <NOME_DA_PASTA>" | |
| bun install | |
| bun dev | |
| # Deployar | |
| bun deploy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Google Cloud Search App - Tarefa de Conclusão | |
| ## Contexto Geral | |
| Precisamos garantir o funcionamento completo de uma App da Deco chamada **"google-sites"** (localizada no repositório `deco-cx/apps`). | |
| > **Nota sobre nomenclatura**: O nome atual é `google-sites`, mas seria mais apropriado chamá-la de `google-cloud-search`, já que a app contém apenas uma tool para fazer queries no Google Cloud Search. Renomear não é prioridade no momento. | |
| ## Objetivo da App |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { importPKCS8, SignJWT } from "jose"; | |
| import { Buffer } from "node:buffer"; | |
| // The scopes you want to use here. | |
| // The service account should be configured to have access to these APIs. | |
| const scopes = ["https://www.googleapis.com/auth/cloud_search.query"]; | |
| const GCP_TEMP_ACCESS_TOKEN_KV_KEY = | |
| "google-cloud-auth-temp-access-token"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"type":"excalidraw/clipboard","elements":[{"type":"rectangle","version":1733,"versionNonce":518710343,"isDeleted":false,"id":"d6e35ea8-1cd6-4784-8912-8e8de6456578","fillStyle":"solid","strokeWidth":2,"strokeStyle":"solid","roughness":1,"opacity":100,"angle":0,"x":1515.598193432759,"y":577.8350506150438,"strokeColor":"#1e1e1e","backgroundColor":"transparent","width":275.48223204145233,"height":59.54426409064803,"seed":1970185349,"groupIds":["9a3166b6-0bc2-4415-8764-181939bb0cde"],"frameId":null,"roundness":{"type":3},"boundElements":[],"updated":1729726760119,"link":null,"locked":false,"customData":{"isAnnotation":false,"widgetId":"c0ab9c77-7eeb-4435-bbcb-dcf014c7483b"}},{"type":"text","version":1705,"versionNonce":1286914919,"isDeleted":false,"id":"c25fd6e3-10b5-453a-bba1-d27f442945a5","fillStyle":"solid","strokeWidth":2,"strokeStyle":"solid","roughness":1,"opacity":100,"angle":0,"x":1530.3192322781538,"y":601.7991090157784,"strokeColor":"#1e1e1e","backgroundColor":"transparent","width":239.63400268554688,"h |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { fetchToCurl } from "jsr:@viktor/fetch-to-curl"; | |
| import { ensureDir } from "https://deno.land/std@0.54.0/fs/ensure_dir.ts"; | |
| const IS_ENABLED = Deno.env.get("APPS_DEBUG") === "1"; | |
| function getCounter(): number { | |
| let counter = 1; | |
| for (const _ of Deno.readDirSync("./debug")) { | |
| counter++; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "workbench.iconTheme": "vscode-icons", | |
| "[python]": { | |
| "editor.defaultFormatter": "ms-python.black-formatter", | |
| "editor.formatOnSave": true, | |
| "editor.formatOnType": true | |
| }, | |
| "workbench.startupEditor": "none", | |
| "editor.minimap.enabled": false, | |
| "editor.inlayHints.enabled": "off", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| http://10.109.71.7:5173/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "watch": [ | |
| "src" | |
| ], | |
| "ext": ".ts,.js", | |
| "ignore": [], | |
| "exec": "ts-node ./src/index.ts" | |
| } |