├── .gitignore ├── .vscode └── extensions.json ├── LICENSE ├── README.md ├── android ├── .gitignore ├── app │ ├── .gitignore │ ├── build.gradle │ ├── capacitor.build.gradle │ ├── proguard-rules.pro │ ├── release │ │ └── output-metadata.json │ └── src │ │ ├── androidTest │ │ └── java │ │ │ └── com │ │ │ └── getcapacitor │ │ │ └── myapp │ │ │ └── ExampleInstrumentedTest.java │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ │ └── endless │ │ │ │ └── buzl │ │ │ │ └── uk │ │ │ │ └── MainActivity.java │ │ └── res │ │ │ ├── drawable-land-hdpi │ │ │ └── splash.png │ │ │ ├── drawable-land-ldpi │ │ │ └── splash.png │ │ │ ├── drawable-land-mdpi │ │ │ └── splash.png │ │ │ ├── drawable-land-night-hdpi │ │ │ └── splash.png │ │ │ ├── drawable-land-night-ldpi │ │ │ └── splash.png │ │ │ ├── drawable-land-night-mdpi │ │ │ └── splash.png │ │ │ ├── drawable-land-night-xhdpi │ │ │ └── splash.png │ │ │ ├── drawable-land-night-xxhdpi │ │ │ └── splash.png │ │ │ ├── drawable-land-night-xxxhdpi │ │ │ └── splash.png │ │ │ ├── drawable-land-xhdpi │ │ │ └── splash.png │ │ │ ├── drawable-land-xxhdpi │ │ │ └── splash.png │ │ │ ├── drawable-land-xxxhdpi │ │ │ └── splash.png │ │ │ ├── drawable-night │ │ │ └── splash.png │ │ │ ├── drawable-port-hdpi │ │ │ └── splash.png │ │ │ ├── drawable-port-ldpi │ │ │ └── splash.png │ │ │ ├── drawable-port-mdpi │ │ │ └── splash.png │ │ │ ├── drawable-port-night-hdpi │ │ │ └── splash.png │ │ │ ├── drawable-port-night-ldpi │ │ │ └── splash.png │ │ │ ├── drawable-port-night-mdpi │ │ │ └── splash.png │ │ │ ├── drawable-port-night-xhdpi │ │ │ └── splash.png │ │ │ ├── drawable-port-night-xxhdpi │ │ │ └── splash.png │ │ │ ├── drawable-port-night-xxxhdpi │ │ │ └── splash.png │ │ │ ├── drawable-port-xhdpi │ │ │ └── splash.png │ │ │ ├── drawable-port-xxhdpi │ │ │ └── splash.png │ │ │ ├── drawable-port-xxxhdpi │ │ │ └── splash.png │ │ │ ├── drawable-v24 │ │ │ └── ic_launcher_foreground.xml │ │ │ ├── drawable │ │ │ ├── ic_launcher_background.xml │ │ │ └── splash.png │ │ │ ├── layout │ │ │ └── activity_main.xml │ │ │ ├── mipmap-anydpi-v26 │ │ │ ├── ic_launcher.xml │ │ │ └── ic_launcher_round.xml │ │ │ ├── mipmap-hdpi │ │ │ ├── ic_launcher.png │ │ │ ├── ic_launcher_background.png │ │ │ ├── ic_launcher_foreground.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-ldpi │ │ │ ├── ic_launcher.png │ │ │ ├── ic_launcher_background.png │ │ │ ├── ic_launcher_foreground.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ ├── ic_launcher.png │ │ │ ├── ic_launcher_background.png │ │ │ ├── ic_launcher_foreground.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ ├── ic_launcher.png │ │ │ ├── ic_launcher_background.png │ │ │ ├── ic_launcher_foreground.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ ├── ic_launcher.png │ │ │ ├── ic_launcher_background.png │ │ │ ├── ic_launcher_foreground.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ ├── ic_launcher.png │ │ │ ├── ic_launcher_background.png │ │ │ ├── ic_launcher_foreground.png │ │ │ └── ic_launcher_round.png │ │ │ ├── values │ │ │ ├── ic_launcher_background.xml │ │ │ ├── strings.xml │ │ │ └── styles.xml │ │ │ └── xml │ │ │ └── file_paths.xml │ │ └── test │ │ └── java │ │ └── com │ │ └── getcapacitor │ │ └── myapp │ │ └── ExampleUnitTest.java ├── build.gradle ├── capacitor.settings.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── settings.gradle └── variables.gradle ├── capacitor.config.json ├── deploy.sh ├── docs ├── README.md ├── list.json ├── min │ ├── cumhuriyet.min.js │ ├── darknet-diaries.min.js │ ├── gaming-on-linux.min.js │ ├── gist.min.js │ ├── github-trending.min.js │ ├── github.min.js │ ├── hacker-news.min.js │ ├── koreaboo.min.js │ ├── quanta-magazine.min.js │ ├── reddit.min.js │ ├── slashdot.min.js │ ├── spotify-new-releases.min.js │ ├── spotify.min.js │ ├── test.min.js │ ├── wikipedia.min.js │ └── youtube-trending.min.js └── server │ └── docker-compose.yml ├── extractors ├── cumhuriyet.js ├── darknet-diaries.js ├── gaming-on-linux.js ├── gist.js ├── github-trending.js ├── github.js ├── hacker-news.js ├── koreaboo.js ├── quanta-magazine.js ├── reddit.js ├── slashdot.js ├── spotify-new-releases.js ├── spotify.js ├── test.js ├── wikipedia.js └── youtube-trending.js ├── icons ├── icon-128.webp ├── icon-192.webp ├── icon-256.webp ├── icon-48.webp ├── icon-512.webp ├── icon-72.webp └── icon-96.webp ├── images ├── screenshot_1.png ├── screenshot_2.png ├── screenshot_3.png ├── screenshot_4.png ├── screenshot_5.png └── screenshot_6.png ├── list.json ├── package-lock.json ├── package.json ├── resources └── logo.svg ├── server ├── .dockerignore ├── .gitignore ├── Dockerfile.node ├── Dockerfile.postgres ├── docker-compose-dev.yml ├── docker-compose.yml ├── index.js ├── install-extension.sql ├── js │ ├── db.js │ └── package.json ├── package.json └── www │ ├── index.html │ └── styles.css ├── src ├── assets │ └── styles.css ├── components │ ├── App.vue │ ├── Backup.vue │ ├── CommentedPost.vue │ ├── Discover.vue │ ├── Home.vue │ ├── Profile.vue │ ├── ProfileCommented.vue │ ├── ProfileSaved.vue │ ├── ProfileUpvoted.vue │ ├── SinglePost.vue │ ├── SingleShortPost.vue │ ├── Toolbar.vue │ └── UpvotedSavedPost.vue ├── index.html ├── js │ ├── main.js │ └── utils.js ├── manifest.webmanifest ├── pages │ ├── Feed.vue │ └── Post.vue ├── public │ ├── CNAME │ ├── cropped.svg │ ├── favicon.png │ ├── favicon.svg │ ├── favicon_white.svg │ └── images │ │ ├── bitmap.png │ │ ├── bitmap_dark.png │ │ ├── favicon.png │ │ └── feed.jpg ├── router │ └── index.js └── scss │ └── styles.scss ├── vite.config.js └── vue.config.js /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | pnpm-debug.log* 8 | lerna-debug.log* 9 | 10 | node_modules 11 | .DS_Store 12 | dist 13 | dist-ssr 14 | coverage 15 | *.local 16 | 17 | /cypress/videos/ 18 | /cypress/screenshots/ 19 | 20 | # Editor directories and files 21 | .vscode/* 22 | !.vscode/extensions.json 23 | .idea 24 | *.suo 25 | *.ntvs* 26 | *.njsproj 27 | *.sln 28 | *.sw? 29 | -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | "recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"] 3 | } 4 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |
2 | 3 | Endless Logo 4 | 5 |

Endless

6 |

7 | Unifying the social media experience 8 |
9 |

10 | GitHub Repo stars 11 | GitHub commit activity 12 | GitHub issues 13 | License 14 | Website 15 |
16 | Report Bug 17 | · 18 | Request Feature 19 |

20 |
21 | 22 | ## What is Endless? 23 | Endless is a social media curator that allows you to view all of your favorite websites in one place with a unified card-based interface. It allows for users to upvote, save and comment on posts from websites even if the website doesn't support it. 24 | 25 | ## Screenshots 26 |
27 | 28 | 29 | 30 | 31 | 32 |
33 | 34 | ## Installation 35 | Download the APK from [GitHub Releases](https://github.com/kaangiray26/endless/releases) and install it. 36 | 37 | ## Features 38 | * No account needed 39 | * Save posts to read later 40 | * Upvote and comment on posts 41 | * Remove upvotes and comments if needed 42 | * Fuzzy search on post titles 43 | * Backup and restore your data 44 | 45 | ## Supported Feeds 46 | - [x] Cumhuriyet 47 | - [x] Darknet Diaries 48 | - [x] GamingOnLinux 49 | - [x] GitHub Trending 50 | - [x] Hacker News 51 | - [x] Koreaboo 52 | - [x] Quanta Magazine 53 | - [x] Reddit 54 | - [x] Slashdot 55 | - [x] Spotify New Releases 56 | - [x] YouTube Trending 57 | - [x] Wikipedia 58 | 59 | ## Starting the server 60 | You can use the [docker-compose.yml](server/docker-compose.yml) file to start the server. 61 | 62 | ## How to contribute? 63 | You can contribute to Endless by adding support for new websites or by improving the existing codebase. If you want to add support for a new website, take a look at the existing extractors. Usually, each website has its own extractor with two methods inside the [extractors](https://github.com/kaangiray26/endless/tree/main/extractors) directory. If you want to improve the existing codebase, you can do so by creating a pull request. 64 | 65 | ## Extractors 66 | Take a look at the [extractor list](list.json) below to see which websites are supported at the moment. 67 | 68 | Prebuilt versions of the extractors are also located in the [min](https://github.com/kaangiray26/endless/tree/main/docs/min) directory. 69 | * For example: [Hacker News](min/hacker-news.min.js) 70 | 71 | ## Wiki 72 | > Coming soon 73 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | # Using Android gitignore template: https://github.com/github/gitignore/blob/HEAD/Android.gitignore 2 | 3 | # Built application files 4 | *.apk 5 | *.aar 6 | *.ap_ 7 | *.aab 8 | 9 | # Files for the ART/Dalvik VM 10 | *.dex 11 | 12 | # Java class files 13 | *.class 14 | 15 | # Generated files 16 | bin/ 17 | gen/ 18 | out/ 19 | # Uncomment the following line in case you need and you don't have the release build type files in your app 20 | # release/ 21 | 22 | # Gradle files 23 | .gradle/ 24 | build/ 25 | 26 | # Local configuration file (sdk path, etc) 27 | local.properties 28 | 29 | # Proguard folder generated by Eclipse 30 | proguard/ 31 | 32 | # Log Files 33 | *.log 34 | 35 | # Android Studio Navigation editor temp files 36 | .navigation/ 37 | 38 | # Android Studio captures folder 39 | captures/ 40 | 41 | # IntelliJ 42 | *.iml 43 | .idea/workspace.xml 44 | .idea/tasks.xml 45 | .idea/gradle.xml 46 | .idea/assetWizardSettings.xml 47 | .idea/dictionaries 48 | .idea/libraries 49 | # Android Studio 3 in .gitignore file. 50 | .idea/caches 51 | .idea/modules.xml 52 | # Comment next line if keeping position of elements in Navigation Editor is relevant for you 53 | .idea/navEditor.xml 54 | 55 | # Keystore files 56 | # Uncomment the following lines if you do not want to check your keystore files in. 57 | #*.jks 58 | #*.keystore 59 | 60 | # External native build folder generated in Android Studio 2.2 and later 61 | .externalNativeBuild 62 | .cxx/ 63 | 64 | # Google Services (e.g. APIs or Firebase) 65 | # google-services.json 66 | 67 | # Freeline 68 | freeline.py 69 | freeline/ 70 | freeline_project_description.json 71 | 72 | # fastlane 73 | fastlane/report.xml 74 | fastlane/Preview.html 75 | fastlane/screenshots 76 | fastlane/test_output 77 | fastlane/readme.md 78 | 79 | # Version control 80 | vcs.xml 81 | 82 | # lint 83 | lint/intermediates/ 84 | lint/generated/ 85 | lint/outputs/ 86 | lint/tmp/ 87 | # lint/reports/ 88 | 89 | # Android Profiling 90 | *.hprof 91 | 92 | # Cordova plugins for Capacitor 93 | capacitor-cordova-android-plugins 94 | 95 | # Copied web assets 96 | app/src/main/assets/public 97 | 98 | # Generated Config files 99 | app/src/main/assets/capacitor.config.json 100 | app/src/main/assets/capacitor.plugins.json 101 | app/src/main/res/xml/config.xml 102 | -------------------------------------------------------------------------------- /android/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build/* 2 | !/build/.npmkeep 3 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | namespace "endless.buzl.uk" 5 | compileSdkVersion rootProject.ext.compileSdkVersion 6 | defaultConfig { 7 | applicationId "endless.buzl.uk" 8 | minSdkVersion rootProject.ext.minSdkVersion 9 | targetSdkVersion rootProject.ext.targetSdkVersion 10 | versionCode 1 11 | versionName "1.0" 12 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 13 | aaptOptions { 14 | // Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps. 15 | // Default: https://android.googlesource.com/platform/frameworks/base/+/282e181b58cf72b6ca770dc7ca5f91f135444502/tools/aapt/AaptAssets.cpp#61 16 | ignoreAssetsPattern '!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~' 17 | } 18 | } 19 | buildTypes { 20 | release { 21 | minifyEnabled false 22 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 23 | } 24 | } 25 | } 26 | 27 | repositories { 28 | flatDir{ 29 | dirs '../capacitor-cordova-android-plugins/src/main/libs', 'libs' 30 | } 31 | } 32 | 33 | dependencies { 34 | implementation fileTree(include: ['*.jar'], dir: 'libs') 35 | implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion" 36 | implementation "androidx.coordinatorlayout:coordinatorlayout:$androidxCoordinatorLayoutVersion" 37 | implementation "androidx.core:core-splashscreen:$coreSplashScreenVersion" 38 | implementation project(':capacitor-android') 39 | testImplementation "junit:junit:$junitVersion" 40 | androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion" 41 | androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion" 42 | implementation project(':capacitor-cordova-android-plugins') 43 | } 44 | 45 | apply from: 'capacitor.build.gradle' 46 | 47 | try { 48 | def servicesJSON = file('google-services.json') 49 | if (servicesJSON.text) { 50 | apply plugin: 'com.google.gms.google-services' 51 | } 52 | } catch(Exception e) { 53 | logger.info("google-services.json not found, google-services plugin not applied. Push Notifications won't work") 54 | } 55 | -------------------------------------------------------------------------------- /android/app/capacitor.build.gradle: -------------------------------------------------------------------------------- 1 | // DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN 2 | 3 | android { 4 | compileOptions { 5 | sourceCompatibility JavaVersion.VERSION_17 6 | targetCompatibility JavaVersion.VERSION_17 7 | } 8 | } 9 | 10 | apply from: "../capacitor-cordova-android-plugins/cordova.variables.gradle" 11 | dependencies { 12 | implementation project(':capacitor-app') 13 | implementation project(':capacitor-browser') 14 | implementation project(':capacitor-filesystem') 15 | implementation project(':capacitor-share') 16 | 17 | } 18 | 19 | 20 | if (hasProperty('postBuildExtras')) { 21 | postBuildExtras() 22 | } 23 | -------------------------------------------------------------------------------- /android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /android/app/release/output-metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 3, 3 | "artifactType": { 4 | "type": "APK", 5 | "kind": "Directory" 6 | }, 7 | "applicationId": "endless.buzl.uk", 8 | "variantName": "release", 9 | "elements": [ 10 | { 11 | "type": "SINGLE", 12 | "filters": [], 13 | "attributes": [], 14 | "versionCode": 1, 15 | "versionName": "1.0", 16 | "outputFile": "app-release.apk" 17 | } 18 | ], 19 | "elementType": "File" 20 | } -------------------------------------------------------------------------------- /android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.getcapacitor.myapp; 2 | 3 | import static org.junit.Assert.*; 4 | 5 | import android.content.Context; 6 | import androidx.test.ext.junit.runners.AndroidJUnit4; 7 | import androidx.test.platform.app.InstrumentationRegistry; 8 | import org.junit.Test; 9 | import org.junit.runner.RunWith; 10 | 11 | /** 12 | * Instrumented test, which will execute on an Android device. 13 | * 14 | * @see Testing documentation 15 | */ 16 | @RunWith(AndroidJUnit4.class) 17 | public class ExampleInstrumentedTest { 18 | 19 | @Test 20 | public void useAppContext() throws Exception { 21 | // Context of the app under test. 22 | Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); 23 | 24 | assertEquals("com.getcapacitor.app", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 11 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /android/app/src/main/java/endless/buzl/uk/MainActivity.java: -------------------------------------------------------------------------------- 1 | package endless.buzl.uk; 2 | 3 | import com.getcapacitor.BridgeActivity; 4 | 5 | public class MainActivity extends BridgeActivity {} 6 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-land-hdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/drawable-land-hdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-land-ldpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/drawable-land-ldpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-land-mdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/drawable-land-mdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-land-night-hdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/drawable-land-night-hdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-land-night-ldpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/drawable-land-night-ldpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-land-night-mdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/drawable-land-night-mdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-land-night-xhdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/drawable-land-night-xhdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-land-night-xxhdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/drawable-land-night-xxhdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-land-night-xxxhdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/drawable-land-night-xxxhdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-land-xhdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/drawable-land-xhdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-land-xxhdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/drawable-land-xxhdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-land-xxxhdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/drawable-land-xxxhdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-night/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/drawable-night/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-port-hdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/drawable-port-hdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-port-ldpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/drawable-port-ldpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-port-mdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/drawable-port-mdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-port-night-hdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/drawable-port-night-hdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-port-night-ldpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/drawable-port-night-ldpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-port-night-mdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/drawable-port-night-mdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-port-night-xhdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/drawable-port-night-xhdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-port-night-xxhdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/drawable-port-night-xxhdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-port-night-xxxhdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/drawable-port-night-xxxhdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-port-xhdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/drawable-port-xhdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-port-xxhdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/drawable-port-xxhdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-port-xxxhdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/drawable-port-xxxhdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml: -------------------------------------------------------------------------------- 1 | 7 | 12 | 13 | 19 | 22 | 25 | 26 | 27 | 28 | 34 | 35 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/ic_launcher_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 10 | 15 | 20 | 25 | 30 | 35 | 40 | 45 | 50 | 55 | 60 | 65 | 70 | 75 | 80 | 85 | 90 | 95 | 100 | 105 | 110 | 115 | 120 | 125 | 130 | 135 | 140 | 145 | 150 | 155 | 160 | 165 | 170 | 171 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/drawable/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/mipmap-hdpi/ic_launcher_background.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-ldpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/mipmap-ldpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-ldpi/ic_launcher_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/mipmap-ldpi/ic_launcher_background.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-ldpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/mipmap-ldpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-ldpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/mipmap-ldpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/mipmap-mdpi/ic_launcher_background.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/mipmap-xhdpi/ic_launcher_background.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_background.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/ic_launcher_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #FFFFFF 4 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Endless 4 | Endless 5 | endless.buzl.uk 6 | endless.buzl.uk 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 11 | 12 | 17 | 18 | 19 | 22 | -------------------------------------------------------------------------------- /android/app/src/main/res/xml/file_paths.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.getcapacitor.myapp; 2 | 3 | import static org.junit.Assert.*; 4 | 5 | import org.junit.Test; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | 14 | @Test 15 | public void addition_isCorrect() throws Exception { 16 | assertEquals(4, 2 + 2); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | 5 | repositories { 6 | google() 7 | mavenCentral() 8 | } 9 | dependencies { 10 | classpath 'com.android.tools.build:gradle:8.0.0' 11 | classpath 'com.google.gms:google-services:4.3.15' 12 | 13 | // NOTE: Do not place your application dependencies here; they belong 14 | // in the individual module build.gradle files 15 | } 16 | } 17 | 18 | apply from: "variables.gradle" 19 | 20 | allprojects { 21 | repositories { 22 | google() 23 | mavenCentral() 24 | } 25 | } 26 | 27 | task clean(type: Delete) { 28 | delete rootProject.buildDir 29 | } 30 | -------------------------------------------------------------------------------- /android/capacitor.settings.gradle: -------------------------------------------------------------------------------- 1 | // DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN 2 | include ':capacitor-android' 3 | project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor') 4 | 5 | include ':capacitor-app' 6 | project(':capacitor-app').projectDir = new File('../node_modules/@capacitor/app/android') 7 | 8 | include ':capacitor-browser' 9 | project(':capacitor-browser').projectDir = new File('../node_modules/@capacitor/browser/android') 10 | 11 | include ':capacitor-filesystem' 12 | project(':capacitor-filesystem').projectDir = new File('../node_modules/@capacitor/filesystem/android') 13 | 14 | include ':capacitor-share' 15 | project(':capacitor-share').projectDir = new File('../node_modules/@capacitor/share/android') 16 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | org.gradle.jvmargs=-Xmx1536m 13 | 14 | # When configured, Gradle will run in incubating parallel mode. 15 | # This option should only be used with decoupled projects. More details, visit 16 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 17 | # org.gradle.parallel=true 18 | 19 | # AndroidX package structure to make it clearer which packages are bundled with the 20 | # Android operating system, and which are packaged with your app's APK 21 | # https://developer.android.com/topic/libraries/support-library/androidx-rn 22 | android.useAndroidX=true 23 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-all.zip 4 | networkTimeout=10000 5 | zipStoreBase=GRADLE_USER_HOME 6 | zipStorePath=wrapper/dists 7 | -------------------------------------------------------------------------------- /android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @rem 2 | @rem Copyright 2015 the original author or authors. 3 | @rem 4 | @rem Licensed under the Apache License, Version 2.0 (the "License"); 5 | @rem you may not use this file except in compliance with the License. 6 | @rem You may obtain a copy of the License at 7 | @rem 8 | @rem https://www.apache.org/licenses/LICENSE-2.0 9 | @rem 10 | @rem Unless required by applicable law or agreed to in writing, software 11 | @rem distributed under the License is distributed on an "AS IS" BASIS, 12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | @rem See the License for the specific language governing permissions and 14 | @rem limitations under the License. 15 | @rem 16 | 17 | @if "%DEBUG%"=="" @echo off 18 | @rem ########################################################################## 19 | @rem 20 | @rem Gradle startup script for Windows 21 | @rem 22 | @rem ########################################################################## 23 | 24 | @rem Set local scope for the variables with windows NT shell 25 | if "%OS%"=="Windows_NT" setlocal 26 | 27 | set DIRNAME=%~dp0 28 | if "%DIRNAME%"=="" set DIRNAME=. 29 | @rem This is normally unused 30 | set APP_BASE_NAME=%~n0 31 | set APP_HOME=%DIRNAME% 32 | 33 | @rem Resolve any "." and ".." in APP_HOME to make it shorter. 34 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi 35 | 36 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 37 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" 38 | 39 | @rem Find java.exe 40 | if defined JAVA_HOME goto findJavaFromJavaHome 41 | 42 | set JAVA_EXE=java.exe 43 | %JAVA_EXE% -version >NUL 2>&1 44 | if %ERRORLEVEL% equ 0 goto execute 45 | 46 | echo. 47 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 48 | echo. 49 | echo Please set the JAVA_HOME variable in your environment to match the 50 | echo location of your Java installation. 51 | 52 | goto fail 53 | 54 | :findJavaFromJavaHome 55 | set JAVA_HOME=%JAVA_HOME:"=% 56 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 57 | 58 | if exist "%JAVA_EXE%" goto execute 59 | 60 | echo. 61 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 62 | echo. 63 | echo Please set the JAVA_HOME variable in your environment to match the 64 | echo location of your Java installation. 65 | 66 | goto fail 67 | 68 | :execute 69 | @rem Setup the command line 70 | 71 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 72 | 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if %ERRORLEVEL% equ 0 goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | set EXIT_CODE=%ERRORLEVEL% 85 | if %EXIT_CODE% equ 0 set EXIT_CODE=1 86 | if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% 87 | exit /b %EXIT_CODE% 88 | 89 | :mainEnd 90 | if "%OS%"=="Windows_NT" endlocal 91 | 92 | :omega 93 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | include ':capacitor-cordova-android-plugins' 3 | project(':capacitor-cordova-android-plugins').projectDir = new File('./capacitor-cordova-android-plugins/') 4 | 5 | apply from: 'capacitor.settings.gradle' -------------------------------------------------------------------------------- /android/variables.gradle: -------------------------------------------------------------------------------- 1 | ext { 2 | minSdkVersion = 22 3 | compileSdkVersion = 33 4 | targetSdkVersion = 33 5 | androidxActivityVersion = '1.7.0' 6 | androidxAppCompatVersion = '1.6.1' 7 | androidxCoordinatorLayoutVersion = '1.2.0' 8 | androidxCoreVersion = '1.10.0' 9 | androidxFragmentVersion = '1.5.6' 10 | coreSplashScreenVersion = '1.0.0' 11 | androidxWebkitVersion = '1.6.1' 12 | junitVersion = '4.13.2' 13 | androidxJunitVersion = '1.1.5' 14 | androidxEspressoCoreVersion = '3.5.1' 15 | cordovaAndroidVersion = '10.1.1' 16 | } -------------------------------------------------------------------------------- /capacitor.config.json: -------------------------------------------------------------------------------- 1 | { 2 | "appId": "endless.buzl.uk", 3 | "appName": "Endless", 4 | "webDir": "src/dist", 5 | "server": { 6 | "androidScheme": "https" 7 | }, 8 | "plugins": { 9 | "CapacitorHttp": { 10 | "enabled": true 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /deploy.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/sh 2 | set -e 3 | 4 | # Build 5 | vite build 6 | 7 | # Capacitor sync 8 | printf "\nSyncing to Android...\n" 9 | npx cap sync 10 | 11 | # Minify extractors 12 | printf "\nMinifying extractors...\n" 13 | search_dir=./extractors 14 | for entry in "$search_dir"/*.js 15 | do 16 | tmp="${entry#*extractors/}" 17 | fname="${tmp%.*}" 18 | echo "$fname" 19 | ./node_modules/.bin/terser ./extractors/"$fname".js --compress --output=./docs/min/"$fname".min.js 20 | done 21 | 22 | # Copy README to docs 23 | printf "\nCopying README to docs...\n" 24 | cp README.md ./docs/ 25 | 26 | # Copy list.json to docs 27 | printf "\nCopying list.json to docs...\n" 28 | cp list.json ./docs/ 29 | 30 | # Copy docker-compose.yml to docs 31 | printf "\nCopying docker-compose.yml to docs...\n" 32 | cp server/docker-compose.yml ./docs/server/ 33 | 34 | # Push to git 35 | printf "\nPushing to git...\n" 36 | git add -A 37 | git commit -m "deploy via script" 38 | git push -------------------------------------------------------------------------------- /docs/README.md: -------------------------------------------------------------------------------- 1 |
2 | 3 | Endless Logo 4 | 5 |

Endless

6 |

7 | Unifying the social media experience 8 |
9 |

10 | GitHub Repo stars 11 | GitHub commit activity 12 | GitHub issues 13 | License 14 | Website 15 |
16 | Report Bug 17 | · 18 | Request Feature 19 |

20 |
21 | 22 | ## What is Endless? 23 | Endless is a social media curator that allows you to view all of your favorite websites in one place with a unified card-based interface. It allows for users to upvote, save and comment on posts from websites even if the website doesn't support it. 24 | 25 | ## Screenshots 26 |
27 | 28 | 29 | 30 | 31 | 32 |
33 | 34 | ## Installation 35 | Download the APK from [GitHub Releases](https://github.com/kaangiray26/endless/releases) and install it. 36 | 37 | ## Features 38 | * No account needed 39 | * Save posts to read later 40 | * Upvote and comment on posts 41 | * Remove upvotes and comments if needed 42 | * Fuzzy search on post titles 43 | * Backup and restore your data 44 | 45 | ## Supported Feeds 46 | - [x] Cumhuriyet 47 | - [x] Darknet Diaries 48 | - [x] GamingOnLinux 49 | - [x] GitHub Trending 50 | - [x] Hacker News 51 | - [x] Koreaboo 52 | - [x] Quanta Magazine 53 | - [x] Reddit 54 | - [x] Slashdot 55 | - [x] Spotify New Releases 56 | - [x] YouTube Trending 57 | - [x] Wikipedia 58 | 59 | ## Starting the server 60 | You can use the [docker-compose.yml](server/docker-compose.yml) file to start the server. 61 | 62 | ## How to contribute? 63 | You can contribute to Endless by adding support for new websites or by improving the existing codebase. If you want to add support for a new website, take a look at the existing extractors. Usually, each website has its own extractor with two methods inside the [extractors](https://github.com/kaangiray26/endless/tree/main/extractors) directory. If you want to improve the existing codebase, you can do so by creating a pull request. 64 | 65 | ## Extractors 66 | Take a look at the [extractor list](list.json) below to see which websites are supported at the moment. 67 | 68 | Prebuilt versions of the extractors are also located in the [min](https://github.com/kaangiray26/endless/tree/main/docs/min) directory. 69 | * For example: [Hacker News](min/hacker-news.min.js) 70 | 71 | ## Wiki 72 | > Coming soon 73 | -------------------------------------------------------------------------------- /docs/list.json: -------------------------------------------------------------------------------- 1 | { 2 | "cumhuriyet": { 3 | "name": "Cumhuriyet", 4 | "image": "https://www.cumhuriyet.com.tr/Content/images/icons/favicon.ico", 5 | "url": "https://kaangiray26.github.io/endless/min/cumhuriyet.min.js" 6 | }, 7 | "darknet-diaries": { 8 | "name": "Darknet Diaries", 9 | "image": "https://darknetdiaries.com/imgs/favicon.png", 10 | "url": "https://kaangiray26.github.io/endless/min/darknet-diaries.min.js" 11 | }, 12 | "gaming-on-linux": { 13 | "name": "GamingOnLinux", 14 | "image": "https://www.gamingonlinux.com/templates/default/images/favicons/favicon.ico", 15 | "url": "https://kaangiray26.github.io/endless/min/gaming-on-linux.min.js" 16 | }, 17 | "gist": { 18 | "name": "GitHub Gists", 19 | "image": "https://github.githubassets.com/pinned-octocat.svg", 20 | "url": "https://kaangiray26.github.io/endless/min/gist.min.js", 21 | "hidden": true 22 | }, 23 | "github": { 24 | "name": "GitHub", 25 | "image": "https://github.githubassets.com/pinned-octocat.svg", 26 | "url": "https://kaangiray26.github.io/endless/min/github.min.js", 27 | "hidden": true 28 | }, 29 | "github-trending": { 30 | "name": "GitHub Trending", 31 | "image": "https://github.githubassets.com/pinned-octocat.svg", 32 | "url": "https://kaangiray26.github.io/endless/min/github-trending.min.js" 33 | }, 34 | "hacker-news": { 35 | "name": "Hacker News", 36 | "image": "https://news.ycombinator.com/favicon.ico", 37 | "url": "https://kaangiray26.github.io/endless/min/hacker-news.min.js" 38 | }, 39 | "koreaboo": { 40 | "name": "Koreaboo", 41 | "image": "https://www.koreaboo.com/favicon.ico", 42 | "url": "https://kaangiray26.github.io/endless/min/koreaboo.min.js" 43 | }, 44 | "quanta-magazine": { 45 | "name": "Quanta Magazine", 46 | "image": "https://www.quantamagazine.org/favicon.png", 47 | "url": "https://kaangiray26.github.io/endless/min/quanta-magazine.min.js" 48 | }, 49 | "reddit": { 50 | "name": "Reddit", 51 | "image": "https://www.redditstatic.com/desktop2x/img/favicon/favicon-96x96.png", 52 | "url": "https://kaangiray26.github.io/endless/min/reddit.min.js" 53 | }, 54 | "slashdot": { 55 | "name": "Slashdot", 56 | "image": "https://slashdot.org/favicon.ico", 57 | "url": "https://kaangiray26.github.io/endless/min/slashdot.min.js" 58 | }, 59 | "spotify-new-releases": { 60 | "name": "Spotify New Releases", 61 | "image": "https://developer.spotify.com/images/favicon.ico", 62 | "url": "https://kaangiray26.github.io/endless/min/spotify-new-releases.min.js" 63 | }, 64 | "spotify": { 65 | "name": "Spotify", 66 | "image": "https://www.scdn.co/i/_global/favicon.png", 67 | "url": "https://kaangiray26.github.io/endless/min/spotify.min.js", 68 | "hidden": true 69 | }, 70 | "youtube-trending": { 71 | "name": "YouTube Trending", 72 | "image": "https://m.youtube.com/static/favicon.ico", 73 | "url": "https://kaangiray26.github.io/endless/min/youtube-trending.min.js" 74 | }, 75 | "wikipedia": { 76 | "name": "Wikipedia", 77 | "image": "https://en.wikipedia.org/static/favicon/wikipedia.ico", 78 | "url": "https://kaangiray26.github.io/endless/min/wikipedia.min.js" 79 | } 80 | } -------------------------------------------------------------------------------- /docs/min/cumhuriyet.min.js: -------------------------------------------------------------------------------- 1 | const extractor=()=>({get_posts:async function(page=1,request=null,args=null){if(1==page){let posts=[],elems=[],dom=await fetch("https://www.cumhuriyet.com.tr/gundem").then((res=>res.text())).then((str=>(new window.DOMParser).parseFromString(str,"text/html"))).catch((err=>null));return dom?(elems.push(...[...dom.querySelectorAll(".slider-manset img[src^='/Archive/2']")].slice(2)),elems.push(...dom.querySelectorAll(".haber img[src^='/Archive/2']")),posts=elems.map((post=>({title:post.title,author:"Cumhuriyet",url:"https://cumhuriyet.com.tr/"+post.attributes.src.value.split("/").slice(-2,-1)[0],id:post.attributes.src.value.split("/").slice(-2,-1)[0],dt:null,image:"https://cumhuriyet.com.tr"+post.attributes.src.value,page:"/discover/cumhuriyet/"+post.attributes.src.value.split("/").slice(-2,-1)[0],last_idhaber:post.closest(".haber")?post.closest(".haber").attributes["data-idhaber"].value:null}))),posts):posts}return await fetch(`https://www.cumhuriyet.com.tr/bolum-haberleri/9999/${args.last_idhaber}`,{method:"POST"}).then((res=>res.text())).then((str=>(new window.DOMParser).parseFromString(str,"text/html"))).then((dom=>[...dom.querySelectorAll("img[src^='/Archive/2']")])).then((posts=>posts.map((post=>({title:post.title,author:"Cumhuriyet",url:"https://cumhuriyet.com.tr/"+post.attributes.src.value.split("/").slice(-2,-1)[0],id:post.attributes.src.value.split("/").slice(-2,-1)[0],dt:null,image:"https://cumhuriyet.com.tr"+post.attributes.src.value,page:"/discover/cumhuriyet/"+post.attributes.src.value.split("/").slice(-2,-1)[0],last_idhaber:post.closest(".haber")?post.closest(".haber").attributes["data-idhaber"].value:null})))))},get_post:async function(id,request=null,args=null){return await fetch(`https://www.cumhuriyet.com.tr/${id}`).then((res=>res.text())).then((str=>(new window.DOMParser).parseFromString(str,"text/html"))).then((dom=>({author:"Cumhuriyet",title:dom.head.querySelector("meta[property='og:title']").content,url:dom.head.querySelector("meta[property='og:url']").content,id:id,dt:null,image:"/images/bitmap_dark.png",page:"/discover/cumhuriyet/"+id}))).catch((err=>null))}}); -------------------------------------------------------------------------------- /docs/min/darknet-diaries.min.js: -------------------------------------------------------------------------------- 1 | const extractor=()=>({get_posts:async function(page=1,request=null,args=null){let posts=[],elems=[];if(1==page){let dom=await fetch("https://darknetdiaries.com/episode/").then((res=>res.text())).then((str=>(new window.DOMParser).parseFromString(str,"text/html"))).catch((err=>null));return dom?(elems.push(...dom.querySelectorAll(".post")),posts=elems.map((post=>({title:post.querySelector(".post__title").textContent,author:"Darknet Diaries",url:"https://darknetdiaries.com"+post.querySelector(".post__title>a").pathname,id:post.querySelector(".post__title>a").pathname.split("/")[2],dt:null,points:0,image:"https://darknetdiaries.com"+post.querySelector(".post__image").style.backgroundImage.slice(5,-2),page:"/discover/darknet-diaries/"+post.querySelector(".post__title>a").pathname.split("/")[2]}))),posts):posts}let dom=await fetch(`https://darknetdiaries.com/episode/page${page}/`).then((res=>res.text())).then((str=>(new window.DOMParser).parseFromString(str,"text/html"))).catch((err=>null));return dom?(elems.push(...dom.querySelectorAll(".post")),posts=elems.map((post=>({title:post.querySelector(".post__title").textContent,author:"Darknet Diaries",url:"https://darknetdiaries.com"+post.querySelector(".post__title>a").pathname,id:post.querySelector(".post__title>a").pathname.split("/")[2],dt:null,image:"https://darknetdiaries.com"+post.querySelector(".post__image").style.backgroundImage.slice(5,-2),page:"/discover/darknet-diaries/"+post.querySelector(".post__title>a").pathname.split("/")[2]}))),posts):posts},get_post:async function(id,request=null,args=null){return await fetch(`https://darknetdiaries.com/episode/${id}`).then((res=>res.text())).then((str=>(new window.DOMParser).parseFromString(str,"text/html"))).then((dom=>({author:"Jack Rhysider",title:dom.head.querySelector("meta[property='og:title']").content,url:dom.head.querySelector("meta[property='og:url']").content,id:id,dt:null,image:"/images/bitmap_dark.png",page:"/discover/darknet-diaries/"+id}))).catch((err=>null))}}); -------------------------------------------------------------------------------- /docs/min/gaming-on-linux.min.js: -------------------------------------------------------------------------------- 1 | const extractor=()=>({get_posts:async function(page=1,request=null,args=null){return await fetch(`https://www.gamingonlinux.com/all-articles/page=${page}`).then((res=>res.text())).then((str=>(new window.DOMParser).parseFromString(str,"text/html"))).then((dom=>[...dom.querySelectorAll(".article")])).then((posts=>posts.map((post=>({title:post.querySelector(".title").textContent,author:post.querySelector(".p-author").textContent,url:post.querySelector(".u-url").href,id:post.querySelector(".u-url").pathname,dt:post.querySelector("time").dateTime,image:post.querySelector("img").src,page:"/discover/gaming-on-linux"+post.querySelector(".u-url").pathname}))))).catch((err=>[]))},get_post:async function(id,request=null,args=null){return await fetch(`https://www.gamingonlinux.com/${id}`).then((res=>res.text())).then((str=>(new window.DOMParser).parseFromString(str,"text/html"))).then((dom=>({author:"GamingOnLinux",title:dom.head.querySelector("meta[property='og:title']").content,url:dom.head.querySelector("meta[property='og:url']").content,id:id,dt:null,image:"/images/bitmap_dark.png",page:"/discover/gaming-on-linux/"+id}))).catch((err=>null))}}); -------------------------------------------------------------------------------- /docs/min/gist.min.js: -------------------------------------------------------------------------------- 1 | const extractor=()=>({get_posts:async function(page=1,request=null,args=null){return[]},get_post:async function(id,request=null,args=null){return await fetch("https://api.github.com/gists/"+id).then((res=>res.json())).then((data=>({title:data.description,author:data.owner.login,url:"https://gist.github.com/"+data.owner.login+"/"+id,id:id,dt:data.created_at,image:"/images/bitmap_dark.png",page:"/discover/gist/"+id}))).catch((err=>null))}}); -------------------------------------------------------------------------------- /docs/min/github-trending.min.js: -------------------------------------------------------------------------------- 1 | const extractor=()=>({get_posts:async function(page=1,request=null,args=null){return 1==page?await fetch("https://github.com/trending?since=daily").then((res=>res.text())).then((str=>(new DOMParser).parseFromString(str,"text/html"))).then((dom=>[...dom.querySelectorAll("article")])).then((items=>items.map((item=>({title:[...item.querySelector("h2 a").childNodes].slice(-1)[0].textContent.trim(),author:[...item.querySelector("h2 a").childNodes].slice(-2)[0].innerText.split("/")[0].trim(),url:"https://github.com"+item.querySelector("h2 a").pathname,id:item.querySelector("h2 a").pathname,dt:null,image:"/images/bitmap_dark.png",page:"/discover/github"+item.querySelector("h2 a").pathname}))))):[]},get_post:async function(id,request=null,args=null){return null}}); -------------------------------------------------------------------------------- /docs/min/github.min.js: -------------------------------------------------------------------------------- 1 | const extractor=()=>({get_posts:async function(page=1,request=null,args=null){return[]},get_post:async function(id,request=null,args=null){return await fetch("https://github.com/"+id).then((res=>res.text())).then((str=>(new DOMParser).parseFromString(str,"text/html"))).then((dom=>({title:dom.querySelector("meta[property='og:title']").content,author:null,url:"https://github.com/"+id,id:id,dt:null,image:dom.querySelector("meta[property='og:image']").content,page:"/discover/github"+id})))}}); -------------------------------------------------------------------------------- /docs/min/hacker-news.min.js: -------------------------------------------------------------------------------- 1 | const extractor=()=>({get_posts:async function(page=1,request=null,args=null){return await fetch(`https://news.ycombinator.com/news?p=${page}`).then((res=>res.text())).then((str=>(new window.DOMParser).parseFromString(str,"text/html"))).then((dom=>[...dom.querySelectorAll(".athing")])).then((posts=>posts.map((post=>({title:post.querySelector(".titleline>a").innerText,author:post.nextSibling.querySelector(".hnuser")?post.nextSibling.querySelector(".hnuser").innerText:null,url:post.querySelector(".titleline>a").href,id:post.id,dt:post.nextSibling.querySelector(".age").title,image:"/images/bitmap_dark.png",page:"/discover/hacker-news/"+post.id}))))).catch((err=>[]))},get_post:async function(id,request=null,args=null){return await fetch(`https://news.ycombinator.com/item?id=${id}`).then((res=>res.text())).then((str=>(new window.DOMParser).parseFromString(str,"text/html"))).then((dom=>({title:dom.querySelector(".titleline > a").innerText,author:dom.querySelector(".hnuser").innerText,url:dom.querySelector(".titleline > a").href,id:id,dt:dom.querySelector(".age").title,image:"/images/bitmap_dark.png",page:"/discover/hacker-news/"+id})))}}); -------------------------------------------------------------------------------- /docs/min/koreaboo.min.js: -------------------------------------------------------------------------------- 1 | const extractor=()=>({get_posts:async function(page=1,request=null,args=null){let url="https://www.koreaboo.com/news/";return page>=1&&(url="https://www.koreaboo.com/news/page/"+page+"/"),await fetch(url).then((res=>res.text())).then((str=>(new window.DOMParser).parseFromString(str,"text/html"))).then((dom=>[...dom.querySelectorAll("article")])).then((items=>items.map((item=>({title:item.querySelector(".ap-chron-medium-title").innerText,author:"Koreaboo",url:"https://www.koreaboo.com"+item.querySelector("a").pathname,id:item.querySelector("a").pathname,dt:item.querySelector("time").dateTime,image:item.querySelector("img").dataset.srcset.split(",").slice(-1)[0].split(" ")[0],page:"/discover/koreaboo"+item.querySelector("a").pathname}))))).catch((err=>[]))},get_post:async function(id,request=null,args=null){return await fetch(`https://www.koreaboo.com/${id}`).then((res=>res.text())).then((str=>(new window.DOMParser).parseFromString(str,"text/html"))).then((dom=>dom.querySelector("article"))).then((item=>({title:item.querySelector("h1").innerText,author:"Koreaboo",url:"https://www.koreaboo.com/"+id,id:id,dt:item.querySelector("time").dateTime,image:item.querySelector("img").src,page:"/discover/koreaboo/"+id}))).catch((err=>null))}}); -------------------------------------------------------------------------------- /docs/min/quanta-magazine.min.js: -------------------------------------------------------------------------------- 1 | const extractor=()=>({get_posts:async function(page=1,request=null,args=null){return await fetch("https://www.quantamagazine.org/graphql",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({operationName:"getPostPageArchive",query:"query getPostPageArchive($slug: String, $offset: Int, $type: String) {\n response: getPostPageArchive(slug: $slug, offset: $offset, type: $type) {\n data {\n ... on Post {\n id\n title\n excerpt\n link\n slug\n disqus\n date\n authors {\n name\n }\n acf {\n featured_image_default {\n ...ImageFields\n }\n }\n }\n }\n }\n }\n\n fragment ImageFields on Image {\n alt\n caption\n url\n width\n height\n }\n",variables:{offset:String(page),type:"archive"}})}).then((res=>res.json())).then((json=>json.data.response.data)).then((posts=>posts.map((post=>({title:post.title,author:post.authors[0].name,url:post.link,id:post.id,dt:post.date,image:post.acf.featured_image_default.url,page:"/discover/quanta-magazine/"+post.slug}))))).catch((err=>null))},get_post:async function(id){return await fetch("https://www.quantamagazine.org/graphql",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({operationName:"getPostPageArchive",query:"query getPostPageArchive($slug: String, $offset: Int) {\n response: getPostPageArchive(slug: $slug, offset: $offset) {\n data {\n ... on Post {\n id\n date\n status\n title\n content\n excerpt\n link\n slug\n disqus\n authors {\n name\n }\n acf {\n featured_image_default {\n ...ImageFields\n }\n }\n }\n }\n }\n}\nfragment ImageFields on Image {\n alt\n caption\n url\n width\n height\n}\n",variables:{slug:id}})}).then((res=>res.json())).then((json=>json.data.response.data.pop())).then((post=>({title:post.title,author:post.authors[0].name,url:post.link,id:post.id,dt:post.date,image:post.acf.featured_image_default.url,page:"/discover/quanta-magazine/"+post.slug}))).catch((err=>null))}}); -------------------------------------------------------------------------------- /docs/min/reddit.min.js: -------------------------------------------------------------------------------- 1 | const extractor=()=>({get_posts:async function(page=1,request=null,args=null){return 1==page?await request.get({url:"https://reddit.com/.json"}).then((res=>res.data.data.children)).then((posts=>posts.map((post=>({title:post.data.title,author:post.data.author,url:"https://www.reddit.com"+post.data.permalink,id:post.data.permalink,dt:post.data.created,image:post.data.thumbnail||"/images/bitmap_dark.png",page:"/discover/reddit"+post.data.permalink,fullname:post.data.name}))))).catch((err=>[])):await request.get({url:`https://reddit.com/.json?after=${args.fullname}`}).then((res=>res.data.data.children)).then((posts=>posts.map((post=>({title:post.data.title,author:post.data.author,url:"https://www.reddit.com"+post.data.permalink,id:post.data.permalink,dt:post.data.created,image:post.data.thumbnail||"/images/bitmap_dark.png",page:"/discover/reddit"+post.data.permalink,fullname:post.data.name}))))).catch((err=>[]))},get_post:async function(id,request=null,args=null){return await request.get({url:"https://www.reddit.com/"+id+"/.json"}).then((res=>res.data[0].data.children[0])).then((post=>({title:post.data.title,author:post.data.author,url:post.data.url,id:post.data.permalink,dt:post.data.created,image:post.data.thumbnail||"/images/bitmap_dark.png",page:"/discover/reddit"+post.data.permalink}))).catch((err=>null))}}); -------------------------------------------------------------------------------- /docs/min/slashdot.min.js: -------------------------------------------------------------------------------- 1 | const extractor=()=>({get_posts:async function(page=0,request=null,args=null){return await fetch(`https://slashdot.org/?desktop=1&page=${page}`).then((res=>res.text())).then((str=>(new window.DOMParser).parseFromString(str,"text/html"))).then((dom=>[...dom.querySelectorAll("article[id^='firehose']")])).then((posts=>posts.map((post=>({title:post.querySelector(".story-title>a").textContent,author:"Slashdot",url:post.querySelector(".story-sourcelnk")?post.querySelector(".story-sourcelnk").href:post.querySelector(".story-title>a").href,id:post.querySelector(".story-title>a").pathname.split("/").slice(0,-1).join("/"),dt:post.querySelector("time").dateTime,points:0,image:"/images/bitmap_dark.png",page:"/discover/slashdot"+post.querySelector(".story-title>a").pathname.split("/").slice(0,-1).join("/")}))))).catch((err=>[]))},get_post:async function(id,request=null,args=null){return await fetch(`https://slashdot.org/api/v1/${id}.json?api_key=MdotSLEDY7Ss2nEy7Op9lkKJctCqbGjWUBAUsatNKsQ`).then((res=>res.json())).then((data=>({author:data.nickname,title:data.title,url:data.canonical_url,id:id,dt:data.time,image:"/images/bitmap_dark.png",page:"/discover/slashdot/"+id}))).catch((err=>null))}}); -------------------------------------------------------------------------------- /docs/min/spotify-new-releases.min.js: -------------------------------------------------------------------------------- 1 | const extractor=()=>({get_posts:async function(page=1,request=null,args=null){let credentials=await async function(){let re=/ -------------------------------------------------------------------------------- /src/components/Backup.vue: -------------------------------------------------------------------------------- 1 | 33 | 34 | -------------------------------------------------------------------------------- /src/components/CommentedPost.vue: -------------------------------------------------------------------------------- 1 | 24 | 25 | -------------------------------------------------------------------------------- /src/components/Discover.vue: -------------------------------------------------------------------------------- 1 | 28 | 29 | -------------------------------------------------------------------------------- /src/components/Home.vue: -------------------------------------------------------------------------------- 1 | 36 | 37 | -------------------------------------------------------------------------------- /src/components/Profile.vue: -------------------------------------------------------------------------------- 1 | 36 | 37 | -------------------------------------------------------------------------------- /src/components/ProfileCommented.vue: -------------------------------------------------------------------------------- 1 | 14 | 15 | -------------------------------------------------------------------------------- /src/components/ProfileSaved.vue: -------------------------------------------------------------------------------- 1 | 14 | 15 | -------------------------------------------------------------------------------- /src/components/ProfileUpvoted.vue: -------------------------------------------------------------------------------- 1 | 14 | 15 | -------------------------------------------------------------------------------- /src/components/SinglePost.vue: -------------------------------------------------------------------------------- 1 | 48 | 49 | -------------------------------------------------------------------------------- /src/components/SingleShortPost.vue: -------------------------------------------------------------------------------- 1 | 23 | 24 | -------------------------------------------------------------------------------- /src/components/Toolbar.vue: -------------------------------------------------------------------------------- 1 | 25 | 26 | -------------------------------------------------------------------------------- /src/components/UpvotedSavedPost.vue: -------------------------------------------------------------------------------- 1 | 21 | 22 | -------------------------------------------------------------------------------- /src/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | Endless 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /src/js/main.js: -------------------------------------------------------------------------------- 1 | import { createApp } from 'vue' 2 | import App from '/components/App.vue' 3 | import router from '/router' 4 | import { reload_extractors } from "/js/utils.js" 5 | 6 | // Import our custom CSS 7 | import '/scss/styles.scss' 8 | import '/assets/styles.css' 9 | 10 | const server = "https://home.buzl.uk" 11 | 12 | // Setup application settings 13 | if (!localStorage.getItem("server")) { 14 | localStorage.setItem("server", JSON.stringify(server)); 15 | } 16 | 17 | if (!localStorage.getItem("pages")) { 18 | localStorage.setItem("pages", JSON.stringify([])); 19 | } 20 | 21 | if (!localStorage.getItem("saved")) { 22 | localStorage.setItem("saved", JSON.stringify([])); 23 | } 24 | 25 | if (!localStorage.getItem("upvoted")) { 26 | localStorage.setItem("upvoted", JSON.stringify([])); 27 | } 28 | 29 | if (!localStorage.getItem("commented")) { 30 | localStorage.setItem("commented", JSON.stringify([])); 31 | } 32 | 33 | if (!localStorage.getItem("sort")) { 34 | localStorage.setItem("sort", JSON.stringify("hot")); 35 | } 36 | 37 | reload_extractors().then(() => { 38 | createApp(App).use(router).mount('#app'); 39 | }) -------------------------------------------------------------------------------- /src/js/utils.js: -------------------------------------------------------------------------------- 1 | // utils.js 2 | 3 | function get_server() { 4 | return JSON.parse(localStorage.getItem("server")); 5 | } 6 | 7 | async function get_comments(id, offset = 0) { 8 | let server = get_server(); 9 | return await fetch(server + "/comments", { 10 | method: "POST", 11 | headers: { 12 | 'Content-Type': 'application/json' 13 | }, 14 | body: JSON.stringify({ 15 | "id": id, 16 | "action": "get", 17 | "offset": offset 18 | }), 19 | }) 20 | .then(res => res.json()) 21 | .catch(err => null); 22 | } 23 | 24 | async function post_comments(id, comment) { 25 | let server = get_server(); 26 | return await fetch(server + "/comments", { 27 | method: "POST", 28 | headers: { 29 | 'Content-Type': 'application/json' 30 | }, 31 | body: JSON.stringify({ 32 | "id": id, 33 | "action": "add", 34 | "comment": comment 35 | }) 36 | }) 37 | .then(res => res.json()) 38 | .catch(err => null); 39 | } 40 | 41 | async function get_upvotes(id) { 42 | let server = get_server(); 43 | return await fetch(server + "/upvotes", { 44 | method: "POST", 45 | headers: { 46 | 'Content-Type': 'application/json' 47 | }, 48 | body: JSON.stringify({ 49 | "id": id, 50 | "action": "get" 51 | }), 52 | }) 53 | .then(res => res.json()) 54 | .catch(err => null); 55 | } 56 | 57 | async function post_upvotes(id) { 58 | let server = get_server(); 59 | return await fetch(server + "/upvotes", { 60 | method: "POST", 61 | headers: { 62 | 'Content-Type': 'application/json' 63 | }, 64 | body: JSON.stringify({ 65 | "id": id, 66 | "action": "add" 67 | }) 68 | }) 69 | .then(res => res.json()) 70 | .catch(err => null); 71 | } 72 | 73 | async function remove_upvotes(id, identifier) { 74 | let server = get_server(); 75 | return await fetch(server + "/upvotes", { 76 | method: "POST", 77 | headers: { 78 | 'Content-Type': 'application/json' 79 | }, 80 | body: JSON.stringify({ 81 | "id": id, 82 | "identifier": identifier, 83 | "action": "remove" 84 | }) 85 | }) 86 | .then(res => res.json()) 87 | .catch(err => null); 88 | } 89 | 90 | async function remove_comments(id, identifier) { 91 | let server = get_server(); 92 | return await fetch(server + "/comments", { 93 | method: "POST", 94 | headers: { 95 | 'Content-Type': 'application/json' 96 | }, 97 | body: JSON.stringify({ 98 | "id": id, 99 | "identifier": identifier, 100 | "action": "remove" 101 | }) 102 | }) 103 | .then(res => res.json()) 104 | .catch(err => null); 105 | } 106 | 107 | async function reload_extractors() { 108 | let list = JSON.parse(localStorage.getItem("list")); 109 | 110 | if (!list || !Object.keys(list).length) { 111 | let response = await fetch("https://kaangiray26.github.io/endless/list.json") 112 | .then(res => res.json()) 113 | .catch(err => null); 114 | if (!response) { 115 | localStorage.setItem("list", JSON.stringify([])); 116 | return 117 | } 118 | localStorage.setItem("list", JSON.stringify(response)); 119 | } 120 | } 121 | 122 | async function get_latest(type) { 123 | let server = get_server(); 124 | return await fetch(server + "/posts?sort=" + type) 125 | .then(res => res.json()) 126 | .then(data => data.posts) 127 | .catch(err => []); 128 | } 129 | 130 | export { get_server, get_upvotes, post_upvotes, remove_upvotes, get_comments, post_comments, remove_comments, reload_extractors, get_latest } -------------------------------------------------------------------------------- /src/manifest.webmanifest: -------------------------------------------------------------------------------- 1 | { 2 | "background_color": "#ffffff", 3 | "icons": [ 4 | { 5 | "src": "../../icons/icon-48.webp", 6 | "type": "image/png", 7 | "sizes": "48x48", 8 | "purpose": "any maskable" 9 | }, 10 | { 11 | "src": "../../icons/icon-72.webp", 12 | "type": "image/png", 13 | "sizes": "72x72", 14 | "purpose": "any maskable" 15 | }, 16 | { 17 | "src": "../../icons/icon-96.webp", 18 | "type": "image/png", 19 | "sizes": "96x96", 20 | "purpose": "any maskable" 21 | }, 22 | { 23 | "src": "../../icons/icon-128.webp", 24 | "type": "image/png", 25 | "sizes": "128x128", 26 | "purpose": "any maskable" 27 | }, 28 | { 29 | "src": "../../icons/icon-192.webp", 30 | "type": "image/png", 31 | "sizes": "192x192", 32 | "purpose": "any maskable" 33 | }, 34 | { 35 | "src": "../../icons/icon-256.webp", 36 | "type": "image/png", 37 | "sizes": "256x256", 38 | "purpose": "any maskable" 39 | }, 40 | { 41 | "src": "../../icons/icon-512.webp", 42 | "type": "image/png", 43 | "sizes": "512x512", 44 | "purpose": "any maskable" 45 | } 46 | ] 47 | } 48 | -------------------------------------------------------------------------------- /src/pages/Feed.vue: -------------------------------------------------------------------------------- 1 | 18 | 19 | -------------------------------------------------------------------------------- /src/pages/Post.vue: -------------------------------------------------------------------------------- 1 | 8 | 9 | -------------------------------------------------------------------------------- /src/public/CNAME: -------------------------------------------------------------------------------- 1 | endless.buzl.uk -------------------------------------------------------------------------------- /src/public/cropped.svg: -------------------------------------------------------------------------------- 1 | 2 | 4 | 7 | 8 | 10 | 51 | 53 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /src/public/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/src/public/favicon.png -------------------------------------------------------------------------------- /src/public/favicon.svg: -------------------------------------------------------------------------------- 1 | 2 | 4 | 7 | 8 | 10 | 51 | 53 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /src/public/favicon_white.svg: -------------------------------------------------------------------------------- 1 | 2 | 15 | 17 | 37 | 43 | 47 | 51 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /src/public/images/bitmap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/src/public/images/bitmap.png -------------------------------------------------------------------------------- /src/public/images/bitmap_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/src/public/images/bitmap_dark.png -------------------------------------------------------------------------------- /src/public/images/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/src/public/images/favicon.png -------------------------------------------------------------------------------- /src/public/images/feed.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaangiray26/endless/d49fdcb9a9a87ab911172529582330e1ca30ffef/src/public/images/feed.jpg -------------------------------------------------------------------------------- /src/router/index.js: -------------------------------------------------------------------------------- 1 | import { createRouter, createWebHistory } from 'vue-router'; 2 | 3 | import Home from "/components/Home.vue" 4 | import Discover from "/components/Discover.vue" 5 | import Backup from "/components/Backup.vue" 6 | 7 | import Feed from "/pages/Feed.vue" 8 | import Post from "/pages/Post.vue" 9 | 10 | import Profile from "/components/Profile.vue" 11 | import ProfileSaved from "/components/ProfileSaved.vue" 12 | import ProfileUpvoted from "/components/ProfileUpvoted.vue" 13 | import ProfileCommented from "/components/ProfileCommented.vue" 14 | 15 | const routes = [ 16 | { 17 | path: "/", 18 | component: Home, 19 | }, 20 | { 21 | path: "/discover", 22 | children: [ 23 | { 24 | path: "", 25 | component: Discover 26 | }, 27 | { 28 | path: ":domain", 29 | component: Feed 30 | }, 31 | { 32 | path: ":domain/:id+", 33 | component: Post 34 | } 35 | ] 36 | }, 37 | { 38 | path: "/profile", 39 | component: Profile, 40 | children: [ 41 | { 42 | path: "saved", 43 | component: ProfileSaved 44 | }, 45 | { 46 | path: "upvoted", 47 | component: ProfileUpvoted 48 | }, 49 | { 50 | path: "commented", 51 | component: ProfileCommented 52 | } 53 | ] 54 | }, 55 | { 56 | path: "/backup", 57 | component: Backup 58 | } 59 | ]; 60 | 61 | const router = createRouter({ 62 | history: createWebHistory(), 63 | routes 64 | }); 65 | 66 | router.beforeEach((to, from, next) => { 67 | let pages = JSON.parse(localStorage.getItem("pages")); 68 | pages = pages.slice(-1); 69 | 70 | pages.push({ 71 | path: from.path, 72 | scroll: document.querySelector('.content-view').scrollTop 73 | }) 74 | localStorage.setItem("pages", JSON.stringify(pages)); 75 | next(); 76 | }); 77 | 78 | export default router -------------------------------------------------------------------------------- /src/scss/styles.scss: -------------------------------------------------------------------------------- 1 | // Import all of Bootstrap's CSS 2 | @import "bootstrap/scss/bootstrap" -------------------------------------------------------------------------------- /vite.config.js: -------------------------------------------------------------------------------- 1 | import { fileURLToPath, URL } from 'node:url' 2 | 3 | import { defineConfig } from 'vite' 4 | import vue from '@vitejs/plugin-vue' 5 | 6 | const path = require('path') 7 | 8 | // https://vitejs.dev/config/ 9 | export default defineConfig({ 10 | root: path.resolve(__dirname, 'src'), 11 | server: { 12 | port: 8000, 13 | hot: true, 14 | }, 15 | plugins: [vue()], 16 | resolve: { 17 | alias: { 18 | '@': fileURLToPath(new URL('./src', import.meta.url)), 19 | '~bootstrap': path.resolve(__dirname, 'node_modules/bootstrap') 20 | } 21 | } 22 | }) 23 | -------------------------------------------------------------------------------- /vue.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { publicPath: '/' } --------------------------------------------------------------------------------