Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
umarsheikh13 committed Jan 25, 2020
0 parents commit 009574b
Show file tree
Hide file tree
Showing 631 changed files with 107,067 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"presets": [
["env", {
"targets": {
"browsers": ["last 2 versions"]
}
}]
],
"plugins": [
[
"transform-react-jsx",
{
"pragma": "preact.h"
}
]
]
}
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
root = true

[*]
indent_style = space
indent_size = 4
charset = utf-8
insert_final_newline = true
end_of_line = lf
# editorconfig-tools is unable to ignore longs strings or urls
max_line_length = null
34 changes: 34 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"extends": "airbnb",
"env": {
"browser": true
},
"rules": {
"func-names": [
"error",
"never"
],
"indent": ["error", 4],
"react/jsx-indent": [1, 4],
"react/jsx-indent-props": [1, 4],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/react-in-jsx-scope": "off",
"react/no-array-index-key": "off",
"class-methods-use-this": "off",
"jsx-a11y/no-static-element-interactions": "off",
"import/no-dynamic-require": "off",
"comma-dangle": "off",
"global-require": "off",
"eqeqeq": "off",
"max-len": "off",
"no-new": "off",
"no-unused-vars": ["error", { "vars": "all", "args": "after-used", "ignoreRestSiblings": false, "varsIgnorePattern": "preact" }],
"react/no-unknown-property": [2, { "ignore": ["stroke-linecap", "stroke-linejoin", "stop-color"] }]
},
"globals": {
"vars": true,
"breadcrumbs": true,
"device": true,
"cordova": true
}
}
28 changes: 28 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
*.com
*.class
*.dll
*.exe
*.o
*.so
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
*.log
*.sql
*.sqlite
build
build.zip
node_modules
app/www
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
save-exact = true
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
11.3.0
121 changes: 121 additions & 0 deletions app/config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
<?xml version="1.0" encoding="utf-8" ?>
<widget
id="app.website"
version="1.0.0"
xmlns="http://www.w3.org/ns/widgets"
xmlns:gap="http://phonegap.com/ns/1.0"
>

<name>App Name</name>
<description>App Description</description>
<author email="[email protected]" href="https://website.com">Author Name</author>
<content src="index.html" />

<!-- Default preferences -->

<icon src="icon.png" />

<!-- iOS specific configuration -->

<platform name="ios">
<preference name="orientation" value="portrait" />
<preference name="deployment-target" value="10.0" />
<splash src="res/ios/Default@2x~universal~anyany.png" />
<icon src="res/ios/[email protected]" height="40" width="40" />
<icon src="res/ios/[email protected]" height="60" width="60" />
<icon src="res/ios/[email protected]" height="29" width="29" />
<icon src="res/ios/[email protected]" height="58" width="58" />
<icon src="res/ios/[email protected]" height="87" width="87" />
<icon src="res/ios/[email protected]" height="40" width="40" />
<icon src="res/ios/[email protected]" height="80" width="80" />
<icon src="res/ios/[email protected]" height="120" width="120" />
<icon src="res/ios/[email protected]" height="57" width="57" />
<icon src="res/ios/[email protected]" height="114" width="114" />
<icon src="res/ios/[email protected]" height="60" width="60" />
<icon src="res/ios/[email protected]" height="120" width="120" />
<icon src="res/ios/[email protected]" height="180" width="180" />
<icon src="res/ios/[email protected]" height="76" width="76" />
<icon src="res/ios/[email protected]" height="20" width="20" />
<icon src="res/ios/[email protected]" height="40" width="40" />
<icon src="res/ios/[email protected]" height="29" width="29" />
<icon src="res/ios/[email protected]" height="58" width="58" />
<icon src="res/ios/[email protected]" height="40" width="40" />
<icon src="res/ios/[email protected]" height="80" width="80" />
<icon src="res/ios/[email protected]" height="50" width="50" />
<icon src="res/ios/[email protected]" height="100" width="100" />
<icon src="res/ios/[email protected]" height="72" width="72" />
<icon src="res/ios/[email protected]" height="144" width="144" />
<icon src="res/ios/[email protected]" height="76" width="76" />
<icon src="res/ios/[email protected]" height="152" width="152" />
<icon src="res/ios/[email protected]" height="228" width="228" />
<icon src="res/ios/[email protected]" height="167" width="167" />
<icon src="res/ios/[email protected]" height="1024" width="1024" />
</platform>

<!-- Android specific configuration -->

<platform name="android">
<preference name="android-minSdkVersion" value="28" />
<preference name="loadUrlTimeoutValue" value="700000" />
<icon src="res/android/ldpi.png" density="ldpi" />
<icon src="res/android/mdpi.png" density="mdpi" />
<icon src="res/android/hdpi.png" density="hdpi" />
<icon src="res/android/xhdpi.png" density="xhdpi" />
<icon src="res/android/xxhdpi.png" density="xxhdpi" />
<icon src="res/android/xxxhdpi.png" density="xxxhdpi" />
</platform>

<!-- Cordova plugins -->

<plugin name="cordova-plugin-device" />
<plugin name="cordova-plugin-whitelist" />
<plugin name="cordova-plugin-network-information" />
<plugin name="cordova-plugin-dialogs" />
<!-- <plugin name="cordova-plugin-geolocation" /> -->
<!-- <plugin name="cordova-plugin-inappbrowser" /> -->
<!-- <plugin name="cordova-plugin-file-transfer" /> -->
<!-- <plugin name="cordova-plugin-camera" /> -->
<!-- <plugin name="cordova-plugin-statusbar" /> -->
<!-- <plugin name="onesignal-cordova-plugin" source="npm" /> -->
<!-- <plugin name="cordova-plugin-app-version" source="npm" /> -->
<!-- <plugin name="cordova-plugin-badge" source="npm" /> -->
<!-- <plugin name="cordova-plugin-customurlscheme" source="npm">
<variable name="URL_SCHEME" value="appslug" />
</plugin> -->

<!-- System -->

<preference name="orientation" value="portrait" />
<preference name="DisallowOverscroll" value="true" />

<!-- Build -->

<preference name="phonegap-version" value="cli-9.0.0" />
<preference name="android-build-tool" value="gradle" />

<!-- Access to domains -->

<preference name="AllowInlineMediaPlayback" value="true" />
<preference name="MediaPlaybackRequiresUserAction" value="false" />
<access origin="http://127.0.0.1*"/>
<access origin="https://website.com/*" />
<allow-navigation href="*" />
<allow-intent href="mailto:*" />
<allow-intent href="tel:*" />

<!-- iOS specific (info.plist) -->

<!-- <edit-config target="NSCameraUsageDescription" file="*-Info.plist" mode="merge">
<string>The description for camera usage/permission</string>
</edit-config>
<edit-config target="NSPhotoLibraryUsageDescription" file="*-Info.plist" mode="merge">
<string>The description for getting photos from gallery</string>
</edit-config>
<edit-config target="NSPhotoLibraryAddUsageDescription" file="*-Info.plist" mode="merge">
<string>The description for saving photos from gallery</string>
</edit-config>
<edit-config target="NSLocationWhenInUseUsageDescription" file="*-Info.plist" mode="merge">
<string>The description for geolocation permission</string>
</edit-config> -->

</widget>
23 changes: 23 additions & 0 deletions app/hooks/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!--
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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 by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
-->
# Cordova Hooks

Cordova Hooks represent special scripts which could be added by application and plugin developers or even by your own build system to customize cordova commands. See Hooks Guide for more details: http://cordova.apache.org/docs/en/edge/guide_appdev_hooks_index.md.html#Hooks%20Guide.
Loading

0 comments on commit 009574b

Please sign in to comment.