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
- name: "folder-document-access-checks" | |
description: "" | |
tuple_file: ./folder-document-access_tuples.json | |
check: | |
- user: user:anne | |
object: folder:product-2021 | |
assertions: | |
can_view: true | |
can_write: true | |
can_share: false |
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
# In this store we've taken the approach of having a condition that checks the assigned org against the active org that is provided as context on the request | |
name: Entitlements | |
model: | | |
model | |
schema 1.1 | |
type user | |
type organization | |
relations |
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
Feature: Check folder access | |
Background: | |
Given folder:5 is a parent of folder:product-2021 | |
* folder:product-2021 is a parent of folder:product-2021Q1 | |
* folder:product is a parent of folder:product-2021 | |
Scenario: user:anne can read and write but not share folder:product-2021 | |
Given user:anne is an owner of folder:product | |
When she accesses folder:product-2021 |
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
const fs = require('fs-extra'); | |
const packageJson = require('./package.json'); | |
const existing = require('./package.nls.json'); | |
function handleStringEdit (str, obj, key) { | |
if (!obj[key] || obj[key]?.startsWith('%')) { | |
return; | |
} | |
existing[str] = obj[key]; | |
obj[key] = `%${str}%`; |
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
[TRACE] #import "TiAppiOSActivityAttributesProxy.h" | |
[TRACE] ^ | |
[TRACE] /Users/awam/Documents/titanium-workspace/test-app/build/iphone/Classes/TiAppiOSActivityAttributesProxy.h:10:9: error: 'TitaniumKit/TitaniumKit.h' file not found | |
[TRACE] #import <TitaniumKit/TitaniumKit.h> | |
[TRACE] ^ | |
[TRACE] /Users/awam/Documents/titanium-workspace/test-app/build/iphone/Classes/TiAppiOSActivityAttributesProxy.h:10:9: note: did not find header 'TitaniumKit.h' in framework 'TitaniumKit' (loaded from '/Users/awam/Documents/titanium-workspace/test-app/build/iphone/build/Products/Debug-maccatalyst') | |
[TRACE] #import <TitaniumKit/TitaniumKit.h> | |
[TRACE] ^ | |
[TRACE] 1 error generated. | |
[TRACE] <unknown>:0: error: failed to emit precompiled header '/Users/awam/Documents/titanium-workspace/test-app/build/iphone/build/Intermediates/PrecompiledHeaders/test_app-Bridging-Header-swift_2S904Q57JC3MW-clang_38YETQ0XB7NQN.pch' for bridging header '/Users/awam/Documents/titanium-workspace/test-app/build/iphone/test_ |
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
{ | |
"branch": {}, | |
"branches": false, | |
"defaultInstallLocation": "/Users/user/Library/Application Support/Titanium", | |
"installLocations": [ | |
"/Library/Application Support/Titanium", | |
"/Users/user/Library/Application Support/Titanium" | |
], | |
"installed": {}, | |
"releases": [ |
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
const win = Ti.UI.createWindow(); | |
function createEvent() { | |
let calendarId; | |
for (const calendar of Ti.Calendar.allCalendars) { | |
Ti.API.info(calendar.name, calendar.id); | |
// This probably is not good enough for an app, the calendar most likely should be selected by the user | |
if (calendar.name === 'Calendar') { | |
calendarId = calendar.id | |
} |
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
/** | |
* Requirements: | |
* | |
* node 14 | |
* these dependencies - npm i @octokit/rest date-fns fs-extra | |
*/ | |
import fs from 'fs-extra'; | |
import { isAfter } from 'date-fns'; | |
import Octokit from '@octokit/rest'; |
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
const win = Ti.UI.createWindow({ layout: 'vertical' }); | |
const singleBtn = Ti.UI.createButton({ title: 'Select single', top: 50 }); | |
singleBtn.addEventListener('click', () => { | |
selectImage(false); | |
}); | |
win.add(singleBtn); | |
const multiBtn = Ti.UI.createButton({ title: 'Select multiple' }); | |
multiBtn.addEventListener('click', () => { | |
selectImage(true); | |
}); |
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
#!/usr/bin/env bash | |
FOLDER=$1 | |
echo "Checking $FOLDER" | |
# Check for references to UIWebView in the build .a files using strings | |
for file in "$FOLDER"/*.a; do | |
strings "$file" | grep UIWeb > /dev/null 2>&1 | |
if [ $? -eq 0 ] |
NewerOlder