Replace the variables below in the script
YOURBASEID: your Airtable base ID starting with 'app...'YOURCOOKIESFORAIRTABLEDOMAINyour browser cookie for airtable.com domain
| <html> | |
| <head> | |
| <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0/angular.min.js"></script> | |
| </head> | |
| <body> | |
| <script id="jsbin-javascript"> | |
| var $q = angular.injector(['ng']).get('$q'); | |
| var $timeout = angular.injector(['ng']).get('$timeout'); | |
| function teste() { |
| // DependencyResolver | |
| // A simple and quick DI container and resolver with Singleton and Transient lifecycles. | |
| // Copyright © 2016 Gustavo Gondim (https://github.com/ggondim) | |
| // Licensed under Creative Commons 3.0 BY | |
| // Instructions: | |
| // - Replace <%namespace%> with your application's namespace. | |
| // - Register instances in DependencyResolver constructor. | |
| // - Split enums and classes into separate files if you want to a better project organization. |
| function permutation(collection) { | |
| let current; | |
| let result = []; | |
| const currentArray = []; | |
| const newResultArray = []; | |
| if (collection.length) { | |
| current = collection.shift(); | |
| result = permutation(collection); |
| // Future versions of Hyper may add additional config options, | |
| // which will not automatically be merged into this file. | |
| // See https://hyper.is#cfg for all currently supported options. | |
| module.exports = { | |
| config: { | |
| opacity: 0.95, | |
| // choose either `'stable'` for receiving highly polished, | |
| // or `'canary'` for less polished but more frequent updates |
| { | |
| "$schema": "http://json.schemastore.org/proxies", | |
| "proxies": { | |
| "listar vagas": { | |
| "matchCondition": { | |
| "route": "/listarvagas" | |
| }, | |
| "backendUri": "https://api.airtable.com/v0/IDDASUABASEAQUI/Vagas?fields%5B%5D=T%C3%ADtulo&fields%5B%5D=Imagem&fields%5B%5D=slug&filterByFormula=%7BStatus%7D%3D%22Aberta%22", | |
| "requestOverrides": { | |
| "backend.request.headers.Authorization": "Bearer SUACHAVEAQUI" |
| const path = require('path'); | |
| const fs = require('fs'); | |
| const defaultExtensionsPath = 'C:\\Users\\<YOURUSERFOLDERIFYOUUSEWINDOWS>\\.vscode\\extensions\\'; | |
| const isDirectory = source => fs.lstatSync(source).isDirectory() | |
| const getDirectories = source => | |
| fs.readdirSync(source).map(name => path.join(source, name)).filter(isDirectory) | |
| async function main() { | |
| const extensions = getDirectories(defaultExtensionsPath); |
| const app = require('azure-monofunction'); | |
| const routes = [{ | |
| path: '/example/:param', | |
| methods: ['GET', 'PUT'], | |
| run: async (context) => { | |
| context.res.body = { it: 'works' }; | |
| }, | |
| }] |
| { | |
| "bindings": [ | |
| { | |
| "authLevel": "anonymous", | |
| "type": "httpTrigger", | |
| "direction": "in", | |
| "name": "req", | |
| "route": "{*segments}" | |
| }, | |
| { |
| async function entryPoint(context) { | |
| if (context.req.method === 'GET') { | |
| // it is a "get single resource" operation | |
| } else if (context.req.method === 'PUT') { | |
| // it is a "replace resource" operation | |
| } else { | |
| // must respond with 403 forbidden or not supported | |
| } | |
| } |