index int64 0 0 | repo_id stringlengths 16 181 | file_path stringlengths 28 270 | content stringlengths 1 11.6M | __index_level_0__ int64 0 10k |
|---|---|---|---|---|
0 | petrpan-code/konvajs | petrpan-code/konvajs/react-konva/tsconfig.json | {
"compilerOptions": {
"strict": false,
"target": "ES2020",
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"jsx": "react",
"skipLibCheck": false
},
"include": ["./src/**/*"],
"files": [
"react-konva.d.ts"
]
}
| 4,700 |
0 | petrpan-code/konvajs/react-konva | petrpan-code/konvajs/react-konva/src/ReactKonva.ts | /**
* Based on ReactArt.js
* Copyright (c) 2017-present Lavrenov Anton.
* All rights reserved.
*
* MIT
*/
'use strict';
import 'konva';
export * from './ReactKonvaCore.js';
| 4,701 |
0 | petrpan-code/konvajs/react-konva | petrpan-code/konvajs/react-konva/src/ReactKonvaCore.tsx | /**
* Based on ReactArt.js
* Copyright (c) 2017-present Lavrenov Anton.
* All rights reserved.
*
* MIT
*/
'use strict';
import React from 'react';
import Konva from 'konva/lib/Core.js';
import ReactFiberReconciler from 'react-reconciler';
import { LegacyRoot, ConcurrentRoot } from 'react-reconciler/constants.js'... | 4,702 |
0 | petrpan-code/konvajs/react-konva | petrpan-code/konvajs/react-konva/src/ReactKonvaHostConfig.ts | import Konva from 'konva/lib/Core.js';
import { applyNodeProps, updatePicture, EVENTS_NAMESPACE } from './makeUpdates.js';
export {
unstable_now as now,
unstable_IdlePriority as idlePriority,
unstable_runWithPriority as run,
} from 'scheduler';
import { DefaultEventPriority } from 'react-reconciler/constants.js'... | 4,703 |
0 | petrpan-code/konvajs/react-konva | petrpan-code/konvajs/react-konva/src/makeUpdates.ts | import { Konva } from 'konva/lib/Global.js';
const propsToSkip = {
children: true,
ref: true,
key: true,
style: true,
forwardedRef: true,
unstable_applyCache: true,
unstable_applyDrawHitFromCache: true,
};
let zIndexWarningShowed = false;
let dragWarningShowed = false;
export const EVENTS_NAMESPACE = '... | 4,704 |
0 | petrpan-code/konvajs/react-konva | petrpan-code/konvajs/react-konva/test/mocking.js | import Konva from 'konva';
Konva.Stage.prototype.simulateMouseDown = function (pos) {
var top = this.content.getBoundingClientRect().top;
this._pointerdown({
clientX: pos.x,
clientY: pos.y + top,
button: pos.button,
type: 'mousedown',
});
};
Konva.Stage.prototype.simulateMouseMove = function (p... | 4,705 |
0 | petrpan-code/konvajs/react-konva | petrpan-code/konvajs/react-konva/test/react-konva-test.tsx | import React from 'react';
import { createRoot } from 'react-dom/client';
import { unstable_batchedUpdates as batchedUpdates } from 'react-dom';
import sinon from 'sinon';
import { expect } from 'chai';
import Konva from 'konva';
import useImage from 'use-image';
import './mocking';
import {
Stage,
Rect,
Layer,
... | 4,706 |
0 | petrpan-code/konvajs/react-konva | petrpan-code/konvajs/react-konva/test/unit-tests.html | <html>
<body>
<div id="mocha"></div>
<!-- use mocha from CDN instead of local node_modules -->
<!-- because somehow parcel is failing do build mocha correctly -->
<link rel="stylesheet" href="https://unpkg.com/mocha/mocha.css" />
<script src="https://unpkg.com/mocha/mocha.js"></script>
<script... | 4,707 |
0 | petrpan-code/react-native-modal | petrpan-code/react-native-modal/react-native-modal/.eslintrc.js | module.exports = {
root: true,
extends: '@react-native-community',
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
};
| 4,708 |
0 | petrpan-code/react-native-modal | petrpan-code/react-native-modal/react-native-modal/.npmignore | example/
src
| 4,709 |
0 | petrpan-code/react-native-modal | petrpan-code/react-native-modal/react-native-modal/.prettierrc.js | module.exports = {
bracketSpacing: false,
jsxBracketSameLine: true,
singleQuote: true,
trailingComma: 'all',
};
| 4,710 |
0 | petrpan-code/react-native-modal | petrpan-code/react-native-modal/react-native-modal/.releaserc | {
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/npm",
"@semantic-release/github",
"@semantic-release/git"
]
} | 4,711 |
0 | petrpan-code/react-native-modal | petrpan-code/react-native-modal/react-native-modal/ISSUE_TEMPLATE.md | ### When reporting a bug, please be sure to check if the issue still persists with react-native original modal:
Under the hood `react-native-modal` uses react-native original [Modal component](https://reactnative.dev/docs/modal.html).
Before reporting a bug, try swapping `react-native-modal` with react-native origin... | 4,712 |
0 | petrpan-code/react-native-modal | petrpan-code/react-native-modal/react-native-modal/LICENSE.md | MIT License
Copyright (c) 2017 React Native Community
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, pub... | 4,713 |
0 | petrpan-code/react-native-modal | petrpan-code/react-native-modal/react-native-modal/README.md | ### Announcements
- 📣 We're looking for maintainers and contributors! See [#598](https://github.com/react-native-modal/react-native-modal/discussions/598)
- 💡 We're brainstorming if/how we can make a JavaScript-only version of `react-native-modal`. See [#597](https://github.com/react-native-modal/react-native-modal/... | 4,714 |
0 | petrpan-code/react-native-modal | petrpan-code/react-native-modal/react-native-modal/package.json | {
"name": "react-native-modal",
"version": "13.0.1",
"description": "An enhanced React Native modal",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist/"
],
"scripts": {
"lint": "eslint \"src/**/*.{ts, tsx}\"",
"test": "yarn run test:ts && yarn run lint",
"release": "... | 4,715 |
0 | petrpan-code/react-native-modal | petrpan-code/react-native-modal/react-native-modal/tsconfig.json | {
"include": ["src/**/*"],
"exclude": [
"node_modules",
"babel.config.js",
"metro.config.js",
"jest.config.js"
],
"compilerOptions": {
"lib": ["es5", "es6", "esnext.asynciterable"],
"allowSyntheticDefaultImports": false,
"esModuleInterop": false,
"jsx": "react",
"moduleResolu... | 4,716 |
0 | petrpan-code/react-native-modal | petrpan-code/react-native-modal/react-native-modal/yarn.lock | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.5.5":
version "7.5.5"
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.5.5.tgz#bc0782f6d69f7b7d49531219699b988f669a8f9d"
integrity sha512-27d4lZoomVyo51Veg... | 4,717 |
0 | petrpan-code/react-native-modal/react-native-modal | petrpan-code/react-native-modal/react-native-modal/example/.buckconfig |
[android]
target = Google Inc.:Google APIs:23
[maven_repositories]
central = https://repo1.maven.org/maven2
| 4,718 |
0 | petrpan-code/react-native-modal/react-native-modal | petrpan-code/react-native-modal/react-native-modal/example/.watchmanconfig | {}
| 4,719 |
0 | petrpan-code/react-native-modal/react-native-modal | petrpan-code/react-native-modal/react-native-modal/example/App.tsx | import React, {Component} from 'react';
import Navigator from './src/Navigator';
class App extends Component {
render() {
return <Navigator />;
}
}
export default App;
| 4,720 |
0 | petrpan-code/react-native-modal/react-native-modal | petrpan-code/react-native-modal/react-native-modal/example/app.json | {
"name": "ModalExample",
"displayName": "ModalExample"
}
| 4,721 |
0 | petrpan-code/react-native-modal/react-native-modal | petrpan-code/react-native-modal/react-native-modal/example/babel.config.js | module.exports = {
presets: ['module:metro-react-native-babel-preset'],
};
| 4,722 |
0 | petrpan-code/react-native-modal/react-native-modal | petrpan-code/react-native-modal/react-native-modal/example/index.js | /**
* @format
*/
import {AppRegistry} from 'react-native';
import App from './App';
import {name as appName} from './app.json';
AppRegistry.registerComponent(appName, () => App);
| 4,723 |
0 | petrpan-code/react-native-modal/react-native-modal | petrpan-code/react-native-modal/react-native-modal/example/metro.config.js | /**
* Metro configuration for React Native
* https://github.com/facebook/react-native
*
* @format
*/
const path = require('path');
const blacklist = require('metro-config/src/defaults/blacklist');
const reactNativeModalRoot = path.resolve(__dirname, '..');
module.exports = {
transformer: {
getTransformOpti... | 4,724 |
0 | petrpan-code/react-native-modal/react-native-modal | petrpan-code/react-native-modal/react-native-modal/example/package.json | {
"name": "ModalExample",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "react-native start",
"test": "jest",
"lint": "eslint ."
},
"dependencies": {
"@babel/runtime": "^7.6.3",
"babel": "^6.23.0",
"react": "^16.9.0",
"react-native": "0.61.5",
"react-native-gestu... | 4,725 |
0 | petrpan-code/react-native-modal/react-native-modal | petrpan-code/react-native-modal/react-native-modal/example/tsconfig.json | {
"compilerOptions": {
"allowJs": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"isolatedModules": false,
"jsx": "react",
"lib": ["es6"],
"moduleResolution": "node",
"noEmit": true,
"strict": false,
"target": "esnext",
"resolveJsonModule": true
}
}
| 4,726 |
0 | petrpan-code/react-native-modal/react-native-modal | petrpan-code/react-native-modal/react-native-modal/example/yarn.lock | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.5.5":
version "7.5.5"
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.5.5.tgz#bc0782f6d69f7b7d49531219699b988f669a8f9d"
integrity sha512-27d4lZoomVyo51Veg... | 4,727 |
0 | petrpan-code/react-native-modal/react-native-modal/example | petrpan-code/react-native-modal/react-native-modal/example/android/build.gradle | // Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlinVersion = '1.3.50'
ext {
buildToolsVersion = "28.0.3"
minSdkVersion = 18
compileSdkVersion = 28
targetSdkVersion = 28
supportLibVersion = "28.0.0"... | 4,728 |
0 | petrpan-code/react-native-modal/react-native-modal/example | petrpan-code/react-native-modal/react-native-modal/example/android/gradle.properties | # Project-wide Gradle settings.
# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies ... | 4,729 |
0 | petrpan-code/react-native-modal/react-native-modal/example | petrpan-code/react-native-modal/react-native-modal/example/android/gradlew | #!/usr/bin/env sh
#
# Copyright 2015 the original author or authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | 4,730 |
0 | petrpan-code/react-native-modal/react-native-modal/example | petrpan-code/react-native-modal/react-native-modal/example/android/gradlew.bat | @rem
@rem Copyright 2015 the original author or authors.
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem http://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless... | 4,731 |
0 | petrpan-code/react-native-modal/react-native-modal/example | petrpan-code/react-native-modal/react-native-modal/example/android/settings.gradle | rootProject.name = 'ModalExample'
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
include ':app'
| 4,732 |
0 | petrpan-code/react-native-modal/react-native-modal/example/android | petrpan-code/react-native-modal/react-native-modal/example/android/app/BUCK | # To learn about Buck see [Docs](https://buckbuild.com/).
# To run your application with Buck:
# - install Buck
# - `npm start` - to start the packager
# - `cd android`
# - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Androi... | 4,733 |
0 | petrpan-code/react-native-modal/react-native-modal/example/android | petrpan-code/react-native-modal/react-native-modal/example/android/app/build.gradle | apply plugin: "com.android.application"
import com.android.build.OutputFile
/**
* The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets
* and bundleReleaseJsAndAssets).
* These basically call `react-native bundle` with the correct arguments during the Android build
* cycle. By... | 4,734 |
0 | petrpan-code/react-native-modal/react-native-modal/example/android | petrpan-code/react-native-modal/react-native-modal/example/android/app/build_defs.bzl | """Helper definitions to glob .aar and .jar targets"""
def create_aar_targets(aarfiles):
for aarfile in aarfiles:
name = "aars__" + aarfile[aarfile.rindex("/") + 1:aarfile.rindex(".aar")]
lib_deps.append(":" + name)
android_prebuilt_aar(
name = name,
aar = aarfile,
... | 4,735 |
0 | petrpan-code/react-native-modal/react-native-modal/example/android | petrpan-code/react-native-modal/react-native-modal/example/android/app/proguard-rules.pro | # Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# ... | 4,736 |
0 | petrpan-code/react-native-modal/react-native-modal/example/android/app/src/androidTest/java/com | petrpan-code/react-native-modal/react-native-modal/example/android/app/src/androidTest/java/com/modalexample/DetoxTest.java | package com.modalexample;
import com.wix.detox.Detox;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.filters.LargeTest;
import androidx.test.rule.ActivityTestRule;
@RunWith(AndroidJUnit4.class)
@LargeTest
publ... | 4,737 |
0 | petrpan-code/react-native-modal/react-native-modal/example/android/app/src | petrpan-code/react-native-modal/react-native-modal/example/android/app/src/debug/AndroidManifest.xml | <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
<application android:usesCleartextTraffic="true" tools:targetApi="28" tools:i... | 4,738 |
0 | petrpan-code/react-native-modal/react-native-modal/example/android/app/src | petrpan-code/react-native-modal/react-native-modal/example/android/app/src/main/AndroidManifest.xml | <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.modalexample">
<uses-permission android:name="android.permission.INTERNET" />
<application
android:name=".MainApplication"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:rou... | 4,739 |
0 | petrpan-code/react-native-modal/react-native-modal/example/android/app/src/main/java/com | petrpan-code/react-native-modal/react-native-modal/example/android/app/src/main/java/com/modalexample/MainActivity.java | package com.modalexample;
import com.facebook.react.ReactActivity;
import com.facebook.react.ReactActivityDelegate;
import com.facebook.react.ReactRootView;
import com.swmansion.gesturehandler.react.RNGestureHandlerEnabledRootView;
public class MainActivity extends ReactActivity {
/**
* Returns the name of ... | 4,740 |
0 | petrpan-code/react-native-modal/react-native-modal/example/android/app/src/main/java/com | petrpan-code/react-native-modal/react-native-modal/example/android/app/src/main/java/com/modalexample/MainApplication.java | package com.modalexample;
import android.app.Application;
import android.util.Log;
import com.facebook.react.PackageList;
import com.facebook.hermes.reactexecutor.HermesExecutorFactory;
import com.facebook.react.bridge.JavaScriptExecutorFactory;
import com.facebook.react.ReactApplication;
import com.facebook.react.Re... | 4,741 |
0 | petrpan-code/react-native-modal/react-native-modal/example/android/app/src/main/res | petrpan-code/react-native-modal/react-native-modal/example/android/app/src/main/res/values/strings.xml | <resources>
<string name="app_name">ModalExample</string>
</resources>
| 4,742 |
0 | petrpan-code/react-native-modal/react-native-modal/example/android/app/src/main/res | petrpan-code/react-native-modal/react-native-modal/example/android/app/src/main/res/values/styles.xml | <resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="android:textColor">#000000</item>
</style>
</resources>
| 4,743 |
0 | petrpan-code/react-native-modal/react-native-modal/example/android/gradle | petrpan-code/react-native-modal/react-native-modal/example/android/gradle/wrapper/gradle-wrapper.properties | distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
| 4,744 |
0 | petrpan-code/react-native-modal/react-native-modal/example | petrpan-code/react-native-modal/react-native-modal/example/e2e/allTests.spec.js | describe('Example', () => {
const waitFor = delay => new Promise(accept => setTimeout(accept, delay));
beforeEach(async () => {
await device.reloadReactNative();
});
it('should open and close all the modals', async () => {
const modals = [
'default',
'slide',
'slow',
'fancy',
... | 4,745 |
0 | petrpan-code/react-native-modal/react-native-modal/example | petrpan-code/react-native-modal/react-native-modal/example/e2e/config.json | {
"setupFilesAfterEnv": ["./init.js"],
"testEnvironment": "node",
"reporters": ["detox/runners/jest/streamlineReporter"],
"verbose": true
}
| 4,746 |
0 | petrpan-code/react-native-modal/react-native-modal/example | petrpan-code/react-native-modal/react-native-modal/example/e2e/init.js | const detox = require('detox');
const config = require('../../package.json').detox;
const adapter = require('detox/runners/jest/adapter');
const specReporter = require('detox/runners/jest/specReporter');
// Set the default timeout
jest.setTimeout(120000);
jasmine.getEnv().addReporter(adapter);
// This takes care of g... | 4,747 |
0 | petrpan-code/react-native-modal/react-native-modal/example | petrpan-code/react-native-modal/react-native-modal/example/ios/Podfile | platform :ios, '9.0'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
target 'ModalExample' do
# Pods for ModalExample
pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector"
pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libra... | 4,748 |
0 | petrpan-code/react-native-modal/react-native-modal/example | petrpan-code/react-native-modal/react-native-modal/example/ios/Podfile.lock | PODS:
- boost-for-react-native (1.63.0)
- DoubleConversion (1.1.6)
- FBLazyVector (0.61.5)
- FBReactNativeSpec (0.61.5):
- Folly (= 2018.10.22.00)
- RCTRequired (= 0.61.5)
- RCTTypeSafety (= 0.61.5)
- React-Core (= 0.61.5)
- React-jsi (= 0.61.5)
- ReactCommon/turbomodule/core (= 0.61.5)
... | 4,749 |
0 | petrpan-code/react-native-modal/react-native-modal/example/ios | petrpan-code/react-native-modal/react-native-modal/example/ios/ModalExample-tvOS/Info.plist | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifi... | 4,750 |
0 | petrpan-code/react-native-modal/react-native-modal/example/ios | petrpan-code/react-native-modal/react-native-modal/example/ios/ModalExample-tvOSTests/Info.plist | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifi... | 4,751 |
0 | petrpan-code/react-native-modal/react-native-modal/example/ios | petrpan-code/react-native-modal/react-native-modal/example/ios/ModalExample.xcworkspace/contents.xcworkspacedata | <?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "group:ModalExample.xcodeproj">
</FileRef>
<FileRef
location = "group:Pods/Pods.xcodeproj">
</FileRef>
</Workspace>
| 4,752 |
0 | petrpan-code/react-native-modal/react-native-modal/example/ios | petrpan-code/react-native-modal/react-native-modal/example/ios/ModalExample/AppDelegate.h | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#import <React/RCTBridgeDelegate.h>
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate, RCTBridg... | 4,753 |
0 | petrpan-code/react-native-modal/react-native-modal/example/ios | petrpan-code/react-native-modal/react-native-modal/example/ios/ModalExample/AppDelegate.m | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#import "AppDelegate.h"
#import <React/RCTBridge.h>
#import <React/RCTBundleURLProvider.h>
#import <React/RCTRootView.h>
@implem... | 4,754 |
0 | petrpan-code/react-native-modal/react-native-modal/example/ios | petrpan-code/react-native-modal/react-native-modal/example/ios/ModalExample/Info.plist | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleDisplayName</key>
<string>ModalExample</string>
<key>CFBundleExecutable</k... | 4,755 |
0 | petrpan-code/react-native-modal/react-native-modal/example/ios | petrpan-code/react-native-modal/react-native-modal/example/ios/ModalExample/main.m | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#import <UIKit/UIKit.h>
#import "AppDelegate.h"
int main(int argc, char * argv[]) {
@autoreleasepool {
return UIApplicatio... | 4,756 |
0 | petrpan-code/react-native-modal/react-native-modal/example/ios/ModalExample | petrpan-code/react-native-modal/react-native-modal/example/ios/ModalExample/Base.lproj/LaunchScreen.xib | <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="7702" systemVersion="14D136" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES">
<dependencies>
... | 4,757 |
0 | petrpan-code/react-native-modal/react-native-modal/example/ios/ModalExample | petrpan-code/react-native-modal/react-native-modal/example/ios/ModalExample/Images.xcassets/Contents.json | {
"info": {
"version": 1,
"author": "xcode"
}
}
| 4,758 |
0 | petrpan-code/react-native-modal/react-native-modal/example/ios/ModalExample/Images.xcassets | petrpan-code/react-native-modal/react-native-modal/example/ios/ModalExample/Images.xcassets/AppIcon.appiconset/Contents.json | {
"images": [
{
"idiom": "iphone",
"size": "29x29",
"scale": "2x"
},
{
"idiom": "iphone",
"size": "29x29",
"scale": "3x"
},
{
"idiom": "iphone",
"size": "40x40",
"scale": "2x"
},
{
"idiom": "iphone",
"size": "40x40",
"... | 4,759 |
0 | petrpan-code/react-native-modal/react-native-modal/example/ios | petrpan-code/react-native-modal/react-native-modal/example/ios/ModalExampleTests/Info.plist | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifi... | 4,760 |
0 | petrpan-code/react-native-modal/react-native-modal/example/ios | petrpan-code/react-native-modal/react-native-modal/example/ios/ModalExampleTests/ModalExampleTests.m | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#import <UIKit/UIKit.h>
#import <XCTest/XCTest.h>
#import <React/RCTLog.h>
#import <React/RCTRootView.h>
#define TIMEOUT_SECONDS... | 4,761 |
0 | petrpan-code/react-native-modal/react-native-modal/example | petrpan-code/react-native-modal/react-native-modal/example/src/Navigator.tsx | import {createAppContainer, NavigationScreenComponent} from 'react-navigation';
import {createStackNavigator} from 'react-navigation-stack';
import {SceneInterpolatorProps} from 'react-navigation-stack/lib/typescript/types';
import HomePage from './pages/HomePage';
import BackdropCloseModal from './modals/BackdropClose... | 4,762 |
0 | petrpan-code/react-native-modal/react-native-modal/example/src | petrpan-code/react-native-modal/react-native-modal/example/src/modals/BackdropCloseModal.tsx | import React from 'react';
// @ts-ignore
import Modal from 'react-native-modal';
import ModalBaseScene from '../utils/ModalBaseScene';
import DefaultModalContent from '../utils/DefaultModalContent';
class BackdropCloseModal extends ModalBaseScene {
renderModal(): React.ReactElement<any> {
return (
<Modal
... | 4,763 |
0 | petrpan-code/react-native-modal/react-native-modal/example/src | petrpan-code/react-native-modal/react-native-modal/example/src/modals/BottomHalfModal.tsx | import React from 'react';
import {StyleSheet} from 'react-native';
// @ts-ignore
import Modal from 'react-native-modal';
import ModalBaseScene from '../utils/ModalBaseScene';
import DefaultModalContent from '../utils/DefaultModalContent';
class BottomHalfModal extends ModalBaseScene {
renderModal(): React.ReactElem... | 4,764 |
0 | petrpan-code/react-native-modal/react-native-modal/example/src | petrpan-code/react-native-modal/react-native-modal/example/src/modals/CustomBackdropModal.tsx | import React from 'react';
import {SafeAreaView, StyleSheet, Text} from 'react-native';
// @ts-ignore
import Modal from 'react-native-modal';
import ModalBaseScene from '../utils/ModalBaseScene';
import DefaultModalContent from '../utils/DefaultModalContent';
class CustomBackdropModal extends ModalBaseScene {
render... | 4,765 |
0 | petrpan-code/react-native-modal/react-native-modal/example/src | petrpan-code/react-native-modal/react-native-modal/example/src/modals/DefaultModal.tsx | import React from 'react';
// @ts-ignore
import Modal from 'react-native-modal';
import ModalBaseScene from '../utils/ModalBaseScene';
import DefaultModalContent from '../utils/DefaultModalContent';
class DefaultModal extends ModalBaseScene {
renderModal(): React.ReactElement<any> {
return (
<Modal testID... | 4,766 |
0 | petrpan-code/react-native-modal/react-native-modal/example/src | petrpan-code/react-native-modal/react-native-modal/example/src/modals/FancyModal.tsx | import React from 'react';
// @ts-ignore
import Modal from 'react-native-modal';
import ModalBaseScene from '../utils/ModalBaseScene';
import DefaultModalContent from '../utils/DefaultModalContent';
class FancyModal extends ModalBaseScene {
renderModal(): React.ReactElement<any> {
return (
<Modal
... | 4,767 |
0 | petrpan-code/react-native-modal/react-native-modal/example/src | petrpan-code/react-native-modal/react-native-modal/example/src/modals/ScrollableModal.tsx | import React from 'react';
import {ScrollView, StyleSheet, Text, View} from 'react-native';
// @ts-ignore
import Modal from 'react-native-modal';
import ModalBaseScene from '../utils/ModalBaseScene';
type State = {
scrollOffset: null | number;
};
class ScrollableModal extends ModalBaseScene<State> {
public scroll... | 4,768 |
0 | petrpan-code/react-native-modal/react-native-modal/example/src | petrpan-code/react-native-modal/react-native-modal/example/src/modals/SlideModal.tsx | import React from 'react';
// @ts-ignore
import Modal from 'react-native-modal';
import ModalBaseScene from '../utils/ModalBaseScene';
import DefaultModalContent from '../utils/DefaultModalContent';
class SlideModal extends ModalBaseScene {
renderModal(): React.ReactElement<any> {
return (
<Modal
... | 4,769 |
0 | petrpan-code/react-native-modal/react-native-modal/example/src | petrpan-code/react-native-modal/react-native-modal/example/src/modals/SlowModal.tsx | import React from 'react';
// @ts-ignore
import Modal from 'react-native-modal';
import ModalBaseScene from '../utils/ModalBaseScene';
import DefaultModalContent from '../utils/DefaultModalContent';
class SlowModal extends ModalBaseScene {
renderModal(): React.ReactElement<any> {
return (
<Modal
t... | 4,770 |
0 | petrpan-code/react-native-modal/react-native-modal/example/src | petrpan-code/react-native-modal/react-native-modal/example/src/modals/SwipeableModal.tsx | import React from 'react';
// @ts-ignore
import Modal from 'react-native-modal';
import ModalBaseScene from '../utils/ModalBaseScene';
import DefaultModalContent from '../utils/DefaultModalContent';
class SwipeableModal extends ModalBaseScene {
renderModal(): React.ReactElement<any> {
return (
<Modal
... | 4,771 |
0 | petrpan-code/react-native-modal/react-native-modal/example/src | petrpan-code/react-native-modal/react-native-modal/example/src/modals/WithoutBackdropModal.tsx | import React from 'react';
// @ts-ignore
import Modal from 'react-native-modal';
import ModalBaseScene from '../utils/ModalBaseScene';
import DefaultModalContent from '../utils/DefaultModalContent';
class WithoutBackdropModal extends ModalBaseScene {
renderModal(): React.ReactElement<any> {
return (
<Modal... | 4,772 |
0 | petrpan-code/react-native-modal/react-native-modal/example/src | petrpan-code/react-native-modal/react-native-modal/example/src/modals/WithoutCoverScreenModal.tsx | import React from 'react';
// @ts-ignore
import Modal from 'react-native-modal';
import ModalBaseScene from '../utils/ModalBaseScene';
import DefaultModalContent from '../utils/DefaultModalContent';
class WithoutCoverScreenModal extends ModalBaseScene {
renderModal(): React.ReactElement<any> {
return (
<Mo... | 4,773 |
0 | petrpan-code/react-native-modal/react-native-modal/example/src | petrpan-code/react-native-modal/react-native-modal/example/src/pages/HomePage.tsx | import React from 'react';
import {Button, StyleSheet, View} from 'react-native';
import {NavigationInjectedProps} from 'react-navigation';
type Props = NavigationInjectedProps;
class HomePage extends React.Component<Props> {
static navigationOptions = {
title: 'Home',
};
makeNavigationAction = (to: string... | 4,774 |
0 | petrpan-code/react-native-modal/react-native-modal/example/src | petrpan-code/react-native-modal/react-native-modal/example/src/utils/DefaultModalContent.tsx | import React from 'react';
import {Button, StyleSheet, Text, View} from 'react-native';
type Props = {
onPress: () => any;
};
const DefaultModalContent: React.FC<Props> = props => (
<View style={styles.content}>
<Text style={styles.contentTitle}>Hi 👋!</Text>
<Button testID={'close-button'} onPress={props... | 4,775 |
0 | petrpan-code/react-native-modal/react-native-modal/example/src | petrpan-code/react-native-modal/react-native-modal/example/src/utils/ModalBaseScene.tsx | import React, {Component} from 'react';
import {Button, StyleSheet, View} from 'react-native';
type State<P> = P & {
visible: boolean;
};
abstract class ModalBaseScene<P extends object = {}> extends Component<
any,
State<P>
> {
abstract renderModal(): React.ReactElement<any>;
constructor(props, state?: P) ... | 4,776 |
0 | petrpan-code/react-native-modal/react-native-modal | petrpan-code/react-native-modal/react-native-modal/src/index.ts | import {ReactNativeModal} from './modal';
export {ModalProps, ReactNativeModal, OnSwipeCompleteParams} from './modal';
export {
AnimationEvent,
Animations,
SupportedAnimation,
Orientation,
Direction,
PresentationStyle,
OnOrientationChange,
GestureResponderEvent,
} from './types';
export default ReactN... | 4,777 |
0 | petrpan-code/react-native-modal/react-native-modal | petrpan-code/react-native-modal/react-native-modal/src/modal.style.ts | import {StyleSheet} from 'react-native';
export default StyleSheet.create({
backdrop: {
position: 'absolute',
top: 0,
bottom: 0,
left: 0,
right: 0,
opacity: 0,
backgroundColor: 'black',
},
content: {
flex: 1,
justifyContent: 'center',
},
containerBox: {
zIndex: 2,
... | 4,778 |
0 | petrpan-code/react-native-modal/react-native-modal | petrpan-code/react-native-modal/react-native-modal/src/modal.tsx | import * as React from 'react';
import {
Animated,
DeviceEventEmitter,
Dimensions,
EmitterSubscription,
InteractionManager,
KeyboardAvoidingView,
Modal,
PanResponder,
BackHandler,
PanResponderGestureState,
PanResponderInstance,
Platform,
StyleProp,
TouchableWithoutFeedback,
View,
ViewSty... | 4,779 |
0 | petrpan-code/react-native-modal/react-native-modal | petrpan-code/react-native-modal/react-native-modal/src/types.ts | import {Animation, CustomAnimation} from 'react-native-animatable';
import {NativeSyntheticEvent, NativeTouchEvent} from 'react-native';
export type OrNull<T> = null | T;
export type SupportedAnimation = Animation | CustomAnimation;
export type Animations = {
animationIn: string;
animationOut: string;
};
export ... | 4,780 |
0 | petrpan-code/react-native-modal/react-native-modal | petrpan-code/react-native-modal/react-native-modal/src/utils.ts | import {Dimensions} from 'react-native';
import * as animatable from 'react-native-animatable';
import {CustomAnimation, Animation} from 'react-native-animatable';
import {Animations} from './types';
const {height, width} = Dimensions.get('window');
export const initializeAnimations = () => {
// Since react-native-... | 4,781 |
0 | petrpan-code/openblocks-dev | petrpan-code/openblocks-dev/openblocks/LICENSE | GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
... | 4,782 |
0 | petrpan-code/openblocks-dev | petrpan-code/openblocks-dev/openblocks/README.md | <div align="center">
<h1 style="border-bottom: none">
<b><a href="https://openblocks.dev/">Openblocks</a></b><br />
The Open Source Retool Alternative
</h1>
<p>
Build internal tools fast, with no limitations
</p>
</div>
<img src="/docs/.gitbook/assets/Bu2fpz1h01.gif"/>
## 📢 Use Openblocks in 3 steps
1. C... | 4,783 |
0 | petrpan-code/openblocks-dev | petrpan-code/openblocks-dev/openblocks/app.json | {
"name": "Openblocks",
"description": "Openblocks is a developer-friendly open-source low code platform to build internal apps within minutes.",
"repository": "https://github.com/openblocks-dev/openblocks",
"logo": "https://cdn-files.openblocks.dev/logo.png",
"keywords": [
"low code",
"develop tool"
... | 4,784 |
0 | petrpan-code/openblocks-dev | petrpan-code/openblocks-dev/openblocks/heroku.yml | build:
docker:
web: deploy/heroku/Dockerfile | 4,785 |
0 | petrpan-code/openblocks-dev/openblocks | petrpan-code/openblocks-dev/openblocks/client/.yarnrc.yml | nodeLinker: node-modules
npmRegistryServer: "https://registry.npmmirror.com"
plugins:
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: "@yarnpkg/plugin-workspace-tools"
yarnPath: .yarn/releases/yarn-3.2.4.cjs
| 4,786 |
0 | petrpan-code/openblocks-dev/openblocks | petrpan-code/openblocks-dev/openblocks/client/README.md | # Openblocks' frontend
## How to contribute
### Start a local backend server
#### Use prebuilt docker image
Simply run below command to start a backend server.
```bash
docker run -d --name openblocks -p 3000:3000 -v "$PWD/stacks:/openblocks-stacks" openblocksdev/openblocks-ce
```
For more information, view our do... | 4,787 |
0 | petrpan-code/openblocks-dev/openblocks | petrpan-code/openblocks-dev/openblocks/client/VERSION | 1.1.8 | 4,788 |
0 | petrpan-code/openblocks-dev/openblocks | petrpan-code/openblocks-dev/openblocks/client/jest.config.js | export default {
projects: ["<rootDir>/packages/openblocks", "<rootDir>/packages/openblocks-core"],
};
| 4,789 |
0 | petrpan-code/openblocks-dev/openblocks | petrpan-code/openblocks-dev/openblocks/client/package.json | {
"name": "taco-fe",
"version": "0.1.0",
"type": "module",
"private": true,
"workspaces": [
"packages/*"
],
"engines": {
"node": "^14.18.0 || >=16.0.0"
},
"scripts": {
"start": "yarn workspace openblocks start",
"start:ee": "REACT_APP_EDITION=enterprise yarn workspace openblocks start"... | 4,790 |
0 | petrpan-code/openblocks-dev/openblocks | petrpan-code/openblocks-dev/openblocks/client/svgo.config.js | // svgo.config.js
export default {
js2svg: {
indent: 2,
pretty: true,
},
plugins: ["cleanupIds", "prefixIds", "removeTitle"],
};
| 4,791 |
0 | petrpan-code/openblocks-dev/openblocks | petrpan-code/openblocks-dev/openblocks/client/yarn.lock | # This file is generated by running "yarn install" inside your project.
# Manual changes might be lost - proceed with caution!
__metadata:
version: 6
cacheKey: 8
"@adobe/css-tools@npm:^4.0.1":
version: 4.0.1
resolution: "@adobe/css-tools@npm:4.0.1"
checksum: 80226e2229024c21da9ffa6b5cd4a34b931f071e06f45aba4... | 4,792 |
0 | petrpan-code/openblocks-dev/openblocks/client/.yarn | petrpan-code/openblocks-dev/openblocks/client/.yarn/patches/eslint-plugin-only-ascii-npm-0.0.0-29e3417685.patch | diff --git a/lib/rules/only-ascii.js b/lib/rules/only-ascii.js
index 7d76f9d37a99be35bab91d7a437073b112e2e985..b6ccac270f309232471d8e26ad8ec1bb782079f7 100644
--- a/lib/rules/only-ascii.js
+++ b/lib/rules/only-ascii.js
@@ -39,7 +39,7 @@ function create (context) {
// Get tokens which include non-ascii characte... | 4,793 |
0 | petrpan-code/openblocks-dev/openblocks/client/.yarn | petrpan-code/openblocks-dev/openblocks/client/.yarn/patches/react-virtualized-npm-9.22.3-0fff3cbf64.patch | diff --git a/dist/es/WindowScroller/utils/onScroll.js b/dist/es/WindowScroller/utils/onScroll.js
index d00f0f18c6596e4e57f4f762f91fed4282610c91..c8496e8eabafdf9cf6071986ec446839d7b65556 100644
--- a/dist/es/WindowScroller/utils/onScroll.js
+++ b/dist/es/WindowScroller/utils/onScroll.js
@@ -71,4 +71,3 @@ export function... | 4,794 |
0 | petrpan-code/openblocks-dev/openblocks/client/.yarn/plugins | petrpan-code/openblocks-dev/openblocks/client/.yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs | /* eslint-disable */
//prettier-ignore
module.exports = {
name: "@yarnpkg/plugin-workspace-tools",
factory: function (require) {
var plugin=(()=>{var wr=Object.create,me=Object.defineProperty,Sr=Object.defineProperties,vr=Object.getOwnPropertyDescriptor,Hr=Object.getOwnPropertyDescriptors,$r=Object.getOwnPropertyNames,... | 4,795 |
0 | petrpan-code/openblocks-dev/openblocks/client/.yarn | petrpan-code/openblocks-dev/openblocks/client/.yarn/releases/yarn-3.2.4.cjs | #!/usr/bin/env node
/* eslint-disable */
//prettier-ignore
(()=>{var nfe=Object.create;var HS=Object.defineProperty;var sfe=Object.getOwnPropertyDescriptor;var ofe=Object.getOwnPropertyNames;var afe=Object.getPrototypeOf,Afe=Object.prototype.hasOwnProperty;var J=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy... | 4,796 |
0 | petrpan-code/openblocks-dev/openblocks/client/config | petrpan-code/openblocks-dev/openblocks/client/config/test/jest.config.js | import path from "node:path";
import { buildVars } from "openblocks-dev-utils/buildVars.js";
import { currentDirName } from "openblocks-dev-utils/util.js";
const globals = {};
buildVars.forEach(({ name, defaultValue }) => {
globals[name] = process.env[name] || defaultValue;
});
const edition = process.env.REACT_APP_... | 4,797 |
0 | petrpan-code/openblocks-dev/openblocks/client/config | petrpan-code/openblocks-dev/openblocks/client/config/test/jest.setup-after-env.js | // jest-dom adds custom jest matchers for asserting on DOM nodes.
// allows you to do things like:
// expect(element).toHaveTextContent(/react/i)
// learn more: https://github.com/testing-library/jest-dom
import "@testing-library/jest-dom";
// implementation of window.resizeTo for dispatching event
window.resizeTo = f... | 4,798 |
0 | petrpan-code/openblocks-dev/openblocks/client/config | petrpan-code/openblocks-dev/openblocks/client/config/test/jest.setup.js | if (typeof window !== "undefined") {
require("whatwg-fetch");
}
| 4,799 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.