Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
re2005 committed Apr 30, 2020
0 parents commit 48f85aa
Show file tree
Hide file tree
Showing 108 changed files with 16,587 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
module.exports = {
root: true,
env: {
node: true
},
extends: [
'plugin:vue/recommended',
'@vue/standard',
'@vue/typescript'
],
rules: {
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
semi: [
2,
'always'
],
indent: 'off',
'vue/script-indent': ['warn', 4, {
baseIndent: 1
}],
'vue/html-indent': ['warn', 4, {
baseIndent: 1
}],
'space-before-function-paren': [
'error', { anonymous: 'ignore', named: 'never' }
],
'vue/html-closing-bracket-spacing': ['error', {
startTag: 'never',
endTag: 'never',
selfClosingTag: 'always'
}],
'vue/no-v-html': 0,
'generator-star-spacing': 0,
'object-curly-spacing': ['error', 'always', { objectsInObjects: true }],
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': ['error', {
vars: 'all',
args: 'none',
ignoreRestSiblings: false
}],
camelcase: 'off'
},
parserOptions: {
parser: '@typescript-eslint/parser'
},
overrides: [
{
files: [
'**/__tests__/*.{j,t}s?(x)',
'**/tests/unit/**/*.spec.{j,t}s?(x)'
],
env: {
jest: true
}
}
]
};
32 changes: 32 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
.DS_Store
node_modules
/dist
/platforms/*
/www

# local env files
.env.local
.env.*.local

# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

# Others
*.p12
*.der
*.cer
*.certSigningRequest
build.json
onepointfive.keystore
/plugins
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# 1point5 - The app that helps you with social distancing.
>1.5 assists you with social distancing. The app scans for nearby mobile devices and it warns you when a device enters your 1.5 meter parameter. The phone vibrates and a pop-up appears. The pop up contains a graphic that can be shown to the other person. It is a friendly reminder that aims to defuse the situation.
>This is a social distancing app and it works using Bluetooth. Devices of family members and so forth can be excluded. The parameter can be adjusted from a minimum of 1.5 meters up to 4 meters, depending on your preference or local regulation. 1.5 aims to help stop the spread of COVID-19. It is not full proof.
>Please follow the advice of the World Health Organisation and your local government.

## Getting Started

The app won't work when running on the browser.

First make sure you have JAVA, Android Studio/Xcode installed.
Check for more info: https://cordova.apache.org/docs/en/latest/guide/cli/

Installing dependencies
```
npm i
```

Building the APP.
This command will trigger VUE Cli and will build the app inside the `www` folder.
```
npm run build
```

Once the build is finished run:
Remember that the only way to test it is by connecting your iPhone or Android via USB.
```
npm run andoid
//or
npm run ios
```
5 changes: 5 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
]
};
92 changes: 92 additions & 0 deletions config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
<?xml version='1.0' encoding='utf-8'?>
<widget id="app.onepointfive" version="1.0.2" xmlns="http://www.w3.org/ns/widgets">
<name short="1point5">app 1point5</name>
<description>
1point5 - Please keep safe distance
</description>
<author email="[email protected]" href="https://github.com/UNTILabs/1point5">
Renato Cardoso
</author>
<content src="index.html"/>
<access origin="*"/>
<allow-intent href="http://*/*"/>
<allow-intent href="https://*/*"/>
<allow-intent href="tel:*"/>
<allow-intent href="sms:*"/>
<allow-intent href="mailto:*"/>
<allow-intent href="geo:*"/>
<preference name="Orientation" value="portrait"/>
<preference name="StatusBarBackgroundColor" value="#000000"/>
<platform name="android">
<allow-intent href="market:*"/>
<preference name="SplashMaintainAspectRatio" value="true"/>
<preference name="StatusBarOverlaysWebView" value="true"/>
<preference name="Orientation" value="portrait"/>
<icon density="ldpi" src="res/icon/android/ldpi.png"/>
<icon density="mdpi" src="res/icon/android/mdpi.png"/>
<icon density="hdpi" src="res/icon/android/hdpi.png"/>
<icon density="xhdpi" src="res/icon/android/xhdpi.png"/>
<icon density="xxhdpi" src="res/icon/android/xxhdpi.png"/>
<icon density="xxxhdpi" src="res/icon/android/xxxhdpi.png"/>
<splash density="port-ldpi" src="res/screen/android/splash-port-ldpi.png"/>
<splash density="port-mdpi" src="res/screen/android/splash-port-mdpi.png"/>
<splash density="port-hdpi" src="res/screen/android/splash-port-hdpi.png"/>
<splash density="port-xhdpi" src="res/screen/android/splash-port-xhdpi.png"/>
<splash density="port-xxhdpi" src="res/screen/android/splash-port-xxhdpi.png"/>
<splash density="port-xxxhdpi" src="res/screen/android/splash-port-xxxhdpi.png"/>
</platform>
<platform name="ios">
<allow-intent href="itms:*"/>
<allow-intent href="itms-apps:*"/>
<preference name="target-device" value="handset"/>
<preference name="WKWebViewOnly" value="true"/>
<feature name="CDVWKWebViewEngine">
<param name="ios-package" value="CDVWKWebViewEngine"/>
</feature>
<preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine"/>
<preference name="webviewbounce" value="false"/>
<preference name="DisallowOverscroll" value="true"/>
<edit-config file="*-Info.plist" mode="merge" target="CFBundleDisplayName">
<string>1point5</string>
</edit-config>
<icon height="1024" src="res/icon/ios/icon-1024.png" width="1024"/>
<icon height="29" src="res/icon/ios/icon-small.png" width="29"/>
<icon height="58" src="res/icon/ios/[email protected]" width="58"/>
<icon height="87" src="res/icon/ios/[email protected]" width="87"/>
<icon height="40" src="res/icon/ios/icon-small-40.png" width="40"/>
<icon height="80" src="res/icon/ios/[email protected]" width="80"/>
<icon height="120" src="res/icon/ios/[email protected]" width="120"/>
<icon height="50" src="res/icon/ios/icon-small-50.png" width="50"/>
<icon height="100" src="res/icon/ios/[email protected]" width="100"/>
<icon height="57" src="res/icon/ios/icon.png" width="57"/>
<icon height="114" src="res/icon/ios/[email protected]" width="114"/>
<icon height="60" src="res/icon/ios/icon-60.png" width="60"/>
<icon height="120" src="res/icon/ios/[email protected]" width="120"/>
<icon height="180" src="res/icon/ios/[email protected]" width="180"/>
<icon height="72" src="res/icon/ios/icon-72.png" width="72"/>
<icon height="144" src="res/icon/ios/[email protected]" width="144"/>
<icon height="76" src="res/icon/ios/icon-76.png" width="76"/>
<icon height="152" src="res/icon/ios/[email protected]" width="152"/>
<icon height="167" src="res/icon/ios/icon-167.png" width="167"/>
<icon height="167" src="res/icon/ios/[email protected]" width="167"/>
<splash src="res/screen/ios/Default@2x~iphone~anyany.png"/>
<splash src="res/screen/ios/Default@2x~iphone~comany.png"/>
<splash src="res/screen/ios/Default@3x~iphone~anyany.png"/>
<splash src="res/screen/ios/Default@3x~iphone~comany.png"/>
<splash src="res/screen/ios/Default@2x~ipad~anyany.png"/>
<splash src="res/screen/ios/Default@2x~ipad~comany.png"/>
</platform>
<plugin name="cordova-plugin-whitelist" spec="^1.3.4"/>
<plugin name="cordova-plugin-ble-central" spec="^1.2.4">
<variable name="BLUETOOTH_USAGE_DESCRIPTION"
value="Bluetooth is required to calculate the distance between your device and others around you"/>
</plugin>
<plugin name="cordova-plugin-vibration" spec="^3.1.1"/>
<plugin name="cordova-plugin-dialogs" spec="^2.0.2"/>
<plugin name="cordova-plugin-wkwebview-engine" spec="^1.2.1"/>
<plugin name="cordova-plugin-statusbar" spec="^2.4.3"/>
<plugin name="cordova-plugin-splashscreen" spec="^5.0.3"/>
<plugin name="cordova-plugin-open-app-settings" spec="~0.1.3"/>
<plugin name="cordova-plugin-device" spec="~2.0.3"/>
<plugin name="cordova-plugin-bluetoothle" spec="~4.5.10"/>
</widget>
Binary file added docs/1point5.sketch
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/logo-512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/promo-180.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/promo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions 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 48f85aa

Please sign in to comment.