Compare commits
7 Commits
master
...
split_buil
Author | SHA1 | Date |
---|---|---|
Matthew Raymer | 5f2d6388c9 | 1 week ago |
Matthew Raymer | 1c4eb78583 | 1 week ago |
Matthew Raymer | d92fa497ef | 1 week ago |
Matthew Raymer | 54dd6910a7 | 1 week ago |
Matthew Raymer | 0207cd2991 | 2 weeks ago |
Matthew Raymer | 8fd5c63e4b | 2 weeks ago |
Matthew Raymer | be8ba12df6 | 2 weeks ago |
@ -0,0 +1,101 @@ |
|||||
|
# 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 |
@ -0,0 +1,2 @@ |
|||||
|
/build/* |
||||
|
!/build/.npmkeep |
@ -0,0 +1,54 @@ |
|||||
|
apply plugin: 'com.android.application' |
||||
|
|
||||
|
android { |
||||
|
namespace "app.timesafari.app" |
||||
|
compileSdk rootProject.ext.compileSdkVersion |
||||
|
defaultConfig { |
||||
|
applicationId "app.timesafari.app" |
||||
|
minSdkVersion rootProject.ext.minSdkVersion |
||||
|
targetSdkVersion rootProject.ext.targetSdkVersion |
||||
|
versionCode 1 |
||||
|
versionName "1.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:!*~' |
||||
|
} |
||||
|
} |
||||
|
buildTypes { |
||||
|
release { |
||||
|
minifyEnabled false |
||||
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
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") |
||||
|
} |
@ -0,0 +1,19 @@ |
|||||
|
// 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 { |
||||
|
|
||||
|
|
||||
|
} |
||||
|
|
||||
|
|
||||
|
if (hasProperty('postBuildExtras')) { |
||||
|
postBuildExtras() |
||||
|
} |
@ -0,0 +1,21 @@ |
|||||
|
# 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 |
@ -0,0 +1,26 @@ |
|||||
|
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()); |
||||
|
} |
||||
|
} |
@ -0,0 +1,41 @@ |
|||||
|
<?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" /> |
||||
|
</manifest> |
@ -0,0 +1,5 @@ |
|||||
|
package app.timesafari.app; |
||||
|
|
||||
|
import com.getcapacitor.BridgeActivity; |
||||
|
|
||||
|
public class MainActivity extends BridgeActivity {} |
After Width: | Height: | Size: 7.5 KiB |
After Width: | Height: | Size: 3.9 KiB |
After Width: | Height: | Size: 9.0 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 7.7 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 9.6 KiB |
After Width: | Height: | Size: 13 KiB |
After Width: | Height: | Size: 17 KiB |
@ -0,0 +1,34 @@ |
|||||
|
<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> |
@ -0,0 +1,170 @@ |
|||||
|
<?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> |
After Width: | Height: | Size: 3.9 KiB |
@ -0,0 +1,12 @@ |
|||||
|
<?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> |
@ -0,0 +1,5 @@ |
|||||
|
<?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> |
@ -0,0 +1,5 @@ |
|||||
|
<?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> |
After Width: | Height: | Size: 2.7 KiB |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 2.7 KiB |
After Width: | Height: | Size: 3.9 KiB |
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 6.4 KiB |
After Width: | Height: | Size: 6.5 KiB |
After Width: | Height: | Size: 9.6 KiB |
After Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 9.2 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 16 KiB |
@ -0,0 +1,4 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<resources> |
||||
|
<color name="ic_launcher_background">#FFFFFF</color> |
||||
|
</resources> |
@ -0,0 +1,7 @@ |
|||||
|
<?xml version='1.0' encoding='utf-8'?> |
||||
|
<resources> |
||||
|
<string name="app_name">TimeSafari</string> |
||||
|
<string name="title_activity_main">TimeSafari</string> |
||||
|
<string name="package_name">app.timesafari.app</string> |
||||
|
<string name="custom_url_scheme">app.timesafari.app</string> |
||||
|
</resources> |
@ -0,0 +1,22 @@ |
|||||
|
<?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> |
@ -0,0 +1,5 @@ |
|||||
|
<?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> |
@ -0,0 +1,18 @@ |
|||||
|
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); |
||||
|
} |
||||
|
} |
@ -0,0 +1,29 @@ |
|||||
|
// 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.7.3' |
||||
|
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 |
||||
|
} |
@ -0,0 +1,3 @@ |
|||||
|
// 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') |
@ -0,0 +1,22 @@ |
|||||
|
# 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 |
@ -0,0 +1,7 @@ |
|||||
|
distributionBase=GRADLE_USER_HOME |
||||
|
distributionPath=wrapper/dists |
||||
|
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-all.zip |
||||
|
networkTimeout=10000 |
||||
|
validateDistributionUrl=true |
||||
|
zipStoreBase=GRADLE_USER_HOME |
||||
|
zipStorePath=wrapper/dists |
@ -0,0 +1,248 @@ |
|||||
|
#!/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" "$@" |
@ -0,0 +1,92 @@ |
|||||
|
@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 |
@ -0,0 +1,5 @@ |
|||||
|
include ':app' |
||||
|
include ':capacitor-cordova-android-plugins' |
||||
|
project(':capacitor-cordova-android-plugins').projectDir = new File('./capacitor-cordova-android-plugins/') |
||||
|
|
||||
|
apply from: 'capacitor.settings.gradle' |
@ -0,0 +1,16 @@ |
|||||
|
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' |
||||
|
} |
@ -0,0 +1,13 @@ |
|||||
|
import type { CapacitorConfig } from '@capacitor/cli'; |
||||
|
|
||||
|
const config: CapacitorConfig = { |
||||
|
appId: 'app.timesafari.app', |
||||
|
appName: 'TimeSafari', |
||||
|
webDir: 'dist', |
||||
|
bundledWebRuntime: false, |
||||
|
server: { |
||||
|
cleartext: true, |
||||
|
}, |
||||
|
}; |
||||
|
|
||||
|
export default config; |
@ -0,0 +1 @@ |
|||||
|
var h=Object.defineProperty;var g=(s,t,i)=>t in s?h(s,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):s[t]=i;var c=(s,t,i)=>g(s,typeof t!="symbol"?t+"":t,i);import{V as v,f as x,y as w,C as b,_ as S,g as p,h as y,i as f,j as l,k as C,m as _,s as $,F as N,x as V}from"./index-BLqts8WY.js";import{Q as D}from"./QuickNav-DgCyvgDx.js";import{i as O,g as A,w as J,x as P,u as E}from"./index-MyY_xqVN.js";import"./index-CsfPLOYu.js";var I=Object.defineProperty,R=Object.getOwnPropertyDescriptor,T=(s,t,i,a)=>{for(var e=a>1?void 0:a?R(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(a?o(t,i,e):o(e))||e);return a&&e&&I(t,i,e),e};let u=class extends v{constructor(){super(...arguments);c(this,"$notify");c(this,"accountIdentityStr","null");c(this,"activeDid","");c(this,"apiServer","");c(this,"claimStr","")}async mounted(){var a;const i=await x();if(this.activeDid=i.activeDid||"",this.apiServer=i.apiServer||"",this.claimStr=this.$route.query.claim,this.claimStr)try{const e=JSON.parse(this.claimStr);this.claimStr=JSON.stringify(e,null,2)}catch{}else{const e=this.$route.query.claimJwtId;if(e){const n=O(e)?"/api/claim/byHandle/":"/api/claim/",o=this.apiServer+n+encodeURIComponent(e),m=await A(this.activeDid);try{const r=await this.axios.get(o,{headers:m});if(r.status===200){const d=(a=r.data)==null?void 0:a.claim;d.lastClaimId=J(e),this.claimStr=JSON.stringify(d,null,2)}else throw{message:"Got an error loading that claim.",response:{status:r.status,statusText:r.statusText}}}catch(r){w("Error retrieving claim: "+P(r),!0),this.$notify({group:"alert",type:"danger",title:"Error",text:"Got an error retrieving claim data."},3e3)}}}}async submitClaim(){const i=JSON.parse(this.claimStr),a=await E(i,this.activeDid,this.apiServer,this.axios);a.type==="success"?this.$notify({group:"alert",type:"success",title:"Success",text:"Claim submitted."},5e3):(console.error("Got error submitting the claim:",a),this.$notify({group:"alert",type:"danger",title:"Error",text:"There was a problem submitting the claim."},-1))}};u=T([b({components:{QuickNav:D}})],u);const k={id:"Content",class:"p-6 pb-24 max-w-3xl mx-auto"},B={id:"ViewBreadcrumb",class:"mb-8"},F={class:"text-lg text-center font-light relative px-7"},G={class:"flex"};function Q(s,t,i,a,e,n){const o=p("QuickNav"),m=p("fa");return V(),y(N,null,[f(o),l("section",k,[l("div",B,[l("h1",F,[l("button",{onClick:t[0]||(t[0]=r=>s.$router.go(-1)),class:"text-lg text-center px-2 py-1 absolute -left-2 -top-1"},[f(m,{icon:"chevron-left",class:"fa-fw"})]),t[3]||(t[3]=C(" Raw Claim "))])]),l("div",G,[_(l("textarea",{rows:"20",class:"border-2 w-full","onUpdate:modelValue":t[1]||(t[1]=r=>s.claimStr=r)},null,512),[[$,s.claimStr]])]),l("button",{class:"block w-full text-center text-lg font-bold uppercase bg-gradient-to-b from-blue-400 to-blue-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-2 py-3 rounded-md",onClick:t[2]||(t[2]=r=>s.submitClaim())}," Sign & Send ")])],64)}const z=S(u,[["render",Q]]);export{z as default}; |
@ -0,0 +1 @@ |
|||||
|
.tooltip{position:relative;display:inline-block;border-bottom:1px dotted black}.tooltip .tooltiptext{visibility:hidden;width:200px;background-color:#000;color:#fff;text-align:center;padding:5px 0;border-radius:6px;position:absolute;z-index:1}.tooltip:hover .tooltiptext,.tooltip:hover .tooltiptext-left{visibility:visible} |
@ -0,0 +1 @@ |
|||||
|
import{V as m,C as x,_ as u,g as c,h as f,j as d,i,w as _,k as b,H as v,x as w}from"./index-BLqts8WY.js";var g=Object.defineProperty,C=Object.getOwnPropertyDescriptor,h=(n,t,a,o)=>{for(var e=o>1?void 0:o?C(t,a):t,l=n.length-1,s;l>=0;l--)(s=n[l])&&(e=(o?s(t,a,e):s(e))||e);return o&&e&&g(t,a,e),e};let r=class extends m{};r=h([x({components:{}})],r);const V={id:"Content",class:"p-6 pb-24 max-w-3xl mx-auto"},k={id:"ViewBreadcrumb",class:"mb-8"},y={class:"text-lg text-center font-light relative px-7"};function $(n,t,a,o,e,l){const s=c("fa"),p=c("router-link");return w(),f("section",V,[d("div",k,[d("h1",y,[i(p,{to:{name:"account"},class:"text-lg text-center px-2 py-1 absolute -left-2 -top-1"},{default:_(()=>[i(s,{icon:"chevron-left",class:"fa-fw"})]),_:1}),t[0]||(t[0]=b(" Confirm Contact "))])]),t[1]||(t[1]=v('<p class="text-center text-xl mb-4 font-light"> Would you like to add <i>Firstname</i> to your network? </p><div class="bg-slate-100 rounded-md overflow-hidden px-4 py-3 mb-4"><h2 class="text-xl font-semibold mb-2">Firstname Lastname</h2><div class="text-slate-500 text-sm font-bold">ID</div><div class="text-sm text-slate-500 mb-1"><span><code>did:peer:kl45kj41lk451kl3</code></span></div></div><div class="mt-8"><div class="grid grid-cols-1 sm:grid-cols-2 gap-2"><input type="submit" class="block w-full text-center text-lg font-bold uppercase bg-gradient-to-b from-blue-400 to-blue-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-2 py-3 rounded-md" value="Add Contact"><button type="button" class="block w-full text-center text-md uppercase bg-gradient-to-b from-slate-400 to-slate-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-1.5 py-2 rounded-md"> Cancel </button></div></div>',3))])}const N=u(r,[["render",$]]);export{N as default}; |
@ -0,0 +1 @@ |
|||||
|
var y=Object.defineProperty;var v=(o,t,e)=>t in o?y(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e;var i=(o,t,e)=>v(o,typeof t!="symbol"?t+"":t,e);import{V as C,f as D,e as k,C as $,_ as j,g as p,h as u,i as a,j as s,w as I,k as _,F as g,z as G,x as f,t as V}from"./index-BLqts8WY.js";import{G as E}from"./GiftedDialog-CFmou4Be.js";import{Q as N}from"./QuickNav-DgCyvgDx.js";import{E as P}from"./EntityIcon-CF1RwQI5.js";import{_ as S}from"./blank-square-D9dGgMJw.js";import"./index-MyY_xqVN.js";import"./index-CsfPLOYu.js";var B=Object.defineProperty,O=Object.getOwnPropertyDescriptor,Q=(o,t,e,r)=>{for(var n=r>1?void 0:r?O(t,e):t,c=o.length-1,l;c>=0;c--)(l=o[c])&&(n=(r?l(t,e,n):l(n))||n);return r&&n&&B(t,e,n),n};let b=class extends C{constructor(){super(...arguments);i(this,"$notify");i(this,"activeDid","");i(this,"allContacts",[]);i(this,"apiServer","");i(this,"description","");i(this,"projectId","");i(this,"prompt","")}async created(){try{const e=await D();this.apiServer=e.apiServer||"",this.activeDid=e.activeDid||"";const r=await k.contacts.toArray();this.allContacts=r.sort((n,c)=>(n.name||"").localeCompare(c.name||"")),this.projectId=this.$route.query.projectId||"",this.prompt=this.$route.query.prompt??this.prompt}catch(e){console.error("Error retrieving settings & contacts:",e),this.$notify({group:"alert",type:"danger",title:"Error",text:e.message||"There was an error retrieving your settings or contacts."},5e3)}}openDialog(e){const r=this.projectId?void 0:{did:this.activeDid,name:"you"};this.$refs.customDialog.open(e,r,void 0,"Given by "+((e==null?void 0:e.name)||"someone not named"),this.prompt)}};b=Q([$({components:{GiftedDialog:E,QuickNav:N,EntityIcon:P}})],b);const A={id:"Content",class:"p-6 pb-24 max-w-3xl mx-auto"},F={id:"ViewBreadcrumb",class:"mb-8"},q={class:"text-lg text-center font-light relative px-7"},z={class:"border-t border-slate-300"},T={class:"border-b border-slate-300 py-3"},U={class:"text-base flex gap-4 items-center"},H={class:"text-right"},L={class:"text-base flex gap-4 items-center"},J={class:"grow font-semibold"},K={class:"text-right"},M=["onClick"];function R(o,t,e,r,n,c){const l=p("QuickNav"),m=p("fa"),h=p("router-link"),x=p("EntityIcon"),w=p("GiftedDialog");return f(),u(g,null,[a(l,{selected:"Home"}),s("section",A,[s("div",F,[s("h1",q,[a(h,{to:{name:"home"},class:"text-lg text-center px-2 py-1 absolute -left-2 -top-1"},{default:I(()=>[a(m,{icon:"chevron-left",class:"fa-fw"})]),_:1}),t[1]||(t[1]=_(" Given by... "))])]),s("ul",z,[s("li",T,[s("h2",U,[t[2]||(t[2]=s("span",{class:"grow"},[s("img",{src:S,width:"32",class:"inline-block align-middle border border-slate-300 rounded-md mr-1"}),_(" Unnamed/Unknown ")],-1)),s("span",H,[s("button",{type:"button",onClick:t[0]||(t[0]=d=>o.openDialog()),class:"block w-full text-center text-sm uppercase bg-gradient-to-b from-blue-400 to-blue-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-3 py-1.5 rounded-md"},[a(m,{icon:"gift",class:"fa-fw"})])])])]),(f(!0),u(g,null,G(o.allContacts,d=>(f(),u("li",{key:d.did,class:"border-b border-slate-300 py-3"},[s("h2",L,[s("span",J,[a(x,{contact:d,iconSize:32,class:"inline-block align-middle border border-slate-300 rounded-md mr-1"},null,8,["contact"]),_(" "+V(d.name||"(no name)"),1)]),s("span",K,[s("button",{type:"button",onClick:W=>o.openDialog(d),class:"block w-full text-center text-sm uppercase bg-gradient-to-b from-blue-400 to-blue-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-3 py-1.5 rounded-md"},[a(m,{icon:"gift",class:"fa-fw"})],8,M)])])]))),128))]),a(w,{ref:"customDialog",toProjectId:o.projectId},null,8,["toProjectId"])])],64)}const it=j(b,[["render",R]]);export{it as default}; |
@ -0,0 +1 @@ |
|||||
|
var b=Object.defineProperty;var p=(t,e,s)=>e in t?b(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s;var i=(t,e,s)=>p(t,typeof e!="symbol"?e+"":e,s);import{C as h,V as C,_ as m,x as v,h as u,j as n,t as d,k as g,m as f,s as x,l as _}from"./index-BLqts8WY.js";var k=Object.defineProperty,w=Object.getOwnPropertyDescriptor,y=(t,e,s,o)=>{for(var a=o>1?void 0:o?w(e,s):e,c=t.length-1,l;c>=0;c--)(l=t[c])&&(a=(o?l(e,s,a):l(a))||a);return o&&a&&k(e,s,a),a};let r=class extends C{constructor(){super(...arguments);i(this,"cancelCallback",()=>{});i(this,"saveCallback",()=>{});i(this,"message","");i(this,"newText","");i(this,"title","Contact Name");i(this,"visible",!1)}async open(s,o,a,c,l){this.cancelCallback=c||this.cancelCallback,this.saveCallback=a||this.saveCallback,this.message=o??this.message,this.newText=l??"",this.title=s??this.title,this.visible=!0}async onClickSaveChanges(){this.visible=!1,this.saveCallback&&this.saveCallback(this.newText)}onClickCancel(){this.visible=!1,this.cancelCallback&&this.cancelCallback()}};r=y([h],r);const N={key:0,class:"dialog-overlay"},D={class:"dialog"},T={class:"text-xl font-bold text-center mb-4"},$={class:"mt-8"},V={class:"grid grid-cols-1 sm:grid-cols-2 gap-2"};function O(t,e,s,o,a,c){return t.visible?(v(),u("div",N,[n("div",D,[n("h1",T,d(t.title),1),g(" "+d(t.message)+" Note that their name is only stored on this device. ",1),f(n("input",{type:"text",placeholder:"Name",class:"block w-full rounded border border-slate-400 mb-4 px-3 py-2","onUpdate:modelValue":e[0]||(e[0]=l=>t.newText=l)},null,512),[[x,t.newText]]),n("div",$,[n("div",V,[n("button",{type:"button",class:"block w-full text-center text-lg font-bold uppercase bg-gradient-to-b from-blue-400 to-blue-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-2 py-3 rounded-md mb-2",onClick:e[1]||(e[1]=l=>t.onClickSaveChanges())}," Save "),n("button",{type:"button",class:"block w-full text-center text-md uppercase bg-gradient-to-b from-slate-400 to-slate-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-2 py-3 rounded-md mb-2",onClick:e[2]||(e[2]=l=>t.onClickCancel())}," Cancel ")])])])])):_("",!0)}const B=m(r,[["render",O]]);export{B as C}; |
@ -0,0 +1 @@ |
|||||
|
import{V as p,C as u,_ as m,g as c,h,j as n,i as b,w as f,k as w,H as v,x}from"./index-BLqts8WY.js";var _=Object.defineProperty,g=Object.getOwnPropertyDescriptor,C=(a,t,r,o)=>{for(var e=o>1?void 0:o?g(t,r):t,l=a.length-1,s;l>=0;l--)(s=a[l])&&(e=(o?s(t,r,e):s(e))||e);return o&&e&&_(t,r,e),e};let d=class extends p{};d=C([u({components:{}})],d);const y={id:"Content",class:"p-6 pb-24 max-w-3xl mx-auto"},k={id:"ViewBreadcrumb",class:"mb-8"},V={class:"text-lg text-center font-light relative px-7"};function S(a,t,r,o,e,l){const s=c("fa"),i=c("router-link");return x(),h("section",y,[n("div",k,[n("h1",V,[b(i,{to:{name:"account"},class:"text-lg text-center px-2 py-1 absolute -left-2 -top-1"},{default:f(()=>[b(s,{icon:"chevron-left",class:"fa-fw"})]),_:1}),t[0]||(t[0]=w(" Scan Contact "))])]),t[1]||(t[1]=v('<h3 class="text-sm uppercase font-semibold mb-2">Scan a QR Code…</h3><div class="bg-black rounded overflow-hidden relative mb-4"><img src="https://picsum.photos/400/400?random=1" class="w-full"><div class="absolute top-0 left-0 right-0 bg-black/50 h-1/4"></div><div class="absolute top-1/4 bottom-1/4 left-0 bg-black/50 w-1/4"></div><div class="absolute top-1/4 bottom-1/4 right-0 bg-black/50 w-1/4"></div><div class="absolute bottom-0 left-0 right-0 bg-black/50 h-1/4"></div><div class="absolute top-1/4 left-1/4 h-6 w-6 border-white border-t-4 border-l-4 drop-shadow"></div><div class="absolute top-1/4 right-1/4 h-6 w-6 border-white border-t-4 border-r-4 drop-shadow"></div><div class="absolute bottom-1/4 left-1/4 h-6 w-6 border-white border-b-4 border-l-4 drop-shadow"></div><div class="absolute bottom-1/4 right-1/4 h-6 w-6 border-white border-b-4 border-r-4 drop-shadow"></div></div><h3 class="text-sm uppercase font-semibold mb-2">…or Enter Contact Data</h3><input type="text" placeholder="Name (optional)" class="block w-full rounded border border-slate-400 mb-2 px-3 py-2"><input type="text" placeholder="ID" class="block w-full rounded border border-slate-400 mb-2 px-3 py-2"><input type="text" placeholder="Public Key (optional)" class="block w-full rounded border border-slate-400 mb-4 px-3 py-2"><div class="mt-8"><div class="grid grid-cols-1 sm:grid-cols-2 gap-2"><input type="submit" class="block w-full text-center text-lg font-bold uppercase bg-gradient-to-b from-blue-400 to-blue-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-2 py-3 rounded-md" value="Look Up Contact"><button type="button" class="block w-full text-center text-md uppercase bg-gradient-to-b from-slate-400 to-slate-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-1.5 py-2 rounded-md"> Cancel </button></div></div>',7))])}const $=m(d,[["render",S]]);export{$ as default}; |
@ -0,0 +1 @@ |
|||||
|
.dialog-overlay{z-index:50;position:fixed;top:0;left:0;right:0;bottom:0;background-color:#00000080;display:flex;justify-content:center;align-items:center;padding:1.5rem}.dialog{background-color:#fff;padding:1rem;border-radius:.5rem;width:100%;max-width:500px} |
@ -0,0 +1 @@ |
|||||
|
.numbered-marker{display:flex;align-items:center;justify-content:center;text-align:center;font-size:14px;font-weight:700;color:#fff;background:#00f;width:24px;height:24px;border-radius:50%;border:2px solid white} |
@ -0,0 +1 @@ |
|||||
|
import{V as d,C as m,_ as v,g as r,h as w,i as p,j as e,k as u,w as x,F as b,x as g}from"./index-BLqts8WY.js";import{Q as h}from"./QuickNav-DgCyvgDx.js";var N=Object.defineProperty,k=Object.getOwnPropertyDescriptor,T=(i,t,l,n)=>{for(var o=n>1?void 0:n?k(t,l):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(o=(n?s(t,l,o):s(o))||o);return n&&o&&N(t,l,o),o};let f=class extends d{};f=T([m({components:{QuickNav:h}})],f);const V={id:"Content",class:"p-6 pb-24 max-w-3xl mx-auto"},C={class:"mb-8"},$={class:"text-lg text-center font-light relative px-7"};function _(i,t,l,n,o,a){const s=r("QuickNav"),c=r("fa"),y=r("router-link");return g(),w(b,null,[p(s),e("section",V,[e("div",C,[e("div",$,[e("h1",{class:"text-lg text-center px-2 py-1 absolute -left-2 -top-1",onClick:t[0]||(t[0]=j=>i.$router.back())},[p(c,{icon:"chevron-left",class:"fa-fw"})])]),t[1]||(t[1]=e("h1",{id:"ViewHeading",class:"text-4xl text-center font-light pt-4 mb-8"}," Notification Types ",-1))]),e("div",null,[t[6]||(t[6]=e("p",null,"There are two types of notifications:",-1)),t[7]||(t[7]=e("h2",{class:"text-xl font-semibold mt-4"},"Reminder Notifications",-1)),t[8]||(t[8]=e("div",null,[e("p",null," The Reminder Notification will be sent to you daily with a specific message, at whatever time you choose. Use it to remind yourself to act, for example: pause and consider who has given you something, so you can record thanks in here. "),e("p",null," This is a reliable message, but it doesn't contain any details about activity that might be especially interesting to you. ")],-1)),t[9]||(t[9]=e("h2",{class:"text-xl font-semibold mt-4"},"New Activity Notifications",-1)),e("div",null,[t[5]||(t[5]=e("p",null," The New Activity Notification will be sent to you when there is new, relevant activity for you. It will only trigger if something involves you or a project of interest; it will not bug you for other, general activity. ",-1)),e("p",null,[t[3]||(t[3]=u(" This type is not as reliable as a Reminder Notification because mobile devices often suppress such notifications to save battery. (If you want to quickly check for relevant activity daily, use the Reminder Notification and open the app and look for a large green button that points out new activity that is personal to you. We are working on other ways to notify you more reliably -- ")),p(y,{class:"text-blue-500",to:"/help"},{default:x(()=>t[2]||(t[2]=[u("go here to follow us or contact us")])),_:1}),t[4]||(t[4]=u(".) "))])])])])],64)}const Q=v(f,[["render",_]]);export{Q as default}; |
@ -0,0 +1 @@ |
|||||
|
import{V as f,C as h,_ as g,g as u,h as x,j as e,k as o,i,w as v,x as y}from"./index-BLqts8WY.js";import{Q as b}from"./QuickNav-DgCyvgDx.js";var w=Object.defineProperty,T=Object.getOwnPropertyDescriptor,k=(d,t,l,r)=>{for(var s=r>1?void 0:r?T(t,l):t,a=d.length-1,n;a>=0;a--)(n=d[a])&&(s=(r?n(t,l,s):n(s))||s);return r&&s&&w(t,l,s),s};let p=class extends f{};p=k([h({components:{QuickNav:b}})],p);const C={id:"Content",class:"p-6 pb-24 max-w-3xl mx-auto"},c={class:"ml-4"},S={class:"ml-4"};function V(d,t,l,r,s,a){const n=u("fa"),m=u("router-link");return y(),x("section",C,[t[21]||(t[21]=e("div",{class:"mb-8"},[e("h1",{id:"ViewHeading",class:"text-4xl text-center font-light pt-4 mb-8"}," Time Safari Onboarding Instructions ")],-1)),e("p",null,[t[0]||(t[0]=o(" To invite someone the easiest way, send them a link that you generate from this page: ")),i(m,{to:{name:"invite-one"},class:"bg-gradient-to-b from-green-400 to-green-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-1.5 py-2 rounded-md"},{default:v(()=>[i(n,{icon:"envelope-open-text",class:"fa-fw text-xl"})]),_:1})]),t[22]||(t[22]=e("p",null,"Then watch that page to see when they accept their invite.",-1)),e("p",null,[t[1]||(t[1]=o(" (That page is also reachable from the Contacts ")),i(n,{icon:"users"}),t[2]||(t[2]=o(" page though the invitation ")),i(n,{icon:"envelope-open-text"}),t[3]||(t[3]=o(" icon.) "))]),t[23]||(t[23]=e("h1",{class:"mt-4 font-bold text-xl"},"Next Steps",-1)),t[24]||(t[24]=o(" Although not totally necessary, backups are important to understand. ")),e("div",c,[t[6]||(t[6]=e("h1",{class:"font-bold text-xl"},"Without a backup, you can lose data.",-1)),e("div",null,[e("p",null,[t[4]||(t[4]=o(" Exporting backups (from the Account ")),i(n,{icon:"circle-user"}),t[5]||(t[5]=o(" screen) is important for the case where they lose their device. This is especially true for the Identifier Seed: that is theirs and and theirs alone, and currently nobody else can recover it if they lose it. The good thing is that anyone can create a new account and simply inform their network of their new ID. "))])])]),t[25]||(t[25]=e("h1",{class:"mt-4 font-bold text-xl"},"Advanced",-1)),t[26]||(t[26]=o(" The following are optional steps for even more functionality. ")),e("div",S,[t[15]||(t[15]=e("h1",{class:"font-bold text-xl"},"Add Contact & Register",-1)),e("p",null,[t[7]||(t[7]=o(" You share even more information such as your picture and name when you share with your QR code at these links: ")),i(n,{icon:"qrcode"})]),t[16]||(t[16]=e("p",null," Scanning those with your cameras will automatically register people and add them to each other's contact lists. ",-1)),t[17]||(t[17]=e("p",null," The following are more detailed manual steps: ",-1)),e("div",null,[t[12]||(t[12]=e("p",null," 1) Have them follow their yellow prompts. ",-1)),e("p",null,[t[8]||(t[8]=o(" 2) Scan their QR, or have them tap on it to copy their info and send it to you. Then you can add them to your Contacts ")),i(n,{icon:"users"})]),e("p",null,[t[9]||(t[9]=o(" 3) You can register them at their info page ")),i(n,{icon:"circle-info"}),t[10]||(t[10]=o(" and click on the register button ")),i(n,{icon:"person-circle-question"})]),e("p",null,[t[11]||(t[11]=o(" 4) Add yourself to their Contacts ")),i(n,{icon:"users"})])]),t[18]||(t[18]=e("h1",{class:"font-bold text-xl"},"Install",-1)),t[19]||(t[19]=e("div",null,[e("p",null,' Have them visit TimeSafari.app in a browser, preferably Chrome or Safari, and then look for the "Install" selection which adds this app to their desktop. This enables other things, like the ability to "share" a photo from their device directly to Time Safari, and it makes notifications more reliable. ')],-1)),t[20]||(t[20]=e("h1",{class:"font-bold text-xl"},"Enable Notifications",-1)),e("div",null,[e("p",null,[t[13]||(t[13]=o(" Enable notifications from the Account page ")),i(n,{icon:"circle-user"}),t[14]||(t[14]=o(". Those notifications might show up on the device depending on your settings. For the most reliable habits, set an alarm or do some other ritual to record gratitude every day. "))])])])])}const O=g(p,[["render",V]]);export{O as default}; |
@ -0,0 +1 @@ |
|||||
|
.dialog-overlay{z-index:50;position:fixed;top:0;left:0;right:0;bottom:0;background-color:#00000080;display:flex;justify-content:center;align-items:center;padding:1.5rem}#dialogFeedFilters.dialog-overlay{z-index:100;overflow:scroll}.dialog{background-color:#fff;padding:1rem;border-radius:.5rem;width:100%;max-width:500px} |
@ -0,0 +1 @@ |
|||||
|
var D=Object.defineProperty;var I=(i,t,e)=>t in i?D(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var l=(i,t,e)=>I(i,typeof t!="symbol"?t+"":t,e);import{V as C,f as S,e as b,M as A,a9 as $,C as B,_ as V,g as y,h as f,i as p,j as s,w as g,k as m,t as _,l as N,F as k,z as T,x as r,p as h}from"./index-BLqts8WY.js";import{Q as P}from"./QuickNav-DgCyvgDx.js";import{aB as j}from"./index-MyY_xqVN.js";import"./index-CsfPLOYu.js";var E=Object.defineProperty,Y=Object.getOwnPropertyDescriptor,O=(i,t,e,o)=>{for(var n=o>1?void 0:o?Y(t,e):t,a=i.length-1,u;a>=0;a--)(u=i[a])&&(n=(o?u(t,e,n):u(n))||n);return o&&n&&E(t,e,n),n};let v=class extends C{constructor(){super(...arguments);l(this,"$notify");l(this,"activeDid","");l(this,"activeDidInIdentities",!1);l(this,"apiServer","");l(this,"apiServerInput","");l(this,"otherIdentities",[])}async created(){try{const e=await S();this.activeDid=e.activeDid||"",this.apiServer=e.apiServer||"",this.apiServerInput=e.apiServer||"";const o=await j();for(let n=0;n<o.length;n++){const a=o[n];this.otherIdentities.push({id:a.id,did:a.did}),a.did&&this.activeDid===a.did&&(this.activeDidInIdentities=!0)}}catch(e){this.$notify({group:"alert",type:"danger",title:"Error Loading Accounts",text:"Clear your cache and start over (after data backup)."},-1),console.error("Telling user to clear cache at page create because:",e)}}async switchAccount(e){e==="0"&&(e=void 0),await b.open(),await b.settings.update(A,{activeDid:e}),this.$router.push({name:"account"})}async deleteAccount(e){this.$notify({group:"modal",type:"confirm",title:"Delete Identity?",text:"Are you sure you want to erase this identity? (There is no undo. You may want to select it and back it up just in case.)",onYes:async()=>{await(await $).accounts.delete(e),this.otherIdentities=this.otherIdentities.filter(n=>n.id!==e)}},-1)}notifyCannotDelete(){this.$notify({group:"alert",type:"warning",title:"Cannot Delete",text:"You cannot delete the active identity. Set to another identity or 'no identity' first."},3e3)}};v=O([B({components:{QuickNav:P}})],v);const Q={id:"Content",class:"p-6 pb-24 max-w-3xl mx-auto"},F={id:"ViewBreadcrumb",class:"mb-8"},M={class:"text-lg text-center font-light relative px-7"},L={key:0,class:"block bg-slate-100 rounded-md flex items-center px-4 py-3 mb-4"},q={class:"text-sm text-slate-500"},z={class:"overflow-hidden truncate"},G={class:"mb-4"},K={class:"flex items-center justify-between mb-2"},R=["onClick"],H={class:"flex-grow overflow-hidden"},J={class:"text-sm text-slate-500 truncate"};function U(i,t,e,o,n,a){const u=y("QuickNav"),d=y("fa"),x=y("router-link");return r(),f(k,null,[p(u,{selected:"Profile"}),s("section",Q,[s("div",F,[s("h1",M,[p(x,{to:{name:"account"},class:"text-lg text-center px-2 py-1 absolute -left-2 -top-1"},{default:g(()=>[p(d,{icon:"chevron-left",class:"fa-fw"})]),_:1}),t[2]||(t[2]=m(" Switch Identity "))])]),i.activeDid&&!i.activeDidInIdentities?(r(),f("div",L,[p(d,{icon:"circle-check",class:"fa-fw text-red-600 text-xl mr-3"}),s("div",q,[s("div",z,[t[3]||(t[3]=s("b",null,"ID:",-1)),t[4]||(t[4]=m()),s("code",null,_(i.activeDid),1)]),t[5]||(t[5]=s("b",null,"There is a data corruption error: this identity is selected but it is not in storage. You cannot send any more claims with this identity until you import the seed again. This may require reinstalling the app; if you know how, you can also clear out the TimeSafariAccounts IndexedDB. Be sure to back up all your Settings & Contacts first.",-1))])])):N("",!0),s("ul",G,[(r(!0),f(k,null,T(i.otherIdentities,c=>(r(),f("li",{key:c.did},[s("div",K,[s("div",{class:"flex flex-grow items-center bg-slate-100 rounded-md px-4 py-3 mb-2 truncate cursor-pointer",onClick:w=>i.switchAccount(c.did)},[c.did===i.activeDid?(r(),h(d,{key:0,icon:"circle-check",class:"fa-fw text-blue-600 text-xl mr-3"})):(r(),h(d,{key:1,icon:"circle",class:"fa-fw text-slate-400 text-xl mr-3"})),s("span",H,[s("div",J,[t[6]||(t[6]=s("b",null,"ID:",-1)),t[7]||(t[7]=m()),s("code",null,_(c.did),1)])])],8,R),s("div",null,[c.did===i.activeDid?(r(),h(d,{key:0,icon:"trash-can",class:"text-slate-400 text-xl ml-2 mr-2 cursor-pointer",onClick:t[0]||(t[0]=w=>i.notifyCannotDelete())})):(r(),h(d,{key:1,icon:"trash-can",class:"text-red-600 text-xl ml-2 mr-2 cursor-pointer",onClick:w=>i.deleteAccount(c.id)},null,8,["onClick"]))])])]))),128))]),p(x,{id:"start-link",to:{name:"start"},class:"block text-center text-lg font-bold uppercase bg-gradient-to-b from-blue-400 to-blue-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-2 py-3 rounded-md mb-2"},{default:g(()=>t[8]||(t[8]=[m(" Add Another Identity… ")])),_:1}),s("a",{href:"#",class:"block w-full text-center text-md uppercase bg-gradient-to-b from-slate-400 to-slate-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-1.5 py-2 rounded-md mb-8",onClick:t[1]||(t[1]=c=>i.switchAccount("0"))}," No Identity ")])],64)}const st=V(v,[["render",U]]);export{st as default}; |
@ -0,0 +1 @@ |
|||||
|
var v=Object.defineProperty;var y=(t,e,o)=>e in t?v(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o;var r=(t,e,o)=>y(t,typeof e!="symbol"?e+"":e,o);import{r as _,C as x,V as w,a as k,_ as C,g as m,x as d,h as f,j as l,i as g,k as D,m as U,s as P,p as u,l as $,F as I}from"./index-BLqts8WY.js";import{P as T}from"./PhotoDialog-Dn3GjI9b.js";var V=Object.defineProperty,B=Object.getOwnPropertyDescriptor,F=(t,e,o,s)=>{for(var a=s>1?void 0:s?B(e,o):e,p=t.length-1,i;p>=0;p--)(i=t[p])&&(a=(s?i(e,o,a):i(a))||a);return s&&a&&V(e,o,a),a};const b=_();let h=class extends w{constructor(){super(...arguments);r(this,"$notify");r(this,"claimType");r(this,"crop",!1);r(this,"imageCallback",()=>{});r(this,"imageUrl");r(this,"visible",!1)}open(o,s,a){this.claimType=s,this.crop=!!a,this.imageCallback=o,this.visible=!0}openPhotoDialog(o,s){this.visible=!1,this.$refs.photoDialog.open(this.imageCallback,this.claimType,this.crop,o,s)}async uploadImageFile(o){this.visible=!1,b.value=o.target.files[0];const s=b.value;if(s!=null){const a=new FileReader;a.onload=async p=>{var c;const i=(c=p.target)==null?void 0:c.result;if(i){const n=new Blob([new Uint8Array(i)],{type:s.type});this.openPhotoDialog(n,s.name)}},a.readAsArrayBuffer(s)}}async acceptUrl(){if(this.visible=!1,this.crop)try{const o=await k.get(this.imageUrl,{responseType:"blob"}),a=new URL(this.imageUrl).pathname.split("/").pop();this.$refs.photoDialog.open(this.imageCallback,this.claimType,this.crop,o.data,a)}catch{this.$notify({group:"alert",type:"danger",title:"Error",text:"There was an error retrieving that image."},5e3)}else this.imageCallback(this.imageUrl)}close(){this.visible=!1}};h=F([x({components:{PhotoDialog:T}})],h);const N={key:0,class:"dialog-overlay z-[60]"},R={class:"dialog relative"},A={class:"text-lg text-center font-light relative z-50"},M={class:"text-center mt-8"},O={class:""},j={class:"mt-4"},z={class:"mt-4"},E={class:"mt-2"},L={class:"ml-2"};function H(t,e,o,s,a,p){const i=m("fa"),c=m("PhotoDialog");return d(),f(I,null,[t.visible?(d(),f("div",N,[l("div",R,[l("div",A,[e[4]||(e[4]=l("div",{id:"ViewHeading",class:"text-center font-bold absolute top-0 left-0 right-0 px-4 py-0.5 bg-black/50 text-white leading-none"}," Add Photo ",-1)),l("div",{class:"text-lg text-center px-2 py-0.5 leading-none absolute right-0 top-0 text-white",onClick:e[0]||(e[0]=n=>t.close())},[g(i,{icon:"xmark",class:"w-[1em]"})])]),l("div",null,[l("div",M,[l("div",O,[g(i,{icon:"camera",class:"bg-gradient-to-b from-blue-400 to-blue-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-2 py-2 rounded-md",onClick:e[1]||(e[1]=n=>t.openPhotoDialog())})]),l("div",j,[l("input",{type:"file",onChange:e[2]||(e[2]=(...n)=>t.uploadImageFile&&t.uploadImageFile(...n))},null,32)]),l("div",z,[l("span",E,[e[5]||(e[5]=D(" ... or paste a URL: ")),U(l("input",{type:"text","onUpdate:modelValue":e[3]||(e[3]=n=>t.imageUrl=n),class:"border-2"},null,512),[[P,t.imageUrl]])]),l("span",L,[t.imageUrl?(d(),u(i,{key:0,icon:"check",class:"bg-gradient-to-b from-blue-400 to-blue-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-2 py-2 rounded-md cursor-pointer",onClick:t.acceptUrl},null,8,["onClick"])):(d(),u(i,{key:1,icon:"check",class:"text-white bg-white px-2 py-2"}))])])])])])])):$("",!0),g(c,{ref:"photoDialog"},null,512)],64)}const Q=C(h,[["render",H]]);export{Q as I}; |
@ -0,0 +1 @@ |
|||||
|
.dialog-overlay{z-index:50;position:fixed;top:0;left:0;right:0;bottom:0;background-color:#00000080;display:flex;justify-content:center;align-items:center;padding:1.5rem}.dialog{background-color:#fff;padding:1rem;border-radius:.5rem;width:100%;max-width:700px} |
@ -0,0 +1 @@ |
|||||
|
var w=Object.defineProperty;var x=(t,e,s)=>e in t?w(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s;var n=(t,e,s)=>x(t,typeof e!="symbol"?e+"":e,s);import{V as y,A as f,f as E,a9 as A,e as h,M as P,C,_ as S,g as k,h as u,j as o,i as I,k as m,m as c,s as g,o as T,l as v,x as p}from"./index-BLqts8WY.js";import{aC as O,G as V,aD as $,aE as N}from"./index-MyY_xqVN.js";import"./index-CsfPLOYu.js";var _=Object.defineProperty,D=Object.getOwnPropertyDescriptor,R=(t,e,s,r)=>{for(var i=r>1?void 0:r?D(e,s):e,l=t.length-1,d;l>=0;l--)(d=t[l])&&(i=(r?d(e,s,i):d(i))||i);return r&&i&&_(e,s,i),i};let b=class extends y{constructor(){super(...arguments);n(this,"TEST_USER_0_MNEMONIC","rigid shrug mobile smart veteran half all pond toilet brave review universe ship congress found yard skate elite apology jar uniform subway slender luggage");n(this,"UPORT_DERIVATION_PATH","m/7696500'/0'/0'/0'");n(this,"AppString",f);n(this,"$notify");n(this,"apiServer","");n(this,"address","");n(this,"derivationPath",O);n(this,"mnemonic","");n(this,"numAccounts",0);n(this,"privateHex","");n(this,"publicHex","");n(this,"showAdvanced",!1);n(this,"shouldErase",!1)}async created(){this.numAccounts=await V();const s=await E();this.apiServer=s.apiServer||""}onCancelClick(){this.$router.back()}isNotProdServer(){return this.apiServer!==f.PROD_ENDORSER_API_SERVER}async fromMnemonic(){const s=this.mnemonic.trim().toLowerCase();try{[this.address,this.privateHex,this.publicHex]=$(s,this.derivationPath);const r=N(this.address,this.publicHex,this.privateHex,this.derivationPath),i=await A;this.shouldErase&&await i.accounts.clear(),await i.accounts.add({dateCreated:new Date().toISOString(),derivationPath:this.derivationPath,did:r.did,identity:JSON.stringify(r),mnemonic:s,publicKeyHex:r.keys[0].publicKeyHex}),await h.open(),await h.settings.update(P,{activeDid:r.did}),this.$router.push({name:"account"})}catch(r){console.error("Error saving mnemonic & updating settings:",r),r=="Error: invalid mnemonic"?this.$notify({group:"alert",type:"danger",title:"Invalid Mnemonic",text:"Please check your mnemonic and try again."},-1):this.$notify({group:"alert",type:"danger",title:"Error",text:"Got an error creating that identifier."},-1)}}};b=R([C({components:{}})],b);const H={id:"Content",class:"p-6 pb-24 max-w-3xl mx-auto"},M={id:"ViewBreadcrumb",class:"mb-8"},U={class:"text-lg text-center font-light relative px-7"},B={key:0},j={class:"ml-4"},F={key:0,class:"mt-4"},G={key:1,class:"mt-4 text-blue-500"},K={class:"mt-8"},L={class:"grid grid-cols-1 sm:grid-cols-2 gap-2"};function J(t,e,s,r,i,l){const d=k("fa");return p(),u("section",H,[o("div",M,[o("h1",U,[o("button",{onClick:e[0]||(e[0]=a=>t.$router.go(-1)),class:"text-lg text-center px-2 py-1 absolute -left-2 -top-1"},[I(d,{icon:"chevron-left"})]),e[9]||(e[9]=m(" Import Existing Identifier "))])]),e[13]||(e[13]=o("p",{class:"text-center text-xl mb-4 font-light"}," Enter your seed phrase below to import your identifier on this device. ",-1)),c(o("textarea",{id:"seed-input",type:"text",placeholder:"Seed Phrase",class:"block w-full rounded border border-slate-400 mb-4 px-3 py-2","onUpdate:modelValue":e[1]||(e[1]=a=>t.mnemonic=a)},null,512),[[g,t.mnemonic]]),o("h3",{class:"text-sm uppercase font-semibold mb-3",onClick:e[2]||(e[2]=a=>t.showAdvanced=!t.showAdvanced)}," Advanced "),t.showAdvanced?(p(),u("div",B,[e[12]||(e[12]=m(" Enter a custom derivation path ")),c(o("input",{type:"text",class:"block w-full rounded border border-slate-400 mb-2 px-3 py-2","onUpdate:modelValue":e[3]||(e[3]=a=>t.derivationPath=a)},null,512),[[g,t.derivationPath]]),o("span",j,[e[10]||(e[10]=m(" For previous uPort or Endorser users, ")),o("a",{onClick:e[4]||(e[4]=a=>t.derivationPath=t.UPORT_DERIVATION_PATH),class:"text-blue-500"}," click here to use that value. ")]),t.numAccounts==1?(p(),u("div",F,[c(o("input",{type:"checkbox",class:"mr-2","onUpdate:modelValue":e[5]||(e[5]=a=>t.shouldErase=a)},null,512),[[T,t.shouldErase]]),e[11]||(e[11]=o("label",null,"Erase the previous identifier.",-1))])):v("",!0),t.isNotProdServer()?(p(),u("div",G,[o("button",{onClick:e[6]||(e[6]=a=>t.mnemonic=t.TEST_USER_0_MNEMONIC)}," Use mnemonic for Test User #0 ")])):v("",!0)])):v("",!0),o("div",K,[o("div",L,[o("button",{onClick:e[7]||(e[7]=a=>t.fromMnemonic()),class:"block w-full text-center text-lg font-bold uppercase bg-gradient-to-b from-blue-400 to-blue-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-2 py-3 rounded-md"}," Import "),o("button",{onClick:e[8]||(e[8]=a=>t.onCancelClick()),type:"button",class:"block w-full text-center text-md uppercase bg-gradient-to-b from-slate-400 to-slate-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-1.5 py-2 rounded-md"}," Cancel ")])])])}const X=S(b,[["render",J]]);export{X as default}; |
@ -0,0 +1 @@ |
|||||
|
var b=Object.defineProperty;var _=(t,e,s)=>e in t?b(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s;var p=(t,e,s)=>_(t,typeof e!="symbol"?e+"":e,s);import{V as g,a9 as w,e as x,M as D,C as A,_ as C,g as k,h as u,j as i,i as P,k as I,l as E,F as O,z as $,x as l,p as f,t as F}from"./index-BLqts8WY.js";import{aC as V,aF as T,aG as B,aD as N,aE as S}from"./index-MyY_xqVN.js";import"./index-CsfPLOYu.js";var j=Object.defineProperty,H=Object.getOwnPropertyDescriptor,M=(t,e,s,o)=>{for(var n=o>1?void 0:o?H(e,s):e,c=t.length-1,r;c>=0;c--)(r=t[c])&&(n=(o?r(e,s,n):r(n))||n);return o&&n&&j(e,s,n),n};let h=class extends g{constructor(){super(...arguments);p(this,"derivationPath",V);p(this,"didArrays",[]);p(this,"selectedArrayFirstDid","")}async mounted(){const e=await T(),s={};e.forEach(o=>{const n=s[o.mnemonic]||[];s[o.mnemonic]=n.concat([o.did])}),this.didArrays=Object.values(s),this.selectedArrayFirstDid=this.didArrays[0][0]}onCancelClick(){this.$router.back()}switchAccount(e){this.selectedArrayFirstDid=e}async incrementDerivation(){const e=this.didArrays.find(d=>d[0]===this.selectedArrayFirstDid)||[],s=await w,o=await s.accounts.where("did").anyOf(...e).toArray(),n=o[0];o.slice(1).forEach(d=>{d.derivationPath>n.derivationPath&&(n.derivationPath=d.derivationPath)});const c=B(n.derivationPath),r=n.mnemonic,[a,v,y]=N(r,c),m=S(a,y,v,c);try{await s.accounts.add({dateCreated:new Date().toISOString(),derivationPath:c,did:m.did,identity:JSON.stringify(m),mnemonic:r,publicKeyHex:m.keys[0].publicKeyHex}),await x.open(),await x.settings.update(D,{activeDid:m.did}),this.$router.push({name:"account"})}catch(d){console.error("Error saving mnemonic & updating settings:",d)}}};h=M([A({components:{}})],h);const K={id:"Content",class:"p-6 pb-24 max-w-3xl mx-auto"},R={id:"ViewBreadcrumb",class:"mb-8"},G={class:"text-lg text-center font-light relative px-7"},L={key:0},W={class:"mb-4"},z=["onClick"],J={class:"overflow-hidden"},U={class:"text-sm text-slate-500 truncate"},Y={class:"mt-8"},q={class:"grid grid-cols-1 sm:grid-cols-2 gap-2"};function Q(t,e,s,o,n,c){const r=k("fa");return l(),u("section",K,[i("div",R,[i("h1",G,[i("button",{onClick:e[0]||(e[0]=a=>t.$router.go(-1)),class:"text-lg text-center px-2 py-1 absolute -left-2 -top-1"},[P(r,{icon:"chevron-left"})]),e[3]||(e[3]=I(" Derive from Existing Identity "))])]),i("div",null,[e[4]||(e[4]=i("p",{class:"text-center text-xl mb-4 font-light"}," Will increment the maximum known derivation path from the existing seed. ",-1)),t.didArrays.length>1?(l(),u("p",L," Choose existing DIDs from same seed phrase to compute derivation. ")):E("",!0),i("ul",W,[(l(!0),u(O,null,$(t.didArrays,a=>(l(),u("li",{class:"block bg-slate-100 rounded-md flex items-center px-4 py-3 mb-2",key:a[0],onClick:v=>t.switchAccount(a[0])},[a[0]==t.selectedArrayFirstDid?(l(),f(r,{key:0,icon:"circle",class:"fa-fw text-blue-400 text-xl mr-3"})):(l(),f(r,{key:1,icon:"circle",class:"fa-fw text-slate-400 text-xl mr-3"})),i("span",J,[i("div",U,[i("code",null,F(a.join(",")),1)])])],8,z))),128))])]),i("div",Y,[i("div",q,[i("button",{onClick:e[1]||(e[1]=a=>t.incrementDerivation()),class:"block w-full text-center text-lg font-bold uppercase bg-gradient-to-b from-blue-400 to-blue-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-2 py-3 rounded-md"}," Increment and Import "),i("button",{onClick:e[2]||(e[2]=a=>t.onCancelClick()),type:"button",class:"block w-full text-center text-md uppercase bg-gradient-to-b from-slate-400 to-slate-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-1.5 py-2 rounded-md"}," Cancel ")])])])}const se=C(h,[["render",Q]]);export{se as default}; |
@ -0,0 +1 @@ |
|||||
|
var d=Object.defineProperty;var p=(r,e,t)=>e in r?d(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var a=(r,e,t)=>p(r,typeof e!="symbol"?e+"":e,t);import{aa as f,an as h,C as u,V as _,_ as v,x as b,h as I,a1 as x,j as $}from"./index-BLqts8WY.js";var m=Object.defineProperty,y=Object.getOwnPropertyDescriptor,l=(r,e,t,n)=>{for(var s=n>1?void 0:n?y(e,t):e,i=r.length-1,c;i>=0;i--)(c=r[i])&&(s=(n?c(e,t,s):c(s))||s);return n&&s&&m(e,t,s),s};let o=class extends _{constructor(){super(...arguments);a(this,"distance");a(this,"observer");a(this,"isInitialRender",!0)}updated(){if(!this.observer){const t={root:null,rootMargin:`0px 0px ${this.distance}px 0px`,threshold:1};this.observer=new IntersectionObserver(this.handleIntersection,t),this.observer.observe(this.$refs.sentinel)}}beforeUnmount(){this.observer&&this.observer.disconnect()}handleIntersection(t){return!!t[0].isIntersecting}};l([f({default:200})],o.prototype,"distance",2);l([h("reached-bottom")],o.prototype,"handleIntersection",1);o=l([u],o);const O={ref:"scrollContainer"},C={ref:"sentinel",style:{height:"1px"}};function P(r,e,t,n,s,i){return b(),I("div",O,[x(r.$slots,"default"),$("div",C,null,512)],512)}const w=v(o,[["render",P]]);export{w as I}; |
@ -0,0 +1 @@ |
|||||
|
var g=Object.defineProperty;var w=(i,t,e)=>t in i?g(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var r=(i,t,e)=>w(i,typeof t!="symbol"?t+"":t,e);import{V as y,e as I,f as k,y as x,C as b,_ as V,g as u,h as p,i as h,j as c,m as $,s as C,l as d,k as D,F as A,x as l}from"./index-BLqts8WY.js";import{Q as S}from"./QuickNav-DgCyvgDx.js";import{ag as J,af as N,x as O}from"./index-MyY_xqVN.js";import"./index-CsfPLOYu.js";var T=Object.defineProperty,E=Object.getOwnPropertyDescriptor,P=(i,t,e,o)=>{for(var n=o>1?void 0:o?E(t,e):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(n=(o?s(t,e,n):s(n))||n);return o&&n&&T(t,e,n),n};let v=class extends y{constructor(){super(...arguments);r(this,"$notify");r(this,"acceptInput",!1);r(this,"activeDid","");r(this,"apiServer","");r(this,"checkingInvite",!0);r(this,"inputJwt","")}async mounted(){this.checkingInvite=!0,await I.open();const e=await k();this.activeDid=e.activeDid||"",this.apiServer=e.apiServer||"",this.activeDid||(this.activeDid=await J());const o=window.location.pathname.substring(19);await this.processInvite(o,!1),this.checkingInvite=!1}async processInvite(e,o){this.checkingInvite=!0;try{let n=e??"";const a=e.match(/(https?:\/\/[^\s]+)/);if(a&&a[1]){const s=a[1].match(/\/invite-one-accept\/([^?]+)/);s&&s[1]&&(n=s[1])}else{const s=e.match(/(ey[\w.-]+)/);s&&s[1]&&(n=s[1])}n?(N(n),this.$router.push({name:"contacts",query:{inviteJwt:n}})):(o&&this.$notify({group:"alert",type:"danger",title:"Missing invite",text:"There was no invite. Paste the entire text that has the link."},5e3),this.acceptInput=!0)}catch(n){const a="Error accepting invite: "+O(n);x(a,!0),o&&this.$notify({group:"alert",type:"danger",title:"Error",text:"There was an error processing that invite."},3e3),this.acceptInput=!0}this.checkingInvite=!1}async checkInvite(e){(e.endsWith("invite-one-accept")||e.endsWith("invite-one-accept/"))&&this.$notify({group:"alert",type:"danger",title:"Error",text:"That is only part of the invite link; it's missing data at the end. Try another way to get the full link."},5e3)}};v=P([b({components:{QuickNav:S}})],v);const M={id:"Content",class:"p-6 pb-24 max-w-3xl mx-auto"},F={key:0,class:"text-center mt-4"},Q={key:1,class:"text-lg text-center font-light relative px-7"};function B(i,t,e,o,n,a){const s=u("QuickNav"),f=u("fa");return l(),p(A,null,[h(s,{selected:"Invite"}),c("section",M,[i.acceptInput?(l(),p("div",F,[t[3]||(t[3]=c("p",null,"That invitation did not work.",-1)),t[4]||(t[4]=c("p",{class:"mt-2"}," Go back to your invite message and copy the entire text, then paste it here. ",-1)),t[5]||(t[5]=c("p",{class:"mt-2"}," If the link looks correct, try Chrome. (For example, iOS may have cut off the invite data, or it may have shown a preview that stole your invite.) If it still complains, you may need the person who invited you to send a new one. ",-1)),$(c("textarea",{"onUpdate:modelValue":t[0]||(t[0]=m=>i.inputJwt=m),placeholder:"Paste invitation...",class:"mt-4 border-2 border-gray-300 p-2 rounded",cols:"30",onInput:t[1]||(t[1]=()=>i.checkInvite(i.inputJwt))},null,544),[[C,i.inputJwt]]),t[6]||(t[6]=c("br",null,null,-1)),c("button",{onClick:t[2]||(t[2]=()=>i.processInvite(i.inputJwt,!0)),class:"ml-2 p-2 bg-blue-500 text-white rounded"}," Submit ")])):d("",!0),i.checkingInvite?(l(),p("div",Q,[h(f,{icon:"spinner",class:"fa-spin-pulse"}),t[7]||(t[7]=D(" Loading… "))])):d("",!0)])],64)}const z=V(v,[["render",B]]);export{z as default}; |
@ -0,0 +1 @@ |
|||||
|
var p=Object.defineProperty;var u=(t,e,s)=>e in t?p(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s;var d=(t,e,s)=>u(t,typeof e!="symbol"?e+"":e,s);import{V as m,f as b,e as f,M as g,C as v,_ as x,g as _,h as w,j as n,i as C,k as N,m as h,s as $,x as k}from"./index-BLqts8WY.js";var y=Object.defineProperty,V=Object.getOwnPropertyDescriptor,E=(t,e,s,a)=>{for(var o=a>1?void 0:a?V(e,s):e,i=t.length-1,l;i>=0;i--)(l=t[i])&&(o=(a?l(e,s,o):l(o))||o);return a&&o&&y(e,s,o),o};let c=class extends m{constructor(){super(...arguments);d(this,"givenName","")}async created(){const s=await b();this.givenName=(s.firstName||"")+(s.lastName?` ${s.lastName}`:"")}async onClickSaveChanges(){await f.settings.update(g,{firstName:this.givenName,lastName:""}),this.$router.back()}onClickCancel(){this.$router.back()}};c=E([v({components:{}})],c);const S={id:"Content",class:"p-6 pb-24 max-w-3xl mx-auto"},A={id:"ViewBreadcrumb",class:"mb-8"},T={class:"text-lg text-center font-light relative px-7"},B={class:"mt-8"},O={class:"grid grid-cols-1 sm:grid-cols-2 gap-2"};function P(t,e,s,a,o,i){const l=_("fa");return k(),w("section",S,[n("div",A,[n("h1",T,[n("button",{onClick:e[0]||(e[0]=r=>t.$router.go(-1)),class:"text-lg text-center px-2 py-1 absolute -left-2 -top-1"},[C(l,{icon:"chevron-left",class:"fa-fw"})]),e[4]||(e[4]=N(" Edit Identity "))])]),h(n("input",{type:"text",placeholder:"Name",class:"block w-full rounded border border-slate-400 mb-4 px-3 py-2","onUpdate:modelValue":e[1]||(e[1]=r=>t.givenName=r)},null,512),[[$,t.givenName]]),n("div",B,[n("div",O,[n("button",{type:"button",class:"block w-full text-center text-lg font-bold uppercase bg-gradient-to-b from-blue-400 to-blue-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-2 py-3 rounded-md mb-2",onClick:e[2]||(e[2]=r=>t.onClickSaveChanges())}," Save Changes "),n("button",{type:"button",class:"block w-full text-center text-md uppercase bg-gradient-to-b from-slate-400 to-slate-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-2 py-3 rounded-md mb-2",onClick:e[3]||(e[3]=r=>t.onClickCancel())}," Cancel ")])])])}const I=x(c,[["render",P]]);export{I as default}; |
@ -0,0 +1 @@ |
|||||
|
var v=Object.defineProperty;var x=(t,e,s)=>e in t?v(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s;var u=(t,e,s)=>x(t,typeof e!="symbol"?e+"":e,s);import"./dexie-export-import-B7Ze1sjn.js";import{V as g,C as _,_ as w,g as m,h as d,i as l,j as n,F as b,x as f}from"./index-BLqts8WY.js";import{ag as y}from"./index-MyY_xqVN.js";import{Q as C}from"./QuickNav-DgCyvgDx.js";import"./index-CsfPLOYu.js";var N=Object.defineProperty,V=Object.getOwnPropertyDescriptor,$=(t,e,s,i)=>{for(var o=i>1?void 0:i?V(e,s):e,r=t.length-1,a;r>=0;r--)(a=t[r])&&(o=(i?a(e,s,o):a(o))||o);return i&&o&&N(e,s,o),o};let c=class extends g{constructor(){super(...arguments);u(this,"loading",!0)}async mounted(){await y(),this.loading=!1,setTimeout(()=>{this.$router.push({name:"home"})},1e3)}};c=$([_({components:{QuickNav:C}})],c);const h={id:"Content",class:"p-6 pb-24 max-w-3xl mx-auto"},I={class:"mb-8"},j={class:"text-lg text-center font-light relative px-7"},k={class:"flex justify-center py-12"},O={key:0},P={key:1};function Q(t,e,s,i,o,r){const a=m("QuickNav"),p=m("fa");return f(),d(b,null,[l(a),n("section",h,[n("div",I,[n("div",j,[n("h1",{class:"text-lg text-center px-2 py-1 absolute -left-2 -top-1",onClick:e[0]||(e[0]=A=>t.$router.back())},[l(p,{icon:"chevron-left",class:"fa-fw"})])]),e[1]||(e[1]=n("h1",{id:"ViewHeading",class:"text-4xl text-center font-light pt-4 mb-8"}," Your Identity ",-1))]),n("div",k,[e[4]||(e[4]=n("div",null,null,-1)),t.loading?(f(),d("div",O,[e[2]||(e[2]=n("span",{class:"text-xl"},"Creating... ",-1)),l(p,{icon:"spinner",class:"fa-spin fa-spin-pulse",color:"green",size:"128"})])):(f(),d("div",P,[e[3]||(e[3]=n("span",{class:"text-xl"},"Created!",-1)),l(p,{icon:"burst",class:"fa-beat px-12",color:"green",style:{"--fa-animation-duration":"1s","--fa-animation-direction":"reverse","--fa-animation-iteration-count":"1","--fa-beat-scale":"6"}})])),e[5]||(e[5]=n("div",null,null,-1))])])],64)}const T=w(c,[["render",Q]]);export{T as default}; |
@ -0,0 +1 @@ |
|||||
|
.dialog-overlay{z-index:40;position:fixed;top:0;left:0;right:0;bottom:0;background-color:#00000080;display:flex;justify-content:center;align-items:center;padding:1.5rem}.dialog{background-color:#fff;padding:1rem;border-radius:.5rem;width:100%;max-width:500px} |
@ -0,0 +1 @@ |
|||||
|
.dialog-overlay{z-index:60;position:fixed;top:0;left:0;right:0;bottom:0;background-color:#00000080;display:flex;justify-content:center;align-items:center;padding:1.5rem}.dialog{background-color:#fff;padding:1rem;border-radius:.5rem;width:100%;max-width:700px}.mirror-video{transform:scaleX(-1);-webkit-transform:scaleX(-1);-moz-transform:scaleX(-1);-ms-transform:scaleX(-1);-o-transform:scaleX(-1)} |