Compare commits
196 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0154aeae36 | ||
|
|
dccc943713 | ||
|
|
e05a142a86 | ||
|
|
5d239c958f | ||
|
|
4c2ff0d1ae | ||
|
|
10dc61fcdc | ||
|
|
bb14534fa4 | ||
|
|
f6b313e1af | ||
|
|
7bca6b7b5f | ||
|
|
82e1f98e66 | ||
|
|
294f5d7252 | ||
|
|
38328ce473 | ||
|
|
0012a62f15 | ||
|
|
2e95de4f61 | ||
|
|
888901b01a | ||
|
|
8b6c0a966e | ||
|
|
d492304870 | ||
|
|
56369c2914 | ||
|
|
d6fff31a4f | ||
|
|
0765375063 | ||
|
|
50e53f8507 | ||
|
|
6c387723e8 | ||
|
|
2592ea3f41 | ||
|
|
481b575b92 | ||
|
|
90fa5399aa | ||
|
|
2ab3089f8f | ||
|
|
fcabda87f5 | ||
|
|
aa6ea7a4c4 | ||
|
|
2b8748ca5b | ||
|
|
25c00a9599 | ||
|
|
9faf49847a | ||
|
|
c0dfaf710d | ||
|
|
2692184184 | ||
|
|
6e29139a5b | ||
|
|
5a3a3eb0e3 | ||
|
|
4b87b6f9fe | ||
|
|
d9e017d64f | ||
|
|
7c94f2f838 | ||
|
|
3c163905fc | ||
|
|
a1018180a9 | ||
|
|
344bc59134 | ||
|
|
639ec0adb1 | ||
|
|
65c01759f7 | ||
|
|
d98b63ebc8 | ||
|
|
fe2d070426 | ||
|
|
e7334d8a7c | ||
|
|
3a55fd7402 | ||
|
|
f3945a7da4 | ||
|
|
c4d68df3d0 | ||
|
|
4f663f8868 | ||
|
|
0f9706dd60 | ||
|
|
1258acdfeb | ||
|
|
92cc65fecf | ||
|
|
2dd97ee953 | ||
|
|
7125ca89d4 | ||
|
|
a276047de5 | ||
|
|
2cf337a2c7 | ||
|
|
9aa2ae6410 | ||
|
|
8e9a5da964 | ||
|
|
4b24ab3dd0 | ||
|
|
9a2a0814f9 | ||
|
|
014a65d2a5 | ||
|
|
acfb61a16c | ||
|
|
3f11ea7938 | ||
|
|
c135be47b8 | ||
|
|
cf1f58e194 | ||
|
|
1f9d9a84e8 | ||
|
|
cf587fdb74 | ||
|
|
d05c7b8d09 | ||
|
|
19e5199e84 | ||
|
|
e84be393f3 | ||
|
|
3f2189bab5 | ||
|
|
634ff42538 | ||
|
|
8c7b07ef44 | ||
|
|
f0f7378bda | ||
|
|
f0a8b1fb6c | ||
|
|
1077e8d4b1 | ||
|
|
271a70f856 | ||
|
|
15acdc0a38 | ||
|
|
0b5c77baea | ||
|
|
f1c05de864 | ||
|
|
926ae242c6 | ||
|
|
340e2f2f0f | ||
|
|
01269e8b76 | ||
|
|
5ec9a651e1 | ||
|
|
26ee973818 | ||
|
|
ffeeb87b90 | ||
|
|
a8a426d175 | ||
|
|
3c97dd814c | ||
|
|
94f761ede5 | ||
|
|
64fe3a4760 | ||
|
|
a732216d11 | ||
|
|
25633154ad | ||
|
|
8095255186 | ||
|
|
c084a61a7a | ||
|
|
5424307e9e | ||
|
|
f2f99e3aba | ||
|
|
d91eeb74d1 | ||
|
|
2a550d3d59 | ||
|
|
a80d600790 | ||
|
|
1408e55894 | ||
|
|
8f59d35283 | ||
|
|
813aee147f | ||
|
|
d19cf53ab8 | ||
|
|
e1f1e92fef | ||
|
|
35e2b2ece1 | ||
|
|
85e0794655 | ||
|
|
d333a961f3 | ||
|
|
b59ee27438 | ||
|
|
4cf0fb3de7 | ||
|
|
35a96dca1b | ||
|
|
f685a87c74 | ||
|
|
2eda72627c | ||
|
|
c6fb87df39 | ||
|
|
da0485b1f1 | ||
|
|
71d314ce65 | ||
|
|
588389fc75 | ||
|
|
867ecc590d | ||
|
|
b86cc7f9b1 | ||
|
|
154bed1df9 | ||
|
|
da903eee3f | ||
|
|
261a5d2b46 | ||
|
|
3684a0d578 | ||
|
|
63de31a311 | ||
|
|
8d193bf225 | ||
|
|
56d44bb3cc | ||
|
|
186d229916 | ||
|
|
0d794b7456 | ||
|
|
541a2f18c8 | ||
|
|
2f522a052d | ||
|
|
304dc42b97 | ||
|
|
21c94147f1 | ||
|
|
d3d441caae | ||
|
|
9bcc92ba37 | ||
|
|
029d456dde | ||
|
|
edb6174055 | ||
|
|
6ac1b57d26 | ||
|
|
7d0289ea4b | ||
|
|
0e8c8b63da | ||
|
|
3cbcc63c78 | ||
|
|
6db00e99c8 | ||
|
|
ab26d42741 | ||
|
|
3be513eb09 | ||
|
|
086a25ec7a | ||
|
|
cdbed51f74 | ||
|
|
aa00225b3e | ||
|
|
fd5ce7fc16 | ||
|
|
814d75dce5 | ||
|
|
a15e62964c | ||
|
|
e92306e4b1 | ||
|
|
509629c9f4 | ||
|
|
d9ad10ae4f | ||
|
|
8c3290c0ff | ||
|
|
dd26ddf69c | ||
|
|
793acc618c | ||
|
|
f30fa9d5a3 | ||
|
|
7b6c1f2b60 | ||
|
|
9d8051e287 | ||
|
|
3a4127b191 | ||
|
|
deab90177b | ||
|
|
2b4d4a4878 | ||
|
|
39759274fc | ||
|
|
fc5ef5da5a | ||
|
|
960923de40 | ||
|
|
780793e5be | ||
|
|
d622cd5d4d | ||
|
|
564029eb55 | ||
|
|
dde302a4bd | ||
|
|
dd6d152c85 | ||
|
|
bdb3ea0d72 | ||
|
|
cb3bdf9e92 | ||
|
|
5cfb9c9fda | ||
|
|
fcea9f5b5f | ||
|
|
5beece744d | ||
|
|
cf406dac30 | ||
|
|
ba176ea762 | ||
|
|
46d8afdb18 | ||
|
|
65dc85ee4f | ||
|
|
18f30a7025 | ||
|
|
638c4c3335 | ||
|
|
aaff1fcf85 | ||
|
|
1aa5c328b5 | ||
|
|
d47664b167 | ||
|
|
fa799daf05 | ||
|
|
7a18c1acd8 | ||
|
|
fbaac625ed | ||
|
|
d461af86e8 | ||
|
|
8b4ff83708 | ||
|
|
110962c1ee | ||
|
|
2abfc5407f | ||
|
|
263d031783 | ||
|
|
5d33decc7d | ||
|
|
4f26e63d21 | ||
|
|
278d0d0522 | ||
|
|
6442e8fc31 | ||
|
|
8ffe72ff97 |
11
.babelrc
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
"presets": [
|
||||||
|
// "@babel/preset-env"
|
||||||
|
"@babel/preset-react"
|
||||||
|
// "react-app"
|
||||||
|
],
|
||||||
|
"plugins": [
|
||||||
|
// "@babel/plugin-proposal-class-properties",
|
||||||
|
"react-hot-loader/babel"
|
||||||
|
]
|
||||||
|
}
|
||||||
6
.eslintrc
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extends": "react-app",
|
||||||
|
"globals": {
|
||||||
|
"chrome": "readonly"
|
||||||
|
}
|
||||||
|
}
|
||||||
70
.gitignore
vendored
|
|
@ -1,67 +1,21 @@
|
||||||
env/
|
# See https://help.github.com/ignore-files/ for more about ignoring files.
|
||||||
|
|
||||||
.vscode/
|
|
||||||
|
|
||||||
./frontend/App.test.js
|
|
||||||
|
|
||||||
# backened #
|
|
||||||
|
|
||||||
/backend/secret_settings.py
|
|
||||||
|
|
||||||
*.log
|
|
||||||
*.pot
|
|
||||||
*.pyc
|
|
||||||
__pycache__
|
|
||||||
db.sqlite3
|
|
||||||
media
|
|
||||||
|
|
||||||
# Backup files #
|
|
||||||
*.bak
|
|
||||||
|
|
||||||
# Distribution / packaging
|
|
||||||
.Python build/
|
|
||||||
develop-eggs/
|
|
||||||
dist/
|
|
||||||
downloads/
|
|
||||||
eggs/
|
|
||||||
.eggs/
|
|
||||||
lib/
|
|
||||||
lib64/
|
|
||||||
parts/
|
|
||||||
sdist/
|
|
||||||
var/
|
|
||||||
wheels/
|
|
||||||
*.egg-info/
|
|
||||||
.installed.cfg
|
|
||||||
*.egg
|
|
||||||
*.manifest
|
|
||||||
*.spec
|
|
||||||
|
|
||||||
# Installer logs
|
|
||||||
pip-log.txt
|
|
||||||
pip-delete-this-directory.txt
|
|
||||||
|
|
||||||
# frontend
|
|
||||||
/frontend/.env
|
|
||||||
|
|
||||||
# dependencies
|
# dependencies
|
||||||
/frontend/node_modules
|
/node_modules
|
||||||
/frontend/.pnp
|
|
||||||
/frontend/.pnp.js
|
|
||||||
|
|
||||||
# testing
|
# testing
|
||||||
/frontend/coverage
|
/coverage
|
||||||
|
|
||||||
# production
|
# production
|
||||||
/frontend/build
|
/build
|
||||||
|
|
||||||
# misc
|
# misc
|
||||||
/frontend/.DS_Store
|
.DS_Store
|
||||||
/frontend/.env.local
|
.env.local
|
||||||
/frontend/.env.development.local
|
.env.development.local
|
||||||
/frontend/.env.test.local
|
.env.test.local
|
||||||
/frontend/.env.production.local
|
.env.production.local
|
||||||
|
.history
|
||||||
|
|
||||||
/frontend/npm-debug.log*
|
# secrets
|
||||||
/frontend/yarn-debug.log*
|
secrets.*.js
|
||||||
/frontend/yarn-error.log*
|
|
||||||
|
|
|
||||||
8
.prettierrc
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"singleQuote": true,
|
||||||
|
"trailingComma": "es5",
|
||||||
|
"requirePragma": false,
|
||||||
|
"arrowParens": "always",
|
||||||
|
"semi": false,
|
||||||
|
"editor.formatOnSave": true
|
||||||
|
}
|
||||||
3
.vscode/settings.json
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"editor.formatOnSave": true
|
||||||
|
}
|
||||||
21
LICENSE
|
|
@ -1,21 +0,0 @@
|
||||||
MIT License
|
|
||||||
|
|
||||||
Copyright (c) 2022 z0ccc
|
|
||||||
|
|
||||||
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, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
|
||||||
copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
||||||
SOFTWARE.
|
|
||||||
80
README.md
Normal file → Executable file
|
|
@ -1,77 +1,69 @@
|
||||||
# Vytal
|
# Vytal
|
||||||
|
|
||||||
Check it out here: https://vytal.io.
|
<p>
|
||||||
|
<a href="https://chrome.google.com/webstore/detail/vytal-spoof-timezone-loca/ncbknoohfjmcfneopnfkapmkblaenokb?utm_source=github"><img src="https://raw.githubusercontent.com/vytal-io/vytal-extension/master/promo/chrome.png" alt="Get Vytal for Chrome"></a>
|
||||||
|
<a href="https://microsoftedge.microsoft.com/addons/detail/vytal-spoof-timezone-l/nkaemodamjfefjgbefolnpnlccpdfpap"><img src="https://raw.githubusercontent.com/vytal-io/vytal-extension/master/promo/edge.png" alt="Get Vytal for Microsoft Edge"></a>
|
||||||
|
<a href="https://addons.opera.com/en/extensions/details/vytal-spoof-timezone-location-user-agent/"><img src="https://raw.githubusercontent.com/vytal-io/vytal-extension/master/promo/opera.png" alt="Get Vytal for Opera"></a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
Browser extension to spoof your timezone, geolocation, locale and user agent.
|
||||||
|
|
||||||
## About
|
## About
|
||||||
|
|
||||||
Vytal shows you what traces your browser leaves behind while surfing the web. This scan allows you to understand how easy it is to identify and track your browser even while using a VPN or private mode.
|
This extension allows you to customize your browser's settings to appear as if you are accessing the internet from a different location, locale, or device. This can be useful for testing websites, bypassing regional restrictions, or protecting your privacy online. With just a few clicks, you can change your time zone, locale, geolocation, and user agent to match your desired settings.
|
||||||
|
|
||||||
A device fingerprint will be generated from your data in the form of a hash. You can sign your hash by entering and saving a signature. You can clear cookies, change your IP or use private mode and reload the page to see if your signature remains the same.
|
Most extensions that provide these features rely on content scripts to inject script tags into web pages. There are many limitations to script tag injections which you can read about here: https://palant.info/2020/12/10/how-anti-fingerprinting-extensions-tend-to-make-fingerprinting-easier
|
||||||
|
|
||||||
Vytal contains no ads and signup is not required.
|
Vytal utilizes the chrome.debugger API to spoof this data instead. This allows the data to be spoofed in frames, web workers and during the initial loading of a website. It also makes the spoofing completely undetectable.
|
||||||
|
|
||||||
## Data Tampering
|
Vytal is not a VPN or proxy and will not change your IP. Although it can be used in combination with a VPN to obscure your true location.
|
||||||
|
|
||||||
The data used to create device fingerprints can be spoofed or tampered with to prevent tracking. There are a variety of methods used to do this including VPNs, browser extensions and built in browser options. Some methods of data tampering can be detected.
|
You can test and compare Vytal and other extensions on https://vytal.io
|
||||||
|
|
||||||
If data tampering is detected then a red circle with an ‘x’ will be displayed next to the data value. If the legitimate value cannot be identified then the data will be discarded and will not be used to generate a fingerprint. Clicking on the table row of the tampered value will bring up a dialog box showing the types of tampering.
|
Vytal contains collects no data and signup is not required.
|
||||||
|
|
||||||
## Types of Tampering
|
## Limitations
|
||||||
|
|
||||||
### Failed Navigator.prototype
|
### Debugging bar
|
||||||
|
|
||||||
`Navigator.prototype[DataType]` returns a value if the data object was tampered with. Otherwise returns an error.
|
While the chrome.debugger API is active, a bar under the address bar is displayed. Hiding the bar is only possible when the --silent-debugger-extension-api command-line switch is used.
|
||||||
|
|
||||||
### Failed undefined properties
|
Instructions on how to run chromium with flags: https://www.chromium.org/developers/how-tos/run-chromium-with-flags
|
||||||
|
|
||||||
`Object.getOwnPropertyDescriptor(navigator, [DataType])` returns an object if the data object was tampered with. Otherwise returns ‘undefined’.
|
### FireFox
|
||||||
|
|
||||||
### Failed Navigator property value
|
Unfortunately Vytal doesn't work on Firefox since Firefox doesn't support the debugger API for extensions. https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/permissions#browser_compatibility
|
||||||
|
|
||||||
`Object.getOwnPropertyDescriptor(Navigator.prototype, [DataType]).value` returns an error if the data object was tampered with. Otherwise returns ‘undefined’.
|
### New tab
|
||||||
|
|
||||||
### Did not match web worker (\_\_\_)
|
The chrome debugger cannot attach itself to chrome://newtab. This can result in data leakage to the first non chrome:// page you navigate to.
|
||||||
|
|
||||||
Value does not match the value found in a [web worker](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers). The web worker value is in the brackets.
|
### Locale override does not mock language data
|
||||||
|
|
||||||
### Location data doesn't match system data
|
Unlike the Chrome devtools location sensor, overriding the locale does not change language data (such as navigator.language or navigator.languages). There is an open ticket about this here: https://bugs.chromium.org/p/chromium/issues/detail?id=1306254
|
||||||
|
|
||||||
Occurs when the location data from ip address does not match your location data from your system (such as your timezone).
|
## Screenshots
|
||||||
|
|
||||||
### VPN/proxy has been detected
|

|
||||||
|
|
||||||
Your ip address is known to be used by proxies or VPNs.
|

|
||||||
|
|
||||||
### Failed Date.prototype.setDate.toString()
|

|
||||||
|
|
||||||
`Failed Date.prototype.setDate.toString()` returns 'function setDate() { [native code] }' if the data object was NOT tampered with.
|
|
||||||
|
|
||||||
### Failed Screen.prototype
|
|
||||||
|
|
||||||
`Screen.prototype[DataType]` returns a value if the data object was tampered with. Otherwise returns an error.
|
|
||||||
|
|
||||||
### Avail width is greater than width
|
|
||||||
|
|
||||||
Happens when the avail width is greater than the normal width (which is impossible).
|
|
||||||
|
|
||||||
### Avail height is greater than height
|
|
||||||
|
|
||||||
Happens when the height width is greater than the normal height (which is impossible).
|
|
||||||
|
|
||||||
## Dev
|
## Dev
|
||||||
|
|
||||||
This application uses a React frontend and a Django backend that communicates using the Django REST framework.
|
This application is built with Javascript and React.
|
||||||
|
|
||||||
Backend Django setup:
|
Clone this repo and run these commands to start the development server.
|
||||||
|
|
||||||
```
|
```
|
||||||
cd backend
|
yarn
|
||||||
python manage.py runserver
|
yarn start
|
||||||
```
|
```
|
||||||
|
|
||||||
Frontend React setup:
|
Load the extension on Chrome:
|
||||||
|
|
||||||
```
|
- Access chrome://extensions/
|
||||||
cd frontend
|
- Check Developer mode
|
||||||
yarn run start
|
- Click on Load unpacked extension
|
||||||
```
|
- Select the build folder.
|
||||||
|
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
||||||
"""
|
|
||||||
ASGI config for backend project.
|
|
||||||
|
|
||||||
It exposes the ASGI callable as a module-level variable named ``application``.
|
|
||||||
|
|
||||||
For more information on this file, see
|
|
||||||
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
|
|
||||||
"""
|
|
||||||
|
|
||||||
import os
|
|
||||||
|
|
||||||
from django.core.asgi import get_asgi_application
|
|
||||||
|
|
||||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'backend.settings')
|
|
||||||
|
|
||||||
application = get_asgi_application()
|
|
||||||
|
|
@ -1,146 +0,0 @@
|
||||||
"""
|
|
||||||
Django settings for backend project.
|
|
||||||
|
|
||||||
Generated by 'django-admin startproject' using Django 3.2.5.
|
|
||||||
|
|
||||||
For more information on this file, see
|
|
||||||
https://docs.djangoproject.com/en/3.2/topics/settings/
|
|
||||||
|
|
||||||
For the full list of settings and their values, see
|
|
||||||
https://docs.djangoproject.com/en/3.2/ref/settings/
|
|
||||||
"""
|
|
||||||
|
|
||||||
from pathlib import Path
|
|
||||||
from secret_settings import *
|
|
||||||
|
|
||||||
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
|
||||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
|
||||||
|
|
||||||
|
|
||||||
# Quick-start development settings - unsuitable for production
|
|
||||||
# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/
|
|
||||||
|
|
||||||
# SECURITY WARNING: don't run with debug turned on in production!
|
|
||||||
DEBUG = True
|
|
||||||
|
|
||||||
ALLOWED_HOSTS = []
|
|
||||||
|
|
||||||
# Application definition
|
|
||||||
|
|
||||||
INSTALLED_APPS = [
|
|
||||||
'django.contrib.admin',
|
|
||||||
'django.contrib.auth',
|
|
||||||
'django.contrib.contenttypes',
|
|
||||||
'django.contrib.sessions',
|
|
||||||
'django.contrib.messages',
|
|
||||||
'django.contrib.staticfiles',
|
|
||||||
'corsheaders',
|
|
||||||
'rest_framework',
|
|
||||||
'django_filters',
|
|
||||||
'vytal',
|
|
||||||
]
|
|
||||||
|
|
||||||
MIDDLEWARE = [
|
|
||||||
'django.middleware.security.SecurityMiddleware',
|
|
||||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
|
||||||
'django.middleware.common.CommonMiddleware',
|
|
||||||
'django.middleware.csrf.CsrfViewMiddleware',
|
|
||||||
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
|
||||||
'django.contrib.messages.middleware.MessageMiddleware',
|
|
||||||
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
|
||||||
'corsheaders.middleware.CorsMiddleware',
|
|
||||||
]
|
|
||||||
|
|
||||||
ROOT_URLCONF = 'backend.urls'
|
|
||||||
|
|
||||||
TEMPLATES = [
|
|
||||||
{
|
|
||||||
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
|
||||||
'DIRS': [],
|
|
||||||
'APP_DIRS': True,
|
|
||||||
'OPTIONS': {
|
|
||||||
'context_processors': [
|
|
||||||
'django.template.context_processors.debug',
|
|
||||||
'django.template.context_processors.request',
|
|
||||||
'django.contrib.auth.context_processors.auth',
|
|
||||||
'django.contrib.messages.context_processors.messages',
|
|
||||||
],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
]
|
|
||||||
|
|
||||||
WSGI_APPLICATION = 'backend.wsgi.application'
|
|
||||||
|
|
||||||
|
|
||||||
# Database
|
|
||||||
# https://docs.djangoproject.com/en/3.2/ref/settings/#databases
|
|
||||||
|
|
||||||
DATABASES = {
|
|
||||||
'default': {
|
|
||||||
'ENGINE': 'django.db.backends.sqlite3',
|
|
||||||
'NAME': BASE_DIR / 'db.sqlite3',
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
# Password validation
|
|
||||||
# https://docs.djangoproject.com/en/3.2/ref/settings/#auth-password-validators
|
|
||||||
|
|
||||||
AUTH_PASSWORD_VALIDATORS = [
|
|
||||||
{
|
|
||||||
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
|
|
||||||
},
|
|
||||||
]
|
|
||||||
|
|
||||||
REST_FRAMEWORK = {
|
|
||||||
'DEFAULT_RENDERER_CLASSES': [
|
|
||||||
'rest_framework.renderers.JSONRenderer',
|
|
||||||
],
|
|
||||||
'DEFAULT_THROTTLE_CLASSES': [
|
|
||||||
'rest_framework.throttling.AnonRateThrottle',
|
|
||||||
'rest_framework.throttling.UserRateThrottle'
|
|
||||||
],
|
|
||||||
'DEFAULT_THROTTLE_RATES': {
|
|
||||||
'anon': '100/day',
|
|
||||||
'user': '1000/day'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
# Internationalization
|
|
||||||
# https://docs.djangoproject.com/en/3.2/topics/i18n/
|
|
||||||
|
|
||||||
LANGUAGE_CODE = 'en-us'
|
|
||||||
|
|
||||||
TIME_ZONE = 'UTC'
|
|
||||||
|
|
||||||
USE_I18N = True
|
|
||||||
|
|
||||||
USE_L10N = True
|
|
||||||
|
|
||||||
USE_TZ = True
|
|
||||||
|
|
||||||
|
|
||||||
# Static files (CSS, JavaScript, Images)
|
|
||||||
# https://docs.djangoproject.com/en/3.2/howto/static-files/
|
|
||||||
|
|
||||||
STATIC_URL = '/static/'
|
|
||||||
|
|
||||||
# Default primary key field type
|
|
||||||
# https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field
|
|
||||||
|
|
||||||
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
|
|
||||||
|
|
||||||
CORS_ORIGIN_WHITELIST = [
|
|
||||||
'https://vytal.io',
|
|
||||||
'https://z0ccc.github.io',
|
|
||||||
'http://localhost:3000'
|
|
||||||
]
|
|
||||||
|
|
@ -1,14 +0,0 @@
|
||||||
from django.contrib import admin
|
|
||||||
from django.urls import path, include
|
|
||||||
from rest_framework import routers
|
|
||||||
from vytal import views
|
|
||||||
from secret_settings import *
|
|
||||||
|
|
||||||
router = routers.DefaultRouter()
|
|
||||||
router.register(r'fingerprint', views.FingerprintView, 'fingerprint')
|
|
||||||
|
|
||||||
urlpatterns = [
|
|
||||||
path(ADMIN_URL + '/', admin.site.urls),
|
|
||||||
path('', include(router.urls)),
|
|
||||||
path('', include('vytal.urls')),
|
|
||||||
]
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
||||||
"""
|
|
||||||
WSGI config for backend project.
|
|
||||||
|
|
||||||
It exposes the WSGI callable as a module-level variable named ``application``.
|
|
||||||
|
|
||||||
For more information on this file, see
|
|
||||||
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
|
|
||||||
"""
|
|
||||||
|
|
||||||
import os
|
|
||||||
|
|
||||||
from django.core.wsgi import get_wsgi_application
|
|
||||||
|
|
||||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'backend.settings')
|
|
||||||
|
|
||||||
application = get_wsgi_application()
|
|
||||||
|
|
@ -1,22 +0,0 @@
|
||||||
#!/usr/bin/env python
|
|
||||||
"""Django's command-line utility for administrative tasks."""
|
|
||||||
import os
|
|
||||||
import sys
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
|
||||||
"""Run administrative tasks."""
|
|
||||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'backend.settings')
|
|
||||||
try:
|
|
||||||
from django.core.management import execute_from_command_line
|
|
||||||
except ImportError as exc:
|
|
||||||
raise ImportError(
|
|
||||||
"Couldn't import Django. Are you sure it's installed and "
|
|
||||||
"available on your PYTHONPATH environment variable? Did you "
|
|
||||||
"forget to activate a virtual environment?"
|
|
||||||
) from exc
|
|
||||||
execute_from_command_line(sys.argv)
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
main()
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
from django.contrib import admin
|
|
||||||
from .models import Fingerprint
|
|
||||||
|
|
||||||
|
|
||||||
class FingerprintAdmin(admin.ModelAdmin):
|
|
||||||
list_display = ('name', 'hash')
|
|
||||||
|
|
||||||
# Register your models here.
|
|
||||||
|
|
||||||
|
|
||||||
admin.site.register(Fingerprint, FingerprintAdmin)
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
from django.apps import AppConfig
|
|
||||||
|
|
||||||
|
|
||||||
class VytalConfig(AppConfig):
|
|
||||||
default_auto_field = 'django.db.models.BigAutoField'
|
|
||||||
name = 'vytal'
|
|
||||||
|
|
@ -1,22 +0,0 @@
|
||||||
# Generated by Django 3.2.5 on 2021-07-18 04:11
|
|
||||||
|
|
||||||
from django.db import migrations, models
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
initial = True
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.CreateModel(
|
|
||||||
name='Fingerprint',
|
|
||||||
fields=[
|
|
||||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
||||||
('name', models.CharField(max_length=100)),
|
|
||||||
('hash', models.CharField(max_length=32)),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
]
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
from django.db import models
|
|
||||||
|
|
||||||
# Create your models here.
|
|
||||||
|
|
||||||
|
|
||||||
class Fingerprint(models.Model):
|
|
||||||
name = models.CharField(max_length=100)
|
|
||||||
hash = models.CharField(max_length=32)
|
|
||||||
|
|
||||||
def _str_(self):
|
|
||||||
return self.name
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
from rest_framework import serializers
|
|
||||||
from .models import Fingerprint
|
|
||||||
|
|
||||||
|
|
||||||
class FingerprintSerializer(serializers.ModelSerializer):
|
|
||||||
class Meta:
|
|
||||||
model = Fingerprint
|
|
||||||
fields = ('id', 'name', 'hash')
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
from django.test import TestCase
|
|
||||||
|
|
||||||
# Create your tests here.
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
from django.urls import path
|
|
||||||
from . import views
|
|
||||||
|
|
||||||
urlpatterns = [
|
|
||||||
path('ip/', views.IPView, name='ip'),
|
|
||||||
]
|
|
||||||
|
|
@ -1,23 +0,0 @@
|
||||||
from rest_framework import viewsets
|
|
||||||
from .serializers import FingerprintSerializer
|
|
||||||
from .models import Fingerprint
|
|
||||||
from django_filters.rest_framework import DjangoFilterBackend
|
|
||||||
from django.http import JsonResponse
|
|
||||||
from ipware import get_client_ip
|
|
||||||
import urllib.request
|
|
||||||
import json
|
|
||||||
from secret_settings import *
|
|
||||||
|
|
||||||
|
|
||||||
class FingerprintView(viewsets.ModelViewSet):
|
|
||||||
serializer_class = FingerprintSerializer
|
|
||||||
queryset = Fingerprint.objects.all()
|
|
||||||
filter_backends = [DjangoFilterBackend]
|
|
||||||
filterset_fields = ['hash']
|
|
||||||
|
|
||||||
|
|
||||||
def IPView(request):
|
|
||||||
ip = get_client_ip(request)
|
|
||||||
with urllib.request.urlopen("https://pro.ip-api.com/json/" + ip[0] + "?key=" + API_KEY) as url:
|
|
||||||
data = json.loads(url.read().decode())
|
|
||||||
return JsonResponse(data)
|
|
||||||
|
|
@ -1,44 +0,0 @@
|
||||||
module.exports = {
|
|
||||||
env: {
|
|
||||||
browser: true,
|
|
||||||
es2021: true,
|
|
||||||
webextensions: true,
|
|
||||||
},
|
|
||||||
extends: ['plugin:react/recommended', 'airbnb'],
|
|
||||||
plugins: ['react'],
|
|
||||||
settings: {
|
|
||||||
'import/resolver': {
|
|
||||||
node: {
|
|
||||||
extensions: ['.js', '.jsx'],
|
|
||||||
moduleDirectory: ['node_modules', 'src/'],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
rules: {
|
|
||||||
'no-plusplus': 'off',
|
|
||||||
'comma-dangle': 'off',
|
|
||||||
'operator-linebreak': 'off',
|
|
||||||
'no-use-before-define': 'off',
|
|
||||||
'linebreak-style': 'off',
|
|
||||||
'react/jsx-filename-extension': [1, { extensions: ['.jsx', '.js'] }],
|
|
||||||
'jsx-a11y/label-has-associated-control': 'off',
|
|
||||||
'one-var': 'off',
|
|
||||||
'one-var-declaration-per-line': 'off',
|
|
||||||
'object-curly-newline': 'off',
|
|
||||||
'implicit-arrow-linebreak': 'off',
|
|
||||||
'import/extensions': [
|
|
||||||
'error',
|
|
||||||
'ignorePackages',
|
|
||||||
{
|
|
||||||
js: 'never',
|
|
||||||
jsx: 'never',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
'react/jsx-one-expression-per-line': 'off',
|
|
||||||
'react/prop-types': 'off',
|
|
||||||
'react/react-in-jsx-scope': 'off',
|
|
||||||
'no-bitwise': 'off',
|
|
||||||
'react/no-array-index-key': 'off',
|
|
||||||
'dot-notation': 'off',
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
@ -1,57 +0,0 @@
|
||||||
{
|
|
||||||
"homepage": "https://z0ccc.github.io",
|
|
||||||
"name": "vytal",
|
|
||||||
"version": "0.1.0",
|
|
||||||
"private": true,
|
|
||||||
"dependencies": {
|
|
||||||
"@fortawesome/fontawesome-pro": "^5.15.3",
|
|
||||||
"@fortawesome/fontawesome-svg-core": "^1.2.35",
|
|
||||||
"@fortawesome/free-solid-svg-icons": "^5.15.3",
|
|
||||||
"@fortawesome/pro-light-svg-icons": "^5.15.3",
|
|
||||||
"@fortawesome/react-fontawesome": "^0.1.14",
|
|
||||||
"axios": "0.21.1",
|
|
||||||
"bowser": "^2.11.0",
|
|
||||||
"crypto-js": "^4.0.0",
|
|
||||||
"emailjs-com": "^3.1.0",
|
|
||||||
"gh-pages": "^3.2.3",
|
|
||||||
"html-react-parser": "^1.2.8",
|
|
||||||
"react": "^17.0.2",
|
|
||||||
"react-dom": "^17.0.2",
|
|
||||||
"react-github-btn": "^1.2.1",
|
|
||||||
"react-modal": "^3.14.3",
|
|
||||||
"react-scripts": "4.0.3",
|
|
||||||
"react-webworker": "^2.1.0",
|
|
||||||
"tslib": "^2.2.0"
|
|
||||||
},
|
|
||||||
"scripts": {
|
|
||||||
"start": "react-scripts start",
|
|
||||||
"build": "react-scripts build",
|
|
||||||
"test": "react-scripts test",
|
|
||||||
"eject": "react-scripts eject",
|
|
||||||
"predeploy": "yarn run build",
|
|
||||||
"deploy": "echo vytal.io > ./build/CNAME && gh-pages -d build"
|
|
||||||
},
|
|
||||||
"eslintConfig": {
|
|
||||||
"extends": "react-app"
|
|
||||||
},
|
|
||||||
"browserslist": {
|
|
||||||
"production": [
|
|
||||||
">0.2%",
|
|
||||||
"not dead",
|
|
||||||
"not op_mini all"
|
|
||||||
],
|
|
||||||
"development": [
|
|
||||||
"last 1 chrome version",
|
|
||||||
"last 1 firefox version",
|
|
||||||
"last 1 safari version"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"eslint": "^7.28.0",
|
|
||||||
"eslint-config-airbnb": "^18.2.1",
|
|
||||||
"eslint-plugin-import": "^2.23.4",
|
|
||||||
"eslint-plugin-jsx-a11y": "^6.4.1",
|
|
||||||
"eslint-plugin-react": "^7.24.0",
|
|
||||||
"eslint-plugin-react-hooks": "^4.2.0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
Before Width: | Height: | Size: 786 B |
|
|
@ -1,34 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<link rel="icon" href="/favicon.ico" />
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
||||||
<meta name="theme-color" content="#000000" />
|
|
||||||
<meta
|
|
||||||
name="description"
|
|
||||||
content="Vytal shows you what traces your browser leaves behind while surfing the web."
|
|
||||||
/>
|
|
||||||
<meta name="author" content="z0ccc" />
|
|
||||||
<meta property="og:title" content="Vytal" />
|
|
||||||
<meta property="og:url" content="https://vytal.io" />
|
|
||||||
<meta property="og:img" content="https://vytal.io/vytal.png" />
|
|
||||||
<meta
|
|
||||||
property="og:description"
|
|
||||||
content="Vytal shows you what traces your browser leaves behind while surfing the web."
|
|
||||||
/>
|
|
||||||
<meta name="twitter:card" content="summary_large_image" />
|
|
||||||
<meta name="twitter:title" content="Vytal" />
|
|
||||||
<meta
|
|
||||||
name="twitter:description"
|
|
||||||
content="Vytal shows you what traces your browser leaves behind while surfing the web."
|
|
||||||
/>
|
|
||||||
<meta name="twitter:image" content="https://vytal.io/vytal.png" />
|
|
||||||
<link rel="manifest" href="/manifest.json" />
|
|
||||||
<title>Vytal Privacy Scan</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
|
||||||
<div id="root"></div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
||||||
{
|
|
||||||
"short_name": "Vytal",
|
|
||||||
"name": "Vytal Privacy Scan",
|
|
||||||
"icons": [
|
|
||||||
{
|
|
||||||
"src": "favicon.ico",
|
|
||||||
"sizes": "64x64 32x32 24x24 16x16",
|
|
||||||
"type": "image/x-icon"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"start_url": ".",
|
|
||||||
"display": "standalone",
|
|
||||||
"theme_color": "#000000",
|
|
||||||
"background_color": "#ffffff"
|
|
||||||
}
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
# https://www.robotstxt.org/robotstxt.html
|
|
||||||
User-agent: *
|
|
||||||
Disallow:
|
|
||||||
|
Before Width: | Height: | Size: 167 KiB |
|
|
@ -1,13 +0,0 @@
|
||||||
const data = {
|
|
||||||
locale: Intl.DateTimeFormat().resolvedOptions().locale,
|
|
||||||
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
||||||
timezoneOffset: new Date().getTimezoneOffset(),
|
|
||||||
deviceMemory: navigator.deviceMemory,
|
|
||||||
hardwareConcurrency: navigator.hardwareConcurrency,
|
|
||||||
platform: navigator.platform,
|
|
||||||
userAgent: navigator.userAgent,
|
|
||||||
appVersion: navigator.appVersion,
|
|
||||||
language: navigator.language,
|
|
||||||
};
|
|
||||||
|
|
||||||
postMessage(data);
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
import React from 'react';
|
|
||||||
import { render } from '@testing-library/react';
|
|
||||||
import App from './App';
|
|
||||||
|
|
||||||
test('renders learn react link', () => {
|
|
||||||
const { getByText } = render(<App />);
|
|
||||||
const linkElement = getByText(/learn react/i);
|
|
||||||
expect(linkElement).toBeInTheDocument();
|
|
||||||
});
|
|
||||||
|
|
@ -1,92 +0,0 @@
|
||||||
:root {
|
|
||||||
--main: #943ec5;
|
|
||||||
--grey: #9fa6b2;
|
|
||||||
--text: #4b5563;
|
|
||||||
--border: #ddd;
|
|
||||||
--issueBackground: #f8d7da;
|
|
||||||
--issueText: #721c24;
|
|
||||||
--link: #943ec5;
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
|
||||||
margin: 0;
|
|
||||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
|
|
||||||
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
|
|
||||||
sans-serif;
|
|
||||||
-webkit-font-smoothing: antialiased;
|
|
||||||
-moz-osx-font-smoothing: grayscale;
|
|
||||||
font-size: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.App {
|
|
||||||
min-height: 100vh;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
}
|
|
||||||
|
|
||||||
.background {
|
|
||||||
position: fixed;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
background: var(--grey);
|
|
||||||
background: linear-gradient(
|
|
||||||
165deg,
|
|
||||||
rgba(87, 35, 117, 1) 0%,
|
|
||||||
rgba(148, 62, 197, 1) 55%,
|
|
||||||
rgba(211, 176, 231, 1) 100%
|
|
||||||
);
|
|
||||||
z-index: -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
h1 {
|
|
||||||
margin: 0 0 12px 0;
|
|
||||||
font-weight: 600;
|
|
||||||
font-size: 19px;
|
|
||||||
}
|
|
||||||
|
|
||||||
h2 {
|
|
||||||
margin: 0 0 4px 0;
|
|
||||||
font-weight: 600;
|
|
||||||
font-size: 17px;
|
|
||||||
}
|
|
||||||
|
|
||||||
p {
|
|
||||||
margin: 12px 0 0 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
b {
|
|
||||||
font-weight: 600;
|
|
||||||
}
|
|
||||||
|
|
||||||
img {
|
|
||||||
width: 100%;
|
|
||||||
border-radius: 6px;
|
|
||||||
border: 1px solid var(--border);
|
|
||||||
box-sizing: border-box;
|
|
||||||
display: block;
|
|
||||||
margin: 0 0 12px 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.link {
|
|
||||||
color: var(--link);
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.link:hover {
|
|
||||||
text-decoration: underline;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media screen and (max-width: 500px) {
|
|
||||||
body {
|
|
||||||
font-size: 14px;
|
|
||||||
}
|
|
||||||
|
|
||||||
h1 {
|
|
||||||
font-size: 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
h2 {
|
|
||||||
margin: 0 0 3px 0;
|
|
||||||
font-size: 15px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
||||||
import Github from './Github';
|
|
||||||
import MainColumn from './MainColumn';
|
|
||||||
import './App.css';
|
|
||||||
|
|
||||||
const App = () => (
|
|
||||||
<div className="App">
|
|
||||||
<Github />
|
|
||||||
<div className="background" />
|
|
||||||
<MainColumn />
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
|
|
||||||
export default App;
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
const ContentBlock = ({ children }) => (
|
|
||||||
<div className="contentBlock">{children}</div>
|
|
||||||
);
|
|
||||||
|
|
||||||
export default ContentBlock;
|
|
||||||
|
|
@ -1,47 +0,0 @@
|
||||||
.centerBlockInner {
|
|
||||||
width: 500px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.centerBlockMobile {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.contentBlock {
|
|
||||||
color: var(--text);
|
|
||||||
background-color: #fff;
|
|
||||||
border-radius: 6px;
|
|
||||||
box-sizing: border-box;
|
|
||||||
padding: 24px;
|
|
||||||
box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
|
|
||||||
margin: 0 0 24px 0;
|
|
||||||
min-width: 500px;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media screen and (max-width: 1200px) {
|
|
||||||
.centerBlockInner {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.centerBlockMobile {
|
|
||||||
display: block;
|
|
||||||
max-width: 650px;
|
|
||||||
padding: 0 12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.contentBlock {
|
|
||||||
padding: 18px;
|
|
||||||
margin: 0 0 12px 0;
|
|
||||||
min-width: 400px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.loadBlock {
|
|
||||||
margin: 0 12px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media screen and (max-width: 500px) {
|
|
||||||
.contentBlock {
|
|
||||||
width: 100%;
|
|
||||||
min-width: 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,43 +0,0 @@
|
||||||
import { useState, useEffect } from 'react';
|
|
||||||
import DataContext from './Context';
|
|
||||||
import BlocksOne from './BlocksOne';
|
|
||||||
import BlocksTwo from './BlocksTwo';
|
|
||||||
// import FontsBlock from './FontsBlock';
|
|
||||||
import { fetchAPI, getWebWorker } from '../utils/common';
|
|
||||||
import './Blocks.css';
|
|
||||||
|
|
||||||
const Blocks = () => {
|
|
||||||
const [workerData, setWorkerData] = useState();
|
|
||||||
const [connectionData, setConnectionData] = useState('');
|
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
getWebWorker().onmessage = (event) => {
|
|
||||||
setWorkerData(event.data);
|
|
||||||
fetchAPI(setConnectionData);
|
|
||||||
};
|
|
||||||
}, []);
|
|
||||||
return (
|
|
||||||
<>
|
|
||||||
{connectionData ? (
|
|
||||||
<DataContext.Provider value={{ workerData, connectionData }}>
|
|
||||||
<div className="centerBlockInner">
|
|
||||||
<BlocksOne />
|
|
||||||
</div>
|
|
||||||
<div className="centerBlockInner">
|
|
||||||
<BlocksTwo />
|
|
||||||
</div>
|
|
||||||
<div className="centerBlockMobile">
|
|
||||||
<BlocksOne />
|
|
||||||
<BlocksTwo />
|
|
||||||
</div>
|
|
||||||
</DataContext.Provider>
|
|
||||||
) : (
|
|
||||||
<div className="contentBlock loadBlock">
|
|
||||||
<center>Loading...</center>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
</>
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
export default Blocks;
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
||||||
import UserAgentBlock from './UserAgentBlock';
|
|
||||||
import IntlBlock from './IntlBlock';
|
|
||||||
import NavigatorBlock from './NavigatorBlock';
|
|
||||||
import FingerprintBlock from './FingerprintBlock';
|
|
||||||
|
|
||||||
const BlocksOne = () => (
|
|
||||||
<>
|
|
||||||
<FingerprintBlock />
|
|
||||||
<NavigatorBlock />
|
|
||||||
<UserAgentBlock />
|
|
||||||
<IntlBlock />
|
|
||||||
</>
|
|
||||||
);
|
|
||||||
|
|
||||||
export default BlocksOne;
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
||||||
import OtherBlock from './OtherBlock';
|
|
||||||
import ScreenBlock from './ScreenBlock';
|
|
||||||
import LocationBlock from './LocationBlock';
|
|
||||||
import ConnectionBlock from './ConnectionBlock';
|
|
||||||
|
|
||||||
const BlocksTwo = () => (
|
|
||||||
<>
|
|
||||||
<LocationBlock />
|
|
||||||
<ConnectionBlock />
|
|
||||||
<ScreenBlock />
|
|
||||||
<OtherBlock />
|
|
||||||
</>
|
|
||||||
);
|
|
||||||
|
|
||||||
export default BlocksTwo;
|
|
||||||
|
|
@ -1,30 +0,0 @@
|
||||||
import { useContext } from 'react';
|
|
||||||
import DataContext from './Context';
|
|
||||||
import Block from './Block';
|
|
||||||
import Table from './Table';
|
|
||||||
import { getConnection } from '../utils/connection';
|
|
||||||
|
|
||||||
const LocationBlock = () => {
|
|
||||||
const { connectionData } = useContext(DataContext);
|
|
||||||
return (
|
|
||||||
<Block>
|
|
||||||
<h1>Connection</h1>
|
|
||||||
<Table data={getConnection(connectionData)} />
|
|
||||||
<p>
|
|
||||||
<b>Explanation:</b> Your IP address reveals information about your
|
|
||||||
connection.{' '}
|
|
||||||
<a
|
|
||||||
className="link"
|
|
||||||
target="_blank"
|
|
||||||
rel="noreferrer"
|
|
||||||
alt="Read more about ip connection"
|
|
||||||
href="https://en.wikipedia.org/wiki/IP_address"
|
|
||||||
>
|
|
||||||
Read more
|
|
||||||
</a>
|
|
||||||
</p>
|
|
||||||
</Block>
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
export default LocationBlock;
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
import { createContext } from 'react';
|
|
||||||
|
|
||||||
const DataContext = createContext();
|
|
||||||
|
|
||||||
export default DataContext;
|
|
||||||
|
|
@ -1,53 +0,0 @@
|
||||||
.fingerprintTable td:first-child {
|
|
||||||
width: 80px;
|
|
||||||
font-weight: 600;
|
|
||||||
}
|
|
||||||
|
|
||||||
.boxWrap {
|
|
||||||
border: 1px solid var(--border);
|
|
||||||
border-radius: 6px;
|
|
||||||
padding: 12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hash {
|
|
||||||
text-align: center;
|
|
||||||
font-weight: 600;
|
|
||||||
}
|
|
||||||
|
|
||||||
form {
|
|
||||||
margin: 12px 0 0 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.saveButton {
|
|
||||||
border: 1px solid var(--grey);
|
|
||||||
border-radius: 6px;
|
|
||||||
padding: 6px;
|
|
||||||
background-color: transparent;
|
|
||||||
cursor: pointer;
|
|
||||||
color: var(--text);
|
|
||||||
margin: 0 0 0 6px;
|
|
||||||
-webkit-appearance: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.saveButton:hover {
|
|
||||||
background-color: var(--border);
|
|
||||||
}
|
|
||||||
|
|
||||||
input[type='text'] {
|
|
||||||
border: 1px solid var(--grey);
|
|
||||||
border-radius: 6px;
|
|
||||||
padding: 6px;
|
|
||||||
width: 200px;
|
|
||||||
outline: none;
|
|
||||||
-webkit-appearance: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media screen and (max-width: 500px) {
|
|
||||||
.boxWrap {
|
|
||||||
padding: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
input[type='text'] {
|
|
||||||
width: calc(100% - 70px);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,62 +0,0 @@
|
||||||
import './FingerprintBlock.css';
|
|
||||||
import { useState, useEffect, useContext } from 'react';
|
|
||||||
import DataContext from './Context';
|
|
||||||
import Block from './Block';
|
|
||||||
import Table from './Table';
|
|
||||||
import {
|
|
||||||
getSignature,
|
|
||||||
postSignature,
|
|
||||||
getHash,
|
|
||||||
getFingerprint,
|
|
||||||
} from '../utils/fingerprint';
|
|
||||||
|
|
||||||
const FingerprintBlock = () => {
|
|
||||||
const [signature, setSignature] = useState();
|
|
||||||
const [load, setload] = useState(false);
|
|
||||||
const { workerData } = useContext(DataContext);
|
|
||||||
const hash = getHash(workerData);
|
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
getSignature(hash, setSignature, setload);
|
|
||||||
}, []);
|
|
||||||
|
|
||||||
return (
|
|
||||||
<Block>
|
|
||||||
<h1>Fingerprint</h1>
|
|
||||||
{load && (
|
|
||||||
<>
|
|
||||||
{signature !== undefined ? (
|
|
||||||
<div className="fingerprintTable">
|
|
||||||
<Table data={getFingerprint(signature, hash)} />
|
|
||||||
</div>
|
|
||||||
) : (
|
|
||||||
<div className="boxWrap">
|
|
||||||
<div className="hash">{hash}</div>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
</>
|
|
||||||
)}
|
|
||||||
<p>
|
|
||||||
<b>Explanation:</b> A device fingerprint will be generated from your
|
|
||||||
data in the form of a hash. Sign your hash, change your IP or use
|
|
||||||
private mode and reload to see if your signature remains the same.
|
|
||||||
</p>
|
|
||||||
<form onSubmit={(e) => postSignature(hash, e, setSignature)}>
|
|
||||||
<input
|
|
||||||
type="text"
|
|
||||||
id="signature"
|
|
||||||
name="signature"
|
|
||||||
placeholder="Enter signature"
|
|
||||||
/>
|
|
||||||
<input
|
|
||||||
type="submit"
|
|
||||||
className="saveButton"
|
|
||||||
value="Save"
|
|
||||||
maxLength="100"
|
|
||||||
/>
|
|
||||||
</form>
|
|
||||||
</Block>
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
export default FingerprintBlock;
|
|
||||||
|
|
@ -1,61 +0,0 @@
|
||||||
import { useEffect } from 'react';
|
|
||||||
import Block from './Block';
|
|
||||||
import fontList from '../fontList.json';
|
|
||||||
|
|
||||||
const FontsBlock = () => {
|
|
||||||
useEffect(() => {
|
|
||||||
const families = ['serif', 'sans-serif', 'monospace', 'cursive', 'fantasy'];
|
|
||||||
const famLen = families.length;
|
|
||||||
const fontsEl = document.querySelector('.fonts');
|
|
||||||
const width = [];
|
|
||||||
const height = [];
|
|
||||||
const span = document.createElement('span');
|
|
||||||
|
|
||||||
span.innerHTML = 'AaBbCcWwLl:/!@的下ㅏㅎ平片';
|
|
||||||
span.style.fontSize = '100px';
|
|
||||||
|
|
||||||
for (let i = 0; i < famLen; i++) {
|
|
||||||
span.style.fontFamily = families[i];
|
|
||||||
fontsEl.appendChild(span);
|
|
||||||
width[i] = span.offsetWidth;
|
|
||||||
height[i] = span.offsetHeight;
|
|
||||||
fontsEl.removeChild(span);
|
|
||||||
}
|
|
||||||
|
|
||||||
function detect(font) {
|
|
||||||
let detected = false;
|
|
||||||
for (let i = 0; i < famLen; i++) {
|
|
||||||
span.style.fontFamily = `"${font}" ,${families[i]}`;
|
|
||||||
fontsEl.appendChild(span);
|
|
||||||
if (span.offsetWidth !== width[i] || span.offsetHeight !== height[i]) {
|
|
||||||
detected = true;
|
|
||||||
}
|
|
||||||
fontsEl.removeChild(span);
|
|
||||||
}
|
|
||||||
return detected;
|
|
||||||
}
|
|
||||||
|
|
||||||
let fontStr = '';
|
|
||||||
fontList.forEach((item) => {
|
|
||||||
if (detect(item.font)) {
|
|
||||||
fontStr += `${item.font}, `;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
fontsEl.textContent = fontStr.slice(0, -2);
|
|
||||||
}, []);
|
|
||||||
|
|
||||||
return (
|
|
||||||
<Block>
|
|
||||||
<h1>System Fonts</h1>
|
|
||||||
<div className="fonts boxWrap" />
|
|
||||||
<p>
|
|
||||||
<b>Explanation:</b> The fonts you have installed on your computer are
|
|
||||||
generally linked to operating systems, language and system age. Any
|
|
||||||
fonts that you have installed that aren't common for your system
|
|
||||||
can make you easily identifiable.
|
|
||||||
</p>
|
|
||||||
</Block>
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
export default FontsBlock;
|
|
||||||
|
|
@ -1,18 +0,0 @@
|
||||||
.gitHubButton {
|
|
||||||
position: fixed;
|
|
||||||
top: 12px;
|
|
||||||
right: 12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media screen and (max-width: 900px) {
|
|
||||||
.gitHubButton {
|
|
||||||
position: absolute;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media screen and (max-width: 500px) {
|
|
||||||
.gitHubButton {
|
|
||||||
top: 8px;
|
|
||||||
right: 8px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
||||||
import './GitHub.css';
|
|
||||||
import GitHubButton from 'react-github-btn';
|
|
||||||
|
|
||||||
const Github = () => (
|
|
||||||
<div className="gitHubButton">
|
|
||||||
<GitHubButton
|
|
||||||
href="https://github.com/z0ccc/Vytal"
|
|
||||||
data-color-scheme="no-preference: light; light: light; dark: light;"
|
|
||||||
aria-label="Star z0ccc/Vytal on GitHub"
|
|
||||||
>
|
|
||||||
Star
|
|
||||||
</GitHubButton>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
|
|
||||||
export default Github;
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
||||||
import { useContext } from 'react';
|
|
||||||
import DataContext from './Context';
|
|
||||||
import Block from './Block';
|
|
||||||
import Table from './Table';
|
|
||||||
import getIntl from '../utils/intl';
|
|
||||||
|
|
||||||
const IntlBlock = () => {
|
|
||||||
const { workerData } = useContext(DataContext);
|
|
||||||
return (
|
|
||||||
<Block>
|
|
||||||
<h1>Intl</h1>
|
|
||||||
<Table data={getIntl(workerData)} />
|
|
||||||
<p>
|
|
||||||
<b>Explanation:</b> The Intl object exposes info about your computer.{' '}
|
|
||||||
<a
|
|
||||||
className="link"
|
|
||||||
target="_blank"
|
|
||||||
rel="noreferrer"
|
|
||||||
alt="Read more about intl"
|
|
||||||
href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl"
|
|
||||||
>
|
|
||||||
Read more
|
|
||||||
</a>
|
|
||||||
</p>
|
|
||||||
</Block>
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
export default IntlBlock;
|
|
||||||
|
|
@ -1,31 +0,0 @@
|
||||||
import { useContext } from 'react';
|
|
||||||
import DataContext from './Context';
|
|
||||||
import Block from './Block';
|
|
||||||
import Table from './Table';
|
|
||||||
import { getMap, getLocation } from '../utils/connection';
|
|
||||||
|
|
||||||
const LocationBlock = () => {
|
|
||||||
const { workerData, connectionData } = useContext(DataContext);
|
|
||||||
return (
|
|
||||||
<Block>
|
|
||||||
<h1>Location</h1>
|
|
||||||
<img src={getMap(connectionData)} alt="Map of current location" />
|
|
||||||
<Table data={getLocation(connectionData, workerData)} />
|
|
||||||
<p>
|
|
||||||
<b>Explanation:</b> Your IP address can be used to determine your
|
|
||||||
location.{' '}
|
|
||||||
<a
|
|
||||||
className="link"
|
|
||||||
target="_blank"
|
|
||||||
rel="noreferrer"
|
|
||||||
alt="Read more about ip location"
|
|
||||||
href="https://en.wikipedia.org/wiki/IP_address"
|
|
||||||
>
|
|
||||||
Read more
|
|
||||||
</a>
|
|
||||||
</p>
|
|
||||||
</Block>
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
export default LocationBlock;
|
|
||||||
|
|
@ -1,17 +0,0 @@
|
||||||
.logoWrap {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.logo {
|
|
||||||
margin: 20px 0 16px 0;
|
|
||||||
width: 250px;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media screen and (max-width: 500px) {
|
|
||||||
.logo {
|
|
||||||
width: 160px;
|
|
||||||
margin: 12px 0 8px 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,12 +0,0 @@
|
||||||
import './Logo.css';
|
|
||||||
import { ReactComponent as LogoImg } from '../images/logo.svg';
|
|
||||||
|
|
||||||
const Logo = () => (
|
|
||||||
<div className="logoWrap">
|
|
||||||
<a href="/" className="logo" alt="Vytal logo">
|
|
||||||
<LogoImg />
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
|
|
||||||
export default Logo;
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
.centerBlockOuter {
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
gap: 24px;
|
|
||||||
}
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
||||||
import './MainColumn.css';
|
|
||||||
import Logo from './Logo';
|
|
||||||
import Blocks from './Blocks';
|
|
||||||
|
|
||||||
const MainColumn = () => (
|
|
||||||
<>
|
|
||||||
<Logo />
|
|
||||||
<div className="centerBlockOuter">
|
|
||||||
<Blocks />
|
|
||||||
</div>
|
|
||||||
</>
|
|
||||||
);
|
|
||||||
export default MainColumn;
|
|
||||||
|
|
@ -1,30 +0,0 @@
|
||||||
import { useContext } from 'react';
|
|
||||||
import DataContext from './Context';
|
|
||||||
import Block from './Block';
|
|
||||||
import Table from './Table';
|
|
||||||
import getNavigator from '../utils/navigator';
|
|
||||||
|
|
||||||
const NavigatorBlock = () => {
|
|
||||||
const { workerData } = useContext(DataContext);
|
|
||||||
return (
|
|
||||||
<Block>
|
|
||||||
<h1>Navigator</h1>
|
|
||||||
<Table data={getNavigator(workerData)} />
|
|
||||||
<p>
|
|
||||||
<b>Explanation:</b> The Navigator interface exposes info about your
|
|
||||||
computer.{' '}
|
|
||||||
<a
|
|
||||||
className="link"
|
|
||||||
target="_blank"
|
|
||||||
rel="noreferrer"
|
|
||||||
alt="Read more about navigator"
|
|
||||||
href="https://developer.mozilla.org/en-US/docs/Web/API/Navigator"
|
|
||||||
>
|
|
||||||
Read more
|
|
||||||
</a>
|
|
||||||
</p>
|
|
||||||
</Block>
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
export default NavigatorBlock;
|
|
||||||
|
|
@ -1,43 +0,0 @@
|
||||||
import { useState, useEffect, useContext } from 'react';
|
|
||||||
import DataContext from './Context';
|
|
||||||
import Block from './Block';
|
|
||||||
import Table from './Table';
|
|
||||||
import getOther from '../utils/other';
|
|
||||||
|
|
||||||
const OtherBlock = () => {
|
|
||||||
const [adBlock, setAdBlock] = useState();
|
|
||||||
const [battery, setBattery] = useState();
|
|
||||||
const { workerData } = useContext(DataContext);
|
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
fetch('https://www3.doubleclick.net', {
|
|
||||||
method: 'HEAD',
|
|
||||||
mode: 'no-cors',
|
|
||||||
cache: 'no-store',
|
|
||||||
})
|
|
||||||
.then(() => {
|
|
||||||
setAdBlock(false);
|
|
||||||
})
|
|
||||||
.catch(() => {
|
|
||||||
setAdBlock(true);
|
|
||||||
});
|
|
||||||
if ('getBattery' in navigator) {
|
|
||||||
navigator.getBattery().then((res) => {
|
|
||||||
setBattery(res);
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
setBattery('N/A');
|
|
||||||
}
|
|
||||||
}, []);
|
|
||||||
|
|
||||||
return (
|
|
||||||
<Block>
|
|
||||||
<h1>Other</h1>
|
|
||||||
{battery && adBlock !== undefined && (
|
|
||||||
<Table data={getOther(battery, adBlock, workerData)} />
|
|
||||||
)}
|
|
||||||
</Block>
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
export default OtherBlock;
|
|
||||||
|
|
@ -1,24 +0,0 @@
|
||||||
import Block from './Block';
|
|
||||||
import Table from './Table';
|
|
||||||
import getScreen from '../utils/screen';
|
|
||||||
|
|
||||||
const ScreenBlock = () => (
|
|
||||||
<Block>
|
|
||||||
<h1>Screen</h1>
|
|
||||||
<Table data={getScreen()} />
|
|
||||||
<p>
|
|
||||||
<b>Explanation:</b> The Screen interface exposes info about your computer.{' '}
|
|
||||||
<a
|
|
||||||
className="link"
|
|
||||||
target="_blank"
|
|
||||||
rel="noreferrer"
|
|
||||||
alt="Read more about screen"
|
|
||||||
href="https://developer.mozilla.org/en-US/docs/Web/API/Screen"
|
|
||||||
>
|
|
||||||
Read more
|
|
||||||
</a>
|
|
||||||
</p>
|
|
||||||
</Block>
|
|
||||||
);
|
|
||||||
|
|
||||||
export default ScreenBlock;
|
|
||||||
|
|
@ -1,14 +0,0 @@
|
||||||
table {
|
|
||||||
width: 100%;
|
|
||||||
table-layout: fixed;
|
|
||||||
border-collapse: collapse;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tableWrap {
|
|
||||||
border: 1px solid var(--border);
|
|
||||||
border-radius: 6px;
|
|
||||||
}
|
|
||||||
|
|
||||||
tbody:not(:last-child) {
|
|
||||||
border-bottom: 1px solid var(--border);
|
|
||||||
}
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
||||||
import './Table.css';
|
|
||||||
import TableRow from './TableRow';
|
|
||||||
|
|
||||||
const Table = ({ data }) => (
|
|
||||||
<div className="tableWrap">
|
|
||||||
<table>
|
|
||||||
{data.map((item) => (
|
|
||||||
<tbody key={item.key} title={item.code}>
|
|
||||||
<TableRow item={item} />
|
|
||||||
</tbody>
|
|
||||||
))}
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
|
|
||||||
export default Table;
|
|
||||||
|
|
@ -1,73 +0,0 @@
|
||||||
td {
|
|
||||||
padding: 12px;
|
|
||||||
word-break: break-all;
|
|
||||||
}
|
|
||||||
|
|
||||||
td:first-child {
|
|
||||||
width: 150px;
|
|
||||||
font-weight: 600;
|
|
||||||
word-break: normal;
|
|
||||||
}
|
|
||||||
|
|
||||||
td:nth-child(3) {
|
|
||||||
width: 40px;
|
|
||||||
font-weight: 600;
|
|
||||||
}
|
|
||||||
|
|
||||||
.circleButton {
|
|
||||||
display: flex;
|
|
||||||
width: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.issue {
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.issue:hover {
|
|
||||||
background-color: var(--issueBackground);
|
|
||||||
color: var(--issueText);
|
|
||||||
}
|
|
||||||
|
|
||||||
.modalHeader {
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
margin: 0 0 6px 0;
|
|
||||||
height: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.modalTitle {
|
|
||||||
font-weight: 600;
|
|
||||||
}
|
|
||||||
|
|
||||||
.closeButton {
|
|
||||||
fill: var(--border);
|
|
||||||
display: flex;
|
|
||||||
width: 12px;
|
|
||||||
cursor: pointer;
|
|
||||||
margin: 0 0 0 12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.closeButton:hover {
|
|
||||||
fill: var(--grey);
|
|
||||||
}
|
|
||||||
|
|
||||||
ul {
|
|
||||||
padding-left: 20px;
|
|
||||||
margin: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media screen and (max-width: 500px) {
|
|
||||||
td {
|
|
||||||
padding: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
td:first-child {
|
|
||||||
width: 75px;
|
|
||||||
}
|
|
||||||
|
|
||||||
td:nth-child(3) {
|
|
||||||
width: 20px;
|
|
||||||
font-weight: 600;
|
|
||||||
word-break: normal;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,68 +0,0 @@
|
||||||
import './TableRow.css';
|
|
||||||
import Modal from 'react-modal';
|
|
||||||
import { useState } from 'react';
|
|
||||||
import { ReactComponent as XCircle } from '../images/xCircle.svg';
|
|
||||||
import { ReactComponent as CheckCircle } from '../images/checkCircle.svg';
|
|
||||||
import { ReactComponent as X } from '../images/x.svg';
|
|
||||||
|
|
||||||
const modalStyles = {
|
|
||||||
content: {
|
|
||||||
top: '50%',
|
|
||||||
left: '50%',
|
|
||||||
right: 'auto',
|
|
||||||
bottom: 'auto',
|
|
||||||
marginRight: '-50%',
|
|
||||||
transform: 'translate(-50%, -50%)',
|
|
||||||
padding: '18px',
|
|
||||||
border: '1px solid var(--border)',
|
|
||||||
borderRadius: '6px',
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
Modal.setAppElement('#root');
|
|
||||||
|
|
||||||
const TableRow = ({ item }) => {
|
|
||||||
const issues = item.issues.filter(Boolean).length !== 0;
|
|
||||||
const [modalIsOpen, setIsOpen] = useState(false);
|
|
||||||
|
|
||||||
const openModal = () => {
|
|
||||||
if (issues) setIsOpen(true);
|
|
||||||
};
|
|
||||||
|
|
||||||
const closeModal = () => {
|
|
||||||
setIsOpen(false);
|
|
||||||
};
|
|
||||||
return (
|
|
||||||
<>
|
|
||||||
<tr className={issues ? 'issue' : ''} onClick={openModal}>
|
|
||||||
<td>{item.key}</td>
|
|
||||||
<td>{item.value || 'N/A'}</td>
|
|
||||||
<td>
|
|
||||||
{issues ? (
|
|
||||||
<XCircle className="circleButton" />
|
|
||||||
) : (
|
|
||||||
<CheckCircle className="circleButton" />
|
|
||||||
)}
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<Modal
|
|
||||||
isOpen={modalIsOpen}
|
|
||||||
onRequestClose={closeModal}
|
|
||||||
style={modalStyles}
|
|
||||||
contentLabel="Issues Modal"
|
|
||||||
>
|
|
||||||
<div className="modalHeader">
|
|
||||||
<div className="modalTitle">{item.key} issues</div>
|
|
||||||
<X className="closeButton" onClick={closeModal} />
|
|
||||||
</div>
|
|
||||||
<ul>
|
|
||||||
{item.issues.filter(Boolean).map((ele, index) => (
|
|
||||||
<li key={index}>{ele}</li>
|
|
||||||
))}
|
|
||||||
</ul>
|
|
||||||
</Modal>
|
|
||||||
</>
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
export default TableRow;
|
|
||||||
|
|
@ -1,30 +0,0 @@
|
||||||
import { useContext } from 'react';
|
|
||||||
import DataContext from './Context';
|
|
||||||
import Block from './Block';
|
|
||||||
import Table from './Table';
|
|
||||||
import getUserAgent from '../utils/userAgent';
|
|
||||||
|
|
||||||
const UserAgentBlock = () => {
|
|
||||||
const { workerData } = useContext(DataContext);
|
|
||||||
return (
|
|
||||||
<Block>
|
|
||||||
<h1>User Agent</h1>
|
|
||||||
<Table data={getUserAgent(workerData.userAgent)} />
|
|
||||||
<p>
|
|
||||||
<b>Explanation:</b> Your user agent can be parsed to determine
|
|
||||||
information about your browser or operating system.{' '}
|
|
||||||
<a
|
|
||||||
className="link"
|
|
||||||
target="_blank"
|
|
||||||
rel="noreferrer"
|
|
||||||
alt="Read more about user agent"
|
|
||||||
href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent"
|
|
||||||
>
|
|
||||||
Read more
|
|
||||||
</a>
|
|
||||||
</p>
|
|
||||||
</Block>
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
export default UserAgentBlock;
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
|
|
||||||
<g fill="#9fa6b2">
|
|
||||||
<path d="M464 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM32 80c0-8.8 7.2-16 16-16h48v64H32V80zm448 352c0 8.8-7.2 16-16 16H48c-8.8 0-16-7.2-16-16V160h448v272zm0-304H128V64h336c8.8 0 16 7.2 16 16v48z"/>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 360 B |
|
|
@ -1,5 +0,0 @@
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
|
|
||||||
<g fill="#c3e6cb">
|
|
||||||
<path d="M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"/>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 470 B |
|
|
@ -1,5 +0,0 @@
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
|
|
||||||
<g fill="#9fa6b2">
|
|
||||||
<path d="M256 169.92c-28.28.41-52.84 9.62-71.37 28.17-18 18-27.69 41.94-27.28 67.44.78 50.23-3.91 100.5-14 149.39-1.81 8.66 3.78 17.12 12.41 18.91 8.5 1.66 17.09-3.77 18.91-12.44 10.56-51.17 15.5-103.78 14.69-156.35-.25-16.77 6.09-32.5 17.91-44.31 18.66-18.66 42.27-18.8 48.75-18.8 37.12.55 66.41 30.19 66.97 66.06.78 50.37-2.97 100.86-11.12 150.06-1.44 8.72 4.44 16.95 13.16 18.39.91.16 1.78.22 2.66.22 7.69 0 14.47-5.55 15.75-13.39 8.47-51.08 12.34-103.48 11.56-155.79-.87-53-44.81-96.76-99-97.56zm-.09 86.09c-8.84.14-15.87 7.41-15.75 16.25 1.12 73.39-8.22 144.99-27.78 215.07l-1.22 4.33c-1.85 6.63 1.74 20.34 15.41 20.34 7 0 13.41-4.61 15.41-11.66l1.22-4.37c20.41-73.08 30.16-147.74 28.97-224.21-.14-8.84-8.23-15.9-16.26-15.75zM112.66 149.79c-25.19 30.98-38.72 70.11-38.09 110.15.62 39.56-2.62 79.14-9.59 117.61-1.56 8.7 4.19 17.03 12.91 18.61.97.17 1.91.25 2.87.25 7.56 0 14.31-5.42 15.72-13.14 7.34-40.53 10.72-82.18 10.09-123.82-.53-33.01 10.19-63.95 30.91-89.47 5.59-6.86 4.53-16.94-2.31-22.51-6.85-5.55-16.91-4.57-22.51 2.32zm399.22 103.03c-.25-16.5-2.19-33.03-5.75-49.14-1.91-8.61-10.34-14-19.06-12.17-8.62 1.91-14.09 10.44-12.19 19.08 3.09 14 4.78 28.39 5 42.73.12 7.66.16 15.31.09 22.97-.06 8.83 7.03 16.05 15.87 16.12h.12c8.78 0 15.94-7.08 16-15.87.07-7.91.04-15.81-.08-23.72zM252.6.05C182.63-1.29 118.32 24.88 70.32 72.91 24.04 119.22-.87 180.76.16 246.2c.12 7.55.06 15.09-.16 22.62-.25 8.83 6.72 16.2 15.56 16.45H16c8.62 0 15.75-6.87 16-15.55.22-8 .28-16.02.16-24.03-.9-56.69 20.69-110.04 60.78-150.16 41.78-41.84 98.9-64.37 159.15-63.48 74.69 1.09 144.87 38.23 187.75 99.32 5.12 7.23 15.12 8.97 22.28 3.91 7.25-5.08 9-15.05 3.91-22.28C417.28 43.52 337.5 1.3 252.6.05zm1.28 84.93a182.36 182.36 0 0 0-45.19 4.91c-8.59 2.03-13.91 10.66-11.87 19.26 2.03 8.58 10.75 13.87 19.25 11.86 12.12-2.86 25.09-4.25 37.31-4.03 82.78 1.22 151.12 67.56 152.37 147.89.62 39.65-1.34 79.59-5.81 118.7-1 8.78 5.31 16.7 14.09 17.7.62.08 1.22.11 1.84.11 8 0 14.94-6.02 15.87-14.19 4.62-40.47 6.62-81.79 6-122.82-1.49-97.44-83.99-177.92-183.86-179.39z"/>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 2.1 KiB |
|
|
@ -1,17 +0,0 @@
|
||||||
<svg
|
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
preserveAspectRatio="xMidYMid meet"
|
|
||||||
version="1"
|
|
||||||
viewBox="0 0 4389 1056"
|
|
||||||
>
|
|
||||||
<g fill="#fff" stroke="none" transform="matrix(.1 0 0 -.1 0 1056)">
|
|
||||||
<path d="M4890 10554c-19-2-102-11-185-20-814-84-1627-377-2332-841-666-437-1242-1047-1652-1748-345-590-582-1279-670-1950-34-261-44-422-44-710 0-388 28-679 99-1035C523 2160 2153 526 4240 106c360-73 640-99 1040-99 488 0 847 44 1305 160 665 168 1310 477 1860 891 1004 754 1703 1833 1983 3062 146 636 168 1351 61 2010-273 1699-1362 3160-2913 3911-540 261-1091 420-1716 495-100 12-240 17-535 19-220 2-416 1-435-1zm870-978c947-115 1772-494 2460-1130 303-281 615-672 815-1025 491-866 669-1875 504-2861-113-681-390-1322-814-1885-233-310-552-627-869-862-1529-1139-3637-1136-5161 7-391 294-746 669-1012 1070-367 553-599 1170-683 1814-113 869 22 1705 399 2472 103 210 151 294 287 499 316 476 726 886 1199 1199 340 225 629 368 999 495 349 120 681 187 1106 225 112 10 641-3 770-18z"></path>
|
|
||||||
<path d="M5045 8784c-729-59-1353-298-1925-740-149-114-480-445-594-594-405-524-638-1090-722-1755-22-172-25-595-6-760 86-742 352-1362 822-1916 176-207 457-462 565-513 153-73 342-56 483 44 140 98 210 245 199 420-9 156-62 251-211 377-479 408-770 907-876 1504-31 174-39 528-16 719 93 759 503 1435 1121 1847 275 183 609 315 946 372 442 76 912 34 1329-116 593-214 1089-664 1375-1248 194-396 270-726 270-1165-1-320-34-522-135-815-143-414-360-722-786-1116-311-287-141-788 284-834 71-8 180 13 256 51 97 47 353 285 519 482 474 563 751 1223 818 1954 17 188 6 625-19 798-99 656-347 1220-760 1730-118 144-361 385-514 507-520 416-1102 662-1770 748-118 16-543 28-653 19z"></path>
|
|
||||||
<path d="M5175 6514c-92-14-198-39-260-61-458-165-766-607-768-1103-1-309 89-544 306-792 141-160 207-284 259-481 21-80 22-101 27-972l6-890 24-60c79-199 237-332 440-372 282-56 561 117 657 407 17 51 19 120 24 935 6 867 6 881 28 958 51 183 137 343 254 474 207 230 308 486 308 782 0 328-118 612-349 842-171 170-340 263-576 314-69 16-321 28-380 19z"></path>
|
|
||||||
<path d="M39255 8795c-156-35-252-89-375-214-79-79-103-111-137-181-23-47-50-112-60-145-17-57-18-203-21-2915-2-2552-1-2863 13-2933 31-154 97-272 219-392 93-91 176-144 291-183l80-27 1972-3c2216-3 2045-8 2213 74 82 41 109 61 196 148s107 114 147 196c56 113 77 207 77 338-1 222-69 380-232 538-87 85-141 122-228 159-131 55-109 54-1270 57-591 2-1274 4-1517 6l-443 2-2 2433-3 2432-23 73c-86 279-301 480-574 536-92 19-240 20-323 1z"></path>
|
|
||||||
<path d="M12765 8744c-101-17-243-74-332-136-160-109-287-325-313-531-10-84-2-193 21-280 9-37 516-1310 1838-4620 424-1062 439-1096 540-1209 63-71 201-159 301-192 130-43 243-53 364-32 163 27 276 83 399 196 130 120 126 111 585 1263 231 578 735 1842 1120 2807 530 1328 705 1776 718 1840 59 295-87 628-344 784-226 137-480 151-719 41-147-68-257-165-333-294-21-36-377-914-790-1950l-753-1884-756 1890c-416 1039-772 1916-791 1949-48 81-170 202-255 252-114 67-240 104-365 107-58 2-118 1-135-1z"></path>
|
|
||||||
<path d="M26688 8740c-304-52-566-312-619-614-18-104-7-273 24-369 75-231 263-414 512-498l70-24 792-3 793-3 2-2442 3-2442 23-70c87-258 284-451 528-516 108-29 287-29 396-1 270 72 486 299 544 571 11 55 14 457 14 2484v2417h753c474 0 776 4 816 11 164 26 285 91 416 223 151 152 214 307 215 523 0 116-11 179-47 277-66 176-234 350-413 426-140 59 58 54-2465 56-1270 1-2331-2-2357-6z"></path>
|
|
||||||
<path d="M34355 8735c-232-43-433-192-538-402-33-64-2231-5575-2255-5652-13-42-17-90-17-196 1-131 3-146 32-227 78-220 214-370 416-455 112-47 194-64 307-65 143 0 264 32 382 103 119 70 223 181 285 304 12 22 357 879 768 1905s750 1868 754 1872c3 4 339-826 745-1845 406-1018 755-1885 775-1925 133-274 456-451 752-413 109 14 155 29 279 88 79 38 107 59 180 132 71 71 94 103 133 181 89 180 112 363 68 530-22 86-2217 5595-2263 5682-150 281-487 442-803 383z"></path>
|
|
||||||
<path d="M19760 8661c-129-35-236-96-337-194-264-253-298-670-80-966 23-31 467-625 987-1321l945-1265 5-1255 5-1255 24-70c65-194 179-338 343-437 106-63 202-90 343-95 153-6 238 11 364 73 169 83 316 254 379 441l27 78 5 1250 5 1250 1021 1280c561 704 1039 1305 1062 1335 94 127 137 261 135 430-2 240-95 431-283 581-141 113-312 167-495 156-199-13-348-76-478-205-29-28-421-512-872-1075l-819-1025-763 1018c-419 561-781 1040-805 1066-133 145-329 224-548 223-68 0-128-6-170-18z"></path>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 4.2 KiB |
|
|
@ -1,5 +0,0 @@
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512">
|
|
||||||
<g fill="#9fa6b2">
|
|
||||||
<path d="M320 320c-44.18 0-80 35.82-80 80 0 44.19 35.83 80 80 80 44.19 0 80-35.84 80-80 0-44.18-35.82-80-80-80zm0 128c-26.47 0-48-21.53-48-48s21.53-48 48-48 48 21.53 48 48-21.53 48-48 48zm316.21-290.05C459.22-9.9 180.95-10.06 3.79 157.95c-4.94 4.69-5.08 12.51-.26 17.32l5.69 5.69c4.61 4.61 12.07 4.74 16.8.25 164.99-156.39 423.64-155.76 587.97 0 4.73 4.48 12.19 4.35 16.8-.25l5.69-5.69c4.81-4.81 4.67-12.63-.27-17.32zM526.02 270.31c-117.34-104.48-294.86-104.34-412.04 0-5.05 4.5-5.32 12.31-.65 17.2l5.53 5.79c4.46 4.67 11.82 4.96 16.66.67 105.17-93.38 264-93.21 368.98 0 4.83 4.29 12.19 4.01 16.66-.67l5.53-5.79c4.65-4.89 4.38-12.7-.67-17.2z"/>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 746 B |
|
|
@ -1 +0,0 @@
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path d="M207.6 256l107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z"/></svg>
|
|
||||||
|
Before Width: | Height: | Size: 468 B |
|
|
@ -1,5 +0,0 @@
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
|
|
||||||
<g fill="#f4c1c6">
|
|
||||||
<path d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z"/>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 489 B |
|
|
@ -1,16 +0,0 @@
|
||||||
import React from 'react';
|
|
||||||
import ReactDOM from 'react-dom';
|
|
||||||
import App from './components/App';
|
|
||||||
import * as serviceWorker from './serviceWorker';
|
|
||||||
|
|
||||||
ReactDOM.render(
|
|
||||||
<React.StrictMode>
|
|
||||||
<App />
|
|
||||||
</React.StrictMode>,
|
|
||||||
document.getElementById('root')
|
|
||||||
);
|
|
||||||
|
|
||||||
// If you want your app to work offline and load faster, you can change
|
|
||||||
// unregister() to register() below. Note this comes with some pitfalls.
|
|
||||||
// Learn more about service workers: https://bit.ly/CRA-PWA
|
|
||||||
serviceWorker.unregister();
|
|
||||||
|
|
@ -1,142 +0,0 @@
|
||||||
/* eslint-disable */
|
|
||||||
// This optional code is used to register a service worker.
|
|
||||||
// register() is not called by default.
|
|
||||||
|
|
||||||
// This lets the app load faster on subsequent visits in production, and gives
|
|
||||||
// it offline capabilities. However, it also means that developers (and users)
|
|
||||||
// will only see deployed updates on subsequent visits to a page, after all the
|
|
||||||
// existing tabs open on the page have been closed, since previously cached
|
|
||||||
// resources are updated in the background.
|
|
||||||
|
|
||||||
// To learn more about the benefits of this model and instructions on how to
|
|
||||||
// opt-in, read https://bit.ly/CRA-PWA
|
|
||||||
|
|
||||||
const isLocalhost = Boolean(
|
|
||||||
window.location.hostname === 'localhost' ||
|
|
||||||
// [::1] is the IPv6 localhost address.
|
|
||||||
window.location.hostname === '[::1]' ||
|
|
||||||
// 127.0.0.0/8 are considered localhost for IPv4.
|
|
||||||
window.location.hostname.match(
|
|
||||||
/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
export function register(config) {
|
|
||||||
if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {
|
|
||||||
// The URL constructor is available in all browsers that support SW.
|
|
||||||
const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);
|
|
||||||
if (publicUrl.origin !== window.location.origin) {
|
|
||||||
// Our service worker won't work if PUBLIC_URL is on a different origin
|
|
||||||
// from what our page is served on. This might happen if a CDN is used to
|
|
||||||
// serve assets; see https://github.com/facebook/create-react-app/issues/2374
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
window.addEventListener('load', () => {
|
|
||||||
const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;
|
|
||||||
|
|
||||||
if (isLocalhost) {
|
|
||||||
// This is running on localhost. Let's check if a service worker still exists or not.
|
|
||||||
checkValidServiceWorker(swUrl, config);
|
|
||||||
|
|
||||||
// Add some additional logging to localhost, pointing developers to the
|
|
||||||
// service worker/PWA documentation.
|
|
||||||
navigator.serviceWorker.ready.then(() => {
|
|
||||||
console.log(
|
|
||||||
'This web app is being served cache-first by a service ' +
|
|
||||||
'worker. To learn more, visit https://bit.ly/CRA-PWA'
|
|
||||||
);
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
// Is not localhost. Just register service worker
|
|
||||||
registerValidSW(swUrl, config);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function registerValidSW(swUrl, config) {
|
|
||||||
navigator.serviceWorker
|
|
||||||
.register(swUrl)
|
|
||||||
.then((registration) => {
|
|
||||||
registration.onupdatefound = () => {
|
|
||||||
const installingWorker = registration.installing;
|
|
||||||
if (installingWorker == null) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
installingWorker.onstatechange = () => {
|
|
||||||
if (installingWorker.state === 'installed') {
|
|
||||||
if (navigator.serviceWorker.controller) {
|
|
||||||
// At this point, the updated precached content has been fetched,
|
|
||||||
// but the previous service worker will still serve the older
|
|
||||||
// content until all client tabs are closed.
|
|
||||||
console.log(
|
|
||||||
'New content is available and will be used when all ' +
|
|
||||||
'tabs for this page are closed. See https://bit.ly/CRA-PWA.'
|
|
||||||
);
|
|
||||||
|
|
||||||
// Execute callback
|
|
||||||
if (config && config.onUpdate) {
|
|
||||||
config.onUpdate(registration);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
// At this point, everything has been precached.
|
|
||||||
// It's the perfect time to display a
|
|
||||||
// "Content is cached for offline use." message.
|
|
||||||
console.log('Content is cached for offline use.');
|
|
||||||
|
|
||||||
// Execute callback
|
|
||||||
if (config && config.onSuccess) {
|
|
||||||
config.onSuccess(registration);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
};
|
|
||||||
})
|
|
||||||
.catch((error) => {
|
|
||||||
console.error('Error during service worker registration:', error);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function checkValidServiceWorker(swUrl, config) {
|
|
||||||
// Check if the service worker can be found. If it can't reload the page.
|
|
||||||
fetch(swUrl, {
|
|
||||||
headers: { 'Service-Worker': 'script' },
|
|
||||||
})
|
|
||||||
.then((response) => {
|
|
||||||
// Ensure service worker exists, and that we really are getting a JS file.
|
|
||||||
const contentType = response.headers.get('content-type');
|
|
||||||
if (
|
|
||||||
response.status === 404 ||
|
|
||||||
(contentType != null && contentType.indexOf('javascript') === -1)
|
|
||||||
) {
|
|
||||||
// No service worker found. Probably a different app. Reload the page.
|
|
||||||
navigator.serviceWorker.ready.then((registration) => {
|
|
||||||
registration.unregister().then(() => {
|
|
||||||
window.location.reload();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
// Service worker found. Proceed as normal.
|
|
||||||
registerValidSW(swUrl, config);
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.catch(() => {
|
|
||||||
console.log(
|
|
||||||
'No internet connection found. App is running in offline mode.'
|
|
||||||
);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
export function unregister() {
|
|
||||||
if ('serviceWorker' in navigator) {
|
|
||||||
navigator.serviceWorker.ready
|
|
||||||
.then((registration) => {
|
|
||||||
registration.unregister();
|
|
||||||
})
|
|
||||||
.catch((error) => {
|
|
||||||
console.error(error.message);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
// 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/extend-expect';
|
|
||||||
|
|
@ -1,25 +0,0 @@
|
||||||
// Gets location values
|
|
||||||
const fetchAPI = (setData) => {
|
|
||||||
fetch('https://api.vytal.io/ip/')
|
|
||||||
.then((response) => response.json())
|
|
||||||
.then((json) => {
|
|
||||||
setData(json);
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
const checkWebWorker = (key, worker) => {
|
|
||||||
if (`${key}` !== `${worker}`) {
|
|
||||||
return `Did not match web worker (${worker})`;
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
};
|
|
||||||
|
|
||||||
const getWebWorker = () => {
|
|
||||||
let w;
|
|
||||||
if (typeof w === 'undefined') {
|
|
||||||
w = new Worker('worker.js');
|
|
||||||
}
|
|
||||||
return w;
|
|
||||||
};
|
|
||||||
|
|
||||||
export { fetchAPI, checkWebWorker, getWebWorker };
|
|
||||||
|
|
@ -1,88 +0,0 @@
|
||||||
const getMap = (data) =>
|
|
||||||
`https://maps.googleapis.com/maps/api/staticmap?center=${data.lat},${data.lon}&markers=color:red%7Clabel:%7C${data.lat},${data.lon}&size=500x200&zoom=10&key=AIzaSyB-YN-X8PGBSPd7NOaQu4csVhgJUnF3ZGk`;
|
|
||||||
|
|
||||||
const compareTimeZone = (locationTimeZone, workerTimeZone) => {
|
|
||||||
if (locationTimeZone !== workerTimeZone) {
|
|
||||||
return "Location data doesn't match system data";
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
};
|
|
||||||
|
|
||||||
const checkProxy = (proxy) => {
|
|
||||||
if (proxy) {
|
|
||||||
return 'VPN/proxy has been detected';
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
};
|
|
||||||
|
|
||||||
// Returns object with location data
|
|
||||||
const getLocation = (data, workerData) => {
|
|
||||||
const timeZoneIssue = compareTimeZone(data.timezone, workerData.timeZone);
|
|
||||||
const isProxy = checkProxy(data.proxy);
|
|
||||||
return [
|
|
||||||
{
|
|
||||||
key: 'Country',
|
|
||||||
value: data.country,
|
|
||||||
issues: [timeZoneIssue, isProxy],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key: 'Region',
|
|
||||||
value: data.regionName,
|
|
||||||
issues: [timeZoneIssue, isProxy],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key: 'City',
|
|
||||||
value: data.city,
|
|
||||||
issues: [timeZoneIssue, isProxy],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key: 'Time zone',
|
|
||||||
value: data.timezone,
|
|
||||||
issues: [timeZoneIssue, isProxy],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key: 'Zip code',
|
|
||||||
value: data.zip,
|
|
||||||
issues: [timeZoneIssue, isProxy],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key: 'Latitude',
|
|
||||||
value: data.lat,
|
|
||||||
issues: [timeZoneIssue, isProxy],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key: 'Longitude',
|
|
||||||
value: data.lon,
|
|
||||||
issues: [timeZoneIssue, isProxy],
|
|
||||||
},
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
// Returns object with location data
|
|
||||||
const getConnection = (data) => {
|
|
||||||
const isProxy = checkProxy(data.proxy);
|
|
||||||
return [
|
|
||||||
{
|
|
||||||
key: 'IP address',
|
|
||||||
value: data.query,
|
|
||||||
issues: [isProxy],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key: 'ISP',
|
|
||||||
value: data.isp,
|
|
||||||
issues: [isProxy],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key: 'Org',
|
|
||||||
value: data.org,
|
|
||||||
issues: [isProxy],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key: 'ASN',
|
|
||||||
value: data.as,
|
|
||||||
issues: [isProxy],
|
|
||||||
},
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
export { getMap, getConnection, getLocation };
|
|
||||||
|
|
@ -1,39 +0,0 @@
|
||||||
import axios from 'axios';
|
|
||||||
import md5 from 'crypto-js/md5';
|
|
||||||
|
|
||||||
const getSignature = (hash, setSignature, setload) => {
|
|
||||||
axios
|
|
||||||
.get(`https://api.vytal.io/fingerprint/?hash=${hash}`)
|
|
||||||
.then((response) => {
|
|
||||||
if (response.data.length !== 0) {
|
|
||||||
setSignature(response.data[response.data.length - 1].name);
|
|
||||||
}
|
|
||||||
setload(true);
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
const postSignature = (hash, e, setSignature) => {
|
|
||||||
e.preventDefault();
|
|
||||||
axios.post('https://api.vytal.io/fingerprint/', {
|
|
||||||
name: e.target[0].value,
|
|
||||||
hash,
|
|
||||||
});
|
|
||||||
setSignature(e.target[0].value);
|
|
||||||
};
|
|
||||||
|
|
||||||
const getHash = (data) => md5(JSON.stringify(data)).toString();
|
|
||||||
|
|
||||||
const getFingerprint = (signature, hash) => [
|
|
||||||
{
|
|
||||||
key: 'Signature',
|
|
||||||
value: signature,
|
|
||||||
issues: [],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key: 'Hash',
|
|
||||||
value: hash,
|
|
||||||
issues: [],
|
|
||||||
},
|
|
||||||
];
|
|
||||||
|
|
||||||
export { getSignature, postSignature, getHash, getFingerprint };
|
|
||||||
|
|
@ -1,26 +0,0 @@
|
||||||
import { checkWebWorker } from './common';
|
|
||||||
|
|
||||||
const getLocale = (locale) => ({
|
|
||||||
key: 'Locale',
|
|
||||||
code: 'Intl.DateTimeFormat().resolvedOptions().locale',
|
|
||||||
value: Intl.DateTimeFormat().resolvedOptions().locale,
|
|
||||||
issues: [
|
|
||||||
checkWebWorker(Intl.DateTimeFormat().resolvedOptions().locale, locale),
|
|
||||||
],
|
|
||||||
});
|
|
||||||
|
|
||||||
const getTimezone = (timeZone) => ({
|
|
||||||
key: 'Timezone',
|
|
||||||
code: 'Intl.DateTimeFormat().resolvedOptions().timeZone',
|
|
||||||
value: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
||||||
issues: [
|
|
||||||
checkWebWorker(Intl.DateTimeFormat().resolvedOptions().timeZone, timeZone),
|
|
||||||
],
|
|
||||||
});
|
|
||||||
|
|
||||||
const getIntl = (workerData) => [
|
|
||||||
getLocale(workerData.locale),
|
|
||||||
getTimezone(workerData.timeZone),
|
|
||||||
];
|
|
||||||
|
|
||||||
export default getIntl;
|
|
||||||
|
|
@ -1,262 +0,0 @@
|
||||||
import { checkWebWorker } from './common';
|
|
||||||
|
|
||||||
const getDeviceMemory = (worker) => {
|
|
||||||
const name = 'deviceMemory';
|
|
||||||
return {
|
|
||||||
key: 'Device memory',
|
|
||||||
code: `navigator.${name}`,
|
|
||||||
value: navigator[name],
|
|
||||||
issues: [
|
|
||||||
checkNavigatorProperties(name),
|
|
||||||
checkNavigatorValue(name),
|
|
||||||
checkNavigatorPrototype(name),
|
|
||||||
checkWebWorker(navigator[name], worker),
|
|
||||||
],
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
const getHardwareConcurrency = (worker) => {
|
|
||||||
const name = 'hardwareConcurrency';
|
|
||||||
return {
|
|
||||||
key: 'Hardware concurrency',
|
|
||||||
code: `navigator.${name}`,
|
|
||||||
value: navigator[name],
|
|
||||||
issues: [
|
|
||||||
checkNavigatorProperties(name),
|
|
||||||
checkNavigatorValue(name),
|
|
||||||
checkNavigatorPrototype(name),
|
|
||||||
checkWebWorker(navigator[name], worker),
|
|
||||||
],
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
const getMaxTouchPoints = () => {
|
|
||||||
const name = 'maxTouchPoints';
|
|
||||||
return {
|
|
||||||
key: 'Max touch points',
|
|
||||||
code: `navigator.${name}`,
|
|
||||||
value: navigator[name],
|
|
||||||
issues: [
|
|
||||||
checkNavigatorProperties(name),
|
|
||||||
checkNavigatorValue(name),
|
|
||||||
checkNavigatorPrototype(name),
|
|
||||||
],
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
const getPlatform = (worker) => {
|
|
||||||
const name = 'platform';
|
|
||||||
return {
|
|
||||||
key: 'Platform',
|
|
||||||
code: `navigator.${name}`,
|
|
||||||
value: navigator[name],
|
|
||||||
issues: [
|
|
||||||
checkNavigatorProperties(name),
|
|
||||||
checkNavigatorValue(name),
|
|
||||||
checkNavigatorPrototype(name),
|
|
||||||
checkWebWorker(navigator[name], worker),
|
|
||||||
],
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
const getUserAgent = (worker) => {
|
|
||||||
const name = 'userAgent';
|
|
||||||
return {
|
|
||||||
key: 'User agent',
|
|
||||||
code: `navigator.${name}`,
|
|
||||||
value: navigator[name],
|
|
||||||
issues: [
|
|
||||||
checkNavigatorProperties(name),
|
|
||||||
checkNavigatorValue(name),
|
|
||||||
checkNavigatorPrototype(name),
|
|
||||||
checkWebWorker(navigator[name], worker),
|
|
||||||
],
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
const getAppVersion = (worker) => {
|
|
||||||
const name = 'appVersion';
|
|
||||||
return {
|
|
||||||
key: 'App version',
|
|
||||||
code: `navigator.${name}`,
|
|
||||||
value: navigator[name],
|
|
||||||
issues: [
|
|
||||||
checkNavigatorProperties(name),
|
|
||||||
checkNavigatorValue(name),
|
|
||||||
checkNavigatorPrototype(name),
|
|
||||||
checkWebWorker(navigator[name], worker),
|
|
||||||
],
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
const getLanguage = (worker) => {
|
|
||||||
const name = 'language';
|
|
||||||
return {
|
|
||||||
key: 'Language',
|
|
||||||
code: `navigator.${name}`,
|
|
||||||
value: navigator[name],
|
|
||||||
issues: [
|
|
||||||
checkNavigatorProperties(name),
|
|
||||||
checkNavigatorValue(name),
|
|
||||||
checkNavigatorPrototype(name),
|
|
||||||
checkWebWorker(navigator[name], worker),
|
|
||||||
],
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
const getLanguages = () => {
|
|
||||||
const name = 'languages';
|
|
||||||
return {
|
|
||||||
key: 'Languages',
|
|
||||||
code: `navigator.${name}`,
|
|
||||||
value: sortArr(navigator[name]),
|
|
||||||
issues: [
|
|
||||||
checkNavigatorProperties(name),
|
|
||||||
checkNavigatorValue(name),
|
|
||||||
checkNavigatorPrototype(name),
|
|
||||||
],
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
const getCookieEnabled = () => {
|
|
||||||
const name = 'cookieEnabled';
|
|
||||||
return {
|
|
||||||
key: 'Cookie enabled',
|
|
||||||
code: `navigator.${name}`,
|
|
||||||
value: navigator[name] ? 'True' : 'False',
|
|
||||||
issues: [
|
|
||||||
checkNavigatorProperties(name),
|
|
||||||
checkNavigatorValue(name),
|
|
||||||
checkNavigatorPrototype(name),
|
|
||||||
],
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
const getDoNotTrack = () => {
|
|
||||||
const name = 'doNotTrack';
|
|
||||||
return {
|
|
||||||
key: 'Do not track',
|
|
||||||
code: `navigator.${name}`,
|
|
||||||
value: navigator[name] ? 'True' : 'False',
|
|
||||||
issues: [
|
|
||||||
checkNavigatorProperties(name),
|
|
||||||
checkNavigatorValue(name),
|
|
||||||
checkNavigatorPrototype(name),
|
|
||||||
],
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
const getWebDriver = () => {
|
|
||||||
const name = 'webdriver';
|
|
||||||
return {
|
|
||||||
key: 'Web driver',
|
|
||||||
code: `navigator.${name}`,
|
|
||||||
value: navigator[name] ? 'True' : 'False',
|
|
||||||
issues: [
|
|
||||||
checkNavigatorProperties(name),
|
|
||||||
checkNavigatorValue(name),
|
|
||||||
checkNavigatorPrototype(name),
|
|
||||||
],
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
const getPlugins = () => {
|
|
||||||
const name = 'plugins';
|
|
||||||
return {
|
|
||||||
key: 'Plugins',
|
|
||||||
code: `navigator.${name}`,
|
|
||||||
value: sortPlugins(navigator[name]),
|
|
||||||
issues: [
|
|
||||||
checkNavigatorProperties(name),
|
|
||||||
checkNavigatorValue(name),
|
|
||||||
checkNavigatorPrototype(name),
|
|
||||||
],
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
const getVendor = () => {
|
|
||||||
const name = 'vendor';
|
|
||||||
return {
|
|
||||||
key: 'Vendor',
|
|
||||||
code: `navigator.${name}`,
|
|
||||||
value: navigator[name],
|
|
||||||
issues: [
|
|
||||||
checkNavigatorProperties(name),
|
|
||||||
checkNavigatorValue(name),
|
|
||||||
checkNavigatorPrototype(name),
|
|
||||||
],
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
// sorts array into comma separated list
|
|
||||||
const sortArr = (arr) => {
|
|
||||||
const arrLength = arr.length;
|
|
||||||
let list = '';
|
|
||||||
for (let i = 0; i < arrLength; i++) {
|
|
||||||
if (i !== 0) list += ', ';
|
|
||||||
list += arr[i];
|
|
||||||
}
|
|
||||||
return list;
|
|
||||||
};
|
|
||||||
|
|
||||||
// sorts plugins object into comma separated list
|
|
||||||
const sortPlugins = (data) => {
|
|
||||||
const { length } = data;
|
|
||||||
|
|
||||||
let list = '';
|
|
||||||
for (let i = 0; i < length; i++) {
|
|
||||||
if (i !== 0) list += ', ';
|
|
||||||
list += data[i].name;
|
|
||||||
}
|
|
||||||
return list;
|
|
||||||
};
|
|
||||||
|
|
||||||
const checkNavigatorProperties = (name) => {
|
|
||||||
if (Object.getOwnPropertyDescriptor(navigator, name) !== undefined) {
|
|
||||||
return 'Failed undefined properties';
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
};
|
|
||||||
|
|
||||||
const checkNavigatorValue = (name) => {
|
|
||||||
try {
|
|
||||||
// eslint-disable-next-line no-unused-vars
|
|
||||||
const { value } = Object.getOwnPropertyDescriptor(
|
|
||||||
Navigator.prototype,
|
|
||||||
name
|
|
||||||
);
|
|
||||||
} catch (err) {
|
|
||||||
return 'Failed Navigator property value';
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
};
|
|
||||||
|
|
||||||
const checkNavigatorPrototype = (name) => {
|
|
||||||
try {
|
|
||||||
// eslint-disable-next-line no-unused-vars
|
|
||||||
const check = Navigator.prototype[name];
|
|
||||||
return 'Failed Navigator.prototype';
|
|
||||||
} catch (err) {
|
|
||||||
// eslint-disable-next-line no-unused-vars
|
|
||||||
const check = '';
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
};
|
|
||||||
|
|
||||||
const getNavigator = (workerData) => [
|
|
||||||
getDeviceMemory(workerData.deviceMemory),
|
|
||||||
getHardwareConcurrency(workerData.hardwareConcurrency),
|
|
||||||
getMaxTouchPoints(),
|
|
||||||
getPlatform(workerData.platform),
|
|
||||||
getUserAgent(workerData.userAgent),
|
|
||||||
getAppVersion(workerData.appVersion),
|
|
||||||
getLanguage(workerData.language),
|
|
||||||
getLanguages(),
|
|
||||||
getCookieEnabled(),
|
|
||||||
getDoNotTrack(),
|
|
||||||
getWebDriver(),
|
|
||||||
getPlugins(),
|
|
||||||
getVendor(),
|
|
||||||
];
|
|
||||||
|
|
||||||
export default getNavigator;
|
|
||||||
|
|
@ -1,77 +0,0 @@
|
||||||
import { checkWebWorker } from './common';
|
|
||||||
|
|
||||||
const detectTor = () => {
|
|
||||||
const date = new Date();
|
|
||||||
if (
|
|
||||||
navigator.plugins.length === 0 &&
|
|
||||||
date.getTimezoneOffset() === 0 &&
|
|
||||||
window.outerWidth === window.screen.availWidth &&
|
|
||||||
window.outerHeight === window.screen.availHeight
|
|
||||||
) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
};
|
|
||||||
|
|
||||||
const checkDatePrototype = () => {
|
|
||||||
if (!Date.prototype.setDate.toString().includes('[native code]')) {
|
|
||||||
return 'Failed Date.prototype.setDate.toString()';
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
};
|
|
||||||
|
|
||||||
// Returns object with location data
|
|
||||||
const getOther = (battery, adBlock, workerData) => {
|
|
||||||
let batteryLevel, batteryStatus;
|
|
||||||
if (battery !== 'N/A') {
|
|
||||||
batteryLevel = `${Math.round(battery.level * 100)}%`;
|
|
||||||
batteryStatus = battery.charging ? 'Charging' : 'Not charging';
|
|
||||||
}
|
|
||||||
return [
|
|
||||||
{
|
|
||||||
key: 'Brave browser',
|
|
||||||
code: 'navigator.brave',
|
|
||||||
value: navigator.brave ? 'True' : 'False',
|
|
||||||
issues: [],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key: 'Tor browser',
|
|
||||||
value: detectTor() ? 'True' : 'False',
|
|
||||||
issues: [],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key: 'Adblock',
|
|
||||||
value: adBlock ? 'True' : 'False',
|
|
||||||
issues: [],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key: 'Date',
|
|
||||||
code: 'new Date().toString()',
|
|
||||||
value: new Date().toString(),
|
|
||||||
issues: [checkDatePrototype()],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key: 'Timezone offset',
|
|
||||||
code: 'new Date().getTimezoneOffset()',
|
|
||||||
value: new Date().getTimezoneOffset(),
|
|
||||||
issues: [
|
|
||||||
checkDatePrototype(),
|
|
||||||
checkWebWorker(
|
|
||||||
new Date().getTimezoneOffset(),
|
|
||||||
workerData.timezoneOffset
|
|
||||||
),
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key: 'Battery level',
|
|
||||||
value: batteryLevel,
|
|
||||||
issues: [],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key: 'Battery status',
|
|
||||||
value: batteryStatus,
|
|
||||||
issues: [],
|
|
||||||
},
|
|
||||||
];
|
|
||||||
};
|
|
||||||
export default getOther;
|
|
||||||
|
|
@ -1,161 +0,0 @@
|
||||||
const getWidth = () => {
|
|
||||||
const name = 'width';
|
|
||||||
return {
|
|
||||||
key: 'Width',
|
|
||||||
code: `window.screen.${name}`,
|
|
||||||
value: window.screen[name],
|
|
||||||
issues: [
|
|
||||||
checkScreenProperties('width'),
|
|
||||||
checkScreenValue('width'),
|
|
||||||
checkScreenPrototype('width'),
|
|
||||||
checkWidth(),
|
|
||||||
],
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
const getAvailWidth = () => {
|
|
||||||
const name = 'availWidth';
|
|
||||||
return {
|
|
||||||
key: 'Avail width',
|
|
||||||
code: `window.screen.${name}`,
|
|
||||||
value: window.screen[name],
|
|
||||||
issues: [
|
|
||||||
checkScreenProperties('availWidth'),
|
|
||||||
checkScreenValue('availWidth'),
|
|
||||||
checkScreenPrototype('availWidth'),
|
|
||||||
checkWidth(),
|
|
||||||
],
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
const getOuterWidth = () => {
|
|
||||||
const name = 'outerWidth';
|
|
||||||
return {
|
|
||||||
key: 'Outer width',
|
|
||||||
code: `window.${name}`,
|
|
||||||
value: window[name],
|
|
||||||
issues: [],
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
const getHeight = () => {
|
|
||||||
const name = 'height';
|
|
||||||
return {
|
|
||||||
key: 'Height',
|
|
||||||
code: `window.screen.${name}`,
|
|
||||||
value: window.screen[name],
|
|
||||||
issues: [
|
|
||||||
checkScreenProperties('height'),
|
|
||||||
checkScreenValue('height'),
|
|
||||||
checkScreenPrototype('height'),
|
|
||||||
],
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
const getAvailHeight = () => {
|
|
||||||
const name = 'availHeight';
|
|
||||||
return {
|
|
||||||
key: 'Avail height',
|
|
||||||
code: `window.screen.${name}`,
|
|
||||||
value: window.screen[name],
|
|
||||||
issues: [
|
|
||||||
checkScreenProperties('availHeight'),
|
|
||||||
checkScreenValue('availHeight'),
|
|
||||||
checkScreenPrototype('availHeight'),
|
|
||||||
checkHeight(),
|
|
||||||
],
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
const getOuterHeight = () => {
|
|
||||||
const name = 'outerHeight';
|
|
||||||
return {
|
|
||||||
key: 'Outer height',
|
|
||||||
code: `window.${name}`,
|
|
||||||
value: window[name],
|
|
||||||
issues: [],
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
const getPixelDepth = () => {
|
|
||||||
const name = 'pixelDepth';
|
|
||||||
return {
|
|
||||||
key: 'Pixel depth',
|
|
||||||
code: `window.screen.${name}`,
|
|
||||||
value: window.screen[name],
|
|
||||||
issues: [
|
|
||||||
checkScreenProperties('pixelDepth'),
|
|
||||||
checkScreenValue('pixelDepth'),
|
|
||||||
checkScreenPrototype('pixelDepth'),
|
|
||||||
],
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
const getColorDepth = () => {
|
|
||||||
const name = 'colorDepth';
|
|
||||||
return {
|
|
||||||
key: 'Color depth',
|
|
||||||
code: `window.screen.${name}`,
|
|
||||||
value: window.screen[name],
|
|
||||||
issues: [
|
|
||||||
checkScreenProperties('colorDepth'),
|
|
||||||
checkScreenValue('colorDepth'),
|
|
||||||
checkScreenPrototype('colorDepth'),
|
|
||||||
],
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
const checkScreenValue = (name) => {
|
|
||||||
if (
|
|
||||||
Object.getOwnPropertyDescriptor(Screen.prototype, name).value !== undefined
|
|
||||||
) {
|
|
||||||
return 'Failed descriptor.value undefined';
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
};
|
|
||||||
|
|
||||||
const checkScreenPrototype = (name) => {
|
|
||||||
try {
|
|
||||||
// eslint-disable-next-line no-unused-vars
|
|
||||||
const check = Screen.prototype[name];
|
|
||||||
return 'Failed Screen.prototype';
|
|
||||||
} catch (err) {
|
|
||||||
// eslint-disable-next-line no-unused-vars
|
|
||||||
const check = '';
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
};
|
|
||||||
|
|
||||||
const checkWidth = () => {
|
|
||||||
if (window.screen.availWidth > window.screen.width) {
|
|
||||||
return 'Avail width is greater than width';
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
};
|
|
||||||
|
|
||||||
const checkHeight = () => {
|
|
||||||
if (window.screen.availHeight > window.screen.height) {
|
|
||||||
return 'Avail height is greater than height';
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
};
|
|
||||||
|
|
||||||
const checkScreenProperties = (name) => {
|
|
||||||
if (Object.getOwnPropertyDescriptor(window.screen, name) !== undefined) {
|
|
||||||
return 'Failed undefined properties';
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
};
|
|
||||||
|
|
||||||
const getScreen = () => [
|
|
||||||
getWidth(),
|
|
||||||
getAvailWidth(),
|
|
||||||
getOuterWidth(),
|
|
||||||
getHeight(),
|
|
||||||
getAvailHeight(),
|
|
||||||
getOuterHeight(),
|
|
||||||
getPixelDepth(),
|
|
||||||
getColorDepth(),
|
|
||||||
];
|
|
||||||
|
|
||||||
export default getScreen;
|
|
||||||
|
|
@ -1,49 +0,0 @@
|
||||||
import Bowser from 'bowser';
|
|
||||||
import { checkWebWorker } from './common';
|
|
||||||
|
|
||||||
const getUserAgentData = (key, userAgent, workerAgent) => ({
|
|
||||||
key,
|
|
||||||
value: userAgent || 'N/A',
|
|
||||||
issues: [checkWebWorker(userAgent, workerAgent)],
|
|
||||||
});
|
|
||||||
|
|
||||||
// Returns object with location data
|
|
||||||
const getUserAgent = (workerAgent) => {
|
|
||||||
const userAgentParsed = Bowser.parse(navigator.userAgent);
|
|
||||||
const workerAgentParsed = Bowser.parse(workerAgent);
|
|
||||||
return [
|
|
||||||
getUserAgentData(
|
|
||||||
'Browser',
|
|
||||||
userAgentParsed.browser.name,
|
|
||||||
workerAgentParsed.browser.name
|
|
||||||
),
|
|
||||||
getUserAgentData(
|
|
||||||
'Browser version',
|
|
||||||
userAgentParsed.browser.version,
|
|
||||||
workerAgentParsed.browser.version
|
|
||||||
),
|
|
||||||
getUserAgentData('OS', userAgentParsed.os.name, workerAgentParsed.os.name),
|
|
||||||
getUserAgentData(
|
|
||||||
'OS version',
|
|
||||||
userAgentParsed.os.versionName,
|
|
||||||
workerAgentParsed.os.versionName
|
|
||||||
),
|
|
||||||
getUserAgentData(
|
|
||||||
'Engine',
|
|
||||||
userAgentParsed.engine.name,
|
|
||||||
workerAgentParsed.engine.name
|
|
||||||
),
|
|
||||||
getUserAgentData(
|
|
||||||
'Engine version',
|
|
||||||
userAgentParsed.engine.version,
|
|
||||||
workerAgentParsed.engine.version
|
|
||||||
),
|
|
||||||
getUserAgentData(
|
|
||||||
'Platform type',
|
|
||||||
userAgentParsed.platform.type,
|
|
||||||
workerAgentParsed.platform.type
|
|
||||||
),
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
export default getUserAgent;
|
|
||||||
11596
frontend/yarn.lock
674
license
Normal file
|
|
@ -0,0 +1,674 @@
|
||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
Version 3, 29 June 2007
|
||||||
|
|
||||||
|
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The GNU General Public License is a free, copyleft license for
|
||||||
|
software and other kinds of works.
|
||||||
|
|
||||||
|
The licenses for most software and other practical works are designed
|
||||||
|
to take away your freedom to share and change the works. By contrast,
|
||||||
|
the GNU General Public License is intended to guarantee your freedom to
|
||||||
|
share and change all versions of a program--to make sure it remains free
|
||||||
|
software for all its users. We, the Free Software Foundation, use the
|
||||||
|
GNU General Public License for most of our software; it applies also to
|
||||||
|
any other work released this way by its authors. You can apply it to
|
||||||
|
your programs, too.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
them if you wish), that you receive source code or can get it if you
|
||||||
|
want it, that you can change the software or use pieces of it in new
|
||||||
|
free programs, and that you know you can do these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to prevent others from denying you
|
||||||
|
these rights or asking you to surrender the rights. Therefore, you have
|
||||||
|
certain responsibilities if you distribute copies of the software, or if
|
||||||
|
you modify it: responsibilities to respect the freedom of others.
|
||||||
|
|
||||||
|
For example, if you distribute copies of such a program, whether
|
||||||
|
gratis or for a fee, you must pass on to the recipients the same
|
||||||
|
freedoms that you received. You must make sure that they, too, receive
|
||||||
|
or can get the source code. And you must show them these terms so they
|
||||||
|
know their rights.
|
||||||
|
|
||||||
|
Developers that use the GNU GPL protect your rights with two steps:
|
||||||
|
(1) assert copyright on the software, and (2) offer you this License
|
||||||
|
giving you legal permission to copy, distribute and/or modify it.
|
||||||
|
|
||||||
|
For the developers' and authors' protection, the GPL clearly explains
|
||||||
|
that there is no warranty for this free software. For both users' and
|
||||||
|
authors' sake, the GPL requires that modified versions be marked as
|
||||||
|
changed, so that their problems will not be attributed erroneously to
|
||||||
|
authors of previous versions.
|
||||||
|
|
||||||
|
Some devices are designed to deny users access to install or run
|
||||||
|
modified versions of the software inside them, although the manufacturer
|
||||||
|
can do so. This is fundamentally incompatible with the aim of
|
||||||
|
protecting users' freedom to change the software. The systematic
|
||||||
|
pattern of such abuse occurs in the area of products for individuals to
|
||||||
|
use, which is precisely where it is most unacceptable. Therefore, we
|
||||||
|
have designed this version of the GPL to prohibit the practice for those
|
||||||
|
products. If such problems arise substantially in other domains, we
|
||||||
|
stand ready to extend this provision to those domains in future versions
|
||||||
|
of the GPL, as needed to protect the freedom of users.
|
||||||
|
|
||||||
|
Finally, every program is threatened constantly by software patents.
|
||||||
|
States should not allow patents to restrict development and use of
|
||||||
|
software on general-purpose computers, but in those that do, we wish to
|
||||||
|
avoid the special danger that patents applied to a free program could
|
||||||
|
make it effectively proprietary. To prevent this, the GPL assures that
|
||||||
|
patents cannot be used to render the program non-free.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
0. Definitions.
|
||||||
|
|
||||||
|
"This License" refers to version 3 of the GNU General Public License.
|
||||||
|
|
||||||
|
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||||
|
works, such as semiconductor masks.
|
||||||
|
|
||||||
|
"The Program" refers to any copyrightable work licensed under this
|
||||||
|
License. Each licensee is addressed as "you". "Licensees" and
|
||||||
|
"recipients" may be individuals or organizations.
|
||||||
|
|
||||||
|
To "modify" a work means to copy from or adapt all or part of the work
|
||||||
|
in a fashion requiring copyright permission, other than the making of an
|
||||||
|
exact copy. The resulting work is called a "modified version" of the
|
||||||
|
earlier work or a work "based on" the earlier work.
|
||||||
|
|
||||||
|
A "covered work" means either the unmodified Program or a work based
|
||||||
|
on the Program.
|
||||||
|
|
||||||
|
To "propagate" a work means to do anything with it that, without
|
||||||
|
permission, would make you directly or secondarily liable for
|
||||||
|
infringement under applicable copyright law, except executing it on a
|
||||||
|
computer or modifying a private copy. Propagation includes copying,
|
||||||
|
distribution (with or without modification), making available to the
|
||||||
|
public, and in some countries other activities as well.
|
||||||
|
|
||||||
|
To "convey" a work means any kind of propagation that enables other
|
||||||
|
parties to make or receive copies. Mere interaction with a user through
|
||||||
|
a computer network, with no transfer of a copy, is not conveying.
|
||||||
|
|
||||||
|
An interactive user interface displays "Appropriate Legal Notices"
|
||||||
|
to the extent that it includes a convenient and prominently visible
|
||||||
|
feature that (1) displays an appropriate copyright notice, and (2)
|
||||||
|
tells the user that there is no warranty for the work (except to the
|
||||||
|
extent that warranties are provided), that licensees may convey the
|
||||||
|
work under this License, and how to view a copy of this License. If
|
||||||
|
the interface presents a list of user commands or options, such as a
|
||||||
|
menu, a prominent item in the list meets this criterion.
|
||||||
|
|
||||||
|
1. Source Code.
|
||||||
|
|
||||||
|
The "source code" for a work means the preferred form of the work
|
||||||
|
for making modifications to it. "Object code" means any non-source
|
||||||
|
form of a work.
|
||||||
|
|
||||||
|
A "Standard Interface" means an interface that either is an official
|
||||||
|
standard defined by a recognized standards body, or, in the case of
|
||||||
|
interfaces specified for a particular programming language, one that
|
||||||
|
is widely used among developers working in that language.
|
||||||
|
|
||||||
|
The "System Libraries" of an executable work include anything, other
|
||||||
|
than the work as a whole, that (a) is included in the normal form of
|
||||||
|
packaging a Major Component, but which is not part of that Major
|
||||||
|
Component, and (b) serves only to enable use of the work with that
|
||||||
|
Major Component, or to implement a Standard Interface for which an
|
||||||
|
implementation is available to the public in source code form. A
|
||||||
|
"Major Component", in this context, means a major essential component
|
||||||
|
(kernel, window system, and so on) of the specific operating system
|
||||||
|
(if any) on which the executable work runs, or a compiler used to
|
||||||
|
produce the work, or an object code interpreter used to run it.
|
||||||
|
|
||||||
|
The "Corresponding Source" for a work in object code form means all
|
||||||
|
the source code needed to generate, install, and (for an executable
|
||||||
|
work) run the object code and to modify the work, including scripts to
|
||||||
|
control those activities. However, it does not include the work's
|
||||||
|
System Libraries, or general-purpose tools or generally available free
|
||||||
|
programs which are used unmodified in performing those activities but
|
||||||
|
which are not part of the work. For example, Corresponding Source
|
||||||
|
includes interface definition files associated with source files for
|
||||||
|
the work, and the source code for shared libraries and dynamically
|
||||||
|
linked subprograms that the work is specifically designed to require,
|
||||||
|
such as by intimate data communication or control flow between those
|
||||||
|
subprograms and other parts of the work.
|
||||||
|
|
||||||
|
The Corresponding Source need not include anything that users
|
||||||
|
can regenerate automatically from other parts of the Corresponding
|
||||||
|
Source.
|
||||||
|
|
||||||
|
The Corresponding Source for a work in source code form is that
|
||||||
|
same work.
|
||||||
|
|
||||||
|
2. Basic Permissions.
|
||||||
|
|
||||||
|
All rights granted under this License are granted for the term of
|
||||||
|
copyright on the Program, and are irrevocable provided the stated
|
||||||
|
conditions are met. This License explicitly affirms your unlimited
|
||||||
|
permission to run the unmodified Program. The output from running a
|
||||||
|
covered work is covered by this License only if the output, given its
|
||||||
|
content, constitutes a covered work. This License acknowledges your
|
||||||
|
rights of fair use or other equivalent, as provided by copyright law.
|
||||||
|
|
||||||
|
You may make, run and propagate covered works that you do not
|
||||||
|
convey, without conditions so long as your license otherwise remains
|
||||||
|
in force. You may convey covered works to others for the sole purpose
|
||||||
|
of having them make modifications exclusively for you, or provide you
|
||||||
|
with facilities for running those works, provided that you comply with
|
||||||
|
the terms of this License in conveying all material for which you do
|
||||||
|
not control copyright. Those thus making or running the covered works
|
||||||
|
for you must do so exclusively on your behalf, under your direction
|
||||||
|
and control, on terms that prohibit them from making any copies of
|
||||||
|
your copyrighted material outside their relationship with you.
|
||||||
|
|
||||||
|
Conveying under any other circumstances is permitted solely under
|
||||||
|
the conditions stated below. Sublicensing is not allowed; section 10
|
||||||
|
makes it unnecessary.
|
||||||
|
|
||||||
|
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||||
|
|
||||||
|
No covered work shall be deemed part of an effective technological
|
||||||
|
measure under any applicable law fulfilling obligations under article
|
||||||
|
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||||
|
similar laws prohibiting or restricting circumvention of such
|
||||||
|
measures.
|
||||||
|
|
||||||
|
When you convey a covered work, you waive any legal power to forbid
|
||||||
|
circumvention of technological measures to the extent such circumvention
|
||||||
|
is effected by exercising rights under this License with respect to
|
||||||
|
the covered work, and you disclaim any intention to limit operation or
|
||||||
|
modification of the work as a means of enforcing, against the work's
|
||||||
|
users, your or third parties' legal rights to forbid circumvention of
|
||||||
|
technological measures.
|
||||||
|
|
||||||
|
4. Conveying Verbatim Copies.
|
||||||
|
|
||||||
|
You may convey verbatim copies of the Program's source code as you
|
||||||
|
receive it, in any medium, provided that you conspicuously and
|
||||||
|
appropriately publish on each copy an appropriate copyright notice;
|
||||||
|
keep intact all notices stating that this License and any
|
||||||
|
non-permissive terms added in accord with section 7 apply to the code;
|
||||||
|
keep intact all notices of the absence of any warranty; and give all
|
||||||
|
recipients a copy of this License along with the Program.
|
||||||
|
|
||||||
|
You may charge any price or no price for each copy that you convey,
|
||||||
|
and you may offer support or warranty protection for a fee.
|
||||||
|
|
||||||
|
5. Conveying Modified Source Versions.
|
||||||
|
|
||||||
|
You may convey a work based on the Program, or the modifications to
|
||||||
|
produce it from the Program, in the form of source code under the
|
||||||
|
terms of section 4, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) The work must carry prominent notices stating that you modified
|
||||||
|
it, and giving a relevant date.
|
||||||
|
|
||||||
|
b) The work must carry prominent notices stating that it is
|
||||||
|
released under this License and any conditions added under section
|
||||||
|
7. This requirement modifies the requirement in section 4 to
|
||||||
|
"keep intact all notices".
|
||||||
|
|
||||||
|
c) You must license the entire work, as a whole, under this
|
||||||
|
License to anyone who comes into possession of a copy. This
|
||||||
|
License will therefore apply, along with any applicable section 7
|
||||||
|
additional terms, to the whole of the work, and all its parts,
|
||||||
|
regardless of how they are packaged. This License gives no
|
||||||
|
permission to license the work in any other way, but it does not
|
||||||
|
invalidate such permission if you have separately received it.
|
||||||
|
|
||||||
|
d) If the work has interactive user interfaces, each must display
|
||||||
|
Appropriate Legal Notices; however, if the Program has interactive
|
||||||
|
interfaces that do not display Appropriate Legal Notices, your
|
||||||
|
work need not make them do so.
|
||||||
|
|
||||||
|
A compilation of a covered work with other separate and independent
|
||||||
|
works, which are not by their nature extensions of the covered work,
|
||||||
|
and which are not combined with it such as to form a larger program,
|
||||||
|
in or on a volume of a storage or distribution medium, is called an
|
||||||
|
"aggregate" if the compilation and its resulting copyright are not
|
||||||
|
used to limit the access or legal rights of the compilation's users
|
||||||
|
beyond what the individual works permit. Inclusion of a covered work
|
||||||
|
in an aggregate does not cause this License to apply to the other
|
||||||
|
parts of the aggregate.
|
||||||
|
|
||||||
|
6. Conveying Non-Source Forms.
|
||||||
|
|
||||||
|
You may convey a covered work in object code form under the terms
|
||||||
|
of sections 4 and 5, provided that you also convey the
|
||||||
|
machine-readable Corresponding Source under the terms of this License,
|
||||||
|
in one of these ways:
|
||||||
|
|
||||||
|
a) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by the
|
||||||
|
Corresponding Source fixed on a durable physical medium
|
||||||
|
customarily used for software interchange.
|
||||||
|
|
||||||
|
b) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by a
|
||||||
|
written offer, valid for at least three years and valid for as
|
||||||
|
long as you offer spare parts or customer support for that product
|
||||||
|
model, to give anyone who possesses the object code either (1) a
|
||||||
|
copy of the Corresponding Source for all the software in the
|
||||||
|
product that is covered by this License, on a durable physical
|
||||||
|
medium customarily used for software interchange, for a price no
|
||||||
|
more than your reasonable cost of physically performing this
|
||||||
|
conveying of source, or (2) access to copy the
|
||||||
|
Corresponding Source from a network server at no charge.
|
||||||
|
|
||||||
|
c) Convey individual copies of the object code with a copy of the
|
||||||
|
written offer to provide the Corresponding Source. This
|
||||||
|
alternative is allowed only occasionally and noncommercially, and
|
||||||
|
only if you received the object code with such an offer, in accord
|
||||||
|
with subsection 6b.
|
||||||
|
|
||||||
|
d) Convey the object code by offering access from a designated
|
||||||
|
place (gratis or for a charge), and offer equivalent access to the
|
||||||
|
Corresponding Source in the same way through the same place at no
|
||||||
|
further charge. You need not require recipients to copy the
|
||||||
|
Corresponding Source along with the object code. If the place to
|
||||||
|
copy the object code is a network server, the Corresponding Source
|
||||||
|
may be on a different server (operated by you or a third party)
|
||||||
|
that supports equivalent copying facilities, provided you maintain
|
||||||
|
clear directions next to the object code saying where to find the
|
||||||
|
Corresponding Source. Regardless of what server hosts the
|
||||||
|
Corresponding Source, you remain obligated to ensure that it is
|
||||||
|
available for as long as needed to satisfy these requirements.
|
||||||
|
|
||||||
|
e) Convey the object code using peer-to-peer transmission, provided
|
||||||
|
you inform other peers where the object code and Corresponding
|
||||||
|
Source of the work are being offered to the general public at no
|
||||||
|
charge under subsection 6d.
|
||||||
|
|
||||||
|
A separable portion of the object code, whose source code is excluded
|
||||||
|
from the Corresponding Source as a System Library, need not be
|
||||||
|
included in conveying the object code work.
|
||||||
|
|
||||||
|
A "User Product" is either (1) a "consumer product", which means any
|
||||||
|
tangible personal property which is normally used for personal, family,
|
||||||
|
or household purposes, or (2) anything designed or sold for incorporation
|
||||||
|
into a dwelling. In determining whether a product is a consumer product,
|
||||||
|
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||||
|
product received by a particular user, "normally used" refers to a
|
||||||
|
typical or common use of that class of product, regardless of the status
|
||||||
|
of the particular user or of the way in which the particular user
|
||||||
|
actually uses, or expects or is expected to use, the product. A product
|
||||||
|
is a consumer product regardless of whether the product has substantial
|
||||||
|
commercial, industrial or non-consumer uses, unless such uses represent
|
||||||
|
the only significant mode of use of the product.
|
||||||
|
|
||||||
|
"Installation Information" for a User Product means any methods,
|
||||||
|
procedures, authorization keys, or other information required to install
|
||||||
|
and execute modified versions of a covered work in that User Product from
|
||||||
|
a modified version of its Corresponding Source. The information must
|
||||||
|
suffice to ensure that the continued functioning of the modified object
|
||||||
|
code is in no case prevented or interfered with solely because
|
||||||
|
modification has been made.
|
||||||
|
|
||||||
|
If you convey an object code work under this section in, or with, or
|
||||||
|
specifically for use in, a User Product, and the conveying occurs as
|
||||||
|
part of a transaction in which the right of possession and use of the
|
||||||
|
User Product is transferred to the recipient in perpetuity or for a
|
||||||
|
fixed term (regardless of how the transaction is characterized), the
|
||||||
|
Corresponding Source conveyed under this section must be accompanied
|
||||||
|
by the Installation Information. But this requirement does not apply
|
||||||
|
if neither you nor any third party retains the ability to install
|
||||||
|
modified object code on the User Product (for example, the work has
|
||||||
|
been installed in ROM).
|
||||||
|
|
||||||
|
The requirement to provide Installation Information does not include a
|
||||||
|
requirement to continue to provide support service, warranty, or updates
|
||||||
|
for a work that has been modified or installed by the recipient, or for
|
||||||
|
the User Product in which it has been modified or installed. Access to a
|
||||||
|
network may be denied when the modification itself materially and
|
||||||
|
adversely affects the operation of the network or violates the rules and
|
||||||
|
protocols for communication across the network.
|
||||||
|
|
||||||
|
Corresponding Source conveyed, and Installation Information provided,
|
||||||
|
in accord with this section must be in a format that is publicly
|
||||||
|
documented (and with an implementation available to the public in
|
||||||
|
source code form), and must require no special password or key for
|
||||||
|
unpacking, reading or copying.
|
||||||
|
|
||||||
|
7. Additional Terms.
|
||||||
|
|
||||||
|
"Additional permissions" are terms that supplement the terms of this
|
||||||
|
License by making exceptions from one or more of its conditions.
|
||||||
|
Additional permissions that are applicable to the entire Program shall
|
||||||
|
be treated as though they were included in this License, to the extent
|
||||||
|
that they are valid under applicable law. If additional permissions
|
||||||
|
apply only to part of the Program, that part may be used separately
|
||||||
|
under those permissions, but the entire Program remains governed by
|
||||||
|
this License without regard to the additional permissions.
|
||||||
|
|
||||||
|
When you convey a copy of a covered work, you may at your option
|
||||||
|
remove any additional permissions from that copy, or from any part of
|
||||||
|
it. (Additional permissions may be written to require their own
|
||||||
|
removal in certain cases when you modify the work.) You may place
|
||||||
|
additional permissions on material, added by you to a covered work,
|
||||||
|
for which you have or can give appropriate copyright permission.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, for material you
|
||||||
|
add to a covered work, you may (if authorized by the copyright holders of
|
||||||
|
that material) supplement the terms of this License with terms:
|
||||||
|
|
||||||
|
a) Disclaiming warranty or limiting liability differently from the
|
||||||
|
terms of sections 15 and 16 of this License; or
|
||||||
|
|
||||||
|
b) Requiring preservation of specified reasonable legal notices or
|
||||||
|
author attributions in that material or in the Appropriate Legal
|
||||||
|
Notices displayed by works containing it; or
|
||||||
|
|
||||||
|
c) Prohibiting misrepresentation of the origin of that material, or
|
||||||
|
requiring that modified versions of such material be marked in
|
||||||
|
reasonable ways as different from the original version; or
|
||||||
|
|
||||||
|
d) Limiting the use for publicity purposes of names of licensors or
|
||||||
|
authors of the material; or
|
||||||
|
|
||||||
|
e) Declining to grant rights under trademark law for use of some
|
||||||
|
trade names, trademarks, or service marks; or
|
||||||
|
|
||||||
|
f) Requiring indemnification of licensors and authors of that
|
||||||
|
material by anyone who conveys the material (or modified versions of
|
||||||
|
it) with contractual assumptions of liability to the recipient, for
|
||||||
|
any liability that these contractual assumptions directly impose on
|
||||||
|
those licensors and authors.
|
||||||
|
|
||||||
|
All other non-permissive additional terms are considered "further
|
||||||
|
restrictions" within the meaning of section 10. If the Program as you
|
||||||
|
received it, or any part of it, contains a notice stating that it is
|
||||||
|
governed by this License along with a term that is a further
|
||||||
|
restriction, you may remove that term. If a license document contains
|
||||||
|
a further restriction but permits relicensing or conveying under this
|
||||||
|
License, you may add to a covered work material governed by the terms
|
||||||
|
of that license document, provided that the further restriction does
|
||||||
|
not survive such relicensing or conveying.
|
||||||
|
|
||||||
|
If you add terms to a covered work in accord with this section, you
|
||||||
|
must place, in the relevant source files, a statement of the
|
||||||
|
additional terms that apply to those files, or a notice indicating
|
||||||
|
where to find the applicable terms.
|
||||||
|
|
||||||
|
Additional terms, permissive or non-permissive, may be stated in the
|
||||||
|
form of a separately written license, or stated as exceptions;
|
||||||
|
the above requirements apply either way.
|
||||||
|
|
||||||
|
8. Termination.
|
||||||
|
|
||||||
|
You may not propagate or modify a covered work except as expressly
|
||||||
|
provided under this License. Any attempt otherwise to propagate or
|
||||||
|
modify it is void, and will automatically terminate your rights under
|
||||||
|
this License (including any patent licenses granted under the third
|
||||||
|
paragraph of section 11).
|
||||||
|
|
||||||
|
However, if you cease all violation of this License, then your
|
||||||
|
license from a particular copyright holder is reinstated (a)
|
||||||
|
provisionally, unless and until the copyright holder explicitly and
|
||||||
|
finally terminates your license, and (b) permanently, if the copyright
|
||||||
|
holder fails to notify you of the violation by some reasonable means
|
||||||
|
prior to 60 days after the cessation.
|
||||||
|
|
||||||
|
Moreover, your license from a particular copyright holder is
|
||||||
|
reinstated permanently if the copyright holder notifies you of the
|
||||||
|
violation by some reasonable means, this is the first time you have
|
||||||
|
received notice of violation of this License (for any work) from that
|
||||||
|
copyright holder, and you cure the violation prior to 30 days after
|
||||||
|
your receipt of the notice.
|
||||||
|
|
||||||
|
Termination of your rights under this section does not terminate the
|
||||||
|
licenses of parties who have received copies or rights from you under
|
||||||
|
this License. If your rights have been terminated and not permanently
|
||||||
|
reinstated, you do not qualify to receive new licenses for the same
|
||||||
|
material under section 10.
|
||||||
|
|
||||||
|
9. Acceptance Not Required for Having Copies.
|
||||||
|
|
||||||
|
You are not required to accept this License in order to receive or
|
||||||
|
run a copy of the Program. Ancillary propagation of a covered work
|
||||||
|
occurring solely as a consequence of using peer-to-peer transmission
|
||||||
|
to receive a copy likewise does not require acceptance. However,
|
||||||
|
nothing other than this License grants you permission to propagate or
|
||||||
|
modify any covered work. These actions infringe copyright if you do
|
||||||
|
not accept this License. Therefore, by modifying or propagating a
|
||||||
|
covered work, you indicate your acceptance of this License to do so.
|
||||||
|
|
||||||
|
10. Automatic Licensing of Downstream Recipients.
|
||||||
|
|
||||||
|
Each time you convey a covered work, the recipient automatically
|
||||||
|
receives a license from the original licensors, to run, modify and
|
||||||
|
propagate that work, subject to this License. You are not responsible
|
||||||
|
for enforcing compliance by third parties with this License.
|
||||||
|
|
||||||
|
An "entity transaction" is a transaction transferring control of an
|
||||||
|
organization, or substantially all assets of one, or subdividing an
|
||||||
|
organization, or merging organizations. If propagation of a covered
|
||||||
|
work results from an entity transaction, each party to that
|
||||||
|
transaction who receives a copy of the work also receives whatever
|
||||||
|
licenses to the work the party's predecessor in interest had or could
|
||||||
|
give under the previous paragraph, plus a right to possession of the
|
||||||
|
Corresponding Source of the work from the predecessor in interest, if
|
||||||
|
the predecessor has it or can get it with reasonable efforts.
|
||||||
|
|
||||||
|
You may not impose any further restrictions on the exercise of the
|
||||||
|
rights granted or affirmed under this License. For example, you may
|
||||||
|
not impose a license fee, royalty, or other charge for exercise of
|
||||||
|
rights granted under this License, and you may not initiate litigation
|
||||||
|
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||||
|
any patent claim is infringed by making, using, selling, offering for
|
||||||
|
sale, or importing the Program or any portion of it.
|
||||||
|
|
||||||
|
11. Patents.
|
||||||
|
|
||||||
|
A "contributor" is a copyright holder who authorizes use under this
|
||||||
|
License of the Program or a work on which the Program is based. The
|
||||||
|
work thus licensed is called the contributor's "contributor version".
|
||||||
|
|
||||||
|
A contributor's "essential patent claims" are all patent claims
|
||||||
|
owned or controlled by the contributor, whether already acquired or
|
||||||
|
hereafter acquired, that would be infringed by some manner, permitted
|
||||||
|
by this License, of making, using, or selling its contributor version,
|
||||||
|
but do not include claims that would be infringed only as a
|
||||||
|
consequence of further modification of the contributor version. For
|
||||||
|
purposes of this definition, "control" includes the right to grant
|
||||||
|
patent sublicenses in a manner consistent with the requirements of
|
||||||
|
this License.
|
||||||
|
|
||||||
|
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||||
|
patent license under the contributor's essential patent claims, to
|
||||||
|
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||||
|
propagate the contents of its contributor version.
|
||||||
|
|
||||||
|
In the following three paragraphs, a "patent license" is any express
|
||||||
|
agreement or commitment, however denominated, not to enforce a patent
|
||||||
|
(such as an express permission to practice a patent or covenant not to
|
||||||
|
sue for patent infringement). To "grant" such a patent license to a
|
||||||
|
party means to make such an agreement or commitment not to enforce a
|
||||||
|
patent against the party.
|
||||||
|
|
||||||
|
If you convey a covered work, knowingly relying on a patent license,
|
||||||
|
and the Corresponding Source of the work is not available for anyone
|
||||||
|
to copy, free of charge and under the terms of this License, through a
|
||||||
|
publicly available network server or other readily accessible means,
|
||||||
|
then you must either (1) cause the Corresponding Source to be so
|
||||||
|
available, or (2) arrange to deprive yourself of the benefit of the
|
||||||
|
patent license for this particular work, or (3) arrange, in a manner
|
||||||
|
consistent with the requirements of this License, to extend the patent
|
||||||
|
license to downstream recipients. "Knowingly relying" means you have
|
||||||
|
actual knowledge that, but for the patent license, your conveying the
|
||||||
|
covered work in a country, or your recipient's use of the covered work
|
||||||
|
in a country, would infringe one or more identifiable patents in that
|
||||||
|
country that you have reason to believe are valid.
|
||||||
|
|
||||||
|
If, pursuant to or in connection with a single transaction or
|
||||||
|
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||||
|
covered work, and grant a patent license to some of the parties
|
||||||
|
receiving the covered work authorizing them to use, propagate, modify
|
||||||
|
or convey a specific copy of the covered work, then the patent license
|
||||||
|
you grant is automatically extended to all recipients of the covered
|
||||||
|
work and works based on it.
|
||||||
|
|
||||||
|
A patent license is "discriminatory" if it does not include within
|
||||||
|
the scope of its coverage, prohibits the exercise of, or is
|
||||||
|
conditioned on the non-exercise of one or more of the rights that are
|
||||||
|
specifically granted under this License. You may not convey a covered
|
||||||
|
work if you are a party to an arrangement with a third party that is
|
||||||
|
in the business of distributing software, under which you make payment
|
||||||
|
to the third party based on the extent of your activity of conveying
|
||||||
|
the work, and under which the third party grants, to any of the
|
||||||
|
parties who would receive the covered work from you, a discriminatory
|
||||||
|
patent license (a) in connection with copies of the covered work
|
||||||
|
conveyed by you (or copies made from those copies), or (b) primarily
|
||||||
|
for and in connection with specific products or compilations that
|
||||||
|
contain the covered work, unless you entered into that arrangement,
|
||||||
|
or that patent license was granted, prior to 28 March 2007.
|
||||||
|
|
||||||
|
Nothing in this License shall be construed as excluding or limiting
|
||||||
|
any implied license or other defenses to infringement that may
|
||||||
|
otherwise be available to you under applicable patent law.
|
||||||
|
|
||||||
|
12. No Surrender of Others' Freedom.
|
||||||
|
|
||||||
|
If conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot convey a
|
||||||
|
covered work so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you may
|
||||||
|
not convey it at all. For example, if you agree to terms that obligate you
|
||||||
|
to collect a royalty for further conveying from those to whom you convey
|
||||||
|
the Program, the only way you could satisfy both those terms and this
|
||||||
|
License would be to refrain entirely from conveying the Program.
|
||||||
|
|
||||||
|
13. Use with the GNU Affero General Public License.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, you have
|
||||||
|
permission to link or combine any covered work with a work licensed
|
||||||
|
under version 3 of the GNU Affero General Public License into a single
|
||||||
|
combined work, and to convey the resulting work. The terms of this
|
||||||
|
License will continue to apply to the part which is the covered work,
|
||||||
|
but the special requirements of the GNU Affero General Public License,
|
||||||
|
section 13, concerning interaction through a network will apply to the
|
||||||
|
combination as such.
|
||||||
|
|
||||||
|
14. Revised Versions of this License.
|
||||||
|
|
||||||
|
The Free Software Foundation may publish revised and/or new versions of
|
||||||
|
the GNU General Public License from time to time. Such new versions will
|
||||||
|
be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the
|
||||||
|
Program specifies that a certain numbered version of the GNU General
|
||||||
|
Public License "or any later version" applies to it, you have the
|
||||||
|
option of following the terms and conditions either of that numbered
|
||||||
|
version or of any later version published by the Free Software
|
||||||
|
Foundation. If the Program does not specify a version number of the
|
||||||
|
GNU General Public License, you may choose any version ever published
|
||||||
|
by the Free Software Foundation.
|
||||||
|
|
||||||
|
If the Program specifies that a proxy can decide which future
|
||||||
|
versions of the GNU General Public License can be used, that proxy's
|
||||||
|
public statement of acceptance of a version permanently authorizes you
|
||||||
|
to choose that version for the Program.
|
||||||
|
|
||||||
|
Later license versions may give you additional or different
|
||||||
|
permissions. However, no additional obligations are imposed on any
|
||||||
|
author or copyright holder as a result of your choosing to follow a
|
||||||
|
later version.
|
||||||
|
|
||||||
|
15. Disclaimer of Warranty.
|
||||||
|
|
||||||
|
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||||
|
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||||
|
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||||
|
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||||
|
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||||
|
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
16. Limitation of Liability.
|
||||||
|
|
||||||
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||||
|
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||||
|
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||||
|
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||||
|
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||||
|
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||||
|
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGES.
|
||||||
|
|
||||||
|
17. Interpretation of Sections 15 and 16.
|
||||||
|
|
||||||
|
If the disclaimer of warranty and limitation of liability provided
|
||||||
|
above cannot be given local legal effect according to their terms,
|
||||||
|
reviewing courts shall apply local law that most closely approximates
|
||||||
|
an absolute waiver of all civil liability in connection with the
|
||||||
|
Program, unless a warranty or assumption of liability accompanies a
|
||||||
|
copy of the Program in return for a fee.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest
|
||||||
|
possible use to the public, the best way to achieve this is to make it
|
||||||
|
free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest
|
||||||
|
to attach them to the start of each source file to most effectively
|
||||||
|
state the exclusion of warranty; and each file should have at least
|
||||||
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If the program does terminal interaction, make it output a short
|
||||||
|
notice like this when it starts in an interactive mode:
|
||||||
|
|
||||||
|
<program> Copyright (C) <year> <name of author>
|
||||||
|
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||||
|
This is free software, and you are welcome to redistribute it
|
||||||
|
under certain conditions; type `show c' for details.
|
||||||
|
|
||||||
|
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||||
|
parts of the General Public License. Of course, your program's commands
|
||||||
|
might be different; for a GUI interface, you would use an "about box".
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or school,
|
||||||
|
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||||
|
For more information on this, and how to apply and follow the GNU GPL, see
|
||||||
|
<https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
The GNU General Public License does not permit incorporating your program
|
||||||
|
into proprietary programs. If your program is a subroutine library, you
|
||||||
|
may consider it more useful to permit linking proprietary applications with
|
||||||
|
the library. If this is what you want to do, use the GNU Lesser General
|
||||||
|
Public License instead of this License. But first, please read
|
||||||
|
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
||||||
11124
package-lock.json
generated
Normal file
66
package.json
Executable file
|
|
@ -0,0 +1,66 @@
|
||||||
|
{
|
||||||
|
"name": "vytal",
|
||||||
|
"version": "2.1.9",
|
||||||
|
"description": "Spoof your location data and user agent.",
|
||||||
|
"license": "MIT",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/z0ccc/Vytal.git"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"build": "node utils/build.js",
|
||||||
|
"prettier": "prettier --write '**/*.{js,jsx,ts,tsx,json,css,scss,md}'"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@emotion/react": "^11.9.3",
|
||||||
|
"@hot-loader/react-dom": "^17.0.2",
|
||||||
|
"@mdx-js/react": "^2.1.2",
|
||||||
|
"@types/lodash.debounce": "^4.0.7",
|
||||||
|
"@types/webpack-env": "^1.18.0",
|
||||||
|
"@types/webrtc": "^0.0.33",
|
||||||
|
"country-flag-emoji-polyfill": "^0.1.4",
|
||||||
|
"lodash.debounce": "^4.0.8",
|
||||||
|
"react": "^17.0.2",
|
||||||
|
"react-dom": "^17.0.2",
|
||||||
|
"react-feather": "^2.0.10",
|
||||||
|
"react-hot-loader": "^4.13.0",
|
||||||
|
"theme-ui": "^0.14.6"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@babel/core": "^7.17.0",
|
||||||
|
"@babel/plugin-proposal-class-properties": "^7.16.7",
|
||||||
|
"@babel/preset-env": "^7.16.11",
|
||||||
|
"@babel/preset-react": "^7.16.7",
|
||||||
|
"@types/chrome": "^0.0.177",
|
||||||
|
"@types/react": "^17.0.39",
|
||||||
|
"@types/react-dom": "^17.0.11",
|
||||||
|
"babel-eslint": "^10.1.0",
|
||||||
|
"babel-loader": "^8.2.3",
|
||||||
|
"babel-preset-react-app": "^10.0.1",
|
||||||
|
"clean-webpack-plugin": "^4.0.0",
|
||||||
|
"copy-webpack-plugin": "^7.0.0",
|
||||||
|
"css-loader": "^6.6.0",
|
||||||
|
"eslint": "^8.8.0",
|
||||||
|
"eslint-config-react-app": "^7.0.0",
|
||||||
|
"eslint-plugin-flowtype": "^8.0.3",
|
||||||
|
"eslint-plugin-import": "^2.25.4",
|
||||||
|
"eslint-plugin-jsx-a11y": "^6.5.1",
|
||||||
|
"eslint-plugin-react": "^7.28.0",
|
||||||
|
"eslint-plugin-react-hooks": "^4.3.0",
|
||||||
|
"file-loader": "^6.2.0",
|
||||||
|
"fs-extra": "^10.0.0",
|
||||||
|
"html-loader": "^3.1.0",
|
||||||
|
"html-webpack-plugin": "^5.5.0",
|
||||||
|
"sass": "*",
|
||||||
|
"prettier": "^2.5.1",
|
||||||
|
"sass-loader": "^12.4.0",
|
||||||
|
"source-map-loader": "^3.0.1",
|
||||||
|
"style-loader": "^3.3.1",
|
||||||
|
"terser-webpack-plugin": "^5.3.1",
|
||||||
|
"ts-loader": "^9.2.6",
|
||||||
|
"typescript": "^4.5.5",
|
||||||
|
"webpack": "^5.68.0",
|
||||||
|
"webpack-cli": "^4.9.2",
|
||||||
|
"webpack-dev-server": "^4.7.4"
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
promo/chrome.png
Normal file
|
After Width: | Height: | Size: 9.2 KiB |
BIN
promo/edge.png
Normal file
|
After Width: | Height: | Size: 4.3 KiB |
BIN
promo/large.png
Normal file
|
After Width: | Height: | Size: 31 KiB |
BIN
promo/logo-128.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
promo/logo-300.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
promo/logo-64.png
Normal file
|
After Width: | Height: | Size: 3.7 KiB |
BIN
promo/marquee.png
Normal file
|
After Width: | Height: | Size: 49 KiB |
BIN
promo/opera-promo.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
promo/opera.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
promo/screenshot-1.png
Normal file
|
After Width: | Height: | Size: 98 KiB |
BIN
promo/screenshot-2.png
Normal file
|
After Width: | Height: | Size: 84 KiB |
BIN
promo/screenshot-3.png
Normal file
|
After Width: | Height: | Size: 167 KiB |
BIN
promo/small.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
promo/vytal-logo-1024.png
Normal file
|
After Width: | Height: | Size: 69 KiB |
78
promo/vytal-logo-background.svg
Normal file
|
|
@ -0,0 +1,78 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
version="1.1"
|
||||||
|
id="svg1988"
|
||||||
|
xml:space="preserve"
|
||||||
|
width="336.63403"
|
||||||
|
height="336.09796"
|
||||||
|
viewBox="0 0 336.63403 336.09796"
|
||||||
|
sodipodi:docname="vytal-logo-background.svg"
|
||||||
|
inkscape:version="1.1.2 (0a00cf5339, 2022-02-04)"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"><defs
|
||||||
|
id="defs1992"><linearGradient
|
||||||
|
id="linearGradient3493"
|
||||||
|
inkscape:swatch="solid"><stop
|
||||||
|
style="stop-color:#000000;stop-opacity:1;"
|
||||||
|
offset="0"
|
||||||
|
id="stop3491" /></linearGradient><linearGradient
|
||||||
|
id="linearGradient3443"
|
||||||
|
inkscape:swatch="solid"><stop
|
||||||
|
style="stop-color:#000000;stop-opacity:1;"
|
||||||
|
offset="0"
|
||||||
|
id="stop3441" /></linearGradient></defs><sodipodi:namedview
|
||||||
|
id="namedview1990"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
showgrid="false"
|
||||||
|
fit-margin-top="0"
|
||||||
|
fit-margin-left="0"
|
||||||
|
fit-margin-right="0"
|
||||||
|
fit-margin-bottom="0"
|
||||||
|
inkscape:zoom="1.4997434"
|
||||||
|
inkscape:cx="130.02224"
|
||||||
|
inkscape:cy="146.02498"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1012"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="0"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="g1994" /><g
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer5"
|
||||||
|
inkscape:label="ink_ext_XXXXXX 2"
|
||||||
|
style="display:inline"
|
||||||
|
transform="translate(-651.16235,-636.64809)"><ellipse
|
||||||
|
style="display:inline;fill:#ffffff;fill-opacity:1;stroke:#a55eea;stroke-width:30.1447;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
id="path3359"
|
||||||
|
cx="819.47937"
|
||||||
|
cy="804.69708"
|
||||||
|
rx="153.24467"
|
||||||
|
ry="152.97664" /></g><g
|
||||||
|
id="g1994"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
inkscape:label="ink_ext_XXXXXX"
|
||||||
|
transform="matrix(1.3333333,0,0,-1.3333333,-651.16235,963.35191)"
|
||||||
|
style="display:inline"><g
|
||||||
|
id="g1996"
|
||||||
|
transform="matrix(0.1,0,0,0.1,14.121465,-4.35597)"
|
||||||
|
style="fill:#a55eea;fill-opacity:1;stroke-width:0.9975;stroke-miterlimit:4;stroke-dasharray:none"><path
|
||||||
|
d="m 6024.57,6299.02 c 236.48,-9.01 357,-293.74 194.89,-469.43 -43.11,-46.74 -68,-107.39 -68,-170.98 v -356.57 c 0,-76.84 -62.88,-142.04 -139.71,-141 -74.94,1.01 -135.95,62.63 -135.95,137.81 v 359.75 c 0,62.21 -22.45,122.95 -65.28,168.08 -171.49,180.65 -37.65,481.93 214.05,472.34"
|
||||||
|
style="fill:#a55eea;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.9975;stroke-miterlimit:4;stroke-dasharray:none"
|
||||||
|
id="path1998" /><path
|
||||||
|
d="m 5479.96,5351.64 c -199.26,160.18 -313.53,398.53 -313.53,653.93 0,462.43 376.21,838.64 838.65,838.64 462.42,0 838.65,-376.21 838.65,-838.64 0,-249.81 -110.21,-484.83 -302.36,-644.79 -48.79,-40.62 -121.33,-34.01 -161.96,14.81 -40.64,48.8 -34.02,121.31 14.81,161.95 435.48,362.57 179.51,1076.67 -389.14,1076.67 -574.02,0 -826.6,-725.08 -381.02,-1083.31 49.49,-39.8 57.37,-112.18 17.58,-161.68 -39.77,-49.48 -112.19,-57.38 -161.68,-17.58"
|
||||||
|
style="fill:#a55eea;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.9975;stroke-miterlimit:4;stroke-dasharray:none"
|
||||||
|
id="path2002" /></g></g><g
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer4"
|
||||||
|
inkscape:label="ink_ext_XXXXXX 1"
|
||||||
|
style="display:inline"
|
||||||
|
transform="translate(-651.16235,-636.64809)" /></svg>
|
||||||
|
After Width: | Height: | Size: 3.6 KiB |
BIN
promo/vytal-logo.png
Normal file
|
After Width: | Height: | Size: 59 KiB |