This file contains 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
export function selectPlan_click(event) { | |
let $item = $w.at(event.context); | |
$w('#selectPlan').hide(); //hide button | |
$item("#openingLb").show(); //show a loader animation on this item | |
let planData = $item("#plans").getCurrentItem(); //get the click item's data from its dataset | |
let deployData = { | |
name: planData.displayName, | |
price: planData.displayPrice, | |
planId: planData.planId, | |
currency: planData.currency |
This file contains 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 Calendar Event | |
https://calendar.google.com/calendar/r/eventedit?text=The+Event+Name&dates=20191005T100000/20191005T220000&details=The+event's+day+session+is+from+10+AM+to+3+PM.+The+event's+evening+session+is+from+5+PM+to+10+PM.&location=The+Rooftop+at+Pier+17+89+South+Street+NY,+NY+10038+USA&ctz=America/New_York | |
//Outlook Calendar Event | |
https://outlook.live.com/owa/?path=/calendar/action/compose&rru=addevent&startdt=20191005T043000&enddt=20191005T163000&subject=The+Event+Name&body=The+event's+day+session+is+from+10+AM+to+3+PM.+The+event's+evening+session+is+from+5+PM+to+10+PM.&location=The+Rooftop+at+Pier+17+89+South+Street+NY,+NY+10038+USA |
This file contains 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
var obj = []; | |
export function dataset1_ready() { | |
let itemLength = $w("#dataset1").getTotalCount(); | |
$w("#dataset1").getItems(0, itemLength) | |
.then( (result) => { | |
let items = result.items; | |
aCoolFunction(items, itemLength); | |
}); | |
} |
This file contains 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 {insertNewEvent} from 'backend/createEvent.jsw'; | |
$w.onReady(function () { | |
}); | |
var startdateNumber; | |
var startmonth; | |
var startyear; | |
var starttime; |
This file contains 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 wixData from 'wix-data'; | |
const {google} = require("googleapis"); | |
let options = { | |
"suppressAuth": true //suppress db auth to allow secure db permissions | |
}; | |
export async function insertNewEvent(summary, location, description, start, end, attendees) { | |
const authorizedAuthClient = await createAuthorizedClient(); | |
return insertRow(authorizedAuthClient, summary, location, description, start, end, attendees); |
This file contains 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 wixData from 'wix-data'; | |
const {google} = require("googleapis"); | |
const SCOPES = ['https://www.googleapis.com/auth/calendar']; //the url of the api | |
let options = { | |
"suppressAuth": true //suppress db auth to allow secure db permissions | |
}; | |
//-----------------------------Insert Client Config File Into Database----------------------------// |
This file contains 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 {client, getAuthUrl, generateTokens} from 'backend/config.jsw'; | |
export function clientConfig_keyPress(event) { | |
if (event.key === "Enter") { | |
let str = $w('#clientConfig').value; | |
if (str.length === 0) | |
return; | |
client(str).then(item => { | |
$w('#configUploaded').show(); |
NewerOlder