Compare commits
No commits in common. "master" and "v1.2.0" have entirely different histories.
|
|
@ -1,63 +0,0 @@
|
|||
# Forgejo Actions — CI/CD do Shivao
|
||||
|
||||
## Como ativar (uma vez)
|
||||
|
||||
### 1. Configure um runner Forgejo no Coolify
|
||||
|
||||
```bash
|
||||
# Sub-domínio sugerido: actions.pontualtech.work (DNS A → Hetzner)
|
||||
# Sobe via Coolify usando docker-compose:
|
||||
```
|
||||
|
||||
```yaml
|
||||
# Cole no Coolify → Pontualtech → New Resource → Docker Compose Empty
|
||||
services:
|
||||
forgejo-runner:
|
||||
image: code.forgejo.org/forgejo/runner:6
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
FORGEJO_INSTANCE_URL: https://git.pontualtech.work
|
||||
FORGEJO_RUNNER_REGISTRATION_TOKEN: ${RUNNER_TOKEN} # pega em git.pontualtech.work/admin/runners
|
||||
volumes:
|
||||
- runner_data:/data
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
volumes:
|
||||
runner_data:
|
||||
```
|
||||
|
||||
### 2. Configure secrets no Forgejo
|
||||
|
||||
`git.pontualtech.work/karlao/shivao-projeto/settings/actions/secrets`
|
||||
|
||||
| Secret | Como obter |
|
||||
|---|---|
|
||||
| `SHIVAO_KEYSTORE_BASE64` | `base64 -w0 ~/Downloads/Shivao-keystore-backup/shivao-release-CAPACITOR.keystore` |
|
||||
| `SHIVAO_KEYSTORE_PWD` | `ShivaoKeystore2026!` (a senha que você definiu) |
|
||||
| `FORGEJO_TOKEN` | Settings → Applications → Generate New Token (permissions: write:repository) |
|
||||
|
||||
### 3. Triggers do workflow
|
||||
|
||||
- **Auto:** push em `master` que toque em `app/`, `mobile/` ou `scripts/sync-html.mjs`
|
||||
- **Manual:** botão "Run workflow" no painel Forgejo Actions
|
||||
|
||||
## Output
|
||||
|
||||
Cada build gera:
|
||||
- APK assinado: `Shivao-v{X.Y.Z}.apk`
|
||||
- AAB assinado: `Shivao-v{X.Y.Z}.aab`
|
||||
- Anexados como artifact (download via UI Forgejo)
|
||||
- Se trigger for manual: cria release `v{X.Y.Z}-ci` no repo
|
||||
|
||||
## Vantagens vs build local
|
||||
|
||||
- ✅ Zero setup local — Karlão pode editar HTML do iPad e o build roda no servidor
|
||||
- ✅ Imutável e reproduzível
|
||||
- ✅ Self-hosted (alinhado com `feedback_self_hosted.md`)
|
||||
- ✅ Logs centralizados
|
||||
- ⚠️ Custo: 1 container Coolify rodando (low-resource, ~50MB RAM idle)
|
||||
|
||||
## Alternativas se runner não funcionar
|
||||
|
||||
- **Codemagic:** 500min grátis/mês, conecta ao Forgejo via webhook
|
||||
- **GitHub Actions (free tier):** mirror do repo no GitHub → workflow padrão
|
||||
- **Build local:** `cd mobile && npm run android:build:aab` (já documentado em mobile/README.md)
|
||||
|
|
@ -1,97 +0,0 @@
|
|||
name: Build Android (APK + AAB)
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
paths:
|
||||
- 'app/**'
|
||||
- 'mobile/**'
|
||||
- 'scripts/sync-html.mjs'
|
||||
- '.forgejo/workflows/build-android.yml'
|
||||
workflow_dispatch: {} # botão manual no painel Forgejo
|
||||
|
||||
jobs:
|
||||
build-android:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write # pra upload de release
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node 20
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
|
||||
- name: Setup JDK 17
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'temurin'
|
||||
java-version: '17'
|
||||
|
||||
- name: Setup Android SDK
|
||||
uses: android-actions/setup-android@v3
|
||||
with:
|
||||
packages: 'platforms;android-34 build-tools;34.0.0 platform-tools'
|
||||
|
||||
- name: Install root deps (sync script)
|
||||
run: |
|
||||
cd "${{ github.workspace }}"
|
||||
# Sem package.json no root, script é puro Node ESM
|
||||
node --version
|
||||
|
||||
- name: Sync HTML (1 fonte → server + mobile)
|
||||
run: node scripts/sync-html.mjs
|
||||
|
||||
- name: Install Capacitor deps
|
||||
working-directory: mobile
|
||||
run: npm ci --ignore-scripts
|
||||
|
||||
- name: Capacitor sync
|
||||
working-directory: mobile
|
||||
run: npx cap sync android
|
||||
|
||||
- name: Decode keystore from secrets
|
||||
run: |
|
||||
echo "${{ secrets.SHIVAO_KEYSTORE_BASE64 }}" | base64 --decode > mobile/android/app/shivao-release.keystore
|
||||
ls -lh mobile/android/app/shivao-release.keystore
|
||||
|
||||
- name: Build APK + AAB (release, signed)
|
||||
working-directory: mobile/android
|
||||
env:
|
||||
SHIVAO_KEYSTORE_PWD: ${{ secrets.SHIVAO_KEYSTORE_PWD }}
|
||||
run: |
|
||||
chmod +x ./gradlew
|
||||
./gradlew bundleRelease assembleRelease --no-daemon --stacktrace
|
||||
|
||||
- name: Rename artifacts with version
|
||||
run: |
|
||||
VERSION=$(grep "versionName" mobile/android/app/build.gradle | head -1 | grep -oE '"[^"]+"' | tr -d '"')
|
||||
echo "Version: $VERSION"
|
||||
cp mobile/android/app/build/outputs/apk/release/app-release.apk Shivao-v${VERSION}.apk
|
||||
cp mobile/android/app/build/outputs/bundle/release/app-release.aab Shivao-v${VERSION}.aab
|
||||
echo "VERSION=$VERSION" >> $GITHUB_ENV
|
||||
|
||||
- name: Upload APK + AAB as artifacts (CI)
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: shivao-android-${{ env.VERSION }}
|
||||
path: |
|
||||
Shivao-v${{ env.VERSION }}.apk
|
||||
Shivao-v${{ env.VERSION }}.aab
|
||||
|
||||
- name: Create Forgejo release
|
||||
if: github.event_name == 'workflow_dispatch'
|
||||
uses: actions/forgejo-release@v2
|
||||
with:
|
||||
direction: upload
|
||||
tag: v${{ env.VERSION }}-ci
|
||||
title: "Shivao v${{ env.VERSION }} (CI build)"
|
||||
files: |
|
||||
Shivao-v${{ env.VERSION }}.apk
|
||||
Shivao-v${{ env.VERSION }}.aab
|
||||
token: ${{ secrets.FORGEJO_TOKEN }}
|
||||
url: https://git.pontualtech.work
|
||||
repo: karlao/shivao-projeto
|
||||
|
|
@ -774,435 +774,6 @@ header{
|
|||
body{background:#fff;background-image:none}
|
||||
.entry{break-inside:avoid;border:1px solid #999}
|
||||
}
|
||||
|
||||
/* ═══════════════════════════════════════════════════════
|
||||
MODERN PROFESSIONAL OVERLAY · v2 — Apr 2026
|
||||
Mantém identidade marítima (cores Fraunces + Manrope + JetBrains Mono),
|
||||
mas moderniza profundamente: depth, microinterações, polish premium.
|
||||
═══════════════════════════════════════════════════════ */
|
||||
:root{
|
||||
/* spacing scale (8pt base) */
|
||||
--s1:4px; --s2:8px; --s3:12px; --s4:16px; --s5:24px; --s6:32px; --s7:48px; --s8:64px;
|
||||
/* radius scale (sutis — alinhados ao tom marítimo) */
|
||||
--r-sm:4px; --r-md:8px; --r-lg:12px; --r-xl:16px; --r-pill:9999px;
|
||||
/* shadow scale (depth profissional) */
|
||||
--sh-1:0 1px 2px rgba(14,42,61,.06), 0 1px 1px rgba(14,42,61,.04);
|
||||
--sh-2:0 2px 4px rgba(14,42,61,.06), 0 4px 8px rgba(14,42,61,.05);
|
||||
--sh-3:0 4px 8px rgba(14,42,61,.07), 0 8px 16px rgba(14,42,61,.06);
|
||||
--sh-4:0 8px 16px rgba(14,42,61,.08), 0 16px 32px rgba(14,42,61,.08);
|
||||
--sh-5:0 16px 32px rgba(14,42,61,.10), 0 32px 64px rgba(14,42,61,.10);
|
||||
--sh-glow:0 0 0 4px rgba(160,120,50,.12);
|
||||
--sh-glow-blue:0 0 0 4px rgba(31,91,118,.18);
|
||||
/* transitions */
|
||||
--t-fast:120ms cubic-bezier(.4,0,.2,1);
|
||||
--t-base:200ms cubic-bezier(.4,0,.2,1);
|
||||
--t-slow:320ms cubic-bezier(.4,0,.2,1);
|
||||
/* superfícies elevadas premium */
|
||||
--surface-1:#fbf5e2;
|
||||
--surface-2:#ffffff;
|
||||
--surface-elevated:rgba(255,255,255,.78);
|
||||
--border-subtle:rgba(184,156,108,.22);
|
||||
--border-strong:rgba(184,156,108,.55);
|
||||
}
|
||||
|
||||
/* ── BACKGROUND limpo elegante (sem ruído) ── */
|
||||
body{
|
||||
background:
|
||||
radial-gradient(ellipse 1200px 800px at 50% -200px, #f8eed5 0%, transparent 60%),
|
||||
linear-gradient(180deg, #efe5cd 0%, #e7d9b6 100%);
|
||||
background-attachment:fixed;
|
||||
background-image:
|
||||
radial-gradient(ellipse 1200px 800px at 50% -200px, #f8eed5 0%, transparent 60%),
|
||||
linear-gradient(180deg, #efe5cd 0%, #e7d9b6 100%);
|
||||
}
|
||||
|
||||
/* ── HEADER premium com glow sutil + gradient ── */
|
||||
header{
|
||||
background:linear-gradient(180deg, #0e2a3d 0%, #143447 100%);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(200,159,84,.30),
|
||||
inset 0 -1px 0 rgba(160,120,50,.55),
|
||||
0 4px 24px rgba(14,42,61,.18),
|
||||
0 12px 48px rgba(14,42,61,.10);
|
||||
border-bottom:none;
|
||||
}
|
||||
.header-row{padding:2px 0}
|
||||
.boat-name{
|
||||
text-shadow:0 1px 2px rgba(0,0,0,.25);
|
||||
letter-spacing:-.015em;
|
||||
}
|
||||
.compass-mark{
|
||||
filter:drop-shadow(0 2px 8px rgba(200,159,84,.35));
|
||||
transition:transform var(--t-base);
|
||||
}
|
||||
.compass-mark:hover{transform:rotate(15deg)}
|
||||
|
||||
/* ── TABS modernas: pill nav com indicador animado ── */
|
||||
.tabs{
|
||||
background:rgba(239,229,205,.92);
|
||||
backdrop-filter:blur(12px) saturate(1.2);
|
||||
-webkit-backdrop-filter:blur(12px) saturate(1.2);
|
||||
border-bottom:1px solid var(--border-subtle);
|
||||
padding:8px 4px 0;
|
||||
gap:2px;
|
||||
box-shadow:0 1px 0 rgba(255,255,255,.5) inset;
|
||||
}
|
||||
.tab{
|
||||
border-radius:var(--r-md) var(--r-md) 0 0;
|
||||
padding:13px 18px 14px;
|
||||
transition:color var(--t-base), background var(--t-base);
|
||||
position:relative;
|
||||
}
|
||||
.tab:hover{
|
||||
color:var(--ink-mid);
|
||||
background:rgba(255,255,255,.4);
|
||||
}
|
||||
.tab.active{
|
||||
color:var(--ink-deep);
|
||||
background:linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.5));
|
||||
}
|
||||
.tab.active::after{
|
||||
height:3px;left:14px;right:14px;bottom:0;
|
||||
background:linear-gradient(90deg, var(--brass), var(--brass-bright));
|
||||
border-radius:2px 2px 0 0;
|
||||
box-shadow:0 0 8px rgba(160,120,50,.4);
|
||||
}
|
||||
|
||||
/* ── CARDS com depth real (sombra multi-layer) ── */
|
||||
.gps-card,.anchor-card,.export-card,.empty,.entry,.contact-card{
|
||||
border-radius:var(--r-lg);
|
||||
box-shadow:var(--sh-2);
|
||||
transition:box-shadow var(--t-base), transform var(--t-base);
|
||||
overflow:hidden;
|
||||
}
|
||||
.entry{
|
||||
border-radius:var(--r-md);
|
||||
box-shadow:var(--sh-1);
|
||||
border-color:var(--border-subtle);
|
||||
}
|
||||
.entry:hover{box-shadow:var(--sh-2)}
|
||||
|
||||
.gps-card,.anchor-card{
|
||||
border-radius:var(--r-lg);
|
||||
background:linear-gradient(165deg, #0e2a3d 0%, #1a3d54 100%);
|
||||
border:1px solid rgba(200,159,84,.4);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(200,159,84,.2),
|
||||
var(--sh-3),
|
||||
0 0 32px rgba(31,91,118,.15);
|
||||
}
|
||||
.gps-card::before,.anchor-card::before{display:none}
|
||||
.gps-card.idle{
|
||||
background:linear-gradient(165deg, #fbf5e2 0%, #f3e7c4 100%);
|
||||
border:1px solid var(--border-subtle);
|
||||
box-shadow:var(--sh-2);
|
||||
}
|
||||
.gps-stats,.anchor-stats-bar{
|
||||
background:rgba(0,0,0,.15);
|
||||
padding:14px;
|
||||
border-radius:var(--r-md);
|
||||
margin:12px 0 14px;
|
||||
}
|
||||
.gps-card.idle .gps-stats{background:rgba(184,156,108,.08)}
|
||||
|
||||
.export-card,.empty{
|
||||
background:var(--surface-elevated);
|
||||
backdrop-filter:blur(8px);
|
||||
-webkit-backdrop-filter:blur(8px);
|
||||
border-radius:var(--r-lg);
|
||||
border:1px solid var(--border-subtle);
|
||||
box-shadow:var(--sh-2);
|
||||
}
|
||||
.export-card:hover{box-shadow:var(--sh-3)}
|
||||
|
||||
/* ── BUTTONS premium com lift e ripple ── */
|
||||
.btn{
|
||||
border-radius:var(--r-md);
|
||||
transition:all var(--t-base);
|
||||
font-weight:600;
|
||||
letter-spacing:.12em;
|
||||
position:relative;
|
||||
overflow:hidden;
|
||||
}
|
||||
.btn:hover{
|
||||
transform:translateY(-1px);
|
||||
box-shadow:var(--sh-2);
|
||||
}
|
||||
.btn:active{transform:translateY(0); box-shadow:var(--sh-1)}
|
||||
.btn:focus-visible{
|
||||
outline:none;
|
||||
box-shadow:var(--sh-glow);
|
||||
}
|
||||
.btn-primary{
|
||||
background:linear-gradient(180deg, #143a52 0%, #0e2a3d 100%);
|
||||
border-color:rgba(0,0,0,.4);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255,255,255,.10),
|
||||
var(--sh-1);
|
||||
}
|
||||
.btn-primary:hover{
|
||||
background:linear-gradient(180deg, #1a4a66 0%, #143a52 100%);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255,255,255,.15),
|
||||
var(--sh-3);
|
||||
}
|
||||
.btn-brass{
|
||||
background:linear-gradient(180deg, #b88a3c 0%, #8d6826 100%);
|
||||
border-color:rgba(0,0,0,.25);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255,255,255,.18),
|
||||
var(--sh-1);
|
||||
}
|
||||
.btn-brass:hover{
|
||||
background:linear-gradient(180deg, #c89954 0%, #a07832 100%);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255,255,255,.25),
|
||||
var(--sh-3);
|
||||
}
|
||||
.btn-danger{
|
||||
background:transparent;
|
||||
border:1px solid var(--storm);
|
||||
color:var(--storm);
|
||||
}
|
||||
.btn-danger:hover{
|
||||
background:linear-gradient(180deg, #a04545 0%, #8c3434 100%);
|
||||
color:#fff;
|
||||
border-color:transparent;
|
||||
}
|
||||
|
||||
/* ── FIELDS modernos com focus ring ── */
|
||||
.field input,.field textarea,.field select{
|
||||
border-radius:var(--r-md);
|
||||
background:var(--surface-2);
|
||||
border:1px solid var(--border-subtle);
|
||||
padding:12px 14px;
|
||||
font-size:15px;
|
||||
transition:border-color var(--t-base), box-shadow var(--t-base), background var(--t-base);
|
||||
}
|
||||
.field input:hover,.field textarea:hover,.field select:hover{
|
||||
border-color:var(--border-strong);
|
||||
}
|
||||
.field input:focus,.field textarea:focus,.field select:focus{
|
||||
border-color:var(--brass);
|
||||
background:#fff;
|
||||
box-shadow:var(--sh-glow);
|
||||
}
|
||||
.field-label{font-size:11px; font-weight:600; color:var(--ink-mid); margin-bottom:6px}
|
||||
|
||||
/* ── MODAL com depth maior + entrance polida ── */
|
||||
.modal-backdrop{
|
||||
background:rgba(14,42,61,.65);
|
||||
backdrop-filter:blur(8px) saturate(1.1);
|
||||
-webkit-backdrop-filter:blur(8px) saturate(1.1);
|
||||
}
|
||||
.modal{
|
||||
border-radius:var(--r-xl) var(--r-xl) 0 0;
|
||||
border-top:none;
|
||||
box-shadow:
|
||||
0 -4px 12px rgba(0,0,0,.05),
|
||||
0 -16px 48px rgba(14,42,61,.25);
|
||||
background-image:none;
|
||||
background:linear-gradient(180deg, #fcf6e4 0%, #f8f0d4 100%);
|
||||
}
|
||||
@media(min-width:600px){
|
||||
.modal{
|
||||
border-radius:var(--r-xl);
|
||||
box-shadow:0 24px 64px rgba(14,42,61,.30), 0 8px 16px rgba(14,42,61,.10);
|
||||
}
|
||||
}
|
||||
.modal-head{
|
||||
background:transparent;
|
||||
padding:18px 22px;
|
||||
border-bottom:1px solid var(--border-subtle);
|
||||
}
|
||||
.modal-body{padding:22px}
|
||||
.modal-foot{
|
||||
background:rgba(0,0,0,.02);
|
||||
padding:16px 22px;
|
||||
}
|
||||
|
||||
/* ── FAB redesenhado: floating elegante ── */
|
||||
.fab{
|
||||
border-radius:var(--r-pill) !important;
|
||||
background:linear-gradient(135deg, #b88a3c 0%, #8d6826 100%) !important;
|
||||
box-shadow:
|
||||
0 4px 12px rgba(160,120,50,.4),
|
||||
0 12px 32px rgba(14,42,61,.15),
|
||||
inset 0 1px 0 rgba(255,255,255,.25) !important;
|
||||
transition:transform var(--t-base), box-shadow var(--t-base);
|
||||
}
|
||||
.fab:hover{
|
||||
transform:translateY(-2px) scale(1.05);
|
||||
box-shadow:
|
||||
0 8px 20px rgba(160,120,50,.5),
|
||||
0 16px 40px rgba(14,42,61,.20),
|
||||
inset 0 1px 0 rgba(255,255,255,.30);
|
||||
}
|
||||
.fab:active{transform:translateY(0) scale(1)}
|
||||
|
||||
/* ── STATS GRID polido ── */
|
||||
.stats{
|
||||
border-radius:var(--r-lg);
|
||||
background:transparent;
|
||||
border:none;
|
||||
gap:10px;
|
||||
box-shadow:none;
|
||||
display:grid;
|
||||
}
|
||||
.stat{
|
||||
border-radius:var(--r-md);
|
||||
background:var(--surface-elevated);
|
||||
backdrop-filter:blur(8px);
|
||||
-webkit-backdrop-filter:blur(8px);
|
||||
border:1px solid var(--border-subtle);
|
||||
box-shadow:var(--sh-1);
|
||||
padding:16px 16px 14px;
|
||||
transition:transform var(--t-base), box-shadow var(--t-base);
|
||||
}
|
||||
.stat:hover{transform:translateY(-2px); box-shadow:var(--sh-2)}
|
||||
.stat::before{
|
||||
height:3px; border-radius:2px;
|
||||
background:linear-gradient(90deg, var(--brass), var(--brass-bright));
|
||||
transform:scaleX(.5);
|
||||
transition:transform var(--t-base);
|
||||
}
|
||||
.stat:hover::before{transform:scaleX(1)}
|
||||
|
||||
/* ── EMPTY STATE elegante ── */
|
||||
.empty{padding:56px 28px; border-radius:var(--r-lg)}
|
||||
.empty::before,.empty::after{display:none}
|
||||
.empty-rose{
|
||||
width:64px; height:64px;
|
||||
filter:drop-shadow(0 4px 12px rgba(160,120,50,.25));
|
||||
margin-bottom:18px;
|
||||
}
|
||||
.empty-title{font-size:21px}
|
||||
.empty-text{font-size:14px; line-height:1.65; opacity:.85}
|
||||
|
||||
/* ── STATUS PILLS arredondados ── */
|
||||
.status-pill{
|
||||
border-radius:var(--r-pill);
|
||||
padding:3px 10px;
|
||||
font-size:9.5px;
|
||||
letter-spacing:.16em;
|
||||
}
|
||||
|
||||
/* ── ALERTS com sombra sutil ── */
|
||||
.alert{
|
||||
border-radius:var(--r-md);
|
||||
border:1px solid var(--border-subtle);
|
||||
border-left-width:4px;
|
||||
box-shadow:var(--sh-1);
|
||||
padding:14px 16px;
|
||||
transition:transform var(--t-base);
|
||||
}
|
||||
.alert:hover{transform:translateX(2px)}
|
||||
|
||||
/* ── PASSENGER PILLS modernos ── */
|
||||
.pax-pill,.pax-tag,.channel-pill{
|
||||
border-radius:var(--r-pill);
|
||||
padding:4px 12px;
|
||||
}
|
||||
|
||||
/* ── ICON BUTTONS polidos ── */
|
||||
.icon-btn{
|
||||
border-radius:var(--r-md);
|
||||
transition:all var(--t-base);
|
||||
}
|
||||
.icon-btn:hover{
|
||||
background:rgba(184,156,108,.15);
|
||||
transform:scale(1.08);
|
||||
}
|
||||
|
||||
/* ── MEDIA THUMBS ── */
|
||||
.media-thumb,.media-item{
|
||||
border-radius:var(--r-md);
|
||||
transition:transform var(--t-base), box-shadow var(--t-base);
|
||||
}
|
||||
.media-thumb:hover,.media-item:hover{
|
||||
transform:scale(1.04);
|
||||
box-shadow:var(--sh-2);
|
||||
z-index:2;
|
||||
}
|
||||
|
||||
/* ── SENSOR WIDGET premium (top-right) ── */
|
||||
#sensors-widget{
|
||||
border-radius:var(--r-lg) !important;
|
||||
background:linear-gradient(165deg, rgba(14,42,61,.92), rgba(20,58,82,.92)) !important;
|
||||
backdrop-filter:blur(20px) saturate(1.4);
|
||||
-webkit-backdrop-filter:blur(20px) saturate(1.4);
|
||||
box-shadow:
|
||||
0 4px 12px rgba(0,0,0,.15),
|
||||
0 8px 24px rgba(14,42,61,.18),
|
||||
inset 0 1px 0 rgba(200,159,84,.2) !important;
|
||||
border:1px solid rgba(200,159,84,.18);
|
||||
transition:transform var(--t-base), box-shadow var(--t-base);
|
||||
}
|
||||
#sensors-widget:hover{
|
||||
transform:translateY(-1px);
|
||||
box-shadow:
|
||||
0 8px 16px rgba(0,0,0,.20),
|
||||
0 16px 32px rgba(14,42,61,.22);
|
||||
}
|
||||
|
||||
/* ── AUTH BOX polido ── */
|
||||
#auth-box{
|
||||
background:linear-gradient(165deg, rgba(255,255,255,.5), rgba(255,255,255,.2));
|
||||
backdrop-filter:blur(8px);
|
||||
-webkit-backdrop-filter:blur(8px);
|
||||
border-radius:var(--r-md);
|
||||
padding:14px;
|
||||
margin-top:14px !important;
|
||||
border:1px solid var(--border-subtle);
|
||||
border-top:1px solid var(--border-subtle) !important;
|
||||
}
|
||||
|
||||
/* ── CURSOR pointer em interativos críticos ── */
|
||||
.tab,.btn,.fab,.icon-btn,.media-btn,.media-thumb,.media-item,.alert,
|
||||
.entry-actions button,.modal-head button,.pax-tag button{
|
||||
cursor:pointer;
|
||||
}
|
||||
|
||||
/* ── FOCUS visible global ── */
|
||||
*:focus-visible{
|
||||
outline:2px solid var(--brass);
|
||||
outline-offset:2px;
|
||||
border-radius:var(--r-sm);
|
||||
}
|
||||
|
||||
/* ── REDUCED MOTION (accessibility) ── */
|
||||
@media (prefers-reduced-motion:reduce){
|
||||
*,*::before,*::after{
|
||||
animation-duration:.01ms !important;
|
||||
animation-iteration-count:1 !important;
|
||||
transition-duration:.01ms !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── LARGE SCREENS: mais respiro ── */
|
||||
@media(min-width:780px){
|
||||
.container{padding:32px 24px 96px}
|
||||
.stats{grid-template-columns:repeat(4,1fr)}
|
||||
}
|
||||
|
||||
/* ── SCROLLBAR sutil (Firefox + WebKit) ── */
|
||||
*{scrollbar-width:thin; scrollbar-color:var(--brass) transparent}
|
||||
::-webkit-scrollbar{width:8px; height:8px}
|
||||
::-webkit-scrollbar-track{background:transparent}
|
||||
::-webkit-scrollbar-thumb{background:rgba(160,120,50,.35); border-radius:var(--r-pill)}
|
||||
::-webkit-scrollbar-thumb:hover{background:rgba(160,120,50,.55)}
|
||||
|
||||
/* ── TYPOGRAPHY refinement ── */
|
||||
.boat-name{font-size:26px}
|
||||
.entry-title{font-size:20px; line-height:1.25}
|
||||
.modal-head h3{font-size:20px}
|
||||
.empty-title{margin-bottom:6px}
|
||||
|
||||
/* ── SECTION HEADER sutilmente refinado ── */
|
||||
.section-header h2{font-size:11px; font-weight:600; color:var(--ink-mid)}
|
||||
|
||||
/* ── TOOLBAR refinada ── */
|
||||
.toolbar{gap:10px; margin-bottom:18px}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
|||
101
mobile/android/.gitignore
vendored
|
|
@ -1,101 +0,0 @@
|
|||
# Using Android gitignore template: https://github.com/github/gitignore/blob/HEAD/Android.gitignore
|
||||
|
||||
# Built application files
|
||||
*.apk
|
||||
*.aar
|
||||
*.ap_
|
||||
*.aab
|
||||
|
||||
# Files for the ART/Dalvik VM
|
||||
*.dex
|
||||
|
||||
# Java class files
|
||||
*.class
|
||||
|
||||
# Generated files
|
||||
bin/
|
||||
gen/
|
||||
out/
|
||||
# Uncomment the following line in case you need and you don't have the release build type files in your app
|
||||
# release/
|
||||
|
||||
# Gradle files
|
||||
.gradle/
|
||||
build/
|
||||
|
||||
# Local configuration file (sdk path, etc)
|
||||
local.properties
|
||||
|
||||
# Proguard folder generated by Eclipse
|
||||
proguard/
|
||||
|
||||
# Log Files
|
||||
*.log
|
||||
|
||||
# Android Studio Navigation editor temp files
|
||||
.navigation/
|
||||
|
||||
# Android Studio captures folder
|
||||
captures/
|
||||
|
||||
# IntelliJ
|
||||
*.iml
|
||||
.idea/workspace.xml
|
||||
.idea/tasks.xml
|
||||
.idea/gradle.xml
|
||||
.idea/assetWizardSettings.xml
|
||||
.idea/dictionaries
|
||||
.idea/libraries
|
||||
# Android Studio 3 in .gitignore file.
|
||||
.idea/caches
|
||||
.idea/modules.xml
|
||||
# Comment next line if keeping position of elements in Navigation Editor is relevant for you
|
||||
.idea/navEditor.xml
|
||||
|
||||
# Keystore files
|
||||
# Uncomment the following lines if you do not want to check your keystore files in.
|
||||
#*.jks
|
||||
#*.keystore
|
||||
|
||||
# External native build folder generated in Android Studio 2.2 and later
|
||||
.externalNativeBuild
|
||||
.cxx/
|
||||
|
||||
# Google Services (e.g. APIs or Firebase)
|
||||
# google-services.json
|
||||
|
||||
# Freeline
|
||||
freeline.py
|
||||
freeline/
|
||||
freeline_project_description.json
|
||||
|
||||
# fastlane
|
||||
fastlane/report.xml
|
||||
fastlane/Preview.html
|
||||
fastlane/screenshots
|
||||
fastlane/test_output
|
||||
fastlane/readme.md
|
||||
|
||||
# Version control
|
||||
vcs.xml
|
||||
|
||||
# lint
|
||||
lint/intermediates/
|
||||
lint/generated/
|
||||
lint/outputs/
|
||||
lint/tmp/
|
||||
# lint/reports/
|
||||
|
||||
# Android Profiling
|
||||
*.hprof
|
||||
|
||||
# Cordova plugins for Capacitor
|
||||
capacitor-cordova-android-plugins
|
||||
|
||||
# Copied web assets
|
||||
app/src/main/assets/public
|
||||
|
||||
# Generated Config files
|
||||
app/src/main/assets/capacitor.config.json
|
||||
app/src/main/assets/capacitor.plugins.json
|
||||
app/src/main/res/xml/config.xml
|
||||
2
mobile/android/app/.gitignore
vendored
|
|
@ -1,2 +0,0 @@
|
|||
/build/*
|
||||
!/build/.npmkeep
|
||||
|
|
@ -1,63 +0,0 @@
|
|||
apply plugin: 'com.android.application'
|
||||
|
||||
android {
|
||||
namespace "br.com.pontualtech.shivao"
|
||||
compileSdk rootProject.ext.compileSdkVersion
|
||||
defaultConfig {
|
||||
applicationId "br.com.pontualtech.shivao"
|
||||
minSdkVersion rootProject.ext.minSdkVersion
|
||||
targetSdkVersion rootProject.ext.targetSdkVersion
|
||||
versionCode 2
|
||||
versionName "1.2.0"
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
aaptOptions {
|
||||
// Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
|
||||
// Default: https://android.googlesource.com/platform/frameworks/base/+/282e181b58cf72b6ca770dc7ca5f91f135444502/tools/aapt/AaptAssets.cpp#61
|
||||
ignoreAssetsPattern '!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~'
|
||||
}
|
||||
}
|
||||
signingConfigs {
|
||||
release {
|
||||
storeFile file('shivao-release.keystore')
|
||||
storePassword 'ShivaoKeystore2026!'
|
||||
keyAlias 'shivao'
|
||||
keyPassword 'ShivaoKeystore2026!'
|
||||
}
|
||||
}
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled false
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
signingConfig signingConfigs.release
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
repositories {
|
||||
flatDir{
|
||||
dirs '../capacitor-cordova-android-plugins/src/main/libs', 'libs'
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
||||
implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
|
||||
implementation "androidx.coordinatorlayout:coordinatorlayout:$androidxCoordinatorLayoutVersion"
|
||||
implementation "androidx.core:core-splashscreen:$coreSplashScreenVersion"
|
||||
implementation project(':capacitor-android')
|
||||
testImplementation "junit:junit:$junitVersion"
|
||||
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
|
||||
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
|
||||
implementation project(':capacitor-cordova-android-plugins')
|
||||
}
|
||||
|
||||
apply from: 'capacitor.build.gradle'
|
||||
|
||||
try {
|
||||
def servicesJSON = file('google-services.json')
|
||||
if (servicesJSON.text) {
|
||||
apply plugin: 'com.google.gms.google-services'
|
||||
}
|
||||
} catch(Exception e) {
|
||||
logger.info("google-services.json not found, google-services plugin not applied. Push Notifications won't work")
|
||||
}
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
// DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN
|
||||
|
||||
android {
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_17
|
||||
targetCompatibility JavaVersion.VERSION_17
|
||||
}
|
||||
}
|
||||
|
||||
apply from: "../capacitor-cordova-android-plugins/cordova.variables.gradle"
|
||||
dependencies {
|
||||
implementation project(':capacitor-app')
|
||||
implementation project(':capacitor-geolocation')
|
||||
implementation project(':capacitor-local-notifications')
|
||||
implementation project(':capacitor-network')
|
||||
implementation project(':capacitor-preferences')
|
||||
implementation project(':capacitor-status-bar')
|
||||
|
||||
}
|
||||
|
||||
|
||||
if (hasProperty('postBuildExtras')) {
|
||||
postBuildExtras()
|
||||
}
|
||||
21
mobile/android/app/proguard-rules.pro
vendored
|
|
@ -1,21 +0,0 @@
|
|||
# Add project specific ProGuard rules here.
|
||||
# You can control the set of applied configuration files using the
|
||||
# proguardFiles setting in build.gradle.
|
||||
#
|
||||
# For more details, see
|
||||
# http://developer.android.com/guide/developing/tools/proguard.html
|
||||
|
||||
# If your project uses WebView with JS, uncomment the following
|
||||
# and specify the fully qualified class name to the JavaScript interface
|
||||
# class:
|
||||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
||||
# public *;
|
||||
#}
|
||||
|
||||
# Uncomment this to preserve the line number information for
|
||||
# debugging stack traces.
|
||||
#-keepattributes SourceFile,LineNumberTable
|
||||
|
||||
# If you keep the line number information, uncomment this to
|
||||
# hide the original source file name.
|
||||
#-renamesourcefileattribute SourceFile
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
package com.getcapacitor.myapp;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
import android.content.Context;
|
||||
import androidx.test.ext.junit.runners.AndroidJUnit4;
|
||||
import androidx.test.platform.app.InstrumentationRegistry;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
/**
|
||||
* Instrumented test, which will execute on an Android device.
|
||||
*
|
||||
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
|
||||
*/
|
||||
@RunWith(AndroidJUnit4.class)
|
||||
public class ExampleInstrumentedTest {
|
||||
|
||||
@Test
|
||||
public void useAppContext() throws Exception {
|
||||
// Context of the app under test.
|
||||
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
|
||||
|
||||
assertEquals("com.getcapacitor.app", appContext.getPackageName());
|
||||
}
|
||||
}
|
||||
|
|
@ -1,54 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<application
|
||||
android:allowBackup="true"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:roundIcon="@mipmap/ic_launcher_round"
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/AppTheme">
|
||||
|
||||
<activity
|
||||
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode"
|
||||
android:name=".MainActivity"
|
||||
android:label="@string/title_activity_main"
|
||||
android:theme="@style/AppTheme.NoActionBarLaunch"
|
||||
android:launchMode="singleTask"
|
||||
android:exported="true">
|
||||
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
|
||||
</activity>
|
||||
|
||||
<provider
|
||||
android:name="androidx.core.content.FileProvider"
|
||||
android:authorities="${applicationId}.fileprovider"
|
||||
android:exported="false"
|
||||
android:grantUriPermissions="true">
|
||||
<meta-data
|
||||
android:name="android.support.FILE_PROVIDER_PATHS"
|
||||
android:resource="@xml/file_paths"></meta-data>
|
||||
</provider>
|
||||
</application>
|
||||
|
||||
<!-- Permissions -->
|
||||
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
||||
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
|
||||
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
|
||||
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
|
||||
<uses-permission android:name="android.permission.VIBRATE" />
|
||||
<uses-permission android:name="android.permission.WAKE_LOCK" />
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_LOCATION" />
|
||||
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
|
||||
|
||||
<uses-feature android:name="android.hardware.location.gps" android:required="false" />
|
||||
<uses-feature android:name="android.hardware.sensor.barometer" android:required="false" />
|
||||
<uses-feature android:name="android.hardware.sensor.compass" android:required="false" />
|
||||
</manifest>
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
package br.com.pontualtech.shivao;
|
||||
|
||||
import com.getcapacitor.BridgeActivity;
|
||||
|
||||
public class MainActivity extends BridgeActivity {}
|
||||
|
Before Width: | Height: | Size: 7.5 KiB |
|
Before Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 9 KiB |
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 7.7 KiB |
|
Before Width: | Height: | Size: 4 KiB |
|
Before Width: | Height: | Size: 9.6 KiB |
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 17 KiB |
|
|
@ -1,34 +0,0 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:width="108dp"
|
||||
android:height="108dp"
|
||||
android:viewportHeight="108"
|
||||
android:viewportWidth="108">
|
||||
<path
|
||||
android:fillType="evenOdd"
|
||||
android:pathData="M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z"
|
||||
android:strokeColor="#00000000"
|
||||
android:strokeWidth="1">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:endX="78.5885"
|
||||
android:endY="90.9159"
|
||||
android:startX="48.7653"
|
||||
android:startY="61.0927"
|
||||
android:type="linear">
|
||||
<item
|
||||
android:color="#44000000"
|
||||
android:offset="0.0" />
|
||||
<item
|
||||
android:color="#00000000"
|
||||
android:offset="1.0" />
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
<path
|
||||
android:fillColor="#FFFFFF"
|
||||
android:fillType="nonZero"
|
||||
android:pathData="M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z"
|
||||
android:strokeColor="#00000000"
|
||||
android:strokeWidth="1" />
|
||||
</vector>
|
||||
|
|
@ -1,170 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="108dp"
|
||||
android:height="108dp"
|
||||
android:viewportHeight="108"
|
||||
android:viewportWidth="108">
|
||||
<path
|
||||
android:fillColor="#26A69A"
|
||||
android:pathData="M0,0h108v108h-108z" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M9,0L9,108"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,0L19,108"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M29,0L29,108"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M39,0L39,108"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M49,0L49,108"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M59,0L59,108"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M69,0L69,108"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M79,0L79,108"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M89,0L89,108"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M99,0L99,108"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,9L108,9"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,19L108,19"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,29L108,29"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,39L108,39"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,49L108,49"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,59L108,59"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,69L108,69"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,79L108,79"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,89L108,89"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,99L108,99"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,29L89,29"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,39L89,39"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,49L89,49"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,59L89,59"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,69L89,69"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,79L89,79"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M29,19L29,89"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M39,19L39,89"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M49,19L49,89"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M59,19L59,89"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M69,19L69,89"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M79,19L79,89"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
</vector>
|
||||
|
Before Width: | Height: | Size: 3.9 KiB |
|
|
@ -1,12 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".MainActivity">
|
||||
|
||||
<WebView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@color/ic_launcher_background"/>
|
||||
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
|
||||
</adaptive-icon>
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@color/ic_launcher_background"/>
|
||||
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
|
||||
</adaptive-icon>
|
||||
|
Before Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 4.9 KiB |
|
Before Width: | Height: | Size: 6.4 KiB |
|
Before Width: | Height: | Size: 6.5 KiB |
|
Before Width: | Height: | Size: 9.6 KiB |
|
Before Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 9.2 KiB |
|
Before Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 16 KiB |
|
|
@ -1,4 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="ic_launcher_background">#FFFFFF</color>
|
||||
</resources>
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<resources>
|
||||
<string name="app_name">Shivao</string>
|
||||
<string name="title_activity_main">Shivao</string>
|
||||
<string name="package_name">br.com.pontualtech.shivao</string>
|
||||
<string name="custom_url_scheme">br.com.pontualtech.shivao</string>
|
||||
</resources>
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<!-- Base application theme. -->
|
||||
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
|
||||
<!-- Customize your theme here. -->
|
||||
<item name="colorPrimary">@color/colorPrimary</item>
|
||||
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
|
||||
<item name="colorAccent">@color/colorAccent</item>
|
||||
</style>
|
||||
|
||||
<style name="AppTheme.NoActionBar" parent="Theme.AppCompat.DayNight.NoActionBar">
|
||||
<item name="windowActionBar">false</item>
|
||||
<item name="windowNoTitle">true</item>
|
||||
<item name="android:background">@null</item>
|
||||
</style>
|
||||
|
||||
|
||||
<style name="AppTheme.NoActionBarLaunch" parent="Theme.SplashScreen">
|
||||
<item name="android:background">@drawable/splash</item>
|
||||
</style>
|
||||
</resources>
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<paths xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<external-path name="my_images" path="." />
|
||||
<cache-path name="my_cache_images" path="." />
|
||||
</paths>
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
package com.getcapacitor.myapp;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
* Example local unit test, which will execute on the development machine (host).
|
||||
*
|
||||
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
|
||||
*/
|
||||
public class ExampleUnitTest {
|
||||
|
||||
@Test
|
||||
public void addition_isCorrect() throws Exception {
|
||||
assertEquals(4, 2 + 2);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||
|
||||
buildscript {
|
||||
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:8.2.1'
|
||||
classpath 'com.google.gms:google-services:4.4.0'
|
||||
|
||||
// NOTE: Do not place your application dependencies here; they belong
|
||||
// in the individual module build.gradle files
|
||||
}
|
||||
}
|
||||
|
||||
apply from: "variables.gradle"
|
||||
|
||||
allprojects {
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
}
|
||||
}
|
||||
|
||||
task clean(type: Delete) {
|
||||
delete rootProject.buildDir
|
||||
}
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
// DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN
|
||||
include ':capacitor-android'
|
||||
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
|
||||
|
||||
include ':capacitor-app'
|
||||
project(':capacitor-app').projectDir = new File('../node_modules/@capacitor/app/android')
|
||||
|
||||
include ':capacitor-geolocation'
|
||||
project(':capacitor-geolocation').projectDir = new File('../node_modules/@capacitor/geolocation/android')
|
||||
|
||||
include ':capacitor-local-notifications'
|
||||
project(':capacitor-local-notifications').projectDir = new File('../node_modules/@capacitor/local-notifications/android')
|
||||
|
||||
include ':capacitor-network'
|
||||
project(':capacitor-network').projectDir = new File('../node_modules/@capacitor/network/android')
|
||||
|
||||
include ':capacitor-preferences'
|
||||
project(':capacitor-preferences').projectDir = new File('../node_modules/@capacitor/preferences/android')
|
||||
|
||||
include ':capacitor-status-bar'
|
||||
project(':capacitor-status-bar').projectDir = new File('../node_modules/@capacitor/status-bar/android')
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
# Project-wide Gradle settings.
|
||||
|
||||
# IDE (e.g. Android Studio) users:
|
||||
# Gradle settings configured through the IDE *will override*
|
||||
# any settings specified in this file.
|
||||
|
||||
# For more details on how to configure your build environment visit
|
||||
# http://www.gradle.org/docs/current/userguide/build_environment.html
|
||||
|
||||
# Specifies the JVM arguments used for the daemon process.
|
||||
# The setting is particularly useful for tweaking memory settings.
|
||||
org.gradle.jvmargs=-Xmx1536m
|
||||
|
||||
# When configured, Gradle will run in incubating parallel mode.
|
||||
# This option should only be used with decoupled projects. More details, visit
|
||||
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
|
||||
# org.gradle.parallel=true
|
||||
|
||||
# AndroidX package structure to make it clearer which packages are bundled with the
|
||||
# Android operating system, and which are packaged with your app's APK
|
||||
# https://developer.android.com/topic/libraries/support-library/androidx-rn
|
||||
android.useAndroidX=true
|
||||
BIN
mobile/android/gradle/wrapper/gradle-wrapper.jar
vendored
|
|
@ -1,7 +0,0 @@
|
|||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-all.zip
|
||||
networkTimeout=10000
|
||||
validateDistributionUrl=true
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
248
mobile/android/gradlew
vendored
|
|
@ -1,248 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
#
|
||||
# Copyright © 2015-2021 the original authors.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# https://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
##############################################################################
|
||||
#
|
||||
# Gradle start up script for POSIX generated by Gradle.
|
||||
#
|
||||
# Important for running:
|
||||
#
|
||||
# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
|
||||
# noncompliant, but you have some other compliant shell such as ksh or
|
||||
# bash, then to run this script, type that shell name before the whole
|
||||
# command line, like:
|
||||
#
|
||||
# ksh Gradle
|
||||
#
|
||||
# Busybox and similar reduced shells will NOT work, because this script
|
||||
# requires all of these POSIX shell features:
|
||||
# * functions;
|
||||
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
|
||||
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
|
||||
# * compound commands having a testable exit status, especially «case»;
|
||||
# * various built-in commands including «command», «set», and «ulimit».
|
||||
#
|
||||
# Important for patching:
|
||||
#
|
||||
# (2) This script targets any POSIX shell, so it avoids extensions provided
|
||||
# by Bash, Ksh, etc; in particular arrays are avoided.
|
||||
#
|
||||
# The "traditional" practice of packing multiple parameters into a
|
||||
# space-separated string is a well documented source of bugs and security
|
||||
# problems, so this is (mostly) avoided, by progressively accumulating
|
||||
# options in "$@", and eventually passing that to Java.
|
||||
#
|
||||
# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
|
||||
# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
|
||||
# see the in-line comments for details.
|
||||
#
|
||||
# There are tweaks for specific operating systems such as AIX, CygWin,
|
||||
# Darwin, MinGW, and NonStop.
|
||||
#
|
||||
# (3) This script is generated from the Groovy template
|
||||
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
||||
# within the Gradle project.
|
||||
#
|
||||
# You can find Gradle at https://github.com/gradle/gradle/.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
# Attempt to set APP_HOME
|
||||
|
||||
# Resolve links: $0 may be a link
|
||||
app_path=$0
|
||||
|
||||
# Need this for daisy-chained symlinks.
|
||||
while
|
||||
APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
|
||||
[ -h "$app_path" ]
|
||||
do
|
||||
ls=$( ls -ld "$app_path" )
|
||||
link=${ls#*' -> '}
|
||||
case $link in #(
|
||||
/*) app_path=$link ;; #(
|
||||
*) app_path=$APP_HOME$link ;;
|
||||
esac
|
||||
done
|
||||
|
||||
# This is normally unused
|
||||
# shellcheck disable=SC2034
|
||||
APP_BASE_NAME=${0##*/}
|
||||
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
|
||||
|
||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||
MAX_FD=maximum
|
||||
|
||||
warn () {
|
||||
echo "$*"
|
||||
} >&2
|
||||
|
||||
die () {
|
||||
echo
|
||||
echo "$*"
|
||||
echo
|
||||
exit 1
|
||||
} >&2
|
||||
|
||||
# OS specific support (must be 'true' or 'false').
|
||||
cygwin=false
|
||||
msys=false
|
||||
darwin=false
|
||||
nonstop=false
|
||||
case "$( uname )" in #(
|
||||
CYGWIN* ) cygwin=true ;; #(
|
||||
Darwin* ) darwin=true ;; #(
|
||||
MSYS* | MINGW* ) msys=true ;; #(
|
||||
NONSTOP* ) nonstop=true ;;
|
||||
esac
|
||||
|
||||
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
||||
|
||||
|
||||
# Determine the Java command to use to start the JVM.
|
||||
if [ -n "$JAVA_HOME" ] ; then
|
||||
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
||||
# IBM's JDK on AIX uses strange locations for the executables
|
||||
JAVACMD=$JAVA_HOME/jre/sh/java
|
||||
else
|
||||
JAVACMD=$JAVA_HOME/bin/java
|
||||
fi
|
||||
if [ ! -x "$JAVACMD" ] ; then
|
||||
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
|
||||
|
||||
Please set the JAVA_HOME variable in your environment to match the
|
||||
location of your Java installation."
|
||||
fi
|
||||
else
|
||||
JAVACMD=java
|
||||
if ! command -v java >/dev/null 2>&1
|
||||
then
|
||||
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||
|
||||
Please set the JAVA_HOME variable in your environment to match the
|
||||
location of your Java installation."
|
||||
fi
|
||||
fi
|
||||
|
||||
# Increase the maximum file descriptors if we can.
|
||||
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
|
||||
case $MAX_FD in #(
|
||||
max*)
|
||||
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
|
||||
# shellcheck disable=SC3045
|
||||
MAX_FD=$( ulimit -H -n ) ||
|
||||
warn "Could not query maximum file descriptor limit"
|
||||
esac
|
||||
case $MAX_FD in #(
|
||||
'' | soft) :;; #(
|
||||
*)
|
||||
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
|
||||
# shellcheck disable=SC3045
|
||||
ulimit -n "$MAX_FD" ||
|
||||
warn "Could not set maximum file descriptor limit to $MAX_FD"
|
||||
esac
|
||||
fi
|
||||
|
||||
# Collect all arguments for the java command, stacking in reverse order:
|
||||
# * args from the command line
|
||||
# * the main class name
|
||||
# * -classpath
|
||||
# * -D...appname settings
|
||||
# * --module-path (only if needed)
|
||||
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
|
||||
|
||||
# For Cygwin or MSYS, switch paths to Windows format before running java
|
||||
if "$cygwin" || "$msys" ; then
|
||||
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
|
||||
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
|
||||
|
||||
JAVACMD=$( cygpath --unix "$JAVACMD" )
|
||||
|
||||
# Now convert the arguments - kludge to limit ourselves to /bin/sh
|
||||
for arg do
|
||||
if
|
||||
case $arg in #(
|
||||
-*) false ;; # don't mess with options #(
|
||||
/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
|
||||
[ -e "$t" ] ;; #(
|
||||
*) false ;;
|
||||
esac
|
||||
then
|
||||
arg=$( cygpath --path --ignore --mixed "$arg" )
|
||||
fi
|
||||
# Roll the args list around exactly as many times as the number of
|
||||
# args, so each arg winds up back in the position where it started, but
|
||||
# possibly modified.
|
||||
#
|
||||
# NB: a `for` loop captures its iteration list before it begins, so
|
||||
# changing the positional parameters here affects neither the number of
|
||||
# iterations, nor the values presented in `arg`.
|
||||
shift # remove old arg
|
||||
set -- "$@" "$arg" # push replacement arg
|
||||
done
|
||||
fi
|
||||
|
||||
|
||||
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
||||
|
||||
# Collect all arguments for the java command;
|
||||
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
|
||||
# shell script including quotes and variable substitutions, so put them in
|
||||
# double quotes to make sure that they get re-expanded; and
|
||||
# * put everything else in single quotes, so that it's not re-expanded.
|
||||
|
||||
set -- \
|
||||
"-Dorg.gradle.appname=$APP_BASE_NAME" \
|
||||
-classpath "$CLASSPATH" \
|
||||
org.gradle.wrapper.GradleWrapperMain \
|
||||
"$@"
|
||||
|
||||
# Stop when "xargs" is not available.
|
||||
if ! command -v xargs >/dev/null 2>&1
|
||||
then
|
||||
die "xargs is not available"
|
||||
fi
|
||||
|
||||
# Use "xargs" to parse quoted args.
|
||||
#
|
||||
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
|
||||
#
|
||||
# In Bash we could simply go:
|
||||
#
|
||||
# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
|
||||
# set -- "${ARGS[@]}" "$@"
|
||||
#
|
||||
# but POSIX shell has neither arrays nor command substitution, so instead we
|
||||
# post-process each arg (as a line of input to sed) to backslash-escape any
|
||||
# character that might be a shell metacharacter, then use eval to reverse
|
||||
# that process (while maintaining the separation between arguments), and wrap
|
||||
# the whole thing up as a single "set" statement.
|
||||
#
|
||||
# This will of course break if any of these variables contains a newline or
|
||||
# an unmatched quote.
|
||||
#
|
||||
|
||||
eval "set -- $(
|
||||
printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
|
||||
xargs -n1 |
|
||||
sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
|
||||
tr '\n' ' '
|
||||
)" '"$@"'
|
||||
|
||||
exec "$JAVACMD" "$@"
|
||||
92
mobile/android/gradlew.bat
vendored
|
|
@ -1,92 +0,0 @@
|
|||
@rem
|
||||
@rem Copyright 2015 the original author or authors.
|
||||
@rem
|
||||
@rem Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@rem you may not use this file except in compliance with the License.
|
||||
@rem You may obtain a copy of the License at
|
||||
@rem
|
||||
@rem https://www.apache.org/licenses/LICENSE-2.0
|
||||
@rem
|
||||
@rem Unless required by applicable law or agreed to in writing, software
|
||||
@rem distributed under the License is distributed on an "AS IS" BASIS,
|
||||
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
@rem See the License for the specific language governing permissions and
|
||||
@rem limitations under the License.
|
||||
@rem
|
||||
|
||||
@if "%DEBUG%"=="" @echo off
|
||||
@rem ##########################################################################
|
||||
@rem
|
||||
@rem Gradle startup script for Windows
|
||||
@rem
|
||||
@rem ##########################################################################
|
||||
|
||||
@rem Set local scope for the variables with windows NT shell
|
||||
if "%OS%"=="Windows_NT" setlocal
|
||||
|
||||
set DIRNAME=%~dp0
|
||||
if "%DIRNAME%"=="" set DIRNAME=.
|
||||
@rem This is normally unused
|
||||
set APP_BASE_NAME=%~n0
|
||||
set APP_HOME=%DIRNAME%
|
||||
|
||||
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
||||
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
||||
|
||||
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
|
||||
|
||||
@rem Find java.exe
|
||||
if defined JAVA_HOME goto findJavaFromJavaHome
|
||||
|
||||
set JAVA_EXE=java.exe
|
||||
%JAVA_EXE% -version >NUL 2>&1
|
||||
if %ERRORLEVEL% equ 0 goto execute
|
||||
|
||||
echo.
|
||||
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||
echo.
|
||||
echo Please set the JAVA_HOME variable in your environment to match the
|
||||
echo location of your Java installation.
|
||||
|
||||
goto fail
|
||||
|
||||
:findJavaFromJavaHome
|
||||
set JAVA_HOME=%JAVA_HOME:"=%
|
||||
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
||||
|
||||
if exist "%JAVA_EXE%" goto execute
|
||||
|
||||
echo.
|
||||
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
||||
echo.
|
||||
echo Please set the JAVA_HOME variable in your environment to match the
|
||||
echo location of your Java installation.
|
||||
|
||||
goto fail
|
||||
|
||||
:execute
|
||||
@rem Setup the command line
|
||||
|
||||
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
||||
|
||||
|
||||
@rem Execute Gradle
|
||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
|
||||
|
||||
:end
|
||||
@rem End local scope for the variables with windows NT shell
|
||||
if %ERRORLEVEL% equ 0 goto mainEnd
|
||||
|
||||
:fail
|
||||
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
||||
rem the _cmd.exe /c_ return code!
|
||||
set EXIT_CODE=%ERRORLEVEL%
|
||||
if %EXIT_CODE% equ 0 set EXIT_CODE=1
|
||||
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
|
||||
exit /b %EXIT_CODE%
|
||||
|
||||
:mainEnd
|
||||
if "%OS%"=="Windows_NT" endlocal
|
||||
|
||||
:omega
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
include ':app'
|
||||
include ':capacitor-cordova-android-plugins'
|
||||
project(':capacitor-cordova-android-plugins').projectDir = new File('./capacitor-cordova-android-plugins/')
|
||||
|
||||
apply from: 'capacitor.settings.gradle'
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
ext {
|
||||
minSdkVersion = 22
|
||||
compileSdkVersion = 34
|
||||
targetSdkVersion = 34
|
||||
androidxActivityVersion = '1.8.0'
|
||||
androidxAppCompatVersion = '1.6.1'
|
||||
androidxCoordinatorLayoutVersion = '1.2.0'
|
||||
androidxCoreVersion = '1.12.0'
|
||||
androidxFragmentVersion = '1.6.2'
|
||||
coreSplashScreenVersion = '1.0.1'
|
||||
androidxWebkitVersion = '1.9.0'
|
||||
junitVersion = '4.13.2'
|
||||
androidxJunitVersion = '1.1.5'
|
||||
androidxEspressoCoreVersion = '3.5.1'
|
||||
cordovaAndroidVersion = '10.1.1'
|
||||
}
|
||||
1319
mobile/package-lock.json
generated
|
Before Width: | Height: | Size: 107 KiB |
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 756 KiB |
|
Before Width: | Height: | Size: 812 KiB |
|
Before Width: | Height: | Size: 275 KiB |
|
Before Width: | Height: | Size: 193 KiB |
|
Before Width: | Height: | Size: 176 KiB |
|
|
@ -1,134 +0,0 @@
|
|||
# Listing Google Play — Shivao
|
||||
|
||||
Tudo pronto pra copiar/colar no Google Play Console.
|
||||
|
||||
---
|
||||
|
||||
## Nome do app (max 30 chars)
|
||||
```
|
||||
Shivao - Diário de Bordo
|
||||
```
|
||||
|
||||
## Descrição curta (max 80 chars — aparece nos resultados de busca)
|
||||
```
|
||||
Diário de bordo náutico: GPS, vigia de fundeio com alarme, tempo Windy.
|
||||
```
|
||||
|
||||
## Descrição completa (max 4000 chars — aparece na página do app)
|
||||
```
|
||||
⛵ SHIVAO — Diário de bordo digital pro seu veleiro
|
||||
|
||||
O companheiro completo de quem navega: registro de viagens, manutenções, GPS em tempo real, vigia de fundeio com alarme remoto, geofencing e previsão meteorológica Windy.
|
||||
|
||||
🛰 NAVEGAÇÃO E SEGURANÇA
|
||||
• Registro de travessias com tripulação, datas, horímetro, vento, distância em milhas náuticas e velocidade em nós
|
||||
• Rastreio GPS em tempo real com mapa Leaflet (offline pra alto-mar quando pré-cacheia a área)
|
||||
• Bússola com indicação cardeal (Android com sensor) e barômetro com tendência de pressão
|
||||
• Vigia de fundeio com âncora + centro de giro independente, raio editável, auto-recentro
|
||||
• Alarme local de drift: som forte (Web Audio com tons alternados), vibração, tela vermelha
|
||||
• Alarme remoto (com plano Pro): ao detectar deriva, dispara mensagem em todos seus canais (Telegram, ntfy, e-mail, WhatsApp via Twilio) — você sabe mesmo se o celular tá desligado
|
||||
• Dead-man switch no servidor: se o app parar de mandar heartbeat enquanto fundeado, o servidor dispara alarme sozinho
|
||||
• Geofencing com zonas de proibição e atenção
|
||||
• Compartilhamento público: link temporário pra tripulação ver sua posição em tempo real
|
||||
|
||||
🔧 MANUTENÇÃO
|
||||
• Registro de reparos com horímetro, custo, prestador, fotos e notas fiscais
|
||||
• Lista de pendências com data prevista OU horímetro alvo
|
||||
• Alertas automáticos quando manutenção está próxima
|
||||
• Checklists customizáveis (segurança, motor, vela, fundeio, travessia longa)
|
||||
|
||||
📷 MÍDIA
|
||||
• Fotos da câmera com 1 toque
|
||||
• Áudio gravado direto no app
|
||||
• Vídeo da câmera ou galeria
|
||||
• Tudo armazenado localmente (IndexedDB) e sincronizado com sua nuvem privada
|
||||
|
||||
🌬 METEOROLOGIA
|
||||
• Windy Point Forecast API (premium — sua chave pessoal): vento u/v, ondas, modelos GFS/ECMWF
|
||||
• Open-Meteo grátis como fallback
|
||||
• Modo economia de energia que ajusta GPS conforme nível de bateria
|
||||
|
||||
📥 IMPORT/EXPORT
|
||||
• GPX (chartplotter, Navionics, Garmin, OpenCPN)
|
||||
• CSV de viagens, manutenções e pendências
|
||||
• Backup/restore JSON completo (com mídia em base64)
|
||||
• Imprimir/PDF
|
||||
|
||||
☁️ NUVEM PRIVADA (com plano Pro/Captain)
|
||||
• Sync entre dispositivos (celular, tablet, desktop)
|
||||
• Backup automático
|
||||
• Webhooks diretos: Telegram, Discord, qualquer URL custom
|
||||
• Compartilhamento de posição em tempo real
|
||||
|
||||
🔐 PRIVACIDADE PRIMEIRO
|
||||
✗ Zero analytics, zero tracking, zero ads
|
||||
✗ Não vendemos seus dados
|
||||
✗ Servidor próprio na Alemanha (Hetzner)
|
||||
✓ LGPD/GDPR compliant
|
||||
✓ Senha hash bcrypt
|
||||
✓ JWT com refresh
|
||||
✓ Audit log de ações sensíveis (Captain)
|
||||
|
||||
💰 PLANOS
|
||||
• FREE — Vigia de âncora local + diário básico (10 últimos registros)
|
||||
• PRO — R$19/mês ou R$149/ano: tudo offline + sync nuvem + GPS + mídia + geofencing + alarme remoto
|
||||
• CAPTAIN — R$39/mês ou R$299/ano: Pro + Windy premium + multi-barco + relatórios PDF + audit log
|
||||
|
||||
Pagamento via PIX, cartão ou boleto (Asaas, parceiro brasileiro).
|
||||
|
||||
⚓ FEITO POR QUEM NAVEGA
|
||||
Shivao começou como projeto pessoal pro veleiro Shivao. Hoje é a ferramenta diária de quem leva navegação a sério.
|
||||
|
||||
📧 Suporte: contato@pontualtech.com.br
|
||||
🌐 Site: shivao.pontualtech.work
|
||||
📜 Política de privacidade: shivao.pontualtech.work/politica
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Categoria
|
||||
```
|
||||
Maps & Navigation
|
||||
```
|
||||
|
||||
## Tags (palavras-chave pra ASO — Google Play)
|
||||
```
|
||||
veleiro, navegação, náutico, gps náutico, vigia fundeio, anchor watch, diário de bordo, marítimo, sailor, marina, vento, meteorologia náutica, windy, leaflet
|
||||
```
|
||||
|
||||
## Email de contato
|
||||
```
|
||||
contato@pontualtech.com.br
|
||||
```
|
||||
|
||||
## Site
|
||||
```
|
||||
https://shivao.pontualtech.work
|
||||
```
|
||||
|
||||
## URL política de privacidade
|
||||
```
|
||||
https://shivao.pontualtech.work/politica
|
||||
```
|
||||
|
||||
## Classificação de conteúdo
|
||||
- **IARC age rating:** todos
|
||||
- **Sem violência, sexo, drogas, jogos de azar, conteúdo gerado por usuário público (compartilhamento é privado por link, não público listado)**
|
||||
|
||||
## Permissões a justificar (Play Store pede explicação pra cada)
|
||||
| Permissão | Justificativa |
|
||||
|---|---|
|
||||
| `ACCESS_BACKGROUND_LOCATION` | Vigia de fundeio precisa monitorar posição do barco mesmo quando o app não está em foreground — alarme remoto se detectar drift fora do raio de fundeio. |
|
||||
| `POST_NOTIFICATIONS` | Notificar usuário sobre drift de fundeio, alarmes locais e confirmações de pagamento. |
|
||||
| `FOREGROUND_SERVICE_LOCATION` | Heartbeat de GPS pra dead-man switch durante vigia ativa. |
|
||||
| `WAKE_LOCK` | Manter tela acesa durante vigia/alarme pra mostrar status (mãos molhadas no convés). |
|
||||
| `VIBRATE` | Componente do alarme de fundeio (junto com som). |
|
||||
|
||||
## Screenshots (mínimo 2, recomendado 4-8)
|
||||
Ver pasta `mobile/play-store-assets/screenshots/`
|
||||
|
||||
## Ícone (512×512 PNG)
|
||||
Ver `mobile/play-store-assets/icon-512.png`
|
||||
|
||||
## Feature graphic (1024×500 PNG, opcional mas recomendado)
|
||||
Ver `mobile/play-store-assets/feature-graphic.png`
|
||||
|
|
@ -774,435 +774,6 @@ header{
|
|||
body{background:#fff;background-image:none}
|
||||
.entry{break-inside:avoid;border:1px solid #999}
|
||||
}
|
||||
|
||||
/* ═══════════════════════════════════════════════════════
|
||||
MODERN PROFESSIONAL OVERLAY · v2 — Apr 2026
|
||||
Mantém identidade marítima (cores Fraunces + Manrope + JetBrains Mono),
|
||||
mas moderniza profundamente: depth, microinterações, polish premium.
|
||||
═══════════════════════════════════════════════════════ */
|
||||
:root{
|
||||
/* spacing scale (8pt base) */
|
||||
--s1:4px; --s2:8px; --s3:12px; --s4:16px; --s5:24px; --s6:32px; --s7:48px; --s8:64px;
|
||||
/* radius scale (sutis — alinhados ao tom marítimo) */
|
||||
--r-sm:4px; --r-md:8px; --r-lg:12px; --r-xl:16px; --r-pill:9999px;
|
||||
/* shadow scale (depth profissional) */
|
||||
--sh-1:0 1px 2px rgba(14,42,61,.06), 0 1px 1px rgba(14,42,61,.04);
|
||||
--sh-2:0 2px 4px rgba(14,42,61,.06), 0 4px 8px rgba(14,42,61,.05);
|
||||
--sh-3:0 4px 8px rgba(14,42,61,.07), 0 8px 16px rgba(14,42,61,.06);
|
||||
--sh-4:0 8px 16px rgba(14,42,61,.08), 0 16px 32px rgba(14,42,61,.08);
|
||||
--sh-5:0 16px 32px rgba(14,42,61,.10), 0 32px 64px rgba(14,42,61,.10);
|
||||
--sh-glow:0 0 0 4px rgba(160,120,50,.12);
|
||||
--sh-glow-blue:0 0 0 4px rgba(31,91,118,.18);
|
||||
/* transitions */
|
||||
--t-fast:120ms cubic-bezier(.4,0,.2,1);
|
||||
--t-base:200ms cubic-bezier(.4,0,.2,1);
|
||||
--t-slow:320ms cubic-bezier(.4,0,.2,1);
|
||||
/* superfícies elevadas premium */
|
||||
--surface-1:#fbf5e2;
|
||||
--surface-2:#ffffff;
|
||||
--surface-elevated:rgba(255,255,255,.78);
|
||||
--border-subtle:rgba(184,156,108,.22);
|
||||
--border-strong:rgba(184,156,108,.55);
|
||||
}
|
||||
|
||||
/* ── BACKGROUND limpo elegante (sem ruído) ── */
|
||||
body{
|
||||
background:
|
||||
radial-gradient(ellipse 1200px 800px at 50% -200px, #f8eed5 0%, transparent 60%),
|
||||
linear-gradient(180deg, #efe5cd 0%, #e7d9b6 100%);
|
||||
background-attachment:fixed;
|
||||
background-image:
|
||||
radial-gradient(ellipse 1200px 800px at 50% -200px, #f8eed5 0%, transparent 60%),
|
||||
linear-gradient(180deg, #efe5cd 0%, #e7d9b6 100%);
|
||||
}
|
||||
|
||||
/* ── HEADER premium com glow sutil + gradient ── */
|
||||
header{
|
||||
background:linear-gradient(180deg, #0e2a3d 0%, #143447 100%);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(200,159,84,.30),
|
||||
inset 0 -1px 0 rgba(160,120,50,.55),
|
||||
0 4px 24px rgba(14,42,61,.18),
|
||||
0 12px 48px rgba(14,42,61,.10);
|
||||
border-bottom:none;
|
||||
}
|
||||
.header-row{padding:2px 0}
|
||||
.boat-name{
|
||||
text-shadow:0 1px 2px rgba(0,0,0,.25);
|
||||
letter-spacing:-.015em;
|
||||
}
|
||||
.compass-mark{
|
||||
filter:drop-shadow(0 2px 8px rgba(200,159,84,.35));
|
||||
transition:transform var(--t-base);
|
||||
}
|
||||
.compass-mark:hover{transform:rotate(15deg)}
|
||||
|
||||
/* ── TABS modernas: pill nav com indicador animado ── */
|
||||
.tabs{
|
||||
background:rgba(239,229,205,.92);
|
||||
backdrop-filter:blur(12px) saturate(1.2);
|
||||
-webkit-backdrop-filter:blur(12px) saturate(1.2);
|
||||
border-bottom:1px solid var(--border-subtle);
|
||||
padding:8px 4px 0;
|
||||
gap:2px;
|
||||
box-shadow:0 1px 0 rgba(255,255,255,.5) inset;
|
||||
}
|
||||
.tab{
|
||||
border-radius:var(--r-md) var(--r-md) 0 0;
|
||||
padding:13px 18px 14px;
|
||||
transition:color var(--t-base), background var(--t-base);
|
||||
position:relative;
|
||||
}
|
||||
.tab:hover{
|
||||
color:var(--ink-mid);
|
||||
background:rgba(255,255,255,.4);
|
||||
}
|
||||
.tab.active{
|
||||
color:var(--ink-deep);
|
||||
background:linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.5));
|
||||
}
|
||||
.tab.active::after{
|
||||
height:3px;left:14px;right:14px;bottom:0;
|
||||
background:linear-gradient(90deg, var(--brass), var(--brass-bright));
|
||||
border-radius:2px 2px 0 0;
|
||||
box-shadow:0 0 8px rgba(160,120,50,.4);
|
||||
}
|
||||
|
||||
/* ── CARDS com depth real (sombra multi-layer) ── */
|
||||
.gps-card,.anchor-card,.export-card,.empty,.entry,.contact-card{
|
||||
border-radius:var(--r-lg);
|
||||
box-shadow:var(--sh-2);
|
||||
transition:box-shadow var(--t-base), transform var(--t-base);
|
||||
overflow:hidden;
|
||||
}
|
||||
.entry{
|
||||
border-radius:var(--r-md);
|
||||
box-shadow:var(--sh-1);
|
||||
border-color:var(--border-subtle);
|
||||
}
|
||||
.entry:hover{box-shadow:var(--sh-2)}
|
||||
|
||||
.gps-card,.anchor-card{
|
||||
border-radius:var(--r-lg);
|
||||
background:linear-gradient(165deg, #0e2a3d 0%, #1a3d54 100%);
|
||||
border:1px solid rgba(200,159,84,.4);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(200,159,84,.2),
|
||||
var(--sh-3),
|
||||
0 0 32px rgba(31,91,118,.15);
|
||||
}
|
||||
.gps-card::before,.anchor-card::before{display:none}
|
||||
.gps-card.idle{
|
||||
background:linear-gradient(165deg, #fbf5e2 0%, #f3e7c4 100%);
|
||||
border:1px solid var(--border-subtle);
|
||||
box-shadow:var(--sh-2);
|
||||
}
|
||||
.gps-stats,.anchor-stats-bar{
|
||||
background:rgba(0,0,0,.15);
|
||||
padding:14px;
|
||||
border-radius:var(--r-md);
|
||||
margin:12px 0 14px;
|
||||
}
|
||||
.gps-card.idle .gps-stats{background:rgba(184,156,108,.08)}
|
||||
|
||||
.export-card,.empty{
|
||||
background:var(--surface-elevated);
|
||||
backdrop-filter:blur(8px);
|
||||
-webkit-backdrop-filter:blur(8px);
|
||||
border-radius:var(--r-lg);
|
||||
border:1px solid var(--border-subtle);
|
||||
box-shadow:var(--sh-2);
|
||||
}
|
||||
.export-card:hover{box-shadow:var(--sh-3)}
|
||||
|
||||
/* ── BUTTONS premium com lift e ripple ── */
|
||||
.btn{
|
||||
border-radius:var(--r-md);
|
||||
transition:all var(--t-base);
|
||||
font-weight:600;
|
||||
letter-spacing:.12em;
|
||||
position:relative;
|
||||
overflow:hidden;
|
||||
}
|
||||
.btn:hover{
|
||||
transform:translateY(-1px);
|
||||
box-shadow:var(--sh-2);
|
||||
}
|
||||
.btn:active{transform:translateY(0); box-shadow:var(--sh-1)}
|
||||
.btn:focus-visible{
|
||||
outline:none;
|
||||
box-shadow:var(--sh-glow);
|
||||
}
|
||||
.btn-primary{
|
||||
background:linear-gradient(180deg, #143a52 0%, #0e2a3d 100%);
|
||||
border-color:rgba(0,0,0,.4);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255,255,255,.10),
|
||||
var(--sh-1);
|
||||
}
|
||||
.btn-primary:hover{
|
||||
background:linear-gradient(180deg, #1a4a66 0%, #143a52 100%);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255,255,255,.15),
|
||||
var(--sh-3);
|
||||
}
|
||||
.btn-brass{
|
||||
background:linear-gradient(180deg, #b88a3c 0%, #8d6826 100%);
|
||||
border-color:rgba(0,0,0,.25);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255,255,255,.18),
|
||||
var(--sh-1);
|
||||
}
|
||||
.btn-brass:hover{
|
||||
background:linear-gradient(180deg, #c89954 0%, #a07832 100%);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255,255,255,.25),
|
||||
var(--sh-3);
|
||||
}
|
||||
.btn-danger{
|
||||
background:transparent;
|
||||
border:1px solid var(--storm);
|
||||
color:var(--storm);
|
||||
}
|
||||
.btn-danger:hover{
|
||||
background:linear-gradient(180deg, #a04545 0%, #8c3434 100%);
|
||||
color:#fff;
|
||||
border-color:transparent;
|
||||
}
|
||||
|
||||
/* ── FIELDS modernos com focus ring ── */
|
||||
.field input,.field textarea,.field select{
|
||||
border-radius:var(--r-md);
|
||||
background:var(--surface-2);
|
||||
border:1px solid var(--border-subtle);
|
||||
padding:12px 14px;
|
||||
font-size:15px;
|
||||
transition:border-color var(--t-base), box-shadow var(--t-base), background var(--t-base);
|
||||
}
|
||||
.field input:hover,.field textarea:hover,.field select:hover{
|
||||
border-color:var(--border-strong);
|
||||
}
|
||||
.field input:focus,.field textarea:focus,.field select:focus{
|
||||
border-color:var(--brass);
|
||||
background:#fff;
|
||||
box-shadow:var(--sh-glow);
|
||||
}
|
||||
.field-label{font-size:11px; font-weight:600; color:var(--ink-mid); margin-bottom:6px}
|
||||
|
||||
/* ── MODAL com depth maior + entrance polida ── */
|
||||
.modal-backdrop{
|
||||
background:rgba(14,42,61,.65);
|
||||
backdrop-filter:blur(8px) saturate(1.1);
|
||||
-webkit-backdrop-filter:blur(8px) saturate(1.1);
|
||||
}
|
||||
.modal{
|
||||
border-radius:var(--r-xl) var(--r-xl) 0 0;
|
||||
border-top:none;
|
||||
box-shadow:
|
||||
0 -4px 12px rgba(0,0,0,.05),
|
||||
0 -16px 48px rgba(14,42,61,.25);
|
||||
background-image:none;
|
||||
background:linear-gradient(180deg, #fcf6e4 0%, #f8f0d4 100%);
|
||||
}
|
||||
@media(min-width:600px){
|
||||
.modal{
|
||||
border-radius:var(--r-xl);
|
||||
box-shadow:0 24px 64px rgba(14,42,61,.30), 0 8px 16px rgba(14,42,61,.10);
|
||||
}
|
||||
}
|
||||
.modal-head{
|
||||
background:transparent;
|
||||
padding:18px 22px;
|
||||
border-bottom:1px solid var(--border-subtle);
|
||||
}
|
||||
.modal-body{padding:22px}
|
||||
.modal-foot{
|
||||
background:rgba(0,0,0,.02);
|
||||
padding:16px 22px;
|
||||
}
|
||||
|
||||
/* ── FAB redesenhado: floating elegante ── */
|
||||
.fab{
|
||||
border-radius:var(--r-pill) !important;
|
||||
background:linear-gradient(135deg, #b88a3c 0%, #8d6826 100%) !important;
|
||||
box-shadow:
|
||||
0 4px 12px rgba(160,120,50,.4),
|
||||
0 12px 32px rgba(14,42,61,.15),
|
||||
inset 0 1px 0 rgba(255,255,255,.25) !important;
|
||||
transition:transform var(--t-base), box-shadow var(--t-base);
|
||||
}
|
||||
.fab:hover{
|
||||
transform:translateY(-2px) scale(1.05);
|
||||
box-shadow:
|
||||
0 8px 20px rgba(160,120,50,.5),
|
||||
0 16px 40px rgba(14,42,61,.20),
|
||||
inset 0 1px 0 rgba(255,255,255,.30);
|
||||
}
|
||||
.fab:active{transform:translateY(0) scale(1)}
|
||||
|
||||
/* ── STATS GRID polido ── */
|
||||
.stats{
|
||||
border-radius:var(--r-lg);
|
||||
background:transparent;
|
||||
border:none;
|
||||
gap:10px;
|
||||
box-shadow:none;
|
||||
display:grid;
|
||||
}
|
||||
.stat{
|
||||
border-radius:var(--r-md);
|
||||
background:var(--surface-elevated);
|
||||
backdrop-filter:blur(8px);
|
||||
-webkit-backdrop-filter:blur(8px);
|
||||
border:1px solid var(--border-subtle);
|
||||
box-shadow:var(--sh-1);
|
||||
padding:16px 16px 14px;
|
||||
transition:transform var(--t-base), box-shadow var(--t-base);
|
||||
}
|
||||
.stat:hover{transform:translateY(-2px); box-shadow:var(--sh-2)}
|
||||
.stat::before{
|
||||
height:3px; border-radius:2px;
|
||||
background:linear-gradient(90deg, var(--brass), var(--brass-bright));
|
||||
transform:scaleX(.5);
|
||||
transition:transform var(--t-base);
|
||||
}
|
||||
.stat:hover::before{transform:scaleX(1)}
|
||||
|
||||
/* ── EMPTY STATE elegante ── */
|
||||
.empty{padding:56px 28px; border-radius:var(--r-lg)}
|
||||
.empty::before,.empty::after{display:none}
|
||||
.empty-rose{
|
||||
width:64px; height:64px;
|
||||
filter:drop-shadow(0 4px 12px rgba(160,120,50,.25));
|
||||
margin-bottom:18px;
|
||||
}
|
||||
.empty-title{font-size:21px}
|
||||
.empty-text{font-size:14px; line-height:1.65; opacity:.85}
|
||||
|
||||
/* ── STATUS PILLS arredondados ── */
|
||||
.status-pill{
|
||||
border-radius:var(--r-pill);
|
||||
padding:3px 10px;
|
||||
font-size:9.5px;
|
||||
letter-spacing:.16em;
|
||||
}
|
||||
|
||||
/* ── ALERTS com sombra sutil ── */
|
||||
.alert{
|
||||
border-radius:var(--r-md);
|
||||
border:1px solid var(--border-subtle);
|
||||
border-left-width:4px;
|
||||
box-shadow:var(--sh-1);
|
||||
padding:14px 16px;
|
||||
transition:transform var(--t-base);
|
||||
}
|
||||
.alert:hover{transform:translateX(2px)}
|
||||
|
||||
/* ── PASSENGER PILLS modernos ── */
|
||||
.pax-pill,.pax-tag,.channel-pill{
|
||||
border-radius:var(--r-pill);
|
||||
padding:4px 12px;
|
||||
}
|
||||
|
||||
/* ── ICON BUTTONS polidos ── */
|
||||
.icon-btn{
|
||||
border-radius:var(--r-md);
|
||||
transition:all var(--t-base);
|
||||
}
|
||||
.icon-btn:hover{
|
||||
background:rgba(184,156,108,.15);
|
||||
transform:scale(1.08);
|
||||
}
|
||||
|
||||
/* ── MEDIA THUMBS ── */
|
||||
.media-thumb,.media-item{
|
||||
border-radius:var(--r-md);
|
||||
transition:transform var(--t-base), box-shadow var(--t-base);
|
||||
}
|
||||
.media-thumb:hover,.media-item:hover{
|
||||
transform:scale(1.04);
|
||||
box-shadow:var(--sh-2);
|
||||
z-index:2;
|
||||
}
|
||||
|
||||
/* ── SENSOR WIDGET premium (top-right) ── */
|
||||
#sensors-widget{
|
||||
border-radius:var(--r-lg) !important;
|
||||
background:linear-gradient(165deg, rgba(14,42,61,.92), rgba(20,58,82,.92)) !important;
|
||||
backdrop-filter:blur(20px) saturate(1.4);
|
||||
-webkit-backdrop-filter:blur(20px) saturate(1.4);
|
||||
box-shadow:
|
||||
0 4px 12px rgba(0,0,0,.15),
|
||||
0 8px 24px rgba(14,42,61,.18),
|
||||
inset 0 1px 0 rgba(200,159,84,.2) !important;
|
||||
border:1px solid rgba(200,159,84,.18);
|
||||
transition:transform var(--t-base), box-shadow var(--t-base);
|
||||
}
|
||||
#sensors-widget:hover{
|
||||
transform:translateY(-1px);
|
||||
box-shadow:
|
||||
0 8px 16px rgba(0,0,0,.20),
|
||||
0 16px 32px rgba(14,42,61,.22);
|
||||
}
|
||||
|
||||
/* ── AUTH BOX polido ── */
|
||||
#auth-box{
|
||||
background:linear-gradient(165deg, rgba(255,255,255,.5), rgba(255,255,255,.2));
|
||||
backdrop-filter:blur(8px);
|
||||
-webkit-backdrop-filter:blur(8px);
|
||||
border-radius:var(--r-md);
|
||||
padding:14px;
|
||||
margin-top:14px !important;
|
||||
border:1px solid var(--border-subtle);
|
||||
border-top:1px solid var(--border-subtle) !important;
|
||||
}
|
||||
|
||||
/* ── CURSOR pointer em interativos críticos ── */
|
||||
.tab,.btn,.fab,.icon-btn,.media-btn,.media-thumb,.media-item,.alert,
|
||||
.entry-actions button,.modal-head button,.pax-tag button{
|
||||
cursor:pointer;
|
||||
}
|
||||
|
||||
/* ── FOCUS visible global ── */
|
||||
*:focus-visible{
|
||||
outline:2px solid var(--brass);
|
||||
outline-offset:2px;
|
||||
border-radius:var(--r-sm);
|
||||
}
|
||||
|
||||
/* ── REDUCED MOTION (accessibility) ── */
|
||||
@media (prefers-reduced-motion:reduce){
|
||||
*,*::before,*::after{
|
||||
animation-duration:.01ms !important;
|
||||
animation-iteration-count:1 !important;
|
||||
transition-duration:.01ms !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── LARGE SCREENS: mais respiro ── */
|
||||
@media(min-width:780px){
|
||||
.container{padding:32px 24px 96px}
|
||||
.stats{grid-template-columns:repeat(4,1fr)}
|
||||
}
|
||||
|
||||
/* ── SCROLLBAR sutil (Firefox + WebKit) ── */
|
||||
*{scrollbar-width:thin; scrollbar-color:var(--brass) transparent}
|
||||
::-webkit-scrollbar{width:8px; height:8px}
|
||||
::-webkit-scrollbar-track{background:transparent}
|
||||
::-webkit-scrollbar-thumb{background:rgba(160,120,50,.35); border-radius:var(--r-pill)}
|
||||
::-webkit-scrollbar-thumb:hover{background:rgba(160,120,50,.55)}
|
||||
|
||||
/* ── TYPOGRAPHY refinement ── */
|
||||
.boat-name{font-size:26px}
|
||||
.entry-title{font-size:20px; line-height:1.25}
|
||||
.modal-head h3{font-size:20px}
|
||||
.empty-title{margin-bottom:6px}
|
||||
|
||||
/* ── SECTION HEADER sutilmente refinado ── */
|
||||
.section-header h2{font-size:11px; font-weight:600; color:var(--ink-mid)}
|
||||
|
||||
/* ── TOOLBAR refinada ── */
|
||||
.toolbar{gap:10px; margin-bottom:18px}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
|
@ -2788,11 +2359,8 @@ function cloudUrl(path){return state.cloud.url.replace(/\/$/,'')+path}
|
|||
|
||||
async function cloudFetch(path,opts={}){
|
||||
if(!cloudConfigured())throw new Error('Nuvem não configurada');
|
||||
// Usa JWT se logado (multi-tenant SaaS), senão BOAT_TOKEN legado (single-tenant pessoal)
|
||||
const auth=(state.auth&&state.auth.accessToken)?state.auth.accessToken:state.cloud.token;
|
||||
const doFetch=()=>fetch(cloudUrl(path),{...opts,headers:{'Authorization':`Bearer ${auth}`,'Content-Type':'application/json',...(opts.headers||{})}});
|
||||
let r=await doFetch();
|
||||
// 401 com JWT? Tenta refresh + retry 1×
|
||||
let r=await fetch(cloudUrl(path),{...opts,headers:{'Authorization':`Bearer ${auth}`,'Content-Type':'application/json',...(opts.headers||{})}});
|
||||
if(r.status===401&&state.auth&&state.auth.refreshToken){
|
||||
const ok=await authRefresh();
|
||||
if(ok){const auth2=state.auth.accessToken;r=await fetch(cloudUrl(path),{...opts,headers:{'Authorization':`Bearer ${auth2}`,'Content-Type':'application/json',...(opts.headers||{})}})}
|
||||
|
|
@ -2801,16 +2369,14 @@ async function cloudFetch(path,opts={}){
|
|||
return r;
|
||||
}
|
||||
|
||||
// ===== Auth (multi-tenant SaaS — Login/Signup) =====
|
||||
// ===== Auth (multi-tenant SaaS) =====
|
||||
async function authSignup(email,password,name){
|
||||
if(!cloudConfigured())throw new Error('Configure URL do servidor primeiro');
|
||||
const r=await fetch(cloudUrl('/api/auth/signup'),{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({email,password,name})});
|
||||
const j=await r.json();
|
||||
if(!r.ok)throw new Error(j.error||`HTTP ${r.status}`);
|
||||
state.auth={accessToken:j.accessToken,refreshToken:j.refreshToken,user:j.user};
|
||||
saveState();
|
||||
await refreshLicense();
|
||||
renderAuthBox();
|
||||
saveState();await refreshLicense();renderAuthBox();
|
||||
}
|
||||
|
||||
async function authLogin(email,password){
|
||||
|
|
@ -2819,9 +2385,7 @@ async function authLogin(email,password){
|
|||
const j=await r.json();
|
||||
if(!r.ok)throw new Error(j.error||`HTTP ${r.status}`);
|
||||
state.auth={accessToken:j.accessToken,refreshToken:j.refreshToken,user:j.user};
|
||||
saveState();
|
||||
await refreshLicense();
|
||||
renderAuthBox();
|
||||
saveState();await refreshLicense();renderAuthBox();
|
||||
}
|
||||
|
||||
async function authRefresh(){
|
||||
|
|
@ -2829,27 +2393,14 @@ async function authRefresh(){
|
|||
try{
|
||||
const r=await fetch(cloudUrl('/api/auth/refresh'),{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({refreshToken:state.auth.refreshToken})});
|
||||
if(!r.ok){state.auth=null;saveState();return false}
|
||||
const j=await r.json();
|
||||
state.auth.accessToken=j.accessToken;
|
||||
saveState();
|
||||
return true;
|
||||
const j=await r.json();state.auth.accessToken=j.accessToken;saveState();return true;
|
||||
}catch{return false}
|
||||
}
|
||||
|
||||
function authLogout(){
|
||||
state.auth=null;
|
||||
state.license=null;
|
||||
saveState();
|
||||
renderAuthBox();
|
||||
toast('Sessão encerrada');
|
||||
}
|
||||
function authLogout(){state.auth=null;state.license=null;saveState();renderAuthBox();toast('Sessão encerrada')}
|
||||
|
||||
async function refreshLicense(){
|
||||
try{
|
||||
const r=await cloudFetch('/api/license');
|
||||
state.license=await r.json();
|
||||
saveState();
|
||||
}catch(e){console.warn('license fetch:',e.message)}
|
||||
try{const r=await cloudFetch('/api/license');state.license=await r.json();saveState()}catch(e){console.warn('license:',e.message)}
|
||||
}
|
||||
|
||||
function renderAuthBox(){
|
||||
|
|
@ -2886,8 +2437,7 @@ function renderAuthBox(){
|
|||
async function onAuthLoginClick(){
|
||||
const e=document.getElementById('login-email').value.trim();
|
||||
const p=document.getElementById('login-pwd').value;
|
||||
const msg=document.getElementById('auth-msg');
|
||||
msg.style.color='var(--storm)';msg.textContent='';
|
||||
const msg=document.getElementById('auth-msg');msg.style.color='var(--storm)';msg.textContent='';
|
||||
try{await authLogin(e,p);msg.style.color='var(--algae)';msg.textContent='Logado!';toast('Bem-vindo')}catch(err){msg.textContent=err.message}
|
||||
}
|
||||
|
||||
|
|
@ -2896,7 +2446,6 @@ let _upgradeChosen={plan:'pro',cycle:'yearly',billingType:'PIX'};
|
|||
|
||||
async function openUpgradeModal(){
|
||||
if(!state.auth){toast('Faça login primeiro');return}
|
||||
// Cria modal dinamicamente (não precisa adicionar HTML no body)
|
||||
const existing=document.getElementById('upgrade-modal');
|
||||
if(existing)existing.remove();
|
||||
const m=document.createElement('div');
|
||||
|
|
@ -2974,8 +2523,7 @@ async function onAuthSignupClick(){
|
|||
const e=document.getElementById('signup-email').value.trim();
|
||||
const n=document.getElementById('signup-name').value.trim();
|
||||
const p=document.getElementById('signup-pwd').value;
|
||||
const msg=document.getElementById('auth-msg');
|
||||
msg.style.color='var(--storm)';msg.textContent='';
|
||||
const msg=document.getElementById('auth-msg');msg.style.color='var(--storm)';msg.textContent='';
|
||||
if(p.length<8){msg.textContent='Senha precisa de no mínimo 8 caracteres';return}
|
||||
try{await authSignup(e,p,n);msg.style.color='var(--algae)';msg.textContent='Conta criada e logado!';toast('Conta criada')}catch(err){msg.textContent=err.message}
|
||||
}
|
||||
|
|
@ -3570,16 +3118,14 @@ async function testWindyKey(){
|
|||
}
|
||||
}
|
||||
|
||||
// ===== Capacitor adapter (detecta nativo + usa APIs nativas com fallback Web) =====
|
||||
// ===== Capacitor adapter =====
|
||||
const isNative=()=>!!(window.Capacitor&&window.Capacitor.isNativePlatform&&window.Capacitor.isNativePlatform());
|
||||
const nativePlatform=()=>(window.Capacitor&&window.Capacitor.getPlatform)?window.Capacitor.getPlatform():'web';
|
||||
|
||||
// Geolocation: Capacitor.Geolocation (background-capable) > navigator.geolocation
|
||||
async function nativeWatchPosition(onUpdate,onError,opts){
|
||||
if(isNative()&&window.Capacitor.Plugins.Geolocation){
|
||||
try{
|
||||
const{Geolocation}=window.Capacitor.Plugins;
|
||||
// Pede permission upfront
|
||||
const perm=await Geolocation.requestPermissions({permissions:['location']}).catch(()=>({location:'denied'}));
|
||||
if(perm.location==='denied'){onError({code:1,PERMISSION_DENIED:1,message:'Permissão negada'});return null}
|
||||
const id=await Geolocation.watchPosition({enableHighAccuracy:!!opts?.enableHighAccuracy,timeout:opts?.timeout||15000,maximumAge:opts?.maximumAge||0},(pos,err)=>{
|
||||
|
|
@ -3589,7 +3135,6 @@ async function nativeWatchPosition(onUpdate,onError,opts){
|
|||
return{native:true,id};
|
||||
}catch(e){console.warn('[native gps] fallback to web:',e.message)}
|
||||
}
|
||||
// Fallback web
|
||||
const id=navigator.geolocation.watchPosition(onUpdate,onError,opts);
|
||||
return{native:false,id};
|
||||
}
|
||||
|
|
@ -3599,7 +3144,6 @@ async function nativeClearWatch(handle){
|
|||
else if(handle.id!=null)navigator.geolocation.clearWatch(handle.id);
|
||||
}
|
||||
|
||||
// Local notifications: nativo no Android, fallback toast no web
|
||||
async function nativeNotify(title,body,id){
|
||||
if(isNative()&&window.Capacitor.Plugins.LocalNotifications){
|
||||
try{
|
||||
|
|
@ -3612,9 +3156,9 @@ async function nativeNotify(title,body,id){
|
|||
toast(title+(body?': '+body:''));
|
||||
}
|
||||
|
||||
// ===== Service Worker (offline real — só registra no Web, no Capacitor o WebView usa cache nativo) =====
|
||||
// ===== Service Worker (apenas Web — Capacitor usa cache nativo) =====
|
||||
function initServiceWorker(){
|
||||
if(isNative())return; // Capacitor não usa SW (tem cache próprio + APIs nativas)
|
||||
if(isNative())return;
|
||||
if(!('serviceWorker' in navigator))return;
|
||||
navigator.serviceWorker.register('/sw.js').then(reg=>{
|
||||
console.log('[SW] registered:',reg.scope);
|
||||
|
|
@ -3679,14 +3223,8 @@ function headingToCardinal(deg){
|
|||
}
|
||||
|
||||
function tryStartCompass(){
|
||||
// iOS Safari requer permission via gesture do usuário (DeviceOrientationEvent.requestPermission)
|
||||
// Android Chrome: funciona direto sem permission
|
||||
if(typeof DeviceOrientationEvent==='undefined')return;
|
||||
if(typeof DeviceOrientationEvent.requestPermission==='function'){
|
||||
// iOS — aguarda usuário clicar "Ativar bússola"
|
||||
return;
|
||||
}
|
||||
// Android: pode iniciar direto
|
||||
if(typeof DeviceOrientationEvent.requestPermission==='function')return; // iOS espera tap
|
||||
attachCompassListener();
|
||||
}
|
||||
|
||||
|
|
@ -3710,8 +3248,6 @@ function attachCompassListener(){
|
|||
}
|
||||
|
||||
function onCompass(e){
|
||||
// iOS: e.webkitCompassHeading (0-360 azimuth real)
|
||||
// Android: e.alpha (0-360, mas relativo — pra absoluto, use deviceorientationabsolute)
|
||||
let h=null;
|
||||
if(typeof e.webkitCompassHeading==='number')h=e.webkitCompassHeading;
|
||||
else if(typeof e.alpha==='number')h=360-e.alpha;
|
||||
|
|
@ -3729,7 +3265,6 @@ function tryStartBarometer(){
|
|||
sensors.pressure=bar.pressure;
|
||||
sensors._pressHistory.push({ts:Date.now(),p:bar.pressure});
|
||||
if(sensors._pressHistory.length>30)sensors._pressHistory.shift();
|
||||
// tendência: diferença entre média recente e antiga
|
||||
if(sensors._pressHistory.length>=10){
|
||||
const half=Math.floor(sensors._pressHistory.length/2);
|
||||
const old=sensors._pressHistory.slice(0,half).reduce((s,x)=>s+x.p,0)/half;
|
||||
|
|
@ -3747,12 +3282,11 @@ function tryStartBarometer(){
|
|||
|
||||
async function precacheCurrentMapArea(){
|
||||
if(!navigator.serviceWorker||!navigator.serviceWorker.controller){toast('SW não ativo ainda — recarregue');return}
|
||||
// Pede ao usuário um centro/raio se não há mapa visível
|
||||
if(!confirm('Pré-cachear mapa de uma área de ~50km no entorno da posição atual?\nVai baixar ~200 tiles (uns 5-10 MB).'))return;
|
||||
if(!navigator.geolocation){toast('Sem GPS pra centro do cache');return}
|
||||
navigator.geolocation.getCurrentPosition(pos=>{
|
||||
const lat=pos.coords.latitude,lng=pos.coords.longitude;
|
||||
const d=0.5; // ~50km de lat/lng buffer
|
||||
const d=0.5;
|
||||
const bounds={north:lat+d,south:lat-d,east:lng+d,west:lng-d};
|
||||
toast('Baixando tiles…');
|
||||
const channel=new MessageChannel();
|
||||
|
|
|
|||
|
|
@ -263,180 +263,6 @@ app.get('/.well-known/assetlinks.json', (req, res) => {
|
|||
}]);
|
||||
});
|
||||
|
||||
// Termos de Uso
|
||||
app.get('/termos', (req, res) => {
|
||||
res.type('html').send(`<!DOCTYPE html><html lang="pt-BR"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Termos de Uso · Shivao</title><style>body{font-family:Georgia,serif;max-width:780px;margin:40px auto;padding:0 20px;color:#0e2a3d;background:#efe5cd;line-height:1.7}h1,h2{font-style:italic;color:#a07832}h1{border-bottom:2px solid #a07832;padding-bottom:8px}h2{margin-top:32px}.warn{background:#8c343422;border-left:4px solid #8c3434;padding:12px 16px;margin:20px 0}a{color:#3f7768}small{opacity:.7}</style></head><body>
|
||||
<h1>Termos de Uso — Shivao</h1>
|
||||
<p><small>Última atualização: 27 de abril de 2026 · Versão 1.0</small></p>
|
||||
|
||||
<p>Ao usar o aplicativo <strong>Shivao</strong> (operado por <strong>PontualTech</strong>, CNPJ 32.772.178/0001-47), você concorda com estes termos. Leia com atenção.</p>
|
||||
|
||||
<h2>1. Aceitação</h2>
|
||||
<p>O uso do app implica aceitação completa destes termos. Se não concorda, não use.</p>
|
||||
|
||||
<h2>2. Cadastro e conta</h2>
|
||||
<ul>
|
||||
<li>Você precisa ter ≥18 anos OU autorização do responsável legal.</li>
|
||||
<li>Informações verdadeiras e atualizadas. Senha é responsabilidade sua.</li>
|
||||
<li>1 conta por usuário. Compartilhamento de credenciais é proibido.</li>
|
||||
<li>Podemos suspender contas com violação destes termos.</li>
|
||||
</ul>
|
||||
|
||||
<h2>3. Planos, pagamentos e renovação</h2>
|
||||
<ul>
|
||||
<li><strong>Free:</strong> grátis, recursos limitados (vigia local + diário 10 últimas).</li>
|
||||
<li><strong>Pro/Captain:</strong> assinatura mensal ou anual via Asaas (PIX, cartão, boleto).</li>
|
||||
<li><strong>Renovação:</strong> ao fim do ciclo, você renova manualmente. Sem cobrança automática surpresa.</li>
|
||||
<li><strong>Reembolso:</strong> 7 dias de arrependimento (CDC art. 49) — devolução integral via mesmo método. Após 7 dias: pro-rata do tempo restante.</li>
|
||||
</ul>
|
||||
|
||||
<h2>4. Uso permitido</h2>
|
||||
<ul>
|
||||
<li>Uso pessoal ou profissional náutico (lazer, trabalho, charters).</li>
|
||||
<li>1 usuário = 1 ou múltiplos barcos (no plano Captain).</li>
|
||||
<li>Compartilhamento público de posição é OK pra tripulação/familia (links temporários).</li>
|
||||
</ul>
|
||||
|
||||
<h2>5. Uso PROIBIDO</h2>
|
||||
<ul>
|
||||
<li>❌ Engenharia reversa do app ou backend (exceto pra interoperar legalmente).</li>
|
||||
<li>❌ Revender o serviço como white-label sem licença comercial.</li>
|
||||
<li>❌ Atacar a infraestrutura (DDoS, brute-force, exploit).</li>
|
||||
<li>❌ Cadastrar bots ou contas falsas em massa.</li>
|
||||
<li>❌ Usar pra atividade ilegal (pesca em área proibida, navegação clandestina, etc).</li>
|
||||
</ul>
|
||||
|
||||
<h2>6. Limitação de responsabilidade — IMPORTANTE</h2>
|
||||
<div class="warn"><strong>⚠️ AVISO CRÍTICO PARA NAVEGAÇÃO:</strong>
|
||||
<p>O Shivao é uma <strong>FERRAMENTA AUXILIAR</strong> de navegação e segurança. <strong>NÃO substitui</strong>:</p>
|
||||
<ul>
|
||||
<li>Equipamentos náuticos certificados (chartplotter, AIS, VHF, balsas).</li>
|
||||
<li>Cartas náuticas oficiais (Marinha do Brasil, NOAA).</li>
|
||||
<li>Atenção do skipper.</li>
|
||||
<li>Comunicação com a Capitania dos Portos.</li>
|
||||
</ul>
|
||||
<p>Não nos responsabilizamos por:</p>
|
||||
<ul>
|
||||
<li>Decisões tomadas com base no app (rota, fundeio, meteorologia).</li>
|
||||
<li>Falha de GPS, internet, sensores ou notificações.</li>
|
||||
<li>Danos materiais, pessoais ou ambientais decorrentes do uso.</li>
|
||||
<li>Perda de dados (faça backups regulares).</li>
|
||||
</ul>
|
||||
<p><strong>O comandante da embarcação é o único responsável pela segurança a bordo.</strong></p></div>
|
||||
|
||||
<h2>7. Propriedade intelectual</h2>
|
||||
<ul>
|
||||
<li>Código, logo, nome "Shivao" pertencem à PontualTech.</li>
|
||||
<li>Seus dados (viagens, mídia) pertencem a VOCÊ — exporte quando quiser, exclua a qualquer momento.</li>
|
||||
<li>Bibliotecas open source: Leaflet (BSD-2), OpenStreetMap (ODbL), express-rate-limit (MIT), bcryptjs (MIT), jsonwebtoken (MIT).</li>
|
||||
</ul>
|
||||
|
||||
<h2>8. Suspensão e cancelamento</h2>
|
||||
<ul>
|
||||
<li>Você pode cancelar a qualquer momento via app (Aba Conta → Sair → Excluir conta).</li>
|
||||
<li>Podemos suspender se houver violação destes termos, com aviso por e-mail (exceto urgências de segurança).</li>
|
||||
<li>Após cancelamento: 30 dias pra reativar, depois exclusão permanente.</li>
|
||||
</ul>
|
||||
|
||||
<h2>9. Mudanças nos termos</h2>
|
||||
<p>Notificaremos por e-mail mudanças materiais com 30 dias de antecedência. Versão atual em <a href="https://shivao.pontualtech.work/termos">shivao.pontualtech.work/termos</a>.</p>
|
||||
|
||||
<h2>10. Lei aplicável e foro</h2>
|
||||
<p>Estes termos seguem a lei brasileira. Foro: comarca de São Paulo/SP. Disputas de consumo podem usar <a href="https://www.consumidor.gov.br">consumidor.gov.br</a> antes de judicializar.</p>
|
||||
|
||||
<h2>11. Contato</h2>
|
||||
<p>Suporte: <a href="mailto:contato@pontualtech.com.br">contato@pontualtech.com.br</a><br>
|
||||
Privacidade/LGPD: <a href="mailto:dpo@pontualtech.com.br">dpo@pontualtech.com.br</a></p>
|
||||
|
||||
<hr style="margin:40px 0;border:none;border-top:1px solid #a07832">
|
||||
<p style="text-align:center"><small>Shivao · Diário de Bordo · PontualTech · ${new Date().getFullYear()}</small></p>
|
||||
</body></html>`);
|
||||
});
|
||||
|
||||
// Política de Privacidade (URL pública obrigatória pra Play Store + LGPD)
|
||||
app.get('/politica', (req, res) => {
|
||||
res.type('html').send(`<!DOCTYPE html><html lang="pt-BR"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Política de Privacidade · Shivao</title><style>body{font-family:Georgia,serif;max-width:780px;margin:40px auto;padding:0 20px;color:#0e2a3d;background:#efe5cd;line-height:1.7}h1,h2{font-style:italic;color:#a07832}h1{border-bottom:2px solid #a07832;padding-bottom:8px}h2{margin-top:32px}code{background:#fff;padding:2px 6px;border-radius:3px;font-size:.9em}a{color:#3f7768}small{opacity:.7}</style></head><body>
|
||||
<h1>Política de Privacidade — Shivao</h1>
|
||||
<p><small>Última atualização: 27 de abril de 2026 · Versão 1.0</small></p>
|
||||
|
||||
<p>O <strong>Shivao</strong> é um aplicativo de diário de bordo náutico operado por <strong>PontualTech</strong> (CNPJ 32.772.178/0001-47, São Paulo/SP, Brasil). Esta política descreve como coletamos, usamos e protegemos seus dados pessoais, em conformidade com a <strong>LGPD (Lei 13.709/2018)</strong> e o <strong>GDPR (Regulamento UE 2016/679)</strong>.</p>
|
||||
|
||||
<h2>1. Quais dados coletamos</h2>
|
||||
<ul>
|
||||
<li><strong>Conta:</strong> e-mail, senha (hash bcrypt), nome opcional.</li>
|
||||
<li><strong>Dados de bordo:</strong> registros de viagens, manutenções, fotos/áudios/vídeos que VOCÊ adicionar, posições GPS quando você ativa rastreio ou vigia.</li>
|
||||
<li><strong>Pagamentos:</strong> processados pela Asaas (parceiro PCI-DSS). Não armazenamos número de cartão.</li>
|
||||
<li><strong>Logs técnicos:</strong> IP, timestamps, ações sensíveis (criar/revogar share, sync de estado) — guardados por 90 dias para auditoria de segurança.</li>
|
||||
</ul>
|
||||
|
||||
<h2>2. O que NÃO coletamos</h2>
|
||||
<ul>
|
||||
<li>❌ Analytics de comportamento (Google Analytics, Facebook Pixel, etc).</li>
|
||||
<li>❌ Tracking entre apps/sites.</li>
|
||||
<li>❌ Anúncios de terceiros.</li>
|
||||
<li>❌ Compartilhamento com brokers de dados.</li>
|
||||
</ul>
|
||||
|
||||
<h2>3. Para que usamos seus dados</h2>
|
||||
<ul>
|
||||
<li>Operar o serviço (sync, vigia de fundeio, alarme remoto).</li>
|
||||
<li>Processar pagamentos (apenas Asaas).</li>
|
||||
<li>Enviar e-mails operacionais (recuperação de senha, confirmação de pagamento, alerta de fundeio).</li>
|
||||
<li>Cumprir obrigações legais (notas fiscais, intimações judiciais quando aplicável).</li>
|
||||
</ul>
|
||||
|
||||
<h2>4. Onde seus dados ficam</h2>
|
||||
<p>Servidores próprios em data center na Alemanha (Hetzner Online GmbH, certificado ISO 27001), gerenciados pela PontualTech. Backups criptografados.</p>
|
||||
|
||||
<h2>5. Permissões do app Android</h2>
|
||||
<ul>
|
||||
<li><strong>Localização (incluindo background):</strong> imprescindível pra GPS de viagens, vigia de fundeio com alarme de drift e compartilhamento ao vivo.</li>
|
||||
<li><strong>Câmera/Microfone/Galeria:</strong> apenas quando você anexar mídia a um registro.</li>
|
||||
<li><strong>Notificações:</strong> alarme local de fundeio (toca som + vibra mesmo com tela apagada).</li>
|
||||
<li><strong>Sensores (bússola, barômetro):</strong> usados localmente no celular, não transmitidos.</li>
|
||||
</ul>
|
||||
|
||||
<h2>6. Compartilhamento de posição ao vivo</h2>
|
||||
<p>Quando você cria um link público de compartilhamento, qualquer pessoa com o link vê a posição do barco em tempo real. Você controla a duração e pode revogar a qualquer momento. Os links usam tokens randômicos de 96 bits (impossíveis de adivinhar).</p>
|
||||
|
||||
<h2>7. Seus direitos (LGPD/GDPR)</h2>
|
||||
<p>Você pode, a qualquer momento, solicitar:</p>
|
||||
<ul>
|
||||
<li>Acesso aos seus dados (exportar tudo via app).</li>
|
||||
<li>Correção de dados incorretos.</li>
|
||||
<li>Exclusão da conta e todos os dados (delete em até 30 dias).</li>
|
||||
<li>Portabilidade (exportar GPX/CSV/JSON).</li>
|
||||
<li>Revogar consentimento (cancelar assinatura).</li>
|
||||
</ul>
|
||||
<p>Solicitações por <a href="mailto:dpo@pontualtech.com.br">dpo@pontualtech.com.br</a>.</p>
|
||||
|
||||
<h2>8. Retenção de dados</h2>
|
||||
<ul>
|
||||
<li>Conta ativa: enquanto você usar.</li>
|
||||
<li>Conta cancelada: 30 dias (período de arrependimento), depois exclusão permanente.</li>
|
||||
<li>Logs de auditoria: 90 dias.</li>
|
||||
<li>Notas fiscais: 5 anos (exigência legal).</li>
|
||||
</ul>
|
||||
|
||||
<h2>9. Cookies</h2>
|
||||
<p>O app usa apenas <code>localStorage</code> e <code>IndexedDB</code> locais (não são cookies HTTP). Sem cookies de tracking de terceiros.</p>
|
||||
|
||||
<h2>10. Crianças</h2>
|
||||
<p>O Shivao não é destinado a menores de 13 anos. Não coletamos dados de menores intencionalmente.</p>
|
||||
|
||||
<h2>11. Mudanças nesta política</h2>
|
||||
<p>Notificaremos por e-mail mudanças materiais com 30 dias de antecedência. Versão atual e histórico em <a href="https://shivao.pontualtech.work/politica">shivao.pontualtech.work/politica</a>.</p>
|
||||
|
||||
<h2>12. Contato e DPO</h2>
|
||||
<p><strong>Encarregado de Dados (DPO):</strong> Karlão · <a href="mailto:dpo@pontualtech.com.br">dpo@pontualtech.com.br</a></p>
|
||||
<p><strong>Suporte:</strong> <a href="mailto:contato@pontualtech.com.br">contato@pontualtech.com.br</a></p>
|
||||
<p><strong>ANPD (autoridade brasileira):</strong> <a href="https://www.gov.br/anpd">gov.br/anpd</a></p>
|
||||
|
||||
<hr style="margin:40px 0;border:none;border-top:1px solid #a07832">
|
||||
<p style="text-align:center"><small>Shivao · Diário de Bordo · PontualTech · ${new Date().getFullYear()}</small></p>
|
||||
</body></html>`);
|
||||
});
|
||||
|
||||
// PWA manifest (necessário pra "Add to Home Screen" + APK via PWABuilder)
|
||||
app.get('/manifest.json', (req, res) => {
|
||||
res.json({
|
||||
|
|
|
|||